@duetds/components 9.0.2 → 9.1.1
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 +859 -164
- package/lib/cjs/{app-globals-ea68dfa3.js → app-globals-bbbc26ee.js} +1 -1
- package/lib/cjs/body-scroll-dba42314.js +237 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +5 -5
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-banner.cjs.entry.js +5 -5
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +3 -3
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
- package/lib/cjs/duet-button_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-callout.cjs.entry.js +2 -2
- package/lib/cjs/duet-caption_4.cjs.entry.js +5 -5
- package/lib/cjs/duet-card.cjs.entry.js +4 -4
- 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 +4 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +9 -5
- package/lib/cjs/duet-contact-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +8 -8
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +2 -2
- package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +8 -5
- package/lib/cjs/duet-header_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-hero.cjs.entry.js +5 -5
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-layout.cjs.entry.js +3 -3
- 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-item.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 +4 -4
- package/lib/cjs/duet-modal.cjs.entry.js +5 -5
- package/lib/cjs/duet-multiselect.cjs.entry.js +4 -4
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-overlay.cjs.entry.js +1 -1
- package/lib/cjs/duet-page-heading.cjs.entry.js +6 -5
- package/lib/cjs/duet-pagination_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-popup-menu.cjs.entry.js +2 -2
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +58 -38
- package/lib/cjs/duet-section-layout.cjs.entry.js +5 -5
- package/lib/cjs/duet-select.cjs.entry.js +3 -3
- package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
- package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +49 -13
- package/lib/cjs/duet-slideout.cjs.entry.js +15 -15
- package/lib/cjs/duet-step_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-textarea.cjs.entry.js +4 -4
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
- package/lib/cjs/duet-tray.cjs.entry.js +6 -6
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-fa515fad.js → errorcodes.utils-6fe27aab.js} +2 -2
- package/lib/cjs/{focus-utils-c8454b0e.js → focus-utils-b8926034.js} +1 -1
- package/lib/cjs/{index-77ef38d9.js → index-0c9fd2f8.js} +1 -1
- package/lib/cjs/{language-utils-48d507db.js → language-utils-8f7743a1.js} +2 -2
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-a914b77c.js → slot-utils-85cd307f.js} +1 -1
- package/lib/cjs/{string-utils-053749ff.js → string-utils-7b13c16e.js} +7 -0
- package/lib/cjs/{token-utils-2a219fda.js → token-utils-ecc7f5a1.js} +1 -1
- package/lib/cjs/{tokens-851fb0c9.js → tokens-1c133754.js} +252 -0
- package/lib/cjs/{tokens.module-3e57c188.js → tokens.module-cf303205.js} +168 -0
- package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-banner/duet-banner.js +1 -1
- package/lib/collection/components/duet-button/duet-button.js +5 -5
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +6 -6
- package/lib/collection/components/duet-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox-select.js +6 -1
- package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +7 -7
- package/lib/collection/components/duet-grid/duet-grid.css +187 -113
- package/lib/collection/components/duet-grid/duet-grid.js +5 -4
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +27 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +25 -2
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.css +12 -0
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-input/duet-input.js +8 -8
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.css +1 -0
- package/lib/collection/components/duet-layout/duet-layout.js +1 -1
- package/lib/collection/components/duet-list/duet-list.js +3 -3
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
- package/lib/collection/components/duet-modal/duet-modal.js +4 -4
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +6 -6
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +7 -0
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +7 -6
- package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +69 -40
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +76 -32
- package/lib/collection/components/duet-section-layout/duet-section-layout.css +1 -0
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
- package/lib/collection/components/duet-slideout/duet-slideout.js +6 -6
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +1 -0
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +48 -8
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-step/duet-step.js +3 -3
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
- package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +2 -2
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +14 -14
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/body-scroll.js +257 -0
- package/lib/collection/utils/string-utils.js +6 -0
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +5 -5
- package/lib/dist-custom-elements/duet-breadcrumb.js +4 -4
- package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +2 -2
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +5 -5
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +8 -8
- package/lib/dist-custom-elements/duet-choice.js +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +4 -4
- package/lib/dist-custom-elements/duet-combobox.js +19 -15
- package/lib/dist-custom-elements/duet-contact-card.js +9 -9
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +14 -14
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +8 -8
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
- package/lib/dist-custom-elements/duet-footer.js +9 -9
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +11 -11
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +12 -12
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +2 -2
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +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-item.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
- package/lib/dist-custom-elements/duet-modal.js +9 -9
- package/lib/dist-custom-elements/duet-multiselect.js +11 -11
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +5 -5
- package/lib/dist-custom-elements/duet-notification.js +3 -3
- package/lib/dist-custom-elements/duet-number-input.js +12 -12
- package/lib/dist-custom-elements/duet-overlay.js +1 -1
- package/lib/dist-custom-elements/duet-page-heading.js +7 -6
- package/lib/dist-custom-elements/duet-pagination.js +16 -16
- 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 +4 -4
- package/lib/dist-custom-elements/duet-radio-group.js +8 -8
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +3 -3
- package/lib/dist-custom-elements/duet-range-stepper.js +5 -5
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +5 -5
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
- package/lib/dist-custom-elements/duet-show-more.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +5 -5
- package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-slideout-panel.js +47 -10
- package/lib/dist-custom-elements/duet-slideout.js +10 -10
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +7 -6
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +7 -7
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar.js +9 -9
- package/lib/dist-custom-elements/duet-tab-group.js +14 -14
- package/lib/dist-custom-elements/duet-tab.js +3 -3
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +11 -11
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-toolbar-item.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar.js +3 -3
- package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +7 -7
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload-item.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +21 -21
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-917183fc.js → p-003f07d0.js} +2 -2
- package/lib/dist-custom-elements/{p-5d662897.js → p-08ba0c8e.js} +3 -3
- package/lib/dist-custom-elements/{p-a72e5b7a.js → p-092cf346.js} +1 -1
- package/lib/dist-custom-elements/{p-5a3e8d37.js → p-0f98be73.js} +4 -4
- package/lib/dist-custom-elements/p-1195ba92.js +81 -0
- package/lib/dist-custom-elements/{p-6c76ef5f.js → p-13259f25.js} +5 -5
- package/lib/dist-custom-elements/p-151ba4af.js +194 -0
- package/lib/dist-custom-elements/{p-30bd8b81.js → p-1a0717b2.js} +6 -6
- package/lib/dist-custom-elements/{p-49e5becc.js → p-203e91c1.js} +6 -6
- package/lib/dist-custom-elements/{p-7acaa80f.js → p-2ad70bfb.js} +3 -3
- package/lib/dist-custom-elements/{p-98e97672.js → p-2f3cb54b.js} +4 -4
- package/lib/dist-custom-elements/{p-7915de0a.js → p-317b4bb8.js} +1 -1
- package/lib/dist-custom-elements/{p-2686d381.js → p-33a40488.js} +2 -2
- package/lib/dist-custom-elements/{p-0c1a8c61.js → p-41222b8d.js} +2 -2
- package/lib/dist-custom-elements/{p-dbd3f1f5.js → p-4c7eab86.js} +2 -2
- package/lib/dist-custom-elements/{p-e107da9a.js → p-4e2ad0e0.js} +2 -2
- package/lib/dist-custom-elements/{p-0c2421ed.js → p-5d15bc28.js} +5 -5
- package/lib/dist-custom-elements/{p-91d87226.js → p-5faf2571.js} +11 -11
- package/lib/dist-custom-elements/{p-646f2766.js → p-6b4d1a90.js} +3 -3
- package/lib/dist-custom-elements/{p-203ae2e7.js → p-6ded6ab0.js} +7 -7
- package/lib/dist-custom-elements/{p-23a36860.js → p-717f62de.js} +1 -1
- package/lib/dist-custom-elements/{p-813c3b7e.js → p-78c42188.js} +1 -1
- package/lib/dist-custom-elements/{p-3236c232.js → p-7a4e27a2.js} +7 -7
- package/lib/dist-custom-elements/{p-940209c1.js → p-7ecba39f.js} +1 -1
- package/lib/dist-custom-elements/{p-bc78082f.js → p-7f7ad9b6.js} +2 -2
- package/lib/dist-custom-elements/{p-ea482c86.js → p-8027f9ce.js} +2 -2
- package/lib/dist-custom-elements/{p-9bcfe1fd.js → p-9587e63e.js} +1 -1
- package/lib/dist-custom-elements/{p-a3706081.js → p-976cffee.js} +9 -9
- package/lib/dist-custom-elements/{p-0e052642.js → p-9c3c64b9.js} +7 -1
- package/lib/dist-custom-elements/{p-47c7860f.js → p-bcc759f6.js} +6 -6
- package/lib/dist-custom-elements/{p-a32bc785.js → p-c25a991b.js} +1 -1
- package/lib/dist-custom-elements/{p-6d323107.js → p-ccc48f38.js} +59 -38
- package/lib/{esm/tokens-a9d9d4dd.js → dist-custom-elements/p-d5c7ae62.js} +252 -0
- package/lib/dist-custom-elements/{p-b6ae3f0f.js → p-d656dd95.js} +1 -1
- package/lib/dist-custom-elements/{p-a427adbf.js → p-d7d32738.js} +2 -2
- package/lib/dist-custom-elements/{p-67ef919e.js → p-dc26d4a2.js} +168 -0
- package/lib/dist-custom-elements/{p-9b9d67cc.js → p-eca652e9.js} +1 -1
- package/lib/dist-custom-elements/{p-c2e792ff.js → p-f474833e.js} +1 -1
- package/lib/dist-custom-elements/{p-d2a380bb.js → p-f5199769.js} +12 -12
- package/lib/dist-custom-elements/{p-02005902.js → p-f58dfec6.js} +2 -2
- package/lib/dist-custom-elements/{p-fb0d43f7.js → p-fa97c257.js} +3 -3
- package/lib/dist-custom-elements/{p-3ec3eb5f.js → p-fac41d14.js} +1 -1
- package/lib/dist-custom-elements/p-fc09c464.js +234 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-b6db5cd9.system.entry.js → p-01e57a3b.system.entry.js} +1 -1
- package/lib/duet/{p-9a323612.entry.js → p-022f9a30.entry.js} +1 -1
- package/lib/duet/{p-d5a206c2.system.js → p-06ad5d11.system.js} +1 -1
- package/lib/duet/{p-62a6a013.system.entry.js → p-07802adc.system.entry.js} +1 -1
- package/lib/duet/{p-db0b37db.system.entry.js → p-07df4f67.system.entry.js} +1 -1
- package/lib/duet/{p-fd9cb821.entry.js → p-087fbd73.entry.js} +1 -1
- package/lib/duet/{p-a0cb7a26.entry.js → p-0bd39158.entry.js} +1 -1
- package/lib/duet/{p-1437b0fb.system.entry.js → p-0ce89e2e.system.entry.js} +1 -1
- package/lib/duet/{p-f684afe3.entry.js → p-0d0aa77d.entry.js} +1 -1
- package/lib/duet/{p-81b39f95.entry.js → p-0fa9b797.entry.js} +1 -1
- package/lib/duet/{p-07a3a4b2.entry.js → p-117dff79.entry.js} +1 -1
- package/lib/duet/{p-722a6c62.system.entry.js → p-11a2ab97.system.entry.js} +1 -1
- package/lib/duet/{p-cd686b5b.entry.js → p-1362dce1.entry.js} +1 -1
- package/lib/duet/{p-f8e658cc.entry.js → p-14ffc1f0.entry.js} +1 -1
- package/lib/duet/{p-c99d1412.system.entry.js → p-1512ddad.system.entry.js} +1 -1
- package/lib/duet/{p-31a0880f.entry.js → p-17279a7b.entry.js} +1 -1
- package/lib/duet/{p-1633785d.entry.js → p-18494c5d.entry.js} +1 -1
- package/lib/duet/{p-b18dd714.system.entry.js → p-18b40fa3.system.entry.js} +1 -1
- package/lib/duet/p-198dd1e6.entry.js +4 -0
- package/lib/duet/{p-4e7460f7.entry.js → p-1c4895df.entry.js} +1 -1
- package/lib/duet/{p-1e2ff860.entry.js → p-1f66ca2d.entry.js} +1 -1
- package/lib/duet/{p-e0a86887.system.entry.js → p-20490634.system.entry.js} +1 -1
- package/lib/duet/{p-866ce73e.system.entry.js → p-20b2b9af.system.entry.js} +1 -1
- package/lib/duet/{p-e6b8b574.entry.js → p-20e0094b.entry.js} +1 -1
- package/lib/duet/{p-8a6233b0.system.entry.js → p-21429748.system.entry.js} +1 -1
- package/lib/duet/{p-561420f0.entry.js → p-251392d6.entry.js} +1 -1
- package/lib/duet/{p-ce3c4f7c.entry.js → p-26c32975.entry.js} +1 -1
- package/lib/duet/p-26f57aa1.entry.js +4 -0
- package/lib/duet/{p-08890e7d.system.entry.js → p-2725220b.system.entry.js} +1 -1
- package/lib/duet/{p-d3cf62ab.system.entry.js → p-276354d7.system.entry.js} +1 -1
- package/lib/duet/p-2aa3dfc5.entry.js +4 -0
- package/lib/duet/{p-3a6b59f3.entry.js → p-2b92ea13.entry.js} +1 -1
- package/lib/duet/{p-e52a8c04.system.entry.js → p-2c40be98.system.entry.js} +1 -1
- package/lib/duet/p-2c4294f8.system.entry.js +4 -0
- package/lib/duet/{p-c1445714.system.js → p-2f891fbb.system.js} +1 -1
- package/lib/duet/p-335bfe63.entry.js +4 -0
- package/lib/duet/{p-4a899a1e.entry.js → p-36dab1b1.entry.js} +1 -1
- package/lib/duet/{p-31dfefa7.system.entry.js → p-36f89415.system.entry.js} +1 -1
- package/lib/duet/{p-8154981f.system.entry.js → p-3720efca.system.entry.js} +1 -1
- package/lib/duet/{p-ef7fa8fb.entry.js → p-382da2ee.entry.js} +1 -1
- package/lib/duet/p-389cd1f2.js +4 -0
- package/lib/duet/p-38c82b27.entry.js +4 -0
- package/lib/duet/{p-c0149766.entry.js → p-3f4a41a0.entry.js} +1 -1
- package/lib/duet/{p-7d1cc9e0.system.entry.js → p-3fb27027.system.entry.js} +1 -1
- package/lib/duet/{p-049e0344.system.entry.js → p-40c557ff.system.entry.js} +1 -1
- package/lib/duet/{p-cd172ca7.system.js → p-45746854.system.js} +1 -1
- package/lib/duet/p-4649b4a3.entry.js +4 -0
- package/lib/duet/{p-2e3cb88f.entry.js → p-494fc947.entry.js} +1 -1
- package/lib/duet/p-49ba4a7f.system.entry.js +4 -0
- package/lib/duet/{p-4019294d.system.entry.js → p-49da095c.system.entry.js} +1 -1
- package/lib/duet/{p-37497801.entry.js → p-4b5fdaa5.entry.js} +1 -1
- package/lib/duet/{p-b8b217c6.entry.js → p-4d0be2e2.entry.js} +1 -1
- package/lib/duet/{p-4e9b200c.system.entry.js → p-4efba746.system.entry.js} +1 -1
- package/lib/duet/p-50c83774.js +4 -0
- package/lib/duet/{p-2d76a7e9.entry.js → p-5395dceb.entry.js} +1 -1
- package/lib/duet/{p-c506e25e.entry.js → p-5765427b.entry.js} +1 -1
- package/lib/duet/{p-91131ad1.system.entry.js → p-5799fe5f.system.entry.js} +2 -2
- package/lib/duet/{p-2bcb1acd.system.entry.js → p-593b4911.system.entry.js} +1 -1
- package/lib/duet/{p-6c279a88.system.entry.js → p-613b429d.system.entry.js} +1 -1
- package/lib/duet/{p-b9d4ed8d.system.js → p-624552e4.system.js} +1 -1
- package/lib/duet/{p-b729cc91.system.entry.js → p-63f481c7.system.entry.js} +1 -1
- package/lib/duet/{p-27680688.system.entry.js → p-6435fa0f.system.entry.js} +1 -1
- package/lib/duet/{p-6e2f38e0.entry.js → p-64901815.entry.js} +1 -1
- package/lib/duet/{p-77f25e03.system.entry.js → p-64c3bff5.system.entry.js} +1 -1
- package/lib/duet/p-66819401.system.entry.js +4 -0
- package/lib/duet/p-69f68431.entry.js +4 -0
- package/lib/duet/{p-3d669958.system.entry.js → p-6b1eff48.system.entry.js} +1 -1
- package/lib/duet/{p-af32d23a.entry.js → p-6b76b443.entry.js} +1 -1
- package/lib/duet/p-6d32e2a5.entry.js +4 -0
- package/lib/duet/p-6e74ac45.system.entry.js +4 -0
- package/lib/duet/{p-f99bd1ae.entry.js → p-6e904090.entry.js} +1 -1
- package/lib/duet/{p-b0305a06.system.entry.js → p-6fc66353.system.entry.js} +1 -1
- package/lib/duet/{p-e12af479.system.js → p-7213e4f9.system.js} +1 -1
- package/lib/duet/{p-f5b3bfa2.entry.js → p-72e384da.entry.js} +1 -1
- package/lib/duet/p-74bfeccb.js +4 -0
- package/lib/duet/{p-e3607cb9.system.entry.js → p-77af0e90.system.entry.js} +1 -1
- package/lib/duet/{p-f80c4c88.system.entry.js → p-78b5469b.system.entry.js} +1 -1
- package/lib/duet/{p-3788db5a.system.js → p-78fe82c7.system.js} +1 -1
- package/lib/duet/{p-41681b12.entry.js → p-7b93c24f.entry.js} +1 -1
- package/lib/duet/p-7cb4b92c.system.entry.js +4 -0
- package/lib/duet/{p-fc308e26.entry.js → p-7d7efba3.entry.js} +1 -1
- package/lib/duet/p-7ed9e2a8.entry.js +4 -0
- package/lib/duet/{p-24c7bb10.system.entry.js → p-7f779fb0.system.entry.js} +1 -1
- package/lib/duet/{p-205485aa.system.entry.js → p-8464bb3e.system.entry.js} +2 -2
- package/lib/duet/{p-ec19c198.system.entry.js → p-84f32ade.system.entry.js} +1 -1
- package/lib/duet/{p-26fa8650.entry.js → p-863b1517.entry.js} +1 -1
- package/lib/duet/{p-b3c28d88.system.entry.js → p-8707a699.system.entry.js} +1 -1
- package/lib/duet/{p-0a858564.system.entry.js → p-8767b8b2.system.entry.js} +1 -1
- package/lib/duet/{p-a8d970a0.system.entry.js → p-87b3fb3e.system.entry.js} +1 -1
- package/lib/duet/{p-14668571.system.entry.js → p-888cf6df.system.entry.js} +1 -1
- package/lib/duet/{p-7d6b40d1.js → p-8a162701.js} +1 -1
- package/lib/duet/{p-bcbbf38f.system.entry.js → p-8afd53b2.system.entry.js} +1 -1
- package/lib/duet/{p-90852c89.entry.js → p-8bee0043.entry.js} +1 -1
- package/lib/duet/{p-befd80a8.system.entry.js → p-8ff34272.system.entry.js} +1 -1
- package/lib/duet/{p-cec00890.system.entry.js → p-90cfb998.system.entry.js} +1 -1
- package/lib/duet/p-91115d1e.system.js +4 -0
- package/lib/duet/{p-57cd8490.entry.js → p-920ab643.entry.js} +1 -1
- package/lib/duet/{p-01faaa37.system.entry.js → p-92466b4a.system.entry.js} +1 -1
- package/lib/duet/{p-6ef75455.system.js → p-98636086.system.js} +1 -1
- package/lib/duet/{p-4dc6516a.system.entry.js → p-9965b2bb.system.entry.js} +1 -1
- package/lib/duet/{p-022bb645.entry.js → p-9bfeb191.entry.js} +1 -1
- package/lib/duet/{p-0e052642.js → p-9c3c64b9.js} +1 -1
- package/lib/duet/{p-aea3bb6c.system.entry.js → p-9e927d04.system.entry.js} +1 -1
- package/lib/duet/{p-2ad7e778.system.entry.js → p-9fd3ced5.system.entry.js} +1 -1
- package/lib/duet/{p-47e5e138.system.entry.js → p-a0699de6.system.entry.js} +1 -1
- package/lib/duet/{p-822b290a.entry.js → p-a209fed5.entry.js} +1 -1
- package/lib/duet/{p-c6c02f20.system.entry.js → p-a2301b59.system.entry.js} +1 -1
- package/lib/duet/{p-3f307671.entry.js → p-a24aa183.entry.js} +1 -1
- package/lib/duet/{p-d283b94b.js → p-a376dd1d.js} +1 -1
- package/lib/duet/{p-654abd38.entry.js → p-a3e5abb2.entry.js} +1 -1
- package/lib/duet/{p-e4077171.system.entry.js → p-a47059b7.system.entry.js} +1 -1
- package/lib/duet/{p-7af1306c.entry.js → p-a56e060b.entry.js} +1 -1
- package/lib/duet/p-a79114c3.system.entry.js +4 -0
- package/lib/duet/p-a7e281f2.system.entry.js +4 -0
- package/lib/duet/{p-950a1ca8.system.entry.js → p-a843b8a9.system.entry.js} +1 -1
- package/lib/duet/{p-3db5f59f.entry.js → p-a918531a.entry.js} +1 -1
- package/lib/duet/{p-9829ea64.system.entry.js → p-a91a3cf2.system.entry.js} +1 -1
- package/lib/duet/{p-5fe66e38.entry.js → p-a9ed4cb0.entry.js} +1 -1
- package/lib/duet/p-aaa77eee.entry.js +4 -0
- package/lib/duet/{p-dc21c27a.entry.js → p-ac0130a8.entry.js} +1 -1
- package/lib/duet/p-ae095513.entry.js +4 -0
- package/lib/duet/{p-85acf080.system.js → p-b01fbe26.system.js} +1 -1
- package/lib/duet/{p-2f840cf0.system.entry.js → p-b08d87b0.system.entry.js} +1 -1
- package/lib/duet/{p-f71e27e4.entry.js → p-b2b147c9.entry.js} +1 -1
- package/lib/duet/{p-9f10e97c.entry.js → p-b2eb57ef.entry.js} +1 -1
- package/lib/duet/{p-d161b8f7.system.entry.js → p-b35f871e.system.entry.js} +1 -1
- package/lib/duet/{p-c7c73778.system.entry.js → p-b4ed38ea.system.entry.js} +1 -1
- package/lib/duet/{p-199129a0.entry.js → p-b5074ff6.entry.js} +1 -1
- package/lib/duet/{p-86375ce8.entry.js → p-b6269765.entry.js} +1 -1
- package/lib/duet/{p-6c2c7e28.system.entry.js → p-b7166c29.system.entry.js} +1 -1
- package/lib/duet/{p-4ca01f5c.entry.js → p-b7453f14.entry.js} +1 -1
- package/lib/duet/p-b832a5eb.system.entry.js +4 -0
- package/lib/duet/{p-1af2bfd6.entry.js → p-b85b3fb8.entry.js} +1 -1
- package/lib/duet/p-bb027e2f.entry.js +4 -0
- package/lib/duet/{p-a37c90b6.entry.js → p-bb153ecd.entry.js} +1 -1
- package/lib/duet/{p-b6fbd465.system.entry.js → p-bca879ba.system.entry.js} +1 -1
- package/lib/duet/p-bde12c72.system.js +4 -0
- package/lib/duet/{p-e604697b.entry.js → p-be8aa52a.entry.js} +1 -1
- package/lib/duet/{p-804331ed.system.entry.js → p-c00ac038.system.entry.js} +1 -1
- package/lib/duet/{p-565a2910.system.entry.js → p-c01aa549.system.entry.js} +1 -1
- package/lib/duet/{p-46dc8a34.entry.js → p-c106aa51.entry.js} +1 -1
- package/lib/duet/{p-0303b9f5.entry.js → p-c127c18e.entry.js} +1 -1
- package/lib/duet/{p-b1f2e5bb.system.entry.js → p-c331a8ef.system.entry.js} +1 -1
- package/lib/duet/p-c62788a1.system.entry.js +4 -0
- package/lib/duet/{p-cef34307.entry.js → p-c646d135.entry.js} +1 -1
- package/lib/duet/p-c6584315.system.entry.js +4 -0
- package/lib/duet/{p-fd097ec7.system.entry.js → p-c91b3c9f.system.entry.js} +1 -1
- package/lib/duet/{p-edc24761.entry.js → p-ca7c0e04.entry.js} +1 -1
- package/lib/duet/{p-f5ff737f.system.entry.js → p-cbbeefba.system.entry.js} +1 -1
- package/lib/duet/{p-f79a827f.system.entry.js → p-ccc30136.system.entry.js} +1 -1
- package/lib/duet/{p-43b90254.entry.js → p-ce1b8c29.entry.js} +1 -1
- package/lib/duet/{p-73091ce2.system.entry.js → p-d30a413a.system.entry.js} +1 -1
- package/lib/duet/{p-5df3b779.entry.js → p-d316ecf3.entry.js} +1 -1
- package/lib/duet/p-d5c7ae62.js +4 -0
- package/lib/duet/{p-4b9d877b.entry.js → p-d78d6df5.entry.js} +1 -1
- package/lib/duet/{p-0f2dc8b4.system.entry.js → p-d7a4a799.system.entry.js} +2 -2
- package/lib/duet/p-d87a08ee.system.entry.js +4 -0
- package/lib/duet/p-db2ccb9d.system.js +4 -0
- package/lib/duet/{p-a45d4d3c.entry.js → p-dd813d4e.entry.js} +1 -1
- package/lib/duet/{p-886652fa.system.entry.js → p-deef8ec0.system.entry.js} +1 -1
- package/lib/duet/{p-e31ca113.entry.js → p-df0168af.entry.js} +1 -1
- package/lib/duet/{p-64c4c515.entry.js → p-e0dc3a1e.entry.js} +1 -1
- package/lib/duet/{p-cb046607.system.entry.js → p-e0e090bb.system.entry.js} +1 -1
- package/lib/duet/{p-28721f4b.system.entry.js → p-e18e5311.system.entry.js} +1 -1
- package/lib/duet/{p-b9526c80.entry.js → p-e219a93f.entry.js} +1 -1
- package/lib/duet/{p-0c75814e.system.entry.js → p-e35347a0.system.entry.js} +1 -1
- package/lib/duet/{p-4f2e28d3.entry.js → p-e3d92f42.entry.js} +1 -1
- package/lib/duet/{p-0b25ce98.system.entry.js → p-e5435f92.system.entry.js} +1 -1
- package/lib/duet/{p-3f920565.entry.js → p-e5a5248f.entry.js} +1 -1
- package/lib/duet/{p-ab6d32f0.entry.js → p-e5ecf940.entry.js} +1 -1
- package/lib/duet/{p-8c621b3a.system.entry.js → p-e6517fd1.system.entry.js} +1 -1
- package/lib/duet/{p-1784b1d2.js → p-e95fa292.js} +1 -1
- package/lib/duet/{p-131f4e80.entry.js → p-eda3baff.entry.js} +1 -1
- package/lib/duet/{p-7099651c.system.entry.js → p-f0806e36.system.entry.js} +1 -1
- package/lib/duet/{p-1dcd3dc3.entry.js → p-f1cb7fa4.entry.js} +1 -1
- package/lib/duet/{p-3c969f9f.entry.js → p-f492378f.entry.js} +1 -1
- package/lib/duet/p-f5063a7d.system.js +4 -0
- package/lib/duet/p-f52d988b.entry.js +4 -0
- package/lib/duet/{p-72d3ddd8.entry.js → p-f80687b8.entry.js} +1 -1
- package/lib/duet/{p-0e73b18c.entry.js → p-fa1bebb0.entry.js} +1 -1
- package/lib/duet/{p-18ada958.js → p-faf67509.js} +1 -1
- package/lib/duet/{p-3cefca19.system.entry.js → p-fb3d3226.system.entry.js} +1 -1
- package/lib/duet/p-fc09c464.js +4 -0
- package/lib/duet/p-fd60b2ff.js +4 -0
- package/lib/duet/{p-01478b10.system.entry.js → p-ff92b024.system.entry.js} +2 -2
- package/lib/esm/{app-globals-8ff73e1c.js → app-globals-96009d83.js} +1 -1
- package/lib/esm/body-scroll-46854769.js +234 -0
- package/lib/esm/duet-action-button.entry.js +5 -5
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-banner.entry.js +5 -5
- package/lib/esm/duet-breadcrumb.entry.js +3 -3
- package/lib/esm/duet-breadcrumbs.entry.js +5 -5
- package/lib/esm/duet-button_2.entry.js +5 -5
- package/lib/esm/duet-callout.entry.js +2 -2
- package/lib/esm/duet-caption_4.entry.js +5 -5
- package/lib/esm/duet-card.entry.js +4 -4
- 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 +4 -4
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +9 -5
- package/lib/esm/duet-contact-card.entry.js +3 -3
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +5 -5
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +8 -8
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +2 -2
- package/lib/esm/duet-file-chooser.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +8 -5
- package/lib/esm/duet-header_2.entry.js +5 -5
- package/lib/esm/duet-hero.entry.js +5 -5
- package/lib/esm/duet-icon.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +6 -6
- package/lib/esm/duet-layout.entry.js +3 -3
- 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-item.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +4 -4
- package/lib/esm/duet-modal.entry.js +5 -5
- package/lib/esm/duet-multiselect.entry.js +4 -4
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +3 -3
- package/lib/esm/duet-number-input.entry.js +4 -4
- package/lib/esm/duet-overlay.entry.js +1 -1
- package/lib/esm/duet-page-heading.entry.js +6 -5
- package/lib/esm/duet-pagination_2.entry.js +5 -5
- package/lib/esm/duet-popup-menu-item.entry.js +1 -1
- package/lib/esm/duet-popup-menu.entry.js +2 -2
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +4 -4
- package/lib/esm/duet-radio_2.entry.js +2 -2
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +58 -38
- package/lib/esm/duet-section-layout.entry.js +5 -5
- package/lib/esm/duet-select.entry.js +3 -3
- package/lib/esm/duet-shaped-image.entry.js +3 -3
- package/lib/esm/duet-show-more.entry.js +3 -3
- package/lib/esm/duet-slideout-lang.entry.js +5 -5
- package/lib/esm/duet-slideout-link.entry.js +3 -3
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
- package/lib/esm/duet-slideout-panel.entry.js +49 -13
- package/lib/esm/duet-slideout.entry.js +12 -12
- package/lib/esm/duet-step_2.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-item.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +7 -7
- package/lib/esm/duet-textarea.entry.js +4 -4
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-toolbar-dropdown.entry.js +5 -5
- package/lib/esm/duet-toolbar-item.entry.js +3 -3
- package/lib/esm/duet-toolbar-link.entry.js +3 -3
- package/lib/esm/duet-toolbar.entry.js +3 -3
- package/lib/esm/duet-tooltip-button_2.entry.js +6 -6
- package/lib/esm/duet-tooltip.entry.js +4 -4
- package/lib/esm/duet-tray.entry.js +6 -6
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +4 -4
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-59416946.js → errorcodes.utils-568ea028.js} +2 -2
- package/lib/esm/{focus-utils-53d44671.js → focus-utils-003541f7.js} +1 -1
- package/lib/esm/{index-ea400af3.js → index-bbae2d5d.js} +1 -1
- package/lib/esm/{language-utils-27773807.js → language-utils-5a2b4259.js} +2 -2
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-95c2258f.js → slot-utils-0a3b9dfc.js} +1 -1
- package/lib/esm/{string-utils-ca039233.js → string-utils-192eb3c8.js} +7 -1
- package/lib/esm/{token-utils-1f843fb9.js → token-utils-54a23ef5.js} +1 -1
- package/lib/{dist-custom-elements/p-d5c03b61.js → esm/tokens-e0e3d241.js} +252 -0
- package/lib/esm/{tokens.module-ed0ed26f.js → tokens.module-b5fab24a.js} +168 -0
- package/lib/esm-es5/{app-globals-8ff73e1c.js → app-globals-96009d83.js} +1 -1
- package/lib/esm-es5/body-scroll-46854769.js +4 -0
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-overlay.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-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 +2 -2
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +2 -2
- package/lib/esm-es5/duet-step_2.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-upload-item.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{errorcodes.utils-59416946.js → errorcodes.utils-568ea028.js} +1 -1
- package/lib/esm-es5/{focus-utils-53d44671.js → focus-utils-003541f7.js} +1 -1
- package/lib/esm-es5/{index-ea400af3.js → index-bbae2d5d.js} +1 -1
- package/lib/esm-es5/{language-utils-27773807.js → language-utils-5a2b4259.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-95c2258f.js → slot-utils-0a3b9dfc.js} +1 -1
- package/lib/esm-es5/string-utils-192eb3c8.js +4 -0
- package/lib/esm-es5/{token-utils-1f843fb9.js → token-utils-54a23ef5.js} +1 -1
- package/lib/esm-es5/tokens-e0e3d241.js +4 -0
- package/lib/esm-es5/tokens.module-b5fab24a.js +4 -0
- package/lib/types/common-types.d.ts +1 -0
- package/lib/types/components/duet-grid-item/duet-grid-item.d.ts +6 -0
- package/lib/types/components/duet-page-heading/duet-page-heading.d.ts +2 -1
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +13 -2
- package/lib/types/components/duet-slideout-panel/duet-slideout-panel.d.ts +3 -0
- package/lib/types/components.d.ts +15 -6
- package/lib/types/utils/body-scroll.d.ts +17 -0
- package/lib/types/utils/string-utils.d.ts +4 -0
- package/package.json +4 -4
- package/lib/dist-custom-elements/p-31932263.js +0 -77
- package/lib/dist-custom-elements/p-fd50fe15.js +0 -192
- package/lib/duet/p-0319560a.entry.js +0 -4
- package/lib/duet/p-0e232ca3.system.entry.js +0 -4
- package/lib/duet/p-168fce1a.entry.js +0 -4
- package/lib/duet/p-22e8c418.system.entry.js +0 -4
- package/lib/duet/p-2455ba6c.entry.js +0 -4
- package/lib/duet/p-344db520.system.entry.js +0 -4
- package/lib/duet/p-391e19af.system.entry.js +0 -4
- package/lib/duet/p-395be269.entry.js +0 -4
- package/lib/duet/p-3f91a919.system.entry.js +0 -4
- package/lib/duet/p-42ffb47d.system.entry.js +0 -4
- package/lib/duet/p-440dbcfa.system.entry.js +0 -4
- package/lib/duet/p-467fe4e3.js +0 -4
- package/lib/duet/p-4a901bfc.js +0 -4
- package/lib/duet/p-61dffe85.entry.js +0 -4
- package/lib/duet/p-63c519cd.system.entry.js +0 -4
- package/lib/duet/p-66e157a0.system.entry.js +0 -4
- package/lib/duet/p-7549617b.entry.js +0 -4
- package/lib/duet/p-7d277f55.js +0 -4
- package/lib/duet/p-8a7ee339.js +0 -4
- package/lib/duet/p-918f8fc2.entry.js +0 -4
- package/lib/duet/p-ae79dc98.entry.js +0 -4
- package/lib/duet/p-b93f0810.entry.js +0 -4
- package/lib/duet/p-c51d6fb5.system.js +0 -4
- package/lib/duet/p-c86d6786.system.js +0 -4
- package/lib/duet/p-cce2db8f.entry.js +0 -4
- package/lib/duet/p-d5580da3.entry.js +0 -4
- package/lib/duet/p-d5c03b61.js +0 -4
- package/lib/duet/p-d6dcd05f.system.js +0 -4
- package/lib/duet/p-edc43bc3.system.entry.js +0 -4
- package/lib/duet/p-ef6095d7.system.entry.js +0 -4
- package/lib/duet/p-f8ede563.entry.js +0 -4
- package/lib/duet/p-fdaa6789.entry.js +0 -4
- package/lib/esm-es5/string-utils-ca039233.js +0 -4
- package/lib/esm-es5/tokens-a9d9d4dd.js +0 -4
- package/lib/esm-es5/tokens.module-ed0ed26f.js +0 -4
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { DuetCardHeadingLevel, DuetChoiceGroupBreakpoint, DuetChoiceType, DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconColor, DuetIconName, DuetIconSize, DuetInputPadding, DuetLanguage, DuetLinkVariation, DuetListBreakpoint, DuetLocale, DuetMargin, DuetPadding, DuetStatus, DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant, DuetTextFontWeight, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel, StatusMessage } from "./common-types";
|
|
8
|
+
import { DuetCardHeadingLevel, DuetChoiceGroupBreakpoint, DuetChoiceType, DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconColor, DuetIconName, DuetIconSize, DuetInputPadding, DuetLanguage, DuetLinkVariation, DuetListBreakpoint, DuetLocale, DuetMargin, DuetOverflowPadding, DuetPadding, DuetStatus, DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant, DuetTextFontWeight, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel, StatusMessage } from "./common-types";
|
|
9
9
|
import { DuetActionButtonEvent, DuetActionButtonIconSize } from "./components/duet-action-button/duet-action-button";
|
|
10
10
|
import { DuetLangObject } from "./utils/language-utils";
|
|
11
11
|
import { DuetAlertEvent } from "./components/duet-alert/duet-alert";
|
|
@@ -68,7 +68,7 @@ import { UploadActionButtonTitles } from "./components/duet-upload-item/duet-upl
|
|
|
68
68
|
import { DuetFileListItem, DuetUploadEvent as DuetUploadEvent1 } from "./components/duet-upload/duet-upload";
|
|
69
69
|
import { ItemType, UploadActionButtonTitles as UploadActionButtonTitles1 } from "./components/duet-upload-item/duet-upload-item";
|
|
70
70
|
import { EventEmitter } from "./stencil-public-runtime";
|
|
71
|
-
export { DuetCardHeadingLevel, DuetChoiceGroupBreakpoint, DuetChoiceType, DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconColor, DuetIconName, DuetIconSize, DuetInputPadding, DuetLanguage, DuetLinkVariation, DuetListBreakpoint, DuetLocale, DuetMargin, DuetPadding, DuetStatus, DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant, DuetTextFontWeight, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel, StatusMessage } from "./common-types";
|
|
71
|
+
export { DuetCardHeadingLevel, DuetChoiceGroupBreakpoint, DuetChoiceType, DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconColor, DuetIconName, DuetIconSize, DuetInputPadding, DuetLanguage, DuetLinkVariation, DuetListBreakpoint, DuetLocale, DuetMargin, DuetOverflowPadding, DuetPadding, DuetStatus, DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant, DuetTextFontWeight, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel, StatusMessage } from "./common-types";
|
|
72
72
|
export { DuetActionButtonEvent, DuetActionButtonIconSize } from "./components/duet-action-button/duet-action-button";
|
|
73
73
|
export { DuetLangObject } from "./utils/language-utils";
|
|
74
74
|
export { DuetAlertEvent } from "./components/duet-alert/duet-alert";
|
|
@@ -1562,6 +1562,7 @@ export namespace Components {
|
|
|
1562
1562
|
*/
|
|
1563
1563
|
"minWidth": string;
|
|
1564
1564
|
"responsive": boolean;
|
|
1565
|
+
"rowReverse": boolean;
|
|
1565
1566
|
/**
|
|
1566
1567
|
* Theme of the grid item.
|
|
1567
1568
|
*/
|
|
@@ -2971,9 +2972,9 @@ export namespace Components {
|
|
|
2971
2972
|
*/
|
|
2972
2973
|
"icon": DuetIconName;
|
|
2973
2974
|
/**
|
|
2974
|
-
* Layout.
|
|
2975
|
+
* Layout. Values narrow and fluid are deprecated.
|
|
2975
2976
|
*/
|
|
2976
|
-
"layout": "narrow" | "fluid";
|
|
2977
|
+
"layout": "narrow" | "fluid" | "auto";
|
|
2977
2978
|
/**
|
|
2978
2979
|
* Theme of the hero area.
|
|
2979
2980
|
*/
|
|
@@ -3575,6 +3576,10 @@ export namespace Components {
|
|
|
3575
3576
|
* Optional identifier to add to buttons in the tab group
|
|
3576
3577
|
*/
|
|
3577
3578
|
"identifier": string;
|
|
3579
|
+
/**
|
|
3580
|
+
* Whether to add padding to the scrollable list to account for overflowing elements, such as shadows or outlines.
|
|
3581
|
+
*/
|
|
3582
|
+
"padding": DuetOverflowPadding;
|
|
3578
3583
|
/**
|
|
3579
3584
|
* Selected element
|
|
3580
3585
|
*/
|
|
@@ -9344,9 +9349,9 @@ declare namespace LocalJSX {
|
|
|
9344
9349
|
*/
|
|
9345
9350
|
"icon"?: DuetIconName;
|
|
9346
9351
|
/**
|
|
9347
|
-
* Layout.
|
|
9352
|
+
* Layout. Values narrow and fluid are deprecated.
|
|
9348
9353
|
*/
|
|
9349
|
-
"layout"?: "narrow" | "fluid";
|
|
9354
|
+
"layout"?: "narrow" | "fluid" | "auto";
|
|
9350
9355
|
/**
|
|
9351
9356
|
* Theme of the hero area.
|
|
9352
9357
|
*/
|
|
@@ -9948,6 +9953,10 @@ declare namespace LocalJSX {
|
|
|
9948
9953
|
* Optional identifier to add to buttons in the tab group
|
|
9949
9954
|
*/
|
|
9950
9955
|
"identifier"?: string;
|
|
9956
|
+
/**
|
|
9957
|
+
* Whether to add padding to the scrollable list to account for overflowing elements, such as shadows or outlines.
|
|
9958
|
+
*/
|
|
9959
|
+
"padding"?: DuetOverflowPadding;
|
|
9951
9960
|
/**
|
|
9952
9961
|
* Selected element
|
|
9953
9962
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type BodyScrollOptions = {
|
|
2
|
+
reserveScrollBarGap?: boolean | undefined;
|
|
3
|
+
allowTouchMove?: ((el: EventTarget) => boolean) | undefined;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param targetElement HTMLElement
|
|
8
|
+
* @param options BodyScrollOptions
|
|
9
|
+
* @returns void
|
|
10
|
+
*/
|
|
11
|
+
export declare const disableBodyScroll: (targetElement: HTMLElement, options?: BodyScrollOptions) => void;
|
|
12
|
+
export declare const clearAllBodyScrollLocks: () => void;
|
|
13
|
+
/**
|
|
14
|
+
* @param targetElement
|
|
15
|
+
* @returns void
|
|
16
|
+
*/
|
|
17
|
+
export declare const enableBodyScroll: (targetElement: HTMLElement) => void;
|
|
@@ -5,3 +5,7 @@ export declare const convertHtmlQuotes: (string: any) => any;
|
|
|
5
5
|
* Converts the first letter of the string to upper case. Note that with non-latin scrips this may not produce expected results
|
|
6
6
|
*/
|
|
7
7
|
export declare const upperCaseFirst: (string: string) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Escapes characters that have special meaning in regular expressions
|
|
10
|
+
*/
|
|
11
|
+
export declare const regexEscape: (string: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/components",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"description": "This package includes Duet Design System Web Components and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@duetds/fonts": "3.0.51",
|
|
47
|
-
"@duetds/icons": "4.0.
|
|
48
|
-
"@duetds/tokens": "4.0.
|
|
47
|
+
"@duetds/icons": "4.0.67",
|
|
48
|
+
"@duetds/tokens": "4.0.69",
|
|
49
49
|
"@percy/cli": "1.30.1",
|
|
50
50
|
"@rollup/plugin-replace": "5.0.2",
|
|
51
51
|
"@stencil/core": "4.22.2",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"collection": "lib/collection/collection-manifest.json",
|
|
77
77
|
"es2015": "lib/esm/index.js",
|
|
78
78
|
"es2017": "lib/esm/index.js",
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "c3a7a3cc48aa4624df9691561641978acd350b43"
|
|
80
80
|
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-a32bc785.js';
|
|
5
|
-
import { i as inheritGlobalTheme } from './p-aaa7a7bd.js';
|
|
6
|
-
|
|
7
|
-
const duetGridItemCss = ".sc-duet-grid-item-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;min-width:0;max-width:100%;flex:0 0 auto;padding-right:8px;padding-left:8px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:rgb(0, 41, 77)}.duet-grid-direction-horizontal.sc-duet-grid-item-h:first-child,.duet-grid-direction-horizontal.sc-duet-grid-item-h:first-of-type{padding-left:0}.duet-grid-direction-horizontal.sc-duet-grid-item-h:last-child,.duet-grid-direction-horizontal.sc-duet-grid-item-h:last-of-type{padding-right:0}@media (max-width: 35.9375em){.duet-grid-item-responsive.sc-duet-grid-item-h{width:100% !important;min-width:0 !important;max-width:100% !important;padding-right:0;padding-left:0}}@media screen and (max-width: 47.9375em){.duet-grid-item-br-medium.sc-duet-grid-item-h{width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 47.9375em){.duet-grid-item-responsive.duet-grid-item-br-medium.sc-duet-grid-item-h{padding-right:0;padding-left:0}}@media screen and (max-width: 64em){.duet-grid-item-br-x-large.sc-duet-grid-item-h{width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 64em){.duet-grid-item-responsive.duet-grid-item-br-x-large.sc-duet-grid-item-h{padding-right:0;padding-left:0}}.duet-grid-item-fill.sc-duet-grid-item-h{flex:1 1 auto;width:100%}.duet-theme-turva.sc-duet-grid-item-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-m-0.sc-duet-grid-item-h{padding:0 !important;margin:0 !important}";
|
|
8
|
-
const DuetGridItemStyle0 = duetGridItemCss;
|
|
9
|
-
|
|
10
|
-
const DuetGridItem = /*@__PURE__*/ proxyCustomElement(class DuetGridItem extends H {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
this.__registerHost();
|
|
14
|
-
this.fill = false;
|
|
15
|
-
this.maxWidth = undefined;
|
|
16
|
-
this.minWidth = undefined;
|
|
17
|
-
this.theme = "";
|
|
18
|
-
this.margin = "auto";
|
|
19
|
-
this.responsive = false;
|
|
20
|
-
this.direction = "horizontal";
|
|
21
|
-
this.breakpoint = "small";
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Component lifecycle events.
|
|
25
|
-
*/
|
|
26
|
-
componentWillLoad() {
|
|
27
|
-
inheritGlobalTheme(this);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* render() function
|
|
31
|
-
* Always the last one in the class.
|
|
32
|
-
*/
|
|
33
|
-
render() {
|
|
34
|
-
return (h(Host, { style: {
|
|
35
|
-
"min-width": this.minWidth,
|
|
36
|
-
"max-width": this.maxWidth,
|
|
37
|
-
}, class: {
|
|
38
|
-
"duet-m-0": this.margin === "none",
|
|
39
|
-
"duet-theme-turva": this.theme === "turva",
|
|
40
|
-
"duet-grid-item": true,
|
|
41
|
-
"duet-grid-item-fill": this.fill,
|
|
42
|
-
"duet-grid-item-responsive": this.responsive,
|
|
43
|
-
"duet-grid-direction-horizontal": this.direction === "horizontal",
|
|
44
|
-
"duet-grid-direction-vertical": this.direction === "vertical",
|
|
45
|
-
"duet-grid-item-br-x-small": this.breakpoint === "x-small",
|
|
46
|
-
"duet-grid-item-br-small": this.breakpoint === "small",
|
|
47
|
-
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
48
|
-
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
49
|
-
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
50
|
-
} }));
|
|
51
|
-
}
|
|
52
|
-
static get style() { return DuetGridItemStyle0; }
|
|
53
|
-
}, [2, "duet-grid-item", {
|
|
54
|
-
"fill": [4],
|
|
55
|
-
"maxWidth": [1, "max-width"],
|
|
56
|
-
"minWidth": [1, "min-width"],
|
|
57
|
-
"theme": [1025],
|
|
58
|
-
"margin": [1],
|
|
59
|
-
"responsive": [4],
|
|
60
|
-
"direction": [1],
|
|
61
|
-
"breakpoint": [1]
|
|
62
|
-
}]);
|
|
63
|
-
function defineCustomElement() {
|
|
64
|
-
if (typeof customElements === "undefined") {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
const components = ["duet-grid-item"];
|
|
68
|
-
components.forEach(tagName => { switch (tagName) {
|
|
69
|
-
case "duet-grid-item":
|
|
70
|
-
if (!customElements.get(tagName)) {
|
|
71
|
-
customElements.define(tagName, DuetGridItem);
|
|
72
|
-
}
|
|
73
|
-
break;
|
|
74
|
-
} });
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export { DuetGridItem as D, defineCustomElement as d };
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-a32bc785.js';
|
|
5
|
-
import { a as media_query_large, m as media_query_medium, b as media_query_small } from './p-d5c03b61.js';
|
|
6
|
-
import { w as watchForOptions, a as watchForElement } from './p-7d8a2628.js';
|
|
7
|
-
|
|
8
|
-
const duetGridCss = ".sc-duet-grid-h {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.duet-grid-variation-flex.sc-duet-grid-h {\n display: flex !important;\n flex-direction: column !important;\n align-items: flex-start !important;\n justify-content: flex-start !important;\n width: 100%;\n max-width: 100%;\n height: auto;\n}\n.duet-grid-variation-flex.duet-grid-breakpoint-x-small.sc-duet-grid-h {\n flex-direction: row !important;\n}\n.duet-grid-variation-flex.duet-grid-breakpoint-x-small.duet-grid-row-reverse.sc-duet-grid-h {\n flex-direction: row-reverse !important;\n}\n@media (max-width: 22.5em) {\n .duet-grid-variation-flex.duet-grid-breakpoint-x-small.sc-duet-grid-h {\n flex-direction: column !important;\n }\n}\n@media (min-width: 36em) {\n .duet-grid-variation-flex.duet-grid-breakpoint-small.sc-duet-grid-h {\n flex-direction: row !important;\n }\n .duet-grid-variation-flex.duet-grid-breakpoint-small.duet-grid-row-reverse.sc-duet-grid-h {\n flex-direction: row-reverse !important;\n }\n}\n@media (min-width: 48em) {\n .duet-grid-variation-flex.duet-grid-breakpoint-medium.sc-duet-grid-h {\n flex-direction: row !important;\n }\n .duet-grid-variation-flex.duet-grid-breakpoint-medium.duet-grid-row-reverse.sc-duet-grid-h {\n flex-direction: row-reverse !important;\n }\n}\n@media (min-width: 62em) {\n .duet-grid-variation-flex.duet-grid-breakpoint-large.sc-duet-grid-h {\n flex-direction: row !important;\n }\n .duet-grid-variation-flex.duet-grid-breakpoint-large.duet-grid-row-reverse.sc-duet-grid-h {\n flex-direction: row-reverse !important;\n }\n}\n@media (min-width: 64.0625em) {\n .duet-grid-variation-flex.duet-grid-breakpoint-x-large.sc-duet-grid-h {\n flex-direction: row !important;\n }\n .duet-grid-variation-flex.duet-grid-breakpoint-x-large.duet-grid-row-reverse.sc-duet-grid-h {\n flex-direction: row-reverse !important;\n }\n}\n.duet-grid-variation-flex.duet-grid-wrap.sc-duet-grid-h {\n flex-wrap: wrap !important;\n}\n.duet-grid-variation-flex.duet-no-stacking.sc-duet-grid-h {\n flex-direction: row !important;\n}\n.duet-grid-variation-flex.duet-no-stacking.duet-grid-row-reverse.sc-duet-grid-h {\n flex-direction: row-reverse !important;\n}\n.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h {\n flex-direction: column !important;\n}\n@media (max-width: 35.9375em) {\n .duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h {\n flex-direction: column !important;\n }\n}\n.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h {\n flex-direction: column !important;\n}\n@media (min-width: 36em) {\n .duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h {\n flex-direction: column !important;\n }\n}\n.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h {\n flex-direction: column !important;\n}\n@media (min-width: 48em) {\n .duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h {\n flex-direction: column !important;\n }\n}\n.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h {\n flex-direction: column !important;\n}\n@media (min-width: 62em) {\n .duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h {\n flex-direction: column !important;\n }\n}\n.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h {\n flex-direction: column !important;\n}\n@media (min-width: 64.0625em) {\n .duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h {\n flex-direction: column !important;\n }\n}\n.duet-grid-variation-flex.duet-grid-align-top.duet-no-stacking.sc-duet-grid-h {\n align-items: flex-start !important;\n}\n.duet-grid-variation-flex.duet-grid-align-bottom.duet-no-stacking.sc-duet-grid-h {\n align-items: flex-end !important;\n}\n.duet-grid-variation-flex.duet-grid-align-center.duet-no-stacking.sc-duet-grid-h {\n align-items: center !important;\n}\n.duet-grid-variation-flex.duet-grid-align-stretch.duet-no-stacking.sc-duet-grid-h {\n align-items: stretch !important;\n}\n.duet-grid-variation-flex.duet-grid-align-baseline.duet-no-stacking.sc-duet-grid-h {\n align-items: baseline !important;\n}\n.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-x-small.sc-duet-grid-h {\n align-items: flex-start !important;\n}\n.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-x-small.sc-duet-grid-h {\n align-items: flex-end !important;\n}\n.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-x-small.sc-duet-grid-h {\n align-items: center !important;\n}\n.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-x-small.sc-duet-grid-h {\n align-items: stretch !important;\n}\n.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-x-small.sc-duet-grid-h {\n align-items: baseline !important;\n}\n@media (min-width: 36em) {\n .duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-small.sc-duet-grid-h {\n align-items: flex-start !important;\n }\n}\n@media (min-width: 36em) {\n .duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-small.sc-duet-grid-h {\n align-items: flex-end !important;\n }\n}\n@media (min-width: 36em) {\n .duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-small.sc-duet-grid-h {\n align-items: center !important;\n }\n}\n@media (min-width: 36em) {\n .duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-small.sc-duet-grid-h {\n align-items: stretch !important;\n }\n}\n@media (min-width: 36em) {\n .duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-small.sc-duet-grid-h {\n align-items: baseline !important;\n }\n}\n@media (min-width: 48em) {\n .duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-medium.sc-duet-grid-h {\n align-items: flex-start !important;\n }\n}\n@media (min-width: 48em) {\n .duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-medium.sc-duet-grid-h {\n align-items: flex-end !important;\n }\n}\n@media (min-width: 48em) {\n .duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-medium.sc-duet-grid-h {\n align-items: center !important;\n }\n}\n@media (min-width: 48em) {\n .duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-medium.sc-duet-grid-h {\n align-items: stretch !important;\n }\n}\n@media (min-width: 48em) {\n .duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-medium.sc-duet-grid-h {\n align-items: baseline !important;\n }\n}\n@media (min-width: 62em) {\n .duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-large.sc-duet-grid-h {\n align-items: flex-start !important;\n }\n}\n@media (min-width: 62em) {\n .duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-large.sc-duet-grid-h {\n align-items: flex-end !important;\n }\n}\n@media (min-width: 62em) {\n .duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-large.sc-duet-grid-h {\n align-items: center !important;\n }\n}\n@media (min-width: 62em) {\n .duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-large.sc-duet-grid-h {\n align-items: stretch !important;\n }\n}\n@media (min-width: 62em) {\n .duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-large.sc-duet-grid-h {\n align-items: baseline !important;\n }\n}\n@media (min-width: 64.0625em) {\n .duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-x-large.sc-duet-grid-h {\n align-items: flex-start !important;\n }\n}\n@media (min-width: 64.0625em) {\n .duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-x-large.sc-duet-grid-h {\n align-items: flex-end !important;\n }\n}\n@media (min-width: 64.0625em) {\n .duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-x-large.sc-duet-grid-h {\n align-items: center !important;\n }\n}\n@media (min-width: 64.0625em) {\n .duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-x-large.sc-duet-grid-h {\n align-items: stretch !important;\n }\n}\n@media (min-width: 64.0625em) {\n .duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-x-large.sc-duet-grid-h {\n align-items: baseline !important;\n }\n}\n.duet-grid-variation-flex.duet-grid-distribution-left.sc-duet-grid-h {\n justify-content: flex-start !important;\n}\n.duet-grid-variation-flex.duet-grid-distribution-right.sc-duet-grid-h {\n justify-content: flex-end !important;\n}\n.duet-grid-variation-flex.duet-grid-distribution-center.sc-duet-grid-h {\n justify-content: center !important;\n}\n.duet-grid-variation-flex.duet-grid-distribution-between.sc-duet-grid-h {\n justify-content: space-between !important;\n}\n.duet-grid-variation-flex.duet-grid-distribution-around.sc-duet-grid-h {\n justify-content: space-around !important;\n}\n.duet-grid-variation-flex.duet-grid-distribution-evenly.sc-duet-grid-h {\n justify-content: space-evenly !important;\n}\n@media (max-width: 35.9375em) {\n .duet-grid-variation-flex.duet-grid-mobile-left.sc-duet-grid-h {\n align-items: flex-start !important;\n justify-content: flex-start !important;\n text-align: left !important;\n }\n}\n@media (max-width: 35.9375em) {\n .duet-grid-variation-flex.duet-grid-mobile-center.sc-duet-grid-h {\n align-items: center !important;\n justify-content: center !important;\n text-align: center !important;\n }\n .duet-grid-variation-flex.duet-grid-mobile-center.sc-duet-grid-h *.sc-duet-grid {\n text-align: center !important;\n }\n}\n@media (max-width: 35.9375em) {\n .duet-grid-variation-flex.duet-grid-mobile-right.sc-duet-grid-h {\n align-items: flex-end !important;\n justify-content: flex-end !important;\n text-align: right !important;\n }\n .duet-grid-variation-flex.duet-grid-mobile-right.sc-duet-grid-h *.sc-duet-grid {\n text-align: right !important;\n }\n}\n\n.duet-grid-variation-grid.sc-duet-grid-h {\n display: grid;\n grid-template-rows: repeat(1, 1fr);\n grid-template-columns: repeat(4, minmax(0, 1fr));\n gap: 16px;\n align-items: flex-start;\n justify-content: center;\n margin: 0 20px;\n container-type: inline-size;\n}\n@media (min-width: 36em) {\n .duet-grid-variation-grid.sc-duet-grid-h {\n gap: 24px;\n margin: 0 40px;\n }\n}\n@media (min-width: 48em) {\n .duet-grid-variation-grid.sc-duet-grid-h {\n grid-template-columns: repeat(8, 55px);\n gap: 24px 32px;\n margin: 0 auto;\n }\n}\n@media (min-width: 62em) {\n .duet-grid-variation-grid.sc-duet-grid-h {\n grid-template-columns: repeat(12, minmax(0, 1fr));\n margin: 0 64px;\n }\n}\n@media (min-width: 76.25em) {\n .duet-grid-variation-grid.sc-duet-grid-h {\n grid-template-columns: repeat(12, 55px);\n gap: 40px;\n margin: 0 auto;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-small.sc-duet-grid-s > * {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-small.sc-duet-grid-s > * {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-small.sc-duet-grid-s > * {\n grid-column: 3/span 8;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-medium.sc-duet-grid-s > * {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-medium.sc-duet-grid-s > * {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-medium.sc-duet-grid-s > * {\n grid-column: 2/span 10;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-large.sc-duet-grid-s > * {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-large.sc-duet-grid-s > * {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-large.sc-duet-grid-s > * {\n grid-column: 1/span 12;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-right.sc-duet-grid-s > :nth-child(odd) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-right.sc-duet-grid-s > :nth-child(odd) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-right.sc-duet-grid-s > :nth-child(odd) {\n grid-column: 1/span 8;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-right.sc-duet-grid-s > :nth-child(even) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-right.sc-duet-grid-s > :nth-child(even) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-right.sc-duet-grid-s > :nth-child(even) {\n grid-column: 9/span 4;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-left.sc-duet-grid-s > :nth-child(odd) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-left.sc-duet-grid-s > :nth-child(odd) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-left.sc-duet-grid-s > :nth-child(odd) {\n grid-column: 1/span 4;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-left.sc-duet-grid-s > :nth-child(even) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-left.sc-duet-grid-s > :nth-child(even) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-sidebar-left.sc-duet-grid-s > :nth-child(even) {\n grid-column: 5/span 8;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-two-columns.sc-duet-grid-s > :nth-child(odd) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-two-columns.sc-duet-grid-s > :nth-child(odd) {\n grid-column: 1/span 4;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-two-columns.sc-duet-grid-s > :nth-child(odd) {\n grid-column: 1/span 6;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-two-columns.sc-duet-grid-s > :nth-child(even) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-two-columns.sc-duet-grid-s > :nth-child(even) {\n grid-column: 5/span 4;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-two-columns.sc-duet-grid-s > :nth-child(even) {\n grid-column: 7/span 6;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-three-columns.sc-duet-grid-s > :nth-child(3n+1) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-three-columns.sc-duet-grid-s > :nth-child(3n+1) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-three-columns.sc-duet-grid-s > :nth-child(3n+1) {\n grid-column: 1/span 4;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-three-columns.sc-duet-grid-s > :nth-child(3n+2) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-three-columns.sc-duet-grid-s > :nth-child(3n+2) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-three-columns.sc-duet-grid-s > :nth-child(3n+2) {\n grid-column: 5/span 4;\n }\n}\n.sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-three-columns.sc-duet-grid-s > :nth-child(3n+3) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-three-columns.sc-duet-grid-s > :nth-child(3n+3) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-three-columns.sc-duet-grid-s > :nth-child(3n+3) {\n grid-column: 9/span 4;\n }\n}\n.duet-grid-variation-grid.duet-grid-template-button-grid.sc-duet-grid-h {\n grid-template-columns: minmax(0, 1fr);\n gap: 12px;\n margin: 0;\n \n \n}\n@media (min-width: 36em) {\n .duet-grid-variation-grid.duet-grid-template-button-grid.sc-duet-grid-h {\n gap: 16px;\n }\n}\n@container (min-width: 664px) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-button-grid {\n \n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n@container (min-width: 1100px) {\n .sc-duet-grid-h.duet-grid-variation-grid.duet-grid-template-button-grid {\n \n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n}";
|
|
9
|
-
const DuetGridStyle0 = duetGridCss;
|
|
10
|
-
|
|
11
|
-
function isGridItem(element) {
|
|
12
|
-
return element.tagName.toLowerCase() === "duet-grid-item";
|
|
13
|
-
}
|
|
14
|
-
const DuetGrid = /*@__PURE__*/ proxyCustomElement(class DuetGrid extends H {
|
|
15
|
-
constructor() {
|
|
16
|
-
super();
|
|
17
|
-
this.__registerHost();
|
|
18
|
-
this.mql = [
|
|
19
|
-
window.matchMedia(media_query_large.replace(/'/g, "")),
|
|
20
|
-
window.matchMedia(media_query_medium.replace(/'/g, "")),
|
|
21
|
-
window.matchMedia(media_query_small.replace(/'/g, "")),
|
|
22
|
-
];
|
|
23
|
-
this.distributeFormElement = false;
|
|
24
|
-
this.responsive = false;
|
|
25
|
-
this.breakpoint = "small";
|
|
26
|
-
this.direction = "horizontal";
|
|
27
|
-
this.rowReverse = false;
|
|
28
|
-
this.alignment = "top";
|
|
29
|
-
this.distribution = "default";
|
|
30
|
-
this.mobile = "";
|
|
31
|
-
this.gridTemplate = null;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Private functions
|
|
35
|
-
*/
|
|
36
|
-
/**
|
|
37
|
-
* Returns the element height including margins
|
|
38
|
-
* @param element - element
|
|
39
|
-
* @returns {number}
|
|
40
|
-
*/
|
|
41
|
-
outerHeight(element) {
|
|
42
|
-
const height = element.offsetHeight, style = window.getComputedStyle(element);
|
|
43
|
-
return ["top", "bottom"]
|
|
44
|
-
.map(side => parseInt(style[`margin-${side}`]))
|
|
45
|
-
.reduce((total, side) => total + side, height);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Component lifecycle events.
|
|
49
|
-
*/
|
|
50
|
-
async connectedCallback() {
|
|
51
|
-
const el = this.element;
|
|
52
|
-
this.distributeFormElement = this.alignment === "form_distribute";
|
|
53
|
-
this.mutationO = watchForOptions(el, "duet-grid-item", () => {
|
|
54
|
-
this.updateGridItems();
|
|
55
|
-
});
|
|
56
|
-
// the next two functions are used to watch for changes in the grid items, and are process intensive - so only run when needed
|
|
57
|
-
if (this.distributeFormElement) {
|
|
58
|
-
this.mutation1 = watchForElement(el, "duet-input", () => {
|
|
59
|
-
this.updateGridItemsWithInputFields();
|
|
60
|
-
});
|
|
61
|
-
// listen for potential mediaquery changes and reset layout
|
|
62
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
63
|
-
// addEventListener is not available in Stencil hydrate
|
|
64
|
-
if (this.mql[i].addEventListener) {
|
|
65
|
-
this.mql[i].addEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
this.updateGridItems();
|
|
70
|
-
}
|
|
71
|
-
disconnectedCallback() {
|
|
72
|
-
if (this.mutationO) {
|
|
73
|
-
this.mutationO.disconnect();
|
|
74
|
-
this.mutationO = undefined;
|
|
75
|
-
}
|
|
76
|
-
if (this.mutation1) {
|
|
77
|
-
this.mutation1.disconnect();
|
|
78
|
-
this.mutation1 = undefined;
|
|
79
|
-
}
|
|
80
|
-
// listen for potential mediaquery changes and reset layout
|
|
81
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
82
|
-
// addEventListener is not available in Stencil hydrate
|
|
83
|
-
if (this.mql[i].removeEventListener) {
|
|
84
|
-
this.mql[i].removeEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Local methods
|
|
90
|
-
*/
|
|
91
|
-
async updateGridItems() {
|
|
92
|
-
const items = Array.from(this.element.children).filter(isGridItem);
|
|
93
|
-
items.forEach(item => {
|
|
94
|
-
item.responsive = this.responsive;
|
|
95
|
-
item.breakpoint = this.breakpoint;
|
|
96
|
-
item.direction = this.direction;
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
async updateGridItemsWithInputFields() {
|
|
100
|
-
const items = Array.from(this.element.children).filter(isGridItem);
|
|
101
|
-
// if layout changes to columns instead of row, remove all padding
|
|
102
|
-
const hasColumnLayout = window ? window.getComputedStyle(this.element).flexDirection === "column" : false;
|
|
103
|
-
let maxHeight = 0;
|
|
104
|
-
const sizes = [];
|
|
105
|
-
items.forEach(item => {
|
|
106
|
-
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
107
|
-
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
108
|
-
sizes.push(height);
|
|
109
|
-
});
|
|
110
|
-
maxHeight = Math.max(...sizes);
|
|
111
|
-
items.forEach(item => {
|
|
112
|
-
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
113
|
-
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
114
|
-
if (height < maxHeight && !hasColumnLayout) {
|
|
115
|
-
item.setAttribute("style", `padding-bottom: ${maxHeight - height}px;`);
|
|
116
|
-
}
|
|
117
|
-
else if (height === maxHeight || hasColumnLayout) {
|
|
118
|
-
item.setAttribute("style", `padding-bottom: 0px;`);
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* render() function
|
|
124
|
-
* Always the last one in the class.
|
|
125
|
-
*/
|
|
126
|
-
render() {
|
|
127
|
-
return (h(Host, { class: {
|
|
128
|
-
"duet-grid": true,
|
|
129
|
-
"duet-no-stacking": !this.responsive,
|
|
130
|
-
"duet-grid-align-top": this.alignment === "top", // flex-start
|
|
131
|
-
"duet-grid-align-bottom": this.alignment === "bottom" || this.alignment === "form_distribute", // flex-end
|
|
132
|
-
"duet-grid-align-center": this.alignment === "center", // center
|
|
133
|
-
"duet-grid-align-stretch": this.alignment === "stretch", // stretch
|
|
134
|
-
"duet-grid-align-baseline": this.alignment === "baseline", // baseline
|
|
135
|
-
"duet-grid-distribution-left": this.distribution === "left", // flex-start
|
|
136
|
-
"duet-grid-distribution-right": this.distribution === "right", // flex-end
|
|
137
|
-
"duet-grid-distribution-center": this.distribution === "center", // center
|
|
138
|
-
"duet-grid-distribution-between": this.distribution === "space-between", // space-between
|
|
139
|
-
"duet-grid-distribution-around": this.distribution === "space-around", // space-around
|
|
140
|
-
"duet-grid-distribution-evenly": this.distribution === "space-evenly", // space-evenly
|
|
141
|
-
"duet-grid-mobile-left": this.mobile === "left",
|
|
142
|
-
"duet-grid-mobile-center": this.mobile === "center",
|
|
143
|
-
"duet-grid-mobile-right": this.mobile === "right",
|
|
144
|
-
"duet-grid-direction-horizontal": this.direction === "horizontal",
|
|
145
|
-
"duet-grid-direction-vertical": this.direction === "vertical",
|
|
146
|
-
"duet-grid-breakpoint-x-small": this.breakpoint === "x-small",
|
|
147
|
-
"duet-grid-breakpoint-small": this.breakpoint === "small",
|
|
148
|
-
"duet-grid-breakpoint-medium": this.breakpoint === "medium",
|
|
149
|
-
"duet-grid-breakpoint-large": this.breakpoint === "large",
|
|
150
|
-
"duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
|
|
151
|
-
"duet-grid-row-reverse": this.rowReverse,
|
|
152
|
-
[`duet-grid-variation-${this.gridTemplate ? "grid" : "flex"}`]: true,
|
|
153
|
-
[`duet-grid-template-${this.gridTemplate}`]: true,
|
|
154
|
-
} }, h("slot", null)));
|
|
155
|
-
}
|
|
156
|
-
get element() { return this; }
|
|
157
|
-
static get watchers() { return {
|
|
158
|
-
"responsive": ["updateGridItems"],
|
|
159
|
-
"breakpoint": ["updateGridItems"],
|
|
160
|
-
"direction": ["updateGridItems"]
|
|
161
|
-
}; }
|
|
162
|
-
static get style() { return DuetGridStyle0; }
|
|
163
|
-
}, [6, "duet-grid", {
|
|
164
|
-
"responsive": [4],
|
|
165
|
-
"breakpoint": [1],
|
|
166
|
-
"direction": [1],
|
|
167
|
-
"rowReverse": [4, "row-reverse"],
|
|
168
|
-
"alignment": [1],
|
|
169
|
-
"distribution": [1],
|
|
170
|
-
"mobile": [1],
|
|
171
|
-
"gridTemplate": [1, "grid-template"],
|
|
172
|
-
"distributeFormElement": [32]
|
|
173
|
-
}, undefined, {
|
|
174
|
-
"responsive": ["updateGridItems"],
|
|
175
|
-
"breakpoint": ["updateGridItems"],
|
|
176
|
-
"direction": ["updateGridItems"]
|
|
177
|
-
}]);
|
|
178
|
-
function defineCustomElement() {
|
|
179
|
-
if (typeof customElements === "undefined") {
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
const components = ["duet-grid"];
|
|
183
|
-
components.forEach(tagName => { switch (tagName) {
|
|
184
|
-
case "duet-grid":
|
|
185
|
-
if (!customElements.get(tagName)) {
|
|
186
|
-
customElements.define(tagName, DuetGrid);
|
|
187
|
-
}
|
|
188
|
-
break;
|
|
189
|
-
} });
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export { DuetGrid as D, defineCustomElement as d };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as a,g as i}from"./p-18ada958.js";import{i as o}from"./p-aaa7a7bd.js";import{F as s}from"./p-d283b94b.js";import{a as n,c as l,d,g as c}from"./p-7d6b40d1.js";import{h as r}from"./p-8a7ee339.js";import{g as p}from"./p-1784b1d2.js";import"./p-0e052642.js";import"./p-4a901bfc.js";const b=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.hasStickyHeaderSlot=!1,this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.toggleMenu=()=>{this.open=!this.open},this.onClick=()=>{this.toggleMenu()},this.onCloseClick=e=>{e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName&&this.element.parentElement.toggle()},this.label=void 0,this.language=n(),this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest"}componentWillLoad(){o(this),this.updateLabel(),this.hasStickyHeaderSlot=r(this.element,"sticky-header")}connectedCallback(){l(this)}disconnectedCallback(){d(this)}handleOpenChange(e,t){!!e!=!!t&&(this.open&&!t?setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e!==this.element&&(e.inert=!0)})),this.closeButton.focus()}),200):!this.open&&t&&setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e.inert=!1})),this.openButton.focus()}),200))}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:p("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},i=c(this.exitLangObject),o=c(this.backLangObject);return t(a,{key:"22c28c0ab12659f418c97fbf93bbebd68608fb79"},t("div",{key:"34c09abac8c0aee1c1dfd1f2bbac570ed0611b35",class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{key:"8dcfb92e4eb8610e0a89fdbe3c7675e00a2e8379",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.onClick,inert:this.open},this.icon&&t("duet-icon",{key:"4944cd788c6d0018243a4cc6b7d9f597ee6d435e",name:this.icon,size:"medium",margin:"none",color:"secondary"}),t("span",{key:"813420fa817e10189a300006605f4f724b2b854e",class:"label"},t("span",{key:"b63f12c4351efa40940bdcac2dea8889cfbf2c82",class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{key:"fb495263ce936ce817e173148e4fcc35f7fa73b8",name:"label"})),t("duet-icon",{key:"c61e62bf194e44656274ff86ceb55aa51fc3cec8",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{key:"b0b8171895a218075cfc034265abb67c6c12ab4a",class:{dialog:!0,hidden:!this.open},style:e},t(s,{key:"e5fba5ca765f1a531361fddee555cb1811fcdcdb",moveFocusTo:this.closeButton}),t("div",{key:"b5134e29091047b89083c0034c9cea235ca2fe5c",class:{"top-container":!0,"has-sticky-header-slot":this.hasStickyHeaderSlot}},t("div",{key:"9419dbfcc225548ac136e2e0627bc7c17a788fb3",class:"top"},t("button",{key:"4479933ad445c05b72de00c10a54c3336ca89e44",ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${o}`,type:"button",class:{back:!0},onClick:this.onClick},t("duet-icon",{key:"627ec8facc8df37e986fd32f83771825ed0fa23a",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",{key:"b597e175c2c2f97b604f04dccdbf5d00b71bcdb1"},this.label.innerHTML),t("button",{key:"fda07c1948d6aabdfbdebd84a5bbe71bbbe37bfa",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${i}`},t("duet-icon",{key:"ae152cff044ba959bed507383387374a07c64bf1",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{key:"c6be3120a863c54dccf941033374c9c207d8e4af",class:"sticky-header"},t("slot",{key:"723211cc2c88a3c20a61a96c5a802ee1fbe462c0",name:"sticky-header"}))),t("div",{key:"0f34420d3730ff49bb92f54457ba2db91fc43114",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",{key:"8575454b60ae274fe2d4876b3d89fb1b9642afef"})),t(s,{key:"5f96aa2ae4fa9eea21b2dff7ee8151cd3259c291",moveFocusTo:this.closeButton}))))}get element(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};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=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-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(243, 249, 252)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.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 .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(243, 249, 252);border-bottom:1px solid rgb(225, 227, 230)}.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 .has-sticky-header-slot .top{background:rgb(245, 245, 247)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 245, 247);border-bottom:1px solid rgb(228, 228, 230)}.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{b as duet_slideout_panel}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,a){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{d(a.next(t))}catch(t){o(t)}}function s(t){try{d(a["throw"](t))}catch(t){o(t)}}function d(t){t.done?i(t.value):n(t.value).then(r,s)}d((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(e){return d([t,e])}}function d(s){if(a)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(i=0)),i)try{if(a=1,n&&(o=s[0]&2?n["return"]:s[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;if(n=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];n=0}finally{a=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-b9d4ed8d.system.js","./p-e216bea4.system.js","./p-e12af479.system.js","./p-34d7dd10.system.js","./p-d5a206c2.system.js","./p-c1445714.system.js","./p-e6b5a1c7.system.js","./p-6ef75455.system.js","./p-c86d6786.system.js"],(function(t){"use strict";var e,i,a,n,o,r,s,d,u,c,b,l,h,p,f,g,m,v,k,x,w,y;return{setters:[function(t){e=t.r;i=t.h;a=t.H;n=t.g;o=t.c},function(t){r=t.i},function(t){s=t.h;d=t.g},function(t){u=t.s;c=t.u;b=t.o;l=t.p;h=t.d;p=t.b;f=t.a;g=t.c},function(t){m=t.g;v=t.c;k=t.d;x=t.a},function(t){w=t.d},function(t){y=t.c},function(){},function(){}],execute:function(){var _='*,*::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-container{position:relative;flex:0 0 auto;flex-basis:40px;transition:all 300ms ease}:host .duet-scrollable-items .duet-scrollable-button-container.left::after{position:relative;top:-50px;left:20px;z-index:250;display:block;width:30px;height:100%;content:"";background-image:linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0));transition:all 300ms ease}:host .duet-scrollable-items .duet-scrollable-button-container.right::after{position:relative;top:-50px;right:15px;z-index:250;display:block;width:30px;height:100%;content:"";background-image:linear-gradient(to right, rgba(255, 255, 255, 0), rgb(255, 255, 255));transition:all 300ms ease}:host .duet-scrollable-items .duet-scrollable-button-container--occluded{flex-basis:0;flex-shrink:1;width:0;padding:10px 0;overflow:hidden;visibility:hidden}:host .duet-scrollable-items .duet-scrollable-button{position:relative;flex:0 0 auto;flex-basis:40px;height:100%;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--top{align-self:flex-start}:host .duet-scrollable-items .duet-scrollable-button--bottom{align-self:flex-end}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;gap:20px;padding-top:2px;padding-right:5px;padding-left:5px;margin:0 -5px;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(*){flex-shrink:0;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;scroll-snap-align:center}';var j=_;var z=t("duet_scrollable",function(){function t(t){var i=this;e(this,t);this.currentIndex=0;this.scrollPaneElement=undefined;this.hasCollapseButtonLabelSlot=false;this.resizeObserver=new ResizeObserver((function(t){var e,a,n,o;if((t===null||t===void 0?void 0:t.length)===1){var r=(a=(e=t[0])===null||e===void 0?void 0:e.target)===null||a===void 0?void 0:a.getBoundingClientRect().width;var s=(o=(n=t[0])===null||n===void 0?void 0:n.target)===null||o===void 0?void 0:o.scrollWidth;i.isScrollPaneContentSmallerThanWrapper=s>r+5}}));this.collapsedOnClick=function(){i.collapsed=!i.collapsed};this.scrollPaneAtStart=true;this.isScrollPaneContentSmallerThanWrapper=true;this.scrollPaneAtEnd=false;this.childrenData={};this.theme="";this.identifier="";this.collapsed=false;this.buttons=true;this.buttonAlignment="center";this.center=false;this.selected=0}t.prototype.watchPropHandler=function(t){this.scrollToElement(t,"center")};t.prototype.componentWillLoad=function(){r(this);this.hasCollapseButtonLabelSlot=s(this.element,"collapse-button-label")};t.prototype.componentDidLoad=function(){this.resizeObserver.observe(this.scrollPaneElement);this.updateScrollButtons(this.getScrollPaneElements()[0])};t.prototype.disconnectedCallback=function(){this.resizeObserver.disconnect()};t.prototype.getScrollPaneElements=function(){return d(this.element)};t.prototype.getLastVisibleElement=function(){var t=this;var e=this.getScrollPaneElements().find((function(e){return e.getBoundingClientRect().x+e.getBoundingClientRect().width-t.scrollPaneElement.getBoundingClientRect().x>t.scrollPaneElement.clientWidth}));var i=this.getScrollPaneElements().indexOf(e);if(e.clientWidth>this.scrollPaneElement.clientWidth){return i}return i-1};t.prototype.getFirstVisibleElement=function(){var t=this;var e=this.getScrollPaneElements();var i=e.find((function(e){return e.getBoundingClientRect().x>t.scrollPaneElement.getBoundingClientRect().x}));var a=!i?e.length:e.indexOf(i);var n=Math.max(a-1,0);if(e[n].clientWidth>this.scrollPaneElement.clientWidth){return n}return a};t.prototype.updateScrollButtons=function(t,e){if(t===void 0){t=null}if(e===void 0){e=this.scrollPaneElement}if(!this.buttons){return}if(t&&t.clientWidth>this.scrollPaneElement.clientWidth){var i=this.getScrollPaneElements().indexOf(t);if(i==0){this.scrollPaneAtStart=true}if(i==this.getScrollPaneElements().length-1){this.scrollPaneAtEnd=true}return}if(e.scrollLeft<=0){this.scrollPaneAtStart=true}else if(e.scrollLeft>0){this.scrollPaneAtStart=false}if(e.clientWidth+e.scrollLeft+10>=e.scrollWidth){this.scrollPaneAtEnd=true}else if(e.clientWidth+e.scrollLeft+10<e.scrollWidth){this.scrollPaneAtEnd=false}};t.prototype.scrollToElement=function(t,e){var i=this;if(t===void 0){t=this.currentIndex}var a=this.getScrollPaneElements();if(!a||a.length===0){return}if(t+1>=a.length){t=a.length-1}if(t<0){t=0}var n=a[0].getBoundingClientRect().x;var o=5;var r=function(){if(a[0].getBoundingClientRect().x===n){o--;if(o!==0){window.requestAnimationFrame(r);return}i.updateScrollButtons(a[t])}else{window.requestAnimationFrame(r);n=a[0].getBoundingClientRect().x}};a[t].scrollIntoView({behavior:"smooth",block:"nearest",inline:e});window.requestAnimationFrame(r)};t.prototype.scrollLeft=function(){this.scrollPaneAtEnd=false;var t=this.getFirstVisibleElement();this.scrollToElement(t-1,"center")};t.prototype.scrollRight=function(){this.scrollPaneAtStart=false;var t=this.getLastVisibleElement();this.scrollToElement(t+1,"center")};t.prototype.render=function(){var t,e;var n=this;var o=this.theme==="turva"?"color-primary-darker-turva":"color-primary";var r=this.theme==="turva"?"color-gray-turva":"color-gray";return i(a,{key:"5e613776bc5519bb5706b51a2c7e0eb430a67886",class:{"duet-theme-turva":this.theme==="turva","duet-theme-default":this.theme==="default"}},this.hasCollapseButtonLabelSlot&&i("div",{key:"7642df92bec227d43dde6cdad844a50b8a75fd40",class:{collapse:true,hide:!this.isScrollPaneContentSmallerThanWrapper&&!this.collapsed}},i("duet-button",{key:"2a2b9c955233ce02fba939b7a8366f0381d1c349",variation:"plain",margin:"none","center-text":true,onClick:function(){return n.collapsedOnClick()}},i("slot",{key:"403bb72d92de84245e7d17116848faf8d1ca3996",name:"collapse-button-label"}))),i("div",{key:"4e4628fc421a80139fd71d3a0232159b7d31a53b",class:{"duet-scrollable-items":true,buttons:this.buttons,center:this.center}},i("div",{key:"7391cc68e6fcc4921bc23417a45e9144ba64d406",class:{"duet-scrollable-button-container":true,left:true,"duet-scrollable-button-container--occluded":!this.isScrollPaneContentSmallerThanWrapper}},i("button",{key:"1764f20c98b87d8755d14f8ff9991ede35f50d83",part:"".concat(this.identifier,"-button-left"),"aria-hidden":"true",class:(t={"duet-scrollable-button":true},t["duet-scrollable-button--".concat(this.buttonAlignment)]=true,t["duet-scrollable-button--left"]=true,t),onClick:function(){return n.scrollLeft()},disabled:this.scrollPaneAtStart,tabindex:"-1",hidden:!this.buttons},i("duet-icon",{key:"16edd1294a131c36f59f67179e8b1447d7eed983",color:this.scrollPaneAtStart?r:o,name:"action-arrow-left",size:"small",margin:"none"}))),i("div",{key:"b8c2cbd51498d4f6a2a85a8004396e6b379f8407",class:{"duet-scrollable-list":true,collapsed:this.collapsed},onScroll:function(){return n.updateScrollButtons()},ref:function(t){return n.scrollPaneElement=t}},i("slot",{key:"f1981b1e9fe15b835253820136cbdcc32c193c93"})),i("div",{key:"8be1066f5def1e2891f3fd49bb5db5c9639f6c77",class:{"duet-scrollable-button-container":true,right:true,"duet-scrollable-button-container--occluded":!this.isScrollPaneContentSmallerThanWrapper}},i("button",{key:"7764023d0ef66c068d4731c59d86d44f780b189a",part:"".concat(this.identifier,"-button-right"),"aria-hidden":"true",class:(e={"duet-scrollable-button":true},e["duet-scrollable-button--".concat(this.buttonAlignment)]=true,e["duet-scrollable-button--right"]=true,e),onClick:function(){return n.scrollRight()},disabled:this.scrollPaneAtEnd,tabindex:"-1",hidden:!this.buttons},i("duet-icon",{key:"945e693aa629bac7e39d40ab4c6361a92e2cab32",color:this.scrollPaneAtEnd?r:o,name:"action-arrow-right",size:"small",margin:"none"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["watchPropHandler"]}},enumerable:false,configurable:true});return t}());z.style=j;var S=".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}.duet-tab.has-content-id.sc-duet-tab,.duet-tab.has-content-id.selected.sc-duet-tab{display:none}.user-is-tabbing.sc-duet-tab-h .duet-tab.sc-duet-tab:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.sc-duet-tab-h .duet-tab.duet-theme-turva.sc-duet-tab:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";var C=S;var I=t("duet_tab",function(){function t(t){var i=this;e(this,t);this.setupContentElement=function(){if(i.contentId){i.tabpanelElement=document.getElementById(i.contentId);if(i.tabpanelElement){i.tabpanelElement.setAttribute("role","tabpanel");i.tabpanelElement.setAttribute("tabindex","-1");i.tabpanelElement.removeEventListener("focus",i.tabpanelElementFocusListener);i.tabpanelElement.removeEventListener("blur",i.tabpanelElementBlurListener);i.tabpanelElement.addEventListener("focus",i.tabpanelElementFocusListener);i.tabpanelElement.addEventListener("blur",i.tabpanelElementBlurListener);if(i.accessibleDescription){i.tabpanelElement.setAttribute("aria-description",i.accessibleDescription)}if(i.accessibleLabelledBy){i.tabpanelElement.setAttribute("aria-labelledby",i.accessibleLabelledBy)}if(i.selected){i.tabpanelElement.toggleAttribute("hidden",false)}else{i.tabpanelElement.toggleAttribute("hidden",true)}}}};this.tabpanelElementFocusListener=function(){if(i.element.classList.contains("user-is-tabbing")){i.tabpanelElement.style.outline="0";i.tabpanelElement.style.boxShadow=w(i.theme==="turva"?"focus-turva":"focus")}};this.tabpanelElementBlurListener=function(){i.tabpanelElement.style.outline=null;i.tabpanelElement.style.boxShadow=null};this.theme="";this.label=undefined;this.caption=undefined;this.selected=undefined;this.notificationMark=undefined;this.accessibleDescriptionDefault=null;this.accessibleDescription=this.accessibleDescriptionDefault?m(this.accessibleDescriptionDefault):null;this.accessibleLabelledBy=undefined;this.contentId=undefined}t.prototype.componentWillLoad=function(){r(this)};t.prototype.connectedCallback=function(){v(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"});u(this);this.setupContentElement()};t.prototype.disconnectedCallback=function(){k(this);c(this);if(this.tabpanelElement){this.tabpanelElement.removeAttribute("role");this.tabpanelElement.removeAttribute("tabindex");this.tabpanelElement.removeAttribute("aria-description");this.tabpanelElement.removeAttribute("aria-labelledby");this.tabpanelElement.removeAttribute("hidden");this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener.bind(this));this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener.bind(this));this.tabpanelElement=undefined}};t.prototype.setupSelected=function(t,e){if(!!t===!!e){return}this.setupContentElement()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.tabpanelElement.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;return i("div",{ref:function(e){if(!t.contentId){t.tabpanelElement=e}},role:"tabpanel",class:{"duet-theme-turva":this.theme==="turva","duet-tab":true,selected:this.selected,"has-content-id":!!this.contentId},"aria-description":this.accessibleDescription,"aria-labelledby":this.accessibleLabelledBy,tabindex:"-1"},i("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["setupSelected"]}},enumerable:false,configurable:true});return t}());I.style=C;var U='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-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-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(247, 178, 40);box-shadow:0 0 0 1px #dea024}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(222, 35, 98);box-shadow:0 0 0 1px #c82058}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.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-theme-turva .duet-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(250, 164, 15);box-shadow:0 0 0 1px #e1940e}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(224, 42, 13);box-shadow:0 0 0 1px #ca260c}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.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)}';var E=U;var A=t("duet_tab_group",function(){function t(t){var a=this;e(this,t);this.duetChange=o(this,"duetChange",3);this.duetTabChange=o(this,"duetTabChange",7);this.duetTabChangeRequested=o(this,"duetTabChangeRequested",7);this.id=y("DuetTabGroup");this.handleKeyDown=function(t){var e;if(h(t)||p(t)){e=t.target.previousElementSibling}else if(f(t)||g(t)){e=t.target.nextElementSibling}if(b(t)&&!l(t)){t.preventDefault();a.element.querySelector("duet-tab[selected]").setFocus()}if(e){t.preventDefault();e.click();e.focus()}};this.onTabSelect=function(t){if(a.tabChangeConfirm){if(t!==a.selected){var e={value:t,component:"duet-tab-group"};a.duetTabChangeRequested.emit(e)}}else{a.openTab(t)}};this.scrollToActive=function(){if(a.variation==="checked"||a.variation==="plain-scrolling"){setTimeout((function(){var t=a.tabsContainer.querySelector(".selected");if(t){t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}),50)}};this.renderTab=function(){var t=a.tabs.map((function(t,e){var n;return i("button",{role:"tab",id:a.getButtonId(e),"aria-selected":t.selected?"true":"false","aria-description":a.getAccessibleDescription(e),tabindex:t.selected?"0":"-1",part:"".concat(a.identifier,"-button ").concat(t.selected?"".concat(a.identifier,"-button--selected"):""),type:"button",class:(n={"duet-p-0":a.padding==="none","duet-tab-button":true,"stackable-tab":a.variation==="checked"&&a.tabs.length<=3,selected:t.selected},n["duet-notification-mark-".concat(t.notificationMark)]=!!t.notificationMark,n),onClick:function(){return a.onTabSelect(e)},onKeyDown:function(t){return a.handleKeyDown(t)}},a.variation==="checked"?i("div",{class:{"checked-tab-content":true,"stackable-checked-tab-content":a.tabs.length<=3}},i("div",{class:{"checked-tab-description":true,"stackable-description":a.tabs.length<=3}},i("p",null,t.label),i("p",{class:{"tab-caption":true,selected:t.selected}},t.caption)),i("div",{class:{"stackable-checkmark":a.tabs.length<=3}},i("duet-checkmark",{theme:a.theme,checked:t.selected,type:"radio","presentation-only":true,center:true}))):t.label)}));if(a.scrolls){return i("duet-scrollable",{selected:a.selected,identifier:a.identifier},t)}return t};this.tabs=[];this.selected=undefined;this.theme="";this.scrolls=false;this.collapses=true;this.accessibleLabel=undefined;this.variation="default";this.language=x();this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"};this.label=m(this.labelDefaults,this.language);this.labelHidden=true;this.identifier=this.id;this.margin="auto";this.padding="auto";this.setTabIndex=true;this.tabChangeConfirm=false}t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:if(typeof MutationObserver!=="undefined"){this.mutationO=new MutationObserver((function(){t.updateTabs()}));this.mutationO.observe(this.element,{attributes:true,attributeFilter:["label"],childList:true,characterData:true,subtree:true})}return[4,this.updateTabs()];case 1:e.sent();u(this);return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}c(this)};t.prototype.componentWillLoad=function(){r(this)};t.prototype.componentDidLoad=function(){this.scrollToActive()};t.prototype.openTab=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){if(t>=this.tabs.length){throw new Error("[duet-tabs] Index ".concat(t," is out of bounds of tabs length"))}this.selected=t;this.tabs.forEach((function(e,i){e.selected=i===t}));this.scrollToActive();e={value:t,component:"duet-tab-group"};this.duetChange.emit(e);this.duetTabChange.emit(e);return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.");return[2]}))}))};t.prototype.getTabs=function(){var t=this;var e=Array.from(this.element.querySelectorAll("duet-tab"));var i=e.filter((function(e){return e.closest("duet-tab-group")===t.element}));if(i.length===0){throw new Error("[duet-tabs] Must have at least one tab")}return i};t.prototype.getButtonId=function(t){return"".concat(this.id,"-button-").concat(t)};t.prototype.getTabId=function(t){return"".concat(this.id,"-tab-").concat(t)};t.prototype.getAccessibleDescription=function(t){var e=this.tabs[t].getAttribute("accessible-description")||null;return e};t.prototype.updateTabs=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this.selected=undefined;this.tabs=this.getTabs();this.tabs.forEach((function(e,i){e.id=t.getTabId(i);if(e.selected){if(t.selected===undefined){t.selected=i}else{e.selected=false}}}));if(this.selected===undefined){this.selected=0;this.tabs[0].selected=true}return[2]}))}))};t.prototype.render=function(){var t;var e=this;var a=this.variation==="plain-scrolling"?"duet-tab-variation-plain":"duet-tab-variation-".concat(this.variation);var n=this.variation==="checked"||this.variation==="plain-scrolling";return i("div",{key:"a09d023095d80f1984c13102ed5f85594d0c2e54",class:(t={"duet-tab-group":true,"duet-theme-turva":this.theme==="turva"},t[a]=true,t["duet-tab-plain-scrolling"]=this.variation==="plain-scrolling",t["duet-tab-group-scrolls"]=this.scrolls,t["duet-tab-group-collapses"]=this.collapses,t),"aria-label":this.accessibleLabel},!n&&this.tabs.length>3&&this.collapses&&i("duet-select",{key:"6d5a053f2a39b2e5042fa199b50ef6dfcb2e8395",value:this.selected.toString(),expand:true,label:this.label,labelHidden:this.labelHidden,theme:this.theme,onDuetChange:function(t){return e.onTabSelect(Number(t.detail.value))},items:this.tabs.map((function(t,e){return{label:t.label,value:e.toString()}}))}),i("div",{key:"c314e15b44bfec35a9dce7f0b3343adb2560eb1e",role:"tablist",class:{"duet-m-0":this.margin==="none"||this.variation==="checked","duet-tab-group-tabs":true,"duet-tab-group-hidden":this.tabs.length>3&&!n,"duet-tab-group-collapses":this.collapses},ref:function(t){e.tabsContainer=t}},this.renderTab()),i("div",{key:"a05213a66ee2ac2103eeb887312551edde85914c",class:{"duet-tab-group-content":true,"duet-m-0":this.margin==="none","checked-group-content":this.variation==="checked"}},i("slot",{key:"4e1231a85f36bf98be1d5ab1054e031dd2b4b814"})))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());A.style=E}}}));
|