@toolbox-web/grid 1.23.2 → 1.23.4
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 +2 -2
- package/all.js +2 -2
- package/all.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/lib/core/grid.d.ts +7 -0
- package/lib/core/grid.d.ts.map +1 -1
- package/lib/core/plugin/base-plugin.d.ts +6 -0
- package/lib/core/plugin/base-plugin.d.ts.map +1 -1
- package/lib/core/plugin/types.d.ts +1 -0
- package/lib/core/plugin/types.d.ts.map +1 -1
- package/lib/core/types.d.ts +10 -3
- package/lib/core/types.d.ts.map +1 -1
- package/lib/plugins/clipboard/ClipboardPlugin.d.ts +3 -3
- package/lib/plugins/clipboard/index.js.map +1 -1
- package/lib/plugins/clipboard/types.d.ts +1 -1
- package/lib/plugins/column-virtualization/index.js.map +1 -1
- package/lib/plugins/column-virtualization/types.d.ts +24 -2
- package/lib/plugins/column-virtualization/types.d.ts.map +1 -1
- package/lib/plugins/context-menu/index.js.map +1 -1
- package/lib/plugins/editing/EditingPlugin.d.ts +19 -122
- package/lib/plugins/editing/EditingPlugin.d.ts.map +1 -1
- package/lib/plugins/editing/editors.d.ts +4 -2
- package/lib/plugins/editing/editors.d.ts.map +1 -1
- package/lib/plugins/editing/index.d.ts +1 -1
- package/lib/plugins/editing/index.d.ts.map +1 -1
- package/lib/plugins/editing/index.js +1 -1
- package/lib/plugins/editing/index.js.map +1 -1
- package/lib/plugins/editing/internal/cell-validation.d.ts +80 -0
- package/lib/plugins/editing/internal/cell-validation.d.ts.map +1 -0
- package/lib/plugins/editing/internal/dirty-tracking-manager.d.ts +77 -0
- package/lib/plugins/editing/internal/dirty-tracking-manager.d.ts.map +1 -0
- package/lib/plugins/editing/internal/editor-injection.d.ts +33 -0
- package/lib/plugins/editing/internal/editor-injection.d.ts.map +1 -0
- package/lib/plugins/editing/internal/helpers.d.ts +55 -0
- package/lib/plugins/editing/internal/helpers.d.ts.map +1 -0
- package/lib/plugins/editing/types.d.ts +1 -1
- package/lib/plugins/export/ExportPlugin.d.ts +1 -1
- package/lib/plugins/export/index.js.map +1 -1
- package/lib/plugins/export/types.d.ts +9 -1
- package/lib/plugins/export/types.d.ts.map +1 -1
- package/lib/plugins/filtering/FilteringPlugin.d.ts +0 -20
- package/lib/plugins/filtering/FilteringPlugin.d.ts.map +1 -1
- package/lib/plugins/filtering/filter-panel-date.d.ts +14 -0
- package/lib/plugins/filtering/filter-panel-date.d.ts.map +1 -0
- package/lib/plugins/filtering/filter-panel-default.d.ts +23 -0
- package/lib/plugins/filtering/filter-panel-default.d.ts.map +1 -0
- package/lib/plugins/filtering/filter-panel-number.d.ts +14 -0
- package/lib/plugins/filtering/filter-panel-number.d.ts.map +1 -0
- package/lib/plugins/filtering/index.js +1 -1
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/filtering/types.d.ts +158 -2
- package/lib/plugins/filtering/types.d.ts.map +1 -1
- package/lib/plugins/grouping-columns/GroupingColumnsPlugin.d.ts.map +1 -1
- package/lib/plugins/grouping-columns/grouping-columns.d.ts +7 -0
- package/lib/plugins/grouping-columns/grouping-columns.d.ts.map +1 -1
- package/lib/plugins/grouping-columns/index.js +1 -1
- package/lib/plugins/grouping-columns/index.js.map +1 -1
- package/lib/plugins/grouping-rows/index.js.map +1 -1
- package/lib/plugins/grouping-rows/types.d.ts +48 -3
- package/lib/plugins/grouping-rows/types.d.ts.map +1 -1
- package/lib/plugins/master-detail/index.js.map +1 -1
- package/lib/plugins/multi-sort/index.js.map +1 -1
- package/lib/plugins/multi-sort/types.d.ts +40 -6
- package/lib/plugins/multi-sort/types.d.ts.map +1 -1
- package/lib/plugins/pinned-columns/index.js.map +1 -1
- package/lib/plugins/pinned-rows/index.js.map +1 -1
- package/lib/plugins/pinned-rows/types.d.ts +42 -4
- package/lib/plugins/pinned-rows/types.d.ts.map +1 -1
- package/lib/plugins/pivot/index.js.map +1 -1
- package/lib/plugins/pivot/types.d.ts +66 -1
- package/lib/plugins/pivot/types.d.ts.map +1 -1
- package/lib/plugins/print/PrintPlugin.d.ts +1 -1
- package/lib/plugins/print/index.js.map +1 -1
- package/lib/plugins/print/types.d.ts +9 -1
- package/lib/plugins/print/types.d.ts.map +1 -1
- package/lib/plugins/reorder/index.js.map +1 -1
- package/lib/plugins/reorder/types.d.ts +12 -1
- package/lib/plugins/reorder/types.d.ts.map +1 -1
- package/lib/plugins/responsive/index.js +1 -1
- package/lib/plugins/responsive/index.js.map +1 -1
- package/lib/plugins/row-reorder/index.js.map +1 -1
- package/lib/plugins/selection/SelectionPlugin.d.ts +5 -5
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/server-side/index.js.map +1 -1
- package/lib/plugins/server-side/types.d.ts +82 -0
- package/lib/plugins/server-side/types.d.ts.map +1 -1
- package/lib/plugins/tree/index.js.map +1 -1
- package/lib/plugins/undo-redo/index.js.map +1 -1
- package/lib/plugins/visibility/VisibilityPlugin.d.ts +1 -1
- package/lib/plugins/visibility/index.js.map +1 -1
- package/lib/plugins/visibility/types.d.ts +16 -2
- package/lib/plugins/visibility/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/public.d.ts +1 -1
- package/public.d.ts.map +1 -1
- package/umd/grid.all.umd.js +1 -1
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js.map +1 -1
- package/umd/plugins/clipboard.umd.js.map +1 -1
- package/umd/plugins/editing.umd.js +1 -1
- package/umd/plugins/editing.umd.js.map +1 -1
- package/umd/plugins/export.umd.js.map +1 -1
- package/umd/plugins/filtering.umd.js +1 -1
- package/umd/plugins/filtering.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/print.umd.js.map +1 -1
- package/umd/plugins/responsive.umd.js +1 -1
- package/umd/plugins/responsive.umd.js.map +1 -1
- package/umd/plugins/selection.umd.js.map +1 -1
- package/umd/plugins/visibility.umd.js.map +1 -1
|
@@ -103,22 +103,67 @@ export interface GroupingRowsState {
|
|
|
103
103
|
}
|
|
104
104
|
export type RowGroupingConfig = GroupingRowsConfig;
|
|
105
105
|
export type RowGroupingState = GroupingRowsState;
|
|
106
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* A group header row in the flattened render model.
|
|
108
|
+
*
|
|
109
|
+
* Part of the {@link RenderRow} discriminated union (discriminant: `kind === 'group'`).
|
|
110
|
+
* Group rows represent collapsed/expanded group headers in the virtualized row list.
|
|
111
|
+
* They are produced by the grouping engine when `groupOn` categorizes rows into hierarchical groups.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```typescript
|
|
115
|
+
* function isGroup(row: RenderRow): row is GroupRowModelItem {
|
|
116
|
+
* return row.kind === 'group';
|
|
117
|
+
* }
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
107
120
|
export interface GroupRowModelItem {
|
|
121
|
+
/** Discriminant — always `'group'` for group header rows. */
|
|
108
122
|
kind: 'group';
|
|
123
|
+
/** Composite group key (nested groups separated by `"||"`, e.g. `"Engineering||Frontend"`). */
|
|
109
124
|
key: string;
|
|
125
|
+
/** Display value for this group level (the last segment of the group path). */
|
|
110
126
|
value: any;
|
|
127
|
+
/** Nesting depth (0 = top-level group). */
|
|
111
128
|
depth: number;
|
|
129
|
+
/** All data rows belonging to this group (including rows in nested sub-groups). */
|
|
112
130
|
rows: any[];
|
|
131
|
+
/** Whether this group is currently expanded (children visible). */
|
|
113
132
|
expanded: boolean;
|
|
114
133
|
}
|
|
115
|
-
/**
|
|
134
|
+
/**
|
|
135
|
+
* A data (leaf) row in the flattened render model.
|
|
136
|
+
*
|
|
137
|
+
* Part of the {@link RenderRow} discriminated union (discriminant: `kind === 'data'`).
|
|
138
|
+
* Data rows represent actual row objects from the grid's data source.
|
|
139
|
+
* Only visible when their parent group(s) are expanded.
|
|
140
|
+
*/
|
|
116
141
|
export interface DataRowModelItem {
|
|
142
|
+
/** Discriminant — always `'data'` for leaf data rows. */
|
|
117
143
|
kind: 'data';
|
|
144
|
+
/** The original row object from the data source. */
|
|
118
145
|
row: any;
|
|
146
|
+
/** Index of this row in the grid's current (post-sort/filter) row array. */
|
|
119
147
|
rowIndex: number;
|
|
120
148
|
}
|
|
121
|
-
/**
|
|
149
|
+
/**
|
|
150
|
+
* Discriminated union of row types in the flattened render model.
|
|
151
|
+
*
|
|
152
|
+
* The grouping plugin transforms the grid's row array into a flat list of
|
|
153
|
+
* `RenderRow` items that the virtualization engine iterates over. Each item
|
|
154
|
+
* is either a {@link GroupRowModelItem} (group header) or a {@link DataRowModelItem}
|
|
155
|
+
* (leaf data row). Use the `kind` property to discriminate:
|
|
156
|
+
*
|
|
157
|
+
* ```typescript
|
|
158
|
+
* for (const row of flattenedRows) {
|
|
159
|
+
* if (row.kind === 'group') {
|
|
160
|
+
* renderGroupHeader(row); // row is GroupRowModelItem
|
|
161
|
+
* } else {
|
|
162
|
+
* renderDataRow(row); // row is DataRowModelItem
|
|
163
|
+
* }
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
122
167
|
export type RenderRow = GroupRowModelItem | DataRowModelItem;
|
|
123
168
|
/** Event detail for group toggle */
|
|
124
169
|
export interface GroupToggleDetail {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/grouping-rows/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACnF,YAAY,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE,kDAAkD;AAClD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,iCAAiC,EAAE,aAAa,CAAC,CAAC;AAEpG;;;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