@fusion.dev/helix-headless 0.239.0 → 0.240.1

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 (89) hide show
  1. package/api.json +1 -1
  2. package/custom-elements.json +1 -1
  3. package/dist/column-manager/index.d.ts +1 -0
  4. package/dist/column-manager/index.js +1 -0
  5. package/dist/column-manager/root/column-manager-root.d.ts +137 -0
  6. package/dist/column-manager/root/column-manager-root.js +253 -0
  7. package/dist/data-table/binding.d.ts +85 -0
  8. package/dist/data-table/binding.js +58 -0
  9. package/dist/data-table/edit.d.ts +47 -0
  10. package/dist/data-table/edit.js +60 -0
  11. package/dist/data-table/events/before-cell-commit.d.ts +16 -0
  12. package/dist/data-table/events/before-cell-commit.js +11 -0
  13. package/dist/data-table/events/before-cell-edit.d.ts +13 -0
  14. package/dist/data-table/events/before-cell-edit.js +11 -0
  15. package/dist/data-table/events/before-export.d.ts +15 -0
  16. package/dist/data-table/events/before-export.js +11 -0
  17. package/dist/data-table/events/before-view-change.d.ts +16 -0
  18. package/dist/data-table/events/before-view-change.js +11 -0
  19. package/dist/data-table/events/cell-commit.d.ts +12 -0
  20. package/dist/data-table/events/cell-commit.js +11 -0
  21. package/dist/data-table/events/cell-edit.d.ts +11 -0
  22. package/dist/data-table/events/cell-edit.js +11 -0
  23. package/dist/data-table/events/details.d.ts +47 -0
  24. package/dist/data-table/events/export.d.ts +11 -0
  25. package/dist/data-table/events/export.js +11 -0
  26. package/dist/data-table/events/index.d.ts +18 -2
  27. package/dist/data-table/events/index.js +17 -1
  28. package/dist/data-table/events/view-change.d.ts +12 -0
  29. package/dist/data-table/events/view-change.js +11 -0
  30. package/dist/data-table/export.d.ts +43 -0
  31. package/dist/data-table/export.js +26 -0
  32. package/dist/data-table/index.d.ts +2 -0
  33. package/dist/data-table/index.js +2 -0
  34. package/dist/data-table/root/data-table-root.d.ts +406 -26
  35. package/dist/data-table/root/data-table-root.js +959 -30
  36. package/dist/data-table/view.d.ts +124 -0
  37. package/dist/data-table/view.js +249 -0
  38. package/dist/data-table/xlsx/index.d.ts +27 -0
  39. package/dist/data-table/xlsx/index.js +119 -0
  40. package/dist/date-input/root/date-input-root.d.ts +7 -0
  41. package/dist/date-input/root/date-input-root.js +9 -1
  42. package/dist/element-events.generated.js +9 -0
  43. package/dist/filter-input/root/filter-input-root.d.ts +31 -0
  44. package/dist/filter-input/root/filter-input-root.js +94 -12
  45. package/dist/filter-input/table.d.ts +64 -0
  46. package/dist/filter-input/table.js +76 -0
  47. package/dist/index.d.ts +5 -0
  48. package/dist/index.js +5 -0
  49. package/dist/input/root/input-root.d.ts +7 -0
  50. package/dist/input/root/input-root.js +9 -1
  51. package/dist/number-input/root/number-input-root.d.ts +7 -0
  52. package/dist/number-input/root/number-input-root.js +9 -1
  53. package/dist/quick-filters/events/before-view-save.d.ts +14 -0
  54. package/dist/quick-filters/events/before-view-save.js +11 -0
  55. package/dist/quick-filters/events/details.d.ts +10 -0
  56. package/dist/quick-filters/events/details.js +1 -0
  57. package/dist/quick-filters/events/index.d.ts +16 -0
  58. package/dist/quick-filters/events/index.js +9 -0
  59. package/dist/quick-filters/events/view-save.d.ts +11 -0
  60. package/dist/quick-filters/events/view-save.js +11 -0
  61. package/dist/quick-filters/filter/quick-filter.d.ts +48 -0
  62. package/dist/quick-filters/filter/quick-filter.js +33 -0
  63. package/dist/quick-filters/index.d.ts +3 -0
  64. package/dist/quick-filters/index.js +3 -0
  65. package/dist/quick-filters/root/quick-filters-root.d.ts +118 -0
  66. package/dist/quick-filters/root/quick-filters-root.js +183 -0
  67. package/dist/selection-bar/index.d.ts +1 -0
  68. package/dist/selection-bar/index.js +1 -0
  69. package/dist/selection-bar/root/selection-bar-root.d.ts +65 -0
  70. package/dist/selection-bar/root/selection-bar-root.js +44 -0
  71. package/dist/table/column/table-column.d.ts +82 -0
  72. package/dist/table/column/table-column.js +54 -0
  73. package/dist/table/column-type.d.ts +7 -0
  74. package/dist/table/column-type.js +1 -0
  75. package/dist/table-export/index.d.ts +1 -0
  76. package/dist/table-export/index.js +1 -0
  77. package/dist/table-export/root/table-export-root.d.ts +132 -0
  78. package/dist/table-export/root/table-export-root.js +233 -0
  79. package/dist/view-panel/index.d.ts +1 -0
  80. package/dist/view-panel/index.js +1 -0
  81. package/dist/view-panel/root/view-panel-root.d.ts +132 -0
  82. package/dist/view-panel/root/view-panel-root.js +209 -0
  83. package/examples.json +1 -1
  84. package/lint.json +1 -1
  85. package/package.json +5 -5
  86. package/types/jsx.d.ts +1231 -9
  87. package/types/svelte.d.ts +6 -0
  88. package/types/vue.d.ts +605 -6
  89. package/types/words.d.ts +305 -5
package/types/words.d.ts CHANGED
@@ -1098,6 +1098,63 @@ declare module '@fusion.dev/helix-core' {
1098
1098
  */
1099
1099
  valueMissingMessage: Message
1100
1100
  }
1101
+ 'helix-column-manager': {
1102
+ /**
1103
+ * The note on a column the table leaves out at its width.
1104
+ *
1105
+ * English: `Hidden at this width`
1106
+ */
1107
+ droppedLabel: Message
1108
+ /**
1109
+ * The name the element gives itself where `label` is empty.
1110
+ *
1111
+ * English: `Columns`
1112
+ */
1113
+ fallbackLabel: Message
1114
+ /**
1115
+ * What a screen reader hears after a move. `{name}` is the column's heading,
1116
+ * `{position}` its place and `{count}` the number of columns.
1117
+ *
1118
+ * English: `{name} moved to {position} of {count}`
1119
+ */
1120
+ movedLabel: Message
1121
+ /**
1122
+ * The name of a column's grip. `{name}` is the column's heading.
1123
+ *
1124
+ * English: `Move {name}`
1125
+ */
1126
+ moveLabel: Message
1127
+ /**
1128
+ * The name of the pin button on a column pinned to the start. `{name}` is its heading.
1129
+ *
1130
+ * English: `Pin {name} to the end`
1131
+ */
1132
+ pinEndLabel: Message
1133
+ /**
1134
+ * The note on a pinned column.
1135
+ *
1136
+ * English: `Pinned`
1137
+ */
1138
+ pinnedLabel: Message
1139
+ /**
1140
+ * The name of the pin button on a column that is not pinned. `{name}` is its heading.
1141
+ *
1142
+ * English: `Pin {name} to the start`
1143
+ */
1144
+ pinStartLabel: Message
1145
+ /**
1146
+ * The words on the button that puts the columns back.
1147
+ *
1148
+ * English: `Reset`
1149
+ */
1150
+ resetLabel: Message
1151
+ /**
1152
+ * The name of the pin button on a column pinned to the end. `{name}` is its heading.
1153
+ *
1154
+ * English: `Unpin {name}`
1155
+ */
1156
+ unpinLabel: Message
1157
+ }
1101
1158
  'helix-combobox': {
1102
1159
  /**
1103
1160
  * The button's label, read by screen readers, once every token is showing.
@@ -1279,6 +1336,12 @@ declare module '@fusion.dev/helix-core' {
1279
1336
  * English: `descending`
1280
1337
  */
1281
1338
  descendingLabel: Message
1339
+ /**
1340
+ * The words on the bar's button that discards the unsaved changes, with `batch-edits`.
1341
+ *
1342
+ * English: `Discard`
1343
+ */
1344
+ discardEditsLabel: Message
1282
1345
  /**
1283
1346
  * What screen readers hear when a row is dropped, with `reorderable-rows`.
1284
1347
  *
@@ -1316,6 +1379,18 @@ declare module '@fusion.dev/helix-core' {
1316
1379
  * English: `Load more`
1317
1380
  */
1318
1381
  loadMoreLabel: Message
1382
+ /**
1383
+ * The message for an edited cell over its column's `max`. `{max}` is the largest value.
1384
+ *
1385
+ * English: `Enter {max} or less.`
1386
+ */
1387
+ maxMessage: Message
1388
+ /**
1389
+ * The message for an edited cell under its column's `min`. `{min}` is the smallest value.
1390
+ *
1391
+ * English: `Enter {min} or more.`
1392
+ */
1393
+ minMessage: Message
1319
1394
  /**
1320
1395
  * What screen readers hear each time a key moves a held row, with
1321
1396
  * `reorderable-rows`. `{name}` is the row's name, `{position}` the place it
@@ -1349,6 +1424,12 @@ declare module '@fusion.dev/helix-core' {
1349
1424
  * English: `Next page`
1350
1425
  */
1351
1426
  nextLabel: Message
1427
+ /**
1428
+ * The message for an edited number cell that holds something other than a number.
1429
+ *
1430
+ * English: `Enter a number.`
1431
+ */
1432
+ numberMessage: Message
1352
1433
  /**
1353
1434
  * The built-in pagination's name for one page. `{page}` and `{pages}` are
1354
1435
  * replaced with the page number and the page count.
@@ -1362,6 +1443,12 @@ declare module '@fusion.dev/helix-core' {
1362
1443
  * English: `Pagination`
1363
1444
  */
1364
1445
  paginationLabel: Message
1446
+ /**
1447
+ * The message for an edited cell that does not match its column's `pattern`.
1448
+ *
1449
+ * English: `Enter a value in the form this column takes.`
1450
+ */
1451
+ patternMessage: Message
1365
1452
  /**
1366
1453
  * What screen readers hear when a key or a click picks up a row, with
1367
1454
  * `reorderable-rows`. `{name}` is the row's name.
@@ -1376,12 +1463,18 @@ declare module '@fusion.dev/helix-core' {
1376
1463
  */
1377
1464
  previousLabel: Message
1378
1465
  /**
1379
- * What screen readers hear when a search narrows the rows. `{count}` is how
1380
- * many rows are left, written in the locale, and each language writes the
1381
- * forms it has: `{count, plural, one {# wiersz} few {# wiersze} many
1382
- * {# wierszy} other {# wiersza}}`.
1466
+ * The message for an edited `required` cell left empty.
1383
1467
  *
1384
- * English: `{count, plural, one {# result} other {# results}}`
1468
+ * English: `Enter a value.`
1469
+ */
1470
+ requiredMessage: Message
1471
+ /**
1472
+ * What screen readers hear when a search or a filter narrows the rows.
1473
+ * `{count}` is how many rows are left and `{total}` how many there are,
1474
+ * written in the locale, and each language writes the forms it has:
1475
+ * `{count} z {total, plural, one {# wiersza} other {# wierszy}}`.
1476
+ *
1477
+ * English: `{count} of {total, plural, one {# row} other {# rows}}`
1385
1478
  */
1386
1479
  resultsLabel: Message
1387
1480
  /**
@@ -1390,6 +1483,18 @@ declare module '@fusion.dev/helix-core' {
1390
1483
  * English: `Move rows`
1391
1484
  */
1392
1485
  rowGripsLabel: Message
1486
+ /**
1487
+ * The words on the bar's button that saves the unsaved changes, with `batch-edits`.
1488
+ *
1489
+ * English: `Save`
1490
+ */
1491
+ saveEditsLabel: Message
1492
+ /**
1493
+ * What a screen reader hears beside a cell that is saving.
1494
+ *
1495
+ * English: `Saving`
1496
+ */
1497
+ savingLabel: Message
1393
1498
  /**
1394
1499
  * The name of the checkbox in the heading that selects every row.
1395
1500
  *
@@ -1439,6 +1544,12 @@ declare module '@fusion.dev/helix-core' {
1439
1544
  * English: `{direction, select, ascending {Sorted by {column}, ascending} descending {Sorted by {column}, descending} other {Sorted by {column}}}`
1440
1545
  */
1441
1546
  sortedLabel: Message
1547
+ /**
1548
+ * What the bar says, with `batch-edits`. `{count}` is how many changes are unsaved.
1549
+ *
1550
+ * English: `{count, plural, one {# unsaved change} other {# unsaved changes}}`
1551
+ */
1552
+ unsavedLabel: Message
1442
1553
  /**
1443
1554
  * What screen readers hear when the table stops being sorted.
1444
1555
  *
@@ -3853,6 +3964,32 @@ declare module '@fusion.dev/helix-core' {
3853
3964
  */
3854
3965
  codeLabel: Message
3855
3966
  }
3967
+ 'helix-quick-filters': {
3968
+ /**
3969
+ * The name the element gives itself where `label` is empty.
3970
+ *
3971
+ * English: `Quick filters`
3972
+ */
3973
+ fallbackLabel: Message
3974
+ /**
3975
+ * The name of the button that removes a saved view. `{name}` is the view's name.
3976
+ *
3977
+ * English: `Remove {name}`
3978
+ */
3979
+ removeLabel: Message
3980
+ /**
3981
+ * The name a saved view is given. `{count}` is how many views are saved, with this one.
3982
+ *
3983
+ * English: `View {count}`
3984
+ */
3985
+ savedLabel: Message
3986
+ /**
3987
+ * The words on the button that saves the view. Empty draws no button.
3988
+ *
3989
+ * English: `Save view`
3990
+ */
3991
+ saveLabel: Message
3992
+ }
3856
3993
  'helix-radio-group': {
3857
3994
  /**
3858
3995
  * The message reported when the field is required and no option is chosen.
@@ -4008,6 +4145,20 @@ declare module '@fusion.dev/helix-core' {
4008
4145
  */
4009
4146
  valueMissingMessage: Message
4010
4147
  }
4148
+ 'helix-selection-bar': {
4149
+ /**
4150
+ * The words on the button that clears the selection.
4151
+ *
4152
+ * English: `Clear`
4153
+ */
4154
+ clearLabel: Message
4155
+ /**
4156
+ * What the bar says. `{count}` is how many rows are selected.
4157
+ *
4158
+ * English: `{count} selected`
4159
+ */
4160
+ countLabel: Message
4161
+ }
4011
4162
  'helix-shortcut-overlay': {
4012
4163
  /**
4013
4164
  * What the sheet says when the page has no shortcuts.
@@ -4842,6 +4993,92 @@ declare module '@fusion.dev/helix-core' {
4842
4993
  */
4843
4994
  widthLabel: Message
4844
4995
  }
4996
+ 'helix-table-export': {
4997
+ /**
4998
+ * The words for every column. `{count}` is how many there are.
4999
+ *
5000
+ * English: `All ({count})`
5001
+ */
5002
+ allColumnsLabel: Message
5003
+ /**
5004
+ * The words for every row. `{count}` is how many there are.
5005
+ *
5006
+ * English: `All ({count})`
5007
+ */
5008
+ allRowsLabel: Message
5009
+ /**
5010
+ * The name of the group that chooses the columns.
5011
+ *
5012
+ * English: `Columns`
5013
+ */
5014
+ columnsLabel: Message
5015
+ /**
5016
+ * What a screen reader hears once the rows are copied. `{count}` is how many.
5017
+ *
5018
+ * English: `{count, plural, one {# row copied} other {# rows copied}}`
5019
+ */
5020
+ copiedLabel: Message
5021
+ /**
5022
+ * The words on the button that copies the rows.
5023
+ *
5024
+ * English: `Copy`
5025
+ */
5026
+ copyLabel: Message
5027
+ /**
5028
+ * The words on the button that saves the file. `{count}` is how many rows it holds.
5029
+ *
5030
+ * English: `{count, plural, one {Export # row} other {Export # rows}}`
5031
+ */
5032
+ exportLabel: Message
5033
+ /**
5034
+ * The words for the rows the search and the filters leave. `{count}` is how many.
5035
+ *
5036
+ * English: `Filtered ({count})`
5037
+ */
5038
+ filteredRowsLabel: Message
5039
+ /**
5040
+ * The name of the group that chooses the format.
5041
+ *
5042
+ * English: `Format`
5043
+ */
5044
+ formatLabel: Message
5045
+ /**
5046
+ * The words for the values as the rows hold them.
5047
+ *
5048
+ * English: `Raw`
5049
+ */
5050
+ rawLabel: Message
5051
+ /**
5052
+ * The name of the group that chooses the rows.
5053
+ *
5054
+ * English: `Rows`
5055
+ */
5056
+ rowsLabel: Message
5057
+ /**
5058
+ * The words for the selected rows. `{count}` is how many.
5059
+ *
5060
+ * English: `Selected ({count})`
5061
+ */
5062
+ selectedRowsLabel: Message
5063
+ /**
5064
+ * The words for the values as the cells show them.
5065
+ *
5066
+ * English: `As shown`
5067
+ */
5068
+ shownLabel: Message
5069
+ /**
5070
+ * The name of the group that chooses the values.
5071
+ *
5072
+ * English: `Values`
5073
+ */
5074
+ valuesLabel: Message
5075
+ /**
5076
+ * The words for the columns showing. `{count}` is how many.
5077
+ *
5078
+ * English: `Visible ({count})`
5079
+ */
5080
+ visibleColumnsLabel: Message
5081
+ }
4845
5082
  'helix-tabs': {
4846
5083
  }
4847
5084
  'helix-tag': {
@@ -5676,6 +5913,69 @@ declare module '@fusion.dev/helix-core' {
5676
5913
  */
5677
5914
  fallbackLabel: Message
5678
5915
  }
5916
+ 'helix-view-panel': {
5917
+ /**
5918
+ * The words on the button that returns to the list.
5919
+ *
5920
+ * English: `Back`
5921
+ */
5922
+ backLabel: Message
5923
+ /**
5924
+ * The name of the Columns section.
5925
+ *
5926
+ * English: `Columns`
5927
+ */
5928
+ columnsLabel: Message
5929
+ /**
5930
+ * The name of the Export section.
5931
+ *
5932
+ * English: `Export`
5933
+ */
5934
+ exportLabel: Message
5935
+ /**
5936
+ * The name the panel gives itself where `label` is empty.
5937
+ *
5938
+ * English: `View`
5939
+ */
5940
+ fallbackLabel: Message
5941
+ /**
5942
+ * The name of the Filters section.
5943
+ *
5944
+ * English: `Filters`
5945
+ */
5946
+ filtersLabel: Message
5947
+ /**
5948
+ * What the Sort and Filters sections say while nothing is set.
5949
+ *
5950
+ * English: `None`
5951
+ */
5952
+ noneLabel: Message
5953
+ /**
5954
+ * The words on the button that clears the search, the filters, and the sort.
5955
+ *
5956
+ * English: `Reset`
5957
+ */
5958
+ resetLabel: Message
5959
+ /**
5960
+ * The words on the button that closes the panel. `{count}` is how many rows the view shows.
5961
+ *
5962
+ * English: `{count, plural, one {Show # row} other {Show # rows}}`
5963
+ */
5964
+ showLabel: Message
5965
+ /**
5966
+ * One sort order, in the Sort section and its summary. `{column}` is the
5967
+ * column and `{direction}` is `ascending` or `descending`.
5968
+ *
5969
+ * English: `{column}, {direction, select, ascending {ascending} other {descending}}`
5970
+ */
5971
+ sortedLabel: Message
5972
+ /**
5973
+ * The name of the Sort section.
5974
+ *
5975
+ * English: `Sort`
5976
+ */
5977
+ sortLabel: Message
5978
+ }
5679
5979
  'helix-virtual-list': {
5680
5980
  /**
5681
5981
  * The text of the row drawn while `loading` is set, where the `loading` slot is empty.