Skip to content

Commit 24eaef9

Browse files
lrljoegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 141f395 commit 24eaef9

File tree

5 files changed

+82
-87
lines changed

5 files changed

+82
-87
lines changed

src/Traits/Configuration/LoadingPlaceholderConfiguration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ public function setLoadingPlaceholderContent(string $content): self
3131

3232
return $this;
3333
}
34-
3534
}
Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
1-
<?php
2-
3-
namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration;
4-
5-
trait LoadingPlaceholderStylingConfiguration
6-
{
7-
public function setLoadingPlaceHolderAttributes(array $attributes): self
8-
{
9-
$this->loadingPlaceHolderAttributes = $attributes;
10-
11-
return $this;
12-
}
13-
14-
public function setLoadingPlaceHolderIconAttributes(array $attributes): self
15-
{
16-
$this->loadingPlaceHolderIconAttributes = $attributes;
17-
18-
return $this;
19-
}
20-
21-
public function setLoadingPlaceHolderWrapperAttributes(array $attributes): self
22-
{
23-
$this->loadingPlaceHolderWrapperAttributes = $attributes;
24-
25-
return $this;
26-
}
27-
28-
public function setLoadingPlaceholderBlade(string $customBlade): self
29-
{
30-
$this->loadingPlaceholderBlade = $customBlade;
31-
32-
return $this;
33-
}
34-
35-
}
1+
<?php
2+
3+
namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration;
4+
5+
trait LoadingPlaceholderStylingConfiguration
6+
{
7+
public function setLoadingPlaceHolderAttributes(array $attributes): self
8+
{
9+
$this->loadingPlaceHolderAttributes = $attributes;
10+
11+
return $this;
12+
}
13+
14+
public function setLoadingPlaceHolderIconAttributes(array $attributes): self
15+
{
16+
$this->loadingPlaceHolderIconAttributes = $attributes;
17+
18+
return $this;
19+
}
20+
21+
public function setLoadingPlaceHolderWrapperAttributes(array $attributes): self
22+
{
23+
$this->loadingPlaceHolderWrapperAttributes = $attributes;
24+
25+
return $this;
26+
}
27+
28+
public function setLoadingPlaceholderBlade(string $customBlade): self
29+
{
30+
$this->loadingPlaceholderBlade = $customBlade;
31+
32+
return $this;
33+
}
34+
}
Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
<?php
2-
3-
namespace Rappasoft\LaravelLivewireTables\Traits\Styling;
4-
5-
use Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration\LoadingPlaceholderStylingConfiguration;
6-
use Rappasoft\LaravelLivewireTables\Traits\Styling\Helpers\LoadingPlaceholderStylingHelpers;
7-
8-
trait HasLoadingPlaceholderStyling
9-
{
10-
use LoadingPlaceholderStylingConfiguration,
11-
LoadingPlaceholderStylingHelpers;
12-
13-
protected array $loadingPlaceHolderAttributes = [];
14-
15-
protected array $loadingPlaceHolderIconAttributes = [];
16-
17-
protected array $loadingPlaceHolderWrapperAttributes = [];
18-
19-
protected array $loadingPlaceHolderCellAttributes = ['class' => '', 'default' => true];
20-
21-
}
1+
<?php
2+
3+
namespace Rappasoft\LaravelLivewireTables\Traits\Styling;
4+
5+
use Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration\LoadingPlaceholderStylingConfiguration;
6+
use Rappasoft\LaravelLivewireTables\Traits\Styling\Helpers\LoadingPlaceholderStylingHelpers;
7+
8+
trait HasLoadingPlaceholderStyling
9+
{
10+
use LoadingPlaceholderStylingConfiguration,
11+
LoadingPlaceholderStylingHelpers;
12+
13+
protected array $loadingPlaceHolderAttributes = [];
14+
15+
protected array $loadingPlaceHolderIconAttributes = [];
16+
17+
protected array $loadingPlaceHolderWrapperAttributes = [];
18+
19+
protected array $loadingPlaceHolderCellAttributes = ['class' => '', 'default' => true];
20+
}
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
<?php
2-
3-
namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Helpers;
4-
5-
use Livewire\Attributes\Computed;
6-
7-
trait LoadingPlaceholderStylingHelpers
8-
{
9-
public function getLoadingPlaceholderAttributes(): array
10-
{
11-
return count($this->loadingPlaceHolderAttributes) ? $this->loadingPlaceHolderAttributes : ['default' => true];
12-
}
13-
14-
public function getLoadingPlaceHolderIconAttributes(): array
15-
{
16-
return count($this->loadingPlaceHolderIconAttributes) ? $this->loadingPlaceHolderIconAttributes : ['default' => true];
17-
}
18-
19-
public function getLoadingPlaceHolderWrapperAttributes(): array
20-
{
21-
return count($this->loadingPlaceHolderWrapperAttributes) ? $this->loadingPlaceHolderWrapperAttributes : ['default' => true];
22-
}
23-
24-
public function getLoadingPlaceHolderCellAttributes(): array
25-
{
26-
return count($this->loadingPlaceHolderCellAttributes) ? $this->loadingPlaceHolderCellAttributes : ['default' => true];
27-
}
28-
}
1+
<?php
2+
3+
namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Helpers;
4+
5+
use Livewire\Attributes\Computed;
6+
7+
trait LoadingPlaceholderStylingHelpers
8+
{
9+
public function getLoadingPlaceholderAttributes(): array
10+
{
11+
return count($this->loadingPlaceHolderAttributes) ? $this->loadingPlaceHolderAttributes : ['default' => true];
12+
}
13+
14+
public function getLoadingPlaceHolderIconAttributes(): array
15+
{
16+
return count($this->loadingPlaceHolderIconAttributes) ? $this->loadingPlaceHolderIconAttributes : ['default' => true];
17+
}
18+
19+
public function getLoadingPlaceHolderWrapperAttributes(): array
20+
{
21+
return count($this->loadingPlaceHolderWrapperAttributes) ? $this->loadingPlaceHolderWrapperAttributes : ['default' => true];
22+
}
23+
24+
public function getLoadingPlaceHolderCellAttributes(): array
25+
{
26+
return count($this->loadingPlaceHolderCellAttributes) ? $this->loadingPlaceHolderCellAttributes : ['default' => true];
27+
}
28+
}

src/Traits/WithLoadingPlaceholder.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@ trait WithLoadingPlaceholder
1717
protected string $loadingPlaceholderContent = 'Loading';
1818

1919
protected ?string $loadingPlaceholderBlade = null;
20-
21-
2220
}

0 commit comments

Comments
 (0)