@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.
- package/README.md +50 -59
- package/all.d.ts +1 -47
- package/all.js +195 -239
- package/all.js.map +1 -1
- package/index.d.ts +1 -47
- package/index.js +129 -118
- package/index.js.map +1 -1
- package/lib/plugins/clipboard/index.js +11 -5
- package/lib/plugins/clipboard/index.js.map +1 -1
- package/lib/plugins/column-virtualization/index.js +9 -4
- package/lib/plugins/column-virtualization/index.js.map +1 -1
- package/lib/plugins/context-menu/index.js +11 -5
- package/lib/plugins/context-menu/index.js.map +1 -1
- package/lib/plugins/export/index.js +7 -3
- package/lib/plugins/export/index.js.map +1 -1
- package/lib/plugins/filtering/index.js +16 -149
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/grouping-columns/index.js +13 -6
- package/lib/plugins/grouping-columns/index.js.map +1 -1
- package/lib/plugins/grouping-rows/index.js +13 -6
- package/lib/plugins/grouping-rows/index.js.map +1 -1
- package/lib/plugins/master-detail/index.js +11 -5
- package/lib/plugins/master-detail/index.js.map +1 -1
- package/lib/plugins/multi-sort/index.js +13 -6
- package/lib/plugins/multi-sort/index.js.map +1 -1
- package/lib/plugins/pinned-columns/index.js +11 -5
- package/lib/plugins/pinned-columns/index.js.map +1 -1
- package/lib/plugins/pinned-rows/index.js +13 -6
- package/lib/plugins/pinned-rows/index.js.map +1 -1
- package/lib/plugins/pivot/index.js +19 -9
- package/lib/plugins/pivot/index.js.map +1 -1
- package/lib/plugins/reorder/index.js +11 -5
- package/lib/plugins/reorder/index.js.map +1 -1
- package/lib/plugins/selection/index.js +13 -6
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/server-side/index.js +11 -5
- package/lib/plugins/server-side/index.js.map +1 -1
- package/lib/plugins/tree/index.js +15 -7
- package/lib/plugins/tree/index.js.map +1 -1
- package/lib/plugins/undo-redo/index.js +3 -1
- package/lib/plugins/undo-redo/index.js.map +1 -1
- package/lib/plugins/visibility/index.js +13 -6
- package/lib/plugins/visibility/index.js.map +1 -1
- package/package.json +1 -1
- package/umd/grid.all.umd.js +15 -156
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js +6 -6
- package/umd/grid.umd.js.map +1 -1
- package/umd/plugins/clipboard.umd.js.map +1 -1
- package/umd/plugins/column-virtualization.umd.js.map +1 -1
- package/umd/plugins/context-menu.umd.js.map +1 -1
- package/umd/plugins/export.umd.js.map +1 -1
- package/umd/plugins/filtering.umd.js +1 -142
- package/umd/plugins/filtering.umd.js.map +1 -1
- package/umd/plugins/grouping-columns.umd.js.map +1 -1
- package/umd/plugins/grouping-rows.umd.js.map +1 -1
- package/umd/plugins/master-detail.umd.js.map +1 -1
- package/umd/plugins/multi-sort.umd.js.map +1 -1
- package/umd/plugins/pinned-columns.umd.js.map +1 -1
- package/umd/plugins/pinned-rows.umd.js.map +1 -1
- package/umd/plugins/pivot.umd.js.map +1 -1
- package/umd/plugins/reorder.umd.js.map +1 -1
- package/umd/plugins/selection.umd.js.map +1 -1
- package/umd/plugins/server-side.umd.js.map +1 -1
- package/umd/plugins/tree.umd.js.map +1 -1
- package/umd/plugins/undo-redo.umd.js.map +1 -1
- 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>[]);
|