@quickbuilder.io/data-grid 0.0.0-stage → 1.0.0
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/LICENSE +21 -0
- package/README.md +308 -2
- package/dist/index.d.mts +884 -0
- package/dist/index.d.ts +884 -0
- package/dist/index.js +605 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +577 -0
- package/dist/index.mjs.map +1 -0
- package/dist/react.d.mts +1372 -0
- package/dist/react.d.ts +1372 -0
- package/dist/react.js +6728 -0
- package/dist/react.js.map +1 -0
- package/dist/react.mjs +6696 -0
- package/dist/react.mjs.map +1 -0
- package/package.json +87 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,884 @@
|
|
|
1
|
+
interface DataGridFrameworkAdapterSupport {
|
|
2
|
+
framework: 'react' | 'vue' | 'preact' | 'qwik' | 'astro' | 'svelte' | 'solid' | 'web-components';
|
|
3
|
+
entrypoint?: string;
|
|
4
|
+
status: 'implemented' | 'unsupported';
|
|
5
|
+
}
|
|
6
|
+
interface DataGridFrameworkAdapterContract {
|
|
7
|
+
apiVersion: 1;
|
|
8
|
+
capabilities: readonly string[];
|
|
9
|
+
entrypoint: string;
|
|
10
|
+
framework: string;
|
|
11
|
+
id: string;
|
|
12
|
+
packageName: '@quickbuilder.io/data-grid';
|
|
13
|
+
status: 'implemented';
|
|
14
|
+
}
|
|
15
|
+
declare const dataGridFrameworkAdapterSupport: readonly [{
|
|
16
|
+
readonly framework: "react";
|
|
17
|
+
readonly entrypoint: "@quickbuilder.io/data-grid/react";
|
|
18
|
+
readonly status: "implemented";
|
|
19
|
+
}, {
|
|
20
|
+
readonly framework: "vue";
|
|
21
|
+
readonly status: "unsupported";
|
|
22
|
+
}, {
|
|
23
|
+
readonly framework: "preact";
|
|
24
|
+
readonly status: "unsupported";
|
|
25
|
+
}, {
|
|
26
|
+
readonly framework: "qwik";
|
|
27
|
+
readonly status: "unsupported";
|
|
28
|
+
}, {
|
|
29
|
+
readonly framework: "astro";
|
|
30
|
+
readonly status: "unsupported";
|
|
31
|
+
}, {
|
|
32
|
+
readonly framework: "svelte";
|
|
33
|
+
readonly status: "unsupported";
|
|
34
|
+
}, {
|
|
35
|
+
readonly framework: "solid";
|
|
36
|
+
readonly status: "unsupported";
|
|
37
|
+
}, {
|
|
38
|
+
readonly framework: "web-components";
|
|
39
|
+
readonly status: "unsupported";
|
|
40
|
+
}];
|
|
41
|
+
declare const frameworkAdapterSupport: readonly [{
|
|
42
|
+
readonly framework: "react";
|
|
43
|
+
readonly entrypoint: "@quickbuilder.io/data-grid/react";
|
|
44
|
+
readonly status: "implemented";
|
|
45
|
+
}, {
|
|
46
|
+
readonly framework: "vue";
|
|
47
|
+
readonly status: "unsupported";
|
|
48
|
+
}, {
|
|
49
|
+
readonly framework: "preact";
|
|
50
|
+
readonly status: "unsupported";
|
|
51
|
+
}, {
|
|
52
|
+
readonly framework: "qwik";
|
|
53
|
+
readonly status: "unsupported";
|
|
54
|
+
}, {
|
|
55
|
+
readonly framework: "astro";
|
|
56
|
+
readonly status: "unsupported";
|
|
57
|
+
}, {
|
|
58
|
+
readonly framework: "svelte";
|
|
59
|
+
readonly status: "unsupported";
|
|
60
|
+
}, {
|
|
61
|
+
readonly framework: "solid";
|
|
62
|
+
readonly status: "unsupported";
|
|
63
|
+
}, {
|
|
64
|
+
readonly framework: "web-components";
|
|
65
|
+
readonly status: "unsupported";
|
|
66
|
+
}];
|
|
67
|
+
|
|
68
|
+
type DataGridCapabilityPackage = 'community' | 'pro' | 'deferred-premium';
|
|
69
|
+
type DataGridCapabilityStatus = 'implemented' | 'partial' | 'planned';
|
|
70
|
+
type DataGridCapabilityCategory = 'main' | 'advanced' | 'component' | 'platform';
|
|
71
|
+
interface DataGridCapabilityFeature {
|
|
72
|
+
id: string;
|
|
73
|
+
label: string;
|
|
74
|
+
category: DataGridCapabilityCategory;
|
|
75
|
+
packageTarget: DataGridCapabilityPackage;
|
|
76
|
+
status: DataGridCapabilityStatus;
|
|
77
|
+
}
|
|
78
|
+
declare const dataGridCapabilityFeatures: readonly [{
|
|
79
|
+
readonly id: "layout";
|
|
80
|
+
readonly label: "Layout";
|
|
81
|
+
readonly category: "main";
|
|
82
|
+
readonly packageTarget: "community";
|
|
83
|
+
readonly status: "partial";
|
|
84
|
+
}, {
|
|
85
|
+
readonly id: "columns";
|
|
86
|
+
readonly label: "Columns";
|
|
87
|
+
readonly category: "main";
|
|
88
|
+
readonly packageTarget: "community";
|
|
89
|
+
readonly status: "partial";
|
|
90
|
+
}, {
|
|
91
|
+
readonly id: "column-resizing";
|
|
92
|
+
readonly label: "Column resizing";
|
|
93
|
+
readonly category: "main";
|
|
94
|
+
readonly packageTarget: "community";
|
|
95
|
+
readonly status: "partial";
|
|
96
|
+
}, {
|
|
97
|
+
readonly id: "column-reordering";
|
|
98
|
+
readonly label: "Column reordering";
|
|
99
|
+
readonly category: "main";
|
|
100
|
+
readonly packageTarget: "community";
|
|
101
|
+
readonly status: "partial";
|
|
102
|
+
}, {
|
|
103
|
+
readonly id: "column-spanning";
|
|
104
|
+
readonly label: "Column spanning";
|
|
105
|
+
readonly category: "main";
|
|
106
|
+
readonly packageTarget: "community";
|
|
107
|
+
readonly status: "implemented";
|
|
108
|
+
}, {
|
|
109
|
+
readonly id: "column-groups";
|
|
110
|
+
readonly label: "Column groups";
|
|
111
|
+
readonly category: "main";
|
|
112
|
+
readonly packageTarget: "pro";
|
|
113
|
+
readonly status: "partial";
|
|
114
|
+
}, {
|
|
115
|
+
readonly id: "pinned-columns";
|
|
116
|
+
readonly label: "Pinned columns";
|
|
117
|
+
readonly category: "main";
|
|
118
|
+
readonly packageTarget: "community";
|
|
119
|
+
readonly status: "partial";
|
|
120
|
+
}, {
|
|
121
|
+
readonly id: "pinned-rows";
|
|
122
|
+
readonly label: "Pinned rows";
|
|
123
|
+
readonly category: "main";
|
|
124
|
+
readonly packageTarget: "pro";
|
|
125
|
+
readonly status: "implemented";
|
|
126
|
+
}, {
|
|
127
|
+
readonly id: "rows";
|
|
128
|
+
readonly label: "Rows";
|
|
129
|
+
readonly category: "main";
|
|
130
|
+
readonly packageTarget: "community";
|
|
131
|
+
readonly status: "partial";
|
|
132
|
+
}, {
|
|
133
|
+
readonly id: "row-reordering";
|
|
134
|
+
readonly label: "Row reordering";
|
|
135
|
+
readonly category: "main";
|
|
136
|
+
readonly packageTarget: "pro";
|
|
137
|
+
readonly status: "implemented";
|
|
138
|
+
}, {
|
|
139
|
+
readonly id: "row-spanning";
|
|
140
|
+
readonly label: "Row spanning";
|
|
141
|
+
readonly category: "main";
|
|
142
|
+
readonly packageTarget: "deferred-premium";
|
|
143
|
+
readonly status: "planned";
|
|
144
|
+
}, {
|
|
145
|
+
readonly id: "cells";
|
|
146
|
+
readonly label: "Cells";
|
|
147
|
+
readonly category: "main";
|
|
148
|
+
readonly packageTarget: "community";
|
|
149
|
+
readonly status: "partial";
|
|
150
|
+
}, {
|
|
151
|
+
readonly id: "editing";
|
|
152
|
+
readonly label: "Editing";
|
|
153
|
+
readonly category: "main";
|
|
154
|
+
readonly packageTarget: "community";
|
|
155
|
+
readonly status: "partial";
|
|
156
|
+
}, {
|
|
157
|
+
readonly id: "sorting";
|
|
158
|
+
readonly label: "Sorting";
|
|
159
|
+
readonly category: "main";
|
|
160
|
+
readonly packageTarget: "community";
|
|
161
|
+
readonly status: "partial";
|
|
162
|
+
}, {
|
|
163
|
+
readonly id: "filtering";
|
|
164
|
+
readonly label: "Filtering";
|
|
165
|
+
readonly category: "main";
|
|
166
|
+
readonly packageTarget: "community";
|
|
167
|
+
readonly status: "partial";
|
|
168
|
+
}, {
|
|
169
|
+
readonly id: "pagination";
|
|
170
|
+
readonly label: "Pagination";
|
|
171
|
+
readonly category: "main";
|
|
172
|
+
readonly packageTarget: "community";
|
|
173
|
+
readonly status: "implemented";
|
|
174
|
+
}, {
|
|
175
|
+
readonly id: "selection";
|
|
176
|
+
readonly label: "Selection";
|
|
177
|
+
readonly category: "main";
|
|
178
|
+
readonly packageTarget: "community";
|
|
179
|
+
readonly status: "partial";
|
|
180
|
+
}, {
|
|
181
|
+
readonly id: "cell-selection";
|
|
182
|
+
readonly label: "Cell selection";
|
|
183
|
+
readonly category: "main";
|
|
184
|
+
readonly packageTarget: "community";
|
|
185
|
+
readonly status: "partial";
|
|
186
|
+
}, {
|
|
187
|
+
readonly id: "virtualization";
|
|
188
|
+
readonly label: "Virtualization";
|
|
189
|
+
readonly category: "main";
|
|
190
|
+
readonly packageTarget: "community";
|
|
191
|
+
readonly status: "partial";
|
|
192
|
+
}, {
|
|
193
|
+
readonly id: "header-filters";
|
|
194
|
+
readonly label: "Header filters";
|
|
195
|
+
readonly category: "main";
|
|
196
|
+
readonly packageTarget: "pro";
|
|
197
|
+
readonly status: "implemented";
|
|
198
|
+
}, {
|
|
199
|
+
readonly id: "accessibility";
|
|
200
|
+
readonly label: "Accessibility";
|
|
201
|
+
readonly category: "main";
|
|
202
|
+
readonly packageTarget: "community";
|
|
203
|
+
readonly status: "partial";
|
|
204
|
+
}, {
|
|
205
|
+
readonly id: "localization";
|
|
206
|
+
readonly label: "Localization";
|
|
207
|
+
readonly category: "main";
|
|
208
|
+
readonly packageTarget: "community";
|
|
209
|
+
readonly status: "partial";
|
|
210
|
+
}, {
|
|
211
|
+
readonly id: "tree-data";
|
|
212
|
+
readonly label: "Tree data";
|
|
213
|
+
readonly category: "advanced";
|
|
214
|
+
readonly packageTarget: "pro";
|
|
215
|
+
readonly status: "partial";
|
|
216
|
+
}, {
|
|
217
|
+
readonly id: "master-detail";
|
|
218
|
+
readonly label: "Master-detail row panels";
|
|
219
|
+
readonly category: "advanced";
|
|
220
|
+
readonly packageTarget: "pro";
|
|
221
|
+
readonly status: "implemented";
|
|
222
|
+
}, {
|
|
223
|
+
readonly id: "row-grouping";
|
|
224
|
+
readonly label: "Row grouping";
|
|
225
|
+
readonly category: "advanced";
|
|
226
|
+
readonly packageTarget: "pro";
|
|
227
|
+
readonly status: "partial";
|
|
228
|
+
}, {
|
|
229
|
+
readonly id: "aggregation";
|
|
230
|
+
readonly label: "Aggregation";
|
|
231
|
+
readonly category: "advanced";
|
|
232
|
+
readonly packageTarget: "pro";
|
|
233
|
+
readonly status: "partial";
|
|
234
|
+
}, {
|
|
235
|
+
readonly id: "pivoting";
|
|
236
|
+
readonly label: "Pivoting";
|
|
237
|
+
readonly category: "advanced";
|
|
238
|
+
readonly packageTarget: "pro";
|
|
239
|
+
readonly status: "implemented";
|
|
240
|
+
}, {
|
|
241
|
+
readonly id: "export";
|
|
242
|
+
readonly label: "Export";
|
|
243
|
+
readonly category: "advanced";
|
|
244
|
+
readonly packageTarget: "community";
|
|
245
|
+
readonly status: "partial";
|
|
246
|
+
}, {
|
|
247
|
+
readonly id: "copy-paste";
|
|
248
|
+
readonly label: "Copy and paste";
|
|
249
|
+
readonly category: "advanced";
|
|
250
|
+
readonly packageTarget: "pro";
|
|
251
|
+
readonly status: "partial";
|
|
252
|
+
}, {
|
|
253
|
+
readonly id: "undo-redo";
|
|
254
|
+
readonly label: "Undo and redo";
|
|
255
|
+
readonly category: "advanced";
|
|
256
|
+
readonly packageTarget: "pro";
|
|
257
|
+
readonly status: "partial";
|
|
258
|
+
}, {
|
|
259
|
+
readonly id: "scrolling";
|
|
260
|
+
readonly label: "Scrolling";
|
|
261
|
+
readonly category: "advanced";
|
|
262
|
+
readonly packageTarget: "community";
|
|
263
|
+
readonly status: "partial";
|
|
264
|
+
}, {
|
|
265
|
+
readonly id: "list-view";
|
|
266
|
+
readonly label: "List view";
|
|
267
|
+
readonly category: "advanced";
|
|
268
|
+
readonly packageTarget: "community";
|
|
269
|
+
readonly status: "planned";
|
|
270
|
+
}, {
|
|
271
|
+
readonly id: "server-side-data";
|
|
272
|
+
readonly label: "Server-side data";
|
|
273
|
+
readonly category: "advanced";
|
|
274
|
+
readonly packageTarget: "community";
|
|
275
|
+
readonly status: "partial";
|
|
276
|
+
}, {
|
|
277
|
+
readonly id: "server-side-hierarchy";
|
|
278
|
+
readonly label: "Server-side hierarchy";
|
|
279
|
+
readonly category: "advanced";
|
|
280
|
+
readonly packageTarget: "pro";
|
|
281
|
+
readonly status: "partial";
|
|
282
|
+
}, {
|
|
283
|
+
readonly id: "server-side-export";
|
|
284
|
+
readonly label: "Server-side export";
|
|
285
|
+
readonly category: "advanced";
|
|
286
|
+
readonly packageTarget: "community";
|
|
287
|
+
readonly status: "partial";
|
|
288
|
+
}, {
|
|
289
|
+
readonly id: "server-side-hierarchy-export";
|
|
290
|
+
readonly label: "Server-side hierarchy export";
|
|
291
|
+
readonly category: "advanced";
|
|
292
|
+
readonly packageTarget: "pro";
|
|
293
|
+
readonly status: "partial";
|
|
294
|
+
}, {
|
|
295
|
+
readonly id: "charts-integration";
|
|
296
|
+
readonly label: "Charts integration";
|
|
297
|
+
readonly category: "advanced";
|
|
298
|
+
readonly packageTarget: "pro";
|
|
299
|
+
readonly status: "implemented";
|
|
300
|
+
}, {
|
|
301
|
+
readonly id: "ai-assistant";
|
|
302
|
+
readonly label: "AI assistant";
|
|
303
|
+
readonly category: "advanced";
|
|
304
|
+
readonly packageTarget: "pro";
|
|
305
|
+
readonly status: "implemented";
|
|
306
|
+
}, {
|
|
307
|
+
readonly id: "toolbar";
|
|
308
|
+
readonly label: "Toolbar";
|
|
309
|
+
readonly category: "component";
|
|
310
|
+
readonly packageTarget: "community";
|
|
311
|
+
readonly status: "implemented";
|
|
312
|
+
}, {
|
|
313
|
+
readonly id: "export-controls";
|
|
314
|
+
readonly label: "Export controls";
|
|
315
|
+
readonly category: "component";
|
|
316
|
+
readonly packageTarget: "community";
|
|
317
|
+
readonly status: "implemented";
|
|
318
|
+
}, {
|
|
319
|
+
readonly id: "quick-filter";
|
|
320
|
+
readonly label: "Quick filter";
|
|
321
|
+
readonly category: "component";
|
|
322
|
+
readonly packageTarget: "community";
|
|
323
|
+
readonly status: "implemented";
|
|
324
|
+
}, {
|
|
325
|
+
readonly id: "columns-panel";
|
|
326
|
+
readonly label: "Columns panel";
|
|
327
|
+
readonly category: "component";
|
|
328
|
+
readonly packageTarget: "community";
|
|
329
|
+
readonly status: "implemented";
|
|
330
|
+
}, {
|
|
331
|
+
readonly id: "filter-panel";
|
|
332
|
+
readonly label: "Filter panel";
|
|
333
|
+
readonly category: "component";
|
|
334
|
+
readonly packageTarget: "community";
|
|
335
|
+
readonly status: "implemented";
|
|
336
|
+
}, {
|
|
337
|
+
readonly id: "column-menu";
|
|
338
|
+
readonly label: "Column menu";
|
|
339
|
+
readonly category: "component";
|
|
340
|
+
readonly packageTarget: "community";
|
|
341
|
+
readonly status: "implemented";
|
|
342
|
+
}, {
|
|
343
|
+
readonly id: "preset-controls";
|
|
344
|
+
readonly label: "Preset controls";
|
|
345
|
+
readonly category: "component";
|
|
346
|
+
readonly packageTarget: "pro";
|
|
347
|
+
readonly status: "partial";
|
|
348
|
+
}, {
|
|
349
|
+
readonly id: "prompt-field";
|
|
350
|
+
readonly label: "Prompt field";
|
|
351
|
+
readonly category: "component";
|
|
352
|
+
readonly packageTarget: "pro";
|
|
353
|
+
readonly status: "implemented";
|
|
354
|
+
}, {
|
|
355
|
+
readonly id: "pivot-panel";
|
|
356
|
+
readonly label: "Pivot panel";
|
|
357
|
+
readonly category: "component";
|
|
358
|
+
readonly packageTarget: "pro";
|
|
359
|
+
readonly status: "implemented";
|
|
360
|
+
}, {
|
|
361
|
+
readonly id: "charts-panel";
|
|
362
|
+
readonly label: "Charts panel";
|
|
363
|
+
readonly category: "component";
|
|
364
|
+
readonly packageTarget: "pro";
|
|
365
|
+
readonly status: "implemented";
|
|
366
|
+
}, {
|
|
367
|
+
readonly id: "ai-assistant-panel";
|
|
368
|
+
readonly label: "AI assistant panel";
|
|
369
|
+
readonly category: "component";
|
|
370
|
+
readonly packageTarget: "pro";
|
|
371
|
+
readonly status: "implemented";
|
|
372
|
+
}, {
|
|
373
|
+
readonly id: "api-object";
|
|
374
|
+
readonly label: "API object";
|
|
375
|
+
readonly category: "platform";
|
|
376
|
+
readonly packageTarget: "community";
|
|
377
|
+
readonly status: "partial";
|
|
378
|
+
}, {
|
|
379
|
+
readonly id: "events";
|
|
380
|
+
readonly label: "Events";
|
|
381
|
+
readonly category: "platform";
|
|
382
|
+
readonly packageTarget: "community";
|
|
383
|
+
readonly status: "partial";
|
|
384
|
+
}, {
|
|
385
|
+
readonly id: "state";
|
|
386
|
+
readonly label: "State";
|
|
387
|
+
readonly category: "platform";
|
|
388
|
+
readonly packageTarget: "community";
|
|
389
|
+
readonly status: "partial";
|
|
390
|
+
}, {
|
|
391
|
+
readonly id: "state-presets";
|
|
392
|
+
readonly label: "State presets";
|
|
393
|
+
readonly category: "platform";
|
|
394
|
+
readonly packageTarget: "pro";
|
|
395
|
+
readonly status: "partial";
|
|
396
|
+
}, {
|
|
397
|
+
readonly id: "performance";
|
|
398
|
+
readonly label: "Performance";
|
|
399
|
+
readonly category: "platform";
|
|
400
|
+
readonly packageTarget: "community";
|
|
401
|
+
readonly status: "implemented";
|
|
402
|
+
}, {
|
|
403
|
+
readonly id: "styling";
|
|
404
|
+
readonly label: "Styling";
|
|
405
|
+
readonly category: "platform";
|
|
406
|
+
readonly packageTarget: "community";
|
|
407
|
+
readonly status: "implemented";
|
|
408
|
+
}, {
|
|
409
|
+
readonly id: "custom-subcomponents";
|
|
410
|
+
readonly label: "Custom subcomponents";
|
|
411
|
+
readonly category: "platform";
|
|
412
|
+
readonly packageTarget: "community";
|
|
413
|
+
readonly status: "implemented";
|
|
414
|
+
}, {
|
|
415
|
+
readonly id: "overlays";
|
|
416
|
+
readonly label: "Overlays";
|
|
417
|
+
readonly category: "platform";
|
|
418
|
+
readonly packageTarget: "community";
|
|
419
|
+
readonly status: "implemented";
|
|
420
|
+
}];
|
|
421
|
+
declare const dataGridCapabilityFeatureIds: ("layout" | "columns" | "column-resizing" | "column-reordering" | "column-spanning" | "column-groups" | "pinned-columns" | "pinned-rows" | "rows" | "row-reordering" | "row-spanning" | "cells" | "editing" | "sorting" | "filtering" | "pagination" | "selection" | "cell-selection" | "virtualization" | "header-filters" | "accessibility" | "localization" | "tree-data" | "master-detail" | "row-grouping" | "aggregation" | "pivoting" | "export" | "copy-paste" | "undo-redo" | "scrolling" | "list-view" | "server-side-data" | "server-side-hierarchy" | "server-side-export" | "server-side-hierarchy-export" | "charts-integration" | "ai-assistant" | "toolbar" | "export-controls" | "quick-filter" | "columns-panel" | "filter-panel" | "column-menu" | "preset-controls" | "prompt-field" | "pivot-panel" | "charts-panel" | "ai-assistant-panel" | "api-object" | "events" | "state" | "state-presets" | "performance" | "styling" | "custom-subcomponents" | "overlays")[];
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Framework-neutral Data Grid contracts.
|
|
425
|
+
*
|
|
426
|
+
* Rendering adapters specialize these contracts with their own column and
|
|
427
|
+
* renderable types. Business state, data-source requests, sorting, filtering,
|
|
428
|
+
* selection, transactions, and persistence models stay portable.
|
|
429
|
+
*/
|
|
430
|
+
type DataGridRowId = string | number;
|
|
431
|
+
type DataGridRow = object;
|
|
432
|
+
type DataGridSortDirection = 'ascending' | 'descending';
|
|
433
|
+
type DataGridColumnAlign = 'left' | 'center' | 'right';
|
|
434
|
+
type DataGridColumnType = 'string' | 'number' | 'date' | 'dateTime' | 'boolean' | 'singleSelect' | 'multiSelect' | 'actions';
|
|
435
|
+
type DataGridDensity = 'standard' | 'compact' | 'spacious';
|
|
436
|
+
type DataGridFilterOperator = 'contains' | 'equals' | 'startsWith' | 'endsWith' | 'notEquals' | 'notContains' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'isEmpty' | 'isNotEmpty' | 'isAnyOf';
|
|
437
|
+
type DataGridColumnVisibilityModel = Record<string, boolean>;
|
|
438
|
+
type DataGridColumnWidthModel = Record<string, number>;
|
|
439
|
+
type DataGridColumnOrder = readonly string[];
|
|
440
|
+
type DataGridExportFormat = 'csv';
|
|
441
|
+
type DataGridExportScope = 'visible' | 'filtered' | 'selected' | 'all';
|
|
442
|
+
type DataGridScrollAlign = 'start' | 'center' | 'end' | 'nearest';
|
|
443
|
+
type DataGridDataSourceMode = 'client' | 'server';
|
|
444
|
+
type DataGridEditMode = 'cell' | 'row';
|
|
445
|
+
type DataGridEditCommitPolicy = 'explicit' | 'blur';
|
|
446
|
+
type DataGridRowEditMode = 'view' | 'edit';
|
|
447
|
+
type DataGridEditStartReason = 'api' | 'cell-double-click' | 'keyboard';
|
|
448
|
+
type DataGridEditStopReason = 'api' | 'enter-key' | 'escape-key' | 'tab-key' | 'cell-blur';
|
|
449
|
+
type DataGridRowUpdateReason = 'cell-clear' | 'cell-fill' | 'clipboard-paste' | 'redo' | 'undo';
|
|
450
|
+
type DataGridLoadingOverlayVariant = 'skeleton' | 'linear-progress' | 'circular-progress';
|
|
451
|
+
interface DataGridMotionOptions {
|
|
452
|
+
feedbackDurationMs?: number;
|
|
453
|
+
layoutDurationMs?: number;
|
|
454
|
+
}
|
|
455
|
+
interface DataGridPinnedColumns {
|
|
456
|
+
left?: readonly string[];
|
|
457
|
+
right?: readonly string[];
|
|
458
|
+
}
|
|
459
|
+
interface DataGridPinnedRows {
|
|
460
|
+
bottom?: readonly DataGridRowId[];
|
|
461
|
+
top?: readonly DataGridRowId[];
|
|
462
|
+
}
|
|
463
|
+
type DataGridPinnedRowPosition = keyof DataGridPinnedRows;
|
|
464
|
+
interface DataGridRowOrderChange<Row extends DataGridRow = DataGridRow> {
|
|
465
|
+
id: DataGridRowId;
|
|
466
|
+
oldIndex: number;
|
|
467
|
+
row: Row;
|
|
468
|
+
rowOrder: readonly DataGridRowId[];
|
|
469
|
+
targetIndex: number;
|
|
470
|
+
}
|
|
471
|
+
interface DataGridDetailPanelExpandedRowsChange<Row extends DataGridRow = DataGridRow> {
|
|
472
|
+
expandedRowIds: readonly DataGridRowId[];
|
|
473
|
+
rows: readonly Row[];
|
|
474
|
+
}
|
|
475
|
+
interface DataGridExportOptions {
|
|
476
|
+
fileName?: string;
|
|
477
|
+
format?: DataGridExportFormat;
|
|
478
|
+
includeHeaders?: boolean;
|
|
479
|
+
includeHiddenColumns?: boolean;
|
|
480
|
+
scope?: DataGridExportScope;
|
|
481
|
+
}
|
|
482
|
+
interface DataGridFilterItem {
|
|
483
|
+
field: string;
|
|
484
|
+
value: string;
|
|
485
|
+
operator?: DataGridFilterOperator;
|
|
486
|
+
/** Distinct values for isAnyOf. value remains the text editor value. */
|
|
487
|
+
values?: readonly string[];
|
|
488
|
+
}
|
|
489
|
+
interface DataGridFilterModel {
|
|
490
|
+
items?: readonly DataGridFilterItem[];
|
|
491
|
+
quickFilterValue?: string;
|
|
492
|
+
/** Column conditions use AND by default; quick search always intersects them. */
|
|
493
|
+
logicOperator?: 'and' | 'or';
|
|
494
|
+
}
|
|
495
|
+
interface DataGridPaginationModel {
|
|
496
|
+
page: number;
|
|
497
|
+
pageSize: number;
|
|
498
|
+
}
|
|
499
|
+
interface DataGridSortModel {
|
|
500
|
+
field: string;
|
|
501
|
+
direction: DataGridSortDirection;
|
|
502
|
+
}
|
|
503
|
+
interface DataGridExportRequest {
|
|
504
|
+
columnFields: readonly string[];
|
|
505
|
+
columnOrder: DataGridColumnOrder;
|
|
506
|
+
columnVisibilityModel: DataGridColumnVisibilityModel;
|
|
507
|
+
filterModel: DataGridFilterModel;
|
|
508
|
+
options: Required<DataGridExportOptions>;
|
|
509
|
+
paginationModel: DataGridPaginationModel;
|
|
510
|
+
requestId: number;
|
|
511
|
+
rowCount: number;
|
|
512
|
+
selectedRowIds: readonly DataGridRowId[];
|
|
513
|
+
signal: AbortSignal;
|
|
514
|
+
sortModel: DataGridSortModel | null;
|
|
515
|
+
visibleColumnFields: readonly string[];
|
|
516
|
+
}
|
|
517
|
+
interface DataGridExportResult {
|
|
518
|
+
data: string | Blob;
|
|
519
|
+
fileName?: string;
|
|
520
|
+
mimeType?: string;
|
|
521
|
+
}
|
|
522
|
+
interface DataGridExportDataSource {
|
|
523
|
+
exportData: (request: DataGridExportRequest) => string | Blob | DataGridExportResult | Promise<string | Blob | DataGridExportResult>;
|
|
524
|
+
}
|
|
525
|
+
interface DataGridCellParams<Row extends DataGridRow = DataGridRow> {
|
|
526
|
+
id: DataGridRowId;
|
|
527
|
+
row: Row;
|
|
528
|
+
rowIndex: number;
|
|
529
|
+
field: string;
|
|
530
|
+
value: unknown;
|
|
531
|
+
}
|
|
532
|
+
interface DataGridRowParams<Row extends DataGridRow = DataGridRow> {
|
|
533
|
+
id: DataGridRowId;
|
|
534
|
+
row: Row;
|
|
535
|
+
rowIndex: number;
|
|
536
|
+
}
|
|
537
|
+
interface DataGridCellPosition {
|
|
538
|
+
field: string;
|
|
539
|
+
id: DataGridRowId;
|
|
540
|
+
}
|
|
541
|
+
interface DataGridCellRange {
|
|
542
|
+
end: DataGridCellPosition;
|
|
543
|
+
start: DataGridCellPosition;
|
|
544
|
+
}
|
|
545
|
+
interface DataGridCellSelectionModel {
|
|
546
|
+
ranges: readonly DataGridCellRange[];
|
|
547
|
+
}
|
|
548
|
+
interface DataGridCellSelectionChange<Row extends DataGridRow = DataGridRow> {
|
|
549
|
+
model: DataGridCellSelectionModel;
|
|
550
|
+
selectedCellCount: number;
|
|
551
|
+
selectedCells: readonly DataGridCellParams<Row>[];
|
|
552
|
+
}
|
|
553
|
+
interface DataGridResolvedRow<Row extends DataGridRow = DataGridRow> {
|
|
554
|
+
id: DataGridRowId;
|
|
555
|
+
row: Row;
|
|
556
|
+
rowIndex: number;
|
|
557
|
+
}
|
|
558
|
+
interface DataGridRowEditChange<Row extends DataGridRow = DataGridRow> {
|
|
559
|
+
id: DataGridRowId;
|
|
560
|
+
row: Row;
|
|
561
|
+
oldRow: Row;
|
|
562
|
+
rowIndex: number;
|
|
563
|
+
reason: DataGridEditStopReason;
|
|
564
|
+
}
|
|
565
|
+
interface DataGridRowEditStartParams<Row extends DataGridRow = DataGridRow> {
|
|
566
|
+
id: DataGridRowId;
|
|
567
|
+
row: Row;
|
|
568
|
+
rowIndex: number;
|
|
569
|
+
field?: string;
|
|
570
|
+
reason: DataGridEditStartReason;
|
|
571
|
+
}
|
|
572
|
+
interface DataGridRowEditStopParams<Row extends DataGridRow = DataGridRow> {
|
|
573
|
+
id: DataGridRowId;
|
|
574
|
+
row: Row;
|
|
575
|
+
oldRow: Row;
|
|
576
|
+
rowIndex: number;
|
|
577
|
+
reason: DataGridEditStopReason;
|
|
578
|
+
}
|
|
579
|
+
interface DataGridRowEditErrorParams<Row extends DataGridRow = DataGridRow> {
|
|
580
|
+
id: DataGridRowId;
|
|
581
|
+
row: Row;
|
|
582
|
+
oldRow: Row;
|
|
583
|
+
rowIndex: number;
|
|
584
|
+
error: unknown;
|
|
585
|
+
}
|
|
586
|
+
/** Portable row-edit state; rendering adapters specialize the error payload. */
|
|
587
|
+
interface DataGridRowEditModelEntryContract<Row extends DataGridRow = DataGridRow, ErrorPayload = unknown> {
|
|
588
|
+
mode: DataGridRowEditMode;
|
|
589
|
+
values?: Partial<Row>;
|
|
590
|
+
errors?: Record<string, ErrorPayload>;
|
|
591
|
+
isProcessing?: boolean;
|
|
592
|
+
}
|
|
593
|
+
type DataGridRowEditModelContract<Row extends DataGridRow = DataGridRow, ErrorPayload = unknown> = Record<string, DataGridRowEditModelEntryContract<Row, ErrorPayload>>;
|
|
594
|
+
interface DataGridRowUpdate<Row extends DataGridRow = DataGridRow> {
|
|
595
|
+
id: DataGridRowId;
|
|
596
|
+
row: Row;
|
|
597
|
+
oldRow: Row;
|
|
598
|
+
rowIndex: number;
|
|
599
|
+
}
|
|
600
|
+
interface DataGridRowsUpdateChange<Row extends DataGridRow = DataGridRow> {
|
|
601
|
+
reason: DataGridRowUpdateReason;
|
|
602
|
+
updates: readonly DataGridRowUpdate<Row>[];
|
|
603
|
+
}
|
|
604
|
+
interface DataGridTransaction<Row extends DataGridRow = DataGridRow> {
|
|
605
|
+
id: string;
|
|
606
|
+
reason: DataGridRowUpdateReason;
|
|
607
|
+
updates: readonly DataGridRowUpdate<Row>[];
|
|
608
|
+
}
|
|
609
|
+
interface DataGridTransactionState<Row extends DataGridRow = DataGridRow> {
|
|
610
|
+
canRedo: boolean;
|
|
611
|
+
canUndo: boolean;
|
|
612
|
+
redoStack: readonly DataGridTransaction<Row>[];
|
|
613
|
+
undoStack: readonly DataGridTransaction<Row>[];
|
|
614
|
+
}
|
|
615
|
+
interface DataGridClipboardCopyOptions {
|
|
616
|
+
includeHeaders?: boolean;
|
|
617
|
+
}
|
|
618
|
+
interface DataGridClipboardPasteResult<Row extends DataGridRow = DataGridRow> {
|
|
619
|
+
appliedCellCount: number;
|
|
620
|
+
rejectedCellCount: number;
|
|
621
|
+
transaction: DataGridTransaction<Row> | null;
|
|
622
|
+
updatedRows: readonly DataGridRowUpdate<Row>[];
|
|
623
|
+
}
|
|
624
|
+
interface DataGridVirtualizationState {
|
|
625
|
+
columnEnabled: boolean;
|
|
626
|
+
columnEndIndex: number;
|
|
627
|
+
columnOverscanCount: number;
|
|
628
|
+
columnStartIndex: number;
|
|
629
|
+
enabled: boolean;
|
|
630
|
+
endIndex: number;
|
|
631
|
+
overscanRowCount: number;
|
|
632
|
+
renderedColumnCount: number;
|
|
633
|
+
renderedRowCount: number;
|
|
634
|
+
rowHeight: number;
|
|
635
|
+
scrollLeft: number;
|
|
636
|
+
scrollTop: number;
|
|
637
|
+
startIndex: number;
|
|
638
|
+
totalColumnCount: number;
|
|
639
|
+
totalRowCount: number;
|
|
640
|
+
viewportWidth: number;
|
|
641
|
+
viewportHeight: number;
|
|
642
|
+
}
|
|
643
|
+
interface DataGridServerRequestState {
|
|
644
|
+
filterModel: DataGridFilterModel;
|
|
645
|
+
paginationModel: DataGridPaginationModel;
|
|
646
|
+
rowCount: number;
|
|
647
|
+
sortModel: DataGridSortModel | null;
|
|
648
|
+
}
|
|
649
|
+
interface DataGridDataSourceRequest {
|
|
650
|
+
columnOrder: DataGridColumnOrder;
|
|
651
|
+
columnVisibilityModel: DataGridColumnVisibilityModel;
|
|
652
|
+
filterModel: DataGridFilterModel;
|
|
653
|
+
paginationModel: DataGridPaginationModel;
|
|
654
|
+
requestId: number;
|
|
655
|
+
signal: AbortSignal;
|
|
656
|
+
sortModel: DataGridSortModel | null;
|
|
657
|
+
visibleColumnFields: readonly string[];
|
|
658
|
+
}
|
|
659
|
+
interface DataGridDataSourceResponse<Row extends DataGridRow = DataGridRow> {
|
|
660
|
+
metadata?: Readonly<Record<string, unknown>>;
|
|
661
|
+
rowCount: number;
|
|
662
|
+
rows: readonly Row[];
|
|
663
|
+
}
|
|
664
|
+
interface DataGridDataSource<Row extends DataGridRow = DataGridRow> {
|
|
665
|
+
getRows: (request: DataGridDataSourceRequest) => DataGridDataSourceResponse<Row> | Promise<DataGridDataSourceResponse<Row>>;
|
|
666
|
+
}
|
|
667
|
+
interface DataGridDataSourceState<Row extends DataGridRow = DataGridRow> {
|
|
668
|
+
error: unknown;
|
|
669
|
+
lastRequest: DataGridDataSourceRequest | null;
|
|
670
|
+
loading: boolean;
|
|
671
|
+
rowCount: number;
|
|
672
|
+
rows: readonly Row[];
|
|
673
|
+
}
|
|
674
|
+
interface DataGridExportState {
|
|
675
|
+
error: unknown;
|
|
676
|
+
lastRequest: DataGridExportRequest | null;
|
|
677
|
+
loading: boolean;
|
|
678
|
+
}
|
|
679
|
+
interface DataGridStatePresetMetadata {
|
|
680
|
+
id?: string;
|
|
681
|
+
name?: string;
|
|
682
|
+
description?: string;
|
|
683
|
+
}
|
|
684
|
+
interface DataGridInitialStateContract<Row extends DataGridRow = DataGridRow, EditError = unknown> {
|
|
685
|
+
cellSelectionModel?: DataGridCellSelectionModel;
|
|
686
|
+
columnOrder?: DataGridColumnOrder;
|
|
687
|
+
pinnedColumns?: DataGridPinnedColumns;
|
|
688
|
+
pinnedRows?: DataGridPinnedRows;
|
|
689
|
+
columnVisibilityModel?: DataGridColumnVisibilityModel;
|
|
690
|
+
columnWidthModel?: DataGridColumnWidthModel;
|
|
691
|
+
density?: DataGridDensity;
|
|
692
|
+
detailPanelExpandedRowIds?: readonly DataGridRowId[];
|
|
693
|
+
filterModel?: DataGridFilterModel;
|
|
694
|
+
paginationModel?: DataGridPaginationModel;
|
|
695
|
+
rowOrder?: readonly DataGridRowId[];
|
|
696
|
+
rowEditModel?: DataGridRowEditModelContract<Row, EditError>;
|
|
697
|
+
rowSelectionModel?: readonly DataGridRowId[];
|
|
698
|
+
sortModel?: DataGridSortModel | null;
|
|
699
|
+
}
|
|
700
|
+
interface DataGridStateSnapshotContract<Row extends DataGridRow = DataGridRow, EditError = unknown> extends DataGridInitialStateContract<Row, EditError> {
|
|
701
|
+
}
|
|
702
|
+
interface DataGridStatePresetContract<Row extends DataGridRow = DataGridRow, EditError = unknown> extends DataGridStateSnapshotContract<Row, EditError>, DataGridStatePresetMetadata {
|
|
703
|
+
presetVersion: 1;
|
|
704
|
+
}
|
|
705
|
+
interface DataGridRowSelectionChange<Row extends DataGridRow = DataGridRow> {
|
|
706
|
+
selectedIds: readonly DataGridRowId[];
|
|
707
|
+
selectedRows: readonly Row[];
|
|
708
|
+
}
|
|
709
|
+
interface DataGridLocaleText {
|
|
710
|
+
clearSelectionLabel: string;
|
|
711
|
+
clipboardErrorLabel: string;
|
|
712
|
+
densityLabels: Record<DataGridDensity, string>;
|
|
713
|
+
retryLabel: string;
|
|
714
|
+
clearFiltersLabel: string;
|
|
715
|
+
rowsPerPageLabel: string;
|
|
716
|
+
exportErrorLabel: string;
|
|
717
|
+
serverExportRequiredLabel: string;
|
|
718
|
+
actionsColumnLabel: string;
|
|
719
|
+
assistantLabel: string;
|
|
720
|
+
addFilterLabel: string;
|
|
721
|
+
allItemsLabel: (rowCount: number) => string;
|
|
722
|
+
allRowsExportLabel: string;
|
|
723
|
+
allVisibleColumnsLabel: string;
|
|
724
|
+
clearAllFiltersLabel: string;
|
|
725
|
+
clearSortLabel: string;
|
|
726
|
+
columnsLabel: string;
|
|
727
|
+
columnsWithHiddenCountLabel: (hiddenCount: number) => string;
|
|
728
|
+
dataSourceErrorLabel: string;
|
|
729
|
+
editColumnLabel: (columnLabel: string) => string;
|
|
730
|
+
exportLabel: string;
|
|
731
|
+
exportPreparingLabel: string;
|
|
732
|
+
exportSelectedRowsDisabledLabel: string;
|
|
733
|
+
exportTitle: string;
|
|
734
|
+
filteredRowsExportLabel: string;
|
|
735
|
+
filterColumnAriaLabel: string;
|
|
736
|
+
filterColumnLabel: (columnLabel: string) => string;
|
|
737
|
+
filterOperatorAriaLabel: string;
|
|
738
|
+
filterOperatorLabels: Record<DataGridFilterOperator, string>;
|
|
739
|
+
filterValueAriaLabel: string;
|
|
740
|
+
filterValuePlaceholder: string;
|
|
741
|
+
filtersActiveLabel: (activeCount: number) => string;
|
|
742
|
+
filtersLabel: string;
|
|
743
|
+
headerFilterPlaceholder: string;
|
|
744
|
+
hideColumnLabel: string;
|
|
745
|
+
hiddenColumnsLabel: (hiddenCount: number) => string;
|
|
746
|
+
loadingRowsLabel: string;
|
|
747
|
+
manageFieldsDescription: string;
|
|
748
|
+
manageFieldsLabel: string;
|
|
749
|
+
manageViewLabel: string;
|
|
750
|
+
noActiveFiltersLabel: string;
|
|
751
|
+
noColumnFiltersLabel: string;
|
|
752
|
+
noResultsOverlayLabel: string;
|
|
753
|
+
noRowsLabel: string;
|
|
754
|
+
openColumnMenuLabel: (columnLabel: string) => string;
|
|
755
|
+
paginationLabel: string;
|
|
756
|
+
paginationStatusLabel: (page: number, pageCount: number, firstRow: number, lastRow: number, rowCount: number) => string;
|
|
757
|
+
pinLeftLabel: string;
|
|
758
|
+
pinRightLabel: string;
|
|
759
|
+
quickFilterLabel: string;
|
|
760
|
+
quickFilterPlaceholder: string;
|
|
761
|
+
removeFilterLabel: string;
|
|
762
|
+
reorderRowLabel: (rowIndex: number) => string;
|
|
763
|
+
rowReorderInstructionsLabel: string;
|
|
764
|
+
rowReorderUnavailableLabel: string;
|
|
765
|
+
rowReorderCancelledLabel: string;
|
|
766
|
+
rowReorderPositionLabel: (position: number, count: number) => string;
|
|
767
|
+
rowUpdateErrorLabel: string;
|
|
768
|
+
resetColumnsLabel: string;
|
|
769
|
+
resetViewLabel: string;
|
|
770
|
+
restoreSavedViewLabel: string;
|
|
771
|
+
resizeColumnLabel: (columnLabel: string) => string;
|
|
772
|
+
rowDetailsCollapseLabel: string;
|
|
773
|
+
rowDetailsExpandLabel: string;
|
|
774
|
+
rowSelectionLabel: (rowIndex: number) => string;
|
|
775
|
+
rowsSummaryLabel: (visibleRowCount: number, totalRowCount: number) => string;
|
|
776
|
+
selectedRowsExportLabel: string;
|
|
777
|
+
selectedRowsLabel: (selectedRowCount: number) => string;
|
|
778
|
+
selectAllRowsLabel: string;
|
|
779
|
+
saveCurrentViewLabel: string;
|
|
780
|
+
searchColumnsPlaceholder: string;
|
|
781
|
+
searchFiltersPlaceholder: string;
|
|
782
|
+
sortAscendingLabel: string;
|
|
783
|
+
sortByColumnLabel: (columnLabel: string, direction: DataGridSortDirection) => string;
|
|
784
|
+
sortDescendingLabel: string;
|
|
785
|
+
toggleColumnLabel: (columnLabel: string) => string;
|
|
786
|
+
ungroupedColumnsLabel: string;
|
|
787
|
+
unpinLabel: string;
|
|
788
|
+
visibleRowsExportLabel: string;
|
|
789
|
+
}
|
|
790
|
+
/** Minimal column port consumed by neutral sort/filter/export services. */
|
|
791
|
+
interface DataGridValueColumnContract<Row extends DataGridRow = DataGridRow, Renderable = unknown> {
|
|
792
|
+
field: keyof Row extends string ? Extract<keyof Row, string> | string : string;
|
|
793
|
+
headerName?: Renderable;
|
|
794
|
+
renderCell?: (params: DataGridCellParams<Row>) => Renderable;
|
|
795
|
+
sortComparator?: (left: unknown, right: unknown, leftRow: Row, rightRow: Row) => number;
|
|
796
|
+
valueFormatter?: (value: unknown, row: Row, rowIndex: number) => Renderable;
|
|
797
|
+
valueGetter?: (row: Row, rowIndex: number) => unknown;
|
|
798
|
+
}
|
|
799
|
+
/** Adapter-independent state shape used by selectors and headless hosts. */
|
|
800
|
+
interface DataGridStateContract<Row extends DataGridRow = DataGridRow, Column extends DataGridValueColumnContract<Row> = DataGridValueColumnContract<Row>> {
|
|
801
|
+
columns: readonly Column[];
|
|
802
|
+
dataSource: DataGridDataSourceState<Row>;
|
|
803
|
+
dataSourceMode: DataGridDataSourceMode;
|
|
804
|
+
export: DataGridExportState;
|
|
805
|
+
filterModel: DataGridFilterModel;
|
|
806
|
+
filteredRows: readonly DataGridResolvedRow<Row>[];
|
|
807
|
+
paginationModel: DataGridPaginationModel;
|
|
808
|
+
rowCount: number;
|
|
809
|
+
rows: readonly DataGridResolvedRow<Row>[];
|
|
810
|
+
selectedRows: readonly DataGridResolvedRow<Row>[];
|
|
811
|
+
sortModel: DataGridSortModel | null;
|
|
812
|
+
sortedRows: readonly DataGridResolvedRow<Row>[];
|
|
813
|
+
transactions: DataGridTransactionState<Row>;
|
|
814
|
+
virtualization: DataGridVirtualizationState;
|
|
815
|
+
visibleColumns: readonly Column[];
|
|
816
|
+
visibleRows: readonly DataGridResolvedRow<Row>[];
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
declare const defaultDataGridLocaleText: DataGridLocaleText;
|
|
820
|
+
declare function resolveDataGridLocaleText(overrides?: Partial<DataGridLocaleText>): DataGridLocaleText;
|
|
821
|
+
|
|
822
|
+
declare function dataGridVisibleColumnsSelector<Row extends DataGridRow, Column extends DataGridValueColumnContract<Row, any>>(state: DataGridStateContract<Row, Column>): readonly Column[];
|
|
823
|
+
declare function dataGridVisibleRowsSelector<Row extends DataGridRow, Column extends DataGridValueColumnContract<Row, any>>(state: DataGridStateContract<Row, Column>): readonly DataGridResolvedRow<Row>[];
|
|
824
|
+
declare function dataGridFilteredRowsSelector<Row extends DataGridRow, Column extends DataGridValueColumnContract<Row, any>>(state: DataGridStateContract<Row, Column>): readonly DataGridResolvedRow<Row>[];
|
|
825
|
+
declare function dataGridSelectedRowsSelector<Row extends DataGridRow, Column extends DataGridValueColumnContract<Row, any>>(state: DataGridStateContract<Row, Column>): readonly DataGridResolvedRow<Row>[];
|
|
826
|
+
|
|
827
|
+
type ResolvedDataGridRow<Row extends DataGridRow = DataGridRow> = DataGridResolvedRow<Row>;
|
|
828
|
+
declare function resolveDataGridRowId<Row extends DataGridRow>(row: Row, rowIndex: number, getRowId?: (row: Row, rowIndex: number) => DataGridRowId): DataGridRowId;
|
|
829
|
+
declare function getDataGridCellValue<Row extends DataGridRow, Renderable = unknown>(column: DataGridValueColumnContract<Row, Renderable>, row: Row, rowIndex: number): unknown;
|
|
830
|
+
declare function getDataGridColumnLabel<Row extends DataGridRow, Renderable = unknown>(column: DataGridValueColumnContract<Row, Renderable>): string;
|
|
831
|
+
declare function serializeDataGridCsv<Row extends DataGridRow, Renderable = unknown>(columns: readonly DataGridValueColumnContract<Row, Renderable>[], rows: readonly ResolvedDataGridRow<Row>[], options?: Pick<DataGridExportOptions, 'includeHeaders'>): string;
|
|
832
|
+
declare function compareDataGridValues(left: unknown, right: unknown): number;
|
|
833
|
+
declare function sortDataGridRows<Row extends DataGridRow, Renderable = unknown>(rows: readonly ResolvedDataGridRow<Row>[], columns: readonly DataGridValueColumnContract<Row, Renderable>[], sortModel: DataGridSortModel | readonly DataGridSortModel[] | null | undefined): readonly ResolvedDataGridRow<Row>[];
|
|
834
|
+
declare function filterDataGridRows<Row extends DataGridRow, Renderable = unknown>(rows: readonly ResolvedDataGridRow<Row>[], columns: readonly DataGridValueColumnContract<Row, Renderable>[], filterModel: DataGridFilterModel | undefined): readonly ResolvedDataGridRow<Row>[];
|
|
835
|
+
declare function isDataGridFilterActive(item: DataGridFilterItem): boolean;
|
|
836
|
+
declare function normalizeDataGridSortModel(field: string, direction: DataGridSortDirection): DataGridSortModel;
|
|
837
|
+
declare function renderDataGridCell<Row extends DataGridRow, Renderable = unknown>(column: DataGridValueColumnContract<Row, Renderable>, resolvedRow: ResolvedDataGridRow<Row>): Renderable;
|
|
838
|
+
declare function formatDataGridCellValue<Row extends DataGridRow, Renderable = unknown>(column: DataGridValueColumnContract<Row, Renderable>, resolvedRow: ResolvedDataGridRow<Row>): Renderable;
|
|
839
|
+
|
|
840
|
+
type TabularWorkbookCell = string | number | boolean | null | undefined;
|
|
841
|
+
interface TabularWorkbookOptions {
|
|
842
|
+
sheetName?: string;
|
|
843
|
+
}
|
|
844
|
+
/** Typed OOXML cells in a deterministic ZIP. Text is never interpreted as a formula. */
|
|
845
|
+
declare function exportTabularWorkbook(rows: readonly (readonly TabularWorkbookCell[])[], options?: TabularWorkbookOptions): Uint8Array;
|
|
846
|
+
|
|
847
|
+
/** Shared PDF 1.7 page assembly for first-party browser-rendered reports. */
|
|
848
|
+
interface RasterPdfAccessibility {
|
|
849
|
+
title: string;
|
|
850
|
+
language: string;
|
|
851
|
+
pageDescriptions: readonly string[];
|
|
852
|
+
}
|
|
853
|
+
declare function assembleRasterPdf(pages: readonly {
|
|
854
|
+
jpeg: Uint8Array;
|
|
855
|
+
width: number;
|
|
856
|
+
height: number;
|
|
857
|
+
}[], accessibility?: RasterPdfAccessibility): Uint8Array;
|
|
858
|
+
|
|
859
|
+
type TabularReportRows = readonly (readonly TabularWorkbookCell[])[];
|
|
860
|
+
declare function exportTabularCsv(rows: TabularReportRows): string;
|
|
861
|
+
/** Standalone SVG pages of an explicitly projected table, with repeated column headers. */
|
|
862
|
+
declare function exportTabularSvgPages(rows: TabularReportRows, options: {
|
|
863
|
+
title: string;
|
|
864
|
+
rowsPerPage?: number;
|
|
865
|
+
}): string[];
|
|
866
|
+
|
|
867
|
+
declare const dataGridPackageManifest: {
|
|
868
|
+
readonly packageName: "@quickbuilder.io/data-grid";
|
|
869
|
+
readonly displayName: "Quick Builder Data Grid";
|
|
870
|
+
readonly family: "data-grid";
|
|
871
|
+
readonly tier: "community";
|
|
872
|
+
readonly designSystemDependency: "@quickbuilder.io/design-system";
|
|
873
|
+
readonly status: "implemented";
|
|
874
|
+
};
|
|
875
|
+
declare const packageManifest: {
|
|
876
|
+
readonly packageName: "@quickbuilder.io/data-grid";
|
|
877
|
+
readonly displayName: "Quick Builder Data Grid";
|
|
878
|
+
readonly family: "data-grid";
|
|
879
|
+
readonly tier: "community";
|
|
880
|
+
readonly designSystemDependency: "@quickbuilder.io/design-system";
|
|
881
|
+
readonly status: "implemented";
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
export { type DataGridCapabilityCategory, type DataGridCapabilityFeature, type DataGridCapabilityPackage, type DataGridCapabilityStatus, type DataGridCellParams, type DataGridCellPosition, type DataGridCellRange, type DataGridCellSelectionChange, type DataGridCellSelectionModel, type DataGridClipboardCopyOptions, type DataGridClipboardPasteResult, type DataGridColumnAlign, type DataGridColumnOrder, type DataGridColumnType, type DataGridColumnVisibilityModel, type DataGridColumnWidthModel, type DataGridDataSource, type DataGridDataSourceMode, type DataGridDataSourceRequest, type DataGridDataSourceResponse, type DataGridDataSourceState, type DataGridDensity, type DataGridDetailPanelExpandedRowsChange, type DataGridEditCommitPolicy, type DataGridEditMode, type DataGridEditStartReason, type DataGridEditStopReason, type DataGridExportDataSource, type DataGridExportFormat, type DataGridExportOptions, type DataGridExportRequest, type DataGridExportResult, type DataGridExportScope, type DataGridExportState, type DataGridFilterItem, type DataGridFilterModel, type DataGridFilterOperator, type DataGridFrameworkAdapterContract, type DataGridFrameworkAdapterSupport, type DataGridInitialStateContract, type DataGridLoadingOverlayVariant, type DataGridLocaleText, type DataGridMotionOptions, type DataGridPaginationModel, type DataGridPinnedColumns, type DataGridPinnedRowPosition, type DataGridPinnedRows, type DataGridResolvedRow, type DataGridRow, type DataGridRowEditChange, type DataGridRowEditErrorParams, type DataGridRowEditMode, type DataGridRowEditModelContract, type DataGridRowEditModelEntryContract, type DataGridRowEditStartParams, type DataGridRowEditStopParams, type DataGridRowId, type DataGridRowOrderChange, type DataGridRowParams, type DataGridRowSelectionChange, type DataGridRowUpdate, type DataGridRowUpdateReason, type DataGridRowsUpdateChange, type DataGridScrollAlign, type DataGridServerRequestState, type DataGridSortDirection, type DataGridSortModel, type DataGridStateContract, type DataGridStatePresetContract, type DataGridStatePresetMetadata, type DataGridStateSnapshotContract, type DataGridTransaction, type DataGridTransactionState, type DataGridValueColumnContract, type DataGridVirtualizationState, type RasterPdfAccessibility, type ResolvedDataGridRow, type TabularReportRows, type TabularWorkbookCell, type TabularWorkbookOptions, assembleRasterPdf, compareDataGridValues, dataGridCapabilityFeatureIds, dataGridCapabilityFeatures, dataGridFilteredRowsSelector, dataGridFrameworkAdapterSupport, dataGridPackageManifest, dataGridSelectedRowsSelector, dataGridVisibleColumnsSelector, dataGridVisibleRowsSelector, defaultDataGridLocaleText, exportTabularCsv, exportTabularSvgPages, exportTabularWorkbook, filterDataGridRows, formatDataGridCellValue, frameworkAdapterSupport, getDataGridCellValue, getDataGridColumnLabel, isDataGridFilterActive, normalizeDataGridSortModel, packageManifest, renderDataGridCell, resolveDataGridLocaleText, resolveDataGridRowId, serializeDataGridCsv, sortDataGridRows };
|