@fusion.dev/helix-headless 0.0.0-dev
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/LICENSE +21 -0
- package/custom-elements.json +75202 -0
- package/dist/accordion/index.d.ts +2 -0
- package/dist/accordion/index.js +2 -0
- package/dist/accordion/item/accordion-item.d.ts +141 -0
- package/dist/accordion/item/accordion-item.js +214 -0
- package/dist/accordion/root/accordion-root.d.ts +57 -0
- package/dist/accordion/root/accordion-root.js +96 -0
- package/dist/announcement/index.d.ts +1 -0
- package/dist/announcement/index.js +1 -0
- package/dist/announcement/root/announcement-root.d.ts +106 -0
- package/dist/announcement/root/announcement-root.js +144 -0
- package/dist/app-header/index.d.ts +1 -0
- package/dist/app-header/index.js +1 -0
- package/dist/app-header/root/app-header-root.d.ts +113 -0
- package/dist/app-header/root/app-header-root.js +147 -0
- package/dist/avatar/group/avatar-group.d.ts +116 -0
- package/dist/avatar/group/avatar-group.js +136 -0
- package/dist/avatar/index.d.ts +2 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/root/avatar-root.d.ts +71 -0
- package/dist/avatar/root/avatar-root.js +147 -0
- package/dist/badge/index.d.ts +1 -0
- package/dist/badge/index.js +1 -0
- package/dist/badge/root/badge-root.d.ts +61 -0
- package/dist/badge/root/badge-root.js +121 -0
- package/dist/bar-chart/index.d.ts +1 -0
- package/dist/bar-chart/index.js +1 -0
- package/dist/bar-chart/root/bar-chart-root.d.ts +266 -0
- package/dist/bar-chart/root/bar-chart-root.js +515 -0
- package/dist/blockquote/index.d.ts +1 -0
- package/dist/blockquote/index.js +1 -0
- package/dist/blockquote/root/blockquote-root.d.ts +51 -0
- package/dist/blockquote/root/blockquote-root.js +84 -0
- package/dist/breadcrumbs/breadcrumb/breadcrumb.d.ts +104 -0
- package/dist/breadcrumbs/breadcrumb/breadcrumb.js +137 -0
- package/dist/breadcrumbs/index.d.ts +2 -0
- package/dist/breadcrumbs/index.js +2 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +77 -0
- package/dist/breadcrumbs/root/breadcrumbs-root.js +94 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/button/index.js +1 -0
- package/dist/button/root/button-root.d.ts +251 -0
- package/dist/button/root/button-root.js +401 -0
- package/dist/button-group/index.d.ts +1 -0
- package/dist/button-group/index.js +1 -0
- package/dist/button-group/root/button-group-root.d.ts +62 -0
- package/dist/button-group/root/button-group-root.js +62 -0
- package/dist/callout/index.d.ts +1 -0
- package/dist/callout/index.js +1 -0
- package/dist/callout/root/callout-root.d.ts +72 -0
- package/dist/callout/root/callout-root.js +90 -0
- package/dist/card/index.d.ts +1 -0
- package/dist/card/index.js +1 -0
- package/dist/card/root/card-root.d.ts +54 -0
- package/dist/card/root/card-root.js +71 -0
- package/dist/carousel/index.d.ts +1 -0
- package/dist/carousel/index.js +1 -0
- package/dist/carousel/root/carousel-root.d.ts +399 -0
- package/dist/carousel/root/carousel-root.js +723 -0
- package/dist/chat/composer/chat-composer.d.ts +160 -0
- package/dist/chat/composer/chat-composer.js +273 -0
- package/dist/chat/index.d.ts +3 -0
- package/dist/chat/index.js +3 -0
- package/dist/chat/message/chat-message.d.ts +170 -0
- package/dist/chat/message/chat-message.js +271 -0
- package/dist/chat/root/chat-root.d.ts +216 -0
- package/dist/chat/root/chat-root.js +389 -0
- package/dist/checkbox/index.d.ts +1 -0
- package/dist/checkbox/index.js +1 -0
- package/dist/checkbox/root/checkbox-root.d.ts +108 -0
- package/dist/checkbox/root/checkbox-root.js +207 -0
- package/dist/checkbox-group/index.d.ts +1 -0
- package/dist/checkbox-group/index.js +1 -0
- package/dist/checkbox-group/root/checkbox-group-root.d.ts +155 -0
- package/dist/checkbox-group/root/checkbox-group-root.js +293 -0
- package/dist/code/index.d.ts +1 -0
- package/dist/code/index.js +1 -0
- package/dist/code/root/code-root.d.ts +36 -0
- package/dist/code/root/code-root.js +43 -0
- package/dist/code-block/index.d.ts +1 -0
- package/dist/code-block/index.js +1 -0
- package/dist/code-block/root/code-block-root.d.ts +112 -0
- package/dist/code-block/root/code-block-root.js +155 -0
- package/dist/color-input/index.d.ts +1 -0
- package/dist/color-input/index.js +1 -0
- package/dist/color-input/root/color-input-root.d.ts +227 -0
- package/dist/color-input/root/color-input-root.js +456 -0
- package/dist/color-picker/color.d.ts +74 -0
- package/dist/color-picker/color.js +238 -0
- package/dist/color-picker/index.d.ts +2 -0
- package/dist/color-picker/index.js +2 -0
- package/dist/color-picker/root/color-picker-root.d.ts +303 -0
- package/dist/color-picker/root/color-picker-root.js +576 -0
- package/dist/combobox/index.d.ts +1 -0
- package/dist/combobox/index.js +1 -0
- package/dist/combobox/root/combobox-root.d.ts +396 -0
- package/dist/combobox/root/combobox-root.js +808 -0
- package/dist/command/index.d.ts +1 -0
- package/dist/command/index.js +1 -0
- package/dist/command/root/command-root.d.ts +166 -0
- package/dist/command/root/command-root.js +353 -0
- package/dist/copy-button/index.d.ts +1 -0
- package/dist/copy-button/index.js +1 -0
- package/dist/copy-button/root/copy-button-root.d.ts +154 -0
- package/dist/copy-button/root/copy-button-root.js +225 -0
- package/dist/data-table/index.d.ts +2 -0
- package/dist/data-table/index.js +2 -0
- package/dist/data-table/root/data-table-root.d.ts +392 -0
- package/dist/data-table/root/data-table-root.js +729 -0
- package/dist/data-table/root/order.d.ts +116 -0
- package/dist/data-table/root/order.js +175 -0
- package/dist/date-input/index.d.ts +1 -0
- package/dist/date-input/index.js +1 -0
- package/dist/date-input/root/date-input-root.d.ts +361 -0
- package/dist/date-input/root/date-input-root.js +791 -0
- package/dist/date-picker/index.d.ts +1 -0
- package/dist/date-picker/index.js +1 -0
- package/dist/date-picker/root/date-picker-root.d.ts +361 -0
- package/dist/date-picker/root/date-picker-root.js +837 -0
- package/dist/dialog/index.d.ts +1 -0
- package/dist/dialog/index.js +1 -0
- package/dist/dialog/root/dialog-root.d.ts +185 -0
- package/dist/dialog/root/dialog-root.js +319 -0
- package/dist/divider/index.d.ts +1 -0
- package/dist/divider/index.js +1 -0
- package/dist/divider/root/divider-root.d.ts +68 -0
- package/dist/divider/root/divider-root.js +116 -0
- package/dist/donut-chart/index.d.ts +1 -0
- package/dist/donut-chart/index.js +1 -0
- package/dist/donut-chart/root/donut-chart-root.d.ts +209 -0
- package/dist/donut-chart/root/donut-chart-root.js +395 -0
- package/dist/drawer/index.d.ts +1 -0
- package/dist/drawer/index.js +1 -0
- package/dist/drawer/root/drawer-root.d.ts +144 -0
- package/dist/drawer/root/drawer-root.js +222 -0
- package/dist/drilldown/index.d.ts +2 -0
- package/dist/drilldown/index.js +2 -0
- package/dist/drilldown/item/drilldown-item.d.ts +87 -0
- package/dist/drilldown/item/drilldown-item.js +152 -0
- package/dist/drilldown/root/drilldown-root.d.ts +115 -0
- package/dist/drilldown/root/drilldown-root.js +263 -0
- package/dist/element-events.generated.d.ts +1 -0
- package/dist/element-events.generated.js +125 -0
- package/dist/empty/index.d.ts +1 -0
- package/dist/empty/index.js +1 -0
- package/dist/empty/root/empty-root.d.ts +47 -0
- package/dist/empty/root/empty-root.js +68 -0
- package/dist/file-input/index.d.ts +1 -0
- package/dist/file-input/index.js +1 -0
- package/dist/file-input/root/file-input-root.d.ts +196 -0
- package/dist/file-input/root/file-input-root.js +488 -0
- package/dist/format-date/index.d.ts +1 -0
- package/dist/format-date/index.js +1 -0
- package/dist/format-date/root/format-date-root.d.ts +151 -0
- package/dist/format-date/root/format-date-root.js +266 -0
- package/dist/heatmap/index.d.ts +2 -0
- package/dist/heatmap/index.js +2 -0
- package/dist/heatmap/root/buckets.d.ts +62 -0
- package/dist/heatmap/root/buckets.js +85 -0
- package/dist/heatmap/root/heatmap-root.d.ts +330 -0
- package/dist/heatmap/root/heatmap-root.js +526 -0
- package/dist/icon/index.d.ts +1 -0
- package/dist/icon/index.js +1 -0
- package/dist/icon/root/icon-root.d.ts +53 -0
- package/dist/icon/root/icon-root.js +93 -0
- package/dist/icon-button/index.d.ts +1 -0
- package/dist/icon-button/index.js +1 -0
- package/dist/icon-button/root/icon-button-root.d.ts +40 -0
- package/dist/icon-button/root/icon-button-root.js +46 -0
- package/dist/image/index.d.ts +1 -0
- package/dist/image/index.js +1 -0
- package/dist/image/root/image-root.d.ts +213 -0
- package/dist/image/root/image-root.js +335 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.js +99 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/input/index.js +1 -0
- package/dist/input/root/input-root.d.ts +281 -0
- package/dist/input/root/input-root.js +472 -0
- package/dist/kbd/index.d.ts +1 -0
- package/dist/kbd/index.js +1 -0
- package/dist/kbd/root/kbd-root.d.ts +98 -0
- package/dist/kbd/root/kbd-root.js +230 -0
- package/dist/legend/index.d.ts +1 -0
- package/dist/legend/index.js +1 -0
- package/dist/legend/root/legend-root.d.ts +83 -0
- package/dist/legend/root/legend-root.js +125 -0
- package/dist/line-chart/index.d.ts +1 -0
- package/dist/line-chart/index.js +1 -0
- package/dist/line-chart/root/line-chart-root.d.ts +238 -0
- package/dist/line-chart/root/line-chart-root.js +365 -0
- package/dist/list/index.d.ts +2 -0
- package/dist/list/index.js +2 -0
- package/dist/list/item/list-item.d.ts +95 -0
- package/dist/list/item/list-item.js +148 -0
- package/dist/list/root/list-root.d.ts +72 -0
- package/dist/list/root/list-root.js +61 -0
- package/dist/listbox/index.d.ts +1 -0
- package/dist/listbox/index.js +1 -0
- package/dist/listbox/root/listbox-root.d.ts +357 -0
- package/dist/listbox/root/listbox-root.js +890 -0
- package/dist/loader/index.d.ts +1 -0
- package/dist/loader/index.js +1 -0
- package/dist/loader/root/loader-root.d.ts +52 -0
- package/dist/loader/root/loader-root.js +74 -0
- package/dist/megamenu/index.d.ts +1 -0
- package/dist/megamenu/index.js +1 -0
- package/dist/megamenu/root/megamenu-root.d.ts +254 -0
- package/dist/megamenu/root/megamenu-root.js +526 -0
- package/dist/menu/index.d.ts +2 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu/item/menu-item.d.ts +231 -0
- package/dist/menu/item/menu-item.js +405 -0
- package/dist/menu/root/menu-root.d.ts +158 -0
- package/dist/menu/root/menu-root.js +422 -0
- package/dist/meter/index.d.ts +1 -0
- package/dist/meter/index.js +1 -0
- package/dist/meter/root/meter-root.d.ts +234 -0
- package/dist/meter/root/meter-root.js +316 -0
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.js +1 -0
- package/dist/navigation/root/navigation-root.d.ts +55 -0
- package/dist/navigation/root/navigation-root.js +130 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.js +2 -0
- package/dist/notifications/notification/notification.d.ts +181 -0
- package/dist/notifications/notification/notification.js +305 -0
- package/dist/notifications/root/notifications-root.d.ts +168 -0
- package/dist/notifications/root/notifications-root.js +291 -0
- package/dist/number-input/index.d.ts +1 -0
- package/dist/number-input/index.js +1 -0
- package/dist/number-input/root/number-input-root.d.ts +282 -0
- package/dist/number-input/root/number-input-root.js +592 -0
- package/dist/option/group/option-group.d.ts +38 -0
- package/dist/option/group/option-group.js +58 -0
- package/dist/option/index.d.ts +2 -0
- package/dist/option/index.js +2 -0
- package/dist/option/root/option-root.d.ts +194 -0
- package/dist/option/root/option-root.js +247 -0
- package/dist/outline/index.d.ts +1 -0
- package/dist/outline/index.js +1 -0
- package/dist/outline/root/outline-root.d.ts +237 -0
- package/dist/outline/root/outline-root.js +519 -0
- package/dist/pagination/index.d.ts +3 -0
- package/dist/pagination/index.js +3 -0
- package/dist/pagination/root/pagination-root.d.ts +390 -0
- package/dist/pagination/root/pagination-root.js +695 -0
- package/dist/pagination/size/pagination-size.d.ts +127 -0
- package/dist/pagination/size/pagination-size.js +232 -0
- package/dist/pagination/summary/pagination-summary.d.ts +90 -0
- package/dist/pagination/summary/pagination-summary.js +145 -0
- package/dist/pin-input/index.d.ts +1 -0
- package/dist/pin-input/index.js +1 -0
- package/dist/pin-input/root/pin-input-root.d.ts +292 -0
- package/dist/pin-input/root/pin-input-root.js +553 -0
- package/dist/popover/index.d.ts +1 -0
- package/dist/popover/index.js +1 -0
- package/dist/popover/root/popover-root.d.ts +108 -0
- package/dist/popover/root/popover-root.js +231 -0
- package/dist/progress/index.d.ts +1 -0
- package/dist/progress/index.js +1 -0
- package/dist/progress/root/progress-root.d.ts +125 -0
- package/dist/progress/root/progress-root.js +212 -0
- package/dist/qr-code/index.d.ts +1 -0
- package/dist/qr-code/index.js +1 -0
- package/dist/qr-code/root/qr-code-root.d.ts +93 -0
- package/dist/qr-code/root/qr-code-root.js +233 -0
- package/dist/quote/index.d.ts +1 -0
- package/dist/quote/index.js +1 -0
- package/dist/quote/root/quote-root.d.ts +36 -0
- package/dist/quote/root/quote-root.js +50 -0
- package/dist/radio/group/radio-group.d.ts +84 -0
- package/dist/radio/group/radio-group.js +170 -0
- package/dist/radio/index.d.ts +2 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/root/radio-root.d.ts +102 -0
- package/dist/radio/root/radio-root.js +151 -0
- package/dist/rating/index.d.ts +1 -0
- package/dist/rating/index.js +1 -0
- package/dist/rating/root/rating-root.d.ts +242 -0
- package/dist/rating/root/rating-root.js +484 -0
- package/dist/scroll-area/index.d.ts +1 -0
- package/dist/scroll-area/index.js +1 -0
- package/dist/scroll-area/root/scroll-area-root.d.ts +96 -0
- package/dist/scroll-area/root/scroll-area-root.js +215 -0
- package/dist/select/index.d.ts +1 -0
- package/dist/select/index.js +1 -0
- package/dist/select/root/select-root.d.ts +170 -0
- package/dist/select/root/select-root.js +419 -0
- package/dist/skeleton/index.d.ts +1 -0
- package/dist/skeleton/index.js +1 -0
- package/dist/skeleton/root/skeleton-root.d.ts +31 -0
- package/dist/skeleton/root/skeleton-root.js +42 -0
- package/dist/slider/index.d.ts +1 -0
- package/dist/slider/index.js +1 -0
- package/dist/slider/root/slider-root.d.ts +235 -0
- package/dist/slider/root/slider-root.js +488 -0
- package/dist/sparkline/index.d.ts +1 -0
- package/dist/sparkline/index.js +1 -0
- package/dist/sparkline/root/sparkline-root.d.ts +147 -0
- package/dist/sparkline/root/sparkline-root.js +278 -0
- package/dist/speed-dial/index.d.ts +2 -0
- package/dist/speed-dial/index.js +2 -0
- package/dist/speed-dial/item/speed-dial-item.d.ts +71 -0
- package/dist/speed-dial/item/speed-dial-item.js +113 -0
- package/dist/speed-dial/root/speed-dial-root.d.ts +122 -0
- package/dist/speed-dial/root/speed-dial-root.js +251 -0
- package/dist/splitter/index.d.ts +1 -0
- package/dist/splitter/index.js +1 -0
- package/dist/splitter/root/splitter-root.d.ts +491 -0
- package/dist/splitter/root/splitter-root.js +1030 -0
- package/dist/stat/group/stat-group.d.ts +30 -0
- package/dist/stat/group/stat-group.js +47 -0
- package/dist/stat/index.d.ts +2 -0
- package/dist/stat/index.js +2 -0
- package/dist/stat/root/stat-root.d.ts +62 -0
- package/dist/stat/root/stat-root.js +51 -0
- package/dist/steps/index.d.ts +2 -0
- package/dist/steps/index.js +2 -0
- package/dist/steps/root/steps-root.d.ts +110 -0
- package/dist/steps/root/steps-root.js +130 -0
- package/dist/steps/step/step.d.ts +139 -0
- package/dist/steps/step/step.js +215 -0
- package/dist/switch/index.d.ts +1 -0
- package/dist/switch/index.js +1 -0
- package/dist/switch/root/switch-root.d.ts +74 -0
- package/dist/switch/root/switch-root.js +153 -0
- package/dist/table/cell/table-cell.d.ts +34 -0
- package/dist/table/cell/table-cell.js +52 -0
- package/dist/table/column/table-column.d.ts +165 -0
- package/dist/table/column/table-column.js +222 -0
- package/dist/table/index.d.ts +4 -0
- package/dist/table/index.js +4 -0
- package/dist/table/root/table-root.d.ts +98 -0
- package/dist/table/root/table-root.js +161 -0
- package/dist/table/row/table-row.d.ts +27 -0
- package/dist/table/row/table-row.js +42 -0
- package/dist/tabs/index.d.ts +3 -0
- package/dist/tabs/index.js +3 -0
- package/dist/tabs/panel/tab-panel.d.ts +67 -0
- package/dist/tabs/panel/tab-panel.js +98 -0
- package/dist/tabs/root/tabs-root.d.ts +123 -0
- package/dist/tabs/root/tabs-root.js +217 -0
- package/dist/tabs/tab/tab.d.ts +64 -0
- package/dist/tabs/tab/tab.js +116 -0
- package/dist/tag/index.d.ts +1 -0
- package/dist/tag/index.js +1 -0
- package/dist/tag/root/tag-root.d.ts +41 -0
- package/dist/tag/root/tag-root.js +67 -0
- package/dist/textarea/index.d.ts +1 -0
- package/dist/textarea/index.js +1 -0
- package/dist/textarea/root/textarea-root.d.ts +215 -0
- package/dist/textarea/root/textarea-root.js +380 -0
- package/dist/time-input/index.d.ts +1 -0
- package/dist/time-input/index.js +1 -0
- package/dist/time-input/root/time-input-root.d.ts +322 -0
- package/dist/time-input/root/time-input-root.js +661 -0
- package/dist/time-picker/index.d.ts +1 -0
- package/dist/time-picker/index.js +1 -0
- package/dist/time-picker/root/time-picker-root.d.ts +380 -0
- package/dist/time-picker/root/time-picker-root.js +669 -0
- package/dist/timeline/index.d.ts +2 -0
- package/dist/timeline/index.js +2 -0
- package/dist/timeline/item/timeline-item.d.ts +81 -0
- package/dist/timeline/item/timeline-item.js +128 -0
- package/dist/timeline/root/timeline-root.d.ts +52 -0
- package/dist/timeline/root/timeline-root.js +72 -0
- package/dist/toast/index.d.ts +2 -0
- package/dist/toast/index.js +2 -0
- package/dist/toast/item/toast-item.d.ts +183 -0
- package/dist/toast/item/toast-item.js +345 -0
- package/dist/toast/root/toast-root.d.ts +72 -0
- package/dist/toast/root/toast-root.js +87 -0
- package/dist/toggle/group/toggle-group.d.ts +140 -0
- package/dist/toggle/group/toggle-group.js +278 -0
- package/dist/toggle/index.d.ts +2 -0
- package/dist/toggle/index.js +2 -0
- package/dist/toggle/root/toggle-root.d.ts +99 -0
- package/dist/toggle/root/toggle-root.js +146 -0
- package/dist/toolbar/index.d.ts +1 -0
- package/dist/toolbar/index.js +1 -0
- package/dist/toolbar/root/toolbar-root.d.ts +105 -0
- package/dist/toolbar/root/toolbar-root.js +260 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +1 -0
- package/dist/tooltip/root/tooltip-root.d.ts +388 -0
- package/dist/tooltip/root/tooltip-root.js +707 -0
- package/dist/tour/index.d.ts +2 -0
- package/dist/tour/index.js +2 -0
- package/dist/tour/root/tour-root.d.ts +161 -0
- package/dist/tour/root/tour-root.js +351 -0
- package/dist/tour/stop/tour-stop.d.ts +131 -0
- package/dist/tour/stop/tour-stop.js +249 -0
- package/dist/tree/index.d.ts +2 -0
- package/dist/tree/index.js +2 -0
- package/dist/tree/item/tree-item.d.ts +208 -0
- package/dist/tree/item/tree-item.js +381 -0
- package/dist/tree/root/tree-root.d.ts +88 -0
- package/dist/tree/root/tree-root.js +287 -0
- package/dist/trend/index.d.ts +1 -0
- package/dist/trend/index.js +1 -0
- package/dist/trend/root/trend-root.d.ts +67 -0
- package/dist/trend/root/trend-root.js +106 -0
- package/dist/video/index.d.ts +1 -0
- package/dist/video/index.js +1 -0
- package/dist/video/root/video-root.d.ts +711 -0
- package/dist/video/root/video-root.js +1821 -0
- package/dist/video-playlist/index.d.ts +3 -0
- package/dist/video-playlist/index.js +3 -0
- package/dist/video-playlist/item/video-playlist-item.d.ts +101 -0
- package/dist/video-playlist/item/video-playlist-item.js +162 -0
- package/dist/video-playlist/menu/video-playlist-menu.d.ts +121 -0
- package/dist/video-playlist/menu/video-playlist-menu.js +237 -0
- package/dist/video-playlist/root/video-playlist-root.d.ts +108 -0
- package/dist/video-playlist/root/video-playlist-root.js +218 -0
- package/dist/virtual-list/index.d.ts +1 -0
- package/dist/virtual-list/index.js +1 -0
- package/dist/virtual-list/root/virtual-list-root.d.ts +121 -0
- package/dist/virtual-list/root/virtual-list-root.js +221 -0
- package/jsx.d.ts +49767 -0
- package/package.json +77 -0
- package/svelte.d.ts +129 -0
- package/vue.d.ts +9242 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { AriaForwardController, HelixFormElement } from '@fusion.dev/helix-core';
|
|
2
|
+
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
3
|
+
declare const HelixHeadlessSlider_base: (new (...args: any[]) => import("@fusion.dev/helix-core").MixinControllerValueInterface) & (new (...args: any[]) => import("@fusion.dev/helix-core").MixinFieldInterface) & typeof HelixFormElement;
|
|
4
|
+
/**
|
|
5
|
+
* @summary A value chosen from a range by dragging.
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* A real `<input type="range">`, so the drag, the arrow keys, Home and End, the
|
|
9
|
+
* page keys and the touch target are all the platform's. Every one of those is
|
|
10
|
+
* a thing a hand-built slider gets wrong, and the last is the one nobody
|
|
11
|
+
* notices: a native range has a hit area larger than its thumb, sized by the
|
|
12
|
+
* platform for a finger.
|
|
13
|
+
*
|
|
14
|
+
* **The value is a string, like every other form control's.** A range submits
|
|
15
|
+
* text and `MixinControllerValue` holds text, so the number is a reading of the
|
|
16
|
+
* value rather than the value itself. `valueAsNumber` is there for anything
|
|
17
|
+
* doing arithmetic on it.
|
|
18
|
+
*
|
|
19
|
+
* **Marks are drawn rather than left to `<datalist>`**, which was the first
|
|
20
|
+
* answer and is the wrong one. A datalist's ticks cannot be styled at all, and
|
|
21
|
+
* Firefox does not render them for a range at all, so the platform's version is
|
|
22
|
+
* a mark that looks like someone else's design where it appears and no mark
|
|
23
|
+
* where it does not. Drawing them costs the semantics nothing, because a mark
|
|
24
|
+
* is decoration: what a reader can actually land on is `step`, which the input
|
|
25
|
+
* enforces whether or not anything is drawn.
|
|
26
|
+
*
|
|
27
|
+
* `markers` is a count rather than a flag tied to `step`. A flag reads well
|
|
28
|
+
* until a slider from zero to a hundred stepping by one asks for a hundred and
|
|
29
|
+
* one ticks, and then it is either noise or a silent refusal to draw. A number
|
|
30
|
+
* is what the reader sees, so it cannot surprise anyone.
|
|
31
|
+
*
|
|
32
|
+
* **A range is two of them, not a hand-built one.** There is no native
|
|
33
|
+
* two-thumb range, and the answer is not to stop using the platform's: it is to
|
|
34
|
+
* stack two of them on one track, so each thumb keeps its own drag, its own
|
|
35
|
+
* arrow keys, its own Home and End and its own finger-sized hit area. Rebuilding
|
|
36
|
+
* would throw away every argument this component is made of, to gain a second
|
|
37
|
+
* handle.
|
|
38
|
+
*
|
|
39
|
+
* Crossing is stopped in the handler rather than by the bounds, and that is not
|
|
40
|
+
* the obvious way round. Giving the lower input `max` of the upper reads well
|
|
41
|
+
* and breaks the drawing: an input's thumb sits at a fraction of *its own*
|
|
42
|
+
* range, so a lower thumb bounded at the upper one paints against a shorter
|
|
43
|
+
* track and the two stop lining up. Both inputs span the whole range and the
|
|
44
|
+
* values are clamped against each other on the way in.
|
|
45
|
+
*
|
|
46
|
+
* The properties below are written by this component and read by whoever draws
|
|
47
|
+
* it. A consumer sets none of them: they carry a number this element computed
|
|
48
|
+
* and CSS cannot, which is what lets a stylesheet on this tier draw the thing
|
|
49
|
+
* without measuring anything itself.
|
|
50
|
+
*
|
|
51
|
+
* @since 0.1.0
|
|
52
|
+
* @status experimental
|
|
53
|
+
* @category forms
|
|
54
|
+
* @aliases Range, Range input
|
|
55
|
+
* @documentation https://helix.fusion.dev/components/slider
|
|
56
|
+
*
|
|
57
|
+
* @event {Event} change - Relayed once the reader has let go.
|
|
58
|
+
* @event {HelixBeforeChangeEvent} helix-before-change - Fired as the value changes, and cancelable.
|
|
59
|
+
* @event {Event} input - Announced once the value has moved.
|
|
60
|
+
*
|
|
61
|
+
* @csspart control - The range input.
|
|
62
|
+
* @csspart feedback - What is wrong with it.
|
|
63
|
+
* @csspart field - The row: the control and its readout.
|
|
64
|
+
* @csspart hint - Help under the track, while nothing is wrong.
|
|
65
|
+
* @csspart label - The question, over the track.
|
|
66
|
+
* @csspart marker - One mark.
|
|
67
|
+
* @csspart marker-label - The value a mark stands at, when `marker-labels` is set.
|
|
68
|
+
* @csspart markers - The row of marks along the track.
|
|
69
|
+
* @csspart output - The current value, shown beside it.
|
|
70
|
+
*
|
|
71
|
+
* @cssproperty --slider-fraction - The value as a fraction of the range, 0 to 1.
|
|
72
|
+
* @cssproperty --slider-from - Where the filled span starts, as a percentage of the track.
|
|
73
|
+
* @cssproperty --slider-marker-at - Where one marker sits, as a percentage of the track.
|
|
74
|
+
* @cssproperty --slider-to - Where the filled span ends, as a percentage of the track.
|
|
75
|
+
*/
|
|
76
|
+
export declare class HelixHeadlessSlider extends HelixHeadlessSlider_base {
|
|
77
|
+
protected readonly aria: AriaForwardController;
|
|
78
|
+
/** Typed or dragged, so every edit is announced. See `announcesInput`. */
|
|
79
|
+
protected readonly announcesInput = true;
|
|
80
|
+
/**
|
|
81
|
+
* Whether there are two thumbs and the value is a pair.
|
|
82
|
+
*
|
|
83
|
+
* The pair is one string, `"10,50"`, which is what a form submits and what
|
|
84
|
+
* `MixinControllerValue` already holds. `valueAsNumber` reads the lower of
|
|
85
|
+
* the two, since a range has no single number.
|
|
86
|
+
*/
|
|
87
|
+
range: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* The largest value the reader can choose.
|
|
90
|
+
*/
|
|
91
|
+
max: number;
|
|
92
|
+
/**
|
|
93
|
+
* The smallest value the reader can choose.
|
|
94
|
+
*/
|
|
95
|
+
min: number;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the chosen value is shown beside the track.
|
|
98
|
+
*/
|
|
99
|
+
showValue: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* How many marks to draw along the track, evenly spaced, ends included.
|
|
102
|
+
*
|
|
103
|
+
* `0` or `1` draws none: one mark on a track says nothing about a range.
|
|
104
|
+
* They are decoration, so they are `aria-hidden`; what a reader can land on
|
|
105
|
+
* is `step`, which the input enforces regardless.
|
|
106
|
+
*
|
|
107
|
+
* **Each one is snapped to a step before it is placed.** Evenly spaced and
|
|
108
|
+
* on a step are two different things, and asking for four marks across a
|
|
109
|
+
* hundred in twenty-fives wants them at 0, 33.3, 66.7 and 100: two of those
|
|
110
|
+
* are places the thumb cannot go. A mark the thumb can never sit on is the
|
|
111
|
+
* one thing a mark must not be, so the spacing gives way rather than the
|
|
112
|
+
* step, and marks may come out unevenly spaced when the two disagree. That
|
|
113
|
+
* is the honest picture of the range being offered.
|
|
114
|
+
*/
|
|
115
|
+
markers: number;
|
|
116
|
+
/**
|
|
117
|
+
* Whether each mark says which value it stands at.
|
|
118
|
+
*/
|
|
119
|
+
markerLabels: boolean;
|
|
120
|
+
/** How far one press of an arrow key moves it. */
|
|
121
|
+
step: number;
|
|
122
|
+
/**
|
|
123
|
+
* How many characters the readout has to be able to hold, widest case.
|
|
124
|
+
*
|
|
125
|
+
* **A number that grows a digit makes the track jump.** The output sizes to
|
|
126
|
+
* its text, so a range crossing 99 to 100 widens by a character and the row
|
|
127
|
+
* gives that width back out of the track: the handle moves while the value
|
|
128
|
+
* has not, which reads as the control drifting under the pointer. `3ch` was
|
|
129
|
+
* the floor and covers a plain value up to three digits, and a range says
|
|
130
|
+
* "35 to 100", which is ten.
|
|
131
|
+
*
|
|
132
|
+
* Widest rather than current, so the box never changes size at all. Measured
|
|
133
|
+
* off the bounds because that is what the readout can ever say: the longer of
|
|
134
|
+
* the two ends, twice, plus the four of " to " when both are shown. Negative
|
|
135
|
+
* bounds are covered by measuring the rendered string rather than the digits,
|
|
136
|
+
* since the sign is a character like any other.
|
|
137
|
+
*
|
|
138
|
+
* `tabular-nums` is on the part already and is the other half of this: equal
|
|
139
|
+
* digit widths keep a same-length number from shifting inside the box the
|
|
140
|
+
* same way a different-length one shifted the box.
|
|
141
|
+
*/
|
|
142
|
+
private get reserve();
|
|
143
|
+
/**
|
|
144
|
+
* How many decimals the step is written to, so a label is not float noise.
|
|
145
|
+
*
|
|
146
|
+
* `min + index * step` on a fractional step prints `0.30000000000000004`,
|
|
147
|
+
* which is arithmetic being honest and a label being wrong. Rounding back to
|
|
148
|
+
* the step's own precision is what the reader asked for when they wrote it.
|
|
149
|
+
*/
|
|
150
|
+
private get precision();
|
|
151
|
+
/**
|
|
152
|
+
* How far one press of an arrow key moves it.
|
|
153
|
+
*/
|
|
154
|
+
private get markerValues();
|
|
155
|
+
/**
|
|
156
|
+
* The chosen value as a number, for anything doing arithmetic on it.
|
|
157
|
+
*
|
|
158
|
+
* @reference https://html.spec.whatwg.org/multipage/input.html#dom-input-valueasnumber HTMLInputElement.valueAsNumber
|
|
159
|
+
*/
|
|
160
|
+
get valueAsNumber(): number;
|
|
161
|
+
/** Focus is delegated to the control, so the host is never the target. */
|
|
162
|
+
static shadowRootOptions: ShadowRootInit;
|
|
163
|
+
/**
|
|
164
|
+
* The pair, as numbers, in order.
|
|
165
|
+
*
|
|
166
|
+
* Falls back to the whole range rather than to zero, so a range slider given
|
|
167
|
+
* no value opens fully wide instead of pinned shut at its own minimum, which
|
|
168
|
+
* is what a filter with nothing filtered out looks like.
|
|
169
|
+
*/
|
|
170
|
+
private get bounds();
|
|
171
|
+
/** Where one value sits along the track, as a fraction of it. */
|
|
172
|
+
private along;
|
|
173
|
+
private readonly handleInput;
|
|
174
|
+
/** Relayed, because `change` does not cross a shadow boundary on its own. */
|
|
175
|
+
private readonly handleChange;
|
|
176
|
+
/** Reports the value. */
|
|
177
|
+
private sync;
|
|
178
|
+
/**
|
|
179
|
+
* How far along the track the thumb sits, as a fraction.
|
|
180
|
+
*
|
|
181
|
+
* Arithmetic rather than a measurement, because the browser already knows
|
|
182
|
+
* where it drew the handle and measuring it would be a guess at that.
|
|
183
|
+
*
|
|
184
|
+
* **Sanitized here, not read back off the control.** This asked the input for
|
|
185
|
+
* its value, on the reasoning that a range clamps and snaps whatever it is
|
|
186
|
+
* given, so the control is the truth about where the thumb is. The reasoning
|
|
187
|
+
* is right and the timing is not: `fraction` is evaluated inside `render()`,
|
|
188
|
+
* and the `style` binding carrying it is committed *before* the `.value`
|
|
189
|
+
* binding below it, so it read the value this very render was about to
|
|
190
|
+
* replace. The fill was a render behind the thumb, and on the first pass it
|
|
191
|
+
* read the seeded midpoint and stayed there.
|
|
192
|
+
*
|
|
193
|
+
* Measured on a slider from 0 to 1: after dragging to either end, the host's
|
|
194
|
+
* `value` was `1`, the control's was `1`, and `--slider-fraction` was still
|
|
195
|
+
* `0.5`. Off by half a track, and stable, which is what made it look like a
|
|
196
|
+
* drawing bug rather than a timing one.
|
|
197
|
+
*
|
|
198
|
+
* So the same two operations a range performs are done here: snap to the step
|
|
199
|
+
* from `min`, then clamp to the bounds. Nothing is read from the tree, so
|
|
200
|
+
* there is no order for this to be on the wrong side of.
|
|
201
|
+
*/
|
|
202
|
+
private get fraction();
|
|
203
|
+
/**
|
|
204
|
+
* A value snapped to the step, counted from `min` the way a range counts it.
|
|
205
|
+
*
|
|
206
|
+
* `min` rather than zero is the whole of it: a slider from `0.2` with a step
|
|
207
|
+
* of `0.05` can land on `0.2`, `0.25` and so on, and snapping against zero
|
|
208
|
+
* would offer `0.2` and `0.25` too but round the ones between to the wrong
|
|
209
|
+
* side. `precision` is what keeps `0.30000000000000004` off the track, the
|
|
210
|
+
* same guard the marker labels already use.
|
|
211
|
+
*/
|
|
212
|
+
private snapped;
|
|
213
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
214
|
+
protected updated(changed: PropertyValues): void;
|
|
215
|
+
/**
|
|
216
|
+
* Which way the track runs, `vertical` standing it on end.
|
|
217
|
+
*
|
|
218
|
+
* For a level rather than a quantity: a fader, a channel, anything a reader
|
|
219
|
+
* pictures as high and low rather than as less and more. Absent is
|
|
220
|
+
* horizontal, which is what almost every slider in a form wants.
|
|
221
|
+
*
|
|
222
|
+
* **A vertical track has no length of its own**, the way a horizontal one
|
|
223
|
+
* takes the width of the row it is in. `--slider-length` is that number and
|
|
224
|
+
* defaults to nine rem, so one dropped into a layout is a usable height
|
|
225
|
+
* rather than a thumb sitting on nothing.
|
|
226
|
+
*/
|
|
227
|
+
orientation?: 'horizontal' | 'vertical';
|
|
228
|
+
protected render(): TemplateResult;
|
|
229
|
+
}
|
|
230
|
+
declare global {
|
|
231
|
+
interface HTMLElementTagNameMap {
|
|
232
|
+
'helix-headless-slider': HelixHeadlessSlider;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
export {};
|