@duetds/components 9.1.2 → 9.2.1
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.js +581 -354
- package/lib/cjs/a11y-utils-76311b95.js +20 -0
- package/lib/cjs/{app-globals-75ae6194.js → app-globals-940f10af.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +5 -5
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +4 -4
- package/lib/cjs/duet-banner.cjs.entry.js +4 -4
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
- package/lib/cjs/duet-button_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +14 -25
- package/lib/cjs/duet-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip_3.cjs.entry.js +653 -0
- package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +43 -39
- package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
- package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +11 -11
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-header_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-hero.cjs.entry.js +4 -4
- package/lib/cjs/duet-icon.cjs.entry.js +6 -6
- package/lib/cjs/duet-input_2.cjs.entry.js +101 -12
- package/lib/cjs/duet-layout.cjs.entry.js +7 -10
- package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +24 -6
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-modal.cjs.entry.js +11 -11
- package/lib/cjs/duet-multiselect.cjs.entry.js +9 -9
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +8 -8
- package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
- package/lib/cjs/duet-pagination_2.cjs.entry.js +19 -19
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +7 -7
- package/lib/cjs/duet-radio_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-range-slider.cjs.entry.js +3 -3
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +49 -28
- package/lib/cjs/duet-section-layout.cjs.entry.js +5 -6
- package/lib/cjs/duet-select.cjs.entry.js +3 -3
- package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
- package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
- package/lib/cjs/duet-slideout.cjs.entry.js +11 -11
- package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +23 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
- package/lib/cjs/duet-textarea.cjs.entry.js +7 -7
- package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +25 -6
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +8 -8
- package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
- package/lib/cjs/duet-tray.cjs.entry.js +6 -6
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-388375fb.js → errorcodes.utils-a9512b40.js} +1 -1
- package/lib/cjs/{focus-utils-8bf2f9fe.js → focus-utils-c9b32897.js} +1 -1
- package/lib/cjs/{index-9e6f7e53.js → index-ce05ed4b.js} +1 -1
- package/lib/cjs/{language-utils-0eb766d8.js → language-utils-04d69d6b.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-0975145c.js → slot-utils-83d6d31e.js} +1 -1
- package/lib/cjs/{token-utils-ecc7f5a1.js → token-utils-453a4e75.js} +1 -1
- package/lib/cjs/{tokens-1c133754.js → tokens-57e06fe4.js} +25 -25
- package/lib/cjs/{tokens.module-cf303205.js → tokens.module-fcba867f.js} +25 -25
- package/lib/collection/components/duet-action-button/duet-action-button.css +7 -7
- package/lib/collection/components/duet-alert/duet-alert.css +12 -12
- package/lib/collection/components/duet-badge/duet-badge.css +18 -18
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +7 -7
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.css +39 -39
- package/lib/collection/components/duet-callout/duet-callout.css +2 -2
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.css +2 -2
- package/lib/collection/components/duet-card/duet-card.css +6 -6
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +16 -16
- package/lib/collection/components/duet-chip/duet-chip.css +83 -28
- package/lib/collection/components/duet-chip/duet-chip.js +102 -6
- package/lib/collection/components/duet-choice/duet-checkmark.css +6 -6
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.css +50 -50
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +4 -4
- package/lib/collection/components/duet-combobox/duet-combobox-select.js +4 -8
- package/lib/collection/components/duet-combobox/duet-combobox.css +4 -81
- package/lib/collection/components/duet-combobox/duet-combobox.js +37 -25
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +1 -1
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +2 -2
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +26 -26
- package/lib/collection/components/duet-divider/duet-divider.css +2 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.css +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +3 -3
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-footer/duet-footer.css +5 -5
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +1 -1
- package/lib/collection/components/duet-header/duet-header.css +42 -42
- package/lib/collection/components/duet-heading/duet-heading.css +3 -3
- package/lib/collection/components/duet-hero/duet-hero.css +13 -13
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-input/duet-input.css +39 -37
- package/lib/collection/components/duet-input/duet-input.js +96 -7
- package/lib/collection/components/duet-label/duet-label.css +1 -1
- package/lib/collection/components/duet-layout/duet-layout.css +24 -19
- package/lib/collection/components/duet-layout/duet-layout.js +4 -7
- package/lib/collection/components/duet-link/duet-link.css +9 -9
- package/lib/collection/components/duet-link/duet-link.js +4 -15
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-list-item/duet-list-item.css +8 -8
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +5 -3
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -2
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +3 -3
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +4 -1
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +87 -4
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.css +6 -6
- package/lib/collection/components/duet-modal/duet-modal.js +6 -6
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +24 -24
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.css +9 -9
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +12 -12
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
- package/lib/collection/components/duet-number-input/duet-number-input.css +5 -5
- package/lib/collection/components/duet-overlay/duet-overlay.css +1 -1
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.css +1 -1
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +3 -3
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +1 -1
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +44 -10
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +13 -5
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +26 -3
- package/lib/collection/components/duet-progress/duet-progress.css +6 -6
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +1 -1
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.css +10 -10
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +21 -21
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +1 -1
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +3 -0
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +38 -16
- package/lib/collection/components/duet-section-layout/duet-section-layout.css +24 -15
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -4
- package/lib/collection/components/duet-select/duet-select.css +18 -18
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-show-more/duet-show-more.css +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.css +8 -8
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +1 -1
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +2 -2
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +10 -10
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +2 -2
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
- package/lib/collection/components/duet-step/duet-step.css +4 -4
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +9 -9
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +11 -11
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +6 -6
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +13 -9
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +86 -3
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +9 -9
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +27 -27
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
- package/lib/collection/components/duet-table/duet-table.css +30 -30
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.css +27 -27
- package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
- package/lib/collection/components/duet-toggle/duet-toggle.css +4 -4
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +2 -2
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +11 -11
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +5 -5
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +23 -11
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +88 -4
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +8 -8
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +10 -10
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tray/duet-tray.css +8 -8
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.css +1 -1
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/a11y-utils.js +16 -0
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +4 -4
- package/lib/dist-custom-elements/duet-breadcrumb.js +8 -8
- package/lib/dist-custom-elements/duet-breadcrumbs.js +5 -5
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +5 -5
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +6 -6
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +8 -8
- package/lib/dist-custom-elements/duet-choice.js +6 -6
- package/lib/dist-custom-elements/duet-collapsible.js +5 -5
- package/lib/dist-custom-elements/duet-combobox.js +80 -58
- package/lib/dist-custom-elements/duet-contact-card.js +11 -11
- package/lib/dist-custom-elements/duet-cookie-consent.js +8 -8
- package/lib/dist-custom-elements/duet-date-picker.js +14 -14
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +8 -8
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
- package/lib/dist-custom-elements/duet-footer.js +9 -9
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +11 -11
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +10 -10
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +6 -9
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +6 -6
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +8 -8
- package/lib/dist-custom-elements/duet-menu-bar-item.js +27 -7
- package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar.js +6 -6
- package/lib/dist-custom-elements/duet-modal.js +16 -16
- package/lib/dist-custom-elements/duet-multiselect.js +16 -16
- package/lib/dist-custom-elements/duet-nav.js +2 -2
- package/lib/dist-custom-elements/duet-notification-drawer.js +8 -8
- package/lib/dist-custom-elements/duet-notification.js +6 -6
- package/lib/dist-custom-elements/duet-number-input.js +13 -13
- package/lib/dist-custom-elements/duet-overlay.js +1 -1
- package/lib/dist-custom-elements/duet-page-heading.js +5 -5
- package/lib/dist-custom-elements/duet-pagination.js +27 -27
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -111
- package/lib/dist-custom-elements/duet-popup-menu.js +1 -277
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +7 -7
- package/lib/dist-custom-elements/duet-radio-group.js +8 -8
- package/lib/dist-custom-elements/duet-radio.js +2 -2
- package/lib/dist-custom-elements/duet-range-slider.js +5 -5
- package/lib/dist-custom-elements/duet-range-stepper.js +8 -8
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +5 -6
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
- package/lib/dist-custom-elements/duet-show-more.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +4 -4
- package/lib/dist-custom-elements/duet-slideout-link.js +5 -5
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +7 -7
- package/lib/dist-custom-elements/duet-slideout-panel.js +10 -10
- package/lib/dist-custom-elements/duet-slideout.js +10 -10
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +6 -6
- package/lib/dist-custom-elements/duet-stepper.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +6 -6
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +9 -9
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +27 -7
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +5 -5
- package/lib/dist-custom-elements/duet-submenu-bar.js +10 -10
- package/lib/dist-custom-elements/duet-tab-group.js +20 -20
- package/lib/dist-custom-elements/duet-tab.js +3 -3
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +14 -14
- package/lib/dist-custom-elements/duet-toggle.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +6 -6
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +8 -8
- package/lib/dist-custom-elements/duet-toolbar-item.js +28 -7
- package/lib/dist-custom-elements/duet-toolbar-link.js +5 -5
- package/lib/dist-custom-elements/duet-toolbar.js +4 -4
- package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +8 -8
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload-item.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +22 -22
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/p-01dec611.js +368 -0
- package/lib/dist-custom-elements/{p-9635880c.js → p-0cf30970.js} +6 -6
- package/lib/dist-custom-elements/{p-dc26d4a2.js → p-0e77715d.js} +25 -25
- package/lib/dist-custom-elements/{p-926dfd0d.js → p-1149a5f1.js} +1 -1
- package/lib/dist-custom-elements/{p-7dfb4906.js → p-14903ee8.js} +6 -6
- package/lib/dist-custom-elements/{p-53d15ae4.js → p-1749d98a.js} +43 -22
- package/lib/dist-custom-elements/{p-8979d055.js → p-1cea02c6.js} +3 -3
- package/lib/dist-custom-elements/{p-cc58e64e.js → p-1cf7db2a.js} +3 -3
- package/lib/dist-custom-elements/{p-c5f82e3b.js → p-28807fbd.js} +2 -2
- package/lib/dist-custom-elements/{p-132de48f.js → p-29c84284.js} +4 -4
- package/lib/dist-custom-elements/{p-434e64ad.js → p-2cc77e29.js} +9 -9
- package/lib/dist-custom-elements/{p-cd8e9097.js → p-329cec9e.js} +2 -2
- package/lib/dist-custom-elements/{p-7a8eda34.js → p-3883514c.js} +5 -5
- package/lib/dist-custom-elements/{p-39b4be25.js → p-3d136f5c.js} +8 -8
- package/lib/dist-custom-elements/{p-1e7abd9f.js → p-55342fcd.js} +8 -19
- package/lib/dist-custom-elements/{p-b1aa75c1.js → p-55989a50.js} +7 -7
- package/lib/dist-custom-elements/p-570cecb0.js +119 -0
- package/lib/dist-custom-elements/{p-16a278f4.js → p-5e4809d5.js} +6 -6
- package/lib/dist-custom-elements/{p-a1979351.js → p-6fdef72e.js} +2 -2
- package/lib/dist-custom-elements/{p-00d7b302.js → p-72bc5f40.js} +3 -3
- package/lib/dist-custom-elements/{p-6081e535.js → p-782759f5.js} +2 -2
- package/lib/dist-custom-elements/{p-3caf29d6.js → p-791ee647.js} +2 -2
- package/lib/dist-custom-elements/{p-52618a53.js → p-87248c43.js} +3 -3
- package/lib/dist-custom-elements/{p-a7559bee.js → p-95fb5b4b.js} +7 -7
- package/lib/dist-custom-elements/{p-e399097c.js → p-9f461090.js} +3 -3
- package/lib/dist-custom-elements/{p-fac41d14.js → p-9fa78368.js} +1 -1
- package/lib/dist-custom-elements/{p-8acea31f.js → p-a407fdb5.js} +3 -3
- package/lib/dist-custom-elements/{p-11d8af72.js → p-a89ea763.js} +6 -6
- package/lib/dist-custom-elements/{p-fdc2bf62.js → p-aa53a402.js} +12 -12
- package/lib/dist-custom-elements/{p-7a7a6a7b.js → p-aad2ab95.js} +9 -9
- package/lib/dist-custom-elements/{p-ddb9e9be.js → p-ab30a756.js} +4 -4
- package/lib/{esm/duet-popup-menu.entry.js → dist-custom-elements/p-ae917476.js} +69 -20
- package/lib/dist-custom-elements/{p-401837cb.js → p-b87d1e74.js} +4 -4
- package/lib/dist-custom-elements/{p-7c8f29a0.js → p-be13a7a6.js} +6 -6
- package/lib/dist-custom-elements/{p-239cfc2e.js → p-c43f0450.js} +3 -3
- package/lib/dist-custom-elements/{p-c77f9e4d.js → p-c8e032e9.js} +4 -4
- package/lib/dist-custom-elements/{p-785686e3.js → p-ca700701.js} +1 -1
- package/lib/dist-custom-elements/{p-5f658e84.js → p-d00e8f90.js} +107 -18
- package/lib/dist-custom-elements/{p-f5924b7d.js → p-d551ba52.js} +2 -2
- package/lib/dist-custom-elements/{p-f43704a4.js → p-e685687b.js} +2 -2
- package/lib/dist-custom-elements/{p-bec25ec5.js → p-e8594dcd.js} +3 -3
- package/lib/dist-custom-elements/p-f0cc5629.js +18 -0
- package/lib/dist-custom-elements/{p-74f689ae.js → p-f1a4011f.js} +5 -5
- package/lib/{esm/tokens-e0e3d241.js → dist-custom-elements/p-f6000a03.js} +25 -25
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-a1af9ad9.system.entry.js → p-033a796b.system.entry.js} +1 -1
- package/lib/duet/{p-5e2f8206.js → p-03ebb87c.js} +1 -1
- package/lib/duet/{p-ab78e681.entry.js → p-09f97fb6.entry.js} +1 -1
- package/lib/duet/{p-946101a9.js → p-0e91ae89.js} +1 -1
- package/lib/duet/{p-14dc7cf5.entry.js → p-0f61ec4f.entry.js} +1 -1
- package/lib/duet/{p-8f1823c2.system.entry.js → p-102d7289.system.entry.js} +1 -1
- package/lib/duet/p-1117cfde.system.entry.js +4 -0
- package/lib/duet/{p-8c84e41c.entry.js → p-1261a1b5.entry.js} +1 -1
- package/lib/duet/{p-8f2af04b.system.entry.js → p-13f6afbe.system.entry.js} +1 -1
- package/lib/duet/{p-dcf097a9.system.entry.js → p-14a83e9e.system.entry.js} +1 -1
- package/lib/duet/{p-e20b0d90.entry.js → p-151b3794.entry.js} +1 -1
- package/lib/duet/{p-91bf41a8.system.entry.js → p-16a3016e.system.entry.js} +1 -1
- package/lib/duet/p-16e3f6f0.system.entry.js +4 -0
- package/lib/duet/{p-7e06948d.entry.js → p-16ee7d09.entry.js} +1 -1
- package/lib/duet/p-176154a9.system.entry.js +4 -0
- package/lib/duet/{p-f8d41de4.entry.js → p-186dc204.entry.js} +1 -1
- package/lib/duet/{p-a4a42c3e.system.entry.js → p-19097787.system.entry.js} +1 -1
- package/lib/duet/{p-5e502442.system.entry.js → p-1f32a819.system.entry.js} +1 -1
- package/lib/duet/{p-33ca3555.system.entry.js → p-1fb804dc.system.entry.js} +1 -1
- package/lib/duet/{p-123e5149.entry.js → p-2091f634.entry.js} +1 -1
- package/lib/duet/{p-35bf92a1.system.entry.js → p-22b59f78.system.entry.js} +1 -1
- package/lib/duet/{p-50428ca6.entry.js → p-231b853e.entry.js} +1 -1
- package/lib/duet/p-25deb7be.system.entry.js +4 -0
- package/lib/duet/p-28d2739c.entry.js +4 -0
- package/lib/duet/p-2b0552dc.system.entry.js +4 -0
- package/lib/duet/{p-8aaadc21.system.entry.js → p-2c42ece3.system.entry.js} +1 -1
- package/lib/duet/{p-85f4d527.entry.js → p-306faf90.entry.js} +1 -1
- package/lib/duet/p-30947766.entry.js +4 -0
- package/lib/duet/{p-2349ea53.entry.js → p-312f509d.entry.js} +1 -1
- package/lib/duet/p-3363aa75.entry.js +4 -0
- package/lib/duet/{p-f6c25420.system.entry.js → p-36b2ad26.system.entry.js} +1 -1
- package/lib/duet/{p-695da2aa.entry.js → p-375948ff.entry.js} +1 -1
- package/lib/duet/p-37b8bb50.system.entry.js +4 -0
- package/lib/duet/p-386c614c.system.entry.js +4 -0
- package/lib/duet/{p-d3101c8a.system.js → p-39fb8819.system.js} +1 -1
- package/lib/duet/{p-03eab84c.system.entry.js → p-3beb1c58.system.entry.js} +1 -1
- package/lib/duet/{p-12155eae.system.entry.js → p-3c0373cb.system.entry.js} +1 -1
- package/lib/duet/{p-e95fa292.js → p-3d9a63aa.js} +1 -1
- package/lib/duet/{p-d5e996fd.entry.js → p-3e13fb5c.entry.js} +1 -1
- package/lib/duet/{p-c7aea431.entry.js → p-3e15a291.entry.js} +1 -1
- package/lib/duet/{p-31ee8ad8.entry.js → p-4068cfee.entry.js} +1 -1
- package/lib/duet/{p-20a0e98c.entry.js → p-408a9ccb.entry.js} +1 -1
- package/lib/duet/p-4217dab3.system.entry.js +4 -0
- package/lib/duet/{p-6d11c049.entry.js → p-446f79d6.entry.js} +1 -1
- package/lib/duet/p-46030b7e.entry.js +4 -0
- package/lib/duet/{p-c3035dee.system.entry.js → p-48c61eee.system.entry.js} +1 -1
- package/lib/duet/p-48c90346.system.js +4 -0
- package/lib/duet/p-495d8962.system.entry.js +4 -0
- package/lib/duet/{p-bfb824c6.entry.js → p-497263c5.entry.js} +1 -1
- package/lib/duet/{p-0d9de644.entry.js → p-4a657e92.entry.js} +1 -1
- package/lib/duet/p-4d20e324.system.entry.js +4 -0
- package/lib/duet/{p-2c999efc.entry.js → p-50bf90d6.entry.js} +1 -1
- package/lib/duet/{p-0853dd3b.system.js → p-514b6b5b.system.js} +1 -1
- package/lib/duet/{p-5432aefa.system.entry.js → p-528db5b3.system.entry.js} +1 -1
- package/lib/duet/{p-eb8bf9ea.entry.js → p-529aff73.entry.js} +1 -1
- package/lib/duet/p-54fbe5c8.entry.js +4 -0
- package/lib/duet/p-599c6ee4.system.entry.js +4 -0
- package/lib/duet/p-5f6a8312.system.entry.js +4 -0
- package/lib/duet/{p-bf40b101.entry.js → p-5fe9bbe0.entry.js} +1 -1
- package/lib/duet/p-60754704.entry.js +4 -0
- package/lib/duet/p-61fe7d32.entry.js +4 -0
- package/lib/duet/{p-3b668f9d.system.entry.js → p-64030845.system.entry.js} +2 -2
- package/lib/duet/{p-4f47944f.system.entry.js → p-646fcab7.system.entry.js} +1 -1
- package/lib/duet/{p-2f891fbb.system.js → p-6a95a2e3.system.js} +1 -1
- package/lib/duet/p-6adc0389.system.entry.js +4 -0
- package/lib/duet/{p-697c4f57.entry.js → p-6f106108.entry.js} +1 -1
- package/lib/duet/{p-471c18e5.system.entry.js → p-6f53cfb2.system.entry.js} +1 -1
- package/lib/duet/{p-fd40d190.system.entry.js → p-739bfa4e.system.entry.js} +1 -1
- package/lib/duet/{p-0487aadb.system.entry.js → p-753333e9.system.entry.js} +1 -1
- package/lib/duet/{p-8507509a.js → p-75e078ac.js} +1 -1
- package/lib/duet/{p-e05007a2.system.entry.js → p-7712eb09.system.entry.js} +1 -1
- package/lib/duet/{p-730ac0b8.entry.js → p-783cc158.entry.js} +1 -1
- package/lib/duet/{p-8de97e36.entry.js → p-7863c54a.entry.js} +1 -1
- package/lib/duet/p-7a3ae8a9.system.js +4 -0
- package/lib/duet/{p-11d01633.system.entry.js → p-7a41aff3.system.entry.js} +1 -1
- package/lib/duet/{p-4f7a0a49.entry.js → p-7b6bacd8.entry.js} +1 -1
- package/lib/duet/{p-6cd9ae43.entry.js → p-7db5f5b6.entry.js} +1 -1
- package/lib/duet/p-7f94c928.entry.js +4 -0
- package/lib/duet/{p-0fee15c1.system.js → p-8002cdbf.system.js} +1 -1
- package/lib/duet/p-8002d713.system.entry.js +4 -0
- package/lib/duet/{p-758cb2a2.system.entry.js → p-8087cdcd.system.entry.js} +1 -1
- package/lib/duet/{p-3affe362.entry.js → p-81168888.entry.js} +1 -1
- package/lib/duet/{p-4a689653.system.js → p-832862b7.system.js} +1 -1
- package/lib/duet/{p-91374fa5.system.entry.js → p-832e5af8.system.entry.js} +1 -1
- package/lib/duet/{p-73170927.entry.js → p-8486a863.entry.js} +1 -1
- package/lib/duet/{p-9ea9329f.entry.js → p-84b5b372.entry.js} +1 -1
- package/lib/duet/p-8b3b5673.js +4 -0
- package/lib/duet/{p-ae6de40d.entry.js → p-8bee5b14.entry.js} +1 -1
- package/lib/duet/{p-a2ddcf90.entry.js → p-8c95d7e7.entry.js} +1 -1
- package/lib/duet/p-8d947a43.system.entry.js +4 -0
- package/lib/duet/{p-012938af.system.entry.js → p-91b2664a.system.entry.js} +1 -1
- package/lib/duet/p-94eab61e.system.js +4 -0
- package/lib/duet/{p-8cb3b550.system.entry.js → p-961a7a42.system.entry.js} +1 -1
- package/lib/duet/{p-76ebeb39.system.entry.js → p-962a7ed7.system.entry.js} +1 -1
- package/lib/duet/p-9832a62e.system.entry.js +4 -0
- package/lib/duet/{p-ea7dccdf.system.entry.js → p-9abe2d23.system.entry.js} +1 -1
- package/lib/duet/p-9c50306c.system.entry.js +4 -0
- package/lib/duet/{p-c3524f86.system.entry.js → p-9c5717a5.system.entry.js} +1 -1
- package/lib/duet/p-9d0d4329.system.entry.js +4 -0
- package/lib/duet/p-9d7aea44.entry.js +4 -0
- package/lib/duet/{p-60327ec6.system.entry.js → p-a033bafa.system.entry.js} +1 -1
- package/lib/duet/p-a0c1c7d8.system.entry.js +4 -0
- package/lib/duet/p-a0ffaabf.entry.js +4 -0
- package/lib/duet/{p-2b3b6d33.entry.js → p-a1e13f21.entry.js} +1 -1
- package/lib/duet/{p-8a9f676f.system.entry.js → p-a838f364.system.entry.js} +1 -1
- package/lib/duet/{p-934124e4.entry.js → p-a90efe08.entry.js} +1 -1
- package/lib/duet/{p-86f0eef8.system.entry.js → p-aba65c68.system.entry.js} +1 -1
- package/lib/duet/{p-5ed66d93.entry.js → p-ac538db7.entry.js} +1 -1
- package/lib/duet/p-adcd2fb3.entry.js +4 -0
- package/lib/duet/{p-ebca186a.system.entry.js → p-b224ee72.system.entry.js} +1 -1
- package/lib/duet/{p-966bf379.system.entry.js → p-b274ebde.system.entry.js} +1 -1
- package/lib/duet/{p-eb8ddb2c.entry.js → p-b2f64f34.entry.js} +1 -1
- package/lib/duet/{p-541301b8.system.entry.js → p-b3ab4a17.system.entry.js} +1 -1
- package/lib/duet/{p-e1e9de91.entry.js → p-b4df4c57.entry.js} +1 -1
- package/lib/duet/p-b4e4bf04.system.entry.js +4 -0
- package/lib/duet/{p-6e0ff6ff.entry.js → p-b5443923.entry.js} +1 -1
- package/lib/duet/p-b657f08f.system.entry.js +4 -0
- package/lib/duet/{p-64da9c94.system.entry.js → p-ba4bdb0d.system.entry.js} +1 -1
- package/lib/duet/{p-00f584d4.js → p-bb2d58bc.js} +1 -1
- package/lib/duet/{p-7cc379a7.system.entry.js → p-bc2be70e.system.entry.js} +1 -1
- package/lib/duet/p-bc50d23b.entry.js +4 -0
- package/lib/duet/{p-9070bf89.system.entry.js → p-bd2768a5.system.entry.js} +1 -1
- package/lib/duet/p-c1b1b16d.entry.js +4 -0
- package/lib/duet/{p-ecde67f6.entry.js → p-c8783040.entry.js} +1 -1
- package/lib/duet/p-cade991a.entry.js +4 -0
- package/lib/duet/{p-6c917ed9.entry.js → p-cca4a7db.entry.js} +1 -1
- package/lib/duet/p-ccf2bc0a.system.entry.js +4 -0
- package/lib/duet/{p-dc7c2dc7.system.entry.js → p-cd0e3537.system.entry.js} +1 -1
- package/lib/duet/{p-cf05a9a4.entry.js → p-ce754f76.entry.js} +1 -1
- package/lib/duet/{p-b839f59a.system.entry.js → p-ce7987e8.system.entry.js} +1 -1
- package/lib/duet/{p-6df59cfe.entry.js → p-cf1206a8.entry.js} +1 -1
- package/lib/duet/p-d08a89dc.entry.js +4 -0
- package/lib/duet/{p-0b249181.js → p-d11659fd.js} +1 -1
- package/lib/duet/p-d22c889b.entry.js +4 -0
- package/lib/duet/{p-de5b2f37.system.js → p-d6c69f62.system.js} +1 -1
- package/lib/duet/p-d6e16c5d.entry.js +4 -0
- package/lib/duet/{p-fc3f42ab.entry.js → p-d6fbbecc.entry.js} +1 -1
- package/lib/duet/{p-fe661e98.system.entry.js → p-d8d99c33.system.entry.js} +1 -1
- package/lib/duet/{p-064b79e8.entry.js → p-d9ad612c.entry.js} +1 -1
- package/lib/duet/{p-22c7d5ee.entry.js → p-d9b32ab3.entry.js} +1 -1
- package/lib/duet/{p-d4cf8310.system.entry.js → p-db2c01b7.system.entry.js} +1 -1
- package/lib/duet/{p-f368439a.entry.js → p-dcbb4af4.entry.js} +1 -1
- package/lib/duet/p-defbfc15.js +4 -0
- package/lib/duet/{p-9e4c6ea7.system.js → p-dfbd0dd7.system.js} +1 -1
- package/lib/duet/{p-0e255314.system.entry.js → p-e2122bd3.system.entry.js} +1 -1
- package/lib/duet/p-e4c8559c.system.js +4 -0
- package/lib/duet/p-e5997320.entry.js +4 -0
- package/lib/duet/{p-5cd8706b.entry.js → p-e6596826.entry.js} +1 -1
- package/lib/duet/{p-4ab05bd1.system.entry.js → p-e7f0d18b.system.entry.js} +1 -1
- package/lib/duet/{p-18766573.entry.js → p-e8d31be7.entry.js} +1 -1
- package/lib/duet/{p-493a25c0.system.entry.js → p-ead4b210.system.entry.js} +1 -1
- package/lib/duet/{p-754100c9.system.entry.js → p-eaeee3a3.system.entry.js} +1 -1
- package/lib/duet/{p-6faa9435.system.entry.js → p-eb26c1f5.system.entry.js} +1 -1
- package/lib/duet/{p-d46a310c.entry.js → p-eb9677dc.entry.js} +1 -1
- package/lib/duet/{p-5446b2c4.entry.js → p-ec58f8ee.entry.js} +1 -1
- package/lib/duet/{p-7f96f678.entry.js → p-ec5d2407.entry.js} +1 -1
- package/lib/duet/{p-30f2d20a.entry.js → p-ec70084a.entry.js} +1 -1
- package/lib/duet/p-ee067380.system.entry.js +4 -0
- package/lib/duet/{p-902c3cbe.system.entry.js → p-ee52d40a.system.entry.js} +1 -1
- package/lib/duet/{p-c3573c7a.entry.js → p-f0634b57.entry.js} +1 -1
- package/lib/duet/p-f0cc5629.js +4 -0
- package/lib/duet/{p-337009ba.system.entry.js → p-f28acd06.system.entry.js} +1 -1
- package/lib/duet/{p-0b2e581f.entry.js → p-f2957e8e.entry.js} +1 -1
- package/lib/duet/{p-8cacd5d4.entry.js → p-f33f42ce.entry.js} +1 -1
- package/lib/duet/p-f40c4ff4.entry.js +4 -0
- package/lib/duet/{p-632363b9.system.entry.js → p-f48366d3.system.entry.js} +1 -1
- package/lib/duet/p-f6000a03.js +4 -0
- package/lib/duet/{p-c5332265.system.entry.js → p-f6471762.system.entry.js} +2 -2
- package/lib/duet/{p-36637566.system.entry.js → p-f749aa8a.system.entry.js} +2 -2
- package/lib/duet/{p-997146fa.system.entry.js → p-f930128c.system.entry.js} +2 -2
- package/lib/duet/{p-8980f13e.entry.js → p-fa2ef682.entry.js} +1 -1
- package/lib/duet/p-fa3e0628.system.entry.js +4 -0
- package/lib/duet/{p-62cf9516.entry.js → p-fbcd3fb7.entry.js} +1 -1
- package/lib/duet/p-fc100c70.entry.js +4 -0
- package/lib/duet/{p-236df5f1.entry.js → p-fccf2ddc.entry.js} +1 -1
- package/lib/duet/{p-2526c848.entry.js → p-fd5d4f14.entry.js} +1 -1
- package/lib/duet/p-fdbc3f6c.entry.js +4 -0
- package/lib/duet/{p-191f51da.system.entry.js → p-fdbc9c7f.system.entry.js} +1 -1
- package/lib/duet/{p-a1a10757.system.entry.js → p-ffdfb64b.system.entry.js} +2 -2
- package/lib/esm/a11y-utils-92930863.js +18 -0
- package/lib/esm/{app-globals-6cbf18ba.js → app-globals-19322ff1.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +5 -5
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +4 -4
- package/lib/esm/duet-banner.entry.js +4 -4
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +7 -7
- package/lib/esm/duet-button_2.entry.js +7 -7
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +14 -25
- package/lib/esm/duet-card.entry.js +4 -4
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip_3.entry.js +647 -0
- package/lib/esm/duet-choice_2.entry.js +4 -4
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +44 -40
- package/lib/esm/duet-contact-card.entry.js +5 -5
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +5 -5
- package/lib/esm/duet-divider_2.entry.js +5 -5
- package/lib/esm/duet-editable-table_3.entry.js +11 -11
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +3 -3
- package/lib/esm/duet-header_2.entry.js +6 -6
- package/lib/esm/duet-hero.entry.js +4 -4
- package/lib/esm/duet-icon.entry.js +6 -6
- package/lib/esm/duet-input_2.entry.js +102 -13
- package/lib/esm/duet-layout.entry.js +7 -10
- package/lib/esm/duet-list_2.entry.js +5 -5
- package/lib/esm/duet-menu-bar-button.entry.js +3 -3
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-menu-bar-item.entry.js +24 -6
- package/lib/esm/duet-menu-bar-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar.entry.js +6 -6
- package/lib/esm/duet-modal.entry.js +11 -11
- package/lib/esm/duet-multiselect.entry.js +9 -9
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +8 -8
- package/lib/esm/duet-number-input.entry.js +4 -4
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +4 -4
- package/lib/esm/duet-pagination_2.entry.js +19 -19
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +7 -7
- package/lib/esm/duet-radio_2.entry.js +3 -3
- package/lib/esm/duet-range-slider.entry.js +3 -3
- package/lib/esm/duet-scrollable_3.entry.js +49 -28
- package/lib/esm/duet-section-layout.entry.js +5 -6
- package/lib/esm/duet-select.entry.js +3 -3
- package/lib/esm/duet-shaped-image.entry.js +3 -3
- package/lib/esm/duet-show-more.entry.js +5 -5
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +4 -4
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +13 -13
- package/lib/esm/duet-slideout.entry.js +11 -11
- package/lib/esm/duet-step_2.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-item.entry.js +23 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +8 -8
- package/lib/esm/duet-textarea.entry.js +7 -7
- package/lib/esm/duet-toggle.entry.js +2 -2
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +25 -6
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +8 -8
- package/lib/esm/duet-tooltip.entry.js +3 -3
- package/lib/esm/duet-tray.entry.js +6 -6
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +5 -5
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-2a3a0ed1.js → errorcodes.utils-953f4d47.js} +1 -1
- package/lib/esm/{focus-utils-1e2c1ed7.js → focus-utils-5147573d.js} +1 -1
- package/lib/esm/{index-f384e24a.js → index-940c081d.js} +1 -1
- package/lib/esm/{language-utils-b0c1f3cd.js → language-utils-b0c1eb01.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-e698dc9e.js → slot-utils-4a318cb9.js} +1 -1
- package/lib/esm/{token-utils-54a23ef5.js → token-utils-3c2fb643.js} +1 -1
- package/lib/{dist-custom-elements/p-d5c7ae62.js → esm/tokens-84fb2357.js} +25 -25
- package/lib/esm/{tokens.module-b5fab24a.js → tokens.module-216c2ae9.js} +25 -25
- package/lib/esm-es5/a11y-utils-92930863.js +4 -0
- package/lib/esm-es5/{app-globals-6cbf18ba.js → app-globals-19322ff1.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +2 -2
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip_3.entry.js +4 -0
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +2 -2
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +2 -2
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-item.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-overlay.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.entry.js +2 -2
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +2 -2
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-upload-item.entry.js +2 -2
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{errorcodes.utils-2a3a0ed1.js → errorcodes.utils-953f4d47.js} +1 -1
- package/lib/esm-es5/focus-utils-5147573d.js +4 -0
- package/lib/esm-es5/{index-f384e24a.js → index-940c081d.js} +1 -1
- package/lib/esm-es5/{language-utils-b0c1f3cd.js → language-utils-b0c1eb01.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-e698dc9e.js → slot-utils-4a318cb9.js} +1 -1
- package/lib/esm-es5/{token-utils-54a23ef5.js → token-utils-3c2fb643.js} +1 -1
- package/lib/esm-es5/tokens-84fb2357.js +4 -0
- package/lib/esm-es5/tokens.module-216c2ae9.js +4 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +24 -2
- package/lib/types/components/duet-combobox/duet-combobox-select.d.ts +2 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +3 -1
- package/lib/types/components/duet-input/duet-input.d.ts +22 -1
- package/lib/types/components/duet-link/duet-link.d.ts +0 -1
- package/lib/types/components/duet-menu-bar-item/duet-menu-bar-item.d.ts +17 -0
- package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +7 -2
- package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +6 -1
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +4 -0
- package/lib/types/components/duet-submenu-bar-item/duet-submenu-bar-item.d.ts +17 -0
- package/lib/types/components/duet-toolbar-item/duet-toolbar-item.d.ts +17 -0
- package/lib/types/components.d.ts +112 -10
- package/lib/types/utils/a11y-utils.d.ts +11 -0
- package/package.json +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +0 -290
- package/lib/cjs/duet-popup-menu-item.cjs.entry.js +0 -83
- package/lib/cjs/duet-popup-menu.cjs.entry.js +0 -250
- package/lib/dist-custom-elements/p-9ef37cc5.js +0 -327
- package/lib/duet/p-01ce7028.system.entry.js +0 -4
- package/lib/duet/p-04085d32.entry.js +0 -4
- package/lib/duet/p-053113a9.system.entry.js +0 -4
- package/lib/duet/p-08727974.entry.js +0 -4
- package/lib/duet/p-1b5ce17e.system.entry.js +0 -4
- package/lib/duet/p-1c8c9651.entry.js +0 -4
- package/lib/duet/p-20393f34.system.entry.js +0 -4
- package/lib/duet/p-22a5ac0a.entry.js +0 -4
- package/lib/duet/p-22cb3c28.system.entry.js +0 -4
- package/lib/duet/p-26c71746.system.js +0 -4
- package/lib/duet/p-2e108879.js +0 -4
- package/lib/duet/p-2fc10b59.entry.js +0 -4
- package/lib/duet/p-3233973c.system.entry.js +0 -4
- package/lib/duet/p-344d401b.entry.js +0 -4
- package/lib/duet/p-38ab5505.entry.js +0 -4
- package/lib/duet/p-3a5b7cf7.system.entry.js +0 -4
- package/lib/duet/p-45d596e8.entry.js +0 -4
- package/lib/duet/p-47e4eada.entry.js +0 -4
- package/lib/duet/p-50c83774.js +0 -4
- package/lib/duet/p-54f1f550.system.entry.js +0 -4
- package/lib/duet/p-59ae9e27.system.entry.js +0 -4
- package/lib/duet/p-63f80431.system.entry.js +0 -4
- package/lib/duet/p-6a0ed208.entry.js +0 -4
- package/lib/duet/p-6a34f6be.entry.js +0 -4
- package/lib/duet/p-6d405ca2.system.entry.js +0 -4
- package/lib/duet/p-6e8ebe18.entry.js +0 -4
- package/lib/duet/p-6fde361f.system.entry.js +0 -4
- package/lib/duet/p-76eec0c0.system.entry.js +0 -4
- package/lib/duet/p-86ba2e23.entry.js +0 -4
- package/lib/duet/p-8ab41ea5.entry.js +0 -4
- package/lib/duet/p-8d25bac7.entry.js +0 -4
- package/lib/duet/p-91115d1e.system.js +0 -4
- package/lib/duet/p-9d3ef1e0.system.entry.js +0 -4
- package/lib/duet/p-9d521ea1.system.entry.js +0 -4
- package/lib/duet/p-a2c01fc7.system.entry.js +0 -4
- package/lib/duet/p-a365e326.entry.js +0 -4
- package/lib/duet/p-a81e7736.entry.js +0 -4
- package/lib/duet/p-aa8648b3.system.entry.js +0 -4
- package/lib/duet/p-ae4cd43d.entry.js +0 -4
- package/lib/duet/p-b3bbea88.system.entry.js +0 -4
- package/lib/duet/p-b5aaa528.system.entry.js +0 -4
- package/lib/duet/p-b64eb2b3.system.entry.js +0 -4
- package/lib/duet/p-b93605ee.system.entry.js +0 -4
- package/lib/duet/p-c2ca9373.entry.js +0 -4
- package/lib/duet/p-cb9d279b.system.entry.js +0 -4
- package/lib/duet/p-ce289a58.system.entry.js +0 -4
- package/lib/duet/p-d3b84b94.entry.js +0 -4
- package/lib/duet/p-d5c7ae62.js +0 -4
- package/lib/duet/p-e408682d.system.entry.js +0 -4
- package/lib/duet/p-e69bd7e8.entry.js +0 -4
- package/lib/duet/p-ea445202.system.entry.js +0 -4
- package/lib/duet/p-ec6a0e13.entry.js +0 -4
- package/lib/duet/p-f1bf4f9e.entry.js +0 -4
- package/lib/duet/p-f5063a7d.system.js +0 -4
- package/lib/duet/p-f9eb5cbb.system.entry.js +0 -4
- package/lib/esm/duet-chip.entry.js +0 -286
- package/lib/esm/duet-popup-menu-item.entry.js +0 -79
- package/lib/esm-es5/duet-chip.entry.js +0 -4
- package/lib/esm-es5/duet-popup-menu-item.entry.js +0 -4
- package/lib/esm-es5/duet-popup-menu.entry.js +0 -4
- package/lib/esm-es5/focus-utils-1e2c1ed7.js +0 -4
- package/lib/esm-es5/tokens-e0e3d241.js +0 -4
- package/lib/esm-es5/tokens.module-b5fab24a.js +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as a,H as r,g as t}from"./p-00f584d4.js";import{i as o}from"./p-aaa7a7bd.js";const d=class{constructor(a){e(this,a),this.theme="",this.variation="default",this.background="normal",this.margin="auto"}componentWillLoad(){o(this)}render(){const e=`background-${this.background}`;return a(r,{key:"a98ddf68ce6e0d104c642e48a2d5d6d5660498f4",class:{"duet-m-0":"none"===this.margin}},a("span",{key:"aa121dca4645858c43d9d81bc29ec710723a026f",class:{"duet-badge":!0,[this.variation]:!0,[e]:!0,"duet-theme-turva":"turva"===this.theme}},a("slot",{key:"9baaff220b3bfaca21de1951ecc81fa1dde17c03"})))}get element(){return t(this)}};d.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-badge{display:inline-block;width:100%;padding:4.4444444444px 12px 5.4444444444px;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.75rem;font-style:normal;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);text-align:center;word-break:break-word;vertical-align:middle;background:#d9ebf4;border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.duet-theme-turva{padding:5.4444444444px 12px 4.4444444444px;font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-badge.warning{background:#fdecc9}.duet-badge.warning.duet-theme-turva{background:#fee8c3}.duet-badge.danger{background:#f8d3e0}.duet-badge.danger.duet-theme-turva{background:#f9d4cf}.duet-badge.success{background:#cce7de}.duet-badge.success.duet-theme-turva{background:#cee7dc}.duet-badge.subtle{color:rgb(101, 119, 135);background:none;outline:1px solid rgb(225, 227, 230);outline-offset:-1px}.duet-badge.subtle.duet-theme-turva{color:rgb(68, 68, 69);background:none;outline-color:rgb(228, 228, 230)}.duet-badge.background-strong.default{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-badge.background-strong.default.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(23, 28, 58)}.duet-badge.background-strong.warning{background:#f9c153}.duet-badge.background-strong.warning.duet-theme-turva{background:#fbb63f}.duet-badge.background-strong.danger{color:rgb(255, 255, 255);background:rgb(222, 35, 98)}.duet-badge.background-strong.danger.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(224, 42, 13)}.duet-badge.background-strong.success{color:rgb(255, 255, 255);background:rgb(0, 135, 90)}.duet-badge.background-strong.success.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(8, 135, 78)}.duet-badge.background-strong.subtle{border-color:rgb(207, 210, 212);outline-color:rgb(0, 41, 77)}.duet-badge.background-strong.subtle.duet-theme-turva{border-color:rgb(207, 207, 209);outline-color:rgb(23, 28, 58)}';export{d as duet_badge}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as t,h as i,H as a,g as n}from"./p-00f584d4.js";import{a as o,c as s}from"./p-d5c7ae62.js";import{i as d}from"./p-aaa7a7bd.js";import{a as r}from"./p-5e2f8206.js";import"./p-9c3c64b9.js";const h=class{constructor(i){e(this,i),this.duetEvent=t(this,"duetEvent",7),this.mql=[window.matchMedia(o.replace(/'/g,"")),window.matchMedia(s.replace(/'/g,""))],this.boundMqlFunctions=[],this.previousYScroll=0,this.scrollbarCheck=()=>{this.leftMoreVisible=this.container.scrollLeft>0,this.rightMoreVisible=this.container.scrollLeft!==this.container.scrollWidth-this.container.clientWidth},this.scrollToActive=()=>{let e;this.element.querySelectorAll("[active]").forEach((t=>{t.active&&(e=t)})),e&&e.offsetLeft&&e.offsetLeft>50&&(this.container.scrollLeft=e.offsetLeft-this.element.getBoundingClientRect().width/2+e.offsetWidth/2)},this.changeLogoSize=()=>{this.logoSize=this.mql[1].matches?"large":"medium"},this.handleLogoClick=e=>{this.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:this.logoHref},originalEvent:e})},this.hidden=!1,this.onBottom=!1,this.logoSize="large",this.leftMoreVisible=!1,this.rightMoreVisible=!1,this.theme="",this.language=r(),this.logo=!0,this.logoHref=void 0,this.logoLinkAccessibleLabel=void 0,this.accessibleLabel=void 0,this.hideOnScroll=!1}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hideOnScroll&&(clearTimeout(this.zindexTimer),this.onBottom=!0),this.hidden=!0):window.scrollY<150&&(this.hideOnScroll&&(this.zindexTimer=setTimeout((()=>{this.onBottom=!1}),300)),this.hidden=!1),this.previousYScroll=window.scrollY)}componentWillLoad(){d(this)}connectedCallback(){this.changeLogoSize();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeLogoSize.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=[]}componentDidLoad(){setTimeout((()=>{this.scrollbarCheck(),this.scrollToActive()}),0)}onWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.scrollToActive()}),100)}render(){const e=document.querySelectorAll("duet-slideout").length>0;return i(a,{key:"6772191fb52ef833296d4591848722cdd716fd8a"},i("nav",{key:"bbfd138c4487382bf33cd2a27a11abae07c1cd84",class:{"duet-menu-bar":!0,"duet-theme-turva":"turva"===this.theme,"horizontal-nav":e&&!this.logo,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},i("div",{key:"0e76aa9cf8e2088809c32ffb889ea7bd0e65f328",class:"top"}),i("div",{key:"3e0e929ab2dabd44122c86b3d89690084d49ee8c",class:{container:!0},ref:e=>this.container=e,onScroll:()=>this.scrollbarCheck()},this.logo&&i("div",{key:"daf3d473577d75062dbbdd2f4d277aecffddb806"},i("duet-logo",{key:"e560ec5ffbd0ab8c03a2284c6f5c24be44304595",size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language})),i("div",{key:"f90de1dde38ffad772fd1db9ef1949bd69651a17",class:"list center",role:"list"},i("div",{key:"e21ef580e08ebefe3ff5a23da0a6df2d2714c2b0",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),i("slot",{key:"fbfd2e2f6a9d69d0e5f0843d30f723beadde4c1b",name:"center"}),i("div",{key:"6d232d47954eb7590982353aa05a869353cd5103",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),i("div",{key:"14d79bc82134dd5449172dadccdd94e39508e3ce",class:"list right",role:"list"},i("slot",{key:"383cc225f16923f7538daf24ef5f5592ace15ece",name:"right"}))),i("div",{key:"5042a82358354e9a77e5f7d022d47bf46e9c6250",class:"bottom"})))}get element(){return n(this)}};h.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(225, 227, 230)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:-1px;z-index:1;width:56px;height:49px;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:-1px;z-index:1;width:56px;height:49px;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(0, 41, 77)}.duet-theme-turva .center{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)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 77, 128)}.duet-theme-turva .right{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)}';export{h as duet_menu_bar}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
System.register([],(function(r){"use strict";return{execute:function(){var _="rgb(0, 161, 212)";var a="rgb(178, 180, 179)";var o="rgb(11, 114, 136)";var l="rgb(199, 12, 112)";var e="rgb(122, 1, 196)";var c="rgb(211, 36, 131)";var t="rgb(161, 10, 78)";var g="rgb(168, 1, 78)";var v="rgb(213, 66, 3)";var i="rgb(9, 129, 148)";var s="rgb(169, 69, 124)";var d="rgb(54, 74, 129)";var u="rgb(23, 28, 58)";var n="rgb(222, 35, 98)";var b="rgb(255, 240, 243)";var x="rgb(255, 211, 219)";var m="rgb(89, 0, 45)";var y="rgb(255, 173, 190)";var p="rgb(252, 136, 162)";var h="rgb(243, 98, 134)";var w="rgb(255, 225, 231)";var z="rgb(231, 62, 107)";var f="rgb(214, 28, 82)";var k="rgb(185, 16, 74)";var q="rgb(153, 9, 66)";var S="rgb(120, 4, 56)";var I="rgb(224, 42, 13)";var U="rgb(122, 1, 196)";var j="rgb(0, 155, 204)";var A="rgb(27, 171, 75)";var E="rgb(255, 86, 34)";var B="rgb(245, 76, 154)";var C="rgb(194, 21, 101)";var F="rgb(192, 101, 247)";var H="rgb(0, 105, 191)";var M="rgb(19, 120, 53)";var R="rgb(179, 60, 24)";var O="rgb(13, 163, 166)";var D="rgb(11, 114, 136)";var G="rgb(179, 137, 24)";var J="rgb(128, 98, 17)";var K="rgb(0, 41, 77)";var L="rgb(207, 210, 212)";var N="rgb(144, 149, 153)";var P="rgb(116, 116, 117)";var Q="rgb(101, 119, 135)";var T="rgb(68, 68, 69)";var V="rgb(225, 227, 230)";var W="rgb(228, 228, 230)";var X="rgb(245, 248, 250)";var Y="rgb(245, 245, 247)";var Z="rgb(255, 255, 255)";var $="rgb(255, 255, 255)";var rr="rgb(207, 207, 209)";var _r="rgb(240, 247, 250)";var ar="rgb(217, 236, 245)";var or="rgb(8, 42, 77)";var lr="rgb(198, 225, 238)";var er="rgb(172, 210, 229)";var cr="rgb(131, 188, 217)";var tr="rgb(228, 241, 247)";var gr="rgb(50, 153, 204)";var vr="rgb(0, 119, 179)";var ir="rgb(0, 97, 155)";var sr="rgb(0, 75, 129)";var dr="rgb(3, 56, 102)";var ur="rgb(245, 248, 250)";var nr="rgb(212, 223, 229)";var br="rgb(17, 28, 38)";var xr="rgb(181, 198, 208)";var mr="rgb(153, 174, 186)";var yr="rgb(127, 150, 165)";var pr="rgb(228, 236, 239)";var hr="rgb(98, 121, 138)";var wr="rgb(81, 105, 123)";var zr="rgb(62, 84, 102)";var fr="rgb(45, 64, 81)";var kr="rgb(30, 45, 59)";var qr="rgb(0, 119, 179)";var Sr="rgb(0, 77, 128)";var Ir="rgb(148, 9, 37)";var Ur="rgb(0, 98, 154)";var jr="rgb(173, 11, 43)";var Ar="rgb(205, 229, 241)";var Er="rgb(244, 207, 214)";var Br="rgb(230, 242, 248)";var Cr="rgb(249, 230, 234)";var Fr="rgb(243, 249, 252)";var Hr="rgb(252, 243, 244)";var Mr="rgb(198, 12, 48)";var Rr="rgb(0, 41, 77)";var Or="rgb(23, 28, 58)";var Dr="rgb(0, 135, 90)";var Gr="rgb(244, 250, 247)";var Jr="rgb(218, 246, 233)";var Kr="rgb(4, 38, 33)";var Lr="rgb(191, 239, 218)";var Nr="rgb(163, 229, 202)";var Pr="rgb(134, 215, 185)";var Qr="rgb(231, 248, 239)";var Tr="rgb(105, 196, 166)";var Vr="rgb(77, 171, 143)";var Wr="rgb(48, 131, 105)";var Xr="rgb(29, 106, 88)";var Yr="rgb(13, 71, 59)";var Zr="rgb(8, 135, 78)";var $r="rgb(245, 247, 250)";var r_="rgb(222, 224, 228)";var __="rgb(8, 13, 38)";var a_="rgb(199, 202, 207)";var o_="rgb(175, 178, 186)";var l_="rgb(143, 147, 158)";var e_="rgb(234, 235, 239)";var c_="rgb(113, 118, 132)";var t_="rgb(98, 104, 122)";var g_="rgb(71, 78, 101)";var v_="rgb(45, 52, 79)";var i_="rgb(23, 28, 58)";var s_="rgb(255, 241, 241)";var d_="rgb(255, 213, 215)";var u_="rgb(51, 5, 20)";var n_="rgb(255, 185, 190)";var b_="rgb(252, 148, 158)";var x_="rgb(240, 102, 119)";var m_="rgb(255, 227, 228)";var y_="rgb(221, 49, 77)";var p_="rgb(198, 12, 48)";var h_="rgb(164, 4, 40)";var w_="rgb(126, 2, 35)";var z_="rgb(87, 4, 29)";var f_="rgb(247, 178, 40)";var k_="rgb(255, 251, 242)";var q_="rgb(255, 244, 198)";var S_="rgb(38, 26, 4)";var I_="rgb(255, 232, 160)";var U_="rgb(255, 217, 120)";var j_="rgb(255, 199, 79)";var A_="rgb(255, 247, 221)";var E_="rgb(247, 178, 40)";var B_="rgb(212, 151, 32)";var C_="rgb(156, 110, 22)";var F_="rgb(126, 87, 16)";var H_="rgb(81, 55, 9)";var M_="rgb(250, 164, 15)";var R_="'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";var O_="'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";var D_="'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";var G_="'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";var J_="1.25rem";var K_=r("f","1rem");var L_="0.875rem";var N_="1.5rem";var P_="0.75rem";var Q_="2.25rem";var T_="3rem";var V_="4.5rem";var W_="700";var X_="800";var Y_="400";var Z_="600";var $_="-0.01rem";var ra="1.5";var _a="1.25";var aa="1.1";var oa=r("a","'(min-width: 62em)'");var la=r("m","'(min-width: 48em)'");var ea=r("b","'(min-width: 36em)'");var ca="'(min-width: 64.0625em)'";var ta="'(max-width: 35.9375em)'";var ga=r("c","'(min-width: 76.25em)'");var va="'(max-width: 22.5em)'";var ia="'(min-width: 106.25em)'";var sa="'(max-width: 20.5em)'";var da="0.30";var ua="0.50";var na="0.75";var ba="0.85";var xa="50%";var ma="4px";var ya="12px";var pa="16px";var ha="8px";var wa="20rem";var za="0";var fa="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)";var ka="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)";var qa="0 2px 6px 0 rgba(0, 41, 77, 0.07)";var Sa="0 2px 6px 0 rgba(117, 117, 117, 0.13)";var Ia="0 0 0 1px #de2362";var Ua="0 0 0 1px #e55039";var ja="0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3";var Aa="0 0 0 1px #0077b3";var Ea="0 0 0 1px #171c3a";var Ba="0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a";var Ca="0 2px 10px 0 rgba(0, 41, 77, 0.1)";var Fa="0 0 0 1px #909599";var Ha="0 0 0 1px #747475";var Ma="0 2px 10px 0 rgba(117, 117, 117, 0.15)";var Ra="0 2px 20px 0 rgba(0, 0, 0, 0.2)";var Oa="0 2px 10px 0 rgba(0, 41, 77, 0.07)";var Da="0 2px 10px 0 rgba(117, 117, 117, 0.13)";var Ga="1px";var Ja="8rem";var Ka="1px";var La="1px";var Na="4rem";var Pa="30px";var Qa="24px";var Ta="20px";var Va="36px";var Wa="16px";var Xa="48px";var Ya="10px";var Za="72px";var $a="7px";var ro="1110px";var _o="2px";var ao="3rem";var oo="40px";var lo="30px";var eo="48px";var co="20px";var to="16px";var go="12px";var vo="28px";var io="8px";var so="36px";var uo="4px";var no="48px";var bo="2px";var xo="72px";var mo="94px";var yo="300ms ease";var po="600ms ease";var ho="-999999";var wo="1";var zo="600";var fo="400";var ko="200";var qo="250";var So="100";var Io="900";var Uo="700";var jo="950";var Ao="800";var Eo="300";var Bo="500";var Co={color_brand_blue:_,color_brand_gray_turva:a,color_category_family:o,color_category_family_turva:l,color_category_finance:e,color_category_home:c,color_category_home_turva:t,color_category_pet:g,color_category_travel:v,color_category_travel_turva:i,color_category_union_turva:s,color_category_vehicle:d,color_category_vehicle_turva:u,color_danger:n,color_danger_00:b,color_danger_100:x,color_danger_1000:m,color_danger_200:y,color_danger_300:p,color_danger_400:h,color_danger_50:w,color_danger_500:z,color_danger_600:f,color_danger_700:k,color_danger_800:q,color_danger_900:S,color_danger_turva:I,color_data_01:U,color_data_02:j,color_data_03:A,color_data_04:E,color_data_05:B,color_data_06:C,color_data_07:F,color_data_08:H,color_data_09:M,color_data_10:R,color_data_11:O,color_data_12:D,color_data_13:G,color_data_14:J,color_data_15:K,color_gray:L,color_gray_dark:N,color_gray_dark_turva:P,color_gray_darker:Q,color_gray_darker_turva:T,color_gray_light:V,color_gray_light_turva:W,color_gray_lighter:X,color_gray_lighter_turva:Y,color_gray_lightest:Z,color_gray_lightest_turva:$,color_gray_turva:rr,color_lt_blue_00:_r,color_lt_blue_100:ar,color_lt_blue_1000:or,color_lt_blue_200:lr,color_lt_blue_300:er,color_lt_blue_400:cr,color_lt_blue_50:tr,color_lt_blue_500:gr,color_lt_blue_600:vr,color_lt_blue_700:ir,color_lt_blue_800:sr,color_lt_blue_900:dr,color_lt_gray_00:ur,color_lt_gray_100:nr,color_lt_gray_1000:br,color_lt_gray_200:xr,color_lt_gray_300:mr,color_lt_gray_400:yr,color_lt_gray_50:pr,color_lt_gray_500:hr,color_lt_gray_600:wr,color_lt_gray_700:zr,color_lt_gray_800:fr,color_lt_gray_900:kr,color_primary:qr,color_primary_dark:Sr,color_primary_dark_turva:Ir,color_primary_darker:Ur,color_primary_darker_turva:jr,color_primary_light:Ar,color_primary_light_turva:Er,color_primary_lighter:Br,color_primary_lighter_turva:Cr,color_primary_lightest:Fr,color_primary_lightest_turva:Hr,color_primary_turva:Mr,color_secondary:Rr,color_secondary_turva:Or,color_success:Dr,color_success_00:Gr,color_success_100:Jr,color_success_1000:Kr,color_success_200:Lr,color_success_300:Nr,color_success_400:Pr,color_success_50:Qr,color_success_500:Tr,color_success_600:Vr,color_success_700:Wr,color_success_800:Xr,color_success_900:Yr,color_success_turva:Zr,color_turva_gray_00:$r,color_turva_gray_100:r_,color_turva_gray_1000:__,color_turva_gray_200:a_,color_turva_gray_300:o_,color_turva_gray_400:l_,color_turva_gray_50:e_,color_turva_gray_500:c_,color_turva_gray_600:t_,color_turva_gray_700:g_,color_turva_gray_800:v_,color_turva_gray_900:i_,color_turva_red_00:s_,color_turva_red_100:d_,color_turva_red_1000:u_,color_turva_red_200:n_,color_turva_red_300:b_,color_turva_red_400:x_,color_turva_red_50:m_,color_turva_red_500:y_,color_turva_red_600:p_,color_turva_red_700:h_,color_turva_red_800:w_,color_turva_red_900:z_,color_warning:f_,color_warning_00:k_,color_warning_100:q_,color_warning_1000:S_,color_warning_200:I_,color_warning_300:U_,color_warning_400:j_,color_warning_50:A_,color_warning_500:E_,color_warning_600:B_,color_warning_700:C_,color_warning_800:F_,color_warning_900:H_,color_warning_turva:M_,font_family_heading:R_,font_family_heading_turva:O_,font_family_text:D_,font_family_text_turva:G_,font_size_large:J_,font_size_medium:K_,font_size_small:L_,font_size_x_large:N_,font_size_x_small:P_,font_size_xx_large:Q_,font_size_xxx_large:T_,font_size_xxxx_large:V_,font_weight_bold:W_,font_weight_extra_bold:X_,font_weight_normal:Y_,font_weight_semi_bold:Z_,letter_spacing_heading:$_,line_height_medium:ra,line_height_small:_a,line_height_x_small:aa,media_query_large:oa,media_query_medium:la,media_query_small:ea,media_query_x_large:ca,media_query_x_small:ta,media_query_xx_large:ga,media_query_xx_small:va,media_query_xxx_large:ia,media_query_xxx_small:sa,opacity_30:da,opacity_50:ua,opacity_75:na,opacity_85:ba,radius_circle:xa,radius_default:ma,radius_intermediate:ya,radius_large:pa,radius_medium:ha,radius_pill:wa,radius_sharp:za,shadow_card:fa,shadow_card_turva:ka,shadow_default:qa,shadow_default_turva:Sa,shadow_error:Ia,shadow_error_turva:Ua,shadow_focus:ja,shadow_focus_input:Aa,shadow_focus_input_turva:Ea,shadow_focus_turva:Ba,shadow_hover:Ca,shadow_hover_input:Fa,shadow_hover_input_turva:Ha,shadow_hover_turva:Ma,shadow_modal:Ra,shadow_tooltip:Oa,shadow_tooltip_turva:Da,size_button_border:Ga,size_button_min_width:Ja,size_button_tiny_border:Ka,size_form_border:La,size_header:Na,size_icon_large:Pa,size_icon_medium:Qa,size_icon_small:Ta,size_icon_x_large:Va,size_icon_x_small:Wa,size_icon_xx_large:Xa,size_icon_xx_small:Ya,size_icon_xxx_large:Za,size_icon_xxx_small:$a,size_layout_max_width:ro,size_medium_border:_o,size_navigation:ao,size_step_medium:oo,size_step_small:lo,size_tappable_square:eo,space_large:co,space_medium:to,space_small:go,space_x_large:vo,space_x_small:io,space_xx_large:so,space_xx_small:uo,space_xxx_large:no,space_xxx_small:bo,space_xxxx_large:xo,space_xxxxx_large:mo,transition_quickly:yo,transition_slowly:po,z_index_deep:ho,z_index_default:wo,z_index_dropdown:zo,z_index_header:fo,z_index_mask:ko,z_index_mask_buttons:qo,z_index_masked:So,z_index_modal:Io,z_index_overlay:Uo,z_index_popup:jo,z_index_spinner:Ao,z_index_sticky:Eo,z_index_toast:Bo};var Fo=Object.freeze({__proto__:null,color_brand_blue:_,color_brand_gray_turva:a,color_category_family:o,color_category_family_turva:l,color_category_finance:e,color_category_home:c,color_category_home_turva:t,color_category_pet:g,color_category_travel:v,color_category_travel_turva:i,color_category_union_turva:s,color_category_vehicle:d,color_category_vehicle_turva:u,color_danger:n,color_danger_00:b,color_danger_100:x,color_danger_1000:m,color_danger_200:y,color_danger_300:p,color_danger_400:h,color_danger_50:w,color_danger_500:z,color_danger_600:f,color_danger_700:k,color_danger_800:q,color_danger_900:S,color_danger_turva:I,color_data_01:U,color_data_02:j,color_data_03:A,color_data_04:E,color_data_05:B,color_data_06:C,color_data_07:F,color_data_08:H,color_data_09:M,color_data_10:R,color_data_11:O,color_data_12:D,color_data_13:G,color_data_14:J,color_data_15:K,color_gray:L,color_gray_dark:N,color_gray_dark_turva:P,color_gray_darker:Q,color_gray_darker_turva:T,color_gray_light:V,color_gray_light_turva:W,color_gray_lighter:X,color_gray_lighter_turva:Y,color_gray_lightest:Z,color_gray_lightest_turva:$,color_gray_turva:rr,color_lt_blue_00:_r,color_lt_blue_100:ar,color_lt_blue_1000:or,color_lt_blue_200:lr,color_lt_blue_300:er,color_lt_blue_400:cr,color_lt_blue_50:tr,color_lt_blue_500:gr,color_lt_blue_600:vr,color_lt_blue_700:ir,color_lt_blue_800:sr,color_lt_blue_900:dr,color_lt_gray_00:ur,color_lt_gray_100:nr,color_lt_gray_1000:br,color_lt_gray_200:xr,color_lt_gray_300:mr,color_lt_gray_400:yr,color_lt_gray_50:pr,color_lt_gray_500:hr,color_lt_gray_600:wr,color_lt_gray_700:zr,color_lt_gray_800:fr,color_lt_gray_900:kr,color_primary:qr,color_primary_dark:Sr,color_primary_dark_turva:Ir,color_primary_darker:Ur,color_primary_darker_turva:jr,color_primary_light:Ar,color_primary_light_turva:Er,color_primary_lighter:Br,color_primary_lighter_turva:Cr,color_primary_lightest:Fr,color_primary_lightest_turva:Hr,color_primary_turva:Mr,color_secondary:Rr,color_secondary_turva:Or,color_success:Dr,color_success_00:Gr,color_success_100:Jr,color_success_1000:Kr,color_success_200:Lr,color_success_300:Nr,color_success_400:Pr,color_success_50:Qr,color_success_500:Tr,color_success_600:Vr,color_success_700:Wr,color_success_800:Xr,color_success_900:Yr,color_success_turva:Zr,color_turva_gray_00:$r,color_turva_gray_100:r_,color_turva_gray_1000:__,color_turva_gray_200:a_,color_turva_gray_300:o_,color_turva_gray_400:l_,color_turva_gray_50:e_,color_turva_gray_500:c_,color_turva_gray_600:t_,color_turva_gray_700:g_,color_turva_gray_800:v_,color_turva_gray_900:i_,color_turva_red_00:s_,color_turva_red_100:d_,color_turva_red_1000:u_,color_turva_red_200:n_,color_turva_red_300:b_,color_turva_red_400:x_,color_turva_red_50:m_,color_turva_red_500:y_,color_turva_red_600:p_,color_turva_red_700:h_,color_turva_red_800:w_,color_turva_red_900:z_,color_warning:f_,color_warning_00:k_,color_warning_100:q_,color_warning_1000:S_,color_warning_200:I_,color_warning_300:U_,color_warning_400:j_,color_warning_50:A_,color_warning_500:E_,color_warning_600:B_,color_warning_700:C_,color_warning_800:F_,color_warning_900:H_,color_warning_turva:M_,font_family_heading:R_,font_family_heading_turva:O_,font_family_text:D_,font_family_text_turva:G_,font_size_large:J_,font_size_medium:K_,font_size_small:L_,font_size_x_large:N_,font_size_x_small:P_,font_size_xx_large:Q_,font_size_xxx_large:T_,font_size_xxxx_large:V_,font_weight_bold:W_,font_weight_extra_bold:X_,font_weight_normal:Y_,font_weight_semi_bold:Z_,letter_spacing_heading:$_,line_height_medium:ra,line_height_small:_a,line_height_x_small:aa,media_query_large:oa,media_query_medium:la,media_query_small:ea,media_query_x_large:ca,media_query_x_small:ta,media_query_xx_large:ga,media_query_xx_small:va,media_query_xxx_large:ia,media_query_xxx_small:sa,opacity_30:da,opacity_50:ua,opacity_75:na,opacity_85:ba,radius_circle:xa,radius_default:ma,radius_intermediate:ya,radius_large:pa,radius_medium:ha,radius_pill:wa,radius_sharp:za,shadow_card:fa,shadow_card_turva:ka,shadow_default:qa,shadow_default_turva:Sa,shadow_error:Ia,shadow_error_turva:Ua,shadow_focus:ja,shadow_focus_input:Aa,shadow_focus_input_turva:Ea,shadow_focus_turva:Ba,shadow_hover:Ca,shadow_hover_input:Fa,shadow_hover_input_turva:Ha,shadow_hover_turva:Ma,shadow_modal:Ra,shadow_tooltip:Oa,shadow_tooltip_turva:Da,size_button_border:Ga,size_button_min_width:Ja,size_button_tiny_border:Ka,size_form_border:La,size_header:Na,size_icon_large:Pa,size_icon_medium:Qa,size_icon_small:Ta,size_icon_x_large:Va,size_icon_x_small:Wa,size_icon_xx_large:Xa,size_icon_xx_small:Ya,size_icon_xxx_large:Za,size_icon_xxx_small:$a,size_layout_max_width:ro,size_medium_border:_o,size_navigation:ao,size_step_medium:oo,size_step_small:lo,size_tappable_square:eo,space_large:co,space_medium:to,space_small:go,space_x_large:vo,space_x_small:io,space_xx_large:so,space_xx_small:uo,space_xxx_large:no,space_xxx_small:bo,space_xxxx_large:xo,space_xxxxx_large:mo,transition_quickly:yo,transition_slowly:po,z_index_deep:ho,z_index_default:wo,z_index_dropdown:zo,z_index_header:fo,z_index_mask:ko,z_index_mask_buttons:qo,z_index_masked:So,z_index_modal:Io,z_index_overlay:Uo,z_index_popup:jo,z_index_spinner:Ao,z_index_sticky:Eo,z_index_toast:Bo,default:Co});r("t",Fo)}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
System.register(["./p-d3101c8a.system.js","./p-b864159a.system.js","./p-0853dd3b.system.js"],(function(t){"use strict";var e,a,d,i,n,o;return{setters:[function(t){e=t.r;a=t.h;d=t.H;i=t.g},function(t){n=t.i},function(t){o=t.c}],execute:function(){var p="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=page-heading]){width:calc(100% + 32px);margin:0 -16px 0 -16px}@media (min-width: 36em){::slotted([slot=page-heading]){width:calc(100% + 56px);margin:0 -28px 0 -28px}}@media (min-width: 62em){::slotted([slot=page-heading]){width:calc(100% + 112px);margin:0 -56px 0 -56px}}:host(.center) ::slotted([slot=page-heading]){width:calc(100% + 32px);margin:0 -16px 0 -16px}@media (min-width: 36em){:host(.center) ::slotted([slot=page-heading]){width:calc(100% + 96px);margin:0 -48px 0 -48px}}@media (min-width: 48em){:host(.center) ::slotted([slot=page-heading]){width:calc(100% + 144px);margin:0 -72px 0 -72px}}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-middle) .heading-wrapper{padding:0 !important}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (max-width: 20.5em){.duet-layout.padding-xxx-small{padding:0}}@media (max-width: 22.5em){.duet-layout.padding-xx-small{padding:0}}@media (max-width: 35.9375em){.duet-layout.padding-x-small{padding:0}}@media (min-width: 36em){.duet-layout.padding-small{padding:0}}@media (min-width: 48em){.duet-layout.padding-medium{padding:0}}@media (min-width: 62em){.duet-layout.padding-large{padding:0}}@media (min-width: 64.0625em){.duet-layout.padding-x-large{padding:0}}@media (min-width: 76.25em){.duet-layout.padding-xx-large{padding:0}}@media (min-width: 106.25em){.duet-layout.padding-xxx-large{padding:0}}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-layout-has-top{margin-top:0}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout.duet-center{display:flex;align-items:center;justify-content:center;width:100%;max-width:888px}@media (min-width: 36em){.duet-layout.duet-center{padding:0 48px}}@media (min-width: 48em){.duet-layout.duet-center{padding:0 72px}}@media (min-width: 62em){.duet-layout.duet-center{width:100%}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main,.duet-sidebar,.duet-layout-top,.duet-layout-bottom{display:block;width:100%}.duet-layout-top{position:relative;display:block;width:100%;margin:72px auto 0}.duet-layout-top.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-top .duet-layout-top-wrapper{padding:0 20px;margin:0 auto}@media (min-width: 36em){.duet-layout-top .duet-layout-top-wrapper{padding:0 28px}}@media (min-width: 62em){.duet-layout-top .duet-layout-top-wrapper{padding:0 56px}}@media (min-width: 76.25em){.duet-layout-top .duet-layout-top-wrapper{max-width:1110px;padding:0}}.duet-center .duet-layout-top-wrapper{max-width:888px}@media (min-width: 36em){.duet-center .duet-layout-top-wrapper{padding:0 48px}}@media (min-width: 48em){.duet-center .duet-layout-top-wrapper{padding:0 72px}}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}@media (min-width: 62em){.duet-sidebar{min-width:256px;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container{width:auto;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container.has-tabs{margin-top:89px}}@media (min-width: 62em){.duet-sidebar-container.sticky{position:sticky}.duet-sidebar-container.sticky.with-links{top:calc(3rem + 20px)}.duet-sidebar-container.sticky.without-links{top:calc(4rem + 20px)}}";var m=p;var u=t("duet_layout",function(){function t(t){e(this,t);this.hasSidebar=false;this.hasTop=false;this.hasPageHeading=false;this.sticky=false;this.margin="auto";this.stickyDistance="with-links";this.center=false;this.tabs=false;this.middle=false;this.paddingBreakpoint=undefined}t.prototype.componentWillLoad=function(){this.hasSidebar=!!this.element.querySelector("[slot='sidebar']");this.hasTop=!!this.element.querySelector("[slot='top']");this.hasPageHeading=!!this.element.querySelector("[slot='page-heading']");o(this.element,"page-heading","duet-page-heading",1,true);if(!this.element.querySelector("[slot='main']")){console.warn("[DUET WARNING]: Nothing passed to <duet-layout> named slots. Please use one of 'main', 'sidebar' or 'top' to display contents.")}};t.prototype.render=function(){var t,e;return a(d,{key:"815cf46b505a58a4f1db64f0737eb2461fffe1b4",class:{center:this.center,"duet-middle":this.middle,"duet-ie":n()}},this.hasTop&&a("div",{key:"97f256b275cea1d8303d3c2b2fafcbc83ab17227",class:{"duet-layout-top":true,"duet-m-0":this.margin==="none","duet-center":this.center}},a("div",{key:"e08dfb887503e2db0e2d315bce69c4243ca0a368",class:"duet-layout-top-wrapper"},a("slot",{key:"a0a214dab158a6228b6d8e69a4ae77b51dc3da68",name:"top"}))),a("div",{key:"37a6738ab3a9695408026c8d83bbc1dbeb17490e",class:(t={"duet-layout":true,"duet-layout-has-top":this.hasTop,"has-sidebar":this.hasSidebar,"duet-m-0":this.margin==="none","duet-center":this.center},t["padding-".concat(this.paddingBreakpoint)]=!!this.paddingBreakpoint,t)},a("main",{key:"9250e251d618850e3ca2a16c7e15f0d921b1cc0f",class:"duet-main"},this.hasPageHeading&&a("slot",{key:"6bd2301fc4f57c18bab92ce7278ec037f38971d4",name:"page-heading"}),a("slot",{key:"d37514f4cc602e46ecbc78e87647076c9e550c94",name:"main"})),this.hasSidebar&&a("aside",{key:"6ad7bd59e98bfe3123a1cccce343fb0f158387e0",class:"duet-sidebar"},a("div",{key:"6476ae186902b93bac02f5512c33ca2419202d8a",class:(e={"duet-sidebar-container":true,"has-tabs":this.tabs,sticky:this.sticky},e[this.stickyDistance]=this.sticky,e)},a("slot",{key:"4406fe27dbd20dd18448aa76800be82b3333c306",name:"sidebar"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());u.style=m}}}));
|
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f384e24a.js';
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-860041c5.js';
|
|
6
|
-
import { c as createID } from './create-id-149a1b6d.js';
|
|
7
|
-
import { s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './keyboard-utils-439bcc8b.js';
|
|
8
|
-
|
|
9
|
-
const duetChipCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.input){margin-top:6px !important;margin-right:0 !important;margin-bottom:6px !important;margin-left:4px !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:1px;hyphens:none;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(207, 210, 212);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(207, 207, 209)}.duet-chip-container.duet-theme-turva:hover{border-color:rgb(198, 12, 48)}.duet-chip-container:hover{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-disabled{color:rgb(101, 119, 135) !important;cursor:default;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-chip-container.duet-chip-disabled.duet-theme-turva{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled:hover{background:rgb(245, 248, 250);border-color:rgb(245, 248, 250)}.duet-chip-container.duet-chip-disabled:hover.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled button,.duet-chip-container.duet-chip-disabled label{cursor:default}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:8px 14px;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:600;line-height:1rem;color:rgb(0, 41, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:10px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-has-icon.duet-chip-radio-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container.duet-chip-has-icon button,.duet-chip-container.duet-chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:8px}.duet-chip-container duet-icon:not(.check-mark){width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{padding:0 !important;background:rgb(230, 242, 248);border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(205, 229, 241)}.duet-chip-container.duet-chip-filter-checked.chip-has-icon button,.duet-chip-container.duet-chip-filter-checked.chip-has-icon label,.duet-chip-container.duet-chip-radio-checked.chip-has-icon button,.duet-chip-container.duet-chip-radio-checked.chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva:hover,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva:hover{background:rgb(228, 228, 230)}.duet-chip-container .duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container .duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(243, 249, 252);border-color:rgb(243, 249, 252)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input{display:flex;align-items:center;padding-right:0 !important}.duet-chip-container.duet-chip-input .duet-chip-input-button{flex-grow:1}.duet-chip-container.duet-chip-input .duet-chip-remove-button{width:26px;padding:8px 16px 8px 0;margin:-8px 0}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}:host(.user-is-tabbing) .duet-chip-focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-chip-focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input,*::slotted([slot=input]){position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;margin:0;cursor:pointer;border-width:2px;border-radius:8px;opacity:0;appearance:none}*::slotted([slot=input]:not([aria-disabled=true])){z-index:1}";
|
|
10
|
-
const DuetChipStyle0 = duetChipCss;
|
|
11
|
-
|
|
12
|
-
const DuetChip = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
registerInstance(this, hostRef);
|
|
15
|
-
this.duetChange = createEvent(this, "duetChange", 3);
|
|
16
|
-
this.duetRemove = createEvent(this, "duetRemove", 3);
|
|
17
|
-
this.duetFocus = createEvent(this, "duetFocus", 7);
|
|
18
|
-
this.duetBlur = createEvent(this, "duetBlur", 7);
|
|
19
|
-
/**
|
|
20
|
-
* Own Properties.
|
|
21
|
-
*/
|
|
22
|
-
this.chipId = createID("DuetChip");
|
|
23
|
-
this.enforceNoDisabledSelected = () => {
|
|
24
|
-
if (this.disabled && this.checked) {
|
|
25
|
-
console.error("Duet error: pre-selected chip may not be disabled");
|
|
26
|
-
this.disabled = false;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
this.radioInputListenersRemove = radioInput => {
|
|
30
|
-
radioInput.removeEventListener("change", this.onRadioChange);
|
|
31
|
-
radioInput.removeEventListener("click", this.onRadioClick);
|
|
32
|
-
radioInput.removeEventListener("focus", this.onFocus);
|
|
33
|
-
radioInput.removeEventListener("blur", this.onBlur);
|
|
34
|
-
};
|
|
35
|
-
this.radioInputListenersAdd = radioInput => {
|
|
36
|
-
radioInput.addEventListener("change", this.onRadioChange);
|
|
37
|
-
radioInput.addEventListener("click", this.onRadioClick);
|
|
38
|
-
radioInput.addEventListener("focus", this.onFocus);
|
|
39
|
-
radioInput.addEventListener("blur", this.onBlur);
|
|
40
|
-
};
|
|
41
|
-
this.radioInputSetUp = () => {
|
|
42
|
-
const slotInput = this.element.querySelector("input[slot=input]");
|
|
43
|
-
const radioInput = slotInput || document.createElement("input");
|
|
44
|
-
radioInput.slot = "input";
|
|
45
|
-
radioInput.ariaDisabled = this.disabled ? "true" : undefined;
|
|
46
|
-
radioInput.id = this.identifier || this.chipId;
|
|
47
|
-
radioInput.type = "radio";
|
|
48
|
-
radioInput.name = this.name;
|
|
49
|
-
radioInput.value = this.value;
|
|
50
|
-
radioInput.checked = this.checked;
|
|
51
|
-
if (slotInput) {
|
|
52
|
-
this.radioInputListenersRemove(radioInput);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
this.element.appendChild(radioInput);
|
|
56
|
-
}
|
|
57
|
-
this.radioInputListenersAdd(radioInput);
|
|
58
|
-
this.focusableElement = radioInput;
|
|
59
|
-
};
|
|
60
|
-
this.popupSetUp = () => {
|
|
61
|
-
const popup = document.querySelector(`duet-popup-menu#${this.popup}`);
|
|
62
|
-
if (popup) {
|
|
63
|
-
this.popupElement = popup;
|
|
64
|
-
popup.controller = this.element;
|
|
65
|
-
const originalText = this.element.textContent;
|
|
66
|
-
const originalValue = this.value;
|
|
67
|
-
if (!popup.id) {
|
|
68
|
-
popup.id = "popup-menu";
|
|
69
|
-
}
|
|
70
|
-
popup.addEventListener("duetToggle", (evt) => {
|
|
71
|
-
this.popupOpen = evt.detail.open;
|
|
72
|
-
});
|
|
73
|
-
const clearActive = () => {
|
|
74
|
-
popup.querySelectorAll("duet-popup-menu-item").forEach(item => {
|
|
75
|
-
item.active = false;
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
popup.querySelectorAll("duet-popup-menu-item").forEach(item => {
|
|
79
|
-
item.addEventListener("click", evt => {
|
|
80
|
-
var _a;
|
|
81
|
-
const value = (_a = item.value) !== null && _a !== void 0 ? _a : item.innerText;
|
|
82
|
-
if (!item.active) {
|
|
83
|
-
clearActive();
|
|
84
|
-
item.active = true;
|
|
85
|
-
this.element.textContent = item.innerText;
|
|
86
|
-
this.value = value;
|
|
87
|
-
this.checked = true;
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
clearActive();
|
|
91
|
-
this.element.textContent = originalText;
|
|
92
|
-
this.value = originalValue;
|
|
93
|
-
this.checked = false;
|
|
94
|
-
}
|
|
95
|
-
this.emitChange(evt);
|
|
96
|
-
// A workaround to the difference of event handling between the browers.
|
|
97
|
-
// Chrome will emit a separate click event on the chip after the popup is closed, resulting popup.toggle() to
|
|
98
|
-
// open the popup again. Firefox does not have this behavior.
|
|
99
|
-
setTimeout(() => {
|
|
100
|
-
if (this.popupElement.isOpen()) {
|
|
101
|
-
this.popupElement.hide();
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Component event handling.
|
|
110
|
-
*/
|
|
111
|
-
this.onFocus = (ev) => {
|
|
112
|
-
this.focus = true;
|
|
113
|
-
this.duetFocus.emit({
|
|
114
|
-
originalEvent: ev,
|
|
115
|
-
checked: this.checked,
|
|
116
|
-
value: this.value,
|
|
117
|
-
component: "duet-chip",
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
this.onBlur = (ev) => {
|
|
121
|
-
this.focus = false;
|
|
122
|
-
this.duetBlur.emit({
|
|
123
|
-
originalEvent: ev,
|
|
124
|
-
checked: this.checked,
|
|
125
|
-
value: this.value,
|
|
126
|
-
component: "duet-chip",
|
|
127
|
-
});
|
|
128
|
-
};
|
|
129
|
-
this.emitChange = originalEvent => {
|
|
130
|
-
this.duetChange.emit({
|
|
131
|
-
originalEvent,
|
|
132
|
-
checked: this.checked,
|
|
133
|
-
value: this.value,
|
|
134
|
-
component: "duet-chip",
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Change checked state and emit duetChange event.
|
|
139
|
-
*/
|
|
140
|
-
this.onFilterChange = (evt) => {
|
|
141
|
-
this.checked = !this.checked;
|
|
142
|
-
this.emitChange(evt);
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* Change checked state and emit duetChange event.
|
|
146
|
-
*/
|
|
147
|
-
this.onRadioChange = (evt) => {
|
|
148
|
-
const input = this.focusableElement;
|
|
149
|
-
const inputChecked = input.checked;
|
|
150
|
-
this.checked = inputChecked;
|
|
151
|
-
this.emitChange(evt);
|
|
152
|
-
};
|
|
153
|
-
this.onRadioClick = (evt) => {
|
|
154
|
-
if (this.disabled) {
|
|
155
|
-
evt.preventDefault();
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
/**
|
|
159
|
-
* Stop propagation and prevent default if popup is present, as the popup controls value and checked state.
|
|
160
|
-
*/
|
|
161
|
-
this.onFilterClick = (evt) => {
|
|
162
|
-
if (this.disabled) {
|
|
163
|
-
evt.stopPropagation();
|
|
164
|
-
evt.preventDefault();
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
if (this.popupElement) {
|
|
168
|
-
evt.stopPropagation();
|
|
169
|
-
evt.preventDefault();
|
|
170
|
-
this.popupElement.toggle();
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* Remove input chip
|
|
175
|
-
*/
|
|
176
|
-
this.onRemoveClick = (evt) => {
|
|
177
|
-
evt.stopPropagation();
|
|
178
|
-
evt.preventDefault();
|
|
179
|
-
this.duetRemove.emit({
|
|
180
|
-
originalEvent: evt,
|
|
181
|
-
checked: this.checked,
|
|
182
|
-
value: this.value,
|
|
183
|
-
component: "duet-chip",
|
|
184
|
-
});
|
|
185
|
-
this.element.remove();
|
|
186
|
-
};
|
|
187
|
-
this.focus = false;
|
|
188
|
-
this.popupElement = undefined;
|
|
189
|
-
this.popupOpen = undefined;
|
|
190
|
-
this.accessibleLabel = undefined;
|
|
191
|
-
this.variation = "button";
|
|
192
|
-
this.size = "medium";
|
|
193
|
-
this.popup = undefined;
|
|
194
|
-
this.icon = "";
|
|
195
|
-
this.theme = "";
|
|
196
|
-
this.identifier = undefined;
|
|
197
|
-
this.value = undefined;
|
|
198
|
-
this.name = undefined;
|
|
199
|
-
this.checked = false;
|
|
200
|
-
this.disabled = false;
|
|
201
|
-
this.accessibleExpanded = undefined;
|
|
202
|
-
this.accessiblePopup = "false";
|
|
203
|
-
}
|
|
204
|
-
clearOtherRadioButtons() {
|
|
205
|
-
if (this.variation === "radio" && this.checked) {
|
|
206
|
-
const chips = document.querySelectorAll(`duet-chip[variation="radio"][name="${this.name}"]`);
|
|
207
|
-
chips.forEach(chip => {
|
|
208
|
-
if (chip !== this.element) {
|
|
209
|
-
chip.checked = false;
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Component lifecycle events.
|
|
216
|
-
*/
|
|
217
|
-
componentWillLoad() {
|
|
218
|
-
inheritGlobalTheme(this);
|
|
219
|
-
this.popupSetUp();
|
|
220
|
-
this.enforceNoDisabledSelected();
|
|
221
|
-
}
|
|
222
|
-
connectedCallback() {
|
|
223
|
-
subscribeTabbingChange(this);
|
|
224
|
-
}
|
|
225
|
-
disconnectedCallback() {
|
|
226
|
-
unsubscribeTabbingChange(this);
|
|
227
|
-
}
|
|
228
|
-
componentDidRender() {
|
|
229
|
-
if (this.variation === "radio") {
|
|
230
|
-
this.radioInputSetUp();
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
getAccessibleExpanded() {
|
|
234
|
-
if (this.accessibleExpanded != null) {
|
|
235
|
-
return (!!this.accessibleExpanded).toString();
|
|
236
|
-
}
|
|
237
|
-
if (this.popupElement) {
|
|
238
|
-
return this.popupOpen ? "true" : "false";
|
|
239
|
-
}
|
|
240
|
-
return undefined;
|
|
241
|
-
}
|
|
242
|
-
getAccessiblePopup() {
|
|
243
|
-
if (this.popupElement) {
|
|
244
|
-
return "true";
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
return this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Sets focus. Use this method instead of the global focus().
|
|
252
|
-
*/
|
|
253
|
-
async setFocus(options) {
|
|
254
|
-
setTimeout(() => this.focusableElement.focus(options), 200);
|
|
255
|
-
}
|
|
256
|
-
render() {
|
|
257
|
-
var _a;
|
|
258
|
-
const identifier = this.identifier || this.chipId;
|
|
259
|
-
const classes = {
|
|
260
|
-
"duet-chip-container": true,
|
|
261
|
-
[`duet-chip-${this.variation}`]: true,
|
|
262
|
-
"duet-chip-focus": this.focus,
|
|
263
|
-
"duet-chip-has-icon": !!this.icon,
|
|
264
|
-
"duet-chip-has-popup": this.variation === "filter" && !!this.popupElement,
|
|
265
|
-
"duet-theme-turva": this.theme === "turva",
|
|
266
|
-
"duet-chip-filter-checked": this.variation === "filter" && this.checked,
|
|
267
|
-
"duet-chip-radio-checked": this.variation === "radio" && this.checked,
|
|
268
|
-
"duet-chip-filter-popup-open": this.popupOpen,
|
|
269
|
-
"duet-chip-disabled": this.disabled,
|
|
270
|
-
[this.size]: true,
|
|
271
|
-
};
|
|
272
|
-
const focusHandlers = {
|
|
273
|
-
onFocus: this.onFocus,
|
|
274
|
-
onBlur: this.onBlur,
|
|
275
|
-
ref: el => (this.focusableElement = el),
|
|
276
|
-
};
|
|
277
|
-
return (h(Host, { key: '83bf513ef7192b64d92eb428ca47fbdf317468d9', class: { [this.variation]: true } }, this.variation === "button" && (h("span", { key: '750fdb0037f02571a465c86dfed9f81a4e4f1110', class: classes }, h("button", Object.assign({ key: '49d5409a3600f91d6feefdafb207d17e330f53a3', id: identifier, "aria-label": this.accessibleLabel, "aria-disabled": this.disabled ? "true" : undefined, name: this.name, value: this.value, onClick: this.disabled ? evt => evt.stopPropagation() : undefined }, focusHandlers), h("span", { key: '609549b8eb1bc7b9c3e7049f94dc9678b9dc259f', class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { key: '9167ad7ccd13479061d6849af2938bc868e51677', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", { key: 'f8ab715a57220b96dbdbd2478207c4ba40ba325b' })))), this.variation === "input" && (h("span", { key: '0f1faa69c817a88de8716de8b261fa63688c899b', class: classes }, h("button", Object.assign({ key: '1955c7a24051d1c5b7671bf4a8438ee1c014b7cc', id: identifier, class: "duet-chip-input-button", value: this.value, "aria-label": this.accessibleLabel }, focusHandlers), h("span", { key: '3d69ad3ec1037f7b8278156392e902a2317f758c', class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { key: 'c056e4f37ca87f98fb8743d5b723232e8335f83c', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", { key: 'f257712ed166db7feb280d894bb1c111fa6fe171' })), h("button", { key: '0735914e5223ab4aed75f03e08e39af6a10ced8e', class: "duet-chip-remove-button", onClick: this.onRemoveClick }, h("duet-icon", { key: '3478c9f87f043e61f96a7595a35db8849c0c730c', name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (h("span", { key: 'a656fd6ce69c6201d0dd7407170c88c47e8f2a67', class: classes }, h("input", Object.assign({ key: '51dd1e0898d2af86d493e25b9d623d422a1e3ca8', "aria-haspopup": this.getAccessiblePopup(), "aria-controls": (_a = this.popupElement) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), h("label", { key: '60a550a09fcebb26e886503f0d9c637e6e2447cc', htmlFor: identifier }, this.icon && (h("span", { key: 'ba317cf437844d8c8694956e114687fa0d531daf', class: "duet-chip-icon-container" }, h("duet-icon", { key: '4e6bd4e5e0003bf649929dfdb36ca0f5b00e3e4c', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), h("duet-icon", { key: '7d427ed0b6d4d15a1eb1b3c0515e3d0d119a5197', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), h("slot", { key: '943da2eae596920b321008ca6d927411109555db' }), this.popupElement && (h("span", { key: 'ccff1c7a99e9bf1b96449d061526a6f207907dfe', class: "duet-chip-popup-disclosure" }, h("duet-icon", { key: 'b381a2ae097f9de261f971882520688b0857a02f', name: "action-arrow-down-small", size: "xxx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (h("span", { key: '804eec75bc2347e568c5ebe9c994d909df7a6d15', class: classes }, h("slot", { key: '74bef72f091082f56c3cbdc01c6284a347de775f', name: "input" }), h("label", { key: '2a1fb8e4e0da4b7aa89fad54677e8cc3c0ea318f', htmlFor: identifier }, this.icon && (h("span", { key: '6bf61ec47a6647c05ef31fcef2d955740a37e55e', class: "duet-chip-icon-container" }, h("duet-icon", { key: '0c780d8a156ebb569408bbac96838b8627818b79', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), h("duet-icon", { key: 'ed9beaf0e2c72f762c8abcc8ebec1a149ce4f31e', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), h("slot", { key: 'b1c9725c085d8d27b273eae4eba95b8c911343db' }))))));
|
|
278
|
-
}
|
|
279
|
-
get element() { return getElement(this); }
|
|
280
|
-
static get watchers() { return {
|
|
281
|
-
"checked": ["clearOtherRadioButtons"]
|
|
282
|
-
}; }
|
|
283
|
-
};
|
|
284
|
-
DuetChip.style = DuetChipStyle0;
|
|
285
|
-
|
|
286
|
-
export { DuetChip as duet_chip };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f384e24a.js';
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-860041c5.js';
|
|
6
|
-
|
|
7
|
-
const duetPopupMenuItemCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding: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:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-popup-menu-item.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-popup-menu-item.active{background:rgb(243, 249, 252)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 245, 247)}.duet-popup-menu-item:hover{background:rgb(230, 242, 248)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(228, 228, 230)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}";
|
|
8
|
-
const DuetPopupMenuItemStyle0 = duetPopupMenuItemCss;
|
|
9
|
-
|
|
10
|
-
const DuetPopupMenuItem = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
registerInstance(this, hostRef);
|
|
13
|
-
this.duetFocus = createEvent(this, "duetFocus", 7);
|
|
14
|
-
this.duetBlur = createEvent(this, "duetBlur", 7);
|
|
15
|
-
/**
|
|
16
|
-
* Component event handling.
|
|
17
|
-
*/
|
|
18
|
-
this.onFocus = (ev) => {
|
|
19
|
-
this.focus = true;
|
|
20
|
-
this.duetFocus.emit({
|
|
21
|
-
originalEvent: ev,
|
|
22
|
-
value: this.value,
|
|
23
|
-
component: "duet-popup-menu-item",
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
this.onBlur = (ev) => {
|
|
27
|
-
this.focus = false;
|
|
28
|
-
this.duetBlur.emit({
|
|
29
|
-
originalEvent: ev,
|
|
30
|
-
value: this.value,
|
|
31
|
-
component: "duet-popup-menu-item",
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
this.focus = false;
|
|
35
|
-
this.accessibleLabel = undefined;
|
|
36
|
-
this.accessibleRole = "menuitem";
|
|
37
|
-
this.theme = "";
|
|
38
|
-
this.url = undefined;
|
|
39
|
-
this.external = false;
|
|
40
|
-
this.targetLanguage = undefined;
|
|
41
|
-
this.value = undefined;
|
|
42
|
-
this.leadingIcon = undefined;
|
|
43
|
-
this.leadingIconColor = undefined;
|
|
44
|
-
this.trailingIcon = undefined;
|
|
45
|
-
this.trailingText = undefined;
|
|
46
|
-
this.active = false;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Component lifecycle events.
|
|
50
|
-
*/
|
|
51
|
-
componentWillLoad() {
|
|
52
|
-
inheritGlobalTheme(this);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Sets focus. Use this method instead of the global focus().
|
|
56
|
-
*/
|
|
57
|
-
async setFocus(options) {
|
|
58
|
-
setTimeout(() => this.itemElement.focus(options), 200);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* isFocused.
|
|
62
|
-
*/
|
|
63
|
-
async isFocused() {
|
|
64
|
-
return this.focus;
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
const TagName = this.url ? "a" : "button";
|
|
68
|
-
const classes = {
|
|
69
|
-
"duet-popup-menu-item": true,
|
|
70
|
-
active: this.active,
|
|
71
|
-
"duet-theme-turva": this.theme === "turva",
|
|
72
|
-
};
|
|
73
|
-
return (h(Host, { key: '35289f7f89fa2e759761d2b5309c1c50903cde81', role: this.accessibleRole }, h(TagName, { key: 'dd0cb6088ab305ed97ff28598ca5424893c71aab', ref: element => (this.itemElement = element), tabIndex: this.accessibleRole === "menuitem" ? -1 : 0, onFocus: this.onFocus, onBlur: this.onBlur, role: `${TagName === "a" ? "link" : "button"}`, "aria-label": this.accessibleLabel, class: classes, value: this.value, href: this.url, target: this.external ? "_blank" : undefined, rel: this.external ? "noopener" : undefined, lang: TagName === "button" ? undefined : this.targetLanguage, hreflang: TagName === "button" ? undefined : this.targetLanguage }, this.leadingIcon && (h("duet-icon", { key: 'b877792e8c47959bfa240713f74a510930630cdf', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), h("span", { key: '99d5337b72c8aa36a6ae2962e4112cf0158ea3e2', class: "duet-popup-menu-item-label" }, h("slot", { key: 'ca46da07ce9fdd7e9a080a1f592b213dac6e7ede' })), (this.trailingIcon || this.active) && (h("duet-icon", { key: '22bdf49aaed6e82113dd096de1e8f6c730034c3c', name: this.active ? "messaging-checked-small" : this.trailingIcon, size: this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && h("span", { key: '3ab96002796300ed841354ad491ec77c99be97b5', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
74
|
-
}
|
|
75
|
-
get element() { return getElement(this); }
|
|
76
|
-
};
|
|
77
|
-
DuetPopupMenuItem.style = DuetPopupMenuItemStyle0;
|
|
78
|
-
|
|
79
|
-
export { DuetPopupMenuItem as duet_popup_menu_item };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,i,n){function c(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function a(e){try{d(n.next(e))}catch(e){r(e)}}function o(e){try{d(n["throw"](e))}catch(e){r(e)}}function d(e){e.done?i(e.value):c(e.value).then(a,o)}d((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,c,r,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(e){return function(t){return d([e,t])}}function d(o){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(i=0)),i)try{if(n=1,c&&(r=o[0]&2?c["return"]:o[0]?c["throw"]||((r=c["return"])&&r.call(c),0):c.next)&&!(r=r.call(c,o[1])).done)return r;if(c=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;c=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];c=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f384e24a.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-439bcc8b.js";var duetChipCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.input){margin-top:6px !important;margin-right:0 !important;margin-bottom:6px !important;margin-left:4px !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:1px;hyphens:none;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(207, 210, 212);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(207, 207, 209)}.duet-chip-container.duet-theme-turva:hover{border-color:rgb(198, 12, 48)}.duet-chip-container:hover{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-disabled{color:rgb(101, 119, 135) !important;cursor:default;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-chip-container.duet-chip-disabled.duet-theme-turva{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled:hover{background:rgb(245, 248, 250);border-color:rgb(245, 248, 250)}.duet-chip-container.duet-chip-disabled:hover.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled button,.duet-chip-container.duet-chip-disabled label{cursor:default}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:8px 14px;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:600;line-height:1rem;color:rgb(0, 41, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:10px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-has-icon.duet-chip-radio-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container.duet-chip-has-icon button,.duet-chip-container.duet-chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:8px}.duet-chip-container duet-icon:not(.check-mark){width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{padding:0 !important;background:rgb(230, 242, 248);border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(205, 229, 241)}.duet-chip-container.duet-chip-filter-checked.chip-has-icon button,.duet-chip-container.duet-chip-filter-checked.chip-has-icon label,.duet-chip-container.duet-chip-radio-checked.chip-has-icon button,.duet-chip-container.duet-chip-radio-checked.chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva:hover,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva:hover{background:rgb(228, 228, 230)}.duet-chip-container .duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container .duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(243, 249, 252);border-color:rgb(243, 249, 252)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input{display:flex;align-items:center;padding-right:0 !important}.duet-chip-container.duet-chip-input .duet-chip-input-button{flex-grow:1}.duet-chip-container.duet-chip-input .duet-chip-remove-button{width:26px;padding:8px 16px 8px 0;margin:-8px 0}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}:host(.user-is-tabbing) .duet-chip-focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-chip-focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input,*::slotted([slot=input]){position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;margin:0;cursor:pointer;border-width:2px;border-radius:8px;opacity:0;appearance:none}*::slotted([slot=input]:not([aria-disabled=true])){z-index:1}';var DuetChipStyle0=duetChipCss;var DuetChip=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetRemove=createEvent(this,"duetRemove",3);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.chipId=createID("DuetChip");this.enforceNoDisabledSelected=function(){if(t.disabled&&t.checked){console.error("Duet error: pre-selected chip may not be disabled");t.disabled=false}};this.radioInputListenersRemove=function(e){e.removeEventListener("change",t.onRadioChange);e.removeEventListener("click",t.onRadioClick);e.removeEventListener("focus",t.onFocus);e.removeEventListener("blur",t.onBlur)};this.radioInputListenersAdd=function(e){e.addEventListener("change",t.onRadioChange);e.addEventListener("click",t.onRadioClick);e.addEventListener("focus",t.onFocus);e.addEventListener("blur",t.onBlur)};this.radioInputSetUp=function(){var e=t.element.querySelector("input[slot=input]");var i=e||document.createElement("input");i.slot="input";i.ariaDisabled=t.disabled?"true":undefined;i.id=t.identifier||t.chipId;i.type="radio";i.name=t.name;i.value=t.value;i.checked=t.checked;if(e){t.radioInputListenersRemove(i)}else{t.element.appendChild(i)}t.radioInputListenersAdd(i);t.focusableElement=i};this.popupSetUp=function(){var e=document.querySelector("duet-popup-menu#".concat(t.popup));if(e){t.popupElement=e;e.controller=t.element;var i=t.element.textContent;var n=t.value;if(!e.id){e.id="popup-menu"}e.addEventListener("duetToggle",(function(e){t.popupOpen=e.detail.open}));var c=function(){e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.active=false}))};e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.addEventListener("click",(function(r){var a;var o=(a=e.value)!==null&&a!==void 0?a:e.innerText;if(!e.active){c();e.active=true;t.element.textContent=e.innerText;t.value=o;t.checked=true}else{c();t.element.textContent=i;t.value=n;t.checked=false}t.emitChange(r);setTimeout((function(){if(t.popupElement.isOpen()){t.popupElement.hide()}}))}))}))}};this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"})};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"})};this.emitChange=function(e){t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"})};this.onFilterChange=function(e){t.checked=!t.checked;t.emitChange(e)};this.onRadioChange=function(e){var i=t.focusableElement;var n=i.checked;t.checked=n;t.emitChange(e)};this.onRadioClick=function(e){if(t.disabled){e.preventDefault()}};this.onFilterClick=function(e){if(t.disabled){e.stopPropagation();e.preventDefault();return}if(t.popupElement){e.stopPropagation();e.preventDefault();t.popupElement.toggle()}};this.onRemoveClick=function(e){e.stopPropagation();e.preventDefault();t.duetRemove.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"});t.element.remove()};this.focus=false;this.popupElement=undefined;this.popupOpen=undefined;this.accessibleLabel=undefined;this.variation="button";this.size="medium";this.popup=undefined;this.icon="";this.theme="";this.identifier=undefined;this.value=undefined;this.name=undefined;this.checked=false;this.disabled=false;this.accessibleExpanded=undefined;this.accessiblePopup="false"}e.prototype.clearOtherRadioButtons=function(){var e=this;if(this.variation==="radio"&&this.checked){var t=document.querySelectorAll('duet-chip[variation="radio"][name="'.concat(this.name,'"]'));t.forEach((function(t){if(t!==e.element){t.checked=false}}))}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.popupSetUp();this.enforceNoDisabledSelected()};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.componentDidRender=function(){if(this.variation==="radio"){this.radioInputSetUp()}};e.prototype.getAccessibleExpanded=function(){if(this.accessibleExpanded!=null){return(!!this.accessibleExpanded).toString()}if(this.popupElement){return this.popupOpen?"true":"false"}return undefined};e.prototype.getAccessiblePopup=function(){if(this.popupElement){return"true"}else{return this.accessiblePopup!=null?this.accessiblePopup.toString():undefined}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.focusableElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e,t;var i=this;var n;var c=this.identifier||this.chipId;var r=(e={"duet-chip-container":true},e["duet-chip-".concat(this.variation)]=true,e["duet-chip-focus"]=this.focus,e["duet-chip-has-icon"]=!!this.icon,e["duet-chip-has-popup"]=this.variation==="filter"&&!!this.popupElement,e["duet-theme-turva"]=this.theme==="turva",e["duet-chip-filter-checked"]=this.variation==="filter"&&this.checked,e["duet-chip-radio-checked"]=this.variation==="radio"&&this.checked,e["duet-chip-filter-popup-open"]=this.popupOpen,e["duet-chip-disabled"]=this.disabled,e[this.size]=true,e);var a={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return i.focusableElement=e}};return h(Host,{key:"83bf513ef7192b64d92eb428ca47fbdf317468d9",class:(t={},t[this.variation]=true,t)},this.variation==="button"&&h("span",{key:"750fdb0037f02571a465c86dfed9f81a4e4f1110",class:r},h("button",Object.assign({key:"49d5409a3600f91d6feefdafb207d17e330f53a3",id:c,"aria-label":this.accessibleLabel,"aria-disabled":this.disabled?"true":undefined,name:this.name,value:this.value,onClick:this.disabled?function(e){return e.stopPropagation()}:undefined},a),h("span",{key:"609549b8eb1bc7b9c3e7049f94dc9678b9dc259f",class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{key:"9167ad7ccd13479061d6849af2938bc868e51677",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),h("slot",{key:"f8ab715a57220b96dbdbd2478207c4ba40ba325b"}))),this.variation==="input"&&h("span",{key:"0f1faa69c817a88de8716de8b261fa63688c899b",class:r},h("button",Object.assign({key:"1955c7a24051d1c5b7671bf4a8438ee1c014b7cc",id:c,class:"duet-chip-input-button",value:this.value,"aria-label":this.accessibleLabel},a),h("span",{key:"3d69ad3ec1037f7b8278156392e902a2317f758c",class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{key:"c056e4f37ca87f98fb8743d5b723232e8335f83c",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),h("slot",{key:"f257712ed166db7feb280d894bb1c111fa6fe171"})),h("button",{key:"0735914e5223ab4aed75f03e08e39af6a10ced8e",class:"duet-chip-remove-button",onClick:this.onRemoveClick},h("duet-icon",{key:"3478c9f87f043e61f96a7595a35db8849c0c730c",name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),this.variation==="filter"&&h("span",{key:"a656fd6ce69c6201d0dd7407170c88c47e8f2a67",class:r},h("input",Object.assign({key:"51dd1e0898d2af86d493e25b9d623d422a1e3ca8","aria-haspopup":this.getAccessiblePopup(),"aria-controls":(n=this.popupElement)===null||n===void 0?void 0:n.id,"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,id:c,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},a)),h("label",{key:"60a550a09fcebb26e886503f0d9c637e6e2447cc",htmlFor:c},this.icon&&h("span",{key:"ba317cf437844d8c8694956e114687fa0d531daf",class:"duet-chip-icon-container"},h("duet-icon",{key:"4e6bd4e5e0003bf649929dfdb36ca0f5b00e3e4c",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("duet-icon",{key:"7d427ed0b6d4d15a1eb1b3c0515e3d0d119a5197",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),h("slot",{key:"943da2eae596920b321008ca6d927411109555db"}),this.popupElement&&h("span",{key:"ccff1c7a99e9bf1b96449d061526a6f207907dfe",class:"duet-chip-popup-disclosure"},h("duet-icon",{key:"b381a2ae097f9de261f971882520688b0857a02f",name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&h("span",{key:"804eec75bc2347e568c5ebe9c994d909df7a6d15",class:r},h("slot",{key:"74bef72f091082f56c3cbdc01c6284a347de775f",name:"input"}),h("label",{key:"2a1fb8e4e0da4b7aa89fad54677e8cc3c0ea318f",htmlFor:c},this.icon&&h("span",{key:"6bf61ec47a6647c05ef31fcef2d955740a37e55e",class:"duet-chip-icon-container"},h("duet-icon",{key:"0c780d8a156ebb569408bbac96838b8627818b79",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("duet-icon",{key:"ed9beaf0e2c72f762c8abcc8ebec1a149ce4f31e",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),h("slot",{key:"b1c9725c085d8d27b273eae4eba95b8c911343db"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["clearOtherRadioButtons"]}},enumerable:false,configurable:true});return e}();DuetChip.style=DuetChipStyle0;export{DuetChip as duet_chip};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function u(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{s(i.next(e))}catch(e){o(e)}}function r(e){try{s(i["throw"](e))}catch(e){o(e)}}function s(e){e.done?n(e.value):u(e.value).then(a,r)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,u,o,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(e){return function(t){return s([e,t])}}function s(r){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,r[0]&&(n=0)),n)try{if(i=1,u&&(o=r[0]&2?u["return"]:r[0]?u["throw"]||((o=u["return"])&&o.call(u),0):u.next)&&!(o=o.call(u,r[1])).done)return o;if(u=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;u=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){n.label=r[1];break}if(r[0]===6&&n.label<o[1]){n.label=o[1];o=r;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(r);break}if(o[2])n.ops.pop();n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e];u=0}finally{i=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f384e24a.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetPopupMenuItemCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding: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:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-popup-menu-item.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-popup-menu-item.active{background:rgb(243, 249, 252)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 245, 247)}.duet-popup-menu-item:hover{background:rgb(230, 242, 248)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(228, 228, 230)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}';var DuetPopupMenuItemStyle0=duetPopupMenuItemCss;var DuetPopupMenuItem=function(){function e(e){var t=this;registerInstance(this,e);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.focus=false;this.accessibleLabel=undefined;this.accessibleRole="menuitem";this.theme="";this.url=undefined;this.external=false;this.targetLanguage=undefined;this.value=undefined;this.leadingIcon=undefined;this.leadingIconColor=undefined;this.trailingIcon=undefined;this.trailingText=undefined;this.active=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.isFocused=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.focus]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var n={"duet-popup-menu-item":true,active:this.active,"duet-theme-turva":this.theme==="turva"};return h(Host,{key:"35289f7f89fa2e759761d2b5309c1c50903cde81",role:this.accessibleRole},h(t,{key:"dd0cb6088ab305ed97ff28598ca5424893c71aab",ref:function(t){return e.itemElement=t},tabIndex:this.accessibleRole==="menuitem"?-1:0,onFocus:this.onFocus,onBlur:this.onBlur,role:"".concat(t==="a"?"link":"button"),"aria-label":this.accessibleLabel,class:n,value:this.value,href:this.url,target:this.external?"_blank":undefined,rel:this.external?"noopener":undefined,lang:t==="button"?undefined:this.targetLanguage,hreflang:t==="button"?undefined:this.targetLanguage},this.leadingIcon&&h("duet-icon",{key:"b877792e8c47959bfa240713f74a510930630cdf",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),h("span",{key:"99d5337b72c8aa36a6ae2962e4112cf0158ea3e2",class:"duet-popup-menu-item-label"},h("slot",{key:"ca46da07ce9fdd7e9a080a1f592b213dac6e7ede"})),(this.trailingIcon||this.active)&&h("duet-icon",{key:"22bdf49aaed6e82113dd096de1e8f6c730034c3c",name:this.active?"messaging-checked-small":this.trailingIcon,size:this.active?"xx-small":"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&h("span",{key:"3ab96002796300ed841354ad491ec77c99be97b5",class:"duet-popup-menu-item-trailing"},this.trailingText)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPopupMenuItem.style=DuetPopupMenuItemStyle0;export{DuetPopupMenuItem as duet_popup_menu_item};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function o(t){try{a(n.next(t))}catch(t){s(t)}}function u(t){try{a(n["throw"](t))}catch(t){s(t)}}function a(t){t.done?i(t.value):r(t.value).then(o,u)}a((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(e){return a([t,e])}}function a(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(i=0)),i)try{if(n=1,r&&(s=u[0]&2?r["return"]:u[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;if(r=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:i.label++;return{value:u[1],done:false};case 5:i.label++;r=u[1];u=[0];continue;case 7:u=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){i.label=u[1];break}if(u[0]===6&&i.label<s[1]){i.label=s[1];s=u;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(u);break}if(s[2])i.ops.pop();i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t];r=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f384e24a.js";import{o as offset,f as flip,c as computePosition}from"./floating-ui.dom.esm-ebc91b33.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as focusElement}from"./focus-utils-1e2c1ed7.js";import{f as isEscapeKey,c as isArrowDownKey,b as isArrowUpKey,o as isTabKey}from"./keyboard-utils-439bcc8b.js";import{T as Teleport}from"./teleport-546f382d.js";var duetPopupMenuCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-popup-menu-list{position:absolute;top:0;left:0;z-index:950;width:max-content;min-width:175px;padding:8px;margin:0;color:rgb(0, 41, 77);list-style:none;visibility:hidden !important;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);opacity:0;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease;transform:scaleY(0);transform-origin:top center}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255)}";var DuetPopupMenuStyle0=duetPopupMenuCss;var DuetPopupMenu=function(){function t(t){var e=this;registerInstance(this,t);this.duetToggle=createEvent(this,"duetToggle",7);this.setOpenButton=function(t){if(!t){return}try{var i=t;i.accessiblePopup="true";i.accessibleExpanded=false;i.setAttribute("trailing-icon","action-arrow-down-small");e.openButton=i}catch(t){}};this.openButtonEventListener=function(){e.toggle()};this.updatePlacement=function(){return __awaiter(e,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:if(!this.openButton){return[2]}t=[offset({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),flip({mainAxis:!this.forcePlacement})];return[4,computePosition(this.openButton,this.menuElement,{middleware:t,placement:this.placement,strategy:this.position})];case 1:e=i.sent();this.menuY=e.y;this.menuX=e.x;return[2]}}))}))};this.open=false;this.menuY=undefined;this.menuX=undefined;this.accessibleLabel=undefined;this.accessibleRole="menu";this.theme="";this.skipTeleport=undefined;this.controller=undefined;this.placement="bottom-start";this.forcePlacement=false;this.position="absolute";this.mainAxisOffset=0;this.crossAxisOffset=0}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.componentDidLoad=function(){{this.updatePlacement()}};t.prototype.connectedCallback=function(){this.handleControllerChange(this.controller,null);if(!this.teleport){this.teleport=new Teleport(this.element)}if(this.teleport){this.teleport.activate()}};t.prototype.disconnectedCallback=function(){if(this.openButton){this.openButton.removeEventListener("click",this.openButtonEventListener);this.openButton.removeAttribute("trailing-icon")}};t.prototype.handleKeyUp=function(t){if(this.open){if(isEscapeKey(t)){this.focusOpenButton();this.hide()}}};t.prototype.handleKeyDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e,e;return __generator(this,(function(i){switch(i.label){case 0:if(!this.open)return[3,5];if(!isArrowDownKey(t))return[3,2];t.preventDefault();return[4,this.getFocusedItemIndex()];case 1:e=i.sent();if(e!==-1){if(e<this.itemElements.length-1){this.itemElements[e+1].setFocus()}else{this.itemElements[0].setFocus()}}i.label=2;case 2:if(!isArrowUpKey(t))return[3,4];t.preventDefault();return[4,this.getFocusedItemIndex()];case 3:e=i.sent();if(e!==-1){if(e===0){this.itemElements[this.itemElements.length-1].setFocus()}else{this.itemElements[e-1].setFocus()}}i.label=4;case 4:if(isTabKey(t)&&this.accessibleRole==="menu"){t.preventDefault();this.hide()}i.label=5;case 5:return[2]}}))}))};t.prototype.handleClick=function(t){var e=this;var i=t.composedPath().every((function(t){return t!==e.element&&t!==e.openButton}));if(this.open&&i){this.hide()}};t.prototype.isOpen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.open]}))}))};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=true;return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.open){this.hide()}else{this.show()}return[2]}))}))};t.prototype.handleControllerChange=function(t,e){if(!!t===!!e){return}if(typeof this.controller==="string"){this.setOpenButton(document.getElementById(this.controller));if(this.openButton){this.openButton.addEventListener("click",this.openButtonEventListener)}}else{this.setOpenButton(this.controller)}};t.prototype.handleOpenChange=function(t,e){var i=this;if(!!t===!!e){return}if(this.open&&!e){if(this.openButton){this.openButton.accessibleExpanded=true}this.teleport.makeSiblingsInert();this.updatePlacement();setTimeout((function(){if(i.accessibleRole==="menu"){i.itemElements[0].setFocus()}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"})}),200)}else if(!this.open&&e){if(this.openButton){this.openButton.accessibleExpanded=false}setTimeout((function(){if(i.accessibleRole==="menu"){i.focusOpenButton()}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"});i.teleport.removeInertFromSiblings()}),200)}};t.prototype.focusOpenButton=function(){if(this.open){focusElement(this.openButton)}};Object.defineProperty(t.prototype,"itemElements",{get:function(){return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"))},enumerable:false,configurable:true});t.prototype.getFocusedItemIndex=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:t=this.itemElements;e=0;i.label=1;case 1:if(!(e<t.length))return[3,4];return[4,t[e].isFocused()];case 2:if(i.sent()){return[2,e]}i.label=3;case 3:e++;return[3,1];case 4:return[2,-1]}}))}))};t.prototype.render=function(){var t=this;var e={top:"".concat(this.menuY,"px"),left:"".concat(this.menuX,"px"),position:this.position};return h(Host,{key:"dbd5d6ba344124704ad5798622aeed8e2f1edb1b"},h("div",{key:"a59dd98042f84b7460956b4b94870691f7af399e",ref:function(e){return t.menuElement=e},style:e,class:{open:this.open,"duet-popup-menu-list":true,"duet-theme-turva":this.theme==="turva"},role:this.accessibleRole,"aria-label":this.accessibleLabel},h("slot",{key:"2a0d9c72cc78e95918685a0b13f9c184d352867e"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{controller:["handleControllerChange"],open:["handleOpenChange"]}},enumerable:false,configurable:true});return t}();DuetPopupMenu.style=DuetPopupMenuStyle0;export{DuetPopupMenu as duet_popup_menu};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{h}from"./index-f384e24a.js";var focusElement=function(e){if("setFocus"in e){e.setFocus()}else{e.focus()}};var FocusGuard=function(e){var u=e.moveFocusTo;return h("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:function(){return focusElement(u)}})};export{FocusGuard as F,focusElement as f};
|