@toolbox-web/grid 0.1.0 → 0.2.1

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 (46) hide show
  1. package/README.md +1 -1
  2. package/all.d.ts +13 -0
  3. package/all.js +1684 -1196
  4. package/all.js.map +1 -1
  5. package/index.d.ts +4 -163
  6. package/index.js +1278 -1702
  7. package/index.js.map +1 -1
  8. package/lib/plugins/clipboard/index.js.map +1 -1
  9. package/lib/plugins/column-virtualization/index.js.map +1 -1
  10. package/lib/plugins/context-menu/index.js +35 -78
  11. package/lib/plugins/context-menu/index.js.map +1 -1
  12. package/lib/plugins/export/index.js.map +1 -1
  13. package/lib/plugins/filtering/index.js.map +1 -1
  14. package/lib/plugins/grouping-columns/index.js.map +1 -1
  15. package/lib/plugins/grouping-rows/index.js.map +1 -1
  16. package/lib/plugins/master-detail/index.js +1 -1
  17. package/lib/plugins/master-detail/index.js.map +1 -1
  18. package/lib/plugins/multi-sort/index.js.map +1 -1
  19. package/lib/plugins/pinned-columns/index.js.map +1 -1
  20. package/lib/plugins/pinned-rows/index.js +8 -8
  21. package/lib/plugins/pinned-rows/index.js.map +1 -1
  22. package/lib/plugins/pivot/index.js +160 -160
  23. package/lib/plugins/pivot/index.js.map +1 -1
  24. package/lib/plugins/reorder/index.js.map +1 -1
  25. package/lib/plugins/selection/index.js +93 -72
  26. package/lib/plugins/selection/index.js.map +1 -1
  27. package/lib/plugins/server-side/index.js.map +1 -1
  28. package/lib/plugins/tree/index.js.map +1 -1
  29. package/lib/plugins/undo-redo/index.js.map +1 -1
  30. package/lib/plugins/visibility/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/umd/grid.all.umd.js +27 -78
  33. package/umd/grid.all.umd.js.map +1 -1
  34. package/umd/grid.umd.js +28 -28
  35. package/umd/grid.umd.js.map +1 -1
  36. package/umd/plugins/context-menu.umd.js +1 -52
  37. package/umd/plugins/context-menu.umd.js.map +1 -1
  38. package/umd/plugins/master-detail.umd.js +1 -1
  39. package/umd/plugins/master-detail.umd.js.map +1 -1
  40. package/umd/plugins/pinned-rows.umd.js +1 -1
  41. package/umd/plugins/pinned-rows.umd.js.map +1 -1
  42. package/umd/plugins/pivot.umd.js +1 -1
  43. package/umd/plugins/pivot.umd.js.map +1 -1
  44. package/umd/plugins/selection.umd.js +1 -1
  45. package/umd/plugins/selection.umd.js.map +1 -1
  46. package/custom-elements.json +0 -1934
package/README.md CHANGED
@@ -506,7 +506,7 @@ For architecture details, rendering pipeline, and plugin development, see [ARCHI
506
506
  This grid is built and maintained by a single developer in spare time. If it saves you time or money, consider sponsoring to keep development going:
507
507
 
508
508
  [![GitHub Sponsors](https://img.shields.io/badge/Sponsor_on_GitHub-ea4aaa?style=for-the-badge&logo=github)](https://github.com/sponsors/OysteinAmundsen)
509
- [![Patreon](https://img.shields.io/badge/Support_on_Patreon-f96854?style=for-the-badge&logo=patreon)](https://patreon.com/user?u=40656340)
509
+ [![Patreon](https://img.shields.io/badge/Support_on_Patreon-f96854?style=for-the-badge&logo=patreon)](https://www.patreon.com/c/OysteinAmundsen)
510
510
 
511
511
  **What sponsorship enables:**
512
512
 
package/all.d.ts CHANGED
@@ -1959,6 +1959,11 @@ export declare class ContextMenuPlugin extends BaseGridPlugin_2<ContextMenuConfi
1959
1959
  attach(grid: GridElement_2): void;
1960
1960
  detach(): void;
1961
1961
  private installGlobalHandlers;
1962
+ /**
1963
+ * Clean up global handlers when the last instance detaches.
1964
+ * Uses reference counting to ensure handlers persist while any grid uses the plugin.
1965
+ */
1966
+ private uninstallGlobalHandlers;
1962
1967
  afterRender(): void;
1963
1968
  /**
1964
1969
  * Programmatically show the context menu at the specified position.
@@ -2978,6 +2983,10 @@ export declare interface GridElement {
2978
2983
  rows: any[];
2979
2984
  columns: ColumnConfig[];
2980
2985
  gridConfig: any;
2986
+ /** Current focused row index */
2987
+ focusRow: number;
2988
+ /** Current focused column index */
2989
+ focusCol: number;
2981
2990
  /** AbortSignal that is aborted when the grid disconnects from the DOM */
2982
2991
  disconnectSignal: AbortSignal;
2983
2992
  requestRender(): void;
@@ -2993,6 +3002,10 @@ declare interface GridElement_2 {
2993
3002
  rows: any[];
2994
3003
  columns: ColumnConfig_2[];
2995
3004
  gridConfig: any;
3005
+ /** Current focused row index */
3006
+ focusRow: number;
3007
+ /** Current focused column index */
3008
+ focusCol: number;
2996
3009
  /** AbortSignal that is aborted when the grid disconnects from the DOM */
2997
3010
  disconnectSignal: AbortSignal;
2998
3011
  requestRender(): void;