@toolbox-web/grid 0.2.4 → 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 +61 -23
- package/all.js +841 -809
- package/all.js.map +1 -1
- package/index.d.ts +17 -5
- package/index.js +316 -247
- 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/themes/dg-theme-bootstrap.css +0 -2
- package/themes/dg-theme-contrast.css +0 -1
- package/themes/dg-theme-large.css +0 -1
- package/themes/dg-theme-material.css +0 -2
- package/themes/dg-theme-standard.css +0 -1
- package/themes/dg-theme-vibrant.css +0 -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
|
|
@@ -889,6 +889,8 @@ declare interface ColumnInternal<T = any> extends ColumnConfig<T> {
|
|
|
889
889
|
__autoSized?: boolean;
|
|
890
890
|
__userResized?: boolean;
|
|
891
891
|
__renderedWidth?: number;
|
|
892
|
+
/** Original configured width (for reset on double-click) */
|
|
893
|
+
__originalWidth?: number;
|
|
892
894
|
__viewTemplate?: HTMLElement;
|
|
893
895
|
__editorTemplate?: HTMLElement;
|
|
894
896
|
__headerTemplate?: HTMLElement;
|
|
@@ -1023,6 +1025,7 @@ export declare class DataGridElement<T = any> extends HTMLElement implements Int
|
|
|
1023
1025
|
/* Excluded from this release type: getPlugin */
|
|
1024
1026
|
/* Excluded from this release type: getPluginByName */
|
|
1025
1027
|
/* Excluded from this release type: requestRender */
|
|
1028
|
+
/* Excluded from this release type: updateTemplate */
|
|
1026
1029
|
/* Excluded from this release type: requestAfterRender */
|
|
1027
1030
|
connectedCallback(): void;
|
|
1028
1031
|
disconnectedCallback(): void;
|
|
@@ -1044,6 +1047,11 @@ export declare class DataGridElement<T = any> extends HTMLElement implements Int
|
|
|
1044
1047
|
* Returns true if any plugin handled the event.
|
|
1045
1048
|
*/
|
|
1046
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;
|
|
1047
1055
|
/**
|
|
1048
1056
|
* Dispatch a header click event to the plugin system.
|
|
1049
1057
|
* Returns true if any plugin handled the event.
|
|
@@ -1579,10 +1587,8 @@ export declare interface GridElement {
|
|
|
1579
1587
|
rows: any[];
|
|
1580
1588
|
columns: ColumnConfig[];
|
|
1581
1589
|
gridConfig: any;
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
/** Current focused column index */
|
|
1585
|
-
focusCol: number;
|
|
1590
|
+
/* Excluded from this release type: _focusRow */
|
|
1591
|
+
/* Excluded from this release type: _focusCol */
|
|
1586
1592
|
/** AbortSignal that is aborted when the grid disconnects from the DOM */
|
|
1587
1593
|
disconnectSignal: AbortSignal;
|
|
1588
1594
|
requestRender(): void;
|
|
@@ -1769,6 +1775,8 @@ declare interface InternalGrid<T = any> extends PublicGrid<T>, GridConfig<T> {
|
|
|
1769
1775
|
commitActiveRowEdit?: () => void;
|
|
1770
1776
|
/** Dispatch cell click to plugin system, returns true if handled */
|
|
1771
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;
|
|
1772
1780
|
/** Dispatch header click to plugin system, returns true if handled */
|
|
1773
1781
|
_dispatchHeaderClick?: (event: MouseEvent, colIndex: number, headerEl: HTMLElement) => boolean;
|
|
1774
1782
|
/** Dispatch keydown to plugin system, returns true if handled */
|
|
@@ -1843,6 +1851,8 @@ export declare interface PivotConfig {
|
|
|
1843
1851
|
defaultExpanded?: boolean;
|
|
1844
1852
|
/** Indent width per depth level in pixels (default: 20) */
|
|
1845
1853
|
indentWidth?: number;
|
|
1854
|
+
/** Whether to show the pivot configuration tool panel (default: true) */
|
|
1855
|
+
showToolPanel?: boolean;
|
|
1846
1856
|
}
|
|
1847
1857
|
|
|
1848
1858
|
export declare interface PivotResult {
|
|
@@ -2184,6 +2194,8 @@ export declare const registerAggregator: (name: string, fn: AggregatorFn) => voi
|
|
|
2184
2194
|
/** Controller managing drag-based column resize lifecycle. */
|
|
2185
2195
|
declare interface ResizeController {
|
|
2186
2196
|
start: (e: MouseEvent, colIndex: number, cell: HTMLElement) => void;
|
|
2197
|
+
/** Reset a column to its configured width (or auto-size if none configured). */
|
|
2198
|
+
resetColumn: (colIndex: number) => void;
|
|
2187
2199
|
dispose: () => void;
|
|
2188
2200
|
/** True while a resize drag is in progress (used to suppress header click/sort). */
|
|
2189
2201
|
isResizing: boolean;
|