@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/dist/agent/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/agent/api.json
|
|
2
|
-
var e = "0.
|
|
2
|
+
var e = "0.4.0", t = "VGrid", n = [
|
|
3
3
|
{
|
|
4
4
|
name: "rows",
|
|
5
5
|
type: "readonly T[]",
|
|
@@ -175,6 +175,14 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
175
175
|
required: !1,
|
|
176
176
|
description: "Persist column state (order, hidden, pins, widths): a localStorage key or your own storage."
|
|
177
177
|
},
|
|
178
|
+
{
|
|
179
|
+
name: "pinnedMaxShare",
|
|
180
|
+
type: "number | false",
|
|
181
|
+
required: !1,
|
|
182
|
+
default: "0.5",
|
|
183
|
+
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.",
|
|
184
|
+
feature: "columnPinning"
|
|
185
|
+
},
|
|
178
186
|
{
|
|
179
187
|
name: "renderers",
|
|
180
188
|
type: "CellRendererDefinition[]",
|
|
@@ -814,8 +822,8 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
814
822
|
{
|
|
815
823
|
id: "columnPinning",
|
|
816
824
|
export: "columnPinningFeature",
|
|
817
|
-
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.",
|
|
818
|
-
props: [],
|
|
825
|
+
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.",
|
|
826
|
+
props: ["pinnedMaxShare"],
|
|
819
827
|
columnOptions: ["pinned", "pinnable"]
|
|
820
828
|
},
|
|
821
829
|
{
|
|
@@ -983,7 +991,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
983
991
|
name: "maxWidth",
|
|
984
992
|
type: "string",
|
|
985
993
|
required: !1,
|
|
986
|
-
description: ""
|
|
994
|
+
description: "CSS max width of the text, e.g. `'16rem'`: longer text wraps or, with `ellipsis`, is cut."
|
|
987
995
|
},
|
|
988
996
|
{
|
|
989
997
|
name: "preserveNewlines",
|
|
@@ -1007,7 +1015,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1007
1015
|
name: "tone",
|
|
1008
1016
|
type: "RowOption<Tone | undefined>",
|
|
1009
1017
|
required: !1,
|
|
1010
|
-
description: ""
|
|
1018
|
+
description: "Colour of the text (`success`, `danger`, `warning`, `info`, `neutral`, `accent`), or `(value, row) => tone`."
|
|
1011
1019
|
},
|
|
1012
1020
|
{
|
|
1013
1021
|
name: "toneMode",
|
|
@@ -1019,7 +1027,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1019
1027
|
name: "bold",
|
|
1020
1028
|
type: "RowOption<boolean>",
|
|
1021
1029
|
required: !1,
|
|
1022
|
-
description: ""
|
|
1030
|
+
description: "Bold text, for every row or `(value, row) => boolean`."
|
|
1023
1031
|
},
|
|
1024
1032
|
{
|
|
1025
1033
|
name: "secondary",
|
|
@@ -1037,7 +1045,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1037
1045
|
name: "badgePosition",
|
|
1038
1046
|
type: "'start' | 'end'",
|
|
1039
1047
|
required: !1,
|
|
1040
|
-
description: ""
|
|
1048
|
+
description: "Where `badge` goes: `start` (default, before the value) or `end`."
|
|
1041
1049
|
},
|
|
1042
1050
|
{
|
|
1043
1051
|
name: "icon",
|
|
@@ -1076,7 +1084,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1076
1084
|
name: "highlighted",
|
|
1077
1085
|
type: "boolean | RowFn<boolean>",
|
|
1078
1086
|
required: !1,
|
|
1079
|
-
description: ""
|
|
1087
|
+
description: "Shown as switched on (highlighted, `aria-pressed`), e.g. `(v, row) => row.starred`."
|
|
1080
1088
|
},
|
|
1081
1089
|
{
|
|
1082
1090
|
name: "placeholder",
|
|
@@ -1121,6 +1129,12 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1121
1129
|
filterType: "number",
|
|
1122
1130
|
defaults: "{ signed: true }",
|
|
1123
1131
|
options: [
|
|
1132
|
+
{
|
|
1133
|
+
name: "signed",
|
|
1134
|
+
type: "boolean",
|
|
1135
|
+
required: !1,
|
|
1136
|
+
description: "Always show the sign (`+3`, `−2`). Default `true` for `signed-number`; `false` formats like `number`."
|
|
1137
|
+
},
|
|
1124
1138
|
{
|
|
1125
1139
|
name: "format",
|
|
1126
1140
|
type: "Intl.NumberFormatOptions",
|
|
@@ -1138,12 +1152,6 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1138
1152
|
type: "RowOption<boolean>",
|
|
1139
1153
|
required: !1,
|
|
1140
1154
|
description: "Renders the number as a link-style button that emits `click` (drill-down)."
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
name: "signed",
|
|
1144
|
-
type: "boolean",
|
|
1145
|
-
required: !1,
|
|
1146
|
-
description: ""
|
|
1147
1155
|
}
|
|
1148
1156
|
]
|
|
1149
1157
|
},
|
|
@@ -1254,7 +1262,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1254
1262
|
name: "milliseconds",
|
|
1255
1263
|
type: "boolean",
|
|
1256
1264
|
required: !1,
|
|
1257
|
-
description: ""
|
|
1265
|
+
description: "Show milliseconds in the time (`12:30:05.123`)."
|
|
1258
1266
|
},
|
|
1259
1267
|
{
|
|
1260
1268
|
name: "twoLines",
|
|
@@ -1287,19 +1295,19 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1287
1295
|
name: "trueLabel",
|
|
1288
1296
|
type: "string",
|
|
1289
1297
|
required: !1,
|
|
1290
|
-
description: ""
|
|
1298
|
+
description: "Text for `true` (and its accessible name in icon mode). Default “Yes”."
|
|
1291
1299
|
},
|
|
1292
1300
|
{
|
|
1293
1301
|
name: "falseLabel",
|
|
1294
1302
|
type: "string",
|
|
1295
1303
|
required: !1,
|
|
1296
|
-
description: ""
|
|
1304
|
+
description: "Text for `false`. Default “No”."
|
|
1297
1305
|
},
|
|
1298
1306
|
{
|
|
1299
1307
|
name: "nullLabel",
|
|
1300
1308
|
type: "string",
|
|
1301
1309
|
required: !1,
|
|
1302
|
-
description: ""
|
|
1310
|
+
description: "Text for `null` / `undefined`. Default: nothing."
|
|
1303
1311
|
},
|
|
1304
1312
|
{
|
|
1305
1313
|
name: "display",
|
|
@@ -1326,7 +1334,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1326
1334
|
name: "tone",
|
|
1327
1335
|
type: "ToneOption",
|
|
1328
1336
|
required: !1,
|
|
1329
|
-
description: ""
|
|
1337
|
+
description: "Badge colour: one tone, a value → tone map (`{ Paid: 'success', Open: 'info' }`), or `(value, row) => tone`. Default `neutral`."
|
|
1330
1338
|
},
|
|
1331
1339
|
{
|
|
1332
1340
|
name: "label",
|
|
@@ -1338,7 +1346,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1338
1346
|
name: "dot",
|
|
1339
1347
|
type: "boolean",
|
|
1340
1348
|
required: !1,
|
|
1341
|
-
description: ""
|
|
1349
|
+
description: "A coloured dot before the label. Default `true`; `false` hides it."
|
|
1342
1350
|
},
|
|
1343
1351
|
{
|
|
1344
1352
|
name: "variant",
|
|
@@ -1371,7 +1379,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1371
1379
|
name: "href",
|
|
1372
1380
|
type: "RowFn<string | undefined>",
|
|
1373
1381
|
required: !1,
|
|
1374
|
-
description: ""
|
|
1382
|
+
description: "The URL, from the value and row (default: the value). Only http(s), mailto and tel are linked; wins over `to`."
|
|
1375
1383
|
},
|
|
1376
1384
|
{
|
|
1377
1385
|
name: "to",
|
|
@@ -1383,19 +1391,19 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1383
1391
|
name: "label",
|
|
1384
1392
|
type: "RowFn<string>",
|
|
1385
1393
|
required: !1,
|
|
1386
|
-
description: ""
|
|
1394
|
+
description: "Link text (default: the value)."
|
|
1387
1395
|
},
|
|
1388
1396
|
{
|
|
1389
1397
|
name: "target",
|
|
1390
1398
|
type: "'_self' | '_blank'",
|
|
1391
1399
|
required: !1,
|
|
1392
|
-
description: ""
|
|
1400
|
+
description: "`_blank` opens a new tab (with `rel=\"noopener noreferrer\"`)."
|
|
1393
1401
|
},
|
|
1394
1402
|
{
|
|
1395
1403
|
name: "tooltip",
|
|
1396
1404
|
type: "RowFn<string | undefined>",
|
|
1397
1405
|
required: !1,
|
|
1398
|
-
description: ""
|
|
1406
|
+
description: "Hover text of the link."
|
|
1399
1407
|
}
|
|
1400
1408
|
]
|
|
1401
1409
|
},
|
|
@@ -1422,19 +1430,19 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1422
1430
|
name: "show",
|
|
1423
1431
|
type: "RowFn<boolean>",
|
|
1424
1432
|
required: !1,
|
|
1425
|
-
description: ""
|
|
1433
|
+
description: "Show the icon for this row (default: always). A hidden icon keeps its space, so columns stay aligned."
|
|
1426
1434
|
},
|
|
1427
1435
|
{
|
|
1428
1436
|
name: "label",
|
|
1429
1437
|
type: "string | RowFn<string>",
|
|
1430
1438
|
required: !1,
|
|
1431
|
-
description: ""
|
|
1439
|
+
description: "Accessible name and tooltip. Without one the icon is decorative."
|
|
1432
1440
|
},
|
|
1433
1441
|
{
|
|
1434
1442
|
name: "tone",
|
|
1435
1443
|
type: "Tone | RowFn<Tone | undefined>",
|
|
1436
1444
|
required: !1,
|
|
1437
|
-
description: ""
|
|
1445
|
+
description: "Icon colour, or `(value, row) => tone`."
|
|
1438
1446
|
}
|
|
1439
1447
|
]
|
|
1440
1448
|
},
|
|
@@ -1448,12 +1456,12 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1448
1456
|
name: "label",
|
|
1449
1457
|
type: "string",
|
|
1450
1458
|
required: !1,
|
|
1451
|
-
description: ""
|
|
1459
|
+
description: "Text of the button that opens the JSON in a dialog. Default “View”."
|
|
1452
1460
|
}, {
|
|
1453
1461
|
name: "dialogTitle",
|
|
1454
1462
|
type: "string | RowFn<string>",
|
|
1455
1463
|
required: !1,
|
|
1456
|
-
description: ""
|
|
1464
|
+
description: "Heading of the dialog (default: the column header)."
|
|
1457
1465
|
}]
|
|
1458
1466
|
},
|
|
1459
1467
|
{
|
|
@@ -1491,7 +1499,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1491
1499
|
name: "toggleLabel",
|
|
1492
1500
|
type: "string",
|
|
1493
1501
|
required: !1,
|
|
1494
|
-
description: ""
|
|
1502
|
+
description: "Text of the `collapsed` toggle. Default “More info”."
|
|
1495
1503
|
},
|
|
1496
1504
|
{
|
|
1497
1505
|
name: "emptyText",
|
|
@@ -1516,7 +1524,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1516
1524
|
name: "label",
|
|
1517
1525
|
type: "string",
|
|
1518
1526
|
required: !1,
|
|
1519
|
-
description: ""
|
|
1527
|
+
description: "Accessible name of the `⋯` button and the menu. Default “Actions”."
|
|
1520
1528
|
}]
|
|
1521
1529
|
},
|
|
1522
1530
|
{
|
|
@@ -1530,7 +1538,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1530
1538
|
name: "label",
|
|
1531
1539
|
type: "string | RowFn<string>",
|
|
1532
1540
|
required: !1,
|
|
1533
|
-
description: ""
|
|
1541
|
+
description: "Button text (default: the value), or `(value, row) => text`."
|
|
1534
1542
|
},
|
|
1535
1543
|
{
|
|
1536
1544
|
name: "action",
|
|
@@ -1542,19 +1550,19 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1542
1550
|
name: "icon",
|
|
1543
1551
|
type: "Component",
|
|
1544
1552
|
required: !1,
|
|
1545
|
-
description: ""
|
|
1553
|
+
description: "An icon component before the label."
|
|
1546
1554
|
},
|
|
1547
1555
|
{
|
|
1548
1556
|
name: "tone",
|
|
1549
1557
|
type: "Tone",
|
|
1550
1558
|
required: !1,
|
|
1551
|
-
description: ""
|
|
1559
|
+
description: "Button colour, e.g. `danger` for a delete button."
|
|
1552
1560
|
},
|
|
1553
1561
|
{
|
|
1554
1562
|
name: "disabled",
|
|
1555
1563
|
type: "RowFn<boolean>",
|
|
1556
1564
|
required: !1,
|
|
1557
|
-
description: ""
|
|
1565
|
+
description: "Disable the button for some rows: `(value, row) => boolean`."
|
|
1558
1566
|
},
|
|
1559
1567
|
{
|
|
1560
1568
|
name: "visible",
|
|
@@ -1566,7 +1574,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1566
1574
|
name: "variant",
|
|
1567
1575
|
type: "ButtonVariant",
|
|
1568
1576
|
required: !1,
|
|
1569
|
-
description: ""
|
|
1577
|
+
description: "`outline` (default), `solid` or `ghost`."
|
|
1570
1578
|
},
|
|
1571
1579
|
{
|
|
1572
1580
|
name: "iconOnly",
|
|
@@ -1605,7 +1613,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1605
1613
|
name: "target",
|
|
1606
1614
|
type: "'_self' | '_blank'",
|
|
1607
1615
|
required: !1,
|
|
1608
|
-
description: ""
|
|
1616
|
+
description: "`_blank` opens linked lines in a new tab."
|
|
1609
1617
|
},
|
|
1610
1618
|
{
|
|
1611
1619
|
name: "placeholder",
|
|
@@ -1677,19 +1685,19 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1677
1685
|
name: "label",
|
|
1678
1686
|
type: "RowFn<string>",
|
|
1679
1687
|
required: !1,
|
|
1680
|
-
description: ""
|
|
1688
|
+
description: "Chip text (default: the value, or its `label` / `name` / `text` field). A tone map is keyed by this label."
|
|
1681
1689
|
},
|
|
1682
1690
|
{
|
|
1683
1691
|
name: "tooltip",
|
|
1684
1692
|
type: "RowFn<string | null | undefined>",
|
|
1685
1693
|
required: !1,
|
|
1686
|
-
description: ""
|
|
1694
|
+
description: "Hover text (default: the value's `description` field, if any)."
|
|
1687
1695
|
},
|
|
1688
1696
|
{
|
|
1689
1697
|
name: "shape",
|
|
1690
1698
|
type: "'square' | 'circle' | 'pill'",
|
|
1691
1699
|
required: !1,
|
|
1692
|
-
description: ""
|
|
1700
|
+
description: "`square` (default), `circle` or `pill`."
|
|
1693
1701
|
},
|
|
1694
1702
|
{
|
|
1695
1703
|
name: "size",
|
|
@@ -1722,7 +1730,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1722
1730
|
name: "disabled",
|
|
1723
1731
|
type: "RowOption<boolean>",
|
|
1724
1732
|
required: !1,
|
|
1725
|
-
description: ""
|
|
1733
|
+
description: "Disabled for every row, or `(value, row) => boolean`."
|
|
1726
1734
|
},
|
|
1727
1735
|
{
|
|
1728
1736
|
name: "disabledReason",
|
|
@@ -1755,7 +1763,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1755
1763
|
name: "disabled",
|
|
1756
1764
|
type: "RowOption<boolean>",
|
|
1757
1765
|
required: !1,
|
|
1758
|
-
description: ""
|
|
1766
|
+
description: "Disabled for every row, or `(value, row) => boolean`."
|
|
1759
1767
|
},
|
|
1760
1768
|
{
|
|
1761
1769
|
name: "disabledReason",
|
|
@@ -1794,7 +1802,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1794
1802
|
name: "disabled",
|
|
1795
1803
|
type: "RowOption<boolean>",
|
|
1796
1804
|
required: !1,
|
|
1797
|
-
description: ""
|
|
1805
|
+
description: "Disabled for every row, or `(value, row) => boolean`."
|
|
1798
1806
|
},
|
|
1799
1807
|
{
|
|
1800
1808
|
name: "disabledReason",
|
|
@@ -1839,13 +1847,13 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1839
1847
|
name: "disabled",
|
|
1840
1848
|
type: "RowOption<boolean>",
|
|
1841
1849
|
required: !1,
|
|
1842
|
-
description: ""
|
|
1850
|
+
description: "Disables the edit button, for every row or `(value, row) => boolean`."
|
|
1843
1851
|
},
|
|
1844
1852
|
{
|
|
1845
1853
|
name: "bold",
|
|
1846
1854
|
type: "boolean",
|
|
1847
1855
|
required: !1,
|
|
1848
|
-
description: ""
|
|
1856
|
+
description: "Bold text."
|
|
1849
1857
|
}
|
|
1850
1858
|
]
|
|
1851
1859
|
},
|
|
@@ -1872,7 +1880,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1872
1880
|
name: "alt",
|
|
1873
1881
|
type: "RowOption<string>",
|
|
1874
1882
|
required: !1,
|
|
1875
|
-
description: ""
|
|
1883
|
+
description: "Alternative text (default: none, a decorative image), or `(value, row) => text`."
|
|
1876
1884
|
},
|
|
1877
1885
|
{
|
|
1878
1886
|
name: "size",
|
|
@@ -1884,13 +1892,13 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1884
1892
|
name: "fit",
|
|
1885
1893
|
type: "'contain' | 'cover'",
|
|
1886
1894
|
required: !1,
|
|
1887
|
-
description: ""
|
|
1895
|
+
description: "`contain` (default) shows the whole image; `cover` fills the box and crops."
|
|
1888
1896
|
},
|
|
1889
1897
|
{
|
|
1890
1898
|
name: "shape",
|
|
1891
1899
|
type: "'rounded' | 'circle' | 'square'",
|
|
1892
1900
|
required: !1,
|
|
1893
|
-
description: ""
|
|
1901
|
+
description: "`rounded` (default), `circle` (avatars) or `square`."
|
|
1894
1902
|
}
|
|
1895
1903
|
]
|
|
1896
1904
|
},
|
|
@@ -1937,7 +1945,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1937
1945
|
name: "buttons",
|
|
1938
1946
|
type: "ButtonSpec[] | ((row: any) => ButtonSpec[])",
|
|
1939
1947
|
required: !1,
|
|
1940
|
-
description: ""
|
|
1948
|
+
description: "The buttons (`{ name, label, tone?, variant?, disabled?, icon?, hidden? }`), or a function of the row. A click emits the button's `name`."
|
|
1941
1949
|
}]
|
|
1942
1950
|
},
|
|
1943
1951
|
{
|
|
@@ -1981,7 +1989,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
1981
1989
|
name: "disabled",
|
|
1982
1990
|
type: "RowOption<boolean>",
|
|
1983
1991
|
required: !1,
|
|
1984
|
-
description: ""
|
|
1992
|
+
description: "Disabled for every row, or `(value, row) => boolean`."
|
|
1985
1993
|
}
|
|
1986
1994
|
]
|
|
1987
1995
|
},
|
|
@@ -2002,7 +2010,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2002
2010
|
name: "label",
|
|
2003
2011
|
type: "RowFn<string>",
|
|
2004
2012
|
required: !1,
|
|
2005
|
-
description: ""
|
|
2013
|
+
description: "Badge text (default: the value)."
|
|
2006
2014
|
},
|
|
2007
2015
|
{
|
|
2008
2016
|
name: "items",
|
|
@@ -2041,7 +2049,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2041
2049
|
name: "itemLabel",
|
|
2042
2050
|
type: "RowFn<string>",
|
|
2043
2051
|
required: !1,
|
|
2044
|
-
description: ""
|
|
2052
|
+
description: "Text of one item, `(item, row) => string` (default: the item, objects as JSON)."
|
|
2045
2053
|
},
|
|
2046
2054
|
{
|
|
2047
2055
|
name: "max",
|
|
@@ -2082,12 +2090,12 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2082
2090
|
name: "top",
|
|
2083
2091
|
type: "RowKey[]",
|
|
2084
2092
|
required: !1,
|
|
2085
|
-
description: ""
|
|
2093
|
+
description: "Keys of the rows pinned above the body, in display order."
|
|
2086
2094
|
}, {
|
|
2087
2095
|
name: "bottom",
|
|
2088
2096
|
type: "RowKey[]",
|
|
2089
2097
|
required: !1,
|
|
2090
|
-
description: ""
|
|
2098
|
+
description: "Keys of the rows pinned below the body, in display order."
|
|
2091
2099
|
}],
|
|
2092
2100
|
ColumnState: [
|
|
2093
2101
|
{
|
|
@@ -2119,19 +2127,19 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2119
2127
|
name: "key",
|
|
2120
2128
|
type: "string",
|
|
2121
2129
|
required: !0,
|
|
2122
|
-
description: ""
|
|
2130
|
+
description: "The sorted column’s `key`."
|
|
2123
2131
|
}, {
|
|
2124
2132
|
name: "dir",
|
|
2125
2133
|
type: "SortDir",
|
|
2126
2134
|
required: !0,
|
|
2127
|
-
description: ""
|
|
2135
|
+
description: "`asc` or `desc`."
|
|
2128
2136
|
}],
|
|
2129
2137
|
ColumnFilterOptions: [
|
|
2130
2138
|
{
|
|
2131
2139
|
name: "type",
|
|
2132
2140
|
type: "FilterType",
|
|
2133
2141
|
required: !1,
|
|
2134
|
-
description: ""
|
|
2142
|
+
description: "`text`, `number`, `date`, `boolean` or `set` (default: from the renderer)."
|
|
2135
2143
|
},
|
|
2136
2144
|
{
|
|
2137
2145
|
name: "options",
|
|
@@ -2151,13 +2159,13 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2151
2159
|
name: "value",
|
|
2152
2160
|
type: "unknown",
|
|
2153
2161
|
required: !0,
|
|
2154
|
-
description: ""
|
|
2162
|
+
description: "The value rows are matched against."
|
|
2155
2163
|
},
|
|
2156
2164
|
{
|
|
2157
2165
|
name: "label",
|
|
2158
2166
|
type: "string",
|
|
2159
2167
|
required: !1,
|
|
2160
|
-
description: ""
|
|
2168
|
+
description: "Text shown for the option (default: the value)."
|
|
2161
2169
|
},
|
|
2162
2170
|
{
|
|
2163
2171
|
name: "count",
|
|
@@ -2177,25 +2185,25 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2177
2185
|
name: "label",
|
|
2178
2186
|
type: "string",
|
|
2179
2187
|
required: !0,
|
|
2180
|
-
description: ""
|
|
2188
|
+
description: "Text of the item."
|
|
2181
2189
|
},
|
|
2182
2190
|
{
|
|
2183
2191
|
name: "disabled",
|
|
2184
2192
|
type: "boolean",
|
|
2185
2193
|
required: !1,
|
|
2186
|
-
description: ""
|
|
2194
|
+
description: "Shown but can’t be chosen."
|
|
2187
2195
|
},
|
|
2188
2196
|
{
|
|
2189
2197
|
name: "tone",
|
|
2190
2198
|
type: "MenuTone",
|
|
2191
2199
|
required: !1,
|
|
2192
|
-
description: ""
|
|
2200
|
+
description: "Colour, e.g. `danger` for a delete item."
|
|
2193
2201
|
},
|
|
2194
2202
|
{
|
|
2195
2203
|
name: "icon",
|
|
2196
2204
|
type: "Component",
|
|
2197
2205
|
required: !1,
|
|
2198
|
-
description: ""
|
|
2206
|
+
description: "An icon component before the label."
|
|
2199
2207
|
},
|
|
2200
2208
|
{
|
|
2201
2209
|
name: "hint",
|
|
@@ -2209,25 +2217,25 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2209
2217
|
name: "row",
|
|
2210
2218
|
type: "T",
|
|
2211
2219
|
required: !0,
|
|
2212
|
-
description: ""
|
|
2220
|
+
description: "The row the cell belongs to."
|
|
2213
2221
|
},
|
|
2214
2222
|
{
|
|
2215
2223
|
name: "rowKey",
|
|
2216
2224
|
type: "RowKey",
|
|
2217
2225
|
required: !0,
|
|
2218
|
-
description: ""
|
|
2226
|
+
description: "The row’s key (`row-key`)."
|
|
2219
2227
|
},
|
|
2220
2228
|
{
|
|
2221
2229
|
name: "column",
|
|
2222
2230
|
type: "ColumnDef<T>",
|
|
2223
2231
|
required: !0,
|
|
2224
|
-
description: ""
|
|
2232
|
+
description: "The cell’s column definition."
|
|
2225
2233
|
},
|
|
2226
2234
|
{
|
|
2227
2235
|
name: "value",
|
|
2228
2236
|
type: "unknown",
|
|
2229
2237
|
required: !0,
|
|
2230
|
-
description: ""
|
|
2238
|
+
description: "The cell value (`value` / `field` / `key`)."
|
|
2231
2239
|
}
|
|
2232
2240
|
],
|
|
2233
2241
|
CellActionEvent: [
|
|
@@ -2235,31 +2243,31 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2235
2243
|
name: "name",
|
|
2236
2244
|
type: "string",
|
|
2237
2245
|
required: !0,
|
|
2238
|
-
description: ""
|
|
2246
|
+
description: "The action, e.g. `click`, `change`, `toggle`, `copy` or a button’s `name`."
|
|
2239
2247
|
},
|
|
2240
2248
|
{
|
|
2241
2249
|
name: "payload",
|
|
2242
2250
|
type: "unknown",
|
|
2243
2251
|
required: !0,
|
|
2244
|
-
description: ""
|
|
2252
|
+
description: "Action data: the new value of a toggle or input, the copied text, a line index…"
|
|
2245
2253
|
},
|
|
2246
2254
|
{
|
|
2247
2255
|
name: "row",
|
|
2248
2256
|
type: "T",
|
|
2249
2257
|
required: !0,
|
|
2250
|
-
description: ""
|
|
2258
|
+
description: "The row the cell belongs to."
|
|
2251
2259
|
},
|
|
2252
2260
|
{
|
|
2253
2261
|
name: "rowKey",
|
|
2254
2262
|
type: "RowKey",
|
|
2255
2263
|
required: !0,
|
|
2256
|
-
description: ""
|
|
2264
|
+
description: "The row’s key (`row-key`)."
|
|
2257
2265
|
},
|
|
2258
2266
|
{
|
|
2259
2267
|
name: "column",
|
|
2260
2268
|
type: "ColumnDef<T>",
|
|
2261
2269
|
required: !0,
|
|
2262
|
-
description: ""
|
|
2270
|
+
description: "The cell’s column definition."
|
|
2263
2271
|
}
|
|
2264
2272
|
],
|
|
2265
2273
|
CellClickEvent: [
|
|
@@ -2267,31 +2275,31 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2267
2275
|
name: "row",
|
|
2268
2276
|
type: "T",
|
|
2269
2277
|
required: !0,
|
|
2270
|
-
description: ""
|
|
2278
|
+
description: "The row the cell belongs to."
|
|
2271
2279
|
},
|
|
2272
2280
|
{
|
|
2273
2281
|
name: "rowKey",
|
|
2274
2282
|
type: "RowKey",
|
|
2275
2283
|
required: !0,
|
|
2276
|
-
description: ""
|
|
2284
|
+
description: "The row’s key (`row-key`)."
|
|
2277
2285
|
},
|
|
2278
2286
|
{
|
|
2279
2287
|
name: "column",
|
|
2280
2288
|
type: "ColumnDef<T>",
|
|
2281
2289
|
required: !0,
|
|
2282
|
-
description: ""
|
|
2290
|
+
description: "The clicked column (one with `clickable: true`)."
|
|
2283
2291
|
},
|
|
2284
2292
|
{
|
|
2285
2293
|
name: "value",
|
|
2286
2294
|
type: "unknown",
|
|
2287
2295
|
required: !0,
|
|
2288
|
-
description: ""
|
|
2296
|
+
description: "The cell value."
|
|
2289
2297
|
},
|
|
2290
2298
|
{
|
|
2291
2299
|
name: "event",
|
|
2292
2300
|
type: "MouseEvent | KeyboardEvent",
|
|
2293
2301
|
required: !0,
|
|
2294
|
-
description: ""
|
|
2302
|
+
description: "The DOM event of the click (Enter on a focused cell clicks it too)."
|
|
2295
2303
|
}
|
|
2296
2304
|
],
|
|
2297
2305
|
ContextActionEvent: [
|
|
@@ -2299,37 +2307,37 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2299
2307
|
name: "name",
|
|
2300
2308
|
type: "string",
|
|
2301
2309
|
required: !0,
|
|
2302
|
-
description: ""
|
|
2310
|
+
description: "The chosen item’s `name`."
|
|
2303
2311
|
},
|
|
2304
2312
|
{
|
|
2305
2313
|
name: "item",
|
|
2306
2314
|
type: "MenuAction",
|
|
2307
2315
|
required: !0,
|
|
2308
|
-
description: ""
|
|
2316
|
+
description: "The chosen item."
|
|
2309
2317
|
},
|
|
2310
2318
|
{
|
|
2311
2319
|
name: "row",
|
|
2312
2320
|
type: "T",
|
|
2313
2321
|
required: !0,
|
|
2314
|
-
description: ""
|
|
2322
|
+
description: "The row the cell belongs to."
|
|
2315
2323
|
},
|
|
2316
2324
|
{
|
|
2317
2325
|
name: "rowKey",
|
|
2318
2326
|
type: "RowKey",
|
|
2319
2327
|
required: !0,
|
|
2320
|
-
description: ""
|
|
2328
|
+
description: "The row’s key (`row-key`)."
|
|
2321
2329
|
},
|
|
2322
2330
|
{
|
|
2323
2331
|
name: "column",
|
|
2324
2332
|
type: "ColumnDef<T>",
|
|
2325
2333
|
required: !0,
|
|
2326
|
-
description: ""
|
|
2334
|
+
description: "The cell’s column definition."
|
|
2327
2335
|
},
|
|
2328
2336
|
{
|
|
2329
2337
|
name: "value",
|
|
2330
2338
|
type: "unknown",
|
|
2331
2339
|
required: !0,
|
|
2332
|
-
description: ""
|
|
2340
|
+
description: "The cell value (`value` / `field` / `key`)."
|
|
2333
2341
|
}
|
|
2334
2342
|
],
|
|
2335
2343
|
HeaderActionEvent: [
|
|
@@ -2337,19 +2345,19 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2337
2345
|
name: "name",
|
|
2338
2346
|
type: "string",
|
|
2339
2347
|
required: !0,
|
|
2340
|
-
description: ""
|
|
2348
|
+
description: "The chosen item’s `name`."
|
|
2341
2349
|
},
|
|
2342
2350
|
{
|
|
2343
2351
|
name: "item",
|
|
2344
2352
|
type: "MenuAction",
|
|
2345
2353
|
required: !0,
|
|
2346
|
-
description: ""
|
|
2354
|
+
description: "The chosen item."
|
|
2347
2355
|
},
|
|
2348
2356
|
{
|
|
2349
2357
|
name: "column",
|
|
2350
2358
|
type: "ColumnDef<T>",
|
|
2351
2359
|
required: !0,
|
|
2352
|
-
description: ""
|
|
2360
|
+
description: "The column whose header menu it was."
|
|
2353
2361
|
}
|
|
2354
2362
|
],
|
|
2355
2363
|
VueGridConfig: [
|
|
@@ -2357,7 +2365,7 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2357
2365
|
name: "renderers",
|
|
2358
2366
|
type: "CellRendererDefinition[]",
|
|
2359
2367
|
required: !1,
|
|
2360
|
-
description: ""
|
|
2368
|
+
description: "Renderers every grid can use by name (`renderer: 'currency'`); `allRenderers` for all of them."
|
|
2361
2369
|
},
|
|
2362
2370
|
{
|
|
2363
2371
|
name: "features",
|
|
@@ -2369,25 +2377,25 @@ var e = "0.3.1", t = "VGrid", n = [
|
|
|
2369
2377
|
name: "locale",
|
|
2370
2378
|
type: "string",
|
|
2371
2379
|
required: !1,
|
|
2372
|
-
description: ""
|
|
2380
|
+
description: "Default locale for number and date renderers (default: the browser’s)."
|
|
2373
2381
|
},
|
|
2374
2382
|
{
|
|
2375
2383
|
name: "currency",
|
|
2376
2384
|
type: "string",
|
|
2377
2385
|
required: !1,
|
|
2378
|
-
description: ""
|
|
2386
|
+
description: "Default ISO 4217 currency for currency renderers."
|
|
2379
2387
|
},
|
|
2380
2388
|
{
|
|
2381
2389
|
name: "timeZone",
|
|
2382
2390
|
type: "string",
|
|
2383
2391
|
required: !1,
|
|
2384
|
-
description: ""
|
|
2392
|
+
description: "Default IANA time zone for date renderers and date filters."
|
|
2385
2393
|
},
|
|
2386
2394
|
{
|
|
2387
2395
|
name: "density",
|
|
2388
2396
|
type: "Density",
|
|
2389
2397
|
required: !1,
|
|
2390
|
-
description: ""
|
|
2398
|
+
description: "Default density: `compact`, `cozy` (default) or `comfortable`."
|
|
2391
2399
|
}
|
|
2392
2400
|
]
|
|
2393
2401
|
}, d = {
|