-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcustom-elements.json
More file actions
523 lines (523 loc) · 15.6 KB
/
Copy pathcustom-elements.json
File metadata and controls
523 lines (523 loc) · 15.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
{
"schemaVersion": "2.1.0",
"readme": "readme.md",
"modules": [
{
"kind": "javascript-module",
"path": "src/data-grid.js",
"declarations": [
{
"kind": "class",
"name": "DataGrid",
"description": "Server-first, explicitly paginated data grid web component.",
"tagName": "data-grid",
"attributes": [
{
"name": "src"
},
{
"name": "loading"
},
{
"name": "sortable"
},
{
"name": "filterable"
},
{
"name": "filter-delay"
},
{
"name": "searchable"
},
{
"name": "search-placeholder"
},
{
"name": "search-delay"
},
{
"name": "min-search-length"
},
{
"name": "responsive"
},
{
"name": "responsive-toggle"
},
{
"name": "responsive-start-open"
},
{
"name": "row-details-start-open"
},
{
"name": "selectable"
},
{
"name": "single-select"
},
{
"name": "select-visible-only"
},
{
"name": "row-click"
},
{
"name": "row-key"
},
{
"name": "row-label"
},
{
"name": "collapse-actions"
},
{
"name": "save-state"
},
{
"name": "no-data"
},
{
"name": "error-message"
},
{
"name": "page-sizes"
},
{
"name": "row-actions"
},
{
"name": "reorder"
},
{
"name": "menu"
},
{
"name": "wrap"
},
{
"name": "snap-columns"
},
{
"name": "autosize"
},
{
"name": "resizable"
},
{
"name": "autoheight"
},
{
"name": "autohide-pager"
},
{
"name": "show-page-size"
},
{
"name": "debug"
},
{
"name": "dir"
},
{
"name": "density"
},
{
"name": "page"
},
{
"name": "page-size"
}
],
"members": [
{
"kind": "getter",
"name": "labels"
},
{
"kind": "method",
"name": "getLabels",
"static": true
},
{
"kind": "method",
"name": "setLabels",
"static": true
},
{
"kind": "method",
"name": "loadLabels",
"static": true
},
{
"kind": "getter",
"name": "noData",
"description": "Gets the text to be displayed when no data is loaded."
},
{
"kind": "method",
"name": "updateLabels"
},
{
"kind": "getter",
"name": "query",
"description": "Snapshot of the current query state."
},
{
"kind": "getter",
"name": "page",
"description": "Convenience read-only accessor for the current page."
},
{
"kind": "method",
"name": "registerPlugins",
"static": true,
"description": "Register plugin constructors, keyed by name. New registrations extend the current registry and replace constructors that use the same name. The core instantiates them on each DataGrid construction. Names are not limited to built-in plugins."
},
{
"kind": "method",
"name": "unregisterPlugins",
"static": true
},
{
"kind": "method",
"name": "registeredPlugins",
"static": true
},
{
"kind": "method",
"name": "getColumns",
"description": "The normalized column list of the current render cycle, for inspection. Read-only: mutating the returned objects is not a supported way to configure the grid (a rerender rebuilds columns from the options)."
},
{
"kind": "method",
"name": "getPlugin",
"description": "Return an instantiated plugin by its registration name."
},
{
"kind": "method",
"name": "setQuery",
"description": "Merge a patch into the query state and reload. Changing search, filters, sort or pageSize resets the page to 1 unless an explicit page is provided in the patch. Changing search or filters (population changes) also clears the selection, since a `mode: \"all\"` selection only means something for the population it was created on."
},
{
"kind": "method",
"name": "restoreQuery",
"description": "Restore the runtime query before the first load without triggering a refresh. This is intended for stateful plugins connected during setup."
},
{
"kind": "method",
"name": "resetQuery",
"description": "Reset the query to its initial state and reload."
},
{
"kind": "method",
"name": "refresh",
"description": "Reload the result matching the current query."
},
{
"kind": "method",
"name": "load",
"description": "Single load path: abort previous request, load the current query, protect against stale responses, then render."
},
{
"kind": "method",
"name": "ownsControl",
"description": "A control is owned by this grid when it lives inside this host (not a nested grid), so bubbled events from an inner grid never affect the outer one."
},
{
"kind": "method",
"name": "syncColumnVisibility",
"description": "Reconcile the rendered cells (header, filters and body) with the current column visibility without rebuilding the DOM. Used whenever only the visibility changed: showColumn/hideColumn and ResponsiveGrid adaptations. The column list is rebuilt so plugin columns (ex: the responsive toggle) reflect their fresh hidden state."
},
{
"kind": "method",
"name": "syncFrozenColumns",
"description": "Measure visible frozen columns and assign their logical sticky offsets."
},
{
"kind": "method",
"name": "showColumn"
},
{
"kind": "method",
"name": "hideColumn"
},
{
"kind": "method",
"name": "getRowLabel",
"description": "Human-readable label of a row, used for accessible control names. Resolved from `options.rowLabel` (field or function), falling back to the row key, then the row index."
},
{
"kind": "method",
"name": "isRowSelected",
"description": "Whether a row is part of the current selection."
},
{
"kind": "method",
"name": "updateRow",
"description": "Mutate a row of the current page in place and re-render the body. Works with any data source: it never reloads, so a server grid reflects a business mutation without a second request. With an ArrayDataSource the paginated rows are references to the source objects, so the source is updated too."
},
{
"kind": "method",
"name": "removeRow",
"description": "Remove a row from the local dataset. Only applies when the data source owns a mutable local collection (ArrayDataSource): the row is removed from the source and the query is re-applied. With a remote data source this returns false — refresh after a server-side deletion instead."
},
{
"kind": "method",
"name": "getSelectionState",
"description": "Snapshot of the current selection state."
},
{
"kind": "method",
"name": "selectRow",
"description": "Select a row (single select keeps at most one key)."
},
{
"kind": "method",
"name": "deselectRow",
"description": "Deselect a row."
},
{
"kind": "method",
"name": "toggleRow",
"description": "Toggle the selection state of a row."
},
{
"kind": "method",
"name": "selectAll",
"description": "Select all visible rows (or everything when selectVisibleOnly is false)."
},
{
"kind": "method",
"name": "clearSelection",
"description": "Reset the selection and refresh the UI."
},
{
"kind": "method",
"name": "getSelection",
"description": "Get selected rows or specific fields from selected rows. Only reflects the currently loaded page. For cross-page/server-side selection, use getSelectionState(). If no keys are provided, returns the full row objects. If one key is provided, returns an array of values for that key. If multiple keys are provided, returns an array of objects with those keys and values. In single select mode, returns a single object or value."
},
{
"kind": "method",
"name": "getFirst"
},
{
"kind": "method",
"name": "getLast"
},
{
"kind": "method",
"name": "getPrev"
},
{
"kind": "method",
"name": "getNext"
},
{
"kind": "method",
"name": "sortAsc"
},
{
"kind": "method",
"name": "sortDesc"
},
{
"kind": "method",
"name": "sortNone"
},
{
"kind": "method",
"name": "clearFilters"
},
{
"kind": "method",
"name": "setSearch",
"description": "Set the global search and reload. The server decides which fields the search covers; `ArrayDataSource` applies a generic scalar match."
},
{
"kind": "method",
"name": "clearSearch",
"description": "Clear the global search and reload."
},
{
"kind": "method",
"name": "getFilterOptions",
"description": "Resolve the options of a select filter, directly consumable by the <select>. Never derives from the currently loaded page: for a server grid the options must come from meta.filters or an explicit list."
},
{
"kind": "method",
"name": "totalPages"
}
],
"events": [
{
"name": "action"
},
{
"name": "bodyRendered"
},
{
"name": "bulkAction"
},
{
"name": "columnReordered"
},
{
"name": "columnResized"
},
{
"name": "columnVisibility"
},
{
"name": "edit"
},
{
"name": "headerRendered"
},
{
"name": "loadError"
},
{
"name": "rowClick"
},
{
"name": "rowDetailsToggle"
},
{
"name": "rowRendered"
},
{
"name": "selectionChange"
}
],
"cssProperties": [
{
"name": "--dg-space-1"
},
{
"name": "--dg-space-2"
},
{
"name": "--dg-space-3"
},
{
"name": "--dg-space-4"
},
{
"name": "--dg-bg"
},
{
"name": "--dg-color"
},
{
"name": "--dg-muted-color"
},
{
"name": "--dg-border-color"
},
{
"name": "--dg-accent"
},
{
"name": "--dg-accent-soft"
},
{
"name": "--dg-focus-ring"
},
{
"name": "--dg-header-bg"
},
{
"name": "--dg-header-color"
},
{
"name": "--dg-filter-bg"
},
{
"name": "--dg-row-stripe-bg"
},
{
"name": "--dg-row-hover-bg"
},
{
"name": "--dg-row-selected-bg"
},
{
"name": "--dg-row-selected-hover-bg"
},
{
"name": "--dg-row-border-color"
},
{
"name": "--dg-control-bg"
},
{
"name": "--dg-control-color"
},
{
"name": "--dg-control-border-color"
},
{
"name": "--dg-danger-bg"
},
{
"name": "--dg-danger-color"
},
{
"name": "--dg-danger-border-color"
},
{
"name": "--dg-cell-padding-inline"
},
{
"name": "--dg-cell-padding-block"
},
{
"name": "--dg-padding-x"
},
{
"name": "--dg-padding-y"
},
{
"name": "--dg-header-padding-y"
},
{
"name": "--dg-control-padding-inline"
},
{
"name": "--dg-control-height"
},
{
"name": "--dg-selection-column-width"
},
{
"name": "--dg-actions-column-width"
},
{
"name": "--dg-radius"
}
]
}
],
"exports": [
{
"kind": "js",
"name": "DataGrid",
"declaration": {
"name": "DataGrid",
"module": "src/data-grid.js"
}
},
{
"kind": "js",
"name": "default",
"declaration": {
"name": "DataGrid",
"module": "src/data-grid.js"
}
}
]
}
]
}