@progress/kendo-angular-grid 19.2.0-develop.1 → 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/aggregates/selection-aggregate.service.d.ts +1 -3
- package/column-menu/column-menu-item.directive.d.ts +1 -1
- 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/column-menu/column-menu-item.directive.mjs +1 -1
- package/esm2022/common/provider.service.mjs +1 -1
- package/esm2022/databinding.directive.mjs +6 -3
- package/esm2022/grid.component.mjs +17 -11
- package/esm2022/grouping/group-scroll-binding.directive.mjs +2 -2
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/list.component.mjs +32 -31
- package/esm2022/selection/selection-checkbox.directive.mjs +1 -1
- package/esm2022/selection/selection.service.mjs +23 -4
- package/esm2022/state-management/undo-redo.directive.mjs +84 -24
- package/esm2022/state-management/undo-redo.service.mjs +0 -1
- package/esm2022/state-management/undo-redo.stack.mjs +6 -0
- package/esm2022/utils.mjs +4 -0
- package/fesm2022/progress-kendo-angular-grid.mjs +697 -610
- package/grid.component.d.ts +2 -3
- package/package.json +20 -20
- package/rendering/list.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +4 -4
- package/selection/selection.service.d.ts +1 -1
- package/state-management/undo-redo.directive.d.ts +13 -2
- package/state-management/undo-redo.service.d.ts +0 -2
- package/state-management/undo-redo.stack.d.ts +2 -0
|
@@ -13,7 +13,6 @@ export class UndoRedoService {
|
|
|
13
13
|
onUndo = new Subject();
|
|
14
14
|
onRedo = new Subject();
|
|
15
15
|
stackEndReached = new Subject();
|
|
16
|
-
setState = new Subject();
|
|
17
16
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UndoRedoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18
17
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UndoRedoService });
|
|
19
18
|
}
|
|
@@ -139,6 +139,12 @@ export class UndoRedoStack {
|
|
|
139
139
|
this.currentNode = this.currentNode.previous;
|
|
140
140
|
return this.currentNode.state;
|
|
141
141
|
}
|
|
142
|
+
peekNext() {
|
|
143
|
+
return this.currentNode.next?.state || null;
|
|
144
|
+
}
|
|
145
|
+
peekPrev() {
|
|
146
|
+
return this.currentNode.previous?.state || null;
|
|
147
|
+
}
|
|
142
148
|
/**
|
|
143
149
|
* Performs a redo operation, moving to the next state
|
|
144
150
|
* @returns The next state or null if can't redo
|
package/esm2022/utils.mjs
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { InjectionToken } from '@angular/core';
|
|
6
6
|
import { merge, of } from 'rxjs';
|
|
7
|
+
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
8
|
export { isChanged, anyChanged, hasObservers } from '@progress/kendo-angular-common';
|
|
8
9
|
const EMPTY_REGEX = /^\s*$/;
|
|
9
10
|
/**
|
|
@@ -205,6 +206,9 @@ export const isMultipleRangesEnabled = (selectableSettings) => {
|
|
|
205
206
|
*/
|
|
206
207
|
export const calcRowHeight = (tableBody) => {
|
|
207
208
|
let result = 0;
|
|
209
|
+
if (!isDocumentAvailable()) {
|
|
210
|
+
return result;
|
|
211
|
+
}
|
|
208
212
|
if (tableBody) {
|
|
209
213
|
const row = tableBody.insertRow(0);
|
|
210
214
|
const cell = row.insertCell(0);
|