@progress/kendo-angular-grid 19.2.0-develop.1 → 19.2.0-develop.10

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.
@@ -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);