Skip to content

Commit d7c29cb

Browse files
authored
v3.4.18 (rappasoft#1927)
## [v3.4.18] - 2024-09-04 ### New Features - Added translation to Polish by @meavric in rappasoft#1925 ### Docs - Added example for Vertical Scrolling table by @lrljoe in rappasoft#1926
1 parent abce65a commit d7c29cb

File tree

5 files changed

+100
-6
lines changed

5 files changed

+100
-6
lines changed

CHANGELOG.md

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

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

5+
## [v3.4.18] - 2024-09-04
6+
### New Features
7+
- Added translation to Polish by @meavric in https://github.com/rappasoft/laravel-livewire-tables/pull/1925
8+
9+
### Docs
10+
- Added example for Vertical Scrolling table by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1926
11+
512
## [v3.4.17] - 2024-09-01
613
### New Features
714
- Add hide table option by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1914

CONTRIBUTING.md

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,44 @@
11
# Contributing
2-
Contributions are very welcome, please find below a summary of what is expected from contributions:
2+
This package is maintained by a core team, backed by a strong community effort, and contributions are extremely welcome!
33

4-
- Follow the conventions for methods, adding to the relevant configuration/helper trait
5-
- Add properties to the "With" trait
4+
Please find below a brief summary of how to make a good contribution. This helps to ensure a smooth review and merge of a PR.
5+
6+
## Discussing A Feature
7+
Please do feel free to raise a Discussion topic, a Feature Request Issue, or reach out on the official Discord to discuss any ideas!
8+
9+
## Starting A Contribution
10+
- Always create a fresh branch in your fork for every change. This should be based on the "development" branch, as other branches may be outdated, or lack the change history.
11+
- Ensure that a PR contains a single feature/fix. PRs with multiple features often end up with merge conflicts!
12+
- Avoid introducing a breaking change. If your change makes a radical or substantial change, then the existing behaviour should be maintained as the default. The core team tracks these, and as major versions are reached, may introduce new default behaviours.
13+
14+
## Generic Information
15+
- Avoid adding any additional dependencies/requirements to the package unless discussed and approved by the core team.
616
- Typehint both properties and return values
7-
- Add a comment to the method
8-
- Add tests for new methods
9-
- Add documentation for new methods
17+
- Add a comment to the method to explain what it does, this does not/should not be lengthy!
18+
19+
## Views
20+
- Where amending/appending to Views/Blades, ensure that you cater for Tailwind, Bootstrap-4 and Bootstrap-5 to ensure continued support
21+
22+
## Tests
23+
- Always add tests for new methods
24+
- Review existing tests if you make changes.
25+
- The project maintains a very high level of test coverage. A PR that reduces this coverage is less likely to be readily accepted.
26+
27+
## Documentation
28+
There is comprehensive documentation available for existing features. Please add documentation for any new/amended methods, as otherwise this may result in delays, which may be significant!
29+
30+
## Conventions
31+
- Please follow the project conventions below:
32+
33+
### Core Features
34+
A feature set typically exists in a "With" trait (For example - Rappasoft\LaravelLivewireTables\Traits\WithColumns.php)
35+
- The "WithColumns" contains any properties, and any key methods
36+
- Each feature set has a "Helper" and "Configuration" trait associated with it, for setting and getting properties, both server-side, and client-side.
37+
38+
## Actions, Columns and Filters
39+
An Action/Column/Filter type exists in the "Views" section (For example Rappasoft\LaravelLivewireTables\Views\Columns\DateColumn.php)
40+
- Each Action/Column/Filter again has a "Helper" and "Configuration" trait associated with it, for setting and getting properties
41+
- Actions should extend Rappasoft\LaravelLivewireTables\Views\Action (or a class that extends this)
42+
- Columns should extend Rappasoft\LaravelLivewireTables\Views\Column (or a class that extends this)
43+
- Filters should extend Rappasoft\LaravelLivewireTables\Views\Filter (or a class that extends this)
44+

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
| Indonesian (ID) | None |
1919
| Italian (IT) | Core Team |
2020
| Malay (MS) | [wanadri](https://github.com/wanadri) |
21+
| Polish (PL) | [meavric](https://github.com/meavric) |
2122
| Portugese (PT) | None |
2223
| Russian (RU) | None |
2324
| Spanish (ES) | [CristhoferMF](https://github.com/CristhoferMF) |

docs/datatable/styling.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,21 @@ public function configure(): void
386386
]);
387387
}
388388
```
389+
390+
### Vertical Scrolling Example
391+
Should you wish to implement a table with a responsive height, and vertical scrolling for additional rows, a basic example is below that demonstrates the approach, noting that you will likely wish to adjust the break-points!
392+
393+
```php
394+
public function configure(): void
395+
{
396+
397+
$this->setTableWrapperAttributes([
398+
'class' => 'max-h-56 md:max-h-72 lg:max-h-96 overflow-y-scroll',
399+
]);
400+
$this->setTheadAttributes([
401+
'class' => 'sticky top-0 '
402+
]);
403+
}
404+
```
405+
406+
Keep in mind that you must only call methods from configure() once to avoid overriding or conflicting results.

resources/lang/pl.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"All": "Wszystko",
3+
"All Columns": "Wszystkie kolumny",
4+
"Applied Filters": "Użyte filtry",
5+
"Applied Sorting": "Użyte sortowanie",
6+
"Bulk Actions": "Akcje zbiorowe",
7+
"Bulk Actions Confirm": "Czy zastosować ?",
8+
"Clear": "Wyczyść",
9+
"Columns": "Kolumny",
10+
"Debugging Values": "Wartości debugowania",
11+
"Deselect All": "Odznacz wszystko",
12+
"Done Reordering": "Done Reordering",
13+
"Filters": "Filtry",
14+
"No": "Nie",
15+
"No items found. Try to broaden your search.": "Brak rezultatów do wyświetlenia.",
16+
"of": "z",
17+
"Remove filter option": "Usuń opcję filtra",
18+
"Remove sort option": "Usuń opcję sortowania",
19+
"Reorder": "Zmień kolejność",
20+
"results": "wyniki",
21+
"row": "wiersz",
22+
"rows": "wiersze",
23+
"rows, do you want to select all": "czy chcesz zaznaczyć wszystkie wiersze",
24+
"Search": "Szukaj",
25+
"Select All": "Zaznacz wszystko",
26+
"Select All On Page": "Zaznacz wszystko na stronie",
27+
"Showing": "Pokazywanie",
28+
"to": "do",
29+
"Yes": "Tak",
30+
"You are currently selecting all": "Aktualnie masz wszystko zaznaczone",
31+
"You are not connected to the internet.": "Brak połączenia z internetem.",
32+
"You have selected": "Masz wybrane"
33+
}

0 commit comments

Comments
 (0)