Skip to content

Commit ea04643

Browse files
committed
fix: fluent scope method compatibility
1 parent 21e81f5 commit ea04643

File tree

4 files changed

+12
-92
lines changed

4 files changed

+12
-92
lines changed

CHANGELOG.md

Lines changed: 5 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -8,94 +8,10 @@
88

99
## CHANGELOG
1010

11-
### v10.12.0 - 2023-12-15
11+
### UNRELEASED
1212

13-
- feat: allow macro on Field #213
13+
- Add support for Laravel 11.x
14+
- Fix editor scope compatibility with Fluent class scope
15+
- Rename Editor `scope` method to `formScope`
1416

15-
### v10.11.0 - 2023-11-06
16-
17-
- feat: add batch remove optimization script (optional) #212
18-
19-
### v10.10.0 - 2023-11-04
20-
21-
- feat: Add optional scout js script #210
22-
- feat: add script support when using editor #211
23-
24-
### v10.9.1 - 2023-10-04
25-
26-
- fix: add missing Arrayable param #208
27-
- fix phpstan error: Parameter #1 $value of method Yajra\DataTables\Html\Builder::searchPanes() expects array|bool|(callable(): mixed), Yajra\DataTables\Html\SearchPane given.
28-
29-
### v10.9.0 - 2023-10-02
30-
31-
- feat: add dtsp collapse option setter #206
32-
- feat: add initCollapsed option setter #207
33-
34-
### v10.8.2 - 2023-10-02
35-
36-
- fix: show searchPanes by default #205
37-
38-
### v10.8.1 - 2023-08-16
39-
40-
- Revert "fix: Mixed Content problem with updating minifiedAjax method and get current url based on http or https scheme" #202
41-
- Reverts #186
42-
- fix: #201
43-
44-
### v10.8.0 - 2023-07-31
45-
46-
- fix: Mixed Content problem with updating minifiedAjax method and get current url based on http or https scheme #186
47-
- fix: #194
48-
- feat: add exportRender method #195
49-
50-
### v10.7.0 - 2023-06-08
51-
52-
- feat: new method for enum options #196
53-
54-
### v10.6.0 - 2023-03-31
55-
56-
- feat: thead class builder #191
57-
- fix: #169
58-
- fix: [yajra/laravel-datatables#2706](https://github.com/yajra/laravel-datatables/issues/2706)
59-
60-
### v10.5.2 - 2023-03-31
61-
62-
- fix: backward compatibility with FormOptions class #190
63-
64-
### v10.5.1 - 2023-03-28
65-
66-
- fix: scripts attributes not working #189
67-
68-
### v10.5.0 - 2023-03-02
69-
70-
- feat: hide/show fields based on editor action #188
71-
- hiddenOnCreate
72-
- hiddenOnEdit
73-
- hiddenOn
74-
75-
### v10.4.0 - 2023-03-02
76-
77-
- feat: add datetime field options #187
78-
- wireFormat
79-
- keyInput
80-
- displayFormat
81-
82-
### v10.3.1 - 2023-02-20
83-
84-
- fix: too long file name check for column render #185
85-
86-
### v10.3.0 - 2023-02-20
87-
88-
- feat: add builder ability to use viteJs by default #184
89-
90-
### v10.2.0 - 2023-02-20
91-
92-
- feat: allow callable exportFormat parameter #167
93-
94-
### v10.1.0 - 2023-02-07
95-
96-
- Drop Collective\Html dependency #183
97-
- Copy Collective HtmlBuilder class and implemented php-stan
98-
99-
### v10.0.0 - 2023-02-07
100-
101-
- Add Laravel 10 specific support
17+
### v11.0.0 (2024-0X-0X)

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# Upgrade Notes
2+
3+
## v10 to v11
4+
5+
- Editor `scope` method has been renamed to `formScope`.

src/Html/Editor/FormOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function submit(string $value = 'changed'): static
131131
* @return $this
132132
* @see https://editor.datatables.net/reference/type/form-options#scope
133133
*/
134-
public function scope(string $value = 'row'): static
134+
public function formScope(string $value = 'row'): static
135135
{
136136
$this->attributes['scope'] = $value;
137137

tests/EditorFormOptionsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function it_has_setters()
2424
->submit('submit')
2525
->title('title')
2626
->drawType('drawType')
27-
->scope('scope')
27+
->formScope('scope')
2828
->nest(false)
2929
->buttons([])
3030
->submitTrigger(1)
@@ -47,4 +47,4 @@ public function it_has_setters()
4747
$this->assertEquals(1, $options->submitTrigger);
4848
$this->assertEquals('submitHtml', $options->submitHtml);
4949
}
50-
}
50+
}

0 commit comments

Comments
 (0)