Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
30d65ac
Add explanation of setRefreshMethod (#1857)
lrljoe Aug 16, 2024
b3137d9
Unlocking Entangled Items (#1859)
lrljoe Aug 17, 2024
b6890e9
Add dispatch on updated filter components (#1861)
lrljoe Aug 18, 2024
fb646a5
v3.4.8
lrljoe Aug 18, 2024
4a18b05
Merge branch 'master' into development
lrljoe Aug 18, 2024
8eafffe
Fix superfluous bulk actions tr < (#1868)
lrljoe Aug 21, 2024
d1a563f
Default useComputedProperties to False (#1869)
lrljoe Aug 21, 2024
da50aa1
Update ChangeLog
lrljoe Aug 21, 2024
1ff4126
Merge branch 'master' into development
lrljoe Aug 21, 2024
74c35e2
Add Action Buttons (#1864)
lrljoe Aug 21, 2024
46d2752
FixDateRangeFilter (#1872)
lrljoe Aug 23, 2024
7aa4268
Adjust Methods - useComputedProperties (#1873)
lrljoe Aug 23, 2024
3456674
Update ChangeLog
lrljoe Aug 23, 2024
6480f1a
Merge branch 'master' into development
lrljoe Aug 23, 2024
32fe628
AllowDeleteDateRangeFilter (#1875)
lrljoe Aug 23, 2024
1f0c14d
Fix ChangeLog
lrljoe Aug 23, 2024
b80be2d
Update Docs (#1876)
lrljoe Aug 23, 2024
f0c5d04
Update ChangeLog - Add Docs Update
lrljoe Aug 23, 2024
ec5401a
Add setIconLeft/setIconRight (#1877)
lrljoe Aug 23, 2024
ae019cf
Adjust ChangeLog
lrljoe Aug 23, 2024
8e33fba
Merge branch 'master' into development
lrljoe Aug 23, 2024
edc7ea3
Adjust Action Button Icon Margin (#1880)
lrljoe Aug 23, 2024
79cf988
Merge branch 'master' into development
lrljoe Aug 23, 2024
6766707
Change Order of "Getting Started" section (#1883)
lrljoe Aug 24, 2024
39c5032
Add Button with No Icon (#1887)
lrljoe Aug 25, 2024
918bd31
Add a "Recommended" approach (#1886)
lrljoe Aug 25, 2024
1d18cb2
v3.4.13
lrljoe Aug 25, 2024
683666f
Merge branch 'master' into development
lrljoe Aug 25, 2024
8cafe98
Set actions position (#1889)
lrljoe Aug 25, 2024
5007627
Update ChangeLog
lrljoe Aug 25, 2024
b927a98
Merge branch 'master' into development
lrljoe Aug 25, 2024
d0da3b1
Doc Type Fixes (#1891)
lrljoe Aug 25, 2024
2a977ec
BooleanColumn - Toggleable Callback (#1892)
lrljoe Aug 25, 2024
a61ba21
Update ChangeLog
lrljoe Aug 25, 2024
e1acab7
Merge branch 'master' into development
lrljoe Aug 25, 2024
c14692b
Enable/Disable Tools/Toolbar (#1896)
lrljoe Aug 26, 2024
84eaf9b
Use Computed Properties By Default (#1898)
lrljoe Aug 26, 2024
0b0d9cb
Fix has actions (#1901)
lrljoe Aug 26, 2024
0882827
Add icon column (#1902)
lrljoe Aug 27, 2024
6ff95af
Add Baseline - Convert phpstan.neon to tabs (#1903)
lrljoe Aug 27, 2024
ce76b40
Update ChangeLog
lrljoe Aug 27, 2024
244951b
Merge branch 'master' into development
lrljoe Aug 27, 2024
570abdc
Save filter selection to session (BETA) (#1910)
lrljoe Sep 1, 2024
1f076af
Add hide table option (#1914)
lrljoe Sep 1, 2024
bf84029
Add column select session methods (#1913)
lrljoe Sep 1, 2024
2ebaf3b
Use Core HasTheme Methods (#1915)
lrljoe Sep 1, 2024
2322e8d
Use Core Attribute Bag (#1916)
lrljoe Sep 1, 2024
ed64834
Merge branch 'master' into development
lrljoe Sep 1, 2024
a63fb44
Fix ChangeLog
lrljoe Sep 1, 2024
2fd6014
Add Polish translation by @meavric (#1925)
lrljoe Sep 4, 2024
a7b1f68
Merge branch 'master' into development
lrljoe Sep 4, 2024
3a04d51
Add Vertical Scrolling Example (#1926)
lrljoe Sep 4, 2024
2a4b2d1
Adjusting contributing
lrljoe Sep 4, 2024
f1e041e
Fix missing variable in workflow (#1933)
lrljoe Sep 8, 2024
5b326cc
Fixes for ButtonGroupColumn, ImageColumn, LinkColumn - to not default…
lrljoe Sep 8, 2024
82e6e70
Add button type to tailwind pagination blade template (#1928)
matzeschmitt Sep 8, 2024
d5bdd7b
v3.4.19 ChangeLog
lrljoe Sep 8, 2024
1be3aad
Merge branch 'master' into development
lrljoe Sep 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run-tests-pcov-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.3]
laravel: [10]
laravel: [11]
stability: [prefer-dist]

name: PCOV - ${{ matrix.os }} - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-tests-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

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

steps:
Expand All @@ -48,7 +48,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
tools: phpunit:latest
tools: phpunit:9.6
ini-values: memory_limit=512M
coverage: none
env:
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Run Unit Tests
run: php ./vendor/bin/paratest --no-coverage --processes=4
run: php ./vendor/bin/phpunit --no-coverage


test-laravel11:
Expand All @@ -100,7 +100,7 @@ jobs:

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

steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

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

steps:
Expand All @@ -49,7 +49,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
tools: phpunit:latest
tools: phpunit:9.6
ini-values: memory_limit=512M
coverage: none
env:
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:

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

steps:
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

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

## [v3.4.18] - 2024-09-04
## [v3.4.19] - 2024-09-08
### Bug Fixes
- Adjustment for Laravel 10 GH Workflows by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1933
- Fixes for ButtonGroupColumn, ImageColumn, LinkColumn - to not default as label if has a "from" property. by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1932
- Add button type to tailwind pagination blade template by @matzeschmitt in https://github.com/rappasoft/laravel-livewire-tables/pull/1928

## [v3.4.18] - 2024-09-08
### New Features
- Added translation to Polish by @meavric in https://github.com/rappasoft/laravel-livewire-tables/pull/1925

Expand Down
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
colors="false"
cacheResult="false"
executionOrder="random"
failOnWarning="false"
failOnRisky="false"
failOnEmptyTestSuite="false"
beStrictAboutOutputDuringTests="true" >
Expand Down
10 changes: 5 additions & 5 deletions resources/views/specific/tailwind/pagination.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
{!! __('pagination.previous') !!}
</span>
@else
<button wire:click="previousPage('{{ $paginator->getPageName() }}')" wire:loading.attr="disabled" dusk="previousPage{{ $paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName() }}.before" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600">
<button type="button" wire:click="previousPage('{{ $paginator->getPageName() }}')" wire:loading.attr="disabled" dusk="previousPage{{ $paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName() }}.before" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600">
{!! __('pagination.previous') !!}
</button>
@endif
</span>

<span>
@if ($paginator->hasMorePages())
<button wire:click="nextPage('{{ $paginator->getPageName() }}')" wire:loading.attr="disabled" dusk="nextPage{{ $paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName() }}.before" class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600">
<button type="button" wire:click="nextPage('{{ $paginator->getPageName() }}')" wire:loading.attr="disabled" dusk="nextPage{{ $paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName() }}.before" class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600">
{!! __('pagination.next') !!}
</button>
@else
Expand All @@ -43,7 +43,7 @@
</span>
</span>
@else
<button wire:click="previousPage('{{ $paginator->getPageName() }}')" dusk="previousPage{{ $paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName() }}.after" rel="prev" class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600" aria-label="{{ __('pagination.previous') }}">
<button type="button" wire:click="previousPage('{{ $paginator->getPageName() }}')" dusk="previousPage{{ $paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName() }}.after" rel="prev" class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600" aria-label="{{ __('pagination.previous') }}">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
</svg>
Expand All @@ -70,7 +70,7 @@
<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-gray-100 border border-gray-300 cursor-default leading-5 dark:bg-gray-500 dark:text-white dark:border-gray-500">{{ $page }}</span>
</span>
@else
<button wire:click="gotoPage({{ $page }}, '{{ $paginator->getPageName() }}')" class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 hover:text-gray-500 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600" aria-label="{{ __('Go to page :page', ['page' => $page]) }}">
<button type="button" wire:click="gotoPage({{ $page }}, '{{ $paginator->getPageName() }}')" class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 hover:text-gray-500 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600" aria-label="{{ __('Go to page :page', ['page' => $page]) }}">
{{ $page }}
</button>
@endif
Expand All @@ -83,7 +83,7 @@
<span>
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<button wire:click="nextPage('{{ $paginator->getPageName() }}')" dusk="nextPage{{ $paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName() }}.after" rel="next" class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600" aria-label="{{ __('pagination.next') }}">
<button type="button" wire:click="nextPage('{{ $paginator->getPageName() }}')" dusk="nextPage{{ $paginator->getPageName() == 'page' ? '' : '.' . $paginator->getPageName() }}.after" rel="next" class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150 dark:bg-gray-700 dark:text-white dark:ring-gray-600 dark:border-gray-600 dark:hover:bg-gray-600" aria-label="{{ __('pagination.next') }}">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
</svg>
Expand Down
4 changes: 3 additions & 1 deletion src/Views/Columns/ButtonGroupColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public function __construct(string $title, ?string $from = null)
{
parent::__construct($title, $from);

$this->label(fn () => null);
if (! isset($from)) {
$this->label(fn () => null);
}
}

public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|\Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
Expand Down
4 changes: 3 additions & 1 deletion src/Views/Columns/ImageColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ class ImageColumn extends Column
public function __construct(string $title, ?string $from = null)
{
parent::__construct($title, $from);
if (! isset($from)) {
$this->label(fn () => null);
}

$this->label(fn () => null);
}

public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
Expand Down
4 changes: 3 additions & 1 deletion src/Views/Columns/LinkColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public function __construct(string $title, ?string $from = null)
{
parent::__construct($title, $from);

$this->label(fn () => null);
if (! isset($from)) {
$this->label(fn () => null);
}
}

public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
Expand Down
Loading