@toolbox-web/grid 0.0.2 → 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.
- package/README.md +1 -1
- package/all.d.ts +21 -0
- package/all.js +405 -402
- package/all.js.map +1 -1
- package/index.d.ts +26 -0
- package/index.js +924 -871
- package/index.js.map +1 -1
- package/lib/plugins/clipboard/index.js.map +1 -1
- package/lib/plugins/column-virtualization/index.js.map +1 -1
- package/lib/plugins/context-menu/index.js.map +1 -1
- package/lib/plugins/export/index.js.map +1 -1
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/grouping-columns/index.js.map +1 -1
- package/lib/plugins/grouping-rows/index.js.map +1 -1
- package/lib/plugins/master-detail/index.js.map +1 -1
- package/lib/plugins/multi-sort/index.js.map +1 -1
- package/lib/plugins/pinned-columns/index.js.map +1 -1
- package/lib/plugins/pinned-rows/index.js.map +1 -1
- package/lib/plugins/pivot/index.js.map +1 -1
- package/lib/plugins/reorder/index.js +23 -20
- package/lib/plugins/reorder/index.js.map +1 -1
- package/lib/plugins/selection/index.js +110 -92
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/server-side/index.js.map +1 -1
- package/lib/plugins/tree/index.js.map +1 -1
- package/lib/plugins/undo-redo/index.js.map +1 -1
- package/lib/plugins/visibility/index.js.map +1 -1
- package/package.json +4 -1
- package/themes/dg-theme-contrast.css +43 -43
- package/themes/dg-theme-large.css +54 -54
- package/themes/dg-theme-standard.css +19 -19
- package/themes/dg-theme-vibrant.css +16 -16
- package/umd/grid.all.umd.js +24 -24
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js +15 -15
- package/umd/grid.umd.js.map +1 -1
- package/umd/plugins/multi-sort.umd.js.map +1 -1
- package/umd/plugins/reorder.umd.js +1 -1
- package/umd/plugins/reorder.umd.js.map +1 -1
- package/umd/plugins/selection.umd.js +2 -2
- package/umd/plugins/selection.umd.js.map +1 -1
- package/umd/plugins/visibility.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ document.body.appendChild(grid);
|
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
> [!TIP]
|
|
26
|
-
> For complete examples, see the [Storybook documentation](https://
|
|
26
|
+
> For complete examples, see the [Storybook documentation](https://oysteinamundsen.github.io/toolbox/).
|
|
27
27
|
|
|
28
28
|
---
|
|
29
29
|
|
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
|
*/
|