@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.
- 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/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
|
*/
|