Skip to content
Merged

v3.7.0 #2197

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
edbaf69
Enable setting styles for column select (button and menu option check…
HussamAlhennawi Jan 14, 2025
7f2beaa
Merge pull request #2175 from HussamAlhennawi/configuration-for-colum…
lrljoe Jan 16, 2025
19ebe02
Fix styling
lrljoe Jan 16, 2025
4f0c1c2
Enable setting styles for filter pills (item, reset button and reset …
HussamAlhennawi Jan 17, 2025
52a80ef
Enable setting styles for sorting pills (item, clear sort button and …
HussamAlhennawi Jan 18, 2025
a941a16
Merge pull request #2179 from HussamAlhennawi/configuration-for-sorti…
lrljoe Jan 18, 2025
e58bfba
Merge pull request #2178 from HussamAlhennawi/configuration-for-filte…
lrljoe Jan 18, 2025
06ee93d
Add "after-tools" configurable area
lrljoe Jan 19, 2025
74f6a5f
Adjust configurable areas test
lrljoe Jan 19, 2025
bdf338e
Fix Search Field in bootstrap
yparitcher Jan 20, 2025
31561e5
ConfigurableArea Test Tidying
lrljoe Jan 23, 2025
731349b
Fix styling
lrljoe Jan 23, 2025
9259ceb
Add PHPDoc
lrljoe Jan 24, 2025
880f583
Fix styling
lrljoe Jan 24, 2025
5968c00
Merge pull request #2180 from LowerRockLabs/AddAfterToolsConfigurable…
lrljoe Jan 24, 2025
5b23dfb
Merge pull request #2183 from sheavescapital/css
lrljoe Jan 24, 2025
424ab84
Filter Trait - Reorganization (#2181)
lrljoe Jan 24, 2025
3f18055
Filters urgent fixes - correct Filter Default QueryString (#2188)
lrljoe Jan 26, 2025
d56dc78
Move Filter View Traits (#2189)
lrljoe Jan 26, 2025
203d7ad
Filter Rationalisation & Livewire Array Filter improvements (#2191)
lrljoe Feb 9, 2025
c5b63fc
Migrate Column/Filter Traits (#2202)
lrljoe Feb 16, 2025
b2d36c5
BulkActionTweaks - Adding default checkbox, customising attribute beh…
lrljoe Feb 16, 2025
b14f456
Add setFilterPillTitleAsHtml (#2204)
lrljoe Feb 16, 2025
ae34672
Tweak Return Types (#2205)
lrljoe Feb 16, 2025
3ecfb1d
Tweak for text pill title (#2206)
lrljoe Feb 17, 2025
6fe770b
Update for v12 support (#2217)
lrljoe Feb 27, 2025
7542020
Update ChangeLog (#2218)
lrljoe Feb 28, 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
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .github/workflows/run-phpstan-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-24.04]
php: [8.3]
laravel: [11]
os: [ubuntu-latest]
php: [8.4]
laravel: [12]
stability: [prefer-dist]

name: PHPStan - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down Expand Up @@ -77,10 +77,10 @@ jobs:

- name: Update dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer update --${{ matrix.stability }} --no-interaction
run: composer update --${{ matrix.stability }} --no-interaction -W

- name: Install PHPStan
run: composer require larastan/larastan:^2.0 --no-interaction
run: composer require larastan/larastan:^3.0 --no-interaction -W

- uses: actions/cache@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/run-phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-24.04]
php: [8.3]
laravel: [11]
os: [ubuntu-latest]
php: [8.4]
laravel: [12]
stability: [prefer-dist]

name: PHPStan - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down Expand Up @@ -80,10 +80,10 @@ jobs:

- name: Update dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer update --${{ matrix.stability }} --no-interaction
run: composer update --${{ matrix.stability }} --no-interaction -W

- name: Install PHPStan
run: composer require larastan/larastan:^2.0 --dev --no-interaction
run: composer require larastan/larastan:^3.0 --dev --no-interaction -W

- uses: actions/cache@v4
with:
Expand Down
85 changes: 84 additions & 1 deletion .github/workflows/run-tests-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
max-parallel: 2
matrix:
os: [ubuntu-latest]
php: [8.2, 8.3, 8.4]
php: [8.2, 8.3]
laravel: [10.*]
stability: [prefer-dist]

Expand Down Expand Up @@ -172,3 +172,86 @@ jobs:

- name: Run Visuals Tests
run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage

test-laravel12:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 2
matrix:
os: [ubuntu-latest]
php: [8.2, 8.3, 8.4]
laravel: [12.*]
stability: [prefer-dist]

name: PULL PHP-${{ matrix.php }} - Laravel-12
env:
extensionKey: phpextensions-${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo, :psr

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup cache environment
id: extcache
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
key: ${{ env.extensionKey }}

- name: Cache extensions
uses: actions/cache@v4
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ matrix.os }}-${{ steps.extcache.outputs.key }}
restore-keys: ${{ matrix.os }}-${{ steps.extcache.outputs.key }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
tools: phpunit:latest
ini-values: memory_limit=512M
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"

- name: Get composer cache directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}-composer-

- name: Add token
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer config github-oauth.github.com $GITHUB_TOKEN

- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer require "laravel/framework:${{ matrix.laravel }}.*" --no-interaction --no-update

- name: Update dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer update --${{ matrix.stability }} --no-interaction

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Run Unit Tests
run: php ./vendor/bin/paratest --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage

- name: Run Visuals Tests
run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage
85 changes: 84 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
max-parallel: 2
matrix:
os: [ubuntu-24.04]
php: [8.2, 8.3, 8.4]
php: [8.2, 8.3]
laravel: [10.*]
stability: [prefer-dist]

Expand Down Expand Up @@ -174,3 +174,86 @@ jobs:

- name: Run Visuals Tests
run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage

test-laravel12:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 2
matrix:
os: [ubuntu-24.04]
php: [8.2, 8.3, 8.4]
laravel: [12.*]
stability: [prefer-dist]

name: PHP-${{ matrix.php }} - Laravel-12
env:
extensionKey: phpextensions-${{ matrix.os }}-P${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo, :psr

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup cache environment
id: extcache
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
key: ${{ env.extensionKey }}

- name: Cache extensions
uses: actions/cache@v4
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ matrix.os }}-${{ steps.extcache.outputs.key }}
restore-keys: ${{ matrix.os }}-${{ steps.extcache.outputs.key }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
tools: phpunit:latest
ini-values: memory_limit=512M
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"

- name: Get composer cache directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-

- name: Add token
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer config github-oauth.github.com $GITHUB_TOKEN

- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer require "laravel/framework:${{ matrix.laravel }}.*" --no-interaction --no-update

- name: Update dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer update --${{ matrix.stability }} --no-interaction

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Run Unit Tests
run: php ./vendor/bin/paratest --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage

- name: Run Visuals Tests
run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,30 @@

All notable changes to `laravel-livewire-tables` will be documented in this file

## [v3.7.0] - 2025-02-27

## [v3.6.0] - UNRELEASED
### Bug Fixes
- Filters urgent fixes - correct Filter Default QueryString by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2188
- Fix Search Field in bootstrap by @yparitcher in https://github.com/rappasoft/laravel-livewire-tables/pull/2183
- Add "after-tools" configurable area by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2180

### New Features
- Add setFilterPillTitleAsHtml by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2204
- Enable setting styles for sorting pills as a configuration by @HussamAlhennawi in https://github.com/rappasoft/laravel-livewire-tables/pull/2179
- Enable setting styles for filter pills as a configuration by @HussamAlhennawi in https://github.com/rappasoft/laravel-livewire-tables/pull/2178
- Enable setting styles for column select as a configuration by @HussamAlhennawi in https://github.com/rappasoft/laravel-livewire-tables/pull/2175
- BulkActionTweaks - Adding default checkbox, customising attribute behaviours by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2203
- Laravel v12 Support by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2217

### Tweaks
- Tweak for text pill title by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2206
- Tweak Return Types by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2205
- Migrate Column/Filter Traits by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2202
- Filter Rationalisation & Livewire Array Filter improvements by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2191
- Move Filter View Traits by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2189
- Filter Trait - Reorganization by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2181

## [v3.6.0] - 2025-01-16

### Bug Fixes
- Ensure Default Sorting Is Shown in Pills by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2138
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
}
],
"require": {
"php": "^8.1|^8.2|^8.3",
"php": "^8.1|^8.2|^8.3|^8.4",
"blade-ui-kit/blade-heroicons": "^2.1",
"illuminate/contracts": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0",
"illuminate/contracts": "^10.0|^11.0|^12.0",
"illuminate/support": "^10.0|^11.0|^12.0",
"livewire/livewire": "^3.0|dev-main"
},
"require-dev": {
"ext-sqlite3": "*",
"brianium/paratest": "^5.0|^6.0|^7.0|^8.0",
"brianium/paratest": "^5.0|^6.0|^7.0|^8.0|^9.0",
"larastan/larastan": "^2.6|^3.0",
"laravel/pint": "^1.10",
"monolog/monolog": "*",
"nunomaduro/collision": "^6.0|^7.0|^8.0",
"larastan/larastan": "^2.6",
"orchestra/testbench": "^7.0|^8.0|^9.0",
"phpunit/phpunit": "^9.0|^10.0|^11.0"
"nunomaduro/collision": "^6.0|^7.0|^8.0|^9.0",
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
"phpunit/phpunit": "^9.0|^10.0|^11.0|^12.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions docs/column-types/array_column.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ weight: 2

Array columns provide an easy way to work with and display an array of data from a field.

```
```php
ArrayColumn::make('notes', 'name')
->data(fn($value, $row) => ($row->notes))
->outputFormat(fn($index, $value) => "<a href='".$value->id."'>".$value->name."</a>")
Expand All @@ -16,7 +16,7 @@ ArrayColumn::make('notes', 'name')
### Empty Value
You may define the default/empty value using the "emptyValue" method

```
```php
ArrayColumn::make('notes', 'name')
->emptyValue('Unknown'),
```
Expand Down
2 changes: 1 addition & 1 deletion docs/column-types/avg_column.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ weight: 3

Avg columns provide an easy way to display the "Average" of a field on a relation.

```
```php
AvgColumn::make('Average Related User Age')
->setDataSource('users','age')
->sortable(),
Expand Down
2 changes: 1 addition & 1 deletion docs/column-types/count_column.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ weight: 8

Count columns provide an easy way to display the "Count" of a relation.

```
```php
CountColumn::make('Related Users')
->setDataSource('users')
->sortable(),
Expand Down
2 changes: 1 addition & 1 deletion docs/column-types/livewire_component_column.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Livewire Component Columns allow for the use of a Livewire Component as a Column
This is **not recommended** as due to the nature of Livewire, it becomes inefficient at scale.

## component
```
```php
LivewireComponentColumn::make('Action')
->component('PathToLivewireComponent'),

Expand Down
Loading