diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f3165858..be3d9db34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `laravel-livewire-tables` will be documented in this file +## [v3.5.9] - 2024-12-11 +### Tweaks +- Optimize Imports by @edwinvdpol in https://github.com/rappasoft/laravel-livewire-tables/pull/2124 + ## [v3.5.8] - 2024-12-10 ### New Features - Set bulk action row button attributes by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2117 diff --git a/resources/lang/php/sv/core.php b/resources/lang/php/sv/core.php index 002c64dfe..b3630fe7c 100644 --- a/resources/lang/php/sv/core.php +++ b/resources/lang/php/sv/core.php @@ -2,13 +2,13 @@ return [ 'All' => 'Alla', - 'All Columns' => 'Alla Columner', + 'All Columns' => 'Alla Kolumner', 'Applied Filters' => 'Valda filter', 'Applied Sorting' => 'Vald sortering', 'Bulk Actions' => 'Bulk Modifiering', 'Bulk Actions Confirm' => 'Är du säker?', 'Clear' => 'Rensa', - 'Columns' => 'Columner', + 'Columns' => 'Kolumner', 'Debugging Values' => 'Debug Värden', 'Deselect All' => 'Avmarkera alla', 'Done Reordering' => 'Omordning klart', diff --git a/src/Commands/MakeCommand.php b/src/Commands/MakeCommand.php index 97120c800..bf06570ae 100644 --- a/src/Commands/MakeCommand.php +++ b/src/Commands/MakeCommand.php @@ -5,7 +5,6 @@ use Illuminate\Console\Command; use Illuminate\Contracts\Console\PromptsForMissingInput; use Illuminate\Database\Eloquent\Model; -use Illuminate\Support\Collection; use Illuminate\Support\Facades\File; use Illuminate\Support\Str; use Livewire\Features\SupportConsoleCommands\Commands\ComponentParser; diff --git a/src/Traits/ComponentUtilities.php b/src/Traits/ComponentUtilities.php index a8aa3832e..89607fe66 100644 --- a/src/Traits/ComponentUtilities.php +++ b/src/Traits/ComponentUtilities.php @@ -3,7 +3,6 @@ namespace Rappasoft\LaravelLivewireTables\Traits; use Illuminate\Database\Eloquent\Builder; -use Illuminate\Support\Str; use Livewire\Attributes\Locked; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; use Rappasoft\LaravelLivewireTables\Traits\Configuration\ComponentConfiguration; diff --git a/src/Traits/Configuration/ColumnConfiguration.php b/src/Traits/Configuration/ColumnConfiguration.php index 29bfadabd..57de0b9f4 100644 --- a/src/Traits/Configuration/ColumnConfiguration.php +++ b/src/Traits/Configuration/ColumnConfiguration.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Traits\Configuration; -use Rappasoft\LaravelLivewireTables\Views\Column; - trait ColumnConfiguration { public function setPrependedColumns(array $prependedColumns): void diff --git a/src/Traits/Configuration/FooterConfiguration.php b/src/Traits/Configuration/FooterConfiguration.php index b84193312..2a32b6fa3 100644 --- a/src/Traits/Configuration/FooterConfiguration.php +++ b/src/Traits/Configuration/FooterConfiguration.php @@ -2,6 +2,8 @@ namespace Rappasoft\LaravelLivewireTables\Traits\Configuration; +use Closure; + trait FooterConfiguration { public function setFooterStatus(bool $status): self @@ -46,14 +48,14 @@ public function setUseHeaderAsFooterDisabled(): self return $this; } - public function setFooterTrAttributes(\Closure $callback): self + public function setFooterTrAttributes(Closure $callback): self { $this->footerTrAttributesCallback = $callback; return $this; } - public function setFooterTdAttributes(\Closure $callback): self + public function setFooterTdAttributes(Closure $callback): self { $this->footerTdAttributesCallback = $callback; diff --git a/src/Traits/Configuration/SecondaryHeaderConfiguration.php b/src/Traits/Configuration/SecondaryHeaderConfiguration.php index 62acb5992..42ce2f574 100644 --- a/src/Traits/Configuration/SecondaryHeaderConfiguration.php +++ b/src/Traits/Configuration/SecondaryHeaderConfiguration.php @@ -2,6 +2,8 @@ namespace Rappasoft\LaravelLivewireTables\Traits\Configuration; +use Closure; + trait SecondaryHeaderConfiguration { public function setSecondaryHeaderStatus(bool $status): self @@ -25,14 +27,14 @@ public function setSecondaryHeaderDisabled(): self return $this; } - public function setSecondaryHeaderTrAttributes(\Closure $callback): self + public function setSecondaryHeaderTrAttributes(Closure $callback): self { $this->secondaryHeaderTrAttributesCallback = $callback; return $this; } - public function setSecondaryHeaderTdAttributes(\Closure $callback): self + public function setSecondaryHeaderTdAttributes(Closure $callback): self { $this->secondaryHeaderTdAttributesCallback = $callback; diff --git a/src/Traits/Configuration/TableAttributeConfiguration.php b/src/Traits/Configuration/TableAttributeConfiguration.php index 2053d50d7..a675d3fc3 100644 --- a/src/Traits/Configuration/TableAttributeConfiguration.php +++ b/src/Traits/Configuration/TableAttributeConfiguration.php @@ -2,6 +2,8 @@ namespace Rappasoft\LaravelLivewireTables\Traits\Configuration; +use Closure; + trait TableAttributeConfiguration { /** @@ -68,7 +70,7 @@ public function setTbodyAttributes(array $attributes = []): self /** * Set a list of attributes to override on the th elements */ - public function setThAttributes(\Closure $callback): self + public function setThAttributes(Closure $callback): self { $this->thAttributesCallback = $callback; @@ -78,7 +80,7 @@ public function setThAttributes(\Closure $callback): self /** * Set a list of attributes to override on the th sort button elements */ - public function setThSortButtonAttributes(\Closure $callback): self + public function setThSortButtonAttributes(Closure $callback): self { $this->thSortButtonAttributesCallback = $callback; @@ -88,7 +90,7 @@ public function setThSortButtonAttributes(\Closure $callback): self /** * Set a list of attributes to override on the th sort icon elements */ - public function setThSortIconAttributes(\Closure $callback): self + public function setThSortIconAttributes(Closure $callback): self { $this->thSortIconAttributesCallback = $callback; @@ -98,7 +100,7 @@ public function setThSortIconAttributes(\Closure $callback): self /** * Set a list of attributes to override on the td elements */ - public function setTrAttributes(\Closure $callback): self + public function setTrAttributes(Closure $callback): self { $this->trAttributesCallback = $callback; @@ -108,21 +110,21 @@ public function setTrAttributes(\Closure $callback): self /** * Set a list of attributes to override on the td elements */ - public function setTdAttributes(\Closure $callback): self + public function setTdAttributes(Closure $callback): self { $this->tdAttributesCallback = $callback; return $this; } - public function setTableRowUrl(\Closure $callback): self + public function setTableRowUrl(Closure $callback): self { $this->trUrlCallback = $callback; return $this; } - public function setTableRowUrlTarget(\Closure $callback): self + public function setTableRowUrlTarget(Closure $callback): self { $this->trUrlTargetCallback = $callback; diff --git a/src/Traits/HasAllTraits.php b/src/Traits/HasAllTraits.php index cc80420e0..ebbe7a815 100644 --- a/src/Traits/HasAllTraits.php +++ b/src/Traits/HasAllTraits.php @@ -2,7 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Traits; -use Rappasoft\LaravelLivewireTables\Traits\Core\{HasCustomAttributes,HasLocalisations}; +use Rappasoft\LaravelLivewireTables\Traits\Core\{HasCustomAttributes, HasLocalisations}; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasTheme; trait HasAllTraits diff --git a/src/Traits/Helpers/FilterHelpers.php b/src/Traits/Helpers/FilterHelpers.php index 2ee7ed3db..a9265c6ec 100644 --- a/src/Traits/Helpers/FilterHelpers.php +++ b/src/Traits/Helpers/FilterHelpers.php @@ -2,7 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Traits\Helpers; -use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Livewire\Attributes\Computed; use Livewire\Attributes\On; diff --git a/src/Traits/Styling/Configuration/FilterMenuStylingConfiguration.php b/src/Traits/Styling/Configuration/FilterMenuStylingConfiguration.php index 4a68532d5..9a7a140b5 100644 --- a/src/Traits/Styling/Configuration/FilterMenuStylingConfiguration.php +++ b/src/Traits/Styling/Configuration/FilterMenuStylingConfiguration.php @@ -2,6 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration; +use Closure; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; trait FilterMenuStylingConfiguration @@ -29,7 +30,7 @@ public function setFilterSlidedownWrapperAttributes(array $filterSlidedownWrappe /** * Set a list of attributes to override on the th sort button elements */ - public function setFilterSlidedownRowAttributes(\Closure $callback): self + public function setFilterSlidedownRowAttributes(Closure $callback): self { $this->filterSlidedownRowCallback = $callback; diff --git a/src/Traits/Styling/HasFilterMenuStyling.php b/src/Traits/Styling/HasFilterMenuStyling.php index 03a6737b4..397409743 100644 --- a/src/Traits/Styling/HasFilterMenuStyling.php +++ b/src/Traits/Styling/HasFilterMenuStyling.php @@ -2,6 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Traits\Styling; +use Closure; use Livewire\Attributes\Locked; use Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration\FilterMenuStylingConfiguration; use Rappasoft\LaravelLivewireTables\Traits\Styling\Helpers\FilterMenuStylingHelpers; @@ -21,5 +22,5 @@ trait HasFilterMenuStyling protected array $filterSlidedownWrapperAttributes = ['class' => '', 'default-colors' => true, 'default-styling' => true]; - protected ?\Closure $filterSlidedownRowCallback; + protected ?Closure $filterSlidedownRowCallback; } diff --git a/src/Traits/Styling/Helpers/LoadingPlaceholderStylingHelpers.php b/src/Traits/Styling/Helpers/LoadingPlaceholderStylingHelpers.php index ef115641f..9cce416dd 100644 --- a/src/Traits/Styling/Helpers/LoadingPlaceholderStylingHelpers.php +++ b/src/Traits/Styling/Helpers/LoadingPlaceholderStylingHelpers.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Helpers; -use Livewire\Attributes\Computed; - trait LoadingPlaceholderStylingHelpers { public function getLoadingPlaceholderAttributes(): array diff --git a/src/Traits/Styling/Search/HasSearchInput.php b/src/Traits/Styling/Search/HasSearchInput.php index f937f5ef5..f4134be65 100644 --- a/src/Traits/Styling/Search/HasSearchInput.php +++ b/src/Traits/Styling/Search/HasSearchInput.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Search; -use Livewire\Attributes\Computed; - trait HasSearchInput { protected array $searchFieldAttributes = []; diff --git a/src/Traits/WithColumnSelect.php b/src/Traits/WithColumnSelect.php index 704d1bea5..d398967cc 100644 --- a/src/Traits/WithColumnSelect.php +++ b/src/Traits/WithColumnSelect.php @@ -6,7 +6,6 @@ use Rappasoft\LaravelLivewireTables\Events\ColumnsSelected; use Rappasoft\LaravelLivewireTables\Traits\Configuration\ColumnSelectConfiguration; use Rappasoft\LaravelLivewireTables\Traits\Helpers\ColumnSelectHelpers; -use Rappasoft\LaravelLivewireTables\Views\Column; trait WithColumnSelect { diff --git a/src/Traits/WithColumns.php b/src/Traits/WithColumns.php index 798ec205a..1e565ffe7 100644 --- a/src/Traits/WithColumns.php +++ b/src/Traits/WithColumns.php @@ -3,7 +3,6 @@ namespace Rappasoft\LaravelLivewireTables\Traits; use Illuminate\Support\Collection; -use Livewire\Attributes\Locked; use Rappasoft\LaravelLivewireTables\Exceptions\NoColumnsException; use Rappasoft\LaravelLivewireTables\Traits\Configuration\ColumnConfiguration; use Rappasoft\LaravelLivewireTables\Traits\Helpers\ColumnHelpers; diff --git a/src/Traits/WithFooter.php b/src/Traits/WithFooter.php index 8412d10fe..8f163dc93 100644 --- a/src/Traits/WithFooter.php +++ b/src/Traits/WithFooter.php @@ -2,6 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Traits; +use Closure; use Rappasoft\LaravelLivewireTables\Traits\Configuration\FooterConfiguration; use Rappasoft\LaravelLivewireTables\Traits\Helpers\FooterHelpers; @@ -16,9 +17,9 @@ trait WithFooter protected bool $columnsWithFooter = false; - protected ?\Closure $footerTrAttributesCallback; + protected ?Closure $footerTrAttributesCallback; - protected ?\Closure $footerTdAttributesCallback; + protected ?Closure $footerTdAttributesCallback; public function setupFooter(): void { diff --git a/src/Traits/WithReordering.php b/src/Traits/WithReordering.php index 2251fe2c4..006e7a715 100644 --- a/src/Traits/WithReordering.php +++ b/src/Traits/WithReordering.php @@ -2,7 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Traits; -use Livewire\Attributes\Locked; use Rappasoft\LaravelLivewireTables\Traits\Configuration\ReorderingConfiguration; use Rappasoft\LaravelLivewireTables\Traits\Helpers\ReorderingHelpers; diff --git a/src/Traits/WithSecondaryHeader.php b/src/Traits/WithSecondaryHeader.php index 30ab4a797..d3fe2f459 100644 --- a/src/Traits/WithSecondaryHeader.php +++ b/src/Traits/WithSecondaryHeader.php @@ -2,6 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Traits; +use Closure; use Rappasoft\LaravelLivewireTables\Traits\Configuration\SecondaryHeaderConfiguration; use Rappasoft\LaravelLivewireTables\Traits\Helpers\SecondaryHeaderHelpers; @@ -14,9 +15,9 @@ trait WithSecondaryHeader protected bool $columnsWithSecondaryHeader = false; - protected ?\Closure $secondaryHeaderTrAttributesCallback; + protected ?Closure $secondaryHeaderTrAttributesCallback; - protected ?\Closure $secondaryHeaderTdAttributesCallback; + protected ?Closure $secondaryHeaderTdAttributesCallback; public function bootedWithSecondaryHeader(): void { diff --git a/src/Traits/WithSorting.php b/src/Traits/WithSorting.php index 1ed30366e..67054e8a8 100644 --- a/src/Traits/WithSorting.php +++ b/src/Traits/WithSorting.php @@ -4,7 +4,6 @@ use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Collection; -use Livewire\Attributes\Locked; use Rappasoft\LaravelLivewireTables\Traits\Configuration\SortingConfiguration; use Rappasoft\LaravelLivewireTables\Traits\Core\QueryStrings\HasQueryStringForSort; use Rappasoft\LaravelLivewireTables\Traits\Helpers\SortingHelpers; diff --git a/src/Traits/WithTableAttributes.php b/src/Traits/WithTableAttributes.php index a0ce12c44..914783c83 100644 --- a/src/Traits/WithTableAttributes.php +++ b/src/Traits/WithTableAttributes.php @@ -3,7 +3,6 @@ namespace Rappasoft\LaravelLivewireTables\Traits; use Closure; -use Livewire\Attributes\On; use Rappasoft\LaravelLivewireTables\Traits\Configuration\TableAttributeConfiguration; use Rappasoft\LaravelLivewireTables\Traits\Helpers\TableAttributeHelpers; @@ -22,19 +21,19 @@ trait WithTableAttributes protected array $tbodyAttributes = []; - protected ?\Closure $thAttributesCallback; + protected ?Closure $thAttributesCallback; - protected ?\Closure $thSortButtonAttributesCallback; + protected ?Closure $thSortButtonAttributesCallback; - protected ?\Closure $thSortIconAttributesCallback; + protected ?Closure $thSortIconAttributesCallback; - protected ?\Closure $trAttributesCallback; + protected ?Closure $trAttributesCallback; - protected ?\Closure $tdAttributesCallback; + protected ?Closure $tdAttributesCallback; - protected ?\Closure $trUrlCallback; + protected ?Closure $trUrlCallback; - protected ?\Closure $trUrlTargetCallback; + protected ?Closure $trUrlTargetCallback; public bool $shouldBeDisplayed = true; } diff --git a/src/Views/Action.php b/src/Views/Action.php index 1c2975a30..6775a75c3 100644 --- a/src/Views/Action.php +++ b/src/Views/Action.php @@ -2,7 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Views; -use Illuminate\View\{Component,ComponentAttributeBag}; +use Illuminate\View\Component; use Rappasoft\LaravelLivewireTables\Traits\Core\HasLocalisations; use Rappasoft\LaravelLivewireTables\Views\Traits\Actions\{HasActionAttributes, HasRoute}; use Rappasoft\LaravelLivewireTables\Views\Traits\Columns\HasVisibility; diff --git a/src/Views/Columns/ColorColumn.php b/src/Views/Columns/ColorColumn.php index b5815d7d8..21e9100cd 100644 --- a/src/Views/Columns/ColorColumn.php +++ b/src/Views/Columns/ColorColumn.php @@ -2,6 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Views\Columns; +use Closure; use Illuminate\Database\Eloquent\Model; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; use Rappasoft\LaravelLivewireTables\Views\Column; @@ -17,7 +18,7 @@ class ColorColumn extends Column ColorColumnHelpers; use HasDefaultStringValue; - public ?\Closure $colorCallback; + public ?Closure $colorCallback; protected string $view = 'livewire-tables::includes.columns.color'; diff --git a/src/Views/Columns/IconColumn.php b/src/Views/Columns/IconColumn.php index ec1238081..3dd264b2c 100644 --- a/src/Views/Columns/IconColumn.php +++ b/src/Views/Columns/IconColumn.php @@ -2,6 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Views\Columns; +use Closure; use Illuminate\Database\Eloquent\Model; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; use Rappasoft\LaravelLivewireTables\Views\Column; @@ -15,7 +16,7 @@ class IconColumn extends Column use IconColumnConfiguration, IconColumnHelpers; - public ?\Closure $iconCallback; + public ?Closure $iconCallback; protected string $view = 'livewire-tables::includes.columns.icon'; diff --git a/src/Views/Columns/LinkColumn.php b/src/Views/Columns/LinkColumn.php index 9d0835935..0e58b646a 100644 --- a/src/Views/Columns/LinkColumn.php +++ b/src/Views/Columns/LinkColumn.php @@ -6,7 +6,7 @@ use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; use Rappasoft\LaravelLivewireTables\Views\Column; use Rappasoft\LaravelLivewireTables\Views\Traits\Configuration\LinkColumnConfiguration; -use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasLocationCallback,HasTitleCallback}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasLocationCallback, HasTitleCallback}; use Rappasoft\LaravelLivewireTables\Views\Traits\Helpers\LinkColumnHelpers; class LinkColumn extends Column diff --git a/src/Views/Columns/ViewComponentColumn.php b/src/Views/Columns/ViewComponentColumn.php index b4f6d3a8c..17b012130 100644 --- a/src/Views/Columns/ViewComponentColumn.php +++ b/src/Views/Columns/ViewComponentColumn.php @@ -4,7 +4,6 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Support\HtmlString; -use Illuminate\View\ComponentAttributeBag; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; use Rappasoft\LaravelLivewireTables\Views\Column; use Rappasoft\LaravelLivewireTables\Views\Traits\Configuration\ViewComponentColumnConfiguration; diff --git a/src/Views/Columns/WireLinkColumn.php b/src/Views/Columns/WireLinkColumn.php index 26adaf973..6d9ba9a0c 100644 --- a/src/Views/Columns/WireLinkColumn.php +++ b/src/Views/Columns/WireLinkColumn.php @@ -6,7 +6,7 @@ use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; use Rappasoft\LaravelLivewireTables\Views\Column; use Rappasoft\LaravelLivewireTables\Views\Traits\Configuration\WireLinkColumnConfiguration; -use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasActionCallback,HasConfirmation, HasTitleCallback}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasActionCallback, HasConfirmation, HasTitleCallback}; use Rappasoft\LaravelLivewireTables\Views\Traits\Helpers\WireLinkColumnHelpers; class WireLinkColumn extends Column diff --git a/src/Views/Filters/DateRangeFilter.php b/src/Views/Filters/DateRangeFilter.php index 5884c10d6..4fe6fb67c 100644 --- a/src/Views/Filters/DateRangeFilter.php +++ b/src/Views/Filters/DateRangeFilter.php @@ -6,7 +6,7 @@ use Illuminate\Support\Facades\Validator; use Rappasoft\LaravelLivewireTables\Views\Filter; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasWireables; -use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HandlesDates, HasConfig,HasOptions}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HandlesDates, HasConfig, HasOptions}; class DateRangeFilter extends Filter { diff --git a/src/Views/Filters/LivewireComponentArrayFilter.php b/src/Views/Filters/LivewireComponentArrayFilter.php index ad995b3dc..f4505750c 100644 --- a/src/Views/Filters/LivewireComponentArrayFilter.php +++ b/src/Views/Filters/LivewireComponentArrayFilter.php @@ -2,10 +2,9 @@ namespace Rappasoft\LaravelLivewireTables\Views\Filters; -use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; use Rappasoft\LaravelLivewireTables\Views\Filter; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasWireables; -use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasOptions,IsArrayFilter, IsLivewireComponentFilter}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasOptions, IsArrayFilter, IsLivewireComponentFilter}; class LivewireComponentArrayFilter extends Filter { diff --git a/src/Views/Filters/LivewireComponentFilter.php b/src/Views/Filters/LivewireComponentFilter.php index 8605c2e99..82300635a 100644 --- a/src/Views/Filters/LivewireComponentFilter.php +++ b/src/Views/Filters/LivewireComponentFilter.php @@ -2,7 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Filters; -use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; use Rappasoft\LaravelLivewireTables\Views\Filter; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasWireables; use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\IsLivewireComponentFilter; diff --git a/src/Views/Filters/MultiSelectDropdownFilter.php b/src/Views/Filters/MultiSelectDropdownFilter.php index be9be0a9f..5e8ed566f 100644 --- a/src/Views/Filters/MultiSelectDropdownFilter.php +++ b/src/Views/Filters/MultiSelectDropdownFilter.php @@ -5,7 +5,7 @@ use Illuminate\Support\Collection; use Rappasoft\LaravelLivewireTables\Views\Filter; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasWireables; -use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasOptions,IsArrayFilter}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasOptions, IsArrayFilter}; class MultiSelectDropdownFilter extends Filter { diff --git a/src/Views/Filters/MultiSelectFilter.php b/src/Views/Filters/MultiSelectFilter.php index 558bc0d70..c271354aa 100644 --- a/src/Views/Filters/MultiSelectFilter.php +++ b/src/Views/Filters/MultiSelectFilter.php @@ -4,7 +4,7 @@ use Rappasoft\LaravelLivewireTables\Views\Filter; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasWireables; -use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasOptions,IsArrayFilter}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasOptions, IsArrayFilter}; class MultiSelectFilter extends Filter { diff --git a/src/Views/Filters/SelectFilter.php b/src/Views/Filters/SelectFilter.php index 22c7022d3..dc564fd22 100644 --- a/src/Views/Filters/SelectFilter.php +++ b/src/Views/Filters/SelectFilter.php @@ -5,7 +5,7 @@ use Illuminate\Support\Collection; use Rappasoft\LaravelLivewireTables\Views\Filter; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasWireables; -use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasOptions,IsStringFilter}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasOptions, IsStringFilter}; class SelectFilter extends Filter { diff --git a/src/Views/Traits/Columns/HasDefaultStringValue.php b/src/Views/Traits/Columns/HasDefaultStringValue.php index fec0bf051..e40ffe054 100644 --- a/src/Views/Traits/Columns/HasDefaultStringValue.php +++ b/src/Views/Traits/Columns/HasDefaultStringValue.php @@ -2,10 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Columns; -use Closure; -use Illuminate\View\ComponentAttributeBag; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait HasDefaultStringValue { public string $defaultValue = ''; diff --git a/src/Views/Traits/Columns/HasVisibility.php b/src/Views/Traits/Columns/HasVisibility.php index 71217d7e8..b5397dd9c 100644 --- a/src/Views/Traits/Columns/HasVisibility.php +++ b/src/Views/Traits/Columns/HasVisibility.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Columns; -use Rappasoft\LaravelLivewireTables\Views\Column; - trait HasVisibility { protected bool $hidden = false; diff --git a/src/Views/Traits/Columns/IsCollapsible.php b/src/Views/Traits/Columns/IsCollapsible.php index 143c48bea..2dc3439f2 100644 --- a/src/Views/Traits/Columns/IsCollapsible.php +++ b/src/Views/Traits/Columns/IsCollapsible.php @@ -2,10 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Columns; -use Closure; -use Illuminate\View\ComponentAttributeBag; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait IsCollapsible { protected bool $collapseOnMobile = false; diff --git a/src/Views/Traits/Columns/IsSearchable.php b/src/Views/Traits/Columns/IsSearchable.php index 33ebe2614..69801c16c 100644 --- a/src/Views/Traits/Columns/IsSearchable.php +++ b/src/Views/Traits/Columns/IsSearchable.php @@ -2,10 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Columns; -use Closure; -use Rappasoft\LaravelLivewireTables\DataTableComponent; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait IsSearchable { protected bool $searchable = false; diff --git a/src/Views/Traits/Columns/IsSelectable.php b/src/Views/Traits/Columns/IsSelectable.php index 9824fef9b..7b7d37067 100644 --- a/src/Views/Traits/Columns/IsSelectable.php +++ b/src/Views/Traits/Columns/IsSelectable.php @@ -2,10 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Columns; -use Closure; -use Rappasoft\LaravelLivewireTables\DataTableComponent; -use Rappasoft\LaravelLivewireTables\Views\Column; - trait IsSelectable { protected bool $selectable = true; diff --git a/src/Views/Traits/Columns/IsSortable.php b/src/Views/Traits/Columns/IsSortable.php index a95094124..2dfdf54d5 100644 --- a/src/Views/Traits/Columns/IsSortable.php +++ b/src/Views/Traits/Columns/IsSortable.php @@ -2,9 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Columns; -use Closure; use Rappasoft\LaravelLivewireTables\DataTableComponent; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; trait IsSortable { diff --git a/src/Views/Traits/Configuration/AggregateColumnConfiguration.php b/src/Views/Traits/Configuration/AggregateColumnConfiguration.php index 9e12611dd..729be2745 100644 --- a/src/Views/Traits/Configuration/AggregateColumnConfiguration.php +++ b/src/Views/Traits/Configuration/AggregateColumnConfiguration.php @@ -2,7 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Configuration; -use Illuminate\Database\Eloquent\{Builder, Model}; +use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Str; use Rappasoft\LaravelLivewireTables\Views\Column; diff --git a/src/Views/Traits/Configuration/ArrayColumnConfiguration.php b/src/Views/Traits/Configuration/ArrayColumnConfiguration.php index c0f7657b7..028b30aa7 100644 --- a/src/Views/Traits/Configuration/ArrayColumnConfiguration.php +++ b/src/Views/Traits/Configuration/ArrayColumnConfiguration.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Configuration; -use Closure; - trait ArrayColumnConfiguration { public function separator(string $value): self diff --git a/src/Views/Traits/Configuration/BooleanColumnConfiguration.php b/src/Views/Traits/Configuration/BooleanColumnConfiguration.php index 68e98880a..68261622c 100644 --- a/src/Views/Traits/Configuration/BooleanColumnConfiguration.php +++ b/src/Views/Traits/Configuration/BooleanColumnConfiguration.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Configuration; -use Closure; - trait BooleanColumnConfiguration { public function setSuccessValue(bool $value): self diff --git a/src/Views/Traits/Configuration/ColorColumnConfiguration.php b/src/Views/Traits/Configuration/ColorColumnConfiguration.php index 1e0671b6a..8821c4480 100644 --- a/src/Views/Traits/Configuration/ColorColumnConfiguration.php +++ b/src/Views/Traits/Configuration/ColorColumnConfiguration.php @@ -2,11 +2,11 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Configuration; -use Rappasoft\LaravelLivewireTables\Views\Traits\Columns; +use Closure; trait ColorColumnConfiguration { - public function color(\Closure $callback): self + public function color(Closure $callback): self { $this->colorCallback = $callback; diff --git a/src/Views/Traits/Configuration/FilterConfiguration.php b/src/Views/Traits/Configuration/FilterConfiguration.php index 88b769599..123dda5f0 100644 --- a/src/Views/Traits/Configuration/FilterConfiguration.php +++ b/src/Views/Traits/Configuration/FilterConfiguration.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Configuration; -use Rappasoft\LaravelLivewireTables\Views\Filter; - trait FilterConfiguration { public function setFilterPillTitle(string $title): self diff --git a/src/Views/Traits/Configuration/IconColumnConfiguration.php b/src/Views/Traits/Configuration/IconColumnConfiguration.php index f52bc9e2e..f938dac4b 100644 --- a/src/Views/Traits/Configuration/IconColumnConfiguration.php +++ b/src/Views/Traits/Configuration/IconColumnConfiguration.php @@ -2,9 +2,11 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Configuration; +use Closure; + trait IconColumnConfiguration { - public function setIcon(\Closure $callback): self + public function setIcon(Closure $callback): self { $this->iconCallback = $callback; diff --git a/src/Views/Traits/Core/HasActionCallback.php b/src/Views/Traits/Core/HasActionCallback.php index 4ffc70146..aee47ed27 100644 --- a/src/Views/Traits/Core/HasActionCallback.php +++ b/src/Views/Traits/Core/HasActionCallback.php @@ -2,9 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; -use Closure; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait HasActionCallback { protected mixed $actionCallback = null; diff --git a/src/Views/Traits/Core/HasAttributes.php b/src/Views/Traits/Core/HasAttributes.php index 5ddd4653b..83a1a0388 100644 --- a/src/Views/Traits/Core/HasAttributes.php +++ b/src/Views/Traits/Core/HasAttributes.php @@ -5,7 +5,6 @@ use Closure; use Illuminate\Database\Eloquent\Model; use Illuminate\View\ComponentAttributeBag; -use Rappasoft\LaravelLivewireTables\Views\{Action, Column,Filter}; trait HasAttributes { diff --git a/src/Views/Traits/Core/HasCallback.php b/src/Views/Traits/Core/HasCallback.php index c022ca04a..ad4b20425 100644 --- a/src/Views/Traits/Core/HasCallback.php +++ b/src/Views/Traits/Core/HasCallback.php @@ -3,7 +3,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; use Closure; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; trait HasCallback { diff --git a/src/Views/Traits/Core/HasConfig.php b/src/Views/Traits/Core/HasConfig.php index 6c8a66676..902bab75f 100644 --- a/src/Views/Traits/Core/HasConfig.php +++ b/src/Views/Traits/Core/HasConfig.php @@ -2,8 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; -use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; +use Rappasoft\LaravelLivewireTables\Views\Filter; trait HasConfig { diff --git a/src/Views/Traits/Core/HasConfirmation.php b/src/Views/Traits/Core/HasConfirmation.php index 9a8597947..3b727cfb4 100644 --- a/src/Views/Traits/Core/HasConfirmation.php +++ b/src/Views/Traits/Core/HasConfirmation.php @@ -2,9 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; -use Closure; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait HasConfirmation { protected ?string $confirmMessage; diff --git a/src/Views/Traits/Core/HasFooter.php b/src/Views/Traits/Core/HasFooter.php index 54078f188..967cdbde0 100644 --- a/src/Views/Traits/Core/HasFooter.php +++ b/src/Views/Traits/Core/HasFooter.php @@ -4,7 +4,7 @@ use Illuminate\Support\HtmlString; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; +use Rappasoft\LaravelLivewireTables\Views\Filter; trait HasFooter { diff --git a/src/Views/Traits/Core/HasIcon.php b/src/Views/Traits/Core/HasIcon.php index e8230c184..1e432b74d 100644 --- a/src/Views/Traits/Core/HasIcon.php +++ b/src/Views/Traits/Core/HasIcon.php @@ -3,7 +3,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; use Illuminate\View\ComponentAttributeBag; -use Livewire\Attributes\Computed; trait HasIcon { diff --git a/src/Views/Traits/Core/HasLocationCallback.php b/src/Views/Traits/Core/HasLocationCallback.php index e25fc2ce8..296d216ed 100644 --- a/src/Views/Traits/Core/HasLocationCallback.php +++ b/src/Views/Traits/Core/HasLocationCallback.php @@ -2,9 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; -use Closure; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait HasLocationCallback { protected mixed $locationCallback = null; diff --git a/src/Views/Traits/Core/HasSecondaryHeader.php b/src/Views/Traits/Core/HasSecondaryHeader.php index 666a9d312..3c47fb289 100644 --- a/src/Views/Traits/Core/HasSecondaryHeader.php +++ b/src/Views/Traits/Core/HasSecondaryHeader.php @@ -4,7 +4,7 @@ use Illuminate\Support\HtmlString; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; +use Rappasoft\LaravelLivewireTables\Views\Filter; trait HasSecondaryHeader { diff --git a/src/Views/Traits/Core/HasTheme.php b/src/Views/Traits/Core/HasTheme.php index 5d229879a..d19253e9b 100644 --- a/src/Views/Traits/Core/HasTheme.php +++ b/src/Views/Traits/Core/HasTheme.php @@ -2,7 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; -use Livewire\Attributes\{Computed,Locked}; +use Livewire\Attributes\{Computed, Locked}; trait HasTheme { diff --git a/src/Views/Traits/Core/HasTitleCallback.php b/src/Views/Traits/Core/HasTitleCallback.php index ee096b9b1..113ccc144 100644 --- a/src/Views/Traits/Core/HasTitleCallback.php +++ b/src/Views/Traits/Core/HasTitleCallback.php @@ -2,9 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; -use Closure; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait HasTitleCallback { protected mixed $titleCallback = null; diff --git a/src/Views/Traits/Core/HasVisibility.php b/src/Views/Traits/Core/HasVisibility.php index 91b0ace58..7ec1d70e6 100644 --- a/src/Views/Traits/Core/HasVisibility.php +++ b/src/Views/Traits/Core/HasVisibility.php @@ -2,9 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; -use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait HasVisibility { protected bool $hiddenFromMenus = false; diff --git a/src/Views/Traits/Core/HasWireActions.php b/src/Views/Traits/Core/HasWireActions.php index 04d96a050..7c7942a4d 100644 --- a/src/Views/Traits/Core/HasWireActions.php +++ b/src/Views/Traits/Core/HasWireActions.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Core; -use Illuminate\Database\Eloquent\Model; - trait HasWireActions { protected bool $shouldWireNavigate = false; diff --git a/src/Views/Traits/Filters/HasConfig.php b/src/Views/Traits/Filters/HasConfig.php index b14d59312..60755c155 100644 --- a/src/Views/Traits/Filters/HasConfig.php +++ b/src/Views/Traits/Filters/HasConfig.php @@ -2,10 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Filters; -use Closure; -use Illuminate\View\ComponentAttributeBag; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait HasConfig { public function config(array $config = []): self diff --git a/src/Views/Traits/Filters/HasCustomPosition.php b/src/Views/Traits/Filters/HasCustomPosition.php index b80b4bb2c..443baf749 100644 --- a/src/Views/Traits/Filters/HasCustomPosition.php +++ b/src/Views/Traits/Filters/HasCustomPosition.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Filters; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait HasCustomPosition { public ?string $filterPosition = null; diff --git a/src/Views/Traits/Filters/HasOptions.php b/src/Views/Traits/Filters/HasOptions.php index a8e39a363..059c37b8c 100644 --- a/src/Views/Traits/Filters/HasOptions.php +++ b/src/Views/Traits/Filters/HasOptions.php @@ -2,10 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Filters; -use Closure; -use Illuminate\View\ComponentAttributeBag; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait HasOptions { public array $options = []; diff --git a/src/Views/Traits/Filters/HasVisibility.php b/src/Views/Traits/Filters/HasVisibility.php index b6d65fcff..13631c270 100644 --- a/src/Views/Traits/Filters/HasVisibility.php +++ b/src/Views/Traits/Filters/HasVisibility.php @@ -3,7 +3,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Filters; use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasVisibility as HasCoreVisibility; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; trait HasVisibility { diff --git a/src/Views/Traits/Filters/IsArrayFilter.php b/src/Views/Traits/Filters/IsArrayFilter.php index 5238d71d3..cf66f4804 100644 --- a/src/Views/Traits/Filters/IsArrayFilter.php +++ b/src/Views/Traits/Filters/IsArrayFilter.php @@ -2,10 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Filters; -use Closure; -use Illuminate\View\ComponentAttributeBag; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait IsArrayFilter { public string $pillsSeparator = ', '; diff --git a/src/Views/Traits/Filters/IsNumericFilter.php b/src/Views/Traits/Filters/IsNumericFilter.php index 602b8fa96..6ce4a6d28 100644 --- a/src/Views/Traits/Filters/IsNumericFilter.php +++ b/src/Views/Traits/Filters/IsNumericFilter.php @@ -2,10 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Filters; -use Closure; -use Illuminate\View\ComponentAttributeBag; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait IsNumericFilter { public function isEmpty(float|int|string|array|null $value): bool diff --git a/src/Views/Traits/Filters/IsStringFilter.php b/src/Views/Traits/Filters/IsStringFilter.php index 440dc26e1..2c505bad9 100644 --- a/src/Views/Traits/Filters/IsStringFilter.php +++ b/src/Views/Traits/Filters/IsStringFilter.php @@ -2,10 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Filters; -use Closure; -use Illuminate\View\ComponentAttributeBag; -use Rappasoft\LaravelLivewireTables\Views\{Column,Filter}; - trait IsStringFilter { public function isEmpty(?string $value): bool diff --git a/src/Views/Traits/Helpers/AggregateColumnHelpers.php b/src/Views/Traits/Helpers/AggregateColumnHelpers.php index 1748b8091..5ea2d7690 100644 --- a/src/Views/Traits/Helpers/AggregateColumnHelpers.php +++ b/src/Views/Traits/Helpers/AggregateColumnHelpers.php @@ -4,7 +4,6 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Support\HtmlString; -use Illuminate\View\ComponentAttributeBag; use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; trait AggregateColumnHelpers diff --git a/src/Views/Traits/Helpers/BooleanColumnHelpers.php b/src/Views/Traits/Helpers/BooleanColumnHelpers.php index ae8bd33fb..200505c1d 100644 --- a/src/Views/Traits/Helpers/BooleanColumnHelpers.php +++ b/src/Views/Traits/Helpers/BooleanColumnHelpers.php @@ -2,8 +2,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Helpers; -use Closure; - trait BooleanColumnHelpers { public function getSuccessValue(): bool diff --git a/src/Views/Traits/Helpers/ColorColumnHelpers.php b/src/Views/Traits/Helpers/ColorColumnHelpers.php index 3f46b9085..32296d13a 100644 --- a/src/Views/Traits/Helpers/ColorColumnHelpers.php +++ b/src/Views/Traits/Helpers/ColorColumnHelpers.php @@ -3,7 +3,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Helpers; use Illuminate\Database\Eloquent\Model; -use Illuminate\View\ComponentAttributeBag; trait ColorColumnHelpers { diff --git a/src/Views/Traits/Helpers/ColumnHelpers.php b/src/Views/Traits/Helpers/ColumnHelpers.php index 164de98da..3908f678b 100644 --- a/src/Views/Traits/Helpers/ColumnHelpers.php +++ b/src/Views/Traits/Helpers/ColumnHelpers.php @@ -9,7 +9,6 @@ use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException; use Rappasoft\LaravelLivewireTables\Views\Column; use Rappasoft\LaravelLivewireTables\Views\Columns\LinkColumn; -use Rappasoft\LaravelLivewireTables\Views\Filter; trait ColumnHelpers { diff --git a/src/Views/Traits/Helpers/IconColumnHelpers.php b/src/Views/Traits/Helpers/IconColumnHelpers.php index ceb8f9439..0b9075ed8 100644 --- a/src/Views/Traits/Helpers/IconColumnHelpers.php +++ b/src/Views/Traits/Helpers/IconColumnHelpers.php @@ -3,7 +3,6 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits\Helpers; use Illuminate\Database\Eloquent\Model; -use Illuminate\View\ComponentAttributeBag; use Rappasoft\LaravelLivewireTables\Views\Traits\Columns\HasDefaultStringValue; trait IconColumnHelpers diff --git a/src/Views/Traits/IsColumn.php b/src/Views/Traits/IsColumn.php index d36b3e06d..31c873071 100644 --- a/src/Views/Traits/IsColumn.php +++ b/src/Views/Traits/IsColumn.php @@ -6,7 +6,7 @@ use Rappasoft\LaravelLivewireTables\Traits\Core\HasLocalisations; use Rappasoft\LaravelLivewireTables\Views\Traits\Columns\{HasColumnView, HasVisibility, IsCollapsible, IsSearchable, IsSelectable, IsSortable}; use Rappasoft\LaravelLivewireTables\Views\Traits\Configuration\ColumnConfiguration; -use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasAttributes,HasFooter,HasLabelAttributes,HasSecondaryHeader,HasTheme}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasAttributes, HasFooter, HasLabelAttributes, HasSecondaryHeader, HasTheme}; use Rappasoft\LaravelLivewireTables\Views\Traits\Helpers\{ColumnHelpers,RelationshipHelpers}; trait IsColumn diff --git a/src/Views/Traits/IsExternalArrayFilter.php b/src/Views/Traits/IsExternalArrayFilter.php index 480d36e82..15feb3bf4 100644 --- a/src/Views/Traits/IsExternalArrayFilter.php +++ b/src/Views/Traits/IsExternalArrayFilter.php @@ -2,7 +2,7 @@ namespace Rappasoft\LaravelLivewireTables\Views\Traits; -use Livewire\Attributes\{Modelable,On,Renderless}; +use Livewire\Attributes\{Modelable, On, Renderless}; trait IsExternalArrayFilter { diff --git a/src/Views/Traits/IsFilter.php b/src/Views/Traits/IsFilter.php index 491b685e5..9e5a7b47b 100644 --- a/src/Views/Traits/IsFilter.php +++ b/src/Views/Traits/IsFilter.php @@ -4,7 +4,7 @@ use Rappasoft\LaravelLivewireTables\Traits\Core\HasLocalisations; use Rappasoft\LaravelLivewireTables\Views\Traits\Configuration\FilterConfiguration; -use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasConfig,HasLabelAttributes,HasView}; +use Rappasoft\LaravelLivewireTables\Views\Traits\Core\{HasConfig, HasLabelAttributes, HasView}; use Rappasoft\LaravelLivewireTables\Views\Traits\Filters\{HasCustomPosition, HasVisibility}; use Rappasoft\LaravelLivewireTables\Views\Traits\Helpers\FilterHelpers;