@fusion.dev/helix-headless 0.148.0 → 0.149.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.
- package/custom-elements.json +6966 -1798
- package/dist/announcement/root/announcement-root.d.ts +5 -0
- package/dist/announcement/root/announcement-root.js +5 -2
- package/dist/area-chart/root/area-chart-root.d.ts +11 -0
- package/dist/area-chart/root/area-chart-root.js +20 -7
- package/dist/avatar/group/avatar-group.d.ts +10 -2
- package/dist/avatar/group/avatar-group.js +10 -5
- package/dist/badge/count.d.ts +6 -1
- package/dist/badge/count.js +3 -3
- package/dist/badge/root/badge-root.d.ts +6 -2
- package/dist/badge/root/badge-root.js +3 -3
- package/dist/bar-chart/root/bar-chart-root.d.ts +13 -1
- package/dist/bar-chart/root/bar-chart-root.js +17 -4
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +8 -1
- package/dist/breadcrumbs/root/breadcrumbs-root.js +5 -2
- package/dist/button/root/button-root.d.ts +10 -1
- package/dist/button/root/button-root.js +3 -2
- package/dist/button-group/root/button-group-root.d.ts +3 -0
- package/dist/button-group/root/button-group-root.js +2 -2
- package/dist/callout/root/callout-root.d.ts +16 -2
- package/dist/callout/root/callout-root.js +16 -4
- package/dist/canvas/describe.d.ts +10 -0
- package/dist/canvas/describe.js +9 -0
- package/dist/canvas/neighbor.d.ts +17 -0
- package/dist/canvas/neighbor.js +1 -0
- package/dist/canvas/node/canvas-node.js +3 -2
- package/dist/canvas/root/canvas-root.d.ts +65 -8
- package/dist/canvas/root/canvas-root.js +115 -49
- package/dist/carousel/root/carousel-root.d.ts +5 -0
- package/dist/carousel/root/carousel-root.js +16 -5
- package/dist/chat/composer/chat-composer.d.ts +5 -0
- package/dist/chat/composer/chat-composer.js +4 -1
- package/dist/chat/message/chat-message.d.ts +9 -5
- package/dist/chat/message/chat-message.js +8 -4
- package/dist/chat/naming.js +2 -2
- package/dist/chat/root/chat-root.d.ts +27 -1
- package/dist/chat/root/chat-root.js +37 -9
- package/dist/checkbox/root/checkbox-root.d.ts +11 -0
- package/dist/checkbox/root/checkbox-root.js +8 -2
- package/dist/checkbox-group/root/checkbox-group-root.d.ts +11 -0
- package/dist/checkbox-group/root/checkbox-group-root.js +11 -3
- package/dist/code-block/root/code-block-root.d.ts +12 -2
- package/dist/code-block/root/code-block-root.js +12 -2
- package/dist/color-input/root/color-input-root.d.ts +13 -0
- package/dist/color-input/root/color-input-root.js +18 -5
- package/dist/color-picker/root/color-picker-root.d.ts +19 -3
- package/dist/color-picker/root/color-picker-root.js +47 -13
- package/dist/combobox/root/combobox-root.d.ts +36 -7
- package/dist/combobox/root/combobox-root.js +37 -12
- package/dist/command/root/command-root.d.ts +15 -6
- package/dist/command/root/command-root.js +9 -4
- package/dist/copy-button/root/copy-button-root.d.ts +5 -0
- package/dist/copy-button/root/copy-button-root.js +7 -2
- package/dist/data-table/root/data-table-root.d.ts +171 -29
- package/dist/data-table/root/data-table-root.js +268 -118
- package/dist/date-input/root/date-input-root.d.ts +32 -9
- package/dist/date-input/root/date-input-root.js +66 -44
- package/dist/date-picker/root/date-picker-root.d.ts +38 -15
- package/dist/date-picker/root/date-picker-root.js +52 -33
- package/dist/dialog/root/dialog-root.d.ts +12 -1
- package/dist/dialog/root/dialog-root.js +11 -4
- package/dist/donut-chart/root/donut-chart-root.d.ts +5 -0
- package/dist/donut-chart/root/donut-chart-root.js +8 -5
- package/dist/drawer/root/drawer-root.d.ts +12 -1
- package/dist/drawer/root/drawer-root.js +9 -2
- package/dist/drilldown/root/drilldown-root.d.ts +5 -0
- package/dist/drilldown/root/drilldown-root.js +4 -1
- package/dist/element-events.generated.js +25 -3
- package/dist/file-input/root/file-input-root.d.ts +18 -3
- package/dist/file-input/root/file-input-root.js +34 -17
- package/dist/filter-input/chip/filter-chip.d.ts +13 -0
- package/dist/filter-input/chip/filter-chip.js +6 -1
- package/dist/filter-input/menu/filter-menu.d.ts +5 -0
- package/dist/filter-input/menu/filter-menu.js +3 -1
- package/dist/filter-input/root/filter-input-root.d.ts +20 -3
- package/dist/filter-input/root/filter-input-root.js +8 -4
- package/dist/format-date/root/format-date-root.d.ts +20 -2
- package/dist/format-date/root/format-date-root.js +5 -2
- package/dist/graph/root/graph-model.d.ts +11 -0
- package/dist/graph/root/graph-model.js +4 -0
- package/dist/graph/root/graph-root.d.ts +78 -9
- package/dist/graph/root/graph-root.js +124 -27
- package/dist/heatmap/root/heatmap-root.d.ts +25 -4
- package/dist/heatmap/root/heatmap-root.js +27 -7
- package/dist/icon-button/root/icon-button-root.d.ts +5 -0
- package/dist/icon-button/root/icon-button-root.js +1 -0
- package/dist/input/root/input-root.d.ts +5 -0
- package/dist/input/root/input-root.js +4 -1
- package/dist/lightbox/root/lightbox-root.d.ts +14 -4
- package/dist/lightbox/root/lightbox-root.js +25 -7
- package/dist/line-chart/root/line-chart-root.d.ts +5 -0
- package/dist/line-chart/root/line-chart-root.js +4 -2
- package/dist/list/item/list-item.d.ts +32 -0
- package/dist/list/item/list-item.js +34 -7
- package/dist/list/root/list-root.d.ts +87 -0
- package/dist/list/root/list-root.js +112 -2
- package/dist/listbox/reorder/index.d.ts +1 -0
- package/dist/listbox/reorder/index.js +4 -0
- package/dist/listbox/reorder/listbox-reorder.d.ts +83 -0
- package/dist/listbox/reorder/listbox-reorder.js +151 -0
- package/dist/listbox/root/listbox-root.d.ts +68 -11
- package/dist/listbox/root/listbox-root.js +41 -9
- package/dist/loader/root/loader-root.d.ts +5 -0
- package/dist/loader/root/loader-root.js +3 -1
- package/dist/map/area/map-area.d.ts +5 -0
- package/dist/map/area/map-area.js +3 -1
- package/dist/map/buildings/map-buildings.d.ts +5 -0
- package/dist/map/buildings/map-buildings.js +3 -1
- package/dist/map/contours/map-contours.d.ts +5 -0
- package/dist/map/contours/map-contours.js +3 -1
- package/dist/map/landcover/map-landcover.d.ts +5 -0
- package/dist/map/landcover/map-landcover.js +3 -1
- package/dist/map/marker/map-marker.d.ts +16 -1
- package/dist/map/marker/map-marker.js +13 -5
- package/dist/map/points/map-points.d.ts +5 -0
- package/dist/map/points/map-points.js +6 -4
- package/dist/map/position/map-position.d.ts +5 -0
- package/dist/map/position/map-position.js +3 -1
- package/dist/map/raster/map-raster.d.ts +5 -0
- package/dist/map/raster/map-raster.js +3 -1
- package/dist/map/root/map-root.d.ts +33 -14
- package/dist/map/root/map-root.js +59 -22
- package/dist/map/route/map-route.d.ts +5 -0
- package/dist/map/route/map-route.js +3 -1
- package/dist/map/terrain/map-terrain.d.ts +5 -0
- package/dist/map/terrain/map-terrain.js +3 -1
- package/dist/menu/root/menu-root.d.ts +5 -0
- package/dist/menu/root/menu-root.js +3 -1
- package/dist/meter/root/meter-root.d.ts +16 -3
- package/dist/meter/root/meter-root.js +12 -5
- package/dist/navigation/root/navigation-root.d.ts +5 -0
- package/dist/navigation/root/navigation-root.js +3 -1
- package/dist/notifications/notification/notification.d.ts +5 -0
- package/dist/notifications/notification/notification.js +3 -1
- package/dist/notifications/root/notifications-root.d.ts +8 -0
- package/dist/notifications/root/notifications-root.js +10 -2
- package/dist/number-input/root/number-input-root.d.ts +21 -8
- package/dist/number-input/root/number-input-root.js +26 -11
- package/dist/object-inspector/root/object-inspector-root.d.ts +51 -12
- package/dist/object-inspector/root/object-inspector-root.js +21 -20
- package/dist/outline/root/outline-root.d.ts +5 -0
- package/dist/outline/root/outline-root.js +3 -1
- package/dist/pagination/root/pagination-root.d.ts +7 -1
- package/dist/pagination/root/pagination-root.js +16 -7
- package/dist/pagination/size/pagination-size.d.ts +7 -3
- package/dist/pagination/size/pagination-size.js +4 -2
- package/dist/pagination/summary/pagination-summary.d.ts +8 -6
- package/dist/pagination/summary/pagination-summary.js +4 -9
- package/dist/pin-input/code.d.ts +6 -6
- package/dist/pin-input/code.js +1 -5
- package/dist/pin-input/root/pin-input-root.d.ts +9 -3
- package/dist/pin-input/root/pin-input-root.js +6 -2
- package/dist/popover/root/popover-root.d.ts +12 -2
- package/dist/popover/root/popover-root.js +10 -4
- package/dist/progress/root/progress-root.d.ts +7 -2
- package/dist/progress/root/progress-root.js +5 -2
- package/dist/qr-code/name.d.ts +3 -2
- package/dist/qr-code/name.js +2 -2
- package/dist/qr-code/root/qr-code-root.d.ts +12 -2
- package/dist/qr-code/root/qr-code-root.js +9 -2
- package/dist/radio/group/radio-group.d.ts +11 -0
- package/dist/radio/group/radio-group.js +8 -2
- package/dist/rating/root/rating-root.d.ts +12 -1
- package/dist/rating/root/rating-root.js +10 -3
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +20 -2
- package/dist/scatter-chart/root/scatter-chart-root.js +20 -5
- package/dist/select/root/select-root.d.ts +11 -0
- package/dist/select/root/select-root.js +13 -3
- package/dist/skip-link/root/skip-link-root.d.ts +5 -0
- package/dist/skip-link/root/skip-link-root.js +3 -1
- package/dist/slider/root/slider-root.d.ts +7 -2
- package/dist/slider/root/slider-root.js +11 -5
- package/dist/sparkline/readings.d.ts +15 -5
- package/dist/sparkline/readings.js +3 -3
- package/dist/sparkline/root/sparkline-root.d.ts +9 -4
- package/dist/sparkline/root/sparkline-root.js +9 -3
- package/dist/speed-dial/root/speed-dial-root.d.ts +5 -0
- package/dist/speed-dial/root/speed-dial-root.js +4 -1
- package/dist/splitter/root/splitter-root.d.ts +6 -1
- package/dist/splitter/root/splitter-root.js +9 -4
- package/dist/steps/root/steps-root.d.ts +9 -2
- package/dist/steps/root/steps-root.js +6 -3
- package/dist/steps/step/step.d.ts +12 -0
- package/dist/steps/step/step.js +11 -2
- package/dist/switch/root/switch-root.d.ts +11 -0
- package/dist/switch/root/switch-root.js +8 -2
- package/dist/table/column/table-column.d.ts +11 -4
- package/dist/table/column/table-column.js +15 -10
- package/dist/table/grid-controller.d.ts +8 -3
- package/dist/table/grid-controller.js +17 -11
- package/dist/table/root/table-root.d.ts +107 -5
- package/dist/table/root/table-root.js +122 -20
- package/dist/table/row/table-row.d.ts +42 -0
- package/dist/table/row/table-row.js +40 -1
- package/dist/tabs/root/tabs-root.d.ts +5 -0
- package/dist/tabs/root/tabs-root.js +3 -1
- package/dist/tag/group/tag-group.d.ts +5 -0
- package/dist/tag/group/tag-group.js +3 -1
- package/dist/tag/root/tag-root.d.ts +14 -1
- package/dist/tag/root/tag-root.js +11 -8
- package/dist/textarea/root/textarea-root.d.ts +5 -0
- package/dist/textarea/root/textarea-root.js +3 -1
- package/dist/time-input/root/time-input-root.d.ts +14 -7
- package/dist/time-input/root/time-input-root.js +43 -32
- package/dist/time-picker/root/time-picker-root.d.ts +15 -7
- package/dist/time-picker/root/time-picker-root.js +25 -12
- package/dist/toast/item/toast-item.d.ts +7 -0
- package/dist/toast/item/toast-item.js +1 -0
- package/dist/toast/root/toast-root.d.ts +9 -1
- package/dist/toast/root/toast-root.js +5 -4
- package/dist/toolbar/root/toolbar-root.d.ts +5 -0
- package/dist/toolbar/root/toolbar-root.js +5 -2
- package/dist/tooltip/root/tooltip-root.d.ts +27 -17
- package/dist/tour/root/tour-root.d.ts +8 -2
- package/dist/tour/root/tour-root.js +4 -2
- package/dist/tour/stop/tour-stop.d.ts +5 -0
- package/dist/tour/stop/tour-stop.js +6 -1
- package/dist/tree/grip.d.ts +5 -0
- package/dist/tree/grip.js +1 -0
- package/dist/tree/item/tree-item.d.ts +24 -0
- package/dist/tree/item/tree-item.js +27 -5
- package/dist/tree/root/tree-root.d.ts +66 -1
- package/dist/tree/root/tree-root.js +77 -5
- package/dist/trend/root/trend-root.d.ts +20 -4
- package/dist/trend/root/trend-root.js +20 -5
- package/dist/video/root/video-root.d.ts +12 -3
- package/dist/video/root/video-root.js +41 -14
- package/dist/video-playlist/menu/video-playlist-menu.d.ts +5 -0
- package/dist/video-playlist/menu/video-playlist-menu.js +3 -1
- package/dist/video-playlist/root/video-playlist-root.d.ts +5 -0
- package/dist/video-playlist/root/video-playlist-root.js +3 -1
- package/dist/virtual-list/root/virtual-list-root.d.ts +19 -3
- package/dist/virtual-list/root/virtual-list-root.js +5 -2
- package/lint.json +1 -1
- package/package.json +9 -8
- package/types/jsx.d.ts +4014 -1862
- package/types/vue.d.ts +1266 -624
- package/types/words.d.ts +3280 -0
- package/dist/toast/hotkey.d.ts +0 -22
- package/dist/toast/hotkey.js +0 -23
|
@@ -94,6 +94,19 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
|
|
|
94
94
|
* is written to `order` as a list of fields. Your markup is not rewritten: the
|
|
95
95
|
* table assigns the headings to its header in that order.
|
|
96
96
|
*
|
|
97
|
+
* **`reorderable-rows` lets people move rows.** A column of grips leads each
|
|
98
|
+
* row, named by `move-row-label`. Drag a grip to move its row, and the table
|
|
99
|
+
* scrolls near an edge. Or press Space or Enter on a grip, or click it, to pick
|
|
100
|
+
* up its row, move it with Down and Up, Home and End, and press Space or Enter
|
|
101
|
+
* again to drop it. A click on another row drops it there, and Escape puts it
|
|
102
|
+
* back. The table says each step in its `live` region. A drop sends
|
|
103
|
+
* `helix-before-reorder`, which you can refuse, and then `helix-reorder` with
|
|
104
|
+
* `kind` set to `row`, whose `keys` hold every key of `rows` in the new order.
|
|
105
|
+
* **You move the rows**: set `rows` to the new order, and the table draws it.
|
|
106
|
+
* Set `row-key`, so a row is known by its key once it has moved. The grips do
|
|
107
|
+
* nothing while a `sort` is set, since the sort decides the order, and a tree
|
|
108
|
+
* grid draws none.
|
|
109
|
+
*
|
|
97
110
|
* `csv()` returns the result as text: every row that passes the filter, in the
|
|
98
111
|
* order and the columns on screen. Saving the file is up to you.
|
|
99
112
|
*
|
|
@@ -114,12 +127,13 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
|
|
|
114
127
|
* @slot toolbar - Content above the grid, such as a search field or actions.
|
|
115
128
|
*
|
|
116
129
|
* @event {HelixActivateEvent} helix-activate - Fired after the page changes, with the new page as a string in `detail.value`.
|
|
130
|
+
* @event {HelixBeforeReorderEvent} helix-before-reorder - A row is about to move, with `reorderable-rows`. The event carries every row's key in the new order. Cancelable: cancel it to keep the row where it is.
|
|
117
131
|
* @event {HelixExpandEvent} helix-expand - Fired after a row opens or closes, with every open row's key, separated by commas, which `expanded` also holds.
|
|
118
132
|
* @event {HelixFilterEvent} helix-filter - The search query is about to change. Cancelable: cancel it to keep the current query.
|
|
119
133
|
* @event {HelixFilteredEvent} helix-filtered - Fired after the search query changes, with the new query.
|
|
120
134
|
* @event {HelixLoadMoreEvent} helix-load-more - Fired when a reader asks for more rows, by the `load-more` row's button or by scrolling a `windowed` table near its end.
|
|
121
135
|
* @event {HelixNavigateEvent} helix-navigate - Another page was requested. Cancelable: cancel it to stay on the current page.
|
|
122
|
-
* @event {HelixReorderEvent} helix-reorder - The columns are about to move
|
|
136
|
+
* @event {HelixReorderEvent} helix-reorder - The columns are about to move, with `kind` set to `column` and every field in the new order. Cancelable: cancel it to keep the current order. For a row, with `kind` set to `row`, it follows `helix-before-reorder`, and you set `rows` to the order in `keys`.
|
|
123
137
|
* @event {HelixReorderedEvent} helix-reordered - Fired after the columns move, with every field in the new order.
|
|
124
138
|
* @event {HelixSelectEvent} helix-select - The selection is about to change. The event carries every selected key, separated by commas. Cancelable: cancel it to keep the current selection.
|
|
125
139
|
* @event {HelixSelectedEvent} helix-selected - Fired after the selection changes, with every selected key, separated by commas.
|
|
@@ -142,8 +156,10 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
|
|
|
142
156
|
* @csspart checkbox-mark-checked - Added to `checkbox-mark` while its box is checked.
|
|
143
157
|
* @csspart checkbox-mark-dash - Added to `checkbox-mark` while it draws the dash, which it keeps until its box is checked.
|
|
144
158
|
* @csspart checkbox-mark-indeterminate - Added to `checkbox-mark` while only some rows are selected.
|
|
159
|
+
* @csspart drag-preview - A copy of the row a pointer drags by its grip, which follows the pointer in the top layer until the row is let go, with `reorderable-rows`. A column's grip moves the column itself. Hidden from assistive technology.
|
|
145
160
|
* @csspart empty - Shown when there are no rows, because none arrived or the filter matches none. While rows are loading, the `loading` part is shown in its place.
|
|
146
161
|
* @csspart footer - The region below the grid.
|
|
162
|
+
* @csspart grip-head - The heading over the row grips, with `reorderable-rows`.
|
|
147
163
|
* @csspart head - The row that holds the column headings. It is `display: contents`, so it takes no space.
|
|
148
164
|
* @csspart live - A copy of the empty and loading messages, which screen readers announce when they change. Visually hidden in the styled tier.
|
|
149
165
|
* @csspart loading - Shown while the rows are loading.
|
|
@@ -164,6 +180,12 @@ declare const HelixHeadlessDataTable_base: (new (...args: any[]) => import("@fus
|
|
|
164
180
|
* @csspart pagination-previous - The pagination's button that goes back one page.
|
|
165
181
|
* @csspart pagination-status - The pagination's text that says which page is shown, in `compact`.
|
|
166
182
|
* @csspart row - One row of data.
|
|
183
|
+
* @csspart row-dragging - Added to `row` while it is being moved.
|
|
184
|
+
* @csspart row-drop-after - Added to `row` when the row being moved goes after it.
|
|
185
|
+
* @csspart row-drop-before - Added to `row` when the row being moved goes before it.
|
|
186
|
+
* @csspart row-grip - The cell that holds a row's grip, with `reorderable-rows`.
|
|
187
|
+
* @csspart row-grip-button - The button that moves a row.
|
|
188
|
+
* @csspart row-grip-mark - The icon on a row's grip.
|
|
167
189
|
* @csspart select - The cell that holds a row's checkbox.
|
|
168
190
|
* @csspart select-all - The heading that holds the checkbox that selects every row.
|
|
169
191
|
* @csspart select-selected - Added to `select` in a selected row.
|
|
@@ -189,8 +211,24 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
189
211
|
* same reason.
|
|
190
212
|
*/
|
|
191
213
|
static shadowRootOptions: ShadowRootInit;
|
|
192
|
-
/**
|
|
214
|
+
/**
|
|
215
|
+
* The key this family's words are registered under, its styled tag:
|
|
216
|
+
* `registerWords('de', { 'helix-data-table': { nextLabel: 'Nächste Seite' } })`.
|
|
217
|
+
*/
|
|
218
|
+
static words: string;
|
|
219
|
+
/**
|
|
220
|
+
* The word for an ascending sort, in a `sorted-label` that writes `{order}`.
|
|
221
|
+
*
|
|
222
|
+
* @deprecated Write the whole sentence for each order in `sorted-label`, with
|
|
223
|
+
* `{direction, select, ascending {...} descending {...} other {...}}`.
|
|
224
|
+
* Removed in the next major version.
|
|
225
|
+
*/
|
|
193
226
|
ascendingLabel: string;
|
|
227
|
+
/**
|
|
228
|
+
* What screen readers hear when a held row is put back, or a move is
|
|
229
|
+
* refused, with `reorderable-rows`.
|
|
230
|
+
*/
|
|
231
|
+
canceledLabel: string;
|
|
194
232
|
/**
|
|
195
233
|
* The field that holds a row's child rows, as an array. Set it, and `row-key`,
|
|
196
234
|
* and the grid becomes a tree grid.
|
|
@@ -229,8 +267,16 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
229
267
|
* The starting sort order, used until `sort` is set.
|
|
230
268
|
*/
|
|
231
269
|
defaultSort: string;
|
|
232
|
-
/**
|
|
270
|
+
/**
|
|
271
|
+
* The word for a descending sort, in a `sorted-label` that writes `{order}`.
|
|
272
|
+
*
|
|
273
|
+
* @deprecated Write the whole sentence for each order in `sorted-label`, with
|
|
274
|
+
* `{direction, select, ascending {...} descending {...} other {...}}`.
|
|
275
|
+
* Removed in the next major version.
|
|
276
|
+
*/
|
|
233
277
|
descendingLabel: string;
|
|
278
|
+
/** What screen readers hear when a row is dropped, with `reorderable-rows`. */
|
|
279
|
+
droppedLabel: string;
|
|
234
280
|
/**
|
|
235
281
|
* The estimated height of a row before it is drawn, in pixels.
|
|
236
282
|
*
|
|
@@ -275,6 +321,12 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
275
321
|
loadMore: boolean;
|
|
276
322
|
/** The words on the button in the `more` row. */
|
|
277
323
|
loadMoreLabel: string;
|
|
324
|
+
/**
|
|
325
|
+
* The locale the words, plural forms, and numbers are in, as a BCP 47 tag
|
|
326
|
+
* such as `pl`. Empty reads the nearest `lang`, then the browser's
|
|
327
|
+
* language. The built-in pagination speaks it too.
|
|
328
|
+
*/
|
|
329
|
+
locale: string;
|
|
278
330
|
/**
|
|
279
331
|
* Where filtering, sorting, and paging happen. `client` does them in the
|
|
280
332
|
* table, and `server` leaves them to your code.
|
|
@@ -287,6 +339,17 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
287
339
|
* inverts the data flow.
|
|
288
340
|
*/
|
|
289
341
|
mode: 'client' | 'server';
|
|
342
|
+
/**
|
|
343
|
+
* What screen readers hear each time a key moves a held row, with
|
|
344
|
+
* `reorderable-rows`. `{name}` is the row's name, `{position}` the place it
|
|
345
|
+
* would go, counting from 1, and `{count}` the number of rows on the page.
|
|
346
|
+
*/
|
|
347
|
+
movedLabel: string;
|
|
348
|
+
/**
|
|
349
|
+
* The name of a row's grip, with `reorderable-rows`. `{row}` is replaced with
|
|
350
|
+
* the row's name.
|
|
351
|
+
*/
|
|
352
|
+
moveRowLabel: string;
|
|
290
353
|
/** The built-in pagination's name for the button that moves forward a page. */
|
|
291
354
|
nextLabel: string;
|
|
292
355
|
/**
|
|
@@ -337,6 +400,11 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
337
400
|
set paginated(next: boolean);
|
|
338
401
|
/** The name of the built-in pagination's navigation landmark. */
|
|
339
402
|
paginationLabel: string;
|
|
403
|
+
/**
|
|
404
|
+
* What screen readers hear when a key or a click picks up a row, with
|
|
405
|
+
* `reorderable-rows`. `{name}` is the row's name.
|
|
406
|
+
*/
|
|
407
|
+
pickedUpLabel: string;
|
|
340
408
|
/** The built-in pagination's name for the button that moves back a page. */
|
|
341
409
|
previousLabel: string;
|
|
342
410
|
/**
|
|
@@ -346,13 +414,28 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
346
414
|
* place at a time with the arrow keys once it has focus.
|
|
347
415
|
*/
|
|
348
416
|
reorderable: boolean;
|
|
349
|
-
/** What screen readers hear when a search leaves one row. `{count}` is the count. */
|
|
350
|
-
resultLabel: string;
|
|
351
417
|
/**
|
|
352
|
-
*
|
|
353
|
-
* `
|
|
418
|
+
* Lets people move rows, by a grip that leads each row. The table moves no
|
|
419
|
+
* row itself: set `rows` to the order `helix-reorder` carries.
|
|
420
|
+
*/
|
|
421
|
+
reorderableRows: boolean;
|
|
422
|
+
/**
|
|
423
|
+
* What screen readers hear when a search leaves one row, where
|
|
424
|
+
* `results-label` should not say it. `{count}` is the count.
|
|
425
|
+
*
|
|
426
|
+
* @deprecated Write every form in `results-label`, as `{count, plural, one
|
|
427
|
+
* {# result} other {# results}}`. Removed in the next major version.
|
|
428
|
+
*/
|
|
429
|
+
resultLabel?: string;
|
|
430
|
+
/**
|
|
431
|
+
* What screen readers hear when a search narrows the rows. `{count}` is how
|
|
432
|
+
* many rows are left, written in the locale, and each language writes the
|
|
433
|
+
* forms it has: `{count, plural, one {# wiersz} few {# wiersze} many
|
|
434
|
+
* {# wierszy} other {# wiersza}}`.
|
|
354
435
|
*/
|
|
355
436
|
resultsLabel: string;
|
|
437
|
+
/** The name of the heading over the row grips, with `reorderable-rows`. */
|
|
438
|
+
rowGripsLabel: string;
|
|
356
439
|
/**
|
|
357
440
|
* The field that identifies each row.
|
|
358
441
|
*
|
|
@@ -402,7 +485,9 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
402
485
|
set selected(next: string);
|
|
403
486
|
/**
|
|
404
487
|
* What screen readers hear when the chosen rows change. `{count}` is how many
|
|
405
|
-
* rows are chosen
|
|
488
|
+
* rows are chosen, written in the locale, and a language that needs plural
|
|
489
|
+
* forms writes them: `{count, plural, one {# wybrany} few {# wybrane} many
|
|
490
|
+
* {# wybranych} other {# wybranego}}`.
|
|
406
491
|
*/
|
|
407
492
|
selectedLabel: string;
|
|
408
493
|
/**
|
|
@@ -422,7 +507,9 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
422
507
|
set sort(next: string);
|
|
423
508
|
/**
|
|
424
509
|
* What screen readers hear when the table is sorted. `{column}` is the
|
|
425
|
-
* column's heading and `{
|
|
510
|
+
* column's heading and `{direction}` is `ascending` or `descending`, so each
|
|
511
|
+
* order has its whole sentence. `{order}` is the deprecated
|
|
512
|
+
* `ascending-label` or `descending-label`.
|
|
426
513
|
*/
|
|
427
514
|
sortedLabel: string;
|
|
428
515
|
/**
|
|
@@ -495,10 +582,24 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
495
582
|
private shiftPressed;
|
|
496
583
|
/** The grid's size as the last render counted it, for the internals. */
|
|
497
584
|
private counts;
|
|
498
|
-
/**
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
585
|
+
/**
|
|
586
|
+
* A column dragged by its grip. The headings follow the pointer and the
|
|
587
|
+
* order is asked for once it lets go, so a consumer hears one order and not
|
|
588
|
+
* the dozen a drag passes through. The arrow keys on a grip move a column a
|
|
589
|
+
* place each, which `handleGripKey` does, so this only drags.
|
|
590
|
+
*/
|
|
591
|
+
private readonly columnMoves;
|
|
592
|
+
/**
|
|
593
|
+
* A row moved by its grip, with `reorderable-rows`. The rows are the page's,
|
|
594
|
+
* so a drop asks the page to set them in the new order.
|
|
595
|
+
*/
|
|
596
|
+
private readonly rowMoves;
|
|
597
|
+
/**
|
|
598
|
+
* The row drawn for a key on this page, or nothing for a row outside the
|
|
599
|
+
* window: the one kept drawn beside it for the tab stop is not where the
|
|
600
|
+
* row belongs.
|
|
601
|
+
*/
|
|
602
|
+
private lineOf;
|
|
502
603
|
/** Said once, so a table that re-renders does not repeat it. */
|
|
503
604
|
private warnedAboutKey;
|
|
504
605
|
private readonly virtualize;
|
|
@@ -577,8 +678,14 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
577
678
|
* on, where `row-key` says, and otherwise the same place, held to the page.
|
|
578
679
|
*/
|
|
579
680
|
private currentRow;
|
|
580
|
-
/** How many cells a row has: the checkbox and every drawn column. */
|
|
681
|
+
/** How many cells a row has: the grip, the checkbox and every drawn column. */
|
|
581
682
|
private get width();
|
|
683
|
+
/** Whether each row leads with a grip: `reorderable-rows`, in a table that is not a tree. */
|
|
684
|
+
private get rowGrips();
|
|
685
|
+
/** The column the checkboxes are in: the first, or the one after the grips. */
|
|
686
|
+
private get selectAt();
|
|
687
|
+
/** How many cells lead each row ahead of the columns: the grips and the checkboxes. */
|
|
688
|
+
private get lead();
|
|
582
689
|
/** The column holding the tab stop, held to the row's width. */
|
|
583
690
|
private get currentColumn();
|
|
584
691
|
/** The columns declared as children, in the order they are written. */
|
|
@@ -591,6 +698,8 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
591
698
|
* where it was written: it has nothing to be named by.
|
|
592
699
|
*/
|
|
593
700
|
get orderedColumns(): HelixHeadlessTableColumn[];
|
|
701
|
+
/** The columns put in an order of fields, with the ones it does not name after them. */
|
|
702
|
+
private arrangeColumns;
|
|
594
703
|
/**
|
|
595
704
|
* The columns drawn: the arranged ones less any that are hidden.
|
|
596
705
|
*
|
|
@@ -603,6 +712,8 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
603
712
|
private get shownColumns();
|
|
604
713
|
/** The fields in the order on screen. */
|
|
605
714
|
private get fields();
|
|
715
|
+
/** The fields of the columns drawn, in the order on screen: what a grip moves among. */
|
|
716
|
+
private get shownFields();
|
|
606
717
|
/** The columns reduced to what the ordering needs. */
|
|
607
718
|
private get axes();
|
|
608
719
|
/** The track list, from the columns if there are any. */
|
|
@@ -716,7 +827,10 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
716
827
|
* consumer refuses the local reorder, fetches, and hands back a new set.
|
|
717
828
|
*/
|
|
718
829
|
private requestSort;
|
|
719
|
-
/**
|
|
830
|
+
/**
|
|
831
|
+
* Asks for the columns in a different order, as every field in the new one,
|
|
832
|
+
* with `field` the one that moved.
|
|
833
|
+
*/
|
|
720
834
|
private requestOrder;
|
|
721
835
|
/** Asks for a different set of selected rows. */
|
|
722
836
|
private requestSelected;
|
|
@@ -740,6 +854,33 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
740
854
|
* Shift held it selects every row from the one last chosen.
|
|
741
855
|
*/
|
|
742
856
|
private readonly toggleRow;
|
|
857
|
+
/**
|
|
858
|
+
* What a row is known by when it moves: its `row-key`, or its place in
|
|
859
|
+
* `rows`, which is the order `helix-reorder` gives back.
|
|
860
|
+
*/
|
|
861
|
+
private moveKeyOf;
|
|
862
|
+
/** Each row's place in `rows`, kept while `rows` is the same array, for `moveKeyOf`. */
|
|
863
|
+
private rowPlaces;
|
|
864
|
+
/**
|
|
865
|
+
* Each drawn row's place in the page by its key, kept while the page is the
|
|
866
|
+
* same array, so a drag asks for a row's box without a search per row.
|
|
867
|
+
*/
|
|
868
|
+
private pagePlaces;
|
|
869
|
+
/** What `pagePlaces` keeps. */
|
|
870
|
+
private pageKeyed;
|
|
871
|
+
/** A row's name: its row header's value, or its key where it has none. */
|
|
872
|
+
private rowName;
|
|
873
|
+
/**
|
|
874
|
+
* Asks the page to move a row: `helix-before-reorder`, which can refuse it,
|
|
875
|
+
* then `helix-reorder`, with every key of `rows` in the new order. A row a
|
|
876
|
+
* search hides keeps its place among the rest. Reports whether it stood.
|
|
877
|
+
*/
|
|
878
|
+
private requestRowMove;
|
|
879
|
+
/**
|
|
880
|
+
* Says a step of a move in the live region. Emptied first, so the same
|
|
881
|
+
* words twice are heard twice, and filled a frame later.
|
|
882
|
+
*/
|
|
883
|
+
private say;
|
|
743
884
|
/** The keys of the rows on the page, in the order they are drawn. */
|
|
744
885
|
private get pageKeys();
|
|
745
886
|
/**
|
|
@@ -776,8 +917,6 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
776
917
|
* order and nothing on screen. A hidden column keeps its place among the rest.
|
|
777
918
|
*/
|
|
778
919
|
private moveColumn;
|
|
779
|
-
/** Every field in order, with one taken out and put back beside another. */
|
|
780
|
-
private placed;
|
|
781
920
|
/**
|
|
782
921
|
* Returns the result as CSV: every row that matches the filter, in the order
|
|
783
922
|
* and columns shown, under a line of the column headings.
|
|
@@ -826,6 +965,11 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
826
965
|
private heardSelected;
|
|
827
966
|
/** The search last heard, for the same reason. */
|
|
828
967
|
private heardFilter;
|
|
968
|
+
/**
|
|
969
|
+
* The sentence a sort is said in: `sorted-label` with the column, and the
|
|
970
|
+
* order both as `{direction}` and as the deprecated `{order}` word.
|
|
971
|
+
*/
|
|
972
|
+
private sortSaid;
|
|
829
973
|
/**
|
|
830
974
|
* What the table says after a sort or a change to the chosen rows.
|
|
831
975
|
*
|
|
@@ -938,6 +1082,16 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
938
1082
|
private renderSpacer;
|
|
939
1083
|
/** The controller owns the geometry; this is only what tells it to look again. */
|
|
940
1084
|
private readonly handleScroll;
|
|
1085
|
+
/**
|
|
1086
|
+
* The cell that leads a row with its grip, with `reorderable-rows`.
|
|
1087
|
+
*
|
|
1088
|
+
* The cell takes focus, as every cell of the grid does, and Space or Enter
|
|
1089
|
+
* on it picks up the row. The button inside is what a pointer and a screen
|
|
1090
|
+
* reader press. `aria-disabled` while a sort decides the order.
|
|
1091
|
+
*/
|
|
1092
|
+
private renderGrip;
|
|
1093
|
+
/** The heading over the row grips, named by `row-grips-label`. */
|
|
1094
|
+
private renderGripHead;
|
|
941
1095
|
/** The heading of the checkbox column, which selects the whole result. */
|
|
942
1096
|
private renderSelectAll;
|
|
943
1097
|
/**
|
|
@@ -1040,18 +1194,6 @@ export declare class HelixHeadlessDataTable extends HelixHeadlessDataTable_base
|
|
|
1040
1194
|
private partIn;
|
|
1041
1195
|
/** The arrow keys on a grip move its column a place, along the writing direction. */
|
|
1042
1196
|
private readonly handleGripKey;
|
|
1043
|
-
/**
|
|
1044
|
-
* A grip taken hold of: the headings follow the pointer and the order is asked
|
|
1045
|
-
* for once it lets go.
|
|
1046
|
-
*
|
|
1047
|
-
* Previewed without an event, because a drag passes through a dozen orders on
|
|
1048
|
-
* its way to the one the reader meant, and a consumer should hear the one.
|
|
1049
|
-
*/
|
|
1050
|
-
private readonly handleGripDown;
|
|
1051
|
-
private readonly handleGripMove;
|
|
1052
|
-
private readonly handleGripUp;
|
|
1053
|
-
private readonly handleGripCancel;
|
|
1054
|
-
private stopDrag;
|
|
1055
1197
|
/**
|
|
1056
1198
|
* A column asked for a width. The column keeps its own, so all this does is
|
|
1057
1199
|
* draw the grid again once it has, a microtask on, when the width has landed.
|