@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,116 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { customElement, HelixElement, slotFilled } from '@fusion.dev/helix-core';
|
|
8
|
+
import { html, nothing } from 'lit';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
10
|
+
/**
|
|
11
|
+
* @summary Separates content into groups with a rule.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* The separator role lives on the rule inside the shadow root rather than on
|
|
15
|
+
* the host. A role does not need to cross the shadow boundary the way an IDREF
|
|
16
|
+
* does, and putting it on the rendered element means the semantics are in the
|
|
17
|
+
* server's markup with no attribute written during a lifecycle the server never
|
|
18
|
+
* runs.
|
|
19
|
+
*
|
|
20
|
+
* Use `orientation="vertical"` between items on one line, such as inside a
|
|
21
|
+
* toolbar. A vertical divider stretches to its flex parent rather than setting
|
|
22
|
+
* a height of its own.
|
|
23
|
+
*
|
|
24
|
+
* @since 0.1.0
|
|
25
|
+
* @status stable
|
|
26
|
+
* @category layout
|
|
27
|
+
* @aliases Separator, Rule
|
|
28
|
+
* @documentation https://helix.fusion.dev/components/divider
|
|
29
|
+
*
|
|
30
|
+
* @slot - Content set into the rule, such as the word between two sections.
|
|
31
|
+
*
|
|
32
|
+
* @csspart content - What is set into it.
|
|
33
|
+
* @csspart line - The rule itself, or each half of it where something is set in.
|
|
34
|
+
*/
|
|
35
|
+
let HelixHeadlessDivider = class HelixHeadlessDivider extends HelixElement {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments);
|
|
38
|
+
/**
|
|
39
|
+
* Whether the rule is announced as a separator.
|
|
40
|
+
*
|
|
41
|
+
* Off by default, and out of the accessibility tree. Most rules on a page
|
|
42
|
+
* separate nothing: they underline a heading or close a section that space
|
|
43
|
+
* had already closed, and announcing every one as a separator is noise a
|
|
44
|
+
* screen-reader user has to walk past.
|
|
45
|
+
*
|
|
46
|
+
* An opt-in, not a `decorative` opt-out, because a boolean attribute cannot
|
|
47
|
+
* be turned off: `decorative="false"` parses as `true`, which would put the
|
|
48
|
+
* quiet default out of reach from HTML and leave it settable only as a
|
|
49
|
+
* property. An opt-in is absent by default, which every reflected property
|
|
50
|
+
* here has to be.
|
|
51
|
+
*/
|
|
52
|
+
this.announced = false;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Marks the middle region when nothing has been set into it.
|
|
56
|
+
*
|
|
57
|
+
* A divider with no content has to be one continuous line, and the space
|
|
58
|
+
* either side of the content is what would break it. `:empty` cannot answer
|
|
59
|
+
* this and neither can `:host(:has(...))`, which is invalid CSS dropped at
|
|
60
|
+
* parse time: `check:selectors` caught exactly that rule here, written in
|
|
61
|
+
* this file, by an author who had already read the note saying so.
|
|
62
|
+
*
|
|
63
|
+
* On the region inside the shadow root rather than on the host, because an
|
|
64
|
+
* attribute written onto the host is a change to markup the consumer rendered.
|
|
65
|
+
*/
|
|
66
|
+
markEmpty() {
|
|
67
|
+
const region = this.renderRoot?.querySelector('[part="content"]');
|
|
68
|
+
const empty = !slotFilled(this.renderRoot?.querySelector('slot'));
|
|
69
|
+
region?.toggleAttribute('data-empty', empty);
|
|
70
|
+
/* `hidden` beside the mirror, because `data-empty` is a hook the styled
|
|
71
|
+
sheet reads and this tier has no sheet: an empty region left in the box
|
|
72
|
+
tree is a gap a consumer cannot close without knowing to look for it. The
|
|
73
|
+
styled rule stays, because that sheet sets `display` on this part and so
|
|
74
|
+
outranks the UA one. */
|
|
75
|
+
region?.toggleAttribute('hidden', empty);
|
|
76
|
+
}
|
|
77
|
+
updated(changed) {
|
|
78
|
+
super.updated(changed);
|
|
79
|
+
this.markEmpty();
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
/* Two rules and a slot between them, always.
|
|
83
|
+
*
|
|
84
|
+
* `role="presentation"` is the honest default; `announced` is for the rule
|
|
85
|
+
* that genuinely divides one thing from another rather than just drawing a
|
|
86
|
+
* line under it.
|
|
87
|
+
*
|
|
88
|
+
* **Both halves are always rendered and the semantics stay on the first.**
|
|
89
|
+
* A rule with nothing set into it is one line with a zero-width slot and a
|
|
90
|
+
* second line of no length, which costs a reader nothing and costs the
|
|
91
|
+
* component the branch that would otherwise decide between two markups. It
|
|
92
|
+
* also means a consumer who slots something in later gets it without the
|
|
93
|
+
* element re-rendering into a different shape.
|
|
94
|
+
*
|
|
95
|
+
* The role is not repeated on the second half. Two separators where a reader
|
|
96
|
+
* crossed one line is the announcement saying twice what happened once, and
|
|
97
|
+
* the content between them is not a boundary of its own. */
|
|
98
|
+
return html `<div
|
|
99
|
+
part="line"
|
|
100
|
+
role=${this.announced ? 'separator' : 'presentation'}
|
|
101
|
+
aria-orientation=${this.announced ? (this.orientation ?? 'horizontal') : nothing}
|
|
102
|
+
></div>
|
|
103
|
+
<span part="content"><slot @slotchange=${() => this.markEmpty()}></slot></span>
|
|
104
|
+
<div part="line" role="presentation"></div>`;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
__decorate([
|
|
108
|
+
property({ reflect: true })
|
|
109
|
+
], HelixHeadlessDivider.prototype, "orientation", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
property({ reflect: true, type: Boolean })
|
|
112
|
+
], HelixHeadlessDivider.prototype, "announced", void 0);
|
|
113
|
+
HelixHeadlessDivider = __decorate([
|
|
114
|
+
customElement('helix-headless-divider')
|
|
115
|
+
], HelixHeadlessDivider);
|
|
116
|
+
export { HelixHeadlessDivider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/donut-chart-root.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './root/donut-chart-root.js';
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { HelixElement } from '@fusion.dev/helix-core';
|
|
2
|
+
import { nothing, type TemplateResult } from 'lit';
|
|
3
|
+
import '../../tooltip/index.js';
|
|
4
|
+
declare const HelixHeadlessDonutChart_base: typeof HelixElement & (new (...args: any[]) => import("@fusion.dev/helix-core").MixinChartSourceInterface);
|
|
5
|
+
/**
|
|
6
|
+
* @summary Parts of a whole as a ring, read from a table.
|
|
7
|
+
*
|
|
8
|
+
* @description
|
|
9
|
+
* The chart with the narrowest honest use, so the component is narrow too.
|
|
10
|
+
*
|
|
11
|
+
* **It reads one column and treats the rows as the parts.** Every other chart
|
|
12
|
+
* here takes a column per series; a ring has one whole to divide, and a second
|
|
13
|
+
* ring inside the first is two charts sharing a picture in the most literal
|
|
14
|
+
* way. So the first column of numbers is the series and each row is a slice.
|
|
15
|
+
*
|
|
16
|
+
* **It refuses negative values rather than drawing them.** A share of a whole
|
|
17
|
+
* cannot be less than nothing, and an arc for a negative number either runs
|
|
18
|
+
* backwards over its neighbours or is silently dropped. Those rows are skipped
|
|
19
|
+
* and the total is of what is left, which is the only reading that stays true.
|
|
20
|
+
*
|
|
21
|
+
* **The shape is drawn with a dashed stroke, not with arc commands.** One
|
|
22
|
+
* `<circle>` per slice, its dash set to the slice's share of the circumference
|
|
23
|
+
* and its offset to where the slice begins. Arc paths need the sweep flag and a
|
|
24
|
+
* large-arc flag, both of which flip at values a reader never sees coming, and
|
|
25
|
+
* a slice of exactly one whole becomes a path with no length at all.
|
|
26
|
+
*
|
|
27
|
+
* **And it keeps its aspect ratio**, alone among the charts here. The others
|
|
28
|
+
* set `preserveAspectRatio="none"` so one drawing fills any box and rescue
|
|
29
|
+
* their strokes with `vector-effect`; that rescues strokes and not geometry, so
|
|
30
|
+
* a ring drawn the same way is an ellipse in anything but a square.
|
|
31
|
+
*
|
|
32
|
+
* The table is the accessible representation and this drawing is `aria-hidden`.
|
|
33
|
+
*
|
|
34
|
+
* The properties below are written by this component and read by whoever draws
|
|
35
|
+
* it. A consumer sets none of them: they carry a number this element computed
|
|
36
|
+
* and CSS cannot, which is what lets a stylesheet on this tier draw the thing
|
|
37
|
+
* without measuring anything itself.
|
|
38
|
+
*
|
|
39
|
+
* @since 0.1.0
|
|
40
|
+
* @status experimental
|
|
41
|
+
* @category charts
|
|
42
|
+
* @aliases Pie Chart, Ring Chart, Share Chart
|
|
43
|
+
* @documentation https://helix.fusion.dev/components/donut-chart
|
|
44
|
+
*
|
|
45
|
+
* @slot - Goes in the middle of the ring. A total, usually.
|
|
46
|
+
*
|
|
47
|
+
* @csspart center - The middle of the ring, holding whatever is slotted.
|
|
48
|
+
* @csspart mark - The invisible point the tooltip is anchored to.
|
|
49
|
+
* @csspart plot - The drawing.
|
|
50
|
+
* @csspart segment - One slice.
|
|
51
|
+
* @csspart segment-edge - One slice as a closed shape, for a boundary to trace.
|
|
52
|
+
* @csspart tooltip - The bubble, forwarded from `Tooltip`.
|
|
53
|
+
* @csspart tooltip-anchor - The `Tooltip` element itself.
|
|
54
|
+
* @csspart tooltip-cell - One column's name and value inside the tooltip.
|
|
55
|
+
* @csspart tooltip-label - The slice's own name inside the tooltip.
|
|
56
|
+
* @csspart tooltip-name - A column's name inside the tooltip.
|
|
57
|
+
* @csspart tooltip-value - A column's value inside the tooltip.
|
|
58
|
+
* @csspart track - The ring the slices are drawn on.
|
|
59
|
+
*
|
|
60
|
+
* @cssproperty --donut-chart-stroke - How thick the ring is drawn, derived from `hole`.
|
|
61
|
+
*/
|
|
62
|
+
export declare class HelixHeadlessDonutChart extends HelixHeadlessDonutChart_base {
|
|
63
|
+
/**
|
|
64
|
+
* The pointer is not mapped across this one.
|
|
65
|
+
*
|
|
66
|
+
* Every other chart lays its readings out left to right, so the nearest is
|
|
67
|
+
* arithmetic on x. A ring's slices are real elements at every angle, and x
|
|
68
|
+
* alone would answer with whichever slice shared a horizontal position with
|
|
69
|
+
* the pointer: at three o'clock and at nine o'clock it would give the same
|
|
70
|
+
* reading for opposite sides of the chart. So the slices say which one they
|
|
71
|
+
* are and this only holds the answer.
|
|
72
|
+
*
|
|
73
|
+
* Set here rather than in a constructor, and that is not a style choice. The
|
|
74
|
+
* analyzer reads `this.pointer.axis = 'none'` in a constructor body as a
|
|
75
|
+
* declaration of a public field called `axis`, and failed the build with
|
|
76
|
+
* `HelixHeadlessDonutChart.tracks has no description` for a member that does not
|
|
77
|
+
* exist on this class at all.
|
|
78
|
+
*/
|
|
79
|
+
connectedCallback(): void;
|
|
80
|
+
/**
|
|
81
|
+
* How much is left open in the middle.
|
|
82
|
+
*
|
|
83
|
+
* Absent is a ring with room for a total in it. `small` and `large` move the
|
|
84
|
+
* hole without moving the outer edge, so a chart keeps its footprint.
|
|
85
|
+
*
|
|
86
|
+
* **`none` is a pie**, and it is the same drawing rather than another one:
|
|
87
|
+
* the radius follows the thickness, so the inner edge reaching the center is
|
|
88
|
+
* what closing the hole means. A pie reads less accurately than a ring, angle
|
|
89
|
+
* being harder to judge than length, but it is not *misleading* the way a bar
|
|
90
|
+
* measured from anything but zero is, which is why this is a value here and
|
|
91
|
+
* the bar chart's baseline is not a property at all.
|
|
92
|
+
*
|
|
93
|
+
* **Geometry rather than a CSS hook, and it had to move.** This was
|
|
94
|
+
* `--donut-chart-thickness`, and the dash arithmetic needs the circumference,
|
|
95
|
+
* which needs the radius: reading a custom property means `getComputedStyle`,
|
|
96
|
+
* which is client-only, so a server would have drawn a different ring than
|
|
97
|
+
* the client. A plot's proportions are markup for the same reason `curve` is.
|
|
98
|
+
*/
|
|
99
|
+
hole?: 'large' | 'none' | 'small';
|
|
100
|
+
/**
|
|
101
|
+
* How much of the circle the whole occupies.
|
|
102
|
+
*
|
|
103
|
+
* Absent is the full turn. `half` is a semi-donut: the same shares spread
|
|
104
|
+
* over a half circle that opens downward, which is the shape a dashboard
|
|
105
|
+
* uses when the ring sits above a figure and the space below it is doing
|
|
106
|
+
* something else.
|
|
107
|
+
*
|
|
108
|
+
* **A second property rather than another `hole` value**, because the two are
|
|
109
|
+
* different axes and can both be true: `hole` is radial and says how thick
|
|
110
|
+
* the band is, this is angular and says how far round it goes. A `half`
|
|
111
|
+
* `none` is a semi-pie and is a real thing to want.
|
|
112
|
+
*
|
|
113
|
+
* **Not a gauge**, and the distinction is worth stating because this row was
|
|
114
|
+
* first filed as one. A gauge is one value against a range, which is a
|
|
115
|
+
* different data shape entirely and is `Meter`, whose `round` example already
|
|
116
|
+
* draws the reading as a ring. This divides a whole into parts and then
|
|
117
|
+
* declines to use the bottom half of the circle.
|
|
118
|
+
*
|
|
119
|
+
* Reflected, because the stylesheet has three things to say about it: the
|
|
120
|
+
* rotation that puts the first slice at nine o'clock, the aspect ratio of a
|
|
121
|
+
* box that is no longer square, and where the middle sits once the bottom of
|
|
122
|
+
* the circle is not drawn.
|
|
123
|
+
*/
|
|
124
|
+
sweep?: 'half';
|
|
125
|
+
/** The fraction of the circle the shares are spread over. */
|
|
126
|
+
private get span();
|
|
127
|
+
/** How thick the ring is drawn, in the drawing's own units. */
|
|
128
|
+
private get thickness();
|
|
129
|
+
/** The ring's radius, which follows its thickness so the outer edge holds. */
|
|
130
|
+
private get radius();
|
|
131
|
+
private get shares();
|
|
132
|
+
protected render(): TemplateResult;
|
|
133
|
+
/**
|
|
134
|
+
* The ring itself, behind a seam the styled tier can move.
|
|
135
|
+
*
|
|
136
|
+
* `aria-hidden`, because the table it was read from is the readable version
|
|
137
|
+
* and a screen reader hearing both hears the same numbers twice.
|
|
138
|
+
*/
|
|
139
|
+
protected renderPlot(shares: {
|
|
140
|
+
fraction: number;
|
|
141
|
+
start: number;
|
|
142
|
+
}[]): TemplateResult;
|
|
143
|
+
/**
|
|
144
|
+
* The view box, cropped to what is actually drawn.
|
|
145
|
+
*
|
|
146
|
+
* A full turn uses the square. A half arc uses the band from the top of the
|
|
147
|
+
* ring down to the center line, plus the half stroke its flat ends hang
|
|
148
|
+
* below that, and cropping to it is the difference between a semi-donut and a
|
|
149
|
+
* semi-donut with an empty quarter of the box under it. The outer edge is
|
|
150
|
+
* `EDGE` from the center whatever the thickness, which is what makes this two
|
|
151
|
+
* numbers rather than a measurement.
|
|
152
|
+
*/
|
|
153
|
+
private get frame();
|
|
154
|
+
/** One slice, as a dash the length of its share. */
|
|
155
|
+
protected renderSegment(share: {
|
|
156
|
+
fraction: number;
|
|
157
|
+
start: number;
|
|
158
|
+
}, index: number): TemplateResult;
|
|
159
|
+
/**
|
|
160
|
+
* The same slice again, as a shape with an inside.
|
|
161
|
+
*
|
|
162
|
+
* **A stroked arc has no boundary to draw, which is why this exists.** The
|
|
163
|
+
* segment above is a dash on a circle: the mark *is* the edge, so there is
|
|
164
|
+
* nothing for an outline to trace and nothing within it to fade. Anything
|
|
165
|
+
* wanting those two separately needs the slice as a closed path, and this is
|
|
166
|
+
* it: the outer arc, a step inward, the inner arc back, closed.
|
|
167
|
+
*
|
|
168
|
+
* **Rendered always and painted only sometimes**, which is what keeps this on
|
|
169
|
+
* this tier. Whether a boundary is drawn is a styled question and the answer
|
|
170
|
+
* lives in a stylesheet; whether the geometry a boundary would need exists at
|
|
171
|
+
* all is structural, and a component cannot conjure a shape from CSS. So the
|
|
172
|
+
* path is here for every donut and is `fill: none; stroke: none` until
|
|
173
|
+
* something asks for it.
|
|
174
|
+
*
|
|
175
|
+
* **Not a replacement for the dash, which was the first plan.** The dash
|
|
176
|
+
* carries three jobs and only one of them is the shape: a share growing is a
|
|
177
|
+
* `stroke-dasharray` interpolating with no reflow, and `@starting-style` on
|
|
178
|
+
* that same property is the whole reason the ring sweeps in rather than
|
|
179
|
+
* appearing. A `d` cannot do either. CSS interpolates one only between paths
|
|
180
|
+
* of identical command structure, and the large-arc flag flips the moment a
|
|
181
|
+
* slice crosses a half turn, so a growing slice would pop partway through the
|
|
182
|
+
* transition it was meant to smooth. Both animations stay on the dash and this
|
|
183
|
+
* path follows it.
|
|
184
|
+
*
|
|
185
|
+
* The turn to twelve o'clock is arithmetic here rather than the rotation the
|
|
186
|
+
* stylesheet gives the circles. That rule uses `transform-box: fill-box`, so
|
|
187
|
+
* it spins each element about its own bounding box, which is the ring's center
|
|
188
|
+
* for a circle and is not for a sector.
|
|
189
|
+
*/
|
|
190
|
+
protected renderEdge(share: {
|
|
191
|
+
fraction: number;
|
|
192
|
+
start: number;
|
|
193
|
+
}, index: number): TemplateResult;
|
|
194
|
+
/**
|
|
195
|
+
* What a pointer resting on a slice shows.
|
|
196
|
+
*
|
|
197
|
+
* Placed in the middle rather than along an axis, a ring having none, and the
|
|
198
|
+
* middle is where a reader is already looking: the hole usually holds a
|
|
199
|
+
* total, so a tooltip over it replaces one figure with the one being asked
|
|
200
|
+
* about rather than covering something else.
|
|
201
|
+
*/
|
|
202
|
+
protected renderTooltip(): TemplateResult | typeof nothing;
|
|
203
|
+
}
|
|
204
|
+
declare global {
|
|
205
|
+
interface HTMLElementTagNameMap {
|
|
206
|
+
'helix-headless-donut-chart': HelixHeadlessDonutChart;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
export {};
|