@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.
Files changed (61) hide show
  1. package/all.d.ts +56 -23
  2. package/all.js +841 -809
  3. package/all.js.map +1 -1
  4. package/index.d.ts +12 -5
  5. package/index.js +276 -225
  6. package/index.js.map +1 -1
  7. package/lib/plugins/clipboard/index.js +1 -1
  8. package/lib/plugins/clipboard/index.js.map +1 -1
  9. package/lib/plugins/column-virtualization/index.js +1 -1
  10. package/lib/plugins/column-virtualization/index.js.map +1 -1
  11. package/lib/plugins/context-menu/index.js +1 -1
  12. package/lib/plugins/context-menu/index.js.map +1 -1
  13. package/lib/plugins/export/index.js +1 -1
  14. package/lib/plugins/export/index.js.map +1 -1
  15. package/lib/plugins/filtering/index.js +1 -1
  16. package/lib/plugins/filtering/index.js.map +1 -1
  17. package/lib/plugins/grouping-columns/index.js +46 -45
  18. package/lib/plugins/grouping-columns/index.js.map +1 -1
  19. package/lib/plugins/grouping-rows/index.js +1 -1
  20. package/lib/plugins/grouping-rows/index.js.map +1 -1
  21. package/lib/plugins/master-detail/index.js +1 -1
  22. package/lib/plugins/master-detail/index.js.map +1 -1
  23. package/lib/plugins/multi-sort/index.js +1 -1
  24. package/lib/plugins/multi-sort/index.js.map +1 -1
  25. package/lib/plugins/pinned-columns/index.js +1 -1
  26. package/lib/plugins/pinned-columns/index.js.map +1 -1
  27. package/lib/plugins/pinned-rows/index.js +55 -47
  28. package/lib/plugins/pinned-rows/index.js.map +1 -1
  29. package/lib/plugins/pivot/index.js +243 -241
  30. package/lib/plugins/pivot/index.js.map +1 -1
  31. package/lib/plugins/reorder/index.js +87 -67
  32. package/lib/plugins/reorder/index.js.map +1 -1
  33. package/lib/plugins/selection/index.js +28 -27
  34. package/lib/plugins/selection/index.js.map +1 -1
  35. package/lib/plugins/server-side/index.js +2 -2
  36. package/lib/plugins/server-side/index.js.map +1 -1
  37. package/lib/plugins/tree/index.js +70 -70
  38. package/lib/plugins/tree/index.js.map +1 -1
  39. package/lib/plugins/undo-redo/index.js +1 -1
  40. package/lib/plugins/undo-redo/index.js.map +1 -1
  41. package/lib/plugins/visibility/index.js +1 -1
  42. package/lib/plugins/visibility/index.js.map +1 -1
  43. package/package.json +1 -1
  44. package/umd/grid.all.umd.js +13 -13
  45. package/umd/grid.all.umd.js.map +1 -1
  46. package/umd/grid.umd.js +7 -7
  47. package/umd/grid.umd.js.map +1 -1
  48. package/umd/plugins/grouping-columns.umd.js +1 -1
  49. package/umd/plugins/grouping-columns.umd.js.map +1 -1
  50. package/umd/plugins/pinned-rows.umd.js +1 -1
  51. package/umd/plugins/pinned-rows.umd.js.map +1 -1
  52. package/umd/plugins/pivot.umd.js +1 -1
  53. package/umd/plugins/pivot.umd.js.map +1 -1
  54. package/umd/plugins/reorder.umd.js +1 -1
  55. package/umd/plugins/reorder.umd.js.map +1 -1
  56. package/umd/plugins/selection.umd.js +1 -1
  57. package/umd/plugins/selection.umd.js.map +1 -1
  58. package/umd/plugins/server-side.umd.js +1 -1
  59. package/umd/plugins/server-side.umd.js.map +1 -1
  60. package/umd/plugins/tree.umd.js +1 -1
  61. 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
- private readonly userConfig;
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
- /** Current focused row index */
1586
- focusRow: number;
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 {