@nocopypaste/vue-grid 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/AGENTS.md +249 -84
  2. package/CHANGELOG.md +27 -0
  3. package/README.md +412 -228
  4. package/agent/api.json +89 -89
  5. package/agent/api.md +84 -84
  6. package/agent/grid-config.schema.json +11 -5
  7. package/dist/agent/api.js +89 -89
  8. package/dist/agent/index.js.map +1 -1
  9. package/dist/agent/validate.js.map +1 -1
  10. package/dist/base.css +1 -1
  11. package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js +1 -1
  12. package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
  13. package/dist/components/VGridCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  14. package/dist/components/VGridColumnMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  15. package/dist/components/VGridFilterInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  16. package/dist/components/VGridFilterPanel.vue_vue_type_script_setup_true_lang.js +1 -1
  17. package/dist/components/VGridFilterPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  18. package/dist/components/VGridFilterPopover.vue_vue_type_script_setup_true_lang.js.map +1 -1
  19. package/dist/components/VGridGroupCells.vue_vue_type_script_setup_true_lang.js +9 -4
  20. package/dist/components/VGridGroupCells.vue_vue_type_script_setup_true_lang.js.map +1 -1
  21. package/dist/components/VGridGroupRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
  22. package/dist/components/VGridHeader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  23. package/dist/components/VGridMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  24. package/dist/components/VGridPagination.vue_vue_type_script_setup_true_lang.js +4 -4
  25. package/dist/components/VGridPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  26. package/dist/components/VGridPinnedRows.vue_vue_type_script_setup_true_lang.js.map +1 -1
  27. package/dist/components/VGridRows.vue_vue_type_script_setup_true_lang.js +1 -1
  28. package/dist/components/VGridRows.vue_vue_type_script_setup_true_lang.js.map +1 -1
  29. package/dist/components/VGridSearch.vue_vue_type_script_setup_true_lang.js.map +1 -1
  30. package/dist/components/VGridSelectionBanner.vue_vue_type_script_setup_true_lang.js +2 -2
  31. package/dist/components/VGridSelectionBanner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  32. package/dist/components/VGridTotalCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  33. package/dist/composables/useColumnDrag.js.map +1 -1
  34. package/dist/composables/useColumnResize.js.map +1 -1
  35. package/dist/composables/useDataSource.js.map +1 -1
  36. package/dist/composables/useGridExport.js.map +1 -1
  37. package/dist/composables/useGridFilters.js.map +1 -1
  38. package/dist/composables/useGridKeyboard.js +46 -36
  39. package/dist/composables/useGridKeyboard.js.map +1 -1
  40. package/dist/composables/useGridMenus.js.map +1 -1
  41. package/dist/composables/useGridSelection.js.map +1 -1
  42. package/dist/composables/usePinnedRows.js.map +1 -1
  43. package/dist/composables/useRowGrouping.js.map +1 -1
  44. package/dist/composables/useTotals.js.map +1 -1
  45. package/dist/composables/useVirtualRows.js.map +1 -1
  46. package/dist/core/aggregate.js.map +1 -1
  47. package/dist/core/columns.js.map +1 -1
  48. package/dist/core/csv.js.map +1 -1
  49. package/dist/core/filter.js.map +1 -1
  50. package/dist/core/grouping.js.map +1 -1
  51. package/dist/core/pagination.js.map +1 -1
  52. package/dist/core/patch.js.map +1 -1
  53. package/dist/core/selection.js.map +1 -1
  54. package/dist/core/sort.js.map +1 -1
  55. package/dist/core/storage.js.map +1 -1
  56. package/dist/core/value.js.map +1 -1
  57. package/dist/core.css +1 -1
  58. package/dist/features/aggregation.js.map +1 -1
  59. package/dist/features/columnGroups.js.map +1 -1
  60. package/dist/features/columnVisibility.js.map +1 -1
  61. package/dist/features/filtering.js.map +1 -1
  62. package/dist/features/keyboardNavigation.js.map +1 -1
  63. package/dist/features/menus.js.map +1 -1
  64. package/dist/features/rowGrouping.js.map +1 -1
  65. package/dist/features/rowPinning.js.map +1 -1
  66. package/dist/features/selection.js.map +1 -1
  67. package/dist/features/virtualScrolling.js.map +1 -1
  68. package/dist/internal/RenderSlot.js.map +1 -1
  69. package/dist/internal/anchor.js +20 -21
  70. package/dist/internal/anchor.js.map +1 -1
  71. package/dist/internal/context.js.map +1 -1
  72. package/dist/internal/supports.js +2 -2
  73. package/dist/internal/supports.js.map +1 -1
  74. package/dist/internal/touchHold.js.map +1 -1
  75. package/dist/registry/plugin.js.map +1 -1
  76. package/dist/registry/registry.js.map +1 -1
  77. package/dist/renderers/ActionButtonCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  78. package/dist/renderers/ActionsMenuCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  79. package/dist/renderers/BooleanCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  80. package/dist/renderers/ButtonGroupCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  81. package/dist/renderers/ChangeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  82. package/dist/renderers/ChipCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  83. package/dist/renderers/CodeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  84. package/dist/renderers/CopyCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  85. package/dist/renderers/DateCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  86. package/dist/renderers/DateTimeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  87. package/dist/renderers/DetailsCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  88. package/dist/renderers/EditCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  89. package/dist/renderers/IconCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  90. package/dist/renderers/IconToggleCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  91. package/dist/renderers/JsonCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  92. package/dist/renderers/LinkCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  93. package/dist/renderers/MultiLineCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  94. package/dist/renderers/NumberCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  95. package/dist/renderers/StatusCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  96. package/dist/renderers/TextCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  97. package/dist/renderers/ToggleTextCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
  98. package/dist/renderers/format.js.map +1 -1
  99. package/dist/renderers/index.js.map +1 -1
  100. package/dist/renderers/options.js.map +1 -1
  101. package/dist/renderers/parts/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  102. package/dist/renderers/parts/NumberValue.vue_vue_type_script_setup_true_lang.js.map +1 -1
  103. package/dist/renderers/parts/ValueBadge.vue_vue_type_script_setup_true_lang.js.map +1 -1
  104. package/dist/renderers/parts/icons.js.map +1 -1
  105. package/dist/renderers/parts/useToggleControl.js.map +1 -1
  106. package/dist/renderers/plainText.js.map +1 -1
  107. package/dist/renderers/text.js.map +1 -1
  108. package/dist/theme.css +1 -1
  109. package/dist/types/agent/index.d.ts +2 -2
  110. package/dist/types/internal/anchor.d.ts +10 -2
  111. package/dist/types/internal/supports.d.ts +0 -5
  112. package/dist/types/renderers/NumberCell.vue.d.ts +2 -4
  113. package/dist/types/renderers/index.d.ts +3 -5
  114. package/dist/types/renderers/options.d.ts +45 -0
  115. package/dist/types/renderers/plainText.d.ts +2 -4
  116. package/dist/types/types.d.ts +35 -0
  117. package/dist/vue-grid.css +1 -1
  118. package/llms-full.txt +745 -396
  119. 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.3.0", t = "VGrid", n = [
2
+ var e = "0.3.2", t = "VGrid", n = [
3
3
  {
4
4
  name: "rows",
5
5
  type: "readonly T[]",
@@ -983,7 +983,7 @@ var e = "0.3.0", t = "VGrid", n = [
983
983
  name: "maxWidth",
984
984
  type: "string",
985
985
  required: !1,
986
- description: ""
986
+ description: "CSS max width of the text, e.g. `'16rem'`: longer text wraps or, with `ellipsis`, is cut."
987
987
  },
988
988
  {
989
989
  name: "preserveNewlines",
@@ -1007,7 +1007,7 @@ var e = "0.3.0", t = "VGrid", n = [
1007
1007
  name: "tone",
1008
1008
  type: "RowOption<Tone | undefined>",
1009
1009
  required: !1,
1010
- description: ""
1010
+ description: "Colour of the text (`success`, `danger`, `warning`, `info`, `neutral`, `accent`), or `(value, row) => tone`."
1011
1011
  },
1012
1012
  {
1013
1013
  name: "toneMode",
@@ -1019,7 +1019,7 @@ var e = "0.3.0", t = "VGrid", n = [
1019
1019
  name: "bold",
1020
1020
  type: "RowOption<boolean>",
1021
1021
  required: !1,
1022
- description: ""
1022
+ description: "Bold text, for every row or `(value, row) => boolean`."
1023
1023
  },
1024
1024
  {
1025
1025
  name: "secondary",
@@ -1037,7 +1037,7 @@ var e = "0.3.0", t = "VGrid", n = [
1037
1037
  name: "badgePosition",
1038
1038
  type: "'start' | 'end'",
1039
1039
  required: !1,
1040
- description: ""
1040
+ description: "Where `badge` goes: `start` (default, before the value) or `end`."
1041
1041
  },
1042
1042
  {
1043
1043
  name: "icon",
@@ -1076,7 +1076,7 @@ var e = "0.3.0", t = "VGrid", n = [
1076
1076
  name: "highlighted",
1077
1077
  type: "boolean | RowFn<boolean>",
1078
1078
  required: !1,
1079
- description: ""
1079
+ description: "Shown as switched on (highlighted, `aria-pressed`), e.g. `(v, row) => row.starred`."
1080
1080
  },
1081
1081
  {
1082
1082
  name: "placeholder",
@@ -1121,6 +1121,12 @@ var e = "0.3.0", t = "VGrid", n = [
1121
1121
  filterType: "number",
1122
1122
  defaults: "{ signed: true }",
1123
1123
  options: [
1124
+ {
1125
+ name: "signed",
1126
+ type: "boolean",
1127
+ required: !1,
1128
+ description: "Always show the sign (`+3`, `−2`). Default `true` for `signed-number`; `false` formats like `number`."
1129
+ },
1124
1130
  {
1125
1131
  name: "format",
1126
1132
  type: "Intl.NumberFormatOptions",
@@ -1138,12 +1144,6 @@ var e = "0.3.0", t = "VGrid", n = [
1138
1144
  type: "RowOption<boolean>",
1139
1145
  required: !1,
1140
1146
  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
1147
  }
1148
1148
  ]
1149
1149
  },
@@ -1254,7 +1254,7 @@ var e = "0.3.0", t = "VGrid", n = [
1254
1254
  name: "milliseconds",
1255
1255
  type: "boolean",
1256
1256
  required: !1,
1257
- description: ""
1257
+ description: "Show milliseconds in the time (`12:30:05.123`)."
1258
1258
  },
1259
1259
  {
1260
1260
  name: "twoLines",
@@ -1287,19 +1287,19 @@ var e = "0.3.0", t = "VGrid", n = [
1287
1287
  name: "trueLabel",
1288
1288
  type: "string",
1289
1289
  required: !1,
1290
- description: ""
1290
+ description: "Text for `true` (and its accessible name in icon mode). Default “Yes”."
1291
1291
  },
1292
1292
  {
1293
1293
  name: "falseLabel",
1294
1294
  type: "string",
1295
1295
  required: !1,
1296
- description: ""
1296
+ description: "Text for `false`. Default “No”."
1297
1297
  },
1298
1298
  {
1299
1299
  name: "nullLabel",
1300
1300
  type: "string",
1301
1301
  required: !1,
1302
- description: ""
1302
+ description: "Text for `null` / `undefined`. Default: nothing."
1303
1303
  },
1304
1304
  {
1305
1305
  name: "display",
@@ -1326,7 +1326,7 @@ var e = "0.3.0", t = "VGrid", n = [
1326
1326
  name: "tone",
1327
1327
  type: "ToneOption",
1328
1328
  required: !1,
1329
- description: ""
1329
+ description: "Badge colour: one tone, a value → tone map (`{ Paid: 'success', Open: 'info' }`), or `(value, row) => tone`. Default `neutral`."
1330
1330
  },
1331
1331
  {
1332
1332
  name: "label",
@@ -1338,7 +1338,7 @@ var e = "0.3.0", t = "VGrid", n = [
1338
1338
  name: "dot",
1339
1339
  type: "boolean",
1340
1340
  required: !1,
1341
- description: ""
1341
+ description: "A coloured dot before the label. Default `true`; `false` hides it."
1342
1342
  },
1343
1343
  {
1344
1344
  name: "variant",
@@ -1371,7 +1371,7 @@ var e = "0.3.0", t = "VGrid", n = [
1371
1371
  name: "href",
1372
1372
  type: "RowFn<string | undefined>",
1373
1373
  required: !1,
1374
- description: ""
1374
+ description: "The URL, from the value and row (default: the value). Only http(s), mailto and tel are linked; wins over `to`."
1375
1375
  },
1376
1376
  {
1377
1377
  name: "to",
@@ -1383,19 +1383,19 @@ var e = "0.3.0", t = "VGrid", n = [
1383
1383
  name: "label",
1384
1384
  type: "RowFn<string>",
1385
1385
  required: !1,
1386
- description: ""
1386
+ description: "Link text (default: the value)."
1387
1387
  },
1388
1388
  {
1389
1389
  name: "target",
1390
1390
  type: "'_self' | '_blank'",
1391
1391
  required: !1,
1392
- description: ""
1392
+ description: "`_blank` opens a new tab (with `rel=\"noopener noreferrer\"`)."
1393
1393
  },
1394
1394
  {
1395
1395
  name: "tooltip",
1396
1396
  type: "RowFn<string | undefined>",
1397
1397
  required: !1,
1398
- description: ""
1398
+ description: "Hover text of the link."
1399
1399
  }
1400
1400
  ]
1401
1401
  },
@@ -1422,19 +1422,19 @@ var e = "0.3.0", t = "VGrid", n = [
1422
1422
  name: "show",
1423
1423
  type: "RowFn<boolean>",
1424
1424
  required: !1,
1425
- description: ""
1425
+ description: "Show the icon for this row (default: always). A hidden icon keeps its space, so columns stay aligned."
1426
1426
  },
1427
1427
  {
1428
1428
  name: "label",
1429
1429
  type: "string | RowFn<string>",
1430
1430
  required: !1,
1431
- description: ""
1431
+ description: "Accessible name and tooltip. Without one the icon is decorative."
1432
1432
  },
1433
1433
  {
1434
1434
  name: "tone",
1435
1435
  type: "Tone | RowFn<Tone | undefined>",
1436
1436
  required: !1,
1437
- description: ""
1437
+ description: "Icon colour, or `(value, row) => tone`."
1438
1438
  }
1439
1439
  ]
1440
1440
  },
@@ -1448,12 +1448,12 @@ var e = "0.3.0", t = "VGrid", n = [
1448
1448
  name: "label",
1449
1449
  type: "string",
1450
1450
  required: !1,
1451
- description: ""
1451
+ description: "Text of the button that opens the JSON in a dialog. Default “View”."
1452
1452
  }, {
1453
1453
  name: "dialogTitle",
1454
1454
  type: "string | RowFn<string>",
1455
1455
  required: !1,
1456
- description: ""
1456
+ description: "Heading of the dialog (default: the column header)."
1457
1457
  }]
1458
1458
  },
1459
1459
  {
@@ -1491,7 +1491,7 @@ var e = "0.3.0", t = "VGrid", n = [
1491
1491
  name: "toggleLabel",
1492
1492
  type: "string",
1493
1493
  required: !1,
1494
- description: ""
1494
+ description: "Text of the `collapsed` toggle. Default “More info”."
1495
1495
  },
1496
1496
  {
1497
1497
  name: "emptyText",
@@ -1516,7 +1516,7 @@ var e = "0.3.0", t = "VGrid", n = [
1516
1516
  name: "label",
1517
1517
  type: "string",
1518
1518
  required: !1,
1519
- description: ""
1519
+ description: "Accessible name of the `⋯` button and the menu. Default “Actions”."
1520
1520
  }]
1521
1521
  },
1522
1522
  {
@@ -1530,7 +1530,7 @@ var e = "0.3.0", t = "VGrid", n = [
1530
1530
  name: "label",
1531
1531
  type: "string | RowFn<string>",
1532
1532
  required: !1,
1533
- description: ""
1533
+ description: "Button text (default: the value), or `(value, row) => text`."
1534
1534
  },
1535
1535
  {
1536
1536
  name: "action",
@@ -1542,19 +1542,19 @@ var e = "0.3.0", t = "VGrid", n = [
1542
1542
  name: "icon",
1543
1543
  type: "Component",
1544
1544
  required: !1,
1545
- description: ""
1545
+ description: "An icon component before the label."
1546
1546
  },
1547
1547
  {
1548
1548
  name: "tone",
1549
1549
  type: "Tone",
1550
1550
  required: !1,
1551
- description: ""
1551
+ description: "Button colour, e.g. `danger` for a delete button."
1552
1552
  },
1553
1553
  {
1554
1554
  name: "disabled",
1555
1555
  type: "RowFn<boolean>",
1556
1556
  required: !1,
1557
- description: ""
1557
+ description: "Disable the button for some rows: `(value, row) => boolean`."
1558
1558
  },
1559
1559
  {
1560
1560
  name: "visible",
@@ -1566,7 +1566,7 @@ var e = "0.3.0", t = "VGrid", n = [
1566
1566
  name: "variant",
1567
1567
  type: "ButtonVariant",
1568
1568
  required: !1,
1569
- description: ""
1569
+ description: "`outline` (default), `solid` or `ghost`."
1570
1570
  },
1571
1571
  {
1572
1572
  name: "iconOnly",
@@ -1605,7 +1605,7 @@ var e = "0.3.0", t = "VGrid", n = [
1605
1605
  name: "target",
1606
1606
  type: "'_self' | '_blank'",
1607
1607
  required: !1,
1608
- description: ""
1608
+ description: "`_blank` opens linked lines in a new tab."
1609
1609
  },
1610
1610
  {
1611
1611
  name: "placeholder",
@@ -1677,19 +1677,19 @@ var e = "0.3.0", t = "VGrid", n = [
1677
1677
  name: "label",
1678
1678
  type: "RowFn<string>",
1679
1679
  required: !1,
1680
- description: ""
1680
+ description: "Chip text (default: the value, or its `label` / `name` / `text` field). A tone map is keyed by this label."
1681
1681
  },
1682
1682
  {
1683
1683
  name: "tooltip",
1684
1684
  type: "RowFn<string | null | undefined>",
1685
1685
  required: !1,
1686
- description: ""
1686
+ description: "Hover text (default: the value's `description` field, if any)."
1687
1687
  },
1688
1688
  {
1689
1689
  name: "shape",
1690
1690
  type: "'square' | 'circle' | 'pill'",
1691
1691
  required: !1,
1692
- description: ""
1692
+ description: "`square` (default), `circle` or `pill`."
1693
1693
  },
1694
1694
  {
1695
1695
  name: "size",
@@ -1722,7 +1722,7 @@ var e = "0.3.0", t = "VGrid", n = [
1722
1722
  name: "disabled",
1723
1723
  type: "RowOption<boolean>",
1724
1724
  required: !1,
1725
- description: ""
1725
+ description: "Disabled for every row, or `(value, row) => boolean`."
1726
1726
  },
1727
1727
  {
1728
1728
  name: "disabledReason",
@@ -1755,7 +1755,7 @@ var e = "0.3.0", t = "VGrid", n = [
1755
1755
  name: "disabled",
1756
1756
  type: "RowOption<boolean>",
1757
1757
  required: !1,
1758
- description: ""
1758
+ description: "Disabled for every row, or `(value, row) => boolean`."
1759
1759
  },
1760
1760
  {
1761
1761
  name: "disabledReason",
@@ -1794,7 +1794,7 @@ var e = "0.3.0", t = "VGrid", n = [
1794
1794
  name: "disabled",
1795
1795
  type: "RowOption<boolean>",
1796
1796
  required: !1,
1797
- description: ""
1797
+ description: "Disabled for every row, or `(value, row) => boolean`."
1798
1798
  },
1799
1799
  {
1800
1800
  name: "disabledReason",
@@ -1839,13 +1839,13 @@ var e = "0.3.0", t = "VGrid", n = [
1839
1839
  name: "disabled",
1840
1840
  type: "RowOption<boolean>",
1841
1841
  required: !1,
1842
- description: ""
1842
+ description: "Disables the edit button, for every row or `(value, row) => boolean`."
1843
1843
  },
1844
1844
  {
1845
1845
  name: "bold",
1846
1846
  type: "boolean",
1847
1847
  required: !1,
1848
- description: ""
1848
+ description: "Bold text."
1849
1849
  }
1850
1850
  ]
1851
1851
  },
@@ -1872,7 +1872,7 @@ var e = "0.3.0", t = "VGrid", n = [
1872
1872
  name: "alt",
1873
1873
  type: "RowOption<string>",
1874
1874
  required: !1,
1875
- description: ""
1875
+ description: "Alternative text (default: none, a decorative image), or `(value, row) => text`."
1876
1876
  },
1877
1877
  {
1878
1878
  name: "size",
@@ -1884,13 +1884,13 @@ var e = "0.3.0", t = "VGrid", n = [
1884
1884
  name: "fit",
1885
1885
  type: "'contain' | 'cover'",
1886
1886
  required: !1,
1887
- description: ""
1887
+ description: "`contain` (default) shows the whole image; `cover` fills the box and crops."
1888
1888
  },
1889
1889
  {
1890
1890
  name: "shape",
1891
1891
  type: "'rounded' | 'circle' | 'square'",
1892
1892
  required: !1,
1893
- description: ""
1893
+ description: "`rounded` (default), `circle` (avatars) or `square`."
1894
1894
  }
1895
1895
  ]
1896
1896
  },
@@ -1937,7 +1937,7 @@ var e = "0.3.0", t = "VGrid", n = [
1937
1937
  name: "buttons",
1938
1938
  type: "ButtonSpec[] | ((row: any) => ButtonSpec[])",
1939
1939
  required: !1,
1940
- description: ""
1940
+ description: "The buttons (`{ name, label, tone?, variant?, disabled?, icon?, hidden? }`), or a function of the row. A click emits the button's `name`."
1941
1941
  }]
1942
1942
  },
1943
1943
  {
@@ -1981,7 +1981,7 @@ var e = "0.3.0", t = "VGrid", n = [
1981
1981
  name: "disabled",
1982
1982
  type: "RowOption<boolean>",
1983
1983
  required: !1,
1984
- description: ""
1984
+ description: "Disabled for every row, or `(value, row) => boolean`."
1985
1985
  }
1986
1986
  ]
1987
1987
  },
@@ -2002,7 +2002,7 @@ var e = "0.3.0", t = "VGrid", n = [
2002
2002
  name: "label",
2003
2003
  type: "RowFn<string>",
2004
2004
  required: !1,
2005
- description: ""
2005
+ description: "Badge text (default: the value)."
2006
2006
  },
2007
2007
  {
2008
2008
  name: "items",
@@ -2041,7 +2041,7 @@ var e = "0.3.0", t = "VGrid", n = [
2041
2041
  name: "itemLabel",
2042
2042
  type: "RowFn<string>",
2043
2043
  required: !1,
2044
- description: ""
2044
+ description: "Text of one item, `(item, row) => string` (default: the item, objects as JSON)."
2045
2045
  },
2046
2046
  {
2047
2047
  name: "max",
@@ -2082,12 +2082,12 @@ var e = "0.3.0", t = "VGrid", n = [
2082
2082
  name: "top",
2083
2083
  type: "RowKey[]",
2084
2084
  required: !1,
2085
- description: ""
2085
+ description: "Keys of the rows pinned above the body, in display order."
2086
2086
  }, {
2087
2087
  name: "bottom",
2088
2088
  type: "RowKey[]",
2089
2089
  required: !1,
2090
- description: ""
2090
+ description: "Keys of the rows pinned below the body, in display order."
2091
2091
  }],
2092
2092
  ColumnState: [
2093
2093
  {
@@ -2119,19 +2119,19 @@ var e = "0.3.0", t = "VGrid", n = [
2119
2119
  name: "key",
2120
2120
  type: "string",
2121
2121
  required: !0,
2122
- description: ""
2122
+ description: "The sorted column’s `key`."
2123
2123
  }, {
2124
2124
  name: "dir",
2125
2125
  type: "SortDir",
2126
2126
  required: !0,
2127
- description: ""
2127
+ description: "`asc` or `desc`."
2128
2128
  }],
2129
2129
  ColumnFilterOptions: [
2130
2130
  {
2131
2131
  name: "type",
2132
2132
  type: "FilterType",
2133
2133
  required: !1,
2134
- description: ""
2134
+ description: "`text`, `number`, `date`, `boolean` or `set` (default: from the renderer)."
2135
2135
  },
2136
2136
  {
2137
2137
  name: "options",
@@ -2151,13 +2151,13 @@ var e = "0.3.0", t = "VGrid", n = [
2151
2151
  name: "value",
2152
2152
  type: "unknown",
2153
2153
  required: !0,
2154
- description: ""
2154
+ description: "The value rows are matched against."
2155
2155
  },
2156
2156
  {
2157
2157
  name: "label",
2158
2158
  type: "string",
2159
2159
  required: !1,
2160
- description: ""
2160
+ description: "Text shown for the option (default: the value)."
2161
2161
  },
2162
2162
  {
2163
2163
  name: "count",
@@ -2177,25 +2177,25 @@ var e = "0.3.0", t = "VGrid", n = [
2177
2177
  name: "label",
2178
2178
  type: "string",
2179
2179
  required: !0,
2180
- description: ""
2180
+ description: "Text of the item."
2181
2181
  },
2182
2182
  {
2183
2183
  name: "disabled",
2184
2184
  type: "boolean",
2185
2185
  required: !1,
2186
- description: ""
2186
+ description: "Shown but can’t be chosen."
2187
2187
  },
2188
2188
  {
2189
2189
  name: "tone",
2190
2190
  type: "MenuTone",
2191
2191
  required: !1,
2192
- description: ""
2192
+ description: "Colour, e.g. `danger` for a delete item."
2193
2193
  },
2194
2194
  {
2195
2195
  name: "icon",
2196
2196
  type: "Component",
2197
2197
  required: !1,
2198
- description: ""
2198
+ description: "An icon component before the label."
2199
2199
  },
2200
2200
  {
2201
2201
  name: "hint",
@@ -2209,25 +2209,25 @@ var e = "0.3.0", t = "VGrid", n = [
2209
2209
  name: "row",
2210
2210
  type: "T",
2211
2211
  required: !0,
2212
- description: ""
2212
+ description: "The row the cell belongs to."
2213
2213
  },
2214
2214
  {
2215
2215
  name: "rowKey",
2216
2216
  type: "RowKey",
2217
2217
  required: !0,
2218
- description: ""
2218
+ description: "The row’s key (`row-key`)."
2219
2219
  },
2220
2220
  {
2221
2221
  name: "column",
2222
2222
  type: "ColumnDef<T>",
2223
2223
  required: !0,
2224
- description: ""
2224
+ description: "The cell’s column definition."
2225
2225
  },
2226
2226
  {
2227
2227
  name: "value",
2228
2228
  type: "unknown",
2229
2229
  required: !0,
2230
- description: ""
2230
+ description: "The cell value (`value` / `field` / `key`)."
2231
2231
  }
2232
2232
  ],
2233
2233
  CellActionEvent: [
@@ -2235,31 +2235,31 @@ var e = "0.3.0", t = "VGrid", n = [
2235
2235
  name: "name",
2236
2236
  type: "string",
2237
2237
  required: !0,
2238
- description: ""
2238
+ description: "The action, e.g. `click`, `change`, `toggle`, `copy` or a button’s `name`."
2239
2239
  },
2240
2240
  {
2241
2241
  name: "payload",
2242
2242
  type: "unknown",
2243
2243
  required: !0,
2244
- description: ""
2244
+ description: "Action data: the new value of a toggle or input, the copied text, a line index…"
2245
2245
  },
2246
2246
  {
2247
2247
  name: "row",
2248
2248
  type: "T",
2249
2249
  required: !0,
2250
- description: ""
2250
+ description: "The row the cell belongs to."
2251
2251
  },
2252
2252
  {
2253
2253
  name: "rowKey",
2254
2254
  type: "RowKey",
2255
2255
  required: !0,
2256
- description: ""
2256
+ description: "The row’s key (`row-key`)."
2257
2257
  },
2258
2258
  {
2259
2259
  name: "column",
2260
2260
  type: "ColumnDef<T>",
2261
2261
  required: !0,
2262
- description: ""
2262
+ description: "The cell’s column definition."
2263
2263
  }
2264
2264
  ],
2265
2265
  CellClickEvent: [
@@ -2267,31 +2267,31 @@ var e = "0.3.0", t = "VGrid", n = [
2267
2267
  name: "row",
2268
2268
  type: "T",
2269
2269
  required: !0,
2270
- description: ""
2270
+ description: "The row the cell belongs to."
2271
2271
  },
2272
2272
  {
2273
2273
  name: "rowKey",
2274
2274
  type: "RowKey",
2275
2275
  required: !0,
2276
- description: ""
2276
+ description: "The row’s key (`row-key`)."
2277
2277
  },
2278
2278
  {
2279
2279
  name: "column",
2280
2280
  type: "ColumnDef<T>",
2281
2281
  required: !0,
2282
- description: ""
2282
+ description: "The clicked column (one with `clickable: true`)."
2283
2283
  },
2284
2284
  {
2285
2285
  name: "value",
2286
2286
  type: "unknown",
2287
2287
  required: !0,
2288
- description: ""
2288
+ description: "The cell value."
2289
2289
  },
2290
2290
  {
2291
2291
  name: "event",
2292
2292
  type: "MouseEvent | KeyboardEvent",
2293
2293
  required: !0,
2294
- description: ""
2294
+ description: "The DOM event of the click (Enter on a focused cell clicks it too)."
2295
2295
  }
2296
2296
  ],
2297
2297
  ContextActionEvent: [
@@ -2299,37 +2299,37 @@ var e = "0.3.0", t = "VGrid", n = [
2299
2299
  name: "name",
2300
2300
  type: "string",
2301
2301
  required: !0,
2302
- description: ""
2302
+ description: "The chosen item’s `name`."
2303
2303
  },
2304
2304
  {
2305
2305
  name: "item",
2306
2306
  type: "MenuAction",
2307
2307
  required: !0,
2308
- description: ""
2308
+ description: "The chosen item."
2309
2309
  },
2310
2310
  {
2311
2311
  name: "row",
2312
2312
  type: "T",
2313
2313
  required: !0,
2314
- description: ""
2314
+ description: "The row the cell belongs to."
2315
2315
  },
2316
2316
  {
2317
2317
  name: "rowKey",
2318
2318
  type: "RowKey",
2319
2319
  required: !0,
2320
- description: ""
2320
+ description: "The row’s key (`row-key`)."
2321
2321
  },
2322
2322
  {
2323
2323
  name: "column",
2324
2324
  type: "ColumnDef<T>",
2325
2325
  required: !0,
2326
- description: ""
2326
+ description: "The cell’s column definition."
2327
2327
  },
2328
2328
  {
2329
2329
  name: "value",
2330
2330
  type: "unknown",
2331
2331
  required: !0,
2332
- description: ""
2332
+ description: "The cell value (`value` / `field` / `key`)."
2333
2333
  }
2334
2334
  ],
2335
2335
  HeaderActionEvent: [
@@ -2337,19 +2337,19 @@ var e = "0.3.0", t = "VGrid", n = [
2337
2337
  name: "name",
2338
2338
  type: "string",
2339
2339
  required: !0,
2340
- description: ""
2340
+ description: "The chosen item’s `name`."
2341
2341
  },
2342
2342
  {
2343
2343
  name: "item",
2344
2344
  type: "MenuAction",
2345
2345
  required: !0,
2346
- description: ""
2346
+ description: "The chosen item."
2347
2347
  },
2348
2348
  {
2349
2349
  name: "column",
2350
2350
  type: "ColumnDef<T>",
2351
2351
  required: !0,
2352
- description: ""
2352
+ description: "The column whose header menu it was."
2353
2353
  }
2354
2354
  ],
2355
2355
  VueGridConfig: [
@@ -2357,7 +2357,7 @@ var e = "0.3.0", t = "VGrid", n = [
2357
2357
  name: "renderers",
2358
2358
  type: "CellRendererDefinition[]",
2359
2359
  required: !1,
2360
- description: ""
2360
+ description: "Renderers every grid can use by name (`renderer: 'currency'`); `allRenderers` for all of them."
2361
2361
  },
2362
2362
  {
2363
2363
  name: "features",
@@ -2369,25 +2369,25 @@ var e = "0.3.0", t = "VGrid", n = [
2369
2369
  name: "locale",
2370
2370
  type: "string",
2371
2371
  required: !1,
2372
- description: ""
2372
+ description: "Default locale for number and date renderers (default: the browser’s)."
2373
2373
  },
2374
2374
  {
2375
2375
  name: "currency",
2376
2376
  type: "string",
2377
2377
  required: !1,
2378
- description: ""
2378
+ description: "Default ISO 4217 currency for currency renderers."
2379
2379
  },
2380
2380
  {
2381
2381
  name: "timeZone",
2382
2382
  type: "string",
2383
2383
  required: !1,
2384
- description: ""
2384
+ description: "Default IANA time zone for date renderers and date filters."
2385
2385
  },
2386
2386
  {
2387
2387
  name: "density",
2388
2388
  type: "Density",
2389
2389
  required: !1,
2390
- description: ""
2390
+ description: "Default density: `compact`, `cozy` (default) or `comfortable`."
2391
2391
  }
2392
2392
  ]
2393
2393
  }, d = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["apiJson","api_default","api","columnFeatures","featureExport","optOuts","propFeatures","validateGridConfig"],"sources":["../../src/agent/index.ts"],"sourcesContent":["/**\n * `@nocopypaste/vue-grid/agent`: the grid's API as data, and a validator for grid configs — for coding\n * agents, MCP servers and tooling. Not part of the main entry: apps never bundle it.\n *\n * ```ts\n * import { api, validateGridConfig } from '@nocopypaste/vue-grid/agent'\n * validateGridConfig({ columns, rowKey: 'id', features: ['sortingFeature'], sortMode: 'client' })\n * ```\n */\nimport apiJson from './api.json'\n\nexport { validateGridConfig, type Diagnostic, type GridConfigInput, type ValidationResult } from './validate'\nexport { columnFeatures, featureExport, optOuts, propFeatures, type FeatureId } from './requirements'\n\n/** One prop, model, column option, renderer option or type field. */\nexport interface ApiMember {\n name: string\n type: string\n required?: boolean\n default?: string\n description: string\n /** The feature it needs (`sorting` → `sortingFeature`). */\n feature?: string\n}\nexport interface ApiReference {\n package: string\n version: string\n component: 'VGrid'\n props: ApiMember[]\n models: ApiMember[]\n events: { name: string; payload: string; description: string }[]\n slots: { name: string; scope: string | null; description: string }[]\n methods: ApiMember[]\n column: ApiMember[]\n features: { id: string; export: string; description: string; props: string[]; columnOptions: string[] }[]\n renderers: {\n name: string\n export: string\n description: string\n align: string\n filterType: string\n defaults?: string\n options: ApiMember[]\n }[]\n types: Record<string, ApiMember[]>\n}\n\n/** Every prop, v-model, event, slot, method, column option, feature and renderer — generated from the sources. */\nexport const api = apiJson as ApiReference\n"],"mappings":";;;;AAgDA,IAAaE,IAAMF"}
1
+ {"version":3,"file":"index.js","names":["apiJson","api_default","api","columnFeatures","featureExport","optOuts","propFeatures","validateGridConfig"],"sources":["../../src/agent/index.ts"],"sourcesContent":["/**\n * `@nocopypaste/vue-grid/agent`: the grid's API as data, and a validator for grid configs — for coding\n * agents, MCP servers and tooling. Not part of the main entry: apps never bundle it.\n *\n * ```ts\n * import { api, validateGridConfig } from '@nocopypaste/vue-grid/agent'\n * validateGridConfig({ columns, rowKey: 'id', features: ['sortingFeature'], sortMode: 'client' })\n * ```\n */\nimport apiJson from './api.json'\n\nexport {\n validateGridConfig,\n type Diagnostic,\n type GridConfigInput,\n type ValidationResult,\n} from './validate'\nexport {\n columnFeatures,\n featureExport,\n optOuts,\n propFeatures,\n type FeatureId,\n} from './requirements'\n\n/** One prop, model, column option, renderer option or type field. */\nexport interface ApiMember {\n name: string\n type: string\n required?: boolean\n default?: string\n description: string\n /** The feature it needs (`sorting` → `sortingFeature`). */\n feature?: string\n}\nexport interface ApiReference {\n package: string\n version: string\n component: 'VGrid'\n props: ApiMember[]\n models: ApiMember[]\n events: { name: string; payload: string; description: string }[]\n slots: { name: string; scope: string | null; description: string }[]\n methods: ApiMember[]\n column: ApiMember[]\n features: {\n id: string\n export: string\n description: string\n props: string[]\n columnOptions: string[]\n }[]\n renderers: {\n name: string\n export: string\n description: string\n align: string\n filterType: string\n defaults?: string\n options: ApiMember[]\n }[]\n types: Record<string, ApiMember[]>\n}\n\n/** Every prop, v-model, event, slot, method, column option, feature and renderer — generated from the sources. */\nexport const api = apiJson as ApiReference\n"],"mappings":";;;;AAiEA,IAAaE,IAAMF"}