@toolbox-web/grid 0.1.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 +9 -47
- package/all.js +1853 -1366
- package/all.js.map +1 -1
- package/index.d.ts +5 -210
- package/index.js +822 -1346
- 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 +61 -56
- 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 +16 -157
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js +13 -13
- 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 +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/custom-elements.json +0 -1934
package/custom-elements.json
DELETED
|
@@ -1,1934 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "1.0.0",
|
|
3
|
-
"readme": "",
|
|
4
|
-
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "src/lib/core/grid.ts",
|
|
8
|
-
"declarations": [
|
|
9
|
-
{
|
|
10
|
-
"kind": "class",
|
|
11
|
-
"description": "High-performance data grid web component.\nDuring migration, uses tbw-grid tag to avoid conflicts with existing datagrid.\nWill be renamed back to data-grid when migration is complete.\n\n## Configuration Architecture\n\nThe grid follows a **single source of truth** pattern where all configuration\nconverges into `#effectiveConfig`. Users can set configuration via multiple inputs:\n\n**Input Sources (precedence low → high):**\n1. `gridConfig` property - base configuration object\n2. Light DOM elements:\n - `<tbw-grid-column>` → `effectiveConfig.columns`\n - `<tbw-grid-header title=\"...\">` → `effectiveConfig.shell.header.title`\n - `<tbw-grid-header-content>` → `effectiveConfig.shell.header.content`\n3. `columns` property → merged into `effectiveConfig.columns`\n4. `fitMode` property → merged into `effectiveConfig.fitMode`\n5. `editOn` property → merged into `effectiveConfig.editOn`\n6. Column inference from first row (if no columns defined)\n\n**Derived State:**\n- `_columns` - processed columns from `effectiveConfig.columns` after plugin hooks\n- `_rows` - processed rows after plugin hooks (grouping, filtering, etc.)\n\nThe `#mergeEffectiveConfig()` method is the single place where all inputs converge.\nAll rendering and logic should read from `effectiveConfig` or derived state.",
|
|
12
|
-
"name": "DataGridElement",
|
|
13
|
-
"cssProperties": [
|
|
14
|
-
{
|
|
15
|
-
"description": "Background color",
|
|
16
|
-
"name": "--tbw-color-bg"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"description": "Foreground/text color",
|
|
20
|
-
"name": "--tbw-color-fg"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"cssParts": [
|
|
24
|
-
{
|
|
25
|
-
"description": "The main grid container",
|
|
26
|
-
"name": "container"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"description": "The header row container",
|
|
30
|
-
"name": "header"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"description": "The body/rows container",
|
|
34
|
-
"name": "body"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"members": [
|
|
38
|
-
{
|
|
39
|
-
"kind": "field",
|
|
40
|
-
"name": "tagName",
|
|
41
|
-
"type": {
|
|
42
|
-
"text": "string"
|
|
43
|
-
},
|
|
44
|
-
"static": true,
|
|
45
|
-
"readonly": true,
|
|
46
|
-
"default": "'tbw-grid'"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"kind": "field",
|
|
50
|
-
"name": "#shadow",
|
|
51
|
-
"privacy": "private",
|
|
52
|
-
"type": {
|
|
53
|
-
"text": "ShadowRoot"
|
|
54
|
-
},
|
|
55
|
-
"readonly": true
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"kind": "field",
|
|
59
|
-
"name": "#initialized",
|
|
60
|
-
"privacy": "private",
|
|
61
|
-
"type": {
|
|
62
|
-
"text": "boolean"
|
|
63
|
-
},
|
|
64
|
-
"default": "false"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"kind": "field",
|
|
68
|
-
"name": "#readyPromise",
|
|
69
|
-
"privacy": "private",
|
|
70
|
-
"type": {
|
|
71
|
-
"text": "Promise<void>"
|
|
72
|
-
},
|
|
73
|
-
"default": "new Promise((res) => (this.#readyResolve = res))"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"kind": "field",
|
|
77
|
-
"name": "#readyResolve",
|
|
78
|
-
"privacy": "private",
|
|
79
|
-
"type": {
|
|
80
|
-
"text": "() => void | undefined"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"kind": "field",
|
|
85
|
-
"name": "#rows",
|
|
86
|
-
"privacy": "private",
|
|
87
|
-
"type": {
|
|
88
|
-
"text": "T[]"
|
|
89
|
-
},
|
|
90
|
-
"default": "[]"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"kind": "field",
|
|
94
|
-
"name": "#columns",
|
|
95
|
-
"privacy": "private",
|
|
96
|
-
"type": {
|
|
97
|
-
"text": "ColumnConfig<T>[] | ColumnConfigMap<T> | undefined"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"kind": "field",
|
|
102
|
-
"name": "#gridConfig",
|
|
103
|
-
"privacy": "private",
|
|
104
|
-
"type": {
|
|
105
|
-
"text": "GridConfig<T> | undefined"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"kind": "field",
|
|
110
|
-
"name": "#fitMode",
|
|
111
|
-
"privacy": "private",
|
|
112
|
-
"type": {
|
|
113
|
-
"text": "FitMode | undefined"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"kind": "field",
|
|
118
|
-
"name": "#editOn",
|
|
119
|
-
"privacy": "private",
|
|
120
|
-
"type": {
|
|
121
|
-
"text": "string | undefined"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"kind": "field",
|
|
126
|
-
"name": "#effectiveConfig",
|
|
127
|
-
"privacy": "private",
|
|
128
|
-
"type": {
|
|
129
|
-
"text": "GridConfig<T>"
|
|
130
|
-
},
|
|
131
|
-
"default": "{}"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"kind": "field",
|
|
135
|
-
"name": "#connected",
|
|
136
|
-
"privacy": "private",
|
|
137
|
-
"type": {
|
|
138
|
-
"text": "boolean"
|
|
139
|
-
},
|
|
140
|
-
"default": "false"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"kind": "field",
|
|
144
|
-
"name": "#scrollRaf",
|
|
145
|
-
"privacy": "private",
|
|
146
|
-
"type": {
|
|
147
|
-
"text": "number"
|
|
148
|
-
},
|
|
149
|
-
"default": "0"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"kind": "field",
|
|
153
|
-
"name": "#pendingScrollTop",
|
|
154
|
-
"privacy": "private",
|
|
155
|
-
"type": {
|
|
156
|
-
"text": "number | null"
|
|
157
|
-
},
|
|
158
|
-
"default": "null"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"kind": "field",
|
|
162
|
-
"name": "#hasScrollPlugins",
|
|
163
|
-
"privacy": "private",
|
|
164
|
-
"type": {
|
|
165
|
-
"text": "boolean"
|
|
166
|
-
},
|
|
167
|
-
"default": "false"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"kind": "field",
|
|
171
|
-
"name": "#renderRowHook",
|
|
172
|
-
"privacy": "private",
|
|
173
|
-
"type": {
|
|
174
|
-
"text": "(row: any, rowEl: HTMLElement, rowIndex: number) => boolean | undefined"
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"kind": "field",
|
|
179
|
-
"name": "#isDragging",
|
|
180
|
-
"privacy": "private",
|
|
181
|
-
"type": {
|
|
182
|
-
"text": "boolean"
|
|
183
|
-
},
|
|
184
|
-
"default": "false"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"kind": "field",
|
|
188
|
-
"name": "#touchStartY",
|
|
189
|
-
"privacy": "private",
|
|
190
|
-
"type": {
|
|
191
|
-
"text": "number | null"
|
|
192
|
-
},
|
|
193
|
-
"default": "null"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"kind": "field",
|
|
197
|
-
"name": "#touchStartX",
|
|
198
|
-
"privacy": "private",
|
|
199
|
-
"type": {
|
|
200
|
-
"text": "number | null"
|
|
201
|
-
},
|
|
202
|
-
"default": "null"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"kind": "field",
|
|
206
|
-
"name": "#touchScrollTop",
|
|
207
|
-
"privacy": "private",
|
|
208
|
-
"type": {
|
|
209
|
-
"text": "number | null"
|
|
210
|
-
},
|
|
211
|
-
"default": "null"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"kind": "field",
|
|
215
|
-
"name": "#touchScrollLeft",
|
|
216
|
-
"privacy": "private",
|
|
217
|
-
"type": {
|
|
218
|
-
"text": "number | null"
|
|
219
|
-
},
|
|
220
|
-
"default": "null"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"kind": "field",
|
|
224
|
-
"name": "#eventAbortController",
|
|
225
|
-
"privacy": "private",
|
|
226
|
-
"type": {
|
|
227
|
-
"text": "AbortController | undefined"
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"kind": "field",
|
|
232
|
-
"name": "#resizeObserver",
|
|
233
|
-
"privacy": "private",
|
|
234
|
-
"type": {
|
|
235
|
-
"text": "ResizeObserver | undefined"
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"kind": "field",
|
|
240
|
-
"name": "#pluginManager",
|
|
241
|
-
"privacy": "private",
|
|
242
|
-
"type": {
|
|
243
|
-
"text": "PluginManager"
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"kind": "field",
|
|
248
|
-
"name": "#stateChangeHandler",
|
|
249
|
-
"privacy": "private",
|
|
250
|
-
"type": {
|
|
251
|
-
"text": "() => void | undefined"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"kind": "field",
|
|
256
|
-
"name": "#initialColumnState",
|
|
257
|
-
"privacy": "private",
|
|
258
|
-
"type": {
|
|
259
|
-
"text": "GridColumnState | undefined"
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"kind": "field",
|
|
264
|
-
"name": "#shellState",
|
|
265
|
-
"privacy": "private",
|
|
266
|
-
"type": {
|
|
267
|
-
"text": "ShellState"
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"kind": "field",
|
|
272
|
-
"name": "#shellInitialized",
|
|
273
|
-
"privacy": "private",
|
|
274
|
-
"type": {
|
|
275
|
-
"text": "boolean"
|
|
276
|
-
},
|
|
277
|
-
"default": "false"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"kind": "field",
|
|
281
|
-
"name": "#resizeCleanup",
|
|
282
|
-
"privacy": "private",
|
|
283
|
-
"type": {
|
|
284
|
-
"text": "() => void | undefined"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"kind": "field",
|
|
289
|
-
"name": "_rows",
|
|
290
|
-
"type": {
|
|
291
|
-
"text": "T[]"
|
|
292
|
-
},
|
|
293
|
-
"default": "[]"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"kind": "field",
|
|
297
|
-
"name": "#baseColumns",
|
|
298
|
-
"privacy": "private",
|
|
299
|
-
"type": {
|
|
300
|
-
"text": "ColumnInternal<T>[]"
|
|
301
|
-
},
|
|
302
|
-
"default": "[]"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"kind": "field",
|
|
306
|
-
"name": "_columns",
|
|
307
|
-
"type": {
|
|
308
|
-
"text": "ColumnInternal<T>[]"
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"kind": "field",
|
|
313
|
-
"name": "visibleColumns",
|
|
314
|
-
"type": {
|
|
315
|
-
"text": "ColumnInternal<T>[]"
|
|
316
|
-
},
|
|
317
|
-
"readonly": true
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"kind": "field",
|
|
321
|
-
"name": "rowPool",
|
|
322
|
-
"type": {
|
|
323
|
-
"text": "HTMLElement[]"
|
|
324
|
-
},
|
|
325
|
-
"default": "[]"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"kind": "field",
|
|
329
|
-
"name": "__rowRenderEpoch",
|
|
330
|
-
"type": {
|
|
331
|
-
"text": "number"
|
|
332
|
-
},
|
|
333
|
-
"default": "0"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"kind": "field",
|
|
337
|
-
"name": "activeEditRows",
|
|
338
|
-
"type": {
|
|
339
|
-
"text": "number"
|
|
340
|
-
},
|
|
341
|
-
"default": "-1"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"kind": "field",
|
|
345
|
-
"name": "resizeController",
|
|
346
|
-
"type": {
|
|
347
|
-
"text": "ResizeController"
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
"kind": "field",
|
|
352
|
-
"name": "__didInitialAutoSize",
|
|
353
|
-
"type": {
|
|
354
|
-
"text": "boolean"
|
|
355
|
-
},
|
|
356
|
-
"default": "false"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"kind": "field",
|
|
360
|
-
"name": "__lightDomColumnsCache",
|
|
361
|
-
"type": {
|
|
362
|
-
"text": "ColumnInternal[] | undefined"
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"kind": "field",
|
|
367
|
-
"name": "__originalColumnNodes",
|
|
368
|
-
"type": {
|
|
369
|
-
"text": "HTMLElement[] | undefined"
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"kind": "field",
|
|
374
|
-
"name": "headerRowEl",
|
|
375
|
-
"type": {
|
|
376
|
-
"text": "HTMLElement"
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"kind": "field",
|
|
381
|
-
"name": "bodyEl",
|
|
382
|
-
"type": {
|
|
383
|
-
"text": "HTMLElement"
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
"kind": "field",
|
|
388
|
-
"name": "virtualization",
|
|
389
|
-
"type": {
|
|
390
|
-
"text": "VirtualState"
|
|
391
|
-
},
|
|
392
|
-
"default": "{ enabled: true, rowHeight: 28, // Initial state - will recalculate after first render bypassThreshold: 24, // Skip virtualization if <= this many rows (saves overhead) start: 0, end: 0, container: null, // Faux scrollbar element viewportEl: null, // Rows viewport for measuring visible height totalHeightEl: null, // Spacer for virtual height }"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"kind": "field",
|
|
396
|
-
"name": "sortState",
|
|
397
|
-
"type": {
|
|
398
|
-
"text": "{ field: string; direction: 1 | -1 } | null"
|
|
399
|
-
},
|
|
400
|
-
"default": "null"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"kind": "field",
|
|
404
|
-
"name": "__originalOrder",
|
|
405
|
-
"type": {
|
|
406
|
-
"text": "T[]"
|
|
407
|
-
},
|
|
408
|
-
"default": "[]"
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"kind": "field",
|
|
412
|
-
"name": "focusRow",
|
|
413
|
-
"type": {
|
|
414
|
-
"text": "number"
|
|
415
|
-
},
|
|
416
|
-
"default": "0"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"kind": "field",
|
|
420
|
-
"name": "focusCol",
|
|
421
|
-
"type": {
|
|
422
|
-
"text": "number"
|
|
423
|
-
},
|
|
424
|
-
"default": "0"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"kind": "field",
|
|
428
|
-
"name": "gridTemplate",
|
|
429
|
-
"type": {
|
|
430
|
-
"text": "string"
|
|
431
|
-
},
|
|
432
|
-
"default": "''"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
"kind": "field",
|
|
436
|
-
"name": "rowEditSnapshots",
|
|
437
|
-
"default": "new Map<number, T>()"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"kind": "field",
|
|
441
|
-
"name": "_changedRowIndices",
|
|
442
|
-
"default": "new Set<number>()"
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
"kind": "field",
|
|
446
|
-
"name": "rows",
|
|
447
|
-
"type": {
|
|
448
|
-
"text": "T[]"
|
|
449
|
-
}
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"kind": "field",
|
|
453
|
-
"name": "sourceRows",
|
|
454
|
-
"type": {
|
|
455
|
-
"text": "T[]"
|
|
456
|
-
},
|
|
457
|
-
"description": "Get the original unfiltered/unprocessed rows.\nUse this when you need access to all source data regardless of active filters.",
|
|
458
|
-
"readonly": true
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"kind": "field",
|
|
462
|
-
"name": "columns",
|
|
463
|
-
"type": {
|
|
464
|
-
"text": "ColumnConfig<T>[]"
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
"kind": "field",
|
|
469
|
-
"name": "gridConfig",
|
|
470
|
-
"type": {
|
|
471
|
-
"text": "GridConfig<T>"
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"kind": "field",
|
|
476
|
-
"name": "fitMode",
|
|
477
|
-
"type": {
|
|
478
|
-
"text": "FitMode"
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
"kind": "field",
|
|
483
|
-
"name": "editOn",
|
|
484
|
-
"type": {
|
|
485
|
-
"text": "string | undefined"
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
"kind": "field",
|
|
490
|
-
"name": "effectiveConfig",
|
|
491
|
-
"type": {
|
|
492
|
-
"text": "GridConfig<T>"
|
|
493
|
-
},
|
|
494
|
-
"readonly": true
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"kind": "field",
|
|
498
|
-
"name": "disconnectSignal",
|
|
499
|
-
"type": {
|
|
500
|
-
"text": "AbortSignal"
|
|
501
|
-
},
|
|
502
|
-
"description": "Get the disconnect signal for event listener cleanup.\nThis signal is aborted when the grid disconnects from the DOM.\nPlugins and internal code can use this for automatic listener cleanup.",
|
|
503
|
-
"readonly": true
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"kind": "method",
|
|
507
|
-
"name": "#injectStyles",
|
|
508
|
-
"privacy": "private",
|
|
509
|
-
"return": {
|
|
510
|
-
"type": {
|
|
511
|
-
"text": "void"
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
"kind": "method",
|
|
517
|
-
"name": "getPlugin",
|
|
518
|
-
"return": {
|
|
519
|
-
"type": {
|
|
520
|
-
"text": "P | undefined"
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
"parameters": [
|
|
524
|
-
{
|
|
525
|
-
"name": "PluginClass",
|
|
526
|
-
"type": {
|
|
527
|
-
"text": "new (...args: any[]) => P"
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
],
|
|
531
|
-
"description": "Get a plugin instance by its class.\nUsed by plugins for inter-plugin communication."
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
"kind": "method",
|
|
535
|
-
"name": "getPluginByName",
|
|
536
|
-
"return": {
|
|
537
|
-
"type": {
|
|
538
|
-
"text": "BaseGridPlugin | undefined"
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
"parameters": [
|
|
542
|
-
{
|
|
543
|
-
"name": "name",
|
|
544
|
-
"type": {
|
|
545
|
-
"text": "string"
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
],
|
|
549
|
-
"description": "Get a plugin instance by its name.\nUsed for loose coupling between plugins (avoids static imports)."
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"kind": "method",
|
|
553
|
-
"name": "requestRender",
|
|
554
|
-
"return": {
|
|
555
|
-
"type": {
|
|
556
|
-
"text": "void"
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
"description": "Request a full re-render of the grid.\nCalled by plugins when they need the grid to update.\nNote: This does NOT reset plugin state - just re-processes rows/columns and renders."
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"kind": "method",
|
|
563
|
-
"name": "requestAfterRender",
|
|
564
|
-
"return": {
|
|
565
|
-
"type": {
|
|
566
|
-
"text": "void"
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
"description": "Request a lightweight style update without rebuilding DOM.\nCalled by plugins when they only need to update CSS classes/styles.\nThis runs all plugin afterRender hooks without rebuilding row/column DOM."
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"kind": "method",
|
|
573
|
-
"name": "#initializePlugins",
|
|
574
|
-
"privacy": "private",
|
|
575
|
-
"return": {
|
|
576
|
-
"type": {
|
|
577
|
-
"text": "void"
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
"description": "Initialize plugin system with instances from config.\nPlugins are class instances passed in gridConfig.plugins[]."
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
"kind": "method",
|
|
584
|
-
"name": "#injectAllPluginStyles",
|
|
585
|
-
"privacy": "private",
|
|
586
|
-
"return": {
|
|
587
|
-
"type": {
|
|
588
|
-
"text": "void"
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
"description": "Inject all plugin styles into the shadow DOM.\nMust be called after #render() since innerHTML wipes existing content."
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"kind": "method",
|
|
595
|
-
"name": "#updatePluginConfigs",
|
|
596
|
-
"privacy": "private",
|
|
597
|
-
"return": {
|
|
598
|
-
"type": {
|
|
599
|
-
"text": "void"
|
|
600
|
-
}
|
|
601
|
-
},
|
|
602
|
-
"description": "Update plugins when grid config changes.\nWith class-based plugins, we need to detach old and attach new."
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
"kind": "method",
|
|
606
|
-
"name": "#destroyPlugins",
|
|
607
|
-
"privacy": "private",
|
|
608
|
-
"return": {
|
|
609
|
-
"type": {
|
|
610
|
-
"text": "void"
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
"description": "Clean up plugin states when grid disconnects."
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
"kind": "method",
|
|
617
|
-
"name": "#collectPluginShellContributions",
|
|
618
|
-
"privacy": "private",
|
|
619
|
-
"return": {
|
|
620
|
-
"type": {
|
|
621
|
-
"text": "void"
|
|
622
|
-
}
|
|
623
|
-
},
|
|
624
|
-
"description": "Collect tool panels and header content from all plugins.\nCalled after plugins are attached but before render."
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
"kind": "method",
|
|
628
|
-
"name": "#afterConnect",
|
|
629
|
-
"privacy": "private",
|
|
630
|
-
"return": {
|
|
631
|
-
"type": {
|
|
632
|
-
"text": "void"
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
"kind": "method",
|
|
638
|
-
"name": "#emit",
|
|
639
|
-
"privacy": "private",
|
|
640
|
-
"return": {
|
|
641
|
-
"type": {
|
|
642
|
-
"text": "void"
|
|
643
|
-
}
|
|
644
|
-
},
|
|
645
|
-
"parameters": [
|
|
646
|
-
{
|
|
647
|
-
"name": "eventName",
|
|
648
|
-
"type": {
|
|
649
|
-
"text": "string"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
"name": "detail",
|
|
654
|
-
"type": {
|
|
655
|
-
"text": "D"
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
]
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
"kind": "method",
|
|
662
|
-
"name": "emitCellCommit",
|
|
663
|
-
"return": {
|
|
664
|
-
"type": {
|
|
665
|
-
"text": "void"
|
|
666
|
-
}
|
|
667
|
-
},
|
|
668
|
-
"parameters": [
|
|
669
|
-
{
|
|
670
|
-
"name": "detail",
|
|
671
|
-
"type": {
|
|
672
|
-
"text": "CellCommitDetail<T>"
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
]
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
"kind": "method",
|
|
679
|
-
"name": "emitRowCommit",
|
|
680
|
-
"return": {
|
|
681
|
-
"type": {
|
|
682
|
-
"text": "void"
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
"parameters": [
|
|
686
|
-
{
|
|
687
|
-
"name": "detail",
|
|
688
|
-
"type": {
|
|
689
|
-
"text": "RowCommitDetail<T>"
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
]
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
"kind": "method",
|
|
696
|
-
"name": "emitSortChange",
|
|
697
|
-
"return": {
|
|
698
|
-
"type": {
|
|
699
|
-
"text": "void"
|
|
700
|
-
}
|
|
701
|
-
},
|
|
702
|
-
"parameters": [
|
|
703
|
-
{
|
|
704
|
-
"name": "detail",
|
|
705
|
-
"type": {
|
|
706
|
-
"text": "SortChangeDetail"
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
]
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
"kind": "method",
|
|
713
|
-
"name": "emitColumnResize",
|
|
714
|
-
"return": {
|
|
715
|
-
"type": {
|
|
716
|
-
"text": "void"
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
"parameters": [
|
|
720
|
-
{
|
|
721
|
-
"name": "detail",
|
|
722
|
-
"type": {
|
|
723
|
-
"text": "ColumnResizeDetail"
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
]
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"kind": "method",
|
|
730
|
-
"name": "emitActivateCell",
|
|
731
|
-
"return": {
|
|
732
|
-
"type": {
|
|
733
|
-
"text": "void"
|
|
734
|
-
}
|
|
735
|
-
},
|
|
736
|
-
"parameters": [
|
|
737
|
-
{
|
|
738
|
-
"name": "detail",
|
|
739
|
-
"type": {
|
|
740
|
-
"text": "ActivateCellDetail"
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
]
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
"kind": "method",
|
|
747
|
-
"name": "#updateAriaSelection",
|
|
748
|
-
"privacy": "private",
|
|
749
|
-
"return": {
|
|
750
|
-
"type": {
|
|
751
|
-
"text": "void"
|
|
752
|
-
}
|
|
753
|
-
},
|
|
754
|
-
"description": "Update ARIA selection attributes on rendered rows/cells"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"kind": "method",
|
|
758
|
-
"name": "#onFitChanged",
|
|
759
|
-
"privacy": "private",
|
|
760
|
-
"return": {
|
|
761
|
-
"type": {
|
|
762
|
-
"text": "void"
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
},
|
|
766
|
-
{
|
|
767
|
-
"kind": "method",
|
|
768
|
-
"name": "#onEditModeChanged",
|
|
769
|
-
"privacy": "private",
|
|
770
|
-
"return": {
|
|
771
|
-
"type": {
|
|
772
|
-
"text": "void"
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
"kind": "method",
|
|
778
|
-
"name": "#onRowsChanged",
|
|
779
|
-
"privacy": "private",
|
|
780
|
-
"return": {
|
|
781
|
-
"type": {
|
|
782
|
-
"text": "void"
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
},
|
|
786
|
-
{
|
|
787
|
-
"kind": "method",
|
|
788
|
-
"name": "#onColsChanged",
|
|
789
|
-
"privacy": "private",
|
|
790
|
-
"return": {
|
|
791
|
-
"type": {
|
|
792
|
-
"text": "void"
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
"kind": "method",
|
|
798
|
-
"name": "#onGridConfigChanged",
|
|
799
|
-
"privacy": "private",
|
|
800
|
-
"return": {
|
|
801
|
-
"type": {
|
|
802
|
-
"text": "void"
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
"kind": "method",
|
|
808
|
-
"name": "#getColumnConfiguration",
|
|
809
|
-
"privacy": "private",
|
|
810
|
-
"return": {
|
|
811
|
-
"type": {
|
|
812
|
-
"text": "void"
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
"kind": "method",
|
|
818
|
-
"name": "#renderHeader",
|
|
819
|
-
"privacy": "private",
|
|
820
|
-
"return": {
|
|
821
|
-
"type": {
|
|
822
|
-
"text": "void"
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"kind": "method",
|
|
828
|
-
"name": "updateTemplate",
|
|
829
|
-
"return": {
|
|
830
|
-
"type": {
|
|
831
|
-
"text": "void"
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
"kind": "method",
|
|
837
|
-
"name": "#autoSizeColumns",
|
|
838
|
-
"privacy": "private",
|
|
839
|
-
"return": {
|
|
840
|
-
"type": {
|
|
841
|
-
"text": "void"
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
"kind": "method",
|
|
847
|
-
"name": "#processColumns",
|
|
848
|
-
"privacy": "private",
|
|
849
|
-
"return": {
|
|
850
|
-
"type": {
|
|
851
|
-
"text": "void"
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
"kind": "method",
|
|
857
|
-
"name": "#executeAfterRender",
|
|
858
|
-
"privacy": "private",
|
|
859
|
-
"return": {
|
|
860
|
-
"type": {
|
|
861
|
-
"text": "void"
|
|
862
|
-
}
|
|
863
|
-
},
|
|
864
|
-
"description": "Execute all plugin afterRender hooks"
|
|
865
|
-
},
|
|
866
|
-
{
|
|
867
|
-
"kind": "method",
|
|
868
|
-
"name": "#rebuildRowModel",
|
|
869
|
-
"privacy": "private",
|
|
870
|
-
"return": {
|
|
871
|
-
"type": {
|
|
872
|
-
"text": "void"
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
"description": "Recompute row model via plugin hooks (grouping, tree, filtering, etc.)."
|
|
876
|
-
},
|
|
877
|
-
{
|
|
878
|
-
"kind": "method",
|
|
879
|
-
"name": "#mergeEffectiveConfig",
|
|
880
|
-
"privacy": "private",
|
|
881
|
-
"return": {
|
|
882
|
-
"type": {
|
|
883
|
-
"text": "void"
|
|
884
|
-
}
|
|
885
|
-
},
|
|
886
|
-
"description": "Build the canonical effective configuration by merging all input sources.\n\nThis is the **single source of truth** for the grid's configuration.\nAll inputs (gridConfig, light DOM, individual props) converge here.\n\n**Precedence (lowest → highest):**\n1. `gridConfig` property - base config object\n2. Light DOM `<tbw-grid-column>` elements - declarative columns\n3. `columns` property - programmatic columns override\n4. Inferred columns - auto-detected from row data\n5. Individual props (`fitMode`, `editOn`) - convenience overrides\n\nAfter this method runs:\n- `#effectiveConfig` contains the merged result\n- `_columns` is NOT set here (done by #getColumnConfiguration + #processColumns)\n- Plugins receive config via their attach() method"
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
"kind": "method",
|
|
890
|
-
"name": "#renderVisibleRows",
|
|
891
|
-
"privacy": "private",
|
|
892
|
-
"return": {
|
|
893
|
-
"type": {
|
|
894
|
-
"text": "void"
|
|
895
|
-
}
|
|
896
|
-
},
|
|
897
|
-
"parameters": [
|
|
898
|
-
{
|
|
899
|
-
"name": "start",
|
|
900
|
-
"type": {
|
|
901
|
-
"text": "number"
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
"name": "end",
|
|
906
|
-
"type": {
|
|
907
|
-
"text": "number"
|
|
908
|
-
}
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
"name": "epoch",
|
|
912
|
-
"default": "this.__rowRenderEpoch"
|
|
913
|
-
}
|
|
914
|
-
]
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"kind": "method",
|
|
918
|
-
"name": "#startRowEdit",
|
|
919
|
-
"privacy": "private",
|
|
920
|
-
"return": {
|
|
921
|
-
"type": {
|
|
922
|
-
"text": "void"
|
|
923
|
-
}
|
|
924
|
-
},
|
|
925
|
-
"parameters": [
|
|
926
|
-
{
|
|
927
|
-
"name": "rowIndex",
|
|
928
|
-
"type": {
|
|
929
|
-
"text": "number"
|
|
930
|
-
}
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
"name": "rowData",
|
|
934
|
-
"type": {
|
|
935
|
-
"text": "any"
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
]
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
"kind": "method",
|
|
942
|
-
"name": "#exitRowEdit",
|
|
943
|
-
"privacy": "private",
|
|
944
|
-
"return": {
|
|
945
|
-
"type": {
|
|
946
|
-
"text": "void"
|
|
947
|
-
}
|
|
948
|
-
},
|
|
949
|
-
"parameters": [
|
|
950
|
-
{
|
|
951
|
-
"name": "rowIndex",
|
|
952
|
-
"type": {
|
|
953
|
-
"text": "number"
|
|
954
|
-
}
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
"name": "revert",
|
|
958
|
-
"type": {
|
|
959
|
-
"text": "boolean"
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
]
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
"kind": "method",
|
|
966
|
-
"name": "#setup",
|
|
967
|
-
"privacy": "private",
|
|
968
|
-
"return": {
|
|
969
|
-
"type": {
|
|
970
|
-
"text": "void"
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
"kind": "method",
|
|
976
|
-
"name": "#applyColumnStateInternal",
|
|
977
|
-
"privacy": "private",
|
|
978
|
-
"return": {
|
|
979
|
-
"type": {
|
|
980
|
-
"text": "void"
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
"parameters": [
|
|
984
|
-
{
|
|
985
|
-
"name": "state",
|
|
986
|
-
"type": {
|
|
987
|
-
"text": "GridColumnState"
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
],
|
|
991
|
-
"description": "Internal method to apply column state without triggering setup loop"
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
"kind": "method",
|
|
995
|
-
"name": "#shouldBypassVirtualization",
|
|
996
|
-
"privacy": "private",
|
|
997
|
-
"return": {
|
|
998
|
-
"type": {
|
|
999
|
-
"text": "boolean"
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
},
|
|
1003
|
-
{
|
|
1004
|
-
"kind": "method",
|
|
1005
|
-
"name": "#onScrollBatched",
|
|
1006
|
-
"privacy": "private",
|
|
1007
|
-
"return": {
|
|
1008
|
-
"type": {
|
|
1009
|
-
"text": "void"
|
|
1010
|
-
}
|
|
1011
|
-
},
|
|
1012
|
-
"parameters": [
|
|
1013
|
-
{
|
|
1014
|
-
"name": "scrollTop",
|
|
1015
|
-
"type": {
|
|
1016
|
-
"text": "number"
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
]
|
|
1020
|
-
},
|
|
1021
|
-
{
|
|
1022
|
-
"kind": "method",
|
|
1023
|
-
"name": "findHeaderRow",
|
|
1024
|
-
"return": {
|
|
1025
|
-
"type": {
|
|
1026
|
-
"text": "HTMLElement"
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
"kind": "method",
|
|
1032
|
-
"name": "findRenderedRowElement",
|
|
1033
|
-
"return": {
|
|
1034
|
-
"type": {
|
|
1035
|
-
"text": "HTMLElement | null"
|
|
1036
|
-
}
|
|
1037
|
-
},
|
|
1038
|
-
"parameters": [
|
|
1039
|
-
{
|
|
1040
|
-
"name": "rowIndex",
|
|
1041
|
-
"type": {
|
|
1042
|
-
"text": "number"
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
]
|
|
1046
|
-
},
|
|
1047
|
-
{
|
|
1048
|
-
"kind": "method",
|
|
1049
|
-
"name": "dispatchCellClick",
|
|
1050
|
-
"return": {
|
|
1051
|
-
"type": {
|
|
1052
|
-
"text": "boolean"
|
|
1053
|
-
}
|
|
1054
|
-
},
|
|
1055
|
-
"parameters": [
|
|
1056
|
-
{
|
|
1057
|
-
"name": "event",
|
|
1058
|
-
"type": {
|
|
1059
|
-
"text": "MouseEvent"
|
|
1060
|
-
}
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"name": "rowIndex",
|
|
1064
|
-
"type": {
|
|
1065
|
-
"text": "number"
|
|
1066
|
-
}
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
"name": "colIndex",
|
|
1070
|
-
"type": {
|
|
1071
|
-
"text": "number"
|
|
1072
|
-
}
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
"name": "cellEl",
|
|
1076
|
-
"type": {
|
|
1077
|
-
"text": "HTMLElement"
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
],
|
|
1081
|
-
"description": "Dispatch a cell click event to the plugin system.\nReturns true if any plugin handled the event."
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
"kind": "method",
|
|
1085
|
-
"name": "dispatchHeaderClick",
|
|
1086
|
-
"return": {
|
|
1087
|
-
"type": {
|
|
1088
|
-
"text": "boolean"
|
|
1089
|
-
}
|
|
1090
|
-
},
|
|
1091
|
-
"parameters": [
|
|
1092
|
-
{
|
|
1093
|
-
"name": "event",
|
|
1094
|
-
"type": {
|
|
1095
|
-
"text": "MouseEvent"
|
|
1096
|
-
}
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
"name": "colIndex",
|
|
1100
|
-
"type": {
|
|
1101
|
-
"text": "number"
|
|
1102
|
-
}
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
"name": "headerEl",
|
|
1106
|
-
"type": {
|
|
1107
|
-
"text": "HTMLElement"
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
],
|
|
1111
|
-
"description": "Dispatch a header click event to the plugin system.\nReturns true if any plugin handled the event."
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
"kind": "method",
|
|
1115
|
-
"name": "dispatchKeyDown",
|
|
1116
|
-
"return": {
|
|
1117
|
-
"type": {
|
|
1118
|
-
"text": "boolean"
|
|
1119
|
-
}
|
|
1120
|
-
},
|
|
1121
|
-
"parameters": [
|
|
1122
|
-
{
|
|
1123
|
-
"name": "event",
|
|
1124
|
-
"type": {
|
|
1125
|
-
"text": "KeyboardEvent"
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
],
|
|
1129
|
-
"description": "Dispatch a keyboard event to the plugin system.\nReturns true if any plugin handled the event."
|
|
1130
|
-
},
|
|
1131
|
-
{
|
|
1132
|
-
"kind": "method",
|
|
1133
|
-
"name": "#buildCellMouseEvent",
|
|
1134
|
-
"privacy": "private",
|
|
1135
|
-
"return": {
|
|
1136
|
-
"type": {
|
|
1137
|
-
"text": "CellMouseEvent"
|
|
1138
|
-
}
|
|
1139
|
-
},
|
|
1140
|
-
"parameters": [
|
|
1141
|
-
{
|
|
1142
|
-
"name": "e",
|
|
1143
|
-
"type": {
|
|
1144
|
-
"text": "MouseEvent"
|
|
1145
|
-
}
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
"name": "type",
|
|
1149
|
-
"type": {
|
|
1150
|
-
"text": "'mousedown' | 'mousemove' | 'mouseup'"
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
],
|
|
1154
|
-
"description": "Build a CellMouseEvent from a native MouseEvent.\nExtracts cell/row information from the event target."
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"kind": "method",
|
|
1158
|
-
"name": "#handleMouseDown",
|
|
1159
|
-
"privacy": "private",
|
|
1160
|
-
"return": {
|
|
1161
|
-
"type": {
|
|
1162
|
-
"text": "void"
|
|
1163
|
-
}
|
|
1164
|
-
},
|
|
1165
|
-
"parameters": [
|
|
1166
|
-
{
|
|
1167
|
-
"name": "e",
|
|
1168
|
-
"type": {
|
|
1169
|
-
"text": "MouseEvent"
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
],
|
|
1173
|
-
"description": "Handle mousedown events and dispatch to plugin system."
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
"kind": "method",
|
|
1177
|
-
"name": "#handleMouseMove",
|
|
1178
|
-
"privacy": "private",
|
|
1179
|
-
"return": {
|
|
1180
|
-
"type": {
|
|
1181
|
-
"text": "void"
|
|
1182
|
-
}
|
|
1183
|
-
},
|
|
1184
|
-
"parameters": [
|
|
1185
|
-
{
|
|
1186
|
-
"name": "e",
|
|
1187
|
-
"type": {
|
|
1188
|
-
"text": "MouseEvent"
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
],
|
|
1192
|
-
"description": "Handle mousemove events (only when dragging)."
|
|
1193
|
-
},
|
|
1194
|
-
{
|
|
1195
|
-
"kind": "method",
|
|
1196
|
-
"name": "#handleMouseUp",
|
|
1197
|
-
"privacy": "private",
|
|
1198
|
-
"return": {
|
|
1199
|
-
"type": {
|
|
1200
|
-
"text": "void"
|
|
1201
|
-
}
|
|
1202
|
-
},
|
|
1203
|
-
"parameters": [
|
|
1204
|
-
{
|
|
1205
|
-
"name": "e",
|
|
1206
|
-
"type": {
|
|
1207
|
-
"text": "MouseEvent"
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
],
|
|
1211
|
-
"description": "Handle mouseup events."
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
"kind": "field",
|
|
1215
|
-
"name": "changedRows",
|
|
1216
|
-
"type": {
|
|
1217
|
-
"text": "T[]"
|
|
1218
|
-
},
|
|
1219
|
-
"readonly": true
|
|
1220
|
-
},
|
|
1221
|
-
{
|
|
1222
|
-
"kind": "field",
|
|
1223
|
-
"name": "changedRowIndices",
|
|
1224
|
-
"type": {
|
|
1225
|
-
"text": "number[]"
|
|
1226
|
-
},
|
|
1227
|
-
"readonly": true
|
|
1228
|
-
},
|
|
1229
|
-
{
|
|
1230
|
-
"kind": "method",
|
|
1231
|
-
"name": "resetChangedRows",
|
|
1232
|
-
"return": {
|
|
1233
|
-
"type": {
|
|
1234
|
-
"text": "Promise<void>"
|
|
1235
|
-
}
|
|
1236
|
-
},
|
|
1237
|
-
"parameters": [
|
|
1238
|
-
{
|
|
1239
|
-
"name": "silent",
|
|
1240
|
-
"optional": true,
|
|
1241
|
-
"type": {
|
|
1242
|
-
"text": "boolean"
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
]
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
"kind": "method",
|
|
1249
|
-
"name": "beginBulkEdit",
|
|
1250
|
-
"return": {
|
|
1251
|
-
"type": {
|
|
1252
|
-
"text": "Promise<void>"
|
|
1253
|
-
}
|
|
1254
|
-
},
|
|
1255
|
-
"parameters": [
|
|
1256
|
-
{
|
|
1257
|
-
"name": "rowIndex",
|
|
1258
|
-
"type": {
|
|
1259
|
-
"text": "number"
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
]
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
1265
|
-
"kind": "method",
|
|
1266
|
-
"name": "commitActiveRowEdit",
|
|
1267
|
-
"return": {
|
|
1268
|
-
"type": {
|
|
1269
|
-
"text": "Promise<void>"
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
},
|
|
1273
|
-
{
|
|
1274
|
-
"kind": "method",
|
|
1275
|
-
"name": "ready",
|
|
1276
|
-
"return": {
|
|
1277
|
-
"type": {
|
|
1278
|
-
"text": "Promise<void>"
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
},
|
|
1282
|
-
{
|
|
1283
|
-
"kind": "method",
|
|
1284
|
-
"name": "forceLayout",
|
|
1285
|
-
"return": {
|
|
1286
|
-
"type": {
|
|
1287
|
-
"text": "Promise<void>"
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
},
|
|
1291
|
-
{
|
|
1292
|
-
"kind": "method",
|
|
1293
|
-
"name": "getConfig",
|
|
1294
|
-
"return": {
|
|
1295
|
-
"type": {
|
|
1296
|
-
"text": "Promise<Readonly<GridConfig<T>>>"
|
|
1297
|
-
}
|
|
1298
|
-
},
|
|
1299
|
-
"description": "Public method: returns a frozen snapshot of the merged effective configuration"
|
|
1300
|
-
},
|
|
1301
|
-
{
|
|
1302
|
-
"kind": "method",
|
|
1303
|
-
"name": "setColumnVisible",
|
|
1304
|
-
"return": {
|
|
1305
|
-
"type": {
|
|
1306
|
-
"text": ""
|
|
1307
|
-
}
|
|
1308
|
-
},
|
|
1309
|
-
"parameters": [
|
|
1310
|
-
{
|
|
1311
|
-
"name": "field",
|
|
1312
|
-
"type": {
|
|
1313
|
-
"text": "string"
|
|
1314
|
-
},
|
|
1315
|
-
"description": "The field name of the column"
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
"name": "visible",
|
|
1319
|
-
"type": {
|
|
1320
|
-
"text": "boolean"
|
|
1321
|
-
},
|
|
1322
|
-
"description": "Whether the column should be visible"
|
|
1323
|
-
}
|
|
1324
|
-
],
|
|
1325
|
-
"description": "Set the visibility of a column."
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
"kind": "method",
|
|
1329
|
-
"name": "toggleColumnVisibility",
|
|
1330
|
-
"return": {
|
|
1331
|
-
"type": {
|
|
1332
|
-
"text": ""
|
|
1333
|
-
}
|
|
1334
|
-
},
|
|
1335
|
-
"parameters": [
|
|
1336
|
-
{
|
|
1337
|
-
"name": "field",
|
|
1338
|
-
"type": {
|
|
1339
|
-
"text": "string"
|
|
1340
|
-
},
|
|
1341
|
-
"description": "The field name of the column"
|
|
1342
|
-
}
|
|
1343
|
-
],
|
|
1344
|
-
"description": "Toggle the visibility of a column."
|
|
1345
|
-
},
|
|
1346
|
-
{
|
|
1347
|
-
"kind": "method",
|
|
1348
|
-
"name": "isColumnVisible",
|
|
1349
|
-
"return": {
|
|
1350
|
-
"type": {
|
|
1351
|
-
"text": ""
|
|
1352
|
-
}
|
|
1353
|
-
},
|
|
1354
|
-
"parameters": [
|
|
1355
|
-
{
|
|
1356
|
-
"name": "field",
|
|
1357
|
-
"type": {
|
|
1358
|
-
"text": "string"
|
|
1359
|
-
},
|
|
1360
|
-
"description": "The field name of the column"
|
|
1361
|
-
}
|
|
1362
|
-
],
|
|
1363
|
-
"description": "Check if a column is currently visible."
|
|
1364
|
-
},
|
|
1365
|
-
{
|
|
1366
|
-
"kind": "method",
|
|
1367
|
-
"name": "showAllColumns",
|
|
1368
|
-
"return": {
|
|
1369
|
-
"type": {
|
|
1370
|
-
"text": "void"
|
|
1371
|
-
}
|
|
1372
|
-
},
|
|
1373
|
-
"description": "Show all columns."
|
|
1374
|
-
},
|
|
1375
|
-
{
|
|
1376
|
-
"kind": "method",
|
|
1377
|
-
"name": "getAllColumns",
|
|
1378
|
-
"return": {
|
|
1379
|
-
"type": {
|
|
1380
|
-
"text": ""
|
|
1381
|
-
}
|
|
1382
|
-
},
|
|
1383
|
-
"description": "Get list of all column fields (including hidden).\nReturns columns reflecting current display order (after reordering).\nHidden columns are interleaved at their original relative positions."
|
|
1384
|
-
},
|
|
1385
|
-
{
|
|
1386
|
-
"kind": "method",
|
|
1387
|
-
"name": "setColumnOrder",
|
|
1388
|
-
"return": {
|
|
1389
|
-
"type": {
|
|
1390
|
-
"text": "void"
|
|
1391
|
-
}
|
|
1392
|
-
},
|
|
1393
|
-
"parameters": [
|
|
1394
|
-
{
|
|
1395
|
-
"name": "order",
|
|
1396
|
-
"type": {
|
|
1397
|
-
"text": "string[]"
|
|
1398
|
-
},
|
|
1399
|
-
"description": "Array of field names in the desired order"
|
|
1400
|
-
}
|
|
1401
|
-
],
|
|
1402
|
-
"description": "Reorder columns according to the specified field order.\nThis directly updates _columns in place without going through processColumns."
|
|
1403
|
-
},
|
|
1404
|
-
{
|
|
1405
|
-
"kind": "method",
|
|
1406
|
-
"name": "getColumnOrder",
|
|
1407
|
-
"return": {
|
|
1408
|
-
"type": {
|
|
1409
|
-
"text": ""
|
|
1410
|
-
}
|
|
1411
|
-
},
|
|
1412
|
-
"description": "Get the current column order as an array of field names."
|
|
1413
|
-
},
|
|
1414
|
-
{
|
|
1415
|
-
"kind": "method",
|
|
1416
|
-
"name": "getColumnState",
|
|
1417
|
-
"return": {
|
|
1418
|
-
"type": {
|
|
1419
|
-
"text": "GridColumnState"
|
|
1420
|
-
}
|
|
1421
|
-
},
|
|
1422
|
-
"description": "Get the current column state, including order, width, visibility, sort, and plugin state.\nReturns a serializable object suitable for localStorage or database storage."
|
|
1423
|
-
},
|
|
1424
|
-
{
|
|
1425
|
-
"kind": "field",
|
|
1426
|
-
"name": "columnState",
|
|
1427
|
-
"description": "Get the current column state.",
|
|
1428
|
-
"type": {
|
|
1429
|
-
"text": "GridColumnState | undefined"
|
|
1430
|
-
}
|
|
1431
|
-
},
|
|
1432
|
-
{
|
|
1433
|
-
"kind": "method",
|
|
1434
|
-
"name": "#applyColumnState",
|
|
1435
|
-
"privacy": "private",
|
|
1436
|
-
"return": {
|
|
1437
|
-
"type": {
|
|
1438
|
-
"text": "void"
|
|
1439
|
-
}
|
|
1440
|
-
},
|
|
1441
|
-
"parameters": [
|
|
1442
|
-
{
|
|
1443
|
-
"name": "state",
|
|
1444
|
-
"type": {
|
|
1445
|
-
"text": "GridColumnState"
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
],
|
|
1449
|
-
"description": "Apply column state internally."
|
|
1450
|
-
},
|
|
1451
|
-
{
|
|
1452
|
-
"kind": "method",
|
|
1453
|
-
"name": "requestStateChange",
|
|
1454
|
-
"return": {
|
|
1455
|
-
"type": {
|
|
1456
|
-
"text": "void"
|
|
1457
|
-
}
|
|
1458
|
-
},
|
|
1459
|
-
"description": "Request a state change event to be emitted.\nCalled internally after resize, reorder, visibility, or sort changes.\nPlugins should call this after changing their state.\nThe event is debounced to avoid excessive events during drag operations."
|
|
1460
|
-
},
|
|
1461
|
-
{
|
|
1462
|
-
"kind": "method",
|
|
1463
|
-
"name": "resetColumnState",
|
|
1464
|
-
"return": {
|
|
1465
|
-
"type": {
|
|
1466
|
-
"text": "void"
|
|
1467
|
-
}
|
|
1468
|
-
},
|
|
1469
|
-
"description": "Reset column state to initial configuration.\nClears all user modifications (order, width, visibility, sort)."
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
"kind": "field",
|
|
1473
|
-
"name": "isToolPanelOpen",
|
|
1474
|
-
"type": {
|
|
1475
|
-
"text": "boolean"
|
|
1476
|
-
},
|
|
1477
|
-
"description": "Check if the tool panel is currently open.",
|
|
1478
|
-
"readonly": true
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
"kind": "field",
|
|
1482
|
-
"name": "activeToolPanel",
|
|
1483
|
-
"type": {
|
|
1484
|
-
"text": "string | null"
|
|
1485
|
-
},
|
|
1486
|
-
"description": "Get the currently active tool panel ID, or null if none is open.",
|
|
1487
|
-
"deprecated": "Use isToolPanelOpen and expandedToolPanelSections instead.",
|
|
1488
|
-
"readonly": true
|
|
1489
|
-
},
|
|
1490
|
-
{
|
|
1491
|
-
"kind": "field",
|
|
1492
|
-
"name": "expandedToolPanelSections",
|
|
1493
|
-
"type": {
|
|
1494
|
-
"text": "string[]"
|
|
1495
|
-
},
|
|
1496
|
-
"description": "Get the IDs of expanded accordion sections.",
|
|
1497
|
-
"readonly": true
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
"kind": "method",
|
|
1501
|
-
"name": "openToolPanel",
|
|
1502
|
-
"return": {
|
|
1503
|
-
"type": {
|
|
1504
|
-
"text": "void"
|
|
1505
|
-
}
|
|
1506
|
-
},
|
|
1507
|
-
"description": "Open the tool panel (accordion view with all registered panels)."
|
|
1508
|
-
},
|
|
1509
|
-
{
|
|
1510
|
-
"kind": "method",
|
|
1511
|
-
"name": "closeToolPanel",
|
|
1512
|
-
"return": {
|
|
1513
|
-
"type": {
|
|
1514
|
-
"text": "void"
|
|
1515
|
-
}
|
|
1516
|
-
},
|
|
1517
|
-
"description": "Close the tool panel."
|
|
1518
|
-
},
|
|
1519
|
-
{
|
|
1520
|
-
"kind": "method",
|
|
1521
|
-
"name": "toggleToolPanel",
|
|
1522
|
-
"return": {
|
|
1523
|
-
"type": {
|
|
1524
|
-
"text": "void"
|
|
1525
|
-
}
|
|
1526
|
-
},
|
|
1527
|
-
"description": "Toggle the tool panel open/closed."
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
"kind": "method",
|
|
1531
|
-
"name": "toggleToolPanelSection",
|
|
1532
|
-
"return": {
|
|
1533
|
-
"type": {
|
|
1534
|
-
"text": "void"
|
|
1535
|
-
}
|
|
1536
|
-
},
|
|
1537
|
-
"parameters": [
|
|
1538
|
-
{
|
|
1539
|
-
"name": "sectionId",
|
|
1540
|
-
"type": {
|
|
1541
|
-
"text": "string"
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
],
|
|
1545
|
-
"description": "Toggle an accordion section expanded/collapsed.\nOnly one section can be expanded at a time (exclusive accordion).\nWhen there's only one panel, toggling is disabled (always expanded)."
|
|
1546
|
-
},
|
|
1547
|
-
{
|
|
1548
|
-
"kind": "method",
|
|
1549
|
-
"name": "#updateAccordionSectionState",
|
|
1550
|
-
"privacy": "private",
|
|
1551
|
-
"return": {
|
|
1552
|
-
"type": {
|
|
1553
|
-
"text": "void"
|
|
1554
|
-
}
|
|
1555
|
-
},
|
|
1556
|
-
"parameters": [
|
|
1557
|
-
{
|
|
1558
|
-
"name": "sectionId",
|
|
1559
|
-
"type": {
|
|
1560
|
-
"text": "string"
|
|
1561
|
-
}
|
|
1562
|
-
},
|
|
1563
|
-
{
|
|
1564
|
-
"name": "expanded",
|
|
1565
|
-
"type": {
|
|
1566
|
-
"text": "boolean"
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
],
|
|
1570
|
-
"description": "Update accordion section visual state."
|
|
1571
|
-
},
|
|
1572
|
-
{
|
|
1573
|
-
"kind": "method",
|
|
1574
|
-
"name": "#renderAccordionSectionContent",
|
|
1575
|
-
"privacy": "private",
|
|
1576
|
-
"return": {
|
|
1577
|
-
"type": {
|
|
1578
|
-
"text": "void"
|
|
1579
|
-
}
|
|
1580
|
-
},
|
|
1581
|
-
"parameters": [
|
|
1582
|
-
{
|
|
1583
|
-
"name": "sectionId",
|
|
1584
|
-
"type": {
|
|
1585
|
-
"text": "string"
|
|
1586
|
-
}
|
|
1587
|
-
}
|
|
1588
|
-
],
|
|
1589
|
-
"description": "Render content for a single accordion section."
|
|
1590
|
-
},
|
|
1591
|
-
{
|
|
1592
|
-
"kind": "method",
|
|
1593
|
-
"name": "getToolPanels",
|
|
1594
|
-
"return": {
|
|
1595
|
-
"type": {
|
|
1596
|
-
"text": "ToolPanelDefinition[]"
|
|
1597
|
-
}
|
|
1598
|
-
},
|
|
1599
|
-
"description": "Get registered tool panel definitions."
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
"kind": "method",
|
|
1603
|
-
"name": "registerToolPanel",
|
|
1604
|
-
"return": {
|
|
1605
|
-
"type": {
|
|
1606
|
-
"text": "void"
|
|
1607
|
-
}
|
|
1608
|
-
},
|
|
1609
|
-
"parameters": [
|
|
1610
|
-
{
|
|
1611
|
-
"name": "panel",
|
|
1612
|
-
"type": {
|
|
1613
|
-
"text": "ToolPanelDefinition"
|
|
1614
|
-
}
|
|
1615
|
-
}
|
|
1616
|
-
],
|
|
1617
|
-
"description": "Register a custom tool panel (without creating a plugin)."
|
|
1618
|
-
},
|
|
1619
|
-
{
|
|
1620
|
-
"kind": "method",
|
|
1621
|
-
"name": "unregisterToolPanel",
|
|
1622
|
-
"return": {
|
|
1623
|
-
"type": {
|
|
1624
|
-
"text": "void"
|
|
1625
|
-
}
|
|
1626
|
-
},
|
|
1627
|
-
"parameters": [
|
|
1628
|
-
{
|
|
1629
|
-
"name": "panelId",
|
|
1630
|
-
"type": {
|
|
1631
|
-
"text": "string"
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
],
|
|
1635
|
-
"description": "Unregister a custom tool panel."
|
|
1636
|
-
},
|
|
1637
|
-
{
|
|
1638
|
-
"kind": "method",
|
|
1639
|
-
"name": "getHeaderContents",
|
|
1640
|
-
"return": {
|
|
1641
|
-
"type": {
|
|
1642
|
-
"text": "HeaderContentDefinition[]"
|
|
1643
|
-
}
|
|
1644
|
-
},
|
|
1645
|
-
"description": "Get registered header content definitions."
|
|
1646
|
-
},
|
|
1647
|
-
{
|
|
1648
|
-
"kind": "method",
|
|
1649
|
-
"name": "registerHeaderContent",
|
|
1650
|
-
"return": {
|
|
1651
|
-
"type": {
|
|
1652
|
-
"text": "void"
|
|
1653
|
-
}
|
|
1654
|
-
},
|
|
1655
|
-
"parameters": [
|
|
1656
|
-
{
|
|
1657
|
-
"name": "content",
|
|
1658
|
-
"type": {
|
|
1659
|
-
"text": "HeaderContentDefinition"
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
],
|
|
1663
|
-
"description": "Register custom header content (without creating a plugin)."
|
|
1664
|
-
},
|
|
1665
|
-
{
|
|
1666
|
-
"kind": "method",
|
|
1667
|
-
"name": "unregisterHeaderContent",
|
|
1668
|
-
"return": {
|
|
1669
|
-
"type": {
|
|
1670
|
-
"text": "void"
|
|
1671
|
-
}
|
|
1672
|
-
},
|
|
1673
|
-
"parameters": [
|
|
1674
|
-
{
|
|
1675
|
-
"name": "contentId",
|
|
1676
|
-
"type": {
|
|
1677
|
-
"text": "string"
|
|
1678
|
-
}
|
|
1679
|
-
}
|
|
1680
|
-
],
|
|
1681
|
-
"description": "Unregister custom header content."
|
|
1682
|
-
},
|
|
1683
|
-
{
|
|
1684
|
-
"kind": "method",
|
|
1685
|
-
"name": "getToolbarButtons",
|
|
1686
|
-
"return": {
|
|
1687
|
-
"type": {
|
|
1688
|
-
"text": "ToolbarButtonInfo[]"
|
|
1689
|
-
}
|
|
1690
|
-
},
|
|
1691
|
-
"description": "Get all registered toolbar buttons."
|
|
1692
|
-
},
|
|
1693
|
-
{
|
|
1694
|
-
"kind": "method",
|
|
1695
|
-
"name": "registerToolbarButton",
|
|
1696
|
-
"return": {
|
|
1697
|
-
"type": {
|
|
1698
|
-
"text": "void"
|
|
1699
|
-
}
|
|
1700
|
-
},
|
|
1701
|
-
"parameters": [
|
|
1702
|
-
{
|
|
1703
|
-
"name": "button",
|
|
1704
|
-
"type": {
|
|
1705
|
-
"text": "ToolbarButtonConfig"
|
|
1706
|
-
}
|
|
1707
|
-
}
|
|
1708
|
-
],
|
|
1709
|
-
"description": "Register a custom toolbar button programmatically."
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
"kind": "method",
|
|
1713
|
-
"name": "unregisterToolbarButton",
|
|
1714
|
-
"return": {
|
|
1715
|
-
"type": {
|
|
1716
|
-
"text": "void"
|
|
1717
|
-
}
|
|
1718
|
-
},
|
|
1719
|
-
"parameters": [
|
|
1720
|
-
{
|
|
1721
|
-
"name": "buttonId",
|
|
1722
|
-
"type": {
|
|
1723
|
-
"text": "string"
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
],
|
|
1727
|
-
"description": "Unregister a custom toolbar button."
|
|
1728
|
-
},
|
|
1729
|
-
{
|
|
1730
|
-
"kind": "method",
|
|
1731
|
-
"name": "setToolbarButtonDisabled",
|
|
1732
|
-
"return": {
|
|
1733
|
-
"type": {
|
|
1734
|
-
"text": "void"
|
|
1735
|
-
}
|
|
1736
|
-
},
|
|
1737
|
-
"parameters": [
|
|
1738
|
-
{
|
|
1739
|
-
"name": "buttonId",
|
|
1740
|
-
"type": {
|
|
1741
|
-
"text": "string"
|
|
1742
|
-
}
|
|
1743
|
-
},
|
|
1744
|
-
{
|
|
1745
|
-
"name": "disabled",
|
|
1746
|
-
"type": {
|
|
1747
|
-
"text": "boolean"
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
],
|
|
1751
|
-
"description": "Enable/disable a toolbar button by ID."
|
|
1752
|
-
},
|
|
1753
|
-
{
|
|
1754
|
-
"kind": "method",
|
|
1755
|
-
"name": "refreshShellHeader",
|
|
1756
|
-
"return": {
|
|
1757
|
-
"type": {
|
|
1758
|
-
"text": "void"
|
|
1759
|
-
}
|
|
1760
|
-
},
|
|
1761
|
-
"description": "Re-parse light DOM shell elements and refresh shell header.\nCall this after dynamically modifying <tbw-grid-header> children."
|
|
1762
|
-
},
|
|
1763
|
-
{
|
|
1764
|
-
"kind": "method",
|
|
1765
|
-
"name": "#refreshShellHeader",
|
|
1766
|
-
"privacy": "private",
|
|
1767
|
-
"return": {
|
|
1768
|
-
"type": {
|
|
1769
|
-
"text": "void"
|
|
1770
|
-
}
|
|
1771
|
-
},
|
|
1772
|
-
"description": "Internal shell header refresh."
|
|
1773
|
-
},
|
|
1774
|
-
{
|
|
1775
|
-
"kind": "method",
|
|
1776
|
-
"name": "refreshVirtualWindow",
|
|
1777
|
-
"return": {
|
|
1778
|
-
"type": {
|
|
1779
|
-
"text": "void"
|
|
1780
|
-
}
|
|
1781
|
-
},
|
|
1782
|
-
"parameters": [
|
|
1783
|
-
{
|
|
1784
|
-
"name": "force",
|
|
1785
|
-
"default": "false"
|
|
1786
|
-
}
|
|
1787
|
-
],
|
|
1788
|
-
"description": "Core virtualization routine. Chooses between bypass (small datasets), grouped window rendering,\nor standard row window rendering."
|
|
1789
|
-
},
|
|
1790
|
-
{
|
|
1791
|
-
"kind": "method",
|
|
1792
|
-
"name": "#render",
|
|
1793
|
-
"privacy": "private",
|
|
1794
|
-
"return": {
|
|
1795
|
-
"type": {
|
|
1796
|
-
"text": "void"
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
},
|
|
1800
|
-
{
|
|
1801
|
-
"kind": "method",
|
|
1802
|
-
"name": "#setupShellListeners",
|
|
1803
|
-
"privacy": "private",
|
|
1804
|
-
"return": {
|
|
1805
|
-
"type": {
|
|
1806
|
-
"text": "void"
|
|
1807
|
-
}
|
|
1808
|
-
},
|
|
1809
|
-
"description": "Set up shell event listeners after render."
|
|
1810
|
-
},
|
|
1811
|
-
{
|
|
1812
|
-
"kind": "method",
|
|
1813
|
-
"name": "#handleToolbarButtonClick",
|
|
1814
|
-
"privacy": "private",
|
|
1815
|
-
"return": {
|
|
1816
|
-
"type": {
|
|
1817
|
-
"text": "void"
|
|
1818
|
-
}
|
|
1819
|
-
},
|
|
1820
|
-
"parameters": [
|
|
1821
|
-
{
|
|
1822
|
-
"name": "buttonId",
|
|
1823
|
-
"type": {
|
|
1824
|
-
"text": "string"
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
],
|
|
1828
|
-
"description": "Handle toolbar button click (for config buttons with action)."
|
|
1829
|
-
}
|
|
1830
|
-
],
|
|
1831
|
-
"events": [
|
|
1832
|
-
{
|
|
1833
|
-
"name": "eventName",
|
|
1834
|
-
"type": {
|
|
1835
|
-
"text": "CustomEvent"
|
|
1836
|
-
}
|
|
1837
|
-
},
|
|
1838
|
-
{
|
|
1839
|
-
"description": "Fired when a cell value is committed",
|
|
1840
|
-
"name": "cell-commit"
|
|
1841
|
-
},
|
|
1842
|
-
{
|
|
1843
|
-
"description": "Fired when a bulk row edit session commits",
|
|
1844
|
-
"name": "row-commit"
|
|
1845
|
-
},
|
|
1846
|
-
{
|
|
1847
|
-
"description": "Fired after resetChangedRows() unless silent",
|
|
1848
|
-
"name": "changed-rows-reset"
|
|
1849
|
-
},
|
|
1850
|
-
{
|
|
1851
|
-
"description": "Fired to request mounting of an external view renderer",
|
|
1852
|
-
"name": "mount-external-view"
|
|
1853
|
-
},
|
|
1854
|
-
{
|
|
1855
|
-
"description": "Fired to request mounting of an external editor renderer",
|
|
1856
|
-
"name": "mount-external-editor"
|
|
1857
|
-
},
|
|
1858
|
-
{
|
|
1859
|
-
"description": "Fired when sort state changes for a column",
|
|
1860
|
-
"name": "sort-change"
|
|
1861
|
-
},
|
|
1862
|
-
{
|
|
1863
|
-
"description": "Fired after a column resize drag completes",
|
|
1864
|
-
"name": "column-resize"
|
|
1865
|
-
},
|
|
1866
|
-
{
|
|
1867
|
-
"description": "Fired when a cell activation intent occurs",
|
|
1868
|
-
"name": "activate-cell"
|
|
1869
|
-
},
|
|
1870
|
-
{
|
|
1871
|
-
"description": "Fired when a group row is toggled",
|
|
1872
|
-
"name": "group-toggle"
|
|
1873
|
-
}
|
|
1874
|
-
],
|
|
1875
|
-
"superclass": {
|
|
1876
|
-
"name": "HTMLElement"
|
|
1877
|
-
},
|
|
1878
|
-
"tagName": "tbw-grid",
|
|
1879
|
-
"customElement": true
|
|
1880
|
-
},
|
|
1881
|
-
{
|
|
1882
|
-
"kind": "variable",
|
|
1883
|
-
"name": "row",
|
|
1884
|
-
"default": "this._rows[rowIndex]"
|
|
1885
|
-
},
|
|
1886
|
-
{
|
|
1887
|
-
"kind": "variable",
|
|
1888
|
-
"name": "cellEl",
|
|
1889
|
-
"default": "target?.closest?.('[data-col]')"
|
|
1890
|
-
},
|
|
1891
|
-
{
|
|
1892
|
-
"kind": "variable",
|
|
1893
|
-
"name": "headerEl",
|
|
1894
|
-
"default": "target?.closest?.('.header-row')"
|
|
1895
|
-
},
|
|
1896
|
-
{
|
|
1897
|
-
"kind": "variable",
|
|
1898
|
-
"name": "rowIndex",
|
|
1899
|
-
"type": {
|
|
1900
|
-
"text": "number | undefined"
|
|
1901
|
-
}
|
|
1902
|
-
},
|
|
1903
|
-
{
|
|
1904
|
-
"kind": "variable",
|
|
1905
|
-
"name": "colIndex",
|
|
1906
|
-
"type": {
|
|
1907
|
-
"text": "number | undefined"
|
|
1908
|
-
}
|
|
1909
|
-
},
|
|
1910
|
-
{
|
|
1911
|
-
"kind": "variable",
|
|
1912
|
-
"name": "scrollTop"
|
|
1913
|
-
}
|
|
1914
|
-
],
|
|
1915
|
-
"exports": [
|
|
1916
|
-
{
|
|
1917
|
-
"kind": "js",
|
|
1918
|
-
"name": "DataGridElement",
|
|
1919
|
-
"declaration": {
|
|
1920
|
-
"name": "DataGridElement",
|
|
1921
|
-
"module": "src/lib/core/grid.ts"
|
|
1922
|
-
}
|
|
1923
|
-
},
|
|
1924
|
-
{
|
|
1925
|
-
"kind": "custom-element-definition",
|
|
1926
|
-
"declaration": {
|
|
1927
|
-
"name": "DataGridElement",
|
|
1928
|
-
"module": "src/lib/core/grid.ts"
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
]
|
|
1932
|
-
}
|
|
1933
|
-
]
|
|
1934
|
-
}
|