@progress/kendo-angular-grid 19.2.0-develop.4 → 19.2.0-develop.6
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/aggregates/selection-aggregate.service.d.ts +1 -3
- package/common/provider.service.d.ts +2 -1
- package/databinding.directive.d.ts +2 -1
- package/esm2022/aggregates/selection-aggregate.service.mjs +4 -8
- package/esm2022/common/provider.service.mjs +1 -1
- package/esm2022/databinding.directive.mjs +6 -3
- package/esm2022/grid.component.mjs +7 -6
- package/esm2022/grouping/group-scroll-binding.directive.mjs +2 -2
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/state-management/undo-redo.directive.mjs +74 -16
- package/esm2022/state-management/undo-redo.service.mjs +0 -1
- package/esm2022/state-management/undo-redo.stack.mjs +6 -0
- package/fesm2022/progress-kendo-angular-grid.mjs +617 -560
- package/package.json +20 -20
- package/schematics/ngAdd/index.js +4 -4
- package/state-management/undo-redo.directive.d.ts +12 -2
- package/state-management/undo-redo.service.d.ts +0 -2
- package/state-management/undo-redo.stack.d.ts +2 -0
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.6",
|
|
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": 1751009984,
|
|
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.6",
|
|
43
|
+
"@progress/kendo-angular-common": "19.2.0-develop.6",
|
|
44
|
+
"@progress/kendo-angular-dateinputs": "19.2.0-develop.6",
|
|
45
|
+
"@progress/kendo-angular-layout": "19.2.0-develop.6",
|
|
46
|
+
"@progress/kendo-angular-navigation": "19.2.0-develop.6",
|
|
47
|
+
"@progress/kendo-angular-dropdowns": "19.2.0-develop.6",
|
|
48
|
+
"@progress/kendo-angular-excel-export": "19.2.0-develop.6",
|
|
49
|
+
"@progress/kendo-angular-icons": "19.2.0-develop.6",
|
|
50
|
+
"@progress/kendo-angular-inputs": "19.2.0-develop.6",
|
|
51
|
+
"@progress/kendo-angular-intl": "19.2.0-develop.6",
|
|
52
|
+
"@progress/kendo-angular-l10n": "19.2.0-develop.6",
|
|
53
|
+
"@progress/kendo-angular-label": "19.2.0-develop.6",
|
|
54
|
+
"@progress/kendo-angular-pager": "19.2.0-develop.6",
|
|
55
|
+
"@progress/kendo-angular-pdf-export": "19.2.0-develop.6",
|
|
56
|
+
"@progress/kendo-angular-popup": "19.2.0-develop.6",
|
|
57
|
+
"@progress/kendo-angular-toolbar": "19.2.0-develop.6",
|
|
58
|
+
"@progress/kendo-angular-utils": "19.2.0-develop.6",
|
|
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.6",
|
|
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.6',
|
|
8
|
+
'@progress/kendo-angular-navigation': '19.2.0-develop.6',
|
|
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.6',
|
|
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.6'
|
|
15
15
|
} });
|
|
16
16
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
17
17
|
}
|
|
@@ -8,6 +8,8 @@ import { UndoRedoEvent } from './grid-state.models';
|
|
|
8
8
|
import { EditService } from '../editing/edit.service';
|
|
9
9
|
import { UndoRedoService } from './undo-redo.service';
|
|
10
10
|
import { ChangeNotificationService } from '../data/change-notification.service';
|
|
11
|
+
import { ContextService } from '../common/provider.service';
|
|
12
|
+
import { LocalDataChangesService } from '../editing/local-data-changes.service';
|
|
11
13
|
import * as i0 from "@angular/core";
|
|
12
14
|
/**
|
|
13
15
|
* Represents the directive that manages undo-redo operations in the Grid.
|
|
@@ -25,11 +27,17 @@ export declare class UndoRedoDirective implements OnInit, OnDestroy {
|
|
|
25
27
|
private editService;
|
|
26
28
|
private undoRedoService;
|
|
27
29
|
private changeNotification;
|
|
30
|
+
private ctx?;
|
|
31
|
+
private localDataChangesService?;
|
|
28
32
|
/**
|
|
29
33
|
* Sets the maximum number of actions to keep in the undo-redo stack.
|
|
30
34
|
* @default 10
|
|
31
35
|
*/
|
|
32
36
|
maxStoredStates: number;
|
|
37
|
+
/**
|
|
38
|
+
* Defines the property name of the data item unique key that will be used to identify the items when performing undo-redo actions.
|
|
39
|
+
*/
|
|
40
|
+
itemIdKey: string | undefined;
|
|
33
41
|
/**
|
|
34
42
|
* Fires when you perform the undo action. Provides the Grid state to apply.
|
|
35
43
|
*/
|
|
@@ -45,7 +53,7 @@ export declare class UndoRedoDirective implements OnInit, OnDestroy {
|
|
|
45
53
|
private stack;
|
|
46
54
|
private subs;
|
|
47
55
|
private addToState;
|
|
48
|
-
constructor(host: GridComponent, editService: EditService, undoRedoService: UndoRedoService, changeNotification: ChangeNotificationService);
|
|
56
|
+
constructor(host: GridComponent, editService: EditService, undoRedoService: UndoRedoService, changeNotification: ChangeNotificationService, ctx?: ContextService, localDataChangesService?: LocalDataChangesService);
|
|
49
57
|
ngOnInit(): void;
|
|
50
58
|
ngOnDestroy(): void;
|
|
51
59
|
/**
|
|
@@ -57,6 +65,8 @@ export declare class UndoRedoDirective implements OnInit, OnDestroy {
|
|
|
57
65
|
*/
|
|
58
66
|
undo(): void;
|
|
59
67
|
private updateUndoRedoDisabled;
|
|
68
|
+
private getGridDataItems;
|
|
69
|
+
private isDataStateChangeEvent;
|
|
60
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<UndoRedoDirective, never>;
|
|
61
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UndoRedoDirective, "[kendoGridUndoRedo]", ["kendoGridUndoRedo"], { "maxStoredStates": { "alias": "maxStoredStates"; "required": false; }; }, { "onUndo": "undo"; "onRedo": "redo"; }, never, never, true, never>;
|
|
71
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UndoRedoDirective, "[kendoGridUndoRedo]", ["kendoGridUndoRedo"], { "maxStoredStates": { "alias": "maxStoredStates"; "required": false; }; "itemIdKey": { "alias": "itemIdKey"; "required": false; }; }, { "onUndo": "undo"; "onRedo": "redo"; }, never, never, true, never>;
|
|
62
72
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
|
-
import { GridState } from './grid-state.models';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
/**
|
|
9
8
|
* @hidden
|
|
@@ -13,7 +12,6 @@ export declare class UndoRedoService {
|
|
|
13
12
|
onUndo: Subject<undefined>;
|
|
14
13
|
onRedo: Subject<undefined>;
|
|
15
14
|
stackEndReached: Subject<'start' | 'end' | false>;
|
|
16
|
-
setState: Subject<GridState>;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<UndoRedoService, never>;
|
|
18
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<UndoRedoService>;
|
|
19
17
|
}
|
|
@@ -74,6 +74,8 @@ export declare class UndoRedoStack<T> {
|
|
|
74
74
|
* @returns The previous state or null if can't undo
|
|
75
75
|
*/
|
|
76
76
|
undo(): T | null;
|
|
77
|
+
peekNext(): T | null;
|
|
78
|
+
peekPrev(): T | null;
|
|
77
79
|
/**
|
|
78
80
|
* Performs a redo operation, moving to the next state
|
|
79
81
|
* @returns The next state or null if can't redo
|