@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/all.d.ts CHANGED
@@ -252,6 +252,22 @@ export declare abstract class BaseGridPlugin<TConfig = unknown> {
252
252
  * ```
253
253
  */
254
254
  afterRender?(): void;
255
+ /**
256
+ * Called after scroll-triggered row rendering completes.
257
+ * This is a lightweight hook for applying visual state to recycled DOM elements.
258
+ * Use this instead of afterRender when you need to reapply styling during scroll.
259
+ *
260
+ * Performance note: This is called frequently during scroll. Keep implementation fast.
261
+ *
262
+ * @example
263
+ * ```ts
264
+ * onScrollRender(): void {
265
+ * // Reapply selection state to visible cells
266
+ * this.applySelectionToVisibleCells();
267
+ * }
268
+ * ```
269
+ */
270
+ onScrollRender?(): void;
255
271
  /**
256
272
  * Render a custom row, bypassing the default row rendering.
257
273
  * Use this for special row types like group headers, detail rows, or footers.
@@ -2955,6 +2971,11 @@ export declare class SelectionPlugin extends BaseGridPlugin<SelectionConfig> {
2955
2971
  onCellMouseMove(event: CellMouseEvent): boolean | void;
2956
2972
  onCellMouseUp(_event: CellMouseEvent): boolean | void;
2957
2973
  afterRender(): void;
2974
+ /**
2975
+ * Called after scroll-triggered row rendering.
2976
+ * Reapplies selection classes to recycled DOM elements.
2977
+ */
2978
+ onScrollRender(): void;
2958
2979
  /**
2959
2980
  * Get the selected cell (cell mode only).
2960
2981
  */