Skip to content

Commit 72db36d

Browse files
authored
Merge pull request #2093 from rappasoft/development
v3.5.6
2 parents 59eaa7b + e6e7f29 commit 72db36d

Some content is hidden

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

56 files changed

+792
-502
lines changed

.github/workflows/discord-releases.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ jobs:
1010
uses: actions/checkout@v4
1111
- name: Package Releases
1212
uses: SethCohen/github-releases-to-discord@latest
13+
env:
14+
WEBHOOK_DISCORD_RELEASE_URL: ${{ secrets.WEBHOOK_DISCORD_RELEASE_URL }}
1315
with:
14-
webhook_url: ${{ secrets.WEBHOOK_DISCORD_RELEASE_URL }}
16+
webhook_url: $WEBHOOK_DISCORD_RELEASE_URL
1517
color: "2105893"
1618
username: "GitHub Release-Bot"
1719
avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png"

.github/workflows/run-phpstan-pull.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ jobs:
6666
restore-keys: phpstan-${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
6767

6868
- name: Add token
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6971
run: |
70-
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
72+
composer config github-oauth.github.com $GITHUB_TOKEN
7173
7274
- name: Install dependencies
7375
if: steps.composer-cache.outputs.cache-hit != 'true'

.github/workflows/run-phpstan.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ jobs:
6969
restore-keys: phpstan-${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
7070

7171
- name: Add token
72+
env:
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7274
run: |
73-
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
75+
composer config github-oauth.github.com $GITHUB_TOKEN
7476
7577
- name: Install dependencies
7678
if: steps.composer-cache.outputs.cache-hit != 'true'

.github/workflows/run-tests-pcov-pull.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ jobs:
7171
restore-keys: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
7272

7373
- name: Add token
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7476
run: |
75-
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
77+
composer config github-oauth.github.com $GITHUB_TOKEN
7678
7779
- name: Install dependencies
7880
if: steps.composer-cache.outputs.cache-hit != 'true'
@@ -93,7 +95,7 @@ jobs:
9395
env:
9496
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9597
with:
96-
token: ${{ secrets.CODECOV_TOKEN }}
98+
token: $CODECOV_TOKEN
9799
files: ./coverage.xml
98100
verbose: true
99101

.github/workflows/run-tests-pull.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ jobs:
6868
restore-keys: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
6969

7070
- name: Add token
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7173
run: |
72-
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
74+
composer config github-oauth.github.com $GITHUB_TOKEN
7375
7476
- name: Install dependencies
7577
if: steps.composer-cache.outputs.cache-hit != 'true'
@@ -147,8 +149,10 @@ jobs:
147149
restore-keys: ${{ matrix.os }}-P${{ matrix.php }}-L${{ matrix.laravel }}-composer-
148150

149151
- name: Add token
152+
env:
153+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
150154
run: |
151-
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
155+
composer config github-oauth.github.com $GITHUB_TOKEN
152156
153157
- name: Install dependencies
154158
if: steps.composer-cache.outputs.cache-hit != 'true'

.github/workflows/run-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ jobs:
7070
restore-keys: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
7171

7272
- name: Add token
73+
env:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7375
run: |
74-
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
76+
composer config github-oauth.github.com $GITHUB_TOKEN
7577
7678
- name: Install dependencies
7779
if: steps.composer-cache.outputs.cache-hit != 'true'
@@ -149,8 +151,10 @@ jobs:
149151
restore-keys: ${{ matrix.os }}-PHP${{ matrix.php }}-L${{ matrix.laravel }}-composer-
150152

151153
- name: Add token
154+
env:
155+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
152156
run: |
153-
composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
157+
composer config github-oauth.github.com $GITHUB_TOKEN
154158
155159
- name: Install dependencies
156160
if: steps.composer-cache.outputs.cache-hit != 'true'

CHANGELOG.md

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

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

5+
## [v3.5.6] - 2024-11-28
6+
### New Features
7+
- Add Icon to Search Input by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2092
8+
9+
### Tweaks
10+
- Search - Rationalisation of blades into files by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2094
11+
- Columns() Setup Improvements by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2089
12+
- Typehinting in blade components by @edwinvdpol in https://github.com/rappasoft/laravel-livewire-tables/pull/2081
13+
14+
### Testing
15+
- Tweak Workflows to use an env key by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/2090
16+
517
## [v3.5.5] - 2024-11-22
618
### Bug Fixes
719
- Fix date range filter default value by @edwinvdpol in https://github.com/rappasoft/laravel-livewire-tables/pull/2082

docs/search/available-methods.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,39 @@ public function configure(): void
192192
$this->setTrimSearchStringDisabled();
193193
}
194194
```
195+
196+
## Search Icon
197+
198+
To help customise, a "Search Input Icon" has been added, allowing for the addition of an icon to the search input field.
199+
200+
At present, the Search Icon is only available as a "left aligned" icon.
201+
202+
This is presently only available for Tailwind implementations
203+
204+
### setSearchIcon
205+
206+
This adds an Icon to the Search Input Field, which expects an icon path (e.g. heroicon-m-magnifying-glass)
207+
208+
```php
209+
public function configure(): void
210+
{
211+
$this->setSearchIcon('heroicon-m-magnifying-glass');
212+
}
213+
```
214+
215+
### setSearchIconAttributes
216+
217+
This allows you to specify attributes for the Search Icon for the Input Field.
218+
219+
Note that classes will be injected prior to styles, due to the behaviour of icons.
220+
221+
```php
222+
public function configure(): void
223+
{
224+
$this->setSearchIconAttributes([
225+
'class' => 'h-4 w-4',
226+
'style' => 'color: #000000',
227+
]);
228+
}
229+
230+
```

resources/views/components/includes/actions.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
->class(['' => $this->isTailwind && $this->getActionWrapperAttributes['default-colors'] ?? true])
55
->class(['d-flex flex-cols py-2 space-x-2' => $this->isBootstrap && $this->getActionWrapperAttributes['default-styling'] ?? true])
66
->class(['' => $this->isBootstrap && $this->getActionWrapperAttributes['default-colors'] ?? true])
7-
->class(['justify-start' => $this->getActionsPosition == 'left'])
8-
->class(['justify-center' => $this->getActionsPosition == 'center'])
9-
->class(['justify-end' => $this->getActionsPosition == 'right'])
10-
->class(['pl-2' => $this->showActionsInToolbar && $this->getActionsPosition == 'left'])
11-
->class(['pr-2' => $this->showActionsInToolbar && $this->getActionsPosition == 'right'])
7+
->class(['justify-start' => $this->getActionsPosition === 'left'])
8+
->class(['justify-center' => $this->getActionsPosition === 'center'])
9+
->class(['justify-end' => $this->getActionsPosition === 'right'])
10+
->class(['pl-2' => $this->showActionsInToolbar && $this->getActionsPosition === 'left'])
11+
->class(['pr-2' => $this->showActionsInToolbar && $this->getActionsPosition === 'right'])
1212
->except(['default','default-styling','default-colors'])
1313
}} >
1414
@foreach($this->getActions as $action)
1515
{{ $action->render() }}
1616
@endforeach
17-
</div>
17+
</div>

resources/views/components/includes/loading.blade.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
@props(['colCount' => 1])
33

44
@php
5-
$loaderRow = $this->getLoadingPlaceHolderRowAttributes();
6-
$loaderCell = $this->getLoadingPlaceHolderCellAttributes();
7-
$loaderIcon = $this->getLoadingPlaceHolderIconAttributes();
5+
$loaderRow = $this->getLoadingPlaceHolderRowAttributes();
6+
$loaderCell = $this->getLoadingPlaceHolderCellAttributes();
7+
$loaderIcon = $this->getLoadingPlaceHolderIconAttributes();
88
@endphp
99

1010
<tr wire:key="{{ $tableName }}-loader" wire:loading.class.remove="hidden d-none" {{
@@ -27,11 +27,10 @@
2727
$attributes->merge($loaderIcon)
2828
->class(['lds-hourglass' => $this->isTailwind && ($loaderIcon['default'] ?? true)])
2929
->class(['lds-hourglass' => $this->isBootstrap && ($loaderIcon['default'] ?? true)])
30-
->except(['default','default-styling','default-colors']);
30+
->except(['default','default-styling','default-colors'])
3131
}}></div>
3232
<div>{!! $this->getLoadingPlaceholderContent() !!}</div>
3333
</div>
3434
@endif
3535
</td>
3636
</tr>
37-

0 commit comments

Comments
 (0)