@duetds/components 9.2.0 → 9.2.2
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 +493 -314
- package/lib/cjs/a11y-utils-76311b95.js +20 -0
- package/lib/cjs/{app-globals-8b08f415.js → app-globals-de0a03a8.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +5 -5
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +4 -4
- package/lib/cjs/duet-banner.cjs.entry.js +4 -4
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
- package/lib/cjs/duet-button_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +12 -23
- package/lib/cjs/duet-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip_3.cjs.entry.js +51 -9
- package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +5 -11
- package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
- package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +11 -11
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-header_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-hero.cjs.entry.js +4 -4
- package/lib/cjs/duet-icon.cjs.entry.js +6 -6
- package/lib/cjs/duet-input_2.cjs.entry.js +101 -12
- package/lib/cjs/duet-layout.cjs.entry.js +2 -2
- 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 +24 -6
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar.cjs.entry.js +4 -4
- package/lib/cjs/duet-modal.cjs.entry.js +5 -5
- package/lib/cjs/duet-multiselect.cjs.entry.js +4 -4
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
- package/lib/cjs/duet-pagination_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +7 -7
- package/lib/cjs/duet-radio_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-range-slider.cjs.entry.js +3 -3
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +49 -28
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +3 -3
- package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
- package/lib/cjs/duet-show-more.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
- package/lib/cjs/duet-slideout.cjs.entry.js +11 -11
- package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +23 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
- package/lib/cjs/duet-textarea.cjs.entry.js +7 -7
- package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +25 -6
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +8 -8
- package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
- package/lib/cjs/duet-tray.cjs.entry.js +6 -6
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-79df4fcd.js → errorcodes.utils-79edbcbf.js} +1 -1
- package/lib/cjs/{focus-utils-87585a09.js → focus-utils-2f608f43.js} +1 -1
- package/lib/cjs/{index-290ab697.js → index-2538e92d.js} +1 -1
- package/lib/cjs/{language-utils-3372de6f.js → language-utils-6907a35e.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-8015a7e6.js → slot-utils-eb411e83.js} +1 -1
- package/lib/cjs/{token-utils-ecc7f5a1.js → token-utils-453a4e75.js} +1 -1
- package/lib/cjs/{tokens-1c133754.js → tokens-57e06fe4.js} +25 -25
- package/lib/cjs/{tokens.module-cf303205.js → tokens.module-fcba867f.js} +25 -25
- package/lib/collection/components/duet-action-button/duet-action-button.css +7 -7
- package/lib/collection/components/duet-alert/duet-alert.css +12 -12
- package/lib/collection/components/duet-badge/duet-badge.css +18 -18
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +7 -7
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.css +39 -39
- package/lib/collection/components/duet-callout/duet-callout.css +2 -2
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.css +2 -2
- package/lib/collection/components/duet-card/duet-card.css +6 -6
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +16 -16
- package/lib/collection/components/duet-chip/duet-chip.css +83 -28
- package/lib/collection/components/duet-chip/duet-chip.js +102 -6
- package/lib/collection/components/duet-choice/duet-checkmark.css +6 -6
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.css +50 -50
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +4 -4
- package/lib/collection/components/duet-combobox/duet-combobox.css +2 -2
- package/lib/collection/components/duet-combobox/duet-combobox.js +2 -8
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +1 -1
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +2 -2
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +26 -26
- package/lib/collection/components/duet-divider/duet-divider.css +2 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.css +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +3 -3
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-footer/duet-footer.css +5 -5
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +1 -1
- package/lib/collection/components/duet-header/duet-header.css +42 -42
- package/lib/collection/components/duet-heading/duet-heading.css +3 -3
- package/lib/collection/components/duet-hero/duet-hero.css +13 -13
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-input/duet-input.css +39 -37
- package/lib/collection/components/duet-input/duet-input.js +96 -7
- package/lib/collection/components/duet-label/duet-label.css +1 -1
- package/lib/collection/components/duet-link/duet-link.css +9 -9
- package/lib/collection/components/duet-link/duet-link.js +4 -15
- package/lib/collection/components/duet-list-item/duet-list-item.css +8 -8
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +3 -3
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +3 -3
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +4 -1
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +87 -4
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.css +6 -6
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +24 -24
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.css +9 -9
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +12 -12
- package/lib/collection/components/duet-number-input/duet-number-input.css +5 -5
- package/lib/collection/components/duet-overlay/duet-overlay.css +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.css +1 -1
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +3 -3
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +1 -1
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +5 -5
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +6 -1
- package/lib/collection/components/duet-progress/duet-progress.css +6 -6
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +1 -1
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.css +10 -10
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +21 -21
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +1 -1
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +3 -0
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +38 -16
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.css +18 -18
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-show-more/duet-show-more.css +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
- package/lib/collection/components/duet-slideout/duet-slideout.css +8 -8
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +1 -1
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +2 -2
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +10 -10
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +2 -2
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
- package/lib/collection/components/duet-step/duet-step.css +4 -4
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +9 -9
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +11 -11
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +6 -6
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +13 -9
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +86 -3
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +9 -9
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +27 -27
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
- package/lib/collection/components/duet-table/duet-table.css +30 -30
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.css +27 -27
- package/lib/collection/components/duet-textarea/duet-textarea.js +8 -5
- package/lib/collection/components/duet-toggle/duet-toggle.css +4 -4
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +2 -2
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +11 -11
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +5 -5
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +23 -11
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +88 -4
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +8 -8
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +10 -10
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tray/duet-tray.css +8 -8
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.css +1 -1
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/a11y-utils.js +16 -0
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +4 -4
- package/lib/dist-custom-elements/duet-breadcrumb.js +8 -8
- package/lib/dist-custom-elements/duet-breadcrumbs.js +5 -5
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +5 -5
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +6 -6
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +8 -8
- package/lib/dist-custom-elements/duet-choice.js +6 -6
- package/lib/dist-custom-elements/duet-collapsible.js +5 -5
- package/lib/dist-custom-elements/duet-combobox.js +18 -24
- package/lib/dist-custom-elements/duet-contact-card.js +11 -11
- package/lib/dist-custom-elements/duet-cookie-consent.js +8 -8
- package/lib/dist-custom-elements/duet-date-picker.js +14 -14
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +8 -8
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
- package/lib/dist-custom-elements/duet-footer.js +9 -9
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +11 -11
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +10 -10
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +6 -6
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +8 -8
- package/lib/dist-custom-elements/duet-menu-bar-item.js +27 -7
- package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
- package/lib/dist-custom-elements/duet-modal.js +10 -10
- package/lib/dist-custom-elements/duet-multiselect.js +11 -11
- package/lib/dist-custom-elements/duet-nav.js +2 -2
- package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
- package/lib/dist-custom-elements/duet-notification.js +6 -6
- package/lib/dist-custom-elements/duet-number-input.js +13 -13
- package/lib/dist-custom-elements/duet-overlay.js +1 -1
- package/lib/dist-custom-elements/duet-page-heading.js +5 -5
- package/lib/dist-custom-elements/duet-pagination.js +16 -16
- 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 +7 -7
- package/lib/dist-custom-elements/duet-radio-group.js +8 -8
- package/lib/dist-custom-elements/duet-radio.js +2 -2
- package/lib/dist-custom-elements/duet-range-slider.js +5 -5
- package/lib/dist-custom-elements/duet-range-stepper.js +6 -6
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +4 -4
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
- package/lib/dist-custom-elements/duet-show-more.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +4 -4
- package/lib/dist-custom-elements/duet-slideout-link.js +5 -5
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +7 -7
- package/lib/dist-custom-elements/duet-slideout-panel.js +10 -10
- package/lib/dist-custom-elements/duet-slideout.js +10 -10
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +6 -6
- package/lib/dist-custom-elements/duet-stepper.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +6 -6
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +9 -9
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +27 -7
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +5 -5
- package/lib/dist-custom-elements/duet-submenu-bar.js +10 -10
- package/lib/dist-custom-elements/duet-tab-group.js +20 -20
- package/lib/dist-custom-elements/duet-tab.js +3 -3
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +15 -16
- package/lib/dist-custom-elements/duet-toggle.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +6 -6
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +8 -8
- package/lib/dist-custom-elements/duet-toolbar-item.js +28 -7
- package/lib/dist-custom-elements/duet-toolbar-link.js +5 -5
- package/lib/dist-custom-elements/duet-toolbar.js +4 -4
- package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +8 -8
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload-item.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +22 -22
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-52535b60.js → p-02438b26.js} +12 -12
- package/lib/dist-custom-elements/{p-43f6f1e6.js → p-03f58276.js} +3 -3
- package/lib/dist-custom-elements/{p-0403f6da.js → p-04e23d1d.js} +3 -3
- package/lib/dist-custom-elements/{p-ec4d6856.js → p-06cfa40e.js} +3 -3
- package/lib/dist-custom-elements/{p-c775f5b9.js → p-073ee906.js} +3 -3
- package/lib/dist-custom-elements/{p-dc26d4a2.js → p-0e77715d.js} +25 -25
- package/lib/dist-custom-elements/{p-8b0dee3e.js → p-0f66ee86.js} +2 -2
- package/lib/dist-custom-elements/{p-e8d60da0.js → p-16251bb2.js} +2 -2
- package/lib/dist-custom-elements/{p-4e532364.js → p-18f83d4e.js} +1 -1
- package/lib/dist-custom-elements/{p-b3773c10.js → p-1b7829a1.js} +4 -4
- package/lib/dist-custom-elements/{p-3f00c32a.js → p-2e45b8be.js} +2 -2
- package/lib/dist-custom-elements/{p-bdeb5fba.js → p-3037abd6.js} +107 -18
- package/lib/dist-custom-elements/{p-d6a8840d.js → p-3882c4af.js} +7 -7
- package/lib/dist-custom-elements/{p-cdf8041c.js → p-38f16dbf.js} +8 -8
- package/lib/dist-custom-elements/{p-2e9f301d.js → p-3c10a825.js} +7 -7
- package/lib/dist-custom-elements/{p-6a5c7011.js → p-53247748.js} +43 -22
- package/lib/dist-custom-elements/{p-936d5746.js → p-730cc2f3.js} +3 -3
- package/lib/dist-custom-elements/{p-0bb6686b.js → p-8f05d29d.js} +6 -6
- package/lib/dist-custom-elements/{p-f2f2bcca.js → p-91faf1b9.js} +5 -5
- package/lib/dist-custom-elements/{p-e0913e76.js → p-953d804b.js} +8 -8
- package/lib/dist-custom-elements/{p-20420946.js → p-956bd0ac.js} +6 -6
- package/lib/dist-custom-elements/{p-0fb7a267.js → p-9c93e4d4.js} +2 -2
- package/lib/dist-custom-elements/{p-ecc803b3.js → p-9f1f81a3.js} +3 -3
- package/lib/dist-custom-elements/{p-fac41d14.js → p-9fa78368.js} +1 -1
- package/lib/dist-custom-elements/{p-ae262553.js → p-a96a809b.js} +2 -2
- package/lib/dist-custom-elements/{p-1dbac987.js → p-adc530ba.js} +9 -9
- package/lib/dist-custom-elements/p-b33fb0bd.js +368 -0
- package/lib/dist-custom-elements/{p-8e557451.js → p-b669630b.js} +1 -1
- package/lib/dist-custom-elements/{p-3bc3ac8a.js → p-bdab3956.js} +9 -4
- package/lib/dist-custom-elements/{p-e5f6aaab.js → p-c2b15a3a.js} +2 -2
- package/lib/dist-custom-elements/{p-95971567.js → p-c47b67df.js} +2 -2
- package/lib/dist-custom-elements/{p-33b260ff.js → p-c96e337d.js} +3 -3
- package/lib/dist-custom-elements/{p-785686e3.js → p-ca700701.js} +1 -1
- package/lib/dist-custom-elements/{p-e416ccec.js → p-d53fce96.js} +3 -3
- package/lib/dist-custom-elements/{p-684cca0d.js → p-d9cadd5e.js} +4 -4
- package/lib/dist-custom-elements/{p-e7918410.js → p-dab711d2.js} +6 -6
- package/lib/dist-custom-elements/{p-f055bb61.js → p-e774b5ee.js} +4 -4
- package/lib/dist-custom-elements/{p-6d83f337.js → p-ef70e2c7.js} +6 -6
- package/lib/dist-custom-elements/p-f0cc5629.js +18 -0
- package/lib/dist-custom-elements/{p-e9361277.js → p-f0dad941.js} +8 -19
- package/lib/dist-custom-elements/{p-10f0fddb.js → p-f515b36d.js} +6 -6
- package/lib/{esm/tokens-e0e3d241.js → dist-custom-elements/p-f6000a03.js} +25 -25
- package/lib/dist-custom-elements/{p-550504de.js → p-f7720c96.js} +4 -4
- package/lib/dist-custom-elements/{p-7e6cdbe3.js → p-fe4f9c1d.js} +2 -2
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-e8daf1e2.entry.js → p-0068c16a.entry.js} +1 -1
- package/lib/duet/{p-b5329846.entry.js → p-01c85764.entry.js} +1 -1
- package/lib/duet/{p-ee6bfb1e.entry.js → p-01ed3ab8.entry.js} +1 -1
- package/lib/duet/{p-a696a103.entry.js → p-02b18289.entry.js} +1 -1
- package/lib/duet/{p-af311c80.entry.js → p-03c48743.entry.js} +1 -1
- package/lib/duet/{p-ab5f9de6.entry.js → p-04907e86.entry.js} +1 -1
- package/lib/duet/{p-48836fcc.system.entry.js → p-06519d7d.system.entry.js} +1 -1
- package/lib/duet/{p-0fdbde27.entry.js → p-06aee98f.entry.js} +1 -1
- package/lib/duet/{p-fef50246.system.entry.js → p-093abc6e.system.entry.js} +1 -1
- package/lib/duet/{p-0740edce.system.js → p-0b01e52f.system.js} +1 -1
- package/lib/duet/p-0c7b382c.system.entry.js +4 -0
- package/lib/duet/{p-5a8ca9f7.system.entry.js → p-0dea58fb.system.entry.js} +1 -1
- package/lib/duet/{p-8d6d407f.system.entry.js → p-0ff2881c.system.entry.js} +2 -2
- package/lib/duet/p-1212ac86.entry.js +4 -0
- package/lib/duet/p-135b141e.entry.js +4 -0
- package/lib/duet/p-137a6891.system.entry.js +4 -0
- package/lib/duet/{p-acd9cb61.entry.js → p-14472496.entry.js} +1 -1
- package/lib/duet/p-16e164ca.js +4 -0
- package/lib/duet/{p-357fba0e.system.entry.js → p-180cc0c3.system.entry.js} +1 -1
- package/lib/duet/{p-a2023033.system.entry.js → p-18886cb5.system.entry.js} +1 -1
- package/lib/duet/p-19626704.js +4 -0
- package/lib/duet/{p-b69d6f0f.entry.js → p-21256995.entry.js} +1 -1
- package/lib/duet/{p-6db337db.entry.js → p-2333196e.entry.js} +1 -1
- package/lib/duet/{p-bff7ece1.system.entry.js → p-2a1cc5cd.system.entry.js} +1 -1
- package/lib/duet/p-2cc63a64.system.entry.js +4 -0
- package/lib/duet/{p-c999ea8d.system.entry.js → p-2d1c15ca.system.entry.js} +1 -1
- package/lib/duet/p-2df303e1.system.entry.js +4 -0
- package/lib/duet/{p-a25f447e.system.entry.js → p-2f2615c4.system.entry.js} +1 -1
- package/lib/duet/{p-deaa6b23.system.entry.js → p-2fe4b68d.system.entry.js} +1 -1
- package/lib/duet/{p-44ecb79f.entry.js → p-2fe9627e.entry.js} +1 -1
- package/lib/duet/{p-199d505a.entry.js → p-30a225a6.entry.js} +1 -1
- package/lib/duet/p-3299651e.system.entry.js +4 -0
- package/lib/duet/p-337cab93.entry.js +4 -0
- package/lib/duet/{p-b7efe3b3.system.entry.js → p-33fe1e1b.system.entry.js} +1 -1
- package/lib/duet/p-340a9379.system.entry.js +4 -0
- package/lib/duet/{p-9df917b9.entry.js → p-37f88028.entry.js} +1 -1
- package/lib/duet/{p-da60c177.system.entry.js → p-383de017.system.entry.js} +1 -1
- package/lib/duet/{p-4407ea5a.entry.js → p-385618e3.entry.js} +1 -1
- package/lib/duet/{p-7776b2e3.system.entry.js → p-3881e4aa.system.entry.js} +1 -1
- package/lib/duet/{p-6119ef0a.entry.js → p-39068e23.entry.js} +1 -1
- package/lib/duet/{p-e43ff11c.system.entry.js → p-39e7cae9.system.entry.js} +1 -1
- package/lib/duet/{p-f7845fea.entry.js → p-3a4a65fb.entry.js} +1 -1
- package/lib/duet/p-3cf77ef1.entry.js +4 -0
- package/lib/duet/{p-e95fa292.js → p-3d9a63aa.js} +1 -1
- package/lib/duet/p-41dcd22c.system.js +4 -0
- package/lib/duet/{p-a710fd68.entry.js → p-44360109.entry.js} +1 -1
- package/lib/duet/p-45b7ae86.entry.js +4 -0
- package/lib/duet/{p-912860f0.entry.js → p-45d64382.entry.js} +1 -1
- package/lib/duet/{p-281fa7a1.entry.js → p-48efe08e.entry.js} +1 -1
- package/lib/duet/{p-434bda24.system.entry.js → p-495425cd.system.entry.js} +1 -1
- package/lib/duet/p-4a73a090.system.entry.js +4 -0
- package/lib/duet/p-4b9e589b.entry.js +4 -0
- package/lib/duet/{p-5899db41.system.entry.js → p-4be7217d.system.entry.js} +1 -1
- package/lib/duet/{p-a37a7f5f.system.entry.js → p-4e40f582.system.entry.js} +1 -1
- package/lib/duet/p-4f0a578a.entry.js +4 -0
- package/lib/duet/p-50f10190.system.entry.js +4 -0
- package/lib/duet/{p-bc188b4d.entry.js → p-514b8d88.entry.js} +1 -1
- package/lib/duet/{p-3daaefaf.system.entry.js → p-51687979.system.entry.js} +1 -1
- package/lib/duet/{p-3958bcfa.system.entry.js → p-51a9bdd7.system.entry.js} +1 -1
- package/lib/duet/{p-18e6e7fe.entry.js → p-53094306.entry.js} +1 -1
- package/lib/duet/{p-9fa9db50.entry.js → p-53e5c99d.entry.js} +1 -1
- package/lib/duet/p-543b87b6.system.entry.js +4 -0
- package/lib/duet/{p-07293953.entry.js → p-5cb76db3.entry.js} +1 -1
- package/lib/duet/{p-ba7657d2.system.entry.js → p-5e132e66.system.entry.js} +2 -2
- package/lib/duet/{p-b6e8a587.js → p-5ea98736.js} +1 -1
- package/lib/duet/{p-0c12d3cd.system.js → p-6059af2f.system.js} +1 -1
- package/lib/duet/p-63abaa65.system.entry.js +4 -0
- package/lib/duet/{p-1db515c6.entry.js → p-63faedd1.entry.js} +1 -1
- package/lib/duet/p-6488c9a9.system.entry.js +4 -0
- package/lib/duet/{p-52fc5c3b.entry.js → p-693cf3ec.entry.js} +1 -1
- package/lib/duet/p-6a1545b0.entry.js +4 -0
- package/lib/duet/{p-e3bf718e.system.entry.js → p-6a360967.system.entry.js} +1 -1
- package/lib/duet/{p-2f891fbb.system.js → p-6a95a2e3.system.js} +1 -1
- package/lib/duet/{p-50f8076d.entry.js → p-70337fa5.entry.js} +1 -1
- package/lib/duet/{p-49e6e791.system.entry.js → p-7167c100.system.entry.js} +1 -1
- package/lib/duet/{p-410c17b6.system.entry.js → p-735f7521.system.entry.js} +1 -1
- package/lib/duet/{p-f4b2f2e8.entry.js → p-7a2ea041.entry.js} +1 -1
- package/lib/duet/p-7a3ae8a9.system.js +4 -0
- package/lib/duet/{p-a89f11eb.entry.js → p-7b4f66fb.entry.js} +1 -1
- package/lib/duet/{p-9fdb1552.system.js → p-7e08d07c.system.js} +1 -1
- package/lib/duet/{p-e021729d.entry.js → p-7edd0548.entry.js} +1 -1
- package/lib/duet/p-8104d84d.system.entry.js +4 -0
- package/lib/duet/{p-a4d2aea7.entry.js → p-8168beae.entry.js} +1 -1
- package/lib/duet/{p-77bd02b8.system.entry.js → p-816ae1ce.system.entry.js} +1 -1
- package/lib/duet/p-841a55c5.system.js +4 -0
- package/lib/duet/{p-0ce0c979.system.entry.js → p-8648d2f5.system.entry.js} +1 -1
- package/lib/duet/{p-73f290b1.entry.js → p-86e5ee55.entry.js} +1 -1
- package/lib/duet/p-89b0e135.entry.js +4 -0
- package/lib/duet/p-8b3b5673.js +4 -0
- package/lib/duet/{p-ec809c70.entry.js → p-8bcfbfb1.entry.js} +1 -1
- package/lib/duet/{p-231c6724.system.entry.js → p-8bf78cf6.system.entry.js} +1 -1
- package/lib/duet/{p-7bc8a7ba.entry.js → p-8e5651f6.entry.js} +1 -1
- package/lib/duet/{p-18917d49.entry.js → p-927365ae.entry.js} +1 -1
- package/lib/duet/p-92d06b44.entry.js +4 -0
- package/lib/duet/p-933e6de2.system.entry.js +4 -0
- package/lib/duet/p-94eab61e.system.js +4 -0
- package/lib/duet/{p-1abf7d11.system.entry.js → p-97cb5a51.system.entry.js} +1 -1
- package/lib/duet/{p-39630105.entry.js → p-980e091b.entry.js} +1 -1
- package/lib/duet/{p-11e4c749.system.entry.js → p-9a4af723.system.entry.js} +1 -1
- package/lib/duet/{p-477d4c2a.system.entry.js → p-9a7cacc6.system.entry.js} +1 -1
- package/lib/duet/{p-522e0468.system.entry.js → p-9e924acb.system.entry.js} +1 -1
- package/lib/duet/p-9f30e9ff.system.entry.js +4 -0
- package/lib/duet/{p-77009e02.system.entry.js → p-a044bee8.system.entry.js} +1 -1
- package/lib/duet/p-a0932d90.system.entry.js +4 -0
- package/lib/duet/{p-8483586d.js → p-a18e89e9.js} +1 -1
- package/lib/duet/{p-002c99c1.entry.js → p-a2cb5197.entry.js} +1 -1
- package/lib/duet/{p-5e46b67c.system.entry.js → p-a332b9cc.system.entry.js} +1 -1
- package/lib/duet/p-a4fb0b1b.entry.js +4 -0
- package/lib/duet/{p-66da99e1.entry.js → p-a5cc53ad.entry.js} +1 -1
- package/lib/duet/{p-083353cb.system.entry.js → p-a6c255f0.system.entry.js} +1 -1
- package/lib/duet/{p-c1e4c10f.system.entry.js → p-a736cb85.system.entry.js} +1 -1
- package/lib/duet/{p-b97c6e73.system.entry.js → p-a7d80cb0.system.entry.js} +1 -1
- package/lib/duet/p-a914a79e.system.js +4 -0
- package/lib/duet/{p-d7d9526b.entry.js → p-aa3ba248.entry.js} +1 -1
- package/lib/duet/{p-7ca5fee5.system.entry.js → p-aacbc604.system.entry.js} +1 -1
- package/lib/duet/p-ad01fd48.entry.js +4 -0
- package/lib/duet/p-ad0a4c06.entry.js +4 -0
- package/lib/duet/{p-584be931.entry.js → p-ad260c1f.entry.js} +1 -1
- package/lib/duet/{p-0e2c37c7.system.js → p-ae0d2d3f.system.js} +1 -1
- package/lib/duet/{p-6f1fc369.entry.js → p-aea6cad6.entry.js} +1 -1
- package/lib/duet/{p-554cff02.entry.js → p-b0639678.entry.js} +1 -1
- package/lib/duet/{p-80ebdba0.entry.js → p-b2abb860.entry.js} +1 -1
- package/lib/duet/{p-0bfee3a1.system.entry.js → p-b58b7aa7.system.entry.js} +1 -1
- package/lib/duet/{p-6014d518.system.entry.js → p-b88e5d27.system.entry.js} +1 -1
- package/lib/duet/{p-dd48441b.system.entry.js → p-b92f970e.system.entry.js} +1 -1
- package/lib/duet/{p-4543f9e7.entry.js → p-bc4409b4.entry.js} +1 -1
- package/lib/duet/p-bd071a21.entry.js +4 -0
- package/lib/duet/{p-cb7626f8.entry.js → p-bd1a0a0e.entry.js} +1 -1
- package/lib/duet/{p-372b1880.entry.js → p-bd8f13b7.entry.js} +1 -1
- package/lib/duet/{p-5eda45d0.system.entry.js → p-bf6bf882.system.entry.js} +1 -1
- package/lib/duet/{p-d2b0c35d.entry.js → p-c00af14a.entry.js} +1 -1
- package/lib/duet/{p-82557326.system.entry.js → p-c11fb31b.system.entry.js} +1 -1
- package/lib/duet/p-c35840fb.system.entry.js +4 -0
- package/lib/duet/{p-0660a0ef.system.entry.js → p-c442e17f.system.entry.js} +1 -1
- package/lib/duet/{p-8575f97e.entry.js → p-c485556f.entry.js} +1 -1
- package/lib/duet/{p-546ca397.entry.js → p-c55481ce.entry.js} +1 -1
- package/lib/duet/{p-2a2f7fe9.system.entry.js → p-c806e336.system.entry.js} +1 -1
- package/lib/duet/{p-f00a57c0.entry.js → p-c87ca1be.entry.js} +1 -1
- package/lib/duet/{p-d64e3229.entry.js → p-cc59d81e.entry.js} +1 -1
- package/lib/duet/{p-ab487d80.system.entry.js → p-cd140716.system.entry.js} +2 -2
- package/lib/duet/{p-54d7e599.entry.js → p-cfafdabe.entry.js} +1 -1
- package/lib/duet/p-d189564a.system.entry.js +4 -0
- package/lib/duet/{p-04efd66c.system.entry.js → p-d2215b06.system.entry.js} +2 -2
- package/lib/duet/{p-bd60816f.entry.js → p-d2ea8d68.entry.js} +1 -1
- package/lib/duet/{p-ae8d9deb.js → p-d3828a36.js} +1 -1
- package/lib/duet/{p-210715c1.system.entry.js → p-d5584c75.system.entry.js} +1 -1
- package/lib/duet/{p-18cd13be.system.entry.js → p-d6d5b7d2.system.entry.js} +1 -1
- package/lib/duet/p-d81917ad.system.entry.js +4 -0
- package/lib/duet/{p-6b2a8199.system.entry.js → p-ddfc288e.system.entry.js} +1 -1
- package/lib/duet/{p-61fe999e.system.entry.js → p-de6167cd.system.entry.js} +1 -1
- package/lib/duet/p-df07c70e.entry.js +4 -0
- package/lib/duet/{p-98d9fcfc.entry.js → p-df0d8f48.entry.js} +1 -1
- package/lib/duet/p-dfd8cd60.js +4 -0
- package/lib/duet/{p-c02efffc.system.entry.js → p-e09e8b4e.system.entry.js} +1 -1
- package/lib/duet/{p-0bfe2f53.system.entry.js → p-e13df07a.system.entry.js} +1 -1
- package/lib/duet/{p-04734a93.system.entry.js → p-e388b16f.system.entry.js} +2 -2
- package/lib/duet/p-e4c8559c.system.js +4 -0
- package/lib/duet/{p-54460ce3.system.entry.js → p-e55a165e.system.entry.js} +1 -1
- package/lib/duet/{p-40b33a43.system.entry.js → p-e5beaaac.system.entry.js} +1 -1
- package/lib/duet/{p-be7c8c61.system.entry.js → p-e6e10772.system.entry.js} +1 -1
- package/lib/duet/{p-83dc6278.entry.js → p-e77d679c.entry.js} +1 -1
- package/lib/duet/{p-4cc5c937.system.entry.js → p-e896d463.system.entry.js} +1 -1
- package/lib/duet/{p-17077f57.entry.js → p-eb4c270f.entry.js} +1 -1
- package/lib/duet/{p-ede1eb73.entry.js → p-ee2e3a15.entry.js} +1 -1
- package/lib/duet/{p-2b790430.entry.js → p-efbf770c.entry.js} +1 -1
- package/lib/duet/{p-d9f0722f.entry.js → p-f0574462.entry.js} +1 -1
- package/lib/duet/{p-40ee32f0.system.entry.js → p-f08f4352.system.entry.js} +1 -1
- package/lib/duet/p-f0cc5629.js +4 -0
- package/lib/duet/{p-4451f3eb.entry.js → p-f0da6a88.entry.js} +1 -1
- package/lib/duet/{p-9b70444f.system.entry.js → p-f17df5b6.system.entry.js} +1 -1
- package/lib/duet/{p-06051dcb.entry.js → p-f56b7b97.entry.js} +1 -1
- package/lib/duet/p-f6000a03.js +4 -0
- package/lib/duet/p-f68ba028.entry.js +4 -0
- package/lib/duet/{p-88a370ef.entry.js → p-f943c2af.entry.js} +1 -1
- package/lib/duet/{p-cb833d34.system.entry.js → p-fad2449e.system.entry.js} +1 -1
- package/lib/duet/{p-277fd80e.entry.js → p-fd3301c3.entry.js} +1 -1
- package/lib/duet/{p-58400179.entry.js → p-fd68a0b0.entry.js} +1 -1
- package/lib/duet/{p-0e1e68bc.system.entry.js → p-fdf49d7c.system.entry.js} +1 -1
- package/lib/duet/p-fe803897.system.entry.js +4 -0
- package/lib/esm/a11y-utils-92930863.js +18 -0
- package/lib/esm/{app-globals-01df0e2e.js → app-globals-6da9dd84.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +5 -5
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +4 -4
- package/lib/esm/duet-banner.entry.js +4 -4
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +7 -7
- package/lib/esm/duet-button_2.entry.js +7 -7
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +12 -23
- package/lib/esm/duet-card.entry.js +4 -4
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip_3.entry.js +51 -9
- package/lib/esm/duet-choice_2.entry.js +4 -4
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +6 -12
- package/lib/esm/duet-contact-card.entry.js +5 -5
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +5 -5
- package/lib/esm/duet-divider_2.entry.js +5 -5
- package/lib/esm/duet-editable-table_3.entry.js +11 -11
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +3 -3
- package/lib/esm/duet-header_2.entry.js +5 -5
- package/lib/esm/duet-hero.entry.js +4 -4
- package/lib/esm/duet-icon.entry.js +6 -6
- package/lib/esm/duet-input_2.entry.js +102 -13
- package/lib/esm/duet-layout.entry.js +2 -2
- 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 +24 -6
- package/lib/esm/duet-menu-bar-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar.entry.js +4 -4
- package/lib/esm/duet-modal.entry.js +5 -5
- package/lib/esm/duet-multiselect.entry.js +4 -4
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +6 -6
- package/lib/esm/duet-number-input.entry.js +4 -4
- package/lib/esm/duet-overlay.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +4 -4
- package/lib/esm/duet-pagination_2.entry.js +6 -6
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +7 -7
- package/lib/esm/duet-radio_2.entry.js +3 -3
- package/lib/esm/duet-range-slider.entry.js +3 -3
- package/lib/esm/duet-scrollable_3.entry.js +49 -28
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +3 -3
- package/lib/esm/duet-shaped-image.entry.js +3 -3
- package/lib/esm/duet-show-more.entry.js +4 -4
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +4 -4
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +13 -13
- package/lib/esm/duet-slideout.entry.js +11 -11
- package/lib/esm/duet-step_2.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-item.entry.js +23 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +8 -8
- package/lib/esm/duet-textarea.entry.js +7 -7
- package/lib/esm/duet-toggle.entry.js +2 -2
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +25 -6
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +8 -8
- package/lib/esm/duet-tooltip.entry.js +3 -3
- package/lib/esm/duet-tray.entry.js +6 -6
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +5 -5
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-ac65ace8.js → errorcodes.utils-a305e00b.js} +1 -1
- package/lib/esm/{focus-utils-3e81bca4.js → focus-utils-8f735598.js} +1 -1
- package/lib/esm/{index-5d196317.js → index-e48e0ceb.js} +1 -1
- package/lib/esm/{language-utils-97f0a1bb.js → language-utils-72de56f9.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-4442cc08.js → slot-utils-3d27a887.js} +1 -1
- package/lib/esm/{token-utils-54a23ef5.js → token-utils-3c2fb643.js} +1 -1
- package/lib/{dist-custom-elements/p-d5c7ae62.js → esm/tokens-84fb2357.js} +25 -25
- package/lib/esm/{tokens.module-b5fab24a.js → tokens.module-216c2ae9.js} +25 -25
- package/lib/esm-es5/a11y-utils-92930863.js +4 -0
- package/lib/esm-es5/{app-globals-01df0e2e.js → app-globals-6da9dd84.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +2 -2
- 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 +1 -1
- 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 +2 -2
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-item.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-overlay.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.entry.js +2 -2
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +2 -2
- 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 +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{errorcodes.utils-ac65ace8.js → errorcodes.utils-a305e00b.js} +1 -1
- package/lib/esm-es5/focus-utils-8f735598.js +4 -0
- package/lib/esm-es5/{index-5d196317.js → index-e48e0ceb.js} +1 -1
- package/lib/esm-es5/{language-utils-97f0a1bb.js → language-utils-72de56f9.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-4442cc08.js → slot-utils-3d27a887.js} +1 -1
- package/lib/esm-es5/{token-utils-54a23ef5.js → token-utils-3c2fb643.js} +1 -1
- package/lib/esm-es5/tokens-84fb2357.js +4 -0
- package/lib/esm-es5/tokens.module-216c2ae9.js +4 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +24 -2
- package/lib/types/components/duet-input/duet-input.d.ts +22 -1
- package/lib/types/components/duet-link/duet-link.d.ts +0 -1
- package/lib/types/components/duet-menu-bar-item/duet-menu-bar-item.d.ts +17 -0
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +4 -0
- package/lib/types/components/duet-submenu-bar-item/duet-submenu-bar-item.d.ts +17 -0
- package/lib/types/components/duet-toolbar-item/duet-toolbar-item.d.ts +17 -0
- package/lib/types/components.d.ts +97 -4
- package/lib/types/utils/a11y-utils.d.ts +11 -0
- package/package.json +4 -4
- package/lib/dist-custom-elements/p-43a7f93f.js +0 -327
- package/lib/duet/p-0258c8de.entry.js +0 -4
- package/lib/duet/p-17b64351.system.entry.js +0 -4
- package/lib/duet/p-21ad7b3a.system.entry.js +0 -4
- package/lib/duet/p-27aa38b5.system.entry.js +0 -4
- package/lib/duet/p-29072d2d.system.entry.js +0 -4
- package/lib/duet/p-39dab293.entry.js +0 -4
- package/lib/duet/p-44c19fe9.entry.js +0 -4
- package/lib/duet/p-44d2dbb7.entry.js +0 -4
- package/lib/duet/p-49051d57.entry.js +0 -4
- package/lib/duet/p-4a59b12a.system.entry.js +0 -4
- package/lib/duet/p-4e485c1c.system.entry.js +0 -4
- package/lib/duet/p-50c83774.js +0 -4
- package/lib/duet/p-51675591.system.entry.js +0 -4
- package/lib/duet/p-5839bb7a.system.entry.js +0 -4
- package/lib/duet/p-5c5202c1.system.entry.js +0 -4
- package/lib/duet/p-5e0a2a78.system.entry.js +0 -4
- package/lib/duet/p-681afce7.js +0 -4
- package/lib/duet/p-69bb93ee.system.entry.js +0 -4
- package/lib/duet/p-747505e8.entry.js +0 -4
- package/lib/duet/p-765f640d.js +0 -4
- package/lib/duet/p-86ddbb9f.system.entry.js +0 -4
- package/lib/duet/p-89bc2c76.system.entry.js +0 -4
- package/lib/duet/p-8d7d23ca.entry.js +0 -4
- package/lib/duet/p-8e8ac460.system.entry.js +0 -4
- package/lib/duet/p-907e01e1.entry.js +0 -4
- package/lib/duet/p-90e39ad6.entry.js +0 -4
- package/lib/duet/p-91115d1e.system.js +0 -4
- package/lib/duet/p-995b0ea5.system.entry.js +0 -4
- package/lib/duet/p-9bbdecc7.entry.js +0 -4
- package/lib/duet/p-9f08395f.entry.js +0 -4
- package/lib/duet/p-a4d589fb.system.entry.js +0 -4
- package/lib/duet/p-a623fa7e.entry.js +0 -4
- package/lib/duet/p-b01e1603.entry.js +0 -4
- package/lib/duet/p-b24bbdc0.entry.js +0 -4
- package/lib/duet/p-b5dabfe2.entry.js +0 -4
- package/lib/duet/p-b9ca5786.entry.js +0 -4
- package/lib/duet/p-bb896f73.system.js +0 -4
- package/lib/duet/p-c162e573.system.entry.js +0 -4
- package/lib/duet/p-d19b027a.system.js +0 -4
- package/lib/duet/p-d1c6861d.system.entry.js +0 -4
- package/lib/duet/p-d40e8899.system.js +0 -4
- package/lib/duet/p-d5c7ae62.js +0 -4
- package/lib/duet/p-ed4d1a8b.js +0 -4
- package/lib/duet/p-f3a6603e.system.entry.js +0 -4
- package/lib/duet/p-f5063a7d.system.js +0 -4
- package/lib/esm-es5/focus-utils-3e81bca4.js +0 -4
- package/lib/esm-es5/tokens-e0e3d241.js +0 -4
- package/lib/esm-es5/tokens.module-b5fab24a.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,o,i){function r(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function a(e){try{u(i.next(e))}catch(e){n(e)}}function d(e){try{u(i["throw"](e))}catch(e){n(e)}}function u(e){e.done?o(e.value):r(e.value).then(a,d)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a;return a={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function d(e){return function(t){return u([e,t])}}function u(d){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,d[0]&&(o=0)),o)try{if(i=1,r&&(n=d[0]&2?r["return"]:d[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,d[1])).done)return n;if(r=0,n)d=[d[0]&2,n.value];switch(d[0]){case 0:case 1:n=d;break;case 4:o.label++;return{value:d[1],done:false};case 5:o.label++;r=d[1];d=[0];continue;case 7:d=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){o=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){o.label=d[1];break}if(d[0]===6&&o.label<n[1]){o.label=n[1];n=d;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(d);break}if(n[2])o.ops.pop();o.trys.pop();continue}d=t.call(e,o)}catch(e){d=[6,e];r=0}finally{i=n=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-9fdb1552.system.js","./p-053b71e6.system.js","./p-cc5e6288.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js","./p-0c12d3cd.system.js","./p-d19b027a.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,o,i,r,n,a,d,u,f,s,l,p,m,c,h,g;return{setters:[function(e){t=e.r;o=e.c;i=e.h;r=e.F;n=e.g},function(e){a=e.a},function(e){d=e.D},function(e){u=e.i},function(e){f=e.s;s=e.u},function(e){l=e.a;p=e.g;m=e.c;c=e.d},function(e){h=e.h},function(e){g=e.p}],execute:function(){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:block;flex-shrink:0;width:100%}::slotted([slot=info]){padding:0 28px;margin-top:0;margin-bottom:16px}@media (min-width: 62em){::slotted([slot=info]){padding:0;margin-top:calc(20px - 0.5em);margin-bottom:0}}.duet-footer{display:block;width:100%;padding-top:24px;padding-bottom:16px;margin-top:48px;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(255, 255, 255);text-align:left;background:rgb(0, 41, 77)}.duet-footer.duet-p-0{padding:0 !important}.duet-footer.duet-m-0{margin:0 !important}@media (min-width: 62em){.duet-footer{padding-top:48px;padding-bottom:36px}}.duet-footer.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";background:rgb(198, 12, 48)}.duet-footer a{color:rgb(255, 255, 255);text-decoration:none}@media (min-width: 62em){.duet-footer a{border-radius:4px}}.duet-footer a:focus{outline:0}:host(.user-is-tabbing) .duet-footer a: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 a:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-footer-wrapper{position:relative;margin:0 auto}@media (min-width: 62em){.duet-footer-wrapper{padding:0 72px 0 48px}}@media (min-width: 76.25em){.duet-footer-wrapper{max-width:1110px;padding:0 20px 0 0}}.duet-footer-top{width:100%}@media (min-width: 62em){.duet-footer-top{display:flex;flex-direction:row;align-items:center}.duet-footer-top.duet-has-info{align-items:flex-start}}.duet-footer-top .footer-top-logo{flex-grow:1}.duet-footer-top .footer-top-right-container{flex-grow:1}@media (min-width: 62em){.duet-footer-top .footer-top-right-container{text-align:right}}.duet-footer-top .footer-top-items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-left:28px}@media (min-width: 62em){.duet-footer-top .footer-top-items{flex-direction:row;justify-content:flex-end}}duet-logo{margin-bottom:24px;margin-left:16px !important}@media (min-width: 62em){duet-logo{margin-bottom:0;margin-left:0 !important}}.duet-footer-link{padding:16px !important;display:flex;flex-direction:row;align-items:center;width:100%;font-weight:600;border-bottom:1px solid rgba(255, 255, 255, 0.2);transition:background-color 300ms ease}@media (min-width: 36em){.duet-footer-link{padding-right:20px !important;padding-left:28px !important}}@media (min-width: 62em){.duet-footer-link{width:auto;min-width:0;padding-right:0 !important;padding-left:0 !important;border:0}}.duet-footer-link:first-of-type{margin-top:20px;border-top:1px solid rgba(255, 255, 255, 0.2)}@media (min-width: 62em){.duet-footer-link:first-of-type{margin:0;border:0}}.duet-footer-link span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duet-footer-link:hover{background:rgba(0, 0, 0, 0.1)}@media (min-width: 62em){.duet-footer-link:hover{background:transparent}}.duet-footer-menu{padding:20px !important;display:flex;gap:2rem;padding-left:28px !important;font-size:0.875rem}@media (min-width: 36em){.duet-footer-menu{padding:28px !important}}@media (min-width: 62em){.duet-footer-menu{padding-right:0 !important;padding-left:8px !important}}.duet-footer-menu a{display:inline-block;text-decoration:none;overflow-wrap:break-word}.duet-footer-menu a:hover,.duet-footer-menu a:focus{text-decoration:underline}.duet-footer-menu a:hover .duet-footer-divider,.duet-footer-menu a:focus .duet-footer-divider{text-decoration:none}.duet-footer-menu .duet-footer-divider{display:inline-block;margin:0 8px}.duet-footer-menu .duet-footer-divider-copyright{display:none}.duet-footer-menu .duet-footer-menu-links{display:block;flex:1}@media (min-width: 62em){.duet-footer-menu .duet-footer-menu-links{text-align:right}}.duet-footer-menu a:last-of-type .duet-footer-divider{display:none}.duet-footer-copyright{display:none;font-size:0.875rem;color:rgb(255, 255, 255)}@media (min-width: 62em){.duet-footer-copyright{display:inline}}.duet-footer-copyright.duet-footer-copyright-mobile{display:block;padding-top:0.5rem;padding-bottom:1.25rem;padding-left:28px;text-align:left}@media (min-width: 62em){.duet-footer-copyright.duet-footer-copyright-mobile{display:none}}.duet-footer-simple{padding:0;margin:0;margin-top:16px;color:rgb(0, 41, 77);background:transparent !important;border-top:1px solid rgb(225, 227, 230)}.duet-footer-simple .duet-footer-wrapper{max-width:100%;padding:0 20px;margin:0}@media (min-width: 62em){.duet-footer-simple .duet-footer-wrapper{padding:0 36px}}@media (min-width: 106.25em){.duet-footer-simple .duet-footer-wrapper{padding:0 48px}}.duet-footer-simple .duet-footer-copyright,.duet-footer-simple .duet-footer-menu a{color:rgb(0, 41, 77)}.duet-footer-simple .duet-footer-menu{padding:20px 0 !important}.duet-footer-simple .duet-footer-copyright-mobile{padding-left:0}.duet-footer-simple.duet-theme-turva{color:rgb(23, 28, 58);border-color:rgb(228, 228, 230)}.duet-footer-simple.duet-theme-turva .duet-footer-copyright,.duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:rgb(23, 28, 58)}.duet-footer-external{display:inline-block;margin-left:4px;color:rgb(0, 119, 179)}.duet-theme-turva .duet-footer-external{color:rgb(255, 255, 255)}.duet-footer-simple.duet-theme-turva .duet-footer-external{color:rgb(198, 12, 48)}';var x=b;var v={fi:{lahi:"© LähiTapiola",turva:"© Turva"},sv:{lahi:"© LokalTapiola",turva:"© Turva"},en:{lahi:"© LocalTapiola",turva:"© Turva"}};var y=function(e,t){return{component:"duet-footer",data:t,originalEvent:e}};var w=e("duet_footer",function(){function e(e){var i=this;t(this,e);this.duetChange=o(this,"duetChange",3);this.duetLogoClick=o(this,"duetLogoClick",7);this.duetMenuClick=o(this,"duetMenuClick",7);this.duetItemClick=o(this,"duetItemClick",7);this.duetAnalytics=o(this,"duetAnalytics",7);this.duetEvent=o(this,"duetEvent",7);this.handleClick=function(e){if(e.data.analyticsId){i.duetAnalytics.emit({component:"duet-footer",analyticsId:e.data.analyticsId})}i.duetChange.emit(e)};this.handleLogoClick=function(e){var t=y(e,{href:i.logoHref,label:"logo"});i.duetLogoClick.emit(t);i.handleClick(t)};this.handleMenuClick=function(e,t){var o=y(e,t);i.handleClick(o);i.duetMenuClick.emit(o)};this.handleItemClick=function(e,t){var o=y(e,t);i.handleClick(o);i.duetItemClick.emit(o)};this.emitDuetEvent=function(e,t){i.duetEvent.emit({component:"duet-footer",data:t,originalEvent:e})};this.processedMainItem=null;this.processedItems=null;this.processedMenu=null;this.theme="";this.variation="default";this.margin="auto";this.logoHref="/";this.language=l();this.items=undefined;this.accessibleLabel=undefined;this.accessibleLabelExternalDefaults=d;this.accessibleLabelExternal=p(this.accessibleLabelExternalDefaults);this.menu=undefined}e.prototype.componentWillLoad=function(){u(this);this.refresh();this.hasInfoSlot=h(this.element,"info")};e.prototype.connectedCallback=function(){m(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"});f(this)};e.prototype.disconnectedCallback=function(){c(this);s(this)};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=g(this.items);this.processedMenu=g(this.menu);return[2]}))}))};e.prototype.render=function(){var e=this;var t=p(v,this.language);var o=this.theme==="turva"?t.turva:t.lahi;return i("footer",{key:"75ce11161efe6855a6a5b9ea3ac69f765607dc76",class:{"duet-footer":true,"duet-m-0":this.margin==="none","duet-theme-turva":this.theme==="turva","duet-footer-simple":this.variation==="simple"},"aria-label":this.accessibleLabel},i("div",{key:"23c753fba06a5ed4b0de30765fce8e919e291f05",class:"duet-footer-wrapper"},this.variation!=="simple"&&i("div",{key:"d7e9578069a59e30d214706e33de6956ffe2cf3a",class:{"duet-footer-top":true,"duet-has-info":this.hasInfoSlot},part:"top"},i("div",{key:"8ad9d1ea07a57748f5ebdd059988938a21267931",class:"footer-top-logo"},i("duet-logo",{key:"25ea3935ef88a5d3c1e42e9fdf64872588002a9e",href:this.logoHref,onClick:this.handleLogoClick,size:"large",inverse:true,language:this.language,theme:this.theme})),i("div",{key:"2006d743a6ed3d7488253961c4340f66496823a4",class:"footer-top-right-container"},i("slot",{key:"d327dab130eabe791f9ae1018e5c4e9561ff565b",name:"info"}),i("div",{key:"ad543c47ee44aec916299a4bd621fbdfb8b926bb",class:"footer-top-items"},this.processedItems&&this.processedItems.map((function(t,o){var n,a,d,u,f,s;return i(r,null,o>0&&i("duet-spacer",{size:"x-large",direction:"horizontal"}),i("duet-button",{theme:e.theme,id:t.id,class:"duet-footer-link",variation:"plain",margin:"none",fixed:true,negative:true,url:t.href,external:t.external,icon:((n=t.href)===null||n===void 0?void 0:n.startsWith("tel:"))?"form-tel":((a=t.href)===null||a===void 0?void 0:a.startsWith("mailto:"))?"navigation-message":"navigation-arrow-right","icon-right":!((d=t.href)===null||d===void 0?void 0:d.startsWith("tel:"))&&!((u=t.href)===null||u===void 0?void 0:u.startsWith("mailto:")),"icon-size":((f=t.href)===null||f===void 0?void 0:f.startsWith("tel:"))||((s=t.href)===null||s===void 0?void 0:s.startsWith("mailto:"))?"medium":"medium-small",onClick:function(o){return e.handleItemClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label))}))))),i("slot",{key:"290581e40b6f214b20375b6aaa687ef30d2f8277",name:"extra"}),i("p",{key:"9ed4238b3f37a84cc206e43f67b0c72fea3810ab",class:"duet-footer-menu",part:"menu"},i("span",{key:"388d43bba3aef1e0a88f65a2416217c6d76a236a",class:"duet-footer-copyright"},"".concat(o," ").concat((new Date).getFullYear())),i("span",{key:"e7f66b6f310a9770ae74eb507f09824c8c3fff1c",class:"duet-footer-menu-links"},this.processedMenu&&i(r,{key:"f5e52871d8d27400126ee19b4720a45598d561cf"},this.processedMenu.map((function(t){return i("a",{href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:function(o){return e.handleMenuClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label,t.external&&i(r,null,i("duet-visually-hidden",null,", ",e.accessibleLabelExternal),i("span",{class:"duet-footer-external"},i("duet-icon",{icon:a.svg,size:"xx-small",margin:"none",color:"currentColor"}))),i("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"))}))))),i("p",{key:"f8bd86bfb9707786b07f5e49ac957a0c0f3c0380",class:"duet-footer-copyright duet-footer-copyright-mobile"},"".concat(o," ").concat((new Date).getFullYear()))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:["refresh"],items:["refresh"]}},enumerable:false,configurable:true});return e}());w.style=x}}}));
|
|
4
|
+
*/System.register(["./p-7e08d07c.system.js","./p-053b71e6.system.js","./p-cc5e6288.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js","./p-6059af2f.system.js","./p-841a55c5.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,o,i,r,n,a,d,u,f,s,l,p,m,c,h,g;return{setters:[function(e){t=e.r;o=e.c;i=e.h;r=e.F;n=e.g},function(e){a=e.a},function(e){d=e.D},function(e){u=e.i},function(e){f=e.s;s=e.u},function(e){l=e.a;p=e.g;m=e.c;c=e.d},function(e){h=e.h},function(e){g=e.p}],execute:function(){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:block;flex-shrink:0;width:100%}::slotted([slot=info]){padding:0 28px;margin-top:0;margin-bottom:16px}@media (min-width: 62em){::slotted([slot=info]){padding:0;margin-top:calc(20px - 0.5em);margin-bottom:0}}.duet-footer{display:block;width:100%;padding-top:24px;padding-bottom:16px;margin-top:48px;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(255, 255, 255);text-align:left;background:rgb(8, 42, 77)}.duet-footer.duet-p-0{padding:0 !important}.duet-footer.duet-m-0{margin:0 !important}@media (min-width: 62em){.duet-footer{padding-top:48px;padding-bottom:36px}}.duet-footer.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";background:rgb(198, 12, 48)}.duet-footer a{color:rgb(255, 255, 255);text-decoration:none}@media (min-width: 62em){.duet-footer a{border-radius:4px}}.duet-footer a:focus{outline:0}:host(.user-is-tabbing) .duet-footer a: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 a:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-footer-wrapper{position:relative;margin:0 auto}@media (min-width: 62em){.duet-footer-wrapper{padding:0 72px 0 48px}}@media (min-width: 76.25em){.duet-footer-wrapper{max-width:1110px;padding:0 20px 0 0}}.duet-footer-top{width:100%}@media (min-width: 62em){.duet-footer-top{display:flex;flex-direction:row;align-items:center}.duet-footer-top.duet-has-info{align-items:flex-start}}.duet-footer-top .footer-top-logo{flex-grow:1}.duet-footer-top .footer-top-right-container{flex-grow:1}@media (min-width: 62em){.duet-footer-top .footer-top-right-container{text-align:right}}.duet-footer-top .footer-top-items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-left:28px}@media (min-width: 62em){.duet-footer-top .footer-top-items{flex-direction:row;justify-content:flex-end}}duet-logo{margin-bottom:24px;margin-left:16px !important}@media (min-width: 62em){duet-logo{margin-bottom:0;margin-left:0 !important}}.duet-footer-link{padding:16px !important;display:flex;flex-direction:row;align-items:center;width:100%;font-weight:600;border-bottom:1px solid rgba(255, 255, 255, 0.2);transition:background-color 300ms ease}@media (min-width: 36em){.duet-footer-link{padding-right:20px !important;padding-left:28px !important}}@media (min-width: 62em){.duet-footer-link{width:auto;min-width:0;padding-right:0 !important;padding-left:0 !important;border:0}}.duet-footer-link:first-of-type{margin-top:20px;border-top:1px solid rgba(255, 255, 255, 0.2)}@media (min-width: 62em){.duet-footer-link:first-of-type{margin:0;border:0}}.duet-footer-link span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duet-footer-link:hover{background:rgba(0, 0, 0, 0.1)}@media (min-width: 62em){.duet-footer-link:hover{background:transparent}}.duet-footer-menu{padding:20px !important;display:flex;gap:2rem;padding-left:28px !important;font-size:0.875rem}@media (min-width: 36em){.duet-footer-menu{padding:28px !important}}@media (min-width: 62em){.duet-footer-menu{padding-right:0 !important;padding-left:8px !important}}.duet-footer-menu a{display:inline-block;text-decoration:none;overflow-wrap:break-word}.duet-footer-menu a:hover,.duet-footer-menu a:focus{text-decoration:underline}.duet-footer-menu a:hover .duet-footer-divider,.duet-footer-menu a:focus .duet-footer-divider{text-decoration:none}.duet-footer-menu .duet-footer-divider{display:inline-block;margin:0 8px}.duet-footer-menu .duet-footer-divider-copyright{display:none}.duet-footer-menu .duet-footer-menu-links{display:block;flex:1}@media (min-width: 62em){.duet-footer-menu .duet-footer-menu-links{text-align:right}}.duet-footer-menu a:last-of-type .duet-footer-divider{display:none}.duet-footer-copyright{display:none;font-size:0.875rem;color:rgb(255, 255, 255)}@media (min-width: 62em){.duet-footer-copyright{display:inline}}.duet-footer-copyright.duet-footer-copyright-mobile{display:block;padding-top:0.5rem;padding-bottom:1.25rem;padding-left:28px;text-align:left}@media (min-width: 62em){.duet-footer-copyright.duet-footer-copyright-mobile{display:none}}.duet-footer-simple{padding:0;margin:0;margin-top:16px;color:rgb(8, 42, 77);background:transparent !important;border-top:1px solid rgb(212, 223, 229)}.duet-footer-simple .duet-footer-wrapper{max-width:100%;padding:0 20px;margin:0}@media (min-width: 62em){.duet-footer-simple .duet-footer-wrapper{padding:0 36px}}@media (min-width: 106.25em){.duet-footer-simple .duet-footer-wrapper{padding:0 48px}}.duet-footer-simple .duet-footer-copyright,.duet-footer-simple .duet-footer-menu a{color:rgb(8, 42, 77)}.duet-footer-simple .duet-footer-menu{padding:20px 0 !important}.duet-footer-simple .duet-footer-copyright-mobile{padding-left:0}.duet-footer-simple.duet-theme-turva{color:rgb(23, 28, 58);border-color:rgb(222, 224, 228)}.duet-footer-simple.duet-theme-turva .duet-footer-copyright,.duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:rgb(23, 28, 58)}.duet-footer-external{display:inline-block;margin-left:4px;color:rgb(0, 119, 179)}.duet-theme-turva .duet-footer-external{color:rgb(255, 255, 255)}.duet-footer-simple.duet-theme-turva .duet-footer-external{color:rgb(198, 12, 48)}';var x=b;var v={fi:{lahi:"© LähiTapiola",turva:"© Turva"},sv:{lahi:"© LokalTapiola",turva:"© Turva"},en:{lahi:"© LocalTapiola",turva:"© Turva"}};var y=function(e,t){return{component:"duet-footer",data:t,originalEvent:e}};var w=e("duet_footer",function(){function e(e){var i=this;t(this,e);this.duetChange=o(this,"duetChange",3);this.duetLogoClick=o(this,"duetLogoClick",7);this.duetMenuClick=o(this,"duetMenuClick",7);this.duetItemClick=o(this,"duetItemClick",7);this.duetAnalytics=o(this,"duetAnalytics",7);this.duetEvent=o(this,"duetEvent",7);this.handleClick=function(e){if(e.data.analyticsId){i.duetAnalytics.emit({component:"duet-footer",analyticsId:e.data.analyticsId})}i.duetChange.emit(e)};this.handleLogoClick=function(e){var t=y(e,{href:i.logoHref,label:"logo"});i.duetLogoClick.emit(t);i.handleClick(t)};this.handleMenuClick=function(e,t){var o=y(e,t);i.handleClick(o);i.duetMenuClick.emit(o)};this.handleItemClick=function(e,t){var o=y(e,t);i.handleClick(o);i.duetItemClick.emit(o)};this.emitDuetEvent=function(e,t){i.duetEvent.emit({component:"duet-footer",data:t,originalEvent:e})};this.processedMainItem=null;this.processedItems=null;this.processedMenu=null;this.theme="";this.variation="default";this.margin="auto";this.logoHref="/";this.language=l();this.items=undefined;this.accessibleLabel=undefined;this.accessibleLabelExternalDefaults=d;this.accessibleLabelExternal=p(this.accessibleLabelExternalDefaults);this.menu=undefined}e.prototype.componentWillLoad=function(){u(this);this.refresh();this.hasInfoSlot=h(this.element,"info")};e.prototype.connectedCallback=function(){m(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"});f(this)};e.prototype.disconnectedCallback=function(){c(this);s(this)};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=g(this.items);this.processedMenu=g(this.menu);return[2]}))}))};e.prototype.render=function(){var e=this;var t=p(v,this.language);var o=this.theme==="turva"?t.turva:t.lahi;return i("footer",{key:"75ce11161efe6855a6a5b9ea3ac69f765607dc76",class:{"duet-footer":true,"duet-m-0":this.margin==="none","duet-theme-turva":this.theme==="turva","duet-footer-simple":this.variation==="simple"},"aria-label":this.accessibleLabel},i("div",{key:"23c753fba06a5ed4b0de30765fce8e919e291f05",class:"duet-footer-wrapper"},this.variation!=="simple"&&i("div",{key:"d7e9578069a59e30d214706e33de6956ffe2cf3a",class:{"duet-footer-top":true,"duet-has-info":this.hasInfoSlot},part:"top"},i("div",{key:"8ad9d1ea07a57748f5ebdd059988938a21267931",class:"footer-top-logo"},i("duet-logo",{key:"25ea3935ef88a5d3c1e42e9fdf64872588002a9e",href:this.logoHref,onClick:this.handleLogoClick,size:"large",inverse:true,language:this.language,theme:this.theme})),i("div",{key:"2006d743a6ed3d7488253961c4340f66496823a4",class:"footer-top-right-container"},i("slot",{key:"d327dab130eabe791f9ae1018e5c4e9561ff565b",name:"info"}),i("div",{key:"ad543c47ee44aec916299a4bd621fbdfb8b926bb",class:"footer-top-items"},this.processedItems&&this.processedItems.map((function(t,o){var n,a,d,u,f,s;return i(r,null,o>0&&i("duet-spacer",{size:"x-large",direction:"horizontal"}),i("duet-button",{theme:e.theme,id:t.id,class:"duet-footer-link",variation:"plain",margin:"none",fixed:true,negative:true,url:t.href,external:t.external,icon:((n=t.href)===null||n===void 0?void 0:n.startsWith("tel:"))?"form-tel":((a=t.href)===null||a===void 0?void 0:a.startsWith("mailto:"))?"navigation-message":"navigation-arrow-right","icon-right":!((d=t.href)===null||d===void 0?void 0:d.startsWith("tel:"))&&!((u=t.href)===null||u===void 0?void 0:u.startsWith("mailto:")),"icon-size":((f=t.href)===null||f===void 0?void 0:f.startsWith("tel:"))||((s=t.href)===null||s===void 0?void 0:s.startsWith("mailto:"))?"medium":"medium-small",onClick:function(o){return e.handleItemClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label))}))))),i("slot",{key:"290581e40b6f214b20375b6aaa687ef30d2f8277",name:"extra"}),i("p",{key:"9ed4238b3f37a84cc206e43f67b0c72fea3810ab",class:"duet-footer-menu",part:"menu"},i("span",{key:"388d43bba3aef1e0a88f65a2416217c6d76a236a",class:"duet-footer-copyright"},"".concat(o," ").concat((new Date).getFullYear())),i("span",{key:"e7f66b6f310a9770ae74eb507f09824c8c3fff1c",class:"duet-footer-menu-links"},this.processedMenu&&i(r,{key:"f5e52871d8d27400126ee19b4720a45598d561cf"},this.processedMenu.map((function(t){return i("a",{href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:function(o){return e.handleMenuClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label,t.external&&i(r,null,i("duet-visually-hidden",null,", ",e.accessibleLabelExternal),i("span",{class:"duet-footer-external"},i("duet-icon",{icon:a.svg,size:"xx-small",margin:"none",color:"currentColor"}))),i("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"))}))))),i("p",{key:"f8bd86bfb9707786b07f5e49ac957a0c0f3c0380",class:"duet-footer-copyright duet-footer-copyright-mobile"},"".concat(o," ").concat((new Date).getFullYear()))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:["refresh"],items:["refresh"]}},enumerable:false,configurable:true});return e}());w.style=x}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-94eab61e.system.js"],(function(r){"use strict";var n,t,e,u,i,a,f,o,v,c;return{setters:[function(r){n=r.m;t=r.a;e=r.b;u=r.c;i=r.d;a=r.e;f=r.f;o=r.g;v=r.h;c=r.t}],execute:function(){r({c:p,d:O,g:j,r:w,s:S});var s=["turva"];function d(r){var n=r.includes("-");var t=r.includes(" ")||r.includes("_");var e=r.charAt(0)==="-";return n&&!t&&!e}function l(r){if(r===void 0){r=""}return"".concat(r.charAt(0).toUpperCase()).concat(r.slice(1))}function x(r){if(r===void 0){r=""}return"".concat(r.charAt(0).toLowerCase()).concat(r.slice(1))}function m(r){if(r===void 0){r=""}var n=r.split("-");n.forEach((function(r,t){n[t]=l(r)}));return n.join("")}function g(r){if(r===void 0){r=""}if(s.includes(r.toLowerCase())){return r.toLowerCase()}return""}function p(r){return r.charAt(0).toUpperCase()+r.slice(1)}function b(r,n){if(n===void 0){n=""}return n.indexOf(p(r))===0||n.indexOf(r)===0}function I(r,n){if(n===void 0){n=""}if(n&&!d(n)&&!b(r,n)){return"".concat(r).concat(l(n))}return n}function h(r,n){var t=g(n).length;if(t&&r.indexOf(n)===-1){return"".concat(r).concat(l(n))}return r}function j(r,n){if(n===void 0){n=""}if(!r){return undefined}var t=y(r);var e=y(r,n);var u=c[e];if(!u){u=c[t]}return u}function y(r,n){if(r===void 0){r=""}if(n===void 0){n=""}var t=r;var e=d(r);if(e){t=m(t)}t=I("color",t);t=h(t,n);t=x(t);return t}function M(r,n){if(!n){return undefined}var t=n;var e=d(n);if(e){t=m(t)}t=I(r,t);t=x(t);try{return c[t]}catch(r){return undefined}}function O(r){return M("shadow",r)}function w(r,n){if(!r||n!==0&&!n){return undefined}var t=r.split(",");var e=parseInt(t[0].slice(4)),u=parseInt(t[1]),i=parseInt(t[2]);return"rgba(".concat(e,",").concat(u,",").concat(i,",").concat(n,")")}function S(r,n){var t=r.split(","),e=n<0?0:255,u=n<0?n*-1:n;var i=parseInt(t[0].slice(4)),a=parseInt(t[1]),f=parseInt(t[2]);i=Math.round((e-i)*u)+i;a=Math.round((e-a)*u)+a;f=Math.round((e-f)*u)+f;i=i<0?0:i;i=i>255?255:i;a=a<0?0:a;a=a>255?255:a;f=f<0?0:f;f=f>255?255:f;return"rgb(".concat(i,",").concat(a,",").concat(f,")")}var _=function(r){return r.substring(1,r.length-1)};var k=r("a",{"xxx-small":_(v),"xx-small":_(n),"x-small":_(t),small:_(e),medium:_(u),large:_(i),"x-large":_(a),"xx-large":_(f),"xxx-large":_(o)});var q=r("b",Object.keys(k).filter((function(r){return r.indexOf("x-small")!==-1})));Object.keys(k).filter((function(r){return!q.includes(r)}))}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as t,H as a,g as i}from"./p-
|
|
4
|
+
import{r as e,h as t,H as a,g as i}from"./p-d3828a36.js";import{i as o}from"./p-aaa7a7bd.js";const n=class{constructor(t){e(this,t),this.accessibleLabel=void 0,this.accessibleControls=void 0,this.accessiblePopup="false",this.accessibleActiveDescendant=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleExpanded=void 0,this.accessiblePressed=void 0,this.theme="",this.icon=void 0}componentWillLoad(){o(this)}async setFocus(e){this.nativeButton&&this.nativeButton.focus(e)}render(){return t(a,{key:"ffc0fed54b5acda7a76211091c8c502a8c888937",role:"listitem",onfocus:()=>this.setFocus()},t("button",{key:"10bd0d58fcd801865270e6c4ad8afdd11b239ca8",ref:e=>this.nativeButton=e,class:{"duet-menu-bar-button":!0,"duet-theme-turva":"turva"===this.theme},"aria-controls":this.accessibleControls,"aria-label":this.accessibleLabel,"aria-expanded":null!=this.accessibleExpanded?this.accessibleExpanded.toString():void 0,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-pressed":null!=this.accessiblePressed?this.accessiblePressed.toString():void 0,"aria-haspopup":null!=this.accessiblePopup?this.accessiblePopup.toString():void 0},this.icon&&t("duet-icon",{key:"0351584d8f7f2a8341daf1423e8f199af10ab67f",class:"menu-bar-button-icon",theme:this.theme,size:"auto",name:this.icon,margin:"none",color:"currentColor"}),t("slot",{key:"804d1535f44a67308422421bd17efd7c22dd5717"})))}get element(){return i(this)}};n.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;height:100%}.duet-menu-bar-button{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;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:inherit;color:inherit;text-align:center;text-decoration:none;cursor:pointer}.duet-menu-bar-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-button:focus,.duet-menu-bar-button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-button .menu-bar-button-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-button .menu-bar-button-icon{width:16px;height:16px}}.duet-menu-bar-button.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"}@media (min-width: 62em){.duet-menu-bar-button{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-button{padding:0 28px}}@media (min-width: 62em){.duet-menu-bar-button:hover{color:rgb(0, 119, 179)}.duet-menu-bar-button:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';export{n as duet_menu_bar_button}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function a(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function r(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?e(t.value):a(t.value).then(r,o)}u((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,r;return r={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(i){return u([t,i])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(e=0)),e)try{if(n=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;a=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];a=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-9fdb1552.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-34d7dd10.system.js","./p-0c12d3cd.system.js","./p-98636086.system.js","./p-2f891fbb.system.js","./p-91115d1e.system.js"],(function(t){"use strict";var i,e,n,a,s,r,o,u,h,c,d,l,f,p,b,g,m,v,y,k,_,w,x;return{setters:[function(t){i=t.r;e=t.c;n=t.h;a=t.F;s=t.H;r=t.g},function(t){o=t.i},function(t){u=t.c},function(t){h=t.d},function(t){c=t.k;d=t.l;l=t.d;f=t.b;p=t.a;b=t.c;g=t.m;m=t.n},function(t){v=t.g;y=t.c;k=t.d},function(t){_=t.p},function(t){w=t.b;x=t.a},function(){}],execute:function(){var S=function(t,i,e){if(t*2>i/e){return false}return true};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;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(0, 41, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{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)}';var M=j;var C=t("duet_pagination",function(){function t(t){var n=this;i(this,t);this.duetPageChange=e(this,"duetPageChange",3);this.listId=u("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){n.matchesCompactBreakpoint=w.includes(n.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,i){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:if(!(t===0))return[3,1];this.current=1;return[3,4];case 1:if(!(t>this.totalPages))return[3,2];this.current=this.totalPages;return[3,4];case 2:if(!(i!==t))return[3,4];e=Math.ceil(t/this.visibleItems)-1;if(!(e!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=e;return[4,this.setFocus()];case 3:n.sent();n.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var e=Number(i||n.current);n.duetPageChange.emit({component:"duet-pagination",from:e*n.take,to:e*n.take+n.take,current:e,take:n.take,type:"page",originalEvent:t})};this.getEnteredNumber=h((function(t){n.emitPageEvent(t,n.numbersStore);n.current=Number(n.numbersStore);n.numbersStore="";n.duetPageChange.emit({component:"duet-pagination",from:n.current*n.take,to:n.current*n.take+n.take,current:n.current,take:n.take,type:"jump",originalEvent:t})}),500);this.processedPageLinks=null;this.numbersStore="";this.matchesCompactBreakpoint=false;this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.disabled=false;this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",select_label:"Total pages {0}, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",select_label:"Sivuja yhteensä {0}, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Paginering, välj en siffra för att hoppa till en sida",select_label:"Totalt antal sidor {0}, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=v(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.compactBreakpoint="x-small";this.ariaControls="";this.current=1;this.pageLinks=undefined}t.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};t.prototype.watchStateHandler=function(t,i){return this.actionChain(t,i)};t.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();o(this);this.refresh()};t.prototype.componentDidLoad=function(){this.firstRenderDone=true};t.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};t.prototype.componentDidRender=function(){if(this.firstRenderDone&&!this.processedPageLinks){this.setFocus()}};t.prototype.connectedCallback=function(){var t=this.compactBreakpoint==="none"?"all":x[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",h(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);y(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;k(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=_(this.pageLinks);return[2]}))}))};t.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};t.prototype.onMouseHandler=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.disabled){return[2]}if(!this.processedPageLinks){t.preventDefault();t.stopPropagation();this.current=this.current+i}this.emitPageEvent(t);return[2]}))}))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(e){if(this.disabled){return[2]}i=this.current;if(l(t)||f(t)){i--}if(p(t)||b(t)){i++}if(c(t)){if(i<=this.totalPages){this.current=i;if(this.processedPageLinks){this.emitPageEvent(t,i-1);window.open(this.processedPageLinks[i-1],"_self","")}else{this.emitPageEvent(t)}}}if(d(t)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+t.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(t)}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(e){switch(e.label){case 0:t=this.nativeNav.querySelector("[data-id='".concat(this.current,"']"));i=t;if(!i)return[3,2];return[4,t.setFocus()];case 1:i=e.sent();e.label=2;case 2:i;return[2]}}))}))};t.prototype.pageClickHandler=function(t){var i=Number(t.target.getAttribute("data-id"));if(!this.processedPageLinks){t.preventDefault();this.current=i}this.emitPageEvent(t,i)};t.prototype.selectClickHandler=function(t){t.preventDefault();var i=Number(t.target.value);this.current=i;if(this.processedPageLinks){this.emitPageEvent(t,i-1);window.open(this.processedPageLinks[i-1],"_self","")}else{this.emitPageEvent(t,i)}};t.prototype.sectionClickHandler=function(t,i){t.preventDefault();var e=this.internalSectionIndex+i;var n=this.take*this.visibleItems;if(e*n>this.total){e=this.internalSectionIndex}var a=e;this.internalSectionIndex=a>=0?a:0};t.prototype.jumpToStart=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=0;this.current=1}this.emitPageEvent(t)};t.prototype.jumpToEnd=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages}this.emitPageEvent(t)};t.prototype.renderPageButton=function(t){var i=this;return n("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":true},id:"page-".concat(t,"-button"),color:t!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":t,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(t),onClick:function(t){return i.pageClickHandler(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:undefined},n("div",{class:"duet-pagination-page-number","aria-hidden":true},t))};t.prototype.renderPageNumbers=function(){var t=[];var i=this.internalSectionIndex*this.visibleItems;do{i++;if(i>this.totalPages){break}t.push(n("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},this.renderPageButton(i)))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};t.prototype.renderSelect=function(){var t=this;var i=[];for(var e=1;e<=this.totalPages;e++){i.push({value:e.toString(),label:e.toString()})}var a=n("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(i),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}","".concat(this.totalPages)),labelHidden:true,onDuetChange:function(i){return t.selectClickHandler(i)}});return n("li",null,a,n("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return S(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var i=this;return n(s,{key:"756ad0511064e85742b3bb271bdd2a468f3f1eb0",onKeyDown:function(t){return i.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},n("nav",{key:"4d235370cef9fc2b6d9448b2b02a02eefc04b97b",role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(t){return i.nativeNav=t},"aria-controls":this.ariaControls,class:(t={"duet-pagination-nav":true},t["duet-pagination-variation-".concat(this.variation)]=true,t)},this.numbersStore!==""&&n("div",{key:"4e98bb73d78c7cb713ac1de78d9d5ccbdce1687d","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},n("duet-badge",{key:"9d16f94604abbcfbbd8b538395e46c024b88c0a2",theme:this.theme},"jump to page : ",this.numbersStore)),n("ol",{key:"7bbec70a660779cabba7847dd76732e9bfb71f1b",id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"974c29ddf4de1b7aca6e24f289be9fbb4177eb56",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"d8fd5f3a859d470c11c15ae197313cc6c8983fc2",disabled:this.internalSectionIndex===0&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:function(t){return i.jumpToStart(t)},"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined})),n("li",{key:"c03e92b8f6ba758dd49e881380c964c87f155dcc",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"71b346d9a35b397951223fb32bdd449441dab0bf",disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:function(t){return i.onMouseHandler(t,-1)},"accessible-label":this.accessibleLabels.previous_page,title:this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current-2]:undefined})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&n(a,{key:"142ba228678916f8f9a69de0c8f38430c6db7623"},n("li",{key:"6e2370fdf3f65c69d30ccee081b6426c12267a11",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"887ee7242f007578beb3b1a59702ab619d0a7e5e",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(t){return i.jumpToStart(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined},n("div",{key:"0b5d04b555f074972abcc93a70a0d80bdadabcd4",class:"duet-pagination-page-number"},"1"))),n("li",{key:"3cbe3bbf9ef3406f2a98aa736f692aaf87119857",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"462643a69aeecc463a23ba22f0bf79ea8c4456c3",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return i.sectionClickHandler(t,-1)},theme:this.theme},n("div",{key:"fa748ff5b134b6a0a3a4550f0073fbf45baf2337",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&n(a,{key:"0459e62e54d351fa5f22afa7afb3a3a6027df6c1"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&n("li",{key:"fb76ad813a83768da7a52230342170198efc321d",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"14b9164e41b63d0adbbfe5ef29074a46695a44d6",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return i.sectionClickHandler(t,1)},theme:this.theme},n("div",{key:"551f91a348760b5101e88adc3a3d8a3d692fc804",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),n("li",{key:"454ccc661d104be10d0a3908fa7516e1f627fb57",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"01eeca39b9de17e25c39ffec6296c26920b86380",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(t){return i.jumpToEnd(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:undefined},n("div",{key:"f4c0ca8a738f21233a966611c8ce15d7f776c7d7",class:"duet-pagination-page-number"},this.totalPages)))),n("li",{key:"3dc850213f9f9c7aac8cabba1901740d6068cdde",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"ddf5b89fac538ccdae84e031bea7a2830f656bc0",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick:function(t){return i.onMouseHandler(t,1)},"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:undefined})),(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"78c2482a7d36358e53000e55c19057c2b4585165",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"330747e12a1e3d8bc0fb74f3945d99c06d8132d0",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick:function(t){return i.jumpToEnd(t)},"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:undefined})))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}());C.style=M;var N="*,*::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-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(0, 41, 77)}.duet-range-stepper ::part(button){border:0}";var L=N;var z=t("duet_range_stepper",function(){function t(t){var n=this;i(this,t);this.duetRangeStepUpdate=e(this,"duetRangeStepUpdate",7);this.leftBn=u("duetRangeStepper-left");this.rightBn=u("duetRangeStepper-right");this.handleClick=function(t,i){t.preventDefault();n.stepIndex+=i;n.clampStepIndex();n.handleStepClick(t)};this.buttonLeftDisabled=false;this.buttonRightDisabled=false;this.theme="";this.disabled=false;this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=v(this.ariaLabelsDefaults);this.ariaControls=""}t.prototype.watchStepIndexStateHandler=function(t){if(this.leftBnRef&&this.rightBnRef){if(t<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.buttonLeftDisabled=true}else{this.buttonLeftDisabled=false}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.buttonRightDisabled=true}else{this.buttonRightDisabled=false}}};t.prototype.watchStepSizeStateHandler=function(t,i){if(t!==i){if(this.stepIndex*t>this.total){this.stepIndex=Math.ceil(this.total/t)}this.watchStepIndexStateHandler(this.stepIndex)}};t.prototype.handleStepClick=function(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};t.prototype.componentWillLoad=function(){o(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){y(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){k(this)};t.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};t.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};t.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};t.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};t.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};t.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e;return __generator(this,(function(n){if(this.disabled){return[2]}i=this.stepIndex;e=1;if(l(t)||f(t)||g(t)){i--;e=-1;this.leftBnRef.setFocus()}if(p(t)||b(t)||m(t)){i++;e=1}if(c(t)){if(i>0&&i*this.stepSize<=this.total){this.handleClick(t,e)}}return[2]}))}))};t.prototype.render=function(){var t=this;return n("div",{key:"43d93bf62ed3c3b091933da841d015662b158e50",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(i){return t.onKeyboardDown(i)},"aria-controls":this.ariaControls},n("span",{key:"0eb7fa8f8e1f5853a16c85f8d9670c70d531f13a",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),n("duet-action-button",{key:"b89f2b93dfe5a510bf6acbdf30ce694ff1ac59dc",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:function(i){return t.handleClick(i,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(i){return t.leftBnRef=i},part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),n("duet-action-button",{key:"a9d84ec5096ae382828ee82ba75bd558b08d49ea",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:function(i){return t.handleClick(i,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(i){return t.rightBnRef=i},part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}());z.style=L}}}));
|
|
4
|
+
*/System.register(["./p-7e08d07c.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-34d7dd10.system.js","./p-6059af2f.system.js","./p-98636086.system.js","./p-6a95a2e3.system.js","./p-94eab61e.system.js"],(function(t){"use strict";var i,e,n,a,s,r,o,u,h,c,d,l,f,p,b,g,m,v,y,k,_,w,x;return{setters:[function(t){i=t.r;e=t.c;n=t.h;a=t.F;s=t.H;r=t.g},function(t){o=t.i},function(t){u=t.c},function(t){h=t.d},function(t){c=t.k;d=t.l;l=t.d;f=t.b;p=t.a;b=t.c;g=t.m;m=t.n},function(t){v=t.g;y=t.c;k=t.d},function(t){_=t.p},function(t){w=t.b;x=t.a},function(){}],execute:function(){var S=function(t,i,e){if(t*2>i/e){return false}return true};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;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{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)}';var M=j;var C=t("duet_pagination",function(){function t(t){var n=this;i(this,t);this.duetPageChange=e(this,"duetPageChange",3);this.listId=u("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){n.matchesCompactBreakpoint=w.includes(n.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,i){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:if(!(t===0))return[3,1];this.current=1;return[3,4];case 1:if(!(t>this.totalPages))return[3,2];this.current=this.totalPages;return[3,4];case 2:if(!(i!==t))return[3,4];e=Math.ceil(t/this.visibleItems)-1;if(!(e!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=e;return[4,this.setFocus()];case 3:n.sent();n.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var e=Number(i||n.current);n.duetPageChange.emit({component:"duet-pagination",from:e*n.take,to:e*n.take+n.take,current:e,take:n.take,type:"page",originalEvent:t})};this.getEnteredNumber=h((function(t){n.emitPageEvent(t,n.numbersStore);n.current=Number(n.numbersStore);n.numbersStore="";n.duetPageChange.emit({component:"duet-pagination",from:n.current*n.take,to:n.current*n.take+n.take,current:n.current,take:n.take,type:"jump",originalEvent:t})}),500);this.processedPageLinks=null;this.numbersStore="";this.matchesCompactBreakpoint=false;this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.disabled=false;this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",select_label:"Total pages {0}, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",select_label:"Sivuja yhteensä {0}, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Paginering, välj en siffra för att hoppa till en sida",select_label:"Totalt antal sidor {0}, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=v(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.compactBreakpoint="x-small";this.ariaControls="";this.current=1;this.pageLinks=undefined}t.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};t.prototype.watchStateHandler=function(t,i){return this.actionChain(t,i)};t.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();o(this);this.refresh()};t.prototype.componentDidLoad=function(){this.firstRenderDone=true};t.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};t.prototype.componentDidRender=function(){if(this.firstRenderDone&&!this.processedPageLinks){this.setFocus()}};t.prototype.connectedCallback=function(){var t=this.compactBreakpoint==="none"?"all":x[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",h(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);y(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;k(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=_(this.pageLinks);return[2]}))}))};t.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};t.prototype.onMouseHandler=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.disabled){return[2]}if(!this.processedPageLinks){t.preventDefault();t.stopPropagation();this.current=this.current+i}this.emitPageEvent(t);return[2]}))}))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(e){if(this.disabled){return[2]}i=this.current;if(l(t)||f(t)){i--}if(p(t)||b(t)){i++}if(c(t)){if(i<=this.totalPages){this.current=i;if(this.processedPageLinks){this.emitPageEvent(t,i-1);window.open(this.processedPageLinks[i-1],"_self","")}else{this.emitPageEvent(t)}}}if(d(t)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+t.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(t)}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(e){switch(e.label){case 0:t=this.nativeNav.querySelector("[data-id='".concat(this.current,"']"));i=t;if(!i)return[3,2];return[4,t.setFocus()];case 1:i=e.sent();e.label=2;case 2:i;return[2]}}))}))};t.prototype.pageClickHandler=function(t){var i=Number(t.target.getAttribute("data-id"));if(!this.processedPageLinks){t.preventDefault();this.current=i}this.emitPageEvent(t,i)};t.prototype.selectClickHandler=function(t){t.preventDefault();var i=Number(t.target.value);this.current=i;if(this.processedPageLinks){this.emitPageEvent(t,i-1);window.open(this.processedPageLinks[i-1],"_self","")}else{this.emitPageEvent(t,i)}};t.prototype.sectionClickHandler=function(t,i){t.preventDefault();var e=this.internalSectionIndex+i;var n=this.take*this.visibleItems;if(e*n>this.total){e=this.internalSectionIndex}var a=e;this.internalSectionIndex=a>=0?a:0};t.prototype.jumpToStart=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=0;this.current=1}this.emitPageEvent(t)};t.prototype.jumpToEnd=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages}this.emitPageEvent(t)};t.prototype.renderPageButton=function(t){var i=this;return n("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":true},id:"page-".concat(t,"-button"),color:t!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":t,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(t),onClick:function(t){return i.pageClickHandler(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:undefined},n("div",{class:"duet-pagination-page-number","aria-hidden":true},t))};t.prototype.renderPageNumbers=function(){var t=[];var i=this.internalSectionIndex*this.visibleItems;do{i++;if(i>this.totalPages){break}t.push(n("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},this.renderPageButton(i)))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};t.prototype.renderSelect=function(){var t=this;var i=[];for(var e=1;e<=this.totalPages;e++){i.push({value:e.toString(),label:e.toString()})}var a=n("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(i),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}","".concat(this.totalPages)),labelHidden:true,onDuetChange:function(i){return t.selectClickHandler(i)}});return n("li",null,a,n("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return S(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var i=this;return n(s,{key:"756ad0511064e85742b3bb271bdd2a468f3f1eb0",onKeyDown:function(t){return i.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},n("nav",{key:"4d235370cef9fc2b6d9448b2b02a02eefc04b97b",role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(t){return i.nativeNav=t},"aria-controls":this.ariaControls,class:(t={"duet-pagination-nav":true},t["duet-pagination-variation-".concat(this.variation)]=true,t)},this.numbersStore!==""&&n("div",{key:"4e98bb73d78c7cb713ac1de78d9d5ccbdce1687d","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},n("duet-badge",{key:"9d16f94604abbcfbbd8b538395e46c024b88c0a2",theme:this.theme},"jump to page : ",this.numbersStore)),n("ol",{key:"7bbec70a660779cabba7847dd76732e9bfb71f1b",id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"974c29ddf4de1b7aca6e24f289be9fbb4177eb56",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"d8fd5f3a859d470c11c15ae197313cc6c8983fc2",disabled:this.internalSectionIndex===0&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:function(t){return i.jumpToStart(t)},"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined})),n("li",{key:"c03e92b8f6ba758dd49e881380c964c87f155dcc",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"71b346d9a35b397951223fb32bdd449441dab0bf",disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:function(t){return i.onMouseHandler(t,-1)},"accessible-label":this.accessibleLabels.previous_page,title:this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current-2]:undefined})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&n(a,{key:"142ba228678916f8f9a69de0c8f38430c6db7623"},n("li",{key:"6e2370fdf3f65c69d30ccee081b6426c12267a11",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"887ee7242f007578beb3b1a59702ab619d0a7e5e",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(t){return i.jumpToStart(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined},n("div",{key:"0b5d04b555f074972abcc93a70a0d80bdadabcd4",class:"duet-pagination-page-number"},"1"))),n("li",{key:"3cbe3bbf9ef3406f2a98aa736f692aaf87119857",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"462643a69aeecc463a23ba22f0bf79ea8c4456c3",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return i.sectionClickHandler(t,-1)},theme:this.theme},n("div",{key:"fa748ff5b134b6a0a3a4550f0073fbf45baf2337",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&n(a,{key:"0459e62e54d351fa5f22afa7afb3a3a6027df6c1"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&n("li",{key:"fb76ad813a83768da7a52230342170198efc321d",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"14b9164e41b63d0adbbfe5ef29074a46695a44d6",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return i.sectionClickHandler(t,1)},theme:this.theme},n("div",{key:"551f91a348760b5101e88adc3a3d8a3d692fc804",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),n("li",{key:"454ccc661d104be10d0a3908fa7516e1f627fb57",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"01eeca39b9de17e25c39ffec6296c26920b86380",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(t){return i.jumpToEnd(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:undefined},n("div",{key:"f4c0ca8a738f21233a966611c8ce15d7f776c7d7",class:"duet-pagination-page-number"},this.totalPages)))),n("li",{key:"3dc850213f9f9c7aac8cabba1901740d6068cdde",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"ddf5b89fac538ccdae84e031bea7a2830f656bc0",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick:function(t){return i.onMouseHandler(t,1)},"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:undefined})),(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"78c2482a7d36358e53000e55c19057c2b4585165",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"330747e12a1e3d8bc0fb74f3945d99c06d8132d0",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick:function(t){return i.jumpToEnd(t)},"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:undefined})))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}());C.style=M;var N="*,*::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-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(8, 42, 77)}.duet-range-stepper ::part(button){border:0}";var L=N;var z=t("duet_range_stepper",function(){function t(t){var n=this;i(this,t);this.duetRangeStepUpdate=e(this,"duetRangeStepUpdate",7);this.leftBn=u("duetRangeStepper-left");this.rightBn=u("duetRangeStepper-right");this.handleClick=function(t,i){t.preventDefault();n.stepIndex+=i;n.clampStepIndex();n.handleStepClick(t)};this.buttonLeftDisabled=false;this.buttonRightDisabled=false;this.theme="";this.disabled=false;this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=v(this.ariaLabelsDefaults);this.ariaControls=""}t.prototype.watchStepIndexStateHandler=function(t){if(this.leftBnRef&&this.rightBnRef){if(t<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.buttonLeftDisabled=true}else{this.buttonLeftDisabled=false}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.buttonRightDisabled=true}else{this.buttonRightDisabled=false}}};t.prototype.watchStepSizeStateHandler=function(t,i){if(t!==i){if(this.stepIndex*t>this.total){this.stepIndex=Math.ceil(this.total/t)}this.watchStepIndexStateHandler(this.stepIndex)}};t.prototype.handleStepClick=function(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};t.prototype.componentWillLoad=function(){o(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){y(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){k(this)};t.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};t.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};t.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};t.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};t.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};t.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e;return __generator(this,(function(n){if(this.disabled){return[2]}i=this.stepIndex;e=1;if(l(t)||f(t)||g(t)){i--;e=-1;this.leftBnRef.setFocus()}if(p(t)||b(t)||m(t)){i++;e=1}if(c(t)){if(i>0&&i*this.stepSize<=this.total){this.handleClick(t,e)}}return[2]}))}))};t.prototype.render=function(){var t=this;return n("div",{key:"43d93bf62ed3c3b091933da841d015662b158e50",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(i){return t.onKeyboardDown(i)},"aria-controls":this.ariaControls},n("span",{key:"0eb7fa8f8e1f5853a16c85f8d9670c70d531f13a",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),n("duet-action-button",{key:"b89f2b93dfe5a510bf6acbdf30ce694ff1ac59dc",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:function(i){return t.handleClick(i,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(i){return t.leftBnRef=i},part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),n("duet-action-button",{key:"a9d84ec5096ae382828ee82ba75bd558b08d49ea",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:function(i){return t.handleClick(i,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(i){return t.rightBnRef=i},part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}());z.style=L}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-7e08d07c.system.js","./p-e216bea4.system.js"],(function(e){"use strict";var t,a,r,n,o;return{setters:[function(e){t=e.r;a=e.h;r=e.H;n=e.g},function(e){o=e.i}],execute:function(){var i="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-toolbar{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255)}.duet-toolbar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1384px;height:36px;margin:0 28px;border-bottom:1px solid rgb(212, 223, 229)}.duet-toolbar .list{display:flex;align-items:center;justify-content:space-between;height:100%;list-style-type:none}.duet-toolbar ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-toolbar.primary{background:rgb(0, 119, 179)}.duet-toolbar.primary .container{border-bottom:0}.duet-toolbar.secondary{background:rgb(8, 42, 77)}.duet-toolbar.secondary .container{border-bottom:0}.duet-toolbar.duet-theme-turva{background:rgb(255, 255, 255)}.duet-toolbar.duet-theme-turva .container{border-bottom:1px solid rgb(222, 224, 228)}.duet-toolbar.duet-theme-turva.primary{background:rgb(198, 12, 48)}.duet-toolbar.duet-theme-turva.primary .container{border-bottom:0}";var d=i;var c=e("duet_toolbar",function(){function e(e){t(this,e);this.theme="";this.variation="default";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){o(this)};e.prototype.render=function(){var e;var t=this.variation==="primary"||this.variation==="negative"||this.theme==="turva"&&this.variation==="secondary"?"primary":this.variation==="secondary"?"secondary":"default";return a(r,{key:"f755504caccff50555f478c9de6cf384e624cb3b"},a("nav",{key:"1e261ae52e6c364e3ed7f3bb524f37da5a4f276e",class:(e={"duet-toolbar":true,"duet-theme-turva":this.theme==="turva"},e[t]=true,e),"aria-label":this.accessibleLabel},a("div",{key:"50bfcdb065a530ced06715d880523406eaa58218",class:"container"},a("div",{key:"a1cf4a216b6305cd40bf86c17344b756d297b7a4",class:"list",role:"list"},a("slot",{key:"a0ca3b6d619470916a39fc71bc8fa9e9dbd931fe",name:"left"})),a("div",{key:"9b6649d061d2815641f8270d02f92fbad4680c4e",class:"list",role:"list"},a("slot",{key:"2925618229a35ae1c92c2cf712449dde5e43c73a",name:"right"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());c.style=d}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,c as i,h as o,H as e,g as a}from"./p-
|
|
4
|
+
import{r as t,c as i,h as o,H as e,g as a}from"./p-d3828a36.js";import{i as n}from"./p-aaa7a7bd.js";import{c as s}from"./p-5e59e970.js";import{d as r}from"./p-9e371678.js";import{i as d}from"./p-a1b7f2a0.js";import{g as c,c as h,d as u}from"./p-a18e89e9.js";import{c as b,g as l,s as p}from"./p-3d9a63aa.js";import"./p-9c3c64b9.js";import"./p-8b3b5673.js";const m=class{constructor(o){t(this,o),this.duetActionEvent=i(this,"duetActionEvent",6),this.listId=s("duet-action-button"),this.emitPageEvent=r((t=>{this.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:this.actionId,name:this.actionName,meta:this.actionMeta,id:this.listId})})),this.numbersStore="",this.theme="",this.iconName="action-arrow-left-small",this.iconColor="currentColor",this.iconSize="xx-small",this.actionName=void 0,this.actionId=void 0,this.actionMeta=void 0,this.disabled=!1,this.color="",this.background="",this.accessibleTitle=!0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLabelsDefaults={en:"Click to activate action",fi:"Klikkaa aktivoidaksesi toiminto",sv:"Klicka för att aktivera åtgärd"},this.accessibleLabel=c(this.accessibleLabelsDefaults),this.accessibleControls="",this.url=void 0}async onKeyboardDown(t){d(t)&&this.emitPageEvent(t)}getTitle(){return"string"==typeof this.accessibleTitle?this.accessibleTitle:!0===this.accessibleTitle&&this.actionName?b(`${this.actionName}`):null}async onMouseHandler(t){t.preventDefault(),this.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:this.actionName,id:this.actionId,meta:this.actionMeta})}componentWillLoad(){n(this)}connectedCallback(){h(this,{prop:"accessibleLabel",defaults:"accessibleLabelsDefaults"})}disconnectedCallback(){u(this)}async setFocus(t){this.nativeButton&&this.nativeButton.focus(t)}render(){const t="currentColor"===this.color?"currentColor":l(this.color,this.theme),i=l(this.background,this.theme),a=i?p(i,-.1):i,n=i?`\n button.duet-action-button {\n background: ${i} !important;\n }\n button.duet-action-button:not(:disabled):hover {\n background: ${a} !important;\n }\n `:"",s={ref:t=>this.nativeButton=t,part:"button",style:{color:t,"border-color":l(this.iconColor,this.theme),"border-width":"1px","border-style":"solid"},disabled:this.disabled,id:this.listId,type:"button","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,"aria-details":this.accessibleDetails,"aria-controls":this.accessibleControls,title:this.getTitle(),class:{"duet-action-button":!0,"duet-action-button--disabled":this.disabled,[`duet-action-button--${this.theme}`]:""!==this.theme,"duet-theme-turva":"turva"===this.theme}};return o(e,{key:"784004122f9530676cbff39d09e3e4a4f7ccbf8f",onKeyDown:t=>this.onKeyboardDown(t)},o("style",{key:"b34416cab89d2c6f2c4d67902239ab7140d74fb4",innerHTML:n}),this.url&&!this.disabled?o("a",Object.assign({},s,{href:this.url}),o("duet-icon",{part:"icon",name:this.iconName,color:this.iconColor,margin:"none",size:this.iconSize})):o("button",Object.assign({},s,{onClick:t=>this.onMouseHandler(t)}),o("duet-icon",{part:"icon",name:this.iconName,color:this.iconColor,margin:"none",size:this.iconSize}),o("duet-visually-hidden",null,o("slot",null))))}get element(){return a(this)}};m.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-block;margin:0 auto}.duet-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:auto !important;padding:0 !important;margin:0 0 0 8px;color:rgb(8, 42, 77);white-space:nowrap;cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;transition:background-color 300ms ease !important}.duet-action-button.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 247, 250)}.duet-action-button duet-icon{display:block}@media (max-width: 35.9375em){.duet-action-button{width:32px;height:32px}}.duet-action-button:not(:disabled):hover{background:#e9ecee}.duet-action-button:not(:disabled):hover.duet-theme-turva{background:#e9ebee}.duet-action-button:focus{outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-action-button:focus.duet-theme-turva{box-shadow:0 0 0 2px #171c3a !important}.duet-action-button:active:focus{background:#dddfe1 !important;box-shadow:none}.duet-action-button:active:focus.duet-theme-turva{background:#dddee1 !important}.duet-action-button:disabled{color:rgb(127, 150, 165);cursor:default;background:rgb(245, 248, 250);opacity:0.75}.duet-action-button.duet-theme-turva:disabled{color:rgb(143, 147, 158);background:rgb(245, 247, 250)}";export{m as duet_action_button}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
System.register([],(function(n){"use strict";return{execute:function(){n("g",r);function r(n){var r=n.element.textContent;if(n.accessibleLabel){return n.accessibleLabel}if((!!n.download||n.download==="")&&r){return"".concat(r,". ").concat(n.accessibleLabelDownload,".")}if(n.external&&r){return"".concat(r,". ").concat(n.accessibleLabelExternal,".")}return null}}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,c as e,h as d,H as s,g as o}from"./p-
|
|
4
|
+
import{r as t,c as e,h as d,H as s,g as o}from"./p-d3828a36.js";import{i}from"./p-aaa7a7bd.js";import{c as g}from"./p-5e59e970.js";import{s as u,u as c}from"./p-a1b7f2a0.js";const r=class{constructor(d){t(this,d),this.duetChange=e(this,"duetChange",3),this.toggleId=g("DuetToggle"),this.onClick=t=>{t.preventDefault(),this.setFocus(),this.checked=!this.checked},this.theme="",this.margin="auto",this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.label="label",this.labelColor=void 0,this.labelWeight=void 0,this.labelPosition="top",this.required=!1,this.disabled=!1,this.checked=!1,this.value=void 0,this.identifier=void 0,this.name=void 0,this.role=void 0}checkedChanged(t){this.duetChange.emit({checked:t,value:this.value,component:"duet-toggle"})}componentWillLoad(){i(this),void 0===this.value&&(this.value=this.identifier)}connectedCallback(){u(this)}disconnectedCallback(){c(this)}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.toggleId;return d(s,{onClick:this.disabled?void 0:this.onClick,class:{"duet-m-0":"none"===this.margin}},d("div",{class:{"duet-toggle":!0,"duet-theme-turva":"turva"===this.theme,"duet-side-label":"top"!==this.labelPosition,"duet-reverse-label":"right"===this.labelPosition}},d("duet-label",{theme:this.theme,color:this.labelColor,weight:this.labelWeight,for:t,margin:"top"===this.labelPosition?"auto":"none"},this.label),d("label",{class:"duet-switch",htmlFor:t},d("input",{type:"checkbox",value:this.value,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,id:t,role:this.role,name:this.name,checked:this.checked,required:this.required,disabled:this.disabled,ref:t=>this.nativeInput=t}),d("div",{class:"duet-slider"}))))}get element(){return o(this)}static get watchers(){return{checked:["checkedChanged"]}}};r.style='*.sc-duet-toggle,*.sc-duet-toggle::after,*.sc-duet-toggle::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-toggle-h{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;-webkit-user-select:none;user-select:none;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-toggle-h:last-child,.sc-duet-toggle-h:last-of-type{margin-right:0 !important}.duet-m-0.sc-duet-toggle-h{margin:0 !important}duet-label.sc-duet-toggle{display:block !important;width:100% !important}.duet-side-label.sc-duet-toggle{display:flex;gap:12px;align-items:center}.duet-side-label.sc-duet-toggle duet-label.sc-duet-toggle{width:auto !important}.duet-reverse-label.sc-duet-toggle{flex-direction:row-reverse}.duet-switch.sc-duet-toggle{position:relative;display:block;width:48px;height:28px}.duet-switch.sc-duet-toggle input.sc-duet-toggle{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}.duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle{background-color:rgb(0, 119, 179);box-shadow:none}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle{background-color:rgb(198, 12, 48)}.duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #004467;transform:translateX(20px)}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #660619}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled+.duet-slider.sc-duet-toggle{cursor:default}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled+.duet-slider.sc-duet-toggle::before{box-shadow:none}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled+.duet-slider.sc-duet-toggle::before{box-shadow:none}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle{background:#bfcbd2}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle::before{background:rgb(255, 255, 255);box-shadow:none}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle{background:#c7c9cf}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle::before{background:rgb(255, 255, 255)}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:checked+.duet-slider.sc-duet-toggle{background:#80bbd9}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:checked+.duet-slider.sc-duet-toggle{background:#e38698}.user-is-tabbing.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:focus+.duet-slider.sc-duet-toggle{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(0, 119, 179, 0.75)}.user-is-tabbing.sc-duet-toggle-h .duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:focus+.duet-slider.sc-duet-toggle{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(23, 28, 58, 0.75)}.duet-slider.sc-duet-toggle{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:rgb(127, 150, 165);border-radius:24px;transition:background-color 300ms ease}.duet-slider.sc-duet-toggle::before{position:absolute;bottom:2px;left:2px;width:24px;height:24px;content:"";background-color:rgb(255, 255, 255);border-radius:50%;box-shadow:1px 0 2px 0 #5d6266;transition:300ms ease}.duet-theme-turva.sc-duet-toggle .duet-slider.sc-duet-toggle{background-color:rgb(143, 147, 158)}.duet-theme-turva.sc-duet-toggle .duet-slider.sc-duet-toggle::before{background-color:rgb(255, 255, 255);box-shadow:1px 0 2px 0 #00334d}';export{r as duet_toggle}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))r[i]=e[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function f(r){try{o(t.next(r))}catch(r){a(r)}}function u(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(f,u)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(r){return function(e){return o([r,e])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(r,n)}catch(r){u=[6,r];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t=r("N","duet");var i={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 a=r("E",{cdnURILocal:"http://localhost:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.0.
|
|
4
|
+
*/System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t=r("N","duet");var i={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 a=r("E",{cdnURILocal:"http://localhost:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.0.71"});var f=Object.defineProperty;var u=function(r,e){for(var n in e)f(r,n,{get:e[n],enumerable:true})};var o=r("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var l=new WeakMap;var v=function(r){return l.get(r)};var s=r("r",(function(r,e){return l.set(e.t=r,e)}));var c=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}))}{n.h=new Promise((function(r){return n.p=r}));r["s-p"]=[];r["s-rc"]=[]}return l.set(r,n)};var d=function(r,e){return e in r};var h=function(r,e){return(0,console.error)(r,e)};var p=new Map;var m=function(r,n,t){var i=r.m.replace(/-/g,"_");var a=r.$;if(!a){return void 0}var f=p.get(a);if(f){return f[i]}
|
|
5
5
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{p.set(a,r)}return r[i]}),h)};var y=new Map;var $="r";var w="o";var b="s";var g="t";var _="s-id";var S="sty-id";var k="c-id";var x="slot-fb{display:contents}slot-fb[hidden]{display:none}";var A="http://www.w3.org/1999/xlink";var j=typeof window!=="undefined"?window:{};var O=r("d",j.document||{head:{}});var C={i:0,_:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var E=i.shadowDom;var T=function(){var r=false;try{O.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(r){}return r}();var D=r("p",(function(r){return Promise.resolve(r)}));var R=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var L=false;var F=[];var M=[];var N=function(r,e){return function(n){r.push(n);if(!L){L=true;if(e&&C.i&4){I(U)}else{C.raf(U)}}}};var P=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){h(r)}}r.length=0};var U=function(){P(F);{P(M);if(L=F.length>0){C.raf(U)}}};var I=function(r){return D().then(r)};var W=N(M,true);var B={};var H="http://www.w3.org/2000/svg";var z="http://www.w3.org/1999/xhtml";var G=function(r){return r!=null};var Q=function(r){r=typeof r;return r==="object"||r==="function"};function V(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var q={};u(q,{err:function(){return X},map:function(){return J},ok:function(){return K},unwrap:function(){return Y},unwrapErr:function(){return Z}});var K=function(r){return{isOk:true,isErr:false,value:r}};var X=function(r){return{isOk:false,isErr:true,value:r}};function J(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return K(r)}))}else{return K(n)}}if(r.isErr){var t=r.value;return X(t)}throw"should never get here"}var Y=function(r){if(r.isOk){return r.value}else{throw r.value}};var Z=function(r){if(r.isErr){return r.value}else{throw r.value}};var rr=function(r,e){if(e===void 0){e=""}{return function(){return}}};var er=function(r,e){{return function(){return}}};var nr=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var f=null;var u=false;var o=false;var l=[];var v=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){v(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!Q(i)){i=String(i)}if(u&&o){l[l.length-1].S+=i}else{l.push(u?tr(null,i):i)}o=u}}};v(n);if(e){if(e.key){a=e.key}if(e.name){f=e.name}{var s=e.className||e.class;if(s){e.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}if(typeof r==="function"){return r(e===null?{}:e,l,fr)}var c=tr(r,null);c.k=e;if(l.length>0){c.A=l}{c.j=a}{c.O=f}return c}));var tr=function(r,e){var n={i:0,C:r,S:e,T:null,A:null};{n.k=null}{n.j=null}{n.O=null}return n};var ir=r("H",{});var ar=function(r){return r&&r.C===ir};var fr={forEach:function(r,e){return r.map(ur).forEach(e)},map:function(r,e){return r.map(ur).map(e).map(or)}};var ur=function(r){return{vattrs:r.k,vchildren:r.A,vkey:r.j,vname:r.O,vtag:r.C,vtext:r.S}};var or=function(r){if(typeof r.vtag==="function"){var e=__assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return nr.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=tr(r.vtag,r.vtext);n.k=r.vattrs;n.A=r.vchildren;n.j=r.vkey;n.O=r.vname;return n};var lr=function(r,e,n,t){var i=rr("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=a?[]:null;var l=t.D=tr(e,null);if(!C.R){sr(O.body,C.R=new Map)}r[_]=n;r.removeAttribute(_);vr(l,f,u,o,r,r,n);f.map((function(r){var n=r.L+"."+r.F;var t=C.R.get(n);var i=r.T;if(t&&E&&t["s-en"]===""){t.parentNode.insertBefore(i,t.nextSibling)}if(!a){i["s-hn"]=e;if(t){i["s-ol"]=t;i["s-ol"]["s-nr"]=i}}C.R.delete(n)}));if(a){o.map((function(r){if(r){a.appendChild(r)}}))}i()};var vr=function(r,e,n,t,i,a,f){var u;var o;var l;var v;if(a.nodeType===1){u=a.getAttribute(k);if(u){o=u.split(".");if(o[0]===f||o[0]==="0"){l={i:0,L:o[0],F:o[1],M:o[2],N:o[3],C:a.tagName.toLowerCase(),T:a,k:null,A:null,j:null,O:null,S:null};e.push(l);a.removeAttribute(k);if(!r.A){r.A=[]}r.A[l.N]=l;r=l;if(t&&l.M==="0"){t[l.N]=l.T}}}if(a.shadowRoot){for(v=a.shadowRoot.childNodes.length-1;v>=0;v--){vr(r,e,n,t,i,a.shadowRoot.childNodes[v],f)}}for(v=a.childNodes.length-1;v>=0;v--){vr(r,e,n,t,i,a.childNodes[v],f)}}else if(a.nodeType===8){o=a.nodeValue.split(".");if(o[1]===f||o[1]==="0"){u=o[0];l={i:0,L:o[1],F:o[2],M:o[3],N:o[4],T:a,k:null,A:null,j:null,O:null,C:null,S:null};if(u===g){l.T=a.nextSibling;if(l.T&&l.T.nodeType===3){l.S=l.T.textContent;e.push(l);a.remove();if(!r.A){r.A=[]}r.A[l.N]=l;if(t&&l.M==="0"){t[l.N]=l.T}}}else if(l.L===f){if(u===b){l.C="slot";if(o[5]){a["s-sn"]=l.O=o[5]}else{a["s-sn"]=""}a["s-sr"]=true;if(t){l.T=O.createElement(l.C);if(l.O){l.T.setAttribute("name",l.O)}a.parentNode.insertBefore(l.T,a);a.remove();if(l.M==="0"){t[l.N]=l.T}}n.push(l);if(!r.A){r.A=[]}r.A[l.N]=l}else if(u===$){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.C==="style"){var s=tr(null,a.textContent);s.T=a;s.N="0";r.A=[s]}};var sr=function(r,e){if(r.nodeType===1){var n=0;if(r.shadowRoot){for(;n<r.shadowRoot.childNodes.length;n++){sr(r.shadowRoot.childNodes[n],e)}}for(n=0;n<r.childNodes.length;n++){sr(r.childNodes[n],e)}}else if(r.nodeType===8){var t=r.nodeValue.split(".");if(t[0]===w){e.set(t[1]+"."+t[2],r);r.nodeValue="";r["s-en"]=t[3]}}};var cr=function(r,e){if(r!=null&&!Q(r)){if(e&4){return r==="false"?false:r===""||!!r}if(e&2){return parseFloat(r)}if(e&1){return String(r)}return r}return r};var dr=r("g",(function(r){return v(r).$hostElement$}));var hr=r("c",(function(r,e,n){var t=dr(r);return{emit:function(r){return pr(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var pr=function(r,e,n){var t=C.ce(e,n);r.dispatchEvent(t);return t};var mr=new WeakMap;var yr=function(r,e,n){var t=y.get(r);if(R&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}y.set(r,t)};var $r=function(r,e,n){var t;var i=br(e);var a=y.get(i);r=r.nodeType===11?r:O;if(a){if(typeof a==="string"){r=r.head||r;var f=mr.get(r);var u=void 0;if(!f){mr.set(r,f=new Set)}if(!f.has(i)){if(r.host&&(u=r.querySelector("[".concat(S,'="').concat(i,'"]')))){u.innerHTML=a}else{u=O.createElement("style");u.innerHTML=a;var o=(t=C.P)!=null?t:V(O);if(o!=null){u.setAttribute("nonce",o)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var v=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(u,v)}else if("host"in r){if(R){var s=new CSSStyleSheet;s.replaceSync(a);r.adoptedStyleSheets=__spreadArray([s],r.adoptedStyleSheets,true)}else{var c=r.querySelector("style");if(c){c.innerHTML=a+c.innerHTML}else{r.prepend(u)}}}else{r.append(u)}}if(e.i&1&&r.nodeName!=="HEAD"){r.insertBefore(u,null)}}if(e.i&4){u.innerHTML+=x}if(f){f.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var wr=function(r){var e=r.u;var n=r.$hostElement$;var t=e.i;var i=rr("attachStyles",e.m);var a=$r(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2){n["s-sc"]=a;n.classList.add(a+"-h");if(t&2){n.classList.add(a+"-s")}}i()};var br=function(r,e){return"sc-"+r.m};var gr=function(r,e,n,t,i,a){if(n!==t){var f=d(r,e);var u=e.toLowerCase();if(e==="class"){var o=r.classList;var l=Sr(n);var v=Sr(t);o.remove.apply(o,l.filter((function(r){return r&&!v.includes(r)})));o.add.apply(o,v.filter((function(r){return r&&!l.includes(r)})))}else if(e==="style"){{for(var s in n){if(!t||t[s]==null){if(s.includes("-")){r.style.removeProperty(s)}else{r.style[s]=""}}}}for(var s in t){if(!n||t[s]!==n[s]){if(s.includes("-")){r.style.setProperty(s,t[s])}else{r.style[s]=t[s]}}}}else if(e==="key");else if(e==="ref"){if(t){t(r)}}else if(!f&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(d(j,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var c=e.endsWith(kr);e=e.replace(xr,"");if(n){C.rel(r,e,n,c)}if(t){C.ael(r,e,t,c)}}}else{var h=Q(t);if((f||h&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var p=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=p){if(typeof r.__lookupSetter__(e)==="function"){r[e]=p}else{r.setAttribute(e,p)}}}else{r[e]=t}}catch(r){}}var m=false;{if(u!==(u=u.replace(/^xlink\:?/,""))){e=u;m=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(m){r.removeAttributeNS(A,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!h){t=t===true?"":t;if(m){r.setAttributeNS(A,e,t)}else{r.setAttribute(e,t)}}}}};var _r=/\s/;var Sr=function(r){return!r?[]:r.split(_r)};var kr="Capture";var xr=new RegExp(kr+"$");var Ar=function(r,e,n){var t=e.T.nodeType===11&&e.T.host?e.T.host:e.T;var i=r&&r.k||B;var a=e.k||B;{for(var f=0,u=jr(Object.keys(i));f<u.length;f++){var o=u[f];if(!(o in a)){gr(t,o,i[o],void 0,n,e.i)}}}for(var l=0,v=jr(Object.keys(a));l<v.length;l++){var o=v[l];gr(t,o,i[o],a[o],n,e.i)}};function jr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var Or;var Cr;var Er;var Tr=false;var Dr=false;var Rr=false;var Lr=false;var Fr=function(r,e,n,t){var a;var f=e.A[n];var u=0;var o;var l;var v;if(!Tr){Rr=true;if(f.C==="slot"){if(Or){t.classList.add(Or+"-s")}f.i|=f.A?2:1}}if(f.S!==null){o=f.T=O.createTextNode(f.S)}else if(f.i&1){o=f.T=O.createTextNode("")}else{if(!Lr){Lr=f.C==="svg"}o=f.T=O.createElementNS(Lr?H:z,!Tr&&i.slotRelocation&&f.i&2?"slot-fb":f.C);if(Lr&&f.C==="foreignObject"){Lr=false}{Ar(null,f,Lr)}var s=o.getRootNode();var c=!s.querySelector("body");if(!c&&i.scoped&&G(Or)&&o["s-si"]!==Or){o.classList.add(o["s-si"]=Or)}{Jr(o,t)}if(f.A){for(u=0;u<f.A.length;++u){l=Fr(r,f,u,o);if(l){o.appendChild(l)}}}{if(f.C==="svg"){Lr=false}else if(o.tagName==="foreignObject"){Lr=true}}}o["s-hn"]=Er;{if(f.i&(2|1)){o["s-sr"]=true;o["s-cr"]=Cr;o["s-sn"]=f.O||"";o["s-rf"]=(a=f.k)==null?void 0:a.ref;v=r&&r.A&&r.A[n];if(v&&v.C===f.C&&r.T){{Mr(r.T,false)}}}}return o};var Mr=function(r,e){C.i|=1;var n=Array.from(r.childNodes);if(r["s-sr"]&&i.experimentalSlotFixes){var t=r;while(t=t.nextSibling){if(t&&t["s-sn"]===r["s-sn"]&&t["s-sh"]===Er){n.push(t)}}}for(var a=n.length-1;a>=0;a--){var f=n[a];if(f["s-hn"]!==Er&&f["s-ol"]){Kr(Br(f),f,Wr(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;Rr=true}if(e){Mr(f,e)}}C.i&=~1};var Nr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===Er){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=Fr(null,n,i,r);if(u){t[i].T=u;Kr(f,u,Wr(e))}}}};var Pr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.T;qr(i);if(a){{Dr=true;if(a["s-ol"]){a["s-ol"].remove()}else{Mr(a,true)}}a.remove()}}}};var Ur=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=e.length-1;var v=e[0];var s=e[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&f<=c){if(v==null){v=e[++a]}else if(s==null){s=e[--l]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(Ir(v,d,i)){Hr(v,d,i);v=e[++a];d=t[++f]}else if(Ir(s,h,i)){Hr(s,h,i);s=e[--l];h=t[--c]}else if(Ir(v,h,i)){if(v.C==="slot"||h.C==="slot"){Mr(v.T.parentNode,false)}Hr(v,h,i);Kr(r,v.T,s.T.nextSibling);v=e[++a];h=t[--c]}else if(Ir(s,d,i)){if(v.C==="slot"||h.C==="slot"){Mr(s.T.parentNode,false)}Hr(s,d,i);Kr(r,s.T,v.T);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].j!==null&&e[o].j===d.j){u=o;break}}}if(u>=0){m=e[u];if(m.C!==d.C){p=Fr(e&&e[f],n,u,r)}else{Hr(m,d,i);e[u]=void 0;p=m.T}d=t[++f]}else{p=Fr(e&&e[f],n,f,r);d=t[++f]}if(p){{Kr(Br(v.T),p,Wr(v.T))}}}}if(a>l){Nr(r,t[c+1]==null?null:t[c+1].T,n,t,f,c)}else if(f>c){Pr(e,a,l)}};var Ir=function(r,e,n){if(n===void 0){n=false}if(r.C===e.C){if(r.C==="slot"){if("F"in r&&n&&r.T.nodeType!==8){return false}return r.O===e.O}if(!n){return r.j===e.j}return true}return false};var Wr=function(r){return r&&r["s-ol"]||r};var Br=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var Hr=function(r,e,n){if(n===void 0){n=false}var t=e.T=r.T;var a=r.A;var f=e.A;var u=e.C;var o=e.S;var l;if(o===null){{Lr=u==="svg"?true:u==="foreignObject"?false:Lr}{if(u==="slot"&&!Tr);else{Ar(r,e,Lr)}}if(a!==null&&f!==null){Ur(t,a,e,f,n)}else if(f!==null){if(r.S!==null){t.textContent=""}Nr(t,null,e,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){Pr(a,0,a.length-1)}if(Lr&&u==="svg"){Lr=false}}else if(l=t["s-cr"]){l.parentNode.textContent=o}else if(r.S!==o){t.data=o}};var zr=function(r){var e=r.childNodes;for(var n=0,t=e;n<t.length;n++){var i=t[n];if(i.nodeType===1){if(i["s-sr"]){var a=i["s-sn"];i.hidden=false;for(var f=0,u=e;f<u.length;f++){var o=u[f];if(o!==i){if(o["s-hn"]!==i["s-hn"]||a!==""){if(o.nodeType===1&&(a===o.getAttribute("slot")||a===o["s-sn"])||o.nodeType===3&&a===o["s-sn"]){i.hidden=true;break}}else{if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=true;break}}}}}zr(i)}}};var Gr=[];var Qr=function(r){var e;var n;var t;for(var a=0,f=r.childNodes;a<f.length;a++){var u=f[a];if(u["s-sr"]&&(e=u["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;var o=u["s-sn"];var l=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==u["s-hn"]&&!i.experimentalSlotFixes){if(Vr(e,o)){var r=Gr.find((function(r){return r.U===e}));Dr=true;e["s-sn"]=e["s-sn"]||o;if(r){r.U["s-sh"]=u["s-hn"];r.I=u}else{e["s-sh"]=u["s-hn"];Gr.push({I:u,U:e})}if(e["s-sr"]){Gr.map((function(n){if(Vr(n.U,e["s-sn"])){r=Gr.find((function(r){return r.U===e}));if(r&&!n.I){n.I=r.I}}}))}}else if(!Gr.some((function(r){return r.U===e}))){Gr.push({U:e})}}};for(t=n.length-1;t>=0;t--){l()}}if(u.nodeType===1){Qr(u)}}};var Vr=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var qr=function(r){{r.k&&r.k.ref&&r.k.ref(null);r.A&&r.A.map(qr)}};var Kr=function(r,e,n){var t=r==null?void 0:r.insertBefore(e,n);{Jr(e,r)}return t};var Xr=function(r){var e=[];if(r){e.push.apply(e,__spreadArray(__spreadArray(__spreadArray([],r["s-scs"]||[],false),[r["s-si"],r["s-sc"]],false),Xr(r.parentElement),false))}return e};var Jr=function(r,e,n){if(n===void 0){n=false}var t;if(r&&e&&r.nodeType===1){var i=new Set(Xr(e).filter(Boolean));if(i.size){(t=r.classList)==null?void 0:t.add.apply(t,r["s-scs"]=Array.from(i));if(r["s-ol"]||n){for(var a=0,f=Array.from(r.childNodes);a<f.length;a++){var u=f[a];Jr(u,r,true)}}}}};var Yr=function(r,e,n){if(n===void 0){n=false}var t,i,a,f;var u=r.$hostElement$;var o=r.u;var l=r.D||tr(null,null);var v=ar(e)?e:nr(null,null,e);Er=u.tagName;if(o.W){v.k=v.k||{};o.W.map((function(r){var e=r[0],n=r[1];return v.k[n]=u[e]}))}if(n&&v.k){for(var s=0,c=Object.keys(v.k);s<c.length;s++){var d=c[s];if(u.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){v.k[d]=u[d]}}}v.C=null;v.i|=4;r.D=v;v.T=l.T=u.shadowRoot||u;{Or=u["s-sc"]}Tr=(o.i&1)!==0;{Cr=u["s-cr"];Dr=false}Hr(l,v,n);{C.i|=1;if(Rr){Qr(v.T);for(var h=0,p=Gr;h<p.length;h++){var m=p[h];var y=m.U;if(!y["s-ol"]){var $=O.createTextNode("");$["s-nr"]=y;Kr(y.parentNode,y["s-ol"]=$,y)}}for(var w=0,b=Gr;w<b.length;w++){var m=b[w];var y=m.U;var g=m.I;if(g){var _=g.parentNode;var S=g.nextSibling;{var $=(t=y["s-ol"])==null?void 0:t.previousSibling;while($){var k=(i=$["s-nr"])!=null?i:null;if(k&&k["s-sn"]===y["s-sn"]&&_===k.parentNode){k=k.nextSibling;while(k===y||(k==null?void 0:k["s-sr"])){k=k==null?void 0:k.nextSibling}if(!k||!k["s-nr"]){S=k;break}}$=$.previousSibling}}if(!S&&_!==y.parentNode||y.nextSibling!==S){if(y!==S){if(!y["s-hn"]&&y["s-ol"]){y["s-hn"]=y["s-ol"].parentNode.nodeName}Kr(_,y,S);if(y.nodeType===1){y.hidden=(a=y["s-ih"])!=null?a:false}}}y&&typeof g["s-rf"]==="function"&&g["s-rf"](y)}else{if(y.nodeType===1){if(n){y["s-ih"]=(f=y.hidden)!=null?f:false}y.hidden=true}}}}if(Dr){zr(v.T)}C.i&=~1;Gr.length=0}Cr=void 0};var Zr=function(r,e){if(e&&!r.B&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.B=e})))}};var re=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}Zr(r,r.H);var n=function(){return ee(r,e)};return W(n)};var ee=function(r,e){var n=r.$hostElement$;var t=rr("scheduleUpdate",r.u.m);var i=r.t;if(!i){throw new Error("Can't render component <".concat(n.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(e){{r.i|=256;if(r.G){r.G.map((function(r){var e=r[0],n=r[1];return oe(i,e,n)}));r.G=void 0}}{a=oe(i,"componentWillLoad")}}{a=ne(a,(function(){return oe(i,"componentWillRender")}))}t();return ne(a,(function(){return ie(r,i,e)}))};var ne=function(r,e){return te(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var te=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var ie=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l;return __generator(this,(function(v){i=r.$hostElement$;a=rr("update",r.u.m);f=i["s-rc"];if(t){wr(r)}u=rr("render",r.u.m);{ae(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=void 0}u();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return fe(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var ae=function(r,e,n,t){try{e=e.render();{r.i&=~16}{r.i|=2}{{{Yr(r,e,t)}}}}catch(e){h(e,r.$hostElement$)}return null};var fe=function(r){var e=r.u.m;var n=r.$hostElement$;var t=rr("postUpdate",e);var i=r.t;var a=r.H;{oe(i,"componentDidRender")}if(!(r.i&64)){r.i|=64;{le(n)}{oe(i,"componentDidLoad")}t();{r.p(n);if(!a){ue()}}}else{{oe(i,"componentDidUpdate")}t()}{r.v(n)}{if(r.B){r.B();r.B=void 0}if(r.i&512){I((function(){return re(r,false)}))}r.i&=~(4|512)}};var ue=function(r){{le(O.documentElement)}I((function(){return pr(j,"appload",{detail:{namespace:t}})}))};var oe=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){h(r)}}return void 0};var le=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var ve=function(r,e){return v(r).o.get(e)};var se=function(r,e,n,t){var i=v(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.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 f=i.o.get(e);var u=i.i;var o=i.t;n=cr(n,t.V[e][0]);var l=Number.isNaN(f)&&Number.isNaN(n);var s=n!==f&&!l;if((!(u&8)||f===void 0)&&s){i.o.set(e,n);if(o){if(t.q&&u&128){var c=t.q[e];if(c){c.map((function(r){try{o[r](n,f,e)}catch(r){h(r,a)}}))}}if((u&(2|16))===2){re(i,false)}}}};var ce=function(r,e,n){var t,i;var a=r.prototype;if(e.V||(e.q||r.watchers)){if(r.watchers&&!e.q){e.q=r.watchers}var f=Object.entries((t=e.V)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,t,{get:function(){return ve(this,t)},set:function(r){se(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=v(this);return(n=i==null?void 0:i.l)==null?void 0:n.then((function(){var e;return(e=i.t)==null?void 0:e[t].apply(e,r)}))}})}}));if(n&1){var u=new Map;a.attributeChangedCallback=function(r,n,t){var i=this;C.jmp((function(){var f;var o=u.get(r);if(i.hasOwnProperty(o)){t=i[o];delete i[o]}else if(a.hasOwnProperty(o)&&typeof i[o]==="number"&&i[o]==t){return}else if(o==null){var l=v(i);var s=l==null?void 0:l.i;if(s&&!(s&8)&&s&128&&t!==n){var c=l.t;var d=(f=e.q)==null?void 0:f[r];d==null?void 0:d.forEach((function(e){if(c[e]!=null){c[e].call(c,t,n,r)}}))}return}i[o]=t===null&&typeof i[o]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=e.q)!=null?i:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var n=r[0],t=r[1];var i;var a=t[1]||n;u.set(a,n);if(t[0]&512){(i=e.W)==null?void 0:i.push([n,a])}return a})),true)))}}return r};var de=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l,v,s,c,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t.$;if(!i)return[3,4];a=m(t);if(!(a&&"then"in a))return[3,2];f=er();return[4,a];case 1:n=p.sent();f();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.m,"#").concat(e.K,'" was not found'))}if(!n.isProxied){{t.q=n.watchers}ce(n,t,2);n.isProxied=true}u=rr("createInstance",t.m);{e.i|=8}try{new n(e)}catch(r){h(r)}{e.i&=~8}{e.i|=128}u();he(e.t);return[3,5];case 4:n=r.constructor;o=r.localName;customElements.whenDefined(o).then((function(){return e.i|=128}));p.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}v=br(t);if(!y.has(v)){s=rr("registerStyles",t.m);yr(v,l,!!(t.i&1));s()}}p.label=6;case 6:c=e.H;d=function(){return re(e,true)};if(c&&c["s-rc"]){c["s-rc"].push(d)}else{d()}return[2]}}))}))};var he=function(r){{oe(r,"connectedCallback")}};var pe=function(r){if((C.i&1)===0){var e=v(r);var n=e.u;var t=rr("connectedCallback",n.m);if(!(e.i&1)){e.i|=1;var i=void 0;{i=r.getAttribute(_);if(i){if(n.i&1){var a=$r(r.shadowRoot,n);r.classList.remove(a+"-h",a+"-s")}lr(r,n.m,i,e)}}if(!i){if(n.i&(4|8)){me(r)}}{var f=r;while(f=f.parentNode||f.host){if(f.nodeType===1&&f.hasAttribute("s-id")&&f["s-p"]||f["s-p"]){Zr(e,e.H=f);break}}}if(n.V){Object.entries(n.V).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{I((function(){return de(r,e,n)}))}}else{_e(r,e,n.X);if(e==null?void 0:e.t){he(e.t)}else if(e==null?void 0:e.h){e.h.then((function(){return he(e.t)}))}}t()}};var me=function(r){var e=r["s-cr"]=O.createComment("");e["s-cn"]=true;Kr(r,e,r.firstChild)};var ye=function(r){{oe(r,"disconnectedCallback")}};var $e=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((C.i&1)===0){e=v(r);{if(e.J){e.J.map((function(r){return r()}));e.J=void 0}}if(e==null?void 0:e.t){ye(e.t)}else if(e==null?void 0:e.h){e.h.then((function(){return ye(e.t)}))}}return[2]}))}))};var we=function(r,e){var n=function(r){__extends(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}e.prototype.item=function(r){return this[r]};return e}(Array);if(e.i&8){var t=r.__lookupGetter__("childNodes");Object.defineProperty(r,"children",{get:function(){return this.childNodes.map((function(r){return r.nodeType===1}))}});Object.defineProperty(r,"childElementCount",{get:function(){return r.children.length}});Object.defineProperty(r,"childNodes",{get:function(){var r=t.call(this);if((C.i&1)===0&&v(this).i&2){var e=new n;for(var i=0;i<r.length;i++){var a=r[i]["s-nr"];if(a){e.push(a)}}return e}return n.from(r)}})}};var be=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=rr();var i=[];var a=e.exclude||[];var f=j.customElements;var u=O.head;var o=u.querySelector("meta[charset]");var l=O.createElement("style");var s=[];var d;var h=true;Object.assign(C,e);C._=new URL(e.resourcesUrl||"./",O.baseURI).href;{C.i|=2}var p=false;r.map((function(r){r[1].map((function(e){var n;var t={i:e[0],m:e[1],V:e[2],X:e[3]};if(t.i&4){p=true}{t.V=e[2]}{t.X=e[3]}{t.W=[]}{t.q=(n=e[4])!=null?n:{}}var u=t.m;var o=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;c(e,t);if(t.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open",delegatesFocus:!!(t.i&16)})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.m,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;var e=v(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;_e(this,e,t.X)}if(d){clearTimeout(d);d=null}if(h){s.push(this)}else{C.jmp((function(){return pe(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;C.jmp((function(){return $e(r)}))};e.prototype.componentOnReady=function(){return v(this).h};return e}(HTMLElement);{{we(o.prototype,t)}}t.$=r[0];if(!a.includes(u)&&!f.get(u)){i.push(u);f.define(u,ce(o,t,1))}}))}));if(i.length>0){if(p){l.textContent+=x}if(l.innerHTML.length){l.setAttribute("data-styles","");var m=(n=C.P)!=null?n:V(O);if(m!=null){l.setAttribute("nonce",m)}u.insertBefore(l,o?o.nextSibling:u.firstChild)}}h=false;if(s.length){s.map((function(r){return r.connectedCallback()}))}else{{C.jmp((function(){return d=setTimeout(ue,30)}))}}t()}));var ge=r("F",(function(r,e){return e}));var _e=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=ke(r,t);var u=Se(e,a);var o=xe(t);C.ael(f,i,u,o);(e.J=e.J||[]).push((function(){return C.rel(f,i,u,o)}))}))}};var Se=function(r,e){return function(n){var t;try{{if(r.i&256){(t=r.t)==null?void 0:t[e](n)}else{(r.G=r.G||[]).push([e,n])}}}catch(r){h(r)}}};var ke=function(r,e){if(e&4)return O;if(e&8)return j;if(e&16)return O.body;return r};var xe=function(r){return T?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var Ae=r("s",(function(r){return C.P=r}))}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{E as t,r as e,h as i,H as s,g as a}from"./p-ae8d9deb.js";import{i as o}from"./p-aaa7a7bd.js";import{g as d,r as n}from"./p-e95fa292.js";import"./p-50c83774.js";const h=t=>{if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++)if(0===t.attributes[e].name.toLowerCase().indexOf("on"))return!1;if(t.children)for(let e=0;e<t.children.length;e++)if(!h(t.children[e]))return!1;return!0},r={};const c=class{constructor(t){e(this,t),this.svgContent=void 0,this.theme="",this.icon=void 0,this.src=void 0,this.name="action-add",this.margin="auto",this.responsive=!0,this.color="",this.background="",this.backgroundOpacity=1,this.backgroundRotation=0,this.size="medium",this.outline="",this.shape="circle"}async componentWillLoad(){o(this),this.src&&this.icon&&console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence","icon:",this.icon,"src:",this.src),await this.loadIcon(null,null)}async loadIcon(e,i){if(this.icon)return void(this.svgContent=this.icon);if(this.element.shadowRoot.querySelector("svg")&&!this.svgContent){if(null===i&&null===e)return;if(this.element.shadowRoot.querySelector(`.duet-icon-svg[data-name="${e}"]`))return}const s=this.src?this.src:(e=>{const i=window.duetcdnuri?window.duetcdnuri:t.cdnURIProd;return i.includes("localhost")?`${i}/icons/lib/assets/${e}.svg`:`${i}/icons/${t.duetIconVersion}/lib/assets/${e}.svg`})(this.name);try{this.svgContent=await function(t){if(r[t])return r[t];const e=async function(){const e=await fetch(t);if(!e.ok)throw new Error(`SVG request failed: ${e.status} ${e.statusText}`);const i=(t=>{if("undefined"==typeof document||!t)return;const e=document.createElement("div");e.innerHTML=t;for(let t=e.childNodes.length-1;t>=0;t--)"svg"!==e.childNodes[t].nodeName.toLowerCase()&&e.removeChild(e.childNodes[t]);return e.firstElementChild})(await e.text());if(!h(i))throw new Error("SVG validation failed");const s=document.createElement("div");return s.appendChild(i),s.innerHTML}();return r[t]=e}(s)}catch(t){console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${s}.`,t)}}render(){const t="currentColor"===this.color?"currentColor":d(this.color,this.theme)||d(this.outline,this.theme),e=this.backgroundRotation?{transform:`rotate(${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{},a=Object.assign({color:t,background:n(d(this.background,this.theme),this.backgroundOpacity),"border-color":d(this.outline,this.theme)},e),o=Object.assign({},this.backgroundRotation?{transform:`rotate(-${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{}),h="brand-rotated"===this.shape?"duet-icon-shape-brand":`duet-icon-shape-${this.shape}`;return i(s,{key:"e2a6207edfe7af905325a3fe412f97a529c93ed8",class:{"duet-m-0":"none"===this.margin,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background}},i("span",{key:"0bd4b9de6c7c4fb0a2663fc16d742e9e0223aa5d","aria-hidden":"true",style:a,class:{"duet-icon":!0,"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background,[h]:!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme,"duet-icon-not-responsive":!this.responsive}},i("span",{key:"dca93a95c7f578585dcd6030f7d2bbdf50766ed5","aria-hidden":"true",class:{"duet-icon-svg":!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme},"data-name":this.name,innerHTML:this.svgContent,style:o})))}get element(){return a(this)}static get watchers(){return{src:["loadIcon"],icon:["loadIcon"],name:["loadIcon"]}}};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-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;display:block;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(7deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat;mask-position:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-7deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;overflow:clip;fill:currentColor;overflow-clip-margin:1px}:host([size=auto]) .duet-icon-svg{width:100%;height:100%}:host([size=xxx-small]) .duet-icon-svg{width:7px;height:7px}:host([size=xxx-small]) .duet-icon-has-background{padding:6px}:host([size=xxx-small]) .duet-icon-has-outline{padding:4px}:host([size=xxx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xxx-small]) .duet-icon-has-outline .duet-icon-svg{width:10px;height:10px}:host([size=xxx-small]) .duet-icon-shape-brand{padding:0}:host([size=xxx-small]) .duet-icon-shape-brand .duet-icon-svg{width:0;height:0}:host([size=xx-small]) .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-icon-has-background{padding:8px}:host([size=xx-small]) .duet-icon-has-outline{padding:7px}:host([size=xx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xx-small]) .duet-icon-has-outline .duet-icon-svg{width:16px;height:16px}:host([size=xx-small]) .duet-icon-shape-brand{padding:4px}:host([size=xx-small]) .duet-icon-shape-brand .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-theme-turva .duet-icon-shape-brand{width:18px;height:15px;padding:0}:host([size=x-small]) .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-icon-has-outline{padding:10px}:host([size=x-small]) .duet-icon-has-background{padding:12px}:host([size=x-small]) .duet-icon-shape-brand{padding:8px}:host([size=x-small]) .duet-icon-shape-brand .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-theme-turva .duet-icon-shape-brand{width:32px;height:30px;padding:0}:host([size=small]) .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-icon-has-background{padding:14px}:host([size=small]) .duet-icon-shape-brand{padding:8px}:host([size=small]) .duet-icon-shape-brand .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-theme-turva .duet-icon-shape-brand{width:36px;height:34px;padding:0}:host([size=medium]) .duet-icon-shape-brand{padding:12px}:host([size=medium]) .duet-icon-shape-brand .duet-icon-svg{width:24px;height:24px}:host([size=medium]) .duet-theme-turva .duet-icon-shape-brand{width:48px;height:44px;padding:0}:host([size=large]) .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-icon-shape-brand{padding:16px}:host([size=large]) .duet-icon-shape-brand .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-theme-turva .duet-icon-shape-brand{width:62px;height:56px;padding:0}:host([size=x-large]) .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-icon-shape-brand{padding:20px}:host([size=x-large]) .duet-icon-shape-brand .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-theme-turva .duet-icon-shape-brand{width:76px;height:68px;padding:0}:host([size=xx-large]) .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-icon-shape-brand{padding:24px}:host([size=xx-large]) .duet-icon-shape-brand .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-theme-turva .duet-icon-shape-brand{width:95px;height:86px;padding:0}:host([size=xxx-large]) .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){:host([size=xxx-large]) .duet-icon-svg{width:72px;height:72px}}:host([size=xxx-large]) .duet-icon-shape-brand{padding:36px}:host([size=xxx-large]) .duet-icon-shape-brand .duet-icon-svg{width:72px;height:72px}:host([size=xxx-large]) .duet-theme-turva .duet-icon-shape-brand{width:144px;height:130px;padding:0}";export{c as duet_icon}
|
|
4
|
+
import{E as t,r as e,h as i,H as s,g as a}from"./p-d3828a36.js";import{i as o}from"./p-aaa7a7bd.js";import{g as n,r as d}from"./p-3d9a63aa.js";import"./p-8b3b5673.js";const h=t=>{if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++)if(0===t.attributes[e].name.toLowerCase().indexOf("on"))return!1;if(t.children)for(let e=0;e<t.children.length;e++)if(!h(t.children[e]))return!1;return!0},r={};const u=class{constructor(t){e(this,t),this.svgContent=void 0,this.theme="",this.icon=void 0,this.src=void 0,this.name="action-add",this.margin="auto",this.responsive=!0,this.color="",this.background="",this.backgroundOpacity=1,this.backgroundRotation=0,this.size="medium",this.outline="",this.shape="circle"}async componentWillLoad(){o(this),this.src&&this.icon&&console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence","icon:",this.icon,"src:",this.src),await this.loadIcon(null,null)}async loadIcon(e,i){if(this.icon)return void(this.svgContent=this.icon);if(this.element.shadowRoot.querySelector("svg")&&!this.svgContent){if(null===i&&null===e)return;if(this.element.shadowRoot.querySelector(`.duet-icon-svg[data-name="${e}"]`))return}const s=this.src?this.src:(e=>{const i=window.duetcdnuri?window.duetcdnuri:t.cdnURIProd;return i.includes("localhost")?`${i}/icons/lib/assets/${e}.svg`:`${i}/icons/${t.duetIconVersion}/lib/assets/${e}.svg`})(this.name);try{this.svgContent=await function(t){if(r[t])return r[t];const e=async function(){const e=await fetch(t);if(!e.ok)throw new Error(`SVG request failed: ${e.status} ${e.statusText}`);const i=(t=>{if("undefined"==typeof document||!t)return;const e=document.createElement("div");e.innerHTML=t;for(let t=e.childNodes.length-1;t>=0;t--)"svg"!==e.childNodes[t].nodeName.toLowerCase()&&e.removeChild(e.childNodes[t]);return e.firstElementChild})(await e.text());if(!h(i))throw new Error("SVG validation failed");const s=document.createElement("div");return s.appendChild(i),s.innerHTML}();return r[t]=e}(s)}catch(t){console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${s}.`,t)}}render(){const t="currentColor"===this.color?"currentColor":n(this.color,this.theme)||n(this.outline,this.theme),e=this.backgroundRotation?{transform:`rotate(${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{},a=Object.assign({color:t,background:d(n(this.background,this.theme),this.backgroundOpacity),"border-color":n(this.outline,this.theme)},e),o=Object.assign({},this.backgroundRotation?{transform:`rotate(-${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{}),h="brand-rotated"===this.shape?"duet-icon-shape-brand":`duet-icon-shape-${this.shape}`;return i(s,{key:"395c9d34b58629802851652543d0351555440771",class:{"duet-m-0":"none"===this.margin,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background}},i("span",{key:"98e755e1955298019ae340e039416ca5ed04fa6c","aria-hidden":"true",style:a,class:{"duet-icon":!0,"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background,[h]:!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme,"duet-icon-not-responsive":!this.responsive}},i("span",{key:"1a5f2ff89504ee78d476800edc4cb9aeeb6927ae","aria-hidden":"true",class:{"duet-icon-svg":!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme},"data-name":this.name,innerHTML:this.svgContent,style:o})))}get element(){return a(this)}static get watchers(){return{src:["loadIcon"],icon:["loadIcon"],name:["loadIcon"]}}};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;margin-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;display:block;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(7deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat;mask-position:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-7deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;overflow:clip;fill:currentColor;overflow-clip-margin:1px}:host([size=auto]) .duet-icon-svg{width:100%;height:100%}:host([size=xxx-small]) .duet-icon-svg{width:7px;height:7px}:host([size=xxx-small]) .duet-icon-has-background{padding:6px}:host([size=xxx-small]) .duet-icon-has-outline{padding:4px}:host([size=xxx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xxx-small]) .duet-icon-has-outline .duet-icon-svg{width:10px;height:10px}:host([size=xxx-small]) .duet-icon-shape-brand{padding:0}:host([size=xxx-small]) .duet-icon-shape-brand .duet-icon-svg{width:0;height:0}:host([size=xx-small]) .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-icon-has-background{padding:8px}:host([size=xx-small]) .duet-icon-has-outline{padding:7px}:host([size=xx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xx-small]) .duet-icon-has-outline .duet-icon-svg{width:16px;height:16px}:host([size=xx-small]) .duet-icon-shape-brand{padding:4px}:host([size=xx-small]) .duet-icon-shape-brand .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-theme-turva .duet-icon-shape-brand{width:18px;height:15px;padding:0}:host([size=x-small]) .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-icon-has-outline{padding:10px}:host([size=x-small]) .duet-icon-has-background{padding:12px}:host([size=x-small]) .duet-icon-shape-brand{padding:8px}:host([size=x-small]) .duet-icon-shape-brand .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-theme-turva .duet-icon-shape-brand{width:32px;height:30px;padding:0}:host([size=small]) .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-icon-has-background{padding:14px}:host([size=small]) .duet-icon-shape-brand{padding:8px}:host([size=small]) .duet-icon-shape-brand .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-theme-turva .duet-icon-shape-brand{width:36px;height:34px;padding:0}:host([size=medium]) .duet-icon-shape-brand{padding:12px}:host([size=medium]) .duet-icon-shape-brand .duet-icon-svg{width:24px;height:24px}:host([size=medium]) .duet-theme-turva .duet-icon-shape-brand{width:48px;height:44px;padding:0}:host([size=large]) .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-icon-shape-brand{padding:16px}:host([size=large]) .duet-icon-shape-brand .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-theme-turva .duet-icon-shape-brand{width:62px;height:56px;padding:0}:host([size=x-large]) .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-icon-shape-brand{padding:20px}:host([size=x-large]) .duet-icon-shape-brand .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-theme-turva .duet-icon-shape-brand{width:76px;height:68px;padding:0}:host([size=xx-large]) .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-icon-shape-brand{padding:24px}:host([size=xx-large]) .duet-icon-shape-brand .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-theme-turva .duet-icon-shape-brand{width:95px;height:86px;padding:0}:host([size=xxx-large]) .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){:host([size=xxx-large]) .duet-icon-svg{width:72px;height:72px}}:host([size=xxx-large]) .duet-icon-shape-brand{padding:36px}:host([size=xxx-large]) .duet-icon-shape-brand .duet-icon-svg{width:72px;height:72px}:host([size=xxx-large]) .duet-theme-turva .duet-icon-shape-brand{width:144px;height:130px;padding:0}";export{u as duet_icon}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function l(e){try{n(o.next(e))}catch(e){s(e)}}function a(e){try{n(o["throw"](e))}catch(e){s(e)}}function n(e){e.done?i(e.value):r(e.value).then(l,a)}n((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,r,s,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(t){return n([e,t])}}function n(a){if(o)throw new TypeError("Generator is already executing.");while(l&&(l=0,a[0]&&(i=0)),i)try{if(o=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(a[0]===6&&i.label<s[1]){i.label=s[1];s=a;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(a);break}if(s[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{o=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++){if(s||!(o in t)){if(!s)s=Array.prototype.slice.call(t,0,o);s[o]=t[o]}}return e.concat(s||Array.prototype.slice.call(t))};
|
|
2
|
+
/*!
|
|
3
|
+
* Built with Duet Design System
|
|
4
|
+
*/System.register(["./p-7e08d07c.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js","./p-6059af2f.system.js","./p-841a55c5.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,o,r,s,l,a,n,u,c,d,h,m,b,f,p,g,v,x;return{setters:[function(e){t=e.r;i=e.c;o=e.h;r=e.H;s=e.g},function(e){l=e.i},function(e){a=e.c},function(e){n=e.f;u=e.o;c=e.j;d=e.d;h=e.b;m=e.a;b=e.c},function(e){f=e.a;p=e.c;g=e.d},function(e){v=e.c},function(e){x=e.p}],execute:function(){var y='*,*::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:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-multiselect-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-multiselect-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-multiselect{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !important;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:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-multiselect .duet-multiselect-label{overflow:hidden;text-overflow:ellipsis}.duet-multiselect:hover{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e55039}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e55039}.duet-multiselect[disabled]{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-multiselect[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-multiselect>:first-child{flex:1;min-height:24px}.duet-multiselect .duet-multiselect-badge{padding:4px 8px 4px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);background:#d9ebf4;border-radius:20rem}.duet-theme-turva .duet-multiselect .duet-multiselect-badge{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-multiselect .duet-multiselect-icon{margin-left:12px}.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-multiselect{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.duet-multiselect svg{width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:rgb(23, 28, 58)}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228);box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons{padding:8px 0;margin:-16px;margin-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{padding:6px 16px;margin:-4px 0;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;color:rgb(0, 119, 179);cursor:pointer;border-radius:4px}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus,.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:first-child{border-right:1px solid rgb(212, 223, 229)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(23, 28, 58)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(8, 42, 77)}.duet-multiselect-checkboxes fieldset{margin-top:8px;margin-bottom:12px}.duet-multiselect-checkboxes fieldset+fieldset{margin-top:28px}.duet-multiselect-checkboxes legend{margin-bottom:12px;font-size:1rem;font-weight:600}.duet-multiselect-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{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)}.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var k=y;function w(e,t){return e.includes(t)?e.filter((function(e){return e!==t})):__spreadArray(__spreadArray([],e,true),[t],false)}var S=e("duet_multiselect",function(){function e(e){var o=this;t(this,e);this.duetChange=i(this,"duetChange",3);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.errorId=a("DuetError");this.labelId=a("DuetLabel");this.topCaptionId=a("DuetCaptionTop");this.selectedLangObject={en:"selected",fi:"valittu",sv:"vald"};this.selectAllLabel={en:"Select all",fi:"Valitse kaikki",sv:"Välj alla"};this.clearAllLabel={en:"Clear all",fi:"Tyhjennä kaikki",sv:"Rensa alla"};this.placeholderLabel={en:"Hint",fi:"Vihje",sv:"Tips"};this.onChange=function(e){o.duetChange.emit({originalEvent:e,value:o.value,component:"duet-multiselect"})};this.onBlur=function(e){o.duetBlur.emit({originalEvent:e,value:o.value,component:"duet-multiselect"})};this.onFocus=function(e){o.duetFocus.emit({originalEvent:e,value:o.value,component:"duet-multiselect"})};this.onMultiselectKeyDown=function(e){if(n(e)||u(e)){if(o.checkboxesVisible){o.checkboxesVisible=false;o.multiselectElement.focus();e.preventDefault()}}};this.onMultiselectInputKeyDown=function(e){if(c(e)){e.preventDefault();o.toggleCheckboxes();setTimeout((function(){if(o.checkboxesVisible){var e=o.element.shadowRoot.querySelector("#".concat(o.getOptionIdentifier(o.allControls?-2:0)));if(e){e.focus()}}}),200)}};this.onCheckboxKeyDown=function(e,t){var i;if(d(e)||h(e)){i=o.element.shadowRoot.querySelector("#".concat(o.getOptionIdentifier(t-1)))}else if(m(e)||b(e)){i=o.element.shadowRoot.querySelector("#".concat(o.getOptionIdentifier(t+1)))}if(i){i.focus();e.preventDefault();o.activeDescendant=i.id}};this.toggleCheckboxes=function(){o.checkboxesVisible=!o.checkboxesVisible};this.toggleCheckbox=function(e,t){o.value=w(o.value,t);o.onChange(e)};this.handleSelectAllClick=function(e){o.value=o.processedItems;o.onChange(e)};this.handleClearAllClick=function(e){o.value=[];o.onChange(e)};this.getOptionIdentifier=function(e){return"".concat(o.identifier,"-option-").concat(e)};this.getDescribedBy=function(){var e=[];if(o.isCaptionVisible&&o.topCaptionId){e.push(o.topCaptionId)}if(o.accessibleDescribedBy){e.push(o.accessibleDescribedBy)}if(o.error){e.push(o.errorId)}return e.length>0?e.join(" "):null};this.processedItems=[];this.processedGroups=[];this.checkboxesVisible=false;this.activeDescendant="";this.language=f();this.margin="auto";this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=[];this.theme="";this.labelHidden=false;this.identifier=a("DuetMultiselect");this.allControls=false;this.placeholder="";this.caption=undefined;this.items=undefined;this.disabled=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.accessibleDescribedBy=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.handleFocus=function(e){var t=this;var i=e.composedPath().every((function(e){return e!==t.element}));if(i){this.checkboxesVisible=false}};e.prototype.componentWillLoad=function(){l(this);this.isCaptionVisible=!!this.caption;v(this.element,"tooltip","duet-tooltip",1,true);this.refresh()};e.prototype.connectedCallback=function(){p(this)};e.prototype.disconnectedCallback=function(){g(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.multiselectElement){this.multiselectElement.focus(e)}return[2]}))}))};e.prototype.selectWithValues=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.processedItems.filter((function(t){return e.includes(t.value)}));this.value=Array.from(new Set(__spreadArray(__spreadArray([],this.value,true),t,true)));return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(i){e=x(this.items);this.processedItems=[];this.processedGroups=[];if(!e||e.length===0){return[2]}if(e[0].items!==undefined){this.processedGroups=e}else{this.processedGroups=[{label:"",items:e}]}this.processedGroups.forEach((function(e){return e.items.forEach((function(e){return t.processedItems.push(e)}))}));return[2]}))}))};e.prototype.render=function(){var e=this;var t;return o(r,{key:"d88436c71fa360266440b8574bb2d35536cc65bd",class:{"duet-m-0":this.margin==="none","duet-expand":this.expand}},o("div",{key:"212b648e8147fb2e58294009eb8aef03556f8684",class:{"duet-multiselect-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error},onKeyDown:function(t){return e.onMultiselectKeyDown(t)}},o("duet-label",{key:"9d4bec69691f6adc615c9366e86abf5f59fc39a6",theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:this.identifier},this.label),this.tooltip&&o("duet-tooltip",{key:"3ba3a824ae8535ecafbfc73d0477da38e8146867",class:"duet-multiselect-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),o("slot",{key:"c8fccccab9473eeb7d81b2b947b6732f6fe31111",name:"tooltip"}),this.caption&&o("duet-caption",{key:"7ccb8a12ae76b75762161f444d3a058be2d35b84",id:this.topCaptionId,size:"medium"},this.caption),o("div",{key:"1c61620d8dfeec8fdc4448028951b9a1a4a9968e",class:"duet-multiselect-wrapper"},o("button",{key:"3f2902a54d79a81144128cae9b62641ce234802a",id:this.identifier,ref:function(t){return e.multiselectElement=t},class:{"duet-multiselect":true,"duet-multiselect-active":this.checkboxesVisible},tabindex:"0",onClick:function(){return e.toggleCheckboxes()},onFocus:function(t){return e.onFocus(t)},onBlur:function(t){return e.onBlur(t)},role:"combobox","aria-expanded":this.checkboxesVisible?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-owns":"".concat(this.identifier,"-checkboxes"),onKeyDown:function(t){return e.onMultiselectInputKeyDown(t)},disabled:this.disabled},o("span",{key:"04aec38aa6af20357b28bee3373c830bd34c0580",role:"textbox","aria-readonly":"true","aria-multiline":"false","aria-autocomplete":"none","aria-controls":"".concat(this.identifier,"-checkboxes"),"aria-label":this.placeholderLabel[this.language],class:"duet-multiselect-label"},this.placeholder),this.value&&this.value.length>0&&o("span",{key:"3dfe64b81ce62342b83ec4ea44bc1a1ec7544355",class:"duet-multiselect-badge"},this.value.length,o("duet-visually-hidden",{key:"1dbd858425faeae0a323b3313913feec214549cd"},this.selectedLangObject[this.language],", ",this.value.map((function(e){return e.label})).join(", "))),o("svg",{key:"40b599d5cfa8362c2edeb63aa59c9be3cecf3e80",class:{"duet-multiselect-icon":true,"duet-multiselect-icon--rotate":this.checkboxesVisible},fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o("path",{key:"6c28e4b2bb0c486a8698fa0615fff12df29e157a",d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"}))),o("div",{key:"6ea881d05fcbdeb899a1eb41b84f8b9653446eb4",id:"".concat(this.identifier,"-checkboxes"),role:"listbox",class:{"duet-multiselect-checkboxes":true,"duet-multiselect-checkboxes-active":this.checkboxesVisible},"aria-activedescendant":this.activeDescendant,"aria-multiselectable":"true"},((t=this.processedItems)===null||t===void 0?void 0:t.length)&&this.allControls&&o("div",{key:"63392964c348477e8b375b96084d4c4cbbf2143a",class:"duet-multiselect-all-control-buttons"},o("button",{key:"b7e0f951cd805058fc5ba9376ada31d42dcceb8e",class:"duet-multiselect-select-all",onClick:this.handleSelectAllClick,id:this.getOptionIdentifier(-2),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-2)}},this.selectAllLabel[this.language]),o("button",{key:"a8d826e0afeaf86fbcaa2289f41ffeca9cd04b43",class:"duet-multiselect-clear-all",onClick:this.handleClearAllClick,id:this.getOptionIdentifier(-1),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-1)}},this.clearAllLabel[this.language])),this.processedItems&&this.processedGroups.map((function(t){return o("fieldset",null,t.label&&o("legend",null,t.label),t.items.map((function(t,i){var r,s;return o("duet-checkbox",{identifier:e.getOptionIdentifier(i),role:"option",label:t.label,value:t.value,key:t.value,checked:(r=e.value)===null||r===void 0?void 0:r.includes(t),"accessible-selected":((s=e.value)===null||s===void 0?void 0:s.includes(t))?"true":undefined,disabled:!e.checkboxesVisible||t.disabled,onDuetChange:function(i){return e.toggleCheckbox(i,t)},onKeyDown:function(t){return e.onCheckboxKeyDown(t,i)},theme:e.theme})})))})))),o("span",{key:"78597a6d044e0186dcb06a22bdb897884e24739e",class:"duet-multiselect-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&o("span",{key:"6b33900eb2e81a104b8370a520aaf378d18155cf"},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{items:["refresh"]}},enumerable:false,configurable:true});return e}());S.style=k}}}));
|