diff --git a/CHANGELOG.md b/CHANGELOG.md index 09fe0689f..17fb0068f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,20 +6,22 @@ All notable changes to `laravel-livewire-tables` will be documented in this file ### Changed - General - - Add capability for passing a custom model path to the MakeCommand - - Add setFilterDefaultValue() on a per-component basis - - Add getFilterDefaultValue() to each Filter Component (to maintain support for PHP7.4 - variable return types) - - Moved Setting of Filter Defaults to Traits/Helpers/FilterHelpers - mountFilterHelpers - - Moved Setting of Theme to Traits/ComponentUtilities - mountComponentUtilities for efficiency - - Fix for TypeHint to allow continued support of PHP 7.4 + - Migrate to AlpineJS for Bulk Actions - https://github.com/rappasoft/laravel-livewire-tables/pull/1196 + - Add capability for passing a custom model path to the MakeCommand - https://github.com/rappasoft/laravel-livewire-tables/pull/1168 + - Add setFilterDefaultValue() on a per-component basis - https://github.com/rappasoft/laravel-livewire-tables/pull/1191 + - Add getFilterDefaultValue() to each Filter Component (to maintain support for PHP7.4 - variable return types) - https://github.com/rappasoft/laravel-livewire-tables/pull/1191 + - Moved Setting of Filter Defaults to Traits/Helpers/FilterHelpers - mountFilterHelpers - https://github.com/rappasoft/laravel-livewire-tables/pull/1191 + - Moved Setting of Theme to Traits/ComponentUtilities - mountComponentUtilities for efficiency - https://github.com/rappasoft/laravel-livewire-tables/pull/1191 - Filters - *Fix* - Changed the booting order to prevent repeated calling of filters() - https://github.com/rappasoft/laravel-livewire-tables/pull/1166 - *Fix* - fixed multiSelectDropdownFilter in menus - https://github.com/rappasoft/laravel-livewire-tables/pull/1160 + - *Fix* - TypeHint to allow continued support of PHP 7.4 - https://github.com/rappasoft/laravel-livewire-tables/pull/1185 - Documentation - *Fix* - Minor wording tweak to documentation - https://github.com/rappasoft/laravel-livewire-tables/pull/1139 - - *Fix* - Fix to example in applying-filters + - *Fix* - Fix to example in applying-filters - https://github.com/rappasoft/laravel-livewire-tables/pull/1171 + - Improved template for New Issue/Bug - https://github.com/rappasoft/laravel-livewire-tables/pull/1194 - Tests - Restore PHP 7.4 tests for L8 only (includes minor tweaks) diff --git a/resources/views/components/pagination.blade.php b/resources/views/components/pagination.blade.php index 411b4a2de..51c932320 100644 --- a/resources/views/components/pagination.blade.php +++ b/resources/views/components/pagination.blade.php @@ -6,11 +6,13 @@ @endphp @if ($component->hasConfigurableAreaFor('before-pagination')) - @include($component->getConfigurableAreaFor('before-pagination'), $component->getParametersForConfigurableArea('before-pagination')) + @include( + $component->getConfigurableAreaFor('before-pagination'), + $component->getParametersForConfigurableArea('before-pagination')) @endif @if ($theme === 'tailwind') -
+
@if ($component->paginationVisibilityIsEnabled())
@@ -47,7 +49,7 @@ @endif
@elseif ($theme === 'bootstrap-4') -
+
@if ($component->paginationVisibilityIsEnabled()) @if ($component->paginationIsEnabled() && $component->isPaginationMethod('standard') && $rows->lastPage() > 1)
@@ -90,7 +92,7 @@ @endif
@elseif ($theme === 'bootstrap-5') -
+
@if ($component->paginationVisibilityIsEnabled()) @if ($component->paginationIsEnabled() && $component->isPaginationMethod('standard') && $rows->lastPage() > 1)
@@ -135,5 +137,7 @@ @endif @if ($component->hasConfigurableAreaFor('after-pagination')) - @include($component->getConfigurableAreaFor('after-pagination'), $component->getParametersForConfigurableArea('after-pagination')) + @include( + $component->getConfigurableAreaFor('after-pagination'), + $component->getParametersForConfigurableArea('after-pagination')) @endif diff --git a/resources/views/components/table/td/bulk-actions.blade.php b/resources/views/components/table/td/bulk-actions.blade.php index 3fa484049..34b7a6c73 100644 --- a/resources/views/components/table/td/bulk-actions.blade.php +++ b/resources/views/components/table/td/bulk-actions.blade.php @@ -10,32 +10,32 @@
@elseif ($theme === 'bootstrap-4') @elseif ($theme === 'bootstrap-5')
diff --git a/resources/views/components/table/tr/bulk-actions.blade.php b/resources/views/components/table/tr/bulk-actions.blade.php index cea9f187c..37a2e0c38 100644 --- a/resources/views/components/table/tr/bulk-actions.blade.php +++ b/resources/views/components/table/tr/bulk-actions.blade.php @@ -1,23 +1,24 @@ @aware(['component']) @props(['rows']) -@if ($component->bulkActionsAreEnabled() && $component->hasBulkActions() && $component->hasSelected()) +@if ($component->bulkActionsAreEnabled() && $component->hasBulkActions()) @php $table = $component->getTableName(); $theme = $component->getTheme(); $colspan = $component->getColspanCount(); $selected = $component->getSelectedCount(); $selectAll = $component->selectAllIsEnabled(); - $simplePagination = ($component->paginationMethod == "simple") ? true : false; + $simplePagination = $component->paginationMethod == 'simple' ? true : false; @endphp @if ($theme === 'tailwind') - - @if ($selectAll) + +