@duetds/components 9.1.0 → 9.1.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 +659 -206
- package/lib/cjs/{app-globals-19129234.js → app-globals-75ae6194.js} +1 -1
- package/lib/cjs/{bodyScrollLock.es6-4f765d37.js → bodyScrollLock.es6-dd2d7d91.js} +4 -58
- package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-alert.cjs.entry.js +3 -3
- package/lib/cjs/duet-badge.cjs.entry.js +3 -3
- package/lib/cjs/duet-banner.cjs.entry.js +4 -4
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +6 -6
- package/lib/cjs/duet-button_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-callout.cjs.entry.js +4 -4
- package/lib/cjs/duet-caption_4.cjs.entry.js +6 -6
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +3 -3
- package/lib/cjs/duet-chip.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
- package/lib/cjs/duet-combobox.cjs.entry.js +3 -3
- package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +38 -6
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +9 -9
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
- package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +3 -3
- package/lib/cjs/duet-grid_2.cjs.entry.js +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 +5 -5
- package/lib/cjs/duet-layout.cjs.entry.js +2 -2
- package/lib/cjs/duet-list_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
- package/lib/cjs/duet-modal.cjs.entry.js +5 -5
- package/lib/cjs/duet-multiselect.cjs.entry.js +3 -3
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
- package/lib/cjs/duet-overlay.cjs.entry.js +1 -1
- package/lib/cjs/duet-page-heading.cjs.entry.js +6 -5
- package/lib/cjs/duet-pagination_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-popup-menu.cjs.entry.js +2 -2
- package/lib/cjs/duet-progress.cjs.entry.js +2 -2
- package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
- package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +57 -37
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +2 -2
- package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
- package/lib/cjs/duet-show-more.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +12 -12
- package/lib/cjs/duet-slideout.cjs.entry.js +6 -6
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
- package/lib/cjs/duet-textarea.cjs.entry.js +7 -7
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +11 -5
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar.cjs.entry.js +11 -5
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
- package/lib/cjs/duet-tray.cjs.entry.js +5 -5
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-2e19f306.js → errorcodes.utils-388375fb.js} +1 -1
- package/lib/cjs/{focus-utils-03f36574.js → focus-utils-8bf2f9fe.js} +1 -1
- package/lib/cjs/{index-ebd46b0b.js → index-9e6f7e53.js} +2 -2
- package/lib/cjs/{language-utils-3937023a.js → language-utils-0eb766d8.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-c54c81cf.js → slot-utils-0975145c.js} +1 -1
- package/lib/cjs/{token-utils-2a219fda.js → token-utils-ecc7f5a1.js} +1 -1
- package/lib/cjs/{tokens-851fb0c9.js → tokens-1c133754.js} +252 -0
- package/lib/cjs/{tokens.module-3e57c188.js → tokens.module-cf303205.js} +168 -0
- package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.js +1 -1
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.js +5 -5
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +6 -6
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +40 -7
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +7 -7
- package/lib/collection/components/duet-grid/duet-grid.css +7 -6
- package/lib/collection/components/duet-grid/duet-grid.js +3 -3
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.css +12 -0
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-input/duet-input.js +8 -8
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.js +1 -1
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list/duet-list.js +3 -3
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +4 -4
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +6 -6
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +7 -0
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +7 -6
- package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +69 -40
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +76 -32
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
- package/lib/collection/components/duet-slideout/duet-slideout.js +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.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +9 -12
- package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +10 -4
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +12 -6
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +28 -12
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +12 -6
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +16 -16
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +5 -5
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +6 -6
- 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 +4 -4
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +9 -9
- package/lib/dist-custom-elements/duet-choice.js +6 -6
- package/lib/dist-custom-elements/duet-collapsible.js +4 -4
- package/lib/dist-custom-elements/duet-combobox.js +15 -15
- package/lib/dist-custom-elements/duet-contact-card.js +11 -11
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +52 -19
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +9 -9
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
- package/lib/dist-custom-elements/duet-footer.js +9 -9
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +12 -12
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +12 -12
- 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 +2 -2
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-menu-bar-item.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
- package/lib/dist-custom-elements/duet-modal.js +12 -12
- 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 +5 -5
- package/lib/dist-custom-elements/duet-notification.js +5 -5
- package/lib/dist-custom-elements/duet-number-input.js +13 -13
- package/lib/dist-custom-elements/duet-overlay.js +1 -1
- package/lib/dist-custom-elements/duet-page-heading.js +7 -6
- package/lib/dist-custom-elements/duet-pagination.js +15 -15
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -2
- package/lib/dist-custom-elements/duet-popup-menu.js +2 -2
- 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 +9 -9
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +3 -3
- package/lib/dist-custom-elements/duet-range-stepper.js +5 -5
- 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 +4 -4
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-slideout-panel.js +12 -12
- package/lib/dist-custom-elements/duet-slideout.js +7 -7
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +7 -7
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar.js +10 -10
- package/lib/dist-custom-elements/duet-tab-group.js +14 -14
- 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 +18 -17
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-toolbar-item.js +12 -6
- package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar.js +11 -5
- 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 +7 -7
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload-item.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +23 -23
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +2 -2
- package/lib/dist-custom-elements/{p-281748a2.js → p-00d7b302.js} +1 -1
- package/lib/dist-custom-elements/{p-df36f700.js → p-11d8af72.js} +6 -6
- package/lib/dist-custom-elements/{p-08fa1a36.js → p-132de48f.js} +2 -2
- package/lib/dist-custom-elements/{p-a5df65c8.js → p-16a278f4.js} +6 -6
- package/lib/dist-custom-elements/{p-d8ba00cc.js → p-1e7abd9f.js} +6 -6
- package/lib/dist-custom-elements/{p-792d7c98.js → p-239cfc2e.js} +2 -2
- package/lib/dist-custom-elements/{p-f0df190d.js → p-39b4be25.js} +8 -8
- package/lib/dist-custom-elements/{p-2c76f207.js → p-3caf29d6.js} +1 -1
- package/lib/dist-custom-elements/{p-4d8308bb.js → p-401837cb.js} +3 -3
- package/lib/dist-custom-elements/{p-ea66b08e.js → p-434e64ad.js} +6 -6
- package/lib/dist-custom-elements/{p-50fa8f56.js → p-52618a53.js} +3 -3
- package/lib/dist-custom-elements/{p-d30997fe.js → p-53d15ae4.js} +60 -39
- package/lib/dist-custom-elements/{p-e57f3b80.js → p-5f658e84.js} +12 -12
- package/lib/dist-custom-elements/{p-4cb2814b.js → p-6081e535.js} +1 -1
- package/lib/dist-custom-elements/{p-317b4bb8.js → p-69f6a6aa.js} +1 -1
- package/lib/dist-custom-elements/{p-d107d41a.js → p-74f689ae.js} +2 -2
- package/lib/dist-custom-elements/{p-15b6275c.js → p-7a7a6a7b.js} +9 -9
- package/lib/dist-custom-elements/{p-637da1ab.js → p-7a8eda34.js} +6 -6
- package/lib/dist-custom-elements/{p-3d107c96.js → p-7c8f29a0.js} +4 -4
- package/lib/dist-custom-elements/{p-e12ab5ab.js → p-7dfb4906.js} +6 -6
- package/lib/dist-custom-elements/{p-9ef0a452.js → p-8354d1f1.js} +4 -58
- package/lib/dist-custom-elements/{p-af317108.js → p-8979d055.js} +2 -2
- package/lib/dist-custom-elements/{p-6e296899.js → p-8acea31f.js} +3 -3
- package/lib/dist-custom-elements/{p-36beca8c.js → p-926dfd0d.js} +2 -2
- package/lib/dist-custom-elements/{p-5533950d.js → p-9635880c.js} +5 -5
- package/lib/dist-custom-elements/{p-7cea34ca.js → p-9ef37cc5.js} +2 -2
- package/lib/dist-custom-elements/{p-63de5db1.js → p-a1979351.js} +3 -3
- package/lib/dist-custom-elements/{p-70d48274.js → p-a7559bee.js} +7 -7
- package/lib/dist-custom-elements/{p-c3854d56.js → p-a9169fe0.js} +1 -1
- package/lib/dist-custom-elements/{p-015b9f09.js → p-b1aa75c1.js} +6 -6
- package/lib/dist-custom-elements/{p-4ecc1476.js → p-bec25ec5.js} +2 -2
- package/lib/dist-custom-elements/{p-fc9b988f.js → p-c5df07b9.js} +1 -1
- package/lib/dist-custom-elements/{p-b5512507.js → p-c5f82e3b.js} +1 -1
- package/lib/dist-custom-elements/{p-66568599.js → p-c77f9e4d.js} +3 -3
- package/lib/dist-custom-elements/{p-b04ae8e7.js → p-cc58e64e.js} +3 -3
- package/lib/dist-custom-elements/{p-d11e5471.js → p-cd8e9097.js} +1 -1
- package/lib/{esm/tokens-a9d9d4dd.js → dist-custom-elements/p-d5c7ae62.js} +252 -0
- package/lib/dist-custom-elements/{p-67ef919e.js → p-dc26d4a2.js} +168 -0
- package/lib/dist-custom-elements/{p-2a77c348.js → p-ddb9e9be.js} +3 -3
- package/lib/dist-custom-elements/{p-6403f13b.js → p-e399097c.js} +2 -2
- package/lib/dist-custom-elements/{p-39f16926.js → p-f43704a4.js} +1 -1
- package/lib/dist-custom-elements/{p-a63c4d39.js → p-f5924b7d.js} +2 -2
- package/lib/dist-custom-elements/{p-3ec3eb5f.js → p-fac41d14.js} +1 -1
- package/lib/dist-custom-elements/{p-f839894b.js → p-fdc2bf62.js} +13 -13
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-0974e195.js → p-00f584d4.js} +1 -1
- package/lib/duet/{p-c7df33d3.system.entry.js → p-012938af.system.entry.js} +1 -1
- package/lib/duet/{p-7afa171a.system.entry.js → p-01ce7028.system.entry.js} +1 -1
- package/lib/duet/{p-0d2e5d20.system.entry.js → p-03eab84c.system.entry.js} +1 -1
- package/lib/duet/p-04085d32.entry.js +4 -0
- package/lib/duet/{p-8469d548.system.entry.js → p-0487aadb.system.entry.js} +1 -1
- package/lib/duet/{p-9825abb9.system.entry.js → p-053113a9.system.entry.js} +1 -1
- package/lib/duet/{p-e3872748.entry.js → p-064b79e8.entry.js} +1 -1
- package/lib/duet/{p-42a3bc8e.system.js → p-0853dd3b.system.js} +1 -1
- package/lib/duet/{p-88476170.entry.js → p-08727974.entry.js} +1 -1
- package/lib/duet/{p-02388a48.js → p-0b249181.js} +1 -1
- package/lib/duet/{p-7ddc0285.entry.js → p-0b2e581f.entry.js} +1 -1
- package/lib/duet/{p-bddee5f2.entry.js → p-0d9de644.entry.js} +1 -1
- package/lib/duet/{p-5adb49e0.system.entry.js → p-0e255314.system.entry.js} +1 -1
- package/lib/duet/{p-bea77c4f.system.js → p-0fee15c1.system.js} +1 -1
- package/lib/duet/{p-bff085a1.system.entry.js → p-11d01633.system.entry.js} +1 -1
- package/lib/duet/{p-75abe569.system.entry.js → p-12155eae.system.entry.js} +1 -1
- package/lib/duet/{p-97304f52.entry.js → p-123e5149.entry.js} +1 -1
- package/lib/duet/{p-69d919cc.entry.js → p-14dc7cf5.entry.js} +1 -1
- package/lib/duet/p-18766573.entry.js +4 -0
- package/lib/duet/{p-f2dd4d11.system.entry.js → p-191f51da.system.entry.js} +1 -1
- package/lib/duet/{p-293c2c6a.system.entry.js → p-1b5ce17e.system.entry.js} +1 -1
- package/lib/duet/{p-bcdef94c.entry.js → p-1c8c9651.entry.js} +1 -1
- package/lib/duet/{p-94bafe83.system.entry.js → p-20393f34.system.entry.js} +1 -1
- package/lib/duet/{p-0288f5a5.entry.js → p-20a0e98c.entry.js} +1 -1
- package/lib/duet/{p-fb83bab6.entry.js → p-22a5ac0a.entry.js} +1 -1
- package/lib/duet/{p-21d85be8.entry.js → p-22c7d5ee.entry.js} +1 -1
- package/lib/duet/p-22cb3c28.system.entry.js +4 -0
- package/lib/duet/{p-06a97d6c.entry.js → p-2349ea53.entry.js} +1 -1
- package/lib/duet/{p-64636df3.entry.js → p-236df5f1.entry.js} +1 -1
- package/lib/duet/{p-3a0d442a.entry.js → p-2526c848.entry.js} +1 -1
- package/lib/duet/p-26c71746.system.js +4 -0
- package/lib/duet/{p-5b09f7c0.entry.js → p-2b3b6d33.entry.js} +1 -1
- package/lib/duet/{p-eb32c9bd.entry.js → p-2c999efc.entry.js} +1 -1
- package/lib/duet/p-2e108879.js +4 -0
- package/lib/duet/{p-c1445714.system.js → p-2f891fbb.system.js} +1 -1
- package/lib/duet/{p-547aea90.entry.js → p-2fc10b59.entry.js} +1 -1
- package/lib/duet/{p-7bf404f2.entry.js → p-30f2d20a.entry.js} +1 -1
- package/lib/duet/{p-172e305c.entry.js → p-31ee8ad8.entry.js} +1 -1
- package/lib/duet/{p-c2fe6cf4.system.entry.js → p-3233973c.system.entry.js} +1 -1
- package/lib/duet/{p-62fade78.system.entry.js → p-337009ba.system.entry.js} +1 -1
- package/lib/duet/{p-637f8408.system.entry.js → p-33ca3555.system.entry.js} +1 -1
- package/lib/duet/{p-75f8c18a.entry.js → p-344d401b.entry.js} +1 -1
- package/lib/duet/{p-b7ea092c.system.entry.js → p-35bf92a1.system.entry.js} +1 -1
- package/lib/duet/{p-299ad444.system.entry.js → p-36637566.system.entry.js} +2 -2
- package/lib/duet/p-38ab5505.entry.js +4 -0
- package/lib/duet/{p-8312cf06.system.entry.js → p-3a5b7cf7.system.entry.js} +1 -1
- package/lib/duet/{p-be3f3681.entry.js → p-3affe362.entry.js} +1 -1
- package/lib/duet/{p-cc9ce7e0.system.entry.js → p-3b668f9d.system.entry.js} +1 -1
- package/lib/duet/{p-d218a340.entry.js → p-45d596e8.entry.js} +1 -1
- package/lib/duet/{p-dac3e10f.system.entry.js → p-471c18e5.system.entry.js} +1 -1
- package/lib/duet/{p-ad305457.entry.js → p-47e4eada.entry.js} +1 -1
- package/lib/duet/{p-bc02525c.system.entry.js → p-493a25c0.system.entry.js} +1 -1
- package/lib/duet/p-49957220.system.js +4 -0
- package/lib/duet/{p-e7387900.system.js → p-4a689653.system.js} +1 -1
- package/lib/duet/{p-93536977.system.entry.js → p-4ab05bd1.system.entry.js} +1 -1
- package/lib/duet/{p-1c286737.system.entry.js → p-4f47944f.system.entry.js} +1 -1
- package/lib/duet/p-4f7a0a49.entry.js +4 -0
- package/lib/duet/{p-030be079.entry.js → p-50428ca6.entry.js} +1 -1
- package/lib/duet/p-50c83774.js +4 -0
- package/lib/duet/{p-53c60309.system.entry.js → p-541301b8.system.entry.js} +1 -1
- package/lib/duet/{p-7b52f4a5.system.entry.js → p-5432aefa.system.entry.js} +1 -1
- package/lib/duet/{p-54ee08b2.entry.js → p-5446b2c4.entry.js} +1 -1
- package/lib/duet/{p-d32e7663.system.entry.js → p-54f1f550.system.entry.js} +1 -1
- package/lib/duet/{p-ac09ec89.system.entry.js → p-59ae9e27.system.entry.js} +1 -1
- package/lib/duet/{p-ceef7b32.entry.js → p-5cd8706b.entry.js} +1 -1
- package/lib/duet/{p-54e73ed0.js → p-5e2f8206.js} +1 -1
- package/lib/duet/{p-6875b485.system.entry.js → p-5e502442.system.entry.js} +1 -1
- package/lib/duet/{p-96235745.entry.js → p-5ed66d93.entry.js} +1 -1
- package/lib/duet/{p-7e8f4ba8.system.entry.js → p-60327ec6.system.entry.js} +1 -1
- package/lib/duet/{p-3a6e7a46.entry.js → p-62cf9516.entry.js} +1 -1
- package/lib/duet/{p-92cff4e6.system.entry.js → p-632363b9.system.entry.js} +1 -1
- package/lib/duet/{p-8d12b544.system.entry.js → p-63f80431.system.entry.js} +1 -1
- package/lib/duet/{p-8fbe1dea.system.entry.js → p-64da9c94.system.entry.js} +1 -1
- package/lib/duet/{p-402a9848.entry.js → p-695da2aa.entry.js} +1 -1
- package/lib/duet/{p-a72545df.entry.js → p-697c4f57.entry.js} +1 -1
- package/lib/duet/{p-183ead95.entry.js → p-6a0ed208.entry.js} +1 -1
- package/lib/duet/{p-f9e503a7.entry.js → p-6a34f6be.entry.js} +1 -1
- package/lib/duet/p-6c917ed9.entry.js +4 -0
- package/lib/duet/{p-631d73ef.entry.js → p-6cd9ae43.entry.js} +1 -1
- package/lib/duet/{p-8db92e13.entry.js → p-6d11c049.entry.js} +1 -1
- package/lib/duet/p-6d405ca2.system.entry.js +4 -0
- package/lib/duet/{p-fa62569b.entry.js → p-6df59cfe.entry.js} +1 -1
- package/lib/duet/{p-c8bb6bf0.entry.js → p-6e0ff6ff.entry.js} +1 -1
- package/lib/duet/{p-d43cf4b2.entry.js → p-6e8ebe18.entry.js} +1 -1
- package/lib/duet/{p-407958d3.system.entry.js → p-6faa9435.system.entry.js} +2 -2
- package/lib/duet/{p-3600ec4f.system.entry.js → p-6fde361f.system.entry.js} +1 -1
- package/lib/duet/{p-f59de4ec.entry.js → p-730ac0b8.entry.js} +1 -1
- package/lib/duet/{p-230e9f86.entry.js → p-73170927.entry.js} +1 -1
- package/lib/duet/{p-ab228f75.system.entry.js → p-754100c9.system.entry.js} +1 -1
- package/lib/duet/{p-fb9ba50a.system.entry.js → p-758cb2a2.system.entry.js} +1 -1
- package/lib/duet/{p-18d54ba0.system.entry.js → p-76ebeb39.system.entry.js} +2 -2
- package/lib/duet/{p-a52e3746.system.entry.js → p-76eec0c0.system.entry.js} +1 -1
- package/lib/duet/{p-0a784cb4.system.entry.js → p-7cc379a7.system.entry.js} +1 -1
- package/lib/duet/p-7e06948d.entry.js +4 -0
- package/lib/duet/{p-a2797342.entry.js → p-7f96f678.entry.js} +1 -1
- package/lib/duet/p-8354d1f1.js +4 -0
- package/lib/duet/{p-d0a6d2f8.js → p-8507509a.js} +1 -1
- package/lib/duet/{p-86fa56c3.entry.js → p-85f4d527.entry.js} +1 -1
- package/lib/duet/{p-36ae0d4b.entry.js → p-86ba2e23.entry.js} +1 -1
- package/lib/duet/{p-616cb288.system.entry.js → p-86f0eef8.system.entry.js} +1 -1
- package/lib/duet/{p-baf037be.entry.js → p-8980f13e.entry.js} +1 -1
- package/lib/duet/p-8a9f676f.system.entry.js +4 -0
- package/lib/duet/{p-4e6d4bd1.system.entry.js → p-8aaadc21.system.entry.js} +1 -1
- package/lib/duet/p-8ab41ea5.entry.js +4 -0
- package/lib/duet/{p-ca108af8.entry.js → p-8c84e41c.entry.js} +1 -1
- package/lib/duet/{p-8e56c5cc.entry.js → p-8cacd5d4.entry.js} +1 -1
- package/lib/duet/{p-c25dfa40.system.entry.js → p-8cb3b550.system.entry.js} +1 -1
- package/lib/duet/{p-ca000b63.entry.js → p-8d25bac7.entry.js} +1 -1
- package/lib/duet/{p-aaf9fd0b.entry.js → p-8de97e36.entry.js} +1 -1
- package/lib/duet/{p-c60b9cab.system.entry.js → p-8f1823c2.system.entry.js} +1 -1
- package/lib/duet/{p-1a310a67.system.entry.js → p-8f2af04b.system.entry.js} +1 -1
- package/lib/duet/p-902c3cbe.system.entry.js +4 -0
- package/lib/duet/{p-806e033e.system.entry.js → p-9070bf89.system.entry.js} +2 -2
- package/lib/duet/p-91115d1e.system.js +4 -0
- package/lib/duet/{p-7cba8be4.system.entry.js → p-91374fa5.system.entry.js} +1 -1
- package/lib/duet/{p-07e9c7c0.system.entry.js → p-91bf41a8.system.entry.js} +1 -1
- package/lib/duet/{p-21be6554.entry.js → p-934124e4.entry.js} +1 -1
- package/lib/duet/p-946101a9.js +4 -0
- package/lib/duet/p-966bf379.system.entry.js +4 -0
- package/lib/duet/{p-9179605e.system.entry.js → p-997146fa.system.entry.js} +1 -1
- package/lib/duet/{p-8589b880.system.entry.js → p-9d3ef1e0.system.entry.js} +1 -1
- package/lib/duet/{p-c9514e6a.system.entry.js → p-9d521ea1.system.entry.js} +1 -1
- package/lib/duet/{p-431cee8e.system.js → p-9e4c6ea7.system.js} +1 -1
- package/lib/duet/{p-1ddc1a11.entry.js → p-9ea9329f.entry.js} +1 -1
- package/lib/duet/{p-3df8e906.system.entry.js → p-a1a10757.system.entry.js} +2 -2
- package/lib/duet/{p-d9bc8115.system.entry.js → p-a1af9ad9.system.entry.js} +1 -1
- package/lib/duet/{p-c216b46f.system.entry.js → p-a2c01fc7.system.entry.js} +1 -1
- package/lib/duet/{p-ee46fe06.entry.js → p-a2ddcf90.entry.js} +1 -1
- package/lib/duet/{p-0643e6a6.entry.js → p-a365e326.entry.js} +1 -1
- package/lib/duet/{p-f0dbb83a.system.entry.js → p-a4a42c3e.system.entry.js} +1 -1
- package/lib/duet/{p-ba7822ae.entry.js → p-a81e7736.entry.js} +1 -1
- package/lib/duet/p-aa8648b3.system.entry.js +4 -0
- package/lib/duet/{p-bd75bb02.entry.js → p-ab78e681.entry.js} +1 -1
- package/lib/duet/{p-d7b6a678.entry.js → p-ae4cd43d.entry.js} +1 -1
- package/lib/duet/{p-98d7ac34.entry.js → p-ae6de40d.entry.js} +1 -1
- package/lib/duet/p-b3bbea88.system.entry.js +4 -0
- package/lib/duet/{p-57f3a5c7.system.entry.js → p-b5aaa528.system.entry.js} +2 -2
- package/lib/duet/{p-6e8d6778.system.entry.js → p-b64eb2b3.system.entry.js} +1 -1
- package/lib/duet/{p-646fc66f.system.entry.js → p-b839f59a.system.entry.js} +1 -1
- package/lib/duet/{p-9434318d.system.entry.js → p-b93605ee.system.entry.js} +1 -1
- package/lib/duet/p-bf40b101.entry.js +4 -0
- package/lib/duet/p-bfb824c6.entry.js +4 -0
- package/lib/duet/p-c2ca9373.entry.js +4 -0
- package/lib/duet/{p-34f3810c.system.entry.js → p-c3035dee.system.entry.js} +1 -1
- package/lib/duet/{p-d5d6daf0.system.entry.js → p-c3524f86.system.entry.js} +1 -1
- package/lib/duet/{p-48b17bf7.entry.js → p-c3573c7a.entry.js} +1 -1
- package/lib/duet/{p-11205af5.system.entry.js → p-c5332265.system.entry.js} +2 -2
- package/lib/duet/{p-cc3a9eef.entry.js → p-c7aea431.entry.js} +1 -1
- package/lib/duet/{p-b4803a69.system.entry.js → p-cb9d279b.system.entry.js} +1 -1
- package/lib/duet/{p-2289ef54.system.entry.js → p-ce289a58.system.entry.js} +1 -1
- package/lib/duet/{p-691e5e43.entry.js → p-cf05a9a4.entry.js} +1 -1
- package/lib/duet/{p-23c54408.system.js → p-d3101c8a.system.js} +2 -2
- package/lib/duet/{p-80476005.entry.js → p-d3b84b94.entry.js} +1 -1
- package/lib/duet/{p-e77eb993.entry.js → p-d46a310c.entry.js} +1 -1
- package/lib/duet/{p-f748b267.system.entry.js → p-d4cf8310.system.entry.js} +1 -1
- package/lib/duet/p-d5c7ae62.js +4 -0
- package/lib/duet/{p-020947f1.entry.js → p-d5e996fd.entry.js} +1 -1
- package/lib/duet/{p-4ee170a2.system.entry.js → p-dc7c2dc7.system.entry.js} +1 -1
- package/lib/duet/{p-8b44c31b.system.entry.js → p-dcf097a9.system.entry.js} +1 -1
- package/lib/duet/{p-ad6c12d2.system.js → p-de5b2f37.system.js} +1 -1
- package/lib/duet/{p-f5f7c9fb.system.entry.js → p-e05007a2.system.entry.js} +1 -1
- package/lib/duet/{p-d2a3dc84.entry.js → p-e1e9de91.entry.js} +1 -1
- package/lib/duet/p-e20b0d90.entry.js +4 -0
- package/lib/duet/{p-3b13a6dd.system.entry.js → p-e408682d.system.entry.js} +1 -1
- package/lib/duet/{p-257d6829.entry.js → p-e69bd7e8.entry.js} +1 -1
- package/lib/duet/{p-1784b1d2.js → p-e95fa292.js} +1 -1
- package/lib/duet/{p-eb9ccd06.system.entry.js → p-ea445202.system.entry.js} +1 -1
- package/lib/duet/{p-292bd926.system.entry.js → p-ea7dccdf.system.entry.js} +1 -1
- package/lib/duet/{p-159c685a.entry.js → p-eb8bf9ea.entry.js} +1 -1
- package/lib/duet/{p-6a4909d6.entry.js → p-eb8ddb2c.entry.js} +1 -1
- package/lib/duet/{p-7740c468.system.entry.js → p-ebca186a.system.entry.js} +1 -1
- package/lib/duet/{p-dfb59959.entry.js → p-ec6a0e13.entry.js} +1 -1
- package/lib/duet/{p-efaf8a01.entry.js → p-ecde67f6.entry.js} +1 -1
- package/lib/duet/{p-f7e11846.entry.js → p-f1bf4f9e.entry.js} +1 -1
- package/lib/duet/{p-2b010f12.entry.js → p-f368439a.entry.js} +1 -1
- package/lib/duet/p-f5063a7d.system.js +4 -0
- package/lib/duet/{p-9fea59b9.system.entry.js → p-f6c25420.system.entry.js} +1 -1
- package/lib/duet/{p-5abd3d28.entry.js → p-f8d41de4.entry.js} +1 -1
- package/lib/duet/{p-9b9b22c6.system.entry.js → p-f9eb5cbb.system.entry.js} +1 -1
- package/lib/duet/{p-bd188554.entry.js → p-fc3f42ab.entry.js} +1 -1
- package/lib/duet/{p-0e048935.system.entry.js → p-fd40d190.system.entry.js} +1 -1
- package/lib/duet/p-fe661e98.system.entry.js +4 -0
- package/lib/esm/{app-globals-fc48943f.js → app-globals-6cbf18ba.js} +1 -1
- package/lib/esm/{bodyScrollLock.es6-45bcbca3.js → bodyScrollLock.es6-ecbf187e.js} +4 -58
- package/lib/esm/duet-action-button.entry.js +4 -4
- package/lib/esm/duet-alert.entry.js +3 -3
- package/lib/esm/duet-badge.entry.js +3 -3
- package/lib/esm/duet-banner.entry.js +4 -4
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +6 -6
- package/lib/esm/duet-button_2.entry.js +4 -4
- package/lib/esm/duet-callout.entry.js +4 -4
- package/lib/esm/duet-caption_4.entry.js +6 -6
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +3 -3
- package/lib/esm/duet-chip.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +3 -3
- package/lib/esm/duet-collapsible.entry.js +3 -3
- package/lib/esm/duet-combobox.entry.js +3 -3
- package/lib/esm/duet-contact-card.entry.js +4 -4
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +38 -6
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +9 -9
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +5 -5
- package/lib/esm/duet-file-chooser.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +3 -3
- package/lib/esm/duet-grid_2.entry.js +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 +5 -5
- package/lib/esm/duet-layout.entry.js +2 -2
- package/lib/esm/duet-list_2.entry.js +3 -3
- package/lib/esm/duet-menu-bar-button.entry.js +3 -3
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar-dropdown.entry.js +5 -5
- package/lib/esm/duet-menu-bar-item.entry.js +3 -3
- package/lib/esm/duet-menu-bar-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar.entry.js +3 -3
- package/lib/esm/duet-modal.entry.js +5 -5
- package/lib/esm/duet-multiselect.entry.js +3 -3
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +4 -4
- package/lib/esm/duet-number-input.entry.js +3 -3
- package/lib/esm/duet-overlay.entry.js +1 -1
- package/lib/esm/duet-page-heading.entry.js +6 -5
- package/lib/esm/duet-pagination_2.entry.js +4 -4
- package/lib/esm/duet-popup-menu-item.entry.js +1 -1
- package/lib/esm/duet-popup-menu.entry.js +2 -2
- package/lib/esm/duet-progress.entry.js +2 -2
- package/lib/esm/duet-promo-card.entry.js +6 -6
- package/lib/esm/duet-radio_2.entry.js +2 -2
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +57 -37
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +2 -2
- package/lib/esm/duet-shaped-image.entry.js +3 -3
- package/lib/esm/duet-show-more.entry.js +2 -2
- package/lib/esm/duet-slideout-lang.entry.js +3 -3
- package/lib/esm/duet-slideout-link.entry.js +3 -3
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
- package/lib/esm/duet-slideout-panel.entry.js +12 -12
- package/lib/esm/duet-slideout.entry.js +6 -6
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-item.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +8 -8
- package/lib/esm/duet-textarea.entry.js +7 -7
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-toolbar-dropdown.entry.js +5 -5
- package/lib/esm/duet-toolbar-item.entry.js +11 -5
- package/lib/esm/duet-toolbar-link.entry.js +3 -3
- package/lib/esm/duet-toolbar.entry.js +11 -5
- package/lib/esm/duet-tooltip-button_2.entry.js +6 -6
- package/lib/esm/duet-tooltip.entry.js +3 -3
- package/lib/esm/duet-tray.entry.js +5 -5
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +5 -5
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-bedfce23.js → errorcodes.utils-2a3a0ed1.js} +1 -1
- package/lib/esm/{focus-utils-581f628a.js → focus-utils-1e2c1ed7.js} +1 -1
- package/lib/esm/{index-fcbdd7e2.js → index-f384e24a.js} +2 -2
- package/lib/esm/{language-utils-eced99be.js → language-utils-b0c1f3cd.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-a275401c.js → slot-utils-e698dc9e.js} +1 -1
- package/lib/esm/{token-utils-1f843fb9.js → token-utils-54a23ef5.js} +1 -1
- package/lib/{dist-custom-elements/p-d5c03b61.js → esm/tokens-e0e3d241.js} +252 -0
- package/lib/esm/{tokens.module-ed0ed26f.js → tokens.module-b5fab24a.js} +168 -0
- package/lib/esm-es5/{app-globals-fc48943f.js → app-globals-6cbf18ba.js} +1 -1
- package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +4 -0
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +2 -2
- package/lib/esm-es5/duet-checkbox.entry.js +2 -2
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip.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 +2 -2
- package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +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-popup-menu-item.entry.js +1 -1
- package/lib/esm-es5/duet-popup-menu.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 +2 -2
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +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 +2 -2
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{errorcodes.utils-bedfce23.js → errorcodes.utils-2a3a0ed1.js} +1 -1
- package/lib/esm-es5/{focus-utils-581f628a.js → focus-utils-1e2c1ed7.js} +1 -1
- package/lib/esm-es5/{index-fcbdd7e2.js → index-f384e24a.js} +2 -2
- package/lib/esm-es5/{language-utils-eced99be.js → language-utils-b0c1f3cd.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-a275401c.js → slot-utils-e698dc9e.js} +1 -1
- package/lib/esm-es5/{token-utils-1f843fb9.js → token-utils-54a23ef5.js} +1 -1
- package/lib/esm-es5/tokens-e0e3d241.js +4 -0
- package/lib/esm-es5/tokens.module-b5fab24a.js +4 -0
- package/lib/types/common-types.d.ts +1 -0
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +3 -1
- package/lib/types/components/duet-page-heading/duet-page-heading.d.ts +2 -1
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +13 -2
- package/lib/types/components/duet-toolbar/duet-toolbar.d.ts +2 -2
- package/lib/types/components/duet-toolbar-item/duet-toolbar-item.d.ts +2 -2
- package/lib/types/components.d.ts +22 -14
- package/package.json +4 -4
- package/lib/duet/p-06714f95.system.entry.js +0 -4
- package/lib/duet/p-113a1168.entry.js +0 -4
- package/lib/duet/p-16485917.js +0 -4
- package/lib/duet/p-219e24b0.system.js +0 -4
- package/lib/duet/p-2c50d29a.entry.js +0 -4
- package/lib/duet/p-30977bc9.system.entry.js +0 -4
- package/lib/duet/p-402b153c.system.entry.js +0 -4
- package/lib/duet/p-423f79d7.system.entry.js +0 -4
- package/lib/duet/p-4a901bfc.js +0 -4
- package/lib/duet/p-66ce24ab.entry.js +0 -4
- package/lib/duet/p-7275ceca.system.entry.js +0 -4
- package/lib/duet/p-7a93cd72.system.entry.js +0 -4
- package/lib/duet/p-7c6f07f2.js +0 -4
- package/lib/duet/p-81516829.entry.js +0 -4
- package/lib/duet/p-8f66e293.system.entry.js +0 -4
- package/lib/duet/p-9ef0a452.js +0 -4
- package/lib/duet/p-b02720e6.entry.js +0 -4
- package/lib/duet/p-c51d6fb5.system.js +0 -4
- package/lib/duet/p-c86d6786.system.js +0 -4
- package/lib/duet/p-d06f99d3.entry.js +0 -4
- package/lib/duet/p-d5c03b61.js +0 -4
- package/lib/duet/p-db5ea485.system.js +0 -4
- package/lib/duet/p-e0008211.entry.js +0 -4
- package/lib/duet/p-e0239367.entry.js +0 -4
- package/lib/duet/p-e6d74262.entry.js +0 -4
- package/lib/duet/p-ea0997fe.entry.js +0 -4
- package/lib/duet/p-f7171483.system.entry.js +0 -4
- package/lib/duet/p-fb768082.entry.js +0 -4
- package/lib/esm-es5/bodyScrollLock.es6-45bcbca3.js +0 -4
- package/lib/esm-es5/tokens-a9d9d4dd.js +0 -4
- package/lib/esm-es5/tokens.module-ed0ed26f.js +0 -4
- /package/lib/dist-custom-elements/{p-8764aea1.js → p-bc933201.js} +0 -0
|
@@ -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 e,F as a,H as s,g as n}from"./p-0974e195.js";import{i as o}from"./p-aaa7a7bd.js";import{c as r}from"./p-5e59e970.js";import{d as h}from"./p-9e371678.js";import{k as l,l as d,d as c,b as p,a as u,c as b,m as g,n as m}from"./p-a1b7f2a0.js";import{g as f,c as v,d as k}from"./p-54e73ed0.js";import{p as y}from"./p-9c3c64b9.js";import{b as w,a as x}from"./p-1784b1d2.js";import"./p-4a901bfc.js";const S=class{constructor(e){t(this,e),this.duetPageChange=i(this,"duetPageChange",3),this.listId=r("duet-pagination-list"),this.firstRenderDone=!1,this.handleMediaQueryChange=t=>{this.matchesCompactBreakpoint=w.includes(this.compactBreakpoint)?t.matches:!t.matches},this.actionChain=async(t,i)=>{if(0===t)this.current=1;else if(t>this.totalPages)this.current=this.totalPages;else if(i!==t){const i=Math.ceil(t/this.visibleItems)-1;i!==this.internalSectionIndex&&(this.internalSectionIndex=i,await this.setFocus())}return!0},this.emitPageEvent=(t,i)=>{const e=Number(i||this.current);this.duetPageChange.emit({component:"duet-pagination",from:e*this.take,to:e*this.take+this.take,current:e,take:this.take,type:"page",originalEvent:t})},this.getEnteredNumber=h((t=>{this.emitPageEvent(t,this.numbersStore),this.current=Number(this.numbersStore),this.numbersStore="",this.duetPageChange.emit({component:"duet-pagination",from:this.current*this.take,to:this.current*this.take+this.take,current:this.current,take:this.take,type:"jump",originalEvent:t})}),500),this.processedPageLinks=null,this.numbersStore="",this.matchesCompactBreakpoint=!1,this.totalPages=10,this.internalSectionIndex=0,this.theme="",this.disabled=!1,this.variation="default",this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,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=f(this.accessibleLabelsDefaults),this.take=5,this.visibleItems=5,this.total=1e3,this.compactBreakpoint="x-small",this.ariaControls="",this.current=1,this.pageLinks=void 0}watchPropTotalHandler(){return this.calculatePageTake(),!0}watchStateHandler(t,i){return this.actionChain(t,i)}componentWillLoad(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1,this.calculatePageTake(),o(this),this.refresh()}componentDidLoad(){this.firstRenderDone=!0}componentWillRender(){0!==this.internalSectionIndex&&this.internalSectionIndex!==this.totalPages&&this.calculatePageTake()}componentDidRender(){this.firstRenderDone&&!this.processedPageLinks&&this.setFocus()}connectedCallback(){this.mq=matchMedia("none"===this.compactBreakpoint?"all":x[this.compactBreakpoint]),this.mq.addEventListener("change",h(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),v(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})}disconnectedCallback(){this.mq.removeEventListener("change",this.handleMediaQueryChange),this.mq=null,this.matchesCompactBreakpoint=!1,k(this)}async refresh(){this.processedPageLinks=y(this.pageLinks)}calculatePageTake(){this.totalPages=Math.ceil(this.total/this.take)}async onMouseHandler(t,i){this.disabled||(this.processedPageLinks||(t.preventDefault(),t.stopPropagation(),this.current=this.current+i),this.emitPageEvent(t))}async onKeyboardDown(t){if(this.disabled)return;let i=this.current;(c(t)||p(t))&&i--,(u(t)||b(t))&&i++,l(t)&&i<=this.totalPages&&(this.current=i,this.processedPageLinks?(this.emitPageEvent(t,i-1),window.open(this.processedPageLinks[i-1],"_self","")):this.emitPageEvent(t)),d(t)&&this.shouldDisplayNavigation()&&(this.numbersStore=this.numbersStore+t.key,Number(this.numbersStore)>this.totalPages&&(this.numbersStore=this.totalPages+""),this.getEnteredNumber(t))}async setFocus(){const t=this.nativeNav.querySelector(`[data-id='${this.current}']`);t&&await t.setFocus()}pageClickHandler(t){const i=Number(t.target.getAttribute("data-id"));this.processedPageLinks||(t.preventDefault(),this.current=i),this.emitPageEvent(t,i)}selectClickHandler(t){t.preventDefault();const i=Number(t.target.value);this.current=i,this.processedPageLinks?(this.emitPageEvent(t,i-1),window.open(this.processedPageLinks[i-1],"_self","")):this.emitPageEvent(t,i)}sectionClickHandler(t,i){t.preventDefault();let e=this.internalSectionIndex+i;e*(this.take*this.visibleItems)>this.total&&(e=this.internalSectionIndex),this.internalSectionIndex=e>=0?e:0}jumpToStart(t){this.processedPageLinks||(t.preventDefault(),this.internalSectionIndex=0,this.current=1),this.emitPageEvent(t)}jumpToEnd(t){this.processedPageLinks||(t.preventDefault(),this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1),this.current=this.totalPages),this.emitPageEvent(t)}renderPageButton(t){return e("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":!0},id:`page-${t}-button`,color:t!==this.current?"turva"!==this.theme?"secondary":"secondary-turva":"turva"!==this.theme?"primary":"primary-turva","data-id":t,"center-text":!0,variation:"plain",margin:"none",accessibleLabel:`${this.accessibleLabels.go_to} ${t}`,onClick:t=>this.pageClickHandler(t),theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:void 0},e("div",{class:"duet-pagination-page-number","aria-hidden":!0},t))}renderPageNumbers(){const t=[];let i=this.internalSectionIndex*this.visibleItems;do{if(i++,i>this.totalPages)break;t.push(e("li",{class:{"duet-pagination-item":!0,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},this.renderPageButton(i)))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t}renderSelect(){const t=[];for(let i=1;i<=this.totalPages;i++)t.push({value:i.toString(),label:i.toString()});const i=e("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(t),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}",`${this.totalPages}`),labelHidden:!0,onDuetChange:t=>this.selectClickHandler(t)});return e("li",null,i,e("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))}shouldDisplayNavigation(){return!("compact"===this.variation||this.matchesCompactBreakpoint||2*this.visibleItems>this.total/this.take)}render(){return e(s,{key:"238ac01f83f3e796534c0ef17857631a329f6a42",onKeyDown:t=>this.onKeyboardDown(t),class:{"duet-theme-turva":"turva"===this.theme}},e("nav",{key:"2db66f288ef50d588016e131d548b22a77f99dd6",role:"navigation","aria-labelledby":this.accessibleLabelledBy?`${this.accessibleLabelledBy} ${this.listId}`:this.listId,"aria-describedby":this.accessibleDescribedBy?`${this.accessibleDescribedBy} ${this.listId}`:this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:t=>this.nativeNav=t,"aria-controls":this.ariaControls,class:{"duet-pagination-nav":!0,[`duet-pagination-variation-${this.variation}`]:!0}},""!==this.numbersStore&&e("div",{key:"4c03feef0a35eaa9ec13e5c3d5103ae1facbd832","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":`${this.accessibleLabels.jump_to} ${this.numbersStore}`,part:"navigation-overlay"},e("duet-badge",{key:"6ac1a80080fe006f2c576999b9ef0718c6339a04",theme:this.theme},"jump to page : ",this.numbersStore)),e("ol",{key:"0ebf21ab341811673ea978e22a085cba7eaaf75c",id:this.listId,class:{"duet-pagination":!0,"duet-pagination-is-dimmed":""!==this.numbersStore},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},("compact"===this.variation||this.matchesCompactBreakpoint)&&e("li",{key:"63a2904ccc7d0c008332625069c9083610c471ab",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"fd709f59213de7f819c05b997b84d8ed39ec4566",disabled:0===this.internalSectionIndex&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:void 0})),e("li",{key:"7000cadb2b9214ac7e460fc9df1893017243aba5",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"a1fbc90286ef69e26c2050f5dd1e77cfd5f8496d",disabled:!!(0===this.internalSectionIndex&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:t=>this.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]:void 0})),0!==this.internalSectionIndex&&this.shouldDisplayNavigation()&&e(a,{key:"6c3b28e93bf637ceeb7c58fc743f381ef1db509c"},e("li",{key:"33f0f34c511b50fd228ea44bf6f4feb408ede264",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"746eb995e69baaf75b731923c1827a995fc2cc3a",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:"turva"!==this.theme?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:void 0},e("div",{key:"067f6fb84943bf3f448f0474041ae821871fb8a2",class:"duet-pagination-page-number"},"1"))),e("li",{key:"d8a1df197cee21fe581338838587bbdb8800d874",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"464fc5efe12433ea2ba6d3c287ecb5e2110626d8",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,-1),theme:this.theme},e("div",{key:"0c6467cfe44e34a16fcb222040ad894f4733a799",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&e(a,{key:"0bc436817f1dcb0fddc29e58e55b41b0829969ed"},(this.internalSectionIndex+1)*this.visibleItems!=this.totalPages-1&&e("li",{key:"acaac82b2aa83002ea653aa9cad50488124405ec",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"4bb24fe4575b9bd1673a51413d40826be404c6b7",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,1),theme:this.theme},e("div",{key:"e044660e2a3ece57534cdf03382241a986c319a9",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),e("li",{key:"ec2abf76d2fec68bf91289013be139ba4348ed0a",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"06dec4fc55486effcff9f16fe9118e4e920edd66",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:t=>this.jumpToEnd(t),theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:void 0},e("div",{key:"d92331de76576b275c1189fce2634abf12f49eb7",class:"duet-pagination-page-number"},this.totalPages)))),e("li",{key:"ba8c5fa8c6a228e7585c1d6bd0a913b92174b7dd",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"fb7c84dfeda7e02cd891269391b07cefaaa1a4e4",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:t=>this.onMouseHandler(t,1),"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:void 0})),("compact"===this.variation||this.matchesCompactBreakpoint)&&e("li",{key:"45f6d91ce4a38bc672c600b11ce700a383154d0b",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"0168ec664180f13c8ed94f258cc24277c46daa32",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:t=>this.jumpToEnd(t),"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:void 0})))))}get element(){return n(this)}static get watchers(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}}};S.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-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)}';const _=class{constructor(e){t(this,e),this.duetRangeStepUpdate=i(this,"duetRangeStepUpdate",7),this.leftBn=r("duetRangeStepper-left"),this.rightBn=r("duetRangeStepper-right"),this.handleClick=(t,i)=>{t.preventDefault(),this.stepIndex+=i,this.clampStepIndex(),this.handleStepClick(t)},this.buttonLeftDisabled=!1,this.buttonRightDisabled=!1,this.theme="",this.disabled=!1,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=f(this.ariaLabelsDefaults),this.ariaControls=""}watchStepIndexStateHandler(t){this.leftBnRef&&this.rightBnRef&&(t<=1?(this.element===document.activeElement&&this.rightBnRef.setFocus(),this.buttonLeftDisabled=!0):this.buttonLeftDisabled=!1,t>=this.total/this.stepSize?(this.element===document.activeElement&&this.leftBnRef.setFocus(),this.buttonRightDisabled=!0):this.buttonRightDisabled=!1)}watchStepSizeStateHandler(t,i){t!==i&&(this.stepIndex*t>this.total&&(this.stepIndex=Math.ceil(this.total/t)),this.watchStepIndexStateHandler(this.stepIndex))}handleStepClick(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})}componentWillLoad(){o(this),this.clampStepIndex()}componentDidLoad(){this.watchStepIndexStateHandler(this.stepIndex)}connectedCallback(){v(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})}disconnectedCallback(){k(this)}clampStepIndex(){this.stepIndex<1?this.stepIndex=1:this.stepIndex*this.stepSize>this.total&&(this.stepIndex=Math.ceil(this.total/this.stepSize))}getFrom(){return Math.floor((this.stepIndex-1)*this.stepSize)+1}getTo(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)}generateStepSize(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))}generatePreviousIncrementLabel(){return 1===this.getFrom()?"":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))}generateNextIncrementLabel(){return this.getTo()===this.total?"":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))}async onKeyboardDown(t){if(this.disabled)return;let i=this.stepIndex,e=1;(c(t)||p(t)||g(t))&&(i--,e=-1,this.leftBnRef.setFocus()),(u(t)||b(t)||m(t))&&(i++,e=1),l(t)&&i>0&&i*this.stepSize<=this.total&&this.handleClick(t,e)}render(){return e("div",{key:"445012532d2a6b852f7d08b13eb99611532fe3d3",class:{"duet-range-stepper":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:t=>this.onKeyboardDown(t),"aria-controls":this.ariaControls},e("span",{key:"1f5877f95b12a10e3abf60bd7e27af705738bca6",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),e("duet-action-button",{key:"586bd002d9344e99cf366a49e5d2144ac06e66fe",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:t=>this.handleClick(t,-1),id:this.leftBn,"accessible-label":`${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`,ref:t=>this.leftBnRef=t,part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),e("duet-action-button",{key:"96fff336833646be477a30c639d8674b27f168d1",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:t=>this.handleClick(t,1),"accessible-label":`${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`,id:this.rightBn,ref:t=>this.rightBnRef=t,part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))}get element(){return n(this)}static get watchers(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}}};_.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-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}";export{S as duet_pagination,_ as duet_range_stepper}
|
|
4
|
+
import{r as t,c as i,h as e,F as a,H as s,g as n}from"./p-00f584d4.js";import{i as o}from"./p-aaa7a7bd.js";import{c as r}from"./p-5e59e970.js";import{d as h}from"./p-9e371678.js";import{k as l,l as d,d as c,b as p,a as u,c as b,m as g,n as m}from"./p-a1b7f2a0.js";import{g as f,c as v,d as k}from"./p-5e2f8206.js";import{p as y}from"./p-9c3c64b9.js";import{b as w,a as x}from"./p-e95fa292.js";import"./p-50c83774.js";const S=class{constructor(e){t(this,e),this.duetPageChange=i(this,"duetPageChange",3),this.listId=r("duet-pagination-list"),this.firstRenderDone=!1,this.handleMediaQueryChange=t=>{this.matchesCompactBreakpoint=w.includes(this.compactBreakpoint)?t.matches:!t.matches},this.actionChain=async(t,i)=>{if(0===t)this.current=1;else if(t>this.totalPages)this.current=this.totalPages;else if(i!==t){const i=Math.ceil(t/this.visibleItems)-1;i!==this.internalSectionIndex&&(this.internalSectionIndex=i,await this.setFocus())}return!0},this.emitPageEvent=(t,i)=>{const e=Number(i||this.current);this.duetPageChange.emit({component:"duet-pagination",from:e*this.take,to:e*this.take+this.take,current:e,take:this.take,type:"page",originalEvent:t})},this.getEnteredNumber=h((t=>{this.emitPageEvent(t,this.numbersStore),this.current=Number(this.numbersStore),this.numbersStore="",this.duetPageChange.emit({component:"duet-pagination",from:this.current*this.take,to:this.current*this.take+this.take,current:this.current,take:this.take,type:"jump",originalEvent:t})}),500),this.processedPageLinks=null,this.numbersStore="",this.matchesCompactBreakpoint=!1,this.totalPages=10,this.internalSectionIndex=0,this.theme="",this.disabled=!1,this.variation="default",this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,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=f(this.accessibleLabelsDefaults),this.take=5,this.visibleItems=5,this.total=1e3,this.compactBreakpoint="x-small",this.ariaControls="",this.current=1,this.pageLinks=void 0}watchPropTotalHandler(){return this.calculatePageTake(),!0}watchStateHandler(t,i){return this.actionChain(t,i)}componentWillLoad(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1,this.calculatePageTake(),o(this),this.refresh()}componentDidLoad(){this.firstRenderDone=!0}componentWillRender(){0!==this.internalSectionIndex&&this.internalSectionIndex!==this.totalPages&&this.calculatePageTake()}componentDidRender(){this.firstRenderDone&&!this.processedPageLinks&&this.setFocus()}connectedCallback(){this.mq=matchMedia("none"===this.compactBreakpoint?"all":x[this.compactBreakpoint]),this.mq.addEventListener("change",h(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),v(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})}disconnectedCallback(){this.mq.removeEventListener("change",this.handleMediaQueryChange),this.mq=null,this.matchesCompactBreakpoint=!1,k(this)}async refresh(){this.processedPageLinks=y(this.pageLinks)}calculatePageTake(){this.totalPages=Math.ceil(this.total/this.take)}async onMouseHandler(t,i){this.disabled||(this.processedPageLinks||(t.preventDefault(),t.stopPropagation(),this.current=this.current+i),this.emitPageEvent(t))}async onKeyboardDown(t){if(this.disabled)return;let i=this.current;(c(t)||p(t))&&i--,(u(t)||b(t))&&i++,l(t)&&i<=this.totalPages&&(this.current=i,this.processedPageLinks?(this.emitPageEvent(t,i-1),window.open(this.processedPageLinks[i-1],"_self","")):this.emitPageEvent(t)),d(t)&&this.shouldDisplayNavigation()&&(this.numbersStore=this.numbersStore+t.key,Number(this.numbersStore)>this.totalPages&&(this.numbersStore=this.totalPages+""),this.getEnteredNumber(t))}async setFocus(){const t=this.nativeNav.querySelector(`[data-id='${this.current}']`);t&&await t.setFocus()}pageClickHandler(t){const i=Number(t.target.getAttribute("data-id"));this.processedPageLinks||(t.preventDefault(),this.current=i),this.emitPageEvent(t,i)}selectClickHandler(t){t.preventDefault();const i=Number(t.target.value);this.current=i,this.processedPageLinks?(this.emitPageEvent(t,i-1),window.open(this.processedPageLinks[i-1],"_self","")):this.emitPageEvent(t,i)}sectionClickHandler(t,i){t.preventDefault();let e=this.internalSectionIndex+i;e*(this.take*this.visibleItems)>this.total&&(e=this.internalSectionIndex),this.internalSectionIndex=e>=0?e:0}jumpToStart(t){this.processedPageLinks||(t.preventDefault(),this.internalSectionIndex=0,this.current=1),this.emitPageEvent(t)}jumpToEnd(t){this.processedPageLinks||(t.preventDefault(),this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1),this.current=this.totalPages),this.emitPageEvent(t)}renderPageButton(t){return e("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":!0},id:`page-${t}-button`,color:t!==this.current?"turva"!==this.theme?"secondary":"secondary-turva":"turva"!==this.theme?"primary":"primary-turva","data-id":t,"center-text":!0,variation:"plain",margin:"none",accessibleLabel:`${this.accessibleLabels.go_to} ${t}`,onClick:t=>this.pageClickHandler(t),theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:void 0},e("div",{class:"duet-pagination-page-number","aria-hidden":!0},t))}renderPageNumbers(){const t=[];let i=this.internalSectionIndex*this.visibleItems;do{if(i++,i>this.totalPages)break;t.push(e("li",{class:{"duet-pagination-item":!0,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},this.renderPageButton(i)))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t}renderSelect(){const t=[];for(let i=1;i<=this.totalPages;i++)t.push({value:i.toString(),label:i.toString()});const i=e("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(t),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}",`${this.totalPages}`),labelHidden:!0,onDuetChange:t=>this.selectClickHandler(t)});return e("li",null,i,e("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))}shouldDisplayNavigation(){return!("compact"===this.variation||this.matchesCompactBreakpoint||2*this.visibleItems>this.total/this.take)}render(){return e(s,{key:"238ac01f83f3e796534c0ef17857631a329f6a42",onKeyDown:t=>this.onKeyboardDown(t),class:{"duet-theme-turva":"turva"===this.theme}},e("nav",{key:"2db66f288ef50d588016e131d548b22a77f99dd6",role:"navigation","aria-labelledby":this.accessibleLabelledBy?`${this.accessibleLabelledBy} ${this.listId}`:this.listId,"aria-describedby":this.accessibleDescribedBy?`${this.accessibleDescribedBy} ${this.listId}`:this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:t=>this.nativeNav=t,"aria-controls":this.ariaControls,class:{"duet-pagination-nav":!0,[`duet-pagination-variation-${this.variation}`]:!0}},""!==this.numbersStore&&e("div",{key:"4c03feef0a35eaa9ec13e5c3d5103ae1facbd832","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":`${this.accessibleLabels.jump_to} ${this.numbersStore}`,part:"navigation-overlay"},e("duet-badge",{key:"6ac1a80080fe006f2c576999b9ef0718c6339a04",theme:this.theme},"jump to page : ",this.numbersStore)),e("ol",{key:"0ebf21ab341811673ea978e22a085cba7eaaf75c",id:this.listId,class:{"duet-pagination":!0,"duet-pagination-is-dimmed":""!==this.numbersStore},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},("compact"===this.variation||this.matchesCompactBreakpoint)&&e("li",{key:"63a2904ccc7d0c008332625069c9083610c471ab",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"fd709f59213de7f819c05b997b84d8ed39ec4566",disabled:0===this.internalSectionIndex&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:void 0})),e("li",{key:"7000cadb2b9214ac7e460fc9df1893017243aba5",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"a1fbc90286ef69e26c2050f5dd1e77cfd5f8496d",disabled:!!(0===this.internalSectionIndex&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:t=>this.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]:void 0})),0!==this.internalSectionIndex&&this.shouldDisplayNavigation()&&e(a,{key:"6c3b28e93bf637ceeb7c58fc743f381ef1db509c"},e("li",{key:"33f0f34c511b50fd228ea44bf6f4feb408ede264",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"746eb995e69baaf75b731923c1827a995fc2cc3a",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:"turva"!==this.theme?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:void 0},e("div",{key:"067f6fb84943bf3f448f0474041ae821871fb8a2",class:"duet-pagination-page-number"},"1"))),e("li",{key:"d8a1df197cee21fe581338838587bbdb8800d874",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"464fc5efe12433ea2ba6d3c287ecb5e2110626d8",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,-1),theme:this.theme},e("div",{key:"0c6467cfe44e34a16fcb222040ad894f4733a799",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&e(a,{key:"0bc436817f1dcb0fddc29e58e55b41b0829969ed"},(this.internalSectionIndex+1)*this.visibleItems!=this.totalPages-1&&e("li",{key:"acaac82b2aa83002ea653aa9cad50488124405ec",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"4bb24fe4575b9bd1673a51413d40826be404c6b7",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,1),theme:this.theme},e("div",{key:"e044660e2a3ece57534cdf03382241a986c319a9",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),e("li",{key:"ec2abf76d2fec68bf91289013be139ba4348ed0a",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"06dec4fc55486effcff9f16fe9118e4e920edd66",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:t=>this.jumpToEnd(t),theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:void 0},e("div",{key:"d92331de76576b275c1189fce2634abf12f49eb7",class:"duet-pagination-page-number"},this.totalPages)))),e("li",{key:"ba8c5fa8c6a228e7585c1d6bd0a913b92174b7dd",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"fb7c84dfeda7e02cd891269391b07cefaaa1a4e4",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:t=>this.onMouseHandler(t,1),"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:void 0})),("compact"===this.variation||this.matchesCompactBreakpoint)&&e("li",{key:"45f6d91ce4a38bc672c600b11ce700a383154d0b",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"0168ec664180f13c8ed94f258cc24277c46daa32",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:t=>this.jumpToEnd(t),"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:void 0})))))}get element(){return n(this)}static get watchers(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}}};S.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-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)}';const _=class{constructor(e){t(this,e),this.duetRangeStepUpdate=i(this,"duetRangeStepUpdate",7),this.leftBn=r("duetRangeStepper-left"),this.rightBn=r("duetRangeStepper-right"),this.handleClick=(t,i)=>{t.preventDefault(),this.stepIndex+=i,this.clampStepIndex(),this.handleStepClick(t)},this.buttonLeftDisabled=!1,this.buttonRightDisabled=!1,this.theme="",this.disabled=!1,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=f(this.ariaLabelsDefaults),this.ariaControls=""}watchStepIndexStateHandler(t){this.leftBnRef&&this.rightBnRef&&(t<=1?(this.element===document.activeElement&&this.rightBnRef.setFocus(),this.buttonLeftDisabled=!0):this.buttonLeftDisabled=!1,t>=this.total/this.stepSize?(this.element===document.activeElement&&this.leftBnRef.setFocus(),this.buttonRightDisabled=!0):this.buttonRightDisabled=!1)}watchStepSizeStateHandler(t,i){t!==i&&(this.stepIndex*t>this.total&&(this.stepIndex=Math.ceil(this.total/t)),this.watchStepIndexStateHandler(this.stepIndex))}handleStepClick(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})}componentWillLoad(){o(this),this.clampStepIndex()}componentDidLoad(){this.watchStepIndexStateHandler(this.stepIndex)}connectedCallback(){v(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})}disconnectedCallback(){k(this)}clampStepIndex(){this.stepIndex<1?this.stepIndex=1:this.stepIndex*this.stepSize>this.total&&(this.stepIndex=Math.ceil(this.total/this.stepSize))}getFrom(){return Math.floor((this.stepIndex-1)*this.stepSize)+1}getTo(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)}generateStepSize(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))}generatePreviousIncrementLabel(){return 1===this.getFrom()?"":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))}generateNextIncrementLabel(){return this.getTo()===this.total?"":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))}async onKeyboardDown(t){if(this.disabled)return;let i=this.stepIndex,e=1;(c(t)||p(t)||g(t))&&(i--,e=-1,this.leftBnRef.setFocus()),(u(t)||b(t)||m(t))&&(i++,e=1),l(t)&&i>0&&i*this.stepSize<=this.total&&this.handleClick(t,e)}render(){return e("div",{key:"445012532d2a6b852f7d08b13eb99611532fe3d3",class:{"duet-range-stepper":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:t=>this.onKeyboardDown(t),"aria-controls":this.ariaControls},e("span",{key:"1f5877f95b12a10e3abf60bd7e27af705738bca6",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),e("duet-action-button",{key:"586bd002d9344e99cf366a49e5d2144ac06e66fe",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:t=>this.handleClick(t,-1),id:this.leftBn,"accessible-label":`${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`,ref:t=>this.leftBnRef=t,part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),e("duet-action-button",{key:"96fff336833646be477a30c639d8674b27f168d1",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:t=>this.handleClick(t,1),"accessible-label":`${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`,id:this.rightBn,ref:t=>this.rightBnRef=t,part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))}get element(){return n(this)}static get watchers(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}}};_.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-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}";export{S as duet_pagination,_ as duet_range_stepper}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,i,a){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function s(e){try{r(a.next(e))}catch(e){o(e)}}function l(e){try{r(a["throw"](e))}catch(e){o(e)}}function r(e){e.done?i(e.value):n(e.value).then(s,l)}r((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return r([e,t])}}function r(l){if(a)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(i=0)),i)try{if(a=1,n&&(o=l[0]&2?n["return"]:l[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;if(n=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;n=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(l[0]===6&&i.label<o[1]){i.label=o[1];o=l;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(l);break}if(o[2])i.ops.pop();i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e];n=0}finally{a=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-
|
|
4
|
+
*/System.register(["./p-d3101c8a.system.js","./p-0c4bbd65.system.js","./p-f5063a7d.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js","./p-0853dd3b.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,a,n,o,s,l,r,c,u,d,f,h,b,p;return{setters:[function(e){t=e.r;i=e.c;a=e.h;n=e.H;o=e.g},function(e){s=e.a},function(e){l=e.f;r=e.t},function(e){c=e.i},function(e){u=e.c},function(e){d=e.i;f=e.s;h=e.u},function(e){b=e.h},function(e){p=e.s}],execute:function(){var g='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}';var m=g;var y=e("duet_collapsible",function(){function e(e){var a=this;t(this,e);this.duetToggle=i(this,"duetToggle",7);this.id=u("DuetCollapsible");this.handleKeyDown=function(e){if(d(e)){a.handleClick(e)}};this.getFontSizeFromTokens=function(e){if(e===void 0){e=a.headingSize}if(!e){return l}else{var t=/-/g;var i=e.replace(t,"_");return r["font_size_".concat(i)]}};this.getEquivalentIconSize=function(e){if(e===void 0){e=a.headingSize}switch(e){case"x-small":return"xx-small";case"small":return"xx-small";case"medium":return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large";default:return"xx-small"}};this.handleClick=function(e){e.preventDefault();a.open=!a.open;a.duetToggle.emit({component:"duet-collapsible",originalEvent:e})};this.theme="";this.accessibleLabel=undefined;this.heading="";this.headingFullWidth=false;this.centerHeading=false;this.headingWeight="semibold";this.headingSize=undefined;this.headingLevel=undefined;this.margin="auto";this.open=false}e.prototype.componentWillLoad=function(){c(this);this.hasAfterHeading=b(this.element,"after-heading")};e.prototype.connectedCallback=function(){f(this)};e.prototype.disconnectedCallback=function(){h(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeButton){this.element.classList.add("user-is-tabbing");this.nativeButton.focus(e)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.headingLevel?p(this.headingLevel):"div";return a(n,{key:"aafe219a93ff8b806e05ecf9c0203f7afd6929e1",class:{"duet-m-0":this.margin==="none"}},a(t,{key:"c6f7409213132914e3ec49ba138a10aee197fb03"},a("button",{key:"988a8b779e70e27852ac15b271ee8ad6eeb53f52",class:{"duet-collapsible-heading":true,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":this.theme==="turva","duet-collapsible-normal-weight":this.headingWeight==="normal","has-after-heading":this.hasAfterHeading,"full-width":this.headingFullWidth},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:function(t){return e.nativeButton=t},"aria-label":this.accessibleLabel,"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},a("div",{key:"7ad9554421eb7d8777b207721224268ba575b832",class:"duet-collapsible-heading-icon"},a("duet-icon",{key:"057dd8ded09e313bc868f3f349d80b37d565f1da",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary",size:this.getEquivalentIconSize(),icon:s.svg})),a("div",{key:"4a929efd3b1cd2b1725e1d2dc3a68b3656ad32f3",class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&a("div",{key:"a8a3051f9f9fa0e01619a2c8cf82dde1e117aa3e",part:"duet-collapsible-after-heading"},a("slot",{key:"5eb5fbcdacf0edcb52f3fcc4c196dc308a1c5ac2",name:"after-heading"})))),a("div",{key:"1cae60d79f74a0961eb0a280b3f31b457ba82c86",id:this.id,class:{"duet-collapsible-content":true,"duet-theme-turva":this.theme==="turva"},part:"duet-collapsible-content"},a("slot",{key:"1c8fb0d10608e14f55023891f331b4a7a538f527"})))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());y.style=m}}}));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(e,n,r){if(r||arguments.length===2)for(var i=0,t=n.length,u;i<t;i++){if(u||!(i in n)){if(!u)u=Array.prototype.slice.call(n,0,i);u[i]=n[i]}}return e.concat(u||Array.prototype.slice.call(n))};
|
|
2
|
+
/*!
|
|
3
|
+
* Built with Duet Design System
|
|
4
|
+
*/System.register([],(function(e){"use strict";return{execute:function(){var n=false;if(typeof window!=="undefined"){var r={get passive(){n=true;return undefined}};window.addEventListener("testPassive",null,r);window.removeEventListener("testPassive",null,r)}var i=typeof window!=="undefined"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);var t=[];var u=false;var f=-1;var o;var d;var a=function(e){return t.some((function(n){if(n.options.allowTouchMove&&n.options.allowTouchMove(e)){return true}return false}))};var s=function(e){var n=e||window.event;if(a(n.target)){return true}if(n.touches.length>1)return true;if(n.preventDefault)n.preventDefault();return false};var c=function(e){if(d===undefined){var n=!!e&&e.reserveScrollBarGap===true;var r=window.innerWidth-document.documentElement.clientWidth;if(n&&r>0){d=document.body.style.paddingRight;document.body.style.paddingRight="".concat(r,"px")}}if(o===undefined){o=document.body.style.overflow;document.body.style.overflow="hidden"}};var l=function(){if(d!==undefined){document.body.style.paddingRight=d;d=undefined}if(o!==undefined){document.body.style.overflow=o;o=undefined}};var v=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:false};var w=function(e,n){var r=e.targetTouches[0].clientY-f;if(a(e.target)){return false}if(n&&n.scrollTop===0&&r>0){return s(e)}if(v(n)&&r<0){return s(e)}e.stopPropagation();return true};var m=e("d",(function(e,r){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(t.some((function(n){return n.targetElement===e}))){return}var o={targetElement:e,options:r||{}};t=__spreadArray(__spreadArray([],t,true),[o],false);if(i){e.ontouchstart=function(e){if(e.targetTouches.length===1){f=e.targetTouches[0].clientY}};e.ontouchmove=function(n){if(n.targetTouches.length===1){w(n,e)}};if(!u){document.addEventListener("touchmove",s,n?{passive:false}:undefined);u=true}}else{c(r)}}));var p=e("e",(function(e){if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}t=t.filter((function(n){return n.targetElement!==e}));if(i){e.ontouchstart=null;e.ontouchmove=null;if(u&&t.length===0){document.removeEventListener("touchmove",s,n?{passive:false}:undefined);u=false}}else if(!t.length){l()}}))}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-0fee15c1.system.js","./p-98636086.system.js"],(function(e){"use strict";var n,t;return{setters:[function(e){n=e.g},function(e){t=e.p}],execute:function(){var r=e("g",(function(e,n){var r={type:undefined,system_message:undefined,message:undefined};n=t(n);r=n.filter((function(n){return n.type==e}))[0];if(!r){r=n.filter((function(e){return e.type==="default"}))[0]}return r}));var u=e("a",(function(e,t){var u=r(e,t);var s=n(u.message);if(s===""||!s){return u.system_message}else{return s}}))}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{u(n.next(e))}catch(e){r(e)}}function o(e){try{u(n["throw"](e))}catch(e){r(e)}}function u(e){e.done?i(e.value):a(e.value).then(s,o)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(i=0)),i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];a=0}finally{n=r=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-
|
|
4
|
+
*/System.register(["./p-d3101c8a.system.js","./p-f5063a7d.system.js","./p-49957220.system.js","./p-e216bea4.system.js"],(function(e){"use strict";var t,i,n,a,r,s,o,u;return{setters:[function(e){t=e.r;i=e.h;n=e.H;a=e.g},function(e){r=e.a},function(e){s=e.e;o=e.d},function(e){u=e.i}],execute:function(){var d='*,*::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;width:100%}:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:none}@media (min-width: 62em){:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:inherit}}.duet-submenu-bar{position:relative;top:0;z-index:1;background:rgb(243, 249, 252);transition:top 0.4s}.duet-submenu-bar.hidden{top:-200px}@media (min-width: 62em){.duet-submenu-bar{border-bottom:1px solid rgb(205, 229, 241)}}.duet-submenu-bar button{display:flex;align-items:center;justify-content:center;width:100%;padding:12px 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:400;line-height:1.25;color:rgb(0, 41, 77)}.duet-submenu-bar button.active .caret{transform:rotate(180deg)}.duet-submenu-bar button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar button .label{position:relative;display:flex;gap:8px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar button{display:none}}.duet-submenu-bar .menu-container{position:absolute;z-index:399;width:100%}.duet-submenu-bar .menu-container.hidden{max-height:0;overflow:hidden;visibility:hidden}@media (min-width: 62em){.duet-submenu-bar .menu-container,.duet-submenu-bar .menu-container.hidden{position:static;z-index:auto;max-height:unset;overflow:visible;visibility:visible}}.duet-submenu-bar .items{width:100%;height:70vh;overflow-y:scroll;visibility:visible;background:rgb(243, 249, 252);border-bottom:1px solid rgb(207, 210, 212)}.duet-submenu-bar .items ::slotted(*){position:relative}.duet-submenu-bar .items.hidden{max-height:0;overflow:hidden;visibility:hidden;border-bottom:0 solid rgb(207, 210, 212)}.duet-submenu-bar .items .list-padding{padding-bottom:188px}@media (min-width: 62em){.duet-submenu-bar .items .list{display:flex;align-items:center;justify-content:space-between;height:100%}.duet-submenu-bar .items,.duet-submenu-bar .items.hidden{position:static;z-index:auto;display:flex;flex-direction:row;align-items:center;justify-content:center;height:auto;max-height:unset;overflow:visible;visibility:visible;border:0}.duet-submenu-bar .items .list-padding{display:none;padding-bottom:0}}.duet-submenu-bar.duet-theme-turva{background:rgb(245, 245, 247);border-bottom:1px solid rgb(228, 228, 230)}.duet-submenu-bar.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar.duet-theme-turva .items{background:rgb(245, 245, 247)}.duet-submenu-bar.duet-theme-turva .mobile-background{background:rgb(23, 28, 58)}.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}';var b=d;var c=e("duet_submenu_bar",function(){function e(e){var i=this;t(this,e);this.mql=[window.matchMedia(r.replace(/'/g,""))];this.boundMqlFunctions=[];this.previousYScroll=0;this.handleMobileView=function(){if(i.mql[0].matches){i.mobile=false;i.enableBodyScroll()}else{i.mobile=true;if(!i.bodyScroll){i.disableBodyScroll()}}};this.onClick=function(){i.open=!i.open};this.enableBodyScroll=function(){if(i.nav){s(i.nav)}if(i.itemsContainer){s(i.itemsContainer)}};this.disableBodyScroll=function(){if(i.nav){o(i.nav,{reserveScrollBarGap:true})}if(i.itemsContainer){o(i.itemsContainer,{reserveScrollBarGap:true})}};this.checkIfHasItems=function(){var e=!!i.element.querySelector("duet-submenu-bar-dropdown-link");var t=!!i.element.querySelector("duet-submenu-bar-link");var n=!!i.element.querySelector("duet-submenu-bar-item");return e||t||n};this.hidden=false;this.mobile=true;this.bodyScroll=true;this.theme="";this.hideOnScroll=false;this.open=false;this.accessibleLabel=undefined}e.prototype.watchOpenStateHandler=function(e){var t=e;if(t){this.bodyScroll=false;this.disableBodyScroll()}else{this.enableBodyScroll();this.bodyScroll=true}};e.prototype.componentWillLoad=function(){u(this)};e.prototype.connectedCallback=function(){this.nav=document.querySelector("duet-nav > [slot='mobile']");this.hasItems=this.checkIfHasItems();this.handleMobileView();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.handleMobileView.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[];this.enableBodyScroll()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.button.focus(e);return[2]}))}))};e.prototype.checkScroll=function(){if(!this.hideOnScroll){return}if(window.scrollY>this.previousYScroll){if(window.scrollY>100){this.hidden=true}}else{if(window.scrollY<150){this.hidden=false}}this.previousYScroll=window.scrollY};e.prototype.render=function(){var e=this;return i(n,{key:"46b42aaf1cf7b5948285be8b8fada1fbb895c29c"},i("nav",{key:"24fb21f0c3223068128475fee9e711c407c6cc42",class:{"duet-submenu-bar":true,"duet-theme-turva":this.theme==="turva",hidden:this.hidden},"aria-label":this.accessibleLabel},this.hasItems&&i("button",{key:"fdae5917434838629bea146c0fecd71d6eba5a49",ref:function(t){return e.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false",id:"button",type:"button",class:{active:this.open},onClick:this.onClick},i("span",{key:"741ee52c89789d6f29807af0318e7ad3ce387ea2",class:"label"},i("slot",{key:"cc032638072e4bf611fa6f90f4e87a06d6d62011",name:"label"}),i("duet-icon",{key:"e5d275e6378ca608e4770cf01548db63c53fc921",theme:this.theme,class:"caret",name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),i("div",{key:"4b3528bc077697f379eee779e85cbd8a0ddb407e",class:{"menu-container":true,hidden:!this.open},role:"presentation"},i("div",{key:"22d201c917df952f74c4ce0f28786cfca78c6e5c",role:this.mobile?"menu":null,id:"menu","aria-labelledby":this.mobile?"button":null,"aria-expanded":this.mobile?this.open?"true":"false":null,class:{items:true,hidden:!this.open},ref:function(t){return e.itemsContainer=t}},i("div",{key:"c602c78831309546c9e825b1b7b77fc92dc3f0fa",class:"list",role:this.mobile?"presentation":"list"},i("slot",{key:"0a329fa6a2e485a50588f108544dfe414480a3b6"}),i("div",{key:"cbe81c72e9210a0384d82a5a827a54edf890f020",class:"list-padding"}))),i("duet-overlay",{key:"e802c1912aa5dc34d0dbf0e265190fc7ba27a1d3","keep-stacking-context":true,visible:this.open,"display-device":"not-large",transition:"immediate"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["watchOpenStateHandler"]}},enumerable:false,configurable:true});return e}());c.style=b}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,i,d){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function u(e){try{r(d.next(e))}catch(e){s(e)}}function n(e){try{r(d["throw"](e))}catch(e){s(e)}}function r(e){e.done?i(e.value):o(e.value).then(u,n)}r((d=d.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:[]},d,o,s,u;return u={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function n(e){return function(t){return r([e,t])}}function r(n){if(d)throw new TypeError("Generator is already executing.");while(u&&(u=0,n[0]&&(i=0)),i)try{if(d=1,o&&(s=n[0]&2?o["return"]:n[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,n[1])).done)return s;if(o=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;o=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){i.label=n[1];break}if(n[0]===6&&i.label<s[1]){i.label=s[1];s=n;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(n);break}if(s[2])i.ops.pop();i.trys.pop();continue}n=t.call(e,i)}catch(e){n=[6,e];o=0}finally{d=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-
|
|
4
|
+
*/System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js"],(function(e){"use strict";var t,i,d,o,s,u,n,r,c;return{setters:[function(e){t=e.r;i=e.c;d=e.h;o=e.H;s=e.g},function(e){u=e.i},function(e){n=e.c},function(e){r=e.s;c=e.u}],execute:function(){var g='*.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:#c8cacc}.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:#bababa}.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(144, 149, 153);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(116, 116, 117)}.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}';var a=g;var l=e("duet_toggle",function(){function e(e){var d=this;t(this,e);this.duetChange=i(this,"duetChange",3);this.toggleId=n("DuetToggle");this.onClick=function(e){e.preventDefault();d.setFocus();d.checked=!d.checked};this.theme="";this.margin="auto";this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.labelPosition="top";this.required=false;this.disabled=false;this.checked=false;this.value=undefined;this.identifier=undefined;this.name=undefined;this.role=undefined}e.prototype.checkedChanged=function(e){this.duetChange.emit({checked:e,value:this.value,component:"duet-toggle"})};e.prototype.componentWillLoad=function(){u(this);if(this.value===undefined){this.value=this.identifier}};e.prototype.connectedCallback=function(){r(this)};e.prototype.disconnectedCallback=function(){c(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeInput.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.identifier||this.toggleId;return d(o,{onClick:this.disabled?undefined:this.onClick,class:{"duet-m-0":this.margin==="none"}},d("div",{class:{"duet-toggle":true,"duet-theme-turva":this.theme==="turva","duet-side-label":this.labelPosition!=="top","duet-reverse-label":this.labelPosition==="right"}},d("duet-label",{theme:this.theme,color:this.labelColor,weight:this.labelWeight,for:t,margin:this.labelPosition==="top"?"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:function(t){return e.nativeInput=t}}),d("div",{class:"duet-slider"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["checkedChanged"]}},enumerable:false,configurable:true});return e}());l.style=a}}}));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{r,h as e,H as s,g as a}from"./p-00f584d4.js";import{i as o}from"./p-aaa7a7bd.js";import{c as t}from"./p-5e59e970.js";import{g as i,c as n,d as p}from"./p-5e2f8206.js";import"./p-9c3c64b9.js";const d=class{constructor(e){r(this,e),this.progressId=t("DuetProgress"),this.progressLabelId=t("DuetProgressLabel"),this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLabel=void 0,this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]},this.accessibleLabelUpload=i(this.accessibleLabelUploadDefaults),this.progress=0,this.caption=void 0,this.height="10px",this.theme=""}componentWillLoad(){o(this)}connectedCallback(){n(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})}disconnectedCallback(){p(this)}render(){return e(s,null,e("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":!0,"duet-progress-done":100===this.progress,"duet-progress-start":0===this.progress,"duet-progress-inprogress":this.progress<99&&0!==this.progress,"duet-theme-turva":"turva"===this.theme}},e("duet-visually-hidden",null,e("label",{htmlFor:this.progressLabelId},e("span",null,this.accessibleLabel,0!==this.progress&&`, ${this.accessibleLabelUpload[this.progress<99?1:0]}`))),this.caption&&e("div",{class:"duet-progress-caption"},e("span",null,this.caption)),e("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},e("div",{class:"progress-bar"},e("span",{style:{width:`${this.progress}%;`}},"Progress: ",this.progress,"%")))))}get element(){return a(this)}};d.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(243, 249, 252);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(252, 243, 244)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(243, 249, 252);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(243, 249, 252)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(252, 243, 244)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(252, 243, 244)}";export{d as duet_progress}
|
|
@@ -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
|
|
4
|
+
import{r as e,h as t,H as i,g as a}from"./p-00f584d4.js";import{i as o}from"./p-aaa7a7bd.js";import{c as d}from"./p-5e59e970.js";import{h as s}from"./p-8507509a.js";const n=class{constructor(t){e(this,t),this.errorId=d("DuetError"),this.labelId=d("DuetLabel"),this.checkHasTooltip=()=>{this.hasTooltip=s(this.element,"tooltip")},this.hasTooltip=!1,this.theme="",this.margin="auto",this.caption=void 0,this.label=void 0,this.compactLabel=!1,this.error=void 0,this.accessibleLiveError="polite",this.labelHeadingLevel="span",this.labelHidden=!1}componentWillLoad(){o(this),this.checkHasTooltip()}render(){return t(i,{key:"4da3e5f66820460f1ef0493f60f630c76d818473",class:{"duet-m-0":"none"===this.margin}},t("fieldset",{key:"ed739d61e287215e42e4506b4c71595540bc361d","aria-labelledby":this.labelId,"aria-describedby":this.error?this.errorId:null,class:{"duet-fieldset":!0,"duet-theme-turva":"turva"===this.theme}},t("legend",{key:"2bad3be10867df4d945fd05b0dc208107ed6a792",id:this.labelId},t(this.labelHeadingLevel,{key:"d6cc673f67359ddd2ee7e5edd740de0c465e1ac8"},this.label),this.caption&&t("span",{key:"1831049370a39c6d8ac1e63cad3f56516ffa2073"},this.caption)),t("div",{key:"58aeac7ddfee203189ab2e9f9d796b370de6ab89",class:{"duet-legend-wrapper":!0,"duet-legend-has-caption":!!this.caption,"duet-legend-has-tooltip":this.hasTooltip,"duet-legend-hidden":this.labelHidden,"duet-legend-compact":this.compactLabel}},t("div",{key:"5572f59933addae60637f304ffb1dc900313375e",class:"duet-fieldset-label"},t("span",{key:"35c227c6950d0d5f2717a967d3d660022ef91915","aria-hidden":"true"},this.label),t("slot",{key:"1e0b4cff03a36a0e101e972b36d5bbfeef399e7f",onSlotchange:this.checkHasTooltip,name:"tooltip"})),this.caption&&t("div",{key:"139fb6fddaace73d9ef5e0d6c3c07b5281641f65",class:"duet-fieldset-caption","aria-hidden":"true"},t("duet-caption",{key:"4603eb768b61f4b6b342c5b08549dd708bcc2c1b",theme:this.theme,margin:"none"},this.caption))),t("slot",{key:"6e0732f202a8228c0b5c10d2dfe54f072e829837"}),t("span",{key:"90b501fd275d5bdd63a500c2478e0831b48f2fbe",class:"duet-fieldset-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&t("span",{key:"55be98cfad770433b98a20fa045e1bcb15433441"},this.error))))}get element(){return a(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;margin-bottom:12px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}fieldset{position:relative;width:100%;min-width:0;border:0}fieldset legend{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-legend-wrapper{position:relative;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;background:transparent}.duet-legend-wrapper.duet-legend-compact:not(.duet-legend-has-caption){line-height:1.25}.duet-theme-turva .duet-legend-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-fieldset-label{margin-bottom:12px !important;margin-top:8px}.duet-legend-has-caption .duet-fieldset-label{margin-bottom:6px !important}.duet-legend-has-tooltip .duet-fieldset-label{padding-right:36px}@media (min-width: 48em){.duet-legend-has-tooltip .duet-fieldset-label{margin-bottom:3px !important;padding-right:0}}@media (min-width: 48em){.duet-legend-has-tooltip.duet-legend-has-caption .duet-fieldset-label{margin-bottom:-3px !important}}.duet-fieldset-caption{margin-bottom:12px !important}.duet-fieldset-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(222, 35, 98);border-radius:4px}.duet-fieldset-help span{display:block;margin-top:12px}.duet-theme-turva .duet-fieldset-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(224, 42, 13)}::slotted(duet-tooltip){position:absolute;top:4px;right:0}@media (min-width: 48em){::slotted(duet-tooltip){position:relative;right:auto}}.duet-legend-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{n as duet_fieldset}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
const r="rgb(178, 180, 179)",o="rgb(207, 210, 212)",a="rgb(255, 255, 255)",e="rgb(207, 207, 209)",l="rgb(0, 119, 179)",g="rgb(198, 12, 48)",c="'(min-width: 62em)'",i="'(min-width: 48em)'",b="'(min-width: 36em)'",t="'(min-width: 64.0625em)'",s="'(max-width: 35.9375em)'",n="'(min-width: 76.25em)'",u="'(max-width: 22.5em)'",p="'(min-width: 106.25em)'",x="'(max-width: 20.5em)'",m="4rem",d="3rem",y=Object.freeze({__proto__:null,colorBrandBlue:"rgb(0, 161, 212)",colorBrandGrayTurva:r,colorCategoryFamily:"rgb(11, 114, 136)",colorCategoryFamilyTurva:"rgb(199, 12, 112)",colorCategoryFinance:"rgb(122, 1, 196)",colorCategoryHome:"rgb(211, 36, 131)",colorCategoryHomeTurva:"rgb(161, 10, 78)",colorCategoryPet:"rgb(168, 1, 78)",colorCategoryTravel:"rgb(213, 66, 3)",colorCategoryTravelTurva:"rgb(9, 129, 148)",colorCategoryUnionTurva:"rgb(169, 69, 124)",colorCategoryVehicle:"rgb(54, 74, 129)",colorCategoryVehicleTurva:"rgb(23, 28, 58)",colorDanger:"rgb(222, 35, 98)",colorDanger00:"rgb(255, 240, 243)",colorDanger100:"rgb(255, 211, 219)",colorDanger1000:"rgb(89, 0, 45)",colorDanger200:"rgb(255, 173, 190)",colorDanger300:"rgb(252, 136, 162)",colorDanger400:"rgb(243, 98, 134)",colorDanger50:"rgb(255, 225, 231)",colorDanger500:"rgb(231, 62, 107)",colorDanger600:"rgb(214, 28, 82)",colorDanger700:"rgb(185, 16, 74)",colorDanger800:"rgb(153, 9, 66)",colorDanger900:"rgb(120, 4, 56)",colorDangerTurva:"rgb(224, 42, 13)",colorData01:"rgb(122, 1, 196)",colorData02:"rgb(0, 155, 204)",colorData03:"rgb(27, 171, 75)",colorData04:"rgb(255, 86, 34)",colorData05:"rgb(245, 76, 154)",colorData06:"rgb(194, 21, 101)",colorData07:"rgb(192, 101, 247)",colorData08:"rgb(0, 105, 191)",colorData09:"rgb(19, 120, 53)",colorData10:"rgb(179, 60, 24)",colorData11:"rgb(13, 163, 166)",colorData12:"rgb(11, 114, 136)",colorData13:"rgb(179, 137, 24)",colorData14:"rgb(128, 98, 17)",colorData15:"rgb(0, 41, 77)",colorGray:o,colorGrayDark:"rgb(144, 149, 153)",colorGrayDarkTurva:"rgb(116, 116, 117)",colorGrayDarker:"rgb(101, 119, 135)",colorGrayDarkerTurva:"rgb(68, 68, 69)",colorGrayLight:"rgb(225, 227, 230)",colorGrayLightTurva:"rgb(228, 228, 230)",colorGrayLighter:"rgb(245, 248, 250)",colorGrayLighterTurva:"rgb(245, 245, 247)",colorGrayLightest:a,colorGrayLightestTurva:"rgb(255, 255, 255)",colorGrayTurva:e,colorLtBlue00:"rgb(240, 247, 250)",colorLtBlue100:"rgb(217, 236, 245)",colorLtBlue1000:"rgb(8, 42, 77)",colorLtBlue200:"rgb(198, 225, 238)",colorLtBlue300:"rgb(172, 210, 229)",colorLtBlue400:"rgb(131, 188, 217)",colorLtBlue50:"rgb(228, 241, 247)",colorLtBlue500:"rgb(50, 153, 204)",colorLtBlue600:"rgb(0, 119, 179)",colorLtBlue700:"rgb(0, 97, 155)",colorLtBlue800:"rgb(0, 75, 129)",colorLtBlue900:"rgb(3, 56, 102)",colorLtGray00:"rgb(245, 248, 250)",colorLtGray100:"rgb(212, 223, 229)",colorLtGray1000:"rgb(17, 28, 38)",colorLtGray200:"rgb(181, 198, 208)",colorLtGray300:"rgb(153, 174, 186)",colorLtGray400:"rgb(127, 150, 165)",colorLtGray50:"rgb(228, 236, 239)",colorLtGray500:"rgb(98, 121, 138)",colorLtGray600:"rgb(81, 105, 123)",colorLtGray700:"rgb(62, 84, 102)",colorLtGray800:"rgb(45, 64, 81)",colorLtGray900:"rgb(30, 45, 59)",colorPrimary:l,colorPrimaryDark:"rgb(0, 77, 128)",colorPrimaryDarkTurva:"rgb(148, 9, 37)",colorPrimaryDarker:"rgb(0, 98, 154)",colorPrimaryDarkerTurva:"rgb(173, 11, 43)",colorPrimaryLight:"rgb(205, 229, 241)",colorPrimaryLightTurva:"rgb(244, 207, 214)",colorPrimaryLighter:"rgb(230, 242, 248)",colorPrimaryLighterTurva:"rgb(249, 230, 234)",colorPrimaryLightest:"rgb(243, 249, 252)",colorPrimaryLightestTurva:"rgb(252, 243, 244)",colorPrimaryTurva:g,colorSecondary:"rgb(0, 41, 77)",colorSecondaryTurva:"rgb(23, 28, 58)",colorSuccess:"rgb(0, 135, 90)",colorSuccess00:"rgb(244, 250, 247)",colorSuccess100:"rgb(218, 246, 233)",colorSuccess1000:"rgb(4, 38, 33)",colorSuccess200:"rgb(191, 239, 218)",colorSuccess300:"rgb(163, 229, 202)",colorSuccess400:"rgb(134, 215, 185)",colorSuccess50:"rgb(231, 248, 239)",colorSuccess500:"rgb(105, 196, 166)",colorSuccess600:"rgb(77, 171, 143)",colorSuccess700:"rgb(48, 131, 105)",colorSuccess800:"rgb(29, 106, 88)",colorSuccess900:"rgb(13, 71, 59)",colorSuccessTurva:"rgb(8, 135, 78)",colorTurvaGray00:"rgb(245, 247, 250)",colorTurvaGray100:"rgb(222, 224, 228)",colorTurvaGray1000:"rgb(8, 13, 38)",colorTurvaGray200:"rgb(199, 202, 207)",colorTurvaGray300:"rgb(175, 178, 186)",colorTurvaGray400:"rgb(143, 147, 158)",colorTurvaGray50:"rgb(234, 235, 239)",colorTurvaGray500:"rgb(113, 118, 132)",colorTurvaGray600:"rgb(98, 104, 122)",colorTurvaGray700:"rgb(71, 78, 101)",colorTurvaGray800:"rgb(45, 52, 79)",colorTurvaGray900:"rgb(23, 28, 58)",colorTurvaRed00:"rgb(255, 241, 241)",colorTurvaRed100:"rgb(255, 213, 215)",colorTurvaRed1000:"rgb(51, 5, 20)",colorTurvaRed200:"rgb(255, 185, 190)",colorTurvaRed300:"rgb(252, 148, 158)",colorTurvaRed400:"rgb(240, 102, 119)",colorTurvaRed50:"rgb(255, 227, 228)",colorTurvaRed500:"rgb(221, 49, 77)",colorTurvaRed600:"rgb(198, 12, 48)",colorTurvaRed700:"rgb(164, 4, 40)",colorTurvaRed800:"rgb(126, 2, 35)",colorTurvaRed900:"rgb(87, 4, 29)",colorWarning:"rgb(247, 178, 40)",colorWarning00:"rgb(255, 251, 242)",colorWarning100:"rgb(255, 244, 198)",colorWarning1000:"rgb(38, 26, 4)",colorWarning200:"rgb(255, 232, 160)",colorWarning300:"rgb(255, 217, 120)",colorWarning400:"rgb(255, 199, 79)",colorWarning50:"rgb(255, 247, 221)",colorWarning500:"rgb(247, 178, 40)",colorWarning600:"rgb(212, 151, 32)",colorWarning700:"rgb(156, 110, 22)",colorWarning800:"rgb(126, 87, 16)",colorWarning900:"rgb(81, 55, 9)",colorWarningTurva:"rgb(250, 164, 15)",fontFamilyHeading:"'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyHeadingTurva:"'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyText:"'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyTextTurva:"'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontSizeLarge:"1.25rem",fontSizeMedium:"1rem",fontSizeSmall:"0.875rem",fontSizeXLarge:"1.5rem",fontSizeXSmall:"0.75rem",fontSizeXxLarge:"2.25rem",fontSizeXxxLarge:"3rem",fontSizeXxxxLarge:"4.5rem",fontWeightBold:"700",fontWeightExtraBold:"800",fontWeightNormal:"400",fontWeightSemiBold:"600",letterSpacingHeading:"-0.01rem",lineHeightMedium:"1.5",lineHeightSmall:"1.25",lineHeightXSmall:"1.1",mediaQueryLarge:c,mediaQueryMedium:i,mediaQuerySmall:b,mediaQueryXLarge:t,mediaQueryXSmall:s,mediaQueryXxLarge:n,mediaQueryXxSmall:u,mediaQueryXxxLarge:p,mediaQueryXxxSmall:x,opacity30:"0.30",opacity50:"0.50",opacity75:"0.75",opacity85:"0.85",radiusCircle:"50%",radiusDefault:"4px",radiusIntermediate:"12px",radiusLarge:"16px",radiusMedium:"8px",radiusPill:"20rem",radiusSharp:"0",shadowCard:"0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)",shadowCardTurva:"0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)",shadowDefault:"0 2px 6px 0 rgba(0, 41, 77, 0.07)",shadowDefaultTurva:"0 2px 6px 0 rgba(117, 117, 117, 0.13)",shadowError:"0 0 0 1px #de2362",shadowErrorTurva:"0 0 0 1px #e55039",shadowFocus:"0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3",shadowFocusInput:"0 0 0 1px #0077b3",shadowFocusInputTurva:"0 0 0 1px #171c3a",shadowFocusTurva:"0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a",shadowHover:"0 2px 10px 0 rgba(0, 41, 77, 0.1)",shadowHoverInput:"0 0 0 1px #909599",shadowHoverInputTurva:"0 0 0 1px #747475",shadowHoverTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.15)",shadowModal:"0 2px 20px 0 rgba(0, 0, 0, 0.2)",shadowTooltip:"0 2px 10px 0 rgba(0, 41, 77, 0.07)",shadowTooltipTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.13)",sizeButtonBorder:"1px",sizeButtonMinWidth:"8rem",sizeButtonTinyBorder:"1px",sizeFormBorder:"1px",sizeHeader:m,sizeIconLarge:"30px",sizeIconMedium:"24px",sizeIconSmall:"20px",sizeIconXLarge:"36px",sizeIconXSmall:"16px",sizeIconXxLarge:"48px",sizeIconXxSmall:"10px",sizeIconXxxLarge:"72px",sizeIconXxxSmall:"7px",sizeLayoutMaxWidth:"1110px",sizeMediumBorder:"2px",sizeNavigation:d,sizeStepMedium:"40px",sizeStepSmall:"30px",sizeTappableSquare:"48px",spaceLarge:"20px",spaceMedium:"16px",spaceSmall:"12px",spaceXLarge:"28px",spaceXSmall:"8px",spaceXxLarge:"36px",spaceXxSmall:"4px",spaceXxxLarge:"48px",spaceXxxSmall:"2px",spaceXxxxLarge:"72px",spaceXxxxxLarge:"94px",transitionQuickly:"300ms ease",transitionSlowly:"600ms ease",zIndexDeep:"-999999",zIndexDefault:"1",zIndexDropdown:"600",zIndexHeader:"400",zIndexMask:"200",zIndexMaskButtons:"250",zIndexMasked:"100",zIndexModal:"900",zIndexOverlay:"700",zIndexPopup:"950",zIndexSpinner:"800",zIndexSticky:"300",zIndexToast:"500"});export{s as a,b,i as c,c as d,t as e,n as f,p as g,x as h,g as i,e as j,l as k,o as l,u as m,a as n,r as o,d as p,m as s,y as t}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,n;a<o;a++){if(n||!(a in t)){if(!n)n=Array.prototype.slice.call(t,0,a);n[a]=t[a]}}return e.concat(n||Array.prototype.slice.call(t))};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-
|
|
4
|
+
*/System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js","./p-0fee15c1.system.js","./p-2f891fbb.system.js","./p-98636086.system.js","./p-91115d1e.system.js"],(function(e){"use strict";var t,r,a,o,n,i,d;return{setters:[function(e){t=e.r;r=e.h;a=e.H;o=e.g},function(e){n=e.i},function(e){i=e.g},function(e){d=e.g},function(){},function(){}],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;width:100%}::slotted(*){font-weight:400}::slotted(:last-child){font-weight:600}:host([variation=plain]) ::slotted(:last-child){font-weight:400}.duet-breadcrumbs{position:relative;display:flex;align-items:center;justify-content:center;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-breadcrumbs .container{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1384px;min-height:36px;margin:0 28px}.duet-breadcrumbs .list{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;padding:10px 0;color:inherit;list-style:none}.duet-breadcrumbs .bottom-border{position:absolute;bottom:0;display:none;width:100%;height:1px}.duet-breadcrumbs.header{color:rgb(0, 41, 77);background:rgb(243, 249, 252)}.duet-breadcrumbs.header .list duet-breadcrumb[href]:hover{color:rgb(0, 77, 128)}.duet-breadcrumbs.header .bottom-border--nav{display:block;background:rgb(225, 227, 230)}.duet-breadcrumbs.header.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}.duet-breadcrumbs.header.duet-theme-turva ol duet-breadcrumb[href]:hover{color:rgb(148, 9, 37)}.duet-breadcrumbs.footer{color:rgb(255, 255, 255);background:rgb(0, 41, 77)}@media (min-width: 64.0625em){.duet-breadcrumbs.footer{justify-content:flex-start}}@media (min-width: 76.25em){.duet-breadcrumbs.footer{justify-content:center}}.duet-breadcrumbs.footer .container{max-width:1110px}@media (min-width: 62em){.duet-breadcrumbs.footer .container{margin:0 72px 0 48px}}.duet-breadcrumbs.footer .list{padding:20px 0}@media (min-width: 62em){.duet-breadcrumbs.footer .list{padding:20px 8px}}.duet-breadcrumbs.footer .list duet-breadcrumb[href]:hover{text-decoration:underline}.duet-breadcrumbs.footer .bottom-border--container{display:block;background:rgba(255, 255, 255, 0.2)}.duet-breadcrumbs.footer.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(198, 12, 48)}.duet-breadcrumbs.plain .container{max-width:none;min-height:auto;margin:0}.duet-breadcrumbs.plain .list{padding:0}.duet-breadcrumbs.plain .bottom-border{display:none}';var s=b;var c=e("duet_breadcrumbs",function(){function e(e){t(this,e);this.observers=[];this.breadcrumbsAriaLabel=i({fi:"Murupolku",sv:"Ströbröd",en:"Breadcrumbs"});this.children=undefined;this.theme="";this.variation="header";this.color=""}e.prototype.componentWillLoad=function(){n(this);this.children=Array.from(this.element.children)};e.prototype.connectedCallback=function(){var e=this;Array.from(this.element.children).forEach((function(t){var r=new MutationObserver((function(){return e.children=Array.from(e.element.children)}));r.observe(t,{childList:true,subtree:true,attributes:true,characterData:true});e.observers=__spreadArray(__spreadArray([],e.observers,true),[r],false)}))};e.prototype.disconnectedCallback=function(){this.observers.forEach((function(e){return e.disconnect()}));this.observers=[]};e.prototype.render=function(){var e;var t=d(this.color);return r(a,{key:"8a9b4d9db25877fedbb9bbbc6a7f3c70ddc972f8"},r("nav",{key:"c66a5b2ab26e65aea1d4cb624c5fd5e57b165d0e","aria-label":this.breadcrumbsAriaLabel,class:(e={"duet-breadcrumbs":true,"duet-theme-turva":this.theme==="turva"},e[this.variation]=true,e)},r("div",{key:"23194ac8d39fcc089a5f16689fdf31f6f5bbd630",class:"container"},r("div",{key:"924ce340d38e919201c361c402b5b2ee7d25f6d2",role:"list",class:"list",style:{color:t}},r("slot",{key:"0fbdd33ff72667c2cd845f407a85719349a70eab"})),r("div",{key:"11493cfc88623feebae218352c8f9530a3c2456c",class:"bottom-border bottom-border--container"})),r("div",{key:"d5f962874148aab37813f688ba5ff77bddb30533",class:"bottom-border bottom-border--nav"})))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());c.style=s}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,e,n,u){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{o(u.next(t))}catch(t){r(t)}}function a(t){try{o(u["throw"](t))}catch(t){r(t)}}function o(t){t.done?n(t.value):i(t.value).then(s,a)}o((u=u.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},u,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return o([t,e])}}function o(a){if(u)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(u=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];i=0}finally{u=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-23c54408.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js","./p-bea77c4f.system.js","./p-42a3bc8e.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,n,u,i,r,s,a,o,d,c,b,l,h,p,m,f,v,g,w,x;return{setters:[function(t){e=t.r;n=t.c;u=t.h;i=t.H;r=t.g},function(t){s=t.i},function(t){a=t.c},function(t){o=t.a;d=t.b;c=t.c;b=t.d;l=t.e;h=t.s;p=t.u},function(t){m=t.a;f=t.b;v=t.g;g=t.c;w=t.d},function(t){x=t.c},function(){}],execute:function(){var y={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var A={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function k(t,e){var n;if(typeof t==="string"){if(t===""){return null}var u=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){u=D(u,e,false)}u=u.replace(/\s+/g,"");n=parseFloat(u)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function D(t,e,n){if(n===void 0){n=false}var u;var i=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");u=t.replace(i,"DECIMALSEPARATOR");if(n){u=u.replace(s,"THOUSANDSEPARATOR")}else{u=u.replace(s,"")}u=u.replace("DECIMALSEPARATOR",r);u=u.replace("THOUSANDSEPARATOR",a);return u}var N=function(t,e){return Math.round(t/e)*e};var S=function(t,e,n){return Math.min(Math.max(t,e),n)};var E='*.sc-duet-number-input,*.sc-duet-number-input::after,*.sc-duet-number-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-number-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}.sc-duet-number-input-h:last-child,.sc-duet-number-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-number-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-number-input-h{width:100% !important}.duet-m-0.sc-duet-number-input-h{margin:0 !important}.duet-number-container.sc-duet-number-input{position:relative;width:100%}.duet-number-buttons.sc-duet-number-input{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled{pointer-events:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input duet-icon.sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled duet-icon.sc-duet-number-input{opacity:0.4}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:active duet-icon.sc-duet-number-input{transform:translateY(1px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{outline:0}.user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type{border-left:1px solid rgb(207, 210, 212)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(207, 210, 212, 0.2) 0%, rgba(207, 210, 212, 0.2) 1px, rgba(207, 210, 212, 0.1) 1px, rgba(207, 210, 212, 0) 100%)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(225, 227, 230)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{background:linear-gradient(to left, rgba(207, 207, 209, 0.2) 0%, rgba(207, 207, 209, 0.2) 1px, rgba(207, 207, 209, 0.1) 1px, rgba(207, 207, 209, 0) 100%)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{background:rgb(228, 228, 230)}';var _=E;var z=t("duet_number_input",function(){function t(t){var u=this;e(this,t);this.duetChange=n(this,"duetChange",3);this.duetInput=n(this,"duetInput",3);this.duetBlur=n(this,"duetBlur",7);this.duetFocus=n(this,"duetFocus",7);this.inputId=a("DuetInput");this.handleFocus=function(){u.focusedValue=u.value};this.handleKeyDown=function(t){if(o(t)||d(t)){u.add(t)}else if(c(t)||b(t)){u.subtract(t)}else if(l(t)){u.clearValue()}};this.handleChange=function(t){var e=t.target;if(e&&e.value){try{var n=k(e.value,u.locale);if(isNaN(n)||n==null){n=u.min||0}u.setValue(n);u.duetInput.emit({component:"duet-number-input",originalEvent:t,value:k(u.value,u.locale).toString(),valueAsNumber:n})}catch(e){u.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{u.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var e=t.target;if(!e){return}if(e.value){try{var n=k(e.value,u.locale);if(u.rounding){n=N(n,u.step)}n=S(n,u.min,u.max);if(n!==k(u.value,u.locale)||n!==k(u.focusedValue,u.locale)){u.setValue(n);u.emitChange(t)}}catch(e){u.emitNull(t)}}else{u.emitNull(t)}};this.emitChange=function(t){var e=k(u.value,u.locale);u.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})};this.emitNull=function(t){u.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(u.locale)};this.setValue=function(t){u.value=u.localizeValue(t);u.duetInputElement.value="".concat(u.value," ").concat(u.unit)};this.add=function(t){if(t){t.preventDefault()}var e=k(u.value,u.locale);if(e===u.max){return}var n=e==null?u.min:e+u.step;if(n%u.step!==0){var i=n%u.step;n-=i}var r=S(n,u.min,u.max);u.value=u.localizeValue(r);u.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var e=k(u.value,u.locale);if(e===u.min){return}var n=e-u.step;if(n%u.step!==0){var i=u.step-n%u.step;n+=i}n=S(n,u.min,u.max);u.value=u.localizeValue(n);u.emitChange(t)};this.language=m();this.locale=f(this.language).locale;this.unit=f(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=v(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=v(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=v(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=v(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){s(this);if(this.value){this.value=this.localizeValue(k(this.value,this.locale))}x(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){g(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);h(this)};t.prototype.disconnectedCallback=function(){w(this);p(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=k(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(){this.value=null;this.duetInputElement.value=""};t.prototype.formatAnnouncement=function(){var t=!!this.value?k(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var r=!!this.value?k(this.value,this.locale):null;return u(i,{class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},u("div",{class:"duet-number-container"},u("duet-input",{ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":r!=null?r:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},u("slot",{name:"tooltip"}),u("div",{class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},u("button",{"aria-controls":e,disabled:this.disabled,"aria-disabled":r==null||r===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},u("duet-visually-hidden",null,this.accessibleSubtract," ",this.step),u("duet-icon",{icon:A.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),u("button",{"aria-controls":e,disabled:this.disabled,"aria-disabled":r===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},u("duet-visually-hidden",null,this.accessibleAdd," ",this.step),u("duet-icon",{icon:y.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&u("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());z.style=_}}}));
|
|
4
|
+
*/System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js","./p-0fee15c1.system.js","./p-0853dd3b.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,n,u,i,r,s,a,o,d,c,b,l,h,p,m,f,v,g,w,x;return{setters:[function(t){e=t.r;n=t.c;u=t.h;i=t.H;r=t.g},function(t){s=t.i},function(t){a=t.c},function(t){o=t.a;d=t.b;c=t.c;b=t.d;l=t.e;h=t.s;p=t.u},function(t){m=t.a;f=t.b;v=t.g;g=t.c;w=t.d},function(t){x=t.c},function(){}],execute:function(){var y={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var A={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function k(t,e){var n;if(typeof t==="string"){if(t===""){return null}var u=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){u=D(u,e,false)}u=u.replace(/\s+/g,"");n=parseFloat(u)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function D(t,e,n){if(n===void 0){n=false}var u;var i=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");u=t.replace(i,"DECIMALSEPARATOR");if(n){u=u.replace(s,"THOUSANDSEPARATOR")}else{u=u.replace(s,"")}u=u.replace("DECIMALSEPARATOR",r);u=u.replace("THOUSANDSEPARATOR",a);return u}var N=function(t,e){return Math.round(t/e)*e};var S=function(t,e,n){return Math.min(Math.max(t,e),n)};var E='*.sc-duet-number-input,*.sc-duet-number-input::after,*.sc-duet-number-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-number-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}.sc-duet-number-input-h:last-child,.sc-duet-number-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-number-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-number-input-h{width:100% !important}.duet-m-0.sc-duet-number-input-h{margin:0 !important}.duet-number-container.sc-duet-number-input{position:relative;width:100%}.duet-number-buttons.sc-duet-number-input{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled{pointer-events:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input duet-icon.sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled duet-icon.sc-duet-number-input{opacity:0.4}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:active duet-icon.sc-duet-number-input{transform:translateY(1px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{outline:0}.user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type{border-left:1px solid rgb(207, 210, 212)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(207, 210, 212, 0.2) 0%, rgba(207, 210, 212, 0.2) 1px, rgba(207, 210, 212, 0.1) 1px, rgba(207, 210, 212, 0) 100%)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(225, 227, 230)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{background:linear-gradient(to left, rgba(207, 207, 209, 0.2) 0%, rgba(207, 207, 209, 0.2) 1px, rgba(207, 207, 209, 0.1) 1px, rgba(207, 207, 209, 0) 100%)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{background:rgb(228, 228, 230)}';var _=E;var z=t("duet_number_input",function(){function t(t){var u=this;e(this,t);this.duetChange=n(this,"duetChange",3);this.duetInput=n(this,"duetInput",3);this.duetBlur=n(this,"duetBlur",7);this.duetFocus=n(this,"duetFocus",7);this.inputId=a("DuetInput");this.handleFocus=function(){u.focusedValue=u.value};this.handleKeyDown=function(t){if(o(t)||d(t)){u.add(t)}else if(c(t)||b(t)){u.subtract(t)}else if(l(t)){u.clearValue()}};this.handleChange=function(t){var e=t.target;if(e&&e.value){try{var n=k(e.value,u.locale);if(isNaN(n)||n==null){n=u.min||0}u.setValue(n);u.duetInput.emit({component:"duet-number-input",originalEvent:t,value:k(u.value,u.locale).toString(),valueAsNumber:n})}catch(e){u.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{u.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var e=t.target;if(!e){return}if(e.value){try{var n=k(e.value,u.locale);if(u.rounding){n=N(n,u.step)}n=S(n,u.min,u.max);if(n!==k(u.value,u.locale)||n!==k(u.focusedValue,u.locale)){u.setValue(n);u.emitChange(t)}}catch(e){u.emitNull(t)}}else{u.emitNull(t)}};this.emitChange=function(t){var e=k(u.value,u.locale);u.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})};this.emitNull=function(t){u.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(u.locale)};this.setValue=function(t){u.value=u.localizeValue(t);u.duetInputElement.value="".concat(u.value," ").concat(u.unit)};this.add=function(t){if(t){t.preventDefault()}var e=k(u.value,u.locale);if(e===u.max){return}var n=e==null?u.min:e+u.step;if(n%u.step!==0){var i=n%u.step;n-=i}var r=S(n,u.min,u.max);u.value=u.localizeValue(r);u.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var e=k(u.value,u.locale);if(e===u.min){return}var n=e-u.step;if(n%u.step!==0){var i=u.step-n%u.step;n+=i}n=S(n,u.min,u.max);u.value=u.localizeValue(n);u.emitChange(t)};this.language=m();this.locale=f(this.language).locale;this.unit=f(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=v(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=v(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=v(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=v(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){s(this);if(this.value){this.value=this.localizeValue(k(this.value,this.locale))}x(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){g(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);h(this)};t.prototype.disconnectedCallback=function(){w(this);p(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=k(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(){this.value=null;this.duetInputElement.value=""};t.prototype.formatAnnouncement=function(){var t=!!this.value?k(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var r=!!this.value?k(this.value,this.locale):null;return u(i,{class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},u("div",{class:"duet-number-container"},u("duet-input",{ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":r!=null?r:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},u("slot",{name:"tooltip"}),u("div",{class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},u("button",{"aria-controls":e,disabled:this.disabled,"aria-disabled":r==null||r===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},u("duet-visually-hidden",null,this.accessibleSubtract," ",this.step),u("duet-icon",{icon:A.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),u("button",{"aria-controls":e,disabled:this.disabled,"aria-disabled":r===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},u("duet-visually-hidden",null,this.accessibleAdd," ",this.step),u("duet-icon",{icon:y.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&u("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());z.style=_}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{h as n,r as e,H as t,g as i}from"./p-0974e195.js";import{i as a}from"./p-aaa7a7bd.js";import{h as s,c as r}from"./p-d0a6d2f8.js";import{p as d}from"./p-9c3c64b9.js";import{g as o}from"./p-1784b1d2.js";import"./p-4a901bfc.js";const l=({img:e,sources:t})=>n("picture",null,t&&t.map((e=>n("source",{srcSet:e.srcset,media:e.media,type:e.type,sizes:e.sizes}))),n("img",Object.assign({},e))),c=class{constructor(n){e(this,n),this.checkCurrentSize=()=>{const n=this.element.clientWidth;this.currentSize=n<500||"small"===this.size?"small":n<900||"medium"===this.size?"medium":"large",this.setButtonSize()},this.setButtonSize=()=>{if(this.hasActionSlot&&this.currentSize){const n=this.element.querySelectorAll("[slot='action'] duet-button, duet-button[slot='action']");for(const e of n)e&&null===e.getAttribute("size")&&"large"!==this.currentSize?e.size="small":e&&null===e.getAttribute("size")&&"large"===this.currentSize&&(e.size="medium")}},this.currentSize=void 0,this.theme="",this.margin="auto",this.backgroundColor="primary-lighter",this.iconColor="gray-lightest",this.iconBackgroundColor="primary",this.textColor="secondary",this.size="large",this.image="",this.sources=void 0,this.icon="",this.headingLevel="h2"}componentWillLoad(){a(this),this.hasHeadingSlot=s(this.element,"heading"),this.hasDescriptionSlot=s(this.element,"description"),this.hasActionSlot=s(this.element,"action"),r(this.element,"heading","span"),this.setButtonSize()}connectedCallback(){window.addEventListener("resize",this.checkCurrentSize)}disconnectedCallback(){window.removeEventListener("resize",this.checkCurrentSize)}componentDidRender(){this.checkCurrentSize()}render(){const e=o("turva"===this.theme&&"primary-lighter"===this.backgroundColor?"gray-lighter":this.backgroundColor,this.theme),i=o(this.textColor,this.theme),a={backgroundColor:e},s={img:{src:this.image,alt:"",loading:"lazy",class:"image",role:"presentation"},sources:d(this.sources)};return n(t,{key:"b8716b8067524ae7e4c29e56cdc37d6219c7743a",class:{"duet-m-0":"none"===this.margin}},n("aside",{key:"7c4b420d5a203fa5066f4a71a801c9fc288e179c",class:{"duet-banner":!0,"duet-theme-turva":"turva"===this.theme,[this.currentSize]:!0,"size-medium":"medium"===this.size||"large"===this.size,"size-large":"large"===this.size,"no-image":!this.image},style:a},n("div",{key:"dd84b698336d0c159b692bde709c6f10bfe414bf",class:"visual"},n("div",{key:"c92d3fdabc120fa760c30ae44e90a29439817940",class:"image-container"},this.image&&n(l,Object.assign({key:"bab1712aa5f1ab77a6c96babc607a9a9d4359dd2"},s))),!1,n("div",{key:"411fc99b5c017a4b89f4aa375d6725e9e85314e6",style:a,class:"brand-shape"})),n("div",{key:"6ba154b92216b98f00b33d740175760049157d14",class:"content"},this.hasHeadingSlot&&n("div",{key:"ba3ab430999ab6f0823ab957b06bcc4077799c5a",class:"heading"},n("duet-heading",{key:"256ed05f27e6c6c3ec987d4039d6a7caf713458b",theme:this.theme,level:this.headingLevel,"visual-level":"large"===this.currentSize?"h2":"h3","fixed-size":!0,margin:"none",color:this.textColor},n("span",{key:"197dbc447ca8910b13c8317cd00507e034e84e6f"},n("slot",{key:"cba3fcc030b0412d981e7cc94626e90aa628cb25",name:"heading"})))),this.hasDescriptionSlot&&n("div",{key:"dbcc6142fe33db74bccac1d54a1fe2a8e8ccc064",class:"description",style:{color:i}},n("slot",{key:"1806ab5f5be1ee076c3978f1fcb676cef6b62893",name:"description"})),this.hasActionSlot&&n("div",{key:"bf9fd56968048a53d15cc1849c2a3b4619851c49",class:"action"},n("slot",{key:"367d2a86cb83fe2d2bdb91ae1e133453e35ce895",name:"action"})))))}get element(){return i(this)}};c.style="*,\n*::after,\n*::before {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n}\n\n:host {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n margin-right: 36px !important;\n margin-bottom: 36px !important;\n display: flex;\n justify-content: center;\n width: auto;\n container: duet-banner-container;\n container-type: inline-size;\n}\n:host:last-child, :host:last-of-type {\n margin-right: 0 !important;\n}\n\n:host(.duet-m-0) {\n margin: 0 !important;\n}\n\n.duet-banner {\n display: grid;\n grid-template-rows: min-content 1fr;\n width: 100%;\n height: 100%;\n font-family: \"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-style: normal;\n text-align: left;\n border-radius: 16px;\n}\n.duet-banner.duet-p-0 {\n padding: 0 !important;\n}\n.duet-banner.duet-m-0 {\n margin: 0 !important;\n}\n.duet-banner .visual {\n position: relative;\n display: none;\n overflow: hidden;\n /* stylelint-disable */\n}\n@container duet-banner-container (min-width: 0px) {\n .duet-banner .visual {\n /* stylelint-enable */\n display: block;\n }\n}\n.duet-banner .visual .image-container {\n position: relative;\n aspect-ratio: 2/1;\n overflow: hidden;\n}\n.duet-banner .visual .image {\n position: relative;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n}\n.duet-banner .visual .icon {\n position: absolute;\n}\n.duet-banner .visual .brand-shape {\n position: absolute;\n top: 0;\n left: 72%;\n display: none;\n width: 100%;\n height: 100%;\n mask-image: url(\"data:image/svg+xml,%3Csvg%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20344%22%20fill%3D%22none%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.72641e-07%2091.1902C0.000476976%2097.9034%200.626077%20104.726%201.92282%20111.592L42.7493%20327.771C43.8045%20333.358%2045.2667%20338.776%2047.0996%20344H160V0H51.1439C19.7799%2019.1253%200.00268143%2053.4178%202.72641e-07%2091.1749C-9.08807e-08%2091.18%20-9.08875e-08%2091.1851%202.72641e-07%2091.1902Z%22%20fill%3D%22%23E6F2F8%22%2F%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fsvg%3E\");\n}\n.duet-banner .content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 16px 20px 28px;\n}\n.duet-banner .content .description {\n hyphens: auto;\n}\n.duet-banner .action {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n align-items: flex-start;\n justify-content: flex-end;\n padding-top: 16px;\n}\n.duet-banner .visual {\n border-top-left-radius: 16px;\n border-top-right-radius: 16px;\n}\n.duet-banner .visual .image-container {\n width: 100%;\n height: auto;\n border-radius: 0;\n}\n.duet-banner .visual .icon {\n bottom: 30px;\n left: 15px;\n}\n.duet-banner.duet-theme-turva {\n font-family: \"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n}\n.duet-banner.duet-theme-turva .visual .brand-shape {\n mask-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 160 344' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_7920_3801)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.58983 142.533C0.751086 155.147 0.0746585 167.857 0.00796847 179.225C0.00263853 179.814 0 180.409 0 181.007C0 194.845 1.41172 210.806 3.58065 223.171C5.6528 234.934 8.58716 246.495 12.5981 257.779C21.2249 282.059 34.0151 304.109 50.8401 323.977C56.7824 330.993 63.0921 337.68 69.8162 344H160V0H65.0733C52.1771 10.7866 41.4339 23.4177 32.7528 37.7978C21.1154 57.0822 14.0367 77.9583 9.75424 99.7913C9.09214 103.157 8.55049 106.545 8.00901 109.933C7.75185 111.542 7.49474 113.15 7.22478 114.756C6.74308 117.618 6.24543 120.479 5.74776 123.34C4.6361 129.729 3.52432 136.12 2.58983 142.533Z' fill='%23F5F5F7'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_7920_3801'%3E%3Crect width='160' height='344' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A\");\n}\n.duet-banner.size-medium, .duet-banner.size-large {\n /* stylelint-disable */\n /* stylelint-disable */\n}\n@container duet-banner-container (min-width: 486px) {\n .duet-banner.size-medium, .duet-banner.size-large {\n /* stylelint-enable */\n grid-template-rows: none;\n grid-template-columns: 50% 50%;\n }\n .duet-banner.size-medium .visual, .duet-banner.size-large .visual {\n border-top-left-radius: 16px;\n border-top-right-radius: 0;\n border-bottom-left-radius: 16px;\n }\n .duet-banner.size-medium .visual .image-container, .duet-banner.size-large .visual .image-container {\n height: 100%;\n }\n .duet-banner.size-medium .visual .image, .duet-banner.size-large .visual .image {\n width: 100%;\n height: 100%;\n }\n .duet-banner.size-medium .visual .icon, .duet-banner.size-large .visual .icon {\n top: 36px;\n left: 168px;\n }\n .duet-banner.size-medium .visual .brand-shape, .duet-banner.size-large .visual .brand-shape {\n display: block;\n }\n .duet-banner.size-medium .content, .duet-banner.size-large .content {\n align-items: flex-start;\n justify-content: center;\n padding: 28px 28px 28px 0;\n }\n .duet-banner.size-medium .action, .duet-banner.size-large .action {\n flex-grow: 0;\n }\n}\n@container duet-banner-container (min-width: 586px) {\n .duet-banner.size-medium, .duet-banner.size-large {\n /* stylelint-enable */\n }\n .duet-banner.size-medium .visual .brand-shape, .duet-banner.size-large .visual .brand-shape {\n left: 80%;\n }\n}\n.duet-banner.size-large {\n /* stylelint-disable */\n}\n@container duet-banner-container (min-width: 900px) {\n .duet-banner.size-large {\n /* stylelint-enable */\n grid-template-rows: none;\n grid-template-columns: 50% 50%;\n }\n .duet-banner.size-large .visual {\n border-top-left-radius: 16px;\n border-bottom-left-radius: 16px;\n }\n .duet-banner.size-large .visual .image-container {\n height: 100%;\n }\n .duet-banner.size-large .visual .image {\n width: 100%;\n height: 100%;\n }\n .duet-banner.size-large .visual .icon {\n top: 40px;\n bottom: auto;\n left: 335px;\n }\n .duet-banner.size-large .visual .brand-shape {\n display: block;\n }\n .duet-banner.size-large .content {\n align-items: flex-start;\n justify-content: center;\n padding: 48px 48px 48px 0;\n }\n .duet-banner.size-large .action {\n flex-grow: 0;\n }\n}\n.duet-banner.no-image {\n display: flex;\n justify-content: center;\n padding: 36px 20px;\n}\n.duet-banner.no-image .visual {\n display: none;\n}\n.duet-banner.no-image .content {\n width: 100%;\n max-width: 720px;\n padding: 0;\n}\n.duet-banner.no-image.size-medium, .duet-banner.no-image.size-large {\n /* stylelint-disable */\n}\n@container duet-banner-container (min-width: 486px) {\n .duet-banner.no-image.size-medium, .duet-banner.no-image.size-large {\n /* stylelint-enable */\n padding: 48px;\n }\n}";export{c as duet_banner}
|
|
4
|
+
import{h as n,r as e,H as t,g as i}from"./p-00f584d4.js";import{i as a}from"./p-aaa7a7bd.js";import{h as s,c as r}from"./p-8507509a.js";import{p as d}from"./p-9c3c64b9.js";import{g as o}from"./p-e95fa292.js";import"./p-50c83774.js";const l=({img:e,sources:t})=>n("picture",null,t&&t.map((e=>n("source",{srcSet:e.srcset,media:e.media,type:e.type,sizes:e.sizes}))),n("img",Object.assign({},e))),c=class{constructor(n){e(this,n),this.checkCurrentSize=()=>{const n=this.element.clientWidth;this.currentSize=n<500||"small"===this.size?"small":n<900||"medium"===this.size?"medium":"large",this.setButtonSize()},this.setButtonSize=()=>{if(this.hasActionSlot&&this.currentSize){const n=this.element.querySelectorAll("[slot='action'] duet-button, duet-button[slot='action']");for(const e of n)e&&null===e.getAttribute("size")&&"large"!==this.currentSize?e.size="small":e&&null===e.getAttribute("size")&&"large"===this.currentSize&&(e.size="medium")}},this.currentSize=void 0,this.theme="",this.margin="auto",this.backgroundColor="primary-lighter",this.iconColor="gray-lightest",this.iconBackgroundColor="primary",this.textColor="secondary",this.size="large",this.image="",this.sources=void 0,this.icon="",this.headingLevel="h2"}componentWillLoad(){a(this),this.hasHeadingSlot=s(this.element,"heading"),this.hasDescriptionSlot=s(this.element,"description"),this.hasActionSlot=s(this.element,"action"),r(this.element,"heading","span"),this.setButtonSize()}connectedCallback(){window.addEventListener("resize",this.checkCurrentSize)}disconnectedCallback(){window.removeEventListener("resize",this.checkCurrentSize)}componentDidRender(){this.checkCurrentSize()}render(){const e=o("turva"===this.theme&&"primary-lighter"===this.backgroundColor?"gray-lighter":this.backgroundColor,this.theme),i=o(this.textColor,this.theme),a={backgroundColor:e},s={img:{src:this.image,alt:"",loading:"lazy",class:"image",role:"presentation"},sources:d(this.sources)};return n(t,{key:"b8716b8067524ae7e4c29e56cdc37d6219c7743a",class:{"duet-m-0":"none"===this.margin}},n("aside",{key:"7c4b420d5a203fa5066f4a71a801c9fc288e179c",class:{"duet-banner":!0,"duet-theme-turva":"turva"===this.theme,[this.currentSize]:!0,"size-medium":"medium"===this.size||"large"===this.size,"size-large":"large"===this.size,"no-image":!this.image},style:a},n("div",{key:"dd84b698336d0c159b692bde709c6f10bfe414bf",class:"visual"},n("div",{key:"c92d3fdabc120fa760c30ae44e90a29439817940",class:"image-container"},this.image&&n(l,Object.assign({key:"bab1712aa5f1ab77a6c96babc607a9a9d4359dd2"},s))),!1,n("div",{key:"411fc99b5c017a4b89f4aa375d6725e9e85314e6",style:a,class:"brand-shape"})),n("div",{key:"6ba154b92216b98f00b33d740175760049157d14",class:"content"},this.hasHeadingSlot&&n("div",{key:"ba3ab430999ab6f0823ab957b06bcc4077799c5a",class:"heading"},n("duet-heading",{key:"256ed05f27e6c6c3ec987d4039d6a7caf713458b",theme:this.theme,level:this.headingLevel,"visual-level":"large"===this.currentSize?"h2":"h3","fixed-size":!0,margin:"none",color:this.textColor},n("span",{key:"197dbc447ca8910b13c8317cd00507e034e84e6f"},n("slot",{key:"cba3fcc030b0412d981e7cc94626e90aa628cb25",name:"heading"})))),this.hasDescriptionSlot&&n("div",{key:"dbcc6142fe33db74bccac1d54a1fe2a8e8ccc064",class:"description",style:{color:i}},n("slot",{key:"1806ab5f5be1ee076c3978f1fcb676cef6b62893",name:"description"})),this.hasActionSlot&&n("div",{key:"bf9fd56968048a53d15cc1849c2a3b4619851c49",class:"action"},n("slot",{key:"367d2a86cb83fe2d2bdb91ae1e133453e35ce895",name:"action"})))))}get element(){return i(this)}};c.style="*,\n*::after,\n*::before {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n}\n\n:host {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n margin-right: 36px !important;\n margin-bottom: 36px !important;\n display: flex;\n justify-content: center;\n width: auto;\n container: duet-banner-container;\n container-type: inline-size;\n}\n:host:last-child, :host:last-of-type {\n margin-right: 0 !important;\n}\n\n:host(.duet-m-0) {\n margin: 0 !important;\n}\n\n.duet-banner {\n display: grid;\n grid-template-rows: min-content 1fr;\n width: 100%;\n height: 100%;\n font-family: \"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-style: normal;\n text-align: left;\n border-radius: 16px;\n}\n.duet-banner.duet-p-0 {\n padding: 0 !important;\n}\n.duet-banner.duet-m-0 {\n margin: 0 !important;\n}\n.duet-banner .visual {\n position: relative;\n display: none;\n overflow: hidden;\n /* stylelint-disable */\n}\n@container duet-banner-container (min-width: 0px) {\n .duet-banner .visual {\n /* stylelint-enable */\n display: block;\n }\n}\n.duet-banner .visual .image-container {\n position: relative;\n aspect-ratio: 2/1;\n overflow: hidden;\n}\n.duet-banner .visual .image {\n position: relative;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n}\n.duet-banner .visual .icon {\n position: absolute;\n}\n.duet-banner .visual .brand-shape {\n position: absolute;\n top: 0;\n left: 72%;\n display: none;\n width: 100%;\n height: 100%;\n mask-image: url(\"data:image/svg+xml,%3Csvg%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20344%22%20fill%3D%22none%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.72641e-07%2091.1902C0.000476976%2097.9034%200.626077%20104.726%201.92282%20111.592L42.7493%20327.771C43.8045%20333.358%2045.2667%20338.776%2047.0996%20344H160V0H51.1439C19.7799%2019.1253%200.00268143%2053.4178%202.72641e-07%2091.1749C-9.08807e-08%2091.18%20-9.08875e-08%2091.1851%202.72641e-07%2091.1902Z%22%20fill%3D%22%23E6F2F8%22%2F%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fsvg%3E\");\n}\n.duet-banner .content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 16px 20px 28px;\n}\n.duet-banner .content .description {\n hyphens: auto;\n}\n.duet-banner .action {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n align-items: flex-start;\n justify-content: flex-end;\n padding-top: 16px;\n}\n.duet-banner .visual {\n border-top-left-radius: 16px;\n border-top-right-radius: 16px;\n}\n.duet-banner .visual .image-container {\n width: 100%;\n height: auto;\n border-radius: 0;\n}\n.duet-banner .visual .icon {\n bottom: 30px;\n left: 15px;\n}\n.duet-banner.duet-theme-turva {\n font-family: \"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n}\n.duet-banner.duet-theme-turva .visual .brand-shape {\n mask-image: url(\"data:image/svg+xml,%3Csvg viewBox='0 0 160 344' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_7920_3801)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.58983 142.533C0.751086 155.147 0.0746585 167.857 0.00796847 179.225C0.00263853 179.814 0 180.409 0 181.007C0 194.845 1.41172 210.806 3.58065 223.171C5.6528 234.934 8.58716 246.495 12.5981 257.779C21.2249 282.059 34.0151 304.109 50.8401 323.977C56.7824 330.993 63.0921 337.68 69.8162 344H160V0H65.0733C52.1771 10.7866 41.4339 23.4177 32.7528 37.7978C21.1154 57.0822 14.0367 77.9583 9.75424 99.7913C9.09214 103.157 8.55049 106.545 8.00901 109.933C7.75185 111.542 7.49474 113.15 7.22478 114.756C6.74308 117.618 6.24543 120.479 5.74776 123.34C4.6361 129.729 3.52432 136.12 2.58983 142.533Z' fill='%23F5F5F7'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_7920_3801'%3E%3Crect width='160' height='344' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A\");\n}\n.duet-banner.size-medium, .duet-banner.size-large {\n /* stylelint-disable */\n /* stylelint-disable */\n}\n@container duet-banner-container (min-width: 486px) {\n .duet-banner.size-medium, .duet-banner.size-large {\n /* stylelint-enable */\n grid-template-rows: none;\n grid-template-columns: 50% 50%;\n }\n .duet-banner.size-medium .visual, .duet-banner.size-large .visual {\n border-top-left-radius: 16px;\n border-top-right-radius: 0;\n border-bottom-left-radius: 16px;\n }\n .duet-banner.size-medium .visual .image-container, .duet-banner.size-large .visual .image-container {\n height: 100%;\n }\n .duet-banner.size-medium .visual .image, .duet-banner.size-large .visual .image {\n width: 100%;\n height: 100%;\n }\n .duet-banner.size-medium .visual .icon, .duet-banner.size-large .visual .icon {\n top: 36px;\n left: 168px;\n }\n .duet-banner.size-medium .visual .brand-shape, .duet-banner.size-large .visual .brand-shape {\n display: block;\n }\n .duet-banner.size-medium .content, .duet-banner.size-large .content {\n align-items: flex-start;\n justify-content: center;\n padding: 28px 28px 28px 0;\n }\n .duet-banner.size-medium .action, .duet-banner.size-large .action {\n flex-grow: 0;\n }\n}\n@container duet-banner-container (min-width: 586px) {\n .duet-banner.size-medium, .duet-banner.size-large {\n /* stylelint-enable */\n }\n .duet-banner.size-medium .visual .brand-shape, .duet-banner.size-large .visual .brand-shape {\n left: 80%;\n }\n}\n.duet-banner.size-large {\n /* stylelint-disable */\n}\n@container duet-banner-container (min-width: 900px) {\n .duet-banner.size-large {\n /* stylelint-enable */\n grid-template-rows: none;\n grid-template-columns: 50% 50%;\n }\n .duet-banner.size-large .visual {\n border-top-left-radius: 16px;\n border-bottom-left-radius: 16px;\n }\n .duet-banner.size-large .visual .image-container {\n height: 100%;\n }\n .duet-banner.size-large .visual .image {\n width: 100%;\n height: 100%;\n }\n .duet-banner.size-large .visual .icon {\n top: 40px;\n bottom: auto;\n left: 335px;\n }\n .duet-banner.size-large .visual .brand-shape {\n display: block;\n }\n .duet-banner.size-large .content {\n align-items: flex-start;\n justify-content: center;\n padding: 48px 48px 48px 0;\n }\n .duet-banner.size-large .action {\n flex-grow: 0;\n }\n}\n.duet-banner.no-image {\n display: flex;\n justify-content: center;\n padding: 36px 20px;\n}\n.duet-banner.no-image .visual {\n display: none;\n}\n.duet-banner.no-image .content {\n width: 100%;\n max-width: 720px;\n padding: 0;\n}\n.duet-banner.no-image.size-medium, .duet-banner.no-image.size-large {\n /* stylelint-disable */\n}\n@container duet-banner-container (min-width: 486px) {\n .duet-banner.no-image.size-medium, .duet-banner.no-image.size-large {\n /* stylelint-enable */\n padding: 48px;\n }\n}";export{c as duet_banner}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{s(i.next(e))}catch(e){a(e)}}function u(e){try{s(i["throw"](e))}catch(e){a(e)}}function s(e){e.done?n(e.value):r(e.value).then(o,u)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(i=1,r&&(a=u[0]&2?r["return"]:u[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;if(r=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++;r=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=t.call(e,n)}catch(e){u=[6,e];r=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-
|
|
4
|
+
*/System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js"],(function(e){"use strict";var t,n,i,r,a,o;return{setters:[function(e){t=e.r;n=e.h;i=e.H;r=e.g},function(e){a=e.i},function(e){o=e.f}],execute:function(){var u='*,*::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;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-item{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;line-height:1.25;color:rgb(0, 77, 128);text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-submenu-bar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-item:focus,.duet-submenu-bar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-item .label{display:flex;gap:5px;align-items:center;justify-content:center}.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:16px;height:16px}}.duet-submenu-bar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-submenu-bar-item .trailing-icon{position:absolute;right:12px}.duet-submenu-bar-item[aria-expanded=true]{background:rgb(230, 242, 248)}.duet-submenu-bar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-submenu-bar-item.active{color:rgb(0, 119, 179)}.duet-submenu-bar-item.active.duet-theme-turva{color:rgb(148, 9, 37)}.duet-submenu-bar-item.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-submenu-bar-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-item.duet-theme-turva.active .label::after{background:rgb(148, 9, 37)}.duet-submenu-bar-item.duet-theme-turva.active::after{background:rgb(148, 9, 37)}.duet-submenu-bar-item:hover{color:rgb(0, 41, 77);background:rgb(230, 242, 248)}.duet-submenu-bar-item:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(228, 228, 230)}.duet-submenu-bar-item:hover.duet-theme-turva.active{color:rgb(148, 9, 37)}';var s=u;var c=e("duet_submenu_bar_item",function(){function e(e){t(this,e);this.theme="";this.active=false;this.url=undefined;this.leadingIcon=undefined;this.trailingIcon=undefined;this.accessibleLabel=undefined;this.accessibleExpanded=undefined;this.accessiblePopup="false"}e.prototype.componentWillLoad=function(){a(this)};e.prototype.handleEscape=function(e){if(o(e)){var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var r=this.url?"link":"button";return n(i,{key:"0e1724544b134f6de86d56dd739a9635f337e717",role:"listitem"},n(t,{key:"6f04e57ea3e9bf27a1967283e2375a281d675529",ref:function(t){return e.itemElement=t},class:{"duet-submenu-bar-item":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.url,onKeyUp:function(t){return e.handleEscape(t)},"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-haspopup":this.accessiblePopup!=null?this.accessiblePopup.toString():undefined,role:r},this.leadingIcon&&n("duet-icon",{key:"e1b98f949d70182538731d1d7f07bd961fd79836",class:"leading-icon",theme:this.theme,name:this.leadingIcon,size:"auto",margin:"none",color:"currentColor"}),n("div",{key:"af220f398f6bdc969c4de91c5bdf03cb814631f0",class:"label"},n("span",{key:"6b376bcca90ac606bd44f4dc04026d8eda710004",class:"label-text"},n("slot",{key:"cec40ee0c2ca47ee02e3b0ede33d41d8a0e6d797"})),this.trailingIcon&&n("duet-icon",{key:"243fd913a9c6d73489e2d1bcfa60566fa72bfcf6",class:{"trailing-icon":true,"trailing-icon-arrow":this.trailingIcon==="action-arrow-down-small",rotate:this.trailingIcon==="action-arrow-down-small"&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon,margin:"none",size:"auto",color:"currentColor"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());c.style=s}}}));
|