@toolbox-web/grid 0.2.5 → 0.2.6
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 +56 -23
- package/all.js +841 -809
- package/all.js.map +1 -1
- package/index.d.ts +12 -5
- package/index.js +276 -225
- package/index.js.map +1 -1
- package/lib/plugins/clipboard/index.js +1 -1
- package/lib/plugins/clipboard/index.js.map +1 -1
- package/lib/plugins/column-virtualization/index.js +1 -1
- package/lib/plugins/column-virtualization/index.js.map +1 -1
- package/lib/plugins/context-menu/index.js +1 -1
- package/lib/plugins/context-menu/index.js.map +1 -1
- package/lib/plugins/export/index.js +1 -1
- package/lib/plugins/export/index.js.map +1 -1
- package/lib/plugins/filtering/index.js +1 -1
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/grouping-columns/index.js +46 -45
- package/lib/plugins/grouping-columns/index.js.map +1 -1
- package/lib/plugins/grouping-rows/index.js +1 -1
- package/lib/plugins/grouping-rows/index.js.map +1 -1
- package/lib/plugins/master-detail/index.js +1 -1
- package/lib/plugins/master-detail/index.js.map +1 -1
- package/lib/plugins/multi-sort/index.js +1 -1
- package/lib/plugins/multi-sort/index.js.map +1 -1
- package/lib/plugins/pinned-columns/index.js +1 -1
- package/lib/plugins/pinned-columns/index.js.map +1 -1
- package/lib/plugins/pinned-rows/index.js +55 -47
- package/lib/plugins/pinned-rows/index.js.map +1 -1
- package/lib/plugins/pivot/index.js +243 -241
- package/lib/plugins/pivot/index.js.map +1 -1
- package/lib/plugins/reorder/index.js +87 -67
- package/lib/plugins/reorder/index.js.map +1 -1
- package/lib/plugins/selection/index.js +28 -27
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/server-side/index.js +2 -2
- package/lib/plugins/server-side/index.js.map +1 -1
- package/lib/plugins/tree/index.js +70 -70
- package/lib/plugins/tree/index.js.map +1 -1
- package/lib/plugins/undo-redo/index.js +1 -1
- package/lib/plugins/undo-redo/index.js.map +1 -1
- package/lib/plugins/visibility/index.js +1 -1
- package/lib/plugins/visibility/index.js.map +1 -1
- package/package.json +1 -1
- package/umd/grid.all.umd.js +13 -13
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js +7 -7
- package/umd/grid.umd.js.map +1 -1
- package/umd/plugins/grouping-columns.umd.js +1 -1
- package/umd/plugins/grouping-columns.umd.js.map +1 -1
- package/umd/plugins/pinned-rows.umd.js +1 -1
- package/umd/plugins/pinned-rows.umd.js.map +1 -1
- package/umd/plugins/pivot.umd.js +1 -1
- package/umd/plugins/pivot.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 +1 -1
- package/umd/plugins/selection.umd.js.map +1 -1
- package/umd/plugins/server-side.umd.js +1 -1
- package/umd/plugins/server-side.umd.js.map +1 -1
- package/umd/plugins/tree.umd.js +1 -1
- package/umd/plugins/tree.umd.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export declare abstract class BaseGridPlugin<TConfig = unknown> implements GridP
|
|
|
125
125
|
/** Plugin configuration - merged with defaults in attach() */
|
|
126
126
|
protected config: TConfig;
|
|
127
127
|
/** User-provided configuration from constructor */
|
|
128
|
-
|
|
128
|
+
protected readonly userConfig: Partial<TConfig>;
|
|
129
129
|
/**
|
|
130
130
|
* Default configuration - subclasses should override this getter.
|
|
131
131
|
* Note: This must be a getter (not property initializer) for proper inheritance
|
|
@@ -1047,6 +1047,11 @@ export declare class DataGridElement<T = any> extends HTMLElement implements Int
|
|
|
1047
1047
|
* Returns true if any plugin handled the event.
|
|
1048
1048
|
*/
|
|
1049
1049
|
_dispatchCellClick(event: MouseEvent, rowIndex: number, colIndex: number, cellEl: HTMLElement): boolean;
|
|
1050
|
+
/**
|
|
1051
|
+
* Dispatch a row click event to the plugin system.
|
|
1052
|
+
* Returns true if any plugin handled the event.
|
|
1053
|
+
*/
|
|
1054
|
+
_dispatchRowClick(event: MouseEvent, rowIndex: number, row: any, rowEl: HTMLElement): boolean;
|
|
1050
1055
|
/**
|
|
1051
1056
|
* Dispatch a header click event to the plugin system.
|
|
1052
1057
|
* Returns true if any plugin handled the event.
|
|
@@ -1582,10 +1587,8 @@ export declare interface GridElement {
|
|
|
1582
1587
|
rows: any[];
|
|
1583
1588
|
columns: ColumnConfig[];
|
|
1584
1589
|
gridConfig: any;
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
/** Current focused column index */
|
|
1588
|
-
focusCol: number;
|
|
1590
|
+
/* Excluded from this release type: _focusRow */
|
|
1591
|
+
/* Excluded from this release type: _focusCol */
|
|
1589
1592
|
/** AbortSignal that is aborted when the grid disconnects from the DOM */
|
|
1590
1593
|
disconnectSignal: AbortSignal;
|
|
1591
1594
|
requestRender(): void;
|
|
@@ -1772,6 +1775,8 @@ declare interface InternalGrid<T = any> extends PublicGrid<T>, GridConfig<T> {
|
|
|
1772
1775
|
commitActiveRowEdit?: () => void;
|
|
1773
1776
|
/** Dispatch cell click to plugin system, returns true if handled */
|
|
1774
1777
|
_dispatchCellClick?: (event: MouseEvent, rowIndex: number, colIndex: number, cellEl: HTMLElement) => boolean;
|
|
1778
|
+
/** Dispatch row click to plugin system, returns true if handled */
|
|
1779
|
+
_dispatchRowClick?: (event: MouseEvent, rowIndex: number, row: any, rowEl: HTMLElement) => boolean;
|
|
1775
1780
|
/** Dispatch header click to plugin system, returns true if handled */
|
|
1776
1781
|
_dispatchHeaderClick?: (event: MouseEvent, colIndex: number, headerEl: HTMLElement) => boolean;
|
|
1777
1782
|
/** Dispatch keydown to plugin system, returns true if handled */
|
|
@@ -1846,6 +1851,8 @@ export declare interface PivotConfig {
|
|
|
1846
1851
|
defaultExpanded?: boolean;
|
|
1847
1852
|
/** Indent width per depth level in pixels (default: 20) */
|
|
1848
1853
|
indentWidth?: number;
|
|
1854
|
+
/** Whether to show the pivot configuration tool panel (default: true) */
|
|
1855
|
+
showToolPanel?: boolean;
|
|
1849
1856
|
}
|
|
1850
1857
|
|
|
1851
1858
|
export declare interface PivotResult {
|