@duetds/components 10.0.0-alpha.9 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.d.ts +38 -7
- package/hydrate/index.js +9613 -4173
- package/hydrate/index.mjs +46160 -0
- package/lib/cjs/_commonjsHelpers-4N64IRaP.js +10 -0
- package/lib/cjs/a11y-utils-DzwEPbds.js +46 -0
- package/lib/cjs/action-arrow-down-small-CDsSJFvZ.js +21 -0
- package/lib/cjs/action-new-window-small-BWlVx6YN.js +21 -0
- package/lib/cjs/{app-globals-2b7fff72.js → app-globals-BtFYkwDf.js} +2 -2
- package/lib/cjs/{common-strings-2984301e.js → common-strings-CC6Xpjb8.js} +30 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +84 -29
- package/lib/cjs/duet-alert.cjs.entry.js +106 -49
- package/lib/cjs/duet-badge.cjs.entry.js +31 -9
- package/lib/cjs/duet-banner.cjs.entry.js +71 -28
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +37 -26
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +20 -14
- package/lib/cjs/duet-button_2.cjs.entry.js +152 -72
- package/lib/cjs/duet-callout.cjs.entry.js +13 -10
- package/lib/cjs/duet-caption_4.cjs.entry.js +212 -47
- package/lib/cjs/duet-card.cjs.entry.js +93 -35
- package/lib/cjs/duet-checkbox.cjs.entry.js +68 -32
- package/lib/cjs/duet-checkmark.cjs.entry.js +21 -9
- package/lib/cjs/duet-chip.cjs.entry.js +60 -33
- package/lib/cjs/duet-choice_2.cjs.entry.js +279 -130
- package/lib/cjs/duet-collapsible.cjs.entry.js +92 -33
- package/lib/cjs/duet-combobox.cjs.entry.js +99 -58
- package/lib/cjs/duet-contact-card.cjs.entry.js +17 -18
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +14 -11
- package/lib/cjs/duet-date-picker.cjs.entry.js +158 -57
- package/lib/cjs/duet-divider_2.cjs.entry.js +30 -14
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +556 -210
- package/lib/cjs/duet-empty-state.cjs.entry.js +15 -9
- package/lib/cjs/duet-fieldset.cjs.entry.js +51 -18
- package/lib/cjs/duet-file-chooser.cjs.entry.js +18 -11
- package/lib/cjs/duet-footer.cjs.entry.js +56 -30
- package/lib/cjs/duet-grid_2.cjs.entry.js +169 -64
- package/lib/cjs/duet-header_2.cjs.entry.js +302 -91
- package/lib/cjs/duet-hero.cjs.entry.js +159 -35
- package/lib/cjs/duet-icon.cjs.entry.js +64 -20
- package/lib/cjs/duet-indicator.cjs.entry.js +61 -0
- package/lib/cjs/duet-input_2.cjs.entry.js +225 -86
- package/lib/cjs/duet-layout.cjs.entry.js +33 -13
- package/lib/cjs/duet-list_2.cjs.entry.js +58 -14
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +24 -16
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +19 -14
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +21 -16
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +40 -19
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +18 -10
- package/lib/cjs/duet-menu-bar.cjs.entry.js +37 -59
- package/lib/cjs/duet-modal.cjs.entry.js +122 -35
- package/lib/cjs/duet-multiselect.cjs.entry.js +88 -42
- package/lib/cjs/duet-nav.cjs.entry.js +12 -8
- package/lib/cjs/duet-notification_2.cjs.entry.js +98 -32
- package/lib/cjs/duet-number-input.cjs.entry.js +191 -70
- package/lib/cjs/duet-overlay.cjs.entry.js +36 -14
- package/lib/cjs/duet-page-heading.cjs.entry.js +16 -11
- package/lib/cjs/duet-pagination_2.cjs.entry.js +162 -87
- package/lib/cjs/duet-panel.cjs.entry.js +52 -0
- package/lib/cjs/duet-phone-input.cjs.entry.js +115 -45
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +226 -102
- package/lib/cjs/duet-progress.cjs.entry.js +32 -13
- package/lib/cjs/duet-promo-card.cjs.entry.js +27 -13
- package/lib/cjs/duet-radio_2.cjs.entry.js +114 -55
- package/lib/cjs/duet-range-slider.cjs.entry.js +73 -37
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +233 -88
- package/lib/cjs/duet-section-layout.cjs.entry.js +17 -10
- package/lib/cjs/duet-select.cjs.entry.js +89 -46
- package/lib/cjs/duet-shaped-image.cjs.entry.js +16 -11
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +22 -0
- package/lib/cjs/duet-share-chart.cjs.entry.js +85 -0
- package/lib/cjs/duet-show-more.cjs.entry.js +81 -38
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +10 -10
- package/lib/cjs/duet-slideout-link.cjs.entry.js +49 -16
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +25 -14
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +50 -36
- package/lib/cjs/duet-slideout.cjs.entry.js +85 -52
- package/lib/cjs/duet-status-icon.cjs.entry.js +28 -15
- package/lib/cjs/duet-step_2.cjs.entry.js +72 -24
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +25 -10
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +27 -18
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +40 -19
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +18 -9
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +27 -21
- package/lib/cjs/duet-textarea.cjs.entry.js +146 -71
- package/lib/cjs/duet-toggle.cjs.entry.js +55 -29
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +22 -11
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +27 -16
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +46 -19
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +21 -10
- package/lib/cjs/duet-toolbar.cjs.entry.js +12 -10
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +24 -27
- package/lib/cjs/duet-tooltip.cjs.entry.js +98 -46
- package/lib/cjs/duet-tray.cjs.entry.js +63 -24
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +30 -11
- package/lib/cjs/duet-upload-item.cjs.entry.js +12 -22
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +4 -7
- package/lib/cjs/duet.cjs.js +8 -8
- package/lib/cjs/{errorcodes.utils-e3a0f607.js → errorcodes.utils-BuseNrD9.js} +2 -2
- package/lib/cjs/floating-ui.dom.browser.min-Cj0r5YDz.js +709 -0
- package/lib/cjs/{focus-utils-47d23c45.js → focus-utils-Cbk0cnOs.js} +1 -1
- package/lib/cjs/form-search-CzPfHB80.js +21 -0
- package/lib/cjs/{index-7b1d76ef.js → index-blgG8IJB.js} +1853 -1361
- package/lib/cjs/{label-874fd84f.js → label-DeanNJa0.js} +1 -1
- package/lib/cjs/{language-utils-a6a152b8.js → language-utils-DWW8tvkB.js} +10 -2
- package/lib/cjs/loader.cjs.js +3 -5
- package/lib/cjs/{slot-utils-7e6aa48b.js → slot-utils-Byx247xX.js} +6 -1
- package/lib/cjs/{teleport-c6f8391a.js → teleport-D5NDbuu0.js} +22 -7
- package/lib/cjs/themeable-component-DcR7DztR.js +74 -0
- package/lib/cjs/{token-utils-5000595c.js → token-utils-BJtlJxnJ.js} +80 -9
- package/lib/cjs/{tokens-57e06fe4.js → tokens-BxWzRxOl.js} +150 -8
- package/lib/cjs/{tokens.module-7c947029.js → tokens.module-DJt2h4FX.js} +99 -3
- package/lib/cjs/{watch-options-30a12622.js → watch-options-D4JNsU3B.js} +0 -20
- package/lib/collection/collection-manifest.json +5 -1
- package/lib/collection/common/themeable-component.js +61 -3
- package/lib/collection/common-strings.js +28 -0
- package/lib/collection/components/duet-action-button/duet-action-button.css +29 -12
- package/lib/collection/components/duet-action-button/duet-action-button.js +94 -35
- package/lib/collection/components/duet-alert/duet-alert.css +96 -58
- package/lib/collection/components/duet-alert/duet-alert.js +146 -59
- package/lib/collection/components/duet-badge/duet-badge.css +24 -9
- package/lib/collection/components/duet-badge/duet-badge.js +30 -6
- package/lib/collection/components/duet-banner/duet-banner.css +51 -24
- package/lib/collection/components/duet-banner/duet-banner.js +95 -30
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +10 -8
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +26 -28
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +18 -7
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +15 -6
- package/lib/collection/components/duet-button/duet-button.css +140 -32
- package/lib/collection/components/duet-button/duet-button.js +174 -93
- package/lib/collection/components/duet-callout/duet-callout.css +7 -2
- package/lib/collection/components/duet-callout/duet-callout.js +10 -4
- package/lib/collection/components/duet-caption/duet-caption.css +8 -4
- package/lib/collection/components/duet-caption/duet-caption.js +19 -7
- package/lib/collection/components/duet-card/duet-card.css +48 -16
- package/lib/collection/components/duet-card/duet-card.js +134 -40
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +30 -8
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +89 -50
- package/lib/collection/components/duet-chip/duet-chip.css +66 -25
- package/lib/collection/components/duet-chip/duet-chip.js +73 -41
- package/lib/collection/components/duet-choice/duet-checkmark.css +4 -0
- package/lib/collection/components/duet-choice/duet-checkmark.js +22 -7
- package/lib/collection/components/duet-choice/duet-choice.css +164 -41
- package/lib/collection/components/duet-choice/duet-choice.js +244 -142
- package/lib/collection/components/duet-choice-group/duet-choice-group.css +4 -4
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +109 -48
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +36 -13
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +100 -38
- package/lib/collection/components/duet-combobox/duet-combobox.css +9 -2
- package/lib/collection/components/duet-combobox/duet-combobox.js +106 -59
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +8 -4
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +21 -19
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +23 -14
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +12 -6
- package/lib/collection/components/duet-date-picker/date-picker-day.js +6 -1
- package/lib/collection/components/duet-date-picker/date-utils.js +6 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +103 -46
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +176 -73
- package/lib/collection/components/duet-divider/duet-divider.css +12 -6
- package/lib/collection/components/duet-divider/duet-divider.js +15 -5
- package/lib/collection/components/duet-editable-table/duet-editable-table.css +2 -2
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +88 -31
- package/lib/collection/components/duet-empty-state/duet-empty-state.css +11 -6
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +15 -6
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +13 -6
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +58 -20
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.css +2 -2
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +18 -8
- package/lib/collection/components/duet-footer/duet-footer.css +43 -14
- package/lib/collection/components/duet-footer/duet-footer.js +62 -34
- package/lib/collection/components/duet-grid/duet-grid.css +2 -6
- package/lib/collection/components/duet-grid/duet-grid.js +151 -70
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +6 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +40 -13
- package/lib/collection/components/duet-header/duet-header.css +165 -65
- package/lib/collection/components/duet-header/duet-header.js +180 -91
- package/lib/collection/components/duet-heading/duet-heading.css +11 -6
- package/lib/collection/components/duet-heading/duet-heading.js +39 -15
- package/lib/collection/components/duet-hero/duet-hero.css +326 -18
- package/lib/collection/components/duet-hero/duet-hero.js +202 -56
- package/lib/collection/components/duet-icon/duet-icon.css +17 -5
- package/lib/collection/components/duet-icon/duet-icon.js +71 -24
- package/lib/collection/components/duet-indicator/duet-indicator.css +50 -0
- package/lib/collection/components/duet-indicator/duet-indicator.js +138 -0
- package/lib/collection/components/duet-input/duet-input.css +143 -68
- package/lib/collection/components/duet-input/duet-input.js +320 -146
- package/lib/collection/components/duet-label/duet-label.css +8 -4
- package/lib/collection/components/duet-label/duet-label.js +25 -10
- package/lib/collection/components/duet-layout/duet-layout.css +4 -4
- package/lib/collection/components/duet-layout/duet-layout.js +36 -13
- package/lib/collection/components/duet-link/duet-link.css +149 -25
- package/lib/collection/components/duet-link/duet-link.js +120 -32
- package/lib/collection/components/duet-list/duet-list.css +4 -4
- package/lib/collection/components/duet-list/duet-list.js +41 -12
- package/lib/collection/components/duet-list-item/duet-list-item.css +29 -9
- package/lib/collection/components/duet-list-item/duet-list-item.js +50 -4
- package/lib/collection/components/duet-logo/duet-logo.css +36 -8
- package/lib/collection/components/duet-logo/duet-logo.js +112 -12
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +108 -6
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +60 -59
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +17 -8
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +33 -22
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +28 -12
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +20 -12
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +19 -9
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +18 -10
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +28 -10
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +39 -16
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +25 -10
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +19 -8
- package/lib/collection/components/duet-modal/duet-modal.css +23 -25
- package/lib/collection/components/duet-modal/duet-modal.js +197 -43
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +71 -30
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +104 -54
- package/lib/collection/components/duet-nav/duet-nav.css +8 -4
- package/lib/collection/components/duet-nav/duet-nav.js +10 -3
- package/lib/collection/components/duet-notification/duet-notification.css +33 -26
- package/lib/collection/components/duet-notification/duet-notification.js +46 -9
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +38 -36
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +58 -25
- package/lib/collection/components/duet-number-input/duet-number-input.css +29 -14
- package/lib/collection/components/duet-number-input/duet-number-input.js +208 -107
- package/lib/collection/components/duet-overlay/duet-overlay.css +5 -1
- package/lib/collection/components/duet-overlay/duet-overlay.js +41 -16
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +44 -16
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +17 -9
- package/lib/collection/components/duet-pagination/duet-pagination.css +8 -4
- package/lib/collection/components/duet-pagination/duet-pagination.js +132 -78
- package/lib/collection/components/duet-panel/duet-panel.css +99 -0
- package/lib/collection/components/duet-panel/duet-panel.js +233 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +19 -6
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +32 -11
- package/lib/collection/components/duet-phone-input/duet-phone-input.css +46 -2
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +211 -58
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +14 -6
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +184 -90
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +30 -12
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +66 -31
- package/lib/collection/components/duet-progress/duet-progress.css +27 -8
- package/lib/collection/components/duet-progress/duet-progress.js +36 -14
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +18 -12
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +47 -11
- package/lib/collection/components/duet-radio/duet-radio.css +41 -8
- package/lib/collection/components/duet-radio/duet-radio.js +70 -52
- package/lib/collection/components/duet-radio-group/duet-radio-group.css +4 -4
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +78 -30
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +64 -19
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +87 -48
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +8 -4
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +44 -15
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +29 -19
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +170 -29
- package/lib/collection/components/duet-section-layout/duet-section-layout.css +4 -4
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +16 -6
- package/lib/collection/components/duet-select/duet-select.css +55 -24
- package/lib/collection/components/duet-select/duet-select.js +114 -68
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.css +6 -6
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +17 -9
- package/lib/collection/components/duet-share-chart/duet-share-chart.css +82 -0
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +141 -0
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +67 -0
- package/lib/collection/components/duet-show-more/duet-show-more.css +15 -8
- package/lib/collection/components/duet-show-more/duet-show-more.js +88 -38
- package/lib/collection/components/duet-slideout/duet-slideout.css +72 -40
- package/lib/collection/components/duet-slideout/duet-slideout.js +89 -51
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +10 -6
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +5 -2
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +24 -11
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +50 -15
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +63 -40
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +47 -30
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +29 -16
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +25 -11
- package/lib/collection/components/duet-spacer/duet-spacer.css +2 -2
- package/lib/collection/components/duet-spacer/duet-spacer.js +16 -6
- package/lib/collection/components/duet-spinner/duet-spinner.css +10 -16
- package/lib/collection/components/duet-spinner/duet-spinner.js +22 -24
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +30 -15
- package/lib/collection/components/duet-step/duet-step.css +28 -13
- package/lib/collection/components/duet-step/duet-step.js +27 -18
- package/lib/collection/components/duet-stepper/duet-stepper.css +4 -4
- package/lib/collection/components/duet-stepper/duet-stepper.js +46 -11
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +34 -16
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +25 -16
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +49 -15
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +25 -13
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +29 -8
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +26 -8
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +33 -10
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +38 -15
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +34 -9
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +17 -5
- package/lib/collection/components/duet-tab/duet-tab.css +15 -11
- package/lib/collection/components/duet-tab/duet-tab.js +88 -24
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +131 -85
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +173 -56
- package/lib/collection/components/duet-table/duet-table-styles.js +68 -4
- package/lib/collection/components/duet-table/duet-table.js +43 -14
- package/lib/collection/components/duet-textarea/duet-textarea.css +68 -23
- package/lib/collection/components/duet-textarea/duet-textarea.js +231 -103
- package/lib/collection/components/duet-toggle/duet-toggle.css +38 -11
- package/lib/collection/components/duet-toggle/duet-toggle.js +88 -39
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +11 -4
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +11 -6
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +42 -12
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +28 -14
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +21 -8
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +23 -9
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +52 -30
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +48 -19
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +60 -10
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +23 -9
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +24 -14
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +9 -11
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +48 -16
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +18 -14
- package/lib/collection/components/duet-tooltip/duet-tooltip.css +4 -4
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +101 -46
- package/lib/collection/components/duet-tray/duet-tray.css +43 -27
- package/lib/collection/components/duet-tray/duet-tray.js +63 -21
- package/lib/collection/components/duet-upload/duet-upload.css +6 -6
- package/lib/collection/components/duet-upload/duet-upload.js +433 -227
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +35 -13
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +19 -20
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.css +3 -3
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/index.js +1 -0
- package/lib/collection/utils/a11y-utils.js +20 -0
- package/lib/collection/utils/language-utils.js +7 -0
- package/lib/collection/utils/slot-utils.js +4 -0
- package/lib/collection/utils/teleport.js +22 -7
- package/lib/collection/utils/test-utils.js +2 -2
- package/lib/collection/utils/token-utils.js +59 -7
- package/lib/collection/utils/turva2-color-tokens.js +42 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/p-01ce999b.entry.js +4 -0
- package/lib/duet/p-04c9c13e.entry.js +4 -0
- package/lib/duet/p-0d1a4928.entry.js +4 -0
- package/lib/duet/p-0fabcede.entry.js +4 -0
- package/lib/duet/p-1380370e.entry.js +4 -0
- package/lib/duet/p-140b87f4.entry.js +4 -0
- package/lib/duet/p-141f03da.entry.js +4 -0
- package/lib/duet/p-14d64261.entry.js +4 -0
- package/lib/duet/p-1U75pxcR.js +4 -0
- package/lib/duet/p-1d8da041.entry.js +4 -0
- package/lib/duet/p-24f206ab.entry.js +4 -0
- package/lib/duet/p-276f8827.entry.js +4 -0
- package/lib/duet/p-28325583.entry.js +4 -0
- package/lib/duet/p-29e677bc.entry.js +4 -0
- package/lib/duet/p-2c4f4896.entry.js +4 -0
- package/lib/duet/p-2d0eb4b5.entry.js +4 -0
- package/lib/duet/p-30ae4852.entry.js +4 -0
- package/lib/duet/p-320e4688.entry.js +4 -0
- package/lib/duet/p-36d2a441.entry.js +4 -0
- package/lib/duet/p-3a108321.entry.js +4 -0
- package/lib/duet/p-3b52f20d.entry.js +4 -0
- package/lib/duet/p-40956ec6.entry.js +4 -0
- package/lib/duet/p-43f15ad6.entry.js +4 -0
- package/lib/duet/p-4862f0c6.entry.js +4 -0
- package/lib/duet/{p-7d5c5b60.entry.js → p-486a4bc6.entry.js} +1 -1
- package/lib/duet/p-4d14780b.entry.js +4 -0
- package/lib/duet/p-4de6cd49.entry.js +4 -0
- package/lib/duet/p-540fc47b.entry.js +4 -0
- package/lib/duet/p-57ba8f5f.entry.js +4 -0
- package/lib/duet/p-581e1e08.entry.js +4 -0
- package/lib/duet/p-5db08755.entry.js +4 -0
- package/lib/duet/p-5f329414.entry.js +4 -0
- package/lib/duet/p-5iZMFvpJ.js +4 -0
- package/lib/duet/p-6043a6de.entry.js +4 -0
- package/lib/duet/p-6662042f.entry.js +4 -0
- package/lib/duet/p-6862c7d5.entry.js +4 -0
- package/lib/duet/p-6b2823ed.entry.js +4 -0
- package/lib/duet/p-6cf8e63d.entry.js +4 -0
- package/lib/duet/p-6d90a89c.entry.js +4 -0
- package/lib/duet/p-6qQ9c51e.js +4 -0
- package/lib/duet/p-72c7816e.entry.js +4 -0
- package/lib/duet/p-7a8f23b7.entry.js +4 -0
- package/lib/duet/p-823522c9.entry.js +4 -0
- package/lib/duet/p-83c7bfe0.entry.js +4 -0
- package/lib/duet/p-8857eb7b.entry.js +4 -0
- package/lib/duet/{p-e5229df1.entry.js → p-8f2fbd03.entry.js} +1 -1
- package/lib/duet/p-90981fbb.entry.js +4 -0
- package/lib/duet/p-90eed96d.entry.js +4 -0
- package/lib/duet/p-93303c68.entry.js +4 -0
- package/lib/duet/p-94f1de2c.entry.js +4 -0
- package/lib/duet/p-960ada39.entry.js +4 -0
- package/lib/duet/{p-597e4a0d.entry.js → p-9dc2b0d2.entry.js} +1 -1
- package/lib/duet/p-9ee8ddc9.entry.js +4 -0
- package/lib/duet/p-9fd10aed.entry.js +4 -0
- package/lib/duet/p-B0pM7dNk.js +4 -0
- package/lib/duet/p-BDAqOMlM.js +4 -0
- package/lib/duet/p-BVgBUIYF.js +4 -0
- package/lib/duet/{p-81287261.js → p-B_NkY9T0.js} +1 -1
- package/lib/duet/p-Bg75Vqqq.js +4 -0
- package/lib/duet/p-BhYt_2Vd.js +5 -0
- package/lib/duet/p-BmMFVM-y.js +4 -0
- package/lib/duet/p-BtxOyTe3.js +4 -0
- package/lib/duet/p-CVPfl9fc.js +4 -0
- package/lib/duet/p-CooAqTCj.js +4 -0
- package/lib/duet/{p-b3d6e031.js → p-CxgSYSyh.js} +1 -1
- package/lib/duet/p-DJzDRf9m.js +4 -0
- package/lib/duet/p-DOuLHrH5.js +4 -0
- package/lib/duet/{p-a45e3f8b.js → p-Db8rvjPI.js} +1 -1
- package/lib/duet/p-DvwKrUS6.js +4 -0
- package/lib/duet/p-a1e60676.entry.js +4 -0
- package/lib/duet/p-a28d4312.entry.js +4 -0
- package/lib/duet/p-a9692b2a.entry.js +4 -0
- package/lib/duet/p-a9cf57f5.entry.js +4 -0
- package/lib/duet/p-ab74c20e.entry.js +4 -0
- package/lib/duet/p-ac_1YilV.js +4 -0
- package/lib/duet/p-afabb51f.entry.js +4 -0
- package/lib/duet/p-b2464865.entry.js +4 -0
- package/lib/duet/p-b2f22262.entry.js +4 -0
- package/lib/duet/p-ba39d3ad.entry.js +4 -0
- package/lib/duet/p-bb8634c4.entry.js +4 -0
- package/lib/duet/p-bcb8d390.entry.js +4 -0
- package/lib/duet/p-bd0ad7c3.entry.js +4 -0
- package/lib/duet/p-ca3fe683.entry.js +4 -0
- package/lib/duet/p-d26c644d.entry.js +4 -0
- package/lib/duet/p-d31cafc9.entry.js +4 -0
- package/lib/duet/p-d35a4b95.entry.js +4 -0
- package/lib/duet/p-d4e2e471.entry.js +4 -0
- package/lib/duet/p-d8ebfd49.entry.js +4 -0
- package/lib/duet/p-d9f504b7.entry.js +4 -0
- package/lib/duet/{p-8cbd3dfd.entry.js → p-db22799a.entry.js} +1 -1
- package/lib/duet/p-db594a93.entry.js +4 -0
- package/lib/duet/p-dc4d385d.entry.js +4 -0
- package/lib/duet/p-dc57fff7.entry.js +4 -0
- package/lib/duet/p-de255274.entry.js +4 -0
- package/lib/duet/{p-546cf344.entry.js → p-de639eff.entry.js} +1 -1
- package/lib/duet/p-e195c5e2.entry.js +4 -0
- package/lib/duet/p-e2e7b3bd.entry.js +4 -0
- package/lib/duet/p-e3780362.entry.js +4 -0
- package/lib/duet/p-e7c058b0.entry.js +4 -0
- package/lib/duet/p-ec5b54f3.entry.js +4 -0
- package/lib/duet/p-f6720f8c.entry.js +4 -0
- package/lib/duet/p-f6f6b960.entry.js +4 -0
- package/lib/duet/p-fb4ab1f5.entry.js +4 -0
- package/lib/duet/p-fd120a7b.entry.js +4 -0
- package/lib/duet/p-fe34272e.entry.js +4 -0
- package/lib/duet/p-vVCYtBMj.js +4 -0
- package/lib/duet/p-xwlQQBxs.js +4 -0
- package/lib/esm/_commonjsHelpers-DvwKrUS6.js +8 -0
- package/lib/esm/a11y-utils-BuWx2D09.js +43 -0
- package/lib/esm/action-arrow-down-small-Bk3GShyI.js +19 -0
- package/lib/esm/action-new-window-small-EH8_HdAm.js +19 -0
- package/lib/esm/{app-globals-e00fbe9c.js → app-globals-DRDLN5wE.js} +2 -2
- package/lib/esm/common-strings-CVPfl9fc.js +53 -0
- package/lib/esm/duet-action-button.entry.js +84 -27
- package/lib/esm/duet-alert.entry.js +106 -47
- package/lib/esm/duet-badge.entry.js +31 -7
- package/lib/esm/duet-banner.entry.js +71 -26
- package/lib/esm/duet-breadcrumb.entry.js +38 -25
- package/lib/esm/duet-breadcrumbs.entry.js +20 -12
- package/lib/esm/duet-button_2.entry.js +152 -70
- package/lib/esm/duet-callout.entry.js +13 -8
- package/lib/esm/duet-caption_4.entry.js +212 -45
- package/lib/esm/duet-card.entry.js +93 -33
- package/lib/esm/duet-checkbox.entry.js +68 -30
- package/lib/esm/duet-checkmark.entry.js +21 -7
- package/lib/esm/duet-chip.entry.js +60 -31
- package/lib/esm/duet-choice_2.entry.js +280 -129
- package/lib/esm/duet-collapsible.entry.js +92 -31
- package/lib/esm/duet-combobox.entry.js +99 -56
- package/lib/esm/duet-contact-card.entry.js +17 -16
- package/lib/esm/duet-cookie-consent.entry.js +14 -9
- package/lib/esm/duet-date-picker.entry.js +158 -55
- package/lib/esm/duet-divider_2.entry.js +30 -12
- package/lib/esm/duet-editable-table_3.entry.js +556 -208
- package/lib/esm/duet-empty-state.entry.js +15 -7
- package/lib/esm/duet-fieldset.entry.js +51 -16
- package/lib/esm/duet-file-chooser.entry.js +18 -9
- package/lib/esm/duet-footer.entry.js +56 -28
- package/lib/esm/duet-grid_2.entry.js +169 -62
- package/lib/esm/duet-header_2.entry.js +303 -90
- package/lib/esm/duet-hero.entry.js +159 -33
- package/lib/esm/duet-icon.entry.js +64 -18
- package/lib/esm/duet-indicator.entry.js +59 -0
- package/lib/esm/duet-input_2.entry.js +226 -85
- package/lib/esm/duet-layout.entry.js +33 -11
- package/lib/esm/duet-list_2.entry.js +58 -12
- package/lib/esm/duet-menu-bar-button.entry.js +24 -14
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +19 -12
- package/lib/esm/duet-menu-bar-dropdown.entry.js +21 -14
- package/lib/esm/duet-menu-bar-item.entry.js +40 -17
- package/lib/esm/duet-menu-bar-link.entry.js +18 -8
- package/lib/esm/duet-menu-bar.entry.js +37 -57
- package/lib/esm/duet-modal.entry.js +122 -33
- package/lib/esm/duet-multiselect.entry.js +88 -40
- package/lib/esm/duet-nav.entry.js +12 -6
- package/lib/esm/duet-notification_2.entry.js +98 -30
- package/lib/esm/duet-number-input.entry.js +192 -69
- package/lib/esm/duet-overlay.entry.js +36 -12
- package/lib/esm/duet-page-heading.entry.js +16 -9
- package/lib/esm/duet-pagination_2.entry.js +162 -85
- package/lib/esm/duet-panel.entry.js +50 -0
- package/lib/esm/duet-phone-input.entry.js +115 -43
- package/lib/esm/duet-popup-menu_2.entry.js +223 -97
- package/lib/esm/duet-progress.entry.js +32 -11
- package/lib/esm/duet-promo-card.entry.js +27 -11
- package/lib/esm/duet-radio_2.entry.js +114 -53
- package/lib/esm/duet-range-slider.entry.js +73 -35
- package/lib/esm/duet-scrollable_3.entry.js +233 -86
- package/lib/esm/duet-section-layout.entry.js +17 -8
- package/lib/esm/duet-select.entry.js +89 -44
- package/lib/esm/duet-shaped-image.entry.js +16 -9
- package/lib/esm/duet-share-chart-item.entry.js +20 -0
- package/lib/esm/duet-share-chart.entry.js +83 -0
- package/lib/esm/duet-show-more.entry.js +81 -36
- package/lib/esm/duet-slideout-lang.entry.js +10 -8
- package/lib/esm/duet-slideout-link.entry.js +49 -14
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +25 -12
- package/lib/esm/duet-slideout-panel.entry.js +50 -34
- package/lib/esm/duet-slideout.entry.js +85 -50
- package/lib/esm/duet-status-icon.entry.js +28 -13
- package/lib/esm/duet-step_2.entry.js +73 -23
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +25 -8
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +27 -16
- package/lib/esm/duet-submenu-bar-item.entry.js +40 -17
- package/lib/esm/duet-submenu-bar-link.entry.js +18 -7
- package/lib/esm/duet-submenu-bar.entry.js +27 -19
- package/lib/esm/duet-textarea.entry.js +146 -69
- package/lib/esm/duet-toggle.entry.js +55 -27
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +22 -9
- package/lib/esm/duet-toolbar-dropdown.entry.js +27 -14
- package/lib/esm/duet-toolbar-item.entry.js +46 -17
- package/lib/esm/duet-toolbar-link.entry.js +21 -8
- package/lib/esm/duet-toolbar.entry.js +12 -8
- package/lib/esm/duet-tooltip-button_2.entry.js +24 -25
- package/lib/esm/duet-tooltip.entry.js +97 -43
- package/lib/esm/duet-tray.entry.js +63 -22
- package/lib/esm/duet-upload-aria-status.entry.js +30 -9
- package/lib/esm/duet-upload-item.entry.js +12 -20
- package/lib/esm/duet-visually-hidden.entry.js +4 -5
- package/lib/esm/duet.js +7 -6
- package/lib/esm/{errorcodes.utils-416994cc.js → errorcodes.utils-CjUqHglR.js} +3 -3
- package/lib/esm/floating-ui.dom.browser.min-B_NkY9T0.js +702 -0
- package/lib/{dist-custom-elements/p-e30dc66d.js → esm/focus-utils-Do5KtPgs.js} +1 -1
- package/lib/esm/form-search-CevX33LA.js +19 -0
- package/lib/esm/{index-1a6cee61.js → index-BhYt_2Vd.js} +1851 -1357
- package/lib/{dist-custom-elements/p-8db11326.js → esm/keyboard-utils-Db8rvjPI.js} +1 -1
- package/lib/{dist-custom-elements/p-42619f94.js → esm/label-BRuShBbJ.js} +1 -1
- package/lib/esm/{language-utils-8a9d5323.js → language-utils-D2jecvOr.js} +10 -3
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-bf214ae5.js → slot-utils-nDLvv_4O.js} +6 -2
- package/lib/esm/{teleport-546f382d.js → teleport-CooAqTCj.js} +22 -7
- package/lib/esm/themeable-component-C0nhBgYw.js +72 -0
- package/lib/{dist-custom-elements/p-0562173d.js → esm/token-utils-Dks4GBDa.js} +80 -10
- package/lib/esm/{tokens-84fb2357.js → tokens-DOuLHrH5.js} +151 -7
- package/lib/esm/{tokens.module-2d02f5ff.js → tokens.module-BDAqOMlM.js} +100 -4
- package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-BmMFVM-y.js} +1 -20
- package/lib/index.js +1 -1
- package/lib/loader/cdn.js +1 -2
- package/lib/loader/index.cjs.js +1 -2
- package/lib/loader/index.es2017.js +0 -1
- package/lib/loader/index.js +1 -2
- package/lib/types/common-strings.d.ts +3 -0
- package/lib/types/common-types.d.ts +1 -1
- package/lib/types/components/duet-alert/duet-alert.d.ts +20 -10
- package/lib/types/components/duet-badge/duet-badge.d.ts +1 -0
- package/lib/types/components/duet-banner/duet-banner.d.ts +6 -0
- package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
- package/lib/types/components/duet-card/duet-card.d.ts +10 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +1 -0
- package/lib/types/components/duet-choice/duet-choice.d.ts +4 -8
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +3 -2
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +4 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +2 -0
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +4 -0
- package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +3 -0
- package/lib/types/components/duet-grid/duet-grid.d.ts +10 -7
- package/lib/types/components/duet-hero/duet-hero.d.ts +9 -0
- package/lib/types/components/duet-indicator/duet-indicator.d.ts +24 -0
- package/lib/types/components/duet-input/duet-input.d.ts +21 -13
- package/lib/types/components/duet-link/duet-link.d.ts +3 -0
- package/lib/types/components/duet-list-item/duet-list-item.d.ts +9 -3
- package/lib/types/components/duet-logo/duet-logo.d.ts +8 -0
- package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +5 -4
- package/lib/types/components/duet-modal/duet-modal.d.ts +17 -1
- package/lib/types/components/duet-notification/duet-notification.d.ts +1 -0
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +13 -8
- package/lib/types/components/duet-overlay/duet-overlay.d.ts +4 -0
- package/lib/types/components/duet-panel/duet-panel.d.ts +47 -0
- package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +1 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +23 -1
- package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +10 -6
- package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +4 -0
- package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -0
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +18 -0
- package/lib/types/components/duet-select/duet-select.d.ts +2 -1
- package/lib/types/components/duet-share-chart/duet-share-chart.d.ts +34 -0
- package/lib/types/components/duet-share-chart-item/duet-share-chart-item.d.ts +13 -0
- package/lib/types/components/duet-show-more/duet-show-more.d.ts +1 -0
- package/lib/types/components/duet-slideout/duet-slideout.d.ts +4 -5
- package/lib/types/components/duet-spinner/duet-spinner.d.ts +6 -3
- package/lib/types/components/duet-status-icon/duet-status-icon.d.ts +1 -0
- package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
- package/lib/types/components/duet-tab/duet-tab.d.ts +10 -0
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +9 -0
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +21 -9
- package/lib/types/components/duet-toggle/duet-toggle.d.ts +4 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -1
- package/lib/types/components.d.ts +2136 -73
- package/lib/types/index.d.ts +1 -0
- package/lib/types/stencil-public-runtime.d.ts +35 -6
- package/lib/types/utils/a11y-utils.d.ts +11 -0
- package/lib/types/utils/language-utils.d.ts +1 -0
- package/lib/types/utils/slot-utils.d.ts +1 -0
- package/lib/types/utils/teleport.d.ts +4 -1
- package/lib/types/utils/token-utils.d.ts +4 -0
- package/lib/types/utils/turva2-color-tokens.d.ts +39 -0
- package/package.json +37 -17
- package/lib/cjs/a11y-utils-be617c0c.js +0 -25
- package/lib/cjs/action-arrow-down-small-ef77a2d1.js +0 -8
- package/lib/cjs/action-new-window-small-fa51dfb9.js +0 -8
- package/lib/cjs/floating-ui.dom.esm-806e7c53.js +0 -1355
- package/lib/cjs/form-search-d61b2843.js +0 -8
- package/lib/cjs/themeable-component-996b489c.js +0 -15
- package/lib/dist-custom-elements/duet-action-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-action-button.js +0 -9
- package/lib/dist-custom-elements/duet-alert.d.ts +0 -11
- package/lib/dist-custom-elements/duet-alert.js +0 -9
- package/lib/dist-custom-elements/duet-badge.d.ts +0 -11
- package/lib/dist-custom-elements/duet-badge.js +0 -9
- package/lib/dist-custom-elements/duet-banner.d.ts +0 -11
- package/lib/dist-custom-elements/duet-banner.js +0 -157
- package/lib/dist-custom-elements/duet-breadcrumb.d.ts +0 -11
- package/lib/dist-custom-elements/duet-breadcrumb.js +0 -101
- package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +0 -11
- package/lib/dist-custom-elements/duet-breadcrumbs.js +0 -88
- package/lib/dist-custom-elements/duet-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-button.js +0 -9
- package/lib/dist-custom-elements/duet-callout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-callout.js +0 -72
- package/lib/dist-custom-elements/duet-caption.d.ts +0 -11
- package/lib/dist-custom-elements/duet-caption.js +0 -9
- package/lib/dist-custom-elements/duet-card.d.ts +0 -11
- package/lib/dist-custom-elements/duet-card.js +0 -174
- package/lib/dist-custom-elements/duet-checkbox.d.ts +0 -11
- package/lib/dist-custom-elements/duet-checkbox.js +0 -9
- package/lib/dist-custom-elements/duet-checkmark.d.ts +0 -11
- package/lib/dist-custom-elements/duet-checkmark.js +0 -9
- package/lib/dist-custom-elements/duet-chip.d.ts +0 -11
- package/lib/dist-custom-elements/duet-chip.js +0 -9
- package/lib/dist-custom-elements/duet-choice-group.d.ts +0 -11
- package/lib/dist-custom-elements/duet-choice-group.js +0 -228
- package/lib/dist-custom-elements/duet-choice.d.ts +0 -11
- package/lib/dist-custom-elements/duet-choice.js +0 -454
- package/lib/dist-custom-elements/duet-collapsible.d.ts +0 -11
- package/lib/dist-custom-elements/duet-collapsible.js +0 -176
- package/lib/dist-custom-elements/duet-combobox.d.ts +0 -11
- package/lib/dist-custom-elements/duet-combobox.js +0 -702
- package/lib/dist-custom-elements/duet-contact-card.d.ts +0 -11
- package/lib/dist-custom-elements/duet-contact-card.js +0 -134
- package/lib/dist-custom-elements/duet-cookie-consent.d.ts +0 -11
- package/lib/dist-custom-elements/duet-cookie-consent.js +0 -106
- package/lib/dist-custom-elements/duet-date-picker.d.ts +0 -11
- package/lib/dist-custom-elements/duet-date-picker.js +0 -937
- package/lib/dist-custom-elements/duet-divider.d.ts +0 -11
- package/lib/dist-custom-elements/duet-divider.js +0 -9
- package/lib/dist-custom-elements/duet-editable-table.d.ts +0 -11
- package/lib/dist-custom-elements/duet-editable-table.js +0 -258
- package/lib/dist-custom-elements/duet-empty-state.d.ts +0 -11
- package/lib/dist-custom-elements/duet-empty-state.js +0 -9
- package/lib/dist-custom-elements/duet-fieldset.d.ts +0 -11
- package/lib/dist-custom-elements/duet-fieldset.js +0 -9
- package/lib/dist-custom-elements/duet-file-chooser.d.ts +0 -11
- package/lib/dist-custom-elements/duet-file-chooser.js +0 -86
- package/lib/dist-custom-elements/duet-footer.d.ts +0 -11
- package/lib/dist-custom-elements/duet-footer.js +0 -223
- package/lib/dist-custom-elements/duet-grid-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-grid-item.js +0 -9
- package/lib/dist-custom-elements/duet-grid.d.ts +0 -11
- package/lib/dist-custom-elements/duet-grid.js +0 -9
- package/lib/dist-custom-elements/duet-header.d.ts +0 -11
- package/lib/dist-custom-elements/duet-header.js +0 -698
- package/lib/dist-custom-elements/duet-heading.d.ts +0 -11
- package/lib/dist-custom-elements/duet-heading.js +0 -9
- package/lib/dist-custom-elements/duet-hero.d.ts +0 -11
- package/lib/dist-custom-elements/duet-hero.js +0 -299
- package/lib/dist-custom-elements/duet-icon.d.ts +0 -11
- package/lib/dist-custom-elements/duet-icon.js +0 -9
- package/lib/dist-custom-elements/duet-input.d.ts +0 -11
- package/lib/dist-custom-elements/duet-input.js +0 -9
- package/lib/dist-custom-elements/duet-label.d.ts +0 -11
- package/lib/dist-custom-elements/duet-label.js +0 -70
- package/lib/dist-custom-elements/duet-layout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-layout.js +0 -94
- package/lib/dist-custom-elements/duet-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-link.js +0 -9
- package/lib/dist-custom-elements/duet-list-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-list-item.js +0 -9
- package/lib/dist-custom-elements/duet-list.d.ts +0 -11
- package/lib/dist-custom-elements/duet-list.js +0 -9
- package/lib/dist-custom-elements/duet-logo.d.ts +0 -11
- package/lib/dist-custom-elements/duet-logo.js +0 -9
- package/lib/dist-custom-elements/duet-menu-bar-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-button.js +0 -94
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +0 -87
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +0 -108
- package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-item.js +0 -108
- package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-link.js +0 -70
- package/lib/dist-custom-elements/duet-menu-bar.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar.js +0 -207
- package/lib/dist-custom-elements/duet-modal.d.ts +0 -11
- package/lib/dist-custom-elements/duet-modal.js +0 -382
- package/lib/dist-custom-elements/duet-multiselect.d.ts +0 -11
- package/lib/dist-custom-elements/duet-multiselect.js +0 -346
- package/lib/dist-custom-elements/duet-nav.d.ts +0 -11
- package/lib/dist-custom-elements/duet-nav.js +0 -54
- package/lib/dist-custom-elements/duet-notification-drawer.d.ts +0 -11
- package/lib/dist-custom-elements/duet-notification-drawer.js +0 -168
- package/lib/dist-custom-elements/duet-notification.d.ts +0 -11
- package/lib/dist-custom-elements/duet-notification.js +0 -95
- package/lib/dist-custom-elements/duet-number-input.d.ts +0 -11
- package/lib/dist-custom-elements/duet-number-input.js +0 -484
- package/lib/dist-custom-elements/duet-overlay.d.ts +0 -11
- package/lib/dist-custom-elements/duet-overlay.js +0 -9
- package/lib/dist-custom-elements/duet-page-heading.d.ts +0 -11
- package/lib/dist-custom-elements/duet-page-heading.js +0 -87
- package/lib/dist-custom-elements/duet-pagination.d.ts +0 -11
- package/lib/dist-custom-elements/duet-pagination.js +0 -493
- package/lib/dist-custom-elements/duet-paragraph.d.ts +0 -11
- package/lib/dist-custom-elements/duet-paragraph.js +0 -9
- package/lib/dist-custom-elements/duet-phone-input.d.ts +0 -11
- package/lib/dist-custom-elements/duet-phone-input.js +0 -2122
- package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-popup-menu-item.js +0 -9
- package/lib/dist-custom-elements/duet-popup-menu.d.ts +0 -11
- package/lib/dist-custom-elements/duet-popup-menu.js +0 -9
- package/lib/dist-custom-elements/duet-progress.d.ts +0 -11
- package/lib/dist-custom-elements/duet-progress.js +0 -9
- package/lib/dist-custom-elements/duet-promo-card.d.ts +0 -11
- package/lib/dist-custom-elements/duet-promo-card.js +0 -105
- package/lib/dist-custom-elements/duet-radio-group.d.ts +0 -11
- package/lib/dist-custom-elements/duet-radio-group.js +0 -213
- package/lib/dist-custom-elements/duet-radio.d.ts +0 -11
- package/lib/dist-custom-elements/duet-radio.js +0 -230
- package/lib/dist-custom-elements/duet-range-slider.d.ts +0 -11
- package/lib/dist-custom-elements/duet-range-slider.js +0 -181
- package/lib/dist-custom-elements/duet-range-stepper.d.ts +0 -11
- package/lib/dist-custom-elements/duet-range-stepper.js +0 -234
- package/lib/dist-custom-elements/duet-scrollable.d.ts +0 -11
- package/lib/dist-custom-elements/duet-scrollable.js +0 -9
- package/lib/dist-custom-elements/duet-section-layout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-section-layout.js +0 -56
- package/lib/dist-custom-elements/duet-select.d.ts +0 -11
- package/lib/dist-custom-elements/duet-select.js +0 -9
- package/lib/dist-custom-elements/duet-shaped-image.d.ts +0 -11
- package/lib/dist-custom-elements/duet-shaped-image.js +0 -64
- package/lib/dist-custom-elements/duet-show-more.d.ts +0 -11
- package/lib/dist-custom-elements/duet-show-more.js +0 -9
- package/lib/dist-custom-elements/duet-slideout-lang.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-lang.js +0 -76
- package/lib/dist-custom-elements/duet-slideout-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-link.js +0 -98
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +0 -93
- package/lib/dist-custom-elements/duet-slideout-panel.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-panel.js +0 -224
- package/lib/dist-custom-elements/duet-slideout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout.js +0 -328
- package/lib/dist-custom-elements/duet-spacer.d.ts +0 -11
- package/lib/dist-custom-elements/duet-spacer.js +0 -9
- package/lib/dist-custom-elements/duet-spinner.d.ts +0 -11
- package/lib/dist-custom-elements/duet-spinner.js +0 -9
- package/lib/dist-custom-elements/duet-status-icon.d.ts +0 -11
- package/lib/dist-custom-elements/duet-status-icon.js +0 -111
- package/lib/dist-custom-elements/duet-step.d.ts +0 -11
- package/lib/dist-custom-elements/duet-step.js +0 -147
- package/lib/dist-custom-elements/duet-stepper.d.ts +0 -11
- package/lib/dist-custom-elements/duet-stepper.js +0 -151
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +0 -81
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +0 -152
- package/lib/dist-custom-elements/duet-submenu-bar-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +0 -113
- package/lib/dist-custom-elements/duet-submenu-bar-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +0 -72
- package/lib/dist-custom-elements/duet-submenu-bar.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar.js +0 -192
- package/lib/dist-custom-elements/duet-tab-group.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tab-group.js +0 -312
- package/lib/dist-custom-elements/duet-tab.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tab.js +0 -150
- package/lib/dist-custom-elements/duet-table.d.ts +0 -11
- package/lib/dist-custom-elements/duet-table.js +0 -9
- package/lib/dist-custom-elements/duet-textarea.d.ts +0 -11
- package/lib/dist-custom-elements/duet-textarea.js +0 -301
- package/lib/dist-custom-elements/duet-toggle.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toggle.js +0 -146
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +0 -80
- package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +0 -107
- package/lib/dist-custom-elements/duet-toolbar-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-item.js +0 -120
- package/lib/dist-custom-elements/duet-toolbar-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-link.js +0 -74
- package/lib/dist-custom-elements/duet-toolbar.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar.js +0 -67
- package/lib/dist-custom-elements/duet-tooltip-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tooltip-button.js +0 -9
- package/lib/dist-custom-elements/duet-tooltip-popup.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tooltip-popup.js +0 -9
- package/lib/dist-custom-elements/duet-tooltip.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tooltip.js +0 -9
- package/lib/dist-custom-elements/duet-tray.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tray.js +0 -146
- package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +0 -11
- package/lib/dist-custom-elements/duet-upload-aria-status.js +0 -9
- package/lib/dist-custom-elements/duet-upload-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-upload-item.js +0 -9
- package/lib/dist-custom-elements/duet-upload.d.ts +0 -11
- package/lib/dist-custom-elements/duet-upload.js +0 -1444
- package/lib/dist-custom-elements/duet-visually-hidden.d.ts +0 -11
- package/lib/dist-custom-elements/duet-visually-hidden.js +0 -9
- package/lib/dist-custom-elements/index.d.ts +0 -33
- package/lib/dist-custom-elements/index.js +0 -29
- package/lib/dist-custom-elements/p-081025d8.js +0 -82
- package/lib/dist-custom-elements/p-0871ccd4.js +0 -56
- package/lib/dist-custom-elements/p-115c79b6.js +0 -6
- package/lib/dist-custom-elements/p-18248c41.js +0 -81
- package/lib/dist-custom-elements/p-196352e6.js +0 -39
- package/lib/dist-custom-elements/p-2768f969.js +0 -268
- package/lib/dist-custom-elements/p-30810e37.js +0 -60
- package/lib/dist-custom-elements/p-35375593.js +0 -161
- package/lib/dist-custom-elements/p-3c70317f.js +0 -63
- package/lib/dist-custom-elements/p-4150399b.js +0 -205
- package/lib/dist-custom-elements/p-548610a6.js +0 -2130
- package/lib/dist-custom-elements/p-592cf939.js +0 -102
- package/lib/dist-custom-elements/p-59782228.js +0 -61
- package/lib/dist-custom-elements/p-5d871374.js +0 -316
- package/lib/dist-custom-elements/p-5e91471a.js +0 -63
- package/lib/dist-custom-elements/p-60316b82.js +0 -642
- package/lib/dist-custom-elements/p-63963e6b.js +0 -124
- package/lib/dist-custom-elements/p-6620a58c.js +0 -607
- package/lib/dist-custom-elements/p-77667998.js +0 -232
- package/lib/dist-custom-elements/p-77d42564.js +0 -124
- package/lib/dist-custom-elements/p-8258c05e.js +0 -100
- package/lib/dist-custom-elements/p-8a840972.js +0 -194
- package/lib/dist-custom-elements/p-8d263ac9.js +0 -94
- package/lib/dist-custom-elements/p-91cdfcdd.js +0 -73
- package/lib/dist-custom-elements/p-940f9ee8.js +0 -1630
- package/lib/dist-custom-elements/p-993aea39.js +0 -175
- package/lib/dist-custom-elements/p-9df4cfa4.js +0 -25
- package/lib/dist-custom-elements/p-9e31e365.js +0 -214
- package/lib/dist-custom-elements/p-9ee4d52e.js +0 -321
- package/lib/dist-custom-elements/p-a9b78a2b.js +0 -441
- package/lib/dist-custom-elements/p-aaa7a7bd.js +0 -13
- package/lib/dist-custom-elements/p-aaa95dbc.js +0 -370
- package/lib/dist-custom-elements/p-ad615991.js +0 -115
- package/lib/dist-custom-elements/p-afb6f7fb.js +0 -23
- package/lib/dist-custom-elements/p-b322feac.js +0 -206
- package/lib/dist-custom-elements/p-b632bf7b.js +0 -178
- package/lib/dist-custom-elements/p-ca3cb21e.js +0 -116
- package/lib/dist-custom-elements/p-ccee2b7f.js +0 -127
- package/lib/dist-custom-elements/p-cea716f7.js +0 -503
- package/lib/dist-custom-elements/p-d004da5f.js +0 -6
- package/lib/dist-custom-elements/p-df2458b1.js +0 -80
- package/lib/dist-custom-elements/p-e58296e6.js +0 -110
- package/lib/dist-custom-elements/p-ed1ef4c3.js +0 -55
- package/lib/dist-custom-elements/p-ed6a907e.js +0 -61
- package/lib/dist-custom-elements/p-ed6f3abc.js +0 -165
- package/lib/dist-custom-elements/p-ee0c73c3.js +0 -50
- package/lib/dist-custom-elements/p-f11208c3.js +0 -6
- package/lib/dist-custom-elements/p-f4067b03.js +0 -154
- package/lib/dist-custom-elements/p-f6000a03.js +0 -753
- package/lib/dist-custom-elements/p-f6270dca.js +0 -83
- package/lib/duet/duet.js +0 -127
- package/lib/duet/p-00556ef0.entry.js +0 -4
- package/lib/duet/p-00e58acf.system.entry.js +0 -4
- package/lib/duet/p-02d914b6.system.js +0 -4
- package/lib/duet/p-03dfd146.system.entry.js +0 -4
- package/lib/duet/p-043d8cac.entry.js +0 -4
- package/lib/duet/p-053b71e6.system.js +0 -4
- package/lib/duet/p-078dc32d.system.js +0 -4
- package/lib/duet/p-083bbc28.js +0 -4
- package/lib/duet/p-097593e0.system.entry.js +0 -4
- package/lib/duet/p-0c4bbd65.system.js +0 -4
- package/lib/duet/p-0d7da85a.js +0 -4
- package/lib/duet/p-0dc9089b.system.js +0 -4
- package/lib/duet/p-115c79b6.js +0 -4
- package/lib/duet/p-12739ce5.entry.js +0 -4
- package/lib/duet/p-154681bc.system.entry.js +0 -4
- package/lib/duet/p-16bc0f6a.system.entry.js +0 -4
- package/lib/duet/p-20a9379e.entry.js +0 -4
- package/lib/duet/p-21124f63.system.entry.js +0 -4
- package/lib/duet/p-222fb4e2.entry.js +0 -4
- package/lib/duet/p-2306d206.entry.js +0 -4
- package/lib/duet/p-232405fe.system.entry.js +0 -4
- package/lib/duet/p-280babbe.entry.js +0 -4
- package/lib/duet/p-29cfae19.system.entry.js +0 -4
- package/lib/duet/p-2acb5228.system.entry.js +0 -4
- package/lib/duet/p-2bb44297.system.js +0 -4
- package/lib/duet/p-2d3cfed7.entry.js +0 -4
- package/lib/duet/p-2ea79237.entry.js +0 -4
- package/lib/duet/p-2f4a1c87.system.entry.js +0 -4
- package/lib/duet/p-30424dea.entry.js +0 -4
- package/lib/duet/p-32f2bb6f.system.entry.js +0 -4
- package/lib/duet/p-36d473db.entry.js +0 -4
- package/lib/duet/p-36e38e72.entry.js +0 -4
- package/lib/duet/p-380e506a.system.entry.js +0 -4
- package/lib/duet/p-3931d796.system.entry.js +0 -4
- package/lib/duet/p-396397f0.entry.js +0 -4
- package/lib/duet/p-39c8d5f4.entry.js +0 -4
- package/lib/duet/p-3c43bf45.system.entry.js +0 -4
- package/lib/duet/p-3c548017.entry.js +0 -4
- package/lib/duet/p-3edeecdd.system.entry.js +0 -4
- package/lib/duet/p-41982d26.system.js +0 -4
- package/lib/duet/p-422bf802.system.entry.js +0 -4
- package/lib/duet/p-42789990.system.entry.js +0 -4
- package/lib/duet/p-44ac35f1.entry.js +0 -4
- package/lib/duet/p-49957220.system.js +0 -4
- package/lib/duet/p-49cbde53.entry.js +0 -4
- package/lib/duet/p-49d89759.system.entry.js +0 -4
- package/lib/duet/p-4af1174c.entry.js +0 -4
- package/lib/duet/p-4bbc1e3f.system.entry.js +0 -4
- package/lib/duet/p-4cff3036.system.js +0 -4
- package/lib/duet/p-4d228791.entry.js +0 -4
- package/lib/duet/p-4e095335.entry.js +0 -4
- package/lib/duet/p-4f872b2e.system.entry.js +0 -4
- package/lib/duet/p-4f945200.system.js +0 -4
- package/lib/duet/p-4ffcbae2.entry.js +0 -4
- package/lib/duet/p-534baf68.system.entry.js +0 -4
- package/lib/duet/p-55b6ebd2.system.entry.js +0 -4
- package/lib/duet/p-565c967d.system.entry.js +0 -4
- package/lib/duet/p-56d5d3bd.system.entry.js +0 -4
- package/lib/duet/p-570fd695.system.entry.js +0 -4
- package/lib/duet/p-5a148896.entry.js +0 -4
- package/lib/duet/p-5a47d2bb.entry.js +0 -4
- package/lib/duet/p-5acfa4bf.entry.js +0 -4
- package/lib/duet/p-5b5a4a8f.entry.js +0 -4
- package/lib/duet/p-5cbadb53.system.entry.js +0 -4
- package/lib/duet/p-5cc339cf.entry.js +0 -4
- package/lib/duet/p-5d1a4238.entry.js +0 -4
- package/lib/duet/p-5e01a303.system.entry.js +0 -4
- package/lib/duet/p-5f668b4a.system.entry.js +0 -4
- package/lib/duet/p-5ffa7838.entry.js +0 -4
- package/lib/duet/p-61173f11.system.js +0 -5
- package/lib/duet/p-622e1ffc.js +0 -4
- package/lib/duet/p-64f2d5cf.system.entry.js +0 -4
- package/lib/duet/p-650c6251.system.entry.js +0 -4
- package/lib/duet/p-69e55527.system.entry.js +0 -4
- package/lib/duet/p-6ac3b242.entry.js +0 -4
- package/lib/duet/p-6ac7d70c.entry.js +0 -4
- package/lib/duet/p-6c8f09c8.system.entry.js +0 -4
- package/lib/duet/p-6eec1445.system.entry.js +0 -4
- package/lib/duet/p-6fc78573.entry.js +0 -4
- package/lib/duet/p-705dbeac.system.entry.js +0 -4
- package/lib/duet/p-71a37f03.entry.js +0 -4
- package/lib/duet/p-752fa0fc.system.js +0 -4
- package/lib/duet/p-760919c7.system.entry.js +0 -4
- package/lib/duet/p-7be5b9a7.js +0 -4
- package/lib/duet/p-7c119b9b.system.entry.js +0 -4
- package/lib/duet/p-7cd899ca.system.entry.js +0 -4
- package/lib/duet/p-7d8a2628.js +0 -4
- package/lib/duet/p-7ea9d8e4.system.entry.js +0 -4
- package/lib/duet/p-7fc6af46.system.entry.js +0 -4
- package/lib/duet/p-7fe5e652.entry.js +0 -4
- package/lib/duet/p-86038989.entry.js +0 -4
- package/lib/duet/p-872b746e.entry.js +0 -4
- package/lib/duet/p-875d3971.entry.js +0 -4
- package/lib/duet/p-88daf9bb.system.entry.js +0 -4
- package/lib/duet/p-89ac2008.system.entry.js +0 -4
- package/lib/duet/p-89cf1a91.system.js +0 -4
- package/lib/duet/p-8d43c8cf.entry.js +0 -4
- package/lib/duet/p-8f450e25.entry.js +0 -4
- package/lib/duet/p-8f477bd6.system.js +0 -4
- package/lib/duet/p-8faaaf5f.system.js +0 -4
- package/lib/duet/p-907b42ae.system.entry.js +0 -4
- package/lib/duet/p-9183c04b.system.entry.js +0 -4
- package/lib/duet/p-91b68d54.entry.js +0 -4
- package/lib/duet/p-92d47024.system.entry.js +0 -4
- package/lib/duet/p-939f268d.entry.js +0 -4
- package/lib/duet/p-93c115a9.system.entry.js +0 -4
- package/lib/duet/p-943bf2b1.system.entry.js +0 -4
- package/lib/duet/p-9592f6ba.entry.js +0 -4
- package/lib/duet/p-96d76a4b.entry.js +0 -4
- package/lib/duet/p-98636086.system.js +0 -4
- package/lib/duet/p-9a57fac7.entry.js +0 -4
- package/lib/duet/p-9b16ba14.system.entry.js +0 -4
- package/lib/duet/p-9b61d7b9.system.entry.js +0 -4
- package/lib/duet/p-9d429df0.system.entry.js +0 -4
- package/lib/duet/p-9e5b11f7.entry.js +0 -4
- package/lib/duet/p-9ee0f850.entry.js +0 -4
- package/lib/duet/p-a083b91a.js +0 -5
- package/lib/duet/p-a11e1a80.system.entry.js +0 -4
- package/lib/duet/p-a1e5f0d4.entry.js +0 -4
- package/lib/duet/p-a4b80c74.entry.js +0 -4
- package/lib/duet/p-a7b0d8ce.entry.js +0 -4
- package/lib/duet/p-aaa7a7bd.js +0 -4
- package/lib/duet/p-abc0c9c6.system.js +0 -4
- package/lib/duet/p-ad07b21e.system.entry.js +0 -4
- package/lib/duet/p-ad0d289a.system.entry.js +0 -4
- package/lib/duet/p-ad2b37b0.entry.js +0 -4
- package/lib/duet/p-adc2d7ce.system.entry.js +0 -4
- package/lib/duet/p-aef92a68.entry.js +0 -4
- package/lib/duet/p-afad5fd3.system.js +0 -4
- package/lib/duet/p-b15523c2.entry.js +0 -4
- package/lib/duet/p-b17984d6.system.entry.js +0 -4
- package/lib/duet/p-b2df3729.entry.js +0 -4
- package/lib/duet/p-b327a269.entry.js +0 -4
- package/lib/duet/p-b33512d6.js +0 -4
- package/lib/duet/p-b48b58e1.entry.js +0 -4
- package/lib/duet/p-b864159a.system.js +0 -4
- package/lib/duet/p-b8775dc1.system.entry.js +0 -4
- package/lib/duet/p-ba03d034.system.js +0 -4
- package/lib/duet/p-bbb92080.entry.js +0 -4
- package/lib/duet/p-bd5b0381.entry.js +0 -4
- package/lib/duet/p-bdb001df.entry.js +0 -4
- package/lib/duet/p-be097905.entry.js +0 -4
- package/lib/duet/p-beeb12f1.js +0 -4
- package/lib/duet/p-c118fad4.js +0 -4
- package/lib/duet/p-c1483141.entry.js +0 -4
- package/lib/duet/p-c2e74c89.system.entry.js +0 -4
- package/lib/duet/p-c40ee5d3.entry.js +0 -4
- package/lib/duet/p-c480533b.entry.js +0 -4
- package/lib/duet/p-c487869c.entry.js +0 -4
- package/lib/duet/p-c507caa0.entry.js +0 -4
- package/lib/duet/p-c58f3932.entry.js +0 -4
- package/lib/duet/p-c5d88a34.system.entry.js +0 -4
- package/lib/duet/p-c6bf2cc4.system.entry.js +0 -4
- package/lib/duet/p-c6f29010.system.entry.js +0 -4
- package/lib/duet/p-ca29569e.system.js +0 -4
- package/lib/duet/p-ca3cb21e.js +0 -4
- package/lib/duet/p-ca901ab9.entry.js +0 -4
- package/lib/duet/p-cc5e6288.system.js +0 -4
- package/lib/duet/p-cc67e773.js +0 -4
- package/lib/duet/p-cdba12cc.system.js +0 -4
- package/lib/duet/p-ce282523.entry.js +0 -4
- package/lib/duet/p-cebffd48.system.entry.js +0 -4
- package/lib/duet/p-cf2d66a9.system.entry.js +0 -4
- package/lib/duet/p-cf511280.system.entry.js +0 -4
- package/lib/duet/p-d004da5f.js +0 -4
- package/lib/duet/p-d2875f04.system.entry.js +0 -4
- package/lib/duet/p-d40b4a20.entry.js +0 -4
- package/lib/duet/p-d4554cf2.entry.js +0 -4
- package/lib/duet/p-d4ddd4d1.entry.js +0 -4
- package/lib/duet/p-d5317013.system.entry.js +0 -4
- package/lib/duet/p-d68e93e4.system.entry.js +0 -4
- package/lib/duet/p-d6a321fd.system.entry.js +0 -4
- package/lib/duet/p-d835a292.entry.js +0 -4
- package/lib/duet/p-d840dcdc.system.entry.js +0 -4
- package/lib/duet/p-dac4bc08.system.entry.js +0 -4
- package/lib/duet/p-db2ccb9d.system.js +0 -4
- package/lib/duet/p-e0b83f6c.system.entry.js +0 -4
- package/lib/duet/p-e12066c8.system.js +0 -4
- package/lib/duet/p-e216bea4.system.js +0 -4
- package/lib/duet/p-e29d9d5b.system.entry.js +0 -4
- package/lib/duet/p-e3857119.js +0 -4
- package/lib/duet/p-e45d4dc4.system.entry.js +0 -4
- package/lib/duet/p-e4c8559c.system.js +0 -4
- package/lib/duet/p-e50214f5.system.entry.js +0 -4
- package/lib/duet/p-e6b5a1c7.system.js +0 -4
- package/lib/duet/p-e7c3186e.system.entry.js +0 -4
- package/lib/duet/p-e89a92a9.entry.js +0 -4
- package/lib/duet/p-eb02c981.system.entry.js +0 -4
- package/lib/duet/p-ed086770.system.entry.js +0 -4
- package/lib/duet/p-eebfe28d.system.entry.js +0 -4
- package/lib/duet/p-ef520403.entry.js +0 -4
- package/lib/duet/p-f0260e4c.entry.js +0 -4
- package/lib/duet/p-f07eace6.system.entry.js +0 -4
- package/lib/duet/p-f1083d8c.system.entry.js +0 -4
- package/lib/duet/p-f10d7817.entry.js +0 -4
- package/lib/duet/p-f11208c3.js +0 -4
- package/lib/duet/p-f18245aa.system.entry.js +0 -4
- package/lib/duet/p-f4063bd4.entry.js +0 -4
- package/lib/duet/p-f56098f1.system.entry.js +0 -4
- package/lib/duet/p-f6000a03.js +0 -4
- package/lib/duet/p-f67921d2.system.entry.js +0 -4
- package/lib/duet/p-f6b21d17.system.js +0 -4
- package/lib/duet/p-f7fe4161.system.entry.js +0 -4
- package/lib/duet/p-f97dd407.entry.js +0 -4
- package/lib/duet/p-fcfae4d6.entry.js +0 -4
- package/lib/esm/a11y-utils-c3a7fd7e.js +0 -23
- package/lib/esm/action-arrow-down-small-82273dc8.js +0 -6
- package/lib/esm/action-new-window-small-1945be91.js +0 -6
- package/lib/esm/body-scroll-46854769.js +0 -234
- package/lib/esm/bodyScrollLock.es6-ecbf187e.js +0 -184
- package/lib/esm/common-strings-af765cad.js +0 -25
- package/lib/esm/create-id-149a1b6d.js +0 -11
- package/lib/esm/floating-ui.dom.esm-ebc91b33.js +0 -1348
- package/lib/esm/focus-utils-7bc146cd.js +0 -18
- package/lib/esm/form-search-ea8e19ae.js +0 -6
- package/lib/esm/input-utils-85681162.js +0 -53
- package/lib/esm/is-internet-explorer-2c48f686.js +0 -9
- package/lib/esm/js-utils-9b9e0039.js +0 -47
- package/lib/esm/keyboard-utils-daf80d44.js +0 -58
- package/lib/esm/label-de5c8cbd.js +0 -20
- package/lib/esm/polyfills/core-js.js +0 -11
- package/lib/esm/polyfills/dom.js +0 -79
- package/lib/esm/polyfills/es5-html-element.js +0 -1
- package/lib/esm/polyfills/index.js +0 -34
- package/lib/esm/polyfills/system.js +0 -6
- package/lib/esm/string-utils-192eb3c8.js +0 -61
- package/lib/esm/themeable-component-860041c5.js +0 -13
- package/lib/esm/token-utils-b9ba8c5e.js +0 -138
- package/lib/esm/watch-options-e96ecd92.js +0 -57
- package/lib/esm-es5/a11y-utils-c3a7fd7e.js +0 -4
- package/lib/esm-es5/action-arrow-down-small-82273dc8.js +0 -4
- package/lib/esm-es5/action-new-window-small-1945be91.js +0 -4
- package/lib/esm-es5/app-globals-e00fbe9c.js +0 -4
- package/lib/esm-es5/body-scroll-46854769.js +0 -4
- package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +0 -4
- package/lib/esm-es5/common-strings-af765cad.js +0 -4
- package/lib/esm-es5/create-id-149a1b6d.js +0 -4
- package/lib/esm-es5/duet-action-button.entry.js +0 -4
- package/lib/esm-es5/duet-alert.entry.js +0 -4
- package/lib/esm-es5/duet-badge.entry.js +0 -4
- package/lib/esm-es5/duet-banner.entry.js +0 -4
- package/lib/esm-es5/duet-breadcrumb.entry.js +0 -4
- package/lib/esm-es5/duet-breadcrumbs.entry.js +0 -4
- package/lib/esm-es5/duet-button_2.entry.js +0 -4
- package/lib/esm-es5/duet-callout.entry.js +0 -4
- package/lib/esm-es5/duet-caption_4.entry.js +0 -4
- package/lib/esm-es5/duet-card.entry.js +0 -4
- package/lib/esm-es5/duet-checkbox.entry.js +0 -4
- package/lib/esm-es5/duet-checkmark.entry.js +0 -4
- package/lib/esm-es5/duet-chip.entry.js +0 -4
- package/lib/esm-es5/duet-choice_2.entry.js +0 -4
- package/lib/esm-es5/duet-collapsible.entry.js +0 -4
- package/lib/esm-es5/duet-combobox.entry.js +0 -4
- package/lib/esm-es5/duet-contact-card.entry.js +0 -4
- package/lib/esm-es5/duet-cookie-consent.entry.js +0 -4
- package/lib/esm-es5/duet-date-picker.entry.js +0 -4
- package/lib/esm-es5/duet-divider_2.entry.js +0 -4
- package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
- package/lib/esm-es5/duet-empty-state.entry.js +0 -4
- package/lib/esm-es5/duet-fieldset.entry.js +0 -4
- package/lib/esm-es5/duet-file-chooser.entry.js +0 -4
- package/lib/esm-es5/duet-footer.entry.js +0 -4
- package/lib/esm-es5/duet-grid_2.entry.js +0 -4
- package/lib/esm-es5/duet-header_2.entry.js +0 -4
- package/lib/esm-es5/duet-hero.entry.js +0 -4
- package/lib/esm-es5/duet-icon.entry.js +0 -4
- package/lib/esm-es5/duet-input_2.entry.js +0 -4
- package/lib/esm-es5/duet-layout.entry.js +0 -4
- package/lib/esm-es5/duet-list_2.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-button.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-item.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-link.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar.entry.js +0 -4
- package/lib/esm-es5/duet-modal.entry.js +0 -4
- package/lib/esm-es5/duet-multiselect.entry.js +0 -4
- package/lib/esm-es5/duet-nav.entry.js +0 -4
- package/lib/esm-es5/duet-notification_2.entry.js +0 -4
- package/lib/esm-es5/duet-number-input.entry.js +0 -4
- package/lib/esm-es5/duet-overlay.entry.js +0 -4
- package/lib/esm-es5/duet-page-heading.entry.js +0 -4
- package/lib/esm-es5/duet-pagination_2.entry.js +0 -4
- package/lib/esm-es5/duet-phone-input.entry.js +0 -4
- package/lib/esm-es5/duet-popup-menu_2.entry.js +0 -4
- package/lib/esm-es5/duet-progress.entry.js +0 -4
- package/lib/esm-es5/duet-promo-card.entry.js +0 -4
- package/lib/esm-es5/duet-radio_2.entry.js +0 -4
- package/lib/esm-es5/duet-range-slider.entry.js +0 -4
- package/lib/esm-es5/duet-scrollable_3.entry.js +0 -4
- package/lib/esm-es5/duet-section-layout.entry.js +0 -4
- package/lib/esm-es5/duet-select.entry.js +0 -4
- package/lib/esm-es5/duet-shaped-image.entry.js +0 -4
- package/lib/esm-es5/duet-show-more.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-lang.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-link.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-panel.entry.js +0 -4
- package/lib/esm-es5/duet-slideout.entry.js +0 -4
- package/lib/esm-es5/duet-status-icon.entry.js +0 -4
- package/lib/esm-es5/duet-step_2.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar.entry.js +0 -4
- package/lib/esm-es5/duet-textarea.entry.js +0 -4
- package/lib/esm-es5/duet-toggle.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-item.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-link.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar.entry.js +0 -4
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +0 -4
- package/lib/esm-es5/duet-tooltip.entry.js +0 -4
- package/lib/esm-es5/duet-tray.entry.js +0 -4
- package/lib/esm-es5/duet-upload-aria-status.entry.js +0 -4
- package/lib/esm-es5/duet-upload-item.entry.js +0 -4
- package/lib/esm-es5/duet-visually-hidden.entry.js +0 -4
- package/lib/esm-es5/duet.js +0 -4
- package/lib/esm-es5/errorcodes.utils-416994cc.js +0 -4
- package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
- package/lib/esm-es5/focus-utils-7bc146cd.js +0 -4
- package/lib/esm-es5/form-search-ea8e19ae.js +0 -4
- package/lib/esm-es5/index-1a6cee61.js +0 -4
- package/lib/esm-es5/index.js +0 -3
- package/lib/esm-es5/input-utils-85681162.js +0 -4
- package/lib/esm-es5/is-internet-explorer-2c48f686.js +0 -4
- package/lib/esm-es5/js-utils-9b9e0039.js +0 -4
- package/lib/esm-es5/keyboard-utils-daf80d44.js +0 -4
- package/lib/esm-es5/label-de5c8cbd.js +0 -4
- package/lib/esm-es5/language-utils-8a9d5323.js +0 -4
- package/lib/esm-es5/loader.js +0 -4
- package/lib/esm-es5/slot-utils-bf214ae5.js +0 -4
- package/lib/esm-es5/string-utils-192eb3c8.js +0 -4
- package/lib/esm-es5/teleport-546f382d.js +0 -4
- package/lib/esm-es5/themeable-component-860041c5.js +0 -4
- package/lib/esm-es5/token-utils-b9ba8c5e.js +0 -4
- package/lib/esm-es5/tokens-84fb2357.js +0 -4
- package/lib/esm-es5/tokens.module-2d02f5ff.js +0 -4
- package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
- package/lib/loader/package.json +0 -11
- /package/lib/cjs/{body-scroll-dba42314.js → body-scroll-FWPe3_T_.js} +0 -0
- /package/lib/cjs/{bodyScrollLock.es6-dd2d7d91.js → bodyScrollLock.es6-B2sCDud5.js} +0 -0
- /package/lib/cjs/{create-id-1f8c438f.js → create-id-DtslnIOq.js} +0 -0
- /package/lib/cjs/{input-utils-1096a2c5.js → input-utils-DUKdslOM.js} +0 -0
- /package/lib/cjs/{is-internet-explorer-e7f58ebc.js → is-internet-explorer-BTLb_loH.js} +0 -0
- /package/lib/cjs/{js-utils-92e24ba1.js → js-utils-hJ4A2edy.js} +0 -0
- /package/lib/cjs/{keyboard-utils-f7c9f980.js → keyboard-utils-D9UlHbik.js} +0 -0
- /package/lib/cjs/{string-utils-7b13c16e.js → string-utils-B35hEUBv.js} +0 -0
- /package/lib/duet/{p-8354d1f1.js → p-B1B-PPrh.js} +0 -0
- /package/lib/duet/{p-9e371678.js → p-BlUsLmbQ.js} +0 -0
- /package/lib/duet/{p-fc09c464.js → p-C6CAT054.js} +0 -0
- /package/lib/duet/{p-9c3c64b9.js → p-C6E9F6QT.js} +0 -0
- /package/lib/duet/{p-df7874f9.js → p-CLDy7YaM.js} +0 -0
- /package/lib/duet/{p-5e59e970.js → p-Cfr_DJqU.js} +0 -0
- /package/lib/duet/{p-43b89e38.js → p-DxESMgwA.js} +0 -0
- /package/lib/{dist-custom-elements/p-fc09c464.js → esm/body-scroll-C6CAT054.js} +0 -0
- /package/lib/{dist-custom-elements/p-8354d1f1.js → esm/bodyScrollLock.es6-B1B-PPrh.js} +0 -0
- /package/lib/{dist-custom-elements/p-5e59e970.js → esm/create-id-Cfr_DJqU.js} +0 -0
- /package/lib/{dist-custom-elements/p-df7874f9.js → esm/input-utils-CLDy7YaM.js} +0 -0
- /package/lib/{dist-custom-elements/p-43b89e38.js → esm/is-internet-explorer-DxESMgwA.js} +0 -0
- /package/lib/{dist-custom-elements/p-9e371678.js → esm/js-utils-BlUsLmbQ.js} +0 -0
- /package/lib/{dist-custom-elements/p-9c3c64b9.js → esm/string-utils-C6E9F6QT.js} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{h as t,r as e,c as a,H as i,g as o}from"./p-BhYt_2Vd.js";import{D as n}from"./p-CxgSYSyh.js";import{i as r}from"./p-1U75pxcR.js";import{c as d}from"./p-Cfr_DJqU.js";import{F as s}from"./p-xwlQQBxs.js";import{a as l,g as u,c,d as h}from"./p-ac_1YilV.js";import{c as b,p as m}from"./p-DJzDRf9m.js";import{g as p}from"./p-DvwKrUS6.js";import"./p-C6E9F6QT.js";const f={day:"numeric",month:"long",weekday:"long"},g={day:"numeric",month:"long",year:"numeric"},v={fi:{buttonLabel:"Valitse päivämäärä",prevMonthLabel:"Edellinen kuukausi",nextMonthLabel:"Seuraava kuukausi",monthSelectLabel:"Kuukausi",yearSelectLabel:"Vuosi",closeLabel:"Sulje ikkuna",selected:"Valittu päivämäärä on",keyboardInstruction:"Voit navigoida päivämääriä nuolinäppäimillä",dayLabels:["Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai","Sunnuntai"],monthLabels:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthLabelsShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],formatterShort:new Intl.DateTimeFormat("fi-FI",f),formatterLong:new Intl.DateTimeFormat("fi-FI",g)},en:{buttonLabel:"Choose date",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",closeLabel:"Close window",selected:"Selected date is",keyboardInstruction:"You can use arrow keys to navigate dates",dayLabels:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthLabels:["January","February","March","April","May","June","July","August","September","October","November","December"],monthLabelsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("en-GB",f),formatterLong:new Intl.DateTimeFormat("en-GB",g)},sv:{buttonLabel:"Välj datum",prevMonthLabel:"Föregående månad",nextMonthLabel:"Nästa månad",monthSelectLabel:"Månad",yearSelectLabel:"År",closeLabel:"Stäng fönstret",selected:"Valt datum är",keyboardInstruction:"Använd piltangenterna för att navigera i kalender",dayLabels:["Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],monthLabels:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthLabelsShort:["Jan","Feb","Mars","April","Maj","Juni","Juli","Aug","Sep","Okt","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("sv-SE",f),formatterLong:new Intl.DateTimeFormat("sv-SE",g)}};var y,k,x=p(k?y:(k=1,y={title:"form-date",tags:"form date calendar date picker",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M2.25 24A2.252 2.252 0 0 1 0 21.75V5.25A2.252 2.252 0 0 1 2.25 3H6V.75a.75.75 0 0 1 1.5 0V3h9V.75a.75.75 0 0 1 1.5 0V3h3.75A2.252 2.252 0 0 1 24 5.25v16.5A2.252 2.252 0 0 1 21.75 24zm-.75-2.25c0 .414.336.75.75.75h19.5a.75.75 0 0 0 .75-.75V10.5h-21zM22.5 9V5.25a.75.75 0 0 0-.75-.75H18V6a.75.75 0 0 1-1.5 0V4.5h-9V6A.75.75 0 0 1 6 6V4.5H2.25a.75.75 0 0 0-.75.75V9z"/><circle cx="5.625" cy="13.875" r="1.125"/><circle cx="5.625" cy="19.125" r="1.125"/><circle cx="12" cy="13.875" r="1.125"/><circle cx="12" cy="19.125" r="1.125"/><circle cx="18.375" cy="13.875" r="1.125"/><path d="M18.375 20.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.171-1.122l.027.003a1.118 1.118 0 0 1 1.052 1.12c0 .619-.505 1.124-1.125 1.124z"/></svg>'}));const w=({onClick:e,placeholder:a,inputLabel:i,valueAsDate:o,formattedValue:n,language:r,identifier:d,theme:s,disabled:l,error:u,role:c,required:h,tooltip:b,tooltipDirection:m,labelHidden:p,buttonRef:f,inputRef:g,onInput:y,onBlur:k,onFocus:w,hasFocus:S,accessibleActiveDescendant:D,accessibleControls:M,accessibleOwns:I,accessibleDescribedBy:L,accessibleLiveError:A,echoPlaceholder:F,caption:j})=>{const{buttonLabel:z,selected:C,formatterLong:E}=v[r];return t("div",{class:{"duet-theme-turva":"turva"===s,"duet-date-input":!0,"duet-date-input-has-focus":S}},t("duet-input",{label:i,value:n,placeholder:a,id:d,disabled:l,theme:s,error:u,role:c,required:h,tooltip:b,tooltipDirection:m,margin:"none",labelHidden:p,accessibleAutocomplete:"none",onDuetChange:t=>t.stopImmediatePropagation(),onDuetInput:y,onDuetFocus:w,onDuetBlur:k,autoComplete:"off",disallowPattern:"[^0-9\\.\\-\\/]",expand:!0,ref:g,accessibleActiveDescendant:D,accessibleControls:M,accessibleOwns:I,accessibleDescribedBy:L,accessibleLiveError:A,echoPlaceholder:F,caption:j,variation:"button"},t("slot",{name:"tooltip"}),t("button",{class:{"duet-date-button":!0,"duet-no-label":p,"input-error":!!u},onClick:e,disabled:l,ref:f,type:"button",slot:"button"},t("duet-icon",{icon:x.svg,margin:"none",size:"small",color:"currentColor"}),t("duet-visually-hidden",null,z,o&&t("span",null,", ",C," ",E.format(o))))))},S=/^(\d{1,2})[\.\-\/](\d{1,2})[\.\-\/](\d{4})$/,D=/^(\d{4})-(\d{2})-(\d{2})$/;function M(t,e,a){var i=parseInt(a,10),o=parseInt(e,10),n=parseInt(t,10);if(Number.isInteger(n)&&Number.isInteger(o)&&Number.isInteger(i)&&o>0&&o<=12&&i>0&&i<=31&&n>0){const t=new Date(n,o-1,i);if(t.getDate()!==i||t.getMonth()!==o-1)return;return t}}function I(t){if(!t)return;const e=t.match(S);return e?M(e[3],e[2],e[1]):void 0}function L(t){if(!t)return;const e=t.match(D);return e?M(e[1],e[2],e[3]):void 0}function A(t,e){if(!t)return"";var a=t.getDate().toString(10),i=(t.getMonth()+1).toString(10),o=t.getFullYear().toString(10);return t.getDate()<10&&(a=`0${a}`),t.getMonth()<9&&(i=`0${i}`),e.replace(/MM/i,i).replace(/YYYY/i,o).replace(/DD/i,a)}function F(t){return A(t,"YYYY-MM-DD")}function j(t,e){return null!=t&&null!=e&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function z(t,e){var a=new Date(t);return a.setDate(a.getDate()+e),a}function C(t,e=1){var a=new Date(t),i=a.getDay(),o=(i<e?7:0)+i-e;return a.setDate(a.getDate()-o),a}function E(t,e=1){var a=new Date(t),i=a.getDay(),o=6+(i<e?-7:0)-(i-e);return a.setDate(a.getDate()+o),a}function U(t){return new Date(t.getFullYear(),t.getMonth(),1)}function V(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function B(t,e){const a=new Date(t);return a.setMonth(e),a}function H(t,e){const a=new Date(t);return a.setFullYear(e),a}function R(t,e,a){return Y(t,e,a)===t}function Y(t,e,a){const i=t.getTime();return e&&e instanceof Date&&i<e.getTime()?e:a&&a instanceof Date&&i>a.getTime()?a:t}const J={fi:"Valittu päivä",en:"Selected day",sv:"Vald dag"},T=({focusedDay:e,today:a,day:i,language:o,onDaySelect:n,onKeyboardNavigation:r,ref:d,inRange:s,isSelected:l})=>{const u=j(i,a),c=j(i,e),h=i.getMonth()!==e.getMonth(),b=!s,{formatterShort:m}=v[o];return t("td",{"data-day":F(i),class:{"duet-date-table-cell":!0,selected:l},"aria-label":`${m.format(i)}${l?`, ${J[o]}`:void 0}`,role:"button",tabIndex:c?0:-1,onClick:function(t){n(t,i)},onKeyDown:r,"aria-disabled":b||h,ref:d},t("span",{class:{"duet-date-table-button":!0,outside:b,disabled:h,today:u}},i.getDate()))};function N(t){var e;const a=t.trim().split("+"),i=a.pop();return["shift"===(null===(e=a[0])||void 0===e?void 0:e.toLowerCase()),i]}function P(t){const e=Object.keys(t).map((e=>[N(e),t[e]]));return function(t){if(!(t instanceof KeyboardEvent))return;const a=e.find((([[e,a]])=>(a.toUpperCase()===t.key.toUpperCase()||a===t.code)&&e===t.shiftKey));a&&(a[1](t),t.preventDefault())}}const O=({selectedDate:e,focusedDate:a,labelledById:i,theme:o,language:n,min:r,max:d,onDateSelect:s,onKeyboardNavigation:l,focusedDayRef:u,onFocusEnter:c,onFocusExit:h})=>{const{dayLabels:b}=v[n],m=new Date,p=function(t,e=1){return function(t,e){const a=[];let i=t;for(;!j(i,e);)a.push(i),i=z(i,1);return a.push(i),a}(C(U(t),e),E(V(t),e))}(a);return t("div",{role:"application"},t("table",{role:"presentation",class:{"duet-date-table":!0,"duet-theme-turva":"turva"===o},"aria-labelledby":i,onFocusin:c,onFocusout:function(t){const e=t.relatedTarget;e&&!t.currentTarget.contains(e)&&h(t)}},t("thead",null,t("tr",null,b.map((e=>t("th",{scope:"col"},t("span",{"aria-hidden":"true"},e.substr(0,2))))))),t("tbody",null,function(t){const e=[];for(let a=0;a<t.length;a+=7)e.push(t.slice(a,a+7));return e}(p).map((i=>t("tr",{class:"duet-date-table-row"},i.map((i=>t(T,{day:i,today:m,language:n,focusedDay:a,inRange:R(i,r,d),isSelected:j(i,e),onDaySelect:s,onKeyboardNavigation:l,ref:t=>{t&&j(i,a)&&u(t)}})))))))))},K=class{constructor(t){e(this,t),this.duetChange=a(this,"duetChange",7),this.duetBlur=a(this,"duetBlur",7),this.duetFocus=a(this,"duetFocus",7),this.proxyId=d("DuetDatePicker"),this.monthSelectId=d("DuetDatePicker"),this.yearSelectId=d("DuetDatePicker"),this.dialogLabelId=d("DuetDatePicker"),this.initialTouchX=null,this.initialTouchY=null,this.focusTarget=null,this.dateErrorMessages={badInput:{en:"Wrong date format",fi:"Väärä päivämäärämuoto",sv:"Fel datumformat"},rangeUnderflow:{en:"Date too early",fi:"Liian aikainen päivämäärä",sv:"Datum för tidigt"},rangeOverflow:{en:"Date too late",fi:"Liian myöhäinen päivämäärä",sv:"Datum för sent"},valueMissing:{en:"Date required",fi:"Päivämäärä vaaditaan",sv:"Datum krävs"}},this.open=!1,this.focusedDay=new Date,this.inputValue="",this.inputHasFocus=!1,this.internalValidityError="",this.theme="",this.expand=!1,this.name="",this.identifier="",this.label="",this.margin="auto",this.language=l(),this.placeholderDefaults={fi:"pp.kk.vvvv",en:"dd.mm.yyyy",sv:"dd.mm.åååå"},this.placeholder=u(this.placeholderDefaults,this.language),this.echoPlaceholder=!1,this.disabled=!1,this.error="",this.disableBuiltInErrors=!1,this.labelHidden=!1,this.required=!1,this.direction="right",this.tooltip="",this.tooltipDirection="auto",this.value="",this.min="",this.max="",this.incrementYears=10,this.accessibleLiveError="polite",this.enableActiveFocus=()=>{this.focusTarget="day-button"},this.disableActiveFocus=()=>{this.focusTarget=null},this.toggleOpen=t=>{t.preventDefault(),this.open?this.hide(!1):this.show()},this.handleBlur=t=>{if(t.stopPropagation(),this.inputHasFocus=!1,!this._validity.valid){this.value=null;const t=Object.entries(this._validity).find((t=>!!t[1]))[0];this.internalValidityError=u(this.dateErrorMessages[t])}this.duetBlur.emit({component:"duet-date-picker"})},this.handleFocus=t=>{t.stopPropagation(),this.inputHasFocus=!0,this.duetFocus.emit({component:"duet-date-picker"})},this.handleTouchStart=t=>{const e=t.changedTouches[0];this.initialTouchX=e.pageX,this.initialTouchY=e.pageY},this.handleTouchMove=t=>{t.preventDefault()},this.handleTouchEnd=t=>{const e=t.changedTouches[0],a=e.pageX-this.initialTouchX,i=e.pageY-this.initialTouchY,o=Math.abs(a)>=70&&Math.abs(i)<=70,n=Math.abs(i)>=70&&Math.abs(a)<=70&&i>0;o?this.addMonths(a<0?1:-1):n&&(this.hide(),t.preventDefault()),this.initialTouchY=null,this.initialTouchX=null},this.handleNextMonthClick=t=>{t.preventDefault(),this.addMonths(1)},this.handlePreviousMonthClick=t=>{t.preventDefault(),this.addMonths(-1)},this.handleEscKey=P({Escape:()=>this.hide(),Esc:()=>this.hide()}),this.handleKeyboardNavigation=P({ArrowRight:()=>this.addDays(1),Right:()=>this.addDays(1),ArrowLeft:()=>this.addDays(-1),Left:()=>this.addDays(-1),ArrowDown:()=>this.addDays(7),Down:()=>this.addDays(7),ArrowUp:()=>this.addDays(-7),Up:()=>this.addDays(-7),Home:()=>this.startOfWeek(),End:()=>this.endOfWeek(),PageUp:()=>this.addMonths(-1),PageDown:()=>this.addMonths(1),"Shift+PageUp":()=>this.addYears(-1),"Shift+PageDown":()=>this.addYears(1),Space:t=>this.handleKeyboardDaySelect(t),Enter:t=>this.handleKeyboardDaySelect(t)}),this.handleKeyboardDaySelect=t=>{const e=L(t.target.dataset.day);this.handleDaySelect(t,e)},this.handleDaySelect=(t,e)=>{const a=L(this.min),i=L(this.max);this.determineValidity(e),R(e,a,i)&&(this.setValue(e),this.hide())},this.handleMonthSelect=t=>{this.setMonth(parseInt(t.target.value,10))},this.handleYearSelect=t=>{this.setYear(parseInt(t.target.value,10))},this.handleInputChange=t=>{this.inputValue=t.detail.value;const e=I(this.inputValue);this.determineValidity(e),(e||""===this.inputValue)&&this.setValue(e)}}get validity(){return this._validity}updateValidity(t,e,a){"value"===a&&null===t||(this.determineValidity(L(this.value)),this._validity.valid&&(this.internalValidityError=""))}updateInternalValue(){if(null===this.value)return;const t=L(this.value),e=I(this.inputValue);t?j(t,e)||(this.inputValue=A(t,"dd.mm.yyyy")):this.inputValue=""}componentWillLoad(){r(this),this.determineValidity(L(this.value)),this.updateInternalValue(),b(this.element,"tooltip","duet-tooltip",1,!0)}componentDidUpdate(){switch(this.focusTarget){case"toggle-button":this.datePickerButton.focus(),this.focusTarget=null;break;case"day-button":this.focusedDayNode.focus();break;case"month-select":this.monthSelectNode.focus(),this.focusTarget=null}}componentDidRender(){m(this.element,this.proxyId,this.name,this.value,this.required)}connectedCallback(){c(this,{prop:"placeholder",defaults:"placeholderDefaults"})}disconnectedCallback(){h(this)}async setFocus(t){this.datePickerInput.setFocus(t)}async show(){this.open=!0,this.focusTarget="month-select",this.setFocusedDay(L(this.value)||new Date)}async hide(t=!0){this.open=!1,t&&(this.focusTarget="toggle-button")}addDays(t){this.setFocusedDay(z(this.focusedDay,t))}addMonths(t){this.setMonth(this.focusedDay.getMonth()+t)}addYears(t){this.setYear(this.focusedDay.getFullYear()+t)}startOfWeek(){this.setFocusedDay(C(this.focusedDay))}endOfWeek(){this.setFocusedDay(E(this.focusedDay))}setMonth(t){const e=B(U(this.focusedDay),t),a=V(e),i=B(this.focusedDay,t);this.setFocusedDay(Y(i,e,a))}setYear(t){const e=H(U(this.focusedDay),t),a=V(e),i=H(this.focusedDay,t);this.setFocusedDay(Y(i,e,a))}setFocusedDay(t){this.focusedDay=Y(t,L(this.min),L(this.max))}determineValidity(t){var e,a;const i=""!==(null!==(a=null===(e=this.datePickerInput)||void 0===e?void 0:e.value)&&void 0!==a?a:"")&&null==t,o=this.required&&null==t,n=!!t&&!R(t,null,L(this.max)),r=!!t&&!R(t,L(this.min));this._validity={patternMismatch:!1,customError:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,badInput:i,rangeUnderflow:r,rangeOverflow:n,valueMissing:o,valid:!(o||i||r||n)}}setValue(t){const e=F(t);e!==this.value&&(this.value=e,this.duetChange.emit({component:"duet-date-picker",value:this.value,valueAsDate:t}))}handleDocumentClick(t){this.open&&t.composedPath().every((t=>t!==this.dialogWrapperNode&&t!==this.datePickerButton))&&this.hide(!1)}render(){const e=L(this.value),a=(e||this.focusedDay).getFullYear(),o=this.focusedDay.getMonth(),r=this.focusedDay.getFullYear(),d=v[this.language],l=L(this.min),u=L(this.max),c=null!=l&&l.getMonth()===o&&l.getFullYear()===r,h=null!=u&&u.getMonth()===o&&u.getFullYear()===r;let b=a-this.incrementYears,m=a+this.incrementYears;return l&&(b=Math.max(b,l.getFullYear())),u&&(m=Math.min(m,u.getFullYear())),t(i,{key:"37f45a71c4032ac634736a6920fb025734c3bbe2",class:{"duet-expand":this.expand,"duet-m-0":"none"===this.margin}},t("div",{key:"61c829b503df044c1b67f460b7dacd7398078cba",class:"duet-date"},t(w,{key:"8a04908b051939c5c8eb85cf7efdeac0d3a21d6c",hasFocus:this.inputHasFocus,value:this.value,valueAsDate:e,formattedValue:this.inputValue,language:this.language,onInput:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.toggleOpen,name:this.name,disabled:this.disabled,error:this.error||!this.disableBuiltInErrors&&this.internalValidityError||null,role:this.role,required:this.required,theme:this.theme,tooltip:this.tooltip,tooltipDirection:this.tooltipDirection,labelHidden:this.labelHidden,placeholder:this.placeholder,inputLabel:this.label,identifier:this.identifier,buttonRef:t=>this.datePickerButton=t,inputRef:t=>this.datePickerInput=t,accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy,accessibleLiveError:this.accessibleLiveError,echoPlaceholder:this.echoPlaceholder,caption:this.caption})),t("div",{key:"acd43f63f5682534c6bf78625fe43c6c86a46dc0",class:{"duet-theme-turva":"turva"===this.theme,"duet-date-dialog":!0,left:"left"===this.direction,error:!!this.error,active:this.open},role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-labelledby":this.dialogLabelId,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},t("duet-overlay",{key:"88bd9a51351af2edf1e2e07f155c1eabbff10646",visible:this.open,"display-device":"x-small"}),t(s,{key:"08fa3fd43496f0250e63598a879eb03ff81ade36",moveFocusTo:this.focusedDayNode}),t("div",{key:"a7d8dd867afa616cd47543b8c47a160b710b70f3",class:"duet-date-dialog-wrapper",onKeyDown:this.handleEscKey,ref:t=>this.dialogWrapperNode=t},t("duet-visually-hidden",{key:"81c99489839f6ceb28ac6f25f73a0d92f054b0bc","aria-live":"polite"},d.keyboardInstruction),t("div",{key:"404552e44ed007048db39d1d20108c6c38aca2bf",class:"duet-date-dialog-mobile-header"},t(n,{key:"d49183b544c8e2a4a23ca281a62b3c4be8a90ebf",margin:"none"},this.label),t("button",{key:"3adb95e86f08e23c1b60e6e19ec3d9d23467f33f",class:"duet-date-picker-close",ref:t=>this.closeButtonNode=t,onClick:()=>this.hide(),type:"button"},t("duet-icon",{key:"c500a093b3fdae7155e3a5aed30539f009f156c2",name:"navigation-close-small",margin:"none",color:"currentColor",size:"xx-small"}),t("duet-visually-hidden",{key:"1f23e50c6c479195a622d512ac4ee5d866ebcd9b"},d.closeLabel))),t("div",{key:"662972a21f2c4cd532471209c9d49e51142f0b25",class:"duet-date-dialog-header"},t("div",{key:"fb7cbfa6f3ccded04f8d481447c5847a1293d535",class:"duet-date-dialog-dropdowns"},t("duet-visually-hidden",{key:"8aa30a4e48fcc57ee56d7564284ff219260e8d5f"},t("h2",{key:"7a40dd8ca6344ac0ccf504ce73b476a3f5e4b0f6",id:this.dialogLabelId,"aria-live":"polite","aria-atomic":"true"},d.monthLabels[o]," ",this.focusedDay.getFullYear())),t("duet-visually-hidden",{key:"7ef05a1a7fab5bebf6d24bc78bb9789efd85835e"},t("label",{key:"b93bb5d18acd17fb2bc22bc43c00d16199d254da",htmlFor:this.monthSelectId},d.monthSelectLabel)),t("div",{key:"72f8d34639a3a7de933c91e781b9aafa8e3fb668",class:"duet-date-dialog-select"},t("select",{key:"a09e0ba04dfd0da49e8d141c8b2c520d49a6108d",id:this.monthSelectId,class:"duet-date-month-select",ref:t=>this.monthSelectNode=t,onChange:this.handleMonthSelect},d.monthLabels.map(((e,a)=>t("option",{key:e,value:a,selected:a===o,disabled:!R(new Date(r,a,1),l?U(l):null,u?V(u):null)},e)))),t("div",{key:"85e19eac15e8475ea1a891b49796c2999e9800b8",class:"duet-date-dialog-select-label","aria-hidden":"true"},t("span",{key:"ae692bf29092ba59affd6258f57ef9dcc1847f2e"},d.monthLabelsShort[o]),t("duet-icon",{key:"aed73b3af5c337b8e7ff70699106d3c685206ff1",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"}))),t("duet-visually-hidden",{key:"860526bf60d4e94dfd2c19a5eabcd049b8273d82"},t("label",{key:"6852a9ff1990eddd80f8c0edfa59cc762d68fcc9",htmlFor:this.yearSelectId},d.yearSelectLabel)),t("div",{key:"28bf2d2a99952eb203a2198f558b7ccba9ae99c3",class:"duet-date-dialog-select"},t("select",{key:"efafa17aa2c9306af0ca13dbee83cdefeed076b2",id:this.yearSelectId,class:"duet-date-year-select",onChange:this.handleYearSelect},function(t,e){for(var a=[],i=t;i<=e;i++)a.push(i);return a}(b,m).map((e=>t("option",{key:e,selected:e===r},e)))),t("div",{key:"5d9f4154d302ea2733b72a2f613abd9f7f569be8",class:"duet-date-dialog-select-label","aria-hidden":"true"},t("span",{key:"a6996b5aa61aa5227048b4eb1b8cb227b0dcda33"},this.focusedDay.getFullYear()),t("duet-icon",{key:"6c999d099466d7b9ac2dd54ba7cf9b80732d82ef",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"})))),t("div",{key:"7c63a65698b7a07d10c9b75ad21a6c7585c99034",class:"duet-date-dialog-buttons"},t("duet-action-button",{key:"3599aaffa6d0b601b35cfa244faa11b705724ef0",accessibleLabel:v[this.language].prevMonthLabel,actionName:v[this.language].prevMonthLabel,class:"duet-date-dialog-prev",onClick:this.handlePreviousMonthClick,disabled:c,"icon-name":"action-arrow-left-small"},d.prevMonthLabel),t("duet-action-button",{key:"dfff287908a10fd3b84abbd643af6d095bb70537",accessibleLabel:v[this.language].nextMonthLabel,actionName:v[this.language].nextMonthLabel,class:"duet-date-dialog-next",onClick:this.handleNextMonthClick,disabled:h,"icon-name":"action-arrow-right-small"},d.nextMonthLabel))),t(O,{key:"4f9b1c1fd0791045a5d04055e1c61182f11ebe86",selectedDate:e,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,language:this.language,theme:this.theme,min:l,max:u,focusedDayRef:t=>this.focusedDayNode=t,onFocusEnter:this.enableActiveFocus,onFocusExit:this.disableActiveFocus})),t(s,{key:"06daea4e6567faa83c290236d3bafd2ed6bb310e",moveFocusTo:this.closeButtonNode})))}get element(){return o(this)}static get watchers(){return{min:["updateValidity"],max:["updateValidity"],value:["updateValidity","updateInternalValue"],required:["updateValidity"]}}};K.style='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}[alignment=form-distribute]>:host(:last-of-type:not(:last-child)){margin-right:16px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;vertical-align:top;text-align:left}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-date{position:relative;width:100%}.duet-date button,.duet-date-dialog button{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button{-webkit-user-select:none;user-select:none;position:relative;z-index:200;box-sizing:content-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;width:47px;height:48px;color:rgb(8, 42, 77);cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-left-color:rgb(181, 198, 208);border-radius:0 4px 4px 0;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-theme-turva .duet-date-button{color:rgb(23, 28, 58);border-color:rgb(143, 147, 158);border-left-color:rgb(199, 202, 207)}.duet-date-button::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-date-button:hover:not(:disabled){outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva .duet-date-button:hover:not(:disabled),.duet-date-button:hover:not(:disabled).duet-theme-turva,.duet-theme-turva2 .duet-date-button:hover:not(:disabled),.duet-date-button:hover:not(:disabled).duet-theme-turva2{outline-color:rgb(120, 145, 164)}.duet-date-button:disabled{pointer-events:none;cursor:not-allowed;background:rgb(245, 248, 250) !important;border:0 !important}.duet-theme-turva .duet-date-button:disabled{background:rgb(245, 247, 250) !important}.duet-date-button:disabled::before{display:none}.duet-date-button:disabled duet-icon{opacity:0.4}.duet-date-button duet-icon{transform:translateY(-1px)}.duet-date-button:active duet-icon{transform:translateY(0)}.duet-date-input-has-focus .duet-date-button,.duet-date-button:focus{height:46px;color:rgb(0, 119, 179)}.duet-date-input-has-focus .duet-date-button:focus,.duet-date-button:focus:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-date-input-has-focus .duet-date-button:focus,.duet-date-input-has-focus .duet-date-button:focus.duet-theme-turva,.duet-theme-turva2 .duet-date-input-has-focus .duet-date-button:focus,.duet-date-input-has-focus .duet-date-button:focus.duet-theme-turva2,.duet-theme-turva .duet-date-button:focus:focus,.duet-date-button:focus:focus.duet-theme-turva,.duet-theme-turva2 .duet-date-button:focus:focus,.duet-date-button:focus:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva.duet-date-input-has-focus .duet-date-button,.duet-theme-turva .duet-date-button:focus{color:rgb(23, 28, 58)}.input-error{border-top-color:rgb(214, 28, 82);border-right-color:rgb(214, 28, 82);border-bottom-color:rgb(214, 28, 82)}.duet-date-dialog{position:absolute;top:100%;left:0;z-index:900;display:flex;visibility:hidden;width:100%;opacity:0;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease}@media (min-width: 36em){.duet-date-dialog.left{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog{position:fixed;top:0;right:0;bottom:0;transform:translateZ(0);transform-origin:bottom center;transition:opacity 400ms ease, visibility 400ms ease}}.duet-date-dialog.active{visibility:visible;opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);transition-property:transform, opacity}@media (min-width: 36em){.duet-date-dialog.error{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva .duet-date-dialog-wrapper{border-color:rgb(222, 224, 228)}@media (max-width: 35.9375em){.duet-date-dialog-wrapper{position:absolute;bottom:0;left:0;z-index:900;visibility:hidden;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transform:translateZ(0) translateY(100%);transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease}.active .duet-date-dialog-wrapper{visibility:visible;opacity:1;transform:translateZ(0) translateY(0);transition-property:transform, opacity}}.duet-date-table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-date-table th{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-transform:uppercase;letter-spacing:1px;text-decoration:none}.duet-date-table .duet-date-table-cell{text-align:center}.duet-date-table .duet-date-table-cell:focus{outline:none}.duet-date-table-button{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:2.6 !important;vertical-align:initial !important;color:rgb(8, 42, 77) !important;text-align:center;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva .duet-date-table-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;color:rgb(23, 28, 58) !important}.duet-date-table-button:hover{background:rgb(228, 241, 247) !important}.duet-theme-turva .duet-date-table-button:hover{background:rgb(255, 227, 228) !important}.duet-date-table-button.today{z-index:200;color:rgb(0, 75, 129) !important;background:rgb(240, 247, 250) !important;box-shadow:0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-date-table-button.today{color:rgb(126, 2, 35) !important;background:rgb(255, 241, 241) !important;box-shadow:0 0 0 1px #171c3a !important}.selected .duet-date-table-button,:focus .duet-date-table-button{color:rgb(255, 255, 255) !important;outline:0;background:rgb(0, 119, 179) !important}.duet-theme-turva .selected .duet-date-table-button,.duet-theme-turva :focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}.duet-date-table-button:active{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8);z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important}.duet-theme-turva .duet-date-table-button:active,.duet-date-table-button:active.duet-theme-turva,.duet-theme-turva2 .duet-date-table-button:active,.duet-date-table-button:active.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}:focus .duet-date-table-button{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8);z-index:200}.duet-theme-turva :focus .duet-date-table-button,:focus .duet-date-table-button.duet-theme-turva,.duet-theme-turva2 :focus .duet-date-table-button,:focus .duet-date-table-button.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-date-table-button.disabled{color:rgb(127, 150, 165) !important;cursor:default;outline:none !important;background:transparent !important}.duet-theme-turva .duet-date-table-button.disabled{color:rgb(143, 147, 158) !important;outline:none !important;background:transparent !important}.duet-date-table-button.outside{color:rgb(127, 150, 165) !important;pointer-events:none;cursor:default;outline:none;background:rgb(245, 248, 250) !important;opacity:0.75}.duet-theme-turva .duet-date-table-button.outside{color:rgb(143, 147, 158);outline:none;background:rgb(245, 247, 250)}.duet-date-dialog-header{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons{white-space:nowrap}.duet-date-dialog-buttons ::part(button){border:0}.duet-date-dialog-select{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select .duet-date-dialog-select-label{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);pointer-events:none;border-radius:4px}.duet-theme-turva .duet-date-dialog-select .duet-date-dialog-select-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-date-dialog-select span{margin-right:4px}.duet-date-dialog-select select{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select select:focus+.duet-date-dialog-select-label{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-date-dialog-select select:focus+.duet-date-dialog-select-label,.duet-date-dialog-select select:focus+.duet-date-dialog-select-label.duet-theme-turva,.duet-theme-turva2 .duet-date-dialog-select select:focus+.duet-date-dialog-select-label,.duet-date-dialog-select select:focus+.duet-date-dialog-select-label.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-date-dialog-mobile-header{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid rgb(181, 198, 208)}@media (min-width: 36em){.duet-date-dialog-mobile-header{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva .duet-date-dialog-mobile-header{border-color:rgb(199, 202, 207)}.duet-date-dialog-mobile-header duet-label{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header duet-label{display:none}}.duet-date-picker-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:rgb(8, 42, 77) !important;-webkit-appearance:none;appearance:none;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%}@media (min-width: 36em){.duet-date-picker-close{opacity:0}}.duet-theme-turva .duet-date-picker-close{background:rgb(245, 247, 250) !important}.duet-date-picker-close:hover{background:rgb(245, 248, 250) !important}.duet-theme-turva .duet-date-picker-close:hover{background:rgb(245, 247, 250) !important}.duet-date-picker-close:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-date-picker-close:focus,.duet-date-picker-close:focus.duet-theme-turva,.duet-theme-turva2 .duet-date-picker-close:focus,.duet-date-picker-close:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}@media (min-width: 36em){.duet-date-picker-close:focus{opacity:1}}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-button{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-date-input-has-focus :host(.duet-theme-turva2) .duet-theme-turva,:host(.duet-theme-turva2) .duet-theme-turva:focus{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button{color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button:hover:not(.disabled){background:rgb(251, 225, 209) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button.today{background:rgb(253, 247, 242) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button.outside{color:rgb(120, 145, 164) !important;background:rgb(245, 246, 247) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button.disabled{color:rgb(199, 202, 207) !important}:host(.duet-theme-turva2) .duet-theme-turva [aria-pressed=true] .duet-date-table-button,:host(.duet-theme-turva2) .duet-theme-turva :focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64) !important}:host(.duet-theme-turva2) .duet-theme-turva.duet-date-table{color:rgb(23, 42, 59)}';export{K as duet_date_picker}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{r as e,c as t,h as s,H as o,g as i}from"./p-BhYt_2Vd.js";import{i as a}from"./p-1U75pxcR.js";import{c as r}from"./p-Cfr_DJqU.js";import{i as n}from"./p-Db8rvjPI.js";import{a as h,g as l,c as d,d as c}from"./p-ac_1YilV.js";import"./p-C6E9F6QT.js";const m=class{constructor(s){e(this,s),this.duetToggle=t(this,"duetToggle",7),this.contentId=r("DuetShowMore"),this.buttonId=r("DuetShowMoreButton"),this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.buttonAriaOpen=!1,this.theme="",this.language=h(),this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"},this.showMoreLabel=l(this.showMoreLabelDefaults),this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"},this.showLessLabel=l(this.showLessLabelDefaults),this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"},this.showMoreAccessibleLabel=l(this.showMoreAccessibleLabelDefaults),this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"},this.showLessAccessibleLabel=l(this.showLessAccessibleLabelDefaults),this.margin="auto",this.buttonMargin="auto",this.buttonPadding="auto",this.open=!1,this.handleKeyDown=e=>{n(e)&&this.handleClick(e)},this.handleClick=e=>{e.preventDefault();const t=!this.open;this.open=t,t?(setTimeout((()=>{this.contentElement.focus()}),100),setTimeout((()=>{this.buttonAriaOpen=t}),500)):this.buttonAriaOpen=t,this.duetToggle.emit({component:"duet-show-more",originalEvent:e})}}componentWillLoad(){a(this),this.buttonAriaOpen=this.open}connectedCallback(){d(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])}disconnectedCallback(){c(this)}render(){return s(o,{key:"5a2691671f8db729580e5e163f0a4172065b60a1"},s("div",{key:"d00e9ad7eec18c34b53f35be55000cc238e96d41",class:{"duet-show-more":!0,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin,open:this.open}},s("div",{key:"5e4edfe4b958662c6d8a0bb0a5a2ad941d3f7bd7",ref:e=>this.contentElement=e,class:{content:!0,"duet-theme-turva":"turva"===this.theme},id:this.contentId,tabindex:this.open?"-1":""},s("div",{key:"474e8ecec72e945e59954844d55e2a7d09e53362",class:{"slotted-content":!0}},s("slot",{key:"553fee6703e708bb2a283b75033a7250017fa00c"}))),s("duet-button",{key:"d4e86de6ba82e7d997ef4af2a2a45fb8b6f26a78",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,accessiblePressed:this.isSafariBrowser?this.open:null,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":!0,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:"turva"===this.theme?"turva":"default"},s("span",{key:"5e1363182df7d60a43688b5ff4c6a91d6602eb19"},this.open?this.showLessLabel:this.showMoreLabel))))}get element(){return i(this)}};m.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:block}.duet-show-more{margin-bottom:16px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more .content:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-show-more .content:focus,.duet-show-more .content:focus.duet-theme-turva,.duet-theme-turva2 .duet-show-more .content:focus,.duet-show-more .content:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-show-more.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-show-more.duet-theme-turva{color:rgb(23, 42, 59)}';export{m as duet_show_more}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{r as t,h as e,H as a,g as o,c as i}from"./p-BhYt_2Vd.js";import{i as r}from"./p-1U75pxcR.js";import{h as s,g as l}from"./p-DJzDRf9m.js";import{s as n,u as d,b,p as u,d as c,e as h,f as p,g}from"./p-Db8rvjPI.js";import{g as m,c as f,d as v,a as x}from"./p-ac_1YilV.js";import{d as k}from"./p-Bg75Vqqq.js";import{c as w}from"./p-Cfr_DJqU.js";import"./p-C6E9F6QT.js";import"./p-BDAqOMlM.js";const y=class{constructor(e){t(this,e),this.currentIndex=0,this.scrollPaneElement=void 0,this.hasCollapseButtonLabelSlot=!1,this.scrollPaneAtStart=!0,this.needsScrolling=!0,this.scrollPaneAtEnd=!1,this.childrenData={},this.resizeObserver=new ResizeObserver((t=>{if(1===(null==t?void 0:t.length)){const e=this.getOverlayWidth();this.checkScrollingNeeded(t[0].target,e)}})),this.theme="",this.identifier="",this.collapsed=!1,this.buttons=!0,this.buttonAlignment="center",this.buttonPosition="relative",this.center=!1,this.padding="none",this.gap="large",this.selected=0,this.stretch=!1,this.collapsedOnClick=()=>{this.collapsed=!this.collapsed}}watchPropHandler(t){this.scrollToElement(t,"center")}componentWillLoad(){r(this),this.hasCollapseButtonLabelSlot=s(this.element,"collapse-button-label")}componentDidLoad(){requestAnimationFrame((()=>{this.scrollPaneElement&&(this.checkScrollingNeeded(this.scrollPaneElement,"absolute"===this.buttonPosition?0:5),this.updateScrollButtons(),this.resizeObserver.observe(this.scrollPaneElement))}))}disconnectedCallback(){this.resizeObserver.disconnect()}async scrollToItem(t){this.scrollToElement(t-1,"center")}async scrollToStart(){this.scrollToElement(0,"center")}async scrollToEnd(){this.scrollToElement(this.getScrollPaneElements().length-1,"center")}getScrollPaneElements(){return l(this.element)}checkScrollingNeeded(t=this.scrollPaneElement,e=5){var a;if(!t)return;const o=(null===(a=t.parentElement)||void 0===a?void 0:a.getBoundingClientRect().width)||0,i=t.scrollWidth,r=2*this.getOverlayWidth();this.needsScrolling=i-r>o+e,this.needsScrolling?this.updateScrollButtons():(this.scrollPaneAtStart=!0,this.scrollPaneAtEnd=!0)}getLastVisibleElement(){const t=this.getScrollPaneElements().find((t=>t.getBoundingClientRect().x+t.getBoundingClientRect().width-this.scrollPaneElement.getBoundingClientRect().x>this.scrollPaneElement.clientWidth)),e=this.getScrollPaneElements().indexOf(t);return t.clientWidth>this.scrollPaneElement.clientWidth?e:e-1}getFirstVisibleElement(){const t=this.getScrollPaneElements(),e=t.find((t=>t.getBoundingClientRect().x>this.scrollPaneElement.getBoundingClientRect().x)),a=e?t.indexOf(e):t.length;var o=Math.max(a-1,0);return t[o].clientWidth>this.scrollPaneElement.clientWidth?o:a}updateScrollButtons(t=null,e=this.scrollPaneElement){if(!this.buttons)return;if(t&&t.clientWidth>this.scrollPaneElement.clientWidth){const e=this.getScrollPaneElements().indexOf(t);return 0==e&&(this.scrollPaneAtStart=!0),void(e==this.getScrollPaneElements().length-1&&(this.scrollPaneAtEnd=!0))}e.scrollLeft<=0?this.scrollPaneAtStart=!0:e.scrollLeft>0&&(this.scrollPaneAtStart=!1);const a=Math.ceil(e.clientWidth+e.scrollLeft+this.getOverlayWidth()),o=Math.round(e.scrollWidth);this.scrollPaneAtEnd=a>=o}scrollToElement(t=this.currentIndex,e){const a=this.getScrollPaneElements();if(!a||0===a.length)return;t+1>=a.length&&(t=a.length-1),t<0&&(t=0);let o=a[0].getBoundingClientRect().x,i=5;const r=()=>{if(a[0].getBoundingClientRect().x===o){if(i--,0!==i)return void window.requestAnimationFrame(r);this.updateScrollButtons(a[t])}else window.requestAnimationFrame(r),o=a[0].getBoundingClientRect().x};a[t].scrollIntoView({behavior:"smooth",block:"nearest",inline:e}),window.requestAnimationFrame(r)}scrollLeft(){this.scrollPaneAtEnd=!1;const t=this.getFirstVisibleElement();this.scrollToElement(t-1,"center")}scrollRight(){this.scrollPaneAtStart=!1;const t=this.getLastVisibleElement();this.scrollToElement(t+1,"center")}getOverlayWidth(){return"absolute"===this.buttonPosition?0:10}renderButton(t){const a="turva"===this.theme?"color-primary-darker-turva":"color-primary",o="turva"===this.theme?"color-gray-turva":"color-gray",i=()=>{"left"===t?this.scrollLeft():this.scrollRight()},r="left"===t?this.scrollPaneAtStart:this.scrollPaneAtEnd;return e("div",{class:{"duet-scrollable-button-container":!0,[`${t}`]:!0,"duet-scrollable-button-container--occluded":!this.needsScrolling,[`duet-scrollable-button-container--${this.buttonPosition}`]:!0},hidden:!this.buttons||"absolute"===this.buttonPosition&&r},e("span",{part:`${this.identifier}-button-${t}`,"aria-hidden":"true",class:{"duet-scrollable-button":!0,[`duet-scrollable-button--${this.buttonPosition}`]:!0,[`duet-scrollable-button--${this.buttonAlignment}`]:!0,[`duet-scrollable-button--${t}`]:!0},onClick:()=>{i(),document.activeElement&&document.activeElement.blur()},hidden:!this.buttons||r},e("duet-icon",{color:r?o:a,name:"left"===t?"action-arrow-left":"action-arrow-right",size:"absolute"===this.buttonPosition?"x-small":"small",margin:"none"})))}render(){return e(a,{key:"2ba4adf585cac6b8a76f8a06f2a46a3339b495e8",class:{"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme}},this.hasCollapseButtonLabelSlot&&e("div",{key:"1bb6dcf18c16906a196f15532d51878f5a14ebfe",class:{collapse:!0,hide:!this.needsScrolling&&!this.collapsed}},e("duet-button",{key:"253b7c6b18e78444e59e7a3df3f66287e67d8d4d",variation:"plain",margin:"none","center-text":!0,onClick:()=>this.collapsedOnClick()},e("slot",{key:"46ee35a09a74308fef543368900ceb78546d2d27",name:"collapse-button-label"}))),e("div",{key:"fbead3f5a25009528eca77982e0c340139f780dc",class:{"duet-scrollable-items":!0,buttons:this.buttons,center:this.center,"duet-theme-turva":"turva"===this.theme}},this.buttons&&this.renderButton("left"),e("div",{key:"dc180a9004b8b097bca04412e3412b32949efbdc",class:{"duet-scrollable-list":!0,[`duet-scrollable-list--${this.buttonPosition}`]:!0,[`gap-${this.gap}`]:!0,collapsed:this.collapsed,[`duet-overflow-padding--${this.padding}`]:"none"!==this.padding,[`duet-scrollable-list--${this.buttonPosition}`]:"absolute"===this.buttonPosition,"duet-scrollable-stretch":this.stretch},onScroll:()=>this.updateScrollButtons(),ref:t=>this.scrollPaneElement=t},e("slot",{key:"a14ae5f86ffc50886753e785bfb795cc706e3f95"})),this.buttons&&this.renderButton("right")))}get element(){return o(this)}static get watchers(){return{selected:["watchPropHandler"]}}};y.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{position:relative;display:flex}:host .duet-scrollable-items.buttons .duet-scrollable-button-container{position:relative;flex:0 0 auto;flex-basis:40px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--occluded{visibility:hidden;flex-shrink:1;flex-basis:0;width:0;padding:10px 0;overflow:hidden}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute{position:absolute;top:0;z-index:210;width:auto;height:100%;padding:0 16px;background-color:rgb(255, 255, 255)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.left{left:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.right{right:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button{position:absolute;display:flex;flex:0 0 auto;flex-basis:40px;align-items:center;height:100%;cursor:pointer;transition:transform 300ms ease}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button:active duet-icon{transform:scale(0.8);transition:transform 300ms ease}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--left{left:0;padding:10px 10px 10px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--right{right:0;padding:10px 0 10px 10px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--top{align-items:flex-start}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--bottom{align-items:flex-end}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute{padding:0 7px;border:1px solid rgb(212, 223, 229)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--left{border-radius:8px 0 0 8px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--right{border-radius:0 8px 8px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(0, 119, 179);border-width:2px;}.duet-theme-turva :host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button[hidden]{display:none !important}:host .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;padding-inline:10px;margin-inline:-10px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;white-space:nowrap;scroll-snap-type:x mandatory;scroll-margin:0 20px;-webkit-mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:left, right;mask-position:left, right;-webkit-mask-size:50% 100%, 50% 100%;mask-size:50% 100%, 50% 100%;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;}:host .duet-scrollable-items .duet-scrollable-list--absolute{padding-right:0;padding-left:2px;margin-inline:0;-webkit-mask:none !important;mask:none !important}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items .duet-scrollable-list.gap-none{gap:0}:host .duet-scrollable-items .duet-scrollable-list.gap-large{gap:20px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--xx-small{padding-top:4px;padding-bottom:4px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--x-small{padding-top:8px;padding-bottom:8px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--small{padding-top:12px;padding-bottom:12px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--medium{padding-top:16px;padding-bottom:16px}:host .duet-scrollable-items .duet-scrollable-list.duet-scrollable-stretch{width:100%}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){flex-shrink:0;margin-left:0;scroll-snap-align:center;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out}:host(.duet-theme-turva2) .duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(120, 145, 164)}";const z=class{constructor(e){t(this,e),this.theme="",this.accessibleDescriptionDefault=null,this.accessibleDescription=this.accessibleDescriptionDefault?m(this.accessibleDescriptionDefault):null,this.accessibleLabelledBy=void 0,this.contentId=void 0,this.setupContentElement=()=>{this.contentId&&(this.tabpanelElement=document.getElementById(this.contentId),this.tabpanelElement&&(this.tabpanelElement.setAttribute("role","tabpanel"),this.tabpanelElement.setAttribute("tabindex","-1"),this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener),this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener),this.tabpanelElement.addEventListener("focus",this.tabpanelElementFocusListener),this.tabpanelElement.addEventListener("blur",this.tabpanelElementBlurListener),this.accessibleDescription&&this.tabpanelElement.setAttribute("aria-description",this.accessibleDescription),this.accessibleLabelledBy&&this.tabpanelElement.setAttribute("aria-labelledby",this.accessibleLabelledBy),this.tabpanelElement.toggleAttribute("hidden",!this.selected)))},this.tabpanelElementFocusListener=()=>{this.element.classList.contains("user-is-tabbing")&&(this.tabpanelElement.style.outline="0",this.tabpanelElement.style.boxShadow=k("turva"===this.theme?"focus-turva":"focus"))},this.tabpanelElementBlurListener=()=>{this.tabpanelElement.style.outline=null,this.tabpanelElement.style.boxShadow=null}}componentWillLoad(){r(this)}connectedCallback(){f(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"}),n(this),this.notificationMark&&(this.indicator="warning"===this.notificationMark?"change":"error"),this.setupContentElement()}disconnectedCallback(){v(this),d(this),this.tabpanelElement&&(this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener.bind(this)),this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener.bind(this)),this.tabpanelElement=void 0)}setupSelected(t,e){!!t!=!!e&&this.setupContentElement()}async setFocus(t){this.tabpanelElement.focus(t)}render(){return e("div",{key:"a022a330a4f4eef2664a452c8f0df2b84e46c429",ref:t=>{this.contentId||(this.tabpanelElement=t)},role:"tabpanel",class:{"duet-theme-turva":"turva"===this.theme,"duet-tab":!0,selected:this.selected,"has-content-id":!!this.contentId},"aria-description":this.accessibleDescription,"aria-labelledby":this.accessibleLabelledBy,tabindex:"-1"},e("slot",{key:"fcb609d847cf496ada314f386a9b82dab58a7c19"}))}get element(){return o(this)}static get watchers(){return{selected:["setupSelected"]}}};z.style=":host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:block;width:100%}.duet-tab{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:none;width:100%}.duet-tab:focus{outline:0}:host(.user-is-tabbing) .duet-tab:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-tab:focus,:host(.user-is-tabbing) .duet-tab:focus.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-tab:focus,:host(.user-is-tabbing) .duet-tab:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-tab.selected{display:block}.duet-tab.has-content-id,.duet-tab.has-content-id.selected{display:none}";const S=class{constructor(e){t(this,e),this.duetChange=i(this,"duetChange",3),this.duetTabChange=i(this,"duetTabChange",7),this.duetTabChangeRequested=i(this,"duetTabChangeRequested",7),this.id=w("DuetTabGroup"),this.tabs=[],this.selected=void 0,this.theme="",this.scrolls=!0,this.collapses=!1,this.accessibleLabel=void 0,this.variation="default",this.language=x(),this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"},this.label=m(this.labelDefaults,this.language),this.labelHidden=!0,this.identifier=this.id,this.margin="auto",this.padding="auto",this.setTabIndex=!0,this.tabChangeConfirm=!1,this.switchLargeBreakpoint="small",this.fillSpace=!1,this.stretch=!1,this.handleKeyDown=t=>{let e;c(t)||h(t)?e=t.target.previousElementSibling:(p(t)||g(t))&&(e=t.target.nextElementSibling),b(t)&&!u(t)&&(t.preventDefault(),this.element.querySelector(":scope > duet-tab[selected]").setFocus()),e&&(t.preventDefault(),e.click(),e.focus())},this.onTabSelect=t=>{this.tabChangeConfirm?t!==this.selected&&this.duetTabChangeRequested.emit({value:t,component:"duet-tab-group"}):this.openTab(t)},this.scrollToActive=()=>{setTimeout((()=>{const t=this.tabsContainer.querySelector(".selected");t&&t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}),50)}}async connectedCallback(){"undefined"!=typeof MutationObserver&&(this.mutationO=new MutationObserver((()=>{this.updateTabs()})),this.mutationO.observe(this.element,{attributes:!0,attributeFilter:["label","selected"],childList:!0,characterData:!0,subtree:!0})),await this.updateTabs(),n(this)}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),d(this)}componentWillLoad(){r(this)}componentDidLoad(){this.intersectionObserver=new IntersectionObserver((t=>{t.length>0&&t[0].isIntersecting&&(this.scrollToActive(),this.intersectionObserver.disconnect())}),{root:null,threshold:0}),this.intersectionObserver.observe(this.element)}async openTab(t){if(t>=this.tabs.length)throw new Error(`[duet-tabs] Index ${t} is out of bounds of tabs length`);this.selected=t,this.tabs.forEach(((e,a)=>{e.selected=a===t})),this.scrollToActive();const e={value:t,component:"duet-tab-group"};this.duetChange.emit(e),this.duetTabChange.emit(e)}async refresh(){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.")}getTabs(){const t=Array.from(this.element.querySelectorAll("duet-tab")).filter((t=>t.closest("duet-tab-group")===this.element));if(0===t.length)throw new Error("[duet-tabs] Must have at least one tab");return t}getButtonId(t){return`${this.identifier}-button-${t}`}getTabId(t){return`${this.identifier}-tab-${t}`}getAccessibleDescription(t){return this.tabs[t].getAttribute("accessible-description")||null}async updateTabs(){let t;this.tabs=this.getTabs(),this.tabs.forEach(((e,a)=>{e.id=this.getTabId(a),e.selected&&(void 0===t?t=a:e.selected=!1)})),void 0===t&&(t=0,this.tabs[0].selected=!0),this.selected=t}isCentered(){return window&&"center"==window.getComputedStyle(this.element).textAlign}render(){const t="plain-scrolling"===this.variation?"duet-tab-variation-plain":`duet-tab-variation-${this.variation}`,a="checked"===this.variation||"plain-scrolling"===this.variation,o=`switch-large-at-${this.switchLargeBreakpoint?this.switchLargeBreakpoint:"small"}`,i=this.tabs.map(((t,a)=>e("button",{role:"tab",id:this.getButtonId(a),"aria-selected":t.selected?"true":"false","aria-description":this.getAccessibleDescription(a),tabindex:t.selected?"0":"-1",part:`${this.identifier}-button ${t.selected?`${this.identifier}-button--selected`:""}`,type:"button",class:{"duet-p-0":"none"===this.padding,"duet-tab-button":!0,"stackable-tab":"checked"===this.variation&&this.tabs.length<=3,selected:t.selected,[o]:!!["default","plain","plain-scrolling"].includes(this.variation),"duet-theme-turva":"turva"===this.theme},onClick:()=>this.onTabSelect(a),onKeyDown:t=>this.handleKeyDown(t)},"checked"===this.variation?e("div",{class:{"checked-tab-content":!0,"stackable-checked-tab-content":this.tabs.length<=3}},e("div",{class:{"checked-tab-description":!0,"stackable-description":this.tabs.length<=3}},e("p",null,t.label),e("p",{class:{"tab-caption":!0,selected:t.selected}},t.caption)),e("div",{class:{"stackable-checkmark":this.tabs.length<=3}},e("duet-checkmark",{theme:this.theme,checked:t.selected,type:"radio","presentation-only":!0,center:!0}))):t.label,t.indicator&&e("duet-indicator",{variation:t.indicator,"accessible-label":t.indicatorAccessibleLabel}))));return e("div",{key:"8415a139c9a189c4c0ee19aa4cb2774a22eea232",class:{"duet-tab-group":!0,"duet-theme-turva":"turva"===this.theme,[t]:!0,"duet-tab-plain-scrolling":"plain-scrolling"===this.variation,"duet-tab-group-scrolls":!0},"aria-label":this.accessibleLabel},e("div",{key:"9d145a51f61427e95d54628daef43256ab5eaa50",role:"tablist",class:{"duet-m-0":"none"===this.margin||"checked"===this.variation,"duet-tab-group-tabs":!0,"duet-tab-group-hidden":this.tabs.length>3&&!a,"duet-tab-group-fill-space":this.fillSpace&&!this.stretch&&"default"===this.variation,"duet-tab-group-stretch":this.stretch},ref:t=>{this.tabsContainer=t}},"checked"===this.variation?i:e("div",{class:{"duet-tab-group-scrollable-wrapper":!0,"duet-tab-group-fill-space-wrapper":this.fillSpace&&"default"===this.variation}},this.fillSpace&&!this.stretch&&"default"===this.variation&&e("div",{class:"duet-scrollable-stretch-overlay"},e("div",{class:"background"}),e("div",{class:"border"})),e("duet-scrollable",{selected:this.selected,identifier:this.identifier,gap:["default","plain","plain-scrolling"].includes(this.variation)?"none":"large",buttonPosition:"default"===this.variation?"absolute":"relative",center:this.isCentered()?this.isCentered():"center"==this.element.style.textAlign,theme:this.theme,stretch:this.stretch},i))),e("div",{key:"2bfb5fd10253af2f1a5d26e9a9b106d523ecd35c",class:{"duet-tab-group-content":!0,"duet-m-0":"none"===this.margin,"checked-group-content":"checked"===this.variation}},e("slot",{key:"ed8a0ab42bda63cd27ce2311281d5f4a16db2e40"})))}get element(){return o(this)}};S.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(222, 224, 228)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-top:0;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper{}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper{position:relative;width:100%;overflow:hidden;border-radius:8px;}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay{display:contents}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background,.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .border{position:absolute;width:100%;height:100%;pointer-events:none;border-radius:8px}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background{z-index:100;background:rgb(245, 248, 250)}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background::after{position:absolute;top:0;left:0;width:100%;height:100%;margin-block:1px;content:"";border-radius:8px;box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-theme-turva .duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background::after{box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .border{z-index:206;border:1px solid rgb(212, 223, 229)}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:inline-block;width:auto;padding:20px;margin-left:-2px;overflow:visible;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.1;text-align:left;text-decoration:none;cursor:pointer;border-right:2px solid rgb(212, 223, 229);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-tab-group-stretch .duet-tab-button{flex:1 1 0;min-width:fit-content;text-align:center}.duet-tab-button duet-indicator{position:absolute;top:5px;right:5px}.duet-tab-variation-plain .duet-tab-button duet-indicator{top:calc(50% - 0.5rem - 7px);right:-7px}.duet-theme-turva .duet-tab-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button:hover{z-index:200;border-color:rgb(127, 150, 165)}.duet-theme-turva .duet-tab-button:hover{border-color:rgba(199, 202, 207, 0.8)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(0, 119, 179);outline:0;background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179);box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(198, 12, 48);border-color:rgb(222, 224, 228);border-bottom-color:rgb(198, 12, 48)}.duet-tab-button:focus{z-index:205;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{outline:2px solid;outline-offset:0;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-tab-button:focus,:host(.user-is-tabbing) .duet-tab-button:focus.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-tab-button:focus,:host(.user-is-tabbing) .duet-tab-button:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-tab-variation-default .duet-tab-button{z-index:200;padding:11px 20px 13px 20px;overflow:hidden;font-size:0.875rem;color:rgb(62, 84, 102);background:rgb(245, 248, 250);border:1px solid rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button.switch-large-at-always{padding:15px 28px 17px 28px;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-default .duet-tab-button.switch-large-at-small{padding:15px 28px 17px 28px;font-size:1rem}}.duet-tab-variation-default .duet-tab-button.selected{color:rgb(8, 42, 77);background:rgb(255, 255, 255);transition:none}.duet-tab-variation-default .duet-tab-button.selected::before{position:absolute;right:-1px;bottom:0;z-index:300;display:block;width:calc(100% + 2px);height:2px;content:"";background-color:rgb(0, 119, 179)}.duet-tab-variation-default .duet-tab-button.selected:focus-visible{outline:2px solid;outline-offset:-5px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-tab-variation-default .duet-tab-button.selected:focus-visible,.duet-tab-variation-default .duet-tab-button.selected:focus-visible.duet-theme-turva,.duet-theme-turva2 .duet-tab-variation-default .duet-tab-button.selected:focus-visible,.duet-tab-variation-default .duet-tab-button.selected:focus-visible.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-tab-variation-default .duet-tab-button.selected:focus-visible::before{height:0}.duet-tab-variation-default .duet-tab-button:not(.selected){box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button:hover:not(.selected){color:rgb(30, 45, 59);background:rgb(228, 236, 239)}.duet-tab-variation-default .duet-tab-button:first-child{border-radius:8px 0 0 8px}.duet-tab-variation-default .duet-tab-button:last-child{border-radius:0 8px 8px 0}.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button{z-index:200}.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button:last-child{border-radius:0}.duet-theme-turva.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button::before{height:3px}.duet-theme-turva.duet-tab-variation-default .duet-tab-button{color:rgb(71, 78, 101)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected{color:rgb(23, 28, 58);background:rgb(255, 255, 255)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected::before{background-color:rgb(198, 12, 48)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:not(.selected){z-index:200;box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:hover:not(.selected){z-index:200;color:rgb(45, 52, 79);background:rgb(234, 235, 239)}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding:12px 0;margin-left:0;font-size:0.875rem;color:rgb(81, 105, 123);border-width:0;border-bottom:2px solid transparent;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button.switch-large-at-always{padding:20px 0;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-plain .duet-tab-button.switch-large-at-small{padding:20px 0;font-size:1rem}}.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(8, 42, 77);border-bottom:2px solid rgb(0, 119, 179)}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(8, 42, 77);border-bottom:2px solid rgb(0, 119, 179)}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button{color:rgb(71, 78, 101)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(45, 52, 79);border-bottom:2px solid rgb(198, 12, 48)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(23, 28, 58);border-bottom:2px solid rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-grow:1;flex-basis:0;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(181, 198, 208);border-top:2px solid rgb(181, 198, 208);border-bottom-color:rgb(0, 119, 179);border-left:2px solid rgb(181, 198, 208);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(181, 198, 208);border-bottom-color:rgb(113, 118, 132)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(240, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(113, 118, 132);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(98, 121, 138)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left}.duet-tab-group-content:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-tab-group-content:focus,.duet-tab-group-content:focus.duet-theme-turva,.duet-theme-turva2 .duet-tab-group-content:focus,.duet-tab-group-content:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(113, 118, 132)}:host(.duet-theme-turva2) .duet-theme-turva .duet-tab-group-tabs.duet-tab-variation-plain{border-bottom-color:rgb(251, 225, 209)}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-plain .duet-tab-button:hover{border-bottom:2px solid rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{border-bottom:2px solid rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva .duet-tab-button{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-tab-button.selected{color:rgb(23, 42, 59);border-color:rgb(212, 221, 226);border-bottom-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected::before{background-color:rgb(230, 23, 64)}';export{y as duet_scrollable,z as duet_tab,S as duet_tab_group}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{r as t,c as e,h as i,H as a,g as o}from"./p-BhYt_2Vd.js";import{i as r}from"./p-1U75pxcR.js";import{D as d}from"./p-CxgSYSyh.js";import{c as n}from"./p-Cfr_DJqU.js";import{s,u as l}from"./p-Db8rvjPI.js";import{p as u}from"./p-DJzDRf9m.js";const h=class{constructor(i){t(this,i),this.duetChange=e(this,"duetChange",3),this.toggleId=n("DuetToggle"),this.proxyId=n("DuetToggle"),this.theme="",this.margin="auto",this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.label="label",this.labelHidden=!1,this.labelPosition="top",this.required=!1,this.disabled=!1,this.checked=!1,this.onClick=t=>{t.preventDefault(),this.setFocus(),this.checked=!this.checked}}checkedChanged(t){this.duetChange.emit({checked:t,value:this.value,component:"duet-toggle"})}componentWillLoad(){r(this),void 0===this.value&&(this.value=this.identifier)}connectedCallback(){s(this)}disconnectedCallback(){l(this)}componentDidRender(){u(this.element,this.proxyId,this.name,this.value,this.required,this.checked)}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.toggleId;return i(a,{key:"5946ee783a8f51ba38e184fd382e570706bb4abf",onClick:this.disabled?void 0:this.onClick,class:{"duet-m-0":"none"===this.margin}},i("div",{key:"36018f42f2af48de650eb6bf67fe521fa5e496d1",class:{"duet-toggle":!0,"duet-theme-turva":"turva"===this.theme,"duet-side-label":"top"!==this.labelPosition,"duet-reverse-label":"right"===this.labelPosition,"duet-label-hidden":this.labelHidden}},i(d,{key:"145e23905cef93b9c6855962e957545cf839c33f",theme:this.theme,color:this.labelColor,weight:this.labelWeight,for:t,margin:"top"===this.labelPosition?"auto":"none"},this.label),i("label",{key:"a69515fc5b92895d9a128696f9208c3b4233b258",class:"duet-switch"},i("input",{key:"3b46c6969fd1018a05684d4cbbbc24421154b08d",type:"checkbox",value:this.value,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,id:t,role:this.role,name:this.name,checked:this.checked,required:this.required,disabled:this.disabled,ref:t=>this.nativeInput=t}),i("div",{key:"c658e6fdfe43b4c1f6e18ca9da3ea0411357ac30",class:"duet-slider"}))))}get element(){return o(this)}static get watchers(){return{checked:["checkedChanged"]}}};h.style='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:8px !important;margin-bottom:12px !important;-webkit-user-select:none;user-select:none;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-m-0){margin:0 !important}duet-label{display:block !important;width:100% !important}.duet-side-label{display:flex;gap:12px;align-items:center}.duet-side-label duet-label{width:auto !important}.duet-reverse-label{flex-direction:row-reverse}.duet-switch{position:relative;display:block;width:48px;height:28px}.duet-switch input{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important}.duet-switch input:checked+.duet-slider{background-color:rgb(0, 119, 179);box-shadow:none}.duet-theme-turva .duet-switch input:checked+.duet-slider{background-color:rgb(198, 12, 48)}.duet-switch input:checked+.duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #004467;transform:translateX(20px)}.duet-theme-turva .duet-switch input:checked+.duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #660619}.duet-switch input:disabled+.duet-slider{cursor:default}.duet-switch input:disabled+.duet-slider::before{box-shadow:none}.duet-theme-turva .duet-switch input:disabled+.duet-slider::before{box-shadow:none}.duet-switch input:disabled:not(:checked)+.duet-slider{background:#bfcbd2}.duet-switch input:disabled:not(:checked)+.duet-slider::before{background:rgb(255, 255, 255);box-shadow:none}.duet-theme-turva .duet-switch input:disabled:not(:checked)+.duet-slider{background:#c7c9cf}.duet-theme-turva .duet-switch input:disabled:not(:checked)+.duet-slider::before{background:rgb(255, 255, 255)}.duet-switch input:disabled:checked+.duet-slider{background:#80bbd9}.duet-theme-turva .duet-switch input:disabled:checked+.duet-slider{background:#e38698}:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-switch input:focus+.duet-slider,:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-switch input:focus+.duet-slider,:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-slider{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:rgb(127, 150, 165);border-radius:24px;transition:background-color 300ms ease}.duet-slider::before{position:absolute;bottom:2px;left:2px;width:24px;height:24px;content:"";background-color:rgb(255, 255, 255);border-radius:50%;box-shadow:1px 0 2px 0 #5d6266;transition:300ms ease}.duet-theme-turva .duet-slider{background-color:rgb(143, 147, 158)}.duet-theme-turva .duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:1px 0 2px 0 #00334d}.duet-label-hidden .duet-internal-label{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important}:host(.duet-theme-turva2) .duet-switch input:checked+.duet-slider{background-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-switch input:checked+.duet-slider::before{box-shadow:-1px 0 2px #890e26;transform:translateX(20px)}:host(.duet-theme-turva2) .duet-switch input:disabled:checked+.duet-slider{background:#f38ba0}';export{h as duet_toggle}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{r as a,c as e,h as d,F as t,H as i,g as r}from"./p-BhYt_2Vd.js";import{g as o}from"./p-DvwKrUS6.js";import{i as n}from"./p-1U75pxcR.js";import{c as p}from"./p-Cfr_DJqU.js";import{i as m,s,u as c}from"./p-Db8rvjPI.js";import{a as u}from"./p-DJzDRf9m.js";import{s as l}from"./p-C6E9F6QT.js";import{g as x}from"./p-Bg75Vqqq.js";import"./p-BDAqOMlM.js";const h=["h1","h2","h3","h4","h5","h6"],g="div";var b,f,w=o(f?b:(f=1,b={title:"action-arrow-up",tags:"action arrow up caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 17.939a.752.752 0 0 1-.53-1.281L10.94 5.94c.283-.284.659-.44 1.059-.44.401 0 .777.156 1.06.438l10.721 10.72a.752.752 0 0 1-.53 1.281.743.743 0 0 1-.53-.22L12 7 1.28 17.719a.743.743 0 0 1-.53.22z"/></svg>'}));const v=class{constructor(d){a(this,d),this.duetToggle=e(this,"duetToggle",7),this.cardId=p("DuetCard"),this.heading="",this.secondaryHeading="",this.variation="default",this.collapsible=!1,this.open=!0,this.headingLevel="h2",this.iconColor="currentColor",this.background="gray-lightest",this.padding="small",this.margin="auto",this.theme="",this.shadowBreakpoint=void 0,this.togglePanel=a=>{a.preventDefault(),this.open=!this.open,this.duetToggle.emit({component:"duet-card",originalEvent:a})},this.handleKeyDown=a=>{m(a)&&this.togglePanel(a)}}componentWillLoad(){n(this),this.hasHeadingSlot=!!this.element.querySelector(":scope > [slot='heading']"),this.hasFooter=!!this.element.querySelector("[slot='footer']")}connectedCallback(){s(this)}disconnectedCallback(){c(this)}renderHeading(){var a;const e=l(this.headingLevel),i=[...h,g].some((a=>a===e))?e:"h2",r={backgroundColor:x(this.headingBackground)},o=d(t,null,d("div",{class:"duet-card-heading-grid"},this.icon&&d(t,null,d("duet-icon",{class:"duet-card-icon",name:this.icon,size:"medium",margin:"none",color:this.iconColor}),d("duet-spacer",{direction:"horizontal",size:"small"})),d("div",{class:"duet-card-heading-text"},this.heading?this.heading:d("slot",{name:"heading"})),this.secondaryHeading&&d(t,null,d("duet-spacer",{direction:"horizontal",size:"small"}),d("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--inline"},this.secondaryHeading)),this.collapsible&&d(t,null,d("duet-spacer",{direction:"horizontal",size:"small"}),d("duet-icon",{class:"duet-card-caret",icon:w.svg,size:"small",margin:"none",color:"currentColor"}))),this.secondaryHeading&&d("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--new-line"},this.secondaryHeading),d("slot",{name:"below-heading"}));if(this.collapsible){const e=null===(a=u(this.element,"heading"))||void 0===a?void 0:a.map((a=>a.textContent)).join(" ");return d(i,{style:r,class:"duet-card-heading duet-card-heading--collapsible",onClick:this.togglePanel,onKeyDown:this.handleKeyDown},d("button",{type:"button",class:{"duet-theme-turva":"turva"===this.theme},"aria-controls":this.cardId,"aria-expanded":this.open?"true":"false","aria-label":e},o))}return d(i,{style:r,class:"duet-card-heading"},o)}async setFocus(a){this.nativeCard&&this.nativeCard.focus(a)}render(){const a=this.url?"a":"div",e={backgroundColor:x(this.background)};return d(i,{key:"d92cd6fb922f1165e1d341221ac3f5433252606c",class:{"duet-m-0":"none"===this.margin,"duet-card-info":"info"===this.variation}},d(a,{key:"7f870fc5061cd48c3464bd19ecd780fbb33f3e78",href:this.url,style:e,ref:a=>this.nativeCard=a,"aria-label":this.accessibleLabel,class:{"duet-card":!0,[this.padding]:!0,[this.variation]:!0,[`shadow-${this.shadowBreakpoint}`]:!!this.shadowBreakpoint,"duet-p-0":"none"===this.padding,"duet-theme-turva":"turva"===this.theme,"duet-card-has-bg":"gray-lightest"!==this.background,"duet-card-has-icon":!!this.icon,"duet-card-collapsed":this.collapsible&&!this.open}},this.image&&d("div",{key:"fd6822d5747d2882842c9c2392b28d8b7a2693f2",class:"duet-card-image-mask"},d("img",{key:"a1952cf1f82a4f8593130d9990ef27a2a982e5d8",src:this.image,class:"duet-card-image",loading:"lazy",alt:this.imageAlt||"",role:this.imageAlt?null:"presentation"})),(this.heading||this.hasHeadingSlot)&&this.renderHeading(),d("div",{key:"a11237f14582fad87aaab15e4dccad5c6ffd7b0b",class:"duet-card-content",id:this.cardId},d("slot",{key:"80d250aa9dbb0f39a7683c6d2a1e1cdaca75cdd8"}),this.hasFooter&&d("div",{key:"87b27d7c69e3d5f3ab7bdb75cc76a1a11900ef0f",class:"duet-card-footer"},d("slot",{key:"1212e0d9a33349cf68c7b667069077e02ee30197",name:"footer"})))))}get element(){return r(this)}};v.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}:host{--duet-card-border-radius:12px}@media (min-width: 36em){:host{--duet-card-border-radius:16px}}.duet-card{padding:20px !important;position:relative;display:flex;flex-direction:column;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-decoration:none;border-radius:var(--duet-card-border-radius);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva,.duet-theme-turva2 .duet-card:focus,.duet-card:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}@media (max-width: 20.5em){.duet-card.shadow-xxx-small{box-shadow:none}}@media (max-width: 22.5em){.duet-card.shadow-xx-small{box-shadow:none}}@media (max-width: 35.9375em){.duet-card.shadow-x-small{box-shadow:none}}@media (min-width: 36em){.duet-card.shadow-small{box-shadow:none}}@media (min-width: 48em){.duet-card.shadow-medium{box-shadow:none}}@media (min-width: 62em){.duet-card.shadow-large{box-shadow:none}}@media (min-width: 64.0625em){.duet-card.shadow-x-large{box-shadow:none}}@media (min-width: 76.25em){.duet-card.shadow-xx-large{box-shadow:none}}@media (min-width: 106.25em){.duet-card.shadow-xxx-large{box-shadow:none}}@media (min-width: 36em){.duet-card{padding:28px !important}}.duet-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}@media (min-width: 36em){.duet-card.xx-small{padding:12px !important}}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(4, 81, 128, 0.04) !important;box-shadow:none}.duet-card.info.duet-theme-turva{background:rgba(23, 28, 58, 0.035) !important}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:800;color:rgb(8, 42, 77);border-bottom:1px solid rgb(212, 223, 229);border-radius:var(--duet-card-border-radius) var(--duet-card-border-radius) 0 0}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}.none .duet-card-heading{padding:0 !important;margin:0}}.duet-card-collapsed .duet-card-heading{border-radius:var(--duet-card-border-radius)}.duet-card-image-mask+.duet-card-heading{border-radius:0}.duet-card-heading.duet-card-heading--collapsible{cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button{width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus,:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus,:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{border-radius:var(--duet-card-border-radius)}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}.duet-theme-turva .duet-card-heading{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(222, 224, 228)}@media (min-width: 36em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 48em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0;margin:0}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:rgb(245, 248, 250);border-bottom-right-radius:4px;border-bottom-left-radius:4px}.duet-theme-turva .duet-card-footer{background:rgb(245, 247, 250)}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.xx-small .duet-card-footer{padding:10px 20px 11px !important;padding-left:12px !important;margin:12px -12px -12px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:0;margin:0}.duet-card-content{flex:1 1 auto;width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;padding:0;margin:0}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transform:scale(1.0001);transition:transform 300ms ease}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transform:translateY(1px);transition:none}:host(.duet-theme-turva2) .duet-card.duet-theme-turva{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-card.duet-theme-turva.info{background:rgb(253, 247, 242) !important}:host(.duet-theme-turva2) .duet-card.duet-theme-turva .duet-card-heading{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-card.duet-theme-turva .duet-card-footer{background:rgb(245, 246, 247)}';export{v as duet_card}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as t,H as r}from"./p-
|
|
4
|
+
import{r as e,h as t,H as r}from"./p-BhYt_2Vd.js";import{i as a}from"./p-1U75pxcR.js";const c=class{constructor(t){e(this,t),this.theme="",this.checked=!1,this.presentationOnly=!1,this.center=!1,this.type="checkbox"}componentWillLoad(){a(this)}render(){return t(r,{key:"9f320db3e8549d7d12de134f013789c1f412b947",class:{"duet-theme-turva":"turva"===this.theme}},t("div",{key:"a8fe605a230fd34d9714bd5194c281b87394bd24",role:this.presentationOnly?"presentation":null,class:{checked:this.checked}},t("div",{key:"91fabdc145a023efc8317ef543296d4e5e2509d9",class:{"duet-checkmark-container":!0,center:this.center,"duet-checkmark-radio":"radio"===this.type}},this.checked&&t("div",{key:"9a418c3b3cd7c451f52003eb5efe16e90a4d5841",class:"duet-checkmark"}))))}};c.style=".duet-checkmark-container{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 300ms ease}.duet-checkmark-container.center{margin-right:auto}.duet-theme-turva .duet-checkmark-container{border-color:rgb(143, 147, 158)}.checked .duet-checkmark-container{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva .checked .duet-checkmark-container{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio{border-radius:50%}[disabled]+label .duet-checkmark-container{border-color:rgb(181, 198, 208) !important}.duet-theme-turva [disabled]+label .duet-checkmark-container{border-color:rgb(199, 202, 207) !important}.checked [disabled]+label .duet-checkmark-container{background:rgb(181, 198, 208) !important}.duet-theme-turva .checked [disabled]+label .duet-checkmark-container{background:rgb(199, 202, 207) !important}.duet-checkmark{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}:host(.duet-theme-turva2.duet-theme-turva) .checked .duet-checkmark-container{background:rgb(23, 42, 59);border-color:rgb(23, 42, 59) !important}";export{c as duet_checkmark}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{r as t,c as e,h as i,H as o,g as a}from"./p-BhYt_2Vd.js";import{i as s}from"./p-1U75pxcR.js";import{c as r}from"./p-Cfr_DJqU.js";import{a as d,h,c as n}from"./p-DJzDRf9m.js";import{f as l,w as b}from"./p-BmMFVM-y.js";const u=class{constructor(i){t(this,i),this.duetChange=e(this,"duetChange",7),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.focus=!1,this.radioId=r("DuetRadio"),this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.margin="auto",this.theme="",this.disabled=!1,this.required=!1,this.blockEvents=!1,this.label="label",this.radioInputListenersRemove=t=>{t.removeEventListener("change",this.onChange),t.removeEventListener("focus",this.onFocus),t.removeEventListener("blur",this.onBlur)},this.radioInputListenersAdd=t=>{t.addEventListener("change",this.onChange),t.addEventListener("focus",this.onFocus),t.addEventListener("blur",this.onBlur)},this.radioInputSetUp=()=>{const t=this.element.querySelector("input"),e=t||document.createElement("input");if(e.slot="input",e.disabled=!(!this.disabled&&!this.groupDisabled)||void 0,e.id=this.identifier||this.radioId,e.type="radio",e.name=this.name,e.value=this.value,e.checked=this.checked,this.accessibleIndex&&(e.tabIndex=Number(this.accessibleIndex)),e.required=this.required,e.role=this.role,this.accessibleControls&&e.setAttribute("aria-controls",this.accessibleControls),this.accessibleActiveDescendant&&e.setAttribute("aria-activedescendant",this.accessibleActiveDescendant),this.accessibleOwns&&e.setAttribute("aria-owns",this.accessibleOwns),this.accessibleDescribedBy&&e.setAttribute("aria-describedby",this.accessibleDescribedBy),this.accessibleLabelledBy&&e.setAttribute("aria-labelledby",this.accessibleLabelledBy),this.accessibleDetails&&e.setAttribute("aria-details",this.accessibleDetails),this.accessibleDescription&&e.setAttribute("aria-description",this.accessibleDescription),this.hasLabel){const t=d(this.element,"label");e.ariaLabel=t.length>0?t[0].textContent:this.labelElement.textContent}else e.ariaLabel=this.labelElement.textContent;t?this.radioInputListenersRemove(e):this.element.appendChild(e),this.radioInputListenersAdd(e),this.focusableElement=e},this.onClick=t=>{t.stopPropagation()},this.onChange=t=>{this.checked=this.focusableElement.checked,this.checked&&!this.blockEvents&&this.duetChange.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.onBlur=t=>{this.focus=!1,this.duetBlur.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.onFocus=t=>{this.focus=!0,this.duetFocus.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})}}componentWillLoad(){s(this),this.hasLabel=h(this.element,"label"),void 0===this.value&&(this.value=this.identifier)}componentDidRender(){this.radioInputSetUp()}async setFocus(t){this.focusableElement.focus(t)}render(){return i(o,{key:"5b1a38835b8478e9e31e2893f654d4a7da0de880",onClick:this.onClick,class:{horizontal:"horizontal"===this.groupDirection&&!this.groupResponsive,"horizontal-responsive":"horizontal"===this.groupDirection&&this.groupResponsive,"duet-m-0":"none"===this.margin}},i("div",{key:"7397b43b1104dbdc870ec0ad65793bd372062eaf",class:{"duet-radio-container":!0,"duet-theme-turva":"turva"===this.theme}},i("slot",{key:"8daf569056a859f5362236e546a61e958ba4bcaf",name:"input"}),i("label",{key:"3acd012b17207cf38a15085d2cc868b3e4cc8c1c",inert:!0,ref:t=>this.labelElement=t,class:{"duet-label":!0,checked:this.checked,focus:this.focus,disabled:this.disabled||this.groupDisabled}},i("div",{key:"5fb433fd2fe57f3e560fdefcabff68999301596a",class:"duet-label-content"},this.hasLabel?i("slot",{name:"label"}):this.label))))}get element(){return a(this)}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:28px !important}:host(.vertical){margin-right:0 !important}:host(.horizontal){margin-bottom:0 !important;width:auto}:host(.horizontal) .duet-label .duet-label-content{max-width:100%}@media (min-width: 48em){:host(.horizontal-responsive){margin-right:28px !important;margin-bottom:0 !important;width:auto}:host(.horizontal-responsive):last-child,:host(.horizontal-responsive):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.horizontal-responsive):last-of-type:not(:last-child){margin-right:28px !important}:host(.horizontal-responsive) .duet-label .duet-label-content{max-width:100%}}:host(.duet-m-0){margin:0 !important}:host(:last-child:not(:only-child)){margin-right:0 !important;margin-bottom:0 !important}.duet-label{position:relative;z-index:100;display:flex;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);hyphens:auto;word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva .duet-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-label .duet-label-content{flex-grow:1;font-size:1rem}.duet-label-hidden .duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-radio-container{position:relative;width:100%;height:100%}.duet-label::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:50%}.duet-theme-turva .duet-label::before{border-color:rgb(23, 28, 58)}.duet-label.focus::before{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-label.focus::before,.duet-label.focus::before.duet-theme-turva,.duet-theme-turva2 .duet-label.focus::before,.duet-label.focus::before.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-label.focus::before{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-label.checked::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-label.checked::after{background:rgb(23, 28, 58)}.duet-label.disabled{color:rgb(98, 121, 138)}.duet-theme-turva .duet-label.disabled{color:rgb(143, 147, 158)}.duet-label.disabled::before{border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-label.disabled::before{border-color:rgb(143, 147, 158)}.duet-label.disabled.checked::before{border:1px solid rgb(127, 150, 165)}.duet-label.disabled.checked::after{background:rgb(127, 150, 165)}.duet-theme-turva .duet-label.disabled.checked::after{background:rgb(143, 147, 158);border-color:rgb(143, 147, 158)}*::slotted([slot=input]){padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}*::slotted([slot=input][disabled]){cursor:default}:host(.duet-theme-turva2) .duet-theme-turva .duet-label{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-radio+label::before{border-color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-radio:checked+label::after{background:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-radio[disabled]+label{color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-radio[disabled]+label::before{border-color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-radio[disabled]:checked+label::after{background:rgb(120, 145, 164);border-color:rgb(120, 145, 164)}';const c=class{constructor(e){t(this,e),this.direction="vertical",this.margin="auto",this.theme="",this.error="",this.tooltip="",this.tooltipDirection="auto",this.label="Label",this.labelHidden=!1,this.caption="",this.responsive=!1,this.required=!1,this.accessibleLiveError="polite",this.onSelect=t=>{const e=t.target;e&&(this.value=e.value),t.cancelBubble=!0}}removeDisabledAttributeWhenFalse(){this.disabled||this.element.removeAttribute("disabled")}async connectedCallback(){const t=this.element;if(void 0===this.value){const e=l(t,"duet-radio");void 0!==e&&(await e.componentOnReady(),void 0===this.value&&(this.value=e.value))}this.mutationO=b(t,"duet-radio",(t=>{void 0!==t?t.componentOnReady().then((()=>{this.value=t.value})):this.updateRadios()})),this.updateRadios()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentWillLoad(){s(this),this.removeDisabledAttributeWhenFalse(),n(this.element,"tooltip","duet-tooltip",1,!0)}async updateRadios(){const t=Array.from(this.element.querySelectorAll("duet-radio")),{value:e}=this;let i=!1;for(const o of t)o.name=this.name,o.required=this.required,o.groupDisabled=this.disabled,o.groupDirection=this.direction,o.groupResponsive=this.responsive,i||o.value!==e?o.checked=!1:(i=!0,o.checked=!0);i||(this.value=void 0)}render(){return i(o,{key:"c9c42e3d578a64ec328ad0b1aad6e9c3906dcc2b",onDuetChange:this.onSelect,class:{horizontal:"horizontal"===this.direction}},i("duet-fieldset",{key:"6a38b0a95734aea6320ec9bb63cebc7a11279990",label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme,"accessible-live-error":this.accessibleLiveError},this.tooltip&&i("duet-tooltip",{key:"3f9d7aa7e79c08a743cd575d5a22542e3f89b26f",slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),i("slot",{key:"2a3125a48b3ebd4bc37cf127719ca0be1604e911",name:"tooltip"}),i("div",{key:"c81542f71fe22646f761dab6fb2864c7fa269f48",class:{"duet-radio-group":!0,"duet-no-stacking":!this.responsive}},i("slot",{key:"5ff585a7895db4ad56916a1a7bc06bdc6915dc0e"}))))}get element(){return a(this)}static get watchers(){return{disabled:["removeDisabledAttributeWhenFalse","updateRadios"],name:["updateRadios"],value:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}}};c.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:block;width:100%}:host(.horizontal) .duet-radio-group{display:block}@media (min-width: 48em){:host(.horizontal) .duet-radio-group{display:flex}}:host(.horizontal) .duet-radio-group.duet-no-stacking{display:flex}.deut-radio-group{width:100%}";export{u as duet_radio,c as duet_radio_group}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{r as e,h as t,H as o,g as n}from"./p-BhYt_2Vd.js";import{a as r}from"./p-DOuLHrH5.js";import{i as a}from"./p-1U75pxcR.js";import{a as u}from"./p-Db8rvjPI.js";const d=class{constructor(t){e(this,t),this.mql=[window.matchMedia(r.replace(/'/g,""))],this.boundMqlFunctions=[],this.isDesktop=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.checkIsDesktop=()=>{this.isDesktop=!!this.mql[0].matches},this.onClick=()=>{const e=this.open;if(!this.isDesktop){const e=Array.from(this.element.parentElement.querySelectorAll("duet-submenu-bar-dropdown"));for(const t of e)t.open=!1}this.open=!e}}handleFocus(e){e.composedPath().every((e=>e!==this.element))&&this.isDesktop&&(this.open=!1)}componentWillLoad(){a(this)}connectedCallback(){this.checkIsDesktop();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.checkIsDesktop.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}handleEscape(e){if(u(e))if(this.open)this.open=!1;else{const e=this.element.closest("duet-submenu-bar");e.open=!1,e.setFocus()}}async setFocus(e){this.button.focus(e)}render(){return t(o,{key:"b08d71c303bbbb5dc488ccb9df3a6606cbcee45f",role:"listitem"},t("div",{key:"f27808ba704701f0857e90d8c4474f11f2bd284d",class:{"duet-submenu-bar-dropdown":!0,"duet-theme-turva":"turva"===this.theme,open:this.open,active:this.active}},t("button",{key:"da50cea3b3daea0da483dc01649345a9fcc27d55",ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{open:this.open,active:this.active},onClick:this.onClick,onKeyUp:e=>this.handleEscape(e)},this.icon&&t("duet-icon",{key:"41562541f2cf4bbe9e8d6ccb3214b8fc5b44079f",class:"submenu-bar-dropdown-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),t("div",{key:"8b2782607b3478bc491ce2fa423257d4233968fa",class:"label"},t("span",{key:"5b22aff9852f284416e15d60b1a262e963ff228e",class:"label-text"},t("slot",{key:"aec50191a12adf0fbd6f9e388c2dc09954d21f83",name:"label"})),t("duet-icon",{key:"154795bda221d38ca73b47a86c97da4c6e4d573b",class:"caret",theme:this.theme,name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),t("div",{key:"574669c2280fa1e7e4d14666f95fbe912a068119",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0,hidden:!this.open}},t("slot",{key:"9a69e63aae77e184049ed7d8f7f511d47eca642e"}))))}get element(){return n(this)}};d.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-dropdown{position:relative;height:100%}.duet-submenu-bar-dropdown button{position:relative;display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}.duet-submenu-bar-dropdown button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-submenu-bar-dropdown button:focus,.duet-submenu-bar-dropdown button:focus.duet-theme-turva,.duet-theme-turva2 .duet-submenu-bar-dropdown button:focus,.duet-submenu-bar-dropdown button:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}@media (min-width: 62em){.duet-submenu-bar-dropdown button{flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;font-size:0.875rem;color:rgb(0, 75, 129)}}.duet-submenu-bar-dropdown button .label{display:flex;gap:5px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar-dropdown button.open{background:rgb(228, 241, 247)}}.duet-submenu-bar-dropdown button.open .caret{transform:rotate(180deg)}.duet-submenu-bar-dropdown button.active .label-text{position:relative}.duet-submenu-bar-dropdown button.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-dropdown button.active .label-text::after{display:none}}@media (min-width: 62em){.duet-submenu-bar-dropdown button .caret{position:absolute;right:12px}.duet-submenu-bar-dropdown button:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-dropdown button:hover.active{color:rgb(8, 42, 77)}.duet-theme-turva .duet-submenu-bar-dropdown button:hover.active{color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-submenu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-submenu-bar-dropdown button.active::after,.duet-submenu-bar-dropdown button.open::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:translateY(1px);transition:300ms ease}.duet-theme-turva .duet-submenu-bar-dropdown button.active::after,.duet-theme-turva .duet-submenu-bar-dropdown button.open::after{background:rgb(198, 12, 48)}}.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:16px;height:16px}}.duet-submenu-bar-dropdown .items{display:flex;visibility:visible;flex-direction:column;align-items:center;justify-content:center;max-height:1000px;padding:4px 0 16px;overflow-y:auto;color:rgb(8, 42, 77);scrollbar-width:none;transition:max-height 0.3s ease-in, padding 0.3s ease-in;-ms-overflow-style:none}.duet-submenu-bar-dropdown .items::-webkit-scrollbar{display:none}@media (min-width: 62em){.duet-submenu-bar-dropdown .items{position:absolute;top:93%;z-index:600;min-width:320px;padding:8px;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);transition:none}}.duet-submenu-bar-dropdown .items.hidden{visibility:hidden;max-height:0;padding:0;overflow:hidden;transition:max-height 0.3s ease-in, padding 0.3s ease-in}.duet-submenu-bar-dropdown.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button:hover{background:rgb(222, 224, 228)}}.duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.active,.duet-submenu-bar-dropdown.duet-theme-turva button.open{color:rgb(126, 2, 35)}}.duet-submenu-bar-dropdown.duet-theme-turva button.active::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open::after{background:rgb(126, 2, 35)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.open{background:rgb(222, 224, 228)}}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}}:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva button{color:rgb(23, 42, 59)}@media (min-width: 62em){:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva button:hover{background:rgb(251, 225, 209)}}:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after,:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after{background:rgb(230, 23, 64)}@media (min-width: 62em){:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva button.active,:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva button.open{color:rgb(140, 0, 30)}:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva button.active::after,:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva button.open::after{background:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva button.open{background:rgb(251, 225, 209)}}@media (min-width: 62em){:host(.duet-theme-turva2) .duet-submenu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}}';export{d as duet_submenu_bar_dropdown}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
const r="rgb(178, 180, 179)",o="rgb(181, 198, 208)",a="rgb(143, 147, 158)",e="rgb(98, 121, 138)",g="rgb(113, 118, 132)",l="rgb(212, 223, 229)",c="rgb(222, 224, 228)",b="rgb(255, 255, 255)",u="rgb(199, 202, 207)",i="rgb(0, 119, 179)",t="rgb(198, 12, 48)",s="rgb(8, 42, 77)",n="rgb(23, 28, 58)",d="'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",y="'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",p="1rem",x="600",m="1.25",v="'(min-width: 62em)'",T="'(min-width: 48em)'",S="'(min-width: 36em)'",L="'(min-width: 64.0625em)'",h="'(max-width: 35.9375em)'",G="'(min-width: 76.25em)'",D="'(max-width: 22.5em)'",B="'(min-width: 106.25em)'",z="'(max-width: 20.5em)'",I="4rem",k="3rem",w="20px",R="16px",X="12px",f="8px",W="4px";var C=Object.freeze({__proto__:null,colorBackgroundAccentPrimary:"rgb(240, 247, 250)",colorBackgroundAccentPrimaryTurva:"rgb(253, 247, 242)",colorBackgroundAccentSecondary:"rgb(228, 241, 247)",colorBackgroundAccentSecondaryTurva:"rgb(251, 235, 225)",colorBackgroundAccentTertiary:"rgb(0, 119, 179)",colorBackgroundAccentTertiaryTurva:"rgb(230, 23, 64)",colorBackgroundPrimary:"rgb(255, 255, 255)",colorBackgroundPrimaryTurva:"rgb(255, 255, 255)",colorBackgroundSecondary:"rgb(245, 248, 250)",colorBackgroundSecondaryTurva:"rgb(245, 246, 247)",colorBackgroundTertiary:"rgb(8, 42, 77)",colorBackgroundTertiaryTurva:"rgb(23, 42, 59)",colorBrandBlue:"rgb(0, 161, 212)",colorBrandGrayTurva:r,colorCategoryFamily:"rgb(11, 114, 136)",colorCategoryFamilyTurva:"rgb(199, 12, 112)",colorCategoryFinance:"rgb(122, 1, 196)",colorCategoryHome:"rgb(211, 36, 131)",colorCategoryHomeTurva:"rgb(161, 10, 78)",colorCategoryPet:"rgb(168, 1, 78)",colorCategoryTravel:"rgb(213, 66, 3)",colorCategoryTravelTurva:"rgb(9, 129, 148)",colorCategoryUnionTurva:"rgb(169, 69, 124)",colorCategoryVehicle:"rgb(54, 74, 129)",colorCategoryVehicleTurva:"rgb(23, 28, 58)",colorDanger:"rgb(214, 28, 82)",colorDanger00:"rgb(255, 240, 243)",colorDanger100:"rgb(255, 211, 219)",colorDanger1000:"rgb(89, 0, 45)",colorDanger200:"rgb(255, 173, 190)",colorDanger300:"rgb(252, 136, 162)",colorDanger400:"rgb(243, 98, 134)",colorDanger50:"rgb(255, 225, 231)",colorDanger500:"rgb(231, 62, 107)",colorDanger600:"rgb(214, 28, 82)",colorDanger700:"rgb(185, 16, 74)",colorDanger800:"rgb(153, 9, 66)",colorDanger900:"rgb(120, 4, 56)",colorDangerTurva:"rgb(214, 28, 82)",colorData01:"rgb(122, 1, 196)",colorData02:"rgb(0, 155, 204)",colorData03:"rgb(27, 171, 75)",colorData04:"rgb(255, 86, 34)",colorData05:"rgb(245, 76, 154)",colorData06:"rgb(194, 21, 101)",colorData07:"rgb(192, 101, 247)",colorData08:"rgb(0, 105, 191)",colorData09:"rgb(19, 120, 53)",colorData10:"rgb(179, 60, 24)",colorData11:"rgb(13, 163, 166)",colorData12:"rgb(11, 114, 136)",colorData13:"rgb(179, 137, 24)",colorData14:"rgb(128, 98, 17)",colorData15:"rgb(0, 41, 77)",colorGray:o,colorGrayDark:"rgb(127, 150, 165)",colorGrayDarkTurva:a,colorGrayDarker:e,colorGrayDarkerTurva:g,colorGrayLight:l,colorGrayLightTurva:c,colorGrayLighter:"rgb(245, 248, 250)",colorGrayLighterTurva:"rgb(245, 247, 250)",colorGrayLightest:b,colorGrayLightestTurva:"rgb(255, 255, 255)",colorGrayTurva:u,colorLtBlue00:"rgb(240, 247, 250)",colorLtBlue100:"rgb(217, 236, 245)",colorLtBlue1000:"rgb(8, 42, 77)",colorLtBlue200:"rgb(198, 225, 238)",colorLtBlue300:"rgb(172, 210, 229)",colorLtBlue400:"rgb(131, 188, 217)",colorLtBlue50:"rgb(228, 241, 247)",colorLtBlue500:"rgb(50, 153, 204)",colorLtBlue600:"rgb(0, 119, 179)",colorLtBlue700:"rgb(0, 97, 155)",colorLtBlue800:"rgb(0, 75, 129)",colorLtBlue900:"rgb(3, 56, 102)",colorLtGray00:"rgb(245, 248, 250)",colorLtGray100:"rgb(212, 223, 229)",colorLtGray1000:"rgb(17, 28, 38)",colorLtGray200:"rgb(181, 198, 208)",colorLtGray300:"rgb(153, 174, 186)",colorLtGray400:"rgb(127, 150, 165)",colorLtGray50:"rgb(228, 236, 239)",colorLtGray500:"rgb(98, 121, 138)",colorLtGray600:"rgb(81, 105, 123)",colorLtGray700:"rgb(62, 84, 102)",colorLtGray800:"rgb(45, 64, 81)",colorLtGray900:"rgb(30, 45, 59)",colorPrimary:i,colorPrimaryDark:"rgb(0, 75, 129)",colorPrimaryDarkTurva:"rgb(126, 2, 35)",colorPrimaryDarker:"rgb(0, 97, 155)",colorPrimaryDarkerTurva:"rgb(164, 4, 40)",colorPrimaryLight:"rgb(198, 225, 238)",colorPrimaryLightTurva:"rgb(255, 185, 190)",colorPrimaryLighter:"rgb(228, 241, 247)",colorPrimaryLighterTurva:"rgb(255, 227, 228)",colorPrimaryLightest:"rgb(240, 247, 250)",colorPrimaryLightestTurva:"rgb(255, 241, 241)",colorPrimaryTurva:t,colorSecondary:s,colorSecondaryTurva:n,colorSuccess:"rgb(48, 131, 105)",colorSuccess00:"rgb(244, 250, 247)",colorSuccess100:"rgb(218, 246, 233)",colorSuccess1000:"rgb(4, 38, 33)",colorSuccess200:"rgb(191, 239, 218)",colorSuccess300:"rgb(163, 229, 202)",colorSuccess400:"rgb(134, 215, 185)",colorSuccess50:"rgb(231, 248, 239)",colorSuccess500:"rgb(105, 196, 166)",colorSuccess600:"rgb(76, 164, 138)",colorSuccess700:"rgb(48, 131, 105)",colorSuccess800:"rgb(29, 106, 88)",colorSuccess900:"rgb(13, 71, 59)",colorSuccessTurva:"rgb(48, 131, 105)",colorTurva2Gray00:"rgb(245, 246, 247)",colorTurva2Gray100:"rgb(212, 221, 226)",colorTurva2Gray1000:"rgb(6, 23, 38)",colorTurva2Gray200:"rgb(178, 194, 205)",colorTurva2Gray300:"rgb(148, 169, 185)",colorTurva2Gray400:"rgb(120, 145, 164)",colorTurva2Gray50:"rgb(228, 233, 237)",colorTurva2Gray500:"rgb(95, 122, 143)",colorTurva2Gray600:"rgb(72, 100, 122)",colorTurva2Gray700:"rgb(53, 79, 101)",colorTurva2Gray800:"rgb(37, 60, 80)",colorTurva2Gray900:"rgb(23, 42, 59)",colorTurva2Red00:"rgb(255, 242, 242)",colorTurva2Red100:"rgb(255, 229, 230)",colorTurva2Red1000:"rgb(51, 0, 10)",colorTurva2Red200:"rgb(255, 201, 204)",colorTurva2Red300:"rgb(249, 164, 172)",colorTurva2Red400:"rgb(243, 119, 133)",colorTurva2Red50:"rgb(255, 236, 236)",colorTurva2Red500:"rgb(236, 69, 96)",colorTurva2Red600:"rgb(230, 23, 64)",colorTurva2Red700:"rgb(185, 3, 41)",colorTurva2Red800:"rgb(140, 0, 30)",colorTurva2Red900:"rgb(96, 0, 20)",colorTurvaGray00:"rgb(245, 247, 250)",colorTurvaGray100:"rgb(222, 224, 228)",colorTurvaGray1000:"rgb(8, 13, 38)",colorTurvaGray200:"rgb(199, 202, 207)",colorTurvaGray300:"rgb(175, 178, 186)",colorTurvaGray400:"rgb(143, 147, 158)",colorTurvaGray50:"rgb(234, 235, 239)",colorTurvaGray500:"rgb(113, 118, 132)",colorTurvaGray600:"rgb(98, 104, 122)",colorTurvaGray700:"rgb(71, 78, 101)",colorTurvaGray800:"rgb(45, 52, 79)",colorTurvaGray900:"rgb(23, 28, 58)",colorTurvaNude00:"rgb(253, 247, 242)",colorTurvaNude100:"rgb(251, 225, 209)",colorTurvaNude1000:"rgb(38, 21, 15)",colorTurvaNude200:"rgb(241, 202, 178)",colorTurvaNude300:"rgb(216, 174, 150)",colorTurvaNude400:"rgb(190, 147, 124)",colorTurvaNude50:"rgb(251, 235, 225)",colorTurvaNude500:"rgb(165, 122, 101)",colorTurvaNude600:"rgb(140, 98, 79)",colorTurvaNude700:"rgb(114, 76, 60)",colorTurvaNude800:"rgb(89, 56, 43)",colorTurvaNude900:"rgb(64, 38, 28)",colorTurvaRed00:"rgb(255, 241, 241)",colorTurvaRed100:"rgb(255, 213, 215)",colorTurvaRed1000:"rgb(51, 5, 20)",colorTurvaRed200:"rgb(255, 185, 190)",colorTurvaRed300:"rgb(252, 148, 158)",colorTurvaRed400:"rgb(240, 102, 119)",colorTurvaRed50:"rgb(255, 227, 228)",colorTurvaRed500:"rgb(221, 49, 77)",colorTurvaRed600:"rgb(198, 12, 48)",colorTurvaRed700:"rgb(164, 4, 40)",colorTurvaRed800:"rgb(126, 2, 35)",colorTurvaRed900:"rgb(87, 4, 29)",colorWarning:"rgb(247, 178, 40)",colorWarning00:"rgb(255, 251, 242)",colorWarning100:"rgb(255, 244, 198)",colorWarning1000:"rgb(38, 26, 4)",colorWarning200:"rgb(255, 232, 160)",colorWarning300:"rgb(255, 217, 120)",colorWarning400:"rgb(255, 199, 79)",colorWarning50:"rgb(255, 247, 221)",colorWarning500:"rgb(247, 178, 40)",colorWarning600:"rgb(196, 138, 23)",colorWarning700:"rgb(156, 110, 22)",colorWarning800:"rgb(126, 87, 16)",colorWarning900:"rgb(81, 55, 9)",colorWarningTurva:"rgb(247, 178, 40)",fontFamilyHeading:"'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyHeadingTurva:"'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyText:d,fontFamilyTextTurva:y,fontSizeLarge:"1.25rem",fontSizeMedium:p,fontSizeSmall:"0.875rem",fontSizeXLarge:"1.5rem",fontSizeXSmall:"0.75rem",fontSizeXxLarge:"2.25rem",fontSizeXxxLarge:"3rem",fontSizeXxxxLarge:"4.5rem",fontWeightBold:"700",fontWeightExtraBold:"800",fontWeightNormal:"400",fontWeightSemiBold:"600",letterSpacingHeading:"-0.01rem",lineHeightMedium:"1.5",lineHeightSmall:m,lineHeightXSmall:"1.1",mediaQueryLarge:v,mediaQueryMedium:T,mediaQuerySmall:S,mediaQueryXLarge:L,mediaQueryXSmall:h,mediaQueryXxLarge:G,mediaQueryXxSmall:D,mediaQueryXxxLarge:B,mediaQueryXxxSmall:z,opacity30:"0.30",opacity50:"0.50",opacity75:"0.75",opacity85:"0.85",radiusCircle:"50%",radiusDefault:"4px",radiusIntermediate:"12px",radiusLarge:"16px",radiusMedium:"8px",radiusPill:"20rem",radiusSharp:"0",shadowCard:"0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)",shadowCardTurva:"0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)",shadowDefault:"0 2px 6px 0 rgba(0, 41, 77, 0.07)",shadowDefaultTurva:"0 2px 6px 0 rgba(117, 117, 117, 0.13)",shadowError:"0 0 0 1px #de2362",shadowErrorTurva:"0 0 0 1px #e55039",shadowFocus:"0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3",shadowFocusInput:"0 0 0 1px #0077b3",shadowFocusInputTurva:"0 0 0 1px #171c3a",shadowFocusTurva:"0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a",shadowHover:"0 2px 10px 0 rgba(0, 41, 77, 0.1)",shadowHoverInput:"0 0 0 1px #909599",shadowHoverInputTurva:"0 0 0 1px #747475",shadowHoverTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.15)",shadowModal:"0 2px 20px 0 rgba(0, 0, 0, 0.2)",shadowTooltip:"0 2px 10px 0 rgba(0, 41, 77, 0.07)",shadowTooltipTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.13)",sizeButtonBorder:"1px",sizeButtonMinWidth:"8rem",sizeButtonTinyBorder:"1px",sizeFormBorder:"1px",sizeHeader:I,sizeIconLarge:"30px",sizeIconMedium:"24px",sizeIconSmall:"20px",sizeIconXLarge:"36px",sizeIconXSmall:"16px",sizeIconXxLarge:"48px",sizeIconXxSmall:"10px",sizeIconXxxLarge:"72px",sizeIconXxxSmall:"7px",sizeLayoutMaxWidth:"1110px",sizeMediumBorder:"2px",sizeNavigation:k,sizeStepMedium:"40px",sizeStepSmall:"30px",sizeTappableSquare:"48px",spaceLarge:w,spaceMedium:R,spaceSmall:X,spaceXLarge:"28px",spaceXSmall:"8px",spaceXxLarge:"36px",spaceXxSmall:"4px",spaceXxxLarge:"48px",spaceXxxSmall:"2px",spaceXxxxLarge:"72px",spaceXxxxxLarge:"94px",transitionQuickly:"300ms ease",transitionSlowly:"600ms ease",zIndexDeep:"-999999",zIndexDefault:"1",zIndexDropdown:"600",zIndexHeader:"400",zIndexMask:"200",zIndexMaskButtons:"250",zIndexMasked:"100",zIndexModal:"900",zIndexOverlay:"700",zIndexPopup:"950",zIndexSpinner:"800",zIndexSticky:"300",zIndexToast:"500"});export{R as A,W as B,b as C,X as D,l as E,c as F,g as G,k as H,r as I,i as a,u as b,o as c,t as d,G as e,L as f,v as g,T as h,S as i,h as j,D as k,z as l,B as m,f as n,w as o,d as p,p as q,y as r,I as s,C as t,s as u,n as v,x as w,m as x,e as y,a as z}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{g as a}from"./p-DvwKrUS6.js";var r,o,l=a(o?r:(o=1,r={title:"action-arrow-down-small",tags:"action arrow down small caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 19.5a2.3 2.3 0 0 1-1.729-.78L.46 7.568a1.847 1.847 0 0 1 2.773-2.439l8.579 9.752a.25.25 0 0 0 .376 0l8.579-9.752a1.847 1.847 0 1 1 2.773 2.439l-9.808 11.148A2.31 2.31 0 0 1 12 19.5z"/></svg>'}));export{l as a}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
const t=Math.min,n=Math.max,e={left:"right",right:"left",bottom:"top",top:"bottom"},o={start:"end",end:"start"};function r(e,o,r){return n(e,t(o,r))}function i(t,n){return"function"==typeof t?t(n):t}function l(t){return t.split("-")[0]}function a(t){return t.split("-")[1]}function c(t){return"x"===t?"y":"x"}function s(t){return"y"===t?"height":"width"}function u(t){return["top","bottom"].includes(l(t))?"y":"x"}function f(t){return c(u(t))}function d(t){return t.replace(/start|end/g,(t=>o[t]))}function y(t){return t.replace(/left|right|bottom|top/g,(t=>e[t]))}function m(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function p(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function h(t,n,e){let{reference:o,floating:r}=t;const i=u(n),c=f(n),d=s(c),y=l(n),m="y"===i,p=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,x=o[d]/2-r[d]/2;let g;switch(y){case"top":g={x:p,y:o.y-r.height};break;case"bottom":g={x:p,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(a(n)){case"start":g[c]-=x*(e&&m?-1:1);break;case"end":g[c]+=x*(e&&m?-1:1)}return g}async function x(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:l,rects:a,elements:c,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:y=!1,padding:h=0}=i(n,t),x=m(h),g=c[y?"floating"===d?"reference":"floating":d],w=p(await l.getClippingRect({element:null==(e=await(null==l.isElement?void 0:l.isElement(g)))||e?g:g.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:s})),v="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c.floating)),A=await(null==l.isElement?void 0:l.isElement(b))&&await(null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},k=p(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:b,strategy:s}):v);return{top:(w.top-k.top+x.top)/A.y,bottom:(k.bottom-w.bottom+x.bottom)/A.y,left:(w.left-k.left+x.left)/A.x,right:(k.right-w.right+x.right)/A.x}}const g=n=>({name:"arrow",options:n,async fn(e){const{x:o,y:l,placement:c,rects:u,platform:d,elements:y,middlewareData:p}=e,{element:h,padding:x=0}=i(n,e)||{};if(null==h)return{};const g=m(x),w={x:o,y:l},v=f(c),b=s(v),A=await d.getDimensions(h),k="y"===v,R=k?"top":"left",S=k?"bottom":"right",F=k?"clientHeight":"clientWidth",D=u.reference[b]+u.reference[v]-w[v]-u.floating[b],P=w[v]-u.reference[v],C=await(null==d.getOffsetParent?void 0:d.getOffsetParent(h));let M=C?C[F]:0;M&&await(null==d.isElement?void 0:d.isElement(C))||(M=y.floating[F]||u.floating[b]);const T=D/2-P/2,z=M/2-A[b]/2-1,B=t(g[R],z),L=t(g[S],z),O=B,E=M-A[b]-L,N=M/2-A[b]/2+T,V=r(O,N,E),j=!p.arrow&&null!=a(c)&&N!==V&&u.reference[b]/2-(N<O?B:L)-A[b]/2<0,q=j?N<O?N-O:N-E:0;return{[v]:w[v]+q,data:{[v]:V,centerOffset:N-V-q,...j&&{alignmentOffset:q}},reset:j}}}),w=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:c,rects:u,initialPlacement:m,platform:p,elements:h}=n,{mainAxis:g=!0,crossAxis:w=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:k=!0,...R}=i(t,n);if(null!=(e=c.arrow)&&e.alignmentOffset)return{};const S=l(r),F=l(m)===m,D=await(null==p.isRTL?void 0:p.isRTL(h.floating)),P=v||(F||!k?[y(m)]:function(t){const n=y(t);return[d(t),n,d(n)]}(m));v||"none"===A||P.push(...function(t,n,e,o){const r=a(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:l;default:return[]}}(l(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(d)))),i}(m,k,A,D));const C=[m,...P],M=await x(n,R),T=[];let z=(null==(o=c.flip)?void 0:o.overflows)||[];if(g&&T.push(M[S]),w){const t=function(t,n,e){void 0===e&&(e=!1);const o=a(t),r=f(t),i=s(r);let l="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(l=y(l)),[l,y(l)]}(r,u,D);T.push(M[t[0]],M[t[1]])}if(z=[...z,{placement:r,overflows:T}],!T.every((t=>t<=0))){var B,L;const t=((null==(B=c.flip)?void 0:B.index)||0)+1,n=C[t];if(n)return{data:{index:t,overflows:z},reset:{placement:n}};let e=null==(L=z.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:L.placement;if(!e)switch(b){case"bestFit":{var O;const t=null==(O=z.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:O[0];t&&(e=t);break}case"initialPlacement":e=m}if(r!==e)return{reset:{placement:e}}}return{}}}},v=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:c,placement:s,middlewareData:f}=n,d=await async function(t,n){const{placement:e,platform:o,elements:r}=t,c=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=l(e),f=a(e),d="y"===u(e),y=["left","top"].includes(s)?-1:1,m=c&&d?-1:1,p=i(n,t);let{mainAxis:h,crossAxis:x,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof g&&(x="end"===f?-1*g:g),d?{x:x*m,y:h*y}:{x:h*y,y:x*m}}(n,t);return s===(null==(e=f.offset)?void 0:e.placement)&&null!=(o=f.arrow)&&o.alignmentOffset?{}:{x:r+d.x,y:c+d.y,data:{...d,placement:s}}}}},b=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:a}=n,{mainAxis:s=!0,crossAxis:f=!1,limiter:d={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...y}=i(t,n),m={x:e,y:o},p=await x(n,y),h=u(l(a)),g=c(h);let w=m[g],v=m[h];s&&(w=r(w+p["y"===g?"top":"left"],w,w-p["y"===g?"bottom":"right"])),f&&(v=r(v+p["y"===h?"top":"left"],v,v-p["y"===h?"bottom":"right"]));const b=d.fn({...n,[g]:w,[h]:v});return{...b,data:{x:b.x-e,y:b.y-o}}}}};function A(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function k(t){return A(t).getComputedStyle(t)}function R(t){return t instanceof A(t).Node}function S(t){return R(t)?(t.nodeName||"").toLowerCase():""}function F(t){return t instanceof A(t).HTMLElement}function D(t){return t instanceof A(t).Element}function P(t){return"undefined"!=typeof ShadowRoot&&(t instanceof A(t).ShadowRoot||t instanceof ShadowRoot)}function C(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=k(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function M(t){return["table","td","th"].includes(S(t))}function T(t){const n=z(),e=k(t);return"none"!==e.transform||"none"!==e.perspective||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(S(t))}const L=Math.min,O=Math.max,E=Math.round;function N(t){const n=k(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=F(t),i=r?t.offsetWidth:e,l=r?t.offsetHeight:o,a=E(e)!==i||E(o)!==l;return a&&(e=i,o=l),{width:e,height:o,fallback:a}}function V(t){return D(t)?t:t.contextElement}const j={x:1,y:1};function q(t){const n=V(t);if(!F(n))return j;const e=n.getBoundingClientRect(),{width:o,height:r,fallback:i}=N(n);let l=(i?E(e.width):e.width)/o,a=(i?E(e.height):e.height)/r;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const H={x:0,y:0};function W(t,n,e){var o,r;if(void 0===n&&(n=!0),!z())return H;const i=t?A(t):window;return!e||n&&e!==i?H:{x:(null==(o=i.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(r=i.visualViewport)?void 0:r.offsetTop)||0}}function X(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=V(t);let l=j;n&&(o?D(o)&&(l=q(o)):l=q(t));const a=W(i,e,o);let c=(r.left+a.x)/l.x,s=(r.top+a.y)/l.y,u=r.width/l.x,f=r.height/l.y;if(i){const t=A(i),n=o&&D(o)?A(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=q(e),n=e.getBoundingClientRect(),o=getComputedStyle(e);n.x+=(e.clientLeft+parseFloat(o.paddingLeft))*t.x,n.y+=(e.clientTop+parseFloat(o.paddingTop))*t.y,c*=t.x,s*=t.y,u*=t.x,f*=t.y,c+=n.x,s+=n.y,e=A(e).frameElement}}return p({width:u,height:f,x:c,y:s})}function Y(t){return((R(t)?t.ownerDocument:t.document)||window.document).documentElement}function _(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function G(t){return X(Y(t)).left+_(t).scrollLeft}function I(t){if("html"===S(t))return t;const n=t.assignedSlot||t.parentNode||P(t)&&t.host||Y(t);return P(n)?n.host:n}function J(t){const n=I(t);return B(n)?n.ownerDocument.body:F(n)&&C(n)?n:J(n)}function K(t,n){var e;void 0===n&&(n=[]);const o=J(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=A(o);return r?n.concat(i,i.visualViewport||[],C(o)?o:[]):n.concat(o,K(o))}function Q(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=A(t),o=Y(t),r=e.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const t=z();(!t||t&&"fixed"===n)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(t,e);else if("document"===n)o=function(t){const n=Y(t),e=_(t),o=t.ownerDocument.body,r=O(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=O(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+G(t);const a=-e.scrollTop;return"rtl"===k(o).direction&&(l+=O(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:a}}(Y(t));else if(D(n))o=function(t,n){const e=X(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=F(t)?q(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=W(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return p(o)}function U(t,n){const e=I(t);return!(e===n||!D(e)||B(e))&&("fixed"===k(e).position||U(e,n))}function Z(t,n){return F(t)&&"fixed"!==k(t).position?n?n(t):t.offsetParent:null}function $(t,n){const e=A(t);if(!F(t))return e;let o=Z(t,n);for(;o&&M(o)&&"static"===k(o).position;)o=Z(o,n);return o&&("html"===S(o)||"body"===S(o)&&"static"===k(o).position&&!T(o))?e:o||function(t){let n=I(t);for(;F(n)&&!B(n);){if(T(n))return n;n=I(n)}return null}(t)||e}function tt(t,n,e){const o=F(n),r=Y(n),i="fixed"===e,l=X(t,!0,i,n);let a={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if(("body"!==S(n)||C(r))&&(a=_(n)),F(n)){const t=X(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=G(r));return{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}const nt={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=K(t).filter((t=>D(t)&&"body"!==S(t))),r=null;const i="fixed"===k(t).position;let l=i?I(t):t;for(;D(l)&&!B(l);){const n=k(l),e=T(l);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||C(l)&&!e&&U(t,l))?o=o.filter((t=>t!==l)):r=n,l=I(l)}return n.set(t,o),o}(n,this._c):[].concat(e),o],l=i.reduce(((t,e)=>{const o=Q(n,e,r);return t.top=O(o.top,t.top),t.right=L(o.right,t.right),t.bottom=L(o.bottom,t.bottom),t.left=O(o.left,t.left),t}),Q(n,i[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=F(e),i=Y(e);if(e===i)return n;let l={scrollLeft:0,scrollTop:0},a={x:1,y:1};const c={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==S(e)||C(i))&&(l=_(e)),F(e))){const t=X(e);a=q(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+c.x,y:n.y*a.y-l.scrollTop*a.y+c.y}},isElement:D,getDimensions:function(t){return N(t)},getOffsetParent:$,getDocumentElement:Y,getScale:q,async getElementRects(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||$,i=this.getDimensions;return{reference:tt(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===k(t).direction};function et(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r||i?[...D(t)?K(t):t.contextElement?K(t.contextElement):[],...K(n)]:[];c.forEach((t=>{const n=!D(t)&&t.toString().includes("V");!r||a&&!n||t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));let s,u=null;l&&(u=new ResizeObserver((()=>{e()})),D(t)&&!a&&u.observe(t),D(t)||!t.contextElement||a||u.observe(t.contextElement),u.observe(n));let f=a?X(t):null;return a&&function n(){const o=X(t);!f||o.x===f.x&&o.y===f.y&&o.width===f.width&&o.height===f.height||e(),f=o,s=requestAnimationFrame(n)}(),e(),()=>{var t;c.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),null==(t=u)||t.disconnect(),u=null,a&&cancelAnimationFrame(s)}}const ot=(t,n,e)=>{const o=new Map,r={platform:nt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=e,a=i.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(n));let s=await l.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=h(s,o,c),d=o,y={},m=0;for(let e=0;e<a.length;e++){const{name:i,fn:p}=a[e],{x,y:g,data:w,reset:v}=await p({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:y,rects:s,platform:l,elements:{reference:t,floating:n}});u=null!=x?x:u,f=null!=g?g:f,y={...y,[i]:{...y[i],...w}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(s=!0===v.rects?await l.getElementRects({reference:t,floating:n,strategy:r}):v.rects),({x:u,y:f}=h(s,d,c))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:y}})(t,n,{...r,platform:i})};export{g as a,et as b,ot as c,w as f,v as o,b as s}
|
|
4
|
+
const t=Math.min,n=Math.max,e={left:"right",right:"left",bottom:"top",top:"bottom"},o={start:"end",end:"start"};function r(e,o,r){return n(e,t(o,r))}function i(t,n){return"function"==typeof t?t(n):t}function l(t){return t.split("-")[0]}function a(t){return t.split("-")[1]}function c(t){return"x"===t?"y":"x"}function s(t){return"y"===t?"height":"width"}function u(t){return["top","bottom"].includes(l(t))?"y":"x"}function f(t){return c(u(t))}function d(t){return t.replace(/start|end/g,(t=>o[t]))}function y(t){return t.replace(/left|right|bottom|top/g,(t=>e[t]))}function m(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function p(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function h(t,n,e){let{reference:o,floating:r}=t;const i=u(n),c=f(n),d=s(c),y=l(n),m="y"===i,p=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,x=o[d]/2-r[d]/2;let g;switch(y){case"top":g={x:p,y:o.y-r.height};break;case"bottom":g={x:p,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(a(n)){case"start":g[c]-=x*(e&&m?-1:1);break;case"end":g[c]+=x*(e&&m?-1:1)}return g}async function x(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:l,rects:a,elements:c,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:y=!1,padding:h=0}=i(n,t),x=m(h),g=c[y?"floating"===d?"reference":"floating":d],w=p(await l.getClippingRect({element:null==(e=await(null==l.isElement?void 0:l.isElement(g)))||e?g:g.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:s})),v="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c.floating)),A=await(null==l.isElement?void 0:l.isElement(b))&&await(null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},k=p(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:b,strategy:s}):v);return{top:(w.top-k.top+x.top)/A.y,bottom:(k.bottom-w.bottom+x.bottom)/A.y,left:(w.left-k.left+x.left)/A.x,right:(k.right-w.right+x.right)/A.x}}const g=n=>({name:"arrow",options:n,async fn(e){const{x:o,y:l,placement:c,rects:u,platform:d,elements:y,middlewareData:p}=e,{element:h,padding:x=0}=i(n,e)||{};if(null==h)return{};const g=m(x),w={x:o,y:l},v=f(c),b=s(v),A=await d.getDimensions(h),k="y"===v,R=k?"top":"left",S=k?"bottom":"right",F=k?"clientHeight":"clientWidth",D=u.reference[b]+u.reference[v]-w[v]-u.floating[b],P=w[v]-u.reference[v],C=await(null==d.getOffsetParent?void 0:d.getOffsetParent(h));let M=C?C[F]:0;M&&await(null==d.isElement?void 0:d.isElement(C))||(M=y.floating[F]||u.floating[b]);const T=D/2-P/2,z=M/2-A[b]/2-1,B=t(g[R],z),L=t(g[S],z),O=B,E=M-A[b]-L,N=M/2-A[b]/2+T,V=r(O,N,E),j=!p.arrow&&null!=a(c)&&N!==V&&u.reference[b]/2-(N<O?B:L)-A[b]/2<0,q=j?N<O?N-O:N-E:0;return{[v]:w[v]+q,data:{[v]:V,centerOffset:N-V-q,...j&&{alignmentOffset:q}},reset:j}}}),w=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:c,rects:u,initialPlacement:m,platform:p,elements:h}=n,{mainAxis:g=!0,crossAxis:w=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:k=!0,...R}=i(t,n);if(null!=(e=c.arrow)&&e.alignmentOffset)return{};const S=l(r),F=l(m)===m,D=await(null==p.isRTL?void 0:p.isRTL(h.floating)),P=v||(F||!k?[y(m)]:function(t){const n=y(t);return[d(t),n,d(n)]}(m));v||"none"===A||P.push(...function(t,n,e,o){const r=a(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:l;default:return[]}}(l(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(d)))),i}(m,k,A,D));const C=[m,...P],M=await x(n,R),T=[];let z=(null==(o=c.flip)?void 0:o.overflows)||[];if(g&&T.push(M[S]),w){const t=function(t,n,e){void 0===e&&(e=!1);const o=a(t),r=f(t),i=s(r);let l="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(l=y(l)),[l,y(l)]}(r,u,D);T.push(M[t[0]],M[t[1]])}if(z=[...z,{placement:r,overflows:T}],!T.every((t=>t<=0))){var B,L;const t=((null==(B=c.flip)?void 0:B.index)||0)+1,n=C[t];if(n)return{data:{index:t,overflows:z},reset:{placement:n}};let e=null==(L=z.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:L.placement;if(!e)switch(b){case"bestFit":{var O;const t=null==(O=z.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:O[0];t&&(e=t);break}case"initialPlacement":e=m}if(r!==e)return{reset:{placement:e}}}return{}}}},v=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:c,placement:s,middlewareData:f}=n,d=await async function(t,n){const{placement:e,platform:o,elements:r}=t,c=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=l(e),f=a(e),d="y"===u(e),y=["left","top"].includes(s)?-1:1,m=c&&d?-1:1,p=i(n,t);let{mainAxis:h,crossAxis:x,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof g&&(x="end"===f?-1*g:g),d?{x:x*m,y:h*y}:{x:h*y,y:x*m}}(n,t);return s===(null==(e=f.offset)?void 0:e.placement)&&null!=(o=f.arrow)&&o.alignmentOffset?{}:{x:r+d.x,y:c+d.y,data:{...d,placement:s}}}}},b=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:a}=n,{mainAxis:s=!0,crossAxis:f=!1,limiter:d={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...y}=i(t,n),m={x:e,y:o},p=await x(n,y),h=u(l(a)),g=c(h);let w=m[g],v=m[h];s&&(w=r(w+p["y"===g?"top":"left"],w,w-p["y"===g?"bottom":"right"])),f&&(v=r(v+p["y"===h?"top":"left"],v,v-p["y"===h?"bottom":"right"]));const b=d.fn({...n,[g]:w,[h]:v});return{...b,data:{x:b.x-e,y:b.y-o}}}}};function A(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function k(t){return A(t).getComputedStyle(t)}function R(t){return t instanceof A(t).Node}function S(t){return R(t)?(t.nodeName||"").toLowerCase():""}function F(t){return t instanceof A(t).HTMLElement}function D(t){return t instanceof A(t).Element}function P(t){return"undefined"!=typeof ShadowRoot&&(t instanceof A(t).ShadowRoot||t instanceof ShadowRoot)}function C(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=k(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function M(t){return["table","td","th"].includes(S(t))}function T(t){const n=z(),e=k(t);return"none"!==e.transform||"none"!==e.perspective||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(S(t))}const L=Math.min,O=Math.max,E=Math.round;function N(t){const n=k(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=F(t),i=r?t.offsetWidth:e,l=r?t.offsetHeight:o,a=E(e)!==i||E(o)!==l;return a&&(e=i,o=l),{width:e,height:o,fallback:a}}function V(t){return D(t)?t:t.contextElement}const j={x:1,y:1};function q(t){const n=V(t);if(!F(n))return j;const e=n.getBoundingClientRect(),{width:o,height:r,fallback:i}=N(n);let l=(i?E(e.width):e.width)/o,a=(i?E(e.height):e.height)/r;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const H={x:0,y:0};function W(t,n,e){var o,r;if(void 0===n&&(n=!0),!z())return H;const i=t?A(t):window;return!e||n&&e!==i?H:{x:(null==(o=i.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(r=i.visualViewport)?void 0:r.offsetTop)||0}}function X(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=V(t);let l=j;n&&(o?D(o)&&(l=q(o)):l=q(t));const a=W(i,e,o);let c=(r.left+a.x)/l.x,s=(r.top+a.y)/l.y,u=r.width/l.x,f=r.height/l.y;if(i){const t=A(i),n=o&&D(o)?A(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=q(e),n=e.getBoundingClientRect(),o=getComputedStyle(e);n.x+=(e.clientLeft+parseFloat(o.paddingLeft))*t.x,n.y+=(e.clientTop+parseFloat(o.paddingTop))*t.y,c*=t.x,s*=t.y,u*=t.x,f*=t.y,c+=n.x,s+=n.y,e=A(e).frameElement}}return p({width:u,height:f,x:c,y:s})}function Y(t){return((R(t)?t.ownerDocument:t.document)||window.document).documentElement}function _(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function G(t){return X(Y(t)).left+_(t).scrollLeft}function I(t){if("html"===S(t))return t;const n=t.assignedSlot||t.parentNode||P(t)&&t.host||Y(t);return P(n)?n.host:n}function J(t){const n=I(t);return B(n)?n.ownerDocument.body:F(n)&&C(n)?n:J(n)}function K(t,n){var e;void 0===n&&(n=[]);const o=J(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=A(o);return r?n.concat(i,i.visualViewport||[],C(o)?o:[]):n.concat(o,K(o))}function Q(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=A(t),o=Y(t),r=e.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const t=z();(!t||t&&"fixed"===n)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(t,e);else if("document"===n)o=function(t){const n=Y(t),e=_(t),o=t.ownerDocument.body,r=O(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=O(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let l=-e.scrollLeft+G(t);const a=-e.scrollTop;return"rtl"===k(o).direction&&(l+=O(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:a}}(Y(t));else if(D(n))o=function(t,n){const e=X(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=F(t)?q(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=W(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return p(o)}function U(t,n){const e=I(t);return!(e===n||!D(e)||B(e))&&("fixed"===k(e).position||U(e,n))}function Z(t,n){return F(t)&&"fixed"!==k(t).position?n?n(t):t.offsetParent:null}function $(t,n){const e=A(t);if(!F(t))return e;let o=Z(t,n);for(;o&&M(o)&&"static"===k(o).position;)o=Z(o,n);return o&&("html"===S(o)||"body"===S(o)&&"static"===k(o).position&&!T(o))?e:o||function(t){let n=I(t);for(;F(n)&&!B(n);){if(T(n))return n;n=I(n)}return null}(t)||e}function tt(t,n,e){const o=F(n),r=Y(n),i="fixed"===e,l=X(t,!0,i,n);let a={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if(("body"!==S(n)||C(r))&&(a=_(n)),F(n)){const t=X(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=G(r));return{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}const nt={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i="clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=K(t).filter((t=>D(t)&&"body"!==S(t))),r=null;const i="fixed"===k(t).position;let l=i?I(t):t;for(;D(l)&&!B(l);){const n=k(l),e=T(l);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||C(l)&&!e&&U(t,l))?o=o.filter((t=>t!==l)):r=n,l=I(l)}return n.set(t,o),o}(n,this._c):[].concat(e),l=[...i,o],a=l.reduce(((t,e)=>{const o=Q(n,e,r);return t.top=O(o.top,t.top),t.right=L(o.right,t.right),t.bottom=L(o.bottom,t.bottom),t.left=O(o.left,t.left),t}),Q(n,l[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=F(e),i=Y(e);if(e===i)return n;let l={scrollLeft:0,scrollTop:0},a={x:1,y:1};const c={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==S(e)||C(i))&&(l=_(e)),F(e))){const t=X(e);a=q(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+c.x,y:n.y*a.y-l.scrollTop*a.y+c.y}},isElement:D,getDimensions:function(t){return N(t)},getOffsetParent:$,getDocumentElement:Y,getScale:q,async getElementRects(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||$,i=this.getDimensions;return{reference:tt(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===k(t).direction};function et(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r||i?[...D(t)?K(t):t.contextElement?K(t.contextElement):[],...K(n)]:[];c.forEach((t=>{const n=!D(t)&&t.toString().includes("V");!r||a&&!n||t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));let s,u=null;l&&(u=new ResizeObserver((()=>{e()})),D(t)&&!a&&u.observe(t),D(t)||!t.contextElement||a||u.observe(t.contextElement),u.observe(n));let f=a?X(t):null;return a&&function n(){const o=X(t);!f||o.x===f.x&&o.y===f.y&&o.width===f.width&&o.height===f.height||e(),f=o,s=requestAnimationFrame(n)}(),e(),()=>{var t;c.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),null==(t=u)||t.disconnect(),u=null,a&&cancelAnimationFrame(s)}}const ot=(t,n,e)=>{const o=new Map,r={platform:nt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=e,a=i.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(n));let s=await l.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=h(s,o,c),d=o,y={},m=0;for(let e=0;e<a.length;e++){const{name:i,fn:p}=a[e],{x,y:g,data:w,reset:v}=await p({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:y,rects:s,platform:l,elements:{reference:t,floating:n}});u=null!=x?x:u,f=null!=g?g:f,y={...y,[i]:{...y[i],...w}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(s=!0===v.rects?await l.getElementRects({reference:t,floating:n,strategy:r}):v.rects),({x:u,y:f}=h(s,d,c))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:y}})(t,n,{...r,platform:i})};export{ot as M,g as a,w as f,v as o,b as s,et as z}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{m as r,e as t,f as n,g as e,h as a,i as u,j as s,k as c,l as i,t as o}from"./p-BDAqOMlM.js";const g=["turva"],l=/[A-Z]/g;function f(r){const t=l.test(r),n=!r.includes("_")&&!r.includes("-")&&!r.includes(" ");return t&&n}function $(r){const t=r.includes("-"),n=r.includes(" ")||r.includes("_"),e="-"===r.charAt(0);return t&&!n&&!e}function m(r=""){return`${r.charAt(0).toUpperCase()}${r.slice(1)}`}function b(r=""){return`${r.charAt(0).toLowerCase()}${r.slice(1)}`}function p(r=""){const t=r.split("-");return t.forEach(((r,n)=>{t[n]=m(r)})),t.join("")}function d(r){return r.charAt(0).toUpperCase()+r.slice(1)}function x(r,t=""){return!t||$(t)||function(r,t=""){return 0===t.indexOf(d(r))||0===t.indexOf(r)}(r,t)?t:`${r}${m(t)}`}function y(r,t){if(r)return["","default"].includes(t)||$(r)&&r.endsWith(`-${t}`)||f(r)&&r.endsWith(m(t))?r:o[`color${p(r)}${d(t)}`]?f(r)?`${r}${m(t)}`:`${r}-${t}`:r}function h(r,t=""){if(!r)return;if(("turva"===t||r.endsWith("-turva"))&&"undefined"!=typeof document&&(null===(n=document.documentElement.attributes.getNamedItem("class"))||void 0===n?void 0:n.value.includes("duet-theme-turva2")))switch(r.replace(/-turva$/,"")){case"primary-lightest":return"rgb(253, 247, 242)";case"primary-lighter":return"rgb(251, 235, 225)";case"primary-light":return"rgb(241, 202, 178)";case"primary":return"rgb(230, 23, 64)";case"primary-darker":return"rgb(185, 3, 41)";case"primary-dark":return"rgb(140, 0, 30)";case"secondary":return"rgb(23, 42, 59)";case"gray-lighter":return"rgb(245, 246, 247)";case"gray-light":return"rgb(212, 221, 226)";case"gray":return"rgb(178, 194, 205)";case"gray-dark":return"rgb(120, 145, 164)";case"gray-darker":return"rgb(95, 122, 143)"}var n;const e=v(r),a=t&&v(r,t);return o[a]||o[e]}function v(r="",t=""){let n=r;return $(r)&&(n=p(n)),n=x("color",n),n=function(r,t){const n=function(r=""){return g.includes(r.toLowerCase())?r.toLowerCase():""}(t).length;return n&&-1===r.indexOf(t)?`${r}${m(t)}`:r}(n,t),n=b(n),n}function I(r){return function(r,t){if(!t)return;let n=t;$(t)&&(n=p(n)),n=x("shadow",n),n=b(n);try{return o[n]}catch(r){return}}(0,r)}function k(r,t){if(!r||0!==t&&!t)return;const n=r.split(",");return`rgba(${parseInt(n[0].slice(4))},${parseInt(n[1])},${parseInt(n[2])},${t})`}function M(r,t){const n=r.split(","),e=-1*t;let a=parseInt(n[0].slice(4)),u=parseInt(n[1]),s=parseInt(n[2]);return a=Math.round((0-a)*e)+a,u=Math.round((0-u)*e)+u,s=Math.round((0-s)*e)+s,a=a<0?0:a,a=a>255?255:a,u=u<0?0:u,u=u>255?255:u,s=s<0?0:s,s=s>255?255:s,`rgb(${a},${u},${s})`}const j=r=>r.substring(1,r.length-1),O={"xxx-small":j(i),"xx-small":j(c),"x-small":j(s),small:j(u),medium:j(a),large:j(e),"x-large":j(n),"xx-large":j(t),"xxx-large":j(r)},w=Object.keys(O).filter((r=>-1!==r.indexOf("x-small")));Object.keys(O).filter((r=>!w.includes(r)));export{O as a,w as b,d as c,I as d,h as g,y as p,k as r,M as s}
|