-
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor structure * Prevent applySummaries from being unnecessary * Add persist to computed * wip * refactoring * Pint * Fix getWireAttributes
- Loading branch information
1 parent
2e5e92b
commit 9fea61d
Showing
25 changed files
with
398 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?php | ||
|
||
namespace PowerComponents\LivewirePowerGrid\Concerns; | ||
|
||
use PowerComponents\LivewirePowerGrid\ProcessDataSource; | ||
|
||
trait Base | ||
{ | ||
public string $primaryKey = 'id'; | ||
|
||
public bool $ignoreTablePrefix = true; | ||
|
||
public string $tableName = 'default'; | ||
|
||
public array $setUp = []; | ||
|
||
public bool $showErrorBag = false; | ||
|
||
public bool $rowIndex = true; | ||
|
||
public array $searchMorphs = []; | ||
|
||
public bool $deferLoading = false; | ||
|
||
public bool $readyToLoad = false; | ||
|
||
public string $loadingComponent = ''; | ||
|
||
public array $columns = []; | ||
|
||
protected ?ProcessDataSource $processDataSourceInstance = null; | ||
|
||
public array $actions = []; | ||
|
||
public array $headers = []; | ||
|
||
public string $search = ''; | ||
|
||
public string $currentTable = ''; | ||
|
||
public array $relationSearch = []; | ||
|
||
public int $total = 0; | ||
|
||
public int $totalCurrentPage = 0; | ||
|
||
public function template(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
public function relationSearch(): array | ||
{ | ||
return []; | ||
} | ||
|
||
public function searchMorphs(): array | ||
{ | ||
return []; | ||
} | ||
|
||
public function header(): array | ||
{ | ||
return []; | ||
} | ||
|
||
public function setUp(): array | ||
{ | ||
return []; | ||
} | ||
|
||
public function columns(): array | ||
{ | ||
return []; | ||
} | ||
|
||
public function filters(): array | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* @return null | ||
*/ | ||
public function datasource() | ||
{ | ||
return null; | ||
} | ||
|
||
public function summarizeFormat(): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.