@progress/kendo-angular-grid 19.2.0-develop.10 → 19.2.0-develop.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/provider.service.d.ts +1 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/state-management/undo-redo.directive.mjs +13 -11
- package/fesm2022/progress-kendo-angular-grid.mjs +15 -13
- package/package.json +20 -20
- package/schematics/ngAdd/index.js +4 -4
- package/state-management/undo-redo.directive.d.ts +1 -0
|
@@ -7,7 +7,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
7
7
|
import type { GridComponent } from '../grid.component';
|
|
8
8
|
import { GridToolbarNavigationService } from '../rendering/toolbar/toolbar-navigation.service';
|
|
9
9
|
import type { GroupBindingDirective } from '../grouping/group-scroll-binding.directive';
|
|
10
|
-
import { DataBindingDirective } from '../databinding.directive';
|
|
10
|
+
import type { DataBindingDirective } from '../databinding.directive';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* @hidden
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '19.2.0-develop.
|
|
13
|
+
publishDate: 1751367404,
|
|
14
|
+
version: '19.2.0-develop.11',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -77,15 +77,6 @@ export class UndoRedoDirective {
|
|
|
77
77
|
}
|
|
78
78
|
ngOnInit() {
|
|
79
79
|
this.stack = new UndoRedoStack(this.maxStoredStates);
|
|
80
|
-
this.stack.add({
|
|
81
|
-
originalEvent: {
|
|
82
|
-
skip: this.host.skip,
|
|
83
|
-
take: this.host.pageSize,
|
|
84
|
-
sort: this.host.sort,
|
|
85
|
-
filter: this.host.filter,
|
|
86
|
-
group: this.host.group
|
|
87
|
-
}, gridState: this.host.currentState
|
|
88
|
-
});
|
|
89
80
|
this.subs = this.host.gridStateChange.subscribe((state) => {
|
|
90
81
|
if (this.addToState) {
|
|
91
82
|
this.stack.add({
|
|
@@ -156,7 +147,7 @@ export class UndoRedoDirective {
|
|
|
156
147
|
if (isSaveOrRemove) {
|
|
157
148
|
if (originalAction === 'save') {
|
|
158
149
|
const stateItem = this.getGridDataItems(this.stack.current.gridState.currentData).find(item => item[this.itemIdKey] === event.originalEvent.dataItem[this.itemIdKey]);
|
|
159
|
-
|
|
150
|
+
this.localDataChangesService?.data.splice(event.originalEvent.rowIndex, 1, stateItem);
|
|
160
151
|
}
|
|
161
152
|
else if (action === 'Undo') {
|
|
162
153
|
this.localDataChangesService?.data.splice(event.originalEvent.rowIndex, 0, event.originalEvent.dataItem);
|
|
@@ -169,13 +160,24 @@ export class UndoRedoDirective {
|
|
|
169
160
|
else {
|
|
170
161
|
this.host.loadState({ ...this.stack.current.gridState, currentData: null });
|
|
171
162
|
if (this.isDataStateChangeEvent(event.originalEvent)) {
|
|
172
|
-
const { skip, take, sort, filter, group } =
|
|
163
|
+
const { skip, take, sort, filter, group } = event.gridState;
|
|
173
164
|
this.host.dataStateChange.emit({ skip, take, sort, filter, group });
|
|
174
165
|
}
|
|
175
166
|
}
|
|
176
167
|
}));
|
|
177
168
|
});
|
|
178
169
|
}
|
|
170
|
+
ngAfterViewInit() {
|
|
171
|
+
this.stack.add({
|
|
172
|
+
originalEvent: {
|
|
173
|
+
skip: this.host.skip,
|
|
174
|
+
take: this.host.pageSize,
|
|
175
|
+
sort: this.host.sort,
|
|
176
|
+
filter: this.host.filter,
|
|
177
|
+
group: this.host.group
|
|
178
|
+
}, gridState: this.host.currentState
|
|
179
|
+
});
|
|
180
|
+
}
|
|
179
181
|
ngOnDestroy() {
|
|
180
182
|
this.stack.clear();
|
|
181
183
|
this.stack = null;
|
|
@@ -21214,8 +21214,8 @@ const packageMetadata = {
|
|
|
21214
21214
|
productName: 'Kendo UI for Angular',
|
|
21215
21215
|
productCode: 'KENDOUIANGULAR',
|
|
21216
21216
|
productCodes: ['KENDOUIANGULAR'],
|
|
21217
|
-
publishDate:
|
|
21218
|
-
version: '19.2.0-develop.
|
|
21217
|
+
publishDate: 1751367404,
|
|
21218
|
+
version: '19.2.0-develop.11',
|
|
21219
21219
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
21220
21220
|
};
|
|
21221
21221
|
|
|
@@ -34039,15 +34039,6 @@ class UndoRedoDirective {
|
|
|
34039
34039
|
}
|
|
34040
34040
|
ngOnInit() {
|
|
34041
34041
|
this.stack = new UndoRedoStack(this.maxStoredStates);
|
|
34042
|
-
this.stack.add({
|
|
34043
|
-
originalEvent: {
|
|
34044
|
-
skip: this.host.skip,
|
|
34045
|
-
take: this.host.pageSize,
|
|
34046
|
-
sort: this.host.sort,
|
|
34047
|
-
filter: this.host.filter,
|
|
34048
|
-
group: this.host.group
|
|
34049
|
-
}, gridState: this.host.currentState
|
|
34050
|
-
});
|
|
34051
34042
|
this.subs = this.host.gridStateChange.subscribe((state) => {
|
|
34052
34043
|
if (this.addToState) {
|
|
34053
34044
|
this.stack.add({
|
|
@@ -34118,7 +34109,7 @@ class UndoRedoDirective {
|
|
|
34118
34109
|
if (isSaveOrRemove) {
|
|
34119
34110
|
if (originalAction === 'save') {
|
|
34120
34111
|
const stateItem = this.getGridDataItems(this.stack.current.gridState.currentData).find(item => item[this.itemIdKey] === event.originalEvent.dataItem[this.itemIdKey]);
|
|
34121
|
-
|
|
34112
|
+
this.localDataChangesService?.data.splice(event.originalEvent.rowIndex, 1, stateItem);
|
|
34122
34113
|
}
|
|
34123
34114
|
else if (action === 'Undo') {
|
|
34124
34115
|
this.localDataChangesService?.data.splice(event.originalEvent.rowIndex, 0, event.originalEvent.dataItem);
|
|
@@ -34131,13 +34122,24 @@ class UndoRedoDirective {
|
|
|
34131
34122
|
else {
|
|
34132
34123
|
this.host.loadState({ ...this.stack.current.gridState, currentData: null });
|
|
34133
34124
|
if (this.isDataStateChangeEvent(event.originalEvent)) {
|
|
34134
|
-
const { skip, take, sort, filter, group } =
|
|
34125
|
+
const { skip, take, sort, filter, group } = event.gridState;
|
|
34135
34126
|
this.host.dataStateChange.emit({ skip, take, sort, filter, group });
|
|
34136
34127
|
}
|
|
34137
34128
|
}
|
|
34138
34129
|
}));
|
|
34139
34130
|
});
|
|
34140
34131
|
}
|
|
34132
|
+
ngAfterViewInit() {
|
|
34133
|
+
this.stack.add({
|
|
34134
|
+
originalEvent: {
|
|
34135
|
+
skip: this.host.skip,
|
|
34136
|
+
take: this.host.pageSize,
|
|
34137
|
+
sort: this.host.sort,
|
|
34138
|
+
filter: this.host.filter,
|
|
34139
|
+
group: this.host.group
|
|
34140
|
+
}, gridState: this.host.currentState
|
|
34141
|
+
});
|
|
34142
|
+
}
|
|
34141
34143
|
ngOnDestroy() {
|
|
34142
34144
|
this.stack.clear();
|
|
34143
34145
|
this.stack = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-grid",
|
|
3
|
-
"version": "19.2.0-develop.
|
|
3
|
+
"version": "19.2.0-develop.11",
|
|
4
4
|
"description": "Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"package": {
|
|
27
27
|
"productName": "Kendo UI for Angular",
|
|
28
28
|
"productCode": "KENDOUIANGULAR",
|
|
29
|
-
"publishDate":
|
|
29
|
+
"publishDate": 1751367404,
|
|
30
30
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
@@ -39,28 +39,28 @@
|
|
|
39
39
|
"@progress/kendo-data-query": "^1.0.0",
|
|
40
40
|
"@progress/kendo-drawing": "^1.21.0",
|
|
41
41
|
"@progress/kendo-licensing": "^1.5.0",
|
|
42
|
-
"@progress/kendo-angular-buttons": "19.2.0-develop.
|
|
43
|
-
"@progress/kendo-angular-common": "19.2.0-develop.
|
|
44
|
-
"@progress/kendo-angular-dateinputs": "19.2.0-develop.
|
|
45
|
-
"@progress/kendo-angular-layout": "19.2.0-develop.
|
|
46
|
-
"@progress/kendo-angular-navigation": "19.2.0-develop.
|
|
47
|
-
"@progress/kendo-angular-dropdowns": "19.2.0-develop.
|
|
48
|
-
"@progress/kendo-angular-excel-export": "19.2.0-develop.
|
|
49
|
-
"@progress/kendo-angular-icons": "19.2.0-develop.
|
|
50
|
-
"@progress/kendo-angular-inputs": "19.2.0-develop.
|
|
51
|
-
"@progress/kendo-angular-intl": "19.2.0-develop.
|
|
52
|
-
"@progress/kendo-angular-l10n": "19.2.0-develop.
|
|
53
|
-
"@progress/kendo-angular-label": "19.2.0-develop.
|
|
54
|
-
"@progress/kendo-angular-pager": "19.2.0-develop.
|
|
55
|
-
"@progress/kendo-angular-pdf-export": "19.2.0-develop.
|
|
56
|
-
"@progress/kendo-angular-popup": "19.2.0-develop.
|
|
57
|
-
"@progress/kendo-angular-toolbar": "19.2.0-develop.
|
|
58
|
-
"@progress/kendo-angular-utils": "19.2.0-develop.
|
|
42
|
+
"@progress/kendo-angular-buttons": "19.2.0-develop.11",
|
|
43
|
+
"@progress/kendo-angular-common": "19.2.0-develop.11",
|
|
44
|
+
"@progress/kendo-angular-dateinputs": "19.2.0-develop.11",
|
|
45
|
+
"@progress/kendo-angular-layout": "19.2.0-develop.11",
|
|
46
|
+
"@progress/kendo-angular-navigation": "19.2.0-develop.11",
|
|
47
|
+
"@progress/kendo-angular-dropdowns": "19.2.0-develop.11",
|
|
48
|
+
"@progress/kendo-angular-excel-export": "19.2.0-develop.11",
|
|
49
|
+
"@progress/kendo-angular-icons": "19.2.0-develop.11",
|
|
50
|
+
"@progress/kendo-angular-inputs": "19.2.0-develop.11",
|
|
51
|
+
"@progress/kendo-angular-intl": "19.2.0-develop.11",
|
|
52
|
+
"@progress/kendo-angular-l10n": "19.2.0-develop.11",
|
|
53
|
+
"@progress/kendo-angular-label": "19.2.0-develop.11",
|
|
54
|
+
"@progress/kendo-angular-pager": "19.2.0-develop.11",
|
|
55
|
+
"@progress/kendo-angular-pdf-export": "19.2.0-develop.11",
|
|
56
|
+
"@progress/kendo-angular-popup": "19.2.0-develop.11",
|
|
57
|
+
"@progress/kendo-angular-toolbar": "19.2.0-develop.11",
|
|
58
|
+
"@progress/kendo-angular-utils": "19.2.0-develop.11",
|
|
59
59
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"tslib": "^2.3.1",
|
|
63
|
-
"@progress/kendo-angular-schematics": "19.2.0-develop.
|
|
63
|
+
"@progress/kendo-angular-schematics": "19.2.0-develop.11",
|
|
64
64
|
"@progress/kendo-common": "^1.0.1",
|
|
65
65
|
"@progress/kendo-file-saver": "^1.0.0"
|
|
66
66
|
},
|
|
@@ -4,14 +4,14 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'GridModule', package: 'grid', peerDependencies: {
|
|
6
6
|
// peer deps of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '19.2.0-develop.
|
|
8
|
-
'@progress/kendo-angular-navigation': '19.2.0-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '19.2.0-develop.11',
|
|
8
|
+
'@progress/kendo-angular-navigation': '19.2.0-develop.11',
|
|
9
9
|
// peer dependency of kendo-angular-inputs
|
|
10
|
-
'@progress/kendo-angular-dialog': '19.2.0-develop.
|
|
10
|
+
'@progress/kendo-angular-dialog': '19.2.0-develop.11',
|
|
11
11
|
// peer dependency of kendo-angular-icons
|
|
12
12
|
'@progress/kendo-svg-icons': '^4.0.0',
|
|
13
13
|
// peer dependency of kendo-angular-layout
|
|
14
|
-
'@progress/kendo-angular-progressbar': '19.2.0-develop.
|
|
14
|
+
'@progress/kendo-angular-progressbar': '19.2.0-develop.11'
|
|
15
15
|
} });
|
|
16
16
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
17
17
|
}
|
|
@@ -55,6 +55,7 @@ export declare class UndoRedoDirective implements OnInit, OnDestroy {
|
|
|
55
55
|
private addToState;
|
|
56
56
|
constructor(host: GridComponent, editService: EditService, undoRedoService: UndoRedoService, changeNotification: ChangeNotificationService, ctx?: ContextService, localDataChangesService?: LocalDataChangesService);
|
|
57
57
|
ngOnInit(): void;
|
|
58
|
+
ngAfterViewInit(): void;
|
|
58
59
|
ngOnDestroy(): void;
|
|
59
60
|
/**
|
|
60
61
|
* Re-applies the last action that you reverted with the `undo` method.
|