@duetds/components 9.1.2 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +220 -188
- package/lib/cjs/{app-globals-75ae6194.js → app-globals-8b08f415.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-alert.cjs.entry.js +3 -3
- package/lib/cjs/duet-badge.cjs.entry.js +3 -3
- package/lib/cjs/duet-banner.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +4 -4
- package/lib/cjs/duet-button_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-callout.cjs.entry.js +4 -4
- package/lib/cjs/duet-caption_4.cjs.entry.js +6 -6
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +3 -3
- package/lib/cjs/{duet-chip.cjs.entry.js → duet-chip_3.cjs.entry.js} +327 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +42 -32
- package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +4 -4
- package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +7 -7
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
- package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +3 -3
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +3 -3
- package/lib/cjs/duet-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-layout.cjs.entry.js +7 -10
- package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar.cjs.entry.js +5 -5
- package/lib/cjs/duet-modal.cjs.entry.js +10 -10
- package/lib/cjs/duet-multiselect.cjs.entry.js +8 -8
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
- package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +3 -3
- package/lib/cjs/duet-pagination_2.cjs.entry.js +15 -15
- package/lib/cjs/duet-progress.cjs.entry.js +2 -2
- package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +13 -13
- package/lib/cjs/duet-section-layout.cjs.entry.js +5 -6
- package/lib/cjs/duet-select.cjs.entry.js +2 -2
- package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
- package/lib/cjs/duet-show-more.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +10 -10
- package/lib/cjs/duet-slideout.cjs.entry.js +8 -8
- package/lib/cjs/duet-step_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-textarea.cjs.entry.js +6 -6
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
- package/lib/cjs/duet-tray.cjs.entry.js +4 -4
- 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-79df4fcd.js} +1 -1
- package/lib/cjs/{focus-utils-8bf2f9fe.js → focus-utils-87585a09.js} +1 -1
- package/lib/cjs/{index-9e6f7e53.js → index-290ab697.js} +2 -2
- package/lib/cjs/{language-utils-0eb766d8.js → language-utils-3372de6f.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-0975145c.js → slot-utils-8015a7e6.js} +1 -1
- package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.js +1 -1
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.js +5 -5
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +6 -6
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox-select.js +4 -8
- package/lib/collection/components/duet-combobox/duet-combobox.css +2 -79
- package/lib/collection/components/duet-combobox/duet-combobox.js +38 -20
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +7 -7
- package/lib/collection/components/duet-grid/duet-grid.js +3 -3
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-input/duet-input.js +8 -8
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.css +24 -19
- package/lib/collection/components/duet-layout/duet-layout.js +5 -8
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list/duet-list.js +4 -4
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +2 -2
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +2 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
- 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.js +4 -4
- 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.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +10 -10
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +11 -11
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +13 -13
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +5 -5
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +45 -11
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +8 -0
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +28 -5
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +3 -3
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- 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.js +5 -5
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-show-more/duet-show-more.js +3 -3
- package/lib/collection/components/duet-slideout/duet-slideout.js +5 -5
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- 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.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +3 -3
- package/lib/collection/components/duet-spinner/duet-spinner.js +3 -3
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +2 -2
- 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.js +4 -4
- 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.js +1 -1
- 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.js +10 -10
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +7 -7
- package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- 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.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +2 -2
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +16 -16
- 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 +5 -5
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- 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 +5 -5
- package/lib/dist-custom-elements/duet-breadcrumb.js +8 -8
- package/lib/dist-custom-elements/duet-breadcrumbs.js +4 -4
- 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 +3 -3
- 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 +9 -9
- package/lib/dist-custom-elements/duet-choice.js +6 -6
- package/lib/dist-custom-elements/duet-collapsible.js +3 -3
- package/lib/dist-custom-elements/duet-combobox.js +81 -53
- package/lib/dist-custom-elements/duet-contact-card.js +11 -11
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +17 -17
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +9 -9
- 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 +10 -10
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +11 -11
- 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 +7 -10
- 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 +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-menu-bar-item.js +4 -4
- 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 +17 -17
- 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 +7 -7
- package/lib/dist-custom-elements/duet-notification.js +5 -5
- 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 +4 -4
- package/lib/dist-custom-elements/duet-pagination.js +25 -25
- 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 +6 -6
- package/lib/dist-custom-elements/duet-radio-group.js +9 -9
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +7 -7
- 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 +4 -4
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-slideout-panel.js +11 -11
- 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 +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
- package/lib/dist-custom-elements/duet-tab-group.js +19 -19
- package/lib/dist-custom-elements/duet-tab.js +2 -2
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +15 -15
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-toolbar-item.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar.js +3 -3
- 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 +6 -6
- 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 +23 -23
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +2 -2
- package/lib/dist-custom-elements/{p-74f689ae.js → p-0403f6da.js} +3 -3
- package/lib/dist-custom-elements/{p-11d8af72.js → p-0bb6686b.js} +5 -5
- package/lib/dist-custom-elements/{p-00d7b302.js → p-0fb7a267.js} +2 -2
- package/lib/dist-custom-elements/{p-9635880c.js → p-10f0fddb.js} +4 -4
- package/lib/dist-custom-elements/{p-7a7a6a7b.js → p-1dbac987.js} +9 -9
- package/lib/dist-custom-elements/{p-16a278f4.js → p-20420946.js} +4 -4
- package/lib/dist-custom-elements/{p-a7559bee.js → p-2e9f301d.js} +6 -6
- package/lib/dist-custom-elements/{p-69f6a6aa.js → p-317b4bb8.js} +1 -1
- package/lib/dist-custom-elements/{p-bec25ec5.js → p-33b260ff.js} +1 -1
- package/lib/dist-custom-elements/p-3bc3ac8a.js +119 -0
- package/lib/dist-custom-elements/{p-3caf29d6.js → p-3f00c32a.js} +1 -1
- package/lib/dist-custom-elements/{p-9ef37cc5.js → p-43a7f93f.js} +2 -2
- package/lib/dist-custom-elements/{p-8acea31f.js → p-43f6f1e6.js} +3 -3
- package/lib/dist-custom-elements/{p-926dfd0d.js → p-4e532364.js} +2 -2
- package/lib/dist-custom-elements/{p-fdc2bf62.js → p-52535b60.js} +13 -13
- package/lib/dist-custom-elements/{p-132de48f.js → p-550504de.js} +3 -3
- package/lib/dist-custom-elements/{p-401837cb.js → p-684cca0d.js} +3 -3
- package/lib/dist-custom-elements/{p-53d15ae4.js → p-6a5c7011.js} +11 -11
- package/lib/dist-custom-elements/{p-7c8f29a0.js → p-6d83f337.js} +4 -4
- package/lib/dist-custom-elements/{p-c5f82e3b.js → p-7e6cdbe3.js} +1 -1
- package/lib/dist-custom-elements/{p-6081e535.js → p-8b0dee3e.js} +1 -1
- package/lib/dist-custom-elements/{p-cd8e9097.js → p-8e557451.js} +2 -2
- package/lib/dist-custom-elements/{p-239cfc2e.js → p-936d5746.js} +2 -2
- package/lib/dist-custom-elements/{p-a1979351.js → p-95971567.js} +1 -1
- package/lib/dist-custom-elements/{p-f43704a4.js → p-ae262553.js} +2 -2
- package/lib/dist-custom-elements/{p-ddb9e9be.js → p-b3773c10.js} +3 -3
- package/lib/dist-custom-elements/{p-5f658e84.js → p-bdeb5fba.js} +12 -12
- package/lib/dist-custom-elements/{p-a9169fe0.js → p-c3854d56.js} +1 -1
- package/lib/dist-custom-elements/{p-8979d055.js → p-c775f5b9.js} +1 -1
- package/lib/dist-custom-elements/{p-434e64ad.js → p-cdf8041c.js} +8 -8
- package/lib/dist-custom-elements/{p-b1aa75c1.js → p-d6a8840d.js} +6 -6
- package/lib/dist-custom-elements/{p-39b4be25.js → p-e0913e76.js} +8 -8
- package/lib/dist-custom-elements/{p-cc58e64e.js → p-e416ccec.js} +3 -3
- package/lib/dist-custom-elements/{p-52618a53.js → p-e5f6aaab.js} +3 -3
- package/lib/dist-custom-elements/{p-7dfb4906.js → p-e7918410.js} +6 -6
- package/lib/dist-custom-elements/{p-f5924b7d.js → p-e8d60da0.js} +2 -2
- package/lib/dist-custom-elements/{p-1e7abd9f.js → p-e9361277.js} +5 -5
- package/lib/{esm/duet-popup-menu.entry.js → dist-custom-elements/p-ec4d6856.js} +68 -19
- package/lib/dist-custom-elements/{p-e399097c.js → p-ecc803b3.js} +1 -1
- package/lib/dist-custom-elements/{p-c77f9e4d.js → p-f055bb61.js} +3 -3
- package/lib/dist-custom-elements/{p-7a8eda34.js → p-f2f2bcca.js} +5 -5
- package/lib/dist-custom-elements/{p-c5df07b9.js → p-fc9b988f.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-123e5149.entry.js → p-002c99c1.entry.js} +1 -1
- package/lib/duet/p-0258c8de.entry.js +4 -0
- package/lib/duet/{p-76ebeb39.system.entry.js → p-04734a93.system.entry.js} +2 -2
- package/lib/duet/{p-c5332265.system.entry.js → p-04efd66c.system.entry.js} +2 -2
- package/lib/duet/p-06051dcb.entry.js +4 -0
- package/lib/duet/{p-64da9c94.system.entry.js → p-0660a0ef.system.entry.js} +1 -1
- package/lib/duet/{p-0d9de644.entry.js → p-07293953.entry.js} +1 -1
- package/lib/duet/{p-4a689653.system.js → p-0740edce.system.js} +1 -1
- package/lib/duet/{p-471c18e5.system.entry.js → p-083353cb.system.entry.js} +1 -1
- package/lib/duet/{p-632363b9.system.entry.js → p-0bfe2f53.system.entry.js} +1 -1
- package/lib/duet/p-0bfee3a1.system.entry.js +4 -0
- package/lib/duet/{p-0fee15c1.system.js → p-0c12d3cd.system.js} +1 -1
- package/lib/duet/{p-ea7dccdf.system.entry.js → p-0ce0c979.system.entry.js} +1 -1
- package/lib/duet/p-0e1e68bc.system.entry.js +4 -0
- package/lib/duet/{p-9e4c6ea7.system.js → p-0e2c37c7.system.js} +1 -1
- package/lib/duet/{p-5ed66d93.entry.js → p-0fdbde27.entry.js} +1 -1
- package/lib/duet/{p-902c3cbe.system.entry.js → p-11e4c749.system.entry.js} +1 -1
- package/lib/duet/{p-5446b2c4.entry.js → p-17077f57.entry.js} +1 -1
- package/lib/duet/{p-b3bbea88.system.entry.js → p-17b64351.system.entry.js} +2 -2
- package/lib/duet/{p-ae6de40d.entry.js → p-18917d49.entry.js} +1 -1
- package/lib/duet/{p-fd40d190.system.entry.js → p-18cd13be.system.entry.js} +1 -1
- package/lib/duet/{p-c3573c7a.entry.js → p-18e6e7fe.entry.js} +1 -1
- package/lib/duet/{p-8de97e36.entry.js → p-199d505a.entry.js} +1 -1
- package/lib/duet/{p-493a25c0.system.entry.js → p-1abf7d11.system.entry.js} +1 -1
- package/lib/duet/{p-6a34f6be.entry.js → p-1db515c6.entry.js} +1 -1
- package/lib/duet/{p-e05007a2.system.entry.js → p-210715c1.system.entry.js} +1 -1
- package/lib/duet/{p-3a5b7cf7.system.entry.js → p-21ad7b3a.system.entry.js} +1 -1
- package/lib/duet/{p-8f1823c2.system.entry.js → p-231c6724.system.entry.js} +1 -1
- package/lib/duet/{p-6cd9ae43.entry.js → p-277fd80e.entry.js} +1 -1
- package/lib/duet/{p-a2c01fc7.system.entry.js → p-27aa38b5.system.entry.js} +1 -1
- package/lib/duet/{p-8980f13e.entry.js → p-281fa7a1.entry.js} +1 -1
- package/lib/duet/{p-e408682d.system.entry.js → p-29072d2d.system.entry.js} +1 -1
- package/lib/duet/{p-a1a10757.system.entry.js → p-2a2f7fe9.system.entry.js} +1 -1
- package/lib/duet/{p-934124e4.entry.js → p-2b790430.entry.js} +1 -1
- package/lib/duet/{p-60327ec6.system.entry.js → p-357fba0e.system.entry.js} +1 -1
- package/lib/duet/{p-3affe362.entry.js → p-372b1880.entry.js} +1 -1
- package/lib/duet/{p-35bf92a1.system.entry.js → p-3958bcfa.system.entry.js} +1 -1
- package/lib/duet/{p-c7aea431.entry.js → p-39630105.entry.js} +1 -1
- package/lib/duet/{p-ec6a0e13.entry.js → p-39dab293.entry.js} +1 -1
- package/lib/duet/{p-8aaadc21.system.entry.js → p-3daaefaf.system.entry.js} +1 -1
- package/lib/duet/{p-8cb3b550.system.entry.js → p-40b33a43.system.entry.js} +1 -1
- package/lib/duet/{p-a1af9ad9.system.entry.js → p-40ee32f0.system.entry.js} +1 -1
- package/lib/duet/{p-8a9f676f.system.entry.js → p-410c17b6.system.entry.js} +1 -1
- package/lib/duet/{p-33ca3555.system.entry.js → p-434bda24.system.entry.js} +1 -1
- package/lib/duet/{p-d46a310c.entry.js → p-4407ea5a.entry.js} +1 -1
- package/lib/duet/{p-30f2d20a.entry.js → p-4451f3eb.entry.js} +1 -1
- package/lib/duet/{p-8d25bac7.entry.js → p-44c19fe9.entry.js} +1 -1
- package/lib/duet/{p-d3b84b94.entry.js → p-44d2dbb7.entry.js} +1 -1
- package/lib/duet/{p-6c917ed9.entry.js → p-44ecb79f.entry.js} +1 -1
- package/lib/duet/{p-bf40b101.entry.js → p-4543f9e7.entry.js} +1 -1
- package/lib/duet/{p-012938af.system.entry.js → p-477d4c2a.system.entry.js} +1 -1
- package/lib/duet/p-48836fcc.system.entry.js +4 -0
- package/lib/duet/{p-ae4cd43d.entry.js → p-49051d57.entry.js} +1 -1
- package/lib/duet/{p-36637566.system.entry.js → p-49e6e791.system.entry.js} +2 -2
- package/lib/duet/{p-20393f34.system.entry.js → p-4a59b12a.system.entry.js} +1 -1
- package/lib/duet/{p-03eab84c.system.entry.js → p-4cc5c937.system.entry.js} +1 -1
- package/lib/duet/{p-aa8648b3.system.entry.js → p-4e485c1c.system.entry.js} +1 -1
- package/lib/duet/{p-0b2e581f.entry.js → p-50f8076d.entry.js} +1 -1
- package/lib/duet/{p-59ae9e27.system.entry.js → p-51675591.system.entry.js} +1 -1
- package/lib/duet/{p-8f2af04b.system.entry.js → p-522e0468.system.entry.js} +1 -1
- package/lib/duet/{p-85f4d527.entry.js → p-52fc5c3b.entry.js} +1 -1
- package/lib/duet/{p-11d01633.system.entry.js → p-54460ce3.system.entry.js} +1 -1
- package/lib/duet/{p-f8d41de4.entry.js → p-546ca397.entry.js} +1 -1
- package/lib/duet/{p-d5e996fd.entry.js → p-54d7e599.entry.js} +1 -1
- package/lib/duet/{p-ab78e681.entry.js → p-554cff02.entry.js} +1 -1
- package/lib/duet/{p-ce289a58.system.entry.js → p-5839bb7a.system.entry.js} +1 -1
- package/lib/duet/{p-9ea9329f.entry.js → p-58400179.entry.js} +1 -1
- package/lib/duet/{p-14dc7cf5.entry.js → p-584be931.entry.js} +1 -1
- package/lib/duet/{p-0e255314.system.entry.js → p-5899db41.system.entry.js} +1 -1
- package/lib/duet/{p-dc7c2dc7.system.entry.js → p-5a8ca9f7.system.entry.js} +1 -1
- package/lib/duet/{p-3233973c.system.entry.js → p-5c5202c1.system.entry.js} +1 -1
- package/lib/duet/{p-6d405ca2.system.entry.js → p-5e0a2a78.system.entry.js} +2 -2
- package/lib/duet/{p-5432aefa.system.entry.js → p-5e46b67c.system.entry.js} +1 -1
- package/lib/duet/{p-4f47944f.system.entry.js → p-5eda45d0.system.entry.js} +1 -1
- package/lib/duet/{p-758cb2a2.system.entry.js → p-6014d518.system.entry.js} +1 -1
- package/lib/duet/{p-6df59cfe.entry.js → p-6119ef0a.entry.js} +1 -1
- package/lib/duet/{p-754100c9.system.entry.js → p-61fe999e.system.entry.js} +1 -1
- package/lib/duet/{p-2c999efc.entry.js → p-66da99e1.entry.js} +1 -1
- package/lib/duet/p-681afce7.js +4 -0
- package/lib/duet/{p-b64eb2b3.system.entry.js → p-69bb93ee.system.entry.js} +1 -1
- package/lib/duet/{p-997146fa.system.entry.js → p-6b2a8199.system.entry.js} +2 -2
- package/lib/duet/p-6db337db.entry.js +4 -0
- package/lib/duet/{p-2349ea53.entry.js → p-6f1fc369.entry.js} +1 -1
- package/lib/duet/{p-5cd8706b.entry.js → p-73f290b1.entry.js} +1 -1
- package/lib/duet/p-747505e8.entry.js +4 -0
- package/lib/duet/{p-0b249181.js → p-765f640d.js} +1 -1
- package/lib/duet/{p-0487aadb.system.entry.js → p-77009e02.system.entry.js} +1 -1
- package/lib/duet/{p-c3524f86.system.entry.js → p-7776b2e3.system.entry.js} +1 -1
- package/lib/duet/{p-12155eae.system.entry.js → p-77bd02b8.system.entry.js} +1 -1
- package/lib/duet/{p-a2ddcf90.entry.js → p-7bc8a7ba.entry.js} +1 -1
- package/lib/duet/{p-86f0eef8.system.entry.js → p-7ca5fee5.system.entry.js} +1 -1
- package/lib/duet/{p-62cf9516.entry.js → p-80ebdba0.entry.js} +1 -1
- package/lib/duet/{p-dcf097a9.system.entry.js → p-82557326.system.entry.js} +1 -1
- package/lib/duet/p-83dc6278.entry.js +4 -0
- package/lib/duet/{p-5e2f8206.js → p-8483586d.js} +1 -1
- package/lib/duet/{p-6d11c049.entry.js → p-8575f97e.entry.js} +1 -1
- package/lib/duet/{p-63f80431.system.entry.js → p-86ddbb9f.system.entry.js} +1 -1
- package/lib/duet/{p-8c84e41c.entry.js → p-88a370ef.entry.js} +1 -1
- package/lib/duet/{p-6fde361f.system.entry.js → p-89bc2c76.system.entry.js} +1 -1
- package/lib/duet/{p-6faa9435.system.entry.js → p-8d6d407f.system.entry.js} +1 -1
- package/lib/duet/{p-2fc10b59.entry.js → p-8d7d23ca.entry.js} +1 -1
- package/lib/duet/{p-b5aaa528.system.entry.js → p-8e8ac460.system.entry.js} +1 -1
- package/lib/duet/{p-45d596e8.entry.js → p-907e01e1.entry.js} +1 -1
- package/lib/duet/{p-6a0ed208.entry.js → p-90e39ad6.entry.js} +1 -1
- package/lib/duet/{p-730ac0b8.entry.js → p-912860f0.entry.js} +1 -1
- package/lib/duet/{p-31ee8ad8.entry.js → p-98d9fcfc.entry.js} +1 -1
- package/lib/duet/{p-9d521ea1.system.entry.js → p-995b0ea5.system.entry.js} +1 -1
- package/lib/duet/{p-5e502442.system.entry.js → p-9b70444f.system.entry.js} +1 -1
- package/lib/duet/{p-08727974.entry.js → p-9bbdecc7.entry.js} +1 -1
- package/lib/duet/{p-20a0e98c.entry.js → p-9df917b9.entry.js} +1 -1
- package/lib/duet/{p-86ba2e23.entry.js → p-9f08395f.entry.js} +1 -1
- package/lib/duet/{p-e20b0d90.entry.js → p-9fa9db50.entry.js} +1 -1
- package/lib/duet/{p-d3101c8a.system.js → p-9fdb1552.system.js} +2 -2
- package/lib/duet/{p-541301b8.system.entry.js → p-a2023033.system.entry.js} +1 -1
- package/lib/duet/{p-4ab05bd1.system.entry.js → p-a25f447e.system.entry.js} +1 -1
- package/lib/duet/{p-b839f59a.system.entry.js → p-a37a7f5f.system.entry.js} +1 -1
- package/lib/duet/{p-6e0ff6ff.entry.js → p-a4d2aea7.entry.js} +1 -1
- package/lib/duet/{p-54f1f550.system.entry.js → p-a4d589fb.system.entry.js} +2 -2
- package/lib/duet/{p-04085d32.entry.js → p-a623fa7e.entry.js} +1 -1
- package/lib/duet/{p-8cacd5d4.entry.js → p-a696a103.entry.js} +1 -1
- package/lib/duet/{p-e1e9de91.entry.js → p-a710fd68.entry.js} +1 -1
- package/lib/duet/{p-697c4f57.entry.js → p-a89f11eb.entry.js} +1 -1
- package/lib/duet/{p-9070bf89.system.entry.js → p-ab487d80.system.entry.js} +2 -2
- package/lib/duet/{p-22c7d5ee.entry.js → p-ab5f9de6.entry.js} +1 -1
- package/lib/duet/{p-18766573.entry.js → p-acd9cb61.entry.js} +1 -1
- package/lib/duet/{p-00f584d4.js → p-ae8d9deb.js} +1 -1
- package/lib/duet/p-af311c80.entry.js +4 -0
- package/lib/duet/{p-6e8ebe18.entry.js → p-b01e1603.entry.js} +1 -1
- package/lib/duet/p-b24bbdc0.entry.js +4 -0
- package/lib/duet/{p-cf05a9a4.entry.js → p-b5329846.entry.js} +1 -1
- package/lib/duet/p-b5dabfe2.entry.js +4 -0
- package/lib/duet/{p-eb8bf9ea.entry.js → p-b69d6f0f.entry.js} +1 -1
- package/lib/duet/{p-8507509a.js → p-b6e8a587.js} +1 -1
- package/lib/duet/{p-a4a42c3e.system.entry.js → p-b7efe3b3.system.entry.js} +1 -1
- package/lib/duet/{p-91bf41a8.system.entry.js → p-b97c6e73.system.entry.js} +1 -1
- package/lib/duet/{p-8ab41ea5.entry.js → p-b9ca5786.entry.js} +1 -1
- package/lib/duet/{p-ebca186a.system.entry.js → p-ba7657d2.system.entry.js} +1 -1
- package/lib/duet/p-bb896f73.system.js +4 -0
- package/lib/duet/{p-73170927.entry.js → p-bc188b4d.entry.js} +1 -1
- package/lib/duet/{p-2526c848.entry.js → p-bd60816f.entry.js} +1 -1
- package/lib/duet/{p-337009ba.system.entry.js → p-be7c8c61.system.entry.js} +1 -1
- package/lib/duet/{p-3b668f9d.system.entry.js → p-bff7ece1.system.entry.js} +1 -1
- package/lib/duet/p-c02efffc.system.entry.js +4 -0
- package/lib/duet/p-c162e573.system.entry.js +4 -0
- package/lib/duet/{p-7cc379a7.system.entry.js → p-c1e4c10f.system.entry.js} +1 -1
- package/lib/duet/{p-91374fa5.system.entry.js → p-c999ea8d.system.entry.js} +1 -1
- package/lib/duet/{p-eb8ddb2c.entry.js → p-cb7626f8.entry.js} +1 -1
- package/lib/duet/{p-966bf379.system.entry.js → p-cb833d34.system.entry.js} +1 -1
- package/lib/duet/{p-0853dd3b.system.js → p-d19b027a.system.js} +1 -1
- package/lib/duet/p-d1c6861d.system.entry.js +4 -0
- package/lib/duet/{p-7f96f678.entry.js → p-d2b0c35d.entry.js} +1 -1
- package/lib/duet/{p-de5b2f37.system.js → p-d40e8899.system.js} +1 -1
- package/lib/duet/p-d64e3229.entry.js +4 -0
- package/lib/duet/{p-7e06948d.entry.js → p-d7d9526b.entry.js} +1 -1
- package/lib/duet/{p-fc3f42ab.entry.js → p-d9f0722f.entry.js} +1 -1
- package/lib/duet/{p-191f51da.system.entry.js → p-da60c177.system.entry.js} +1 -1
- package/lib/duet/{p-fe661e98.system.entry.js → p-dd48441b.system.entry.js} +1 -1
- package/lib/duet/{p-c3035dee.system.entry.js → p-deaa6b23.system.entry.js} +1 -1
- package/lib/duet/{p-f368439a.entry.js → p-e021729d.entry.js} +1 -1
- package/lib/duet/{p-d4cf8310.system.entry.js → p-e3bf718e.system.entry.js} +1 -1
- package/lib/duet/{p-01ce7028.system.entry.js → p-e43ff11c.system.entry.js} +1 -1
- package/lib/duet/{p-ecde67f6.entry.js → p-e8daf1e2.entry.js} +1 -1
- package/lib/duet/{p-50428ca6.entry.js → p-ec809c70.entry.js} +1 -1
- package/lib/duet/p-ed4d1a8b.js +4 -0
- package/lib/duet/{p-695da2aa.entry.js → p-ede1eb73.entry.js} +1 -1
- package/lib/duet/{p-2b3b6d33.entry.js → p-ee6bfb1e.entry.js} +1 -1
- package/lib/duet/{p-4f7a0a49.entry.js → p-f00a57c0.entry.js} +1 -1
- package/lib/duet/{p-9d3ef1e0.system.entry.js → p-f3a6603e.system.entry.js} +1 -1
- package/lib/duet/{p-064b79e8.entry.js → p-f4b2f2e8.entry.js} +1 -1
- package/lib/duet/{p-236df5f1.entry.js → p-f7845fea.entry.js} +1 -1
- package/lib/duet/{p-f6c25420.system.entry.js → p-fef50246.system.entry.js} +1 -1
- package/lib/esm/{app-globals-6cbf18ba.js → app-globals-01df0e2e.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +2 -2
- package/lib/esm/duet-alert.entry.js +3 -3
- package/lib/esm/duet-badge.entry.js +3 -3
- package/lib/esm/duet-banner.entry.js +2 -2
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +4 -4
- package/lib/esm/duet-button_2.entry.js +4 -4
- package/lib/esm/duet-callout.entry.js +4 -4
- package/lib/esm/duet-caption_4.entry.js +6 -6
- package/lib/esm/duet-card.entry.js +1 -1
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +3 -3
- package/lib/esm/{duet-chip.entry.js → duet-chip_3.entry.js} +327 -3
- package/lib/esm/duet-choice_2.entry.js +3 -3
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.entry.js +42 -32
- package/lib/esm/duet-contact-card.entry.js +4 -4
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +4 -4
- package/lib/esm/duet-divider_2.entry.js +2 -2
- package/lib/esm/duet-editable-table_3.entry.js +7 -7
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +5 -5
- package/lib/esm/duet-file-chooser.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +3 -3
- package/lib/esm/duet-grid_2.entry.js +1 -1
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +3 -3
- package/lib/esm/duet-icon.entry.js +4 -4
- package/lib/esm/duet-input_2.entry.js +3 -3
- package/lib/esm/duet-layout.entry.js +7 -10
- package/lib/esm/duet-list_2.entry.js +4 -4
- package/lib/esm/duet-menu-bar-button.entry.js +3 -3
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar-dropdown.entry.js +5 -5
- package/lib/esm/duet-menu-bar-item.entry.js +3 -3
- package/lib/esm/duet-menu-bar-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar.entry.js +5 -5
- package/lib/esm/duet-modal.entry.js +10 -10
- package/lib/esm/duet-multiselect.entry.js +8 -8
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +6 -6
- package/lib/esm/duet-number-input.entry.js +3 -3
- package/lib/esm/duet-overlay.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +3 -3
- package/lib/esm/duet-pagination_2.entry.js +15 -15
- package/lib/esm/duet-progress.entry.js +2 -2
- package/lib/esm/duet-promo-card.entry.js +4 -4
- package/lib/esm/duet-radio_2.entry.js +2 -2
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +13 -13
- package/lib/esm/duet-section-layout.entry.js +5 -6
- package/lib/esm/duet-select.entry.js +2 -2
- package/lib/esm/duet-shaped-image.entry.js +3 -3
- package/lib/esm/duet-show-more.entry.js +4 -4
- package/lib/esm/duet-slideout-lang.entry.js +3 -3
- package/lib/esm/duet-slideout-link.entry.js +3 -3
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
- package/lib/esm/duet-slideout-panel.entry.js +10 -10
- package/lib/esm/duet-slideout.entry.js +8 -8
- package/lib/esm/duet-step_2.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-item.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +6 -6
- package/lib/esm/duet-textarea.entry.js +6 -6
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-toolbar-dropdown.entry.js +5 -5
- package/lib/esm/duet-toolbar-item.entry.js +3 -3
- package/lib/esm/duet-toolbar-link.entry.js +3 -3
- package/lib/esm/duet-toolbar.entry.js +3 -3
- package/lib/esm/duet-tooltip-button_2.entry.js +6 -6
- package/lib/esm/duet-tooltip.entry.js +2 -2
- package/lib/esm/duet-tray.entry.js +4 -4
- 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-ac65ace8.js} +1 -1
- package/lib/esm/{focus-utils-1e2c1ed7.js → focus-utils-3e81bca4.js} +1 -1
- package/lib/esm/{index-f384e24a.js → index-5d196317.js} +2 -2
- package/lib/esm/{language-utils-b0c1f3cd.js → language-utils-97f0a1bb.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-e698dc9e.js → slot-utils-4442cc08.js} +1 -1
- package/lib/esm-es5/{app-globals-6cbf18ba.js → app-globals-01df0e2e.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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-ac65ace8.js} +1 -1
- package/lib/esm-es5/focus-utils-3e81bca4.js +4 -0
- package/lib/esm-es5/{index-f384e24a.js → index-5d196317.js} +2 -2
- package/lib/esm-es5/{language-utils-b0c1f3cd.js → language-utils-97f0a1bb.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-e698dc9e.js → slot-utils-4442cc08.js} +1 -1
- 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-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.d.ts +15 -6
- package/package.json +4 -4
- 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/duet/p-053113a9.system.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-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-344d401b.entry.js +0 -4
- package/lib/duet/p-38ab5505.entry.js +0 -4
- package/lib/duet/p-47e4eada.entry.js +0 -4
- package/lib/duet/p-76eec0c0.system.entry.js +0 -4
- package/lib/duet/p-946101a9.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-b93605ee.system.entry.js +0 -4
- package/lib/duet/p-bfb824c6.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-e69bd7e8.entry.js +0 -4
- package/lib/duet/p-ea445202.system.entry.js +0 -4
- package/lib/duet/p-f1bf4f9e.entry.js +0 -4
- package/lib/duet/p-f9eb5cbb.system.entry.js +0 -4
- 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/dist-custom-elements/{p-bc933201.js → p-8764aea1.js} +0 -0
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5d196317.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-860041c5.js';
|
|
6
6
|
import { c as createID } from './create-id-149a1b6d.js';
|
|
7
|
-
import { s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './keyboard-utils-439bcc8b.js';
|
|
7
|
+
import { s as subscribeTabbingChange, u as unsubscribeTabbingChange, f as isEscapeKey, c as isArrowDownKey, b as isArrowUpKey, o as isTabKey } from './keyboard-utils-439bcc8b.js';
|
|
8
|
+
import { o as offset, f as flip, c as computePosition } from './floating-ui.dom.esm-ebc91b33.js';
|
|
9
|
+
import { f as focusElement } from './focus-utils-3e81bca4.js';
|
|
10
|
+
import { T as Teleport } from './teleport-546f382d.js';
|
|
8
11
|
|
|
9
12
|
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
13
|
const DuetChipStyle0 = duetChipCss;
|
|
@@ -283,4 +286,325 @@ const DuetChip = class {
|
|
|
283
286
|
};
|
|
284
287
|
DuetChip.style = DuetChipStyle0;
|
|
285
288
|
|
|
286
|
-
|
|
289
|
+
const 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)}";
|
|
290
|
+
const DuetPopupMenuStyle0 = duetPopupMenuCss;
|
|
291
|
+
|
|
292
|
+
const DuetPopupMenu = class {
|
|
293
|
+
constructor(hostRef) {
|
|
294
|
+
registerInstance(this, hostRef);
|
|
295
|
+
this.duetToggle = createEvent(this, "duetToggle", 7);
|
|
296
|
+
this.setOpenButton = (element) => {
|
|
297
|
+
if (!element) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
try {
|
|
301
|
+
const button = element;
|
|
302
|
+
button.accessiblePopup = "true";
|
|
303
|
+
button.accessibleExpanded = false;
|
|
304
|
+
if (this.controllerIcon) {
|
|
305
|
+
button.setAttribute("trailing-icon", "action-arrow-down-small");
|
|
306
|
+
}
|
|
307
|
+
this.openButton = button;
|
|
308
|
+
}
|
|
309
|
+
catch (_e) { }
|
|
310
|
+
};
|
|
311
|
+
this.openButtonEventListener = () => {
|
|
312
|
+
this.toggle();
|
|
313
|
+
};
|
|
314
|
+
this.updatePlacement = async () => {
|
|
315
|
+
if (!this.openButton) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
const middleware = [
|
|
319
|
+
offset({ mainAxis: this.mainAxisOffset, crossAxis: this.crossAxisOffset }),
|
|
320
|
+
flip({ mainAxis: !this.forcePlacement }),
|
|
321
|
+
];
|
|
322
|
+
const coordinates = await computePosition(this.openButton, this.menuElement, {
|
|
323
|
+
middleware,
|
|
324
|
+
placement: this.placement,
|
|
325
|
+
strategy: this.position,
|
|
326
|
+
});
|
|
327
|
+
this.menuY = coordinates.y;
|
|
328
|
+
this.menuX = coordinates.x;
|
|
329
|
+
};
|
|
330
|
+
this.open = false;
|
|
331
|
+
this.menuY = undefined;
|
|
332
|
+
this.menuX = undefined;
|
|
333
|
+
this.accessibleLabel = undefined;
|
|
334
|
+
this.accessibleRole = "menu";
|
|
335
|
+
this.theme = "";
|
|
336
|
+
this.skipTeleport = undefined;
|
|
337
|
+
this.controller = undefined;
|
|
338
|
+
this.placement = "bottom-start";
|
|
339
|
+
this.forcePlacement = false;
|
|
340
|
+
this.position = "absolute";
|
|
341
|
+
this.mainAxisOffset = 0;
|
|
342
|
+
this.crossAxisOffset = 0;
|
|
343
|
+
this.controllerIcon = "action-arrow-down-small";
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Component lifecycle events.
|
|
347
|
+
*/
|
|
348
|
+
componentWillLoad() {
|
|
349
|
+
inheritGlobalTheme(this);
|
|
350
|
+
}
|
|
351
|
+
componentDidLoad() {
|
|
352
|
+
{
|
|
353
|
+
this.updatePlacement();
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
connectedCallback() {
|
|
357
|
+
this.handleControllerChange(this.controller, null);
|
|
358
|
+
if (!this.teleport) {
|
|
359
|
+
this.teleport = new Teleport(this.element);
|
|
360
|
+
}
|
|
361
|
+
if (this.teleport) {
|
|
362
|
+
this.teleport.activate();
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
disconnectedCallback() {
|
|
366
|
+
if (this.openButton) {
|
|
367
|
+
this.openButton.removeEventListener("click", this.openButtonEventListener);
|
|
368
|
+
if (this.controllerIcon) {
|
|
369
|
+
this.openButton.removeAttribute("trailing-icon");
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Component event handling.
|
|
375
|
+
*/
|
|
376
|
+
handleKeyUp(evt) {
|
|
377
|
+
if (this.open) {
|
|
378
|
+
// When Esc is pressed the menu should be closed
|
|
379
|
+
if (isEscapeKey(evt)) {
|
|
380
|
+
this.focusOpenButton();
|
|
381
|
+
this.hide();
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
async handleKeyDown(evt) {
|
|
386
|
+
if (this.open) {
|
|
387
|
+
if (isArrowDownKey(evt)) {
|
|
388
|
+
evt.preventDefault();
|
|
389
|
+
const current = await this.getFocusedItemIndex();
|
|
390
|
+
if (current !== -1) {
|
|
391
|
+
if (current < this.itemElements.length - 1) {
|
|
392
|
+
this.itemElements[current + 1].setFocus();
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
this.itemElements[0].setFocus();
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
if (isArrowUpKey(evt)) {
|
|
400
|
+
evt.preventDefault();
|
|
401
|
+
const current = await this.getFocusedItemIndex();
|
|
402
|
+
if (current !== -1) {
|
|
403
|
+
if (current === 0) {
|
|
404
|
+
this.itemElements[this.itemElements.length - 1].setFocus();
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
this.itemElements[current - 1].setFocus();
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
if (isTabKey(evt) && this.accessibleRole === "menu") {
|
|
412
|
+
evt.preventDefault();
|
|
413
|
+
this.hide();
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
handleClick(evt) {
|
|
418
|
+
const isClickOutside = evt.composedPath().every(node => node !== this.element && node !== this.openButton);
|
|
419
|
+
if (this.open && isClickOutside) {
|
|
420
|
+
this.hide();
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* isOpen.
|
|
425
|
+
*/
|
|
426
|
+
async isOpen() {
|
|
427
|
+
return this.open;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Show.
|
|
431
|
+
*/
|
|
432
|
+
async show() {
|
|
433
|
+
this.open = true;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Hide.
|
|
437
|
+
*/
|
|
438
|
+
async hide() {
|
|
439
|
+
this.open = false;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Toggle.
|
|
443
|
+
*/
|
|
444
|
+
async toggle() {
|
|
445
|
+
if (this.open) {
|
|
446
|
+
this.hide();
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
this.show();
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
handleControllerChange(newValue, oldValue) {
|
|
453
|
+
if (!!newValue === !!oldValue) {
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
if (typeof this.controller === "string") {
|
|
457
|
+
this.setOpenButton(document.getElementById(this.controller));
|
|
458
|
+
if (this.openButton) {
|
|
459
|
+
this.openButton.addEventListener("click", this.openButtonEventListener);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
else {
|
|
463
|
+
this.setOpenButton(this.controller);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
handleOpenChange(newValue, oldValue) {
|
|
467
|
+
if (!!newValue === !!oldValue) {
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
if (this.open && !oldValue) {
|
|
471
|
+
if (this.openButton) {
|
|
472
|
+
this.openButton.accessibleExpanded = true;
|
|
473
|
+
}
|
|
474
|
+
if (this.accessibleRole !== "listbox") {
|
|
475
|
+
this.teleport.makeSiblingsInert();
|
|
476
|
+
}
|
|
477
|
+
this.updatePlacement();
|
|
478
|
+
setTimeout(() => {
|
|
479
|
+
if (this.accessibleRole === "menu") {
|
|
480
|
+
this.itemElements[0].setFocus();
|
|
481
|
+
}
|
|
482
|
+
this.duetToggle.emit({ open: this.open, component: "duet-popup-menu" });
|
|
483
|
+
}, 200);
|
|
484
|
+
}
|
|
485
|
+
else if (!this.open && oldValue) {
|
|
486
|
+
if (this.openButton) {
|
|
487
|
+
this.openButton.accessibleExpanded = false;
|
|
488
|
+
}
|
|
489
|
+
setTimeout(() => {
|
|
490
|
+
if (this.accessibleRole === "menu") {
|
|
491
|
+
this.focusOpenButton();
|
|
492
|
+
}
|
|
493
|
+
this.duetToggle.emit({ open: this.open, component: "duet-popup-menu" });
|
|
494
|
+
if (this.accessibleRole !== "listbox") {
|
|
495
|
+
this.teleport.removeInertFromSiblings();
|
|
496
|
+
}
|
|
497
|
+
}, 200);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
focusOpenButton() {
|
|
501
|
+
if (this.open) {
|
|
502
|
+
focusElement(this.openButton);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
get itemElements() {
|
|
506
|
+
return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"));
|
|
507
|
+
}
|
|
508
|
+
async getFocusedItemIndex() {
|
|
509
|
+
const items = this.itemElements;
|
|
510
|
+
for (let i = 0; i < items.length; i++) {
|
|
511
|
+
if (await items[i].isFocused()) {
|
|
512
|
+
return i;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
return -1;
|
|
516
|
+
}
|
|
517
|
+
render() {
|
|
518
|
+
const styles = {
|
|
519
|
+
top: `${this.menuY}px`,
|
|
520
|
+
left: `${this.menuX}px`,
|
|
521
|
+
position: this.position,
|
|
522
|
+
overflowY: "auto",
|
|
523
|
+
};
|
|
524
|
+
return (h(Host, { key: '389d4d1b46db081d29a7fa8d57fd65f9c113f7a9' }, h("div", { key: '8d5e47a1dac1f4a7b17aed4aa69afed4cfa44a39', ref: element => {
|
|
525
|
+
this.menuElement = element;
|
|
526
|
+
}, style: styles, 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: '09fc711a6dc838d9e345a694c5e45c09a01bf4ed' }))));
|
|
527
|
+
}
|
|
528
|
+
get element() { return getElement(this); }
|
|
529
|
+
static get watchers() { return {
|
|
530
|
+
"controller": ["handleControllerChange"],
|
|
531
|
+
"open": ["handleOpenChange"]
|
|
532
|
+
}; }
|
|
533
|
+
};
|
|
534
|
+
DuetPopupMenu.style = DuetPopupMenuStyle0;
|
|
535
|
+
|
|
536
|
+
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}.active-descendant{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .active-descendant,.active-descendant.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";
|
|
537
|
+
const DuetPopupMenuItemStyle0 = duetPopupMenuItemCss;
|
|
538
|
+
|
|
539
|
+
const DuetPopupMenuItem = class {
|
|
540
|
+
constructor(hostRef) {
|
|
541
|
+
registerInstance(this, hostRef);
|
|
542
|
+
this.duetFocus = createEvent(this, "duetFocus", 7);
|
|
543
|
+
this.duetBlur = createEvent(this, "duetBlur", 7);
|
|
544
|
+
/**
|
|
545
|
+
* Component event handling.
|
|
546
|
+
*/
|
|
547
|
+
this.onFocus = (ev) => {
|
|
548
|
+
this.focus = true;
|
|
549
|
+
this.duetFocus.emit({
|
|
550
|
+
originalEvent: ev,
|
|
551
|
+
value: this.value,
|
|
552
|
+
component: "duet-popup-menu-item",
|
|
553
|
+
});
|
|
554
|
+
};
|
|
555
|
+
this.onBlur = (ev) => {
|
|
556
|
+
this.focus = false;
|
|
557
|
+
this.duetBlur.emit({
|
|
558
|
+
originalEvent: ev,
|
|
559
|
+
value: this.value,
|
|
560
|
+
component: "duet-popup-menu-item",
|
|
561
|
+
});
|
|
562
|
+
};
|
|
563
|
+
this.focus = false;
|
|
564
|
+
this.accessibleLabel = undefined;
|
|
565
|
+
this.accessibleRole = "menuitem";
|
|
566
|
+
this.theme = "";
|
|
567
|
+
this.url = undefined;
|
|
568
|
+
this.external = false;
|
|
569
|
+
this.targetLanguage = undefined;
|
|
570
|
+
this.value = undefined;
|
|
571
|
+
this.leadingIcon = undefined;
|
|
572
|
+
this.leadingIconColor = undefined;
|
|
573
|
+
this.trailingIcon = undefined;
|
|
574
|
+
this.trailingText = undefined;
|
|
575
|
+
this.active = false;
|
|
576
|
+
this.activeDescendant = false;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Component lifecycle events.
|
|
580
|
+
*/
|
|
581
|
+
componentWillLoad() {
|
|
582
|
+
inheritGlobalTheme(this);
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Sets focus. Use this method instead of the global focus().
|
|
586
|
+
*/
|
|
587
|
+
async setFocus(options) {
|
|
588
|
+
setTimeout(() => this.itemElement.focus(options), 200);
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* isFocused.
|
|
592
|
+
*/
|
|
593
|
+
async isFocused() {
|
|
594
|
+
return this.focus;
|
|
595
|
+
}
|
|
596
|
+
render() {
|
|
597
|
+
const TagName = this.url ? "a" : "button";
|
|
598
|
+
const classes = {
|
|
599
|
+
"duet-popup-menu-item": true,
|
|
600
|
+
active: this.active,
|
|
601
|
+
"duet-theme-turva": this.theme === "turva",
|
|
602
|
+
"active-descendant": this.activeDescendant,
|
|
603
|
+
};
|
|
604
|
+
return (h(Host, { key: 'e53141f7390844d3bd55d5204d7dac9334248fdc', role: this.accessibleRole }, h(TagName, { key: '73fe7bb5b8cc6fa57b12e0d210edc4ef25dd401b', ref: element => (this.itemElement = element), tabIndex: this.accessibleRole === "menuitem" || "option" ? -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: '3fd892272f52814da4c8f14ea7bec580a160e858', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), h("span", { key: '51b7da7f29ef0f85344e02b1a85aa185bca9b26a', class: "duet-popup-menu-item-label" }, h("slot", { key: '9a72c7fcaeeafe89741760d84c91382b31ab798f' })), (this.trailingIcon || this.active) && (h("duet-icon", { key: '1ddf8f956adbe24208d16c33fe28fde167babcb2', 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: '30aa34505231dbe1a78af9256920294e967a559a', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
605
|
+
}
|
|
606
|
+
get element() { return getElement(this); }
|
|
607
|
+
};
|
|
608
|
+
DuetPopupMenuItem.style = DuetPopupMenuItemStyle0;
|
|
609
|
+
|
|
610
|
+
export { DuetChip as duet_chip, DuetPopupMenu as duet_popup_menu, DuetPopupMenuItem as duet_popup_menu_item };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5d196317.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-860041c5.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './common-strings-af765cad.js';
|
|
7
7
|
import { c as createID } from './create-id-149a1b6d.js';
|
|
8
8
|
import { i as isKeyboardClick, h as isQuestionKey, s as subscribeTabbingChange, u as unsubscribeTabbingChange, f as isEscapeKey } from './keyboard-utils-439bcc8b.js';
|
|
9
|
-
import { g as getLocaleString, a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-
|
|
10
|
-
import { h as hasSlot, c as checkNamedSlotElement } from './slot-utils-
|
|
9
|
+
import { g as getLocaleString, a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-97f0a1bb.js';
|
|
10
|
+
import { h as hasSlot, c as checkNamedSlotElement } from './slot-utils-4442cc08.js';
|
|
11
11
|
import './string-utils-192eb3c8.js';
|
|
12
12
|
|
|
13
13
|
var messagingInfo={"title":"messaging-info","tags":"messaging info information circle","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z\"/><circle cx=\"11.625\" cy=\"7.125\" r=\"1.125\"/><path d=\"M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z\"/></svg>"};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5d196317.js';
|
|
5
5
|
import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
|
|
6
6
|
import { f as font_size_medium, t as tokens } from './tokens-e0e3d241.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-860041c5.js';
|
|
8
8
|
import { c as createID } from './create-id-149a1b6d.js';
|
|
9
9
|
import { i as isKeyboardClick, s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './keyboard-utils-439bcc8b.js';
|
|
10
|
-
import { h as hasSlot } from './slot-utils-
|
|
10
|
+
import { h as hasSlot } from './slot-utils-4442cc08.js';
|
|
11
11
|
import { s as sanitizeString } from './string-utils-192eb3c8.js';
|
|
12
12
|
|
|
13
13
|
const duetCollapsibleCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top: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;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.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-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}";
|
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-5d196317.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-860041c5.js';
|
|
6
6
|
import { c as createID } from './create-id-149a1b6d.js';
|
|
7
7
|
import { d as debounce } from './js-utils-9b9e0039.js';
|
|
8
8
|
import { j as isEnterKey, f as isEscapeKey, o as isTabKey, e as isBackspaceKey, b as isArrowUpKey, c as isArrowDownKey } from './keyboard-utils-439bcc8b.js';
|
|
9
|
-
import { g as getLocaleString, a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-
|
|
10
|
-
import { g as getElementsFromDefaultSlot } from './slot-utils-
|
|
9
|
+
import { g as getLocaleString, a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-97f0a1bb.js';
|
|
10
|
+
import { g as getElementsFromDefaultSlot } from './slot-utils-4442cc08.js';
|
|
11
11
|
import { r as regexEscape, p as parsePossibleJSON } from './string-utils-192eb3c8.js';
|
|
12
12
|
|
|
13
|
-
const DuetComboBoxSelect = ({ item,
|
|
13
|
+
const DuetComboBoxSelect = ({ item, activeDescendant, selected, label = undefined, clickHandler = e => {
|
|
14
14
|
e.preventDefault();
|
|
15
15
|
}, keyHandler = e => {
|
|
16
16
|
e.preventDefault();
|
|
17
|
-
}, search, isAndroidDevice, }) => {
|
|
17
|
+
}, search, isAndroidDevice, id, }) => {
|
|
18
18
|
const searchTerms = search
|
|
19
19
|
.split(" ")
|
|
20
20
|
.filter(term => !!term.trim())
|
|
21
21
|
.map(term => regexEscape(term));
|
|
22
22
|
const regEx = search !== "" ? new RegExp(`(${searchTerms.join("|")})`, "i") : undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
option: true,
|
|
26
|
-
active: active,
|
|
27
|
-
selected: selected,
|
|
28
|
-
}, id: active ? "active_item" : "", "data-index": item.id, "aria-selected": active ? "true" : undefined, "aria-current": selected ? "true" : undefined, role: "option", "aria-label": label, tabindex: isAndroidDevice ? "-1" : null, onClick: e => clickHandler(e), onKeyUp: e => keyHandler(e) },
|
|
29
|
-
selected && h("duet-icon", { class: "option-icon", name: "messaging-checked", size: "xx-small", margin: "none" }),
|
|
23
|
+
const highlightStyle = "text-decoration: underline";
|
|
24
|
+
return (h("duet-popup-menu-item", { id: activeDescendant ? id : "", active: selected, "data-index": item.id, "aria-selected": activeDescendant ? "true" : undefined, "aria-current": selected ? "true" : undefined, role: "option", "aria-label": label, tabindex: isAndroidDevice ? "-1" : null, onClick: e => clickHandler(e), onKeyUp: e => keyHandler(e), accessibleRole: "option", activeDescendant: activeDescendant },
|
|
30
25
|
regEx ? (h("span", { class: "option-container", "aria-hidden": "true" },
|
|
31
|
-
h("span", { innerHTML: item.name.replace(regEx,
|
|
26
|
+
h("span", { innerHTML: item.name.replace(regEx, `<span style="${highlightStyle}">$&</span>`) }))) : (item.name),
|
|
32
27
|
item.tags && h("span", { class: "option-tags" }, item.tags.join(", "))));
|
|
33
28
|
};
|
|
34
29
|
|
|
35
|
-
const duetComboboxCss = ".sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(0, 41, 77)}.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(0, 41, 77);transition:none}.duet-theme-turva.sc-duet-combobox-h{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-theme-turva.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(23, 28, 58)}.
|
|
30
|
+
const duetComboboxCss = ".sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(0, 41, 77)}.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(0, 41, 77);transition:none}.duet-theme-turva.sc-duet-combobox-h{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-theme-turva.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(23, 28, 58)}.combobox-menu-container.sc-duet-combobox{width:var(--popup-width);max-height:200px}";
|
|
36
31
|
const DuetComboboxStyle0 = duetComboboxCss;
|
|
37
32
|
|
|
38
33
|
const DuetCombobox = class {
|
|
@@ -41,14 +36,16 @@ const DuetCombobox = class {
|
|
|
41
36
|
this.duetChange = createEvent(this, "duetChange", 3);
|
|
42
37
|
var _a, _b;
|
|
43
38
|
this.listBoxId = createID("duet-combobox-list-element");
|
|
39
|
+
this.inputId = createID("duet-combobox-input-id");
|
|
40
|
+
this.activeDescendantId = createID("duet-combobox-active-descendant");
|
|
44
41
|
this.isAndroidDevice = ((_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.userAgent) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.indexOf("android")) > -1 || null;
|
|
45
42
|
this.resizeObserver = new ResizeObserver(debounce(entries => {
|
|
46
|
-
var _a, _b;
|
|
43
|
+
var _a, _b, _c;
|
|
47
44
|
// otherwise, something is wrong, expecting 1 element only
|
|
48
45
|
if ((entries === null || entries === void 0 ? void 0 : entries.length) === 1) {
|
|
49
46
|
const currentWidth = (_b = (_a = entries[0]) === null || _a === void 0 ? void 0 : _a.target) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().width;
|
|
50
|
-
this.listContainer.
|
|
51
|
-
|
|
47
|
+
const popupMenuPadding = parseInt((_c = getComputedStyle(this.listContainer.shadowRoot.querySelector(".duet-popup-menu-list"))) === null || _c === void 0 ? void 0 : _c.padding);
|
|
48
|
+
this.listContainer.style.setProperty("--popup-width", `${currentWidth - 2 * popupMenuPadding}px`);
|
|
52
49
|
}
|
|
53
50
|
}, 100));
|
|
54
51
|
this.onInputChange = async (e) => {
|
|
@@ -73,6 +70,9 @@ const DuetCombobox = class {
|
|
|
73
70
|
if (!this.force && !this.multiple && this.selectedItems.size > 0 && newValue !== this.getSelectedItemLabel()) {
|
|
74
71
|
this.selectedItems.clear();
|
|
75
72
|
}
|
|
73
|
+
if (!this.force && !this.multiple && newValue === "") {
|
|
74
|
+
this.value = undefined;
|
|
75
|
+
}
|
|
76
76
|
this.listOpen = String(newValue).length >= this.minCharacters && ((_a = this.getFilteredItems()) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
77
77
|
};
|
|
78
78
|
this.onKeyDown = (e) => {
|
|
@@ -103,6 +103,9 @@ const DuetCombobox = class {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
if (isEscapeKey(e) || isTabKey(e)) {
|
|
106
|
+
if (this.listOpen) {
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
}
|
|
106
109
|
this.updateInputText(true);
|
|
107
110
|
this.activeItem = undefined;
|
|
108
111
|
this.listOpen = false;
|
|
@@ -135,7 +138,7 @@ const DuetCombobox = class {
|
|
|
135
138
|
}
|
|
136
139
|
// this should be set to undefined on everything BUT up/down arrow according to the aria 1.1 specs
|
|
137
140
|
// https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
|
|
138
|
-
this.input.accessibleActiveDescendant =
|
|
141
|
+
this.input.accessibleActiveDescendant = this.activeDescendantId;
|
|
139
142
|
this.activeItem = nextActiveItem;
|
|
140
143
|
this.scrollToActive();
|
|
141
144
|
}
|
|
@@ -176,8 +179,16 @@ const DuetCombobox = class {
|
|
|
176
179
|
this.openListOnClick = false;
|
|
177
180
|
this.filterType = "startsWith";
|
|
178
181
|
}
|
|
182
|
+
popupMenuOpenHandler() {
|
|
183
|
+
if (this.listOpen) {
|
|
184
|
+
this.listContainer.show();
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
this.listContainer.hide();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
179
190
|
activeItemHandler(state) {
|
|
180
|
-
this.input.accessibleActiveDescendant = this.listOpen && (state || state === 0) ?
|
|
191
|
+
this.input.accessibleActiveDescendant = this.listOpen && (state || state === 0) ? this.activeDescendantId : "";
|
|
181
192
|
}
|
|
182
193
|
handleDocumentClick(e) {
|
|
183
194
|
//we want to remove all user text if they have NOT selected from the dropdown
|
|
@@ -291,6 +302,7 @@ const DuetCombobox = class {
|
|
|
291
302
|
this.input.accessibleExpanded = this.listOpen ? "true" : "false";
|
|
292
303
|
this.input.accessibleAutocomplete = "list";
|
|
293
304
|
this.input.accessibleControls = this.listBoxId;
|
|
305
|
+
this.input.id = this.inputId;
|
|
294
306
|
this.element.addEventListener("keydown", this.onKeyDown);
|
|
295
307
|
connectLanguageChangeObserver(this, { prop: "accessibleLabels", defaults: "accessibleLabelDefaults" });
|
|
296
308
|
this.processListOpenChange();
|
|
@@ -342,6 +354,7 @@ const DuetCombobox = class {
|
|
|
342
354
|
this.value = this.processedItems.filter(item => this.selectedItems.has(item.id)).map(item => item.value);
|
|
343
355
|
this.input.value = "";
|
|
344
356
|
this.updateChips();
|
|
357
|
+
this.input.setFocus();
|
|
345
358
|
}
|
|
346
359
|
/**
|
|
347
360
|
* Add item with id to the selectedItems set. Used only when multiple is true.
|
|
@@ -376,6 +389,8 @@ const DuetCombobox = class {
|
|
|
376
389
|
if (this.selectedItems.has(id)) {
|
|
377
390
|
this.selectedItems.delete(id);
|
|
378
391
|
this.value = undefined;
|
|
392
|
+
this.input.value = "";
|
|
393
|
+
await this.input.setFocus();
|
|
379
394
|
}
|
|
380
395
|
else {
|
|
381
396
|
this.selectedItems.clear();
|
|
@@ -383,7 +398,7 @@ const DuetCombobox = class {
|
|
|
383
398
|
this.value = this.processedItems.find(item => item.id === id).value;
|
|
384
399
|
}
|
|
385
400
|
if (emitEvent) {
|
|
386
|
-
this.emitChangeEvent(id);
|
|
401
|
+
this.emitChangeEvent(this.value && id);
|
|
387
402
|
}
|
|
388
403
|
await this.updateInputText();
|
|
389
404
|
}
|
|
@@ -447,6 +462,7 @@ const DuetCombobox = class {
|
|
|
447
462
|
this.input.value = ""; // set value to empty so that cursor position follows accordingly
|
|
448
463
|
this.input.value = await this.getSelectedItemLabel();
|
|
449
464
|
this.input.scrollLeft = this.input.scrollWidth;
|
|
465
|
+
await this.input.setFocus();
|
|
450
466
|
}
|
|
451
467
|
}
|
|
452
468
|
// Event handlers
|
|
@@ -466,7 +482,7 @@ const DuetCombobox = class {
|
|
|
466
482
|
}
|
|
467
483
|
//function that scrolls to the li element with the class "active"
|
|
468
484
|
scrollToActive() {
|
|
469
|
-
const activeElement =
|
|
485
|
+
const activeElement = document.getElementById(`${this.activeDescendantId}`); // this is undefined on 1st keydown, make it be valid to fix the issue
|
|
470
486
|
if (activeElement) {
|
|
471
487
|
activeElement.scrollIntoView({
|
|
472
488
|
behavior: "smooth",
|
|
@@ -538,23 +554,17 @@ const DuetCombobox = class {
|
|
|
538
554
|
return (h(Host, { class: {
|
|
539
555
|
"duet-combobox": true,
|
|
540
556
|
[`duet-theme-${this.theme}`]: true,
|
|
541
|
-
} }, h("slot", null), h("div", { class:
|
|
542
|
-
"duet-combobox-list": true,
|
|
543
|
-
open: this.listOpen,
|
|
544
|
-
}, ref: el => (this.listContainer = el) }, h("ul", { class: {
|
|
545
|
-
"duet-combobox-listbox-open": this.listOpen,
|
|
546
|
-
"duet-combobox-listbox": true,
|
|
547
|
-
}, role: "listbox", ref: el => (this.listElement = el), id: this.listBoxId }, this.listOpen &&
|
|
557
|
+
} }, h("slot", null), h("div", null, h("duet-popup-menu", { id: this.listBoxId, controller: this.input, ref: el => (this.listContainer = el), accessibleRole: "listbox" }, h("div", { class: "combobox-menu-container" }, this.listOpen &&
|
|
548
558
|
selectElements.map((item, index) => {
|
|
549
|
-
return (h(DuetComboBoxSelect, { item: item,
|
|
550
|
-
})))));
|
|
559
|
+
return (h(DuetComboBoxSelect, { id: this.activeDescendantId, item: item, activeDescendant: index === this.activeItem, selected: this.selectedItems.has(item.id), search: this.inputValue, clickHandler: e => this.onListClick(e, item), label: this.formatLabel(item, index, selectElements.length, this.processedItems.length), isAndroidDevice: this.isAndroidDevice }));
|
|
560
|
+
}), h("duet-spacer", { size: "x-small" }))))));
|
|
551
561
|
}
|
|
552
562
|
get element() { return getElement(this); }
|
|
553
563
|
static get watchers() { return {
|
|
564
|
+
"listOpen": ["popupMenuOpenHandler", "processListOpenChange"],
|
|
554
565
|
"activeItem": ["activeItemHandler"],
|
|
555
566
|
"items": ["processItems"],
|
|
556
|
-
"value": ["processValue"]
|
|
557
|
-
"listOpen": ["processListOpenChange"]
|
|
567
|
+
"value": ["processValue"]
|
|
558
568
|
}; }
|
|
559
569
|
};
|
|
560
570
|
DuetCombobox.style = DuetComboboxStyle0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-5d196317.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-860041c5.js';
|
|
6
|
-
import { a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-
|
|
6
|
+
import { a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-97f0a1bb.js';
|
|
7
7
|
import './string-utils-192eb3c8.js';
|
|
8
8
|
|
|
9
9
|
const duetContactCardCss = "*,*::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-bottom:12px !important;display:block}:host(.duet-m-0){margin:0 !important}::slotted(*){padding-top:1.5rem}@media (min-width: 48em){::slotted(*){grid-column:2/span 2;padding-top:0}}.duet-contact-card{display:grid;grid-template-columns:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}.duet-contact-card.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}@media (min-width: 48em){.duet-contact-card{grid-template-columns:min-content minmax(0, 1fr) auto;gap:20px}}.duet-contact-card .image{width:4rem;height:4rem;margin-bottom:8px;border-radius:4px}@media (min-width: 48em){.duet-contact-card .image{width:6rem;height:6rem;padding-bottom:0}}.duet-contact-card .description{padding-bottom:8px}.duet-contact-card .email,.duet-contact-card .phone{display:grid;grid-template-columns:min-content auto;gap:8px;align-items:center;justify-content:flex-start;padding-bottom:8px;overflow-wrap:break-word}";
|
|
@@ -51,10 +51,10 @@ const DuetContactCard = class {
|
|
|
51
51
|
render() {
|
|
52
52
|
const isTurva = this.theme === "turva";
|
|
53
53
|
const theme = isTurva ? "turva" : "default";
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '74f85ad21c040a5a98dee8c360b9958be3109855', class: { "duet-m-0": this.margin === "none" } }, h("div", { key: 'd11d8de783ddd26e09d9e96923dc781f569e93f9', class: {
|
|
55
55
|
"duet-contact-card": true,
|
|
56
56
|
"duet-theme-turva": this.theme === "turva",
|
|
57
|
-
}, role: "group", "aria-label": this.name }, this.image ? h("img", { class: "image", src: this.image, alt: this.name }) : h("div", null), h("div", { key: '
|
|
57
|
+
}, role: "group", "aria-label": this.name }, this.image ? h("img", { class: "image", src: this.image, alt: this.name }) : h("div", null), h("div", { key: '7e934c796778de29e95e94bebec6937048b78566' }, this.name && (h("duet-heading", { key: '26031bfeb5a46a69ebba836bd1cc714b077bb121', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (h("duet-paragraph", { key: '8768df03c1a5dfb04cdf1eda46da5a327bbf3324', class: "description", margin: "none", theme: theme }, this.description)), this.email && (h("div", { key: '92235e6bd3a7012a478cfd8100e4f5701f9ea950', class: "email" }, h("duet-icon", { key: '3fe17e7cc18b9f724be2627dcb4e0adf667aaf5b', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: 'cc356db4a9b7f198504873d3e335cd6f83d7c70c', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (h("div", { key: 'b9e6b3cc84f4aa81599ff5b7cd626f3e5f03ab33', class: "phone" }, h("duet-icon", { key: '3223b182ee564f36ec8994536981eb6bc9fba82d', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '2396ee622e62c5a5be8dde2ecc9edecbb823cc9a', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (h("div", { key: 'b5d4135434a9627822c9569ae9945bc5c3c2441a', class: "call-to-action" }, h("duet-button", { key: '7ebaddbe3b97f9916fada3f248c343eb7bd6bdde', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), h("div", { key: '12212314eff53718f85f30af84592ee6447b6b7b' }), h("slot", { key: 'd1d55182364ac381b7f4ce0bcdecc6c0643739bc' }))));
|
|
58
58
|
}
|
|
59
59
|
get element() { return getElement(this); }
|
|
60
60
|
};
|