@toolbox-web/grid 0.0.3 → 0.0.4

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 (41) hide show
  1. package/all.d.ts +21 -0
  2. package/all.js +405 -402
  3. package/all.js.map +1 -1
  4. package/index.d.ts +26 -0
  5. package/index.js +924 -871
  6. package/index.js.map +1 -1
  7. package/lib/plugins/clipboard/index.js.map +1 -1
  8. package/lib/plugins/column-virtualization/index.js.map +1 -1
  9. package/lib/plugins/context-menu/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/index.js.map +1 -1
  14. package/lib/plugins/master-detail/index.js.map +1 -1
  15. package/lib/plugins/multi-sort/index.js.map +1 -1
  16. package/lib/plugins/pinned-columns/index.js.map +1 -1
  17. package/lib/plugins/pinned-rows/index.js.map +1 -1
  18. package/lib/plugins/pivot/index.js.map +1 -1
  19. package/lib/plugins/reorder/index.js +23 -20
  20. package/lib/plugins/reorder/index.js.map +1 -1
  21. package/lib/plugins/selection/index.js +110 -92
  22. package/lib/plugins/selection/index.js.map +1 -1
  23. package/lib/plugins/server-side/index.js.map +1 -1
  24. package/lib/plugins/tree/index.js.map +1 -1
  25. package/lib/plugins/undo-redo/index.js.map +1 -1
  26. package/lib/plugins/visibility/index.js.map +1 -1
  27. package/package.json +4 -1
  28. package/themes/dg-theme-contrast.css +43 -43
  29. package/themes/dg-theme-large.css +54 -54
  30. package/themes/dg-theme-standard.css +19 -19
  31. package/themes/dg-theme-vibrant.css +16 -16
  32. package/umd/grid.all.umd.js +24 -24
  33. package/umd/grid.all.umd.js.map +1 -1
  34. package/umd/grid.umd.js +15 -15
  35. package/umd/grid.umd.js.map +1 -1
  36. package/umd/plugins/multi-sort.umd.js.map +1 -1
  37. package/umd/plugins/reorder.umd.js +1 -1
  38. package/umd/plugins/reorder.umd.js.map +1 -1
  39. package/umd/plugins/selection.umd.js +2 -2
  40. package/umd/plugins/selection.umd.js.map +1 -1
  41. package/umd/plugins/visibility.umd.js.map +1 -1
package/index.d.ts CHANGED
@@ -261,6 +261,22 @@ export declare abstract class BaseGridPlugin<TConfig = unknown> {
261
261
  * ```
262
262
  */
263
263
  afterRender?(): void;
264
+ /**
265
+ * Called after scroll-triggered row rendering completes.
266
+ * This is a lightweight hook for applying visual state to recycled DOM elements.
267
+ * Use this instead of afterRender when you need to reapply styling during scroll.
268
+ *
269
+ * Performance note: This is called frequently during scroll. Keep implementation fast.
270
+ *
271
+ * @example
272
+ * ```ts
273
+ * onScrollRender(): void {
274
+ * // Reapply selection state to visible cells
275
+ * this.applySelectionToVisibleCells();
276
+ * }
277
+ * ```
278
+ */
279
+ onScrollRender?(): void;
264
280
  /**
265
281
  * Render a custom row, bypassing the default row rendering.
266
282
  * Use this for special row types like group headers, detail rows, or footers.
@@ -1844,6 +1860,11 @@ export declare class PluginManager {
1844
1860
  * Execute afterRender hook on all plugins.
1845
1861
  */
1846
1862
  afterRender(): void;
1863
+ /**
1864
+ * Execute onScrollRender hook on all plugins.
1865
+ * Called after scroll-triggered row rendering for lightweight visual state updates.
1866
+ */
1867
+ onScrollRender(): void;
1847
1868
  /**
1848
1869
  * Execute renderRow hook on all plugins.
1849
1870
  * Returns true if any plugin handled the row.
@@ -2077,6 +2098,11 @@ export declare class SelectionPlugin extends BaseGridPlugin<SelectionConfig> {
2077
2098
  onCellMouseMove(event: CellMouseEvent): boolean | void;
2078
2099
  onCellMouseUp(_event: CellMouseEvent): boolean | void;
2079
2100
  afterRender(): void;
2101
+ /**
2102
+ * Called after scroll-triggered row rendering.
2103
+ * Reapplies selection classes to recycled DOM elements.
2104
+ */
2105
+ onScrollRender(): void;
2080
2106
  /**
2081
2107
  * Get the selected cell (cell mode only).
2082
2108
  */