@duetds/components 8.4.2 → 8.4.4
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 +183 -47
- package/lib/cjs/action-new-window-50c8aed0.js +11 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-banner.cjs.entry.js +9 -8
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +3 -3
- package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-callout.cjs.entry.js +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +45 -21
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
- package/lib/cjs/duet-chip.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
- package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +56 -9
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
- package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +3 -5
- package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
- 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 +1 -1
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-popup-menu.cjs.entry.js +9 -4
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-promo-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +3 -3
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
- package/lib/cjs/duet-show-more.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout.cjs.entry.js +5 -5
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -5
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-item.cjs.entry.js +9 -2
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{floating-ui.dom.esm-a7d59d53.js → floating-ui.dom.esm-91f66430.js} +60 -20
- package/lib/cjs/{focus-utils-c103ab0a.js → focus-utils-a2fa36c7.js} +1 -1
- package/lib/cjs/{index-7fe97a5d.js → index-321cd5c2.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-7a618677.js → token-utils-c8094d1e.js} +1 -1
- package/lib/cjs/{tokens-c3eecae6.js → tokens-5b487d39.js} +3 -0
- package/lib/cjs/{tokens.module-bc323a09.js → tokens.module-450a747b.js} +2 -0
- package/lib/collection/collection-manifest.json +1 -1
- package/lib/collection/components/duet-banner/duet-banner.css +26 -0
- package/lib/collection/components/duet-banner/duet-banner.js +5 -4
- package/lib/collection/components/duet-link/duet-link.css +95 -9
- package/lib/collection/components/duet-link/duet-link.js +73 -20
- package/lib/collection/components/duet-modal/duet-modal.js +1 -1
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +24 -1
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +3 -2
- package/lib/collection/components/duet-upload/duet-upload.js +95 -5
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +30 -2
- package/lib/collection/utils/string-utils.js +6 -0
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +11 -10
- package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
- package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +2 -2
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +4 -4
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +2 -2
- package/lib/dist-custom-elements/duet-choice-group.js +8 -8
- package/lib/dist-custom-elements/duet-choice.js +6 -6
- package/lib/dist-custom-elements/duet-collapsible.js +3 -3
- package/lib/dist-custom-elements/duet-combobox.js +3 -3
- package/lib/dist-custom-elements/duet-contact-card.js +8 -8
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +14 -14
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +8 -8
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
- package/lib/dist-custom-elements/duet-footer.js +5 -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 +11 -11
- 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 +3 -3
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar-item.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar-link.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar.js +3 -3
- package/lib/dist-custom-elements/duet-modal.js +10 -10
- package/lib/dist-custom-elements/duet-multiselect.js +9 -9
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +2 -2
- package/lib/dist-custom-elements/duet-number-input.js +11 -11
- package/lib/dist-custom-elements/duet-page-heading.js +2 -2
- package/lib/dist-custom-elements/duet-pagination.js +14 -14
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -2
- package/lib/dist-custom-elements/duet-popup-menu.js +10 -4
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +4 -4
- package/lib/dist-custom-elements/duet-radio-group.js +8 -8
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +3 -3
- package/lib/dist-custom-elements/duet-range-stepper.js +5 -5
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
- package/lib/dist-custom-elements/duet-show-more.js +5 -5
- package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel.js +4 -4
- package/lib/dist-custom-elements/duet-slideout.js +5 -5
- 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 +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
- 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 +7 -6
- package/lib/dist-custom-elements/duet-tab-group.js +13 -13
- package/lib/dist-custom-elements/duet-tab.js +2 -2
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +10 -10
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-item.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- 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 +4 -4
- 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 +74 -24
- 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-c1c9234e.js → p-00766c1c.js} +10 -10
- package/lib/dist-custom-elements/{p-d4663c7c.js → p-01cc0070.js} +8 -8
- package/lib/{esm/floating-ui.dom.esm-efad5c89.js → dist-custom-elements/p-11e152cd.js} +60 -20
- package/lib/dist-custom-elements/{p-0d9a20d2.js → p-16110f9e.js} +19 -11
- package/lib/dist-custom-elements/{p-cbac9ed5.js → p-2807b16f.js} +1 -1
- package/lib/dist-custom-elements/{p-d37a3cec.js → p-2f3ee599.js} +2 -0
- package/lib/dist-custom-elements/{p-fa23b7fe.js → p-37ed08ff.js} +5 -5
- package/lib/dist-custom-elements/{p-a48934c3.js → p-37fda12a.js} +1 -1
- package/lib/dist-custom-elements/{p-eef66341.js → p-4bd749d9.js} +1 -1
- package/lib/dist-custom-elements/{p-4f04ad3e.js → p-4ea72812.js} +2 -2
- package/lib/dist-custom-elements/{p-177cbf72.js → p-5d23f8e5.js} +1 -1
- package/lib/dist-custom-elements/{p-0a2e2799.js → p-60825051.js} +1 -1
- package/lib/dist-custom-elements/{p-601b571c.js → p-694eb563.js} +2 -2
- package/lib/dist-custom-elements/{p-6686826d.js → p-6d154d20.js} +1 -1
- package/lib/dist-custom-elements/{p-a0fb1ecb.js → p-6e276517.js} +2 -2
- package/lib/dist-custom-elements/{p-45f0a5c5.js → p-70db33ff.js} +5 -5
- package/lib/dist-custom-elements/{p-131d995f.js → p-769f67db.js} +2 -2
- package/lib/dist-custom-elements/{p-9b65c21f.js → p-7a282561.js} +2 -2
- package/lib/dist-custom-elements/{p-2996bc9b.js → p-80658678.js} +7 -7
- package/lib/dist-custom-elements/p-8855e26a.js +8 -0
- package/lib/dist-custom-elements/{p-61c2577e.js → p-95edd984.js} +4 -4
- package/lib/dist-custom-elements/{p-50ce213d.js → p-9a68c9c3.js} +2 -2
- package/lib/dist-custom-elements/{p-33a89c97.js → p-a0e148ea.js} +2 -2
- package/lib/dist-custom-elements/{p-f5c39ead.js → p-add43228.js} +5 -5
- package/lib/dist-custom-elements/{p-f1f23dbd.js → p-b72908a4.js} +4 -4
- package/lib/dist-custom-elements/{p-12eef2ad.js → p-b8be34fe.js} +3 -3
- package/lib/dist-custom-elements/{p-15c6804a.js → p-bc9b66e3.js} +2 -2
- package/lib/dist-custom-elements/{p-59846fe0.js → p-c3bf10f0.js} +2 -2
- package/lib/dist-custom-elements/{p-3e696237.js → p-c92fc106.js} +2 -2
- package/lib/dist-custom-elements/{p-47e5367a.js → p-c9e9fcdd.js} +1 -1
- package/lib/dist-custom-elements/{p-a15329e0.js → p-cd43ed13.js} +1 -1
- package/lib/dist-custom-elements/p-d0e58f2f.js +195 -0
- package/lib/dist-custom-elements/{p-5b729ba0.js → p-d98e622c.js} +2 -2
- package/lib/dist-custom-elements/{p-57761460.js → p-d9ce7d34.js} +2 -2
- package/lib/dist-custom-elements/{p-7e7a0c10.js → p-e0da6a34.js} +1 -1
- package/lib/dist-custom-elements/{p-d84e09c9.js → p-e20f6c37.js} +1 -1
- package/lib/dist-custom-elements/{p-a41e92cd.js → p-eb8112d7.js} +1 -1
- package/lib/{esm/tokens-30d01e1d.js → dist-custom-elements/p-ed995372.js} +3 -0
- package/lib/dist-custom-elements/{p-2a308935.js → p-f6bb0a14.js} +1 -1
- package/lib/dist-custom-elements/{p-1364c672.js → p-f971e88a.js} +2 -2
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-22d72786.system.entry.js → p-010dd9f1.system.entry.js} +1 -1
- package/lib/duet/{p-9d2d5bb7.entry.js → p-021e6c41.entry.js} +1 -1
- package/lib/duet/{p-bba08afa.entry.js → p-03ecd2e4.entry.js} +1 -1
- package/lib/duet/{p-f2aa1623.js → p-03f6f09a.js} +1 -1
- package/lib/duet/p-04cc1871.entry.js +4 -0
- package/lib/duet/{p-1d44acfe.entry.js → p-0ae402bc.entry.js} +1 -1
- package/lib/duet/{p-0e015dcc.system.entry.js → p-0bbc8e7d.system.entry.js} +1 -1
- package/lib/duet/{p-b46eaf22.system.entry.js → p-0c7b4d0b.system.entry.js} +1 -1
- package/lib/duet/{p-04396632.entry.js → p-0ee178f3.entry.js} +1 -1
- package/lib/duet/{p-ea0114b0.system.entry.js → p-11d504bb.system.entry.js} +1 -1
- package/lib/duet/p-11e152cd.js +4 -0
- package/lib/duet/{p-0b31f281.entry.js → p-14dd96f6.entry.js} +1 -1
- package/lib/duet/{p-4a711595.system.entry.js → p-1a90862e.system.entry.js} +1 -1
- package/lib/duet/{p-cf68eb94.entry.js → p-1b7067b9.entry.js} +1 -1
- package/lib/duet/{p-da3a4563.system.entry.js → p-1c6ac55a.system.entry.js} +1 -1
- package/lib/duet/{p-10098739.system.entry.js → p-1d6732e5.system.entry.js} +1 -1
- package/lib/duet/{p-e8ef41fb.entry.js → p-1f1ea2e1.entry.js} +1 -1
- package/lib/duet/{p-18a5ed57.entry.js → p-1f51448a.entry.js} +1 -1
- package/lib/duet/{p-fe6d6541.entry.js → p-1f6614f2.entry.js} +1 -1
- package/lib/duet/p-1fd2d87d.entry.js +4 -0
- package/lib/duet/{p-0dfacf89.entry.js → p-218929dd.entry.js} +1 -1
- package/lib/duet/{p-5df167ce.entry.js → p-24707dfe.entry.js} +1 -1
- package/lib/duet/p-290fd0ec.entry.js +4 -0
- package/lib/duet/{p-738c2982.entry.js → p-296bce73.entry.js} +1 -1
- package/lib/duet/{p-edbb800c.entry.js → p-2a67d274.entry.js} +1 -1
- package/lib/duet/{p-10221818.system.entry.js → p-2accb711.system.entry.js} +1 -1
- package/lib/duet/{p-c1788410.entry.js → p-2ad9975b.entry.js} +1 -1
- package/lib/duet/{p-68563736.entry.js → p-2c3a0e0b.entry.js} +1 -1
- package/lib/duet/{p-321f5636.system.entry.js → p-2c7a4ccf.system.entry.js} +1 -1
- package/lib/duet/{p-c32fb0ad.system.entry.js → p-2d505c84.system.entry.js} +1 -1
- package/lib/duet/{p-7a62a25c.system.entry.js → p-2d5eea69.system.entry.js} +1 -1
- package/lib/duet/p-2e68af22.system.js +4 -0
- package/lib/duet/{p-846f6107.entry.js → p-30694f50.entry.js} +1 -1
- package/lib/duet/{p-851a2197.system.entry.js → p-30b37984.system.entry.js} +1 -1
- package/lib/duet/{p-70e8e2e8.entry.js → p-324a6828.entry.js} +1 -1
- package/lib/duet/{p-66811869.system.entry.js → p-328a40de.system.entry.js} +1 -1
- package/lib/duet/{p-dd11d532.system.entry.js → p-3350f9aa.system.entry.js} +1 -1
- package/lib/duet/p-34620d0d.entry.js +4 -0
- package/lib/duet/{p-3d1e8d07.system.entry.js → p-350fc5f7.system.entry.js} +1 -1
- package/lib/duet/{p-64d1ea6b.entry.js → p-368a4f49.entry.js} +1 -1
- package/lib/duet/{p-addd5e7e.system.entry.js → p-36cce3f9.system.entry.js} +1 -1
- package/lib/duet/{p-383a91dc.system.entry.js → p-383719e3.system.entry.js} +1 -1
- package/lib/duet/{p-ff73f982.system.entry.js → p-3a7594d3.system.entry.js} +1 -1
- package/lib/duet/{p-78e5a38c.system.entry.js → p-3cd30915.system.entry.js} +1 -1
- package/lib/duet/p-3d88b644.system.entry.js +4 -0
- package/lib/duet/p-3d951794.entry.js +4 -0
- package/lib/duet/{p-71028a1e.entry.js → p-3e26c389.entry.js} +1 -1
- package/lib/duet/{p-3dfbd404.system.entry.js → p-3f0589bb.system.entry.js} +1 -1
- package/lib/duet/{p-407a1728.entry.js → p-40c29b8e.entry.js} +1 -1
- package/lib/duet/{p-abdbce02.system.js → p-41ba30b7.system.js} +1 -1
- package/lib/duet/{p-99b0e6bb.system.entry.js → p-41e13b83.system.entry.js} +1 -1
- package/lib/duet/{p-ffb8996b.system.js → p-42101548.system.js} +1 -1
- package/lib/duet/p-432df72f.system.entry.js +4 -0
- package/lib/duet/{p-230604b9.entry.js → p-43cd9f87.entry.js} +1 -1
- package/lib/duet/{p-551e05af.system.entry.js → p-44c81d6b.system.entry.js} +1 -1
- package/lib/duet/{p-7a98a43c.entry.js → p-460aada9.entry.js} +1 -1
- package/lib/duet/p-4861c4a4.entry.js +4 -0
- package/lib/duet/{p-c46b15ea.entry.js → p-48bd3e10.entry.js} +1 -1
- package/lib/duet/{p-c57afc88.entry.js → p-4f779b7b.entry.js} +1 -1
- package/lib/duet/{p-49e02a59.system.entry.js → p-507f807b.system.entry.js} +1 -1
- package/lib/duet/p-5091eb50.entry.js +4 -0
- package/lib/duet/p-52e38899.system.js +4 -0
- package/lib/duet/{p-d9f35a79.entry.js → p-5555f60d.entry.js} +1 -1
- package/lib/duet/{p-8f916ac7.system.entry.js → p-55b5929c.system.entry.js} +1 -1
- package/lib/duet/{p-b685de1e.js → p-593e28ac.js} +1 -1
- package/lib/duet/{p-42473291.system.entry.js → p-5ca7f7cb.system.entry.js} +1 -1
- package/lib/duet/p-5d5b6fbd.entry.js +4 -0
- package/lib/duet/{p-04d81b55.entry.js → p-5e8c47fe.entry.js} +1 -1
- package/lib/duet/p-5f0c7704.system.entry.js +4 -0
- package/lib/duet/{p-187e0e31.entry.js → p-607be10a.entry.js} +1 -1
- package/lib/duet/{p-514310af.system.entry.js → p-60ca48d1.system.entry.js} +1 -1
- package/lib/duet/{p-2f75a831.system.entry.js → p-62ce745e.system.entry.js} +1 -1
- package/lib/duet/p-650a419d.system.js +4 -0
- package/lib/duet/{p-95575931.entry.js → p-66f4c2bb.entry.js} +1 -1
- package/lib/duet/{p-436828cd.entry.js → p-67956ba7.entry.js} +1 -1
- package/lib/duet/{p-b3fe4d80.system.entry.js → p-6a6136ac.system.entry.js} +1 -1
- package/lib/duet/p-6c3a10a7.system.entry.js +4 -0
- package/lib/duet/{p-bb0d4df8.system.entry.js → p-6cce9324.system.entry.js} +1 -1
- package/lib/duet/{p-69535738.system.entry.js → p-6d5bbd9d.system.entry.js} +1 -1
- package/lib/duet/{p-70192242.system.entry.js → p-6d67ee47.system.entry.js} +1 -1
- package/lib/duet/{p-5855d879.system.entry.js → p-6ef5d34b.system.entry.js} +1 -1
- package/lib/duet/{p-2d679611.entry.js → p-70961fe6.entry.js} +1 -1
- package/lib/duet/{p-428adef7.system.entry.js → p-7329324b.system.entry.js} +1 -1
- package/lib/duet/{p-7de032fc.system.entry.js → p-78c560b1.system.entry.js} +1 -1
- package/lib/duet/{p-c0580b3f.system.entry.js → p-797eaeab.system.entry.js} +1 -1
- package/lib/duet/{p-5a9a1c76.entry.js → p-79f72cff.entry.js} +1 -1
- package/lib/duet/{p-5f87ea3d.js → p-7a66b632.js} +1 -1
- package/lib/duet/{p-301fda37.entry.js → p-7a6ed189.entry.js} +1 -1
- package/lib/duet/{p-04c226e5.entry.js → p-7c0afcee.entry.js} +1 -1
- package/lib/duet/{p-ab0a3192.entry.js → p-7c2ceea1.entry.js} +1 -1
- package/lib/duet/{p-48a63ce5.system.entry.js → p-7e14f80d.system.entry.js} +1 -1
- package/lib/duet/{p-b2387806.entry.js → p-7ecb4a30.entry.js} +1 -1
- package/lib/duet/{p-fe3a3989.entry.js → p-7f0e15ec.entry.js} +1 -1
- package/lib/duet/{p-2fd350b6.entry.js → p-7fd57091.entry.js} +1 -1
- package/lib/duet/p-80dc1362.system.entry.js +4 -0
- package/lib/duet/{p-f5414759.system.entry.js → p-81363d5b.system.entry.js} +1 -1
- package/lib/duet/{p-89ff1726.entry.js → p-81a65ba4.entry.js} +1 -1
- package/lib/duet/{p-24c2902b.entry.js → p-81a72ffe.entry.js} +1 -1
- package/lib/duet/{p-a8da4509.system.entry.js → p-84c8b5a1.system.entry.js} +1 -1
- package/lib/duet/{p-43931eed.system.entry.js → p-86069994.system.entry.js} +1 -1
- package/lib/duet/{p-4afeea09.system.entry.js → p-87c91115.system.entry.js} +2 -2
- package/lib/duet/{p-1d2d899a.system.entry.js → p-87e6b946.system.entry.js} +1 -1
- package/lib/duet/p-8855e26a.js +4 -0
- package/lib/duet/{p-9da0ed12.system.entry.js → p-89310816.system.entry.js} +1 -1
- package/lib/duet/{p-65b7afbd.system.entry.js → p-89daabf5.system.entry.js} +1 -1
- package/lib/duet/p-8a5fcb79.system.entry.js +4 -0
- package/lib/duet/{p-c9ab053d.entry.js → p-8b929d17.entry.js} +1 -1
- package/lib/duet/{p-ff58fdad.system.entry.js → p-8c5009b8.system.entry.js} +1 -1
- package/lib/duet/{p-b40bceab.system.entry.js → p-8cb77e1f.system.entry.js} +1 -1
- package/lib/duet/{p-dc234b3a.entry.js → p-935dbe23.entry.js} +1 -1
- package/lib/duet/{p-17a52ca1.entry.js → p-94ec5a34.entry.js} +1 -1
- package/lib/duet/{p-0a61dd54.system.entry.js → p-97d09535.system.entry.js} +1 -1
- package/lib/duet/p-98c4123d.entry.js +4 -0
- package/lib/duet/{p-d5c5992f.entry.js → p-9b42d132.entry.js} +1 -1
- package/lib/duet/{p-4557d28f.entry.js → p-9c5592a0.entry.js} +1 -1
- package/lib/duet/{p-5688f257.entry.js → p-9e58080f.entry.js} +1 -1
- package/lib/duet/{p-3c42ae99.system.entry.js → p-9f780397.system.entry.js} +1 -1
- package/lib/duet/{p-08e002f8.entry.js → p-a0978112.entry.js} +1 -1
- package/lib/duet/{p-f64f4ff8.system.entry.js → p-a09a9abe.system.entry.js} +1 -1
- package/lib/duet/{p-da7f4cbf.system.entry.js → p-a144a9ba.system.entry.js} +1 -1
- package/lib/duet/{p-12597683.system.entry.js → p-a1c81497.system.entry.js} +1 -1
- package/lib/duet/{p-b0d5f427.system.entry.js → p-a225a097.system.entry.js} +1 -1
- package/lib/duet/{p-93e1f5f7.entry.js → p-a2ab881c.entry.js} +1 -1
- package/lib/duet/{p-fc353103.system.entry.js → p-a2ac806b.system.entry.js} +1 -1
- package/lib/duet/{p-ea92b78c.system.entry.js → p-a2f3f775.system.entry.js} +1 -1
- package/lib/duet/p-a46b4450.system.js +4 -0
- package/lib/duet/{p-757451ff.system.entry.js → p-a5066804.system.entry.js} +1 -1
- package/lib/duet/{p-29301434.system.entry.js → p-ac1cf4f6.system.entry.js} +1 -1
- package/lib/duet/{p-3a63e778.entry.js → p-adf1bd67.entry.js} +1 -1
- package/lib/duet/{p-10d39a4b.system.entry.js → p-afcd0356.system.entry.js} +1 -1
- package/lib/duet/{p-50559904.system.entry.js → p-b8182937.system.entry.js} +1 -1
- package/lib/duet/{p-96783b15.system.entry.js → p-b86feb9d.system.entry.js} +1 -1
- package/lib/duet/{p-a58f1913.system.entry.js → p-bb4a6a02.system.entry.js} +1 -1
- package/lib/duet/{p-b3fac2f5.entry.js → p-bbd94845.entry.js} +1 -1
- package/lib/duet/{p-f99a14a4.system.entry.js → p-bdec8ea8.system.entry.js} +1 -1
- package/lib/duet/{p-e3f76452.entry.js → p-bf2f9155.entry.js} +1 -1
- package/lib/duet/{p-e7bc8481.entry.js → p-bfc33dbb.entry.js} +1 -1
- package/lib/duet/{p-a45fe7ea.system.entry.js → p-c24529b8.system.entry.js} +1 -1
- package/lib/duet/{p-4fe29741.entry.js → p-c4a1468e.entry.js} +1 -1
- package/lib/duet/{p-deff3c18.entry.js → p-c6995ff3.entry.js} +1 -1
- package/lib/duet/{p-f7681856.system.entry.js → p-c7b3d9fd.system.entry.js} +1 -1
- package/lib/duet/p-c8564169.entry.js +4 -0
- package/lib/duet/{p-1f3ff1d7.system.entry.js → p-c9e8f35b.system.entry.js} +1 -1
- package/lib/duet/{p-fce3d5cc.system.entry.js → p-cdb63bbf.system.entry.js} +1 -1
- package/lib/duet/{p-0571c7df.system.entry.js → p-d156e8f9.system.entry.js} +1 -1
- package/lib/duet/{p-cfc901c8.entry.js → p-d547e4b8.entry.js} +1 -1
- package/lib/duet/{p-4f40d4b7.system.entry.js → p-d5e534d5.system.entry.js} +1 -1
- package/lib/duet/{p-cd03ee1c.entry.js → p-d6f9146f.entry.js} +1 -1
- package/lib/duet/{p-65126f35.system.entry.js → p-d76fa43c.system.entry.js} +1 -1
- package/lib/duet/{p-fa5eff27.js → p-d82b4974.js} +1 -1
- package/lib/duet/{p-ea0d7900.entry.js → p-d8d7c90b.entry.js} +1 -1
- package/lib/duet/{p-5935bb9e.system.entry.js → p-d936b946.system.entry.js} +1 -1
- package/lib/duet/{p-71fa6c5f.entry.js → p-da9e040d.entry.js} +1 -1
- package/lib/duet/{p-62d011ba.entry.js → p-db5e6b96.entry.js} +1 -1
- package/lib/duet/{p-df7a726b.entry.js → p-ddb1fc3d.entry.js} +1 -1
- package/lib/duet/{p-f0f494dc.system.js → p-def3d03c.system.js} +1 -1
- package/lib/duet/{p-02064d40.entry.js → p-e0e04af9.entry.js} +1 -1
- package/lib/duet/{p-e6a09596.entry.js → p-e1fbb2f0.entry.js} +1 -1
- package/lib/duet/{p-936894c4.entry.js → p-e31f82e8.entry.js} +1 -1
- package/lib/duet/{p-4aada7ef.system.entry.js → p-e3832e69.system.entry.js} +1 -1
- package/lib/duet/{p-937a64ee.system.entry.js → p-e39b3463.system.entry.js} +1 -1
- package/lib/duet/p-e639b9ee.system.js +4 -0
- package/lib/duet/{p-798d2be8.entry.js → p-eb2092ea.entry.js} +1 -1
- package/lib/duet/{p-ea787367.system.entry.js → p-ebd9d168.system.entry.js} +1 -1
- package/lib/duet/p-ed995372.js +4 -0
- package/lib/duet/{p-a6a2c0c2.entry.js → p-f10c1b71.entry.js} +1 -1
- package/lib/duet/{p-54cbe86f.system.entry.js → p-f11ee829.system.entry.js} +1 -1
- package/lib/duet/{p-01cb4eba.entry.js → p-f442a901.entry.js} +1 -1
- package/lib/duet/{p-b671985e.entry.js → p-f75d4521.entry.js} +1 -1
- package/lib/duet/{p-3611d8db.entry.js → p-f860fa92.entry.js} +1 -1
- package/lib/duet/{p-c8fd77c9.system.entry.js → p-f9567972.system.entry.js} +1 -1
- package/lib/duet/{p-94d25cb5.entry.js → p-f97b0583.entry.js} +1 -1
- package/lib/duet/{p-596fd1f4.entry.js → p-fcda7bb3.entry.js} +1 -1
- package/lib/duet/{p-9f23897e.system.entry.js → p-fdf3ee51.system.entry.js} +1 -1
- package/lib/duet/{p-d26277f5.entry.js → p-ff048b43.entry.js} +1 -1
- package/lib/esm/action-new-window-9c8f7830.js +8 -0
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-banner.entry.js +9 -8
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +3 -3
- package/lib/esm/duet-button_2.entry.js +3 -3
- package/lib/esm/duet-callout.entry.js +1 -1
- package/lib/esm/duet-caption_4.entry.js +45 -21
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +1 -1
- package/lib/esm/duet-chip.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.entry.js +1 -1
- package/lib/esm/duet-contact-card.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +56 -9
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +1 -1
- package/lib/esm/duet-file-chooser.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +2 -4
- package/lib/esm/duet-grid_2.entry.js +2 -2
- package/lib/esm/duet-header_2.entry.js +4 -4
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +3 -3
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-menu-bar-item.entry.js +2 -2
- package/lib/esm/duet-menu-bar-link.entry.js +2 -2
- 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 +1 -1
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +4 -4
- package/lib/esm/duet-popup-menu-item.entry.js +1 -1
- package/lib/esm/duet-popup-menu.entry.js +9 -4
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-promo-card.entry.js +3 -3
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +3 -3
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-shaped-image.entry.js +1 -1
- package/lib/esm/duet-show-more.entry.js +1 -1
- package/lib/esm/duet-slideout-lang.entry.js +1 -1
- package/lib/esm/duet-slideout-link.entry.js +1 -1
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm/duet-slideout-panel.entry.js +4 -4
- package/lib/esm/duet-slideout.entry.js +5 -5
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-item.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +6 -5
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm/duet-toolbar-item.entry.js +1 -1
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
- package/lib/esm/duet-tooltip.entry.js +3 -3
- package/lib/esm/duet-tray.entry.js +2 -2
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-upload-item.entry.js +9 -2
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/{dist-custom-elements/p-00c8a755.js → esm/floating-ui.dom.esm-34e0a5fa.js} +60 -20
- package/lib/esm/{focus-utils-82a898ac.js → focus-utils-c70f9fb9.js} +1 -1
- package/lib/esm/{index-28be88c1.js → index-3c6b5eb8.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{token-utils-0c77cb3c.js → token-utils-be83d039.js} +1 -1
- package/lib/{dist-custom-elements/p-d81ec707.js → esm/tokens-94133fa9.js} +3 -0
- package/lib/esm/{tokens.module-c9866649.js → tokens.module-3547915d.js} +2 -0
- package/lib/esm-es5/action-new-window-9c8f7830.js +4 -0
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip.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 +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-popup-menu-item.entry.js +1 -1
- package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.entry.js +2 -2
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +1 -1
- package/lib/esm-es5/duet-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 +2 -2
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-upload-item.entry.js +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/floating-ui.dom.esm-34e0a5fa.js +4 -0
- package/lib/esm-es5/{focus-utils-82a898ac.js → focus-utils-c70f9fb9.js} +1 -1
- package/lib/esm-es5/{index-28be88c1.js → index-3c6b5eb8.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{token-utils-0c77cb3c.js → token-utils-be83d039.js} +1 -1
- package/lib/esm-es5/tokens-94133fa9.js +4 -0
- package/lib/esm-es5/tokens.module-3547915d.js +4 -0
- package/lib/types/common-types.d.ts +1 -1
- package/lib/types/components/duet-link/duet-link.d.ts +13 -5
- package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +4 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +13 -0
- package/lib/types/components/duet-upload-item/duet-upload-item.d.ts +8 -0
- package/lib/types/components.d.ts +48 -6
- package/lib/types/utils/string-utils.d.ts +4 -0
- package/package.json +7 -6
- package/lib/cjs/action-arrow-right-24fe06be.js +0 -8
- package/lib/dist-custom-elements/p-6fa39608.js +0 -6
- package/lib/dist-custom-elements/p-e052b3b5.js +0 -169
- package/lib/duet/p-00c8a755.js +0 -4
- package/lib/duet/p-04423d37.system.entry.js +0 -4
- package/lib/duet/p-129bd497.system.entry.js +0 -4
- package/lib/duet/p-15fde8cc.system.js +0 -4
- package/lib/duet/p-1cf9481d.entry.js +0 -4
- package/lib/duet/p-1ededd77.system.js +0 -4
- package/lib/duet/p-20a0342c.entry.js +0 -4
- package/lib/duet/p-232940fa.system.js +0 -4
- package/lib/duet/p-2acaaa8b.entry.js +0 -4
- package/lib/duet/p-2ba2a50c.system.entry.js +0 -4
- package/lib/duet/p-3134bfb1.system.entry.js +0 -4
- package/lib/duet/p-5a031276.entry.js +0 -4
- package/lib/duet/p-69aa5532.system.entry.js +0 -4
- package/lib/duet/p-6fa39608.js +0 -4
- package/lib/duet/p-72fd7bb2.entry.js +0 -4
- package/lib/duet/p-81f6a1a9.system.entry.js +0 -4
- package/lib/duet/p-9a056716.entry.js +0 -4
- package/lib/duet/p-c0f44540.entry.js +0 -4
- package/lib/duet/p-c34022cb.entry.js +0 -4
- package/lib/duet/p-d81ec707.js +0 -4
- package/lib/duet/p-dd994793.system.js +0 -4
- package/lib/duet/p-ddd516cc.entry.js +0 -4
- package/lib/duet/p-e1868c94.system.js +0 -4
- package/lib/duet/p-f9932852.entry.js +0 -4
- package/lib/esm/action-arrow-right-f7d56681.js +0 -6
- package/lib/esm-es5/action-arrow-right-f7d56681.js +0 -4
- package/lib/esm-es5/floating-ui.dom.esm-efad5c89.js +0 -4
- package/lib/esm-es5/tokens-30d01e1d.js +0 -4
- package/lib/esm-es5/tokens.module-c9866649.js +0 -4
- /package/lib/cjs/{bodyScrollLock.es6-83f334d1.js → bodyScrollLock.es6-dd2d7d91.js} +0 -0
- /package/lib/dist-custom-elements/{p-62c7d9d4.js → p-33937fd7.js} +0 -0
- /package/lib/dist-custom-elements/{p-141e14d0.js → p-8354d1f1.js} +0 -0
- /package/lib/duet/{p-ed5a5071.system.js → p-49957220.system.js} +0 -0
- /package/lib/duet/{p-141e14d0.js → p-8354d1f1.js} +0 -0
- /package/lib/esm/{bodyScrollLock.es6-8dc7cca7.js → bodyScrollLock.es6-ecbf187e.js} +0 -0
- /package/lib/esm-es5/{bodyScrollLock.es6-8dc7cca7.js → bodyScrollLock.es6-ecbf187e.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
const r="rgb(0, 119, 179)",a="rgb(255, 255, 255)",o="rgb(207, 210, 212)",e="rgb(198, 12, 48)",
|
|
4
|
+
const r="rgb(0, 119, 179)",a="rgb(255, 255, 255)",o="rgb(207, 210, 212)",e="rgb(198, 12, 48)",i="rgb(178, 180, 179)",l="rgb(207, 207, 209)",g="4rem",t="3rem",s="'(min-width: 106.25em)'",p="'(min-width: 64.0625em)'",x="'(min-width: 48em)'",c="'(min-width: 62em)'",m="'(min-width: 76.25em)'",n="'(max-width: 35.9375em)'",b="'(max-width: 20.5em)'",d="'(min-width: 36em)'",u="'(max-width: 22.5em)'",y=Object.freeze({__proto__:null,colorWarning:"rgb(247, 178, 40)",colorGrayDarker:"rgb(101, 119, 135)",colorGrayLighter:"rgb(245, 248, 250)",colorCategoryHome:"rgb(211, 36, 131)",colorPrimary:r,colorCategoryVehicle:"rgb(54, 74, 129)",colorSuccess:"rgb(0, 135, 90)",colorCategoryFamily:"rgb(11, 114, 136)",colorPrimaryLightest:"rgb(243, 249, 252)",colorPrimaryLighter:"rgb(230, 242, 248)",colorBrandBlue:"rgb(0, 161, 212)",colorPrimaryDark:"rgb(0, 77, 128)",colorGrayLightest:a,colorCategoryFinance:"rgb(122, 1, 196)",colorGrayDark:"rgb(144, 149, 153)",colorGrayLight:"rgb(225, 227, 230)",colorSecondary:"rgb(0, 41, 77)",colorCategoryPet:"rgb(168, 1, 78)",colorPrimaryLight:"rgb(205, 229, 241)",colorCategoryTravel:"rgb(213, 66, 3)",colorGray:o,colorDanger:"rgb(222, 35, 98)",colorGrayDarkerTurva:"rgb(68, 68, 69)",colorGrayLighterTurva:"rgb(245, 245, 247)",colorCategoryHomeTurva:"rgb(161, 10, 78)",colorPrimaryTurva:e,colorCategoryVehicleTurva:"rgb(23, 28, 58)",colorSuccessTurva:"rgb(8, 135, 78)",colorPrimaryLightestTurva:"rgb(252, 243, 244)",colorCategoryFamilyTurva:"rgb(199, 12, 112)",colorCategoryUnionTurva:"rgb(169, 69, 124)",colorPrimaryLighterTurva:"rgb(249, 230, 234)",colorPrimaryDarkTurva:"rgb(148, 9, 37)",colorGrayLightestTurva:"rgb(255, 255, 255)",colorGrayDarkTurva:"rgb(116, 116, 117)",colorGrayLightTurva:"rgb(228, 228, 230)",colorBrandGrayTurva:i,colorSecondaryTurva:"rgb(23, 28, 58)",colorPrimaryLightTurva:"rgb(244, 207, 214)",colorCategoryTravelTurva:"rgb(9, 129, 148)",colorGrayTurva:l,colorDangerTurva:"rgb(224, 42, 13)",colorWarningTurva:"rgb(250, 164, 15)",colorData07:"rgb(192, 101, 247)",colorData08:"rgb(0, 105, 191)",colorData09:"rgb(19, 120, 53)",colorData10:"rgb(179, 60, 24)",colorData11:"rgb(13, 163, 166)",colorData01:"rgb(122, 1, 196)",colorData12:"rgb(11, 114, 136)",colorData02:"rgb(0, 155, 204)",colorData13:"rgb(179, 137, 24)",colorData03:"rgb(27, 171, 75)",colorData14:"rgb(128, 98, 17)",colorData04:"rgb(255, 86, 34)",colorData15:"rgb(0, 41, 77)",colorData05:"rgb(245, 76, 154)",colorData06:"rgb(194, 21, 101)",fontWeightExtraBold:"800",letterSpacingHeading:"-0.01rem",fontFamilyHeadingTurva:"'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyTextTurva:"'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyHeading:"'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyText:"'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontWeightBold:"700",fontWeightNormal:"400",fontWeightSemiBold:"600",fontSizeXxxxLarge:"4.5rem",fontSizeXxxLarge:"3rem",fontSizeXxLarge:"2.25rem",fontSizeXLarge:"1.5rem",fontSizeLarge:"1.25rem",fontSizeMedium:"1rem",fontSizeSmall:"0.875rem",fontSizeXSmall:"0.75rem",radiusSharp:"0",radiusDefault:"4px",radiusMedium:"8px",radiusIntermediate:"12px",radiusLarge:"16px",radiusCircle:"50%",radiusPill:"20rem",shadowTooltipTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.13)",shadowFocusInputTurva:"0 0 0 1px #171c3a",shadowDefault:"0 2px 6px 0 rgba(0, 41, 77, 0.07)",shadowFocusInput:"0 0 0 1px #0077b3",shadowTooltip:"0 2px 10px 0 rgba(0, 41, 77, 0.07)",shadowHoverInputTurva:"0 0 0 1px #747475",shadowErrorTurva:"0 0 0 1px #e55039",shadowHoverInput:"0 0 0 1px #909599",shadowError:"0 0 0 1px #de2362",shadowCardTurva:"0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)",shadowModal:"0 2px 20px 0 rgba(0, 0, 0, 0.2)",shadowCard:"0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)",shadowFocusTurva:"0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a",shadowFocus:"0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3",shadowHoverTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.15)",shadowHover:"0 2px 10px 0 rgba(0, 41, 77, 0.1)",shadowDefaultTurva:"0 2px 6px 0 rgba(117, 117, 117, 0.13)",spaceXxSmall:"4px",spaceLarge:"20px",spaceXSmall:"8px",spaceXxxSmall:"2px",spaceSmall:"12px",spaceMedium:"16px",spaceXxLarge:"36px",spaceXxxxLarge:"72px",spaceXxxxxLarge:"94px",spaceXxxLarge:"48px",spaceXLarge:"28px",sizeIconXxLarge:"48px",sizeFormBorder:"1px",sizeStepMedium:"40px",sizeButtonMinWidth:"8rem",sizeHeader:g,sizeIconXxxLarge:"72px",sizeIconXLarge:"36px",sizeIconXxSmall:"10px",sizeStepSmall:"30px",sizeNavigation:t,sizeIconLarge:"30px",sizeLayoutMaxWidth:"1110px",sizeTappableSquare:"48px",sizeIconXSmall:"16px",sizeMediumBorder:"2px",sizeIconXxxSmall:"7px",sizeButtonBorder:"1px",sizeButtonTinyBorder:"1px",sizeIconMedium:"24px",sizeIconSmall:"20px",opacity85:"0.85",opacity75:"0.75",opacity50:"0.50",opacity30:"0.30",zIndexMaskButtons:"250",zIndexDropdown:"600",zIndexSpinner:"800",zIndexDefault:"1",zIndexToast:"500",zIndexPopup:"950",zIndexModal:"900",zIndexSticky:"300",zIndexMasked:"100",zIndexDeep:"-999999",zIndexOverlay:"700",zIndexMask:"200",zIndexHeader:"400",lineHeightMedium:"1.5",lineHeightSmall:"1.25",lineHeightXSmall:"1.1",transitionQuickly:"300ms ease",transitionSlowly:"600ms ease",mediaQueryXxxLarge:s,mediaQueryXLarge:p,mediaQueryMedium:x,mediaQueryLarge:c,mediaQueryXxLarge:m,mediaQueryXSmall:n,mediaQueryXxxSmall:b,mediaQuerySmall:d,mediaQueryXxSmall:u});export{n as a,d as b,x as c,c as d,p as e,m as f,s as g,b as h,e as i,l as j,r as k,o as l,u as m,a as n,i as o,t as p,g as s,y as t}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import{r,h as e,H as s,g as a}from"./p-d82b4974.js";import{i as o}from"./p-a58bd561.js";import{c as t}from"./p-5e59e970.js";import{g as i,c as n,d as p}from"./p-2e36d5bf.js";import"./p-0e052642.js";const d=class{constructor(e){r(this,e),this.progressId=t("DuetProgress"),this.progressLabelId=t("DuetProgressLabel"),this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLabel=void 0,this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]},this.accessibleLabelUpload=i(this.accessibleLabelUploadDefaults),this.progress=0,this.caption=void 0,this.height="10px",this.theme=""}componentWillLoad(){o(this)}connectedCallback(){n(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})}disconnectedCallback(){p(this)}render(){return e(s,null,e("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":!0,"duet-progress-done":100===this.progress,"duet-progress-start":0===this.progress,"duet-progress-inprogress":this.progress<99&&0!==this.progress,"duet-theme-turva":"turva"===this.theme}},e("duet-visually-hidden",null,e("label",{htmlFor:this.progressLabelId},e("span",null,this.accessibleLabel,0!==this.progress&&`, ${this.accessibleLabelUpload[this.progress<99?1:0]}`))),this.caption&&e("div",{class:"duet-progress-caption"},e("span",null,this.caption)),e("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},e("div",{class:"progress-bar"},e("span",{style:{width:`${this.progress}%;`}},"Progress: ",this.progress,"%")))))}get element(){return a(this)}};d.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(243, 249, 252);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(252, 243, 244)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-theme-turva .duet-progress progress[value]{color:rgb(198, 12, 48)}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(243, 249, 252);border-radius:0}.duet-theme-turva .duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(252, 243, 244)}.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-theme-turva .duet-progress progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(243, 249, 252)}.duet-theme-turva .duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(252, 243, 244)}";export{d as duet_progress}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as t,g as i,H as a}from"./p-
|
|
4
|
+
import{r as e,h as t,g as i,H as a}from"./p-d82b4974.js";import{i as h}from"./p-a58bd561.js";import{g as d}from"./p-7a66b632.js";import"./p-03f6f09a.js";const r=class{constructor(t){e(this,t),this.theme="",this.margin="auto",this.color=""}componentWillLoad(){h(this)}render(){const e=d(this.color);return t("div",{class:{"duet-m-0":"none"===this.margin,"duet-m-s":"small"===this.margin,"duet-divider":!0,"duet-theme-turva":"turva"===this.theme},style:{background:e}})}get element(){return i(this)}};r.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-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:36px !important;margin-bottom:28px;background:rgb(225, 227, 230)}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:rgb(228, 228, 230)}";const s=class{constructor(t){e(this,t),this.size="medium",this.direction="vertical",this.breakpoint=""}render(){return t(a,{class:{"duet-spacer":!0,"duet-spacer-xx-small":"xx-small"===this.breakpoint,"duet-spacer-x-small":"x-small"===this.breakpoint,"duet-spacer-small":"small"===this.breakpoint,"duet-spacer-medium":"medium"===this.breakpoint,"duet-spacer-large":"large"===this.breakpoint,"duet-spacer-x-large":"x-large"===this.breakpoint,"duet-spacer-xx-large":"xx-large"===this.breakpoint,[this.size]:!0,[`duet-spacer-${this.direction}`]:!0}})}};s.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.duet-spacer-horizontal){display:inline-block;height:100% !important}:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.duet-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.duet-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.small){width:12px;min-width:12px}}:host(.duet-spacer-horizontal.medium){height:100%}:host(.duet-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.large){width:20px;min-width:20px}}:host(.duet-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.duet-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.duet-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.duet-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.duet-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.duet-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.duet-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.duet-spacer-vertical.small){height:12px;min-height:12px}}:host(.duet-spacer-vertical.medium){width:100%}:host(.duet-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.duet-spacer-vertical.large){height:20px;min-height:20px}}:host(.duet-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.duet-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.duet-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.duet-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.duet-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.duet-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.duet-spacer-xx-small){display:block}}:host(.duet-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.duet-spacer-x-small){display:block}}:host(.duet-spacer-small){display:none}@media (min-width: 36em){:host(.duet-spacer-small){display:block}}:host(.duet-spacer-medium){display:none}@media (min-width: 48em){:host(.duet-spacer-medium){display:block}}:host(.duet-spacer-large){display:none}@media (min-width: 62em){:host(.duet-spacer-large){display:block}}:host(.duet-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.duet-spacer-x-large){display:block}}:host(.duet-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.duet-spacer-xx-large){display:block}}";export{r as duet_divider,s as duet_spacer}
|
|
@@ -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-ffb8996b.system.js","./p-50f4bca2.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-b2716337.system.js","./p-224f6c46.system.js","./p-6ef75455.system.js","./p-abdbce02.system.js","./p-e1868c94.system.js"],(function(t){"use strict";var i,e,n,a,s,r,o,u,h,l,c,d,p,f,g,m,b,v,y,_,w,k,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){l=t.k;c=t.l;d=t.d;p=t.b;f=t.a;g=t.c;m=t.m;b=t.n},function(t){v=t.g;y=t.c;_=t.d},function(t){w=t.p},function(t){k=t.b;x=t.a},function(){}],execute:function(){var S=function(t,i,e){if(t*2>i/e){return false}return true};var j='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(0, 41, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';var M=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=k.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.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;_(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=w(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.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){i=this.current;if(d(t)||p(t)){i--}if(f(t)||g(t)){i++}if(l(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(c(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",{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",{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,{onKeyDown:function(t){return i.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},n("nav",{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",{"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",{theme:this.theme},"jump to page : ",this.numbersStore)),n("ol",{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",{class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{disabled:this.internalSectionIndex===0&&this.current<=1,"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",{class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks),"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,null,n("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{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",{class:"duet-pagination-page-number"},"1"))),n("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{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",{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,null,(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&n("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{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",{class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),n("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{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",{class:"duet-pagination-page-number"},this.totalPages)))),n("li",{class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks),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",{class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1,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}());M.style=j;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;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(0, 41, 77)}.duet-range-stepper ::part(button){border:0}";var N=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.theme="";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.leftBnRef.setAttribute("disabled","")}else{this.leftBnRef.removeAttribute("disabled")}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.rightBnRef.setAttribute("disabled","")}else{this.rightBnRef.removeAttribute("disabled")}}};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(){_(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){i=this.stepIndex;e=1;if(d(t)||p(t)||m(t)){i--;e=-1;this.leftBnRef.setFocus()}if(f(t)||g(t)||b(t)){i++;e=1}if(l(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",{class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(i){return t.onKeyboardDown(i)},"aria-controls":this.ariaControls},n("span",{class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),n("duet-action-button",{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"}),n("duet-action-button",{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"}))};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}());N.style=C}}}));
|
|
4
|
+
*/System.register(["./p-42101548.system.js","./p-50f4bca2.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-b2716337.system.js","./p-224f6c46.system.js","./p-6ef75455.system.js","./p-41ba30b7.system.js","./p-52e38899.system.js"],(function(t){"use strict";var i,e,n,a,s,r,o,u,h,l,c,d,p,f,g,m,b,v,y,_,w,k,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){l=t.k;c=t.l;d=t.d;p=t.b;f=t.a;g=t.c;m=t.m;b=t.n},function(t){v=t.g;y=t.c;_=t.d},function(t){w=t.p},function(t){k=t.b;x=t.a},function(){}],execute:function(){var S=function(t,i,e){if(t*2>i/e){return false}return true};var j='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(0, 41, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';var M=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=k.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.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;_(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=w(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.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){i=this.current;if(d(t)||p(t)){i--}if(f(t)||g(t)){i++}if(l(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(c(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",{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",{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,{onKeyDown:function(t){return i.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},n("nav",{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",{"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",{theme:this.theme},"jump to page : ",this.numbersStore)),n("ol",{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",{class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{disabled:this.internalSectionIndex===0&&this.current<=1,"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",{class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks),"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,null,n("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{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",{class:"duet-pagination-page-number"},"1"))),n("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{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",{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,null,(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&n("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{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",{class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),n("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{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",{class:"duet-pagination-page-number"},this.totalPages)))),n("li",{class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks),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",{class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1,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}());M.style=j;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;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(0, 41, 77)}.duet-range-stepper ::part(button){border:0}";var N=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.theme="";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.leftBnRef.setAttribute("disabled","")}else{this.leftBnRef.removeAttribute("disabled")}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.rightBnRef.setAttribute("disabled","")}else{this.rightBnRef.removeAttribute("disabled")}}};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(){_(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){i=this.stepIndex;e=1;if(d(t)||p(t)||m(t)){i--;e=-1;this.leftBnRef.setFocus()}if(f(t)||g(t)||b(t)){i++;e=1}if(l(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",{class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(i){return t.onKeyboardDown(i)},"aria-controls":this.ariaControls},n("span",{class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),n("duet-action-button",{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",{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}());N.style=C}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-42101548.system.js","./p-50f4bca2.system.js","./p-b2716337.system.js","./p-224f6c46.system.js","./p-6ef75455.system.js"],(function(e){"use strict";var t,i,r,n,s,a,o,c,u,l,h;return{setters:[function(e){t=e.r;i=e.h;r=e.H;n=e.g},function(e){s=e.i},function(e){a=e.s;o=e.u},function(e){c=e.a;u=e.c;l=e.d;h=e.g},function(){}],execute:function(){var d={title:"action-arrow-right-small",tags:"action arrow right small caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z"/></svg>'};var b="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:list-item;width:auto}.container{display:flex;gap:8px;align-items:center}.hide{display:none}.duet-breadrumbs-arrow{display:block;align-items:center;justify-content:center;width:0.375rem;min-width:0.375rem;height:0.375rem;min-height:0.375rem}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;font-weight:inherit;line-height:1.25;color:inherit;text-decoration:none}.duet-breadcrumb:focus{outline:0}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";var m=e("duet_breadcrumb",function(){function e(e){t(this,e);this.currentCrumb={fi:"disabled. Nykyinen sivu",sv:"disabled. Visa mer",en:"disabled. Nuvarande sida"};this.hasSlottedContent=false;this.theme="";this.language=c();this.href="";this.icon="arrow-right-small-icon";this.iconSize="x-small";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){s(this)};e.prototype.connectedCallback=function(){u(this);a(this);this.hasSlottedContent=Array.from(this.element.childNodes).length>0};e.prototype.disconnectedCallback=function(){l(this);o(this)};e.prototype.render=function(){var e;return i(r,{role:"listitem"},i("div",{class:"container"},this.icon==="arrow-right-small-icon"&&i("duet-icon",{class:"duet-breadrumbs-arrow",size:"auto",icon:d.svg,margin:"none",color:"currentColor"}),i("a",{class:{"duet-breadcrumb":true,"duet-theme-turva":this.theme==="turva"},href:this.href?this.href:undefined,"aria-label":"".concat(!this.href?"".concat(h(this.currentCrumb)," "):"").concat((e=this.accessibleLabel)!==null&&e!==void 0?e:this.element.innerHTML),role:"link"},this.icon!=="arrow-right-small-icon"&&this.icon&&[i("duet-icon",{size:this.iconSize,name:this.icon,margin:"none",color:"currentColor"}),this.hasSlottedContent&&i("duet-spacer",{size:"x-small",direction:"horizontal"})],i("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());m.style=b}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,c as t,h as a,H as i,g as o}from"./p-
|
|
4
|
+
import{r as e,c as t,h as a,H as i,g as o}from"./p-d82b4974.js";import{a as s}from"./p-115c79b6.js";import{f as l,t as n}from"./p-ed995372.js";import{i as r}from"./p-a58bd561.js";import{c as d}from"./p-5e59e970.js";import{i as c,s as p,u as h}from"./p-3624bad1.js";import{h as m}from"./p-796edee6.js";import{s as g}from"./p-0e052642.js";const u=class{constructor(a){e(this,a),this.duetToggle=t(this,"duetToggle",7),this.id=d("DuetCollapsible"),this.handleKeyDown=e=>{c(e)&&this.handleClick(e)},this.getFontSizeFromTokens=(e=this.headingSize)=>{if(e){const t=e.replace(/-/g,"_");return n[`font_size_${t}`]}return l},this.getEquivalentIconSize=(e=this.headingSize)=>{switch(e){case"x-small":case"small":case"medium":default:return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large"}},this.handleClick=e=>{e.preventDefault(),this.open=!this.open,this.duetToggle.emit({component:"duet-collapsible",originalEvent:e})},this.theme="",this.accessibleLabel=void 0,this.heading="",this.headingFullWidth=!1,this.centerHeading=!1,this.headingWeight="semibold",this.headingSize=void 0,this.headingLevel=void 0,this.margin="auto",this.open=!1}componentWillLoad(){r(this),this.hasAfterHeading=m(this.element,"after-heading")}connectedCallback(){p(this)}disconnectedCallback(){h(this)}async setFocus(e){this.nativeButton&&(this.element.classList.add("user-is-tabbing"),this.nativeButton.focus(e))}render(){const e=this.headingLevel?g(this.headingLevel):"div";return a(i,{class:{"duet-m-0":"none"===this.margin}},a(e,null,a("button",{class:{"duet-collapsible-heading":!0,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":"turva"===this.theme,"duet-collapsible-normal-weight":"normal"===this.headingWeight,"has-after-heading":this.hasAfterHeading,"full-width":this.headingFullWidth},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:e=>this.nativeButton=e,"aria-label":this.accessibleLabel,"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},a("div",{class:"duet-collapsible-heading-icon"},a("duet-icon",{margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary",size:this.getEquivalentIconSize(),icon:s.svg})),a("div",{class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&a("div",{part:"duet-collapsible-after-heading"},a("slot",{name:"after-heading"})))),a("div",{id:this.id,class:{"duet-collapsible-content":!0,"duet-theme-turva":"turva"===this.theme},part:"duet-collapsible-content"},a("slot",null)))}get element(){return o(this)}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}';export{u as duet_collapsible}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function c(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?i(e.value):r(e.value).then(c,a)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-ffb8996b.system.js","./p-50f4bca2.system.js","./p-e6b5a1c7.system.js","./p-b2716337.system.js"],(function(e){"use strict";var t,i,n,r,o,c,a,u,d;return{setters:[function(e){t=e.r;i=e.c;n=e.h;r=e.H;o=e.g},function(e){c=e.i},function(e){a=e.c},function(e){u=e.s;d=e.u}],execute:function(){var h='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:1px;hyphens:none;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(207, 210, 212);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(207, 207, 209)}.duet-chip-container.duet-theme-turva:hover{border-color:rgb(198, 12, 48)}.duet-chip-container:hover{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-disabled{color:rgb(101, 119, 135) !important;cursor:default;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-chip-container.duet-chip-disabled.duet-theme-turva{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled:hover{background:rgb(245, 248, 250);border-color:rgb(245, 248, 250)}.duet-chip-container.duet-chip-disabled:hover.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled button,.duet-chip-container.duet-chip-disabled label{cursor:default}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:8px 14px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;line-height:1rem;color:rgb(0, 41, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:10px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-has-icon.duet-chip-radio-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container.duet-chip-has-icon button,.duet-chip-container.duet-chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:8px}.duet-chip-container duet-icon:not(.check-mark){width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{padding:0 !important;background:rgb(230, 242, 248);border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(205, 229, 241)}.duet-chip-container.duet-chip-filter-checked.chip-has-icon button,.duet-chip-container.duet-chip-filter-checked.chip-has-icon label,.duet-chip-container.duet-chip-radio-checked.chip-has-icon button,.duet-chip-container.duet-chip-radio-checked.chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva:hover,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva:hover{background:rgb(228, 228, 230)}.duet-chip-container .duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container .duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(243, 249, 252);border-color:rgb(243, 249, 252)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input{display:flex;align-items:center;padding-right:0 !important}.duet-chip-container.duet-chip-input .duet-chip-input-button{flex-grow:1}.duet-chip-container.duet-chip-input .duet-chip-remove-button{width:26px;padding:8px 16px 8px 0;margin:-8px 0}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}:host(.user-is-tabbing) .duet-chip-focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-chip-focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input{position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;cursor:pointer;opacity:0}';var s=e("duet_chip",function(){function e(e){var n=this;t(this,e);this.duetChange=i(this,"duetChange",3);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.chipId=a("DuetChip");this.enforceNoDisabledSelected=function(){if(n.disabled&&n.checked){console.error("Duet error: pre-selected chip may not be disabled");n.disabled=false}};this.popupSetUp=function(){var e=document.querySelector("duet-popup-menu#".concat(n.popup));if(e){n.popupElement=e;e.controller=n.element;var t=n.element.textContent;var i=n.value;if(!e.id){e.id="popup-menu"}e.addEventListener("duetToggle",(function(e){n.popupOpen=e.detail.open}));var r=function(){e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.active=false}))};e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.addEventListener("click",(function(o){var c;var a=(c=e.value)!==null&&c!==void 0?c:e.innerText;if(!e.active){r();e.active=true;n.element.textContent=e.innerText;n.value=a;n.checked=true}else{r();n.element.textContent=t;n.value=i;n.checked=false}n.emitChange(o);setTimeout((function(){if(n.popupElement.isOpen()){n.popupElement.hide()}}))}))}))}};this.onFocus=function(e){n.focus=true;n.duetFocus.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onBlur=function(e){n.focus=false;n.duetBlur.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.emitChange=function(e){n.duetChange.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onFilterChange=function(e){n.checked=!n.checked;n.emitChange(e)};this.onRadioChange=function(e){var t=n.focusableElement;var i=t.checked;n.checked=i;n.emitChange(e)};this.onFilterClick=function(e){if(n.disabled){e.stopPropagation();e.preventDefault();return}if(n.popupElement){e.stopPropagation();e.preventDefault();n.popupElement.toggle()}};this.onRemoveClick=function(e){e.stopPropagation();e.preventDefault();n.element.remove()};this.focus=false;this.popupElement=undefined;this.popupOpen=undefined;this.accessibleLabel=undefined;this.variation="button";this.size="medium";this.popup=undefined;this.icon="";this.theme="";this.identifier=undefined;this.value=undefined;this.name=undefined;this.checked=false;this.disabled=false;this.accessibleExpanded=undefined;this.accessiblePopup="false"}e.prototype.clearOtherRadioButtons=function(){var e=this;if(this.variation==="radio"&&this.checked){var t=document.querySelectorAll('duet-chip[variation="radio"][name="'.concat(this.name,'"]'));t.forEach((function(t){if(t!==e.element){t.checked=false}}))}};e.prototype.componentWillLoad=function(){c(this);this.popupSetUp();this.enforceNoDisabledSelected()};e.prototype.connectedCallback=function(){u(this)};e.prototype.disconnectedCallback=function(){d(this)};e.prototype.getAccessibleExpanded=function(){if(this.accessibleExpanded!=null){return(!!this.accessibleExpanded).toString()}if(this.popupElement){return this.popupOpen?"true":"false"}return undefined};e.prototype.getAccessiblePopup=function(){if(this.popupElement){return"true"}else{return this.accessiblePopup!=null?this.accessiblePopup.toString():undefined}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.focusableElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e;var t=this;var i;var o=this.identifier||this.chipId;var c=(e={"duet-chip-container":true},e["duet-chip-".concat(this.variation)]=true,e["duet-chip-focus"]=this.focus,e["duet-chip-has-icon"]=!!this.icon,e["duet-chip-has-popup"]=this.variation==="filter"&&!!this.popupElement,e["duet-theme-turva"]=this.theme==="turva",e["duet-chip-filter-checked"]=this.variation==="filter"&&this.checked,e["duet-chip-radio-checked"]=this.variation==="radio"&&this.checked,e["duet-chip-filter-popup-open"]=this.popupOpen,e["duet-chip-disabled"]=this.disabled,e[this.size]=true,e);var a={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.focusableElement=e}};return n(r,null,this.variation==="button"&&n("span",{class:c},n("button",Object.assign({id:o,"aria-label":this.accessibleLabel,"aria-disabled":this.disabled?"true":undefined,name:this.name,value:this.value,onClick:this.disabled?function(e){return e.stopPropagation()}:undefined},a),n("span",{class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",null))),this.variation==="input"&&n("span",{class:c},n("button",Object.assign({id:o,class:"duet-chip-input-button","aria-label":this.accessibleLabel},a),n("span",{class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",null)),n("button",{class:"duet-chip-remove-button",onClick:this.onRemoveClick},n("duet-icon",{name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),this.variation==="filter"&&n("span",{class:c},n("input",Object.assign({"aria-haspopup":this.getAccessiblePopup(),"aria-controls":(i=this.popupElement)===null||i===void 0?void 0:i.id,"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,id:o,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},a)),n("label",{htmlFor:o},this.icon&&n("span",{class:"duet-chip-icon-container"},n("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",null),this.popupElement&&n("span",{class:"duet-chip-popup-disclosure"},n("duet-icon",{name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&n("span",{class:c},n("input",Object.assign({"aria-disabled":this.disabled?"true":undefined,id:o,type:"radio",name:this.name,value:this.value,checked:this.checked,onChange:this.onRadioChange,onClick:this.disabled?function(e){return e.preventDefault()}:undefined},a)),n("label",{htmlFor:o},this.icon&&n("span",{class:"duet-chip-icon-container"},n("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["clearOtherRadioButtons"]}},enumerable:false,configurable:true});return e}());s.style=h}}}));
|
|
4
|
+
*/System.register(["./p-42101548.system.js","./p-50f4bca2.system.js","./p-e6b5a1c7.system.js","./p-b2716337.system.js"],(function(e){"use strict";var t,i,n,r,o,c,a,u,d;return{setters:[function(e){t=e.r;i=e.c;n=e.h;r=e.H;o=e.g},function(e){c=e.i},function(e){a=e.c},function(e){u=e.s;d=e.u}],execute:function(){var h='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:1px;hyphens:none;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(207, 210, 212);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(207, 207, 209)}.duet-chip-container.duet-theme-turva:hover{border-color:rgb(198, 12, 48)}.duet-chip-container:hover{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-disabled{color:rgb(101, 119, 135) !important;cursor:default;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-chip-container.duet-chip-disabled.duet-theme-turva{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled:hover{background:rgb(245, 248, 250);border-color:rgb(245, 248, 250)}.duet-chip-container.duet-chip-disabled:hover.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled button,.duet-chip-container.duet-chip-disabled label{cursor:default}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:8px 14px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;line-height:1rem;color:rgb(0, 41, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:10px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-has-icon.duet-chip-radio-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container.duet-chip-has-icon button,.duet-chip-container.duet-chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:8px}.duet-chip-container duet-icon:not(.check-mark){width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{padding:0 !important;background:rgb(230, 242, 248);border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(205, 229, 241)}.duet-chip-container.duet-chip-filter-checked.chip-has-icon button,.duet-chip-container.duet-chip-filter-checked.chip-has-icon label,.duet-chip-container.duet-chip-radio-checked.chip-has-icon button,.duet-chip-container.duet-chip-radio-checked.chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva:hover,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva:hover{background:rgb(228, 228, 230)}.duet-chip-container .duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container .duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(243, 249, 252);border-color:rgb(243, 249, 252)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input{display:flex;align-items:center;padding-right:0 !important}.duet-chip-container.duet-chip-input .duet-chip-input-button{flex-grow:1}.duet-chip-container.duet-chip-input .duet-chip-remove-button{width:26px;padding:8px 16px 8px 0;margin:-8px 0}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}:host(.user-is-tabbing) .duet-chip-focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-chip-focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input{position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;cursor:pointer;opacity:0}';var s=e("duet_chip",function(){function e(e){var n=this;t(this,e);this.duetChange=i(this,"duetChange",3);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.chipId=a("DuetChip");this.enforceNoDisabledSelected=function(){if(n.disabled&&n.checked){console.error("Duet error: pre-selected chip may not be disabled");n.disabled=false}};this.popupSetUp=function(){var e=document.querySelector("duet-popup-menu#".concat(n.popup));if(e){n.popupElement=e;e.controller=n.element;var t=n.element.textContent;var i=n.value;if(!e.id){e.id="popup-menu"}e.addEventListener("duetToggle",(function(e){n.popupOpen=e.detail.open}));var r=function(){e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.active=false}))};e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.addEventListener("click",(function(o){var c;var a=(c=e.value)!==null&&c!==void 0?c:e.innerText;if(!e.active){r();e.active=true;n.element.textContent=e.innerText;n.value=a;n.checked=true}else{r();n.element.textContent=t;n.value=i;n.checked=false}n.emitChange(o);setTimeout((function(){if(n.popupElement.isOpen()){n.popupElement.hide()}}))}))}))}};this.onFocus=function(e){n.focus=true;n.duetFocus.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onBlur=function(e){n.focus=false;n.duetBlur.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.emitChange=function(e){n.duetChange.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onFilterChange=function(e){n.checked=!n.checked;n.emitChange(e)};this.onRadioChange=function(e){var t=n.focusableElement;var i=t.checked;n.checked=i;n.emitChange(e)};this.onFilterClick=function(e){if(n.disabled){e.stopPropagation();e.preventDefault();return}if(n.popupElement){e.stopPropagation();e.preventDefault();n.popupElement.toggle()}};this.onRemoveClick=function(e){e.stopPropagation();e.preventDefault();n.element.remove()};this.focus=false;this.popupElement=undefined;this.popupOpen=undefined;this.accessibleLabel=undefined;this.variation="button";this.size="medium";this.popup=undefined;this.icon="";this.theme="";this.identifier=undefined;this.value=undefined;this.name=undefined;this.checked=false;this.disabled=false;this.accessibleExpanded=undefined;this.accessiblePopup="false"}e.prototype.clearOtherRadioButtons=function(){var e=this;if(this.variation==="radio"&&this.checked){var t=document.querySelectorAll('duet-chip[variation="radio"][name="'.concat(this.name,'"]'));t.forEach((function(t){if(t!==e.element){t.checked=false}}))}};e.prototype.componentWillLoad=function(){c(this);this.popupSetUp();this.enforceNoDisabledSelected()};e.prototype.connectedCallback=function(){u(this)};e.prototype.disconnectedCallback=function(){d(this)};e.prototype.getAccessibleExpanded=function(){if(this.accessibleExpanded!=null){return(!!this.accessibleExpanded).toString()}if(this.popupElement){return this.popupOpen?"true":"false"}return undefined};e.prototype.getAccessiblePopup=function(){if(this.popupElement){return"true"}else{return this.accessiblePopup!=null?this.accessiblePopup.toString():undefined}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.focusableElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e;var t=this;var i;var o=this.identifier||this.chipId;var c=(e={"duet-chip-container":true},e["duet-chip-".concat(this.variation)]=true,e["duet-chip-focus"]=this.focus,e["duet-chip-has-icon"]=!!this.icon,e["duet-chip-has-popup"]=this.variation==="filter"&&!!this.popupElement,e["duet-theme-turva"]=this.theme==="turva",e["duet-chip-filter-checked"]=this.variation==="filter"&&this.checked,e["duet-chip-radio-checked"]=this.variation==="radio"&&this.checked,e["duet-chip-filter-popup-open"]=this.popupOpen,e["duet-chip-disabled"]=this.disabled,e[this.size]=true,e);var a={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.focusableElement=e}};return n(r,null,this.variation==="button"&&n("span",{class:c},n("button",Object.assign({id:o,"aria-label":this.accessibleLabel,"aria-disabled":this.disabled?"true":undefined,name:this.name,value:this.value,onClick:this.disabled?function(e){return e.stopPropagation()}:undefined},a),n("span",{class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",null))),this.variation==="input"&&n("span",{class:c},n("button",Object.assign({id:o,class:"duet-chip-input-button","aria-label":this.accessibleLabel},a),n("span",{class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",null)),n("button",{class:"duet-chip-remove-button",onClick:this.onRemoveClick},n("duet-icon",{name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),this.variation==="filter"&&n("span",{class:c},n("input",Object.assign({"aria-haspopup":this.getAccessiblePopup(),"aria-controls":(i=this.popupElement)===null||i===void 0?void 0:i.id,"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,id:o,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},a)),n("label",{htmlFor:o},this.icon&&n("span",{class:"duet-chip-icon-container"},n("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",null),this.popupElement&&n("span",{class:"duet-chip-popup-disclosure"},n("duet-icon",{name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&n("span",{class:c},n("input",Object.assign({"aria-disabled":this.disabled?"true":undefined,id:o,type:"radio",name:this.name,value:this.value,checked:this.checked,onChange:this.onRadioChange,onClick:this.disabled?function(e){return e.preventDefault()}:undefined},a)),n("label",{htmlFor:o},this.icon&&n("span",{class:"duet-chip-icon-container"},n("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["clearOtherRadioButtons"]}},enumerable:false,configurable:true});return e}());s.style=h}}}));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
const t=Math.min,n=Math.max,e={left:"right",right:"left",bottom:"top",top:"bottom"},o={start:"end",end:"start"};function r(e,o,r){return n(e,t(o,r))}function i(t,n){return"function"==typeof t?t(n):t}function a(t){return t.split("-")[0]}function l(t){return t.split("-")[1]}function c(t){return"x"===t?"y":"x"}function s(t){return"y"===t?"height":"width"}function u(t){return["top","bottom"].includes(a(t))?"y":"x"}function f(t){return c(u(t))}function d(t){return t.replace(/start|end/g,(t=>o[t]))}function y(t){return t.replace(/left|right|bottom|top/g,(t=>e[t]))}function m(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function p(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function h(t,n,e){let{reference:o,floating:r}=t;const i=u(n),c=f(n),d=s(c),y=a(n),m="y"===i,p=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,x=o[d]/2-r[d]/2;let g;switch(y){case"top":g={x:p,y:o.y-r.height};break;case"bottom":g={x:p,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(l(n)){case"start":g[c]-=x*(e&&m?-1:1);break;case"end":g[c]+=x*(e&&m?-1:1)}return g}async function x(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:a,rects:l,elements:c,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:y=!1,padding:h=0}=i(n,t),x=m(h),g=c[y?"floating"===d?"reference":"floating":d],w=p(await a.getClippingRect({element:null==(e=await(null==a.isElement?void 0:a.isElement(g)))||e?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:s})),v="floating"===d?{x:o,y:r,width:l.floating.width,height:l.floating.height}:l.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),A=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},k=p(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:b,strategy:s}):v);return{top:(w.top-k.top+x.top)/A.y,bottom:(k.bottom-w.bottom+x.bottom)/A.y,left:(w.left-k.left+x.left)/A.x,right:(k.right-w.right+x.right)/A.x}}const g=n=>({name:"arrow",options:n,async fn(e){const{x:o,y:a,placement:c,rects:u,platform:d,elements:y,middlewareData:p}=e,{element:h,padding:x=0}=i(n,e)||{};if(null==h)return{};const g=m(x),w={x:o,y:a},v=f(c),b=s(v),A=await d.getDimensions(h),k="y"===v,S=k?"top":"left",R=k?"bottom":"right",D=k?"clientHeight":"clientWidth",P=u.reference[b]+u.reference[v]-w[v]-u.floating[b],C=w[v]-u.reference[v],F=await(null==d.getOffsetParent?void 0:d.getOffsetParent(h));let M=F?F[D]:0;M&&await(null==d.isElement?void 0:d.isElement(F))||(M=y.floating[D]||u.floating[b]);const T=P/2-C/2,B=M/2-A[b]/2-1,L=t(g[S],B),O=t(g[R],B),E=L,N=M-A[b]-O,j=M/2-A[b]/2+T,H=r(E,j,N),V=!p.arrow&&null!=l(c)&&j!==H&&u.reference[b]/2-(j<E?L:O)-A[b]/2<0,W=V?j<E?j-E:j-N:0;return{[v]:w[v]+W,data:{[v]:H,centerOffset:j-H-W,...V&&{alignmentOffset:W}},reset:V}}}),w=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:c,rects:u,initialPlacement:m,platform:p,elements:h}=n,{mainAxis:g=!0,crossAxis:w=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:k=!0,...S}=i(t,n);if(null!=(e=c.arrow)&&e.alignmentOffset)return{};const R=a(r),D=a(m)===m,P=await(null==p.isRTL?void 0:p.isRTL(h.floating)),C=v||(D||!k?[y(m)]:function(t){const n=y(t);return[d(t),n,d(n)]}(m));v||"none"===A||C.push(...function(t,n,e,o){const r=l(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(a(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(d)))),i}(m,k,A,P));const F=[m,...C],M=await x(n,S),T=[];let B=(null==(o=c.flip)?void 0:o.overflows)||[];if(g&&T.push(M[R]),w){const t=function(t,n,e){void 0===e&&(e=!1);const o=l(t),r=f(t),i=s(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=y(a)),[a,y(a)]}(r,u,P);T.push(M[t[0]],M[t[1]])}if(B=[...B,{placement:r,overflows:T}],!T.every((t=>t<=0))){var L,O;const t=((null==(L=c.flip)?void 0:L.index)||0)+1,n=F[t];if(n)return{data:{index:t,overflows:B},reset:{placement:n}};let e=null==(O=B.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:O.placement;if(!e)switch(b){case"bestFit":{var E;const t=null==(E=B.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:E[0];t&&(e=t);break}case"initialPlacement":e=m}if(r!==e)return{reset:{placement:e}}}return{}}}},v=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:c,placement:s,middlewareData:f}=n,d=await async function(t,n){const{placement:e,platform:o,elements:r}=t,c=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=a(e),f=l(e),d="y"===u(e),y=["left","top"].includes(s)?-1:1,m=c&&d?-1:1,p=i(n,t);let{mainAxis:h,crossAxis:x,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return f&&"number"==typeof g&&(x="end"===f?-1*g:g),d?{x:x*m,y:h*y}:{x:h*y,y:x*m}}(n,t);return s===(null==(e=f.offset)?void 0:e.placement)&&null!=(o=f.arrow)&&o.alignmentOffset?{}:{x:r+d.x,y:c+d.y,data:{...d,placement:s}}}}},b=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:l}=n,{mainAxis:s=!0,crossAxis:f=!1,limiter:d={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...y}=i(t,n),m={x:e,y:o},p=await x(n,y),h=u(a(l)),g=c(h);let w=m[g],v=m[h];s&&(w=r(w+p["y"===g?"top":"left"],w,w-p["y"===g?"bottom":"right"])),f&&(v=r(v+p["y"===h?"top":"left"],v,v-p["y"===h?"bottom":"right"]));const b=d.fn({...n,[g]:w,[h]:v});return{...b,data:{x:b.x-e,y:b.y-o}}}}};function A(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function k(t){return A(t).getComputedStyle(t)}function S(t){return t instanceof A(t).Node}function R(t){return S(t)?(t.nodeName||"").toLowerCase():""}function D(t){return t instanceof A(t).HTMLElement}function P(t){return t instanceof A(t).Element}function C(t){return"undefined"!=typeof ShadowRoot&&(t instanceof A(t).ShadowRoot||t instanceof ShadowRoot)}function F(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=k(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function M(t){return["table","td","th"].includes(R(t))}function T(t){const n=B(),e=k(t);return"none"!==e.transform||"none"!==e.perspective||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function B(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function L(t){return["html","body","#document"].includes(R(t))}const O=Math.min,E=Math.max,N=Math.round;function j(t){const n=k(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=D(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,l=N(e)!==i||N(o)!==a;return l&&(e=i,o=a),{width:e,height:o,fallback:l}}function H(t){return P(t)?t:t.contextElement}const V={x:1,y:1};function W(t){const n=H(t);if(!D(n))return V;const e=n.getBoundingClientRect(),{width:o,height:r,fallback:i}=j(n);let a=(i?N(e.width):e.width)/o,l=(i?N(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const X={x:0,y:0};function Y(t,n,e){var o,r;if(void 0===n&&(n=!0),!B())return X;const i=t?A(t):window;return!e||n&&e!==i?X:{x:(null==(o=i.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(r=i.visualViewport)?void 0:r.offsetTop)||0}}function _(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=H(t);let a=V;n&&(o?P(o)&&(a=W(o)):a=W(t));const l=Y(i,e,o);let c=(r.left+l.x)/a.x,s=(r.top+l.y)/a.y,u=r.width/a.x,f=r.height/a.y;if(i){const t=A(i),n=o&&P(o)?A(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=W(e),n=e.getBoundingClientRect(),o=getComputedStyle(e);n.x+=(e.clientLeft+parseFloat(o.paddingLeft))*t.x,n.y+=(e.clientTop+parseFloat(o.paddingTop))*t.y,c*=t.x,s*=t.y,u*=t.x,f*=t.y,c+=n.x,s+=n.y,e=A(e).frameElement}}return p({width:u,height:f,x:c,y:s})}function q(t){return((S(t)?t.ownerDocument:t.document)||window.document).documentElement}function z(t){return P(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function G(t){return _(q(t)).left+z(t).scrollLeft}function I(t){if("html"===R(t))return t;const n=t.assignedSlot||t.parentNode||C(t)&&t.host||q(t);return C(n)?n.host:n}function J(t){const n=I(t);return L(n)?n.ownerDocument.body:D(n)&&F(n)?n:J(n)}function K(t,n){var e;void 0===n&&(n=[]);const o=J(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=A(o);return r?n.concat(i,i.visualViewport||[],F(o)?o:[]):n.concat(o,K(o))}function Q(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=A(t),o=q(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=B();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,e);else if("document"===n)o=function(t){const n=q(t),e=z(t),o=t.ownerDocument.body,r=E(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=E(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+G(t);const l=-e.scrollTop;return"rtl"===k(o).direction&&(a+=E(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(q(t));else if(P(n))o=function(t,n){const e=_(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=D(t)?W(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=Y(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return p(o)}function U(t,n){const e=I(t);return!(e===n||!P(e)||L(e))&&("fixed"===k(e).position||U(e,n))}function Z(t,n){return D(t)&&"fixed"!==k(t).position?n?n(t):t.offsetParent:null}function $(t,n){const e=A(t);if(!D(t))return e;let o=Z(t,n);for(;o&&M(o)&&"static"===k(o).position;)o=Z(o,n);return o&&("html"===R(o)||"body"===R(o)&&"static"===k(o).position&&!T(o))?e:o||function(t){let n=I(t);for(;D(n)&&!L(n);){if(T(n))return n;n=I(n)}return null}(t)||e}function tt(t,n,e){const o=D(n),r=q(n),i="fixed"===e,a=_(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if(("body"!==R(n)||F(r))&&(l=z(n)),D(n)){const t=_(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=G(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}const nt={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=K(t).filter((t=>P(t)&&"body"!==R(t))),r=null;const i="fixed"===k(t).position;let a=i?I(t):t;for(;P(a)&&!L(a);){const n=k(a),e=T(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||F(a)&&!e&&U(t,a))?o=o.filter((t=>t!==a)):r=n,a=I(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=Q(n,e,r);return t.top=E(o.top,t.top),t.right=O(o.right,t.right),t.bottom=O(o.bottom,t.bottom),t.left=E(o.left,t.left),t}),Q(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=D(e),i=q(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==R(e)||F(i))&&(a=z(e)),D(e))){const t=_(e);l=W(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+c.x,y:n.y*l.y-a.scrollTop*l.y+c.y}},isElement:P,getDimensions:function(t){return j(t)},getOffsetParent:$,getDocumentElement:q,getScale:W,async getElementRects(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||$,i=this.getDimensions;return{reference:tt(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===k(t).direction},et=(t,n,e)=>{const o=new Map,r={platform:nt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=e,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(n));let s=await a.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=h(s,o,c),d=o,y={},m=0;for(let e=0;e<l.length;e++){const{name:i,fn:p}=l[e],{x,y:g,data:w,reset:v}=await p({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:y,rects:s,platform:a,elements:{reference:t,floating:n}});u=null!=x?x:u,f=null!=g?g:f,y={...y,[i]:{...y[i],...w}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(s=!0===v.rects?await a.getElementRects({reference:t,floating:n,strategy:r}):v.rects),({x:u,y:f}=h(s,d,c))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:y}})(t,n,{...r,platform:i})};export{g as a,et as c,w as f,v as o,b as s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,c as t,h as i,H as n,g as o}from"./p-
|
|
4
|
+
import{r as e,c as t,h as i,H as n,g as o}from"./p-d82b4974.js";import{a,c as r}from"./p-ed995372.js";import{i as s}from"./p-a58bd561.js";const h=class{constructor(i){e(this,i),this.duetEvent=t(this,"duetEvent",7),this.mql=[window.matchMedia(a.replace(/'/g,"")),window.matchMedia(r.replace(/'/g,""))],this.boundMqlFunctions=[],this.scrollbarCheck=()=>{this.leftMoreVisible=this.container.scrollLeft>0,this.rightMoreVisible=this.container.scrollLeft!==this.container.scrollWidth-this.container.clientWidth},this.scrollToActive=()=>{let e;this.element.querySelectorAll("[active]").forEach((t=>{t.active&&(e=t)})),e&&e.offsetLeft&&e.offsetLeft>50&&(this.container.scrollLeft=e.offsetLeft-this.element.getBoundingClientRect().width/2+e.offsetWidth/2)},this.changeLogoSize=()=>{this.logoSize=this.mql[1].matches?"large":"medium"},this.handleLogoClick=e=>{this.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:this.logoHref},originalEvent:e})},this.logoSize="large",this.leftMoreVisible=!1,this.rightMoreVisible=!1,this.theme="",this.logo=!0,this.logoHref=void 0,this.logoLinkAccessibleLabel=void 0,this.accessibleLabel=void 0}componentWillLoad(){s(this)}connectedCallback(){this.changeLogoSize();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}componentDidLoad(){setTimeout((()=>{this.scrollbarCheck(),this.scrollToActive()}),0)}onWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.scrollToActive()}),100)}render(){const e=document.querySelectorAll("duet-slideout").length>0;return i(n,null,i("nav",{class:{"duet-menu-bar":!0,"duet-theme-turva":"turva"===this.theme,"horizontal-nav":e&&!this.logo},"aria-label":this.accessibleLabel},i("div",{class:"top"}),i("div",{class:{container:!0},ref:e=>this.container=e,onScroll:()=>this.scrollbarCheck()},this.logo&&i("div",null,i("duet-logo",{size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick})),i("div",{class:"list center",role:"list"},i("div",{class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),i("slot",{name:"center"}),i("div",{class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),i("div",{class:"list right",role:"list"},i("slot",{name:"right"}))),i("div",{class:"bottom"})))}get element(){return o(this)}};h.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07)}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(225, 227, 230)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:-1px;z-index:1;width:56px;height:49px;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:-1px;z-index:1;width:56px;height:49px;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(0, 41, 77)}.duet-theme-turva .center{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)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 77, 128)}.duet-theme-turva .right{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)}';export{h as duet_menu_bar}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-42101548.system.js","./p-50f4bca2.system.js","./p-224f6c46.system.js","./p-6ef75455.system.js"],(function(e){"use strict";var t,n,o,i,a,s,r,l,c;return{setters:[function(e){t=e.r;n=e.h;o=e.H;i=e.g},function(e){a=e.i},function(e){s=e.a;r=e.c;l=e.d;c=e.g},function(){}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-slideout-lang{display:flex;gap:20px;align-items:center;justify-content:flex-start;width:min-content}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:15%;right:-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:16px;font-weight:600;line-height:150%;color:rgb(0, 41, 77);content:"|"}.duet-theme-turva ::slotted(:not(:last-child))::after{color:rgb(23, 28, 58)}';var p=e("duet_slideout_lang",function(){function e(e){t(this,e);this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"};this.language=s();this.theme=""}e.prototype.componentWillLoad=function(){a(this)};e.prototype.connectedCallback=function(){r(this)};e.prototype.disconnectedCallback=function(){l(this)};e.prototype.render=function(){var e=c(this.chooseLangObject);return n(o,null,n("div",{class:"duet-slideout-lang",role:"group","aria-label":e},n("duet-icon",{name:"navigation-language",margin:"none",color:"secondary"}),n("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());p.style=u}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as t,h as e,F as a,g as i}from"./p-
|
|
4
|
+
import{r as t,h as e,F as a,g as i}from"./p-d82b4974.js";import{s}from"./p-03f6f09a.js";import{i as r}from"./p-a58bd561.js";import{c as o}from"./p-5e59e970.js";import{s as n,u as d}from"./p-3624bad1.js";import{a as p,g as l,c as u,d as h}from"./p-2e36d5bf.js";import"./p-0e052642.js";const b=2*parseFloat(s)*16,m=class{constructor(e){t(this,e),this.isTicking=!1,this.expandableId=o("DuetTray"),this.animationLoop=()=>{this.hiddenState=window.pageYOffset<b,this.isTicking=!1},this.toggleExpandable=t=>{t.preventDefault(),this.expanded=!this.expanded},this.expanded=!1,this.hiddenState=!1,this.language=p(),this.accessibleCloseLabelDefaults={fi:"Sulje",en:"Close",sv:"Stäng"},this.accessibleCloseLabel=l(this.accessibleCloseLabelDefaults,this.language),this.accessibleOpenLabelDefaults={fi:"Avaa",en:"Open",sv:"Öppna"},this.accessibleOpenLabel=l(this.accessibleOpenLabelDefaults,this.language),this.theme="",this.active=!1,this.autoHide=!0,this.responsive=!0}componentWillLoad(){r(this),this.hasAdditionalContent=!!this.element.querySelector("[slot='additional']")}connectedCallback(){u(this,[{prop:"accessibleOpenLabel",defaults:"accessibleOpenLabelDefaults"},{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"}]),n(this)}disconnectedCallback(){h(this),d(this)}getFrame(){!this.isTicking&&this.autoHide&&this.active&&(requestAnimationFrame(this.animationLoop),this.isTicking=!0)}handleBodyClick(t){this.expanded&&(this.expanded=this.element.contains(t.target))}render(){return e("div",{class:{"duet-tray":!0,"duet-tray-is-active":this.active,"duet-tray-is-hidden":this.hiddenState,"duet-tray-is-responsive":this.responsive,"duet-theme-turva":"turva"===this.theme,"duet-tray-is-expandable":this.hasAdditionalContent}},e("div",{class:"duet-tray-default-content",role:"status"},e("slot",null)),this.hasAdditionalContent&&e(a,null,e("button",{"aria-expanded":this.expanded?"true":"false","aria-controls":this.expandableId,onClick:t=>this.toggleExpandable(t),class:{"duet-tray-button":!0,"duet-tray-is-expanded":this.expanded}},e("duet-icon",{name:"action-arrow-down",size:"small",color:"currentColor",margin:"none"}),e("duet-visually-hidden",null,this.expanded?this.accessibleCloseLabel:this.accessibleOpenLabel)),e("div",{id:this.expandableId,class:{"duet-tray-expandable":!0,active:this.expanded}},e("div",{class:"duet-tray-expandable-content"},e("slot",{name:"additional"})))))}get element(){return i(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;width:100%}.duet-tray{position:fixed;top:4rem;right:0;left:0;z-index:399;display:flex;flex-direction:column;max-height:calc(100% - 8rem);padding:16px 20px 16px 24px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);visibility:hidden;background:rgb(243, 249, 252);border-bottom:1px solid rgb(225, 227, 230);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:opacity 600ms ease, visibility 600ms ease, transform 600ms ease;transform:translateY(-4rem)}@media (min-width: 62em){.duet-tray{padding:16px 36px}}@media (min-width: 106.25em){.duet-tray{padding:16px 52px 16px 60px}}.duet-tray:focus{outline:0}:host(.user-is-tabbing) .duet-tray:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-tray.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tray.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);background:rgb(245, 245, 247);border-color:rgb(228, 228, 230)}.duet-tray.duet-tray-is-active{visibility:visible;opacity:1;transform:translateY(0)}.duet-tray.duet-tray-is-hidden{visibility:hidden;opacity:0;transform:translateY(-4rem)}@media (min-width: 62em){.duet-tray.duet-tray-is-responsive{display:none !important}}.duet-tray.duet-tray-is-expandable{padding-right:66px}@media (min-width: 62em){.duet-tray.duet-tray-is-expandable{padding-right:78px}}@media (min-width: 106.25em){.duet-tray.duet-tray-is-expandable{padding-right:94px}}.duet-tray-expandable{position:relative;z-index:100;width:calc(100% + 46px);max-height:0;overflow-y:auto;visibility:hidden;opacity:0;transition:opacity 600ms ease, visibility 600ms ease, max-height 600ms ease;scrollbar-width:none}.duet-tray-expandable::-webkit-scrollbar{display:none}.duet-tray-expandable.active{max-height:500px;visibility:visible;opacity:1}.duet-tray-expandable-content{width:100%;margin-top:16px;border-top:1px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tray-expandable-content{border-color:rgb(228, 228, 230)}.duet-tray-button{-webkit-user-select:none;user-select:none;padding:20px !important;position:absolute;top:-2px;right:0;z-index:200;color:rgb(0, 41, 77);text-align:center;cursor:pointer;border-radius:4px;transition:transform 300ms ease;-webkit-tap-highlight-color:transparent}@media (min-width: 62em){.duet-tray-button{margin-right:16px}}@media (min-width: 106.25em){.duet-tray-button{margin-right:36px}}.duet-theme-turva .duet-tray-button{color:rgb(23, 28, 58)}.duet-tray-button.duet-tray-is-expanded{transform:rotate(-180deg)}.duet-tray-button:focus{outline:0}:host(.user-is-tabbing) .duet-tray-button: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-tray-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tray-button:active{box-shadow:none;opacity:0.75}';export{m as duet_tray}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-42101548.system.js","./p-b864159a.system.js"],(function(t){"use strict";var e,i,d,a,n;return{setters:[function(t){e=t.r;i=t.h;d=t.H;a=t.g},function(t){n=t.i}],execute:function(){var o="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (max-width: 20.5em){.duet-layout.padding-xxx-small{padding:0}}@media (max-width: 22.5em){.duet-layout.padding-xx-small{padding:0}}@media (max-width: 35.9375em){.duet-layout.padding-x-small{padding:0}}@media (min-width: 36em){.duet-layout.padding-small{padding:0}}@media (min-width: 48em){.duet-layout.padding-medium{padding:0}}@media (min-width: 62em){.duet-layout.padding-large{padding:0}}@media (min-width: 64.0625em){.duet-layout.padding-x-large{padding:0}}@media (min-width: 76.25em){.duet-layout.padding-xx-large{padding:0}}@media (min-width: 106.25em){.duet-layout.padding-xxx-large{padding:0}}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-layout-has-top{margin-top:0}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout.duet-center{display:flex;align-items:center;justify-content:center;width:100%;max-width:888px}@media (min-width: 36em){.duet-layout.duet-center{padding:0 48px}}@media (min-width: 48em){.duet-layout.duet-center{padding:0 72px}}@media (min-width: 62em){.duet-layout.duet-center{width:100%}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main,.duet-sidebar,.duet-layout-top,.duet-layout-bottom{display:block;width:100%}.duet-layout-top{position:relative;display:block;width:100%;margin:72px auto 0}.duet-layout-top.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-top .duet-layout-top-wrapper{padding:0 20px;margin:0 auto}@media (min-width: 36em){.duet-layout-top .duet-layout-top-wrapper{padding:0 28px}}@media (min-width: 62em){.duet-layout-top .duet-layout-top-wrapper{padding:0 56px}}@media (min-width: 76.25em){.duet-layout-top .duet-layout-top-wrapper{max-width:1110px;padding:0}}.duet-center .duet-layout-top-wrapper{max-width:888px}@media (min-width: 36em){.duet-center .duet-layout-top-wrapper{padding:0 48px}}@media (min-width: 48em){.duet-center .duet-layout-top-wrapper{padding:0 72px}}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}@media (min-width: 62em){.duet-sidebar{min-width:256px;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container{width:auto;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container.has-tabs{margin-top:89px}}@media (min-width: 62em){.duet-sidebar-container.sticky{position:sticky}.duet-sidebar-container.sticky.with-links{top:calc(3rem + 20px)}.duet-sidebar-container.sticky.without-links{top:calc(4rem + 20px)}}";var u=t("duet_layout",function(){function t(t){e(this,t);this.hasSidebar=false;this.hasTop=false;this.sticky=false;this.margin="auto";this.stickyDistance="with-links";this.center=false;this.tabs=false;this.middle=false;this.paddingBreakpoint=undefined}t.prototype.componentWillLoad=function(){this.hasSidebar=!!this.element.querySelector("[slot='sidebar']");this.hasTop=!!this.element.querySelector("[slot='top']");if(!this.element.querySelector("[slot='main']")){console.warn("[DUET WARNING]: Nothing passed to <duet-layout> named slots. Please use one of 'main', 'sidebar' or 'top' to display contents.")}};t.prototype.render=function(){var t,e;return i(d,{class:{"duet-middle":this.middle,"duet-ie":n()}},this.hasTop&&i("div",{class:{"duet-layout-top":true,"duet-m-0":this.margin==="none","duet-center":this.center}},i("div",{class:"duet-layout-top-wrapper"},i("slot",{name:"top"}))),i("div",{class:(t={"duet-layout":true,"duet-layout-has-top":this.hasTop,"has-sidebar":this.hasSidebar,"duet-m-0":this.margin==="none","duet-center":this.center},t["padding-".concat(this.paddingBreakpoint)]=!!this.paddingBreakpoint,t)},i("main",{class:"duet-main"},i("slot",{name:"main"})),this.hasSidebar&&i("aside",{class:"duet-sidebar"},i("div",{class:(e={"duet-sidebar-container":true,"has-tabs":this.tabs,sticky:this.sticky},e[this.stickyDistance]=this.sticky,e)},i("slot",{name:"sidebar"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());u.style=o}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,i,e,n){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,o){function r(t){try{a(n.next(t))}catch(t){o(t)}}function u(t){try{a(n["throw"](t))}catch(t){o(t)}}function a(t){t.done?e(t.value):s(t.value).then(r,u)}a((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,r;return r={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function u(t){return function(i){return a([t,i])}}function a(u){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,u[0]&&(e=0)),e)try{if(n=1,s&&(o=u[0]&2?s["return"]:u[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,u[1])).done)return o;if(s=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;s=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1];o=u;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(u);break}if(o[2])e.ops.pop();e.trys.pop();continue}u=i.call(t,e)}catch(t){u=[6,t];s=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-
|
|
4
|
+
*/System.register(["./p-42101548.system.js","./p-650a419d.system.js","./p-e639b9ee.system.js","./p-50f4bca2.system.js","./p-e6b5a1c7.system.js","./p-b2716337.system.js","./p-224f6c46.system.js","./p-6ef75455.system.js"],(function(t){"use strict";var i,e,n,s,o,r,u,a,h,c,f,l,p,d,b,m,v;return{setters:[function(t){i=t.r;e=t.h;n=t.H;s=t.g},function(t){o=t.m;r=t.a},function(t){u=t.c;a=t.f;h=t.s;c=t.a},function(t){f=t.i},function(t){l=t.c},function(t){p=t.f},function(t){d=t.a;b=t.g;m=t.c;v=t.d},function(){}],execute:function(){var g="*.sc-duet-tooltip,*.sc-duet-tooltip::after,*.sc-duet-tooltip::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-tooltip-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}duet-tooltip-button.sc-duet-tooltip{position:relative}duet-tooltip-popup.sc-duet-tooltip{position:absolute}";var w=t("duet_tooltip",function(){function t(t){var e=this;i(this,t);this.mql=[window.matchMedia(o.replace(/'/g,"")),window.matchMedia(r.replace(/'/g,""))];this.tooltipId=l("DuetTooltip");this.aboutString={fi:"aiheesta",en:"about",sv:"om"};this.openTooltip=function(){e.active=true;setTimeout((function(){e.contentEl.focus({preventScroll:true});e.buttonActive=true}),200)};this.closeTooltip=function(t){if(t===void 0){t=false}e.active=false;if(t){setTimeout((function(){e.buttonEl.setFocus({preventScroll:true})}),200)}setTimeout((function(){e.buttonActive=false}),201);setTimeout((function(){e.updatePlacement()}),200)};this.toggleOpen=function(){e.active?e.closeTooltip():e.openTooltip()};this.updatePlacement=function(){return __awaiter(e,void 0,void 0,(function(){var t,i,e,n,s;return __generator(this,(function(o){switch(o.label){case 0:e=true;if(this.breakpoint==="large"&&!this.mql[1].matches){e=false}else if(this.breakpoint==="medium"&&!this.mql[0].matches){e=false}n=e?"top-start":"top-end";if(this.direction==="left"){n="top-end"}else if(this.direction==="right"){n="top-start"}return[4,u(this.buttonEl,this.popupElement,{placement:n,middleware:[a(),h({padding:5}),c({element:this.arrowEl})]})];case 1:s=o.sent();this.tooltipY=s.y;this.tooltipX=s.x;this.placement=s.placement;this.arrowY=(t=s.middlewareData.arrow)===null||t===void 0?void 0:t.y;this.arrowX=(i=s.middlewareData.arrow)===null||i===void 0?void 0:i.x;return[2]}}))}))};this.placement="bottom";this.tooltipY=undefined;this.tooltipX=undefined;this.arrowX=undefined;this.arrowY=undefined;this.buttonActive=undefined;this.theme="";this.language=d();this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"};this.accessibleLabel=b(this.accessibleLabelDefault,this.language);this.accessibleAboutLabel=undefined;this.accessibleInputLabel=undefined;this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"};this.accessibleCloseLabel=b(this.accessibleCloseLabelDefault,this.language);this.label="";this.breakpoint="medium";this.direction="auto";this.positionVertical="0";this.positionHorizontal="0";this.active=false}t.prototype.componentWillLoad=function(){f(this);this.buttonActive=this.active};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,this.popupElement.getArrowElement()];case 1:t.arrowEl=e.sent();i=this;return[4,this.popupElement.getContentElement()];case 2:i.contentEl=e.sent();this.updatePlacement();if(this.active){this.openTooltip()}this.intersectionObserver=new IntersectionObserver(this.updatePlacement,{root:document.body});this.intersectionObserver.observe(this.element);return[2]}}))}))};t.prototype.connectedCallback=function(){m(this,[{prop:"accessibleLabel",defaults:"accessibleLabelDefault"},{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefault"}])};t.prototype.disconnectedCallback=function(){v(this)};t.prototype.onScroll=function(){var t=this;clearTimeout(this.scrollTimer);this.scrollTimer=setTimeout((function(){if(t.active){t.updatePlacement()}}),100)};t.prototype.handleWindowResize=function(){var t=this;clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout((function(){t.updatePlacement()}),100)};t.prototype.handleDocumentClick=function(t){var i=this;if(!this.active){return}var e=t.composedPath();var n=e.every((function(t){return t!==i.element&&t!==i.contentEl}));if(n){this.closeTooltip()}};t.prototype.handleKeyDown=function(t){if(this.active&&p(t)){this.closeTooltip(true)}};t.prototype.handlePopupClose=function(){if(this.active){this.closeTooltip(true)}};t.prototype.handleActiveChange=function(t){return __awaiter(this,void 0,void 0,(function(){var i=this;return __generator(this,(function(e){if(t){setTimeout((function(){return i.updatePlacement()}),10)}else{setTimeout((function(){return i.updatePlacement()}),300)}return[2]}))}))};t.prototype.render=function(){var t=this;var i={transform:"translateY(".concat(this.positionVertical,") translateX(").concat(this.positionHorizontal,")"),zIndex:this.active?"201":""};var s={position:"relative",overflow:this.active?"visible":"hidden"};var o={top:"".concat(this.tooltipY,"px"),left:"".concat(this.tooltipX,"px"),display:"block","pointer-events":this.active?"auto":"none"};var r={top:this.arrowY?"".concat(this.arrowY,"px"):undefined,left:this.arrowX?"".concat(this.arrowX,"px"):undefined};return e(n,{style:i},e("duet-tooltip-button",{ref:function(i){return t.buttonEl=i},active:this.buttonActive,tooltipId:this.tooltipId,label:this.label,accessibleLabel:this.accessibleInputLabel&&"".concat(this.accessibleInputLabel,", ").concat(this.accessibleLabel)||this.accessibleAboutLabel&&"".concat(this.accessibleLabel," ").concat(this.aboutString[this.language]," ").concat(this.accessibleAboutLabel)||this.accessibleLabel,onClick:this.toggleOpen,theme:this.theme}),e("div",{style:s},e("duet-tooltip-popup",{ref:function(i){return t.popupElement=i},active:this.active,tooltipId:this.tooltipId,arrowStyles:r,style:o,placement:this.placement,accessibleCloseLabel:this.accessibleCloseLabel,theme:this.theme},e("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["handleActiveChange"]}},enumerable:false,configurable:true});return t}());w.style=g}}}));
|