@fusion.dev/helix-headless 0.247.1 → 0.248.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/api.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/accordion/root/accordion-root.d.ts +10 -1
- package/dist/announcement/root/announcement-root.d.ts +8 -7
- package/dist/app-header/root/app-header-root.d.ts +12 -8
- package/dist/area-chart/root/area-chart-root.d.ts +12 -4
- package/dist/avatar/root/avatar-root.d.ts +3 -0
- package/dist/badge/root/badge-root.d.ts +2 -6
- package/dist/bar-chart/root/bar-chart-root.d.ts +10 -2
- package/dist/blockquote/root/blockquote-root.d.ts +7 -4
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +9 -3
- package/dist/button/root/button-root.d.ts +7 -8
- package/dist/button-group/root/button-group-root.d.ts +7 -3
- package/dist/callout/root/callout-root.d.ts +5 -2
- package/dist/canvas/root/canvas-root.d.ts +8 -7
- package/dist/card/root/card-root.d.ts +4 -0
- package/dist/carousel/root/carousel-root.d.ts +11 -3
- package/dist/chat/root/chat-root.d.ts +15 -16
- package/dist/checkbox/root/checkbox-root.d.ts +6 -3
- package/dist/checkbox-group/root/checkbox-group-root.d.ts +12 -8
- package/dist/code/root/code-root.d.ts +6 -3
- package/dist/code-block/root/code-block-root.d.ts +14 -7
- package/dist/code-editor/root/code-editor-root.d.ts +17 -6
- package/dist/code-input/root/code-input-root.d.ts +10 -5
- package/dist/color-input/root/color-input-root.d.ts +7 -0
- package/dist/color-picker/root/color-picker-root.d.ts +6 -0
- package/dist/column-manager/root/column-manager-root.d.ts +12 -4
- package/dist/combobox/root/combobox-root.d.ts +6 -12
- package/dist/command/root/command-root.d.ts +13 -8
- package/dist/copy-button/root/copy-button-root.d.ts +8 -3
- package/dist/data-table/root/data-table-root.d.ts +18 -14
- package/dist/date-input/root/date-input-root.d.ts +8 -0
- package/dist/date-picker/root/date-picker-root.d.ts +11 -7
- package/dist/description-list/root/description-list-root.d.ts +6 -0
- package/dist/device-screen/root/device-screen-root.d.ts +13 -8
- package/dist/dialog/root/dialog-root.d.ts +6 -4
- package/dist/divider/root/divider-root.d.ts +6 -4
- package/dist/donut-chart/root/donut-chart-root.d.ts +8 -6
- package/dist/drawer/root/drawer-root.d.ts +8 -10
- package/dist/drilldown/root/drilldown-root.d.ts +11 -6
- package/dist/editor/root/editor-root.d.ts +11 -2
- package/dist/empty/root/empty-root.d.ts +6 -4
- package/dist/file-input/root/file-input-root.d.ts +5 -0
- package/dist/filter-input/root/filter-input-root.d.ts +20 -28
- package/dist/find/root/find-root.d.ts +9 -0
- package/dist/format-date/root/format-date-root.d.ts +9 -4
- package/dist/graph/root/graph-root.d.ts +10 -4
- package/dist/heatmap/root/heatmap-root.d.ts +10 -3
- package/dist/hover-card/root/hover-card-root.d.ts +8 -6
- package/dist/icon/root/icon-root.d.ts +7 -3
- package/dist/icon-button/root/icon-button-root.d.ts +4 -0
- package/dist/image/root/image-root.d.ts +4 -0
- package/dist/input/root/input-root.d.ts +9 -2
- package/dist/kbd/root/kbd-root.d.ts +7 -11
- package/dist/legend/root/legend-root.d.ts +10 -7
- package/dist/lightbox/root/lightbox-root.d.ts +15 -8
- package/dist/line-chart/root/line-chart-root.d.ts +12 -7
- package/dist/list/root/list-root.d.ts +16 -11
- package/dist/listbox/root/listbox-root.d.ts +10 -17
- package/dist/loader/root/loader-root.d.ts +12 -8
- package/dist/log/root/log-root.d.ts +11 -3
- package/dist/map/root/map-root.d.ts +11 -6
- package/dist/markdown/root/markdown-root.d.ts +12 -8
- package/dist/megamenu/root/megamenu-root.d.ts +6 -3
- package/dist/menu/root/menu-root.d.ts +14 -21
- package/dist/meter/root/meter-root.d.ts +14 -7
- package/dist/motion-toggle/root/motion-toggle-root.d.ts +5 -0
- package/dist/navigation/root/navigation-root.d.ts +9 -3
- package/dist/notifications/root/notifications-root.d.ts +9 -8
- package/dist/number-input/root/number-input-root.d.ts +6 -1
- package/dist/object-inspector/root/object-inspector-root.d.ts +13 -5
- package/dist/option/root/option-root.d.ts +10 -5
- package/dist/outline/root/outline-root.d.ts +6 -3
- package/dist/pagination/root/pagination-root.d.ts +9 -6
- package/dist/pin-input/root/pin-input-root.d.ts +6 -0
- package/dist/popover/root/popover-root.d.ts +11 -8
- package/dist/progress/root/progress-root.d.ts +12 -7
- package/dist/qr-code/root/qr-code-root.d.ts +6 -2
- package/dist/quick-filters/root/quick-filters-root.d.ts +10 -5
- package/dist/quote/root/quote-root.d.ts +5 -5
- package/dist/radio/root/radio-root.d.ts +6 -3
- package/dist/rating/root/rating-root.d.ts +10 -5
- package/dist/scatter-chart/root/scatter-chart-root.d.ts +13 -7
- package/dist/scroll-area/root/scroll-area-root.d.ts +3 -0
- package/dist/select/root/select-root.d.ts +8 -15
- package/dist/selection-bar/root/selection-bar-root.d.ts +11 -6
- package/dist/shortcut-overlay/root/shortcut-overlay-root.d.ts +9 -7
- package/dist/skeleton/root/skeleton-root.d.ts +8 -9
- package/dist/skip-link/root/skip-link-root.d.ts +2 -0
- package/dist/slider/root/slider-root.d.ts +13 -7
- package/dist/sparkline/root/sparkline-root.d.ts +8 -10
- package/dist/spatial-bar-chart/root/spatial-bar-chart-root.d.ts +6 -0
- package/dist/spatial-heatmap/root/spatial-heatmap-root.d.ts +7 -0
- package/dist/spatial-ribbon-chart/root/spatial-ribbon-chart-root.d.ts +6 -0
- package/dist/spatial-scatter-chart/root/spatial-scatter-chart-root.d.ts +7 -0
- package/dist/spatial-surface-chart/root/spatial-surface-chart-root.d.ts +7 -0
- package/dist/spatial-treemap/root/spatial-treemap-root.d.ts +6 -0
- package/dist/speed-dial/root/speed-dial-root.d.ts +12 -4
- package/dist/splitter/root/splitter-root.d.ts +16 -13
- package/dist/stat/root/stat-root.d.ts +13 -7
- package/dist/steps/root/steps-root.d.ts +5 -3
- package/dist/switch/root/switch-root.d.ts +6 -1
- package/dist/table/root/table-root.d.ts +13 -8
- package/dist/table-export/root/table-export-root.d.ts +10 -2
- package/dist/tabs/root/tabs-root.d.ts +10 -2
- package/dist/tag/root/tag-root.d.ts +3 -3
- package/dist/terminal/root/terminal-root.d.ts +12 -5
- package/dist/textarea/root/textarea-root.d.ts +7 -0
- package/dist/theme-toggle/root/theme-toggle-root.d.ts +8 -3
- package/dist/time-input/root/time-input-root.d.ts +10 -4
- package/dist/time-picker/root/time-picker-root.d.ts +12 -9
- package/dist/timeline/root/timeline-root.d.ts +18 -10
- package/dist/toast/root/toast-root.d.ts +14 -14
- package/dist/toggle/root/toggle-root.d.ts +3 -0
- package/dist/toolbar/root/toolbar-root.d.ts +4 -0
- package/dist/tooltip/root/tooltip-root.d.ts +5 -5
- package/dist/tour/root/tour-root.d.ts +10 -3
- package/dist/tree/root/tree-root.d.ts +9 -2
- package/dist/trend/root/trend-root.d.ts +10 -5
- package/dist/video/root/video-root.d.ts +12 -9
- package/dist/video-playlist/root/video-playlist-root.d.ts +10 -5
- package/dist/view-panel/root/view-panel-root.d.ts +13 -7
- package/dist/virtual-list/root/virtual-list-root.d.ts +12 -7
- package/lint.json +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +266 -623
- package/types/vue.d.ts +267 -624
|
@@ -15,8 +15,7 @@ interface ExportChoices {
|
|
|
15
15
|
* @summary A panel that exports a Data Table's rows: which rows, which columns, which values, and the format.
|
|
16
16
|
*
|
|
17
17
|
* @description
|
|
18
|
-
* Set `for` to the id of a `DataTable
|
|
19
|
-
* a `Dialog` opened by an Export button.
|
|
18
|
+
* Set `for` to the id of a `DataTable`.
|
|
20
19
|
*
|
|
21
20
|
* ```html
|
|
22
21
|
* <helix-table-export for="invoices"></helix-table-export>
|
|
@@ -38,6 +37,15 @@ interface ExportChoices {
|
|
|
38
37
|
* @status experimental
|
|
39
38
|
* @category data
|
|
40
39
|
* @aliases Download, Export dialog
|
|
40
|
+
* @use A file or a copy of a Data Table's rows, in the columns and format you pick.
|
|
41
|
+
* @instead copy-button - One string copied to the clipboard.
|
|
42
|
+
* @instead column-manager - The columns a table shows on the page.
|
|
43
|
+
* @anatomy rows
|
|
44
|
+
* @anatomy columns
|
|
45
|
+
* @anatomy values
|
|
46
|
+
* @anatomy format
|
|
47
|
+
* @anatomy actions
|
|
48
|
+
* @practice Put Table Export in a Popover or a Dialog opened by an Export button. - The panel is the content, and it draws no trigger of its own.
|
|
41
49
|
* @documentation https://fusion.dev/helix/components/table-export
|
|
42
50
|
*
|
|
43
51
|
* @csspart actions - The row that holds Copy and Export.
|
|
@@ -13,8 +13,7 @@ declare const HelixHeadlessTabs_base: (new (...args: any[]) => import("@fusion.d
|
|
|
13
13
|
* The tab list is a single tab stop, and the arrow keys move between tabs
|
|
14
14
|
* through `KeyboardNavigationController`, the same as in the radio and toggle
|
|
15
15
|
* groups. Selection follows focus, which suits a small set where showing a
|
|
16
|
-
* panel is cheap.
|
|
17
|
-
* move without selecting.
|
|
16
|
+
* panel is cheap.
|
|
18
17
|
*
|
|
19
18
|
* `orientation="vertical"` sets the tabs in a column beside the panels, and the
|
|
20
19
|
* tab list says `aria-orientation="vertical"`. The arrow keys of both axes move
|
|
@@ -73,6 +72,15 @@ declare const HelixHeadlessTabs_base: (new (...args: any[]) => import("@fusion.d
|
|
|
73
72
|
* @status stable
|
|
74
73
|
* @category navigation
|
|
75
74
|
* @aliases TabList, Segmented control
|
|
75
|
+
* @use Panels of one page that you switch between, such as Overview and Activity.
|
|
76
|
+
* @instead toggle - A choice that changes how one view looks, such as list or grid.
|
|
77
|
+
* @instead accordion - Sections stacked on the page, opened one or more at a time.
|
|
78
|
+
* @instead navigation - Links to other pages, with the current one marked.
|
|
79
|
+
* @anatomy tab
|
|
80
|
+
* @anatomy indicator
|
|
81
|
+
* @anatomy panel
|
|
82
|
+
* @practice {manual} Set `manual` where showing a panel is expensive. - Under `manual`, the arrow keys move focus without selecting.
|
|
83
|
+
* @practice Put a control that adds a tab, such as a plus, beside the set. - The tab list then holds tabs alone.
|
|
76
84
|
* @documentation https://fusion.dev/helix/components/tabs
|
|
77
85
|
*
|
|
78
86
|
* @slot - The tabs, as direct children of this element.
|
|
@@ -9,9 +9,7 @@ declare const HelixHeadlessTag_base: (new (...args: any[]) => import("@fusion.de
|
|
|
9
9
|
* from a badge: a badge shows a state that people cannot change, and a tag
|
|
10
10
|
* names something they can remove.
|
|
11
11
|
*
|
|
12
|
-
* The remove button sends `helix-dismiss`.
|
|
13
|
-
* because your code owns the list it is in, so remove it in your handler. A
|
|
14
|
-
* listener can cancel `helix-dismiss`, and `dismiss()` then returns `false`.
|
|
12
|
+
* The remove button sends `helix-dismiss`. A listener can cancel `helix-dismiss`, and `dismiss()` then returns `false`.
|
|
15
13
|
* When the handler removes a tag whose remove button has focus, focus moves to
|
|
16
14
|
* the next tag's remove button, or to the previous one's after the last tag.
|
|
17
15
|
*
|
|
@@ -42,6 +40,8 @@ declare const HelixHeadlessTag_base: (new (...args: any[]) => import("@fusion.de
|
|
|
42
40
|
* @use A word that classifies content, such as a status or a topic.
|
|
43
41
|
* @instead badge - A count pinned to another element.
|
|
44
42
|
* @instead button - A word that performs an action.
|
|
43
|
+
* @anatomy label
|
|
44
|
+
* @practice {group} Remove a dismissed tag in your listener. - The tag does not remove itself, because your code owns the list it is in.
|
|
45
45
|
* @documentation https://fusion.dev/helix/components/tag
|
|
46
46
|
*
|
|
47
47
|
* @slot - The tag's label.
|
|
@@ -118,9 +118,8 @@ export interface TerminalSink {
|
|
|
118
118
|
*
|
|
119
119
|
* The controls are a row in the header, and `controls` names which ones:
|
|
120
120
|
* `find`, `copy`, `clear`, and `fullscreen`. `find clear` by default. A control
|
|
121
|
-
* the renderer cannot answer is left out once it is connected.
|
|
122
|
-
*
|
|
123
|
-
* and shows a Restart button that sends `helix-terminal-restart`.
|
|
121
|
+
* the renderer cannot answer is left out once it is connected. The Restart
|
|
122
|
+
* button shown once the process exits sends `helix-terminal-restart`.
|
|
124
123
|
*
|
|
125
124
|
* **Keyboard.** Every key goes to the program, Tab, Shift+Tab, and Escape
|
|
126
125
|
* included, except these:
|
|
@@ -139,13 +138,21 @@ export interface TerminalSink {
|
|
|
139
138
|
* screen reader reads nothing in it by default. Set `screen-reader-mode` to
|
|
140
139
|
* have the renderer keep the grid as lines a screen reader can move through
|
|
141
140
|
* and announce new output as it arrives, which xterm.js calls screen reader
|
|
142
|
-
* mode.
|
|
143
|
-
* a setting your reader can turn on.
|
|
141
|
+
* mode.
|
|
144
142
|
*
|
|
145
143
|
* @since 0.209.0
|
|
146
144
|
* @status experimental
|
|
147
145
|
* @category media
|
|
148
146
|
* @aliases Terminal emulator, Shell, xterm
|
|
147
|
+
* @use A shell session on the page, drawn by xterm.js or another terminal emulator.
|
|
148
|
+
* @instead log - Output that you only read, such as a build log.
|
|
149
|
+
* @instead code-block - A command or its output, fixed, to read and copy.
|
|
150
|
+
* @anatomy label
|
|
151
|
+
* @anatomy controls
|
|
152
|
+
* @anatomy viewport
|
|
153
|
+
* @practice Set `exit-code` when the process exits. - The frame says how it exited, stops sending input, and shows a Restart button.
|
|
154
|
+
* @practice Connect `screen-reader-mode` to a setting your reader can turn on. - It costs time on every write, so it is off by default.
|
|
155
|
+
* @practice {in-a-pane} Set `fill` for a terminal that fills a pane, such as one side of a Splitter, and give the pane a position, such as relative. - The frame covers its container.
|
|
149
156
|
* @documentation https://fusion.dev/helix/components/terminal
|
|
150
157
|
*
|
|
151
158
|
* @slot - The element your renderer draws the terminal in.
|
|
@@ -35,6 +35,13 @@ declare const HelixHeadlessTextarea_base: (new (...args: any[]) => import("@fusi
|
|
|
35
35
|
* @status stable
|
|
36
36
|
* @category forms
|
|
37
37
|
* @aliases Multiline, TextArea
|
|
38
|
+
* @use Text that runs to several lines, such as a description or a comment.
|
|
39
|
+
* @instead input - A single line of text, such as a name.
|
|
40
|
+
* @instead code-input - A short piece of code, highlighted as you type.
|
|
41
|
+
* @instead editor - A document with headings, lists, and links.
|
|
42
|
+
* @anatomy label
|
|
43
|
+
* @anatomy field
|
|
44
|
+
* @anatomy hint?
|
|
38
45
|
* @documentation https://fusion.dev/helix/components/textarea
|
|
39
46
|
*
|
|
40
47
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
@@ -14,9 +14,7 @@ import { type TemplateResult } from 'lit';
|
|
|
14
14
|
* Two of these on one page agree, and a page can set the mode in its markup,
|
|
15
15
|
* or from its own code with `setColorMode` from `@fusion.dev/helix-core`,
|
|
16
16
|
* which takes the same transitions. With no attribute the page follows the
|
|
17
|
-
* reader's system setting, and the button says which mode that is.
|
|
18
|
-
* reader's choice across visits, listen for `change` and write the mode into
|
|
19
|
-
* the page you serve next.
|
|
17
|
+
* reader's system setting, and the button says which mode that is.
|
|
20
18
|
*
|
|
21
19
|
* **The one Helix component that starts a view transition.** A view transition
|
|
22
20
|
* draws the whole document twice and runs between the two pictures, so a
|
|
@@ -35,6 +33,13 @@ import { type TemplateResult } from 'lit';
|
|
|
35
33
|
* @status experimental
|
|
36
34
|
* @category actions
|
|
37
35
|
* @aliases Dark mode toggle, Color mode switch, Light and dark switch, Theme switcher
|
|
36
|
+
* @use A control in the page's header that switches the page between light and dark.
|
|
37
|
+
* @instead toggle - A choice among light, dark, and the system setting.
|
|
38
|
+
* @instead switch - A color mode setting among the other settings of a form.
|
|
39
|
+
* @instead motion-toggle - A press that pauses the motion on the page.
|
|
40
|
+
* @anatomy button
|
|
41
|
+
* @anatomy icon
|
|
42
|
+
* @practice Listen for the change event, and write the mode into the next page you serve. - The button sets the mode on the page in front of you, and the next page starts from its own markup.
|
|
38
43
|
* @documentation https://fusion.dev/helix/components/theme-toggle
|
|
39
44
|
*
|
|
40
45
|
* @slot - The button's text, where it shows more than its icon. Defaults to nothing, the icon alone, named by `label`.
|
|
@@ -15,10 +15,7 @@ declare const HelixHeadlessTimeInput_base: (new (...args: any[]) => import("@fus
|
|
|
15
15
|
* You can type a time or pick one. The list offers times at a step, and the
|
|
16
16
|
* field lets you enter any time, such as `09:07`.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
* `seconds`, because that is what the form
|
|
20
|
-
* submits, what `min` and `max` compare against, and what sorts correctly as a
|
|
21
|
-
* string. While idle, the field shows the time in the user's locale format.
|
|
18
|
+
* While idle, the field shows the time in the user's locale format.
|
|
22
19
|
* Once the caret is in the field, it shows the value itself. You can type
|
|
23
20
|
* `14:30`, or a time as you write one, such as `2:30 PM`, `2.30pm`, or
|
|
24
21
|
* `14h30`, and the field reads it as you leave it, with AM and PM in the
|
|
@@ -65,6 +62,15 @@ declare const HelixHeadlessTimeInput_base: (new (...args: any[]) => import("@fus
|
|
|
65
62
|
* @status stable
|
|
66
63
|
* @category forms
|
|
67
64
|
* @aliases TimeField, InputTime
|
|
65
|
+
* @use A time in a form, typed or picked from a panel that opens, such as a start time.
|
|
66
|
+
* @instead time-picker - A list of times you choose from on the page, such as booking slots.
|
|
67
|
+
* @instead date-input - A date in a form.
|
|
68
|
+
* @anatomy label
|
|
69
|
+
* @anatomy field
|
|
70
|
+
* @anatomy trigger
|
|
71
|
+
* @anatomy hint?
|
|
72
|
+
* @anatomy surface
|
|
73
|
+
* @practice Write `value`, `min`, and `max` as 24-hour `HH:mm`, or `HH:mm:ss` with `seconds`. - The form submits that shape, and it sorts correctly as a string.
|
|
68
74
|
* @documentation https://fusion.dev/helix/components/time-input
|
|
69
75
|
*
|
|
70
76
|
* @slot clear-icon - Replaces the cross on the clear button, under `clearable`.
|
|
@@ -18,18 +18,14 @@ declare const HelixHeadlessTimePicker_base: (new (...args: any[]) => import("@fu
|
|
|
18
18
|
* draws a button that chooses the current time, on the step and inside the
|
|
19
19
|
* bounds.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* way Date Input separates typing a date from picking one on the calendar.
|
|
21
|
+
* Use the list for the times your product offers, and Time Input for any
|
|
22
|
+
* time, the same way Date Input separates typing a date from picking one on
|
|
23
|
+
* the calendar.
|
|
25
24
|
*
|
|
26
|
-
*
|
|
27
|
-
* `seconds`. A form submits that shape,
|
|
28
|
-
* `min` and `max` compare against it, and it sorts as a string. Each row's text
|
|
29
|
-
* follows the person's own conventions, from `Intl`.
|
|
25
|
+
* Each row's text follows the person's own conventions, from `Intl`.
|
|
30
26
|
*
|
|
31
27
|
* The chosen row is marked in the served markup. The listbox gets the answer as
|
|
32
|
-
* `.value`, and Lit SSR serializes no property binding, so without more the
|
|
28
|
+
* `.value`, and Lit SSR serializes no property binding, so without more the
|
|
33
29
|
* served rows would carry no mark until the listbox upgrades and runs `place`.
|
|
34
30
|
* Each option also gets `selected`, an attribute binding that does serialize,
|
|
35
31
|
* and `place` then writes the same answer from the same value. This is the same
|
|
@@ -65,6 +61,13 @@ declare const HelixHeadlessTimePicker_base: (new (...args: any[]) => import("@fu
|
|
|
65
61
|
* @status stable
|
|
66
62
|
* @category forms
|
|
67
63
|
* @aliases Time, TimeList
|
|
64
|
+
* @use A time chosen on the page from a list of times, such as a booking slot.
|
|
65
|
+
* @instead time-input - A time in a form field, typed or picked from a panel that opens.
|
|
66
|
+
* @instead date-picker - A date on a month calendar.
|
|
67
|
+
* @anatomy list
|
|
68
|
+
* @anatomy option
|
|
69
|
+
* @practice Write `value`, `min`, and `max` as 24-hour `HH:mm`, or `HH:mm:ss` with `seconds`. - The form submits that shape, and it sorts correctly as a string.
|
|
70
|
+
* @practice Keep `step` at 15 minutes or more where the list spans a day. - At 15 minutes a day is 96 rows, which people can scroll or type into, and at 1 minute it is 1,440.
|
|
68
71
|
* @documentation https://fusion.dev/helix/components/time-picker
|
|
69
72
|
*
|
|
70
73
|
* @slot empty - What the list shows when no time falls between `min` and `max`, for content richer than `empty-text`.
|
|
@@ -16,26 +16,34 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
16
16
|
* The host has `role="list"`, because the entries are your elements in the
|
|
17
17
|
* light DOM. `Steps` does the same.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* entries are a list of their own named by the heading.
|
|
19
|
+
* A `Timeline.Group` is an entry of the timeline, and its entries are a list
|
|
20
|
+
* of their own named by its heading.
|
|
22
21
|
*
|
|
23
22
|
* **The reading order is the order you write the entries in**, in every layout
|
|
24
23
|
* the styled tier draws: down the page, either side of a line down the middle,
|
|
25
24
|
* or across the page. Inside each entry the time is read before what happened.
|
|
26
|
-
*
|
|
27
|
-
* and the layout only moves where they are drawn.
|
|
25
|
+
* The layout only moves where they are drawn.
|
|
28
26
|
*
|
|
29
|
-
* **
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* entry when they arrive.
|
|
27
|
+
* **While `loading` is set, the timeline is busy**, and an entry after the
|
|
28
|
+
* last says "Loading", the word every collection uses (`loading-text`, or
|
|
29
|
+
* your own content in the `loading` slot). Move focus to the first new entry
|
|
30
|
+
* when they arrive.
|
|
34
31
|
*
|
|
35
32
|
* @since 0.1.0
|
|
36
33
|
* @status stable
|
|
37
34
|
* @category data
|
|
38
35
|
* @aliases Activity feed, History, Changelog, Audit trail
|
|
36
|
+
* @use Events in the order they happened, such as a deployment's history.
|
|
37
|
+
* @instead notifications - Events you mark read and come back to.
|
|
38
|
+
* @instead steps - The stages of a task still under way, such as a checkout.
|
|
39
|
+
* @instead log - Lines of output that arrive while you watch.
|
|
40
|
+
* @anatomy item
|
|
41
|
+
* @anatomy marker
|
|
42
|
+
* @anatomy time
|
|
43
|
+
* @anatomy content
|
|
44
|
+
* @practice Write the entries in the order the events happened, oldest or newest first. - The reading order is the order you write them in, in every layout.
|
|
45
|
+
* @practice {grouped} Group entries by date with `Timeline.Group`. - The group puts a heading such as Today over its entries.
|
|
46
|
+
* @practice Set `loading` while you fetch more entries, and put a button that asks for more after the timeline. - The timeline is busy, and an entry after the last says Loading.
|
|
39
47
|
* @documentation https://fusion.dev/helix/components/timeline
|
|
40
48
|
*
|
|
41
49
|
* @slot - The entries, and any groups of them.
|
|
@@ -31,20 +31,16 @@ import '../../button/index.js';
|
|
|
31
31
|
* and the DOM stay in sync. It hides on its own unless you set `open`, which
|
|
32
32
|
* makes the state yours.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* removes it once it has been dismissed and has finished leaving. Messages
|
|
37
|
-
* you render yourself stay yours, and the region never removes them. A touch
|
|
34
|
+
* The message `add()` appends is of the region's own tier, and is removed once
|
|
35
|
+
* it has finished leaving. A touch
|
|
38
36
|
* or a pen swipes a message away toward the edge the stack sits at, the end
|
|
39
37
|
* of the line unless `placement` puts it at the start, or toward the edge
|
|
40
38
|
* `swipe-direction` names.
|
|
41
39
|
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* which keys do. Keep a confirmation for an action that cannot be taken back or
|
|
47
|
-
* that reaches someone else, such as sending or paying.
|
|
40
|
+
* Command+Z (Control+Z elsewhere) undoes an `undoable()` action while its
|
|
41
|
+
* message shows, and a screen reader hears which keys do. Keep a confirmation
|
|
42
|
+
* for an action that cannot be taken back or that reaches someone else, such
|
|
43
|
+
* as sending or paying.
|
|
48
44
|
*
|
|
49
45
|
* **Every message's timer waits while a pointer or focus is in the stack**, as
|
|
50
46
|
* React Aria's and Radix's regions do, so a reader moving from one message to
|
|
@@ -55,12 +51,11 @@ import '../../button/index.js';
|
|
|
55
51
|
* opened after it, and above a modal `Dialog`, `Drawer` or `Lightbox` that
|
|
56
52
|
* opened while it showed. Position the `region` part, which is the box in the
|
|
57
53
|
* top layer. While a modal is open, the browser makes everything outside it
|
|
58
|
-
* inert, the stack included, so a
|
|
59
|
-
*
|
|
60
|
-
* moves off the modal's surface, above, below or beside it by its own inset,
|
|
54
|
+
* inert, the stack included, so a press on a message reaches nothing under it.
|
|
55
|
+
* The stack moves off the modal's surface, above, below or beside it by its own inset,
|
|
61
56
|
* and is hidden while the window has no room outside the surface. Where the
|
|
62
57
|
* browser has `ariaNotify`, a message that arrives then is announced through
|
|
63
|
-
* it.
|
|
58
|
+
* it.
|
|
64
59
|
*
|
|
65
60
|
* When a message with focus inside it is dismissed, focus moves to the next
|
|
66
61
|
* message, then the one before it, then back to where it was before it entered
|
|
@@ -87,6 +82,11 @@ import '../../button/index.js';
|
|
|
87
82
|
* @use A confirmation of something you just did, such as saving a change.
|
|
88
83
|
* @instead callout - A message that must stay until it is read.
|
|
89
84
|
* @instead announcement - News for the whole site.
|
|
85
|
+
* @anatomy region
|
|
86
|
+
* @anatomy item
|
|
87
|
+
* @practice {undo} Do an action that can be undone, then call `undoable()`. - The message holds an Undo button and shows for 8 seconds, which replaces a confirmation dialog.
|
|
88
|
+
* @practice Call `add()` to show a message from a page with no framework state. - It appends a message and removes it once it is dismissed, and the messages you render stay yours.
|
|
89
|
+
* @practice Render a second region inside a modal dialog for a message with an action. - While a modal is open, a message outside it stays visible, and its actions cannot be pressed.
|
|
90
90
|
* @documentation https://fusion.dev/helix/components/toast
|
|
91
91
|
*
|
|
92
92
|
* @slot - The messages.
|
|
@@ -25,6 +25,9 @@ declare const HelixHeadlessToggle_base: (new (...args: any[]) => import("@fusion
|
|
|
25
25
|
* @use A compact choice of view or mode, such as list or grid, that shows at once.
|
|
26
26
|
* @instead radio - Options that each need a sentence.
|
|
27
27
|
* @instead switch - One setting, on or off.
|
|
28
|
+
* @anatomy group
|
|
29
|
+
* @anatomy item
|
|
30
|
+
* @anatomy label
|
|
28
31
|
* @documentation https://fusion.dev/helix/components/toggle
|
|
29
32
|
*
|
|
30
33
|
* @slot - The item's label.
|
|
@@ -78,6 +78,10 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
78
78
|
* @status stable
|
|
79
79
|
* @category layout
|
|
80
80
|
* @aliases Actions, Action bar
|
|
81
|
+
* @use A row of controls that act on one thing, such as text formatting in an editor.
|
|
82
|
+
* @instead selection-bar - Actions on the rows selected in a Data Table, with how many are selected.
|
|
83
|
+
* @instead button-group - A few related buttons joined into one control, such as a split button.
|
|
84
|
+
* @instead menu - Commands that open from one trigger.
|
|
81
85
|
* @documentation https://fusion.dev/helix/components/toolbar
|
|
82
86
|
*
|
|
83
87
|
* @slot - The toolbar's controls.
|
|
@@ -10,11 +10,8 @@ declare const HelixHeadlessTooltip_base: (new (...args: any[]) => import("@fusio
|
|
|
10
10
|
* does not clip it and no `z-index` is needed. `FloatingController` positions
|
|
11
11
|
* it and flips it to another side when the preferred side does not fit.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* then in your own markup, so it is in the server's HTML and in the
|
|
16
|
-
* accessibility tree at rest, in every browser, before anyone points at the
|
|
17
|
-
* trigger or focuses it:
|
|
13
|
+
* With the trigger's `aria-describedby` naming the tooltip, the description is
|
|
14
|
+
* in your own markup:
|
|
18
15
|
*
|
|
19
16
|
* ```html
|
|
20
17
|
* <helix-headless-button aria-describedby="save-tip" id="save">Save</helix-headless-button>
|
|
@@ -56,6 +53,9 @@ declare const HelixHeadlessTooltip_base: (new (...args: any[]) => import("@fusio
|
|
|
56
53
|
* @aliases Hint, Popup label
|
|
57
54
|
* @use A short text that names an icon-only control or adds a detail to it.
|
|
58
55
|
* @instead popover - Anything you click, type in, or select.
|
|
56
|
+
* @anatomy surface
|
|
57
|
+
* @anatomy arrow?
|
|
58
|
+
* @practice {described} Place the tooltip beside its trigger, name the trigger in `for`, and name the tooltip in the trigger's aria-describedby. - The trigger is then described in the server's HTML and at rest, in every browser, before anyone points at it or focuses it.
|
|
59
59
|
* @documentation https://fusion.dev/helix/components/tooltip
|
|
60
60
|
*
|
|
61
61
|
* @slot - The trigger, in the wrapping form. The tooltip describes it, as it
|
|
@@ -44,9 +44,8 @@ declare const HelixHeadlessTour_base: (new (...args: any[]) => import("@fusion.d
|
|
|
44
44
|
* least distance that brings it on screen, so the stop that points at it is
|
|
45
45
|
* on screen too.
|
|
46
46
|
*
|
|
47
|
-
*
|
|
48
|
-
* the
|
|
49
|
-
* tour meanwhile. A function it returns runs when the tour leaves the stop.
|
|
47
|
+
* While a stop's `effect` runs, the tour has `:state(preparing)`. A function
|
|
48
|
+
* the effect returns runs when the tour leaves the stop.
|
|
50
49
|
*
|
|
51
50
|
* **A press outside the current stop and its target does nothing by
|
|
52
51
|
* default**, so a reader can use the page the tour is describing. Set
|
|
@@ -77,6 +76,14 @@ declare const HelixHeadlessTour_base: (new (...args: any[]) => import("@fusion.d
|
|
|
77
76
|
* @status stable
|
|
78
77
|
* @category overlays
|
|
79
78
|
* @aliases Coachmark, Product tour, Walkthrough, Onboarding
|
|
79
|
+
* @use A guided first look at an interface, one stop at a time, such as after you sign up.
|
|
80
|
+
* @instead steps - Stages of a task you complete in order, such as a checkout.
|
|
81
|
+
* @instead popover - Content beside one control that opens when you press it.
|
|
82
|
+
* @anatomy spotlight
|
|
83
|
+
* @anatomy surface
|
|
84
|
+
* @anatomy arrow
|
|
85
|
+
* @anatomy actions
|
|
86
|
+
* @practice Open what a stop points at in the stop's `effect`, such as a menu or a drawer. - The tour runs it as it reaches the stop, and waits for a promise it returns before it shows the stop.
|
|
80
87
|
* @documentation https://fusion.dev/helix/components/tour
|
|
81
88
|
*
|
|
82
89
|
* @slot - The stops, in the order they are shown.
|
|
@@ -59,8 +59,7 @@ declare const HelixHeadlessTree_base: (new (...args: any[]) => import("@fusion.d
|
|
|
59
59
|
* item picked up that way, Enter or Space drops it, and Escape puts it back.
|
|
60
60
|
* The tree says each step in its `live` region. A drop sends
|
|
61
61
|
* `helix-before-reorder`, which you can refuse, and then `helix-reorder`, whose
|
|
62
|
-
* `keys` hold the siblings in the new order.
|
|
63
|
-
* moves no element of yours, and focus follows the moved item once you have.
|
|
62
|
+
* `keys` hold the siblings in the new order.
|
|
64
63
|
*
|
|
65
64
|
* **Alt with the arrow along the line moves an item into another branch.**
|
|
66
65
|
* Alt with the arrow that opens a branch (Right on a left-to-right page) puts
|
|
@@ -82,6 +81,14 @@ declare const HelixHeadlessTree_base: (new (...args: any[]) => import("@fusion.d
|
|
|
82
81
|
* @status stable
|
|
83
82
|
* @category navigation
|
|
84
83
|
* @aliases FileTree, Navigation tree
|
|
84
|
+
* @use A hierarchy you open branch by branch, such as the files and folders of a project.
|
|
85
|
+
* @instead drilldown - Nested lists you step into one level at a time, on a narrow screen.
|
|
86
|
+
* @instead accordion - Sections of content that open and close, one level deep.
|
|
87
|
+
* @instead object-inspector - A structured value, such as JSON, shown as a tree.
|
|
88
|
+
* @anatomy item
|
|
89
|
+
* @anatomy toggle
|
|
90
|
+
* @anatomy children
|
|
91
|
+
* @practice {reordering} Move the items yourself in a `reorderable` tree. - The tree moves no element of yours, and focus follows the moved item once you have.
|
|
85
92
|
* @documentation https://fusion.dev/helix/components/tree
|
|
86
93
|
*
|
|
87
94
|
* @slot - The tree's items.
|
|
@@ -9,11 +9,9 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
9
9
|
* movement and its color shows whether the change is good. Movement and
|
|
10
10
|
* judgment are separate properties because they are separate facts.
|
|
11
11
|
*
|
|
12
|
-
* `good` is unset by default, so a trend with no judgment is gray.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* movement. The judgment is also a custom state, `better` or `worse`, and so
|
|
16
|
-
* is the movement, `up` or `down`, for a sheet of your own.
|
|
12
|
+
* `good` is unset by default, so a trend with no judgment is gray. The
|
|
13
|
+
* judgment is also a custom state, `better` or `worse`, and so is the
|
|
14
|
+
* movement, `up` or `down`, for a sheet of your own.
|
|
17
15
|
*
|
|
18
16
|
* The movement is also written as a word, so a screen reader reads it. The
|
|
19
17
|
* styled tier hides `part="direction"` visually and keeps it in the
|
|
@@ -47,6 +45,13 @@ import { type PropertyValues, type TemplateResult } from 'lit';
|
|
|
47
45
|
* @status stable
|
|
48
46
|
* @category charts
|
|
49
47
|
* @aliases Delta, Change, Movement
|
|
48
|
+
* @use Which way a measurement moved, such as revenue up 12.4%, and whether that is good.
|
|
49
|
+
* @instead stat - One measurement, with a label that names what it measures.
|
|
50
|
+
* @instead sparkline - The shape of a series over time, in a small space.
|
|
51
|
+
* @instead line-chart - Every reading over a period, read against a scale.
|
|
52
|
+
* @anatomy icon
|
|
53
|
+
* @anatomy label?
|
|
54
|
+
* @practice Set `good` to the direction that is good for the metric. - Up is bad for churn, latency, error rate, cost, and bounce rate, and the color follows from `movement`.
|
|
50
55
|
* @documentation https://fusion.dev/helix/components/trend
|
|
51
56
|
*
|
|
52
57
|
* @slot - The metric that moved. Not needed with `value`, which writes it.
|
|
@@ -13,10 +13,6 @@ import '../../menu/index.js';
|
|
|
13
13
|
* keys, Home and End, touch targets, and screen reader announcements work as
|
|
14
14
|
* they do natively.
|
|
15
15
|
*
|
|
16
|
-
* When you set `controls`, the browser's control bar is used, the Helix bar is
|
|
17
|
-
* not drawn, and the keys below are not bound, so a key press does not seek
|
|
18
|
-
* twice.
|
|
19
|
-
*
|
|
20
16
|
* **Keyboard.** The keys match other players, and they are bound on the
|
|
21
17
|
* element only, so they work while focus is on the player.
|
|
22
18
|
*
|
|
@@ -42,11 +38,10 @@ import '../../menu/index.js';
|
|
|
42
38
|
* On the scrubber and the volume slider, the arrow keys, Page Up, Page Down,
|
|
43
39
|
* Home, and End move the slider, as on any range input.
|
|
44
40
|
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* DOM stays intact, and are copied again whenever the slot changes.
|
|
41
|
+
* A slot is one node, so slotted sources would give the video no text tracks,
|
|
42
|
+
* no current source, and a `readyState` of zero, and it would not play. The
|
|
43
|
+
* children are copied so your light DOM stays intact, and are copied again
|
|
44
|
+
* whenever the slot changes.
|
|
50
45
|
*
|
|
51
46
|
* The player sends every media event of its inner video under the same name,
|
|
52
47
|
* without bubbling, as a `<video>` sends it. Listen on the player as you would
|
|
@@ -57,6 +52,14 @@ import '../../menu/index.js';
|
|
|
57
52
|
* @status stable
|
|
58
53
|
* @category media
|
|
59
54
|
* @aliases Player, Media, Movie
|
|
55
|
+
* @use One clip on a page, such as a product walkthrough.
|
|
56
|
+
* @instead video-playlist - Clips that play one after another in one player.
|
|
57
|
+
* @instead device-screen - A device's live screen that you tap and type into.
|
|
58
|
+
* @anatomy video
|
|
59
|
+
* @anatomy start
|
|
60
|
+
* @anatomy controls
|
|
61
|
+
* @practice {native} Set `controls` only where you want the browser's own control bar. - The Helix bar is then not drawn and its keys are not bound, so a key press does not seek twice.
|
|
62
|
+
* @practice {captions} Write sources and captions as `<source>` and `<track>` children of the player. - They are copied into the inner video, which selects resources from its own child nodes.
|
|
60
63
|
* @documentation https://fusion.dev/helix/components/video
|
|
61
64
|
*
|
|
62
65
|
* @slot - `<source>` and `<track>` elements, which are copied into the video.
|
|
@@ -13,9 +13,7 @@ declare const HelixHeadlessVideoPlaylist_base: (new (...args: any[]) => import("
|
|
|
13
13
|
*
|
|
14
14
|
* **The player is a `Video` or a plain `<video>`.** Either takes `src` and
|
|
15
15
|
* `poster` from the entry, is named by it, plays on, and answers Shift with N
|
|
16
|
-
* or P while focused.
|
|
17
|
-
* that send `helix-previous` or `helix-next`, so its moves are the entries,
|
|
18
|
-
* the menu, and your own buttons calling `previous()` and `next()`.
|
|
16
|
+
* or P while focused.
|
|
19
17
|
*
|
|
20
18
|
* **Entries are markup.** React skips properties it would set imperatively
|
|
21
19
|
* during hydration, so an array property on a custom element is missing on the
|
|
@@ -71,8 +69,6 @@ declare const HelixHeadlessVideoPlaylist_base: (new (...args: any[]) => import("
|
|
|
71
69
|
* an edge. A press that does not travel still plays the entry.
|
|
72
70
|
* - A drop sends `helix-before-reorder`, which you can refuse, and then
|
|
73
71
|
* `helix-reorder`, whose `keys` hold every entry's `value` in the new order.
|
|
74
|
-
* **You move the entries**: the playlist moves no element of yours, and the
|
|
75
|
-
* next entry is the one after the current entry in the order you leave.
|
|
76
72
|
* - Each move is said in the live region, in words you can change:
|
|
77
73
|
* `moved-label`, `dropped-label`, `canceled-label`, and `picked-up-label`.
|
|
78
74
|
*
|
|
@@ -85,6 +81,15 @@ declare const HelixHeadlessVideoPlaylist_base: (new (...args: any[]) => import("
|
|
|
85
81
|
* @status stable
|
|
86
82
|
* @category media
|
|
87
83
|
* @aliases Playlist, Queue, Up next
|
|
84
|
+
* @use Episodes or lessons that play one after another in one player, listed beside it.
|
|
85
|
+
* @instead video - One clip on its own.
|
|
86
|
+
* @instead carousel - Slides that you move between, such as pictures or cards.
|
|
87
|
+
* @anatomy player
|
|
88
|
+
* @anatomy item
|
|
89
|
+
* @anatomy thumbnail
|
|
90
|
+
* @anatomy meta
|
|
91
|
+
* @practice Put a `Video` in the `player` slot. - A plain video has no previous and next controls, so its moves are the entries, the menu, and your own buttons calling `previous()` and `next()`.
|
|
92
|
+
* @practice Under `reorderable`, move the entries yourself, in the order the reorder event's keys hold. - The playlist moves no element of yours, and the next entry is the one after the current entry in the order you leave.
|
|
88
93
|
* @documentation https://fusion.dev/helix/components/video-playlist
|
|
89
94
|
*
|
|
90
95
|
* @slot - The entries.
|
|
@@ -9,9 +9,7 @@ type Section = 'columns' | 'export' | 'filters' | 'sort';
|
|
|
9
9
|
* @summary A panel that changes a Data Table's whole view on a phone: its presets, filters, sort, columns, and export.
|
|
10
10
|
*
|
|
11
11
|
* @description
|
|
12
|
-
*
|
|
13
|
-
* button and an Export button. Put this panel in a `Drawer` opened by one
|
|
14
|
-
* View button, set `for` to the table's id, and slot the tools into it:
|
|
12
|
+
* Set `for` to the table's id, and slot the tools into it:
|
|
15
13
|
*
|
|
16
14
|
* ```html
|
|
17
15
|
* <helix-drawer label="View" placement="bottom">
|
|
@@ -32,14 +30,22 @@ type Section = 'columns' | 'export' | 'filters' | 'sort';
|
|
|
32
30
|
* sort. Show closes the drawer or the dialog the panel is in, with how many
|
|
33
31
|
* rows the view shows.
|
|
34
32
|
*
|
|
35
|
-
* `active` counts the search and the filters, for a badge on the View button.
|
|
36
|
-
* The panel takes no width of its own, so show its View button at the widths
|
|
37
|
-
* that need it, and the tools above the table at the rest.
|
|
38
|
-
*
|
|
39
33
|
* @since 0.238.0
|
|
40
34
|
* @status experimental
|
|
41
35
|
* @category data
|
|
42
36
|
* @aliases View drawer, View sheet, Mobile filters
|
|
37
|
+
* @use Every part of a Data Table's view in one panel, such as a drawer on a phone.
|
|
38
|
+
* @instead drawer - A panel of any content that slides in from an edge.
|
|
39
|
+
* @instead column-manager - The columns alone, beside the table on a wide screen.
|
|
40
|
+
* @instead quick-filters - Presets in a row above the table.
|
|
41
|
+
* @anatomy header
|
|
42
|
+
* @anatomy presets?
|
|
43
|
+
* @anatomy section
|
|
44
|
+
* @anatomy summary
|
|
45
|
+
* @anatomy show
|
|
46
|
+
* @practice Put View Panel in a Drawer opened by one View button. - On a phone a table has no room above it for a filter field, a Columns button, and an Export button.
|
|
47
|
+
* @practice Show the View button at the widths that need it, and the tools above the table at the rest. - The panel takes no width of its own.
|
|
48
|
+
* @practice Show `active` in a badge on the View button. - It counts the search and the filters the view holds.
|
|
43
49
|
* @documentation https://fusion.dev/helix/components/view-panel
|
|
44
50
|
*
|
|
45
51
|
* @slot columns - A `ColumnManager` for the table.
|
|
@@ -137,9 +137,7 @@ export interface VirtualListRange {
|
|
|
137
137
|
* let go of. `value` holds the chosen items' keys, separated by commas, in
|
|
138
138
|
* the order of the set: `key-field` names each item's key, and a string or a
|
|
139
139
|
* number item is its own key. A change asks with `helix-before-change` and
|
|
140
|
-
* tells with `change`. Each row is an `option` marked `aria-selected
|
|
141
|
-
* row's own links and buttons are not reached there: keep those to a list
|
|
142
|
-
* without `selection-mode`.
|
|
140
|
+
* tells with `change`. Each row is an `option` marked `aria-selected`.
|
|
143
141
|
*
|
|
144
142
|
* `selection-behavior="replace"` selects the item pressed alone, as a file
|
|
145
143
|
* list does, and the arrow keys carry the selection with them. Control or
|
|
@@ -158,9 +156,9 @@ export interface VirtualListRange {
|
|
|
158
156
|
* **Loading more.** `helix-range-change` fires as the items on screen change,
|
|
159
157
|
* and `range` holds them. `helix-load-more` fires once a reader is within one
|
|
160
158
|
* screen of the end, once for each length of the set: add to `items` and it can
|
|
161
|
-
* fire again. While
|
|
162
|
-
*
|
|
163
|
-
*
|
|
159
|
+
* fire again. While `loading` is set, the row after the last item says
|
|
160
|
+
* "Loading", the word every collection uses (`loading-text`, or your own
|
|
161
|
+
* content in the `loading` slot). `scrollToIndex` takes a reader to an item.
|
|
164
162
|
*
|
|
165
163
|
* **Moving items** is a separate import, `@fusion.dev/helix/virtual-list/reorder`,
|
|
166
164
|
* as React Aria's drag and drop is. With it imported, `reorderable` lets a
|
|
@@ -203,11 +201,18 @@ export interface VirtualListRange {
|
|
|
203
201
|
*
|
|
204
202
|
* The viewport scrolls on this tier. It carries `data-scroller`, and `core`
|
|
205
203
|
* ships `[data-scroller] { overflow: auto }` into every shadow root, so
|
|
206
|
-
* `scrollTop` works with no stylesheet.
|
|
204
|
+
* `scrollTop` works with no stylesheet.
|
|
207
205
|
*
|
|
208
206
|
* @since 0.1.0
|
|
209
207
|
* @status stable
|
|
210
208
|
* @category layout
|
|
209
|
+
* @use Thousands of rows in one scrolling list, such as a contact list.
|
|
210
|
+
* @instead scroll-area - A short box of content that scrolls.
|
|
211
|
+
* @instead data-table - Rows with columns that you sort, filter, and page.
|
|
212
|
+
* @instead list - A set of rows short enough to draw whole.
|
|
213
|
+
* @practice {loading-more} Set `loading` while you fetch more items, then add them to `items`. - The list is then busy, and a reader sees that more is on its way.
|
|
214
|
+
* @practice Keep links and buttons in rows to a list without `selection-mode`. - With it, each row is an option, and a row's own links and buttons are not reached there.
|
|
215
|
+
* @practice On the headless tier, give the `viewport` part a block size. - Without one, the viewport is as tall as its rows and does not scroll.
|
|
211
216
|
* @documentation https://fusion.dev/helix/components/virtual-list
|
|
212
217
|
*
|
|
213
218
|
* @slot - The `<template>` that defines one row. The list writes the rows it renders beside it, and this slot shows them between the two spacers.
|