@toolbox-web/grid 0.2.1 → 0.2.2

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 (67) hide show
  1. package/README.md +50 -59
  2. package/all.d.ts +1 -47
  3. package/all.js +195 -239
  4. package/all.js.map +1 -1
  5. package/index.d.ts +1 -47
  6. package/index.js +129 -118
  7. package/index.js.map +1 -1
  8. package/lib/plugins/clipboard/index.js +11 -5
  9. package/lib/plugins/clipboard/index.js.map +1 -1
  10. package/lib/plugins/column-virtualization/index.js +9 -4
  11. package/lib/plugins/column-virtualization/index.js.map +1 -1
  12. package/lib/plugins/context-menu/index.js +11 -5
  13. package/lib/plugins/context-menu/index.js.map +1 -1
  14. package/lib/plugins/export/index.js +7 -3
  15. package/lib/plugins/export/index.js.map +1 -1
  16. package/lib/plugins/filtering/index.js +16 -149
  17. package/lib/plugins/filtering/index.js.map +1 -1
  18. package/lib/plugins/grouping-columns/index.js +13 -6
  19. package/lib/plugins/grouping-columns/index.js.map +1 -1
  20. package/lib/plugins/grouping-rows/index.js +13 -6
  21. package/lib/plugins/grouping-rows/index.js.map +1 -1
  22. package/lib/plugins/master-detail/index.js +11 -5
  23. package/lib/plugins/master-detail/index.js.map +1 -1
  24. package/lib/plugins/multi-sort/index.js +13 -6
  25. package/lib/plugins/multi-sort/index.js.map +1 -1
  26. package/lib/plugins/pinned-columns/index.js +11 -5
  27. package/lib/plugins/pinned-columns/index.js.map +1 -1
  28. package/lib/plugins/pinned-rows/index.js +13 -6
  29. package/lib/plugins/pinned-rows/index.js.map +1 -1
  30. package/lib/plugins/pivot/index.js +19 -9
  31. package/lib/plugins/pivot/index.js.map +1 -1
  32. package/lib/plugins/reorder/index.js +11 -5
  33. package/lib/plugins/reorder/index.js.map +1 -1
  34. package/lib/plugins/selection/index.js +13 -6
  35. package/lib/plugins/selection/index.js.map +1 -1
  36. package/lib/plugins/server-side/index.js +11 -5
  37. package/lib/plugins/server-side/index.js.map +1 -1
  38. package/lib/plugins/tree/index.js +15 -7
  39. package/lib/plugins/tree/index.js.map +1 -1
  40. package/lib/plugins/undo-redo/index.js +3 -1
  41. package/lib/plugins/undo-redo/index.js.map +1 -1
  42. package/lib/plugins/visibility/index.js +13 -6
  43. package/lib/plugins/visibility/index.js.map +1 -1
  44. package/package.json +1 -1
  45. package/umd/grid.all.umd.js +15 -156
  46. package/umd/grid.all.umd.js.map +1 -1
  47. package/umd/grid.umd.js +6 -6
  48. package/umd/grid.umd.js.map +1 -1
  49. package/umd/plugins/clipboard.umd.js.map +1 -1
  50. package/umd/plugins/column-virtualization.umd.js.map +1 -1
  51. package/umd/plugins/context-menu.umd.js.map +1 -1
  52. package/umd/plugins/export.umd.js.map +1 -1
  53. package/umd/plugins/filtering.umd.js +1 -142
  54. package/umd/plugins/filtering.umd.js.map +1 -1
  55. package/umd/plugins/grouping-columns.umd.js.map +1 -1
  56. package/umd/plugins/grouping-rows.umd.js.map +1 -1
  57. package/umd/plugins/master-detail.umd.js.map +1 -1
  58. package/umd/plugins/multi-sort.umd.js.map +1 -1
  59. package/umd/plugins/pinned-columns.umd.js.map +1 -1
  60. package/umd/plugins/pinned-rows.umd.js.map +1 -1
  61. package/umd/plugins/pivot.umd.js.map +1 -1
  62. package/umd/plugins/reorder.umd.js.map +1 -1
  63. package/umd/plugins/selection.umd.js.map +1 -1
  64. package/umd/plugins/server-side.umd.js.map +1 -1
  65. package/umd/plugins/tree.umd.js.map +1 -1
  66. package/umd/plugins/undo-redo.umd.js.map +1 -1
  67. package/umd/plugins/visibility.umd.js.map +1 -1
package/index.d.ts CHANGED
@@ -941,56 +941,10 @@ export declare interface ContextMenuParams {
941
941
 
942
942
  export declare type DataGridCustomEvent<K extends keyof DataGridEventMap<any>, TRow = any> = CustomEvent<DataGridEventMap<TRow>[K]>;
943
943
 
944
- /**
945
- * High-performance data grid web component.
946
- * During migration, uses tbw-grid tag to avoid conflicts with existing datagrid.
947
- * Will be renamed back to data-grid when migration is complete.
948
- *
949
- * ## Configuration Architecture
950
- *
951
- * The grid follows a **single source of truth** pattern where all configuration
952
- * converges into `#effectiveConfig`. Users can set configuration via multiple inputs:
953
- *
954
- * **Input Sources (precedence low → high):**
955
- * 1. `gridConfig` property - base configuration object
956
- * 2. Light DOM elements:
957
- * - `<tbw-grid-column>` → `effectiveConfig.columns`
958
- * - `<tbw-grid-header title="...">` → `effectiveConfig.shell.header.title`
959
- * - `<tbw-grid-header-content>` → `effectiveConfig.shell.header.content`
960
- * 3. `columns` property → merged into `effectiveConfig.columns`
961
- * 4. `fitMode` property → merged into `effectiveConfig.fitMode`
962
- * 5. `editOn` property → merged into `effectiveConfig.editOn`
963
- * 6. Column inference from first row (if no columns defined)
964
- *
965
- * **Derived State:**
966
- * - `_columns` - processed columns from `effectiveConfig.columns` after plugin hooks
967
- * - `_rows` - processed rows after plugin hooks (grouping, filtering, etc.)
968
- *
969
- * The `#mergeEffectiveConfig()` method is the single place where all inputs converge.
970
- * All rendering and logic should read from `effectiveConfig` or derived state.
971
- *
972
- * @element tbw-grid
973
- *
974
- * @csspart container - The main grid container
975
- * @csspart header - The header row container
976
- * @csspart body - The body/rows container
977
- *
978
- * @fires cell-commit - Fired when a cell value is committed
979
- * @fires row-commit - Fired when a bulk row edit session commits
980
- * @fires changed-rows-reset - Fired after resetChangedRows() unless silent
981
- * @fires mount-external-view - Fired to request mounting of an external view renderer
982
- * @fires mount-external-editor - Fired to request mounting of an external editor renderer
983
- * @fires sort-change - Fired when sort state changes for a column
984
- * @fires column-resize - Fired after a column resize drag completes
985
- * @fires activate-cell - Fired when a cell activation intent occurs
986
- * @fires group-toggle - Fired when a group row is toggled
987
- *
988
- * @cssprop --tbw-color-bg - Background color
989
- * @cssprop --tbw-color-fg - Foreground/text color
990
- */
991
944
  export declare class DataGridElement<T = any> extends HTMLElement implements InternalGrid<T> {
992
945
  #private;
993
946
  static readonly tagName = "tbw-grid";
947
+ static readonly version: string;
994
948
  _rows: T[];
995
949
  get _columns(): ColumnInternal<T>[];
996
950
  set _columns(value: ColumnInternal<T>[]);