Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e19517e
Adjust For Collapse Rework
lrljoe Apr 6, 2025
95a3c54
Fix styling
lrljoe Apr 6, 2025
b2c1b1c
Tweaks To Collapse Behaviours
lrljoe Apr 12, 2025
fe3944e
Fix styling
lrljoe Apr 12, 2025
e756393
Further Tweaks
lrljoe Apr 17, 2025
33f9f59
Fix styling
lrljoe Apr 17, 2025
742bdc8
Add Bootstrap Boolean Filter
lrljoe Apr 17, 2025
294069a
Tweak for Td Plain
lrljoe Apr 17, 2025
7a29c21
Remove Clear Button from Bootstrap
lrljoe Apr 17, 2025
508c588
Fixes for PHPStan Level 6
lrljoe Apr 17, 2025
ab3c278
Fix styling
lrljoe Apr 17, 2025
c8cc3e6
Tweaks to tests
lrljoe Apr 17, 2025
5efc243
Fix broken reorder blade
lrljoe Apr 17, 2025
f960d15
Update localisations
lrljoe Apr 17, 2025
f28ca23
Performance Tweaks
lrljoe Apr 17, 2025
2584eb9
CollapseRework3
lrljoe Apr 21, 2025
467b123
Add definitions to LivewireComponentColumn - use str random
lrljoe Apr 29, 2025
b725ff8
v4 Pre Commit
lrljoe Apr 29, 2025
f556555
CollapseRework4
lrljoe Apr 30, 2025
f18ec67
Tweak TR Blade
lrljoe Apr 30, 2025
761f8ae
Adjust Search
lrljoe Apr 30, 2025
73de220
Add Extra Logic
lrljoe Apr 30, 2025
f7e08d5
CollapseRework4 - Additional Fixes
lrljoe May 3, 2025
bcb3b3b
CollapseRework5
lrljoe May 9, 2025
c85fa91
Rew
lrljoe May 17, 2025
08bcb81
Fixes
lrljoe May 17, 2025
33a37e3
Interim Fixes
lrljoe May 17, 2025
ca6e706
Test Fixes
lrljoe May 17, 2025
099f097
Remove instanceof where defined
lrljoe May 22, 2025
f3c8e42
Further Tweaks - TypeHinting & Cleaning Up
lrljoe May 25, 2025
f384ac7
Reworking Blades for TW4
lrljoe May 31, 2025
23d9f0f
Tailwind4 Starting Point
lrljoe May 31, 2025
4c0e3ea
Cleaning Up Permissions
lrljoe May 31, 2025
cdb4578
Further Adjustments - Note Pagination Broken
lrljoe Jun 2, 2025
64b54a3
Further Fixes
lrljoe Jun 2, 2025
081279e
Tweaks to Computed Properties
lrljoe Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ phpunit.xml.bak
phpstan.txt
coverage.xml
./tmp/**
./*.php.bk
src/Views/Filters/Traits/IsExternalArrayFilter.php.bk
.gitignore
src/Views/Filters/Traits/IsExternalFilter.php.bk
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
- In LaravelLivewireTablesEvent, change the type to Illuminate\Contracts\Auth\Authenticatable by @khwadj in https://github.com/rappasoft/laravel-livewire-tables/pull/1963
- Fix for Search Field Attribute Defaults by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1962
- Fix Filter Pills Icon - Tailwind by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1961
- Add filterComponents into queryString to ensure they're maintained by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1957
- Add appliedFilters into queryString to ensure they're maintained by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1957
- Reset Current Page on "Per Page" changing by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1953

### New Features
Expand Down Expand Up @@ -302,7 +302,7 @@ All notable changes to `laravel-livewire-tables` will be documented in this file

## [v3.4.8] - 2024-08-18
### New Features
- Add an event dispatch for Filter Was Set when filterComponents is updated by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1861
- Add an event dispatch for Filter Was Set when appliedFilters is updated by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1861

## [v3.4.7] - 2024-08-18
### Bug Fixes
Expand Down Expand Up @@ -483,7 +483,7 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
- Fix collapsing columns not respecting view point collapse points by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1665

### Tweaks
- Migrate "updated" Search and FilterComponents calls to WithSearch and WithFilters by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1666
- Migrate "updated" Search and appliedFilters calls to WithSearch and WithFilters by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1666
- Allow nullable search/filter values by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1666

## [v3.2.0] - 2024-01-04
Expand Down Expand Up @@ -697,7 +697,7 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
- DateFilter & DateTimeFilter fully support setFilterDefaultValue
- MultiSelectFilter & MultiSelectDropdownFilter both support setFirstOption()
- There are now two arrays relating to Filters:
- A wireable one ($filterComponents)
- A wireable one ($appliedFilters)
- An unwired one - only keeps track of those filters that have a value ($appliedFilters). This is what is bound to the query string, and populates the filters on mount if they are present in the query string.

- Livewire 3 Specific
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"blade-ui-kit/blade-heroicons": "^2.1",
"illuminate/contracts": "^10.0|^11.0|^12.0",
"illuminate/support": "^10.0|^11.0|^12.0",
"livewire/livewire": "^3.0|dev-main"
"livewire/livewire": "*"
},
"require-dev": {
"ext-sqlite3": "*",
Expand Down
15 changes: 15 additions & 0 deletions docs/columns/available-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,21 @@ Column::make('Name')
->setColumnLabelStatusEnabled()
```

### Hiding On Reorder

You may set a Column to be hidden when reordering, this is often effective when you have complex columns that are not relevant to reordering.

As pagination is disabled during reordering, returning a minimal set of columns dramatically improves efficiency.

By default, all Selected Columns are displayed when reordering.

```php
Column::make('Name')
->hideOnReorder()
```



## See Also
[Column Styling](./styling)

97 changes: 0 additions & 97 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,97 +0,0 @@
parameters:
ignoreErrors:
-
message: '#^Offset ''1'' on array\<string, non\-empty\-list\> in empty\(\) does not exist\.$#'
identifier: empty.offset
count: 1
path: src/DataTableComponent.php

-
message: '#^Offset ''99'' on array\<string, non\-empty\-list\> in isset\(\) does not exist\.$#'
identifier: isset.offset
count: 1
path: src/DataTableComponent.php

-
message: '#^Offset ''99'' on non\-empty\-array\<1\|string, list\> in isset\(\) does not exist\.$#'
identifier: isset.offset
count: 1
path: src/DataTableComponent.php

-
message: '#^Parameter \#1 \$view of function view expects view\-string\|null, string given\.$#'
identifier: argument.type
count: 1
path: src/DataTableComponent.php

-
message: '#^Property Rappasoft\\LaravelLivewireTables\\DataTableComponent\:\:\$model has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/DataTableComponent.php

-
message: '#^Parameter \#1 \$view of function view expects view\-string\|null, string given\.$#'
identifier: argument.type
count: 1
path: src/View/Components/FilterPill.php

-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
count: 1
path: src/Views/Action.php

-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
count: 1
path: src/Views/Column.php

-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
count: 1
path: src/Views/Filter.php

-
message: '#^Parameter \#1 \$callback of method Illuminate\\Support\\Collection\<int,string\>\:\:filter\(\) expects \(callable\(string, int\)\: bool\)\|null, Closure\(mixed\)\: int\<0, max\> given\.$#'
identifier: argument.type
count: 1
path: src/Views/Filters/MultiSelectDropdownFilter.php

-
message: '#^Unable to resolve the template type TMapWithKeysKey in call to method Illuminate\\Support\\Collection\<\(int\|string\),mixed\>\:\:mapWithKeys\(\)$#'
identifier: argument.templateType
count: 1
path: src/Views/Filters/MultiSelectDropdownFilter.php

-
message: '#^Unable to resolve the template type TMapWithKeysValue in call to method Illuminate\\Support\\Collection\<\(int\|string\),mixed\>\:\:mapWithKeys\(\)$#'
identifier: argument.templateType
count: 1
path: src/Views/Filters/MultiSelectDropdownFilter.php

-
message: '#^Parameter \#1 \$callback of method Illuminate\\Support\\Collection\<int,string\>\:\:filter\(\) expects \(callable\(string, int\)\: bool\)\|null, Closure\(mixed\)\: int\<0, max\> given\.$#'
identifier: argument.type
count: 1
path: src/Views/Filters/MultiSelectFilter.php

-
message: '#^Parameter \#1 \$callback of method Illuminate\\Support\\Collection\<int,string\>\:\:filter\(\) expects \(callable\(string, int\)\: bool\)\|null, Closure\(mixed\)\: int\<0, max\> given\.$#'
identifier: argument.type
count: 1
path: src/Views/Filters/NumberRangeFilter.php

-
message: '#^Unable to resolve the template type TMapWithKeysKey in call to method Illuminate\\Support\\Collection\<\(int\|string\),mixed\>\:\:mapWithKeys\(\)$#'
identifier: argument.templateType
count: 1
path: src/Views/Filters/SelectFilter.php

-
message: '#^Unable to resolve the template type TMapWithKeysValue in call to method Illuminate\\Support\\Collection\<\(int\|string\),mixed\>\:\:mapWithKeys\(\)$#'
identifier: argument.templateType
count: 1
path: src/Views/Filters/SelectFilter.php
36 changes: 13 additions & 23 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,21 @@ parameters:
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- identifier: missingType.generics
- identifier: missingType.iterableValue
- identifier: trait.unused
- identifier: deadCode.unreachable
- identifier: booleanNot.alwaysTrue
paths:
- src/Views/Columns/Traits/HasDataTableComponent.php
- identifier: notIdentical.alwaysTrue
paths:
- src/Traits/Filters/Helpers/FilterPillsHelpers.php
- src/Traits/Helpers/CustomisationsHelpers.php
- src/Traits/Helpers/QueryHelpers.php
- src/Views/Columns/Traits/HasSlot.php
- src/Views/Columns/Traits/Helpers/ArrayColumnHelpers.php
- identifier: instanceof.alwaysTrue
paths:
- src/Views/Columns/Traits/HasFooter.php
- src/Views/Columns/Traits/HasSecondaryHeader.php
- identifier: argument.type
- identifier: argument.templateType
- identifier: new.static
- identifier: function.alreadyNarrowedType
paths:
- src/Views/Columns/Traits/Helpers/ArrayColumnHelpers.php
- src/Features/AutoInjectRappasoftAssets.php
- src/Traits/WithBulkActions.php
- src/Views/Actions/Traits/HasActionAttributes.php
- src/Views/Filters/MultiSelectDropdownFilter.php
- src/Views/Filters/Traits/HasOptions.php
- src/Views/Traits/Core/HasTheme.php
- src/Views/Traits/Core/HasView.php
- identifier: missingType.generics
paths:
- src/Traits/WithData.php
- identifier: empty.offset
paths:
- src/Traits/Filters/Helpers/FilterMenuHelpers.php
- identifier: isset.offset
paths:
- src/Traits/Filters/Helpers/FilterMenuHelpers.php
- message: '# \$view of function view expects view-string\|null, string given.#'
Loading
Loading