@duetds/components 9.2.9 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +169 -159
- package/lib/cjs/{a11y-utils-1aed38e5.js → a11y-utils-38cc728a.js} +1 -1
- package/lib/cjs/{app-globals-f1966275.js → app-globals-f0563ef8.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-alert.cjs.entry.js +3 -3
- package/lib/cjs/duet-badge.cjs.entry.js +3 -3
- package/lib/cjs/duet-banner.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +4 -4
- package/lib/cjs/duet-button_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-callout.cjs.entry.js +4 -4
- package/lib/cjs/duet-caption_4.cjs.entry.js +7 -7
- package/lib/cjs/duet-card.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +3 -3
- package/lib/cjs/duet-chip_3.cjs.entry.js +3 -3
- package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +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 +9 -4
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +7 -7
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
- package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +3 -3
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-hero.cjs.entry.js +3 -3
- package/lib/cjs/duet-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-layout.cjs.entry.js +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 +6 -6
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar.cjs.entry.js +2 -2
- package/lib/cjs/duet-modal.cjs.entry.js +4 -4
- 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 +3 -3
- package/lib/cjs/duet-pagination_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-progress.cjs.entry.js +2 -2
- package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +46 -46
- 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 +10 -10
- package/lib/cjs/duet-slideout.cjs.entry.js +19 -16
- 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 +5 -5
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-textarea.cjs.entry.js +3 -3
- 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 +7 -7
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
- package/lib/cjs/duet-tray.cjs.entry.js +4 -4
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-3668bb19.js → errorcodes.utils-54949f8e.js} +1 -1
- package/lib/cjs/{focus-utils-a099fd23.js → focus-utils-c89eb692.js} +1 -1
- package/lib/cjs/{index-2a0a8850.js → index-5f032552.js} +1 -1
- package/lib/cjs/{language-utils-4e60880e.js → language-utils-a8e10789.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-3e7ba5fe.js → slot-utils-b995682a.js} +1 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +5 -0
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-link/duet-link.css +16 -12
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.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-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +44 -1
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +61 -8
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.js +15 -12
- 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-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +66 -56
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +39 -40
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +3 -3
- package/lib/dist-custom-elements/duet-breadcrumb.js +7 -7
- package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +4 -4
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +3 -3
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +8 -8
- package/lib/dist-custom-elements/duet-choice.js +4 -4
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- package/lib/dist-custom-elements/duet-combobox.js +15 -15
- package/lib/dist-custom-elements/duet-contact-card.js +10 -10
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +18 -13
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +7 -7
- 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 +7 -7
- 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 +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +9 -9
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +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 +2 -2
- package/lib/dist-custom-elements/duet-modal.js +8 -8
- package/lib/dist-custom-elements/duet-multiselect.js +9 -9
- package/lib/dist-custom-elements/duet-nav.js +2 -2
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +4 -4
- package/lib/dist-custom-elements/duet-number-input.js +11 -11
- package/lib/dist-custom-elements/duet-overlay.js +1 -1
- package/lib/dist-custom-elements/duet-page-heading.js +5 -5
- package/lib/dist-custom-elements/duet-pagination.js +13 -13
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +5 -5
- package/lib/dist-custom-elements/duet-radio-group.js +8 -8
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- 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 +3 -3
- package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-slideout-panel.js +8 -8
- package/lib/dist-custom-elements/duet-slideout.js +18 -15
- 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 +6 -6
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
- package/lib/dist-custom-elements/duet-tab-group.js +40 -83
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +10 -10
- package/lib/dist-custom-elements/duet-toggle.js +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 +5 -5
- package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar.js +3 -3
- package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +5 -5
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload-item.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +21 -21
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-2943089f.js → p-076fca2d.js} +1 -1
- package/lib/dist-custom-elements/{p-a8b3fd4c.js → p-09a8f668.js} +3 -3
- package/lib/dist-custom-elements/{p-27cbc339.js → p-0a4ff31b.js} +3 -3
- package/lib/dist-custom-elements/{p-e0f85f88.js → p-0bc2e3ae.js} +8 -8
- package/lib/dist-custom-elements/{p-9cf3b4f1.js → p-0f7f0a83.js} +3 -3
- package/lib/dist-custom-elements/{p-41502808.js → p-103cc7c5.js} +2 -2
- package/lib/dist-custom-elements/{p-35123857.js → p-15b2b51c.js} +6 -6
- package/lib/dist-custom-elements/{p-44708612.js → p-1a5288a4.js} +1 -1
- package/lib/dist-custom-elements/{p-da5b8ec9.js → p-1c379414.js} +2 -2
- package/lib/dist-custom-elements/{p-179d56b4.js → p-21dd7bb6.js} +1 -1
- package/lib/dist-custom-elements/{p-41fdac81.js → p-24b8aa06.js} +4 -4
- package/lib/dist-custom-elements/{p-e1b88b31.js → p-26deaac9.js} +1 -1
- package/lib/dist-custom-elements/{p-cbaff5a0.js → p-26e23171.js} +1 -1
- package/lib/dist-custom-elements/{p-9dffb45b.js → p-293decb6.js} +1 -1
- package/lib/dist-custom-elements/{p-5cdebc59.js → p-3e4b714a.js} +1 -1
- package/lib/dist-custom-elements/{p-31ff9a51.js → p-3f0c498c.js} +10 -10
- package/lib/dist-custom-elements/{p-987a4fd4.js → p-500bd959.js} +2 -2
- package/lib/dist-custom-elements/{p-582aa1ce.js → p-50aa1b2f.js} +1 -1
- package/lib/dist-custom-elements/{p-56ee56e2.js → p-59ebdad5.js} +1 -1
- package/lib/dist-custom-elements/{p-34c882ce.js → p-645e6264.js} +5 -5
- package/lib/dist-custom-elements/{p-d77d6afd.js → p-65e4b6d6.js} +5 -5
- package/lib/dist-custom-elements/{p-ca75b999.js → p-6a6e776c.js} +4 -4
- package/lib/dist-custom-elements/{p-e618b914.js → p-6ae31cd8.js} +1 -1
- package/lib/dist-custom-elements/{p-4231dbd3.js → p-8611f263.js} +3 -3
- package/lib/dist-custom-elements/{p-0a644195.js → p-9881577b.js} +3 -3
- package/lib/dist-custom-elements/{p-d52cb82b.js → p-9f4351bc.js} +1 -1
- package/lib/dist-custom-elements/{p-fc46d383.js → p-a031995e.js} +2 -2
- package/lib/dist-custom-elements/{p-788e7d41.js → p-ae1777be.js} +2 -2
- package/lib/dist-custom-elements/{p-1fd154eb.js → p-b056c1ad.js} +3 -3
- package/lib/dist-custom-elements/{p-30ef22d9.js → p-ca5d8fa3.js} +1 -1
- package/lib/dist-custom-elements/{p-3c793d69.js → p-ca6bc272.js} +23 -14
- package/lib/dist-custom-elements/{p-686a6241.js → p-d0239f13.js} +1 -1
- package/lib/dist-custom-elements/{p-b98a40e8.js → p-d2bcbefe.js} +5 -5
- package/lib/dist-custom-elements/{p-e0764308.js → p-d90fe5ac.js} +1 -1
- package/lib/dist-custom-elements/{p-bc7fed2d.js → p-dd451078.js} +4 -4
- package/lib/dist-custom-elements/{p-e3666c32.js → p-e0d2a491.js} +5 -5
- package/lib/dist-custom-elements/{p-27514d04.js → p-e26bca4a.js} +12 -12
- package/lib/dist-custom-elements/{p-aeb538c5.js → p-eb6d9b73.js} +1 -1
- package/lib/dist-custom-elements/{p-db694b95.js → p-fa300b37.js} +5 -5
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-b08f6621.system.entry.js → p-0017a15a.system.entry.js} +1 -1
- package/lib/duet/{p-c52eb9c5.system.entry.js → p-01de4654.system.entry.js} +1 -1
- package/lib/duet/{p-cd4b600e.entry.js → p-047159d2.entry.js} +1 -1
- package/lib/duet/p-0acda711.entry.js +4 -0
- package/lib/duet/{p-e0b68336.js → p-0c6b088d.js} +1 -1
- package/lib/duet/{p-33f7ec65.system.entry.js → p-0c8b9fd2.system.entry.js} +1 -1
- package/lib/duet/{p-9af7b9a3.system.entry.js → p-0f5503a2.system.entry.js} +1 -1
- package/lib/duet/{p-6567d9e7.entry.js → p-0f764899.entry.js} +1 -1
- package/lib/duet/{p-634bdce1.system.entry.js → p-10225f3d.system.entry.js} +1 -1
- package/lib/duet/{p-17a0b9f0.entry.js → p-10fb8b25.entry.js} +1 -1
- package/lib/duet/{p-7095502e.system.entry.js → p-12b94807.system.entry.js} +1 -1
- package/lib/duet/{p-8460d964.system.entry.js → p-13b1bb75.system.entry.js} +1 -1
- package/lib/duet/{p-d4154247.system.entry.js → p-1465c813.system.entry.js} +2 -2
- package/lib/duet/{p-7a96d3cb.system.entry.js → p-14baa983.system.entry.js} +2 -2
- package/lib/duet/{p-ce80a61c.system.entry.js → p-163ab70d.system.entry.js} +1 -1
- package/lib/duet/{p-3d12da02.entry.js → p-17bd04ab.entry.js} +1 -1
- package/lib/duet/{p-8531be0e.system.entry.js → p-1888d7bd.system.entry.js} +1 -1
- package/lib/duet/{p-b0aa75eb.entry.js → p-19ec7d46.entry.js} +1 -1
- package/lib/duet/{p-097d4fff.entry.js → p-19edf223.entry.js} +1 -1
- package/lib/duet/{p-9c82d287.system.entry.js → p-1cbcf5d9.system.entry.js} +1 -1
- package/lib/duet/{p-d5e2dabf.system.entry.js → p-1d29fe4b.system.entry.js} +1 -1
- package/lib/duet/{p-bf50a961.system.entry.js → p-1d8cf919.system.entry.js} +1 -1
- package/lib/duet/{p-2c313d1c.system.entry.js → p-214685e0.system.entry.js} +1 -1
- package/lib/duet/{p-4eb71381.system.entry.js → p-21e73322.system.entry.js} +1 -1
- package/lib/duet/{p-f87348b7.entry.js → p-225414c1.entry.js} +1 -1
- package/lib/duet/{p-45b3c99c.entry.js → p-22f68da5.entry.js} +1 -1
- package/lib/duet/{p-7b1066d0.entry.js → p-23006691.entry.js} +1 -1
- package/lib/duet/p-254631c5.system.js +4 -0
- package/lib/duet/{p-94ebe910.system.entry.js → p-25cff77e.system.entry.js} +1 -1
- package/lib/duet/{p-125956b8.system.entry.js → p-273dbbb5.system.entry.js} +1 -1
- package/lib/duet/{p-4c23b366.entry.js → p-281b423a.entry.js} +1 -1
- package/lib/duet/{p-878bc7fd.system.entry.js → p-29deabf7.system.entry.js} +1 -1
- package/lib/duet/{p-bcf290ee.system.entry.js → p-2ac13531.system.entry.js} +1 -1
- package/lib/duet/{p-1dac7dde.entry.js → p-2d416c79.entry.js} +1 -1
- package/lib/duet/{p-d2fc331f.system.entry.js → p-2d9731a6.system.entry.js} +1 -1
- package/lib/duet/{p-e836a2fd.entry.js → p-31537378.entry.js} +1 -1
- package/lib/duet/{p-f39a5889.entry.js → p-315faa77.entry.js} +1 -1
- package/lib/duet/{p-a7cf1f52.entry.js → p-31df3a7c.entry.js} +1 -1
- package/lib/duet/{p-0818208c.entry.js → p-324b5653.entry.js} +1 -1
- package/lib/duet/{p-c3f14636.entry.js → p-3559f6ef.entry.js} +1 -1
- package/lib/duet/{p-c13bc1aa.entry.js → p-35cdeac0.entry.js} +1 -1
- package/lib/duet/{p-673e8fdb.entry.js → p-36e9597f.entry.js} +1 -1
- package/lib/duet/{p-704e7a2d.js → p-37a1842f.js} +1 -1
- package/lib/duet/{p-90a1356f.system.entry.js → p-38562cfa.system.entry.js} +1 -1
- package/lib/duet/{p-d5efb6ee.entry.js → p-392e3c46.entry.js} +1 -1
- package/lib/duet/{p-c931d61e.system.entry.js → p-3a43c761.system.entry.js} +1 -1
- package/lib/duet/{p-f8941b12.entry.js → p-3bfd7c5f.entry.js} +1 -1
- package/lib/duet/{p-6a4078d9.entry.js → p-3e89d4a2.entry.js} +1 -1
- package/lib/duet/{p-c0b18150.system.entry.js → p-3eb3cb80.system.entry.js} +1 -1
- package/lib/duet/p-4367d56e.entry.js +4 -0
- package/lib/duet/{p-f01bfd7d.entry.js → p-465ebe1e.entry.js} +1 -1
- package/lib/duet/{p-20385aa0.entry.js → p-48689e64.entry.js} +1 -1
- package/lib/duet/{p-8b5a8d90.entry.js → p-48bcb3d6.entry.js} +1 -1
- package/lib/duet/p-48de990a.system.entry.js +4 -0
- package/lib/duet/{p-2a42806a.entry.js → p-492a4834.entry.js} +1 -1
- package/lib/duet/{p-942beef5.entry.js → p-49e05ba7.entry.js} +1 -1
- package/lib/duet/{p-0d7c518f.system.entry.js → p-4cf28f01.system.entry.js} +1 -1
- package/lib/duet/{p-743d5076.entry.js → p-4d685c3b.entry.js} +1 -1
- package/lib/duet/{p-11938523.system.entry.js → p-514c62a2.system.entry.js} +2 -2
- package/lib/duet/{p-c1fd4366.system.entry.js → p-5489d30d.system.entry.js} +1 -1
- package/lib/duet/{p-85d2cb85.entry.js → p-5838b436.entry.js} +1 -1
- package/lib/duet/p-5a043b53.system.js +4 -0
- package/lib/duet/{p-797959a3.js → p-5a4b011d.js} +1 -1
- package/lib/duet/{p-2b005714.entry.js → p-5ad46180.entry.js} +1 -1
- package/lib/duet/{p-756012c1.system.entry.js → p-5c03a84e.system.entry.js} +1 -1
- package/lib/duet/{p-13348dc5.entry.js → p-60f61794.entry.js} +1 -1
- package/lib/duet/{p-632b25ab.entry.js → p-6417e4b6.entry.js} +1 -1
- package/lib/duet/{p-4c67cf58.system.entry.js → p-65dbb3e1.system.entry.js} +1 -1
- package/lib/duet/{p-169dba92.system.entry.js → p-6ba8bd37.system.entry.js} +1 -1
- package/lib/duet/{p-1cb4cfb0.system.entry.js → p-6c9477fc.system.entry.js} +1 -1
- package/lib/duet/{p-71697275.entry.js → p-6d1ca645.entry.js} +1 -1
- package/lib/duet/{p-d57995c3.system.entry.js → p-6f537912.system.entry.js} +2 -2
- package/lib/duet/{p-ebce5a71.entry.js → p-6f9f0c6e.entry.js} +1 -1
- package/lib/duet/{p-99cec344.system.entry.js → p-71b1e594.system.entry.js} +1 -1
- package/lib/duet/{p-b8af6681.system.entry.js → p-720529cc.system.entry.js} +1 -1
- package/lib/duet/{p-e3187da9.entry.js → p-742c7b8d.entry.js} +1 -1
- package/lib/duet/{p-b2dc3ec5.system.entry.js → p-7510af57.system.entry.js} +1 -1
- package/lib/duet/{p-d997c94d.system.entry.js → p-76bacd25.system.entry.js} +1 -1
- package/lib/duet/p-77f74d88.entry.js +4 -0
- package/lib/duet/{p-938e773d.entry.js → p-79237081.entry.js} +1 -1
- package/lib/duet/{p-daf6306d.entry.js → p-7996208d.entry.js} +1 -1
- package/lib/duet/p-7a87c974.system.js +4 -0
- package/lib/duet/{p-147f10c9.system.js → p-7f3eb980.system.js} +1 -1
- package/lib/duet/{p-b5267584.system.entry.js → p-7fa32b1f.system.entry.js} +1 -1
- package/lib/duet/p-7fd0927e.js +4 -0
- package/lib/duet/{p-52f8f777.system.entry.js → p-859afdaf.system.entry.js} +1 -1
- package/lib/duet/p-85f7d22f.entry.js +4 -0
- package/lib/duet/{p-86937a4f.system.js → p-8623cfcd.system.js} +1 -1
- package/lib/duet/{p-f63bcbe4.system.entry.js → p-87f5ae8d.system.entry.js} +1 -1
- package/lib/duet/{p-059808fa.system.entry.js → p-8855bfe0.system.entry.js} +1 -1
- package/lib/duet/p-8883e167.entry.js +4 -0
- package/lib/duet/{p-d3faaec1.system.entry.js → p-893e4173.system.entry.js} +1 -1
- package/lib/duet/{p-23539e31.entry.js → p-8948d34c.entry.js} +1 -1
- package/lib/duet/{p-bd078fb9.entry.js → p-8d94afc8.entry.js} +1 -1
- package/lib/duet/p-90205019.js +4 -0
- package/lib/duet/{p-4d884205.system.entry.js → p-9091ce0a.system.entry.js} +1 -1
- package/lib/duet/{p-e6cecb5b.entry.js → p-939f51b7.entry.js} +1 -1
- package/lib/duet/{p-58ac0a69.system.entry.js → p-983aadb5.system.entry.js} +1 -1
- package/lib/duet/p-9a415196.system.entry.js +4 -0
- package/lib/duet/{p-ae08a640.system.entry.js → p-9a9cdcbc.system.entry.js} +1 -1
- package/lib/duet/{p-d8c08960.entry.js → p-9b22831e.entry.js} +1 -1
- package/lib/duet/{p-563a915a.system.entry.js → p-9d7d485a.system.entry.js} +1 -1
- package/lib/duet/{p-12a1c87b.system.entry.js → p-9edaccac.system.entry.js} +1 -1
- package/lib/duet/{p-fd1e6395.system.entry.js → p-9f2b6edc.system.entry.js} +1 -1
- package/lib/duet/{p-04e2930d.entry.js → p-a0a244ec.entry.js} +1 -1
- package/lib/duet/{p-a11a6a2b.entry.js → p-a21270e6.entry.js} +1 -1
- package/lib/duet/{p-76be6fee.system.entry.js → p-a24667c5.system.entry.js} +1 -1
- package/lib/duet/{p-58e8c466.entry.js → p-a2a7292b.entry.js} +1 -1
- package/lib/duet/{p-b99f9291.entry.js → p-a34ee4ce.entry.js} +1 -1
- package/lib/duet/{p-69e53b8f.system.entry.js → p-a45443fc.system.entry.js} +1 -1
- package/lib/duet/{p-69abbcc3.entry.js → p-a5ff6e84.entry.js} +1 -1
- package/lib/duet/{p-e5094a62.entry.js → p-a66b420b.entry.js} +1 -1
- package/lib/duet/{p-5318f4a4.entry.js → p-a8ce88be.entry.js} +1 -1
- package/lib/duet/{p-b186cd46.system.entry.js → p-a97fb686.system.entry.js} +1 -1
- package/lib/duet/{p-078bd3de.system.entry.js → p-a9b1590a.system.entry.js} +1 -1
- package/lib/duet/{p-ef2c7339.entry.js → p-aa61993f.entry.js} +1 -1
- package/lib/duet/{p-b2bd659d.entry.js → p-ac42fcb6.entry.js} +1 -1
- package/lib/duet/{p-234b17c8.system.entry.js → p-ae6bfe73.system.entry.js} +1 -1
- package/lib/duet/{p-436d69a7.entry.js → p-af9ac93b.entry.js} +1 -1
- package/lib/duet/{p-2bb7cef1.system.entry.js → p-b0a55166.system.entry.js} +1 -1
- package/lib/duet/{p-75a15db7.entry.js → p-b12864a6.entry.js} +1 -1
- package/lib/duet/{p-f5d9f207.entry.js → p-b2ad40f7.entry.js} +1 -1
- package/lib/duet/{p-42221153.system.entry.js → p-b42fd418.system.entry.js} +1 -1
- package/lib/duet/{p-fb33a00b.entry.js → p-b46d4e86.entry.js} +1 -1
- package/lib/duet/{p-06cf46f0.entry.js → p-b568e84d.entry.js} +1 -1
- package/lib/duet/p-b5e8f815.system.js +4 -0
- package/lib/duet/{p-c69a864c.entry.js → p-b632be58.entry.js} +1 -1
- package/lib/duet/{p-403ec083.system.entry.js → p-b6495dbd.system.entry.js} +1 -1
- package/lib/duet/{p-7a6e818c.system.entry.js → p-b6d16859.system.entry.js} +1 -1
- package/lib/duet/{p-162f70ad.entry.js → p-b7edb17c.entry.js} +1 -1
- package/lib/duet/{p-5882bf88.entry.js → p-ba080938.entry.js} +1 -1
- package/lib/duet/{p-552d1aa7.system.js → p-bdaef893.system.js} +1 -1
- package/lib/duet/{p-f9650289.system.entry.js → p-be3fca92.system.entry.js} +1 -1
- package/lib/duet/{p-d529e4af.js → p-c09655fd.js} +1 -1
- package/lib/duet/{p-e1fd4e97.system.entry.js → p-c0a9340c.system.entry.js} +1 -1
- package/lib/duet/{p-14ed128d.system.entry.js → p-c10a844d.system.entry.js} +1 -1
- package/lib/duet/{p-6e32c522.entry.js → p-c11c0880.entry.js} +1 -1
- package/lib/duet/{p-b0aa4a8a.entry.js → p-c2144e1f.entry.js} +1 -1
- package/lib/duet/{p-94d704ae.system.entry.js → p-c2bc3d86.system.entry.js} +1 -1
- package/lib/duet/{p-9f28952d.entry.js → p-c4f5b4f7.entry.js} +1 -1
- package/lib/duet/{p-ec011d95.system.entry.js → p-c513bc13.system.entry.js} +1 -1
- package/lib/duet/{p-6894e687.entry.js → p-c5566578.entry.js} +1 -1
- package/lib/duet/{p-c8f7d9d3.system.entry.js → p-c9cc7d75.system.entry.js} +1 -1
- package/lib/duet/{p-ffde5714.system.entry.js → p-cbe4a5ad.system.entry.js} +1 -1
- package/lib/duet/{p-cd31c677.entry.js → p-cc23fb9f.entry.js} +1 -1
- package/lib/duet/{p-7d6179ea.entry.js → p-ccde45f7.entry.js} +1 -1
- package/lib/duet/{p-66c65992.system.js → p-ceee80d1.system.js} +1 -1
- package/lib/duet/{p-5ea8b4bb.system.entry.js → p-d28a3a7e.system.entry.js} +1 -1
- package/lib/duet/{p-73659d2d.entry.js → p-d6b7b986.entry.js} +1 -1
- package/lib/duet/{p-6e338ac0.system.entry.js → p-d7001319.system.entry.js} +1 -1
- package/lib/duet/{p-3c478108.system.entry.js → p-d9e1b3df.system.entry.js} +1 -1
- package/lib/duet/{p-52de50b8.entry.js → p-da2d558a.entry.js} +1 -1
- package/lib/duet/{p-e86b07e5.system.entry.js → p-da3908cd.system.entry.js} +1 -1
- package/lib/duet/{p-74401674.entry.js → p-dc811f77.entry.js} +1 -1
- package/lib/duet/{p-43eeccca.system.entry.js → p-dcb22be5.system.entry.js} +1 -1
- package/lib/duet/{p-4ad6d392.js → p-dd5e5db6.js} +1 -1
- package/lib/duet/p-de31a9f5.entry.js +4 -0
- package/lib/duet/{p-205b9010.entry.js → p-e0022cfc.entry.js} +1 -1
- package/lib/duet/{p-36438374.entry.js → p-e2afb7f0.entry.js} +1 -1
- package/lib/duet/{p-97f634e1.entry.js → p-e73cd5a7.entry.js} +1 -1
- package/lib/duet/{p-123c93f8.system.entry.js → p-e9026620.system.entry.js} +1 -1
- package/lib/duet/{p-7e729fbf.system.entry.js → p-ec48bbea.system.entry.js} +1 -1
- package/lib/duet/{p-7465710b.system.entry.js → p-ed206f51.system.entry.js} +1 -1
- package/lib/duet/{p-11e288bb.system.entry.js → p-ed305ed8.system.entry.js} +1 -1
- package/lib/duet/{p-9538a904.system.entry.js → p-ed40ae71.system.entry.js} +1 -1
- package/lib/duet/{p-e0196f25.system.entry.js → p-eeb44a07.system.entry.js} +1 -1
- package/lib/duet/{p-6caf072b.entry.js → p-efdf87ff.entry.js} +1 -1
- package/lib/duet/{p-7c6cd306.entry.js → p-f452ef8f.entry.js} +1 -1
- package/lib/duet/{p-73304214.system.entry.js → p-f6fc3eb4.system.entry.js} +1 -1
- package/lib/duet/{p-18dd747e.system.entry.js → p-fb17aa5d.system.entry.js} +1 -1
- package/lib/duet/p-fcbc54db.entry.js +4 -0
- package/lib/duet/{p-ba631aec.entry.js → p-fd442fd4.entry.js} +1 -1
- package/lib/duet/{p-1be7d87f.system.entry.js → p-fe4f50d2.system.entry.js} +2 -2
- package/lib/esm/{a11y-utils-04363b01.js → a11y-utils-1a10d7d6.js} +1 -1
- package/lib/esm/{app-globals-0f61eba8.js → app-globals-9e106ae0.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +2 -2
- package/lib/esm/duet-alert.entry.js +3 -3
- package/lib/esm/duet-badge.entry.js +3 -3
- package/lib/esm/duet-banner.entry.js +2 -2
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +4 -4
- package/lib/esm/duet-button_2.entry.js +2 -2
- package/lib/esm/duet-callout.entry.js +4 -4
- package/lib/esm/duet-caption_4.entry.js +7 -7
- package/lib/esm/duet-card.entry.js +2 -2
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +3 -3
- package/lib/esm/duet-chip_3.entry.js +3 -3
- package/lib/esm/duet-choice_2.entry.js +3 -3
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.entry.js +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 +9 -4
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +7 -7
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +5 -5
- package/lib/esm/duet-file-chooser.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +3 -3
- package/lib/esm/duet-grid_2.entry.js +1 -1
- package/lib/esm/duet-header_2.entry.js +2 -2
- package/lib/esm/duet-hero.entry.js +3 -3
- package/lib/esm/duet-icon.entry.js +4 -4
- package/lib/esm/duet-input_2.entry.js +3 -3
- package/lib/esm/duet-layout.entry.js +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 +6 -6
- package/lib/esm/duet-menu-bar-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar.entry.js +2 -2
- package/lib/esm/duet-modal.entry.js +4 -4
- 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 +3 -3
- package/lib/esm/duet-pagination_2.entry.js +2 -2
- package/lib/esm/duet-progress.entry.js +2 -2
- package/lib/esm/duet-promo-card.entry.js +4 -4
- package/lib/esm/duet-radio_2.entry.js +2 -2
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +46 -46
- 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 +10 -10
- package/lib/esm/duet-slideout.entry.js +19 -16
- 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 +5 -5
- package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +6 -6
- package/lib/esm/duet-textarea.entry.js +3 -3
- 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 +7 -7
- package/lib/esm/duet-toolbar-link.entry.js +3 -3
- package/lib/esm/duet-toolbar.entry.js +3 -3
- package/lib/esm/duet-tooltip-button_2.entry.js +6 -6
- package/lib/esm/duet-tooltip.entry.js +2 -2
- package/lib/esm/duet-tray.entry.js +4 -4
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +5 -5
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-5a95a5fc.js → errorcodes.utils-832816c4.js} +1 -1
- package/lib/esm/{focus-utils-84af9803.js → focus-utils-cc7c5bc4.js} +1 -1
- package/lib/esm/{index-b817a517.js → index-fe90c21e.js} +1 -1
- package/lib/esm/{language-utils-a9addcce.js → language-utils-1bb1769b.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-227cbc2f.js → slot-utils-48c8377c.js} +1 -1
- package/lib/esm-es5/{a11y-utils-04363b01.js → a11y-utils-1a10d7d6.js} +1 -1
- package/lib/esm-es5/{app-globals-0f61eba8.js → app-globals-9e106ae0.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +2 -2
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip_3.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +2 -2
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-overlay.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.entry.js +2 -2
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +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 +2 -2
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +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 +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-upload-item.entry.js +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-5a95a5fc.js → errorcodes.utils-832816c4.js} +1 -1
- package/lib/esm-es5/focus-utils-cc7c5bc4.js +4 -0
- package/lib/esm-es5/{index-b817a517.js → index-fe90c21e.js} +1 -1
- package/lib/esm-es5/{language-utils-a9addcce.js → language-utils-1bb1769b.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-227cbc2f.js → slot-utils-48c8377c.js} +1 -1
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +8 -0
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +9 -4
- package/lib/types/components.d.ts +10 -4
- package/package.json +4 -4
- package/lib/duet/p-3486c6fa.entry.js +0 -4
- package/lib/duet/p-359ead5c.js +0 -4
- package/lib/duet/p-458aa9e4.system.js +0 -4
- package/lib/duet/p-5eeb7b2d.entry.js +0 -4
- package/lib/duet/p-6bf7a08b.entry.js +0 -4
- package/lib/duet/p-843849be.entry.js +0 -4
- package/lib/duet/p-92cab50b.entry.js +0 -4
- package/lib/duet/p-a3ba5c07.system.js +0 -4
- package/lib/duet/p-af7a3e34.entry.js +0 -4
- package/lib/duet/p-b6168e65.system.entry.js +0 -4
- package/lib/duet/p-b8fdcb18.js +0 -4
- package/lib/duet/p-b9cbad06.entry.js +0 -4
- package/lib/duet/p-c54f089f.system.entry.js +0 -4
- package/lib/duet/p-f4cd41f2.system.js +0 -4
- package/lib/duet/p-fdba72a7.system.js +0 -4
- package/lib/esm-es5/focus-utils-84af9803.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as o,H as e,g as a,c as r}from"./p-797959a3.js";import{i}from"./p-aaa7a7bd.js";import{s as n,u as s}from"./p-a1b7f2a0.js";import{F as p}from"./p-704e7a2d.js";import{T as d}from"./p-ca3cb21e.js";const l=class{constructor(o){t(this,o),this.label="",this.accessibleLabel=void 0,this.theme="",this.negative=!1,this.active=void 0,this.tooltipId=void 0}componentWillLoad(){i(this)}connectedCallback(){n(this)}disconnectedCallback(){s(this)}async setFocus(t){this.buttonElement&&this.buttonElement.focus(t)}render(){return o(e,{key:"a93b648a97705995e9c16ed407d6a85edd146a1e"},o("button",{key:"3908a9b2c7e7424835a9b52345bf37f9cf72b9fb",ref:t=>this.buttonElement=t,"aria-controls":this.tooltipId,"aria-expanded":this.active?"true":"false",type:"button",class:{"duet-tooltip-button":!0,"duet-tooltip-button-has-label":!!this.label,"duet-theme-turva":"turva"===this.theme,"duet-tooltip-button-negative":this.negative}},o("svg",{key:"864c8fa62979a5f154fba4bdb917e294981bf69d","aria-hidden":"true",role:"img",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o("path",{key:"541766a3747147b8584825d78fb255907e8a118d",d:"m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z"}),o("circle",{key:"f7a83bdf5e8532f9696c2877ab76aa6b13fd6fd2",cx:"11.625",cy:"7.125",r:"1.125"}),o("path",{key:"52f85b09a3d9f99fdb775549b7936bab53e00686",d:"m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z"})),this.label?o("span",{class:"duet-tooltip-label"},this.label):o("duet-visually-hidden",null,this.accessibleLabel)))}get element(){return a(this)}};l.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:hover{color:rgb(0, 75, 129)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(126, 2, 35)}.duet-tooltip-button:hover.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;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.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}';const b=class{constructor(o){t(this,o),this.tooltipPopupClosed=r(this,"tooltipPopupClosed",7),this.handleCloseClick=()=>{this.tooltipPopupClosed.emit()},this.theme="",this.active=void 0,this.tooltipId=void 0,this.arrowStyles=void 0,this.placement=void 0,this.accessibleCloseLabel=void 0}componentWillLoad(){i(this)}connectedCallback(){n(this),this.teleport||(this.teleport=new d(this.element)),this.teleport&&this.teleport.activate()}disconnectedCallback(){s(this)}async getArrowElement(){return this.arrowEl}async getContentElement(){return this.contentEl}async setFocusOnContentElement(){this.contentEl.focus()}render(){return o(e,{key:"a79306700e7d7aee441cc03ad36320a104b7089d"},o("div",{key:"97992b1ebaf1998d33984716a013e69d5ba1d2d6",class:{"duet-tooltip":!0,"duet-theme-turva":"turva"===this.theme,"duet-tooltip-active":!0===this.active}},o(p,{key:"45e71382f2b78cf134a3bc5c66523b17b9645df7",moveFocusTo:this.buttonEl}),o("div",{key:"4972fbadbaa78dcc0a89a26f084703d2f5af7722",ref:t=>this.contentEl=t,class:"duet-tooltip-content-area",tabindex:0,id:this.tooltipId},o("slot",{key:"cd6485f243b063d2c155c995e5c025d94b63a339"})),o("div",{key:"9a7ee974d7bb598cb64fff09e36c15560fe5eaf6",ref:t=>this.arrowEl=t,class:{arrow:!0,[this.placement]:!0},style:this.arrowStyles},o("div",{key:"ed588d4767c18b62132ee7869ddd0daa1c128b5c",class:{"arrow-container":!0,[this.placement]:!0}})),o("button",{key:"c8bc5eda535b9f4990a1a4ea1d643802f81b0d28",type:"button",class:"duet-tooltip-close",onClick:this.handleCloseClick,ref:t=>this.buttonEl=t},o("duet-icon",{key:"6ac9b3e52c00914617f310f38ce5ec6ba2a43a82",name:"navigation-close-small",margin:"none",color:"currentColor",size:"xxx-small"}),o("duet-visually-hidden",{key:"280130951a6dc65a419d913c246fbbda69605e38"},this.accessibleCloseLabel)),o(p,{key:"f23c9116b56c9451e2c82eef602c057f3b38835c",moveFocusTo:this.contentEl})))}get element(){return a(this)}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute;z-index:950}.duet-tooltip{position:relative;width:282px;min-height:48px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform-origin:100% 100%}.duet-tooltip.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);border-color:rgb(222, 224, 228);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-20px}.duet-tooltip .arrow-container{position:relative;left:4px;width:100%;height:100%;pointer-events:none}.duet-tooltip .arrow-container::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container.top::after,.duet-tooltip .arrow-container.top-start::after,.duet-tooltip .arrow-container.top-end::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.top::before,.duet-tooltip .arrow-container.top-start::before,.duet-tooltip .arrow-container.top-end::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(212, 223, 229)}.duet-theme-turva .duet-tooltip .arrow-container.top::before,.duet-theme-turva .duet-tooltip .arrow-container.top-start::before,.duet-theme-turva .duet-tooltip .arrow-container.top-end::before{border-top:11px solid rgb(222, 224, 228)}.duet-tooltip .arrow-container.bottom::after,.duet-tooltip .arrow-container.bottom-start::after,.duet-tooltip .arrow-container.bottom-end::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.bottom::before,.duet-tooltip .arrow-container.bottom-start::before,.duet-tooltip .arrow-container.bottom-end::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(212, 223, 229)}.duet-theme-turva .duet-tooltip .arrow-container.bottom::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-start::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-end::before{border-top:11px solid rgb(222, 224, 228)}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-content-area{padding:20px !important;width:100%;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-content-area:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-content-area:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-tooltip-content-area:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tooltip-content-area::-webkit-scrollbar{width:4px}.duet-tooltip-content-area::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-content-area::-webkit-scrollbar-thumb{background:rgb(212, 223, 229);border-radius:4px}.duet-theme-turva .duet-tooltip-content-area::-webkit-scrollbar-thumb{background:rgb(222, 224, 228)}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(8, 42, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px #171c3a !important}';export{l as duet_tooltip_button,b as duet_tooltip_popup}
|
|
4
|
+
import{r as t,h as o,H as e,g as r,c as a}from"./p-5a4b011d.js";import{i}from"./p-aaa7a7bd.js";import{s as n,u as s}from"./p-a1b7f2a0.js";import{F as p}from"./p-37a1842f.js";import{T as d}from"./p-ca3cb21e.js";const l=class{constructor(o){t(this,o),this.label="",this.accessibleLabel=void 0,this.theme="",this.negative=!1,this.active=void 0,this.tooltipId=void 0}componentWillLoad(){i(this)}connectedCallback(){n(this)}disconnectedCallback(){s(this)}async setFocus(t){this.buttonElement&&this.buttonElement.focus(t)}render(){return o(e,{key:"9e42fe5ece18df279fc2f1238b81ed751fcba6e3"},o("button",{key:"46f7d00f60e8a681f745e888c9dd4eebaae7cdf1",ref:t=>this.buttonElement=t,"aria-controls":this.tooltipId,"aria-expanded":this.active?"true":"false",type:"button",class:{"duet-tooltip-button":!0,"duet-tooltip-button-has-label":!!this.label,"duet-theme-turva":"turva"===this.theme,"duet-tooltip-button-negative":this.negative}},o("svg",{key:"fc76763237d9e982e4674d8bb638372e67949119","aria-hidden":"true",role:"img",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o("path",{key:"0fb1cf0c4d93b0cabd1330a217a84ef6af2c0851",d:"m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z"}),o("circle",{key:"521e808bdf960d1aafd66f16c46aa0d59708f5eb",cx:"11.625",cy:"7.125",r:"1.125"}),o("path",{key:"8292f492ecb67f52b30c7794ca3e7593621e90e4",d:"m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z"})),this.label?o("span",{class:"duet-tooltip-label"},this.label):o("duet-visually-hidden",null,this.accessibleLabel)))}get element(){return r(this)}};l.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:hover{color:rgb(0, 75, 129)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(126, 2, 35)}.duet-tooltip-button:hover.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;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.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}';const b=class{constructor(o){t(this,o),this.tooltipPopupClosed=a(this,"tooltipPopupClosed",7),this.handleCloseClick=()=>{this.tooltipPopupClosed.emit()},this.theme="",this.active=void 0,this.tooltipId=void 0,this.arrowStyles=void 0,this.placement=void 0,this.accessibleCloseLabel=void 0}componentWillLoad(){i(this)}connectedCallback(){n(this),this.teleport||(this.teleport=new d(this.element)),this.teleport&&this.teleport.activate()}disconnectedCallback(){s(this)}async getArrowElement(){return this.arrowEl}async getContentElement(){return this.contentEl}async setFocusOnContentElement(){this.contentEl.focus()}render(){return o(e,{key:"b9e5af9b7d4981703d14528d730b3f98f1a43077"},o("div",{key:"f87b14cc5a9c1e1f2814419de54dcf780ed9d4ca",class:{"duet-tooltip":!0,"duet-theme-turva":"turva"===this.theme,"duet-tooltip-active":!0===this.active}},o(p,{key:"8821eb6b5943579e592de43d82ab88408d017a66",moveFocusTo:this.buttonEl}),o("div",{key:"63237a369131153304c032842cf18b78e6131cf8",ref:t=>this.contentEl=t,class:"duet-tooltip-content-area",tabindex:0,id:this.tooltipId},o("slot",{key:"5d0b8cad1c781f6714472deb831930f0655ffb7d"})),o("div",{key:"bdca178c2801a3b4f4920e60c12271b3c1839413",ref:t=>this.arrowEl=t,class:{arrow:!0,[this.placement]:!0},style:this.arrowStyles},o("div",{key:"60ff34f09aa3de7daa8886f657813e852b98c165",class:{"arrow-container":!0,[this.placement]:!0}})),o("button",{key:"1b644babda9746b7af48a62c562276b37f4ce39d",type:"button",class:"duet-tooltip-close",onClick:this.handleCloseClick,ref:t=>this.buttonEl=t},o("duet-icon",{key:"eb2963986920179ea780b74cab029766f2a5fc19",name:"navigation-close-small",margin:"none",color:"currentColor",size:"xxx-small"}),o("duet-visually-hidden",{key:"c06b20ac17e644dd17aaba2176acb500ed430205"},this.accessibleCloseLabel)),o(p,{key:"80cc95b8f7a39e8792736397fff46a6988e6d9c8",moveFocusTo:this.contentEl})))}get element(){return r(this)}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute;z-index:950}.duet-tooltip{position:relative;width:282px;min-height:48px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform-origin:100% 100%}.duet-tooltip.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);border-color:rgb(222, 224, 228);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-20px}.duet-tooltip .arrow-container{position:relative;left:4px;width:100%;height:100%;pointer-events:none}.duet-tooltip .arrow-container::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container.top::after,.duet-tooltip .arrow-container.top-start::after,.duet-tooltip .arrow-container.top-end::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.top::before,.duet-tooltip .arrow-container.top-start::before,.duet-tooltip .arrow-container.top-end::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(212, 223, 229)}.duet-theme-turva .duet-tooltip .arrow-container.top::before,.duet-theme-turva .duet-tooltip .arrow-container.top-start::before,.duet-theme-turva .duet-tooltip .arrow-container.top-end::before{border-top:11px solid rgb(222, 224, 228)}.duet-tooltip .arrow-container.bottom::after,.duet-tooltip .arrow-container.bottom-start::after,.duet-tooltip .arrow-container.bottom-end::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.bottom::before,.duet-tooltip .arrow-container.bottom-start::before,.duet-tooltip .arrow-container.bottom-end::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(212, 223, 229)}.duet-theme-turva .duet-tooltip .arrow-container.bottom::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-start::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-end::before{border-top:11px solid rgb(222, 224, 228)}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-content-area{padding:20px !important;width:100%;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-content-area:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-content-area:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-tooltip-content-area:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tooltip-content-area::-webkit-scrollbar{width:4px}.duet-tooltip-content-area::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-content-area::-webkit-scrollbar-thumb{background:rgb(212, 223, 229);border-radius:4px}.duet-theme-turva .duet-tooltip-content-area::-webkit-scrollbar-thumb{background:rgb(222, 224, 228)}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(8, 42, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px #171c3a !important}';export{l as duet_tooltip_button,b as duet_tooltip_popup}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as t,g as a}from"./p-
|
|
4
|
+
import{r as e,h as t,g as a}from"./p-5a4b011d.js";import{i}from"./p-aaa7a7bd.js";import{g as s}from"./p-c09655fd.js";import{a as o}from"./p-7fd0927e.js";import"./p-9c3c64b9.js";const n=class{constructor(t){e(this,t),this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"},this.onLinkClick=e=>{const{url:t,meta:a}=this.data;this.linkClickEvent&&(e.preventDefault(),this.linkClickEvent.emit({component:"duet-upload",data:{name:this.data.item.name,url:t,meta:a}}))},this.theme="",this.data=void 0,this.type=void 0,this.showLinks=void 0,this.actions=void 0,this.buttonTitles=void 0,this.label=void 0,this.categoryLabel=void 0,this.errorCodes=void 0,this.showCategory=void 0,this.linkClickEvent=void 0}componentWillLoad(){i(this)}async focusActionButton(){this.actionButton&&(await this.actionButton.setFocus({preventScroll:!0}),this.actionButton.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))}getFileNameLine(){const{item:e,size:a,uploaded:i,url:n,progress:r,error:l}=this.data,{name:d}=e,c=t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),h=t("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",((e,t=2)=>{if(0===e)return"0 Bytes";const a=t<0?0:t,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(a))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]})(a),")");switch(this.type){case"inprogress":return t("span",{class:"duet-upload-item-name",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),t("duet-visually-hidden",null,t("duet-paragraph",null,s(this.fileUploadingInfo))),t("duet-progress",{theme:this.theme,progress:Math.ceil(r),"aria-hidden":!0}));case"pending":return t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);case"failure":return t("span",{class:"duet-upload-item-error",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),t("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},o(l.type,this.errorCodes)));default:return t("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},i&&n&&this.showLinks?t("duet-link",{class:"file-link",onClick:this.onLinkClick,url:n},c):c,t("duet-spacer",{size:"xx-small",direction:"horizontal"}),h)}}getActionButtonTitle(e){return!0===this.buttonTitles[e.name]||!1===this.buttonTitles[e.name]?e:s(this.buttonTitles[e.name])}render(){const{uid:e,meta:a,item:i}=this.data,o=a&&a.badges?t("span",null,a.badges.map((e=>t("duet-badge",{color:"primary"},e)))):void 0,n=`${a&&a.badges?a.badges.join(","):""} ${i.name}`;return t("div",{key:"179fe6956ec8b8b935e73a289c0191de154768b4",class:{"upload-item-row":!0}},this.showCategory&&t("div",{key:"b98fbb8879abe956b787710bd8988a535aece789",class:"item-categories"},t("duet-heading",{key:"39b4c46eda25dc1f5017f7b3ae4770437b91edc1",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},s(this.categoryLabel)),o),t("div",{key:"05f123dc1a55f5938d0a008337f16b262412f431",class:{"item-name":!0,"no-category":!this.showCategory}},!!this.label&&t("duet-heading",{key:"0825080f168d051916cd4f278dd0f7be3e713a17",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},s(this.label)),this.getFileNameLine()),t("div",{key:"991a499e99a6df39b0f7895bdd3019acaa751c3a",class:"item-actions"},this.actions.map((i=>t("duet-action-button",{actionMeta:Object.assign({},a||{}),actionId:e||null,actionName:i.name,theme:this.theme,iconName:i.icon,iconColor:i.color,iconSize:i.size,background:i.background,"accessible-label":`${n} ${s(i.label)} `,accessibleTitle:this.getActionButtonTitle(i),ref:e=>this.actionButton=e})))))}get element(){return a(this)}};n.style=".file-link::part(duet-link){text-decoration:none}";export{n as duet_upload_item}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,c as s,h as t,H as o,g as a}from"./p-
|
|
4
|
+
import{r as e,c as s,h as t,H as o,g as a}from"./p-5a4b011d.js";import{i}from"./p-aaa7a7bd.js";import{c as n}from"./p-5e59e970.js";import{i as r}from"./p-a1b7f2a0.js";import{a as h,g as l,c,d}from"./p-c09655fd.js";import"./p-9c3c64b9.js";const m=class{constructor(t){e(this,t),this.duetToggle=s(this,"duetToggle",7),this.contentId=n("DuetShowMore"),this.buttonId=n("DuetShowMoreButton"),this.handleKeyDown=e=>{r(e)&&this.handleClick(e)},this.handleClick=e=>{e.preventDefault();const s=!this.open;this.open=s,s?(setTimeout((()=>{this.contentElement.focus()}),100),setTimeout((()=>{this.buttonAriaOpen=s}),500)):this.buttonAriaOpen=s,this.duetToggle.emit({component:"duet-show-more",originalEvent:e})},this.buttonAriaOpen=!1,this.theme="",this.language=h(),this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"},this.showMoreLabel=l(this.showMoreLabelDefaults),this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"},this.showLessLabel=l(this.showLessLabelDefaults),this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"},this.showMoreAccessibleLabel=l(this.showMoreAccessibleLabelDefaults),this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"},this.showLessAccessibleLabel=l(this.showLessAccessibleLabelDefaults),this.margin="auto",this.buttonMargin="auto",this.buttonPadding="auto",this.open=!1}componentWillLoad(){i(this),this.buttonAriaOpen=this.open}connectedCallback(){c(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])}disconnectedCallback(){d(this)}render(){return t(o,{key:"f2ae77fcd733d57404b733d43ffb049d3503ecd0"},t("div",{key:"a0a01d9f4ef3065ced4d4de652969744e6e1e227",class:{"duet-show-more":!0,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin,open:this.open}},t("div",{key:"8b799e3b59a456e4873357daa72313f0d29bffcf",ref:e=>this.contentElement=e,class:{content:!0},id:this.contentId,tabindex:this.open?"0":""},t("div",{key:"e5e04fa045ab43f00086e8799f87ab2b57f0a13b",class:{"slotted-content":!0}},t("slot",{key:"ca94e5187354a6debb373955df2d046a9c9271a4"}))),t("duet-button",{key:"fc11f79ebc689843332bc829f108d62180fa62fe",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,accessiblePressed:this.open,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":!0,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:"turva"===this.theme?"turva":"default"},t("span",{key:"63e4d04789225b2ff7938e8e1156345b14b6633f"},this.open?this.showLessLabel:this.showMoreLabel))))}get element(){return a(this)}};m.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-show-more{margin-bottom:16px !important;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(8, 42, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more .content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-show-more.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-show-more.duet-theme-turva .content:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';export{m as duet_show_more}
|
|
@@ -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-797959a3.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 d,l,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-d529e4af.js";import{p as y}from"./p-9c3c64b9.js";import{b as w,a as x}from"./p-10c530d1.js";import"./p-1004af75.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++,d(t)&&i<=this.totalPages&&(this.current=i,this.processedPageLinks?(this.emitPageEvent(t,i-1),window.open(this.processedPageLinks[i-1],"_self","")):this.emitPageEvent(t)),l(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:"756ad0511064e85742b3bb271bdd2a468f3f1eb0",onKeyDown:t=>this.onKeyboardDown(t),class:{"duet-theme-turva":"turva"===this.theme}},e("nav",{key:"4d235370cef9fc2b6d9448b2b02a02eefc04b97b",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:"4e98bb73d78c7cb713ac1de78d9d5ccbdce1687d","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:"9d16f94604abbcfbbd8b538395e46c024b88c0a2",theme:this.theme},"jump to page : ",this.numbersStore)),e("ol",{key:"7bbec70a660779cabba7847dd76732e9bfb71f1b",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:"974c29ddf4de1b7aca6e24f289be9fbb4177eb56",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"d8fd5f3a859d470c11c15ae197313cc6c8983fc2",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:"c03e92b8f6ba758dd49e881380c964c87f155dcc",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"71b346d9a35b397951223fb32bdd449441dab0bf",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:"142ba228678916f8f9a69de0c8f38430c6db7623"},e("li",{key:"6e2370fdf3f65c69d30ccee081b6426c12267a11",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"887ee7242f007578beb3b1a59702ab619d0a7e5e",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:"0b5d04b555f074972abcc93a70a0d80bdadabcd4",class:"duet-pagination-page-number"},"1"))),e("li",{key:"3cbe3bbf9ef3406f2a98aa736f692aaf87119857",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"462643a69aeecc463a23ba22f0bf79ea8c4456c3",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:"fa748ff5b134b6a0a3a4550f0073fbf45baf2337",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:"0459e62e54d351fa5f22afa7afb3a3a6027df6c1"},(this.internalSectionIndex+1)*this.visibleItems!=this.totalPages-1&&e("li",{key:"fb76ad813a83768da7a52230342170198efc321d",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"14b9164e41b63d0adbbfe5ef29074a46695a44d6",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:"551f91a348760b5101e88adc3a3d8a3d692fc804",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),e("li",{key:"454ccc661d104be10d0a3908fa7516e1f627fb57",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"01eeca39b9de17e25c39ffec6296c26920b86380",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:"f4c0ca8a738f21233a966611c8ce15d7f776c7d7",class:"duet-pagination-page-number"},this.totalPages)))),e("li",{key:"3dc850213f9f9c7aac8cabba1901740d6068cdde",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"ddf5b89fac538ccdae84e031bea7a2830f656bc0",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick: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:"78c2482a7d36358e53000e55c19057c2b4585165",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"330747e12a1e3d8bc0fb74f3945d99c06d8132d0",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick: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(8, 42, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';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),d(t)&&i>0&&i*this.stepSize<=this.total&&this.handleClick(t,e)}render(){return e("div",{key:"43d93bf62ed3c3b091933da841d015662b158e50",class:{"duet-range-stepper":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:t=>this.onKeyboardDown(t),"aria-controls":this.ariaControls},e("span",{key:"0eb7fa8f8e1f5853a16c85f8d9670c70d531f13a",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),e("duet-action-button",{key:"b89f2b93dfe5a510bf6acbdf30ce694ff1ac59dc",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:"a9d84ec5096ae382828ee82ba75bd558b08d49ea",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(8, 42, 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-5a4b011d.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 d,l,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-c09655fd.js";import{p as y}from"./p-9c3c64b9.js";import{b as w,a as x}from"./p-10c530d1.js";import"./p-1004af75.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++,d(t)&&i<=this.totalPages&&(this.current=i,this.processedPageLinks?(this.emitPageEvent(t,i-1),window.open(this.processedPageLinks[i-1],"_self","")):this.emitPageEvent(t)),l(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:"756ad0511064e85742b3bb271bdd2a468f3f1eb0",onKeyDown:t=>this.onKeyboardDown(t),class:{"duet-theme-turva":"turva"===this.theme}},e("nav",{key:"4d235370cef9fc2b6d9448b2b02a02eefc04b97b",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:"4e98bb73d78c7cb713ac1de78d9d5ccbdce1687d","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:"9d16f94604abbcfbbd8b538395e46c024b88c0a2",theme:this.theme},"jump to page : ",this.numbersStore)),e("ol",{key:"7bbec70a660779cabba7847dd76732e9bfb71f1b",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:"974c29ddf4de1b7aca6e24f289be9fbb4177eb56",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"d8fd5f3a859d470c11c15ae197313cc6c8983fc2",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:"c03e92b8f6ba758dd49e881380c964c87f155dcc",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"71b346d9a35b397951223fb32bdd449441dab0bf",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:"142ba228678916f8f9a69de0c8f38430c6db7623"},e("li",{key:"6e2370fdf3f65c69d30ccee081b6426c12267a11",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"887ee7242f007578beb3b1a59702ab619d0a7e5e",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:"0b5d04b555f074972abcc93a70a0d80bdadabcd4",class:"duet-pagination-page-number"},"1"))),e("li",{key:"3cbe3bbf9ef3406f2a98aa736f692aaf87119857",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"462643a69aeecc463a23ba22f0bf79ea8c4456c3",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:"fa748ff5b134b6a0a3a4550f0073fbf45baf2337",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:"0459e62e54d351fa5f22afa7afb3a3a6027df6c1"},(this.internalSectionIndex+1)*this.visibleItems!=this.totalPages-1&&e("li",{key:"fb76ad813a83768da7a52230342170198efc321d",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"14b9164e41b63d0adbbfe5ef29074a46695a44d6",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:"551f91a348760b5101e88adc3a3d8a3d692fc804",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),e("li",{key:"454ccc661d104be10d0a3908fa7516e1f627fb57",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"01eeca39b9de17e25c39ffec6296c26920b86380",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:"f4c0ca8a738f21233a966611c8ce15d7f776c7d7",class:"duet-pagination-page-number"},this.totalPages)))),e("li",{key:"3dc850213f9f9c7aac8cabba1901740d6068cdde",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"ddf5b89fac538ccdae84e031bea7a2830f656bc0",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick: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:"78c2482a7d36358e53000e55c19057c2b4585165",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"330747e12a1e3d8bc0fb74f3945d99c06d8132d0",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick: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(8, 42, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';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),d(t)&&i>0&&i*this.stepSize<=this.total&&this.handleClick(t,e)}render(){return e("div",{key:"43d93bf62ed3c3b091933da841d015662b158e50",class:{"duet-range-stepper":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:t=>this.onKeyboardDown(t),"aria-controls":this.ariaControls},e("span",{key:"0eb7fa8f8e1f5853a16c85f8d9670c70d531f13a",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),e("duet-action-button",{key:"b89f2b93dfe5a510bf6acbdf30ce694ff1ac59dc",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:"a9d84ec5096ae382828ee82ba75bd558b08d49ea",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(8, 42, 77)}.duet-range-stepper ::part(button){border:0}";export{S as duet_pagination,_ as duet_range_stepper}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as M,h as N,g}from"./p-797959a3.js";import{i as j}from"./p-aaa7a7bd.js";const D=class{constructor(N){M(this,N),this.theme="",this.icon="",this.layout="narrow",this.progressCurrentStep=void 0,this.progressTotalSteps=void 0}componentWillLoad(){j(this)}progressIndicator(){return N("div",{class:"progress-indicator"},Array.from({length:Math.ceil(this.progressTotalSteps)},((M,g)=>N("div",{class:{"progress-step":!0,active:g+1<=this.progressCurrentStep}}))))}render(){const M="narrow"===this.layout?"narrow":"fluid"===this.layout?"fluid":"auto";return N("div",{key:"2a170e4c6fc33fdba313ded3c3f01a78c9ac0866",class:{"duet-page-heading":!0,"duet-theme-turva":"turva"===this.theme,"has-icon":!!this.icon,[M]:!0}},N("div",{key:"4b02d9d0134c3cb06bba6bdbd1b20f9d2d26e56a",class:"background"},"turva"===this.theme&&N("div",{key:"ba779c516b2646ea7b062bd893a5928a91770b51",class:"background-mask"}),"turva"!==this.theme&&N("div",{key:"975ea6aff24cd955e428eb5c92312984dc034d56",class:"brand-shape"}),"turva"!==this.theme&&N("div",{key:"cc7486a21275418c5bb85daef2f87a8272b94aa7",class:"brand-shape second-shape"}),this.icon&&N("div",{key:"47ea901848ac5c4e50bc3c961d9bfa6f904d6d37",class:"brand-shaped-icon"},N("duet-icon",{key:"370ac1f81a9d150ca01159b00a60cd8a730aef5f",background:"none",name:this.icon,margin:"none",size:"auto",responsive:!1}))),N("div",{key:"0b151e3015924091b9e9a35145e23754234641ef",class:"heading"},N("slot",{key:"89c063ef8fceed0f4c75255f29dcd7200f394976",name:"heading"}),this.progressCurrentStep&&this.progressTotalSteps&&N("div",{key:"ee3688b0e6d3145fbf47501fc353caa398898e5f"},N("duet-spacer",{key:"0b86d382eee4c4287419fe1c660970f943c32cba",size:"large"}),N("div",{key:"e0010cce92077310161c55fd134b022eb8f7e035",role:"presentation"},this.progressIndicator()))))}get element(){return g(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;display:block;width:100%}.duet-page-heading{position:relative;display:block;width:100%;margin:0 auto;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}.duet-page-heading.duet-p-0{padding:0 !important}.duet-page-heading.duet-m-0{margin:0 !important}.duet-page-heading.auto{overflow:visible}.duet-page-heading.auto .heading,.duet-page-heading.auto .background{max-width:none}.duet-page-heading.fluid,.duet-page-heading.narrow{padding:0 16px}@media (min-width: 36em){.duet-page-heading.fluid{padding:0 28px}}@media (min-width: 62em){.duet-page-heading.fluid{padding:0 56px}}@media (min-width: 76.25em){.duet-page-heading.fluid{max-width:1110px;padding:0}}.duet-page-heading.narrow{max-width:888px}@media (min-width: 36em){.duet-page-heading.narrow{padding:0 48px}}@media (min-width: 48em){.duet-page-heading.narrow{padding:0 72px}}.duet-page-heading .heading{max-width:744px;padding:48px 90px 16px 0}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}}.duet-page-heading:not(.has-icon) .heading{padding-right:0}.duet-page-heading .background{position:absolute;top:0;right:0;left:0;width:100%;max-width:744px;height:104px;margin:0 auto;margin:0 auto}@media (min-width: 48em){.duet-page-heading .background{height:165px}}.duet-page-heading .background .background-mask{position:absolute;top:-20px;right:0;display:block;width:286px;height:331px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIxIiBoZWlnaHQ9IjI1NyIgdmlld0JveD0iMCAwIDcyMSAyNTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yODIw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TcuNzIxIDUzNC40MDEgMjIyLjI0NUM1NTYuNjQ0IDIyNi43NTcgNTc5Ljg2NSAyMjYuNTA5IDYwNC4xMTUgMjIxLjU2N0M2MDkuNjQzIDIyMC42MTYgNjE1LjI2MyAyMTkuNDY4IDYyMC45MjEgMjE4LjA5OUM2MjYuNTY3IDIxNi43NTYgNjMyLjI3NyAyMTUuMTkyIDYzOC4wNTMgMjEzLjQxOUM2NTkuMDU3IDIwNy41MjUgNjc4LjU2MiAxOTkuMzkgNjk2LjU0MSAxODkuMDc3IiBmaWxsPSIjRjVGNUY3Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjgyMF82OTk5MSI+CjxyZWN0IHdpZHRoPSI3MjEiIGhlaWdodD0iMjU2Ljg0OCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K");background-repeat:no-repeat;background-size:contain}@media (min-width: 48em){.duet-page-heading .background .background-mask{top:-40px;width:502px;height:577px}}.duet-page-heading .background .brand-shape{position:absolute;top:-157px;right:-20px;width:185px;height:185px;background:rgb(0, 119, 179);border-radius:20%;mix-blend-mode:normal;opacity:0.2;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shape{top:-280px;right:-40px;width:325px;height:325px}}.duet-page-heading .background .brand-shape.second-shape{top:-182px;right:100px;width:207px;height:207px;background:rgb(11, 114, 136);opacity:0.1}@media (min-width: 48em){.duet-page-heading .background .brand-shape.second-shape{top:-325px;right:200px;width:365px;height:365px}}.duet-page-heading .background .brand-shaped-icon{position:absolute;top:20px;right:16px;display:flex;align-items:center;justify-content:center;width:85px;width:60px;height:85px;height:60px;background:rgba(0, 119, 179, 0.75);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon{right:36px;width:93px;height:93px}}.duet-page-heading .background .brand-shaped-icon duet-icon{width:60px;height:60px;transform:rotate(-7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon duet-icon{width:75px;height:75px}}.duet-page-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(8, 42, 77)}.duet-page-heading.duet-theme-turva .brand-shaped-icon{background:rgba(198, 12, 48, 0.9);-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");mask-repeat:no-repeat}.duet-page-heading.duet-theme-turva .brand-shaped-icon duet-icon{position:relative;top:-3px}.duet-page-heading .progress-indicator{display:flex;flex-direction:row;gap:4px}.duet-page-heading .progress-step{width:100%;height:4px;background-color:rgb(181, 198, 208);border-radius:2px}.duet-page-heading .progress-step.active{background-color:rgb(0, 119, 179)}';export{D as duet_page_heading}
|
|
4
|
+
import{r as M,h as N,g}from"./p-5a4b011d.js";import{i as j}from"./p-aaa7a7bd.js";const D=class{constructor(N){M(this,N),this.theme="",this.icon="",this.layout="narrow",this.progressCurrentStep=void 0,this.progressTotalSteps=void 0}componentWillLoad(){j(this)}progressIndicator(){return N("div",{class:"progress-indicator"},Array.from({length:Math.ceil(this.progressTotalSteps)},((M,g)=>N("div",{class:{"progress-step":!0,active:g+1<=this.progressCurrentStep}}))))}render(){const M="narrow"===this.layout?"narrow":"fluid"===this.layout?"fluid":"auto";return N("div",{key:"803431131648461b8eb0eb01d9e4944e0684d72b",class:{"duet-page-heading":!0,"duet-theme-turva":"turva"===this.theme,"has-icon":!!this.icon,[M]:!0}},N("div",{key:"3d0b067e5771f19183bfe546410cd75b90383bda",class:"background"},"turva"===this.theme&&N("div",{key:"0eaf0689b220fd9a664c852c0e8c62dbcd9c93d1",class:"background-mask"}),"turva"!==this.theme&&N("div",{key:"fb9b5eba13698c957ea9df1bd949aad772f836b0",class:"brand-shape"}),"turva"!==this.theme&&N("div",{key:"eec14617a162263bb9e3952092a85ec31acbcf40",class:"brand-shape second-shape"}),this.icon&&N("div",{key:"e28b74c519355e8441e7b88155fe13b5bb22cee2",class:"brand-shaped-icon"},N("duet-icon",{key:"165c0b3ecfaba195b12de65eb88a72e3028eaee6",background:"none",name:this.icon,margin:"none",size:"auto",responsive:!1}))),N("div",{key:"de9f9e024423c7ef4366eb9e0086623a970347e0",class:"heading"},N("slot",{key:"069af676aa6367b93193b0c9558c1ea8a1f74f47",name:"heading"}),this.progressCurrentStep&&this.progressTotalSteps&&N("div",{key:"478b9498b2997e730451e857f0508793d3fc877f"},N("duet-spacer",{key:"e22d45a8cb8905c729b0e03f81ccd7263ea80893",size:"large"}),N("div",{key:"0f3dbfb349c731ae7f6928b813bfc49ac35b3aa0",role:"presentation"},this.progressIndicator()))))}get element(){return g(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;display:block;width:100%}.duet-page-heading{position:relative;display:block;width:100%;margin:0 auto;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}.duet-page-heading.duet-p-0{padding:0 !important}.duet-page-heading.duet-m-0{margin:0 !important}.duet-page-heading.auto{overflow:visible}.duet-page-heading.auto .heading,.duet-page-heading.auto .background{max-width:none}.duet-page-heading.fluid,.duet-page-heading.narrow{padding:0 16px}@media (min-width: 36em){.duet-page-heading.fluid{padding:0 28px}}@media (min-width: 62em){.duet-page-heading.fluid{padding:0 56px}}@media (min-width: 76.25em){.duet-page-heading.fluid{max-width:1110px;padding:0}}.duet-page-heading.narrow{max-width:888px}@media (min-width: 36em){.duet-page-heading.narrow{padding:0 48px}}@media (min-width: 48em){.duet-page-heading.narrow{padding:0 72px}}.duet-page-heading .heading{max-width:744px;padding:48px 90px 16px 0}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}}.duet-page-heading:not(.has-icon) .heading{padding-right:0}.duet-page-heading .background{position:absolute;top:0;right:0;left:0;width:100%;max-width:744px;height:104px;margin:0 auto;margin:0 auto}@media (min-width: 48em){.duet-page-heading .background{height:165px}}.duet-page-heading .background .background-mask{position:absolute;top:-20px;right:0;display:block;width:286px;height:331px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIxIiBoZWlnaHQ9IjI1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TguODMzIDEzOC40NjMgNDI4LjcyOCAxNTQuOTgyQzQzOC42MTEgMTcxLjUyOCA0NTIuNDU4IDE4NS4wODcgNDcwLjI1NCAxOTUuN0M0OTAuNzM3IDIwOC44ODEgNTEyLjE0NSAyMTcuNzIxIDUzNC40MDEgMjIyLjI0NUM1NTYuNjQ0IDIyNi43NTcgNTc5Ljg2NSAyMjYuNTA5IDYwNC4xMTUgMjIxLjU2N0M2MDkuNjQzIDIyMC42MTYgNjE1LjI2MyAyMTkuNDY4IDYyMC45MjEgMjE4LjA5OUM2MjYuNTY3IDIxNi43NTYgNjMyLjI3NyAyMTUuMTkyIDYzOC4wNTMgMjEzLjQxOUM2NTkuMDU3IDIwNy41MjUgNjc4LjU2MiAxOTkuMzkgNjk2LjU0MSAxODkuMDc3IiBmaWxsPSIjRjVGNUY3Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjgyMF82OTk5MSI+CjxyZWN0IHdpZHRoPSI3MjEiIGhlaWdodD0iMjU2Ljg0OCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K");background-repeat:no-repeat;background-size:contain}@media (min-width: 48em){.duet-page-heading .background .background-mask{top:-40px;width:502px;height:577px}}.duet-page-heading .background .brand-shape{position:absolute;top:-157px;right:-20px;width:185px;height:185px;background:rgb(0, 119, 179);border-radius:20%;mix-blend-mode:normal;opacity:0.2;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shape{top:-280px;right:-40px;width:325px;height:325px}}.duet-page-heading .background .brand-shape.second-shape{top:-182px;right:100px;width:207px;height:207px;background:rgb(11, 114, 136);opacity:0.1}@media (min-width: 48em){.duet-page-heading .background .brand-shape.second-shape{top:-325px;right:200px;width:365px;height:365px}}.duet-page-heading .background .brand-shaped-icon{position:absolute;top:20px;right:16px;display:flex;align-items:center;justify-content:center;width:85px;width:60px;height:85px;height:60px;background:rgba(0, 119, 179, 0.75);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon{right:36px;width:93px;height:93px}}.duet-page-heading .background .brand-shaped-icon duet-icon{width:60px;height:60px;transform:rotate(-7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon duet-icon{width:75px;height:75px}}.duet-page-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(8, 42, 77)}.duet-page-heading.duet-theme-turva .brand-shaped-icon{background:rgba(198, 12, 48, 0.9);-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");mask-repeat:no-repeat}.duet-page-heading.duet-theme-turva .brand-shaped-icon duet-icon{position:relative;top:-3px}.duet-page-heading .progress-indicator{display:flex;flex-direction:row;gap:4px}.duet-page-heading .progress-step{width:100%;height:4px;background-color:rgb(181, 198, 208);border-radius:2px}.duet-page-heading .progress-step.active{background-color:rgb(0, 119, 179)}';export{D as duet_page_heading}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{h as o}from"./p-
|
|
4
|
+
import{h as o}from"./p-5a4b011d.js";const s=o=>{"setFocus"in o?o.setFocus():o.focus()},a=({moveFocusTo:a})=>o("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:()=>s(a)});export{a as F,s as f}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function a(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function r(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?e(t.value):a(t.value).then(r,o)}u((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,r;return r={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(i){return u([t,i])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(e=0)),e)try{if(n=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;a=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];a=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-552d1aa7.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-34d7dd10.system.js","./p-86937a4f.system.js","./p-98636086.system.js","./p-cbbf6d6a.system.js","./p-ef731dfb.system.js"],(function(t){"use strict";var i,e,n,a,s,r,o,u,h,c,d,l,f,p,b,g,m,v,y,k,_,w,x;return{setters:[function(t){i=t.r;e=t.c;n=t.h;a=t.F;s=t.H;r=t.g},function(t){o=t.i},function(t){u=t.c},function(t){h=t.d},function(t){c=t.k;d=t.l;l=t.d;f=t.b;p=t.a;b=t.c;g=t.m;m=t.n},function(t){v=t.g;y=t.c;k=t.d},function(t){_=t.p},function(t){w=t.b;x=t.a},function(){}],execute:function(){var S=function(t,i,e){if(t*2>i/e){return false}return true};var j='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';var M=j;var C=t("duet_pagination",function(){function t(t){var n=this;i(this,t);this.duetPageChange=e(this,"duetPageChange",3);this.listId=u("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){n.matchesCompactBreakpoint=w.includes(n.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,i){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:if(!(t===0))return[3,1];this.current=1;return[3,4];case 1:if(!(t>this.totalPages))return[3,2];this.current=this.totalPages;return[3,4];case 2:if(!(i!==t))return[3,4];e=Math.ceil(t/this.visibleItems)-1;if(!(e!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=e;return[4,this.setFocus()];case 3:n.sent();n.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var e=Number(i||n.current);n.duetPageChange.emit({component:"duet-pagination",from:e*n.take,to:e*n.take+n.take,current:e,take:n.take,type:"page",originalEvent:t})};this.getEnteredNumber=h((function(t){n.emitPageEvent(t,n.numbersStore);n.current=Number(n.numbersStore);n.numbersStore="";n.duetPageChange.emit({component:"duet-pagination",from:n.current*n.take,to:n.current*n.take+n.take,current:n.current,take:n.take,type:"jump",originalEvent:t})}),500);this.processedPageLinks=null;this.numbersStore="";this.matchesCompactBreakpoint=false;this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.disabled=false;this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",select_label:"Total pages {0}, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",select_label:"Sivuja yhteensä {0}, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Paginering, välj en siffra för att hoppa till en sida",select_label:"Totalt antal sidor {0}, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=v(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.compactBreakpoint="x-small";this.ariaControls="";this.current=1;this.pageLinks=undefined}t.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};t.prototype.watchStateHandler=function(t,i){return this.actionChain(t,i)};t.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();o(this);this.refresh()};t.prototype.componentDidLoad=function(){this.firstRenderDone=true};t.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};t.prototype.componentDidRender=function(){if(this.firstRenderDone&&!this.processedPageLinks){this.setFocus()}};t.prototype.connectedCallback=function(){var t=this.compactBreakpoint==="none"?"all":x[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",h(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);y(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;k(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=_(this.pageLinks);return[2]}))}))};t.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};t.prototype.onMouseHandler=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.disabled){return[2]}if(!this.processedPageLinks){t.preventDefault();t.stopPropagation();this.current=this.current+i}this.emitPageEvent(t);return[2]}))}))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(e){if(this.disabled){return[2]}i=this.current;if(l(t)||f(t)){i--}if(p(t)||b(t)){i++}if(c(t)){if(i<=this.totalPages){this.current=i;if(this.processedPageLinks){this.emitPageEvent(t,i-1);window.open(this.processedPageLinks[i-1],"_self","")}else{this.emitPageEvent(t)}}}if(d(t)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+t.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(t)}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(e){switch(e.label){case 0:t=this.nativeNav.querySelector("[data-id='".concat(this.current,"']"));i=t;if(!i)return[3,2];return[4,t.setFocus()];case 1:i=e.sent();e.label=2;case 2:i;return[2]}}))}))};t.prototype.pageClickHandler=function(t){var i=Number(t.target.getAttribute("data-id"));if(!this.processedPageLinks){t.preventDefault();this.current=i}this.emitPageEvent(t,i)};t.prototype.selectClickHandler=function(t){t.preventDefault();var i=Number(t.target.value);this.current=i;if(this.processedPageLinks){this.emitPageEvent(t,i-1);window.open(this.processedPageLinks[i-1],"_self","")}else{this.emitPageEvent(t,i)}};t.prototype.sectionClickHandler=function(t,i){t.preventDefault();var e=this.internalSectionIndex+i;var n=this.take*this.visibleItems;if(e*n>this.total){e=this.internalSectionIndex}var a=e;this.internalSectionIndex=a>=0?a:0};t.prototype.jumpToStart=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=0;this.current=1}this.emitPageEvent(t)};t.prototype.jumpToEnd=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages}this.emitPageEvent(t)};t.prototype.renderPageButton=function(t){var i=this;return n("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":true},id:"page-".concat(t,"-button"),color:t!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":t,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(t),onClick:function(t){return i.pageClickHandler(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:undefined},n("div",{class:"duet-pagination-page-number","aria-hidden":true},t))};t.prototype.renderPageNumbers=function(){var t=[];var i=this.internalSectionIndex*this.visibleItems;do{i++;if(i>this.totalPages){break}t.push(n("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},this.renderPageButton(i)))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};t.prototype.renderSelect=function(){var t=this;var i=[];for(var e=1;e<=this.totalPages;e++){i.push({value:e.toString(),label:e.toString()})}var a=n("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(i),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}","".concat(this.totalPages)),labelHidden:true,onDuetChange:function(i){return t.selectClickHandler(i)}});return n("li",null,a,n("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return S(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var i=this;return n(s,{key:"756ad0511064e85742b3bb271bdd2a468f3f1eb0",onKeyDown:function(t){return i.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},n("nav",{key:"4d235370cef9fc2b6d9448b2b02a02eefc04b97b",role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(t){return i.nativeNav=t},"aria-controls":this.ariaControls,class:(t={"duet-pagination-nav":true},t["duet-pagination-variation-".concat(this.variation)]=true,t)},this.numbersStore!==""&&n("div",{key:"4e98bb73d78c7cb713ac1de78d9d5ccbdce1687d","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},n("duet-badge",{key:"9d16f94604abbcfbbd8b538395e46c024b88c0a2",theme:this.theme},"jump to page : ",this.numbersStore)),n("ol",{key:"7bbec70a660779cabba7847dd76732e9bfb71f1b",id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"974c29ddf4de1b7aca6e24f289be9fbb4177eb56",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"d8fd5f3a859d470c11c15ae197313cc6c8983fc2",disabled:this.internalSectionIndex===0&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:function(t){return i.jumpToStart(t)},"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined})),n("li",{key:"c03e92b8f6ba758dd49e881380c964c87f155dcc",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"71b346d9a35b397951223fb32bdd449441dab0bf",disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:function(t){return i.onMouseHandler(t,-1)},"accessible-label":this.accessibleLabels.previous_page,title:this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current-2]:undefined})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&n(a,{key:"142ba228678916f8f9a69de0c8f38430c6db7623"},n("li",{key:"6e2370fdf3f65c69d30ccee081b6426c12267a11",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"887ee7242f007578beb3b1a59702ab619d0a7e5e",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(t){return i.jumpToStart(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined},n("div",{key:"0b5d04b555f074972abcc93a70a0d80bdadabcd4",class:"duet-pagination-page-number"},"1"))),n("li",{key:"3cbe3bbf9ef3406f2a98aa736f692aaf87119857",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"462643a69aeecc463a23ba22f0bf79ea8c4456c3",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return i.sectionClickHandler(t,-1)},theme:this.theme},n("div",{key:"fa748ff5b134b6a0a3a4550f0073fbf45baf2337",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&n(a,{key:"0459e62e54d351fa5f22afa7afb3a3a6027df6c1"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&n("li",{key:"fb76ad813a83768da7a52230342170198efc321d",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"14b9164e41b63d0adbbfe5ef29074a46695a44d6",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return i.sectionClickHandler(t,1)},theme:this.theme},n("div",{key:"551f91a348760b5101e88adc3a3d8a3d692fc804",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),n("li",{key:"454ccc661d104be10d0a3908fa7516e1f627fb57",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"01eeca39b9de17e25c39ffec6296c26920b86380",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(t){return i.jumpToEnd(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:undefined},n("div",{key:"f4c0ca8a738f21233a966611c8ce15d7f776c7d7",class:"duet-pagination-page-number"},this.totalPages)))),n("li",{key:"3dc850213f9f9c7aac8cabba1901740d6068cdde",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"ddf5b89fac538ccdae84e031bea7a2830f656bc0",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick:function(t){return i.onMouseHandler(t,1)},"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:undefined})),(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"78c2482a7d36358e53000e55c19057c2b4585165",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"330747e12a1e3d8bc0fb74f3945d99c06d8132d0",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick:function(t){return i.jumpToEnd(t)},"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:undefined})))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}());C.style=M;var N="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(8, 42, 77)}.duet-range-stepper ::part(button){border:0}";var L=N;var z=t("duet_range_stepper",function(){function t(t){var n=this;i(this,t);this.duetRangeStepUpdate=e(this,"duetRangeStepUpdate",7);this.leftBn=u("duetRangeStepper-left");this.rightBn=u("duetRangeStepper-right");this.handleClick=function(t,i){t.preventDefault();n.stepIndex+=i;n.clampStepIndex();n.handleStepClick(t)};this.buttonLeftDisabled=false;this.buttonRightDisabled=false;this.theme="";this.disabled=false;this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=v(this.ariaLabelsDefaults);this.ariaControls=""}t.prototype.watchStepIndexStateHandler=function(t){if(this.leftBnRef&&this.rightBnRef){if(t<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.buttonLeftDisabled=true}else{this.buttonLeftDisabled=false}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.buttonRightDisabled=true}else{this.buttonRightDisabled=false}}};t.prototype.watchStepSizeStateHandler=function(t,i){if(t!==i){if(this.stepIndex*t>this.total){this.stepIndex=Math.ceil(this.total/t)}this.watchStepIndexStateHandler(this.stepIndex)}};t.prototype.handleStepClick=function(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};t.prototype.componentWillLoad=function(){o(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){y(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){k(this)};t.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};t.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};t.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};t.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};t.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};t.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e;return __generator(this,(function(n){if(this.disabled){return[2]}i=this.stepIndex;e=1;if(l(t)||f(t)||g(t)){i--;e=-1;this.leftBnRef.setFocus()}if(p(t)||b(t)||m(t)){i++;e=1}if(c(t)){if(i>0&&i*this.stepSize<=this.total){this.handleClick(t,e)}}return[2]}))}))};t.prototype.render=function(){var t=this;return n("div",{key:"43d93bf62ed3c3b091933da841d015662b158e50",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(i){return t.onKeyboardDown(i)},"aria-controls":this.ariaControls},n("span",{key:"0eb7fa8f8e1f5853a16c85f8d9670c70d531f13a",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),n("duet-action-button",{key:"b89f2b93dfe5a510bf6acbdf30ce694ff1ac59dc",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:function(i){return t.handleClick(i,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(i){return t.leftBnRef=i},part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),n("duet-action-button",{key:"a9d84ec5096ae382828ee82ba75bd558b08d49ea",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:function(i){return t.handleClick(i,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(i){return t.rightBnRef=i},part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}());z.style=L}}}));
|
|
4
|
+
*/System.register(["./p-bdaef893.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-34d7dd10.system.js","./p-8623cfcd.system.js","./p-98636086.system.js","./p-cbbf6d6a.system.js","./p-ef731dfb.system.js"],(function(t){"use strict";var i,e,n,a,s,r,o,u,h,c,d,l,f,p,b,g,m,v,y,k,_,w,x;return{setters:[function(t){i=t.r;e=t.c;n=t.h;a=t.F;s=t.H;r=t.g},function(t){o=t.i},function(t){u=t.c},function(t){h=t.d},function(t){c=t.k;d=t.l;l=t.d;f=t.b;p=t.a;b=t.c;g=t.m;m=t.n},function(t){v=t.g;y=t.c;k=t.d},function(t){_=t.p},function(t){w=t.b;x=t.a},function(){}],execute:function(){var S=function(t,i,e){if(t*2>i/e){return false}return true};var j='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';var M=j;var C=t("duet_pagination",function(){function t(t){var n=this;i(this,t);this.duetPageChange=e(this,"duetPageChange",3);this.listId=u("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){n.matchesCompactBreakpoint=w.includes(n.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,i){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:if(!(t===0))return[3,1];this.current=1;return[3,4];case 1:if(!(t>this.totalPages))return[3,2];this.current=this.totalPages;return[3,4];case 2:if(!(i!==t))return[3,4];e=Math.ceil(t/this.visibleItems)-1;if(!(e!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=e;return[4,this.setFocus()];case 3:n.sent();n.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var e=Number(i||n.current);n.duetPageChange.emit({component:"duet-pagination",from:e*n.take,to:e*n.take+n.take,current:e,take:n.take,type:"page",originalEvent:t})};this.getEnteredNumber=h((function(t){n.emitPageEvent(t,n.numbersStore);n.current=Number(n.numbersStore);n.numbersStore="";n.duetPageChange.emit({component:"duet-pagination",from:n.current*n.take,to:n.current*n.take+n.take,current:n.current,take:n.take,type:"jump",originalEvent:t})}),500);this.processedPageLinks=null;this.numbersStore="";this.matchesCompactBreakpoint=false;this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.disabled=false;this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",select_label:"Total pages {0}, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",select_label:"Sivuja yhteensä {0}, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Paginering, välj en siffra för att hoppa till en sida",select_label:"Totalt antal sidor {0}, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=v(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.compactBreakpoint="x-small";this.ariaControls="";this.current=1;this.pageLinks=undefined}t.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};t.prototype.watchStateHandler=function(t,i){return this.actionChain(t,i)};t.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();o(this);this.refresh()};t.prototype.componentDidLoad=function(){this.firstRenderDone=true};t.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};t.prototype.componentDidRender=function(){if(this.firstRenderDone&&!this.processedPageLinks){this.setFocus()}};t.prototype.connectedCallback=function(){var t=this.compactBreakpoint==="none"?"all":x[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",h(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);y(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;k(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=_(this.pageLinks);return[2]}))}))};t.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};t.prototype.onMouseHandler=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.disabled){return[2]}if(!this.processedPageLinks){t.preventDefault();t.stopPropagation();this.current=this.current+i}this.emitPageEvent(t);return[2]}))}))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(e){if(this.disabled){return[2]}i=this.current;if(l(t)||f(t)){i--}if(p(t)||b(t)){i++}if(c(t)){if(i<=this.totalPages){this.current=i;if(this.processedPageLinks){this.emitPageEvent(t,i-1);window.open(this.processedPageLinks[i-1],"_self","")}else{this.emitPageEvent(t)}}}if(d(t)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+t.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(t)}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(e){switch(e.label){case 0:t=this.nativeNav.querySelector("[data-id='".concat(this.current,"']"));i=t;if(!i)return[3,2];return[4,t.setFocus()];case 1:i=e.sent();e.label=2;case 2:i;return[2]}}))}))};t.prototype.pageClickHandler=function(t){var i=Number(t.target.getAttribute("data-id"));if(!this.processedPageLinks){t.preventDefault();this.current=i}this.emitPageEvent(t,i)};t.prototype.selectClickHandler=function(t){t.preventDefault();var i=Number(t.target.value);this.current=i;if(this.processedPageLinks){this.emitPageEvent(t,i-1);window.open(this.processedPageLinks[i-1],"_self","")}else{this.emitPageEvent(t,i)}};t.prototype.sectionClickHandler=function(t,i){t.preventDefault();var e=this.internalSectionIndex+i;var n=this.take*this.visibleItems;if(e*n>this.total){e=this.internalSectionIndex}var a=e;this.internalSectionIndex=a>=0?a:0};t.prototype.jumpToStart=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=0;this.current=1}this.emitPageEvent(t)};t.prototype.jumpToEnd=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages}this.emitPageEvent(t)};t.prototype.renderPageButton=function(t){var i=this;return n("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":true},id:"page-".concat(t,"-button"),color:t!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":t,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(t),onClick:function(t){return i.pageClickHandler(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:undefined},n("div",{class:"duet-pagination-page-number","aria-hidden":true},t))};t.prototype.renderPageNumbers=function(){var t=[];var i=this.internalSectionIndex*this.visibleItems;do{i++;if(i>this.totalPages){break}t.push(n("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},this.renderPageButton(i)))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};t.prototype.renderSelect=function(){var t=this;var i=[];for(var e=1;e<=this.totalPages;e++){i.push({value:e.toString(),label:e.toString()})}var a=n("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(i),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}","".concat(this.totalPages)),labelHidden:true,onDuetChange:function(i){return t.selectClickHandler(i)}});return n("li",null,a,n("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return S(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var i=this;return n(s,{key:"756ad0511064e85742b3bb271bdd2a468f3f1eb0",onKeyDown:function(t){return i.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},n("nav",{key:"4d235370cef9fc2b6d9448b2b02a02eefc04b97b",role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(t){return i.nativeNav=t},"aria-controls":this.ariaControls,class:(t={"duet-pagination-nav":true},t["duet-pagination-variation-".concat(this.variation)]=true,t)},this.numbersStore!==""&&n("div",{key:"4e98bb73d78c7cb713ac1de78d9d5ccbdce1687d","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},n("duet-badge",{key:"9d16f94604abbcfbbd8b538395e46c024b88c0a2",theme:this.theme},"jump to page : ",this.numbersStore)),n("ol",{key:"7bbec70a660779cabba7847dd76732e9bfb71f1b",id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"974c29ddf4de1b7aca6e24f289be9fbb4177eb56",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"d8fd5f3a859d470c11c15ae197313cc6c8983fc2",disabled:this.internalSectionIndex===0&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:function(t){return i.jumpToStart(t)},"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined})),n("li",{key:"c03e92b8f6ba758dd49e881380c964c87f155dcc",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"71b346d9a35b397951223fb32bdd449441dab0bf",disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:function(t){return i.onMouseHandler(t,-1)},"accessible-label":this.accessibleLabels.previous_page,title:this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current-2]:undefined})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&n(a,{key:"142ba228678916f8f9a69de0c8f38430c6db7623"},n("li",{key:"6e2370fdf3f65c69d30ccee081b6426c12267a11",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"887ee7242f007578beb3b1a59702ab619d0a7e5e",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(t){return i.jumpToStart(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined},n("div",{key:"0b5d04b555f074972abcc93a70a0d80bdadabcd4",class:"duet-pagination-page-number"},"1"))),n("li",{key:"3cbe3bbf9ef3406f2a98aa736f692aaf87119857",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"462643a69aeecc463a23ba22f0bf79ea8c4456c3",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return i.sectionClickHandler(t,-1)},theme:this.theme},n("div",{key:"fa748ff5b134b6a0a3a4550f0073fbf45baf2337",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&n(a,{key:"0459e62e54d351fa5f22afa7afb3a3a6027df6c1"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&n("li",{key:"fb76ad813a83768da7a52230342170198efc321d",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"14b9164e41b63d0adbbfe5ef29074a46695a44d6",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return i.sectionClickHandler(t,1)},theme:this.theme},n("div",{key:"551f91a348760b5101e88adc3a3d8a3d692fc804",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),n("li",{key:"454ccc661d104be10d0a3908fa7516e1f627fb57",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"01eeca39b9de17e25c39ffec6296c26920b86380",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(t){return i.jumpToEnd(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:undefined},n("div",{key:"f4c0ca8a738f21233a966611c8ce15d7f776c7d7",class:"duet-pagination-page-number"},this.totalPages)))),n("li",{key:"3dc850213f9f9c7aac8cabba1901740d6068cdde",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"ddf5b89fac538ccdae84e031bea7a2830f656bc0",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick:function(t){return i.onMouseHandler(t,1)},"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:undefined})),(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"78c2482a7d36358e53000e55c19057c2b4585165",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"330747e12a1e3d8bc0fb74f3945d99c06d8132d0",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick:function(t){return i.jumpToEnd(t)},"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:undefined})))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}());C.style=M;var N="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(8, 42, 77)}.duet-range-stepper ::part(button){border:0}";var L=N;var z=t("duet_range_stepper",function(){function t(t){var n=this;i(this,t);this.duetRangeStepUpdate=e(this,"duetRangeStepUpdate",7);this.leftBn=u("duetRangeStepper-left");this.rightBn=u("duetRangeStepper-right");this.handleClick=function(t,i){t.preventDefault();n.stepIndex+=i;n.clampStepIndex();n.handleStepClick(t)};this.buttonLeftDisabled=false;this.buttonRightDisabled=false;this.theme="";this.disabled=false;this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=v(this.ariaLabelsDefaults);this.ariaControls=""}t.prototype.watchStepIndexStateHandler=function(t){if(this.leftBnRef&&this.rightBnRef){if(t<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.buttonLeftDisabled=true}else{this.buttonLeftDisabled=false}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.buttonRightDisabled=true}else{this.buttonRightDisabled=false}}};t.prototype.watchStepSizeStateHandler=function(t,i){if(t!==i){if(this.stepIndex*t>this.total){this.stepIndex=Math.ceil(this.total/t)}this.watchStepIndexStateHandler(this.stepIndex)}};t.prototype.handleStepClick=function(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};t.prototype.componentWillLoad=function(){o(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){y(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){k(this)};t.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};t.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};t.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};t.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};t.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};t.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e;return __generator(this,(function(n){if(this.disabled){return[2]}i=this.stepIndex;e=1;if(l(t)||f(t)||g(t)){i--;e=-1;this.leftBnRef.setFocus()}if(p(t)||b(t)||m(t)){i++;e=1}if(c(t)){if(i>0&&i*this.stepSize<=this.total){this.handleClick(t,e)}}return[2]}))}))};t.prototype.render=function(){var t=this;return n("div",{key:"43d93bf62ed3c3b091933da841d015662b158e50",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(i){return t.onKeyboardDown(i)},"aria-controls":this.ariaControls},n("span",{key:"0eb7fa8f8e1f5853a16c85f8d9670c70d531f13a",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),n("duet-action-button",{key:"b89f2b93dfe5a510bf6acbdf30ce694ff1ac59dc",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:function(i){return t.handleClick(i,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(i){return t.leftBnRef=i},part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),n("duet-action-button",{key:"a9d84ec5096ae382828ee82ba75bd558b08d49ea",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:function(i){return t.handleClick(i,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(i){return t.rightBnRef=i},part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}());z.style=L}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as t,H as o,g as a}from"./p-
|
|
4
|
+
import{r as e,h as t,H as o,g as a}from"./p-5a4b011d.js";import{i as r}from"./p-aaa7a7bd.js";const i=class{constructor(t){e(this,t),this.theme="",this.variation="default",this.active=!1,this.href="#",this.icon=void 0,this.accessibleLabel=void 0}componentWillLoad(){r(this)}render(){const e="negative"===this.variation?"negative":"white";return t(o,{key:"c0474aff0b8baba6eb146018d612c23236d18cf8",role:"listitem"},t("a",{key:"59afb14e71531de7cd605e7afaa754ad5dd9d4bd",class:{"duet-toolbar-link":!0,"duet-theme-turva":"turva"===this.theme,active:this.active,[e]:!0},href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&t("duet-icon",{key:"6403402c9fa39bcd5c64c008393114ae37acb748",size:"x-small",name:this.icon,margin:"none",theme:this.theme,color:"currentColor"}),t("slot",{key:"a507f84b3eabc3954eab980e01407b5de2e6a09f"})))}get element(){return a(this)}};i.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-toolbar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 16px;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, 75, 129);text-align:center;text-decoration:none;white-space:nowrap}.duet-toolbar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-toolbar-link:focus,.duet-toolbar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-toolbar-link.negative{color:rgb(255, 255, 255)}.duet-toolbar-link.negative duet-icon{color:rgb(198, 225, 238)}.duet-toolbar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-toolbar-link.duet-theme-turva.negative{color:rgb(255, 255, 255)}.duet-toolbar-link.duet-theme-turva.negative duet-icon{color:rgb(255, 185, 190)}.duet-toolbar-link:hover{color:rgb(8, 42, 77);background:rgb(240, 247, 250)}.duet-toolbar-link:hover.negative{color:rgb(255, 255, 255);background:rgba(8, 42, 77, 0.2)}.duet-toolbar-link:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 247, 250)}.duet-toolbar-link:hover.duet-theme-turva.negative{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-link.active{color:rgb(8, 42, 77)}.duet-toolbar-link.active.negative{font-weight:600;color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-link.active.negative::after{display:none}.duet-toolbar-link.active::after{position:absolute;top:auto;bottom:1px;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-toolbar-link.active::after.duet-theme-turva{background:rgb(198, 12, 48)}.duet-toolbar-link.active.duet-theme-turva{color:rgb(23, 28, 58)}.duet-toolbar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}.duet-toolbar-link.active.duet-theme-turva.negative{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}';export{i as duet_toolbar_link}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-bdaef893.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js"],(function(e){"use strict";var t,o,n,a,i,d,r,s;return{setters:[function(e){t=e.r;o=e.c;n=e.h;a=e.H;i=e.g},function(e){d=e.i},function(e){r=e.s;s=e.u}],execute:function(){var c='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:not(.descendant-focused):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:not(.descendant-focused).duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;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;color:rgb(255, 255, 255) !important;background-color:rgba(4, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(4, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var u=c;var b=e("duet_cookie_consent",function(){function e(e){var n=this;t(this,e);this.duetCookieConsent=o(this,"duetCookieConsent",7);this.handleClick=function(e){e.preventDefault();n.duetCookieConsent.emit({component:"duet-cookie-consent"})};this.accessibleLabel="Hyväksyn evästeiden käytön";this.theme=""}e.prototype.handleFocusIn=function(e){var t=e.composedPath();var o=t[0];if(o!==this.element){this.element.classList.add("descendant-focused")}};e.prototype.handleFocusOut=function(){this.element.classList.remove("descendant-focused")};e.prototype.componentWillLoad=function(){d(this)};e.prototype.connectedCallback=function(){r(this)};e.prototype.disconnectedCallback=function(){s(this)};e.prototype.render=function(){return n(a,{key:"ba657b582c7e36fe289d60fdbcdceda17ef1c854",tabindex:"0",class:{"duet-theme-turva":this.theme==="turva"}},n("div",{key:"2b680212ac0f1834f391a28a1ffc9320ef339889",class:{"duet-cookie-consent":true,"duet-theme-turva":this.theme==="turva"}},n("div",{key:"6c881c1cf1281d744d38da802b8e8fc39bda913f",class:"duet-cookie-consent-content"},n("div",{key:"11ec4babd89db60e2457d8c53e7cd7c568eebcf4",class:"expand"},n("slot",{key:"d9b95a15ab5ddb779fea42974ed9fe0c515be16b"})),n("duet-spacer",{key:"93b5f4d507e332d0703d03b5a04b8e1333dbde3f",size:"large",direction:"horizontal"}),n("div",{key:"213584e8c479edd36a9d35c179abf68c913035f9"},n("duet-button",{key:"b8f9fba11afbaa3b06da03fee781a279ad77e783",variation:"negative",size:"small",onClick:this.handleClick,margin:"none","aria-label":this.accessibleLabel,theme:this.theme},"OK")))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());b.style=u}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r,h as e,H as s,g as a}from"./p-
|
|
4
|
+
import{r,h as e,H as s,g as a}from"./p-5a4b011d.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-c09655fd.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(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.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(240, 247, 250);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(240, 247, 250)}.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(255, 241, 241)}.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(255, 241, 241)}";export{d as duet_progress}
|