@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 @@
|
|
|
1
|
+
export * from './root/date-picker-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/date-picker-root.js';
|
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
import { HelixFormElement } from '@fusion.dev/helix-core';
|
|
2
|
+
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
3
|
+
declare const HelixHeadlessDatePicker_base: (new (...args: any[]) => import("@fusion.dev/helix-core").MixinControllerValueInterface) & typeof HelixFormElement;
|
|
4
|
+
/**
|
|
5
|
+
* @summary Shows a month, and takes a date from it.
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
* A grid of days, per the APG date grid: the whole grid is one tab stop, arrows
|
|
9
|
+
* move by day and week, `PageUp` and `PageDown` move by month, and `Home` and
|
|
10
|
+
* `End` go to the ends of the week. Only the focused cell is in the tab
|
|
11
|
+
* sequence.
|
|
12
|
+
*
|
|
13
|
+
* Roving `tabindex` is written on the cells, which is free here because they
|
|
14
|
+
* are rendered into this shadow root rather than being markup a consumer wrote.
|
|
15
|
+
*
|
|
16
|
+
* Dates are `YYYY-MM-DD` strings and every calculation is in UTC. A local-time
|
|
17
|
+
* `Date` shifts across a timezone or a daylight-saving boundary, so the string
|
|
18
|
+
* is what the component holds and the arithmetic never leaves UTC.
|
|
19
|
+
*
|
|
20
|
+
* `month` is what the grid shows, separately from `value`, so paging through
|
|
21
|
+
* months does not select anything and a consumer can drive the view. Left
|
|
22
|
+
* unset, it follows the first selected date, and then the current month.
|
|
23
|
+
*
|
|
24
|
+
* `mode` decides how many dates are held. Absent takes one. `range` takes two
|
|
25
|
+
* and marks everything between them, starting over on the third click rather
|
|
26
|
+
* than replacing an end at random. `multiple` toggles, so clicking a chosen
|
|
27
|
+
* date takes it out. All three read and write the same comma-separated
|
|
28
|
+
* `value`.
|
|
29
|
+
*
|
|
30
|
+
* `locale` is worth setting where the output is compared across environments.
|
|
31
|
+
* Left unset, month and day names come from the runtime's own locale, and a
|
|
32
|
+
* server and a browser need not agree on what that is.
|
|
33
|
+
*
|
|
34
|
+
* `helix-before-change` was `helix-select`, and it moved when the calendar became
|
|
35
|
+
* form control. A control whose value changes dispatches `helix-before-change` here:
|
|
36
|
+
* `Input`, `Select`, `Listbox`, `Radio.Group` and `Toggle.Group` all do, and a
|
|
37
|
+
* calendar submitting a date is the same kind of thing. `helix-select` stays
|
|
38
|
+
* what it is elsewhere, which is a row or an item being chosen in something
|
|
39
|
+
* that reports no value at all, such as `Menu` or `Tree`.
|
|
40
|
+
*
|
|
41
|
+
* Paging is `helix-navigate` and not either of those, because it chooses
|
|
42
|
+
* nothing: the view moves and the answer does not.
|
|
43
|
+
*
|
|
44
|
+
* The properties below are written by this component and read by whoever draws
|
|
45
|
+
* it. A consumer sets none of them: they carry a number this element computed
|
|
46
|
+
* and CSS cannot, which is what lets a stylesheet on this tier draw the thing
|
|
47
|
+
* without measuring anything itself.
|
|
48
|
+
*
|
|
49
|
+
* @since 0.1.0
|
|
50
|
+
* @status experimental
|
|
51
|
+
* @category forms
|
|
52
|
+
* @aliases Calendar, Date grid, Month view
|
|
53
|
+
* @documentation https://helix.fusion.dev/components/date-picker
|
|
54
|
+
*
|
|
55
|
+
* @slot next-icon - The glyph on the control that moves forward a month, usually a caret.
|
|
56
|
+
* @slot previous-icon - The glyph on the control that moves back a month, usually a caret.
|
|
57
|
+
*
|
|
58
|
+
* @event {Event} change - Announced once the value has moved.
|
|
59
|
+
* @event {HelixBeforeChangeEvent} helix-before-change - Fired before the dates change, and cancelable.
|
|
60
|
+
* @event {HelixNavigateEvent} helix-navigate - Fired before the month on show changes, and cancelable.
|
|
61
|
+
* @event {Event} input - Announced once the value has moved.
|
|
62
|
+
*
|
|
63
|
+
* @csspart cell - One column of a row, which is what a range paints.
|
|
64
|
+
* @csspart day - The shape inside a cell, which is what a single date paints.
|
|
65
|
+
* @csspart grid - The grid of days.
|
|
66
|
+
* @csspart header - The month name and its controls.
|
|
67
|
+
* @csspart heading - The month and year being shown.
|
|
68
|
+
* @csspart month - One month, its header and its grid.
|
|
69
|
+
* @csspart months - The run of months.
|
|
70
|
+
* @csspart next - The control that moves to the next month.
|
|
71
|
+
* @csspart next-mark - The glyph on the next month control, where none is slotted.
|
|
72
|
+
* @csspart previous - The control that moves to the previous month.
|
|
73
|
+
* @csspart previous-mark - The glyph on the previous month control, where none is slotted.
|
|
74
|
+
* @csspart week - One row of days.
|
|
75
|
+
* @csspart weekday - A column header naming a day of the week.
|
|
76
|
+
*
|
|
77
|
+
* @cssproperty --date-picker-column-count - How many month columns are drawn, capped at two. `--date-picker-columns` overrides it.
|
|
78
|
+
*/
|
|
79
|
+
export declare class HelixHeadlessDatePicker extends HelixHeadlessDatePicker_base {
|
|
80
|
+
/**
|
|
81
|
+
* How many dates can be held at once.
|
|
82
|
+
*/
|
|
83
|
+
mode?: 'range' | 'multiple';
|
|
84
|
+
/**
|
|
85
|
+
* How many months to show, side by side.
|
|
86
|
+
*/
|
|
87
|
+
months: number;
|
|
88
|
+
/**
|
|
89
|
+
* Locale for month and day names.
|
|
90
|
+
*
|
|
91
|
+
* Absent uses the runtime's own.
|
|
92
|
+
*/
|
|
93
|
+
locale: string;
|
|
94
|
+
/**
|
|
95
|
+
* Dates that cannot be chosen, comma separated, as `YYYY-MM-DD`.
|
|
96
|
+
*/
|
|
97
|
+
disableDates: string;
|
|
98
|
+
/**
|
|
99
|
+
* Days of the week that cannot be chosen, comma separated, `0` to `6`.
|
|
100
|
+
*/
|
|
101
|
+
disableDays: string;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the current selection fails validation.
|
|
104
|
+
*/
|
|
105
|
+
invalid: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* The month on show, as `YYYY-MM`. Follows `value`, then the current month.
|
|
108
|
+
*
|
|
109
|
+
* Separate from `value` on purpose, so paging selects nothing and a consumer
|
|
110
|
+
* can drive the view. It said that and could not do it: the calendar wrote
|
|
111
|
+
* this when the reader paged, so a consumer holding it was overwritten and
|
|
112
|
+
* never told. Reading gives the month on show; writing declares it theirs,
|
|
113
|
+
* and `default-month` seeds one the calendar owns.
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
get month(): string;
|
|
118
|
+
set month(next: string);
|
|
119
|
+
/**
|
|
120
|
+
* Accessible name for the control that pages back.
|
|
121
|
+
*
|
|
122
|
+
* A property because this is the one component in the library that takes a
|
|
123
|
+
* `locale`, and it carried two hardcoded English names with no way to change
|
|
124
|
+
* them: a calendar rendering its own month names in Japanese still announced
|
|
125
|
+
* its controls in English. `attribute:` spelled out, since Lit lowercases a
|
|
126
|
+
* camelCase name rather than dash-casing it.
|
|
127
|
+
*/
|
|
128
|
+
previousLabel: string;
|
|
129
|
+
/**
|
|
130
|
+
* Accessible name for the control that pages forward.
|
|
131
|
+
*/
|
|
132
|
+
nextLabel: string;
|
|
133
|
+
/**
|
|
134
|
+
* Month to open on, where nothing declared one.
|
|
135
|
+
*/
|
|
136
|
+
defaultMonth: string;
|
|
137
|
+
/** The month on show, whoever set it, and `undefined` until somebody has. */
|
|
138
|
+
private monthState;
|
|
139
|
+
/**
|
|
140
|
+
* Earliest selectable date, as `YYYY-MM-DD`.
|
|
141
|
+
*/
|
|
142
|
+
min: string;
|
|
143
|
+
/**
|
|
144
|
+
* How far apart the selectable dates are, in days.
|
|
145
|
+
*
|
|
146
|
+
* `<input type="date" step>`'s own unit, counted from `min` where there is
|
|
147
|
+
* one and from 1 January 1970 where there is not, which is the platform's own
|
|
148
|
+
* base. A booking calendar that only takes Mondays is `step="7"` with a `min`
|
|
149
|
+
* on a Monday, and there was no way to say that: `disable-dates` takes a list
|
|
150
|
+
* and a year of Mondays is not a list anybody writes.
|
|
151
|
+
*
|
|
152
|
+
* One is every date and needs no rule, which is why anything below one is
|
|
153
|
+
* treated as one rather than as an error: a step of zero would block every
|
|
154
|
+
* date including the one already chosen.
|
|
155
|
+
*/
|
|
156
|
+
step: number;
|
|
157
|
+
/**
|
|
158
|
+
* Latest selectable date, as `YYYY-MM-DD`.
|
|
159
|
+
*/
|
|
160
|
+
max: string;
|
|
161
|
+
/**
|
|
162
|
+
* Accessible name for the grid.
|
|
163
|
+
*/
|
|
164
|
+
label: string;
|
|
165
|
+
/**
|
|
166
|
+
* First column of the week, `0` for Sunday through `6` for Saturday.
|
|
167
|
+
*/
|
|
168
|
+
firstDayOfWeek: number;
|
|
169
|
+
/**
|
|
170
|
+
* The date the grid's tab stop is on.
|
|
171
|
+
*
|
|
172
|
+
* Absent until the grid is used.
|
|
173
|
+
*/
|
|
174
|
+
private focused;
|
|
175
|
+
/** The selected dates, in order. */
|
|
176
|
+
private get selected();
|
|
177
|
+
/** The range's ends, when there are two and the mode asks for them. */
|
|
178
|
+
private get range();
|
|
179
|
+
private isSelected;
|
|
180
|
+
/** The month being shown, resolved from `month`, then `value`, then today. */
|
|
181
|
+
private get shown();
|
|
182
|
+
/**
|
|
183
|
+
* The month to open on when nothing has declared one.
|
|
184
|
+
*
|
|
185
|
+
* Split out from `shown` so `month` can report what is on display without the
|
|
186
|
+
* two calling each other: `month` reading `shown` and `shown` reading `month`
|
|
187
|
+
* is a stack overflow, and the specs found it immediately.
|
|
188
|
+
*/
|
|
189
|
+
private get derivedMonth();
|
|
190
|
+
/**
|
|
191
|
+
* The date the tab stop sits on, which is where the arrows move from.
|
|
192
|
+
*
|
|
193
|
+
* It has to be a date the grid actually renders, so the month is compared
|
|
194
|
+
* with its year. Comparing the month alone puts the stop on the same date a
|
|
195
|
+
* year away, which is rendered nowhere, and the grid is left with no tab stop
|
|
196
|
+
* at all and no way into it from the keyboard.
|
|
197
|
+
*
|
|
198
|
+
* Each candidate is tested in turn rather than the first one winning
|
|
199
|
+
* outright. Where the last date focused is in some other month, the selected
|
|
200
|
+
* date still holds the stop, and only with neither in view does it fall to
|
|
201
|
+
* the first of the month.
|
|
202
|
+
*/
|
|
203
|
+
private get anchor();
|
|
204
|
+
/** Six weeks of dates, so a grid does not change height between months. */
|
|
205
|
+
private weeksOf;
|
|
206
|
+
/**
|
|
207
|
+
* Whether a date is barred, by bound, by weekday, or by name.
|
|
208
|
+
*
|
|
209
|
+
* `barred`, not `disabled`: the calendar is a form control now, and
|
|
210
|
+
* `HelixFormElement.disabled` is a boolean about the whole control. A method
|
|
211
|
+
* and a flag cannot share a name, and of the two it is the method that should
|
|
212
|
+
* move, because "disabled" on a control means one thing everywhere else in
|
|
213
|
+
* the library.
|
|
214
|
+
*/
|
|
215
|
+
private barred;
|
|
216
|
+
/**
|
|
217
|
+
* Moves the view, announcing it first.
|
|
218
|
+
*
|
|
219
|
+
* `helix-navigate` and not `helix-change`: paging chooses nothing, and a
|
|
220
|
+
* consumer driving the view has to hear that it moved without being told the
|
|
221
|
+
* answer did. In controlled mode nothing moves and the consumer decides,
|
|
222
|
+
* which is the point of them holding it.
|
|
223
|
+
*/
|
|
224
|
+
private show;
|
|
225
|
+
private moveTo;
|
|
226
|
+
/**
|
|
227
|
+
* Adds a date to the selection, as the mode allows.
|
|
228
|
+
*
|
|
229
|
+
* `range` starts over once it holds two, so a third click begins a new range
|
|
230
|
+
* rather than extending or replacing an end at random. `multiple` toggles, so
|
|
231
|
+
* clicking a chosen date takes it out.
|
|
232
|
+
*/
|
|
233
|
+
private select;
|
|
234
|
+
private readonly handleKeydown;
|
|
235
|
+
connectedCallback(): void;
|
|
236
|
+
disconnectedCallback(): void;
|
|
237
|
+
/**
|
|
238
|
+
* Whether the control refuses changes while still submitting its value.
|
|
239
|
+
*
|
|
240
|
+
* **Enforced by refusing every request in one place**, which is the seam this
|
|
241
|
+
* component already has: `requestValue` is what every path here comes through,
|
|
242
|
+
* and gating it once is what stops the next call site from being written
|
|
243
|
+
* without the check.
|
|
244
|
+
*
|
|
245
|
+
* Not `disabled`, which is the confusion worth naming: a disabled control
|
|
246
|
+
* submits nothing and leaves the tab order, and a read-only one submits its
|
|
247
|
+
* value and stays reachable, which is what a form showing a value somebody
|
|
248
|
+
* else set needs.
|
|
249
|
+
*/
|
|
250
|
+
readOnly: boolean;
|
|
251
|
+
/** Refuses every change while read-only. See `readOnly`. */
|
|
252
|
+
requestValue(next: string): boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Whether the form refuses to submit while nothing is chosen.
|
|
255
|
+
*/
|
|
256
|
+
required: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Reports "required and empty", or clears it.
|
|
259
|
+
*
|
|
260
|
+
* Written out rather than taken from `MixinField`, which is where the seven
|
|
261
|
+
* form controls get this. That mixin brings a label, a hint and a feedback
|
|
262
|
+
* region with it, and this is a grid rather than a field: it is composed
|
|
263
|
+
* *into* the field that has those, so taking the mixin would give one control
|
|
264
|
+
* two of each. What is shared is five lines, and the anchor is what the
|
|
265
|
+
* browser points its bubble at.
|
|
266
|
+
*/
|
|
267
|
+
private reportRequired;
|
|
268
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
269
|
+
/**
|
|
270
|
+
* Reports validity after render, because the bubble needs somewhere to point.
|
|
271
|
+
*
|
|
272
|
+
* `updated` and not `willUpdate`: the anchor is a rendered part, and on the
|
|
273
|
+
* first pass through `willUpdate` there is no grid yet, so the browser would
|
|
274
|
+
* put the message in the corner of the viewport rather than on the calendar.
|
|
275
|
+
*/
|
|
276
|
+
protected updated(changed: PropertyValues): void;
|
|
277
|
+
/**
|
|
278
|
+
* Reports the dates to the form, one entry each.
|
|
279
|
+
*
|
|
280
|
+
* `FormData` rather than the comma-joined string the property holds, because
|
|
281
|
+
* `mode="multiple"` is genuinely several answers and a server reading
|
|
282
|
+
* `dates=2026-08-04,2026-08-06` has to know to split it on a convention this
|
|
283
|
+
* library invented. One entry per date is what every other multi-valued
|
|
284
|
+
* control on the platform sends, and `range` sends its two the same way, in
|
|
285
|
+
* order, so start and end arrive as the pair they already are.
|
|
286
|
+
*
|
|
287
|
+
* **Nothing at all without a `name`, and that is the mechanism rather than a
|
|
288
|
+
* detail.** It is what lets a calendar sit inside something that owns the
|
|
289
|
+
* form value, which is how `DatePicker` will hold one. The guard has to be
|
|
290
|
+
* explicit here in a way it does not for `Listbox`: a control reporting a
|
|
291
|
+
* plain string is skipped by the form when it has no name, but a `FormData`
|
|
292
|
+
* carries its own names and its entries are appended whatever the element is
|
|
293
|
+
* called, so an unnamed calendar would submit empty-named dates.
|
|
294
|
+
*/
|
|
295
|
+
private report;
|
|
296
|
+
/**
|
|
297
|
+
* How many months are shown, clamped once.
|
|
298
|
+
*
|
|
299
|
+
* `months` was clamped at the call site and read raw where the last month is
|
|
300
|
+
* identified, so a zero, a negative or a non-numeric value rendered nothing
|
|
301
|
+
* and took the forward control with it: `index === this.months - 1` is never
|
|
302
|
+
* true for `NaN`. One getter both read.
|
|
303
|
+
*/
|
|
304
|
+
private get monthCount();
|
|
305
|
+
/**
|
|
306
|
+
* The three date formatters, built once per locale rather than per render.
|
|
307
|
+
*
|
|
308
|
+
* `Intl.DateTimeFormat` is expensive to construct and these depend on nothing
|
|
309
|
+
* but `locale`, and they were built inside the per-month render: three
|
|
310
|
+
* constructions for every month on show, on every update, so a two-month
|
|
311
|
+
* calendar rebuilt six of them each time an arrow key moved the anchor.
|
|
312
|
+
* Measured elsewhere at about a quarter of a millisecond apiece, which is not
|
|
313
|
+
* a crisis and is pure waste.
|
|
314
|
+
*
|
|
315
|
+
* Keyed on the locale so a change to it is picked up, which a plain lazy
|
|
316
|
+
* field would not do.
|
|
317
|
+
*/
|
|
318
|
+
private cachedFormats;
|
|
319
|
+
private get formats();
|
|
320
|
+
/**
|
|
321
|
+
* The caret saying which way the month moves, behind a seam.
|
|
322
|
+
*
|
|
323
|
+
* Slot fallback, so a consumer replaces it by slotting; and a method, so the
|
|
324
|
+
* tier above replaces it by overriding. Those answer different people, which
|
|
325
|
+
* is the same pairing `Select` records on its indicator.
|
|
326
|
+
*
|
|
327
|
+
* **One of each is rendered at most**, whatever `months` is set to: the
|
|
328
|
+
* controls are drawn on the first month and the last rather than once per
|
|
329
|
+
* month, so a duplicate `<slot name="previous-icon">` cannot arise. A second
|
|
330
|
+
* slot of the same name is assigned nothing, which would have left one of two
|
|
331
|
+
* calendars with no mark and no error.
|
|
332
|
+
*/
|
|
333
|
+
protected renderPreviousMark(): TemplateResult;
|
|
334
|
+
protected renderNextMark(): TemplateResult;
|
|
335
|
+
private renderMonth;
|
|
336
|
+
protected render(): TemplateResult;
|
|
337
|
+
/**
|
|
338
|
+
* The value as a `Date`, at midnight UTC, or `null` while there is no date.
|
|
339
|
+
*
|
|
340
|
+
* The platform's own pair on `<input type="date">`, and this control holds the
|
|
341
|
+
* same `YYYY-MM-DD` string, so a consumer moving from one to the other reads
|
|
342
|
+
* the same two properties. UTC because the platform chose UTC: a date that is
|
|
343
|
+
* the same date everywhere must not become a different one by crossing a
|
|
344
|
+
* timezone, and midnight local would do exactly that for anybody west of
|
|
345
|
+
* Greenwich.
|
|
346
|
+
*
|
|
347
|
+
* `null` while the value is half typed, which is most of the keystrokes a
|
|
348
|
+
* reader makes in one of these.
|
|
349
|
+
*/
|
|
350
|
+
get valueAsDate(): Date | null;
|
|
351
|
+
set valueAsDate(date: Date | null);
|
|
352
|
+
/** The value as milliseconds since the epoch, or `NaN` while there is no date. */
|
|
353
|
+
get valueAsNumber(): number;
|
|
354
|
+
set valueAsNumber(ms: number);
|
|
355
|
+
}
|
|
356
|
+
declare global {
|
|
357
|
+
interface HTMLElementTagNameMap {
|
|
358
|
+
'helix-headless-date-picker': HelixHeadlessDatePicker;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
export {};
|