Skip to content

Commit 7bddef4

Browse files
authored
Merge pull request rappasoft#1879 from rappasoft/development
Development to Develop
2 parents e66bb31 + 8e33fba commit 7bddef4

40 files changed

+1290
-143
lines changed

CHANGELOG.md

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

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

5+
## [v3.4.11] - 2024-08-23
6+
### New Features
7+
- Add setIconLeft/setIconRight for Actions by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1877
8+
9+
## [v3.4.10] - 2024-08-23
10+
### Bug Fixes
11+
- Default UseComputedProperties to True to default to new views by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1873
12+
- Allow Single Date DateRangeFilter by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1872
13+
- Allow clearing of DateRangeFilter by Text Box by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1875
14+
15+
### Docs
16+
- Docs Update by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1876
17+
18+
## [v3.4.9] - 2024-08-21
19+
### Bug Fixes
20+
- Default UseComputedProperties to False to allow previously published views to work by default by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1869
21+
- Fix superfluous bulk actions tr > by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1868
22+
23+
## [v3.4.8] - 2024-08-18
24+
### New Features
25+
- Add an event dispatch for Filter Was Set when filterComponents is updated by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1861
26+
27+
## [v3.4.7] - 2024-08-18
28+
### Bug Fixes
29+
- Correct a locked property that is entangled in js, and add comments around some key properties to prevent reoccurrence by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1859
30+
531
## [v3.4.6] - 2024-08-15
632
### New Features
733
- Column Features - deselectedIf/selectedIf by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1846

docs/bulk-actions/customisations.md renamed to docs/bulk-actions/styling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Customising Style
2+
title: Styling
33
weight: 5
44
---
55

docs/datatable/available-methods.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,21 @@ public function configure(): void
1818
}
1919
```
2020

21+
### useComputedPropertiesDisabled
22+
23+
If you have published the Views **prior to v3.4.5**, and do not wish to remove the published views, then you should add the following call, which will disable the new Computed Properties behaviour. Note that publishing the views is not recommended!
24+
25+
```php
26+
public function configure(): void
27+
{
28+
$this->useComputedPropertiesDisabled();
29+
}
30+
```
31+
32+
2133
## Attributes
2234

23-
Documentation for Data Table Styling/Attributes is now: <a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/styling" aria-label="Documentation for Data Table Styling" >Here</a>
35+
Documentation for Data Table Styling/Attributes is now: [Here](../datatable/styling)
2436

2537
## Offline
2638

docs/filter-types/filters-daterange.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function filters(): array
4646
A full list of options is below, please see the Flatpickr documentation for reference as to purpose:
4747
| Config Option | Type | Default | Description |
4848
| ------------- | ------------- | ------------- | ------------- |
49+
| allowInvalidPreload | Boolean | true | Allows the preloading of an invalid date. When disabled, the field will be cleared if the provided date is invalid |
4950
| allowInput | Boolean | false | Allows the user to enter a date directly into the input field. By default, direct entry is disabled. |
5051
| altFormat | String | "F j, Y" | Exactly the same as date format, but for the altInput field |
5152
| altInput | Boolean | false | Show the user a readable date (as per altFormat), but return something totally different to the server. |
@@ -153,7 +154,7 @@ If using the CDN approach, ensure the following config matches:
153154
Then include the following in your layout:
154155
```html
155156
// Flatpickr Core Script
156-
<script src="https://npmcdn.com/flatpickr" async></script>
157+
<script src="https://npmcdn.com/flatpickr" defer></script>
157158

158159
// Flatpickr Core CSS
159160
<link rel="stylesheet" href="https://npmcdn.com/flatpickr/dist/flatpickr.min.css">
@@ -193,5 +194,5 @@ You can also add locales using the Flatpickr CDN, ensuring that these are loaded
193194

194195
For example to add German (de), ensure that the following is in the "head" section of your layout, ideally before your app.js
195196
```html
196-
<script src="https://npmcdn.com/flatpickr/dist/l10n/de.js" async></script>
197+
<script src="https://npmcdn.com/flatpickr/dist/l10n/de.js" defer></script>
197198
```

docs/footer/available-methods.md

Lines changed: 3 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -82,66 +82,9 @@ public function configure(): void
8282
}
8383
```
8484

85-
---
86-
87-
## setFooterTrAttributes
88-
89-
Set any attributes on the footer row element.
90-
91-
```php
92-
public function configure(): void
93-
{
94-
$this->setFooterTrAttributes(function($rows) {
95-
return ['class' => 'bg-gray-100'];
96-
});
97-
}
98-
```
99-
100-
By default, this replaces the default classes on the tr element, if you would like to keep them, set the default flag to true.
101-
102-
```php
103-
public function configure(): void
104-
{
105-
$this->setFooterTrAttributes(function($rows) {
106-
return [
107-
'default' => true,
108-
'class' => 'bg-gray-100'
109-
];
110-
});
111-
}
112-
```
113-
114-
## setFooterTdAttributes
115-
116-
Set any attributes on the footer row cells.
117-
118-
```php
119-
public function configure(): void
120-
{
121-
$this->setFooterTdAttributes(function(Column $column, $rows) {
122-
if ($column->isField('id')) {
123-
return ['class' => 'text-red-500'];
124-
}
125-
});
126-
}
127-
```
128-
129-
By default, this replaces the default classes on the td element, if you would like to keep them, set the default flag to true.
130-
131-
```php
132-
public function configure(): void
133-
{
134-
$this->setFooterTdAttributes(function(Column $column, $rows) {
135-
if ($column->isField('id')) {
136-
return [
137-
'default' => true,
138-
'class' => 'text-red-500'
139-
];
140-
}
141-
});
142-
}
143-
```
14485

14586
---
14687

147-
See also [footer column configuration](../columns/footer).
88+
See also
89+
[footer styling](./styling).
90+
[footer column configuration](../columns/footer).

docs/footer/styling.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
title: Styling
3+
weight: 2
4+
---
5+
6+
## setFooterTrAttributes
7+
8+
Set any attributes on the footer row element.
9+
10+
```php
11+
public function configure(): void
12+
{
13+
$this->setFooterTrAttributes(function($rows) {
14+
return ['class' => 'bg-gray-100'];
15+
});
16+
}
17+
```
18+
19+
By default, this replaces the default classes on the tr element, if you would like to keep them, set the default flag to true.
20+
21+
```php
22+
public function configure(): void
23+
{
24+
$this->setFooterTrAttributes(function($rows) {
25+
return [
26+
'default' => true,
27+
'class' => 'bg-gray-100'
28+
];
29+
});
30+
}
31+
```
32+
33+
## setFooterTdAttributes
34+
35+
Set any attributes on the footer row cells.
36+
37+
```php
38+
public function configure(): void
39+
{
40+
$this->setFooterTdAttributes(function(Column $column, $rows) {
41+
if ($column->isField('id')) {
42+
return ['class' => 'text-red-500'];
43+
}
44+
});
45+
}
46+
```
47+
48+
By default, this replaces the default classes on the td element, if you would like to keep them, set the default flag to true.
49+
50+
```php
51+
public function configure(): void
52+
{
53+
$this->setFooterTdAttributes(function(Column $column, $rows) {
54+
if ($column->isField('id')) {
55+
return [
56+
'default' => true,
57+
'class' => 'text-red-500'
58+
];
59+
}
60+
});
61+
}
62+
```

0 commit comments

Comments
 (0)