Skip to content

Commit 1c8a7fb

Browse files
authored
Merge pull request #2126 from rappasoft/development
v3.5.9 - Development To Master
2 parents 20a74a6 + d97455e commit 1c8a7fb

File tree

73 files changed

+66
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+66
-141
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## [v3.5.9] - 2024-12-11
6+
### Tweaks
7+
- Optimize Imports by @edwinvdpol in https://github.com/rappasoft/laravel-livewire-tables/pull/2124
8+
59
## [v3.5.8] - 2024-12-10
610
### New Features
711
- Set bulk action row button attributes by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2117

resources/lang/php/sv/core.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
return [
44
'All' => 'Alla',
5-
'All Columns' => 'Alla Columner',
5+
'All Columns' => 'Alla Kolumner',
66
'Applied Filters' => 'Valda filter',
77
'Applied Sorting' => 'Vald sortering',
88
'Bulk Actions' => 'Bulk Modifiering',
99
'Bulk Actions Confirm' => 'Är du säker?',
1010
'Clear' => 'Rensa',
11-
'Columns' => 'Columner',
11+
'Columns' => 'Kolumner',
1212
'Debugging Values' => 'Debug Värden',
1313
'Deselect All' => 'Avmarkera alla',
1414
'Done Reordering' => 'Omordning klart',

src/Commands/MakeCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Illuminate\Console\Command;
66
use Illuminate\Contracts\Console\PromptsForMissingInput;
77
use Illuminate\Database\Eloquent\Model;
8-
use Illuminate\Support\Collection;
98
use Illuminate\Support\Facades\File;
109
use Illuminate\Support\Str;
1110
use Livewire\Features\SupportConsoleCommands\Commands\ComponentParser;

src/Traits/ComponentUtilities.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Rappasoft\LaravelLivewireTables\Traits;
44

55
use Illuminate\Database\Eloquent\Builder;
6-
use Illuminate\Support\Str;
76
use Livewire\Attributes\Locked;
87
use Rappasoft\LaravelLivewireTables\Exceptions\DataTableConfigurationException;
98
use Rappasoft\LaravelLivewireTables\Traits\Configuration\ComponentConfiguration;

src/Traits/Configuration/ColumnConfiguration.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Traits\Configuration;
44

5-
use Rappasoft\LaravelLivewireTables\Views\Column;
6-
75
trait ColumnConfiguration
86
{
97
public function setPrependedColumns(array $prependedColumns): void

src/Traits/Configuration/FooterConfiguration.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Traits\Configuration;
44

5+
use Closure;
6+
57
trait FooterConfiguration
68
{
79
public function setFooterStatus(bool $status): self
@@ -46,14 +48,14 @@ public function setUseHeaderAsFooterDisabled(): self
4648
return $this;
4749
}
4850

49-
public function setFooterTrAttributes(\Closure $callback): self
51+
public function setFooterTrAttributes(Closure $callback): self
5052
{
5153
$this->footerTrAttributesCallback = $callback;
5254

5355
return $this;
5456
}
5557

56-
public function setFooterTdAttributes(\Closure $callback): self
58+
public function setFooterTdAttributes(Closure $callback): self
5759
{
5860
$this->footerTdAttributesCallback = $callback;
5961

src/Traits/Configuration/SecondaryHeaderConfiguration.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Traits\Configuration;
44

5+
use Closure;
6+
57
trait SecondaryHeaderConfiguration
68
{
79
public function setSecondaryHeaderStatus(bool $status): self
@@ -25,14 +27,14 @@ public function setSecondaryHeaderDisabled(): self
2527
return $this;
2628
}
2729

28-
public function setSecondaryHeaderTrAttributes(\Closure $callback): self
30+
public function setSecondaryHeaderTrAttributes(Closure $callback): self
2931
{
3032
$this->secondaryHeaderTrAttributesCallback = $callback;
3133

3234
return $this;
3335
}
3436

35-
public function setSecondaryHeaderTdAttributes(\Closure $callback): self
37+
public function setSecondaryHeaderTdAttributes(Closure $callback): self
3638
{
3739
$this->secondaryHeaderTdAttributesCallback = $callback;
3840

src/Traits/Configuration/TableAttributeConfiguration.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Traits\Configuration;
44

5+
use Closure;
6+
57
trait TableAttributeConfiguration
68
{
79
/**
@@ -68,7 +70,7 @@ public function setTbodyAttributes(array $attributes = []): self
6870
/**
6971
* Set a list of attributes to override on the th elements
7072
*/
71-
public function setThAttributes(\Closure $callback): self
73+
public function setThAttributes(Closure $callback): self
7274
{
7375
$this->thAttributesCallback = $callback;
7476

@@ -78,7 +80,7 @@ public function setThAttributes(\Closure $callback): self
7880
/**
7981
* Set a list of attributes to override on the th sort button elements
8082
*/
81-
public function setThSortButtonAttributes(\Closure $callback): self
83+
public function setThSortButtonAttributes(Closure $callback): self
8284
{
8385
$this->thSortButtonAttributesCallback = $callback;
8486

@@ -88,7 +90,7 @@ public function setThSortButtonAttributes(\Closure $callback): self
8890
/**
8991
* Set a list of attributes to override on the th sort icon elements
9092
*/
91-
public function setThSortIconAttributes(\Closure $callback): self
93+
public function setThSortIconAttributes(Closure $callback): self
9294
{
9395
$this->thSortIconAttributesCallback = $callback;
9496

@@ -98,7 +100,7 @@ public function setThSortIconAttributes(\Closure $callback): self
98100
/**
99101
* Set a list of attributes to override on the td elements
100102
*/
101-
public function setTrAttributes(\Closure $callback): self
103+
public function setTrAttributes(Closure $callback): self
102104
{
103105
$this->trAttributesCallback = $callback;
104106

@@ -108,21 +110,21 @@ public function setTrAttributes(\Closure $callback): self
108110
/**
109111
* Set a list of attributes to override on the td elements
110112
*/
111-
public function setTdAttributes(\Closure $callback): self
113+
public function setTdAttributes(Closure $callback): self
112114
{
113115
$this->tdAttributesCallback = $callback;
114116

115117
return $this;
116118
}
117119

118-
public function setTableRowUrl(\Closure $callback): self
120+
public function setTableRowUrl(Closure $callback): self
119121
{
120122
$this->trUrlCallback = $callback;
121123

122124
return $this;
123125
}
124126

125-
public function setTableRowUrlTarget(\Closure $callback): self
127+
public function setTableRowUrlTarget(Closure $callback): self
126128
{
127129
$this->trUrlTargetCallback = $callback;
128130

src/Traits/HasAllTraits.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Traits;
44

5-
use Rappasoft\LaravelLivewireTables\Traits\Core\{HasCustomAttributes,HasLocalisations};
5+
use Rappasoft\LaravelLivewireTables\Traits\Core\{HasCustomAttributes, HasLocalisations};
66
use Rappasoft\LaravelLivewireTables\Views\Traits\Core\HasTheme;
77

88
trait HasAllTraits

src/Traits/Helpers/FilterHelpers.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Traits\Helpers;
44

5-
use Illuminate\Support\Arr;
65
use Illuminate\Support\Collection;
76
use Livewire\Attributes\Computed;
87
use Livewire\Attributes\On;

0 commit comments

Comments
 (0)