@toolbox-web/grid 2.13.0 → 2.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.
Files changed (43) hide show
  1. package/all.js +1 -1
  2. package/all.js.map +1 -1
  3. package/index.js +1 -1
  4. package/index.js.map +1 -1
  5. package/lib/core/types.d.ts +32 -0
  6. package/lib/plugins/clipboard/index.js.map +1 -1
  7. package/lib/plugins/column-virtualization/index.js.map +1 -1
  8. package/lib/plugins/context-menu/index.js.map +1 -1
  9. package/lib/plugins/editing/index.js.map +1 -1
  10. package/lib/plugins/export/index.js.map +1 -1
  11. package/lib/plugins/filtering/index.js.map +1 -1
  12. package/lib/plugins/grouping-columns/index.js.map +1 -1
  13. package/lib/plugins/grouping-rows/GroupingRowsPlugin.d.ts +53 -2
  14. package/lib/plugins/grouping-rows/index.js +2 -2
  15. package/lib/plugins/grouping-rows/index.js.map +1 -1
  16. package/lib/plugins/grouping-rows/types.d.ts +10 -8
  17. package/lib/plugins/master-detail/index.js.map +1 -1
  18. package/lib/plugins/multi-sort/index.js.map +1 -1
  19. package/lib/plugins/pinned-columns/index.js.map +1 -1
  20. package/lib/plugins/pinned-rows/index.js.map +1 -1
  21. package/lib/plugins/pivot/index.js.map +1 -1
  22. package/lib/plugins/print/index.js.map +1 -1
  23. package/lib/plugins/reorder-columns/index.js.map +1 -1
  24. package/lib/plugins/reorder-rows/index.js.map +1 -1
  25. package/lib/plugins/responsive/index.js.map +1 -1
  26. package/lib/plugins/row-drag-drop/index.js.map +1 -1
  27. package/lib/plugins/selection/index.js.map +1 -1
  28. package/lib/plugins/server-side/index.js.map +1 -1
  29. package/lib/plugins/sticky-rows/index.js.map +1 -1
  30. package/lib/plugins/tooltip/index.js +1 -1
  31. package/lib/plugins/tooltip/index.js.map +1 -1
  32. package/lib/plugins/tree/index.js.map +1 -1
  33. package/lib/plugins/undo-redo/index.js.map +1 -1
  34. package/lib/plugins/visibility/index.js.map +1 -1
  35. package/package.json +1 -1
  36. package/umd/grid.all.umd.js +1 -1
  37. package/umd/grid.all.umd.js.map +1 -1
  38. package/umd/grid.umd.js +1 -1
  39. package/umd/grid.umd.js.map +1 -1
  40. package/umd/plugins/grouping-rows.umd.js +1 -1
  41. package/umd/plugins/grouping-rows.umd.js.map +1 -1
  42. package/umd/plugins/tooltip.umd.js +1 -1
  43. package/umd/plugins/tooltip.umd.js.map +1 -1
@@ -1607,6 +1607,38 @@ export interface FrameworkAdapter {
1607
1607
  * @param cellEl - The cell element whose content is being released
1608
1608
  */
1609
1609
  releaseCell?(cellEl: HTMLElement): void;
1610
+ /**
1611
+ * Open a teardown batch. Grid core wraps multi-cell teardown sequences
1612
+ * (e.g., `_clearRowPool`, row-pool shrink, full row rebuild) where every
1613
+ * affected cell will be detached from the DOM before the batch ends.
1614
+ *
1615
+ * Adapters that normally synchronously commit framework teardown per
1616
+ * `releaseCell` (React's `flushSync`) should defer those commits until
1617
+ * the matching {@link endBatch} call. Detached containers can then be
1618
+ * pruned without emitting per-cell render warnings.
1619
+ *
1620
+ * Calls may nest; adapters MUST track depth and only flush on the
1621
+ * outermost {@link endBatch}.
1622
+ *
1623
+ * @param gridEl - The grid element whose adapter-managed cells are
1624
+ * being torn down. Adapters that key state per grid (e.g. one
1625
+ * PortalManager per grid) should scope the batch to this element.
1626
+ * Omitted only by callers without a grid reference.
1627
+ *
1628
+ * @since 2.14.0
1629
+ */
1630
+ beginBatch?(gridEl?: HTMLElement): void;
1631
+ /**
1632
+ * Close a teardown batch opened by {@link beginBatch}. Adapters should
1633
+ * flush any deferred framework commits here (or rely on render-time
1634
+ * detached-container filtering for adapters that don't need a flush).
1635
+ *
1636
+ * @param gridEl - Must match the element passed to the paired
1637
+ * {@link beginBatch} call.
1638
+ *
1639
+ * @since 2.14.0
1640
+ */
1641
+ endBatch?(gridEl?: HTMLElement): void;
1610
1642
  /**
1611
1643
  * Unmount a specific framework container and free its resources.
1612
1644
  *