@duetds/components 9.3.2 → 9.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +321 -206
- package/lib/cjs/{a11y-utils-9d522b3c.js → a11y-utils-d8d25cf4.js} +1 -1
- package/lib/cjs/{app-globals-ed8b5106.js → app-globals-99f2f39f.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- 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 +7 -7
- 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 +11 -11
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- 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_3.cjs.entry.js +15 -11
- package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +17 -6
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +8 -8
- package/lib/cjs/duet-empty-state.cjs.entry.js +3 -3
- package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +8 -8
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-hero.cjs.entry.js +8 -8
- package/lib/cjs/duet-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-layout.cjs.entry.js +8 -8
- 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 +4 -4
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -5
- package/lib/cjs/duet-modal.cjs.entry.js +11 -11
- package/lib/cjs/duet-multiselect.cjs.entry.js +9 -9
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
- 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 +16 -16
- 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 +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +34 -30
- package/lib/cjs/duet-section-layout.cjs.entry.js +5 -5
- 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 +5 -5
- 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 +10 -9
- package/lib/cjs/duet-status-icon.cjs.entry.js +86 -0
- package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-textarea.cjs.entry.js +3 -3
- package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +7 -7
- 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 +7 -7
- package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
- package/lib/cjs/duet-tray.cjs.entry.js +5 -5
- 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-042e73b2.js → errorcodes.utils-2db03da6.js} +1 -1
- package/lib/cjs/{focus-utils-79683b7f.js → focus-utils-5578a0a5.js} +1 -1
- package/lib/cjs/{index-48792b1c.js → index-9c3aea30.js} +331 -2
- package/lib/cjs/{keyboard-utils-681e11ec.js → keyboard-utils-f7c9f980.js} +4 -0
- package/lib/cjs/{language-utils-0b533bd8.js → language-utils-9499975c.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-4993d500.js → slot-utils-58467702.js} +1 -1
- package/lib/collection/collection-manifest.json +1 -0
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-chip/duet-chip.js +4 -2
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +17 -1
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +33 -2
- 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.css +1 -1
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
- 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 +4 -4
- package/lib/collection/components/duet-heading/duet-heading.css +1 -0
- package/lib/collection/components/duet-heading/duet-heading.js +2 -2
- 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-layout/duet-layout.css +0 -3
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +2 -2
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -2
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.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 +6 -6
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +6 -4
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +21 -38
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +20 -19
- package/lib/collection/components/duet-section-layout/duet-section-layout.css +0 -3
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.js +5 -4
- 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 +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +182 -0
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- 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.css +24 -3
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +28 -5
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- 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 +3 -3
- 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-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/keyboard-utils.js +3 -0
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +3 -3
- package/lib/dist-custom-elements/duet-breadcrumb.js +8 -8
- package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +4 -4
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +4 -4
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +8 -8
- package/lib/dist-custom-elements/duet-choice.js +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +25 -7
- package/lib/dist-custom-elements/duet-combobox.js +16 -16
- package/lib/dist-custom-elements/duet-contact-card.js +10 -10
- package/lib/dist-custom-elements/duet-cookie-consent.js +8 -8
- package/lib/dist-custom-elements/duet-date-picker.js +14 -14
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +8 -8
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.js +3 -3
- package/lib/dist-custom-elements/duet-footer.js +12 -12
- 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 +9 -9
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +14 -14
- 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 -7
- 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 +5 -5
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +7 -7
- 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 -5
- package/lib/dist-custom-elements/duet-modal.js +15 -15
- package/lib/dist-custom-elements/duet-multiselect.js +15 -15
- 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 +12 -12
- package/lib/dist-custom-elements/duet-overlay.js +1 -1
- package/lib/dist-custom-elements/duet-page-heading.js +5 -5
- package/lib/dist-custom-elements/duet-pagination.js +25 -25
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +5 -5
- package/lib/dist-custom-elements/duet-radio-group.js +8 -8
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +3 -3
- 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 -5
- 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 +3 -3
- 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 +8 -8
- package/lib/dist-custom-elements/duet-slideout.js +9 -8
- 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-status-icon.d.ts +11 -0
- package/lib/dist-custom-elements/duet-status-icon.js +111 -0
- package/lib/dist-custom-elements/duet-step.js +5 -5
- package/lib/dist-custom-elements/duet-stepper.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +5 -5
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +7 -7
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
- package/lib/dist-custom-elements/duet-tab-group.js +18 -14
- 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 +10 -10
- package/lib/dist-custom-elements/duet-toggle.js +3 -3
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +5 -5
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +7 -7
- package/lib/dist-custom-elements/duet-toolbar-item.js +5 -5
- 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 +21 -21
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-962142a6.js → p-02060606.js} +12 -12
- package/lib/dist-custom-elements/{p-c37a3d76.js → p-0323fc27.js} +5 -5
- package/lib/dist-custom-elements/{p-4dd5d18f.js → p-0a566079.js} +11 -11
- package/lib/dist-custom-elements/{p-fd7b2557.js → p-0a959269.js} +4 -4
- package/lib/dist-custom-elements/{p-e7a9cd6f.js → p-1080a6c7.js} +1 -1
- package/lib/dist-custom-elements/{p-712259e0.js → p-159ce59f.js} +3 -3
- package/lib/dist-custom-elements/{p-fa2c423f.js → p-195bcbbc.js} +8 -6
- package/lib/dist-custom-elements/{p-c90eb69a.js → p-1b3d1a63.js} +4 -4
- package/lib/dist-custom-elements/{p-64b0aebd.js → p-1e473975.js} +2 -2
- package/lib/dist-custom-elements/{p-d5f00f7a.js → p-269887e7.js} +4 -4
- package/lib/dist-custom-elements/{p-86494dae.js → p-283c8c77.js} +26 -25
- package/lib/dist-custom-elements/{p-167f1cfd.js → p-2ccad3d5.js} +4 -4
- package/lib/dist-custom-elements/{p-883b759b.js → p-3392a6b5.js} +8 -8
- package/lib/dist-custom-elements/{p-fd267007.js → p-35014c4b.js} +6 -6
- package/lib/dist-custom-elements/{p-8e60819a.js → p-447bdf9c.js} +3 -3
- package/lib/dist-custom-elements/{p-6feba7bb.js → p-4c77c6a3.js} +3 -3
- package/lib/dist-custom-elements/{p-a5e5d630.js → p-538c0817.js} +3 -3
- package/lib/dist-custom-elements/p-54a8c7e1.js +80 -0
- package/lib/dist-custom-elements/{p-25ea4a16.js → p-5c11ac99.js} +2 -2
- package/lib/dist-custom-elements/{p-7302dad1.js → p-6617d6ac.js} +3 -3
- package/lib/dist-custom-elements/{p-accdf258.js → p-6657fbee.js} +6 -6
- package/lib/dist-custom-elements/{p-e718ebf2.js → p-67704520.js} +2 -2
- package/lib/dist-custom-elements/{p-88047e60.js → p-705254ba.js} +6 -4
- package/lib/dist-custom-elements/{p-fd2cf87d.js → p-77a6d407.js} +1 -1
- package/lib/dist-custom-elements/{p-afe17ede.js → p-8381740e.js} +4 -4
- package/lib/dist-custom-elements/{p-20f331d0.js → p-86bff8f2.js} +1 -1
- package/lib/dist-custom-elements/{p-54931e85.js → p-8885bff1.js} +2 -2
- package/lib/dist-custom-elements/{p-ca700701.js → p-8db11326.js} +4 -1
- package/lib/dist-custom-elements/{p-9fb49035.js → p-9a854b9b.js} +4 -4
- package/lib/dist-custom-elements/{p-c5dd5195.js → p-a8859d41.js} +2 -2
- package/lib/dist-custom-elements/{p-0b80be82.js → p-bcdec622.js} +2 -2
- package/lib/dist-custom-elements/{p-7623dd11.js → p-c1f97fa7.js} +7 -7
- package/lib/dist-custom-elements/{p-00371426.js → p-ccfdbbfd.js} +3 -3
- package/lib/dist-custom-elements/{p-5d23c028.js → p-d74ee462.js} +1 -1
- package/lib/dist-custom-elements/{p-33d21ff2.js → p-d8ca9bb0.js} +8 -8
- package/lib/dist-custom-elements/{p-ea321c45.js → p-dafd01b3.js} +1 -1
- package/lib/dist-custom-elements/{p-873a94ec.js → p-e6396ef5.js} +3 -3
- package/lib/dist-custom-elements/{p-f8c8174f.js → p-e95fb79b.js} +1 -1
- package/lib/dist-custom-elements/{p-ac901dbf.js → p-ef906a44.js} +5 -5
- package/lib/dist-custom-elements/{p-18a780a8.js → p-f2e41ed9.js} +2 -2
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-863b7447.entry.js → p-03259614.entry.js} +1 -1
- package/lib/duet/{p-e83ed709.system.js → p-054f5ec6.system.js} +1 -1
- package/lib/duet/p-0750dca1.entry.js +4 -0
- package/lib/duet/p-07f685d3.entry.js +4 -0
- package/lib/duet/{p-285978b7.entry.js → p-086a3406.entry.js} +1 -1
- package/lib/duet/{p-1b6ef5df.js → p-0a675075.js} +1 -1
- package/lib/duet/p-0dfbe740.entry.js +4 -0
- package/lib/duet/{p-3727fa6a.entry.js → p-10c5ce3a.entry.js} +1 -1
- package/lib/duet/{p-19d7c08d.system.entry.js → p-126d3a77.system.entry.js} +2 -2
- package/lib/duet/p-140fd433.system.entry.js +4 -0
- package/lib/duet/{p-fdade91c.entry.js → p-145d2c10.entry.js} +1 -1
- package/lib/duet/{p-63b85043.system.entry.js → p-18cee812.system.entry.js} +2 -2
- package/lib/duet/{p-78f953dd.entry.js → p-1aac7b52.entry.js} +1 -1
- package/lib/duet/{p-293a8254.entry.js → p-1f059581.entry.js} +1 -1
- package/lib/duet/{p-3e36ca1f.entry.js → p-21631e83.entry.js} +1 -1
- package/lib/duet/p-241e3985.system.entry.js +4 -0
- package/lib/duet/{p-ccfc05f8.system.entry.js → p-257b436e.system.entry.js} +1 -1
- package/lib/duet/{p-86005dff.system.entry.js → p-26b99c47.system.entry.js} +1 -1
- package/lib/duet/{p-d5512e16.system.entry.js → p-274b3451.system.entry.js} +1 -1
- package/lib/duet/{p-3de1602a.entry.js → p-280630b2.entry.js} +1 -1
- package/lib/duet/{p-aeef4188.entry.js → p-28696d40.entry.js} +1 -1
- package/lib/duet/{p-361f616c.system.entry.js → p-291d313b.system.entry.js} +1 -1
- package/lib/duet/{p-53aa1f8a.entry.js → p-296d5473.entry.js} +1 -1
- package/lib/duet/p-2981b2b9.system.entry.js +4 -0
- package/lib/duet/{p-94855b40.system.js → p-2d6410d0.system.js} +1 -1
- package/lib/duet/{p-ae8df627.entry.js → p-2eaefb06.entry.js} +1 -1
- package/lib/duet/{p-8ec97e17.system.entry.js → p-2f021c6a.system.entry.js} +1 -1
- package/lib/duet/p-33d04b9b.entry.js +4 -0
- package/lib/duet/p-344ead85.system.entry.js +4 -0
- package/lib/duet/p-352dae35.entry.js +4 -0
- package/lib/duet/{p-75ccf31d.system.entry.js → p-36a1de2f.system.entry.js} +1 -1
- package/lib/duet/{p-ae1ab925.entry.js → p-36a9f7ef.entry.js} +1 -1
- package/lib/duet/{p-9a263ca4.entry.js → p-37085adb.entry.js} +1 -1
- package/lib/duet/{p-5b0c6bd5.system.entry.js → p-38e51258.system.entry.js} +2 -2
- package/lib/duet/{p-46e18b0d.system.entry.js → p-3933c84c.system.entry.js} +1 -1
- package/lib/duet/{p-40b7d7a6.entry.js → p-3a16a027.entry.js} +1 -1
- package/lib/duet/{p-a85274d6.entry.js → p-3aa36e16.entry.js} +1 -1
- package/lib/duet/{p-c44f38a8.entry.js → p-41cced2e.entry.js} +1 -1
- package/lib/duet/{p-68231a92.system.js → p-4289c19b.system.js} +1 -1
- package/lib/duet/{p-1152dc3f.entry.js → p-452883d8.entry.js} +1 -1
- package/lib/duet/p-4a91b8bc.system.entry.js +4 -0
- package/lib/duet/{p-6cd39e87.entry.js → p-4afae9c6.entry.js} +1 -1
- package/lib/duet/{p-06dd43b6.system.entry.js → p-4ca75b84.system.entry.js} +1 -1
- package/lib/duet/{p-c356d09c.js → p-4d06fd44.js} +1 -1
- package/lib/duet/{p-d144d52c.entry.js → p-4f672fb0.entry.js} +1 -1
- package/lib/duet/{p-54d61566.entry.js → p-51b198a9.entry.js} +1 -1
- package/lib/duet/{p-a131e2c8.entry.js → p-51f95f2e.entry.js} +1 -1
- package/lib/duet/{p-48f56f3d.system.entry.js → p-541429d7.system.entry.js} +2 -2
- package/lib/duet/{p-5916fd4c.system.entry.js → p-544acabc.system.entry.js} +1 -1
- package/lib/duet/{p-ebfb92db.entry.js → p-54689a14.entry.js} +1 -1
- package/lib/duet/{p-8d7050bd.entry.js → p-54e704a1.entry.js} +1 -1
- package/lib/duet/{p-77a4a288.system.entry.js → p-5555c8b1.system.entry.js} +1 -1
- package/lib/duet/p-55ecc86b.entry.js +4 -0
- package/lib/duet/p-5645fe0f.entry.js +4 -0
- package/lib/duet/p-56d8b241.system.entry.js +4 -0
- package/lib/duet/{p-d5525f32.system.entry.js → p-56d9a98c.system.entry.js} +1 -1
- package/lib/duet/{p-3d83d128.system.entry.js → p-59a32595.system.entry.js} +1 -1
- package/lib/duet/{p-c4a3d876.entry.js → p-59c9d492.entry.js} +1 -1
- package/lib/duet/p-5b8a114c.system.entry.js +4 -0
- package/lib/duet/{p-311bb293.system.entry.js → p-5c8de709.system.entry.js} +1 -1
- package/lib/duet/{p-dcd8a2b7.system.entry.js → p-5df12983.system.entry.js} +1 -1
- package/lib/duet/{p-1291a0aa.entry.js → p-5f06bb51.entry.js} +1 -1
- package/lib/duet/{p-b2e5420c.system.entry.js → p-63b854a7.system.entry.js} +1 -1
- package/lib/duet/{p-4bcbe08f.entry.js → p-659d4dd6.entry.js} +1 -1
- package/lib/duet/{p-13f436fb.system.entry.js → p-66bfcb56.system.entry.js} +1 -1
- package/lib/duet/{p-d4f4c169.system.entry.js → p-673b20ea.system.entry.js} +1 -1
- package/lib/duet/{p-6bb784cd.system.entry.js → p-67da02dd.system.entry.js} +1 -1
- package/lib/duet/{p-f57bf786.system.entry.js → p-6899c158.system.entry.js} +1 -1
- package/lib/duet/{p-5cf51af4.system.entry.js → p-6d41bea4.system.entry.js} +1 -1
- package/lib/duet/{p-a6754d5d.system.entry.js → p-7069c290.system.entry.js} +1 -1
- package/lib/duet/{p-8e50bb3c.system.entry.js → p-70a6edcd.system.entry.js} +1 -1
- package/lib/duet/{p-70bfa140.entry.js → p-71b99868.entry.js} +1 -1
- package/lib/duet/{p-087f7b07.system.entry.js → p-73ff5910.system.entry.js} +1 -1
- package/lib/duet/p-745a94fa.entry.js +4 -0
- package/lib/duet/{p-e0a6de56.system.js → p-74aa0f9d.system.js} +1 -1
- package/lib/duet/{p-90e9fafd.system.entry.js → p-74c70041.system.entry.js} +1 -1
- package/lib/duet/{p-34d7dd10.system.js → p-752fa0fc.system.js} +1 -1
- package/lib/duet/p-7648f559.system.js +4 -0
- package/lib/duet/{p-e94d7fd9.entry.js → p-76fd0ec2.entry.js} +1 -1
- package/lib/duet/{p-a0f3b9ac.entry.js → p-7718746e.entry.js} +1 -1
- package/lib/duet/{p-eea2c82d.system.entry.js → p-795bf9ca.system.entry.js} +1 -1
- package/lib/duet/{p-11aeff7a.entry.js → p-7c235af5.entry.js} +1 -1
- package/lib/duet/{p-13f8502f.js → p-7d6ddeec.js} +1 -1
- package/lib/duet/{p-1180725a.entry.js → p-7efd74ca.entry.js} +1 -1
- package/lib/duet/{p-ed12c299.system.entry.js → p-7f6a61f0.system.entry.js} +1 -1
- package/lib/duet/{p-f911eeb3.system.entry.js → p-7fb92a7e.system.entry.js} +1 -1
- package/lib/duet/{p-14d0f248.system.entry.js → p-8305c56f.system.entry.js} +1 -1
- package/lib/duet/{p-97b2ae4e.system.entry.js → p-839b3553.system.entry.js} +2 -2
- package/lib/duet/{p-eede054e.entry.js → p-85641c26.entry.js} +1 -1
- package/lib/duet/{p-8b64edd3.system.entry.js → p-86150b9f.system.entry.js} +1 -1
- package/lib/duet/{p-7005c045.entry.js → p-87040cdc.entry.js} +1 -1
- package/lib/duet/p-87302bc0.entry.js +4 -0
- package/lib/duet/{p-6fd11cfd.system.entry.js → p-8860ca98.system.entry.js} +1 -1
- package/lib/duet/{p-79e18558.entry.js → p-8968462d.entry.js} +1 -1
- package/lib/duet/{p-33c4c937.system.entry.js → p-8984c2a3.system.entry.js} +1 -1
- package/lib/duet/p-8aa37257.entry.js +4 -0
- package/lib/duet/p-8bfce1f7.entry.js +4 -0
- package/lib/duet/{p-aa5652c8.system.entry.js → p-8c78634e.system.entry.js} +1 -1
- package/lib/duet/{p-c4098610.system.entry.js → p-8ca8ab58.system.entry.js} +1 -1
- package/lib/duet/{p-2e842525.system.entry.js → p-8ff659e3.system.entry.js} +1 -1
- package/lib/duet/{p-d85ad216.system.entry.js → p-91f6cf96.system.entry.js} +1 -1
- package/lib/duet/{p-d1ac5674.entry.js → p-95c6d4d0.entry.js} +1 -1
- package/lib/duet/{p-c5a95a14.system.entry.js → p-96201a4f.system.entry.js} +1 -1
- package/lib/duet/{p-f06e6bbc.js → p-97fe4968.js} +1 -1
- package/lib/duet/p-99cdf534.entry.js +4 -0
- package/lib/duet/{p-86e6cc4e.entry.js → p-9d6f6707.entry.js} +1 -1
- package/lib/duet/{p-97b3e5ba.entry.js → p-a14a68fe.entry.js} +1 -1
- package/lib/duet/p-a17a2112.entry.js +4 -0
- package/lib/duet/{p-fdd4d012.system.entry.js → p-a3efd322.system.entry.js} +2 -2
- package/lib/duet/p-a45e3f8b.js +4 -0
- package/lib/duet/{p-dd49c59b.entry.js → p-a90beab2.entry.js} +1 -1
- package/lib/duet/{p-9cd1babd.entry.js → p-a9d41a98.entry.js} +1 -1
- package/lib/duet/{p-584ea8ef.system.entry.js → p-ab67d864.system.entry.js} +1 -1
- package/lib/duet/{p-8fe134bc.entry.js → p-ab885d81.entry.js} +1 -1
- package/lib/duet/{p-d357770c.js → p-ac7ef7e2.js} +1 -1
- package/lib/duet/{p-5c2a1ad1.system.entry.js → p-ae82df47.system.entry.js} +1 -1
- package/lib/duet/{p-736a2869.system.entry.js → p-afbd4b56.system.entry.js} +1 -1
- package/lib/duet/{p-61b30475.system.entry.js → p-b08ae8a2.system.entry.js} +1 -1
- package/lib/duet/{p-6f0003c2.system.entry.js → p-b19b9511.system.entry.js} +2 -2
- package/lib/duet/{p-2ba307f8.system.js → p-b2d5f07c.system.js} +1 -1
- package/lib/duet/{p-7dfcd7a4.entry.js → p-b4fb5d47.entry.js} +1 -1
- package/lib/duet/{p-22ba621c.system.entry.js → p-b501865b.system.entry.js} +1 -1
- package/lib/duet/p-b5b8973c.js +4 -0
- package/lib/duet/{p-68f0e677.system.entry.js → p-b6ea05f0.system.entry.js} +1 -1
- package/lib/duet/p-b7ecf91a.entry.js +4 -0
- package/lib/duet/{p-c8128bb9.entry.js → p-b8327514.entry.js} +1 -1
- package/lib/duet/p-bc440286.entry.js +4 -0
- package/lib/duet/{p-8150baf3.entry.js → p-bc5fa50f.entry.js} +1 -1
- package/lib/duet/{p-d851086a.entry.js → p-bcee92ef.entry.js} +1 -1
- package/lib/duet/{p-8a25aa36.system.js → p-c1802d38.system.js} +1 -1
- package/lib/duet/p-c403a5b5.entry.js +4 -0
- package/lib/duet/{p-491f511c.entry.js → p-c4c02007.entry.js} +1 -1
- package/lib/duet/{p-715f8da6.entry.js → p-c55fd9d3.entry.js} +1 -1
- package/lib/duet/{p-03bbef94.entry.js → p-c5938aef.entry.js} +1 -1
- package/lib/duet/{p-83453427.entry.js → p-c6384d36.entry.js} +1 -1
- package/lib/duet/{p-818999e4.entry.js → p-c705b8d5.entry.js} +1 -1
- package/lib/duet/{p-2b04aa6e.system.entry.js → p-c91ee9a4.system.entry.js} +1 -1
- package/lib/duet/{p-44b1fc0b.system.entry.js → p-ca5d23f8.system.entry.js} +1 -1
- package/lib/duet/{p-82a861c3.system.entry.js → p-cb00bf45.system.entry.js} +2 -2
- package/lib/duet/{p-86941ea3.js → p-cd4dce06.js} +1 -1
- package/lib/duet/{p-72b951ed.system.js → p-d080e1b9.system.js} +1 -1
- package/lib/duet/{p-5a576bee.entry.js → p-d3790473.entry.js} +1 -1
- package/lib/duet/{p-71fda692.entry.js → p-d4d5010c.entry.js} +1 -1
- package/lib/duet/{p-d27b82c0.system.entry.js → p-d5fedd59.system.entry.js} +1 -1
- package/lib/duet/p-d819ba34.entry.js +4 -0
- package/lib/duet/{p-7f116220.system.entry.js → p-da959774.system.entry.js} +1 -1
- package/lib/duet/{p-46fa7042.entry.js → p-db291b81.entry.js} +1 -1
- package/lib/duet/{p-58f8b75a.system.entry.js → p-dd4374fe.system.entry.js} +1 -1
- package/lib/duet/{p-0c359705.entry.js → p-def465ae.entry.js} +1 -1
- package/lib/duet/{p-5e05b9ab.system.entry.js → p-e03a4cf1.system.entry.js} +1 -1
- package/lib/duet/{p-431e1880.system.entry.js → p-e08088cb.system.entry.js} +2 -2
- package/lib/duet/{p-27953036.system.entry.js → p-e0e6e461.system.entry.js} +2 -2
- package/lib/duet/{p-f3498cfd.system.entry.js → p-e39d08e7.system.entry.js} +1 -1
- package/lib/duet/{p-f0005157.system.entry.js → p-e4b910b4.system.entry.js} +1 -1
- package/lib/duet/p-e50de9e7.entry.js +4 -0
- package/lib/duet/p-e5395121.system.entry.js +4 -0
- package/lib/duet/{p-a9ae2560.system.entry.js → p-e73965c8.system.entry.js} +1 -1
- package/lib/duet/{p-f3f6e056.entry.js → p-e7fe5dda.entry.js} +1 -1
- package/lib/duet/{p-19f3d38b.system.entry.js → p-e8084ea9.system.entry.js} +1 -1
- package/lib/duet/{p-ff714520.system.entry.js → p-e81db273.system.entry.js} +1 -1
- package/lib/duet/p-eaa81178.system.entry.js +4 -0
- package/lib/duet/{p-04167a26.entry.js → p-eeca1e90.entry.js} +1 -1
- package/lib/duet/{p-cdd07ff7.entry.js → p-ef2ee599.entry.js} +1 -1
- package/lib/duet/{p-e8cd8878.system.entry.js → p-ef40ca12.system.entry.js} +1 -1
- package/lib/duet/{p-cb4dad4e.system.entry.js → p-f17324db.system.entry.js} +1 -1
- package/lib/duet/p-f1ba826c.system.entry.js +4 -0
- package/lib/duet/{p-ea4cfa7a.entry.js → p-f2311beb.entry.js} +1 -1
- package/lib/duet/{p-1e64a95b.system.entry.js → p-f5056fd8.system.entry.js} +1 -1
- package/lib/duet/{p-5bd38b1d.system.entry.js → p-f739d912.system.entry.js} +1 -1
- package/lib/duet/{p-9ca29310.entry.js → p-f90407fc.entry.js} +1 -1
- package/lib/duet/{p-8fde6132.entry.js → p-f937ba7d.entry.js} +1 -1
- package/lib/duet/p-f973c743.entry.js +4 -0
- package/lib/duet/{p-c82ac90a.system.entry.js → p-fa402e10.system.entry.js} +1 -1
- package/lib/duet/{p-b2d845d2.entry.js → p-fb713ab0.entry.js} +1 -1
- package/lib/duet/p-fbc233bb.system.entry.js +4 -0
- package/lib/duet/{p-1c4e31e9.entry.js → p-fbeb26a6.entry.js} +1 -1
- package/lib/duet/{p-1863181e.system.entry.js → p-fef429fb.system.entry.js} +1 -1
- package/lib/esm/{a11y-utils-0f4bfcab.js → a11y-utils-c9bd2c27.js} +1 -1
- package/lib/esm/{app-globals-4a06b004.js → app-globals-f12e0500.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +4 -4
- 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 +7 -7
- 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 +11 -11
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +3 -3
- package/lib/esm/duet-chip_3.entry.js +15 -11
- package/lib/esm/duet-choice_2.entry.js +4 -4
- package/lib/esm/duet-collapsible.entry.js +17 -6
- package/lib/esm/duet-combobox.entry.js +4 -4
- package/lib/esm/duet-contact-card.entry.js +4 -4
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +5 -5
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +8 -8
- package/lib/esm/duet-empty-state.entry.js +3 -3
- package/lib/esm/duet-fieldset.entry.js +5 -5
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +8 -8
- package/lib/esm/duet-grid_2.entry.js +1 -1
- package/lib/esm/duet-header_2.entry.js +4 -4
- package/lib/esm/duet-hero.entry.js +8 -8
- package/lib/esm/duet-icon.entry.js +4 -4
- package/lib/esm/duet-input_2.entry.js +4 -4
- package/lib/esm/duet-layout.entry.js +8 -8
- 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 +4 -4
- package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-menu-bar-item.entry.js +6 -6
- package/lib/esm/duet-menu-bar-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar.entry.js +6 -5
- package/lib/esm/duet-modal.entry.js +11 -11
- package/lib/esm/duet-multiselect.entry.js +9 -9
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +7 -7
- package/lib/esm/duet-number-input.entry.js +4 -4
- 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 +16 -16
- 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 +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +34 -30
- package/lib/esm/duet-section-layout.entry.js +5 -5
- 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 +5 -5
- 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 +10 -9
- package/lib/esm/duet-status-icon.entry.js +82 -0
- package/lib/esm/duet-step_2.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +6 -6
- package/lib/esm/duet-textarea.entry.js +3 -3
- package/lib/esm/duet-toggle.entry.js +2 -2
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +7 -7
- 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 +7 -7
- package/lib/esm/duet-tooltip.entry.js +3 -3
- package/lib/esm/duet-tray.entry.js +5 -5
- 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-6664168c.js → errorcodes.utils-d594aed8.js} +1 -1
- package/lib/esm/{focus-utils-a784b6e8.js → focus-utils-fc101536.js} +1 -1
- package/lib/esm/{index-df3d13a5.js → index-fa810c91.js} +331 -2
- package/lib/esm/{keyboard-utils-439bcc8b.js → keyboard-utils-daf80d44.js} +4 -1
- package/lib/esm/{language-utils-0da69172.js → language-utils-35eb1c9f.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-f4a28f08.js → slot-utils-adbc7a01.js} +1 -1
- package/lib/esm-es5/{a11y-utils-0f4bfcab.js → a11y-utils-c9bd2c27.js} +1 -1
- package/lib/esm-es5/{app-globals-4a06b004.js → app-globals-f12e0500.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 +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip_3.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +2 -2
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +1 -1
- package/lib/esm-es5/duet-status-icon.entry.js +4 -0
- 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 +1 -1
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-upload-item.entry.js +2 -2
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{errorcodes.utils-6664168c.js → errorcodes.utils-d594aed8.js} +1 -1
- package/lib/esm-es5/{focus-utils-a784b6e8.js → focus-utils-fc101536.js} +1 -1
- package/lib/esm-es5/index-fa810c91.js +4 -0
- package/lib/esm-es5/{keyboard-utils-439bcc8b.js → keyboard-utils-daf80d44.js} +1 -1
- package/lib/esm-es5/{language-utils-0da69172.js → language-utils-35eb1c9f.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-f4a28f08.js → slot-utils-adbc7a01.js} +1 -1
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +5 -0
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +4 -1
- package/lib/types/components/duet-status-icon/duet-status-icon.d.ts +26 -0
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +5 -0
- package/lib/types/components.d.ts +61 -0
- package/lib/types/utils/keyboard-utils.d.ts +1 -0
- package/package.json +4 -4
- package/lib/dist-custom-elements/p-396dec0e.js +0 -80
- package/lib/duet/p-06f5c7e7.entry.js +0 -4
- package/lib/duet/p-095cf21b.system.entry.js +0 -4
- package/lib/duet/p-0bffa91a.entry.js +0 -4
- package/lib/duet/p-0d6ca7ac.system.js +0 -4
- package/lib/duet/p-10435dde.entry.js +0 -4
- package/lib/duet/p-18de9ed1.system.entry.js +0 -4
- package/lib/duet/p-21de0c46.entry.js +0 -4
- package/lib/duet/p-23b834c5.system.entry.js +0 -4
- package/lib/duet/p-25ef3ff1.entry.js +0 -4
- package/lib/duet/p-3671c29d.entry.js +0 -4
- package/lib/duet/p-52049d75.entry.js +0 -4
- package/lib/duet/p-5b32bfb2.system.entry.js +0 -4
- package/lib/duet/p-5ca10213.system.entry.js +0 -4
- package/lib/duet/p-61b8a82a.system.entry.js +0 -4
- package/lib/duet/p-6e63f2c6.entry.js +0 -4
- package/lib/duet/p-6fdd0abe.js +0 -4
- package/lib/duet/p-7c42db0e.entry.js +0 -4
- package/lib/duet/p-81ffde6e.system.entry.js +0 -4
- package/lib/duet/p-8326443d.entry.js +0 -4
- package/lib/duet/p-8532bedb.entry.js +0 -4
- package/lib/duet/p-85333227.entry.js +0 -4
- package/lib/duet/p-88cb782b.entry.js +0 -4
- package/lib/duet/p-969cd5f2.system.entry.js +0 -4
- package/lib/duet/p-a08f8250.entry.js +0 -4
- package/lib/duet/p-a1b7f2a0.js +0 -4
- package/lib/duet/p-b2165388.entry.js +0 -4
- package/lib/duet/p-ba877b46.system.entry.js +0 -4
- package/lib/duet/p-bfb890be.entry.js +0 -4
- package/lib/duet/p-c482192a.system.entry.js +0 -4
- package/lib/duet/p-d3fe8c48.entry.js +0 -4
- package/lib/duet/p-da97d1ef.entry.js +0 -4
- package/lib/esm-es5/index-df3d13a5.js +0 -5
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as e,h as i,H as o,g as n}from"./p-f06e6bbc.js";import{i as a}from"./p-aaa7a7bd.js";import{c as s}from"./p-5e59e970.js";import{s as c,u as r,f as h,c as d,b as p,o as u}from"./p-a1b7f2a0.js";import{g as l}from"./p-c356d09c.js";import{q as b}from"./p-1004af75.js";import{o as m,f as g,s as f,c as k,b as v}from"./p-81287261.js";import{f as x}from"./p-d357770c.js";import{T as y}from"./p-ca3cb21e.js";import{a as w}from"./p-f11208c3.js";import"./p-9c3c64b9.js";const C=class{constructor(i){t(this,i),this.duetChange=e(this,"duetChange",3),this.duetRemove=e(this,"duetRemove",3),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.chipId=s("DuetChip"),this.deleteLabels={fi:"Poista",en:"Remove",sv:"Ta bort"},this.selectedForDeletionLabels={fi:"Valittu, poista askelpalautinnäppäimellä",en:"Selected, remove with backspace",sv:"Valt, ta bort med backsteg"},this.enforceNoDisabledSelected=()=>{this.disabled&&this.checked&&(console.error("Duet error: pre-selected chip may not be disabled"),this.disabled=!1)},this.radioInputListenersRemove=t=>{t.removeEventListener("change",this.onRadioChange),t.removeEventListener("click",this.onRadioClick),t.removeEventListener("focus",this.onFocus),t.removeEventListener("blur",this.onBlur)},this.radioInputListenersAdd=t=>{t.addEventListener("change",this.onRadioChange),t.addEventListener("click",this.onRadioClick),t.addEventListener("focus",this.onFocus),t.addEventListener("blur",this.onBlur)},this.radioInputSetUp=()=>{const t=this.element.querySelector("input[slot=input]"),e=t||document.createElement("input");e.slot="input",e.ariaDisabled=this.disabled?"true":void 0,e.id=this.identifier||this.chipId,e.type="radio",e.name=this.name,e.value=this.value,e.checked=this.checked,t?this.radioInputListenersRemove(e):this.element.appendChild(e),this.radioInputListenersAdd(e),this.focusableElement=e},this.popupSetUp=()=>{const t=document.querySelector(`duet-popup-menu#${this.popup}`);if(t){this.popupElement=t,t.controller=this.element;const e=this.element.textContent,i=this.value;t.id||(t.id="popup-menu"),t.addEventListener("duetToggle",(t=>{this.popupOpen=t.detail.open}));const o=()=>{t.querySelectorAll("duet-popup-menu-item").forEach((t=>{t.active=!1}))};t.querySelectorAll("duet-popup-menu-item").forEach((t=>{t.addEventListener("click",(n=>{var a;const s=null!==(a=t.value)&&void 0!==a?a:t.innerText;t.active?(o(),this.element.textContent=e,this.value=i,this.checked=!1):(o(),t.active=!0,this.element.textContent=t.innerText,this.value=s,this.checked=!0),this.emitChange(n),setTimeout((()=>{this.popupElement.isOpen()&&this.popupElement.hide()}))}))}))}},this.onFocus=t=>{this.focus=!0,this.duetFocus.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-chip"})},this.onBlur=t=>{this.focus=!1,this.duetBlur.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-chip"})},this.emitChange=t=>{this.duetChange.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-chip"})},this.onFilterChange=t=>{this.checked=!this.checked,this.emitChange(t)},this.onRadioChange=t=>{this.checked=this.focusableElement.checked,this.emitChange(t)},this.onRadioClick=t=>{this.disabled&&t.preventDefault()},this.onFilterClick=t=>{if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.popupElement&&(t.stopPropagation(),t.preventDefault(),this.popupElement.toggle())},this.onRemoveClick=t=>{null==t||t.stopPropagation(),null==t||t.preventDefault(),this.duetRemove.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-chip"}),this.element.remove()},this.focus=!1,this.popupElement=void 0,this.popupOpen=void 0,this.inputChipHover=!1,this.inputChipDeleteFocus=!1,this.accessibleLabel=void 0,this.variation="button",this.size="medium",this.popup=void 0,this.icon="",this.theme="",this.identifier=void 0,this.value=void 0,this.name=void 0,this.selected=!1,this.checked=!1,this.disabled=!1,this.accessibleExpanded=void 0,this.accessiblePopup="false"}clearOtherRadioButtons(){"radio"===this.variation&&this.checked&&document.querySelectorAll(`duet-chip[variation="radio"][name="${this.name}"]`).forEach((t=>{t!==this.element&&(t.checked=!1)}))}componentWillLoad(){a(this),this.popupSetUp(),this.enforceNoDisabledSelected()}connectedCallback(){c(this)}disconnectedCallback(){r(this)}componentDidRender(){"radio"===this.variation&&this.radioInputSetUp()}getAccessibleExpanded(){return null!=this.accessibleExpanded?(!!this.accessibleExpanded).toString():this.popupElement?this.popupOpen?"true":"false":void 0}getAccessiblePopup(){return this.popupElement?"true":null!=this.accessiblePopup?this.accessiblePopup.toString():void 0}getAccessibleDeleteLabel(){return`${l(this.deleteLabels)} ${this.element.textContent}`}getAccessibleInputChipLabel(){return`${this.element.textContent}${this.selected?` (${l(this.selectedForDeletionLabels)}) `:""},`}async setFocus(t){setTimeout((()=>this.focusableElement.focus(t)),200)}async setDeleteFocus(){setTimeout((()=>this.deleteButtonElement.focus()),200)}async removeChip(){this.onRemoveClick()}render(){var t;const e=this.identifier||this.chipId,n={"duet-chip-container":!0,[`duet-chip-${this.variation}`]:!0,"duet-chip-focus":this.focus,"duet-chip-selected":this.selected,"duet-chip-hover":this.inputChipHover,"duet-chip-delete-focus":this.inputChipDeleteFocus,"duet-chip-has-icon":!!this.icon,"duet-chip-has-popup":"filter"===this.variation&&!!this.popupElement,"duet-theme-turva":"turva"===this.theme,"duet-chip-filter-checked":"filter"===this.variation&&this.checked,"duet-chip-radio-checked":"radio"===this.variation&&this.checked,"duet-chip-filter-popup-open":this.popupOpen,"duet-chip-disabled":this.disabled,[this.size]:!0},a={onFocus:this.onFocus,onBlur:this.onBlur,ref:t=>this.focusableElement=t};return i(o,{key:"74eda64434d7ca861c30bb1468384b4d789bbd97",class:{[this.variation]:!0}},"button"===this.variation&&i("span",{key:"63101bab777b2c17bb952b362896a3e01849a520",class:n},i("button",Object.assign({key:"857f56d854ac01c9f0411c0a24d89f22e34e4354",id:e,"aria-label":this.accessibleLabel,"aria-haspopup":this.getAccessiblePopup(),"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":void 0,name:this.name,value:this.value,onClick:this.disabled?t=>t.stopPropagation():void 0},a),i("span",{key:"5baa1e7b3ea38e0d3eb8ebe9f5cde001f4dad939",class:"duet-chip-icon-container"},this.icon&&i("duet-icon",{key:"2cd983ee490a7810fb740009ef9a1ef1a591b378",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),i("slot",{key:"f1cbed1211d6143c5b6727fb7f182b2567e27206"}))),"input"===this.variation&&i("span",{key:"744596fbf0b1bfbec1bdd33f26e70d5d9cacfeaa",class:n,"aria-label":this.getAccessibleInputChipLabel()},i("button",Object.assign({key:"e2c1bca091f5ec8e7ea9ff2c8e26519836056887",id:e,class:"duet-chip-input-button",value:this.value,"aria-label":this.accessibleLabel,onMouseOver:()=>this.inputChipHover=!0,onMouseOut:()=>this.inputChipHover=!1,onClick:()=>this.selected=!this.selected},a),i("span",{key:"a55760300073590c593ca320a5e65340be999b38",class:"duet-chip-icon-container"},this.icon&&i("duet-icon",{key:"a7788de0d14342248a475f2ff5493c0923c45a9c",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),i("slot",{key:"234fb07f9a8a248a8ed9cdad7006dc6477750c86"})),i("button",{key:"a4c5d32a365ce3994e1620a04c2d47de32ee6a79",class:"duet-chip-remove-button","aria-label":this.getAccessibleDeleteLabel(),onClick:this.onRemoveClick,onFocus:()=>this.inputChipDeleteFocus=!0,onBlur:()=>this.inputChipDeleteFocus=!1,ref:t=>this.deleteButtonElement=t},i("duet-icon",{key:"61db68dbdbb9c89ad567be49369baceccfc70303",name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),"filter"===this.variation&&i("span",{key:"3df7ed43734210e5c84768121be780c2e7fa47ca",class:n},i("input",Object.assign({key:"fd46eb7f531a7cce5b329dc46973ebce71477ef0","aria-haspopup":this.getAccessiblePopup(),"aria-controls":null===(t=this.popupElement)||void 0===t?void 0:t.id,"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":void 0,id:e,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},a)),i("label",{key:"2e3e7f153db3e7798fd35a41b3bd5731b7893799",htmlFor:e},this.icon&&i("span",{key:"4daec9ebcae39a9fac552ef5ca6170e991ed2ede",class:"duet-chip-icon-container"},i("duet-icon",{key:"f8c53ccc22dc8955b4ca0946014654a53f643bdf",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),i("duet-icon",{key:"72a8486a18b78b8522ccf958a762d9200ba44f39",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),i("slot",{key:"4282153a03e2293726a33285e0258dafff9f08a0"}),this.popupElement&&i("span",{key:"b0ace996f4be6c9a56f4842fca5370a987a53623",class:"duet-chip-popup-disclosure"},i("duet-icon",{key:"e7ff6e81d48dd6373a5b301661b5b88bd63b18ac",name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),"radio"===this.variation&&i("span",{key:"b35d00719155d5312923ec5e91e8b9978550553b",class:n},i("slot",{key:"e4b3e781039b2d788de0dadd67b42fca773ec902",name:"input"}),i("label",{key:"23a2a955b70d7e01982a01c25f6e634385d4b699",htmlFor:e},this.icon&&i("span",{key:"a5dd1cfb84d59288385b241df6cf09c2dd9ab717",class:"duet-chip-icon-container"},i("duet-icon",{key:"2a15bfd278418d32b2d5dc39973eebc7eabfbbae",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),i("duet-icon",{key:"50e58300bb05edd5545be74e621feca7ececb52e",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),i("slot",{key:"a67a5350140057e665af6c7882d6985b430d066a"}))))}get element(){return n(this)}static get watchers(){return{checked:["clearOtherRadioButtons"]}}};C.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right: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(8, 42, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(181, 198, 208);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(199, 202, 207)}.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(98, 121, 138) !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(143, 147, 158) !important;background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.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, 247, 250);border-color:rgb(245, 247, 250)}.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(8, 42, 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(228, 241, 247);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(198, 225, 238)}.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, 247, 250);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(222, 224, 228)}.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(240, 247, 250);border-color:rgb(240, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input:hover{padding:1px !important;border-color:rgb(181, 198, 208);border-width:1px}.duet-chip-container.duet-chip-input.duet-chip-hover,.duet-chip-container.duet-chip-input.duet-chip-selected{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-input.duet-chip-hover .duet-chip-remove-button,.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button{right:0;width:34px;height:34px;background:transparent}.duet-chip-container.duet-chip-input.duet-chip-delete-focus{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input .duet-chip-input-button{margin-right:22px}.duet-chip-container.duet-chip-input .duet-chip-remove-button{position:absolute;top:-1px;right:-1px;width:36px;height:36px;padding-left:10px;border:3px solid transparent;border-radius:8px}.duet-chip-container.duet-chip-input .duet-chip-remove-button:hover{background:rgb(217, 236, 245);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-chip-selected{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input.duet-chip-selected.duet-chip-hover{background:rgb(217, 236, 245)}.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(198, 225, 238);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-hover{border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-input.duet-theme-turva .duet-chip-remove-button:hover{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected.duet-chip-hover{background:rgb(255, 213, 215);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(255, 185, 190);background-clip:padding-box}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}:host(.user-is-tabbing) .duet-chip-focus,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button{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,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button.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}';const z=class{constructor(i){t(this,i),this.duetToggle=e(this,"duetToggle",7),this.setOpenButton=t=>{if(t)try{const e=t;e.accessiblePopup="true",e.accessibleExpanded=!1,this.controllerIcon&&e.setAttribute("trailing-icon","action-arrow-down-small"),this.openButton=e}catch(t){}},this.openButtonEventListener=()=>{this.toggle()},this.updatePlacement=async()=>{if(!this.openButton)return;const t=[m({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),this.allowVerticalFlip&&g(),f({padding:5})].filter(Boolean),e=await k(this.openButton,this.menuElement,{middleware:t,placement:this.placement,strategy:this.position});this.menuY=e.y,this.menuX=e.x},this.open=!1,this.menuY=void 0,this.menuX=void 0,this.accessibleLabel=void 0,this.accessibleRole="menu",this.theme="",this.skipTeleport=void 0,this.placement="bottom-start",this.forcePlacement=!1,this.allowVerticalFlip=!0,this.position="absolute",this.mainAxisOffset=0,this.crossAxisOffset=0,this.controllerIcon="action-arrow-down-small",this.scrollLimit=void 0}get controller(){return this._controller}set controller(t){this._controller!==t&&(this._controller=t,"string"==typeof t?(this.setOpenButton(document.getElementById(t)),this.openButton&&this.openButton.addEventListener("click",this.openButtonEventListener)):this.setOpenButton(t))}get opener(){return this._controller}set opener(t){this.controller=t}componentWillLoad(){a(this)}componentDidLoad(){this.updatePlacement()}connectedCallback(){this.teleport||(this.teleport=new y(this.element)),this.teleport&&this.teleport.activate()}disconnectedCallback(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.openButton&&(this.openButton.removeEventListener("click",this.openButtonEventListener),this.controllerIcon&&this.openButton.removeAttribute("trailing-icon"))}handleKeyUp(t){this.open&&h(t)&&this.hide()}async handleKeyDown(t){if(this.open){if(d(t)){t.preventDefault();const e=await this.getFocusedItemIndex();-1!==e&&(e<this.itemElements.length-1?this.itemElements[e+1].setFocus():this.itemElements[0].setFocus())}if(p(t)){t.preventDefault();const e=await this.getFocusedItemIndex();-1!==e&&(0===e?this.itemElements[this.itemElements.length-1].setFocus():this.itemElements[e-1].setFocus())}u(t)&&"menu"===this.accessibleRole&&(t.preventDefault(),this.hide())}}handleClick(t){const e=t.composedPath().every((t=>t!==this.element&&t!==this.openButton));this.open&&e&&this.hide()}async isOpen(){return this.open}async show(){this.open=!0}async hide(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.open=!1}async toggle(){this.open?this.hide():this.show()}handleOpenChange(t,e){!!t!=!!e&&(this.open&&!e?(this.openButton&&(this.openButton.accessibleExpanded=!0),"listbox"!==this.accessibleRole&&this.teleport.makeSiblingsInert(),this.updatePlacement(),this.menuElement&&this.openButton&&(this.autoUpdateCleanup=v(this.openButton,this.menuElement,this.updatePlacement)),setTimeout((()=>{"menu"===this.accessibleRole&&this.itemElements[0].setFocus(),this.duetToggle.emit({open:this.open,component:"duet-popup-menu"})}),200)):!this.open&&e&&(this.openButton&&(this.openButton.accessibleExpanded=!1),this.autoUpdateCleanup&&this.autoUpdateCleanup(),setTimeout((()=>{"menu"===this.accessibleRole&&x(this.openButton),this.duetToggle.emit({open:this.open,component:"duet-popup-menu"}),"listbox"!==this.accessibleRole&&this.teleport.removeInertFromSiblings()}),200)))}get itemElements(){return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"))}get popupMenuStyleHeight(){if(this.itemElements.length>0&&this.scrollLimit){const t=2*Number(b.replace("px",""));return`${this.itemElements[0].offsetHeight*this.scrollLimit+t}px`}return"auto"}async getFocusedItemIndex(){const t=this.itemElements;for(let e=0;e<t.length;e++)if(await t[e].isFocused())return e;return-1}render(){return i(o,{key:"af39c297a7f2c03182e3671d23fc67162e7854e3"},i("div",{key:"7c8fd36f7f0bbe630e5c47f942327700dd3ad3eb",ref:t=>{this.menuElement=t},style:{top:`${this.menuY}px`,left:`${this.menuX}px`,position:this.position,overflowY:"auto",height:this.popupMenuStyleHeight},class:{open:this.open,"duet-popup-menu-list":!0,"duet-theme-turva":"turva"===this.theme,"scroll-visible":this.scrollLimit<this.itemElements.length},role:this.accessibleRole,"aria-label":this.accessibleLabel},i("slot",{key:"60c5bb890286cbbc5a9a33e8bc3d0fc1888dd193"})))}get element(){return n(this)}static get watchers(){return{open:["handleOpenChange"]}}};z.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.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(8, 42, 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.scroll-visible{overflow-y:scroll;scroll-margin:20px}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255)}::slotted(duet-notification){max-width:360px}";const j=class{constructor(i){t(this,i),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.onFocus=t=>{this.focus=!0,this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-popup-menu-item"})},this.onBlur=t=>{this.focus=!1,this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-popup-menu-item"})},this.focus=!1,this.accessibleLabel=void 0,this.accessibleRole="menuitem",this.theme="",this.url=void 0,this.external=!1,this.targetLanguage=void 0,this.value=void 0,this.leadingIcon=void 0,this.leadingIconColor=void 0,this.trailingIcon=void 0,this.trailingText=void 0,this.active=!1,this.activeDescendant=!1}componentWillLoad(){a(this)}async setFocus(t){setTimeout((()=>this.itemElement.focus(t)),200)}async isFocused(){return this.focus}render(){const t=this.url?"a":"button";return i(o,{key:"02e7a087e9f8df28e015c45b2182ab19167c39a2",role:this.accessibleRole},i(t,{key:"ac6c8e523bb7dbd6ce78dfb8e5ba1a34c765f538",ref:t=>this.itemElement=t,tabIndex:"listitem"===this.accessibleRole?0:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"a"===t?"link":"button","aria-label":this.accessibleLabel,class:{"duet-popup-menu-item":!0,active:this.active,"duet-theme-turva":"turva"===this.theme,"active-descendant":this.activeDescendant},value:this.value,href:this.url,target:this.external?"_blank":void 0,rel:this.external?"noopener":void 0,lang:"button"===t?void 0:this.targetLanguage,hreflang:"button"===t?void 0:this.targetLanguage},this.leadingIcon&&i("duet-icon",{key:"003f72c807601366ce44ba41c92d01cc3867a995",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),i("span",{key:"5936e48916d5c665070e490074e5310b52ad0cd9",class:"duet-popup-menu-item-label"},i("slot",{key:"4f365167fa1ae20a9a26f91352791b8b94007088"})),(this.trailingIcon||this.active||this.url&&this.external)&&i("duet-icon",{key:"52e54059ac3b56ad022ed42085029a58b7010806",name:this.url&&this.external?w.title:this.active?"messaging-checked-small":this.trailingIcon,size:this.url&&this.external||this.active?"xx-small":"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&i("span",{key:"16fb5260a8d79c5b20bc7dcbb0d6fb078d41f0d5",class:"duet-popup-menu-item-trailing"},this.trailingText)))}get element(){return n(this)}};j.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;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(8, 42, 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(240, 247, 250)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(222, 224, 228)}.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}';export{C as duet_chip,z as duet_popup_menu,j as duet_popup_menu_item}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
System.register(["./p-68231a92.system.js"],(function(e){"use strict";var t,n,a,r;return{setters:[function(e){t=e.r;n=e.h;a=e.H;r=e.g}],execute:function(){var i=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}";var o=i;var p=e("duet_visually_hidden",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{key:"a26d430acd67a8e002cbb5d4e10fc83664ea2fc9",class:"duet-visually-hidden"},n("slot",{key:"2a9832f540a371230bc15e334e7351ef06539a6c"}))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());p.style=o}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as e,h as i,H as s,g as n}from"./p-f06e6bbc.js";import{i as u}from"./p-aaa7a7bd.js";import{c as r}from"./p-5e59e970.js";import{a,b as o,c as h,d as b,e as d,s as l,u as c}from"./p-a1b7f2a0.js";import{a as p,b as m,g,c as f,d as v}from"./p-c356d09c.js";import{c as x}from"./p-13f8502f.js";import"./p-9c3c64b9.js";function w(t,e){let i;if("string"==typeof t){if(""===t)return null;let s=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");e&&(s=function(t,e,i=!1){let s;const n=new Intl.NumberFormat(e).format(.5).replace(/[0-9]/g,""),u=new Intl.NumberFormat("en-US").format(.5).replace(/[0-9]/g,""),r=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,""),a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");return s=t.replace(n,"DECIMALSEPARATOR"),s=s.replace(r,i?"THOUSANDSEPARATOR":""),s=s.replace("DECIMALSEPARATOR",u),s=s.replace("THOUSANDSEPARATOR",a),s}(s,e,!1)),s=s.replace(/\s+/g,""),i=parseFloat(s)}if("number"==typeof t&&(i=parseFloat(String(t))),!isNaN(Number(i)))return Number(i);if(null==t)return null;throw new Error("Invalid value passed to SafeParseFloat")}const y=(t,e,i)=>Math.min(Math.max(t,e),i),A=class{constructor(i){t(this,i),this.duetChange=e(this,"duetChange",3),this.duetInput=e(this,"duetInput",3),this.duetBlur=e(this,"duetBlur",7),this.duetFocus=e(this,"duetFocus",7),this.inputId=r("DuetInput"),this.handleFocus=()=>{this.focusedValue=this.value},this.handleKeyDown=t=>{a(t)||o(t)?this.add(t):h(t)||b(t)?this.subtract(t):d(t)&&this.clearValue(t)},this.handleChange=t=>{const e=t.target;if(e&&e.value)try{let i=w(e.value,this.locale);(isNaN(i)||null==i)&&(i=this.min||0),this.setValue(i),this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:w(this.value,this.locale).toString(),valueAsNumber:i})}catch(i){"-"!==e.value&&this.clearValue(t),this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}else this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})},this.handleBlur=t=>{const e=t.target;var i;if(e)if(e.value)try{let s=w(e.value,this.locale);this.rounding&&(i=this.step,s=Math.round(s/i)*i),s=y(s,this.min,this.max),s===w(this.value,this.locale)&&s===w(this.focusedValue,this.locale)||(this.setValue(s),this.emitChange(t))}catch(e){this.emitNull(t)}else this.emitNull(t)},this.emitChange=t=>{const e=w(this.value,this.locale);this.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})},this.emitNull=t=>{this.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})},this.localizeValue=t=>t.toLocaleString(this.locale),this.setValue=t=>{this.value=this.localizeValue(t),this.duetInputElement.value=`${this.value} ${this.unit}`},this.add=t=>{t&&t.preventDefault();const e=w(this.value,this.locale);if(e===this.max)return;let i=null==e?this.min:e+this.step;i%this.step!=0&&(i-=i%this.step);const s=y(i,this.min,this.max);this.value=this.localizeValue(s),this.emitChange(t)},this.subtract=t=>{t&&t.preventDefault();const e=w(this.value,this.locale);if(e===this.min)return;let i=e-this.step;i%this.step!=0&&(i+=this.step-i%this.step),i=y(i,this.min,this.max),this.value=this.localizeValue(i),this.emitChange(t)},this.language=p(),this.locale=m(this.language).locale,this.unit=m(this.language).money,this.focusedValue=void 0,this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"},this.accessibleLive=g(this.accessibleLiveDefaults,this.language),this.accessibleLiveEnabled=!0,this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"},this.accessibleAdd=g(this.accessibleAddDefaults,this.language),this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"},this.accessibleSubtract=g(this.accessibleSubtractDefaults,this.language),this.theme="",this.margin="auto",this.expand=!1,this.identifier=void 0,this.min=0,this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"},this.label=g(this.labelDefaults,this.language),this.labelHidden=!1,this.max=1e6,this.name=void 0,this.error="",this.tooltip="",this.step=5e3,this.rounding=!0,this.role=void 0,this.disabled=!1,this.required=!1,this.value=void 0}componentWillLoad(){u(this),this.value&&(this.value=this.localizeValue(w(this.value,this.locale))),x(this.element,"tooltip","duet-tooltip",1,!0)}connectedCallback(){f(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]),l(this)}disconnectedCallback(){v(this),c(this)}async setFocus(t){this.duetInputElement.setFocus(t)}async getValueAsNumber(){const t=w(this.value,this.locale);return null==this.value||isNaN(t)?null:t}clearValue(t){this.duetInputElement.value="",null!==this.value&&(this.value=null,this.emitNull(t))}formatAnnouncement(){const t=this.value?w(this.value,this.locale):null;return null==t?"":this.accessibleLive.replace("{current}",t.toString(10))}render(){const t=this.identifier||this.inputId,e=`${this.localizeValue(this.max)} ${this.unit}`.length,n=this.value?w(this.value,this.locale):null;return i(s,{class:{"duet-theme-turva":"turva"===this.theme,"duet-expand":this.expand,"duet-m-0":"none"===this.margin}},i("div",{class:"duet-number-container"},i("duet-input",{ref:t=>this.duetInputElement=t,onDuetChange:t=>this.handleChange(t),onDuetFocus:this.handleFocus,onDuetBlur:t=>this.handleBlur(t),onKeyDown:t=>this.handleKeyDown(t),label:this.label,value:this.value?`${this.value} ${this.unit}`:"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":null!=n?n:"",maxlength:e,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:t,theme:this.theme,margin:"none",expand:!0,numericKeyboard:!0,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},i("slot",{name:"tooltip"}),i("div",{class:{"duet-number-buttons":!0,"duet-no-label":this.labelHidden}},i("button",{"aria-controls":t,disabled:this.disabled,"aria-disabled":null==n||n===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},i("duet-visually-hidden",null,this.accessibleSubtract," ",this.step),i("duet-icon",{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>',size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})),i("button",{"aria-controls":t,disabled:this.disabled,"aria-disabled":n===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},i("duet-visually-hidden",null,this.accessibleAdd," ",this.step),i("duet-icon",{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>',size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&i("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))}get element(){return n(this)}};A.style='*.sc-duet-number-input,*.sc-duet-number-input::after,*.sc-duet-number-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-number-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}.sc-duet-number-input-h:last-child,.sc-duet-number-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-number-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-number-input-h{width:100% !important}.duet-m-0.sc-duet-number-input-h{margin:0 !important}.duet-number-container.sc-duet-number-input{position:relative;width:100%}.duet-number-buttons.sc-duet-number-input{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled{pointer-events:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input duet-icon.sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled duet-icon.sc-duet-number-input{opacity:0.4}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:active duet-icon.sc-duet-number-input{transform:translateY(1px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{outline:0}.user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{background:rgb(222, 224, 228)}';export{A as duet_number_input}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function c(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?i(e.value):r(e.value).then(a,c)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return u([e,t])}}function u(c){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(i=0)),i)try{if(n=1,r&&(o=c[0]&2?r["return"]:c[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;if(r=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:i.label++;return{value:c[1],done:false};case 5:i.label++;r=c[1];c=[0];continue;case 7:c=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1];o=c;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(c);break}if(o[2])i.ops.pop();i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e];r=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-68231a92.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js","./p-e0a6de56.system.js","./p-ef731dfb.system.js","./p-0dc9089b.system.js","./p-e83ed709.system.js","./p-f6b21d17.system.js","./p-053b71e6.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,n,r,o,a,c,u,s,d,h,p,l,f,b,m,g,v,k,x,y,w,_;return{setters:[function(e){t=e.r;i=e.c;n=e.h;r=e.H;o=e.g},function(e){a=e.i},function(e){c=e.c},function(e){u=e.s;s=e.u;d=e.f;h=e.c;p=e.b;l=e.o},function(e){f=e.g},function(e){b=e.q},function(e){m=e.o;g=e.f;v=e.s;k=e.c;x=e.b},function(e){y=e.f},function(e){w=e.T},function(e){_=e.a},function(){}],execute:function(){var j='*,*::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(8, 42, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(181, 198, 208);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(199, 202, 207)}.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(98, 121, 138) !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(143, 147, 158) !important;background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.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, 247, 250);border-color:rgb(245, 247, 250)}.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(8, 42, 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(228, 241, 247);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(198, 225, 238)}.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, 247, 250);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(222, 224, 228)}.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(240, 247, 250);border-color:rgb(240, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input:hover{padding:1px !important;border-color:rgb(181, 198, 208);border-width:1px}.duet-chip-container.duet-chip-input.duet-chip-hover,.duet-chip-container.duet-chip-input.duet-chip-selected{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-input.duet-chip-hover .duet-chip-remove-button,.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button{right:0;width:34px;height:34px;background:transparent}.duet-chip-container.duet-chip-input.duet-chip-delete-focus{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input .duet-chip-input-button{margin-right:22px}.duet-chip-container.duet-chip-input .duet-chip-remove-button{position:absolute;top:-1px;right:-1px;width:36px;height:36px;padding-left:10px;border:3px solid transparent;border-radius:8px}.duet-chip-container.duet-chip-input .duet-chip-remove-button:hover{background:rgb(217, 236, 245);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-chip-selected{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input.duet-chip-selected.duet-chip-hover{background:rgb(217, 236, 245)}.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(198, 225, 238);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-hover{border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-input.duet-theme-turva .duet-chip-remove-button:hover{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected.duet-chip-hover{background:rgb(255, 213, 215);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(255, 185, 190);background-clip:padding-box}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}:host(.user-is-tabbing) .duet-chip-focus,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button{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,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input,*::slotted([slot=input]){position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;margin:0;cursor:pointer;border-width:2px;border-radius:8px;opacity:0;appearance:none}*::slotted([slot=input]:not([aria-disabled=true])){z-index:1}';var z=j;var C=e("duet_chip",function(){function e(e){var n=this;t(this,e);this.duetChange=i(this,"duetChange",3);this.duetRemove=i(this,"duetRemove",3);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.chipId=c("DuetChip");this.deleteLabels={fi:"Poista",en:"Remove",sv:"Ta bort"};this.selectedForDeletionLabels={fi:"Valittu, poista askelpalautinnäppäimellä",en:"Selected, remove with backspace",sv:"Valt, ta bort med backsteg"};this.enforceNoDisabledSelected=function(){if(n.disabled&&n.checked){console.error("Duet error: pre-selected chip may not be disabled");n.disabled=false}};this.radioInputListenersRemove=function(e){e.removeEventListener("change",n.onRadioChange);e.removeEventListener("click",n.onRadioClick);e.removeEventListener("focus",n.onFocus);e.removeEventListener("blur",n.onBlur)};this.radioInputListenersAdd=function(e){e.addEventListener("change",n.onRadioChange);e.addEventListener("click",n.onRadioClick);e.addEventListener("focus",n.onFocus);e.addEventListener("blur",n.onBlur)};this.radioInputSetUp=function(){var e=n.element.querySelector("input[slot=input]");var t=e||document.createElement("input");t.slot="input";t.ariaDisabled=n.disabled?"true":undefined;t.id=n.identifier||n.chipId;t.type="radio";t.name=n.name;t.value=n.value;t.checked=n.checked;if(e){n.radioInputListenersRemove(t)}else{n.element.appendChild(t)}n.radioInputListenersAdd(t);n.focusableElement=t};this.popupSetUp=function(){var e=document.querySelector("duet-popup-menu#".concat(n.popup));if(e){n.popupElement=e;e.controller=n.element;var t=n.element.textContent;var i=n.value;if(!e.id){e.id="popup-menu"}e.addEventListener("duetToggle",(function(e){n.popupOpen=e.detail.open}));var r=function(){e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.active=false}))};e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.addEventListener("click",(function(o){var a;var c=(a=e.value)!==null&&a!==void 0?a:e.innerText;if(!e.active){r();e.active=true;n.element.textContent=e.innerText;n.value=c;n.checked=true}else{r();n.element.textContent=t;n.value=i;n.checked=false}n.emitChange(o);setTimeout((function(){if(n.popupElement.isOpen()){n.popupElement.hide()}}))}))}))}};this.onFocus=function(e){n.focus=true;n.duetFocus.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onBlur=function(e){n.focus=false;n.duetBlur.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.emitChange=function(e){n.duetChange.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onFilterChange=function(e){n.checked=!n.checked;n.emitChange(e)};this.onRadioChange=function(e){var t=n.focusableElement;var i=t.checked;n.checked=i;n.emitChange(e)};this.onRadioClick=function(e){if(n.disabled){e.preventDefault()}};this.onFilterClick=function(e){if(n.disabled){e.stopPropagation();e.preventDefault();return}if(n.popupElement){e.stopPropagation();e.preventDefault();n.popupElement.toggle()}};this.onRemoveClick=function(e){e===null||e===void 0?void 0:e.stopPropagation();e===null||e===void 0?void 0:e.preventDefault();n.duetRemove.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"});n.element.remove()};this.focus=false;this.popupElement=undefined;this.popupOpen=undefined;this.inputChipHover=false;this.inputChipDeleteFocus=false;this.accessibleLabel=undefined;this.variation="button";this.size="medium";this.popup=undefined;this.icon="";this.theme="";this.identifier=undefined;this.value=undefined;this.name=undefined;this.selected=false;this.checked=false;this.disabled=false;this.accessibleExpanded=undefined;this.accessiblePopup="false"}e.prototype.clearOtherRadioButtons=function(){var e=this;if(this.variation==="radio"&&this.checked){var t=document.querySelectorAll('duet-chip[variation="radio"][name="'.concat(this.name,'"]'));t.forEach((function(t){if(t!==e.element){t.checked=false}}))}};e.prototype.componentWillLoad=function(){a(this);this.popupSetUp();this.enforceNoDisabledSelected()};e.prototype.connectedCallback=function(){u(this)};e.prototype.disconnectedCallback=function(){s(this)};e.prototype.componentDidRender=function(){if(this.variation==="radio"){this.radioInputSetUp()}};e.prototype.getAccessibleExpanded=function(){if(this.accessibleExpanded!=null){return(!!this.accessibleExpanded).toString()}if(this.popupElement){return this.popupOpen?"true":"false"}return undefined};e.prototype.getAccessiblePopup=function(){if(this.popupElement){return"true"}else{return this.accessiblePopup!=null?this.accessiblePopup.toString():undefined}};e.prototype.getAccessibleDeleteLabel=function(){return"".concat(f(this.deleteLabels)," ").concat(this.element.textContent)};e.prototype.getAccessibleInputChipLabel=function(){return"".concat(this.element.textContent).concat(this.selected?" (".concat(f(this.selectedForDeletionLabels),") "):"",",")};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.focusableElement.focus(e)}),200);return[2]}))}))};e.prototype.setDeleteFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){setTimeout((function(){return e.deleteButtonElement.focus()}),200);return[2]}))}))};e.prototype.removeChip=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.onRemoveClick();return[2]}))}))};e.prototype.render=function(){var e,t;var i=this;var o;var a=this.identifier||this.chipId;var c=(e={"duet-chip-container":true},e["duet-chip-".concat(this.variation)]=true,e["duet-chip-focus"]=this.focus,e["duet-chip-selected"]=this.selected,e["duet-chip-hover"]=this.inputChipHover,e["duet-chip-delete-focus"]=this.inputChipDeleteFocus,e["duet-chip-has-icon"]=!!this.icon,e["duet-chip-has-popup"]=this.variation==="filter"&&!!this.popupElement,e["duet-theme-turva"]=this.theme==="turva",e["duet-chip-filter-checked"]=this.variation==="filter"&&this.checked,e["duet-chip-radio-checked"]=this.variation==="radio"&&this.checked,e["duet-chip-filter-popup-open"]=this.popupOpen,e["duet-chip-disabled"]=this.disabled,e[this.size]=true,e);var u={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return i.focusableElement=e}};return n(r,{key:"74eda64434d7ca861c30bb1468384b4d789bbd97",class:(t={},t[this.variation]=true,t)},this.variation==="button"&&n("span",{key:"63101bab777b2c17bb952b362896a3e01849a520",class:c},n("button",Object.assign({key:"857f56d854ac01c9f0411c0a24d89f22e34e4354",id:a,"aria-label":this.accessibleLabel,"aria-haspopup":this.getAccessiblePopup(),"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,name:this.name,value:this.value,onClick:this.disabled?function(e){return e.stopPropagation()}:undefined},u),n("span",{key:"5baa1e7b3ea38e0d3eb8ebe9f5cde001f4dad939",class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{key:"2cd983ee490a7810fb740009ef9a1ef1a591b378",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",{key:"f1cbed1211d6143c5b6727fb7f182b2567e27206"}))),this.variation==="input"&&n("span",{key:"744596fbf0b1bfbec1bdd33f26e70d5d9cacfeaa",class:c,"aria-label":this.getAccessibleInputChipLabel()},n("button",Object.assign({key:"e2c1bca091f5ec8e7ea9ff2c8e26519836056887",id:a,class:"duet-chip-input-button",value:this.value,"aria-label":this.accessibleLabel,onMouseOver:function(){return i.inputChipHover=true},onMouseOut:function(){return i.inputChipHover=false},onClick:function(){return i.selected=!i.selected}},u),n("span",{key:"a55760300073590c593ca320a5e65340be999b38",class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{key:"a7788de0d14342248a475f2ff5493c0923c45a9c",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",{key:"234fb07f9a8a248a8ed9cdad7006dc6477750c86"})),n("button",{key:"a4c5d32a365ce3994e1620a04c2d47de32ee6a79",class:"duet-chip-remove-button","aria-label":this.getAccessibleDeleteLabel(),onClick:this.onRemoveClick,onFocus:function(){return i.inputChipDeleteFocus=true},onBlur:function(){return i.inputChipDeleteFocus=false},ref:function(e){return i.deleteButtonElement=e}},n("duet-icon",{key:"61db68dbdbb9c89ad567be49369baceccfc70303",name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),this.variation==="filter"&&n("span",{key:"3df7ed43734210e5c84768121be780c2e7fa47ca",class:c},n("input",Object.assign({key:"fd46eb7f531a7cce5b329dc46973ebce71477ef0","aria-haspopup":this.getAccessiblePopup(),"aria-controls":(o=this.popupElement)===null||o===void 0?void 0:o.id,"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,id:a,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},u)),n("label",{key:"2e3e7f153db3e7798fd35a41b3bd5731b7893799",htmlFor:a},this.icon&&n("span",{key:"4daec9ebcae39a9fac552ef5ca6170e991ed2ede",class:"duet-chip-icon-container"},n("duet-icon",{key:"f8c53ccc22dc8955b4ca0946014654a53f643bdf",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{key:"72a8486a18b78b8522ccf958a762d9200ba44f39",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",{key:"4282153a03e2293726a33285e0258dafff9f08a0"}),this.popupElement&&n("span",{key:"b0ace996f4be6c9a56f4842fca5370a987a53623",class:"duet-chip-popup-disclosure"},n("duet-icon",{key:"e7ff6e81d48dd6373a5b301661b5b88bd63b18ac",name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&n("span",{key:"b35d00719155d5312923ec5e91e8b9978550553b",class:c},n("slot",{key:"e4b3e781039b2d788de0dadd67b42fca773ec902",name:"input"}),n("label",{key:"23a2a955b70d7e01982a01c25f6e634385d4b699",htmlFor:a},this.icon&&n("span",{key:"a5dd1cfb84d59288385b241df6cf09c2dd9ab717",class:"duet-chip-icon-container"},n("duet-icon",{key:"2a15bfd278418d32b2d5dc39973eebc7eabfbbae",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{key:"50e58300bb05edd5545be74e621feca7ececb52e",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",{key:"a67a5350140057e665af6c7882d6985b430d066a"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["clearOtherRadioButtons"]}},enumerable:false,configurable:true});return e}());C.style=z;var S="*,*::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(8, 42, 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.scroll-visible{overflow-y:scroll;scroll-margin:20px}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255)}::slotted(duet-notification){max-width:360px}";var O=S;var E=e("duet_popup_menu",function(){function e(e){var n=this;t(this,e);this.duetToggle=i(this,"duetToggle",7);this.setOpenButton=function(e){if(!e){return}try{var t=e;t.accessiblePopup="true";t.accessibleExpanded=false;if(n.controllerIcon){t.setAttribute("trailing-icon","action-arrow-down-small")}n.openButton=t}catch(e){}};this.openButtonEventListener=function(){n.toggle()};this.updatePlacement=function(){return __awaiter(n,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:if(!this.openButton){return[2]}e=[m({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),this.allowVerticalFlip&&g(),v({padding:5})].filter(Boolean);return[4,k(this.openButton,this.menuElement,{middleware:e,placement:this.placement,strategy:this.position})];case 1:t=i.sent();this.menuY=t.y;this.menuX=t.x;return[2]}}))}))};this.open=false;this.menuY=undefined;this.menuX=undefined;this.accessibleLabel=undefined;this.accessibleRole="menu";this.theme="";this.skipTeleport=undefined;this.placement="bottom-start";this.forcePlacement=false;this.allowVerticalFlip=true;this.position="absolute";this.mainAxisOffset=0;this.crossAxisOffset=0;this.controllerIcon="action-arrow-down-small";this.scrollLimit=undefined}Object.defineProperty(e.prototype,"controller",{get:function(){return this._controller},set:function(e){if(this._controller===e){return}this._controller=e;if(typeof e==="string"){this.setOpenButton(document.getElementById(e));if(this.openButton){this.openButton.addEventListener("click",this.openButtonEventListener)}}else{this.setOpenButton(e)}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"opener",{get:function(){return this._controller},set:function(e){this.controller=e},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){a(this)};e.prototype.componentDidLoad=function(){{this.updatePlacement()}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new w(this.element)}if(this.teleport){this.teleport.activate()}};e.prototype.disconnectedCallback=function(){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}if(this.openButton){this.openButton.removeEventListener("click",this.openButtonEventListener);if(this.controllerIcon){this.openButton.removeAttribute("trailing-icon")}}};e.prototype.handleKeyUp=function(e){if(this.open){if(d(e)){this.hide()}}};e.prototype.handleKeyDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t,t;return __generator(this,(function(i){switch(i.label){case 0:if(!this.open)return[3,5];if(!h(e))return[3,2];e.preventDefault();return[4,this.getFocusedItemIndex()];case 1:t=i.sent();if(t!==-1){if(t<this.itemElements.length-1){this.itemElements[t+1].setFocus()}else{this.itemElements[0].setFocus()}}i.label=2;case 2:if(!p(e))return[3,4];e.preventDefault();return[4,this.getFocusedItemIndex()];case 3:t=i.sent();if(t!==-1){if(t===0){this.itemElements[this.itemElements.length-1].setFocus()}else{this.itemElements[t-1].setFocus()}}i.label=4;case 4:if(l(e)&&this.accessibleRole==="menu"){e.preventDefault();this.hide()}i.label=5;case 5:return[2]}}))}))};e.prototype.handleClick=function(e){var t=this;var i=e.composedPath().every((function(e){return e!==t.element&&e!==t.openButton}));if(this.open&&i){this.hide()}};e.prototype.isOpen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.open]}))}))};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}this.open=false;return[2]}))}))};e.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.open){this.hide()}else{this.show()}return[2]}))}))};e.prototype.handleOpenChange=function(e,t){var i=this;if(!!e===!!t){return}if(this.open&&!t){if(this.openButton){this.openButton.accessibleExpanded=true}if(this.accessibleRole!=="listbox"){this.teleport.makeSiblingsInert()}this.updatePlacement();if(this.menuElement&&this.openButton){this.autoUpdateCleanup=x(this.openButton,this.menuElement,this.updatePlacement)}setTimeout((function(){if(i.accessibleRole==="menu"){i.itemElements[0].setFocus()}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"})}),200)}else if(!this.open&&t){if(this.openButton){this.openButton.accessibleExpanded=false}if(this.autoUpdateCleanup){this.autoUpdateCleanup()}setTimeout((function(){if(i.accessibleRole==="menu"){y(i.openButton)}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"});if(i.accessibleRole!=="listbox"){i.teleport.removeInertFromSiblings()}}),200)}};Object.defineProperty(e.prototype,"itemElements",{get:function(){return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"popupMenuStyleHeight",{get:function(){if(this.itemElements.length>0&&this.scrollLimit){var e=Number(b.replace("px",""))*2;return"".concat(this.itemElements[0].offsetHeight*this.scrollLimit+e,"px")}else{return"auto"}},enumerable:false,configurable:true});e.prototype.getFocusedItemIndex=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:e=this.itemElements;t=0;i.label=1;case 1:if(!(t<e.length))return[3,4];return[4,e[t].isFocused()];case 2:if(i.sent()){return[2,t]}i.label=3;case 3:t++;return[3,1];case 4:return[2,-1]}}))}))};e.prototype.render=function(){var e=this;var t={top:"".concat(this.menuY,"px"),left:"".concat(this.menuX,"px"),position:this.position,overflowY:"auto",height:this.popupMenuStyleHeight};return n(r,{key:"af39c297a7f2c03182e3671d23fc67162e7854e3"},n("div",{key:"7c8fd36f7f0bbe630e5c47f942327700dd3ad3eb",ref:function(t){e.menuElement=t},style:t,class:{open:this.open,"duet-popup-menu-list":true,"duet-theme-turva":this.theme==="turva","scroll-visible":this.scrollLimit<this.itemElements.length},role:this.accessibleRole,"aria-label":this.accessibleLabel},n("slot",{key:"60c5bb890286cbbc5a9a33e8bc3d0fc1888dd193"})))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return e}());E.style=O;var B='*,*::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(8, 42, 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(240, 247, 250)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(222, 224, 228)}.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}';var F=B;var I=e("duet_popup_menu_item",function(){function e(e){var n=this;t(this,e);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.onFocus=function(e){n.focus=true;n.duetFocus.emit({originalEvent:e,value:n.value,component:"duet-popup-menu-item"})};this.onBlur=function(e){n.focus=false;n.duetBlur.emit({originalEvent:e,value:n.value,component:"duet-popup-menu-item"})};this.focus=false;this.accessibleLabel=undefined;this.accessibleRole="menuitem";this.theme="";this.url=undefined;this.external=false;this.targetLanguage=undefined;this.value=undefined;this.leadingIcon=undefined;this.leadingIconColor=undefined;this.trailingIcon=undefined;this.trailingText=undefined;this.active=false;this.activeDescendant=false}e.prototype.componentWillLoad=function(){a(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.isFocused=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.focus]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var i={"duet-popup-menu-item":true,active:this.active,"duet-theme-turva":this.theme==="turva","active-descendant":this.activeDescendant};return n(r,{key:"02e7a087e9f8df28e015c45b2182ab19167c39a2",role:this.accessibleRole},n(t,{key:"ac6c8e523bb7dbd6ce78dfb8e5ba1a34c765f538",ref:function(t){return e.itemElement=t},tabIndex:this.accessibleRole==="listitem"?0:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"".concat(t==="a"?"link":"button"),"aria-label":this.accessibleLabel,class:i,value:this.value,href:this.url,target:this.external?"_blank":undefined,rel:this.external?"noopener":undefined,lang:t==="button"?undefined:this.targetLanguage,hreflang:t==="button"?undefined:this.targetLanguage},this.leadingIcon&&n("duet-icon",{key:"003f72c807601366ce44ba41c92d01cc3867a995",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),n("span",{key:"5936e48916d5c665070e490074e5310b52ad0cd9",class:"duet-popup-menu-item-label"},n("slot",{key:"4f365167fa1ae20a9a26f91352791b8b94007088"})),(this.trailingIcon||this.active||this.url&&this.external)&&n("duet-icon",{key:"52e54059ac3b56ad022ed42085029a58b7010806",name:this.url&&this.external?_.title:this.active?"messaging-checked-small":this.trailingIcon,size:this.url&&this.external||this.active?"xx-small":"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&n("span",{key:"16fb5260a8d79c5b20bc7dcbb0d6fb078d41f0d5",class:"duet-popup-menu-item-trailing"},this.trailingText)))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());I.style=F}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,h as e,g as a}from"./p-f06e6bbc.js";import{i}from"./p-aaa7a7bd.js";import{s as o,u as r}from"./p-a1b7f2a0.js";import{a as d,g as n,c as s,d as c}from"./p-c356d09c.js";import{a as l}from"./p-115c79b6.js";import"./p-9c3c64b9.js";const h=class{constructor(e){t(this,e),this.language=d(),this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"},this.accessibleLabelUnread=n(this.accessibleLabelUnreadDefaults,this.language),this.url="#",this.date="",this.highlight=!1,this.external=!1,this.theme=""}componentWillLoad(){i(this)}connectedCallback(){s(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"}),o(this)}disconnectedCallback(){c(this),r(this)}async setFocus(t){this.linkElement.focus(t)}render(){return e("div",{key:"b2c27c02bb299100ebac95d66cf5537af6894d95",role:"listitem",class:{"duet-notification":!0,"duet-notification-highlight":this.highlight,"duet-theme-turva":"turva"===this.theme}},e("a",{key:"984f604d97dfab43781d8e9c4118323f7e3a293c",ref:t=>this.linkElement=t,href:this.url,target:this.external?"_blank":"_self"},e("div",{key:"bd80fdaaaa0c09c0e4d7410e8f5504bb7ff24a9e",class:"duet-notification-container"},e("div",{key:"0b5f665c730bfb41a949c3df042e51751893419a",class:"duet-notification-badge-container"},this.highlight&&e("div",{key:"f56d08f232e53a33efd0b604c52656a8f13c99f6",class:"duet-notification-badge"},e("duet-visually-hidden",{key:"ef12bed363576791957c9d318fedb9d417199711"},this.accessibleLabelUnread,":"))),e("div",{key:"a0477d9f15ffd3c2f3b70f38ccaf5eceb477b598",class:"duet-notification-content"},e("slot",{key:"5a607f88b483e286514cc8f5aba85d16ada6c4a7"})),e("div",{key:"c89051db7b8318c889d3a6c4bb06555c3786b128",class:"duet-notification-date"},this.date))))}get element(){return a(this)}};h.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:0.7}.duet-notification{display:block;padding:16px;padding-bottom:0;cursor:pointer}:host(:first-of-type) .duet-notification{border-top-left-radius:8px;border-top-right-radius:8px}:host(:last-of-type) .duet-notification{border-bottom:0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(222, 224, 228)}.duet-notification.duet-notification-highlight{font-weight:600}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(245, 247, 250)}@media (min-width: 62em){.duet-notification:hover{background:rgb(240, 247, 250)}.duet-notification:hover.duet-theme-turva{background:rgb(245, 247, 250)}}.duet-notification a{text-decoration:none}.duet-notification a:focus{outline:0}:host(.user-is-tabbing) .duet-notification:focus-within{z-index:1;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-notification:focus-within.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-notification-container{position:relative;display:flex;padding-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification-badge-container{position:relative;width:16px}.duet-notification-badge{position:absolute;top:6px;left:-2px;width:8px;height:8px;background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-notification-badge{background:rgb(198, 12, 48)}.duet-notification-content{flex:1}.duet-notification-date{position:absolute;top:2px;right:0;width:96px;font-size:0.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:right;text-transform:uppercase;opacity:0.7}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(113, 118, 132)}@media (min-width: 62em){:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:1}.duet-notification{padding:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification:hover{background:rgb(228, 241, 247)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(240, 247, 250)}.duet-notification-container{padding-bottom:0;border-bottom-style:none}}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";const u=class{constructor(e){t(this,e),this.handleKeyDown=t=>{this.isOpen&&27===t.keyCode&&this.close()},this.toggleMenu=t=>{t.stopPropagation(),this.isOpen?this.close():this.open()},this.updateNotificationState=()=>{this.hasNotifications=this.element.children.length>0},this.isOpen=!1,this.hasNotifications=void 0,this.icon="",this.label="Label",this.language=d(),this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"},this.accessibleLabelNotifications=n(this.accessibleLabelNotificationsDefaults),this.badge=!1,this.theme="",this.direction="left"}componentWillLoad(){i(this),this.updateNotificationState()}connectedCallback(){this.observer=new MutationObserver(this.updateNotificationState),this.observer.observe(this.element,{childList:!0}),o(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,r(this)}handleClickFocusOutside(t){this.isOpen&&!this.element.contains(t.target)&&this.close(!1)}async setFocus(t){this.drawerButtonEl.focus(t)}async open(){const t=this.element.closest("duet-header");t&&t.closeMenus(),this.isOpen=!0,this.drawerContentEl.scrollTop=0}async close(t=!0){this.isOpen=!1,t&&this.setFocus({preventScroll:!0})}render(){return e("div",{key:"181a6a82f04afb895830cf36e265a4f770f05188",class:{"duet-drawer":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:this.handleKeyDown},e("button",{key:"f4276d12063ff62d10998b80cd7621c3ceadc302",ref:t=>this.drawerButtonEl=t,type:"button",class:"duet-drawer-toggle",id:"duet-drawer-toggle","aria-controls":"duet-drawer-content","aria-expanded":this.isOpen?"true":"false",onClick:this.toggleMenu},this.icon&&e("div",{key:"0c1a27d913b2ba53d8f6ef2eef3f0d05c251fabc",class:"duet-drawer-icon"},e("duet-icon",{key:"c32b7ae6a90f0d32f0d6b46aad6e9ba0fb0bf952",margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&e("div",{key:"e698da96829cac38cfeab0a15734f3be7a679455",class:"duet-drawer-badge"})),e("span",{key:"2725ba4970bcc2e6213f69c64d25a3dc7d9f005b",class:"duet-drawer-label"},this.label),e("div",{key:"71ae5369660c95fed7635cb7d5ae25fa5b9dde7a",class:"duet-drawer-caret"},e("duet-icon",{key:"1ac223f256804f95ff4a35f8fc115999d86fec8c",margin:"none",size:"auto",icon:l.svg,color:"currentColor"}))),e("div",{key:"aaa99d0c45b1f8218f0f999c9558f374799dc6a5",id:"duet-drawer-content",class:{"duet-drawer-content":!0,"duet-drawer-right":"right"===this.direction,"duet-drawer-left":"left"===this.direction,"duet-drawer-open":this.isOpen},ref:t=>this.drawerContentEl=t},this.hasNotifications?e("div",{role:"list"},e("slot",null)):e("duet-empty-state",{size:"small"},e("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))}get element(){return a(this)}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-drawer{position:relative}@media (min-width: 62em){.duet-drawer{display:inline-block}}.duet-drawer-toggle{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:48px;color:rgb(8, 42, 77);text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229);border-radius:0;-webkit-appearance:none;appearance:none}@media (min-width: 62em){.duet-drawer-toggle{z-index:200;width:auto;max-width:200px;padding:0 30px 0 12px;overflow:hidden;font-size:0.875rem;line-height:4rem;border:0;border-radius:4px;transition:border 300ms ease}}.duet-theme-turva .duet-drawer-toggle{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);background-color:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-drawer-toggle:active{opacity:0.75}.duet-drawer-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-drawer-toggle:hover{color:rgb(0, 75, 129)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(113, 118, 132)}.duet-drawer-toggle::after{display:none !important}@media (min-width: 62em){.duet-drawer-toggle::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-theme-turva .duet-drawer-toggle::after{background:rgb(198, 12, 48)}}.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(0, 75, 129);border-bottom:1px solid rgb(245, 248, 250);border-radius:0}.duet-theme-turva .duet-drawer-toggle[aria-expanded=true],.duet-theme-turva .duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(113, 118, 132);border-color:rgb(245, 247, 250)}@media (min-width: 62em){.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{border:0}.duet-drawer-toggle[aria-expanded=true]::after,.duet-drawer-toggle[aria-expanded=true]:hover::after{left:0;width:100%;transform:translateY(0)}}.duet-drawer-icon{position:relative;display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-drawer-icon{margin-right:8px}}.duet-drawer-label{line-height:1}.duet-drawer-caret{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){.duet-drawer-caret{right:16px;width:7px;height:7px}}.duet-drawer-caret duet-icon{width:10px}.duet-drawer-toggle[aria-expanded=true] .duet-drawer-caret{transform:translateY(-50%) rotate(180deg)}.duet-drawer-badge{position:absolute;top:0;right:0;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-drawer-badge{background:rgb(247, 178, 40)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(212, 223, 229)}@media (min-width: 62em){.duet-drawer-content{position:absolute;top:100%;z-index:600;display:block;width:450px;max-height:420px;padding-left:0;overflow-y:auto;visibility:hidden;background-color:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.95) translateZ(0) translateY(-10px);transform-origin:50% 0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255)}.duet-drawer-content.duet-drawer-left{right:0}.duet-drawer-content.duet-drawer-right{left:0}}.duet-drawer-content.duet-drawer-open{display:block}@media (min-width: 62em){.duet-drawer-content.duet-drawer-open{visibility:visible;opacity:1;transform:scale(1) translateZ(0) translateY(0)}}';export{h as duet_notification,u as duet_notification_drawer}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,h as e,H as i,g as n,F as o}from"./p-f06e6bbc.js";import{i as a}from"./p-aaa7a7bd.js";import{s as d}from"./p-9c3c64b9.js";import{g as r}from"./p-10c530d1.js";import{a as s}from"./p-f11208c3.js";import{D as l,c as h}from"./p-beeb12f1.js";import{g as u}from"./p-86941ea3.js";import{a as c,g as p,c as m,d as g}from"./p-c356d09c.js";import{c as b}from"./p-5e59e970.js";import"./p-1004af75.js";import"./p-13f8502f.js";const k=class{constructor(e){t(this,e),this.theme="",this.margin="auto",this.selected=!1,this.size="medium"}componentWillLoad(){a(this)}render(){return e(i,{key:"cefb662c677d5a45cc8e007a68ab67b0698ce2ee",class:{"duet-caption":!0,"duet-caption-selected":this.selected,"duet-caption-small":"small"===this.size,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin}},e("slot",{key:"4a38bee52925d9c7db4473dd0e5bc92797b0b058"}))}get element(){return n(this)}};k.style=':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:flex;flex:0 0 100%;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(98, 121, 138);vertical-align:top}:host.duet-p-0{padding:0 !important}:host.duet-m-0{margin:0 !important}:host(.duet-caption-small){font-size:0.875rem;line-height:1.25}: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(143, 147, 158)}:host(.duet-caption-selected){color:rgb(0, 119, 179)}:host(.duet-caption-selected.duet-theme-turva){color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}';const f=class{constructor(e){t(this,e),this.level="h2",this.margin="auto",this.visualLevel=void 0,this.border=!1,this.weight="auto",this.color="",this.theme="",this.hyphenate=!1,this.fixedSize=!1}componentWillLoad(){a(this)}render(){const t=d(this.level),i=r(this.color);return e(t,{key:"254585b23310b58e9fa3c75de98c1bdd62283ae9",class:{"duet-heading":!0,"duet-heading-border":!1!==this.border,"duet-heading-border-solid":"solid"===this.border,"duet-normal":"normal"===this.weight,"duet-semibold":"semibold"===this.weight,"duet-heading-hyphenate":this.hyphenate,"duet-m-0":"none"===this.margin,[this.visualLevel?this.visualLevel:this.level]:!0,"duet-theme-turva":"turva"===this.theme,"fixed-size":this.fixedSize},style:{color:i},part:"duet-heading"},e("slot",{key:"408af76a0856d17891671ef22c16277d368902f6"}))}get element(){return n(this)}};f.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}.duet-heading{margin-bottom:16px !important;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;letter-spacing:-0.01rem;word-break:break-word}@media (min-width: 36em){.duet-heading{margin-bottom:20px !important}}.duet-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";font-style:italic;font-weight:700;color:rgb(23, 28, 58)}.duet-heading.duet-heading-border{padding-bottom:20px;border-bottom:1px solid rgb(212, 223, 229)}.duet-heading.duet-heading-border.duet-heading-border-solid{border-bottom-color:rgb(98, 121, 138)}.duet-heading.duet-heading-hyphenate{-webkit-hyphens:auto;hyphens:auto}.duet-heading.h0{font-size:9.4vw;line-height:1.1}.duet-heading.h0.duet-p-0{padding:0 !important}.duet-heading.h0.duet-m-0{margin:0 !important}@media (max-width: 31.914893617rem){.duet-heading.h0{font-size:3rem}}@media (min-width: 47.8723404255rem){.duet-heading.h0{font-size:4.5rem}}@media (max-width: 22.5em){.duet-heading.h0{font-size:2.25rem}}.duet-heading.h0.fixed-size{font-size:4.5rem}.duet-heading.h1{font-size:7vw;line-height:1.1}.duet-heading.h1.duet-p-0{padding:0 !important}.duet-heading.h1.duet-m-0{margin:0 !important}@media (max-width: 32.1428571429rem){.duet-heading.h1{font-size:2.25rem}}@media (min-width: 42.8571428571rem){.duet-heading.h1{font-size:3rem}}@media (max-width: 22.5em){.duet-heading.h1{font-size:1.5rem}}.duet-heading.h1.fixed-size{font-size:3rem}.duet-heading.h2{font-size:5.8vw;line-height:1.1}.duet-heading.h2.duet-p-0{padding:0 !important}.duet-heading.h2.duet-m-0{margin:0 !important}@media (max-width: 25.8620689655rem){.duet-heading.h2{font-size:1.5rem}}@media (min-width: 38.7931034483rem){.duet-heading.h2{font-size:2.25rem}}.duet-heading.h2.duet-theme-turva{font-style:normal}@media (max-width: 22.5em){.duet-heading.h2{font-size:1.375rem}}.duet-heading.h2.fixed-size{font-size:2.25rem}.duet-heading.h3{margin-bottom:12px !important;font-size:4.2vw}.duet-heading.h3.duet-p-0{padding:0 !important}.duet-heading.h3.duet-m-0{margin:0 !important}@media (max-width: 29.7619047619rem){.duet-heading.h3{font-size:1.25rem}}@media (min-width: 35.7142857143rem){.duet-heading.h3{font-size:1.5rem}}.duet-heading.h3.duet-theme-turva{font-style:normal}.duet-heading.h3.duet-heading-border{padding-bottom:20px}.duet-heading.h3.fixed-size{font-size:1.5rem}.duet-heading.h4{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}.duet-heading.h4.duet-p-0{padding:0 !important}.duet-heading.h4.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h4{font-size:1.1rem}}@media (min-width: 31.25rem){.duet-heading.h4{font-size:1.25rem}}.duet-heading.h4.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h4.duet-heading-border{padding-bottom:20px}.duet-heading.h4.fixed-size{font-size:1.25rem}.duet-heading.h5{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}.duet-heading.h5.duet-p-0{padding:0 !important}.duet-heading.h5.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h5{font-size:1.1rem}}@media (min-width: 28.4090909091rem){.duet-heading.h5{font-size:1.1363636364rem}}.duet-heading.h5.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h5.duet-heading-border{padding-bottom:16px}.duet-heading.h5.fixed-size{font-size:1.25rem}.duet-heading.h6{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}.duet-heading.h6.duet-p-0{padding:0 !important}.duet-heading.h6.duet-m-0{margin:0 !important}.duet-heading.h6.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h6.duet-heading-border{padding-bottom:16px}.duet-heading.duet-normal,.duet-heading.duet-theme-turva.duet-normal{font-style:normal !important;font-weight:400 !important}.duet-heading.duet-semibold,.duet-heading.duet-theme-turva.duet-semibold{font-style:normal !important;font-weight:600 !important}';var x='<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M5.499 24a.752.752 0 0 1-.53-1.281L15.689 12 4.969 1.28c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53c.141-.142.33-.22.53-.22s.389.078.53.22l10.72 10.72a1.5 1.5 0 0 1 .001 2.119L6.029 23.78a.743.743 0 0 1-.53.22z"/></svg>',w='<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M10.25 2a.75.75 0 1 1 0 1.5h-6.5A2.252 2.252 0 0 0 1.5 5.75v14.5a2.252 2.252 0 0 0 2.25 2.25h14.5a2.252 2.252 0 0 0 2.25-2.25v-6.5a.75.75 0 0 1 1.5 0v6.5A3.754 3.754 0 0 1 18.25 24H3.75A3.754 3.754 0 0 1 0 20.25V5.75A3.754 3.754 0 0 1 3.75 2zm12.985-2c.1 0 .198.02.29.058l.025.011a.726.726 0 0 1 .15.091l.066.059a.755.755 0 0 1 .109.138l.051.1c.04.092.06.192.06.293l-.001 6.363c0 .2-.078.389-.22.53a.743.743 0 0 1-.53.22.743.743 0 0 1-.53-.22.743.743 0 0 1-.22-.53V2.559L15.28 9.764a.75.75 0 0 1-1.06-1.06l7.204-7.205h-4.553a.744.744 0 0 1-.75-.75c0-.2.078-.388.22-.53A.743.743 0 0 1 16.87 0z"/></svg>';const v=class{constructor(e){t(this,e),this.variation="default",this.accessibleLabel=void 0,this.language=c(),this.accessibleLabelExternalDefaults=l,this.accessibleLabelExternal=p(this.accessibleLabelExternalDefaults),this.accessibleLabelDownloadDefaults=h,this.accessibleLabelDownload=p(this.accessibleLabelDownloadDefaults),this.accessibleExpanded=void 0,this.accessiblePopup="false",this.identifier=void 0,this.theme="",this.url="#",this.external=!1,this.download=null,this.tabToLink=!1,this.icon=void 0,this.iconColor="currentColor",this.iconBackground=null,this.iconResponsive=!1,this.margin="auto",this.padding="auto",this.isMediumScreen=!1}componentWillLoad(){a(this),this.resolvedDownload=this.resolveDownload(),"button"===this.variation&&"#"===this.url&&(this.url=void 0)}connectedCallback(){m(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){g(this)}async setFocus(t){this.nativeLink.focus(t)}resolveDownload(){return""===this.download?this.url.split("/").pop():this.download}renderDefaultContent(){return e(o,null,e("span",{class:"duet-link-content",part:"duet-link-content"},e("slot",null)),(this.resolvedDownload||this.external)&&"default"===this.variation&&e(o,null,e("span",{class:"duet-link-icon-tail"}," ",e("duet-icon",{icon:this.resolvedDownload?'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M13.193 1.7c0-.658-.542-1.2-1.2-1.2-.657 0-1.199.542-1.199 1.2v8.922l-2.778-2.6a1.2 1.2 0 0 0-1.64 1.751l4.797 4.498c.458.43 1.183.43 1.64 0l4.798-4.498c.242-.228.379-.544.379-.875a1.2 1.2 0 0 0-2.02-.876l-2.777 2.603V1.699Z"/><path d="M1.5 13.544a1.5 1.5 0 0 1 1.498 1.5v1.498a1.61 1.61 0 0 0 .418 1.096h-.003c0-.002.036.032.13.082.39.194.818.305 1.254.321H19.19a3.085 3.085 0 0 0 1.255-.32c.096-.051.13-.085.13-.085.27-.3.42-.69.414-1.096v-1.5c0-.822.677-1.498 1.5-1.498.822 0 1.499.676 1.499 1.499v1.499c0 1.16-.43 2.293-1.224 3.142-.518.557-1.235.876-1.791 1.056a5.976 5.976 0 0 1-1.783.302H4.797a6.053 6.053 0 0 1-1.782-.302c-.556-.18-1.274-.5-1.792-1.056A4.613 4.613 0 0 1 0 16.542v-1.499a1.5 1.5 0 0 1 1.5-1.499Z"/></svg>':s.svg,size:"xx-small",margin:"none",color:"currentColor"}))))}renderBlockContent(){return e(o,null,this.icon&&e("span",{class:"block__icon"},e("duet-icon",{class:this.iconResponsive?"icon-responsive":"",size:"auto",name:this.icon,margin:"none",color:this.iconColor})),e("span",{class:"block__content"},this.renderDefaultContent()),e("span",{class:"block__chevron",part:"block-chevron"},e("duet-icon",{class:"block__chevron-icon",icon:this.external?w:x,size:"x-small",margin:"none",color:"primary-dark"})))}renderButtonCardContent(){const t={"background-color":r(this.iconBackground,this.theme)};return e(o,null,this.icon&&e("span",{class:"icon-wrap",style:t},e("duet-icon",{size:"auto",name:this.icon,margin:"none",color:this.iconColor})),e("div",{class:"duet-link-content",part:"duet-link-content"},e("slot",null)),e("span",{class:"chevron-wrap"},e("duet-icon",{class:"block__chevron-icon",icon:this.external?w:x,size:"x-small",margin:"none",color:"primary-dark"})))}renderContent(){switch(this.variation){case"default":return this.renderDefaultContent();case"block":return this.renderBlockContent();case"button":case"card":return this.renderButtonCardContent()}}render(){const t=this.url?"a":"button",n="button"===t;return e(i,{key:"6bcdceb6f32843e5474b9a1d00f9afef631afc5b",class:{[`duet-link-${this.variation}`]:!0,"duet-m-0":"none"===this.margin}},e(t,{key:"8e65e4745097d5253535f228d9a2d61f9961cceb",href:this.url,class:{"duet-link":!0,"duet-link-is-external":this.external,"duet-link-is-download":!!this.download,"duet-link-has-icon":!!this.icon,"duet-link-has-icon-background":!!this.iconBackground,"duet-tab-to-link":this.tabToLink,"duet-theme-turva":"turva"===this.theme,"duet-p-0":"none"===this.padding,[this.padding]:!0,[this.variation]:!0},target:this.download||!this.url?null:this.external?"_blank":"_self",download:this.resolvedDownload,"aria-label":this.url&&u(this)||this.accessibleLabel,"aria-expanded":null!=this.accessibleExpanded&&n?this.accessibleExpanded.toString():void 0,"aria-haspopup":null!=this.accessiblePopup&&n?this.accessiblePopup.toString():void 0,id:this.identifier,ref:t=>this.nativeLink=t,part:"duet-link",rel:this.external?"noopener":void 0},this.renderContent()))}static get delegatesFocus(){return!0}get element(){return n(this)}};v.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline}:host(.duet-link-block){display:block}:host(.duet-link-button){margin-right:8px !important;margin-bottom:12px !important;display:inline-block;width:100%}:host(.duet-link-button):last-child,:host(.duet-link-button):last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-link{display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:rgb(0, 97, 155);text-decoration:underline;border-radius:4px;transition:300ms ease}.duet-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-link.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(164, 4, 40)}.duet-link:hover{color:rgb(0, 75, 129);text-decoration:none}.duet-link:hover.duet-theme-turva{color:rgb(126, 2, 35)}.duet-link:active{opacity:0.75;transition:none}button{font-size:inherit;cursor:pointer}.duet-link-is-external.duet-link:not(.block,.button,.card),.duet-link-is-download.duet-link:not(.block,.button,.card){text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card) .duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card) .duet-link-content{text-decoration:underline}.duet-link-is-external.duet-link:not(.block,.button,.card):hover>.duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card):hover>.duet-link-content{text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card) .duet-link-icon-tail,.duet-link-is-download.duet-link:not(.block,.button,.card) .duet-link-icon-tail{text-decoration:none;white-space:nowrap}.duet-tab-to-link{padding:15px 28px 16px !important;position:absolute;top:-100%;left:-100%;z-index:200;width:1px;min-width:190px;height:1px;overflow:hidden;font-weight:600;color:rgb(0, 119, 179);text-align:center;text-decoration:none;background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:none}.duet-tab-to-link.duet-theme-turva{min-width:120px;color:rgb(23, 28, 58)}@media (min-width: 106.25em){.duet-tab-to-link{margin-left:20px}}.duet-tab-to-link:focus{top:12px;left:20px;width:auto;height:auto;outline:0;opacity:1}.block.duet-link{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;padding:16px;font-weight:600;color:rgb(8, 42, 77);text-decoration:none}.block.duet-link.duet-link-has-icon{grid-template-columns:auto 1fr auto}.block.duet-link.none{padding:0}.block .block__icon{display:flex}.block .block__icon duet-icon{width:16px;height:16px}.block .block__icon duet-icon.icon-responsive{width:30px;height:30px}@media (max-width: 22.5em){.block .block__icon duet-icon.icon-responsive{width:24px;height:24px}}.block .block__content{position:relative;bottom:2px}.block .block__chevron{align-self:center}.block .block__chevron-icon{transition:300ms ease}.block:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.duet-link.button:not(.duet-link-has-icon-background) .icon-wrap duet-icon{width:20px;height:20px}.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:20px;height:20px}@media (min-width: 48em){.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:24px;height:24px}}.duet-link.button,.duet-link.card{display:flex;gap:12px;align-items:center;width:100%;min-height:48px;padding:14px 16px;line-height:1.25;text-decoration:none;background-color:rgb(255, 255, 255);border:solid 1px rgb(181, 198, 208);border-radius:12px;outline:0 solid rgb(181, 198, 208);outline-offset:-2px;transition:all 300ms ease}.duet-link.button>*,.duet-link.card>*{flex-shrink:0}.duet-link.button .duet-link-content,.duet-link.card .duet-link-content{flex-grow:1;flex-shrink:1;font-size:1rem;font-weight:600;color:rgb(8, 42, 77);text-align:left}.duet-link.button .icon-wrap,.duet-link.card .icon-wrap{display:flex;align-items:center;justify-content:center}.duet-link.button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:24px;height:24px}@media (min-width: 48em){.duet-link.button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:30px;height:30px}}.duet-link.button.duet-link-has-icon-background,.duet-link.card.duet-link-has-icon-background{min-height:60px;padding:12px;padding-right:20px;line-height:1.5}.duet-link.button.duet-link-has-icon-background .icon-wrap,.duet-link.card.duet-link-has-icon-background .icon-wrap{width:36px;height:36px;border-radius:8px}.duet-link.button:hover,.duet-link.card:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179)}@media (min-width: 48em){.duet-link.button,.duet-link.card{min-height:50px}.duet-link.button.duet-link-has-icon-background,.duet-link.card.duet-link-has-icon-background{gap:16px;min-height:72px;border-radius:16px}.duet-link.button.duet-link-has-icon-background .icon-wrap,.duet-link.card.duet-link-has-icon-background .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.button.duet-link-has-icon-background .duet-link-content,.duet-link.card.duet-link-has-icon-background .duet-link-content{font-size:1.1rem}}.duet-link.button.duet-theme-turva,.duet-link.card.duet-theme-turva{border-color:rgb(199, 202, 207)}.duet-link.button.duet-theme-turva .duet-link-content,.duet-link.card.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.button.duet-theme-turva:hover,.duet-link.card.duet-theme-turva:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-link.button .block__chevron-icon,.duet-link.card .block__chevron-icon{transition:300ms ease}.duet-link.button:not(.duet-link-is-external):hover .block__chevron-icon,.duet-link.card:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.duet-link.card{border-color:rgb(228, 236, 239);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-link.card.duet-theme-turva{border-color:rgb(234, 235, 239);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}.duet-link.card:not(.duet-link-has-icon){gap:12px;padding:16px}.duet-link.card .chevron-wrap{display:flex;align-items:center;height:100%}.duet-link.card.duet-link-has-icon{gap:12px;align-items:flex-start;padding:16px}.duet-link.card.duet-link-has-icon .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.card.duet-link-has-icon .chevron-wrap{height:48px}@media (min-width: 48em){.duet-link.card:not(.duet-link-has-icon){gap:20px;padding:24px}.duet-link.card.duet-link-has-icon{gap:20px;padding:24px}.duet-link.card.duet-link-has-icon .icon-wrap{width:62px;height:62px;border-radius:16px}.duet-link.card.duet-link-has-icon .chevron-wrap{height:62px}}';const y=class{constructor(e){t(this,e),this.id=b("duet-paragraph"),this.theme="",this.margin="auto",this.size="medium",this.weight=void 0,this.variation="default",this.color=""}componentWillLoad(){a(this)}render(){const t=r(this.color);return e(i,{key:"e9f8164c6795c950d1f1340cc8a723113f2e231a","aria-describedby":this.id},e("p",{key:"87942327cc0a685a6d1435adc090b8c0aa5c54ac",id:this.id,class:{"duet-paragraph":!0,"duet-paragraph-small":"small"===this.size,"duet-paragraph-semi-bold":"semi-bold"===this.weight,"duet-paragraph-bold":"bold"===this.weight,"duet-m-0":"none"===this.margin,[this.variation]:!0,"duet-theme-turva":"turva"===this.theme},style:{color:t},part:"duet-paragraph"},e("slot",{key:"858b0de4a678c0320e76f1479d7e9a7202a749ac"})))}get element(){return n(this)}};y.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}.duet-paragraph{margin-bottom:16px !important;display: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";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(8, 42, 77)}.duet-paragraph.duet-p-0{padding:0 !important}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.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-paragraph.duet-paragraph-small{font-size:0.875rem}.duet-paragraph.duet-paragraph-semi-bold{font-weight:600}.duet-paragraph.duet-paragraph-bold{font-weight:700}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.intro{font-size:2.7vw;margin-bottom:28px !important;-webkit-hyphens:inherit;hyphens:inherit}@media (max-width: 37.037037037rem){.duet-paragraph.intro{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-paragraph.intro{font-size:1.25rem}}.duet-paragraph.intro.duet-m-0{margin:0 !important}::slotted(a){font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:rgb(0, 119, 179);text-decoration:underline;transition:300ms ease}::slotted(a).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(198, 12, 48)}::slotted(a):hover{color:rgb(0, 75, 129);text-decoration:none}::slotted(a):hover.duet-theme-turva{color:rgb(126, 2, 35)}::slotted(a):active{opacity:0.75;transition:none}';export{k as duet_caption,f as duet_heading,v as duet_link,y as duet_paragraph}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i))e[i]=r[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n["throw"](e))}catch(e){a(e)}}function s(e){e.done?t(e.value):i(e.value).then(o,l)}s((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(r){return s([e,r])}}function s(l){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(t=0)),t)try{if(n=1,i&&(a=l[0]&2?i["return"]:l[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;if(i=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;i=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1];a=l;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(l);break}if(a[2])t.ops.pop();t.trys.pop();continue}l=r.call(e,t)}catch(e){l=[6,e];i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++){if(a||!(n in r)){if(!a)a=Array.prototype.slice.call(r,0,n);a[n]=r[n]}}return e.concat(a||Array.prototype.slice.call(r))};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/var NAMESPACE="duet";var BUILD={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:true,invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:true,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var Env={cdnURILocal:"http://localhost:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.1.7"};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var Build={isDev:false,isBrowser:true,isServer:false,isTesting:false};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,r){return hostRefs.set(r.t=e,r)};var registerHost=function(e,r){var t={i:0,$hostElement$:e,o:r,l:new Map};{t.u=new Promise((function(e){return t.v=e}))}{t.p=new Promise((function(e){return t.h=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,t)};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e.m.replace(/-/g,"_");var i=e.S;if(!i){return void 0}var a=cmpModules.get(i);if(a){return a[n]}
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[n]}),consoleError)};var styles=new Map;var CONTENT_REF_ID="r";var ORG_LOCATION_ID="o";var SLOT_NODE_ID="s";var TEXT_NODE_ID="t";var COMMENT_NODE_ID="c";var HYDRATE_ID="s-id";var HYDRATED_STYLE_ID="sty-id";var HYDRATE_CHILD_ID="c-id";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var XLINK_NS="http://www.w3.org/1999/xlink";var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={i:0,_:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var supportsListenerOptions=function(){var e=false;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(e){}return e}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.i&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var i=null;var a=null;var o=null;var l=false;var s=false;var u=[];var f=function(r){for(var t=0;t<r.length;t++){i=r[t];if(Array.isArray(i)){f(i)}else if(i!=null&&typeof i!=="boolean"){if(l=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(l&&s){u[u.length-1].T+=i}else{u.push(l?newVNode(null,i):i)}s=l}}};f(t);if(r){if(r.key){a=r.key}if(r.name){o=r.name}{var c=r.className||r.class;if(c){r.class=typeof c!=="object"?c:Object.keys(c).filter((function(e){return c[e]})).join(" ")}}}if(typeof e==="function"){return e(r===null?{}:r,u,vdomFnUtils)}var v=newVNode(e,null);v.N=r;if(u.length>0){v.C=u}{v.$=a}{v.R=o}return v};var newVNode=function(e,r){var t={i:0,D:e,T:r,I:null,C:null};{t.N=null}{t.$=null}{t.R=null}return t};var Host={};var isHost=function(e){return e&&e.D===Host};var vdomFnUtils={forEach:function(e,r){return e.map(convertToPublic).forEach(r)},map:function(e,r){return e.map(convertToPublic).map(r).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.N,vchildren:e.C,vkey:e.$,vname:e.R,vtag:e.D,vtext:e.T}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var r=__assign({},e.vattrs);if(e.vkey){r.key=e.vkey}if(e.vname){r.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,r],e.vchildren||[],false))}var t=newVNode(e.vtag,e.vtext);t.N=e.vattrs;t.C=e.vchildren;t.$=e.vkey;t.R=e.vname;return t};var setAccessor=function(e,r,t,n,i,a){if(t!==n){var o=isMemberInElement(e,r);var l=r.toLowerCase();if(r==="class"){var s=e.classList;var u=parseClassList(t);var f=parseClassList(n);if(e["s-si"]&&f.indexOf(e["s-si"])<0){f.push(e["s-si"])}s.remove.apply(s,u.filter((function(e){return e&&!f.includes(e)})));s.add.apply(s,f.filter((function(e){return e&&!u.includes(e)})))}else if(r==="style"){{for(var c in t){if(!n||n[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in n){if(!t||n[c]!==t[c]){if(c.includes("-")){e.style.setProperty(c,n[c])}else{e.style[c]=n[c]}}}}else if(r==="key");else if(r==="ref"){if(n){n(e)}}else if(!o&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(isMemberInElement(win,l)){r=l.slice(2)}else{r=l[2]+r.slice(3)}if(t||n){var v=r.endsWith(CAPTURE_EVENT_SUFFIX);r=r.replace(CAPTURE_EVENT_REGEX,"");if(t){plt.rel(e,r,t,v)}if(n){plt.ael(e,r,n,v)}}}else{var d=isComplexType(n);if((o||d&&n!==null)&&!i){try{if(!e.tagName.includes("-")){var p=n==null?"":n;if(r==="list"){o=false}else if(t==null||e[r]!=p){if(typeof e.__lookupSetter__(r)==="function"){e[r]=p}else{e.setAttribute(r,p)}}}else{e[r]=n}}catch(e){}}var h=false;{if(l!==(l=l.replace(/^xlink\:?/,""))){r=l;h=true}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){if(h){e.removeAttributeNS(XLINK_NS,r)}else{e.removeAttribute(r)}}}else if((!o||a&4||i)&&!d){n=n===true?"":n;if(h){e.setAttributeNS(XLINK_NS,r,n)}else{e.setAttribute(r,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return"object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(parseClassListRegex):[]};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,r,t){var n=r.I.nodeType===11&&r.I.host?r.I.host:r.I;var i=e&&e.N||EMPTY_OBJ;var a=r.N||EMPTY_OBJ;{for(var o=0,l=sortedAttrNames(Object.keys(i));o<l.length;o++){var s=l[o];if(!(s in a)){setAccessor(n,s,i[s],void 0,t,r.i)}}}for(var u=0,f=sortedAttrNames(Object.keys(a));u<f.length;u++){var s=f[u];setAccessor(n,s,i[s],a[s],t,r.i)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var scopeId;var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var createElm=function(e,r,t,n){var i;var a=r.C[t];var o=0;var l;var s;var u;if(!useNativeShadowDom){checkSlotRelocate=true;if(a.D==="slot"){if(scopeId){n.classList.add(scopeId+"-s")}a.i|=a.C?2:1}}if(a.T!==null){l=a.I=doc.createTextNode(a.T)}else if(a.i&1){l=a.I=doc.createTextNode("")}else{if(!isSvgMode){isSvgMode=a.D==="svg"}l=a.I=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,!useNativeShadowDom&&BUILD.slotRelocation&&a.i&2?"slot-fb":a.D);if(isSvgMode&&a.D==="foreignObject"){isSvgMode=false}{updateElement(null,a,isSvgMode)}var f=l.getRootNode();var c=!f.querySelector("body");if(!c&&BUILD.scoped&&isDef(scopeId)&&l["s-si"]!==scopeId){l.classList.add(l["s-si"]=scopeId)}{updateElementScopeIds(l,n)}if(a.C){for(o=0;o<a.C.length;++o){s=createElm(e,a,o,l);if(s){l.appendChild(s)}}}{if(a.D==="svg"){isSvgMode=false}else if(l.tagName==="foreignObject"){isSvgMode=true}}}l["s-hn"]=hostTagName;{if(a.i&(2|1)){l["s-sr"]=true;l["s-cr"]=contentRef;l["s-sn"]=a.R||"";l["s-rf"]=(i=a.N)==null?void 0:i.ref;u=e&&e.C&&e.C[t];if(u&&u.D===a.D&&e.I){{putBackInOriginalLocation(e.I,false)}}}}return l};var putBackInOriginalLocation=function(e,r){plt.i|=1;var t=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&BUILD.experimentalSlotFixes){var n=e;while(n=n.nextSibling){if(n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===hostTagName){t.push(n)}}}for(var i=t.length-1;i>=0;i--){var a=t[i];if(a["s-hn"]!==hostTagName&&a["s-ol"]){insertBefore(parentReferenceNode(a),a,referenceNode(a));a["s-ol"].remove();a["s-ol"]=void 0;a["s-sh"]=void 0;checkSlotRelocate=true}if(r){putBackInOriginalLocation(a,r)}}plt.i&=~1};var addVnodes=function(e,r,t,n,i,a){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;i<=a;++i){if(n[i]){l=createElm(null,t,i,e);if(l){n[i].I=l;insertBefore(o,l,referenceNode(r))}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var i=e[n];if(i){var a=i.I;nullifyVNodeRefs(i);if(a){{checkSlotFallbackVisibility=true;if(a["s-ol"]){a["s-ol"].remove()}else{putBackInOriginalLocation(a,true)}}a.remove()}}}};var updateChildren=function(e,r,t,n,i){if(i===void 0){i=false}var a=0;var o=0;var l=0;var s=0;var u=r.length-1;var f=r[0];var c=r[u];var v=n.length-1;var d=n[0];var p=n[v];var h;var m;while(a<=u&&o<=v){if(f==null){f=r[++a]}else if(c==null){c=r[--u]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(f,d,i)){patch(f,d,i);f=r[++a];d=n[++o]}else if(isSameVnode(c,p,i)){patch(c,p,i);c=r[--u];p=n[--v]}else if(isSameVnode(f,p,i)){if(f.D==="slot"||p.D==="slot"){putBackInOriginalLocation(f.I.parentNode,false)}patch(f,p,i);insertBefore(e,f.I,c.I.nextSibling);f=r[++a];p=n[--v]}else if(isSameVnode(c,d,i)){if(f.D==="slot"||p.D==="slot"){putBackInOriginalLocation(c.I.parentNode,false)}patch(c,d,i);insertBefore(e,c.I,f.I);c=r[--u];d=n[++o]}else{l=-1;{for(s=a;s<=u;++s){if(r[s]&&r[s].$!==null&&r[s].$===d.$){l=s;break}}}if(l>=0){m=r[l];if(m.D!==d.D){h=createElm(r&&r[o],t,l,e)}else{patch(m,d,i);r[l]=void 0;h=m.I}d=n[++o]}else{h=createElm(r&&r[o],t,o,e);d=n[++o]}if(h){{insertBefore(parentReferenceNode(f.I),h,referenceNode(f.I))}}}}if(a>u){addVnodes(e,n[v+1]==null?null:n[v+1].I,t,n,o,v)}else if(o>v){removeVnodes(r,a,u)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.D===r.D){if(e.D==="slot"){if("k"in e&&t&&e.I.nodeType!==8){return false}return e.R===r.R}if(!t){return e.$===r.$}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.I=e.I;var i=e.C;var a=r.C;var o=r.D;var l=r.T;var s;if(l===null){{isSvgMode=o==="svg"?true:o==="foreignObject"?false:isSvgMode}{if(o==="slot"&&!useNativeShadowDom);else{updateElement(e,r,isSvgMode)}}if(i!==null&&a!==null){updateChildren(n,i,r,a,t)}else if(a!==null){if(e.T!==null){n.textContent=""}addVnodes(n,null,r,a,0,a.length-1)}else if(!t&&BUILD.updatable&&i!==null){removeVnodes(i,0,i.length-1)}if(isSvgMode&&o==="svg"){isSvgMode=false}}else if(s=n["s-cr"]){s.parentNode.textContent=l}else if(e.T!==l){n.data=l}};var updateFallbackSlotVisibility=function(e){var r=e.__childNodes||e.childNodes;for(var t=0,n=r;t<n.length;t++){var i=n[t];if(i.nodeType===1){if(i["s-sr"]){var a=i["s-sn"];i.hidden=false;for(var o=0,l=r;o<l.length;o++){var s=l[o];if(s!==i){if(s["s-hn"]!==i["s-hn"]||a!==""){if(s.nodeType===1&&(a===s.getAttribute("slot")||a===s["s-sn"])||s.nodeType===3&&a===s["s-sn"]){i.hidden=true;break}}else if(a===s["s-sn"]){if(s.nodeType===1||s.nodeType===3&&s.textContent.trim()!==""){i.hidden=true;break}}}}}updateFallbackSlotVisibility(i)}}};var relocateNodes=[];var markSlotContentForRelocation=function(e){var r;var t;var n;var i=e.__childNodes||e.childNodes;for(var a=0,o=i;a<o.length;a++){var l=o[a];if(l["s-sr"]&&(r=l["s-cr"])&&r.parentNode){t=r.parentNode.__childNodes||r.parentNode.childNodes;var s=l["s-sn"];var u=function(){r=t[n];if(!r["s-cn"]&&!r["s-nr"]&&r["s-hn"]!==l["s-hn"]&&!BUILD.experimentalSlotFixes){if(isNodeLocatedInSlot(r,s)){var e=relocateNodes.find((function(e){return e.O===r}));checkSlotFallbackVisibility=true;r["s-sn"]=r["s-sn"]||s;if(e){e.O["s-sh"]=l["s-hn"];e.L=l}else{r["s-sh"]=l["s-hn"];relocateNodes.push({L:l,O:r})}if(r["s-sr"]){relocateNodes.map((function(t){if(isNodeLocatedInSlot(t.O,r["s-sn"])){e=relocateNodes.find((function(e){return e.O===r}));if(e&&!t.L){t.L=e.L}}}))}}else if(!relocateNodes.some((function(e){return e.O===r}))){relocateNodes.push({O:r})}}};for(n=t.length-1;n>=0;n--){u()}}if(l.nodeType===1){markSlotContentForRelocation(l)}}};var isNodeLocatedInSlot=function(e,r){if(e.nodeType===1){if(e.getAttribute("slot")===null&&r===""){return true}if(e.getAttribute("slot")===r){return true}return false}if(e["s-sn"]===r){return true}return r===""};var nullifyVNodeRefs=function(e){{e.N&&e.N.ref&&e.N.ref(null);e.C&&e.C.map(nullifyVNodeRefs)}};var insertBefore=function(e,r,t){var n=e==null?void 0:e.insertBefore(r,t);{updateElementScopeIds(r,e)}return n};var findScopeIds=function(e){var r=[];if(e){r.push.apply(r,__spreadArray(__spreadArray(__spreadArray([],e["s-scs"]||[],false),[e["s-si"],e["s-sc"]],false),findScopeIds(e.parentElement),false))}return r};var updateElementScopeIds=function(e,r,t){if(t===void 0){t=false}var n;if(e&&r&&e.nodeType===1){var i=new Set(findScopeIds(r).filter(Boolean));if(i.size){(n=e.classList)==null?void 0:n.add.apply(n,e["s-scs"]=Array.from(i));if(e["s-ol"]||t){for(var a=0,o=Array.from(e.__childNodes||e.childNodes);a<o.length;a++){var l=o[a];updateElementScopeIds(l,e,true)}}}}};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n,i,a,o;var l=e.$hostElement$;var s=e.o;var u=e.A||newVNode(null,null);var f=isHost(r)?r:h(null,null,r);hostTagName=l.tagName;if(s.H){f.N=f.N||{};s.H.map((function(e){var r=e[0],t=e[1];return f.N[t]=l[r]}))}if(t&&f.N){for(var c=0,v=Object.keys(f.N);c<v.length;c++){var d=v[c];if(l.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){f.N[d]=l[d]}}}f.D=null;f.i|=4;e.A=f;f.I=u.I=l.shadowRoot||l;{scopeId=l["s-sc"]}useNativeShadowDom=(s.i&1)!==0;{contentRef=l["s-cr"];checkSlotFallbackVisibility=false}patch(u,f,t);{plt.i|=1;if(checkSlotRelocate){markSlotContentForRelocation(f.I);for(var p=0,m=relocateNodes;p<m.length;p++){var y=m[p];var S=y.O;if(!S["s-ol"]){var g=doc.createTextNode("");g["s-nr"]=S;insertBefore(S.parentNode,S["s-ol"]=g,S)}}for(var _=0,b=relocateNodes;_<b.length;_++){var y=b[_];var S=y.O;var E=y.L;if(E){var w=E.parentNode;var T=E.nextSibling;{var g=(n=S["s-ol"])==null?void 0:n.previousSibling;while(g){var N=(i=g["s-nr"])!=null?i:null;if(N&&N["s-sn"]===S["s-sn"]&&w===N.parentNode){N=N.nextSibling;while(N===S||(N==null?void 0:N["s-sr"])){N=N==null?void 0:N.nextSibling}if(!N||!N["s-nr"]){T=N;break}}g=g.previousSibling}}if(!T&&w!==S.parentNode||S.nextSibling!==T){if(S!==T){if(!S["s-hn"]&&S["s-ol"]){S["s-hn"]=S["s-ol"].parentNode.nodeName}insertBefore(w,S,T);if(S.nodeType===1){S.hidden=(a=S["s-ih"])!=null?a:false}}}S&&typeof E["s-rf"]==="function"&&E["s-rf"](S)}else{if(S.nodeType===1){if(t){S["s-ih"]=(o=S.hidden)!=null?o:false}S.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(f.I)}plt.i&=~1;relocateNodes.length=0}contentRef=void 0};var patchChildSlotNodes=function(e){var r=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.item=function(e){return this[e]};return r}(Array);var t=globalThis.Node&&Object.getOwnPropertyDescriptor(Node.prototype,"childNodes");if(!t){t=Object.getOwnPropertyDescriptor(e,"childNodes")}if(t)Object.defineProperty(e,"__childNodes",t);var n=Object.getOwnPropertyDescriptor(Element.prototype,"children");if(!n){n=Object.getOwnPropertyDescriptor(e,"children")}if(n)Object.defineProperty(e,"__children",n);Object.defineProperty(e,"children",{get:function(){return this.childNodes.filter((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return this.children.length}});if(!t)return;Object.defineProperty(e,"childNodes",{get:function(){var e,t;if(!plt.i||!((e=getHostRef(this))==null?void 0:e.i)||(plt.i&1)===0&&((t=getHostRef(this))==null?void 0:t.i)&2){var n=new r;var i=getSlottedChildNodes(this.__childNodes);n.push.apply(n,i);return n}return r.from(this.__childNodes)}})};var addSlotRelocateNode=function(e,r,t,n){var i;if(e["s-ol"]&&e["s-ol"].isConnected){i=e["s-ol"]}else{i=document.createTextNode("");i["s-nr"]=e}if(!r["s-cr"]||!r["s-cr"].parentNode)return;var a=r["s-cr"].parentNode;var o=t?a.__prepend||a.prepend:a.__appendChild||a.appendChild;if(typeof n!=="undefined"){{i["s-oo"]=n;var l=a.__childNodes||a.childNodes;var s=[i];l.forEach((function(e){if(e["s-nr"])s.push(e)}));s.sort((function(e,r){if(!e["s-oo"]||e["s-oo"]<r["s-oo"])return-1;else if(!r["s-oo"]||r["s-oo"]<e["s-oo"])return 1;return 0}));s.forEach((function(e){return o.call(a,e)}))}}else{o.call(a,i)}e["s-ol"]=i;e["s-sh"]=r["s-hn"]};var getSlottedChildNodes=function(e){var r=[];for(var t=0;t<e.length;t++){var n=e[t]["s-nr"];if(n&&n.isConnected){r.push(n)}}return r};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var initializeClientHydrate=function(e,r,t,n){var i=createTime("hydrateClient",r);var a=e.shadowRoot;var o=[];var l=[];var s=[];var u=a?[]:null;var f=newVNode(r,null);f.I=e;if(!plt.V){initializeDocumentHydrate(doc.body,plt.V=new Map)}e[HYDRATE_ID]=t;e.removeAttribute(HYDRATE_ID);n.A=clientHydrate(f,o,l,u,e,e,t,s);var c=0;var v=o.length;var d;for(c;c<v;c++){d=o[c];var p=d.M+"."+d.k;var h=plt.V.get(p);var m=d.I;if(!a){m["s-hn"]=r.toUpperCase();if(d.D==="slot"){m["s-cr"]=e["s-cr"]}}if(h&&h.isConnected){if(a&&h["s-en"]===""){h.parentNode.insertBefore(m,h.nextSibling)}h.parentNode.removeChild(h);if(!a){m["s-oo"]=parseInt(d.k)}}plt.V.delete(p)}var y=[];var S=0;var g=s.length;var _;var b;var E;var w;for(S;S<g;S++){_=s[S];if(!_||!_.length)continue;E=_.length;b=0;for(b;b<E;b++){w=_[b];if(!y[w.hostId]){y[w.hostId]=plt.V.get(w.hostId)}if(!y[w.hostId])continue;var T=y[w.hostId];if(!T.shadowRoot||!a){w.slot["s-cr"]=T["s-cr"];if(!w.slot["s-cr"]&&T.shadowRoot){w.slot["s-cr"]=T}else{var N=T.__childNodes||T.childNodes;w.slot["s-cr"]=N[0]}addSlotRelocateNode(w.node,w.slot,false,w.node["s-oo"])}if(T.shadowRoot&&w.node.parentElement!==T){T.appendChild(w.node)}}}if(a){var C=0;var $=u.length;for(C;C<$;C++){a.appendChild(u[C])}Array.from(e.childNodes).forEach((function(e){if(e.nodeType===8&&typeof e["s-sn"]!=="string"){e.parentNode.removeChild(e)}}))}n.$hostElement$=e;i()};var clientHydrate=function(e,r,t,n,i,a,o,l){if(l===void 0){l=[]}var s;var u;var f;var c;var v=i["s-sc"];if(a.nodeType===1){s=a.getAttribute(HYDRATE_CHILD_ID);if(s){u=s.split(".");if(u[0]===o||u[0]==="0"){f=createSimpleVNode({i:0,M:u[0],k:u[1],F:u[2],P:u[3],D:a.tagName.toLowerCase(),I:a,N:{class:a.className}});r.push(f);a.removeAttribute(HYDRATE_CHILD_ID);if(!e.C){e.C=[]}var d=f.I.getAttribute("s-sn");if(typeof d==="string"){if(f.D==="slot-fb"){addSlot(d,u[2],f,a,e,r,t,n,l)}f.I["s-sn"]=d;f.I.removeAttribute("s-sn")}if(f.P!==void 0){e.C[f.P]=f}if(v)a["s-si"]=v;e=f;if(n&&f.F==="0"){n[f.P]=f.I}}}if(a.shadowRoot){for(c=a.shadowRoot.childNodes.length-1;c>=0;c--){clientHydrate(e,r,t,n,i,a.shadowRoot.childNodes[c],o,l)}}var p=a.__childNodes||a.childNodes;for(c=p.length-1;c>=0;c--){clientHydrate(e,r,t,n,i,p[c],o,l)}}else if(a.nodeType===8){u=a.nodeValue.split(".");if(u[1]===o||u[1]==="0"){s=u[0];f=createSimpleVNode({M:u[1],k:u[2],F:u[3],P:u[4]||"0",I:a,N:null,C:null,$:null,R:null,D:null,T:null});if(s===TEXT_NODE_ID){f.I=a.nextSibling;if(f.I&&f.I.nodeType===3){f.T=f.I.textContent;r.push(f);a.remove();if(o===f.M){if(!e.C){e.C=[]}e.C[f.P]=f}if(n&&f.F==="0"){n[f.P]=f.I}}}else if(s===COMMENT_NODE_ID){f.I=a.nextSibling;if(f.I&&f.I.nodeType===8){r.push(f);a.remove()}}else if(f.M===o){if(s===SLOT_NODE_ID){f.D="slot";var d=a["s-sn"]=f.R=u[5]||"";addSlot(d,u[2],f,a,e,r,t,n,l)}else if(s===CONTENT_REF_ID){if(n){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(e&&e.D==="style"){var h=newVNode(null,a.textContent);h.I=a;h.P="0";e.C=[h]}return e};var initializeDocumentHydrate=function(e,r){if(e.nodeType===1){var t=e[HYDRATE_ID]||e.getAttribute(HYDRATE_ID);if(t){r.set(t,e)}var n=0;if(e.shadowRoot){for(;n<e.shadowRoot.childNodes.length;n++){initializeDocumentHydrate(e.shadowRoot.childNodes[n],r)}}var i=e.__childNodes||e.childNodes;for(n=0;n<i.length;n++){initializeDocumentHydrate(i[n],r)}}else if(e.nodeType===8){var a=e.nodeValue.split(".");if(a[0]===ORG_LOCATION_ID){r.set(a[1]+"."+a[2],e);e.nodeValue="";e["s-en"]=a[3]}}};var createSimpleVNode=function(e){var r={i:0,M:null,k:null,F:null,P:"0",I:null,N:null,C:null,$:null,R:null,D:null,T:null};return __assign(__assign({},r),e)};function addSlot(e,r,t,n,i,a,o,l,s){n["s-sr"]=true;var u=(i==null?void 0:i.I)?i.I["s-id"]||i.I.getAttribute("s-id"):"";if(l){var f=t.I=doc.createElement(t.D);if(t.R){t.I.setAttribute("name",e)}if(u&&u!==t.M){i.I.insertBefore(f,i.I.children[0])}else{n.parentNode.insertBefore(t.I,n)}addSlottedNodes(s,r,e,n,t.M);n.remove();if(t.F==="0"){l[t.P]=t.I}}else{var f=t.I;var c=u&&u!==t.M&&i.I.shadowRoot;addSlottedNodes(s,r,e,n,c?u:t.M);if(c){i.I.insertBefore(f,i.I.children[0])}a.push(t)}o.push(t);if(!i.C){i.C=[]}i.C[t.P]=t}var addSlottedNodes=function(e,r,t,n,i){var a=n.nextSibling;e[r]=e[r]||[];while(a&&((a["getAttribute"]&&a.getAttribute("slot")||a["s-sn"])===t||t===""&&!a["s-sn"]&&(a.nodeType===8&&a.nodeValue.indexOf(".")!==1||a.nodeType===3))){a["s-sn"]=t;e[r].push({slot:n,node:a,hostId:i});a=a.nextSibling}};var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,r,t){var n=getElement(e);return{emit:function(e){return emitEvent(n,r,{bubbles:!!(t&4),composed:!!(t&2),cancelable:!!(t&1),detail:e})}}};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var i=getScopeId(r);var a=styles.get(i);e=e.nodeType===11?e:doc;if(a){if(typeof a==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var l=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(i)){if(e.host&&(l=e.querySelector("[".concat(HYDRATED_STYLE_ID,'="').concat(i,'"]')))){l.innerHTML=a}else{l=doc.createElement("style");l.innerHTML=a;var s=(n=plt.j)!=null?n:queryNonceMetaTagContent(doc);if(s!=null){l.setAttribute("nonce",s)}if(!(r.i&1)){if(e.nodeName==="HEAD"){var u=e.querySelectorAll("link[rel=preconnect]");var f=u.length>0?u[u.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,f)}else if("host"in e){if(supportsConstructableStylesheets){var c=new CSSStyleSheet;c.replaceSync(a);e.adoptedStyleSheets=__spreadArray([c],e.adoptedStyleSheets,true)}else{var v=e.querySelector("style");if(v){v.innerHTML=a+v.innerHTML}else{e.prepend(l)}}}else{e.append(l)}}if(r.i&1&&e.nodeName!=="HEAD"){e.insertBefore(l,null)}}if(r.i&4){l.innerHTML+=SLOT_FB_CSS}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return i};var attachStyles=function(e){var r=e.o;var t=e.$hostElement$;var n=r.i;var i=createTime("attachStyles",r.m);var a=addStyle(t.shadowRoot?t.shadowRoot:t.getRootNode(),r);if(n&10&&n&2){t["s-sc"]=a;t.classList.add(a+"-h");if(n&2){t.classList.add(a+"-s")}}i()};var getScopeId=function(e,r){return"sc-"+e.m};var attachToAncestor=function(e,r){if(r&&!e.B&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.B=r})))}};var scheduleUpdate=function(e,r){{e.i|=16}if(e.i&4){e.i|=512;return}attachToAncestor(e,e.U);var t=function(){return dispatchHooks(e,r)};return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.o.m);var i=e.t;if(!i){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(r){{e.i|=256;if(e.q){e.q.map((function(e){var r=e[0],t=e[1];return safeCall(i,r,t)}));e.q=void 0}}{a=safeCall(i,"componentWillLoad")}}{a=enqueue(a,(function(){return safeCall(i,"componentWillRender")}))}n();return enqueue(a,(function(){return updateComponent(e,i,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,l,s,u;return __generator(this,(function(f){i=e.$hostElement$;a=createTime("update",e.o.m);o=i["s-rc"];if(t){attachStyles(e)}l=createTime("render",e.o.m);{callRender(e,r,i,t)}if(o){o.map((function(e){return e()}));i["s-rc"]=void 0}l();a();{s=(n=i["s-p"])!=null?n:[];u=function(){return postUpdateComponent(e)};if(s.length===0){u()}else{Promise.all(s).then(u);e.i|=4;s.length=0}}return[2]}))}))};var callRender=function(e,r,t,n){try{r=r.render();{e.i&=~16}{e.i|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.o.m;var t=e.$hostElement$;var n=createTime("postUpdate",r);var i=e.t;var a=e.U;{safeCall(i,"componentDidRender")}if(!(e.i&64)){e.i|=64;{addHydratedFlag(t)}{safeCall(i,"componentDidLoad")}n();{e.h(t);if(!a){appDidLoad()}}}else{{safeCall(i,"componentDidUpdate")}n()}{e.v(t)}{if(e.B){e.B();e.B=void 0}if(e.i&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.i&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e)}}return void 0};var addHydratedFlag=function(e){var r;return e.classList.add((r=BUILD.hydratedSelectorName)!=null?r:"hydrated")};var getValue=function(e,r){return getHostRef(e).l.get(r)};var setValue=function(e,r,t,n){var i=getHostRef(e);if(!i){throw new Error("Couldn't find host element for \"".concat(n.m,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).'))}var a=i.$hostElement$;var o=i.l.get(r);var l=i.i;var s=i.t;t=parsePropertyValue(t,n.Y[r][0]);var u=Number.isNaN(o)&&Number.isNaN(t);var f=t!==o&&!u;if((!(l&8)||o===void 0)&&f){i.l.set(r,t);if(s){if(n.W&&l&128){var c=n.W[r];if(c){c.map((function(e){try{s[e](t,o,r)}catch(e){consoleError(e,a)}}))}}if((l&(2|16))===2){scheduleUpdate(i,false)}}}};var proxyComponent=function(e,r,t){var n,i;var a=e.prototype;if(r.Y||(r.W||e.watchers)){if(e.watchers&&!r.W){r.W=e.watchers}var o=Object.entries((n=r.Y)!=null?n:{});o.map((function(e){var n=e[0],i=e[1][0];if(i&31||t&2&&i&32){if((i&2048)===0){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,r)},configurable:true,enumerable:true})}else if(t&1&&i&2048){{Object.defineProperty(a,n,{get:function(){var e=getHostRef(this);var r=e?e.t:a;if(!r)return;return r[n]},configurable:true,enumerable:true})}if(i&4096){var o=Object.getOwnPropertyDescriptor(a,n).set;Object.defineProperty(a,n,{set:function(e){var t=this;var i=getHostRef(this);if(o){var a=i.$hostElement$[n];if(!i.l.get(n)&&a){i.l.set(n,a)}o.apply(this,[parsePropertyValue(e,r.Y[n][0])]);setValue(this,n,i.$hostElement$[n],r);return}if(!i)return;var l=function(){var a=i.t[n];if(!i.l.get(n)&&a){i.l.set(n,a)}i.t[n]=parsePropertyValue(e,r.Y[n][0]);setValue(t,n,i.t[n],r)};if(i.t){l()}else{i.p.then((function(){return l()}))}}})}}}else if(t&1&&i&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t;var i=getHostRef(this);return(t=i==null?void 0:i.u)==null?void 0:t.then((function(){var r;return(r=i.t)==null?void 0:r[n].apply(r,e)}))}})}}));if(t&1){var l=new Map;a.attributeChangedCallback=function(e,t,n){var i=this;plt.jmp((function(){var o;var s=l.get(e);if(i.hasOwnProperty(s)){n=i[s];delete i[s]}else if(a.hasOwnProperty(s)&&typeof i[s]==="number"&&i[s]==n){return}else if(s==null){var u=getHostRef(i);var f=u==null?void 0:u.i;if(f&&!(f&8)&&f&128&&n!==t){var c=u.t;var v=(o=r.W)==null?void 0:o[e];v==null?void 0:v.forEach((function(r){if(c[r]!=null){c[r].call(c,n,t,e)}}))}return}var d=Object.getOwnPropertyDescriptor(a,s);if(!d.get||!!d.set){i[s]=n===null&&typeof i[s]==="boolean"?false:n}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=r.W)!=null?i:{}),true),o.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var t=e[0],n=e[1];var i;var a=n[1]||t;l.set(a,t);if(n[0]&512){(i=r.H)==null?void 0:i.push([t,a])}return a})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,l,s,u,f,c,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((r.i&32)===0))return[3,6];r.i|=32;i=t.S;if(!i)return[3,4];a=loadModule(t);if(!(a&&"then"in a))return[3,2];o=uniqueTime();return[4,a];case 1:n=p.sent();o();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.m,"#").concat(r.X,'" was not found'))}if(!n.isProxied){{t.W=n.watchers}proxyComponent(n,t,2);n.isProxied=true}l=createTime("createInstance",t.m);{r.i|=8}try{new n(r)}catch(e){consoleError(e)}{r.i&=~8}{r.i|=128}l();fireConnectedCallback(r.t);return[3,5];case 4:n=e.constructor;s=e.localName;customElements.whenDefined(s).then((function(){return r.i|=128}));p.label=5;case 5:if(n&&n.style){u=void 0;if(typeof n.style==="string"){u=n.style}f=getScopeId(t);if(!styles.has(f)){c=createTime("registerStyles",t.m);registerStyle(f,u,!!(t.i&1));c()}}p.label=6;case 6:v=r.U;d=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e){{safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.i&1)===0){var r=getHostRef(e);var t=r.o;var n=createTime("connectedCallback",t.m);if(!(r.i&1)){r.i|=1;var i=void 0;{i=e.getAttribute(HYDRATE_ID);if(i){if(t.i&1){var a=addStyle(e.shadowRoot,t);e.classList.remove(a+"-h",a+"-s")}else if(t.i&2){var a=getScopeId(t);e["s-sc"]=a}initializeClientHydrate(e,t.m,i,r)}}if(!i){if(t.i&(4|8)){setContentReference(e)}}{var o=e;while(o=o.parentNode||o.host){if(o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){attachToAncestor(r,r.U=o);break}}}if(t.Y){Object.entries(t.Y).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var i=e[t];delete e[t];e[t]=i}}))}{nextTick((function(){return initializeComponent(e,r,t)}))}}else{addHostEventListeners(e,r,t.G);if(r==null?void 0:r.t){fireConnectedCallback(r.t)}else if(r==null?void 0:r.p){r.p.then((function(){return fireConnectedCallback(r.t)}))}}n()}};var setContentReference=function(e){var r=e["s-cr"]=doc.createComment("");r["s-cn"]=true;insertBefore(e,r,e.firstChild)};var disconnectInstance=function(e){{safeCall(e,"disconnectedCallback")}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.i&1)===0){r=getHostRef(e);{if(r.K){r.K.map((function(e){return e()}));r.K=void 0}}if(r==null?void 0:r.t){disconnectInstance(r.t)}else if(r==null?void 0:r.p){r.p.then((function(){return disconnectInstance(r.t)}))}}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;var n=createTime();var i=[];var a=r.exclude||[];var o=win.customElements;var l=doc.head;var s=l.querySelector("meta[charset]");var u=doc.createElement("style");var f=[];var c;var v=true;Object.assign(plt,r);plt._=new URL(r.resourcesUrl||"./",doc.baseURI).href;{plt.i|=2}var d=false;e.map((function(e){e[1].map((function(r){var t;var n={i:r[0],m:r[1],Y:r[2],G:r[3]};if(n.i&4){d=true}{n.Y=r[2]}{n.G=r[3]}{n.H=[]}{n.W=(t=r[4])!=null?t:{}}var l=n.m;var s=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;t.hasRegisteredEventListeners=false;r=t;registerHost(r,n);if(n.i&1){{if(!r.shadowRoot){{r.attachShadow({mode:"open",delegatesFocus:!!(n.i&16)})}}else{if(r.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.m,"! Mode is set to ").concat(r.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return t}r.prototype.connectedCallback=function(){var e=this;var r=getHostRef(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;addHostEventListeners(this,r,n.G)}if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};r.prototype.componentOnReady=function(){return getHostRef(this).p};return r}(HTMLElement);{{patchChildSlotNodes(s.prototype)}}n.S=e[0];if(!a.includes(l)&&!o.get(l)){i.push(l);o.define(l,proxyComponent(s,n,1))}}))}));if(i.length>0){if(d){u.textContent+=SLOT_FB_CSS}if(u.innerHTML.length){u.setAttribute("data-styles","");var p=(t=plt.j)!=null?t:queryNonceMetaTagContent(doc);if(p!=null){u.setAttribute("nonce",p)}l.insertBefore(u,s?s.nextSibling:l.firstChild)}}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var Fragment=function(e,r){return r};var addHostEventListeners=function(e,r,t,n){if(t){t.map((function(t){var n=t[0],i=t[1],a=t[2];var o=getHostListenerTarget(e,n);var l=hostListenerProxy(r,a);var s=hostListenerOpts(n);plt.ael(o,i,l,s);(r.K=r.K||[]).push((function(){return plt.rel(o,i,l,s)}))}))}};var hostListenerProxy=function(e,r){return function(t){var n;try{{if(e.i&256){(n=e.t)==null?void 0:n[r](t)}else{(e.q=e.q||[]).push([r,t])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,r){if(r&4)return doc;if(r&8)return win;if(r&16)return doc.body;return e};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var setNonce=function(e){return plt.j=e};export{Build as B,Env as E,Fragment as F,Host as H,NAMESPACE as N,bootstrapLazy as b,createEvent as c,doc as d,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|