Skip to content

Commit a52839d

Browse files
authored
Merge pull request #496 from rappasoft/develop
v1.19.0
2 parents 91f1f2b + c9632d1 commit a52839d

File tree

15 files changed

+117
-13
lines changed

15 files changed

+117
-13
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### All Submissions:
2+
3+
* [ ] Have you followed the guidelines in our Contributing document?
4+
* [ ] Have you checked to ensure there aren't other open [Pull Requests](../../../pulls) for the same update/change?
5+
6+
### New Feature Submissions:
7+
8+
1. [ ] Does your submission pass tests and did you add any new tests needed for your feature?
9+
2. [ ] Did you update all templates (if applicable)?
10+
3. [ ] Did you add the [relevant documentation](https://github.com/rappasoft/laravel-livewire-tables-docs) (if applicable)?
11+
4. Did you test locally to make sure your feature works as intended?
12+
13+
### Changes to Core Features:
14+
15+
* [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
16+
* [ ] Have you written new tests for your core changes, as applicable?
17+
* [ ] Have you successfully ran tests with your changes locally?

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
44

55
## [Unreleased]
66

7+
## [1.19.0] - 2021-10-14
8+
9+
### Added
10+
11+
- Thai translation - https://github.com/rappasoft/laravel-livewire-tables/pull/491
12+
- Italian translation - https://github.com/rappasoft/laravel-livewire-tables/pull/493
13+
- Added getTableRowUrlTarget to set row click target based on the row
14+
- Add custom class to table - https://github.com/rappasoft/laravel-livewire-tables/pull/495
15+
16+
### Changed
17+
18+
- Fix removing a multiselect filter - https://github.com/rappasoft/laravel-livewire-tables/pull/494
19+
720
## [1.18.0] - 2021-10-13
821

922
### Added
@@ -505,7 +518,8 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
505518

506519
- Initial release
507520

508-
[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.1.0...development
521+
[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.19.0...development
522+
[1.19.0]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.18.0...v1.19.0
509523
[1.18.0]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.17.0...v1.18.0
510524
[1.17.0]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.16.0...v1.17.0
511525
[1.16.0]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.15.0...v1.16.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A dynamic Laravel Livewire component for data tables.
1111

1212
![Full Table](https://i.imgur.com/2kfibjR.png)
1313

14-
### [Bootstrap 4 Demo](https://tables.laravel-boilerplate.com/bootstrap-4) | [Bootstrap 5 Demo](https://tables.laravel-boilerplate.com/bootstrap-5) | [Tailwind Demo](https://tables.laravel-boilerplate.com/tailwind)
14+
### [Bootstrap 4 Demo](https://tables.laravel-boilerplate.com/bootstrap-4) | [Bootstrap 5 Demo](https://tables.laravel-boilerplate.com/bootstrap-5) | [Tailwind Demo](https://tables.laravel-boilerplate.com/tailwind) | [Demo Repository](https://github.com/rappasoft/laravel-livewire-tables-demo)
1515

1616
## Installation
1717

resources/lang/it.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"All": "Tutti",
3+
"Applied Filters": "Filtri Applicati",
4+
"Applied Sorting": "Ordinamento Applicato",
5+
"Bulk Actions": "Azioni di Gruppo",
6+
"Clear": "Pulisci",
7+
"Columns": "Colonne",
8+
"Done Reordering": "Ordinamento Terminato",
9+
"Filters": "Filtri",
10+
"Remove filter option": "Rimuovi filtro",
11+
"Remove sort option": "Rimuovi ordinamento",
12+
"Search": "Cerca",
13+
"Select All": "Seleziona Tutto",
14+
"Showing": "Visualizzati",
15+
"Unselect All": "Deseleziona tutto",
16+
"You are currently selecting all": "Stai selezionando tutto",
17+
"You are not connected to the internet.": "Non sei connesso a internet",
18+
"You have selected": "Hai selezionato",
19+
"of": "di",
20+
"Reorder": "Riordina",
21+
"results": "risultati",
22+
"rows": "righe",
23+
"rows, do you want to select all": "righe, vuoi selezionarle tutte",
24+
"No items found. Try to broaden your search.": "Nessun risultato trovato. Prova ad ampliare la tua ricerca.",
25+
"to": "a"
26+
}

resources/lang/th.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"All": "ทั้งหมด",
3+
"Applied Filters": "กรองข้อมูลตาม",
4+
"Applied Sorting": "เรียงลำดับตาม",
5+
"Bulk Actions": "เลือกการกระทำ",
6+
"Clear": "ล้างทั้งหมด",
7+
"Columns": "เลือกคอลัมน์",
8+
"Done Reordering": "จัดลำดับแล้ว",
9+
"Filters": "ตัวกรอง",
10+
"Remove filter option": "เอาตัวกรองออก",
11+
"Remove sort option": "เอาการเรียงลำดับออก",
12+
"Search": "ค้นหา...",
13+
"Select All": "เลือกทั้งหมด",
14+
"Showing": "แสดง",
15+
"Unselect All": "ไม่เลือกทั้งหมด",
16+
"You are currently selecting all": "ขณะนี้คุณได้เลือกทุกรายการ",
17+
"You are not connected to the internet.": "ขณะนี้คุณไม่ได้เชื่อมต่อกับอินเทอร์เน็ต",
18+
"You have selected": "คุณเลือก",
19+
"of": "จาก",
20+
"Reorder": "จัดลำดับ",
21+
"results": "รายการ",
22+
"row": "รายการ",
23+
"rows": "รายการ",
24+
"rows, do you want to select all": "รายการ, คุณต้องการเลือกทั้งหมด",
25+
"No items found. Try to broaden your search.": "ไม่พบรายการที่ค้นหา",
26+
"to": "-"
27+
}

resources/views/bootstrap-4/components/table/row.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@props(['url' => null, 'reordering' => false, 'customAttributes' => []])
1+
@props(['url' => null, 'target' => '_self', 'reordering' => false, 'customAttributes' => []])
22

33
@if (!$reordering && $attributes->has('wire:sortable.item'))
44
@php
@@ -10,7 +10,7 @@
1010
{{ $attributes->merge($customAttributes) }}
1111

1212
@if ($url)
13-
onclick="window.location='{{ $url }}';"
13+
onclick="window.open('{{ $url }}', '{{ $target }}')"
1414
style="cursor:pointer"
1515
@endif
1616
>

resources/views/bootstrap-4/components/table/table.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@props(['customSecondaryHeader' => false, 'useHeaderAsFooter' => false, 'customFooter' => false])
22

33
<div class="{{ $this->responsive ? 'table-responsive' : '' }}">
4-
<table {{ $attributes->except('wire:sortable') }} class="table table-striped">
4+
<table {{ $attributes->except(['wire:sortable', 'class']) }} class="{{ trim($attributes->get('class')) ?: 'table table-striped'}}">
55
<thead>
66
<tr>
77
{{ $head }}

resources/views/bootstrap-4/includes/table.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:customSecondaryHeader="$secondaryHeader"
44
:useHeaderAsFooter="$useHeaderAsFooter"
55
:customFooter="$customFooter"
6+
:class="method_exists($this, 'setTableClass') ? ' ' . $this->setTableClass() : '' "
67
>
78
<x-slot name="head">
89
@if ($reordering)
@@ -96,6 +97,7 @@
9697
wire:sortable.item="{{ $row->{$primaryKey} }}"
9798
:reordering="$reordering"
9899
:url="method_exists($this, 'getTableRowUrl') ? $this->getTableRowUrl($row) : ''"
100+
:target="method_exists($this, 'getTableRowUrlTarget') ? $this->getTableRowUrlTarget($row) : ''"
99101
:class="method_exists($this, 'setTableRowClass') ? ' ' . $this->setTableRowClass($row) : ''"
100102
:id="method_exists($this, 'setTableRowId') ? $this->setTableRowId($row) : ''"
101103
:customAttributes="method_exists($this, 'setTableRowAttributes') ? $this->setTableRowAttributes($row) : []"

resources/views/bootstrap-5/components/table/row.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@props(['url' => null, 'reordering' => false, 'customAttributes' => []])
1+
@props(['url' => null, 'target' => '_self', 'reordering' => false, 'customAttributes' => []])
22

33
@if (!$reordering && $attributes->has('wire:sortable.item'))
44
@php
@@ -10,7 +10,7 @@
1010
{{ $attributes->merge($customAttributes) }}
1111

1212
@if ($url)
13-
onclick="window.location='{{ $url }}';"
13+
onclick="window.open('{{ $url }}', '{{ $target }}')"
1414
style="cursor:pointer"
1515
@endif
1616
>

resources/views/bootstrap-5/components/table/table.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@props(['customSecondaryHeader' => false, 'useHeaderAsFooter' => false, 'customFooter' => false])
22

33
<div class="{{ $this->responsive ? 'table-responsive' : '' }}">
4-
<table {{ $attributes->except('wire:sortable') }} class="table table-striped">
4+
<table {{ $attributes->except(['wire:sortable', 'class']) }} class="{{ trim($attributes->get('class')) ?: 'table table-striped'}}">
55
<thead>
66
<tr>
77
{{ $head }}

0 commit comments

Comments
 (0)