@nocopypaste/vue-grid 0.3.1 → 0.4.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/AGENTS.md +249 -84
- package/CHANGELOG.md +26 -0
- package/README.md +417 -228
- package/agent/api.json +101 -91
- package/agent/api.md +86 -85
- package/agent/grid-config.schema.json +22 -5
- package/dist/agent/api.js +99 -91
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/requirements.js +3 -1
- package/dist/agent/requirements.js.map +1 -1
- package/dist/agent/validate.js.map +1 -1
- package/dist/base.css +1 -1
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js +196 -183
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridColumnMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridFilterInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridFilterPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/VGridFilterPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridFilterPopover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridGroupCells.vue_vue_type_script_setup_true_lang.js +9 -4
- package/dist/components/VGridGroupCells.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridGroupRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridHeader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridPagination.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/VGridPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridPinnedRows.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridRows.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/VGridRows.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridSearch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridSelectionBanner.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/VGridSelectionBanner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridTotalCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composables/useColumnDrag.js.map +1 -1
- package/dist/composables/useColumnResize.js.map +1 -1
- package/dist/composables/useDataSource.js.map +1 -1
- package/dist/composables/useGridExport.js.map +1 -1
- package/dist/composables/useGridFilters.js.map +1 -1
- package/dist/composables/useGridKeyboard.js +46 -36
- package/dist/composables/useGridKeyboard.js.map +1 -1
- package/dist/composables/useGridMenus.js.map +1 -1
- package/dist/composables/useGridSelection.js.map +1 -1
- package/dist/composables/usePinFit.js +41 -0
- package/dist/composables/usePinFit.js.map +1 -0
- package/dist/composables/usePinnedRows.js.map +1 -1
- package/dist/composables/useRowGrouping.js.map +1 -1
- package/dist/composables/useTotals.js.map +1 -1
- package/dist/composables/useVirtualRows.js.map +1 -1
- package/dist/core/aggregate.js.map +1 -1
- package/dist/core/columns.js.map +1 -1
- package/dist/core/csv.js.map +1 -1
- package/dist/core/filter.js.map +1 -1
- package/dist/core/grouping.js.map +1 -1
- package/dist/core/pagination.js.map +1 -1
- package/dist/core/patch.js.map +1 -1
- package/dist/core/selection.js.map +1 -1
- package/dist/core/sort.js.map +1 -1
- package/dist/core/storage.js.map +1 -1
- package/dist/core/value.js.map +1 -1
- package/dist/core.css +1 -1
- package/dist/features/aggregation.js.map +1 -1
- package/dist/features/columnGroups.js.map +1 -1
- package/dist/features/columnPinning.js +8 -6
- package/dist/features/columnPinning.js.map +1 -1
- package/dist/features/columnVisibility.js.map +1 -1
- package/dist/features/filtering.js.map +1 -1
- package/dist/features/keyboardNavigation.js.map +1 -1
- package/dist/features/menus.js.map +1 -1
- package/dist/features/rowGrouping.js.map +1 -1
- package/dist/features/rowPinning.js.map +1 -1
- package/dist/features/selection.js.map +1 -1
- package/dist/features/virtualScrolling.js.map +1 -1
- package/dist/internal/RenderSlot.js.map +1 -1
- package/dist/internal/anchor.js.map +1 -1
- package/dist/internal/context.js.map +1 -1
- package/dist/internal/supports.js.map +1 -1
- package/dist/internal/touchHold.js.map +1 -1
- package/dist/registry/plugin.js.map +1 -1
- package/dist/registry/registry.js.map +1 -1
- package/dist/renderers/ActionButtonCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/ActionsMenuCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/BooleanCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/ButtonGroupCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/ChangeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/ChipCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/CodeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/CopyCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/DateCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/DateTimeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/DetailsCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/EditCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/IconCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/IconToggleCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/JsonCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/LinkCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/MultiLineCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/NumberCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/StatusCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/TextCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/ToggleTextCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/format.js.map +1 -1
- package/dist/renderers/index.js.map +1 -1
- package/dist/renderers/options.js.map +1 -1
- package/dist/renderers/parts/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/parts/NumberValue.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/parts/ValueBadge.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/parts/icons.js.map +1 -1
- package/dist/renderers/parts/useToggleControl.js.map +1 -1
- package/dist/renderers/plainText.js.map +1 -1
- package/dist/renderers/text.js.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/types/agent/index.d.ts +2 -2
- package/dist/types/components/VGrid.vue.d.ts +6 -0
- package/dist/types/composables/usePinFit.d.ts +17 -0
- package/dist/types/features/columnPinning.d.ts +3 -1
- package/dist/types/renderers/NumberCell.vue.d.ts +2 -4
- package/dist/types/renderers/index.d.ts +3 -5
- package/dist/types/renderers/options.d.ts +45 -0
- package/dist/types/renderers/plainText.d.ts +2 -4
- package/dist/types/types.d.ts +36 -0
- package/dist/vue-grid.css +1 -1
- package/llms-full.txt +752 -397
- package/package.json +1 -1
package/agent/api.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@nocopypaste/vue-grid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"component": "VGrid",
|
|
5
5
|
"props": [
|
|
6
6
|
{
|
|
@@ -178,6 +178,14 @@
|
|
|
178
178
|
"required": false,
|
|
179
179
|
"description": "Persist column state (order, hidden, pins, widths): a localStorage key or your own storage."
|
|
180
180
|
},
|
|
181
|
+
{
|
|
182
|
+
"name": "pinnedMaxShare",
|
|
183
|
+
"type": "number | false",
|
|
184
|
+
"required": false,
|
|
185
|
+
"default": "0.5",
|
|
186
|
+
"description": "Pinned columns scroll like the others while together they'd take more than this share of the grid's width (a phone, a narrow panel); pinned again once there's room. `false`: always pinned. Column pinning feature.",
|
|
187
|
+
"feature": "columnPinning"
|
|
188
|
+
},
|
|
181
189
|
{
|
|
182
190
|
"name": "renderers",
|
|
183
191
|
"type": "CellRendererDefinition[]",
|
|
@@ -827,8 +835,10 @@
|
|
|
827
835
|
{
|
|
828
836
|
"id": "columnPinning",
|
|
829
837
|
"export": "columnPinningFeature",
|
|
830
|
-
"description": "Pinned columns: `pinned: 'left' | 'right'` columns stay put (sticky) while the grid scrolls sideways, with edge shadows; runtime pins from the header menu (Pin left / Pin right / Unpin) are kept in `v-model:column-state` and persisted with `storage`. Without it, pins are ignored.",
|
|
831
|
-
"props": [
|
|
838
|
+
"description": "Pinned columns: `pinned: 'left' | 'right'` columns stay put (sticky) while the grid scrolls sideways, with edge shadows; runtime pins from the header menu (Pin left / Pin right / Unpin) are kept in `v-model:column-state` and persisted with `storage`. While the pinned columns would take more than `pinned-max-share` of the grid's width (half, by default), they scroll like the others. Without it, pins are ignored.",
|
|
839
|
+
"props": [
|
|
840
|
+
"pinnedMaxShare"
|
|
841
|
+
],
|
|
832
842
|
"columnOptions": [
|
|
833
843
|
"pinned",
|
|
834
844
|
"pinnable"
|
|
@@ -1024,7 +1034,7 @@
|
|
|
1024
1034
|
"name": "maxWidth",
|
|
1025
1035
|
"type": "string",
|
|
1026
1036
|
"required": false,
|
|
1027
|
-
"description": ""
|
|
1037
|
+
"description": "CSS max width of the text, e.g. `'16rem'`: longer text wraps or, with `ellipsis`, is cut."
|
|
1028
1038
|
},
|
|
1029
1039
|
{
|
|
1030
1040
|
"name": "preserveNewlines",
|
|
@@ -1048,7 +1058,7 @@
|
|
|
1048
1058
|
"name": "tone",
|
|
1049
1059
|
"type": "RowOption<Tone | undefined>",
|
|
1050
1060
|
"required": false,
|
|
1051
|
-
"description": ""
|
|
1061
|
+
"description": "Colour of the text (`success`, `danger`, `warning`, `info`, `neutral`, `accent`), or `(value, row) => tone`."
|
|
1052
1062
|
},
|
|
1053
1063
|
{
|
|
1054
1064
|
"name": "toneMode",
|
|
@@ -1060,7 +1070,7 @@
|
|
|
1060
1070
|
"name": "bold",
|
|
1061
1071
|
"type": "RowOption<boolean>",
|
|
1062
1072
|
"required": false,
|
|
1063
|
-
"description": ""
|
|
1073
|
+
"description": "Bold text, for every row or `(value, row) => boolean`."
|
|
1064
1074
|
},
|
|
1065
1075
|
{
|
|
1066
1076
|
"name": "secondary",
|
|
@@ -1078,7 +1088,7 @@
|
|
|
1078
1088
|
"name": "badgePosition",
|
|
1079
1089
|
"type": "'start' | 'end'",
|
|
1080
1090
|
"required": false,
|
|
1081
|
-
"description": ""
|
|
1091
|
+
"description": "Where `badge` goes: `start` (default, before the value) or `end`."
|
|
1082
1092
|
},
|
|
1083
1093
|
{
|
|
1084
1094
|
"name": "icon",
|
|
@@ -1117,7 +1127,7 @@
|
|
|
1117
1127
|
"name": "highlighted",
|
|
1118
1128
|
"type": "boolean | RowFn<boolean>",
|
|
1119
1129
|
"required": false,
|
|
1120
|
-
"description": ""
|
|
1130
|
+
"description": "Shown as switched on (highlighted, `aria-pressed`), e.g. `(v, row) => row.starred`."
|
|
1121
1131
|
},
|
|
1122
1132
|
{
|
|
1123
1133
|
"name": "placeholder",
|
|
@@ -1162,6 +1172,12 @@
|
|
|
1162
1172
|
"filterType": "number",
|
|
1163
1173
|
"defaults": "{ signed: true }",
|
|
1164
1174
|
"options": [
|
|
1175
|
+
{
|
|
1176
|
+
"name": "signed",
|
|
1177
|
+
"type": "boolean",
|
|
1178
|
+
"required": false,
|
|
1179
|
+
"description": "Always show the sign (`+3`, `−2`). Default `true` for `signed-number`; `false` formats like `number`."
|
|
1180
|
+
},
|
|
1165
1181
|
{
|
|
1166
1182
|
"name": "format",
|
|
1167
1183
|
"type": "Intl.NumberFormatOptions",
|
|
@@ -1179,12 +1195,6 @@
|
|
|
1179
1195
|
"type": "RowOption<boolean>",
|
|
1180
1196
|
"required": false,
|
|
1181
1197
|
"description": "Renders the number as a link-style button that emits `click` (drill-down)."
|
|
1182
|
-
},
|
|
1183
|
-
{
|
|
1184
|
-
"name": "signed",
|
|
1185
|
-
"type": "boolean",
|
|
1186
|
-
"required": false,
|
|
1187
|
-
"description": ""
|
|
1188
1198
|
}
|
|
1189
1199
|
]
|
|
1190
1200
|
},
|
|
@@ -1298,7 +1308,7 @@
|
|
|
1298
1308
|
"name": "milliseconds",
|
|
1299
1309
|
"type": "boolean",
|
|
1300
1310
|
"required": false,
|
|
1301
|
-
"description": ""
|
|
1311
|
+
"description": "Show milliseconds in the time (`12:30:05.123`)."
|
|
1302
1312
|
},
|
|
1303
1313
|
{
|
|
1304
1314
|
"name": "twoLines",
|
|
@@ -1331,19 +1341,19 @@
|
|
|
1331
1341
|
"name": "trueLabel",
|
|
1332
1342
|
"type": "string",
|
|
1333
1343
|
"required": false,
|
|
1334
|
-
"description": ""
|
|
1344
|
+
"description": "Text for `true` (and its accessible name in icon mode). Default “Yes”."
|
|
1335
1345
|
},
|
|
1336
1346
|
{
|
|
1337
1347
|
"name": "falseLabel",
|
|
1338
1348
|
"type": "string",
|
|
1339
1349
|
"required": false,
|
|
1340
|
-
"description": ""
|
|
1350
|
+
"description": "Text for `false`. Default “No”."
|
|
1341
1351
|
},
|
|
1342
1352
|
{
|
|
1343
1353
|
"name": "nullLabel",
|
|
1344
1354
|
"type": "string",
|
|
1345
1355
|
"required": false,
|
|
1346
|
-
"description": ""
|
|
1356
|
+
"description": "Text for `null` / `undefined`. Default: nothing."
|
|
1347
1357
|
},
|
|
1348
1358
|
{
|
|
1349
1359
|
"name": "display",
|
|
@@ -1370,7 +1380,7 @@
|
|
|
1370
1380
|
"name": "tone",
|
|
1371
1381
|
"type": "ToneOption",
|
|
1372
1382
|
"required": false,
|
|
1373
|
-
"description": ""
|
|
1383
|
+
"description": "Badge colour: one tone, a value → tone map (`{ Paid: 'success', Open: 'info' }`), or `(value, row) => tone`. Default `neutral`."
|
|
1374
1384
|
},
|
|
1375
1385
|
{
|
|
1376
1386
|
"name": "label",
|
|
@@ -1382,7 +1392,7 @@
|
|
|
1382
1392
|
"name": "dot",
|
|
1383
1393
|
"type": "boolean",
|
|
1384
1394
|
"required": false,
|
|
1385
|
-
"description": ""
|
|
1395
|
+
"description": "A coloured dot before the label. Default `true`; `false` hides it."
|
|
1386
1396
|
},
|
|
1387
1397
|
{
|
|
1388
1398
|
"name": "variant",
|
|
@@ -1415,7 +1425,7 @@
|
|
|
1415
1425
|
"name": "href",
|
|
1416
1426
|
"type": "RowFn<string | undefined>",
|
|
1417
1427
|
"required": false,
|
|
1418
|
-
"description": ""
|
|
1428
|
+
"description": "The URL, from the value and row (default: the value). Only http(s), mailto and tel are linked; wins over `to`."
|
|
1419
1429
|
},
|
|
1420
1430
|
{
|
|
1421
1431
|
"name": "to",
|
|
@@ -1427,19 +1437,19 @@
|
|
|
1427
1437
|
"name": "label",
|
|
1428
1438
|
"type": "RowFn<string>",
|
|
1429
1439
|
"required": false,
|
|
1430
|
-
"description": ""
|
|
1440
|
+
"description": "Link text (default: the value)."
|
|
1431
1441
|
},
|
|
1432
1442
|
{
|
|
1433
1443
|
"name": "target",
|
|
1434
1444
|
"type": "'_self' | '_blank'",
|
|
1435
1445
|
"required": false,
|
|
1436
|
-
"description": ""
|
|
1446
|
+
"description": "`_blank` opens a new tab (with `rel=\"noopener noreferrer\"`)."
|
|
1437
1447
|
},
|
|
1438
1448
|
{
|
|
1439
1449
|
"name": "tooltip",
|
|
1440
1450
|
"type": "RowFn<string | undefined>",
|
|
1441
1451
|
"required": false,
|
|
1442
|
-
"description": ""
|
|
1452
|
+
"description": "Hover text of the link."
|
|
1443
1453
|
}
|
|
1444
1454
|
]
|
|
1445
1455
|
},
|
|
@@ -1466,19 +1476,19 @@
|
|
|
1466
1476
|
"name": "show",
|
|
1467
1477
|
"type": "RowFn<boolean>",
|
|
1468
1478
|
"required": false,
|
|
1469
|
-
"description": ""
|
|
1479
|
+
"description": "Show the icon for this row (default: always). A hidden icon keeps its space, so columns stay aligned."
|
|
1470
1480
|
},
|
|
1471
1481
|
{
|
|
1472
1482
|
"name": "label",
|
|
1473
1483
|
"type": "string | RowFn<string>",
|
|
1474
1484
|
"required": false,
|
|
1475
|
-
"description": ""
|
|
1485
|
+
"description": "Accessible name and tooltip. Without one the icon is decorative."
|
|
1476
1486
|
},
|
|
1477
1487
|
{
|
|
1478
1488
|
"name": "tone",
|
|
1479
1489
|
"type": "Tone | RowFn<Tone | undefined>",
|
|
1480
1490
|
"required": false,
|
|
1481
|
-
"description": ""
|
|
1491
|
+
"description": "Icon colour, or `(value, row) => tone`."
|
|
1482
1492
|
}
|
|
1483
1493
|
]
|
|
1484
1494
|
},
|
|
@@ -1493,13 +1503,13 @@
|
|
|
1493
1503
|
"name": "label",
|
|
1494
1504
|
"type": "string",
|
|
1495
1505
|
"required": false,
|
|
1496
|
-
"description": ""
|
|
1506
|
+
"description": "Text of the button that opens the JSON in a dialog. Default “View”."
|
|
1497
1507
|
},
|
|
1498
1508
|
{
|
|
1499
1509
|
"name": "dialogTitle",
|
|
1500
1510
|
"type": "string | RowFn<string>",
|
|
1501
1511
|
"required": false,
|
|
1502
|
-
"description": ""
|
|
1512
|
+
"description": "Heading of the dialog (default: the column header)."
|
|
1503
1513
|
}
|
|
1504
1514
|
]
|
|
1505
1515
|
},
|
|
@@ -1538,7 +1548,7 @@
|
|
|
1538
1548
|
"name": "toggleLabel",
|
|
1539
1549
|
"type": "string",
|
|
1540
1550
|
"required": false,
|
|
1541
|
-
"description": ""
|
|
1551
|
+
"description": "Text of the `collapsed` toggle. Default “More info”."
|
|
1542
1552
|
},
|
|
1543
1553
|
{
|
|
1544
1554
|
"name": "emptyText",
|
|
@@ -1565,7 +1575,7 @@
|
|
|
1565
1575
|
"name": "label",
|
|
1566
1576
|
"type": "string",
|
|
1567
1577
|
"required": false,
|
|
1568
|
-
"description": ""
|
|
1578
|
+
"description": "Accessible name of the `⋯` button and the menu. Default “Actions”."
|
|
1569
1579
|
}
|
|
1570
1580
|
]
|
|
1571
1581
|
},
|
|
@@ -1580,7 +1590,7 @@
|
|
|
1580
1590
|
"name": "label",
|
|
1581
1591
|
"type": "string | RowFn<string>",
|
|
1582
1592
|
"required": false,
|
|
1583
|
-
"description": ""
|
|
1593
|
+
"description": "Button text (default: the value), or `(value, row) => text`."
|
|
1584
1594
|
},
|
|
1585
1595
|
{
|
|
1586
1596
|
"name": "action",
|
|
@@ -1592,19 +1602,19 @@
|
|
|
1592
1602
|
"name": "icon",
|
|
1593
1603
|
"type": "Component",
|
|
1594
1604
|
"required": false,
|
|
1595
|
-
"description": ""
|
|
1605
|
+
"description": "An icon component before the label."
|
|
1596
1606
|
},
|
|
1597
1607
|
{
|
|
1598
1608
|
"name": "tone",
|
|
1599
1609
|
"type": "Tone",
|
|
1600
1610
|
"required": false,
|
|
1601
|
-
"description": ""
|
|
1611
|
+
"description": "Button colour, e.g. `danger` for a delete button."
|
|
1602
1612
|
},
|
|
1603
1613
|
{
|
|
1604
1614
|
"name": "disabled",
|
|
1605
1615
|
"type": "RowFn<boolean>",
|
|
1606
1616
|
"required": false,
|
|
1607
|
-
"description": ""
|
|
1617
|
+
"description": "Disable the button for some rows: `(value, row) => boolean`."
|
|
1608
1618
|
},
|
|
1609
1619
|
{
|
|
1610
1620
|
"name": "visible",
|
|
@@ -1616,7 +1626,7 @@
|
|
|
1616
1626
|
"name": "variant",
|
|
1617
1627
|
"type": "ButtonVariant",
|
|
1618
1628
|
"required": false,
|
|
1619
|
-
"description": ""
|
|
1629
|
+
"description": "`outline` (default), `solid` or `ghost`."
|
|
1620
1630
|
},
|
|
1621
1631
|
{
|
|
1622
1632
|
"name": "iconOnly",
|
|
@@ -1655,7 +1665,7 @@
|
|
|
1655
1665
|
"name": "target",
|
|
1656
1666
|
"type": "'_self' | '_blank'",
|
|
1657
1667
|
"required": false,
|
|
1658
|
-
"description": ""
|
|
1668
|
+
"description": "`_blank` opens linked lines in a new tab."
|
|
1659
1669
|
},
|
|
1660
1670
|
{
|
|
1661
1671
|
"name": "placeholder",
|
|
@@ -1727,19 +1737,19 @@
|
|
|
1727
1737
|
"name": "label",
|
|
1728
1738
|
"type": "RowFn<string>",
|
|
1729
1739
|
"required": false,
|
|
1730
|
-
"description": ""
|
|
1740
|
+
"description": "Chip text (default: the value, or its `label` / `name` / `text` field). A tone map is keyed by this label."
|
|
1731
1741
|
},
|
|
1732
1742
|
{
|
|
1733
1743
|
"name": "tooltip",
|
|
1734
1744
|
"type": "RowFn<string | null | undefined>",
|
|
1735
1745
|
"required": false,
|
|
1736
|
-
"description": ""
|
|
1746
|
+
"description": "Hover text (default: the value's `description` field, if any)."
|
|
1737
1747
|
},
|
|
1738
1748
|
{
|
|
1739
1749
|
"name": "shape",
|
|
1740
1750
|
"type": "'square' | 'circle' | 'pill'",
|
|
1741
1751
|
"required": false,
|
|
1742
|
-
"description": ""
|
|
1752
|
+
"description": "`square` (default), `circle` or `pill`."
|
|
1743
1753
|
},
|
|
1744
1754
|
{
|
|
1745
1755
|
"name": "size",
|
|
@@ -1772,7 +1782,7 @@
|
|
|
1772
1782
|
"name": "disabled",
|
|
1773
1783
|
"type": "RowOption<boolean>",
|
|
1774
1784
|
"required": false,
|
|
1775
|
-
"description": ""
|
|
1785
|
+
"description": "Disabled for every row, or `(value, row) => boolean`."
|
|
1776
1786
|
},
|
|
1777
1787
|
{
|
|
1778
1788
|
"name": "disabledReason",
|
|
@@ -1805,7 +1815,7 @@
|
|
|
1805
1815
|
"name": "disabled",
|
|
1806
1816
|
"type": "RowOption<boolean>",
|
|
1807
1817
|
"required": false,
|
|
1808
|
-
"description": ""
|
|
1818
|
+
"description": "Disabled for every row, or `(value, row) => boolean`."
|
|
1809
1819
|
},
|
|
1810
1820
|
{
|
|
1811
1821
|
"name": "disabledReason",
|
|
@@ -1844,7 +1854,7 @@
|
|
|
1844
1854
|
"name": "disabled",
|
|
1845
1855
|
"type": "RowOption<boolean>",
|
|
1846
1856
|
"required": false,
|
|
1847
|
-
"description": ""
|
|
1857
|
+
"description": "Disabled for every row, or `(value, row) => boolean`."
|
|
1848
1858
|
},
|
|
1849
1859
|
{
|
|
1850
1860
|
"name": "disabledReason",
|
|
@@ -1889,13 +1899,13 @@
|
|
|
1889
1899
|
"name": "disabled",
|
|
1890
1900
|
"type": "RowOption<boolean>",
|
|
1891
1901
|
"required": false,
|
|
1892
|
-
"description": ""
|
|
1902
|
+
"description": "Disables the edit button, for every row or `(value, row) => boolean`."
|
|
1893
1903
|
},
|
|
1894
1904
|
{
|
|
1895
1905
|
"name": "bold",
|
|
1896
1906
|
"type": "boolean",
|
|
1897
1907
|
"required": false,
|
|
1898
|
-
"description": ""
|
|
1908
|
+
"description": "Bold text."
|
|
1899
1909
|
}
|
|
1900
1910
|
]
|
|
1901
1911
|
},
|
|
@@ -1922,7 +1932,7 @@
|
|
|
1922
1932
|
"name": "alt",
|
|
1923
1933
|
"type": "RowOption<string>",
|
|
1924
1934
|
"required": false,
|
|
1925
|
-
"description": ""
|
|
1935
|
+
"description": "Alternative text (default: none, a decorative image), or `(value, row) => text`."
|
|
1926
1936
|
},
|
|
1927
1937
|
{
|
|
1928
1938
|
"name": "size",
|
|
@@ -1934,13 +1944,13 @@
|
|
|
1934
1944
|
"name": "fit",
|
|
1935
1945
|
"type": "'contain' | 'cover'",
|
|
1936
1946
|
"required": false,
|
|
1937
|
-
"description": ""
|
|
1947
|
+
"description": "`contain` (default) shows the whole image; `cover` fills the box and crops."
|
|
1938
1948
|
},
|
|
1939
1949
|
{
|
|
1940
1950
|
"name": "shape",
|
|
1941
1951
|
"type": "'rounded' | 'circle' | 'square'",
|
|
1942
1952
|
"required": false,
|
|
1943
|
-
"description": ""
|
|
1953
|
+
"description": "`rounded` (default), `circle` (avatars) or `square`."
|
|
1944
1954
|
}
|
|
1945
1955
|
]
|
|
1946
1956
|
},
|
|
@@ -1988,7 +1998,7 @@
|
|
|
1988
1998
|
"name": "buttons",
|
|
1989
1999
|
"type": "ButtonSpec[] | ((row: any) => ButtonSpec[])",
|
|
1990
2000
|
"required": false,
|
|
1991
|
-
"description": ""
|
|
2001
|
+
"description": "The buttons (`{ name, label, tone?, variant?, disabled?, icon?, hidden? }`), or a function of the row. A click emits the button's `name`."
|
|
1992
2002
|
}
|
|
1993
2003
|
]
|
|
1994
2004
|
},
|
|
@@ -2033,7 +2043,7 @@
|
|
|
2033
2043
|
"name": "disabled",
|
|
2034
2044
|
"type": "RowOption<boolean>",
|
|
2035
2045
|
"required": false,
|
|
2036
|
-
"description": ""
|
|
2046
|
+
"description": "Disabled for every row, or `(value, row) => boolean`."
|
|
2037
2047
|
}
|
|
2038
2048
|
]
|
|
2039
2049
|
},
|
|
@@ -2054,7 +2064,7 @@
|
|
|
2054
2064
|
"name": "label",
|
|
2055
2065
|
"type": "RowFn<string>",
|
|
2056
2066
|
"required": false,
|
|
2057
|
-
"description": ""
|
|
2067
|
+
"description": "Badge text (default: the value)."
|
|
2058
2068
|
},
|
|
2059
2069
|
{
|
|
2060
2070
|
"name": "items",
|
|
@@ -2093,7 +2103,7 @@
|
|
|
2093
2103
|
"name": "itemLabel",
|
|
2094
2104
|
"type": "RowFn<string>",
|
|
2095
2105
|
"required": false,
|
|
2096
|
-
"description": ""
|
|
2106
|
+
"description": "Text of one item, `(item, row) => string` (default: the item, objects as JSON)."
|
|
2097
2107
|
},
|
|
2098
2108
|
{
|
|
2099
2109
|
"name": "max",
|
|
@@ -2136,13 +2146,13 @@
|
|
|
2136
2146
|
"name": "top",
|
|
2137
2147
|
"type": "RowKey[]",
|
|
2138
2148
|
"required": false,
|
|
2139
|
-
"description": ""
|
|
2149
|
+
"description": "Keys of the rows pinned above the body, in display order."
|
|
2140
2150
|
},
|
|
2141
2151
|
{
|
|
2142
2152
|
"name": "bottom",
|
|
2143
2153
|
"type": "RowKey[]",
|
|
2144
2154
|
"required": false,
|
|
2145
|
-
"description": ""
|
|
2155
|
+
"description": "Keys of the rows pinned below the body, in display order."
|
|
2146
2156
|
}
|
|
2147
2157
|
],
|
|
2148
2158
|
"ColumnState": [
|
|
@@ -2176,13 +2186,13 @@
|
|
|
2176
2186
|
"name": "key",
|
|
2177
2187
|
"type": "string",
|
|
2178
2188
|
"required": true,
|
|
2179
|
-
"description": ""
|
|
2189
|
+
"description": "The sorted column’s `key`."
|
|
2180
2190
|
},
|
|
2181
2191
|
{
|
|
2182
2192
|
"name": "dir",
|
|
2183
2193
|
"type": "SortDir",
|
|
2184
2194
|
"required": true,
|
|
2185
|
-
"description": ""
|
|
2195
|
+
"description": "`asc` or `desc`."
|
|
2186
2196
|
}
|
|
2187
2197
|
],
|
|
2188
2198
|
"ColumnFilterOptions": [
|
|
@@ -2190,7 +2200,7 @@
|
|
|
2190
2200
|
"name": "type",
|
|
2191
2201
|
"type": "FilterType",
|
|
2192
2202
|
"required": false,
|
|
2193
|
-
"description": ""
|
|
2203
|
+
"description": "`text`, `number`, `date`, `boolean` or `set` (default: from the renderer)."
|
|
2194
2204
|
},
|
|
2195
2205
|
{
|
|
2196
2206
|
"name": "options",
|
|
@@ -2210,13 +2220,13 @@
|
|
|
2210
2220
|
"name": "value",
|
|
2211
2221
|
"type": "unknown",
|
|
2212
2222
|
"required": true,
|
|
2213
|
-
"description": ""
|
|
2223
|
+
"description": "The value rows are matched against."
|
|
2214
2224
|
},
|
|
2215
2225
|
{
|
|
2216
2226
|
"name": "label",
|
|
2217
2227
|
"type": "string",
|
|
2218
2228
|
"required": false,
|
|
2219
|
-
"description": ""
|
|
2229
|
+
"description": "Text shown for the option (default: the value)."
|
|
2220
2230
|
},
|
|
2221
2231
|
{
|
|
2222
2232
|
"name": "count",
|
|
@@ -2236,25 +2246,25 @@
|
|
|
2236
2246
|
"name": "label",
|
|
2237
2247
|
"type": "string",
|
|
2238
2248
|
"required": true,
|
|
2239
|
-
"description": ""
|
|
2249
|
+
"description": "Text of the item."
|
|
2240
2250
|
},
|
|
2241
2251
|
{
|
|
2242
2252
|
"name": "disabled",
|
|
2243
2253
|
"type": "boolean",
|
|
2244
2254
|
"required": false,
|
|
2245
|
-
"description": ""
|
|
2255
|
+
"description": "Shown but can’t be chosen."
|
|
2246
2256
|
},
|
|
2247
2257
|
{
|
|
2248
2258
|
"name": "tone",
|
|
2249
2259
|
"type": "MenuTone",
|
|
2250
2260
|
"required": false,
|
|
2251
|
-
"description": ""
|
|
2261
|
+
"description": "Colour, e.g. `danger` for a delete item."
|
|
2252
2262
|
},
|
|
2253
2263
|
{
|
|
2254
2264
|
"name": "icon",
|
|
2255
2265
|
"type": "Component",
|
|
2256
2266
|
"required": false,
|
|
2257
|
-
"description": ""
|
|
2267
|
+
"description": "An icon component before the label."
|
|
2258
2268
|
},
|
|
2259
2269
|
{
|
|
2260
2270
|
"name": "hint",
|
|
@@ -2268,25 +2278,25 @@
|
|
|
2268
2278
|
"name": "row",
|
|
2269
2279
|
"type": "T",
|
|
2270
2280
|
"required": true,
|
|
2271
|
-
"description": ""
|
|
2281
|
+
"description": "The row the cell belongs to."
|
|
2272
2282
|
},
|
|
2273
2283
|
{
|
|
2274
2284
|
"name": "rowKey",
|
|
2275
2285
|
"type": "RowKey",
|
|
2276
2286
|
"required": true,
|
|
2277
|
-
"description": ""
|
|
2287
|
+
"description": "The row’s key (`row-key`)."
|
|
2278
2288
|
},
|
|
2279
2289
|
{
|
|
2280
2290
|
"name": "column",
|
|
2281
2291
|
"type": "ColumnDef<T>",
|
|
2282
2292
|
"required": true,
|
|
2283
|
-
"description": ""
|
|
2293
|
+
"description": "The cell’s column definition."
|
|
2284
2294
|
},
|
|
2285
2295
|
{
|
|
2286
2296
|
"name": "value",
|
|
2287
2297
|
"type": "unknown",
|
|
2288
2298
|
"required": true,
|
|
2289
|
-
"description": ""
|
|
2299
|
+
"description": "The cell value (`value` / `field` / `key`)."
|
|
2290
2300
|
}
|
|
2291
2301
|
],
|
|
2292
2302
|
"CellActionEvent": [
|
|
@@ -2294,31 +2304,31 @@
|
|
|
2294
2304
|
"name": "name",
|
|
2295
2305
|
"type": "string",
|
|
2296
2306
|
"required": true,
|
|
2297
|
-
"description": ""
|
|
2307
|
+
"description": "The action, e.g. `click`, `change`, `toggle`, `copy` or a button’s `name`."
|
|
2298
2308
|
},
|
|
2299
2309
|
{
|
|
2300
2310
|
"name": "payload",
|
|
2301
2311
|
"type": "unknown",
|
|
2302
2312
|
"required": true,
|
|
2303
|
-
"description": ""
|
|
2313
|
+
"description": "Action data: the new value of a toggle or input, the copied text, a line index…"
|
|
2304
2314
|
},
|
|
2305
2315
|
{
|
|
2306
2316
|
"name": "row",
|
|
2307
2317
|
"type": "T",
|
|
2308
2318
|
"required": true,
|
|
2309
|
-
"description": ""
|
|
2319
|
+
"description": "The row the cell belongs to."
|
|
2310
2320
|
},
|
|
2311
2321
|
{
|
|
2312
2322
|
"name": "rowKey",
|
|
2313
2323
|
"type": "RowKey",
|
|
2314
2324
|
"required": true,
|
|
2315
|
-
"description": ""
|
|
2325
|
+
"description": "The row’s key (`row-key`)."
|
|
2316
2326
|
},
|
|
2317
2327
|
{
|
|
2318
2328
|
"name": "column",
|
|
2319
2329
|
"type": "ColumnDef<T>",
|
|
2320
2330
|
"required": true,
|
|
2321
|
-
"description": ""
|
|
2331
|
+
"description": "The cell’s column definition."
|
|
2322
2332
|
}
|
|
2323
2333
|
],
|
|
2324
2334
|
"CellClickEvent": [
|
|
@@ -2326,31 +2336,31 @@
|
|
|
2326
2336
|
"name": "row",
|
|
2327
2337
|
"type": "T",
|
|
2328
2338
|
"required": true,
|
|
2329
|
-
"description": ""
|
|
2339
|
+
"description": "The row the cell belongs to."
|
|
2330
2340
|
},
|
|
2331
2341
|
{
|
|
2332
2342
|
"name": "rowKey",
|
|
2333
2343
|
"type": "RowKey",
|
|
2334
2344
|
"required": true,
|
|
2335
|
-
"description": ""
|
|
2345
|
+
"description": "The row’s key (`row-key`)."
|
|
2336
2346
|
},
|
|
2337
2347
|
{
|
|
2338
2348
|
"name": "column",
|
|
2339
2349
|
"type": "ColumnDef<T>",
|
|
2340
2350
|
"required": true,
|
|
2341
|
-
"description": ""
|
|
2351
|
+
"description": "The clicked column (one with `clickable: true`)."
|
|
2342
2352
|
},
|
|
2343
2353
|
{
|
|
2344
2354
|
"name": "value",
|
|
2345
2355
|
"type": "unknown",
|
|
2346
2356
|
"required": true,
|
|
2347
|
-
"description": ""
|
|
2357
|
+
"description": "The cell value."
|
|
2348
2358
|
},
|
|
2349
2359
|
{
|
|
2350
2360
|
"name": "event",
|
|
2351
2361
|
"type": "MouseEvent | KeyboardEvent",
|
|
2352
2362
|
"required": true,
|
|
2353
|
-
"description": ""
|
|
2363
|
+
"description": "The DOM event of the click (Enter on a focused cell clicks it too)."
|
|
2354
2364
|
}
|
|
2355
2365
|
],
|
|
2356
2366
|
"ContextActionEvent": [
|
|
@@ -2358,37 +2368,37 @@
|
|
|
2358
2368
|
"name": "name",
|
|
2359
2369
|
"type": "string",
|
|
2360
2370
|
"required": true,
|
|
2361
|
-
"description": ""
|
|
2371
|
+
"description": "The chosen item’s `name`."
|
|
2362
2372
|
},
|
|
2363
2373
|
{
|
|
2364
2374
|
"name": "item",
|
|
2365
2375
|
"type": "MenuAction",
|
|
2366
2376
|
"required": true,
|
|
2367
|
-
"description": ""
|
|
2377
|
+
"description": "The chosen item."
|
|
2368
2378
|
},
|
|
2369
2379
|
{
|
|
2370
2380
|
"name": "row",
|
|
2371
2381
|
"type": "T",
|
|
2372
2382
|
"required": true,
|
|
2373
|
-
"description": ""
|
|
2383
|
+
"description": "The row the cell belongs to."
|
|
2374
2384
|
},
|
|
2375
2385
|
{
|
|
2376
2386
|
"name": "rowKey",
|
|
2377
2387
|
"type": "RowKey",
|
|
2378
2388
|
"required": true,
|
|
2379
|
-
"description": ""
|
|
2389
|
+
"description": "The row’s key (`row-key`)."
|
|
2380
2390
|
},
|
|
2381
2391
|
{
|
|
2382
2392
|
"name": "column",
|
|
2383
2393
|
"type": "ColumnDef<T>",
|
|
2384
2394
|
"required": true,
|
|
2385
|
-
"description": ""
|
|
2395
|
+
"description": "The cell’s column definition."
|
|
2386
2396
|
},
|
|
2387
2397
|
{
|
|
2388
2398
|
"name": "value",
|
|
2389
2399
|
"type": "unknown",
|
|
2390
2400
|
"required": true,
|
|
2391
|
-
"description": ""
|
|
2401
|
+
"description": "The cell value (`value` / `field` / `key`)."
|
|
2392
2402
|
}
|
|
2393
2403
|
],
|
|
2394
2404
|
"HeaderActionEvent": [
|
|
@@ -2396,19 +2406,19 @@
|
|
|
2396
2406
|
"name": "name",
|
|
2397
2407
|
"type": "string",
|
|
2398
2408
|
"required": true,
|
|
2399
|
-
"description": ""
|
|
2409
|
+
"description": "The chosen item’s `name`."
|
|
2400
2410
|
},
|
|
2401
2411
|
{
|
|
2402
2412
|
"name": "item",
|
|
2403
2413
|
"type": "MenuAction",
|
|
2404
2414
|
"required": true,
|
|
2405
|
-
"description": ""
|
|
2415
|
+
"description": "The chosen item."
|
|
2406
2416
|
},
|
|
2407
2417
|
{
|
|
2408
2418
|
"name": "column",
|
|
2409
2419
|
"type": "ColumnDef<T>",
|
|
2410
2420
|
"required": true,
|
|
2411
|
-
"description": ""
|
|
2421
|
+
"description": "The column whose header menu it was."
|
|
2412
2422
|
}
|
|
2413
2423
|
],
|
|
2414
2424
|
"VueGridConfig": [
|
|
@@ -2416,7 +2426,7 @@
|
|
|
2416
2426
|
"name": "renderers",
|
|
2417
2427
|
"type": "CellRendererDefinition[]",
|
|
2418
2428
|
"required": false,
|
|
2419
|
-
"description": ""
|
|
2429
|
+
"description": "Renderers every grid can use by name (`renderer: 'currency'`); `allRenderers` for all of them."
|
|
2420
2430
|
},
|
|
2421
2431
|
{
|
|
2422
2432
|
"name": "features",
|
|
@@ -2428,25 +2438,25 @@
|
|
|
2428
2438
|
"name": "locale",
|
|
2429
2439
|
"type": "string",
|
|
2430
2440
|
"required": false,
|
|
2431
|
-
"description": ""
|
|
2441
|
+
"description": "Default locale for number and date renderers (default: the browser’s)."
|
|
2432
2442
|
},
|
|
2433
2443
|
{
|
|
2434
2444
|
"name": "currency",
|
|
2435
2445
|
"type": "string",
|
|
2436
2446
|
"required": false,
|
|
2437
|
-
"description": ""
|
|
2447
|
+
"description": "Default ISO 4217 currency for currency renderers."
|
|
2438
2448
|
},
|
|
2439
2449
|
{
|
|
2440
2450
|
"name": "timeZone",
|
|
2441
2451
|
"type": "string",
|
|
2442
2452
|
"required": false,
|
|
2443
|
-
"description": ""
|
|
2453
|
+
"description": "Default IANA time zone for date renderers and date filters."
|
|
2444
2454
|
},
|
|
2445
2455
|
{
|
|
2446
2456
|
"name": "density",
|
|
2447
2457
|
"type": "Density",
|
|
2448
2458
|
"required": false,
|
|
2449
|
-
"description": ""
|
|
2459
|
+
"description": "Default density: `compact`, `cozy` (default) or `comfortable`."
|
|
2450
2460
|
}
|
|
2451
2461
|
]
|
|
2452
2462
|
}
|