Skip to content

Commit 4d3f87f

Browse files
lrljoegithub-actions[bot]
authored andcommitted
Fix styling
1 parent fecf8a1 commit 4d3f87f

File tree

455 files changed

+1689
-5166
lines changed

Some content is hidden

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

455 files changed

+1689
-5166
lines changed

src/Features/Features/Actions/Core/Helpers/ActionsHelpers.php

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
namespace Rappasoft\LaravelLivewireTables\Features\Actions\Core\Helpers;
44

55
use Livewire\Attributes\Computed;
6-
use Rappasoft\LaravelLivewireTables\Features\Actions\Views\Action;
76
use Rappasoft\LaravelLivewireTables\Collections\ActionCollection;
7+
use Rappasoft\LaravelLivewireTables\Features\Actions\Views\Action;
88

99
trait ActionsHelpers
1010
{
1111
/**
1212
* Undocumented function
13-
*
14-
* @return boolean
1513
*/
1614
#[Computed]
1715
public function showActionsInToolbarLeft(): bool
@@ -21,8 +19,6 @@ public function showActionsInToolbarLeft(): bool
2119

2220
/**
2321
* Undocumented function
24-
*
25-
* @return boolean
2622
*/
2723
#[Computed]
2824
public function showActionsInToolbarRight(): bool
@@ -32,8 +28,6 @@ public function showActionsInToolbarRight(): bool
3228

3329
/**
3430
* Determines whether to display the Actions in the Toolbar
35-
*
36-
* @return boolean
3731
*/
3832
#[Computed]
3933
public function showActionsInToolbar(): bool
@@ -43,18 +37,15 @@ public function showActionsInToolbar(): bool
4337

4438
/**
4539
* Determines whether to display the Actions in a Dropdown in the Toolbar by default
46-
*
47-
* @return boolean
4840
*/
4941
#[Computed]
5042
public function showActionsAsDropdown(): bool
5143
{
5244
return $this->displayActionsAsDropdown ?? false;
5345
}
46+
5447
/**
5548
* Retrieves the position of the Actions (e.g. left/right)
56-
*
57-
* @return string
5849
*/
5950
#[Computed]
6051
public function getActionsPosition(): string
@@ -64,8 +55,6 @@ public function getActionsPosition(): string
6455

6556
/**
6657
* Returns whether there are any valid actions
67-
*
68-
* @return boolean
6958
*/
7059
#[Computed]
7160
public function hasActions(): bool
@@ -86,9 +75,9 @@ public function hasActions(): bool
8675
public function getActions(): ActionCollection
8776
{
8877
return (new ActionCollection($this->actions()))
89-
->each(function (Action $action, int $key) {
90-
$action->setTheme($this->getTheme());
91-
});
78+
->each(function (Action $action, int $key) {
79+
$action->setTheme($this->getTheme());
80+
});
9281

9382
}
9483
}

src/Features/Features/Actions/Core/Styling/HasActionsStyling.php

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

33
namespace Rappasoft\LaravelLivewireTables\Features\Actions\Core\Styling;
44

5-
use Livewire\Attributes\Computed;
65
use Illuminate\View\ComponentAttributeBag;
6+
use Livewire\Attributes\Computed;
77

88
trait HasActionsStyling
99
{
@@ -49,8 +49,7 @@ public function getActionWrapperAttributes(): array
4949
/**
5050
* Undocumented function
5151
*
52-
* @param array<mixed> $actionWrapperAttributes
53-
* @return self
52+
* @param array<mixed> $actionWrapperAttributes
5453
*/
5554
public function setActionWrapperAttributes(array $actionWrapperAttributes): self
5655
{
@@ -62,15 +61,15 @@ public function setActionWrapperAttributes(array $actionWrapperAttributes): self
6261
/**
6362
* Undocumented function
6463
*
65-
* @param array<mixed> $actionsMenuAttributes
66-
* @return self
64+
* @param array<mixed> $actionsMenuAttributes
6765
*/
6866
public function setActionMenuAttributes(array $actionsMenuAttributes): self
6967
{
7068
$this->actionsMenuAttributes = [...$this->actionsMenuAttributes, ...$actionsMenuAttributes];
7169

7270
return $this;
7371
}
72+
7473
/**
7574
* Used to get attributes for the Bulk Actions Button
7675
*
@@ -85,8 +84,6 @@ public function getActionsButtonAttributes(): array
8584

8685
/**
8786
* Undocumented function
88-
*
89-
* @return ComponentAttributeBag
9087
*/
9188
public function getActionsButtonAttributesBag(): ComponentAttributeBag
9289
{
@@ -111,11 +108,10 @@ public function getActionsMenuAttributes(): array
111108
*/
112109
protected function getActionsMenuTransitionAttributes(): array
113110
{
114-
if($this->isTailwind() || $this->isTailwind4())
115-
{
111+
if ($this->isTailwind() || $this->isTailwind4()) {
116112
return isset($this->actionsMenuTransitionAttributes) ? $this->actionsMenuTransitionAttributes : $this->getCoreTransitionAttributes();
117113
}
114+
118115
return [];
119116
}
120-
121117
}

src/Features/Features/Actions/Core/WithActions.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,16 @@ trait WithActions
1515

1616
/**
1717
* Undocumented variable
18-
*
19-
* @var boolean
2018
*/
2119
protected bool $displayActionsInToolbar = false;
2220

2321
/**
2422
* Undocumented variable
25-
*
26-
* @var boolean
2723
*/
2824
protected bool $displayActionsAsDropdown = false;
2925

3026
/**
3127
* Undocumented variable
32-
*
33-
* @var string
3428
*/
3529
protected string $actionsPosition = 'right';
3630

src/Features/Features/Actions/Views/Action.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,16 @@ class Action extends Component
2222

2323
/**
2424
* The view for the Action
25-
*
26-
* @var string
2725
*/
2826
protected string $view = 'livewire-tables::includes.actions.button';
2927

3028
/**
3129
* Undocumented variable
32-
*
33-
* @var boolean
3430
*/
3531
public bool $isInMenu = false;
3632

3733
/**
3834
* Construct an Action
39-
*
40-
* @param string|null $label
4135
*/
4236
public function __construct(?string $label = null)
4337
{
@@ -46,9 +40,6 @@ public function __construct(?string $label = null)
4640

4741
/**
4842
* Make an Action
49-
*
50-
* @param string|null $label
51-
* @return self
5243
*/
5344
public static function make(?string $label = null): self
5445
{
@@ -61,10 +52,9 @@ public function setInMenu(bool $status): self
6152

6253
return $this;
6354
}
55+
6456
/**
6557
* Render method for Action
66-
*
67-
* @return null|string|\Illuminate\Support\HtmlString|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
6858
*/
6959
public function render(): null|string|\Illuminate\Support\HtmlString|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
7060
{

src/Features/Features/Actions/Views/Traits/HasActionAttributes.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ trait HasActionAttributes
1313
*/
1414
protected array $actionAttributes = ['class' => '', 'default-colors' => true, 'default-styling' => true];
1515

16-
1716
/**
1817
* Undocumented function
1918
*
20-
* @param array<mixed> $actionAttributes
21-
* @return self
19+
* @param array<mixed> $actionAttributes
2220
*/
2321
public function setActionAttributes(array $actionAttributes): self
2422
{
@@ -41,12 +39,10 @@ public function getActionAttributes(): array
4139
} else {
4240
$actionAttributes['href'] = '#';
4341
$actionAttributes[$this->getWireAction()] = $this->getWireActionParams();
44-
if($this->getWireNavigateEnabled())
45-
{
42+
if ($this->getWireNavigateEnabled()) {
4643
$actionAttributes['wire:navigate'] = '';
4744
}
4845
}
49-
5046

5147
return $actionAttributes;
5248
}
@@ -55,5 +51,4 @@ public function getActionAttributesBag(): ComponentAttributeBag
5551
{
5652
return new ComponentAttributeBag($this->getActionAttributes());
5753
}
58-
5954
}

src/Features/Features/BulkActions/Core/Concerns/HandlesConfirmation.php

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

33
namespace Rappasoft\LaravelLivewireTables\Features\BulkActions\Core\Concerns;
44

5-
65
trait HandlesConfirmation
76
{
8-
97
/**
108
* Undocumented function
119
*
@@ -18,25 +16,19 @@ public function getBulkActionConfirms(): array
1816

1917
/**
2018
* Undocumented function
21-
*
22-
* @param string $bulkAction
23-
* @return boolean
2419
*/
2520
public function hasConfirmationMessage(string $bulkAction): bool
2621
{
2722
return isset($this->bulkActionConfirms[$bulkAction]);
2823
}
29-
24+
3025
public function hasBulkActionConfirmMessage(string $bulkAction): bool
3126
{
3227
return isset($this->bulkActionConfirms[$bulkAction]);
3328
}
3429

3530
/**
3631
* Undocumented function
37-
*
38-
* @param string $bulkAction
39-
* @return string
4032
*/
4133
public function getBulkActionConfirmMessage(string $bulkAction): string
4234
{
@@ -45,23 +37,20 @@ public function getBulkActionConfirmMessage(string $bulkAction): string
4537

4638
/**
4739
* Undocumented function
48-
*
49-
* @return string
5040
*/
5141
public function getBulkActionDefaultConfirmationMessage(): string
5242
{
53-
if(isset($this->bulkActionConfig['bulkActionConfirmDefaultMessage']))
54-
{
43+
if (isset($this->bulkActionConfig['bulkActionConfirmDefaultMessage'])) {
5544
return $this->bulkActionConfig['bulkActionConfirmDefaultMessage'];
5645
}
57-
return __($this->getLocalisationPath().'Bulk Actions Confirm');
46+
47+
return __($this->getLocalisationPath().'Bulk Actions Confirm');
5848
}
5949

6050
/**
6151
* Undocumented function
6252
*
63-
* @param array<mixed> $bulkActionConfirms
64-
* @return self
53+
* @param array<mixed> $bulkActionConfirms
6554
*/
6655
public function setBulkActionConfirms(array $bulkActionConfirms): self
6756
{
@@ -76,10 +65,6 @@ public function setBulkActionConfirms(array $bulkActionConfirms): self
7665

7766
/**
7867
* Undocumented function
79-
*
80-
* @param string $action
81-
* @param string $confirmationMessage
82-
* @return self
8368
*/
8469
public function setBulkActionConfirmMessage(string $action, string $confirmationMessage): self
8570
{
@@ -91,8 +76,7 @@ public function setBulkActionConfirmMessage(string $action, string $confirmation
9176
/**
9277
* Undocumented function
9378
*
94-
* @param array<mixed> $bulkActionMessages
95-
* @return self
79+
* @param array<mixed> $bulkActionMessages
9680
*/
9781
public function setBulkActionConfirmMessages(array $bulkActionMessages): self
9882
{
@@ -105,14 +89,11 @@ public function setBulkActionConfirmMessages(array $bulkActionMessages): self
10589

10690
/**
10791
* Undocumented function
108-
*
109-
* @param string $defaultConfirmationMessage
110-
* @return self
11192
*/
11293
public function setBulkActionDefaultConfirmationMessage(string $defaultConfirmationMessage): self
11394
{
11495
$this->setBulkActionConfig('bulkActionConfirmDefaultMessage', $defaultConfirmationMessage);
11596

11697
return $this;
11798
}
118-
}
99+
}

0 commit comments

Comments
 (0)