@duetds/components 8.0.3 → 8.0.5
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 +152 -24
- package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
- 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 +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-callout.cjs.entry.js +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +4 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- 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 +30 -6
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
- 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 +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -1
- 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 +59 -0
- package/lib/cjs/duet-footer.cjs.entry.js +1 -1
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-input_2.cjs.entry.js +2 -2
- 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 +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar.cjs.entry.js +2 -2
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- 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 +1 -1
- package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-popup-menu.cjs.entry.js +1 -1
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-promo-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +5 -2
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -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 +4 -2
- 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 +13 -3
- package/lib/cjs/duet-slideout.cjs.entry.js +24 -5
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +3 -3
- package/lib/cjs/duet-textarea.cjs.entry.js +2 -2
- 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-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 +1 -1
- package/lib/cjs/duet-tray.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-04f168fd.js → focus-utils-9b46865d.js} +1 -1
- package/lib/cjs/{index-b9ee6ca5.js → index-9e2ea961.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/collection/collection-manifest.json +1 -0
- package/lib/collection/components/duet-choice/duet-choice.js +72 -9
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +40 -1
- package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.css +22 -0
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +189 -0
- package/lib/collection/components/duet-input/duet-input.js +1 -1
- package/lib/collection/components/duet-link/duet-link.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +2 -0
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +40 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +51 -1
- package/lib/collection/components/duet-slideout/duet-slideout.js +27 -4
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +11 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +0 -20
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +1 -1
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +5 -1
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +0 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.a11y.e2e.js +2 -6
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +1 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +1 -1
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +4 -4
- package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
- package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +3 -3
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +3 -3
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +2 -2
- package/lib/dist-custom-elements/duet-choice-group.js +15 -10
- package/lib/dist-custom-elements/duet-choice.js +31 -8
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- package/lib/dist-custom-elements/duet-combobox.js +5 -5
- 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 +12 -12
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +7 -7
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.d.ts +11 -0
- package/lib/dist-custom-elements/duet-file-chooser.js +85 -0
- package/lib/dist-custom-elements/duet-footer.js +4 -4
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +9 -9
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +3 -3
- package/lib/dist-custom-elements/duet-modal.js +7 -7
- package/lib/dist-custom-elements/duet-multiselect.js +10 -10
- 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 +13 -13
- 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 +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +3 -3
- package/lib/dist-custom-elements/duet-radio-group.js +15 -10
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +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 +10 -6
- 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 +13 -3
- package/lib/dist-custom-elements/duet-slideout.js +25 -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 +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +4 -4
- package/lib/dist-custom-elements/duet-tab-group.js +14 -15
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +11 -11
- 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-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 +3 -3
- 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 +18 -18
- 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-7f09da03.js → p-08b3f943.js} +5 -5
- package/lib/dist-custom-elements/{p-46d172ad.js → p-105af500.js} +8 -8
- package/lib/dist-custom-elements/{p-647197d2.js → p-1296f08a.js} +11 -11
- package/lib/dist-custom-elements/{p-1a0d1104.js → p-1e625a72.js} +6 -3
- package/lib/dist-custom-elements/{p-1b63a427.js → p-219d974b.js} +1 -1
- package/lib/dist-custom-elements/{p-a6a02d26.js → p-2434057e.js} +1 -1
- package/lib/dist-custom-elements/{p-90901592.js → p-24a51286.js} +1 -1
- package/lib/dist-custom-elements/{p-77dc878e.js → p-3a63e916.js} +4 -4
- package/lib/dist-custom-elements/{p-7b7d919c.js → p-3f6372e1.js} +5 -5
- package/lib/dist-custom-elements/{p-e31a9266.js → p-40f73dc7.js} +5 -5
- package/lib/dist-custom-elements/{p-e6ce939c.js → p-4469d73c.js} +1 -1
- package/lib/dist-custom-elements/{p-73858765.js → p-49a51210.js} +3 -3
- package/lib/dist-custom-elements/{p-960c3c51.js → p-650d5990.js} +1 -1
- package/lib/dist-custom-elements/{p-8ba450f0.js → p-670570b2.js} +1 -1
- package/lib/dist-custom-elements/{p-85817780.js → p-701d0f44.js} +1 -1
- package/lib/dist-custom-elements/{p-d547ac90.js → p-7855af1f.js} +2 -2
- package/lib/dist-custom-elements/{p-fc76a9f3.js → p-8290757e.js} +1 -1
- package/lib/dist-custom-elements/{p-423d3f0d.js → p-8350edff.js} +3 -3
- package/lib/dist-custom-elements/{p-b1795ede.js → p-8a760b84.js} +1 -1
- package/lib/dist-custom-elements/{p-a7c46306.js → p-9d8865d0.js} +1 -1
- package/lib/dist-custom-elements/{p-60f6b2e8.js → p-a848925d.js} +2 -2
- package/lib/dist-custom-elements/{p-6c228574.js → p-a90d09f3.js} +2 -2
- package/lib/dist-custom-elements/{p-8c68da59.js → p-aa5fdf1c.js} +1 -1
- package/lib/dist-custom-elements/{p-16b97666.js → p-ae0811df.js} +2 -2
- package/lib/dist-custom-elements/{p-970d143f.js → p-ae75bc08.js} +1 -1
- package/lib/dist-custom-elements/{p-71f948ca.js → p-b0ed56f3.js} +1 -1
- package/lib/dist-custom-elements/{p-f12d5ad9.js → p-b996e85b.js} +1 -1
- package/lib/dist-custom-elements/{p-27c98907.js → p-bafa44de.js} +10 -10
- package/lib/dist-custom-elements/{p-ebfb1ccd.js → p-bde48422.js} +1 -1
- package/lib/dist-custom-elements/{p-c230fe39.js → p-c137ffb9.js} +2 -2
- package/lib/dist-custom-elements/{p-84065d73.js → p-cb0eec72.js} +1 -1
- package/lib/dist-custom-elements/{p-e3b1a969.js → p-d3ee5c39.js} +1 -1
- package/lib/dist-custom-elements/{p-a62138f2.js → p-d7f8cd01.js} +1 -1
- package/lib/dist-custom-elements/{p-99b8d96d.js → p-e558d310.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-62839e24.entry.js → p-00b1b87e.entry.js} +1 -1
- package/lib/duet/{p-0b59eb11.entry.js → p-035ed3a5.entry.js} +1 -1
- package/lib/duet/{p-b9434c17.entry.js → p-075d23d4.entry.js} +1 -1
- package/lib/duet/{p-ce1d649d.entry.js → p-079a4f75.entry.js} +1 -1
- package/lib/duet/p-080af406.entry.js +4 -0
- package/lib/duet/{p-d2f6423e.system.entry.js → p-087aeef6.system.entry.js} +1 -1
- package/lib/duet/p-0a929975.system.entry.js +4 -0
- package/lib/duet/{p-a8a32775.entry.js → p-0b479ca3.entry.js} +1 -1
- package/lib/duet/{p-6c405b4d.system.entry.js → p-0beab734.system.entry.js} +1 -1
- package/lib/duet/{p-fbefd879.entry.js → p-0c2260c1.entry.js} +1 -1
- package/lib/duet/{p-f7f200b1.system.entry.js → p-0f810b17.system.entry.js} +1 -1
- package/lib/duet/{p-c918ea31.entry.js → p-0ff971c3.entry.js} +1 -1
- package/lib/duet/{p-397aa011.system.entry.js → p-1088a724.system.entry.js} +1 -1
- package/lib/duet/{p-64bc0173.entry.js → p-11c0868f.entry.js} +1 -1
- package/lib/duet/{p-0d22fa04.entry.js → p-12b77122.entry.js} +1 -1
- package/lib/duet/{p-01bd8000.entry.js → p-162d843a.entry.js} +1 -1
- package/lib/duet/{p-7751209d.entry.js → p-196d661f.entry.js} +1 -1
- package/lib/duet/{p-74d79e97.entry.js → p-1a7b4937.entry.js} +1 -1
- package/lib/duet/{p-97ccb6b2.entry.js → p-1c2a80cb.entry.js} +1 -1
- package/lib/duet/{p-a3fd3b97.entry.js → p-20ac2a2d.entry.js} +1 -1
- package/lib/duet/{p-ef8efbf5.entry.js → p-21665b49.entry.js} +1 -1
- package/lib/duet/{p-971fe383.system.entry.js → p-2176c975.system.entry.js} +1 -1
- package/lib/duet/{p-c7b04440.system.js → p-227a98c3.system.js} +1 -1
- package/lib/duet/p-24a81bf6.system.entry.js +4 -0
- package/lib/duet/{p-39bd9bac.entry.js → p-24f7cd35.entry.js} +1 -1
- package/lib/duet/{p-ff3660d4.system.entry.js → p-27db4f60.system.entry.js} +1 -1
- package/lib/duet/{p-55eb8c7c.system.entry.js → p-2869dc54.system.entry.js} +1 -1
- package/lib/duet/{p-58e07a25.entry.js → p-28d09818.entry.js} +1 -1
- package/lib/duet/{p-a9a50440.system.entry.js → p-29800d01.system.entry.js} +1 -1
- package/lib/duet/p-29d7df6e.entry.js +4 -0
- package/lib/duet/{p-1fccc372.system.entry.js → p-2a0f3958.system.entry.js} +1 -1
- package/lib/duet/{p-706cd2e1.system.entry.js → p-2afb3d9f.system.entry.js} +1 -1
- package/lib/duet/{p-a43c1a0f.entry.js → p-2c971ea1.entry.js} +1 -1
- package/lib/duet/{p-f04338dd.system.entry.js → p-2cc074b2.system.entry.js} +1 -1
- package/lib/duet/{p-a494f7d2.system.entry.js → p-2f8c95b7.system.entry.js} +1 -1
- package/lib/duet/{p-638f7d0e.entry.js → p-306c56d8.entry.js} +1 -1
- package/lib/duet/{p-c7303568.system.entry.js → p-3158cd64.system.entry.js} +1 -1
- package/lib/duet/{p-2e719260.entry.js → p-3247b913.entry.js} +1 -1
- package/lib/duet/p-34c59882.entry.js +4 -0
- package/lib/duet/{p-603a7942.system.entry.js → p-35c39ed3.system.entry.js} +1 -1
- package/lib/duet/{p-3b06e609.system.entry.js → p-35fff67f.system.entry.js} +1 -1
- package/lib/duet/{p-d22d1465.entry.js → p-367d5eb9.entry.js} +1 -1
- package/lib/duet/{p-8f191365.system.entry.js → p-3973c640.system.entry.js} +1 -1
- package/lib/duet/{p-2e6d11c7.system.entry.js → p-3cbbc148.system.entry.js} +1 -1
- package/lib/duet/{p-a923e368.system.entry.js → p-3e6ef3dd.system.entry.js} +1 -1
- package/lib/duet/{p-546d7868.entry.js → p-40b64c0f.entry.js} +1 -1
- package/lib/duet/{p-5317f4fb.entry.js → p-41ad5fe4.entry.js} +1 -1
- package/lib/duet/{p-915e638f.system.entry.js → p-424f29fc.system.entry.js} +1 -1
- package/lib/duet/{p-c0e476fd.system.entry.js → p-453ec42e.system.entry.js} +1 -1
- package/lib/duet/{p-f448c5da.system.entry.js → p-487fd6b0.system.entry.js} +1 -1
- package/lib/duet/{p-cc104f41.system.entry.js → p-49a7c9ae.system.entry.js} +1 -1
- package/lib/duet/{p-ae3622ce.system.entry.js → p-49c560a4.system.entry.js} +1 -1
- package/lib/duet/{p-7a2b0683.system.entry.js → p-4b0cee30.system.entry.js} +1 -1
- package/lib/duet/{p-8ee612f4.entry.js → p-50f395c1.entry.js} +1 -1
- package/lib/duet/{p-cc434423.system.entry.js → p-51a3bd98.system.entry.js} +1 -1
- package/lib/duet/{p-9ff3ef1a.system.entry.js → p-523b6afe.system.entry.js} +1 -1
- package/lib/duet/{p-3b11f97a.entry.js → p-53490e72.entry.js} +1 -1
- package/lib/duet/{p-436745f1.system.entry.js → p-5390af39.system.entry.js} +1 -1
- package/lib/duet/{p-2ea486ae.system.entry.js → p-5ddd8a91.system.entry.js} +1 -1
- package/lib/duet/{p-63370211.entry.js → p-5e6d0fba.entry.js} +1 -1
- package/lib/duet/{p-14c30d34.entry.js → p-602f1983.entry.js} +1 -1
- package/lib/duet/p-60e4c89d.entry.js +4 -0
- package/lib/duet/{p-1910a63b.system.entry.js → p-60ed1a37.system.entry.js} +1 -1
- package/lib/duet/{p-4901f740.system.entry.js → p-61755646.system.entry.js} +1 -1
- package/lib/duet/{p-30eadd8b.system.entry.js → p-61e03237.system.entry.js} +1 -1
- package/lib/duet/{p-4f2f039c.system.entry.js → p-61e50943.system.entry.js} +1 -1
- package/lib/duet/{p-9594405f.entry.js → p-6278cc44.entry.js} +1 -1
- package/lib/duet/{p-9d445004.entry.js → p-62cc70a1.entry.js} +1 -1
- package/lib/duet/{p-e90a1481.entry.js → p-63635163.entry.js} +1 -1
- package/lib/duet/{p-2126a190.system.entry.js → p-6376d683.system.entry.js} +1 -1
- package/lib/duet/{p-569be9eb.system.entry.js → p-63e91537.system.entry.js} +1 -1
- package/lib/duet/{p-5fe520fd.entry.js → p-659e1bf0.entry.js} +1 -1
- package/lib/duet/{p-78408872.system.entry.js → p-65c96206.system.entry.js} +2 -2
- package/lib/duet/{p-db8b2380.system.entry.js → p-6adfb9eb.system.entry.js} +1 -1
- package/lib/duet/{p-d1914efd.system.entry.js → p-6b66a45f.system.entry.js} +1 -1
- package/lib/duet/{p-cb1cf88a.system.entry.js → p-6ba4b5b4.system.entry.js} +1 -1
- package/lib/duet/{p-81829412.system.entry.js → p-6c665829.system.entry.js} +1 -1
- package/lib/duet/{p-115e5a74.js → p-6d7578b9.js} +1 -1
- package/lib/duet/{p-2b419553.system.entry.js → p-6e3f96c8.system.entry.js} +1 -1
- package/lib/duet/{p-dc059577.system.js → p-71818a07.system.js} +1 -1
- package/lib/duet/{p-0bb30bf2.system.entry.js → p-726f5b13.system.entry.js} +1 -1
- package/lib/duet/{p-71d6578b.system.entry.js → p-738e4a30.system.entry.js} +1 -1
- package/lib/duet/{p-9ff169a8.entry.js → p-756aabe3.entry.js} +1 -1
- package/lib/duet/{p-c409a1dc.entry.js → p-757d8ba4.entry.js} +1 -1
- package/lib/duet/{p-c99cc796.system.entry.js → p-76dcd997.system.entry.js} +1 -1
- package/lib/duet/{p-e5a4b88c.system.entry.js → p-778f42fe.system.entry.js} +1 -1
- package/lib/duet/{p-dbf5bd13.entry.js → p-77e6559b.entry.js} +1 -1
- package/lib/duet/{p-d9b3b34a.system.entry.js → p-78a100ed.system.entry.js} +1 -1
- package/lib/duet/p-7aa9fffd.entry.js +4 -0
- package/lib/duet/{p-755dd4ac.system.entry.js → p-7b411c65.system.entry.js} +1 -1
- package/lib/duet/{p-ae652505.entry.js → p-7b5cadc7.entry.js} +1 -1
- package/lib/duet/{p-0c708a6b.system.entry.js → p-7ef0a13e.system.entry.js} +1 -1
- package/lib/duet/{p-736fce63.system.entry.js → p-83cfac28.system.entry.js} +1 -1
- package/lib/duet/p-852dc293.entry.js +4 -0
- package/lib/duet/p-8609ea8a.system.entry.js +4 -0
- package/lib/duet/{p-90c87945.entry.js → p-88e554c9.entry.js} +1 -1
- package/lib/duet/{p-47b62443.entry.js → p-89041ec3.entry.js} +1 -1
- package/lib/duet/{p-dfb08a79.entry.js → p-893c30c7.entry.js} +1 -1
- package/lib/duet/{p-6ed45a15.system.entry.js → p-8a1790be.system.entry.js} +1 -1
- package/lib/duet/p-8a954fe5.system.entry.js +4 -0
- package/lib/duet/{p-c8e267bc.entry.js → p-8b7f5890.entry.js} +1 -1
- package/lib/duet/{p-8a3cca2a.system.entry.js → p-8bcc2542.system.entry.js} +1 -1
- package/lib/duet/p-8d3f98b7.entry.js +4 -0
- package/lib/duet/{p-5f914bd7.system.entry.js → p-8e13850e.system.entry.js} +1 -1
- package/lib/duet/{p-d325c3d3.system.entry.js → p-9160fca2.system.entry.js} +1 -1
- package/lib/duet/{p-24c831ec.system.entry.js → p-980da7ef.system.entry.js} +1 -1
- package/lib/duet/{p-0c3e3891.system.entry.js → p-99192406.system.entry.js} +1 -1
- package/lib/duet/{p-3ec8ee39.entry.js → p-9b6f7d9b.entry.js} +1 -1
- package/lib/duet/{p-32ee4f34.entry.js → p-9d1267d8.entry.js} +1 -1
- package/lib/duet/{p-140f3e19.entry.js → p-9e41e5a6.entry.js} +1 -1
- package/lib/duet/{p-c6e4ebf0.entry.js → p-9e64ef8e.entry.js} +1 -1
- package/lib/duet/{p-08bcd57d.system.entry.js → p-a1780035.system.entry.js} +1 -1
- package/lib/duet/{p-f7c032a2.entry.js → p-a33aea42.entry.js} +1 -1
- package/lib/duet/{p-8db7ccfd.entry.js → p-a3c1b8ea.entry.js} +1 -1
- package/lib/duet/p-a7962854.entry.js +4 -0
- package/lib/duet/{p-396e0025.entry.js → p-a94e261a.entry.js} +1 -1
- package/lib/duet/{p-0a6ee84e.entry.js → p-a9f62bc8.entry.js} +1 -1
- package/lib/duet/{p-5fed0e82.entry.js → p-ac19c76a.entry.js} +1 -1
- package/lib/duet/{p-93a9d03f.entry.js → p-ad0f3fb7.entry.js} +1 -1
- package/lib/duet/{p-dbbd3a11.system.entry.js → p-b033b5a6.system.entry.js} +1 -1
- package/lib/duet/p-b10e72ff.system.js +4 -0
- package/lib/duet/{p-1bbf5a2c.entry.js → p-b188d4e3.entry.js} +1 -1
- package/lib/duet/{p-851868b5.system.entry.js → p-b1c635b8.system.entry.js} +1 -1
- package/lib/duet/{p-41363488.js → p-b8d12bc2.js} +1 -1
- package/lib/duet/{p-70c4fd04.entry.js → p-bab934fc.entry.js} +1 -1
- package/lib/duet/{p-42e2d141.entry.js → p-bb56723c.entry.js} +1 -1
- package/lib/duet/p-bcb319e6.system.entry.js +4 -0
- package/lib/duet/{p-8010d152.entry.js → p-c0442e1a.entry.js} +1 -1
- package/lib/duet/{p-7e5e362d.system.entry.js → p-c33904be.system.entry.js} +1 -1
- package/lib/duet/{p-664e856a.entry.js → p-c62e9ef9.entry.js} +1 -1
- package/lib/duet/p-c827fd02.entry.js +4 -0
- package/lib/duet/{p-f765b6a6.system.entry.js → p-c8a46cb9.system.entry.js} +1 -1
- package/lib/duet/{p-0c4459c0.system.entry.js → p-c9c7f469.system.entry.js} +1 -1
- package/lib/duet/p-cb9548e8.entry.js +4 -0
- package/lib/duet/{p-d39e2edb.system.entry.js → p-cc8908a2.system.entry.js} +2 -2
- package/lib/duet/{p-1d0d7d5d.entry.js → p-ccc4e7bb.entry.js} +1 -1
- package/lib/duet/{p-11e4884c.system.entry.js → p-cf480e2e.system.entry.js} +1 -1
- package/lib/duet/{p-7aaf227f.entry.js → p-d0022dc9.entry.js} +1 -1
- package/lib/duet/{p-891c5ca1.entry.js → p-d056bac9.entry.js} +1 -1
- package/lib/duet/{p-8864ba0e.system.entry.js → p-d1f67700.system.entry.js} +1 -1
- package/lib/duet/{p-39d9f25b.system.entry.js → p-d6875b70.system.entry.js} +1 -1
- package/lib/duet/{p-64790718.entry.js → p-d8bcb92e.entry.js} +1 -1
- package/lib/duet/{p-88e789b9.system.entry.js → p-d94805ae.system.entry.js} +1 -1
- package/lib/duet/{p-d8e41f55.system.entry.js → p-d9c3fb44.system.entry.js} +1 -1
- package/lib/duet/{p-4e870704.entry.js → p-dbbd0ded.entry.js} +1 -1
- package/lib/duet/{p-1298b261.entry.js → p-dde05948.entry.js} +1 -1
- package/lib/duet/{p-744f44b4.system.entry.js → p-df315839.system.entry.js} +1 -1
- package/lib/duet/{p-3e79b617.entry.js → p-df802ae3.entry.js} +1 -1
- package/lib/duet/{p-9664f656.entry.js → p-dfd872f3.entry.js} +1 -1
- package/lib/duet/p-e19c5a93.entry.js +4 -0
- package/lib/duet/{p-a1d72dc5.entry.js → p-e70dc2a1.entry.js} +1 -1
- package/lib/duet/{p-5053b084.entry.js → p-e79a0e0b.entry.js} +1 -1
- package/lib/duet/{p-fc57622c.system.entry.js → p-e921c496.system.entry.js} +1 -1
- package/lib/duet/{p-70192ee4.system.entry.js → p-ea37e5ca.system.entry.js} +1 -1
- package/lib/duet/{p-58d1b520.system.entry.js → p-ee1cade9.system.entry.js} +1 -1
- package/lib/duet/{p-80dfb88c.system.entry.js → p-f107bb45.system.entry.js} +1 -1
- package/lib/duet/{p-79dc49af.system.entry.js → p-f3c15b5b.system.entry.js} +1 -1
- package/lib/duet/{p-2d4fcd47.entry.js → p-f50ecfd3.entry.js} +1 -1
- package/lib/duet/{p-7a02ef0d.entry.js → p-f50f189c.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +1 -1
- 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 +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +1 -1
- package/lib/esm/duet-callout.entry.js +1 -1
- package/lib/esm/duet-caption_4.entry.js +4 -1
- package/lib/esm/duet-card.entry.js +1 -1
- 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 +30 -6
- package/lib/esm/duet-collapsible.entry.js +1 -1
- package/lib/esm/duet-combobox.entry.js +4 -4
- 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 +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +1 -1
- 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 +55 -0
- package/lib/esm/duet-footer.entry.js +1 -1
- package/lib/esm/duet-grid_2.entry.js +1 -1
- package/lib/esm/duet-header_2.entry.js +1 -1
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +1 -1
- package/lib/esm/duet-input_2.entry.js +2 -2
- 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 +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +2 -2
- package/lib/esm/duet-modal.entry.js +2 -2
- 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 +1 -1
- package/lib/esm/duet-popup-menu-item.entry.js +1 -1
- package/lib/esm/duet-popup-menu.entry.js +1 -1
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-promo-card.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +5 -2
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +2 -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 +4 -2
- 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 +13 -3
- package/lib/esm/duet-slideout.entry.js +24 -5
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +3 -3
- package/lib/esm/duet-textarea.entry.js +2 -2
- 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-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 +1 -1
- package/lib/esm/duet-tray.entry.js +1 -1
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-upload-item.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/esm/{focus-utils-03333699.js → focus-utils-4707a1e8.js} +1 -1
- package/lib/esm/{index-c3bd1656.js → index-e89bc6bf.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +2 -2
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +2 -2
- 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 +4 -0
- 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 +2 -2
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-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 +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +2 -2
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-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-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-upload-item.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/focus-utils-4707a1e8.js +4 -0
- package/lib/esm-es5/{index-c3bd1656.js → index-e89bc6bf.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-choice/duet-choice.d.ts +21 -3
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +11 -0
- package/lib/types/components/duet-file-chooser/duet-file-chooser.d.ts +42 -0
- package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +11 -0
- package/lib/types/components/duet-show-more/duet-show-more.d.ts +9 -1
- package/lib/types/components/duet-slideout/duet-slideout.d.ts +4 -0
- package/lib/types/components.d.ts +138 -6
- package/package.json +5 -5
- package/lib/duet/p-05ddb8d7.entry.js +0 -4
- package/lib/duet/p-11d78956.entry.js +0 -4
- package/lib/duet/p-15aa743e.entry.js +0 -4
- package/lib/duet/p-17392944.entry.js +0 -4
- package/lib/duet/p-37961e05.entry.js +0 -4
- package/lib/duet/p-46a8594c.entry.js +0 -4
- package/lib/duet/p-7f13b214.system.entry.js +0 -4
- package/lib/duet/p-8aae2ee1.entry.js +0 -4
- package/lib/duet/p-cadf7c9b.entry.js +0 -4
- package/lib/duet/p-d8e56dcd.system.entry.js +0 -4
- package/lib/duet/p-e0887380.system.entry.js +0 -4
- package/lib/duet/p-ec0fadf9.entry.js +0 -4
- package/lib/duet/p-f0023574.entry.js +0 -4
- package/lib/duet/p-f36029aa.system.entry.js +0 -4
- package/lib/duet/p-fd4c42f8.system.js +0 -4
- package/lib/esm-es5/focus-utils-03333699.js +0 -4
|
@@ -24,6 +24,7 @@ import { DuetDatePickerChangeEvent, DuetDatePickerDirection, DuetDatePickerFocus
|
|
|
24
24
|
import { DuetDividerMargin } from "./components/duet-divider/duet-divider";
|
|
25
25
|
import { DuetEditableTableActions, DuetEditableTableColumns, DuetEditableTableRows, DuetTableMenuEvent, DuetTableToggleEvent } from "./components/duet-editable-table/duet-editable-table";
|
|
26
26
|
import { DuetEmptyStateSize } from "./components/duet-empty-state/duet-empty-state";
|
|
27
|
+
import { DuetFileChooserEvent } from "./components/duet-file-chooser/duet-file-chooser";
|
|
27
28
|
import { DuetFooterAnalyticsEvent, DuetFooterChangeEvent, DuetFooterVariation } from "./components/duet-footer/duet-footer";
|
|
28
29
|
import { DuetGridAlignment, DuetGridDistribution, DuetGridMobileAlignment } from "./components/duet-grid/duet-grid";
|
|
29
30
|
import { DuetHeaderAnalyticsEvent, DuetHeaderChangeEvent, DuetHeaderMobileNavToggleEvent, I18nText } from "./components/duet-header/duet-header";
|
|
@@ -83,6 +84,7 @@ export { DuetDatePickerChangeEvent, DuetDatePickerDirection, DuetDatePickerFocus
|
|
|
83
84
|
export { DuetDividerMargin } from "./components/duet-divider/duet-divider";
|
|
84
85
|
export { DuetEditableTableActions, DuetEditableTableColumns, DuetEditableTableRows, DuetTableMenuEvent, DuetTableToggleEvent } from "./components/duet-editable-table/duet-editable-table";
|
|
85
86
|
export { DuetEmptyStateSize } from "./components/duet-empty-state/duet-empty-state";
|
|
87
|
+
export { DuetFileChooserEvent } from "./components/duet-file-chooser/duet-file-chooser";
|
|
86
88
|
export { DuetFooterAnalyticsEvent, DuetFooterChangeEvent, DuetFooterVariation } from "./components/duet-footer/duet-footer";
|
|
87
89
|
export { DuetGridAlignment, DuetGridDistribution, DuetGridMobileAlignment } from "./components/duet-grid/duet-grid";
|
|
88
90
|
export { DuetHeaderAnalyticsEvent, DuetHeaderChangeEvent, DuetHeaderMobileNavToggleEvent, I18nText } from "./components/duet-header/duet-header";
|
|
@@ -834,6 +836,16 @@ export namespace Components {
|
|
|
834
836
|
* This attribute works only when the 'collapsible' attribute is set to true. It maintains the visibility of the additional content section, regardless of whether the input is checked or not.
|
|
835
837
|
*/
|
|
836
838
|
"collapsibleForceExpanded": boolean;
|
|
839
|
+
/**
|
|
840
|
+
* Accessible collapsible notification. If a collapsible choice has no header, and contains other elements than duet-paragraph, duet-heading or duet-fieldset, this is used as the accessible notification of opening the collapsible content (added to aria-describedby).
|
|
841
|
+
* @default { fi: "Tämä valinta sisältää lisätietoja, jotka avautuivat alle", en: "This choice has additional information opened below", sv: "Det här val har mer information som öppnades nedan", }
|
|
842
|
+
*/
|
|
843
|
+
"collapsibleNotification": string;
|
|
844
|
+
/**
|
|
845
|
+
* Accessible collapsible notification defaults
|
|
846
|
+
*/
|
|
847
|
+
"collapsibleNotificationDefaults": | DuetLangObject
|
|
848
|
+
| string;
|
|
837
849
|
/**
|
|
838
850
|
* Makes the choice component disabled. This prevents users from being able to interact with the choice, and conveys its inactive state to assistive technologies.
|
|
839
851
|
*/
|
|
@@ -854,13 +866,12 @@ export namespace Components {
|
|
|
854
866
|
*/
|
|
855
867
|
"identifier": string;
|
|
856
868
|
/**
|
|
857
|
-
*
|
|
869
|
+
* Accessible info label
|
|
858
870
|
* @default { fi: "Lisätietoja vaihtoehdosta", en: "More information about", sv: "Mera information om", }
|
|
859
871
|
*/
|
|
860
872
|
"infoLabel": string;
|
|
861
873
|
/**
|
|
862
|
-
*
|
|
863
|
-
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
874
|
+
* Accessible info label defaults
|
|
864
875
|
*/
|
|
865
876
|
"infoLabelDefaults": DuetLangObject | string;
|
|
866
877
|
/**
|
|
@@ -905,6 +916,10 @@ export namespace Components {
|
|
|
905
916
|
"value": string;
|
|
906
917
|
}
|
|
907
918
|
interface DuetChoiceGroup {
|
|
919
|
+
/**
|
|
920
|
+
* The aria-live attribute for the error message. When the input is validated on blur, use "off", as using "polite" or "assertive" makes the screen reader read the error message twice. When the input is validated on submit, use "polite", as "off" would leave the messages unread by screen readers. Use "assertive" only in those rare cases when "polite" would leave the error message unread by screen readers.
|
|
921
|
+
*/
|
|
922
|
+
"accessibleLiveError": "off" | "polite" | "assertive";
|
|
908
923
|
/**
|
|
909
924
|
* Switch the breakpoint used to trigger the content stacking. These match to similar media query tokens eg.: $media-query-small, $media-query-medium.
|
|
910
925
|
*/
|
|
@@ -941,6 +956,10 @@ export namespace Components {
|
|
|
941
956
|
* Name for the choice buttons within this group. **This must be unique amongst all other inputs.**
|
|
942
957
|
*/
|
|
943
958
|
"name": string;
|
|
959
|
+
/**
|
|
960
|
+
* Sets whether making a choice is required or optional. Will set contained choices to required as well.
|
|
961
|
+
*/
|
|
962
|
+
"required": boolean;
|
|
944
963
|
/**
|
|
945
964
|
* Enable or disable the automatic responsive behaviour of the choice group component when horizontal setting is used. Setting this option to "true" makes sure that contents are stacked vertically on mobile.
|
|
946
965
|
*/
|
|
@@ -1361,6 +1380,28 @@ export namespace Components {
|
|
|
1361
1380
|
*/
|
|
1362
1381
|
"theme": DuetTheme;
|
|
1363
1382
|
}
|
|
1383
|
+
interface DuetFileChooser {
|
|
1384
|
+
/**
|
|
1385
|
+
* The accept attribute takes as its value a comma-separated list of one or more file types, or unique file type specifiers, describing which file types to allow.
|
|
1386
|
+
*/
|
|
1387
|
+
"accept": string;
|
|
1388
|
+
/**
|
|
1389
|
+
* Returns actually selected files in file chooser.
|
|
1390
|
+
*/
|
|
1391
|
+
"getFiles": () => Promise<FileList>;
|
|
1392
|
+
/**
|
|
1393
|
+
* Use multiple to allow the user to select multiple files when uploading
|
|
1394
|
+
*/
|
|
1395
|
+
"multiple": boolean;
|
|
1396
|
+
/**
|
|
1397
|
+
* Opens file choose dialog.
|
|
1398
|
+
*/
|
|
1399
|
+
"open": () => Promise<void>;
|
|
1400
|
+
/**
|
|
1401
|
+
* theme.
|
|
1402
|
+
*/
|
|
1403
|
+
"theme": DuetTheme;
|
|
1404
|
+
}
|
|
1364
1405
|
interface DuetFooter {
|
|
1365
1406
|
/**
|
|
1366
1407
|
* Accessible label for footer
|
|
@@ -3059,6 +3100,10 @@ export namespace Components {
|
|
|
3059
3100
|
"value": string;
|
|
3060
3101
|
}
|
|
3061
3102
|
interface DuetRadioGroup {
|
|
3103
|
+
/**
|
|
3104
|
+
* The aria-live attribute for the error message. When the input is validated on blur, use "off", as using "polite" or "assertive" makes the screen reader read the error message twice. When the input is validated on submit, use "polite", as "off" would leave the messages unread by screen readers. Use "assertive" only in those rare cases when "polite" would leave the error message unread by screen readers.
|
|
3105
|
+
*/
|
|
3106
|
+
"accessibleLiveError": "off" | "polite" | "assertive";
|
|
3062
3107
|
/**
|
|
3063
3108
|
* Additional caption to show inside the label of the radio group.
|
|
3064
3109
|
*/
|
|
@@ -3091,6 +3136,10 @@ export namespace Components {
|
|
|
3091
3136
|
* Name for the radio buttons within this group. **This must be unique amongst all other inputs.**
|
|
3092
3137
|
*/
|
|
3093
3138
|
"name": string;
|
|
3139
|
+
/**
|
|
3140
|
+
* Sets whether making a choice is required or optional. Will set contained duet-radio components to required as well.
|
|
3141
|
+
*/
|
|
3142
|
+
"required": boolean;
|
|
3094
3143
|
/**
|
|
3095
3144
|
* Enable or disable the automatic responsive behaviour of the radio group component when horizontal setting is used. Setting this option to "true" makes sure that contents are stacked vertically on mobile.
|
|
3096
3145
|
*/
|
|
@@ -3393,6 +3442,14 @@ export namespace Components {
|
|
|
3393
3442
|
"theme": DuetTheme;
|
|
3394
3443
|
}
|
|
3395
3444
|
interface DuetShowMore {
|
|
3445
|
+
/**
|
|
3446
|
+
* Controls the margin of the button component inside of show more.
|
|
3447
|
+
*/
|
|
3448
|
+
"buttonMargin": DuetMargin;
|
|
3449
|
+
/**
|
|
3450
|
+
* Controls the padding of the button component inside of show more.
|
|
3451
|
+
*/
|
|
3452
|
+
"buttonPadding": DuetPadding;
|
|
3396
3453
|
/**
|
|
3397
3454
|
* The currently active language. This setting also changes the logo to match the chosen language.
|
|
3398
3455
|
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
@@ -4653,6 +4710,10 @@ export interface DuetEditableTableCustomEvent<T> extends CustomEvent<T> {
|
|
|
4653
4710
|
detail: T;
|
|
4654
4711
|
target: HTMLDuetEditableTableElement;
|
|
4655
4712
|
}
|
|
4713
|
+
export interface DuetFileChooserCustomEvent<T> extends CustomEvent<T> {
|
|
4714
|
+
detail: T;
|
|
4715
|
+
target: HTMLDuetFileChooserElement;
|
|
4716
|
+
}
|
|
4656
4717
|
export interface DuetFooterCustomEvent<T> extends CustomEvent<T> {
|
|
4657
4718
|
detail: T;
|
|
4658
4719
|
target: HTMLDuetFooterElement;
|
|
@@ -5038,6 +5099,23 @@ declare global {
|
|
|
5038
5099
|
prototype: HTMLDuetFieldsetElement;
|
|
5039
5100
|
new (): HTMLDuetFieldsetElement;
|
|
5040
5101
|
};
|
|
5102
|
+
interface HTMLDuetFileChooserElementEventMap {
|
|
5103
|
+
"duetChange": DuetFileChooserEvent;
|
|
5104
|
+
}
|
|
5105
|
+
interface HTMLDuetFileChooserElement extends Components.DuetFileChooser, HTMLStencilElement {
|
|
5106
|
+
addEventListener<K extends keyof HTMLDuetFileChooserElementEventMap>(type: K, listener: (this: HTMLDuetFileChooserElement, ev: DuetFileChooserCustomEvent<HTMLDuetFileChooserElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5107
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5108
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5109
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
5110
|
+
removeEventListener<K extends keyof HTMLDuetFileChooserElementEventMap>(type: K, listener: (this: HTMLDuetFileChooserElement, ev: DuetFileChooserCustomEvent<HTMLDuetFileChooserElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
5111
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
5112
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
5113
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
5114
|
+
}
|
|
5115
|
+
var HTMLDuetFileChooserElement: {
|
|
5116
|
+
prototype: HTMLDuetFileChooserElement;
|
|
5117
|
+
new (): HTMLDuetFileChooserElement;
|
|
5118
|
+
};
|
|
5041
5119
|
interface HTMLDuetFooterElementEventMap {
|
|
5042
5120
|
"duetChange": DuetFooterChangeEvent;
|
|
5043
5121
|
"duetLogoClick": DuetFooterChangeEvent;
|
|
@@ -5803,6 +5881,7 @@ declare global {
|
|
|
5803
5881
|
"duet-editable-table": HTMLDuetEditableTableElement;
|
|
5804
5882
|
"duet-empty-state": HTMLDuetEmptyStateElement;
|
|
5805
5883
|
"duet-fieldset": HTMLDuetFieldsetElement;
|
|
5884
|
+
"duet-file-chooser": HTMLDuetFileChooserElement;
|
|
5806
5885
|
"duet-footer": HTMLDuetFooterElement;
|
|
5807
5886
|
"duet-grid": HTMLDuetGridElement;
|
|
5808
5887
|
"duet-grid-item": HTMLDuetGridItemElement;
|
|
@@ -6599,6 +6678,16 @@ declare namespace LocalJSX {
|
|
|
6599
6678
|
* This attribute works only when the 'collapsible' attribute is set to true. It maintains the visibility of the additional content section, regardless of whether the input is checked or not.
|
|
6600
6679
|
*/
|
|
6601
6680
|
"collapsibleForceExpanded"?: boolean;
|
|
6681
|
+
/**
|
|
6682
|
+
* Accessible collapsible notification. If a collapsible choice has no header, and contains other elements than duet-paragraph, duet-heading or duet-fieldset, this is used as the accessible notification of opening the collapsible content (added to aria-describedby).
|
|
6683
|
+
* @default { fi: "Tämä valinta sisältää lisätietoja, jotka avautuivat alle", en: "This choice has additional information opened below", sv: "Det här val har mer information som öppnades nedan", }
|
|
6684
|
+
*/
|
|
6685
|
+
"collapsibleNotification"?: string;
|
|
6686
|
+
/**
|
|
6687
|
+
* Accessible collapsible notification defaults
|
|
6688
|
+
*/
|
|
6689
|
+
"collapsibleNotificationDefaults"?: | DuetLangObject
|
|
6690
|
+
| string;
|
|
6602
6691
|
/**
|
|
6603
6692
|
* Makes the choice component disabled. This prevents users from being able to interact with the choice, and conveys its inactive state to assistive technologies.
|
|
6604
6693
|
*/
|
|
@@ -6616,13 +6705,12 @@ declare namespace LocalJSX {
|
|
|
6616
6705
|
*/
|
|
6617
6706
|
"identifier"?: string;
|
|
6618
6707
|
/**
|
|
6619
|
-
*
|
|
6708
|
+
* Accessible info label
|
|
6620
6709
|
* @default { fi: "Lisätietoja vaihtoehdosta", en: "More information about", sv: "Mera information om", }
|
|
6621
6710
|
*/
|
|
6622
6711
|
"infoLabel"?: string;
|
|
6623
6712
|
/**
|
|
6624
|
-
*
|
|
6625
|
-
* @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
|
|
6713
|
+
* Accessible info label defaults
|
|
6626
6714
|
*/
|
|
6627
6715
|
"infoLabelDefaults"?: DuetLangObject | string;
|
|
6628
6716
|
/**
|
|
@@ -6679,6 +6767,10 @@ declare namespace LocalJSX {
|
|
|
6679
6767
|
"value"?: string;
|
|
6680
6768
|
}
|
|
6681
6769
|
interface DuetChoiceGroup {
|
|
6770
|
+
/**
|
|
6771
|
+
* The aria-live attribute for the error message. When the input is validated on blur, use "off", as using "polite" or "assertive" makes the screen reader read the error message twice. When the input is validated on submit, use "polite", as "off" would leave the messages unread by screen readers. Use "assertive" only in those rare cases when "polite" would leave the error message unread by screen readers.
|
|
6772
|
+
*/
|
|
6773
|
+
"accessibleLiveError"?: "off" | "polite" | "assertive";
|
|
6682
6774
|
/**
|
|
6683
6775
|
* Switch the breakpoint used to trigger the content stacking. These match to similar media query tokens eg.: $media-query-small, $media-query-medium.
|
|
6684
6776
|
*/
|
|
@@ -6715,6 +6807,10 @@ declare namespace LocalJSX {
|
|
|
6715
6807
|
* Name for the choice buttons within this group. **This must be unique amongst all other inputs.**
|
|
6716
6808
|
*/
|
|
6717
6809
|
"name"?: string;
|
|
6810
|
+
/**
|
|
6811
|
+
* Sets whether making a choice is required or optional. Will set contained choices to required as well.
|
|
6812
|
+
*/
|
|
6813
|
+
"required"?: boolean;
|
|
6718
6814
|
/**
|
|
6719
6815
|
* Enable or disable the automatic responsive behaviour of the choice group component when horizontal setting is used. Setting this option to "true" makes sure that contents are stacked vertically on mobile.
|
|
6720
6816
|
*/
|
|
@@ -7145,6 +7241,24 @@ declare namespace LocalJSX {
|
|
|
7145
7241
|
*/
|
|
7146
7242
|
"theme"?: DuetTheme;
|
|
7147
7243
|
}
|
|
7244
|
+
interface DuetFileChooser {
|
|
7245
|
+
/**
|
|
7246
|
+
* The accept attribute takes as its value a comma-separated list of one or more file types, or unique file type specifiers, describing which file types to allow.
|
|
7247
|
+
*/
|
|
7248
|
+
"accept"?: string;
|
|
7249
|
+
/**
|
|
7250
|
+
* Use multiple to allow the user to select multiple files when uploading
|
|
7251
|
+
*/
|
|
7252
|
+
"multiple"?: boolean;
|
|
7253
|
+
/**
|
|
7254
|
+
* Emitted when the value has changed.
|
|
7255
|
+
*/
|
|
7256
|
+
"onDuetChange"?: (event: DuetFileChooserCustomEvent<DuetFileChooserEvent>) => void;
|
|
7257
|
+
/**
|
|
7258
|
+
* theme.
|
|
7259
|
+
*/
|
|
7260
|
+
"theme"?: DuetTheme;
|
|
7261
|
+
}
|
|
7148
7262
|
interface DuetFooter {
|
|
7149
7263
|
/**
|
|
7150
7264
|
* Accessible label for footer
|
|
@@ -8906,6 +9020,10 @@ declare namespace LocalJSX {
|
|
|
8906
9020
|
"value"?: string;
|
|
8907
9021
|
}
|
|
8908
9022
|
interface DuetRadioGroup {
|
|
9023
|
+
/**
|
|
9024
|
+
* The aria-live attribute for the error message. When the input is validated on blur, use "off", as using "polite" or "assertive" makes the screen reader read the error message twice. When the input is validated on submit, use "polite", as "off" would leave the messages unread by screen readers. Use "assertive" only in those rare cases when "polite" would leave the error message unread by screen readers.
|
|
9025
|
+
*/
|
|
9026
|
+
"accessibleLiveError"?: "off" | "polite" | "assertive";
|
|
8909
9027
|
/**
|
|
8910
9028
|
* Additional caption to show inside the label of the radio group.
|
|
8911
9029
|
*/
|
|
@@ -8938,6 +9056,10 @@ declare namespace LocalJSX {
|
|
|
8938
9056
|
* Name for the radio buttons within this group. **This must be unique amongst all other inputs.**
|
|
8939
9057
|
*/
|
|
8940
9058
|
"name"?: string;
|
|
9059
|
+
/**
|
|
9060
|
+
* Sets whether making a choice is required or optional. Will set contained duet-radio components to required as well.
|
|
9061
|
+
*/
|
|
9062
|
+
"required"?: boolean;
|
|
8941
9063
|
/**
|
|
8942
9064
|
* Enable or disable the automatic responsive behaviour of the radio group component when horizontal setting is used. Setting this option to "true" makes sure that contents are stacked vertically on mobile.
|
|
8943
9065
|
*/
|
|
@@ -9256,6 +9378,14 @@ declare namespace LocalJSX {
|
|
|
9256
9378
|
"theme"?: DuetTheme;
|
|
9257
9379
|
}
|
|
9258
9380
|
interface DuetShowMore {
|
|
9381
|
+
/**
|
|
9382
|
+
* Controls the margin of the button component inside of show more.
|
|
9383
|
+
*/
|
|
9384
|
+
"buttonMargin"?: DuetMargin;
|
|
9385
|
+
/**
|
|
9386
|
+
* Controls the padding of the button component inside of show more.
|
|
9387
|
+
*/
|
|
9388
|
+
"buttonPadding"?: DuetPadding;
|
|
9259
9389
|
/**
|
|
9260
9390
|
* The currently active language. This setting also changes the logo to match the chosen language.
|
|
9261
9391
|
* @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
|
|
@@ -10489,6 +10619,7 @@ declare namespace LocalJSX {
|
|
|
10489
10619
|
"duet-editable-table": DuetEditableTable;
|
|
10490
10620
|
"duet-empty-state": DuetEmptyState;
|
|
10491
10621
|
"duet-fieldset": DuetFieldset;
|
|
10622
|
+
"duet-file-chooser": DuetFileChooser;
|
|
10492
10623
|
"duet-footer": DuetFooter;
|
|
10493
10624
|
"duet-grid": DuetGrid;
|
|
10494
10625
|
"duet-grid-item": DuetGridItem;
|
|
@@ -10590,6 +10721,7 @@ declare module "@stencil/core" {
|
|
|
10590
10721
|
"duet-editable-table": LocalJSX.DuetEditableTable & JSXBase.HTMLAttributes<HTMLDuetEditableTableElement>;
|
|
10591
10722
|
"duet-empty-state": LocalJSX.DuetEmptyState & JSXBase.HTMLAttributes<HTMLDuetEmptyStateElement>;
|
|
10592
10723
|
"duet-fieldset": LocalJSX.DuetFieldset & JSXBase.HTMLAttributes<HTMLDuetFieldsetElement>;
|
|
10724
|
+
"duet-file-chooser": LocalJSX.DuetFileChooser & JSXBase.HTMLAttributes<HTMLDuetFileChooserElement>;
|
|
10593
10725
|
"duet-footer": LocalJSX.DuetFooter & JSXBase.HTMLAttributes<HTMLDuetFooterElement>;
|
|
10594
10726
|
"duet-grid": LocalJSX.DuetGrid & JSXBase.HTMLAttributes<HTMLDuetGridElement>;
|
|
10595
10727
|
"duet-grid-item": LocalJSX.DuetGridItem & JSXBase.HTMLAttributes<HTMLDuetGridItemElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/components",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.5",
|
|
4
4
|
"description": "This package includes Duet Design System Web Components and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"body-scroll-lock": "3.1.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@duetds/fonts": "3.0.
|
|
45
|
-
"@duetds/icons": "4.0.
|
|
46
|
-
"@duetds/tokens": "4.0.
|
|
44
|
+
"@duetds/fonts": "3.0.23",
|
|
45
|
+
"@duetds/icons": "4.0.23",
|
|
46
|
+
"@duetds/tokens": "4.0.23",
|
|
47
47
|
"@percy/cli": "1.21.0",
|
|
48
48
|
"@rollup/plugin-replace": "5.0.2",
|
|
49
49
|
"@stencil/core": "4.7.2",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"collection": "lib/collection/collection-manifest.json",
|
|
72
72
|
"es2015": "lib/esm/index.js",
|
|
73
73
|
"es2017": "lib/esm/index.js",
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "c60ace1383302301e371415f2ab56a941c3b3892"
|
|
75
75
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as i,g as o}from"./p-41363488.js";import{i as a}from"./p-d48735b6.js";import{F as s}from"./p-115e5a74.js";import{a as l,c as n,d as r,g as p}from"./p-4883df66.js";import{g as d}from"./p-0b31864f.js";import"./p-1a395a8d.js";import"./p-f1d51e20.js";const u=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.onToggleClick=()=>{const e=!this.open;this.open=e,e?setTimeout((()=>{this.closeButton.focus()}),200):setTimeout((()=>{this.openButton.focus()}),200)},this.onCloseClick=e=>{e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName&&this.element.parentElement.toggle()},this.label=void 0,this.language=l(),this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest"}componentWillLoad(){a(this),this.updateLabel()}connectedCallback(){n(this)}disconnectedCallback(){r(this)}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:d("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},o=p(this.exitLangObject),a=p(this.backLangObject);return t(i,null,t("div",{class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active},onClick:this.onToggleClick},this.icon&&t("duet-icon",{name:this.icon,size:"medium",margin:"none",color:"secondary"}),t("div",{class:"label"},t("span",{class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{name:"label"})),t("duet-icon",{class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{class:{dialog:!0,hidden:!this.open},style:e},t(s,{moveFocusTo:this.closeButton}),t("div",{class:"top"},t("button",{ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${a}`,type:"button",class:{back:!0},onClick:this.onToggleClick},t("duet-icon",{class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",null,this.label.innerHTML),t("button",{class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${o}`},t("duet-icon",{name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",null)),t(s,{moveFocusTo:this.closeButton}))))}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}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:1.5rem;font-weight:800;line-height:1.25;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{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);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(0, 41, 77)}.duet-slideout-panel.duet-theme-turva .link{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-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(0, 41, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';export{u as duet_slideout_panel}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{h as o,F as t,r as e,c as s,H as i,g as c}from"./p-41363488.js";import{i as b}from"./p-d48735b6.js";import{d}from"./p-3d8d557b.js";import{j as m,f as u,o as l,b as h,c as a}from"./p-cc1909de.js";import{g as x,a as n,c as r,d as p}from"./p-4883df66.js";import{p as v}from"./p-1a395a8d.js";const g=({item:e,search:s="",selected:i})=>{const c=""!==s?new RegExp("("+s.split(" ").join("|")+")","gi"):void 0;return o(t,null,i&&o("duet-icon",{class:"option-icon",name:"messaging-checked",size:"xx-small",margin:"none"}),c?o("span",{class:"option-container","aria-hidden":"true"},o("span",{innerHTML:e.name.replace(c,'<span class="highlight">$&</span>')})):e.name,e.tags&&o("span",{class:"option-tags"},e.tags.join(", ")))},f=({item:t,active:e,total:s,selected:i,label:c,clickHandler:b=(o=>{o.preventDefault()}),keyHandler:d=(o=>{o.preventDefault()}),search:m})=>o("li",{class:{"list-item":!0,option:!0,active:e,selected:i},id:e?"active_item":"","data-index":t.id,"aria-selected":e?"true":void 0,"aria-current":i?"true":void 0,role:"option","aria-label":c||`${t.name}, (${t.id+1} of ${s})`},o("a",{tabindex:"-1",onClick:o=>b(o),onKeyUp:o=>d(o),class:"option-link","aria-label":c||`${t.name}, (${t.id+1} of ${s})`,"aria-hidden":"true"},o(g,{item:t,search:m,selected:i}))),k=class{constructor(o){e(this,o),this.duetChange=s(this,"duetChange",3),this.resizeObserver=new ResizeObserver(d((o=>{var t,e;if(1===(null==o?void 0:o.length)){const s=null===(e=null===(t=o[0])||void 0===t?void 0:t.target)||void 0===e?void 0:e.getBoundingClientRect().width;this.listContainer.style.width=`${s+1}px`}}),100)),this.processedItems=null,this.inputWidth=0,this.inputValue="",this.selectionMsg="",this.listOpen=!1,this.selectedItems=new Set,this.activeItem=void 0,this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}, ({current} of {total})",itemFiltered:"{name}, ({current} of {total}, {hiddenItems} filtered)"},fi:{heading:"Valitse:",item:"{name}, ({current}/{total})",itemFiltered:"{name}, ({current}/{total}, {hiddenItems} suodatettu)"},sv:{heading:"Välj:",item:"{name}, ({current} av {total})",itemFiltered:"{name}, ({current} av {total}, {hiddenItems} filtrerade)"}},this.accessibleLabels=x(this.accessibleLabelDefaults,n()),this.theme="",this.force=!1,this.items=void 0,this.formatter=o=>o&&o.name?o.name:"",this.value=void 0,this.minCharacters=1,this.openListOnClick=!1,this.filterType="startsWith"}activeItemHandler(o){this.input.accessibleActiveDescendant=this.listOpen&&(o||0===o)?"active_item":""}handleDocumentClick(o){o.composedPath().every((o=>o!==this.element))&&(this.updateInputText(!0),this.listOpen=!1)}async formatItem(o){return this.formatter(o)}async processItems(){this.items=this.processedItems=v(this.items),await this.updateInputText()}async processValue(){if(this.value){const o=this.items.find((o=>o.value===this.value));this.updateSelectedItems(o.id)}}async processListOpenChange(){this.openListOnClick&&(this.input.icon=this.listOpen?"action-arrow-up":"action-arrow-down")}componentWillLoad(){b(this)}connectedCallback(){this.items=this.processedItems=v(this.items),this.input=this.element.querySelector("duet-input"),this.input.addEventListener("duetChange",this.updateInputValue.bind(this)),this.input.addEventListener("click",(()=>{this.listOpen=this.openListOnClick?!this.listOpen:this.inputValue.length>=this.minCharacters})),this.element.addEventListener("keydown",this.handleInputKeyDownEvent.bind(this)),r(this,{prop:"accessibleLabels",defaults:"accessibleLabelDefaults"}),this.input.accessibleAutocomplete="list",this.input.accessibleControls="duet-combobox-list-element",this.processListOpenChange()}disconnectedCallback(){this.input.removeEventListener("duetChange",this.updateInputValue.bind(this)),this.input.removeEventListener("click",(()=>this.listOpen=!!this.inputValue.length)),this.element.removeEventListener("keydown",this.handleInputKeyDownEvent.bind(this)),this.listElement.removeEventListener("click",(o=>{o.stopPropagation()})),this.resizeObserver.disconnect(),p(this)}componentDidLoad(){this.resizeObserver.observe(this.input),this.listElement.addEventListener("click",(o=>{o.stopPropagation()})),this.processValue()}onListClick(o,t){return o.preventDefault(),this.updateSelectedItems(t.id,!0),this.listOpen=!1,this.listOpen}shouldListBeFiltered(){if(this.selectedItems.size&&this.input.value===this.inputValue){const o=this.items.filter((o=>this.selectedItems.has(o.id)));return!(this.formatter(o).toLowerCase()===this.input.value.toLowerCase())}return!0}returnFilteredOrNonFiltered(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]}async updateSelectedItems(o,t){if(this.selectedItems.clear(),this.selectedItems&&(this.selectedItems.has(o)?this.selectedItems.delete(o):this.selectedItems.add(o)),t){const o=0===this.selectedItems.size?[]:this.items.filter((o=>this.selectedItems.has(o.id)));this.duetChange.emit({value:o[0].value,item:o[0],component:"duet-combobox"})}await this.updateInputText()}async updateInputText(o=!1){const t=0===this.selectedItems.size?[]:this.items.filter((o=>this.selectedItems.has(o.id)));0===t.length&&this.selectedItems.size>0&&(this.selectedItems.clear(),this.input.value="",this.value=void 0,this.activeItem=void 0),1===this.selectedItems.size&&(this.input.value="",this.input.value=await this.formatItem(t[0]),this.input.scrollLeft=this.input.scrollWidth,this.activeItem=void 0,this.value=t[0].value),o&&0===this.selectedItems.size&&(this.force&&(this.inputValue="",this.input.value=""),this.activeItem=void 0),this.listOpen=!1}updateInputValue(o){var t;this.inputValue=o.detail.value,this.listOpen=String(this.inputValue).length>=this.minCharacters&&(null===(t=this.getFilteredItems())||void 0===t?void 0:t.length)>0}handleInputKeyDownEvent(o){if(this.input.accessibleActiveDescendant=void 0,m(o))return o.preventDefault(),this.selectActiveItem(),this.updateInputText(!1),void(this.listOpen=!1);if(u(o)||l(o))return this.updateInputText(!0),void(this.listOpen=!1);let t=this.activeItem;if(h(o)?(o.preventDefault(),t=this.activeItem-1):a(o)&&(o.preventDefault(),t=this.listOpen?this.activeItem+1:this.activeItem,this.listOpen=!0),a(o)||h(o)){const o=this.shouldListBeFiltered()?this.getFilteredItems():this.processedItems;(t<0||!t)&&(t=0),t>=o.length&&(t=o.length-1),this.input.accessibleActiveDescendant="active_item",this.activeItem=t,this.scrollToActive()}this.announceActive()}selectActiveItem(){if(void 0===this.activeItem)return;const o=this.returnFilteredOrNonFiltered();this.updateSelectedItems(o[this.activeItem].id,!0)}announceActive(o){o||(o=this.returnFilteredOrNonFiltered()),void 0!==this.activeItem&&-1!==this.activeItem&&(this.selectionMsg=structuredClone(this.formatLabel(o[this.activeItem],o.length,this.items.length)))}scrollToActive(){const o=this.listElement.querySelector(".active");o&&o.scrollIntoView({behavior:"smooth",block:"center"})}formatLabel(o,t,e){return o&&void 0!==e?(t===e?this.accessibleLabels.item:this.accessibleLabels.itemFiltered).replace("{name}",String(o.name)).replace("{current}",String(this.activeItem+1)).replace("{total}",String(t)).replace("{hiddenItems}",String(e-t)):""}getFilteredItems(){const o=this.processedItems.filter((o=>{var t,e,s,i;return(null===(t=String(o.value))||void 0===t?void 0:t.toLowerCase()[this.filterType](null===(e=this.inputValue)||void 0===e?void 0:e.toLowerCase()))||(null===(s=String(o.name))||void 0===s?void 0:s.toLowerCase()[this.filterType](null===(i=this.inputValue)||void 0===i?void 0:i.toLowerCase()))||this.selectedItems.has(o.id)}));return this.sortFilteredItems(o)}sortFilteredItems(o){return o.length>0&&o.filter((o=>this.selectedItems.has(o.id))).forEach((t=>{const e=o.indexOf(t);o.splice(e,1),o.unshift(t)})),o}render(){const t=this.returnFilteredOrNonFiltered();return o(i,{role:"combobox","aria-expanded":this.listOpen?"true":"false","aria-owns":"duet-combobox-list-element","aria-haspopup":"listbox",class:{"duet-combobox":!0,[`duet-theme-${this.theme}`]:!0}},o("slot",null),o("div",{class:{"duet-combobox-list":!0,open:this.listOpen},ref:o=>this.listContainer=o},o("ul",{class:{"duet-combobox-listbox-open":this.listOpen,"duet-combobox-listbox":!0},role:"listbox",ref:o=>this.listElement=o,id:"duet-combobox-list-element"},t.map(((e,s)=>o(f,{item:e,active:s===this.activeItem,selected:this.selectedItems.has(e.id),search:this.inputValue,total:t.length,clickHandler:o=>this.onListClick(o,e),label:this.formatLabel(e,t.length,this.items.length)}))))))}get element(){return c(this)}static get watchers(){return{activeItem:["activeItemHandler"],items:["processItems"],value:["processValue"],listOpen:["processListOpenChange"]}}};k.style='.sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(0, 41, 77)}.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(0, 41, 77);transition:none}.duet-theme-turva.sc-duet-combobox-h{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-theme-turva.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(23, 28, 58)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.selected.sc-duet-combobox{background:rgb(244, 207, 214)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:rgb(255, 255, 255);background:rgb(198, 12, 48)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-combobox-list.sc-duet-combobox{position:absolute;top:calc(100% - 12px);height:0;overflow:hidden;background:rgb(255, 255, 255);border-radius:0 4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.1);opacity:0}.duet-combobox-list.open.sc-duet-combobox{z-index:700;display:block;height:auto;opacity:1}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox{max-height:200px;padding:0.75rem 0;margin:0;overflow-y:scroll;font-weight:600;list-style:none;cursor:pointer;scroll-behavior:smooth}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox{padding:4px 0}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected){padding-left:16px}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected) .highlight.sc-duet-combobox{text-decoration:underline}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{float:right;padding-right:0.875rem;font-weight:400;color:rgb(144, 149, 153)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.sc-duet-combobox{padding-left:0;background:rgb(205, 229, 241)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-icon.sc-duet-combobox{padding:0 8px 0 8px}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:rgb(144, 149, 153)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:rgb(255, 255, 255)}';export{k as duet_combobox}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as s,h as t,H as o,g as i}from"./p-41363488.js";import{i as a}from"./p-d48735b6.js";import{c as n}from"./p-45f71a69.js";import{i as r}from"./p-cc1909de.js";import{a as h,g as l,c as m,d as c}from"./p-4883df66.js";import"./p-1a395a8d.js";const p=class{constructor(t){e(this,t),this.duetToggle=s(this,"duetToggle",7),this.contentId=n("DuetShowMore"),this.buttonId=n("DuetShowMoreButton"),this.handleKeyDown=e=>{r(e)&&this.handleClick(e)},this.handleClick=e=>{e.preventDefault();const s=!this.open;this.open=s,s?(setTimeout((()=>{this.contentElement.focus()}),100),setTimeout((()=>{this.buttonAriaOpen=s}),500)):this.buttonAriaOpen=s,this.duetToggle.emit({component:"duet-show-more",originalEvent:e})},this.buttonAriaOpen=!1,this.theme="",this.language=h(),this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"},this.showMoreLabel=l(this.showMoreLabelDefaults),this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"},this.showLessLabel=l(this.showLessLabelDefaults),this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"},this.showMoreAccessibleLabel=l(this.showMoreAccessibleLabelDefaults),this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"},this.showLessAccessibleLabel=l(this.showLessAccessibleLabelDefaults),this.margin="auto",this.open=!1}componentWillLoad(){a(this),this.buttonAriaOpen=this.open}connectedCallback(){m(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])}disconnectedCallback(){c(this)}render(){return t(o,null,t("div",{class:{"duet-show-more":!0,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin,open:this.open}},t("div",{ref:e=>this.contentElement=e,class:{content:!0},id:this.contentId,tabindex:this.open?"0":""},t("div",{class:{"slotted-content":!0}},t("slot",null))),t("duet-button",{id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":!0,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small"},this.open?this.showLessLabel:this.showMoreLabel)))}get element(){return i(this)}};p.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-show-more{margin-bottom:16px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more.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)}';export{p as duet_show_more}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as i,g as s}from"./p-41363488.js";import{a as n}from"./p-64d43840.js";import{e as a,d as o}from"./p-141e14d0.js";import{i as r}from"./p-d48735b6.js";const d=class{constructor(t){e(this,t),this.mql=[window.matchMedia(n.replace(/'/g,""))],this.boundMqlFunctions=[],this.handleMobileView=()=>{this.mql[0].matches?(this.mobile=!1,this.enableBodyScroll()):(this.mobile=!0,this.bodyScroll||this.disableBodyScroll())},this.onClick=()=>{this.open=!this.open},this.enableBodyScroll=()=>{this.nav&&a(this.nav),this.itemsContainer&&a(this.itemsContainer)},this.disableBodyScroll=()=>{this.nav&&o(this.nav,{reserveScrollBarGap:!0}),this.itemsContainer&&o(this.itemsContainer,{reserveScrollBarGap:!0})},this.checkIfHasItems=()=>{const e=!!this.element.querySelector("duet-submenu-bar-dropdown-link"),t=!!this.element.querySelector("duet-submenu-bar-link");return e||t},this.mobile=!0,this.bodyScroll=!0,this.theme="",this.open=!1,this.accessibleLabel=void 0}watchOpenStateHandler(e){e?(this.bodyScroll=!1,this.disableBodyScroll()):(this.enableBodyScroll(),this.bodyScroll=!0)}componentWillLoad(){r(this);const e=Array.from(this.element.children).filter((e=>!e.hasAttribute("slot")));for(const t of e)t.setAttribute("role","listitem")}connectedCallback(){this.nav=document.querySelector("duet-nav > [slot='mobile']"),this.hasItems=this.checkIfHasItems(),this.handleMobileView();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.handleMobileView.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=[],this.enableBodyScroll()}async setFocus(e){this.button.focus(e)}render(){return t(i,null,t("nav",{class:{"duet-submenu-bar":!0,"duet-theme-turva":"turva"===this.theme},"aria-label":this.accessibleLabel},t("div",{class:"shadow-container",role:"presentation"},t("div",{class:"top-shadow"})),this.hasItems&&t("button",{ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false",id:"button",type:"button",class:{active:this.open},onClick:this.onClick},t("div",{class:"label"},t("slot",{name:"label"}),t("duet-icon",{theme:this.theme,class:"caret",name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),t("div",{class:{"menu-container":!0,hidden:!this.open},role:"presentation"},t("div",{role:this.mobile?"menu":null,id:"menu","aria-labelledby":this.mobile?"button":null,"aria-expanded":this.mobile?this.open?"true":"false":null,class:{items:!0,hidden:!this.open},ref:e=>this.itemsContainer=e},t("div",{class:"list",role:this.mobile?"presentation":"list"},t("slot",null),t("div",{class:"list-padding"}))),t("div",{class:"mobile-background"}))))}get element(){return s(this)}static get watchers(){return{open:["watchOpenStateHandler"]}}};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%}:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:none}@media (min-width: 62em){:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:inherit}}.duet-submenu-bar{position:relative;background:rgb(243, 249, 252)}.duet-submenu-bar .shadow-container{position:absolute;width:100%;height:100%;overflow:hidden}.duet-submenu-bar .shadow-container .top-shadow{position:absolute;top:-52px;width:100%;height:52px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07)}@media (min-width: 62em){.duet-submenu-bar .shadow-container .top-shadow{top:-80px;height:80px;box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}@media (min-width: 62em){.duet-submenu-bar{border-bottom:1px solid rgb(205, 229, 241)}}.duet-submenu-bar button{display:flex;align-items:center;justify-content:center;width:100%;padding:12px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 41, 77)}.duet-submenu-bar button.active .caret{transform:rotate(180deg)}.duet-submenu-bar button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar button .label{position:relative;display:flex;gap:8px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar button{display:none}}.duet-submenu-bar .menu-container{position:absolute;z-index:399;width:100%}.duet-submenu-bar .menu-container.hidden{max-height:0;overflow:hidden;visibility:hidden}@media (min-width: 62em){.duet-submenu-bar .menu-container,.duet-submenu-bar .menu-container.hidden{position:static;z-index:auto;max-height:unset;overflow:visible;visibility:visible}}.duet-submenu-bar .items{width:100%;height:70vh;overflow-y:scroll;visibility:visible;background:rgb(243, 249, 252);border-bottom:1px solid rgb(207, 210, 212)}.duet-submenu-bar .items ::slotted(*){position:relative}.duet-submenu-bar .items.hidden{max-height:0;overflow:hidden;visibility:hidden;border-bottom:0 solid rgb(207, 210, 212)}.duet-submenu-bar .items .list-padding{padding-bottom:188px}@media (min-width: 62em){.duet-submenu-bar .items .list{display:flex;align-items:center;justify-content:space-between;height:100%}.duet-submenu-bar .items,.duet-submenu-bar .items.hidden{position:static;z-index:auto;display:flex;flex-direction:row;align-items:center;justify-content:center;height:auto;max-height:unset;overflow:visible;visibility:visible;border:0}.duet-submenu-bar .items .list-padding{display:none;padding-bottom:0}}.duet-submenu-bar .mobile-background{position:absolute;width:100%;height:100%;background:rgba(0, 41, 77, 0.6)}@media (min-width: 62em){.duet-submenu-bar .mobile-background{display:none}}.duet-submenu-bar.duet-theme-turva{background:rgb(245, 245, 247);border-bottom:1px solid rgb(228, 228, 230)}.duet-submenu-bar.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar.duet-theme-turva .items{background:rgb(245, 245, 247)}.duet-submenu-bar.duet-theme-turva .mobile-background{background:rgba(23, 28, 58, 0.6)}.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}';export{d as duet_submenu_bar}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as e,h as i,H as o,g as s}from"./p-41363488.js";import{d as a,e as d}from"./p-141e14d0.js";import{i as n}from"./p-d48735b6.js";import{F as l}from"./p-115e5a74.js";import{f as r}from"./p-cc1909de.js";import{a as h,c as u,d as p,g as c}from"./p-4883df66.js";import{T as m}from"./p-24853ebf.js";import{g}from"./p-0b31864f.js";import"./p-1a395a8d.js";import"./p-f1d51e20.js";const b=class{constructor(i){t(this,i),this.duetSlideoutEvent=e(this,"duetSlideoutEvent",7),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.handleBodyScrolling=()=>{this.displaying&&this.open?a(this.dialog,{reserveScrollBarGap:!0}):d(this.dialog)},this.toggleMenu=t=>{if(this.open=!this.open,this.openButton&&(this.openButton.accessibleExpanded=this.open),this.duetSlideoutEvent.emit({originalEvent:t,data:{element:this.element,open:this.open},component:"duet-slideout"}),this.open){const t=this.element.querySelector("duet-slideout-panel[open]");this.teleport.go(!0),t?(t.setFocus(),this.handleBodyScrolling()):setTimeout((()=>{this.closeButton.focus(),this.handleBodyScrolling()}),200)}else setTimeout((()=>{var t;null===(t=this.openButton)||void 0===t||t.setFocus(),this.handleBodyScrolling(),this.teleport.resume()}),200)},this.onClick=t=>{this.toggleMenu(t)},this.language=h(),this.displaying=!1,this.theme="",this.open=!1,this.opener=void 0,this.backgroundColor="gray-lightest"}async toggle(){const t=new CustomEvent("toggle");this.toggleMenu(t),setTimeout((()=>{this.closeButton.focus()}),200)}async show(){if(this.open)return;const t=document.activeElement;t&&(t.accessiblePopup="true",this.openButton=t),this.toggleMenu(new CustomEvent("toggle"))}async hide(){this.open&&this.toggleMenu(new CustomEvent("toggle"))}componentWillLoad(){n(this);const t=this.opener&&document.getElementById(this.opener);t&&(t.accessiblePopup="true",t.accessibleExpanded=!1,t.addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault(),this.openButton=t,this.onClick(e)}))),this.teleport=new m(this.element)}async componentDidLoad(){this.intersectionObserver=new IntersectionObserver((t=>{this.displaying=!!t[0].isIntersecting,this.handleBodyScrolling()})),this.intersectionObserver.observe(this.dialog)}connectedCallback(){u(this)}disconnectedCallback(){p(this),d(this.dialog),this.intersectionObserver.disconnect()}handleKeyUp(t){r(t)&&this.open&&this.toggleMenu(t)}async setFocus(t){var e;null===(e=this.openButton)||void 0===e||e.focus(t)}render(){const t={background:g(this.backgroundColor,this.theme)},e=c(this.exitLangObject);return i(o,null,i("div",{class:{"duet-slideout":!0,"duet-theme-turva":"turva"===this.theme}},i("div",{class:{"desktop-bg":!0,hidden:!this.open},onClick:()=>{this.open=!1}}),i("div",{ref:t=>this.dialog=t,tabindex:"-1",role:"dialog",id:"dialog","aria-labelledby":"button","aria-modal":!this.isSafariBrowser,"aria-flowto":"menubar",class:{dialog:!0,hidden:!this.open},style:t},i(l,{moveFocusTo:this.closeButton}),i("div",{class:"top"},i("button",{ref:t=>this.closeButton=t,"aria-haspopup":"dialog","aria-controls":"dialog","aria-expanded":this.open?"true":"false","aria-label":`${e}`,type:"button",class:{"slideout-close":!0,active:this.open},onClick:this.onClick},i("duet-icon",{name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),i("div",{id:"menubar",role:"menubar",class:{items:!0}},i("slot",null)),i(l,{moveFocusTo:this.closeButton}))))}get element(){return s(this)}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}:host slot:not([name=toggle])::slotted(*){position:relative;visibility:hidden;opacity:0}:host([open]) slot:not([name=toggle])::slotted(*){visibility:visible;opacity:1}:host(:not([open])) ::slotted(duet-slideout-panel){display:none}.duet-slideout{display:flex;align-items:center;height:100%}.duet-slideout .desktop-bg{display:none}@media (min-width: 62em){.duet-slideout .desktop-bg{position:fixed;top:0;left:0;z-index:400;display:block;width:100%;height:100%;visibility:hidden;background:rgba(0, 41, 77, 0.6);opacity:0;transition:600ms ease}.duet-slideout .desktop-bg:not(.hidden){visibility:visible;opacity:1;transition:600ms ease}}@media (min-width: 62em){.duet-slideout.duet-theme-turva .desktop-bg{background:rgba(23, 28, 58, 0.6)}}.duet-slideout .dialog{position:fixed;top:0;bottom:0;left:0;z-index:400;width:100%;height:100%;padding-bottom:75px;overflow-y:auto;box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1) inset}@media (min-width: 62em){.duet-slideout .dialog{right:0;left:auto;width:500px;padding-bottom:0;transition:right 300ms ease;transition-delay:0s}}.duet-slideout .dialog .top{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;padding:4px}.duet-slideout .dialog .top button{cursor:pointer}.duet-slideout .dialog .top button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout .dialog .top duet-icon{padding:16px}.duet-slideout .dialog .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;padding:0 1.5rem}.duet-slideout .dialog.hidden{pointer-events:none;visibility:hidden}@media (min-width: 62em){.duet-slideout .dialog.hidden{right:-500px;transition:300ms ease}}.duet-slideout.duet-theme-turva .dialog{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1) inset}.duet-slideout.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout.duet-theme-turva button.active{color:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva button.active::after{background:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva .dialog .top button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}::slotted(*){width:100%}slot{color:rgb(0, 41, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}slot[name=toggle]{color:inherit}';export{b as duet_slideout}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as t,h as i,H as n,g as o}from"./p-41363488.js";import{a,c as r}from"./p-64d43840.js";import{i as s}from"./p-d48735b6.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);const e=Array.from(this.element.children);for(const t of e)if("center"===t.getAttribute("slot"))for(const e of Array.from(t.children))e.setAttribute("role","listitem");else if("right"===t.getAttribute("slot"))for(const e of Array.from(t.children))e.setAttribute("role","listitem")}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;width:100%}.duet-menu-bar{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 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function r(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):o(t.value).then(r,a)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(t){return function(e){return u([t,e])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(i=0)),i)try{if(n=1,o&&(s=a[0]&2?o["return"]:a[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,a[1])).done)return s;if(o=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(a[0]===6&&i.label<s[1]){i.label=s[1];s=a;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(a);break}if(s[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];o=0}finally{n=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-c7b04440.system.js","./p-ed5a5071.system.js","./p-77b6e4ba.system.js","./p-dc059577.system.js","./p-8d0d6e06.system.js","./p-8972381a.system.js","./p-ecf1f6cd.system.js","./p-719b38fe.system.js","./p-b99c00fa.system.js","./p-9d033a04.system.js"],(function(t){"use strict";var e,i,n,o,s,r,a,u,d,l,c,f,h,p,g,b;return{setters:[function(t){e=t.r;i=t.c;n=t.h;o=t.H;s=t.g},function(t){r=t.d;a=t.e},function(t){u=t.i},function(t){d=t.F},function(t){l=t.f},function(t){c=t.a;f=t.c;h=t.d;p=t.g},function(t){g=t.T},function(t){b=t.g},function(){},function(){}],execute:function(){var m='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}:host slot:not([name=toggle])::slotted(*){position:relative;visibility:hidden;opacity:0}:host([open]) slot:not([name=toggle])::slotted(*){visibility:visible;opacity:1}:host(:not([open])) ::slotted(duet-slideout-panel){display:none}.duet-slideout{display:flex;align-items:center;height:100%}.duet-slideout .desktop-bg{display:none}@media (min-width: 62em){.duet-slideout .desktop-bg{position:fixed;top:0;left:0;z-index:400;display:block;width:100%;height:100%;visibility:hidden;background:rgba(0, 41, 77, 0.6);opacity:0;transition:600ms ease}.duet-slideout .desktop-bg:not(.hidden){visibility:visible;opacity:1;transition:600ms ease}}@media (min-width: 62em){.duet-slideout.duet-theme-turva .desktop-bg{background:rgba(23, 28, 58, 0.6)}}.duet-slideout .dialog{position:fixed;top:0;bottom:0;left:0;z-index:400;width:100%;height:100%;padding-bottom:75px;overflow-y:auto;box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1) inset}@media (min-width: 62em){.duet-slideout .dialog{right:0;left:auto;width:500px;padding-bottom:0;transition:right 300ms ease;transition-delay:0s}}.duet-slideout .dialog .top{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;padding:4px}.duet-slideout .dialog .top button{cursor:pointer}.duet-slideout .dialog .top button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout .dialog .top duet-icon{padding:16px}.duet-slideout .dialog .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;padding:0 1.5rem}.duet-slideout .dialog.hidden{pointer-events:none;visibility:hidden}@media (min-width: 62em){.duet-slideout .dialog.hidden{right:-500px;transition:300ms ease}}.duet-slideout.duet-theme-turva .dialog{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1) inset}.duet-slideout.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout.duet-theme-turva button.active{color:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva button.active::after{background:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva .dialog .top button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}::slotted(*){width:100%}slot{color:rgb(0, 41, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}slot[name=toggle]{color:inherit}';var v=t("duet_slideout",function(){function t(t){var n=this;e(this,t);this.duetSlideoutEvent=i(this,"duetSlideoutEvent",7);this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"};this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.handleBodyScrolling=function(){if(n.displaying&&n.open){r(n.dialog,{reserveScrollBarGap:true})}else{a(n.dialog)}};this.toggleMenu=function(t){n.open=!n.open;if(n.openButton){n.openButton.accessibleExpanded=n.open}n.duetSlideoutEvent.emit({originalEvent:t,data:{element:n.element,open:n.open},component:"duet-slideout"});if(n.open){var e=n.element.querySelector("duet-slideout-panel[open]");n.teleport.go(true);if(e){e.setFocus();n.handleBodyScrolling()}else{setTimeout((function(){n.closeButton.focus();n.handleBodyScrolling()}),200)}}else{setTimeout((function(){var t;(t=n.openButton)===null||t===void 0?void 0:t.setFocus();n.handleBodyScrolling();n.teleport.resume()}),200)}};this.onClick=function(t){n.toggleMenu(t)};this.language=c();this.displaying=false;this.theme="";this.open=false;this.opener=undefined;this.backgroundColor="gray-lightest"}t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){t=new CustomEvent("toggle");this.toggleMenu(t);setTimeout((function(){e.closeButton.focus()}),200);return[2]}))}))};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(this.open){return[2]}t=document.activeElement;if(t){t.accessiblePopup="true";this.openButton=t}this.toggleMenu(new CustomEvent("toggle"));return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.open){return[2]}this.toggleMenu(new CustomEvent("toggle"));return[2]}))}))};t.prototype.componentWillLoad=function(){var t=this;u(this);var e=this.opener&&document.getElementById(this.opener);if(e){e.accessiblePopup="true";e.accessibleExpanded=false;e.addEventListener("click",(function(i){i.stopPropagation();i.preventDefault();t.openButton=e;t.onClick(i)}))}this.teleport=new g(this.element)};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this.intersectionObserver=new IntersectionObserver((function(e){if(e[0].isIntersecting){t.displaying=true}else{t.displaying=false}t.handleBodyScrolling()}));this.intersectionObserver.observe(this.dialog);return[2]}))}))};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){h(this);a(this.dialog);this.intersectionObserver.disconnect()};t.prototype.handleKeyUp=function(t){if(l(t)){if(this.open){this.toggleMenu(t)}}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){(e=this.openButton)===null||e===void 0?void 0:e.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;var e={background:b(this.backgroundColor,this.theme)};var i=p(this.exitLangObject);return n(o,null,n("div",{class:{"duet-slideout":true,"duet-theme-turva":this.theme==="turva"}},n("div",{class:{"desktop-bg":true,hidden:!this.open},onClick:function(){t.open=false}}),n("div",{ref:function(e){return t.dialog=e},tabindex:"-1",role:"dialog",id:"dialog","aria-labelledby":"button","aria-modal":this.isSafariBrowser?false:true,"aria-flowto":"menubar",class:{dialog:true,hidden:!this.open},style:e},n(d,{moveFocusTo:this.closeButton}),n("div",{class:"top"},n("button",{ref:function(e){return t.closeButton=e},"aria-haspopup":"dialog","aria-controls":"dialog","aria-expanded":this.open?"true":"false","aria-label":"".concat(i),type:"button",class:{"slideout-close":true,active:this.open},onClick:this.onClick},n("duet-icon",{name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),n("div",{id:"menubar",role:"menubar",class:{items:true}},n("slot",null)),n(d,{moveFocusTo:this.closeButton}))))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());v.style=m}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,h as e,H as o,g as a,c as i}from"./p-41363488.js";import{i as n}from"./p-d48735b6.js";import{g as s,c as r,d,a as l}from"./p-4883df66.js";import{c as b}from"./p-45f71a69.js";import{d as c,b as u,a as h,c as p}from"./p-cc1909de.js";import"./p-1a395a8d.js";const g=class{constructor(e){t(this,e),this.currentIndex=0,this.tabListElement=void 0,this.tabListClass="duet-scrollable-list",this.hasCollapseButtonLabelSlot=!1,this.resizeObserver=new ResizeObserver((t=>{var e,o,a,i;if(1===(null==t?void 0:t.length)){const n=null===(o=null===(e=t[0])||void 0===e?void 0:e.target)||void 0===o?void 0:o.getBoundingClientRect().width,s=null===(i=null===(a=t[0])||void 0===a?void 0:a.target)||void 0===i?void 0:i.scrollWidth;this.isTabContentSmallerThanWrapper=s>n+5}})),this.collapsedOnClick=()=>{this.collapsed=!this.collapsed},this.tablistAtStart=!0,this.isTabContentSmallerThanWrapper=!1,this.tablistAtEnd=!1,this.childrenData={},this.theme="",this.identifier="",this.collapsed=!1,this.buttons=!0,this.center=!1,this.selected=0}watchPropHandler(t){this.scrollToTab(t,"center")}componentWillLoad(){n(this),this.hasCollapseButtonLabelSlot=!!this.element.querySelector(":scope > [slot='collapse-button-label']");const t=this.element.querySelectorAll(":scope > :not([slot='collapse-button-label'])");this.childrenData={hasChildren:t&&t.length>0,numberOfChildren:t&&t.length}}componentDidLoad(){this.resizeObserver.observe(this.tabListElement)}disconnectedCallback(){this.resizeObserver.disconnect()}getLastVisibleElement(){const t=this.tabListElement.clientWidth;return Array.from(this.element.querySelectorAll("button")).findIndex((e=>e.getBoundingClientRect().x>t))}getFirstVisibleElement(){const t=this.element.querySelectorAll("button");return Array.from(t).map((t=>t.getBoundingClientRect().x-t.getBoundingClientRect().width)).findIndex((t=>t>0))}updateScrollButtons(t=this.tabListElement){this.buttons&&(t.scrollLeft<=0?this.tablistAtStart=!0:t.scrollLeft>0&&(this.tablistAtStart=!1),t.clientWidth+t.scrollLeft+10>=t.scrollWidth?this.tablistAtEnd=!0:t.clientWidth+t.scrollLeft+10<t.scrollWidth&&(this.tablistAtEnd=!1))}scrollToTab(t=this.currentIndex,e){if(!this.childrenData.hasChildren)return;t+1>=this.childrenData.numberOfChildren&&(t=this.childrenData.numberOfChildren-1),t<0&&(t=0);const o=this.element.querySelectorAll("button");let a=o[0].getBoundingClientRect().x,i=5;const n=()=>{if(o[0].getBoundingClientRect().x===a){if(i--,0!==i)return void window.requestAnimationFrame(n);this.updateScrollButtons()}else window.requestAnimationFrame(n),a=o[0].getBoundingClientRect().x};o[t].scrollIntoView({behavior:"smooth",inline:e}),window.requestAnimationFrame(n)}scrollLeft(){this.tablistAtEnd=!1;const t=this.getFirstVisibleElement()-1;this.scrollToTab(t,"center")}scrollRight(){this.tablistAtStart=!1;const t=this.getLastVisibleElement()+1;this.scrollToTab(t,"center")}render(){return e(o,{class:{"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme}},this.hasCollapseButtonLabelSlot&&e("div",{class:{collapse:!0,hide:!this.isTabContentSmallerThanWrapper&&!this.collapsed}},e("duet-button",{variation:"plain",margin:"none","center-text":!0,onClick:()=>this.collapsedOnClick()},e("slot",{name:"collapse-button-label"}))),e("div",{class:{"duet-scrollable-items":!0,buttons:this.buttons,center:this.center}},e("button",{part:`${this.identifier}-button-left`,"aria-hidden":"true",class:{"duet-scrollable-button":!0,"duet-scrollable-button--left":!0,"duet-scrollable-button--occluded":!this.isTabContentSmallerThanWrapper},onClick:()=>this.scrollLeft(),disabled:this.tablistAtStart,tabindex:"-1",hidden:!this.buttons},e("duet-icon",{name:"action-arrow-left-small",size:"small",margin:"none"})),e("div",{class:{[this.tabListClass]:!0,collapsed:this.collapsed},onScroll:()=>this.updateScrollButtons(),ref:t=>this.tabListElement=t},e("slot",null)),e("button",{part:`${this.identifier}-button-right`,"aria-hidden":"true",class:{"duet-scrollable-button":!0,"duet-scrollable-button--right":!0,"duet-scrollable-button--occluded":!this.isTabContentSmallerThanWrapper},onClick:()=>this.scrollRight(),disabled:this.tablistAtEnd,tabindex:"-1",hidden:!this.buttons},e("duet-icon",{name:"action-arrow-right-small",size:"small",margin:"none"}))))}get element(){return a(this)}static get watchers(){return{selected:["watchPropHandler"]}}};g.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;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{display:flex}:host .duet-scrollable-items .duet-scrollable-button{position:relative;flex:0 0 auto;flex-basis:40px;padding:10px;cursor:pointer}:host .duet-scrollable-items .duet-scrollable-button:active{transform:scale(0.8)}:host .duet-scrollable-items .duet-scrollable-button--left{left:-12px}:host .duet-scrollable-items .duet-scrollable-button--right{right:-12px}:host .duet-scrollable-items .duet-scrollable-button--occluded{visibility:hidden}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;gap:20px;padding-top:2px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-margin:0 20px;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){scroll-snap-align:center;margin-left:0;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out}";const m=class{constructor(e){t(this,e),this.label=void 0,this.caption=void 0,this.selected=void 0,this.accessibleDescriptionDefault=null,this.accessibleDescription=this.accessibleDescriptionDefault?s(this.accessibleDescriptionDefault):null,this.accessibleLabelledBy=void 0}connectedCallback(){r(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"})}disconnectedCallback(){d(this)}render(){return e("div",{role:"tabpanel",class:{"duet-tab":!0,selected:this.selected},"aria-description":this.accessibleDescription,"aria-labelledby":this.accessibleLabelledBy},e("slot",null))}get element(){return a(this)}};m.style=".sc-duet-tab-h{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-tab.sc-duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected.sc-duet-tab{display:block}";const k=class{constructor(o){t(this,o),this.duetChange=i(this,"duetChange",3),this.duetTabChange=i(this,"duetTabChange",7),this.duetTabChangeRequested=i(this,"duetTabChangeRequested",7),this.id=b("DuetTabGroup"),this.handleKeyDown=t=>{let e;c(t)||u(t)?e=t.target.previousElementSibling:(h(t)||p(t))&&(e=t.target.nextElementSibling),e&&(t.preventDefault(),e.click(),e.focus())},this.onTabSelect=t=>{this.tabChangeConfirm?t!==this.selected&&this.duetTabChangeRequested.emit({value:t,component:"duet-tab-group"}):this.openTab(t)},this.scrollToActive=()=>{"checked"!==this.variation&&"plain-scrolling"!==this.variation||setTimeout((()=>{const t=this.tabsContainer.querySelector(".selected");t&&t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}),50)},this.renderTab=()=>{const t=this.tabs.map(((t,o)=>e("button",{role:"tab",id:this.getButtonId(o),"aria-controls":this.getTabId(o),"aria-selected":t.selected?"true":"false","aria-description":this.getAccessibleDescription(o),tabindex:0===o?"0":"-1",part:`${this.identifier}-button ${t.selected?`${this.identifier}-button--selected`:""}`,type:"button",class:{"duet-p-0":"none"===this.padding,"duet-tab-button":!0,"stackable-tab":"checked"===this.variation&&this.tabs.length<=3,selected:t.selected},onClick:()=>this.onTabSelect(o),onKeyDown:t=>this.handleKeyDown(t)},"checked"===this.variation?e("div",{class:{"checked-tab-content":!0,"stackable-checked-tab-content":this.tabs.length<=3}},e("div",{class:{"checked-tab-description":!0,"stackable-description":this.tabs.length<=3}},e("p",null,t.label),e("p",{class:{"tab-caption":!0,selected:t.selected}},t.caption)),e("div",{class:{"stackable-checkmark":this.tabs.length<=3}},e("duet-checkmark",{theme:this.theme,checked:t.selected,type:"radio","presentation-only":!0,center:!0}))):t.label)));return this.scrolls?e("duet-scrollable",{selected:this.selected,identifier:this.identifier},t):t},this.tabs=[],this.selected=void 0,this.theme="",this.scrolls=!1,this.collapses=!0,this.accessibleLabel=void 0,this.variation="default",this.language=l(),this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"},this.label=s(this.labelDefaults,this.language),this.labelHidden=!0,this.identifier=this.id,this.margin="auto",this.padding="auto",this.setTabIndex=!1,this.tabChangeConfirm=!1}async connectedCallback(){"undefined"!=typeof MutationObserver&&(this.mutationO=new MutationObserver((()=>{this.updateTabs()})),this.mutationO.observe(this.element,{attributes:!0,attributeFilter:["label"],childList:!0,characterData:!0,subtree:!0})),await this.updateTabs()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentWillLoad(){n(this)}componentDidLoad(){this.scrollToActive()}async openTab(t){if(t>=this.tabs.length)throw new Error(`[duet-tabs] Index ${t} is out of bounds of tabs length`);this.selected=t,this.tabs.forEach(((e,o)=>{e.selected=o===t})),this.scrollToActive();const e={value:t,component:"duet-tab-group"};this.duetChange.emit(e),this.duetTabChange.emit(e)}async refresh(){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.")}getTabs(){const t=Array.from(this.element.querySelectorAll("duet-tab")).filter((t=>t.closest("duet-tab-group")===this.element));if(0===t.length)throw new Error("[duet-tabs] Must have at least one tab");return t}getButtonId(t){return`${this.id}-button-${t}`}getTabId(t){return`${this.id}-tab-${t}`}getAccessibleDescription(t){return this.tabs[t].getAttribute("accessible-description")||null}async updateTabs(){this.selected=void 0,this.tabs=this.getTabs(),this.tabs.forEach(((t,e)=>{t.id=this.getTabId(e),t.setAttribute("accessible-labelled-by",this.getButtonId(e)),t.selected&&(void 0===this.selected?this.selected=e:t.selected=!1)})),void 0===this.selected&&(this.selected=0,this.tabs[0].selected=!0)}render(){const t="checked"===this.variation||"plain-scrolling"===this.variation;return e("div",{class:{"duet-tab-group":!0,"duet-theme-turva":"turva"===this.theme,["plain-scrolling"===this.variation?"duet-tab-variation-plain":`duet-tab-variation-${this.variation}`]:!0,"duet-tab-plain-scrolling":"plain-scrolling"===this.variation,"duet-tab-group-scrolls":this.scrolls,"duet-tab-group-collapses":this.collapses},"aria-label":this.accessibleLabel},!t&&this.tabs.length>3&&this.collapses&&e("duet-select",{value:this.selected.toString(),expand:!0,label:this.label,labelHidden:this.labelHidden,theme:this.theme,onDuetChange:t=>this.onTabSelect(Number(t.detail.value)),items:this.tabs.map(((t,e)=>({label:t.label,value:e.toString()})))}),e("div",{role:"tablist",class:{"duet-m-0":"none"===this.margin||"checked"===this.variation,"duet-tab-group-tabs":!0,"duet-tab-group-hidden":this.tabs.length>3&&!t,"duet-tab-group-collapses":this.collapses},ref:t=>{this.tabsContainer=t}},this.renderTab()),e("div",{role:"tabpanel",tabindex:this.setTabIndex?null:"0",class:{"duet-tab-group-content":!0,"duet-m-0":"none"===this.margin,"checked-group-content":"checked"===this.variation}},e("slot",null)))}get element(){return a(this)}};k.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;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:none}@media (min-width: 36em){.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:block}}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(228, 228, 230)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:20px;margin-top:-2px;overflow:visible;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.1;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer;background:rgb(255, 255, 255);border:2px solid rgb(225, 227, 230);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-theme-turva .duet-tab-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(228, 228, 230)}.duet-tab-button.duet-p-0{padding:0 !important}@media (min-width: 36em){.duet-tab-button{display:inline-block;width:auto;margin-left:-2px;border-right:2px solid rgb(225, 227, 230);border-radius:0}}.duet-tab-button:hover{z-index:200;border-color:rgb(144, 149, 153)}.duet-theme-turva .duet-tab-button:hover{border-color:rgb(116, 116, 117)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(255, 255, 255);background:rgb(0, 41, 77);border-color:rgb(0, 41, 77);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(255, 255, 255);background-color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-tab-button:focus{z-index:200;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}:host(.user-is-tabbing) .duet-theme-turva .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-button:first-child{border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.duet-tab-button:first-child{border-top-right-radius:0;border-bottom-left-radius:4px}}.duet-tab-button:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-tab-button:last-child{border-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding-right:0;padding-left:0;margin-left:0;border:0;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(198, 12, 48);border-bottom-color:rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-basis:0;flex-grow:1;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(207, 210, 212);border-bottom-color:rgb(0, 119, 179);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(207, 210, 212);border-bottom-color:rgb(68, 68, 69)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(243, 249, 252) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 245, 247) 0%, rgb(255, 255, 255) 100%);border-color:rgb(68, 68, 69);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(101, 119, 135)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(68, 68, 69)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(68, 68, 69)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-align:left}.duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-tab-group-content:focus,.duet-tab-group-content:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{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-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(68, 68, 69)}';export{g as duet_scrollable,m as duet_tab,k as duet_tab_group}
|