@toolbox-web/grid-angular 0.12.1 → 0.13.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolbox-web/grid-angular",
3
- "version": "0.12.1",
3
+ "version": "0.13.1",
4
4
  "description": "Angular adapter for @toolbox-web/grid data grid component",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -49,13 +49,33 @@ interface UndoRedoMethods {
49
49
  */
50
50
  redo: () => EditAction | null;
51
51
  /**
52
- * Check if there are any actions that can be undone.
52
+ * Reactive signal indicating whether undo is available.
53
+ * Updates automatically when edits are made, undone, redone, or history is cleared.
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * // In template:
58
+ * // <button [disabled]="!undoRedo.canUndo()">Undo</button>
59
+ *
60
+ * // In computed:
61
+ * readonly undoAvailable = computed(() => this.undoRedo.canUndo());
62
+ * ```
53
63
  */
54
- canUndo: () => boolean;
64
+ canUndo: Signal<boolean>;
55
65
  /**
56
- * Check if there are any actions that can be redone.
66
+ * Reactive signal indicating whether redo is available.
67
+ * Updates automatically when edits are made, undone, redone, or history is cleared.
68
+ *
69
+ * @example
70
+ * ```typescript
71
+ * // In template:
72
+ * // <button [disabled]="!undoRedo.canRedo()">Redo</button>
73
+ *
74
+ * // In computed:
75
+ * readonly redoAvailable = computed(() => this.undoRedo.canRedo());
76
+ * ```
57
77
  */
58
- canRedo: () => boolean;
78
+ canRedo: Signal<boolean>;
59
79
  /**
60
80
  * Clear all undo/redo history.
61
81
  */
@@ -1 +1 @@
1
- {"version":3,"file":"toolbox-web-grid-angular-features-undo-redo.d.ts","sources":["../../../../libs/grid-angular/features/undo-redo/src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BG;;AAcH;;;;AAIG;;AAED;;;AAGG;AACH,gBAAA,UAAA;AAEA;;;AAGG;AACH,gBAAA,UAAA;AAEA;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;AACH,wBAAA,UAAA;AAEA;;AAEG;AACH,wBAAA,UAAA;AAEA;;AAEG;AACH,aAAA,MAAA;AACD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BG;AACH,iBAAA,kBAAA,IAAA,eAAA;;;;"}
1
+ {"version":3,"file":"toolbox-web-grid-angular-features-undo-redo.d.ts","sources":["../../../../libs/grid-angular/features/undo-redo/src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BG;;AAcH;;;;AAIG;;AAED;;;AAGG;AACH,gBAAA,UAAA;AAEA;;;AAGG;AACH,gBAAA,UAAA;AAEA;;;;;;;;;;;;AAYG;AACH,aAAA,MAAA;AAEA;;;;;;;;;;;;AAYG;AACH,aAAA,MAAA;AAEA;;AAEG;;AAGH;;AAEG;AACH,wBAAA,UAAA;AAEA;;AAEG;AACH,wBAAA,UAAA;AAEA;;AAEG;AACH,aAAA,MAAA;AACD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BG;AACH,iBAAA,kBAAA,IAAA,eAAA;;;;"}