@duetds/components 10.3.0 → 10.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +782 -325
- package/hydrate/index.mjs +782 -325
- package/lib/cjs/{a11y-utils-b27OEdFX.js → a11y-utils-BXDHn_nL.js} +1 -1
- package/lib/cjs/{app-globals-DhPOoPl1.js → app-globals-Bs3-XKhd.js} +1 -1
- 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 +5 -5
- package/lib/cjs/duet-banner.cjs.entry.js +13 -9
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
- package/lib/cjs/duet-button_2.cjs.entry.js +27 -12
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +16 -16
- package/lib/cjs/duet-card.cjs.entry.js +8 -8
- package/lib/cjs/duet-checkbox.cjs.entry.js +5 -5
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +7 -5
- package/lib/cjs/duet-choice_2.cjs.entry.js +15 -13
- package/lib/cjs/duet-collapsible.cjs.entry.js +6 -6
- package/lib/cjs/duet-combobox.cjs.entry.js +27 -10
- package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +30 -34
- package/lib/cjs/duet-divider_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +12 -12
- package/lib/cjs/duet-empty-state.cjs.entry.js +33 -7
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +8 -8
- package/lib/cjs/duet-grid_2.cjs.entry.js +14 -7
- package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-hero.cjs.entry.js +9 -9
- package/lib/cjs/duet-icon.cjs.entry.js +7 -7
- package/lib/cjs/duet-indicator.cjs.entry.js +5 -5
- package/lib/cjs/duet-input_2.cjs.entry.js +22 -14
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-modal.cjs.entry.js +14 -14
- package/lib/cjs/duet-multiselect.cjs.entry.js +11 -11
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-number-input.cjs.entry.js +8 -8
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
- package/lib/cjs/duet-pagination_2.cjs.entry.js +18 -18
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +30 -18
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +13 -9
- package/lib/cjs/duet-radio_2.cjs.entry.js +10 -8
- package/lib/cjs/duet-range-slider.cjs.entry.js +7 -7
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +17 -17
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +10 -10
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart.cjs.entry.js +8 -8
- package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
- package/lib/cjs/duet-slideout.cjs.entry.js +20 -18
- package/lib/cjs/duet-status-icon.cjs.entry.js +8 -4
- package/lib/cjs/duet-step_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
- package/lib/cjs/duet-textarea.cjs.entry.js +14 -21
- package/lib/cjs/duet-toggle.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
- 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 +6 -6
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-BlVVWFcS.js → errorcodes.utils-W6UQ3hgy.js} +1 -1
- package/lib/cjs/{focus-utils-DIeiBu1A.js → focus-utils-KTKpjKRi.js} +1 -1
- package/lib/cjs/{index-CeCDgexG.js → index-C7Yvi8y8.js} +5 -5
- package/lib/cjs/{label-BK_7MvDR.js → label-DZ63Z3SI.js} +1 -1
- package/lib/cjs/{language-utils-BmMgyx0x.js → language-utils-BsevPDrN.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-PLQ1zjHe.js → slot-utils-DIDW777s.js} +2 -2
- package/lib/cjs/{themeable-component-DD3okLL-.js → themeable-component-hQ83w5_A.js} +1 -1
- package/lib/cjs/{token-utils-CaLsk40I.js → token-utils-DY3-olMV.js} +1 -1
- package/lib/cjs/{tokens-DWngQgYY.js → tokens-COLlUECP.js} +226 -4
- package/lib/cjs/{tokens.module-BMAWZwue.js → tokens.module-CTbvyezn.js} +152 -4
- package/lib/collection/components/duet-action-button/duet-action-button.css +1 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.css +7 -0
- package/lib/collection/components/duet-banner/duet-banner.js +8 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +1 -1
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.css +14 -8
- package/lib/collection/components/duet-button/duet-button.js +20 -5
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.js +2 -2
- package/lib/collection/components/duet-card/duet-card.css +2 -2
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +1 -1
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +2 -2
- package/lib/collection/components/duet-chip/duet-chip.css +1 -3
- package/lib/collection/components/duet-chip/duet-chip.js +4 -2
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.css +3 -3
- package/lib/collection/components/duet-choice/duet-choice.js +9 -36
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +1 -1
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
- package/lib/collection/components/duet-combobox/duet-combobox.js +22 -5
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/date-utils.js +2 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +8 -9
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +23 -29
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.css +55 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +124 -6
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.css +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +4 -4
- package/lib/collection/components/duet-grid/duet-grid.css +23 -0
- package/lib/collection/components/duet-grid/duet-grid.js +29 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-header/duet-header.css +6 -6
- package/lib/collection/components/duet-heading/duet-heading.css +62 -0
- package/lib/collection/components/duet-heading/duet-heading.js +40 -2
- package/lib/collection/components/duet-hero/duet-hero.css +1 -1
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-indicator/duet-indicator.js +2 -2
- package/lib/collection/components/duet-input/duet-input.css +81 -64
- package/lib/collection/components/duet-input/duet-input.js +14 -6
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.css +1 -1
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.css +1 -1
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +1 -1
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +1 -1
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +1 -1
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +1 -1
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +1 -1
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +7 -7
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +33 -48
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.css +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +1 -1
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
- package/lib/collection/components/duet-number-input/duet-number-input.css +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.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-panel/duet-panel.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +21 -9
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +2 -2
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +8 -1
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +8 -4
- package/lib/collection/components/duet-radio/duet-radio.css +1 -1
- package/lib/collection/components/duet-radio/duet-radio.js +6 -4
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.css +29 -37
- 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-share-chart/duet-share-chart.js +2 -2
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.css +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.css +1 -1
- package/lib/collection/components/duet-slideout/duet-slideout.js +12 -10
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +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.css +2 -4
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +1 -1
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-status-icon/duet-status-icon.css +39 -0
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +13 -2
- package/lib/collection/components/duet-step/duet-step.css +1 -1
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.css +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +3 -3
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.css +41 -77
- package/lib/collection/components/duet-textarea/duet-textarea.js +8 -15
- package/lib/collection/components/duet-toggle/duet-toggle.css +1 -1
- package/lib/collection/components/duet-toggle/duet-toggle.js +3 -3
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +1 -1
- 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.css +1 -1
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +1 -1
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +1 -1
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +1 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tray/duet-tray.css +2 -2
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/slot-utils.js +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/p--fmK3qPb.js +4 -0
- package/lib/duet/{p-9240c039.entry.js → p-01f3e30c.entry.js} +1 -1
- package/lib/duet/p-0395eb34.entry.js +4 -0
- package/lib/duet/{p-7609417a.entry.js → p-0453edd0.entry.js} +1 -1
- package/lib/duet/p-07aa40df.entry.js +4 -0
- package/lib/duet/{p-bc5b4e44.entry.js → p-07c4b435.entry.js} +1 -1
- package/lib/duet/p-0eb0e582.entry.js +4 -0
- package/lib/duet/p-104ddbf2.entry.js +4 -0
- package/lib/duet/{p-137e710f.entry.js → p-12e4e9b6.entry.js} +1 -1
- package/lib/duet/{p-3a4dcdbd.entry.js → p-13b7f4e0.entry.js} +1 -1
- package/lib/duet/{p-11847d3e.entry.js → p-14d4a45a.entry.js} +1 -1
- package/lib/duet/{p-f31a6b2e.entry.js → p-1666aeaf.entry.js} +1 -1
- package/lib/duet/{p-d9963958.entry.js → p-1705b6cf.entry.js} +1 -1
- package/lib/duet/{p-6ff3fc39.entry.js → p-184d53a7.entry.js} +1 -1
- package/lib/duet/{p-6ca30a68.entry.js → p-1bdef0e0.entry.js} +1 -1
- package/lib/duet/p-1dcbbd67.entry.js +4 -0
- package/lib/duet/{p-c0785349.entry.js → p-1ed82a27.entry.js} +1 -1
- package/lib/duet/{p-a5b9e098.entry.js → p-1ee400e7.entry.js} +1 -1
- package/lib/duet/p-2168e431.entry.js +4 -0
- package/lib/duet/p-2HU78SJ-.js +4 -0
- package/lib/duet/{p-408ace89.entry.js → p-2d43de54.entry.js} +1 -1
- package/lib/duet/{p-20aefca2.entry.js → p-2e413951.entry.js} +1 -1
- package/lib/duet/{p-32c7c0c1.entry.js → p-3361387d.entry.js} +1 -1
- package/lib/duet/p-3648404d.entry.js +4 -0
- package/lib/duet/{p-1da05915.entry.js → p-376f9d06.entry.js} +1 -1
- package/lib/duet/p-3bd45b5b.entry.js +4 -0
- package/lib/duet/{p-9da7ffc9.entry.js → p-3c26d300.entry.js} +1 -1
- package/lib/duet/{p-6f08e639.entry.js → p-428db44b.entry.js} +1 -1
- package/lib/duet/p-4420973e.entry.js +4 -0
- package/lib/duet/{p-90ab8a57.entry.js → p-455e8ebe.entry.js} +1 -1
- package/lib/duet/{p-565bcf84.entry.js → p-46300680.entry.js} +1 -1
- package/lib/duet/{p-f9f25386.entry.js → p-494755d0.entry.js} +1 -1
- package/lib/duet/{p-70d7a04d.entry.js → p-4c5a8ed3.entry.js} +1 -1
- package/lib/duet/{p-c504dc42.entry.js → p-4d39941c.entry.js} +1 -1
- package/lib/duet/p-4f7b0699.entry.js +4 -0
- package/lib/duet/p-526fa31c.entry.js +4 -0
- package/lib/duet/p-58496fb1.entry.js +4 -0
- package/lib/duet/{p-62954ecf.entry.js → p-58a70b3d.entry.js} +1 -1
- package/lib/duet/{p-9f941e06.entry.js → p-592a6542.entry.js} +1 -1
- package/lib/duet/p-5c8c691b.entry.js +4 -0
- package/lib/duet/{p-ab939713.entry.js → p-5dde8fbb.entry.js} +1 -1
- package/lib/duet/{p-73263349.entry.js → p-5ffc4081.entry.js} +1 -1
- package/lib/duet/{p-5a576bae.entry.js → p-61b6962a.entry.js} +1 -1
- package/lib/duet/{p-faf6d461.entry.js → p-6988c81c.entry.js} +1 -1
- package/lib/duet/p-73ed0008.entry.js +4 -0
- package/lib/duet/p-7a2ca711.entry.js +4 -0
- package/lib/duet/{p-43723ce5.entry.js → p-7a5066b8.entry.js} +1 -1
- package/lib/duet/{p-d36dabf1.entry.js → p-7a668cee.entry.js} +1 -1
- package/lib/duet/p-7e640c8e.entry.js +4 -0
- package/lib/duet/{p-00e0f919.entry.js → p-7eaa1fb5.entry.js} +1 -1
- package/lib/duet/{p-93bfe3dd.entry.js → p-81332db1.entry.js} +1 -1
- package/lib/duet/{p-caf9df46.entry.js → p-816caa58.entry.js} +1 -1
- package/lib/duet/{p-098d7665.entry.js → p-84420fbf.entry.js} +1 -1
- package/lib/duet/p-870dc953.entry.js +4 -0
- package/lib/duet/{p-22143e3e.entry.js → p-87bb797c.entry.js} +1 -1
- package/lib/duet/p-9d8027aa.entry.js +4 -0
- package/lib/duet/p-BW3SZS4F.js +4 -0
- package/lib/duet/p-Ce9HQd35.js +4 -0
- package/lib/duet/{p-DNW9B4-w.js → p-Chf7ZRmW.js} +1 -1
- package/lib/duet/p-CtBx3Trd.js +4 -0
- package/lib/duet/{p-FlJJ5tdo.js → p-Cwhi6_oZ.js} +1 -1
- package/lib/duet/{p-BEzfNXw0.js → p-D2EBd3cT.js} +1 -1
- package/lib/duet/{p-D8k4CqJb.js → p-D2ly4TZR.js} +1 -1
- package/lib/duet/p-DCDM41Ef.js +4 -0
- package/lib/duet/p-DEzE2U5T.js +4 -0
- package/lib/duet/{p-Bo0igXOs.js → p-DWIjWGAD.js} +1 -1
- package/lib/duet/{p-713cc11f.entry.js → p-a4a1b8e3.entry.js} +1 -1
- package/lib/duet/p-a4db8c29.entry.js +4 -0
- package/lib/duet/p-a63327c3.entry.js +4 -0
- package/lib/duet/{p-1eb20304.entry.js → p-a690a165.entry.js} +1 -1
- package/lib/duet/{p-c8f8acf7.entry.js → p-a7bb038a.entry.js} +1 -1
- package/lib/duet/{p-2736a400.entry.js → p-adecab91.entry.js} +1 -1
- package/lib/duet/p-af9c8169.entry.js +4 -0
- package/lib/duet/{p-e19d51b1.entry.js → p-afd7d87a.entry.js} +1 -1
- package/lib/duet/{p-b7865974.entry.js → p-b3ec9b98.entry.js} +1 -1
- package/lib/duet/{p-42105616.entry.js → p-b64b3e2f.entry.js} +1 -1
- package/lib/duet/{p-4de84b4d.entry.js → p-bcced6eb.entry.js} +1 -1
- package/lib/duet/{p-91370277.entry.js → p-c1d4542d.entry.js} +1 -1
- package/lib/duet/{p-6e98887f.entry.js → p-c71f6942.entry.js} +1 -1
- package/lib/duet/p-c7851c15.entry.js +4 -0
- package/lib/duet/p-cbd1069e.entry.js +4 -0
- package/lib/duet/p-cd4f52a9.entry.js +4 -0
- package/lib/duet/{p-a745eb10.entry.js → p-d0a54e6d.entry.js} +1 -1
- package/lib/duet/p-d181c624.entry.js +4 -0
- package/lib/duet/{p-c23accaf.entry.js → p-d2c04a7e.entry.js} +1 -1
- package/lib/duet/{p-014c965f.entry.js → p-d2c91ed0.entry.js} +1 -1
- package/lib/duet/p-d3dac8af.entry.js +4 -0
- package/lib/duet/{p-9ceede7a.entry.js → p-dc87f3f4.entry.js} +1 -1
- package/lib/duet/{p-bb0567b4.entry.js → p-dfd55180.entry.js} +1 -1
- package/lib/duet/{p-b0622412.entry.js → p-e8bd6dab.entry.js} +1 -1
- package/lib/duet/p-e9ed96cf.entry.js +4 -0
- package/lib/duet/p-eab349f2.entry.js +4 -0
- package/lib/duet/{p-2d9e573a.entry.js → p-eebf150c.entry.js} +1 -1
- package/lib/duet/{p-ed252dd9.entry.js → p-f210e405.entry.js} +1 -1
- package/lib/duet/{p-2981f32d.entry.js → p-f600e215.entry.js} +1 -1
- package/lib/duet/p-f652a9c7.entry.js +4 -0
- package/lib/duet/{p-ae714f68.entry.js → p-fbce84d5.entry.js} +1 -1
- package/lib/duet/{p-6db9ac4d.entry.js → p-fea479fd.entry.js} +1 -1
- package/lib/esm/{a11y-utils-DAo2lcPY.js → a11y-utils-sgAajRY0.js} +1 -1
- package/lib/esm/{app-globals-CzrvWXbM.js → app-globals-NNQmI_gc.js} +1 -1
- 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 +5 -5
- package/lib/esm/duet-banner.entry.js +13 -9
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +7 -7
- package/lib/esm/duet-button_2.entry.js +27 -12
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +16 -16
- package/lib/esm/duet-card.entry.js +8 -8
- package/lib/esm/duet-checkbox.entry.js +5 -5
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +7 -5
- package/lib/esm/duet-choice_2.entry.js +15 -13
- package/lib/esm/duet-collapsible.entry.js +6 -6
- package/lib/esm/duet-combobox.entry.js +27 -10
- package/lib/esm/duet-contact-card.entry.js +5 -5
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +30 -34
- package/lib/esm/duet-divider_2.entry.js +6 -6
- package/lib/esm/duet-editable-table_3.entry.js +12 -12
- package/lib/esm/duet-empty-state.entry.js +33 -7
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +8 -8
- package/lib/esm/duet-grid_2.entry.js +14 -7
- package/lib/esm/duet-header_2.entry.js +7 -7
- package/lib/esm/duet-hero.entry.js +9 -9
- package/lib/esm/duet-icon.entry.js +7 -7
- package/lib/esm/duet-indicator.entry.js +5 -5
- package/lib/esm/duet-input_2.entry.js +22 -14
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +5 -5
- package/lib/esm/duet-menu-bar-button.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-menu-bar-item.entry.js +7 -7
- package/lib/esm/duet-menu-bar-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar.entry.js +6 -6
- package/lib/esm/duet-modal.entry.js +14 -14
- package/lib/esm/duet-multiselect.entry.js +11 -11
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +9 -9
- package/lib/esm/duet-number-input.entry.js +8 -8
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +4 -4
- package/lib/esm/duet-pagination_2.entry.js +18 -18
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +4 -4
- package/lib/esm/duet-popup-menu_2.entry.js +30 -18
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +13 -9
- package/lib/esm/duet-radio_2.entry.js +10 -8
- package/lib/esm/duet-range-slider.entry.js +7 -7
- package/lib/esm/duet-scrollable_3.entry.js +17 -17
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +10 -10
- package/lib/esm/duet-shaped-image.entry.js +4 -4
- package/lib/esm/duet-share-chart-item.entry.js +2 -2
- package/lib/esm/duet-share-chart.entry.js +8 -8
- package/lib/esm/duet-show-more.entry.js +5 -5
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +7 -7
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +13 -13
- package/lib/esm/duet-slideout.entry.js +20 -18
- package/lib/esm/duet-status-icon.entry.js +8 -4
- package/lib/esm/duet-step_2.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +8 -8
- package/lib/esm/duet-textarea.entry.js +14 -21
- package/lib/esm/duet-toggle.entry.js +8 -8
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +8 -8
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +9 -9
- package/lib/esm/duet-tooltip.entry.js +5 -5
- 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 +6 -6
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-DFNtyigo.js → errorcodes.utils-CqW0-HM8.js} +1 -1
- package/lib/esm/{focus-utils-BMaSpIw7.js → focus-utils-Dokkd7xz.js} +1 -1
- package/lib/esm/{index-FlJJ5tdo.js → index-Cwhi6_oZ.js} +5 -5
- package/lib/esm/{label-B8qZstXv.js → label-CyQlly6Z.js} +1 -1
- package/lib/esm/{language-utils-D6DmVtHY.js → language-utils-LZh-sc2s.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-CNDJ1X0N.js → slot-utils-CEZnAp61.js} +2 -2
- package/lib/esm/{themeable-component-r_Tw1vqr.js → themeable-component-D_FVcjsD.js} +1 -1
- package/lib/esm/{token-utils-D46K_pN4.js → token-utils-B0KAgyj_.js} +1 -1
- package/lib/esm/{tokens-vvm7i9oY.js → tokens-Ce9HQd35.js} +226 -4
- package/lib/esm/{tokens.module-D84A7Xf6.js → tokens.module-DEzE2U5T.js} +152 -4
- package/lib/types/common-types.d.ts +11 -28
- package/lib/types/components/duet-banner/duet-banner.d.ts +1 -0
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -0
- package/lib/types/components/duet-date-picker/date-utils.d.ts +1 -1
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +1 -2
- package/lib/types/components/duet-empty-state/duet-empty-state.d.ts +24 -4
- package/lib/types/components/duet-grid/duet-grid.d.ts +5 -0
- package/lib/types/components/duet-heading/duet-heading.d.ts +10 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +1 -0
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +0 -5
- package/lib/types/components.d.ts +72 -6
- package/package.json +5 -5
- package/lib/duet/p-0c653c09.entry.js +0 -4
- package/lib/duet/p-0ef804e4.entry.js +0 -4
- package/lib/duet/p-1a28bbe1.entry.js +0 -4
- package/lib/duet/p-1d81fcf9.entry.js +0 -4
- package/lib/duet/p-1f2469d6.entry.js +0 -4
- package/lib/duet/p-2b489051.entry.js +0 -4
- package/lib/duet/p-2e967dc9.entry.js +0 -4
- package/lib/duet/p-30190152.entry.js +0 -4
- package/lib/duet/p-44d1fafb.entry.js +0 -4
- package/lib/duet/p-47070cce.entry.js +0 -4
- package/lib/duet/p-554d9373.entry.js +0 -4
- package/lib/duet/p-59553aa5.entry.js +0 -4
- package/lib/duet/p-5dc3f346.entry.js +0 -4
- package/lib/duet/p-5dc8a394.entry.js +0 -4
- package/lib/duet/p-6359eb27.entry.js +0 -4
- package/lib/duet/p-831e210d.entry.js +0 -4
- package/lib/duet/p-846b040f.entry.js +0 -4
- package/lib/duet/p-8ff66f04.entry.js +0 -4
- package/lib/duet/p-9fd00141.entry.js +0 -4
- package/lib/duet/p-BZkhQa5F.js +0 -4
- package/lib/duet/p-BsJux4JM.js +0 -4
- package/lib/duet/p-Bv3O2yFB.js +0 -4
- package/lib/duet/p-D84A7Xf6.js +0 -4
- package/lib/duet/p-Dd0j805V.js +0 -4
- package/lib/duet/p-a4b62f2f.entry.js +0 -4
- package/lib/duet/p-b8648d7a.entry.js +0 -4
- package/lib/duet/p-c18726af.entry.js +0 -4
- package/lib/duet/p-c2572d80.entry.js +0 -4
- package/lib/duet/p-d3b4339e.entry.js +0 -4
- package/lib/duet/p-dZaxsCbb.js +0 -4
- package/lib/duet/p-dfab71df.entry.js +0 -4
- package/lib/duet/p-e655dd7d.entry.js +0 -4
- package/lib/duet/p-f0eda0e2.entry.js +0 -4
- package/lib/duet/p-f58c0527.entry.js +0 -4
- package/lib/duet/p-fc0cb6fb.entry.js +0 -4
- package/lib/duet/p-vvm7i9oY.js +0 -4
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
8
8
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
9
|
-
var languageUtils = require('./language-utils-
|
|
10
|
-
var slotUtils = require('./slot-utils-
|
|
9
|
+
var languageUtils = require('./language-utils-BsevPDrN.js');
|
|
10
|
+
var slotUtils = require('./slot-utils-DIDW777s.js');
|
|
11
11
|
var actionArrowDownSmall = require('./action-arrow-down-small-CDsSJFvZ.js');
|
|
12
12
|
require('./string-utils-B35hEUBv.js');
|
|
13
13
|
require('./_commonjsHelpers-4N64IRaP.js');
|
|
@@ -88,11 +88,11 @@ const DuetNotification = class {
|
|
|
88
88
|
return `${indicatorText}${slottedText}${slottedText.endsWith(".") ? "" : "."} ${this.date}`;
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (index.h("div", { key: '
|
|
91
|
+
return (index.h("div", { key: '8497858acf685b75adce100af83521ea62dad249', role: "listitem", class: {
|
|
92
92
|
"duet-notification": true,
|
|
93
93
|
"duet-notification-highlight": this.highlight,
|
|
94
94
|
"duet-theme-turva": this.theme === "turva",
|
|
95
|
-
} }, index.h("a", { key: '
|
|
95
|
+
} }, index.h("a", { key: 'd055bb5cebbf8d33eb35d193d1bb1fa106c5ec49', ref: element => (this.linkElement = element), href: this.url, target: this.external ? "_blank" : "_self", "aria-label": this.getAriaLabelText() }, index.h("div", { key: '37b18aada4bbdcc07fbae2fb2a379e4ce499d1a2', class: "duet-notification-container" }, index.h("div", { key: 'd82a6a30c51dcbe9fa55d184f9475ee52824c960', class: "duet-indicator-container" }, this.highlight && (index.h("duet-indicator", { key: 'ba8cf675f5f79738b621bb60be60e955648f72fb', variation: "new", "accessible-label": this.accessibleLabelUnread }))), index.h("div", { key: '7616f1c0b61f842cb19959f8a26d972740d4983c', class: "duet-notification-content" }, index.h("slot", { key: '3d15bf405f3f7e6bb7b699835882720db81c60ac' })), index.h("div", { key: '479850eacc300888b148101759908b962db1d24a', class: "duet-notification-date" }, this.date)))));
|
|
96
96
|
}
|
|
97
97
|
get element() { return index.getElement(this); }
|
|
98
98
|
};
|
|
@@ -221,13 +221,13 @@ const DuetNotificationDrawer = class {
|
|
|
221
221
|
* Always the last one in the class.
|
|
222
222
|
*/
|
|
223
223
|
render() {
|
|
224
|
-
return (index.h("div", { key: '
|
|
224
|
+
return (index.h("div", { key: '5a100874ee332b5f81a62d4d398273cfb1b039e6', class: {
|
|
225
225
|
"duet-drawer": true,
|
|
226
226
|
"duet-theme-turva": this.theme === "turva",
|
|
227
|
-
}, onKeyDown: this.handleKeyDown }, index.h("button", { key: '
|
|
227
|
+
}, onKeyDown: this.handleKeyDown }, index.h("button", { key: '5f4027d95ace3dbcf790932b8fcc55c197acfeec', ref: el => (this.drawerButtonEl = el), type: "button", class: {
|
|
228
228
|
"duet-drawer-toggle": true,
|
|
229
229
|
"duet-theme-turva": this.theme === "turva",
|
|
230
|
-
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (index.h("div", { key: '
|
|
230
|
+
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (index.h("div", { key: 'd23738346a3b9c9a977fac31c44686b300f8c3f8', class: "duet-drawer-icon" }, index.h("duet-icon", { key: '9ce663baf3e178117742894d71342eeb0f306b8a', margin: "none", size: "x-small", name: this.icon, color: "currentColor" }), this.badge && index.h("duet-indicator", { key: '135c19cacc21c20599e1250c19b2cb9af6ca1edb', variation: "change" }))), index.h("span", { key: 'cc45c180750b2237fc49015944f664ea23f1c50c', class: "duet-drawer-label" }, this.label), index.h("div", { key: 'c268d18597783a3fcd307bb07813526d97039ae4', class: "duet-drawer-caret" }, index.h("duet-icon", { key: '8d34addc1a9e1bbb1d4d9db02873e8ce1ceded11', margin: "none", size: "auto", icon: actionArrowDownSmall.arrowDownIcon.svg, color: "currentColor" }))), index.h("div", { key: '1bd28344339dc98c5f9173997921badf217c64c0', id: "duet-drawer-content", class: {
|
|
231
231
|
"duet-drawer-content": true,
|
|
232
232
|
"duet-drawer-right": this.direction === "right",
|
|
233
233
|
"duet-drawer-left": this.direction === "left",
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
7
|
var _commonjsHelpers = require('./_commonjsHelpers-4N64IRaP.js');
|
|
8
|
-
var themeableComponent = require('./themeable-component-
|
|
8
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
9
9
|
var createId = require('./create-id-DtslnIOq.js');
|
|
10
10
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
11
|
-
var languageUtils = require('./language-utils-
|
|
12
|
-
var slotUtils = require('./slot-utils-
|
|
11
|
+
var languageUtils = require('./language-utils-BsevPDrN.js');
|
|
12
|
+
var slotUtils = require('./slot-utils-DIDW777s.js');
|
|
13
13
|
require('./string-utils-B35hEUBv.js');
|
|
14
14
|
|
|
15
15
|
var actionAdd;
|
|
@@ -482,15 +482,15 @@ const DuetNumberInput = class {
|
|
|
482
482
|
const identifier = this.identifier || this.inputId;
|
|
483
483
|
const maxlength = `${this.localizeValue(this.max)}${this.getUnitString()}`.length;
|
|
484
484
|
const cleanedValue = !!this.value ? SafeParseFloat(this.value, this.locale) : null;
|
|
485
|
-
return (index.h(index.Host, { key: '
|
|
485
|
+
return (index.h(index.Host, { key: '57eac991277459719dcade2b546edefadcb8871f', class: {
|
|
486
486
|
"duet-theme-turva": this.theme === "turva",
|
|
487
487
|
"duet-expand": this.expand,
|
|
488
488
|
"duet-m-0": this.margin === "none",
|
|
489
|
-
} }, index.h("div", { key: '
|
|
489
|
+
} }, index.h("div", { key: '4d7f3b727a098c85311caf342b8ec3346c355b03', class: "duet-number-container" }, index.h("duet-input", { key: 'd35dedfc296c7b6f7e02a8a44426a939ba57834f', ref: input => (this.duetInputElement = input), onDuetChange: event => this.handleChange(event), onDuetFocus: this.handleFocus, onDuetBlur: event => this.handleBlur(event), onKeyDown: event => this.handleKeyDown(event), label: this.label, value: this.value ? `${this.value}${this.getUnitString()}` : "", error: this.error, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": cleanedValue != null ? cleanedValue : "", maxlength: maxlength, name: this.name, component: "number", required: this.required, disabled: this.disabled, role: this.role, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true, numericKeyboard: true, autoComplete: "off", type: "text", accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleLabelledBy: this.accessibleLabelledBy, accessibleDescription: this.accessibleDescription, accessibleDetails: this.accessibleDetails, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy }, index.h("slot", { key: 'e5860f54edf1658f5ad57a74f02e287029c1c80a', name: "tooltip" }), index.h("div", { key: '627ac970632ff026d545f5510ee3444beddcd78f', class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, index.h("button", { key: '7db5fc9647aa97d03e12889341f4842240ec168a', disabled: this.disabled, "aria-disabled": cleanedValue == null || cleanedValue === this.min ? "true" : "false", class: "duet-number-button duet-number-button-subtract", onClick: this.subtract, type: "button" }, index.h("duet-visually-hidden", { key: '213bff89b72eab57e824a7ccbdd8cf93176379b0' }, this.accessibleSubtract
|
|
490
490
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
491
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), index.h("duet-icon", { key: '
|
|
491
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), index.h("duet-icon", { key: '19a80d9db5a8709544dd93813a507dcf0f0f5530', icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), index.h("button", { key: '63d32e8db7089552645fed533d4bb537b17ac397', disabled: this.disabled, "aria-disabled": cleanedValue === this.max ? "true" : "false", class: "duet-number-button duet-number-button-add", onClick: this.add, type: "button" }, index.h("duet-visually-hidden", { key: '9662d147e10aa5b1b71d5d64a299a6fc9b5d376d' }, this.accessibleAdd
|
|
492
492
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
493
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), index.h("duet-icon", { key: '
|
|
493
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), index.h("duet-icon", { key: 'f6bd61234faa0d4c46e87d095b777c0d2deb4daf', icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (index.h("duet-visually-hidden", { key: '77c6dc2c84affba33a53c9875b4baaa77d633280', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
|
|
494
494
|
}
|
|
495
495
|
get element() { return index.getElement(this); }
|
|
496
496
|
};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
8
8
|
|
|
9
9
|
const duetOverlayCss = ".duet-overlay{position:fixed;top:0;left:0;display:block;visibility:visible;width:100%;height:100%;background:rgb(8, 42, 77);opacity:0.3}.duet-overlay.keep-stacking-context{position:absolute;top:unset;left:unset;z-index:unset !important}.duet-overlay.modal-overlay{z-index:-1}.duet-overlay.hidden{visibility:hidden;opacity:0}.duet-overlay.dark{opacity:0.85}.duet-overlay.white{background:rgb(255, 255, 255);opacity:0.9}.duet-overlay.display-x-small{display:none}@media (max-width: 35.9375em){.duet-overlay.display-x-small{display:block}}.duet-overlay.display-x-small.not{display:block}@media (max-width: 35.9375em){.duet-overlay.display-x-small.not{display:none}}.duet-overlay.display-small{display:none}@media (min-width: 36em){.duet-overlay.display-small{display:block}}.duet-overlay.display-small.not{display:block}@media (min-width: 36em){.duet-overlay.display-small.not{display:none}}.duet-overlay.display-medium{display:none}@media (min-width: 48em){.duet-overlay.display-medium{display:block}}.duet-overlay.display-medium.not{display:block}@media (min-width: 48em){.duet-overlay.display-medium.not{display:none}}.duet-overlay.display-large{display:none}@media (min-width: 62em){.duet-overlay.display-large{display:block}}.duet-overlay.display-large.not{display:block}@media (min-width: 62em){.duet-overlay.display-large.not{display:none}}.duet-overlay.transition-slowly{transition:600ms ease}.duet-overlay.transition-quickly{transition:300ms ease}.duet-overlay.duet-theme-turva{background:rgb(23, 42, 59)}.duet-overlay.duet-theme-turva.white{background:rgb(255, 255, 255)}";
|
|
10
10
|
|
|
@@ -61,7 +61,7 @@ const DuetOverlay = class {
|
|
|
61
61
|
* Always the last one in the class.
|
|
62
62
|
*/
|
|
63
63
|
render() {
|
|
64
|
-
return (index.h(index.Host, { key: '
|
|
64
|
+
return (index.h(index.Host, { key: '022e03bd6245ccf60d2b1f5b2067b68e97722f0f', "aria-hidden": "true" }, index.h("div", { key: 'b29aabf87beb396113a3bcda0cc6fbdecfabc797', style: { zIndex: this.zIndex }, class: {
|
|
65
65
|
"duet-overlay": true,
|
|
66
66
|
"duet-theme-turva": this.theme === "turva",
|
|
67
67
|
"keep-stacking-context": this.keepStackingContext,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
8
8
|
|
|
9
9
|
const duetPageHeadingCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:block;width:100%}.duet-page-heading{position:relative;display:block;width:100%;margin:0 auto;overflow:hidden;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(8, 42, 77)}.duet-page-heading.duet-p-0{padding:0 !important}.duet-page-heading.duet-m-0{margin:0 !important}.duet-page-heading.auto{overflow:visible}.duet-page-heading.auto .heading,.duet-page-heading.auto .background{max-width:none}.duet-page-heading.fluid,.duet-page-heading.narrow{padding:0 16px}@media (min-width: 36em){.duet-page-heading.fluid{padding:0 28px}}@media (min-width: 62em){.duet-page-heading.fluid{padding:0 56px}}@media (min-width: 76.25em){.duet-page-heading.fluid{max-width:1110px;padding:0}}.duet-page-heading.narrow{max-width:888px}@media (min-width: 36em){.duet-page-heading.narrow{padding:0 48px}}@media (min-width: 48em){.duet-page-heading.narrow{padding:0 72px}}.duet-page-heading .heading{max-width:744px;padding:48px 90px 16px 0}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}}.duet-page-heading:not(.has-icon) .heading{padding-right:0}.duet-page-heading .background{position:absolute;top:0;right:0;left:0;width:100%;max-width:744px;height:104px;margin:0 auto;margin:0 auto}@media (min-width: 48em){.duet-page-heading .background{height:165px}}.duet-page-heading .background .background-mask{position:absolute;top:-20px;right:0;display:block;width:286px;height:331px;pointer-events:none;background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIxIiBoZWlnaHQ9IjI1NyIgdmlld0JveD0iMCAwIDcyMSAyNTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yODIwXzY5OTkxKSI+CjxwYXRoIGQ9Ik04MC4xNzA1IDIzLjE4MTVDOTEuOTY5OSAxOC44NjU5IDEwMi44NyAxMS42NTU5IDExMi45MDkgMS41NjQ0OEMxMjMuNzcgLTguMzA1MjcgMTM0LjM4MiAtMTguMjAxMSAxNDQuODI2IC0yOC4xODgyQzE1NS4yNDMgLTM4LjE2MjIgMTY1LjkwOCAtNDguMDg0MSAxNzYuNzQzIC01Ny45Mjc4QzE3OC44MTYgLTU5LjA0OSAxODAuN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2LjU0MSAxODkuMDc3IiBmaWxsPSIjRjVGNUY3Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjgyMF82OTk5MSI+CjxyZWN0IHdpZHRoPSI3MjEiIGhlaWdodD0iMjU2Ljg0OCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K\");background-repeat:no-repeat;background-size:contain}@media (min-width: 48em){.duet-page-heading .background .background-mask{top:-40px;width:502px;height:577px}}.duet-page-heading .background .brand-shape{position:absolute;top:-157px;right:-20px;width:185px;height:185px;background:rgb(0, 119, 179);border-radius:20%;mix-blend-mode:normal;opacity:0.2;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shape{top:-280px;right:-40px;width:325px;height:325px}}.duet-page-heading .background .brand-shape.second-shape{top:-182px;right:100px;width:207px;height:207px;background:rgb(11, 114, 136);opacity:0.1}@media (min-width: 48em){.duet-page-heading .background .brand-shape.second-shape{top:-325px;right:200px;width:365px;height:365px}}.duet-page-heading .background .brand-shaped-icon{position:absolute;top:20px;right:16px;display:flex;align-items:center;justify-content:center;width:85px;width:60px;height:85px;height:60px;background:rgba(0, 119, 179, 0.75);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon{right:36px;width:93px;height:93px}}.duet-page-heading .background .brand-shaped-icon duet-icon{width:60px;height:60px;transform:rotate(-7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon duet-icon{width:75px;height:75px}}.duet-page-heading .progress-indicator{display:flex;flex-direction:row;gap:4px}.duet-page-heading .progress-step{width:100%;height:4px;background-color:rgb(181, 198, 208);border-radius:2px}.duet-page-heading .progress-step.active{background-color:rgb(0, 119, 179)}.duet-page-heading.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(8, 42, 77)}.duet-page-heading.duet-theme-turva .background .background-mask{background-image:none}.duet-page-heading.duet-theme-turva .brand-shaped-icon{background:rgb(23, 42, 59);border-radius:16%;-webkit-mask-image:none;mask-image:none;transform:rotate(0)}.duet-page-heading.duet-theme-turva .brand-shaped-icon duet-icon{top:0;transform:rotate(0)}.duet-page-heading.duet-theme-turva .progress-step{background-color:rgb(178, 194, 205)}.duet-page-heading.duet-theme-turva .progress-step.active{background-color:rgb(230, 23, 64)}";
|
|
10
10
|
|
|
@@ -46,12 +46,12 @@ const DuetPageHeading = class {
|
|
|
46
46
|
*/
|
|
47
47
|
render() {
|
|
48
48
|
const layout = this.layout === "narrow" ? "narrow" : this.layout === "fluid" ? "fluid" : "auto";
|
|
49
|
-
return (index.h("div", { key: '
|
|
49
|
+
return (index.h("div", { key: 'f353e792c29cf6a49513529f3a54740bf2894dcc', class: {
|
|
50
50
|
"duet-page-heading": true,
|
|
51
51
|
"duet-theme-turva": this.theme === "turva",
|
|
52
52
|
"has-icon": !!this.icon,
|
|
53
53
|
[layout]: true,
|
|
54
|
-
} }, index.h("div", { key: '
|
|
54
|
+
} }, index.h("div", { key: 'b8a5a752d4557b2ac2ac2bfc1c2e65861d4c0521', class: "background" }, this.theme === "turva" && index.h("div", { key: 'ff9cbab91c325792d84f24d227d67b5bd2f83401', class: "background-mask" }), this.theme !== "turva" && index.h("div", { key: 'c697b3df64c3300caccb801818e16e0f82be19b4', class: "brand-shape" }), this.theme !== "turva" && index.h("div", { key: '86bea79fd3c261f4042b7f55129cf5b3e2bbcc20', class: "brand-shape second-shape" }), this.icon && (index.h("div", { key: 'f95cb3034647398542c7eac251e3a8ee589fde3c', class: "brand-shaped-icon" }, index.h("duet-icon", { key: '5ea162f55f426e4fb23d062c42b452f9d02dd8db', background: "none", name: this.icon, margin: "none", size: "auto", responsive: false })))), index.h("div", { key: 'ca049bcfa7903693dcd81e7053f9c8436f5bc972', class: "heading" }, index.h("slot", { key: '1f11d60c4883d6a083ab58a3549230893373a4b0', name: "heading" }), this.progressCurrentStep !== undefined && this.progressTotalSteps > 0 && (index.h("div", { key: '3d192a48b6d2f852c76bb4cca92a6bd260c89b6d' }, index.h("duet-spacer", { key: 'ae3a5aa598bca7741ddeefb498ad03a00f01ffa1', size: "large" }), index.h("div", { key: '145b65c13423049136df5afff6d6f0b75fceeff2', role: "presentation" }, this.progressIndicator()))))));
|
|
55
55
|
}
|
|
56
56
|
get element() { return index.getElement(this); }
|
|
57
57
|
};
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
8
8
|
var createId = require('./create-id-DtslnIOq.js');
|
|
9
9
|
var jsUtils = require('./js-utils-hJ4A2edy.js');
|
|
10
10
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
11
|
-
var languageUtils = require('./language-utils-
|
|
11
|
+
var languageUtils = require('./language-utils-BsevPDrN.js');
|
|
12
12
|
var stringUtils = require('./string-utils-B35hEUBv.js');
|
|
13
|
-
var tokenUtils = require('./token-utils-
|
|
14
|
-
require('./tokens.module-
|
|
13
|
+
var tokenUtils = require('./token-utils-DY3-olMV.js');
|
|
14
|
+
require('./tokens.module-CTbvyezn.js');
|
|
15
15
|
|
|
16
16
|
const shouldDisplayNavigation = (visibleItems, total, take) => {
|
|
17
17
|
if (visibleItems * 2 > total / take) {
|
|
@@ -396,32 +396,32 @@ const DuetPagination = class {
|
|
|
396
396
|
* Always the last one in the class.
|
|
397
397
|
*/
|
|
398
398
|
render() {
|
|
399
|
-
return (index.h(index.Host, { key: '
|
|
399
|
+
return (index.h(index.Host, { key: '07c38979b231dbf5a56713a66a5b185d4c3e2822', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, index.h("nav", { key: '128744d916789820fba42f8475d2d2ce86ba42c8', role: "navigation", "aria-labelledby": this.accessibleLabelledBy ? `${this.accessibleLabelledBy} ${this.listId}` : this.listId, "aria-describedby": this.accessibleDescribedBy ? `${this.accessibleDescribedBy} ${this.listId}` : this.listId, "aria-descriptions": this.accessibleDescription, "aria-details": this.accessibleDetails, ref: el => (this.nativeNav = el), "aria-controls": this.ariaControls, class: {
|
|
400
400
|
"duet-pagination-nav": true,
|
|
401
401
|
[`duet-pagination-variation-${this.variation}`]: true,
|
|
402
|
-
} }, this.numbersStore !== "" && (index.h("div", { key: '
|
|
402
|
+
} }, this.numbersStore !== "" && (index.h("div", { key: '2666aa8028eb8270455a0fa5cfe4db71cc5a2705', "aria-live": "assertive", "aria-relevant": "text", class: "duet-pagination-overlay", "aria-label": `${this.accessibleLabels.jump_to} ${this.numbersStore}`, part: "navigation-overlay" }, index.h("duet-badge", { key: '5006048f11b634ac53981dd1de48d24786763bce', theme: this.theme }, "jump to page : ", this.numbersStore))), index.h("ol", { key: '6359ab5b15062ff7533365dbf693745cd8c20363', id: this.listId, class: {
|
|
403
403
|
"duet-pagination": true,
|
|
404
404
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
405
|
-
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (index.h("li", { key: '
|
|
405
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (index.h("li", { key: '9ed757c34264a5d9b98faf0a497a188720a9496e', class: {
|
|
406
406
|
"duet-pagination-page-button": true,
|
|
407
407
|
"duet-pagination-button-first": true,
|
|
408
|
-
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '
|
|
408
|
+
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: 'e5a376e51af5edecd2631bb8b3cf02610545692e', disabled: (this.internalSectionIndex === 0 && this.current <= 1) || this.disabled, "data-direction": "back", accessibleLabel: this.accessibleLabels.first_page, title: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), "icon-name": "action-move-to-first", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[0] : undefined }))), index.h("li", { key: '168de5258be5f0f7008e100d4683fc02c3064581', class: {
|
|
409
409
|
"duet-pagination-page-button": true,
|
|
410
410
|
"duet-pagination-button-first": true,
|
|
411
|
-
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '
|
|
411
|
+
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: 'af5ba5fa8e2b376f0b27f523283447cf28147a7e', disabled: !!((this.internalSectionIndex === 0 && this.current <= 1) ||
|
|
412
412
|
(this.current <= 1 && this.processedPageLinks) ||
|
|
413
|
-
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (index.h(index.Fragment, { key: '
|
|
414
|
-
this.shouldDisplayNavigation() && (index.h(index.Fragment, { key: '
|
|
413
|
+
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (index.h(index.Fragment, { key: '7bd37d481400c119a456c8b652eb3d692e5fd494' }, index.h("li", { key: '4992a1986eb573d5202077e46ad00b6421993d1e', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, index.h("duet-button", { key: '508172776a6640e80e3ab8194de2e337a884bff6', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-jump-back", "center-text": "true", variation: "plain", color: this.theme !== "turva" ? "secondary" : "secondary-turva", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[0] : undefined }, index.h("div", { key: '200db789756b44c9a2f5772d1dd47fb643941a8c', class: "duet-pagination-page-number" }, "1"))), index.h("li", { key: '671815628d37eb09a768187f86e5626bb83ff4e9', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, index.h("duet-button", { key: '10734ac5cb625203ea5bf3aa016b66eb8cc5107d', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-dots-back", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1), theme: this.theme }, index.h("div", { key: '7b995d636201ffbbb4e32c6867304d26cd9deb37', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026"))))), (this.shouldDisplayNavigation() && this.renderPageNumbers()) || this.renderSelect(), (this.internalSectionIndex + 1) * this.visibleItems < this.totalPages &&
|
|
414
|
+
this.shouldDisplayNavigation() && (index.h(index.Fragment, { key: '7c4c1587b80070022309e8f809e1a5f1cda1c754' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (index.h("li", { key: '7ed7e399d452f10d7950e4900ee99cb122f5f71c', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, index.h("duet-button", { key: '034dd1e1d88c51a2fd376dc412ad5c5d181bc24a', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-dots-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.next_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, 1), theme: this.theme }, index.h("div", { key: '810bcd10da373edf7e7be89da5fcb36686a1e888', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), index.h("li", { key: '5e03de6360345650ce6d286ecc553351620028d5', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, index.h("duet-button", { key: '3822ccc78f50fd0e6c0eb149a059fb6375c2dd9f', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-jump-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), theme: this.theme, url: this.processedPageLinks
|
|
415
415
|
? this.processedPageLinks[this.processedPageLinks.length - 1]
|
|
416
|
-
: undefined }, index.h("div", { key: '
|
|
416
|
+
: undefined }, index.h("div", { key: '0ad55ddc86b6b0edec485316998e67153924e760', class: "duet-pagination-page-number" }, this.totalPages))))), index.h("li", { key: 'fc2a275cd29e3c10162ada93effec7d8b85c4dfc', class: {
|
|
417
417
|
"duet-pagination-page-button": true,
|
|
418
418
|
"duet-pagination-button-last": true,
|
|
419
|
-
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '
|
|
419
|
+
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '3ff469847711467ad2604371688183007dca39de', disabled: !!((this.current === this.totalPages &&
|
|
420
420
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
421
|
-
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (index.h("li", { key: '
|
|
421
|
+
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (index.h("li", { key: '561178af1382559d15b047297d2ce3a1fb757587', class: {
|
|
422
422
|
"duet-pagination-page-button": true,
|
|
423
423
|
"duet-pagination-button-last": true,
|
|
424
|
-
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '
|
|
424
|
+
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: 'e5a2489a00c27cceb92224b60fa17e301fb2607e', disabled: (this.current === this.totalPages &&
|
|
425
425
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
426
426
|
this.disabled, accessibleLabel: this.accessibleLabels.last_page, title: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), "icon-name": "action-move-to-last", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.totalPages - 1] : undefined })))))));
|
|
427
427
|
}
|
|
@@ -621,10 +621,10 @@ const DuetRangeStepper = class {
|
|
|
621
621
|
* Always the last one in the class.
|
|
622
622
|
*/
|
|
623
623
|
render() {
|
|
624
|
-
return (index.h("div", { key: '
|
|
624
|
+
return (index.h("div", { key: '1b5b22965b01d2a7ae85b7339ee8645f8349f4b6', class: {
|
|
625
625
|
"duet-range-stepper": true,
|
|
626
626
|
"duet-theme-turva": this.theme === "turva",
|
|
627
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, index.h("span", { key: '
|
|
627
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, index.h("span", { key: '54b38991bc5f22f1834a911aab5adcb3f5564728', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), index.h("duet-action-button", { key: '1f0e154e3dc32e14ebf7ec696182b11915045b5a', disabled: this.disabled || this.buttonLeftDisabled, class: "duet-range-step-button duet-range-step-minus", onClick: e => this.handleClick(e, -1), id: this.leftBn, "accessible-label": `${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`, ref: el => (this.leftBnRef = el), part: "navigation-arrow", iconName: "action-arrow-left-small", title: "" }), index.h("duet-action-button", { key: '2531345ee7783cc6b6c2e742abdf6240aea88bb9', disabled: this.disabled || this.buttonRightDisabled, class: "duet-range-step-button duet-range-step-plus", onClick: e => this.handleClick(e, 1), "accessible-label": `${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow", iconName: "action-arrow-right-small", title: "" })));
|
|
628
628
|
}
|
|
629
629
|
get element() { return index.getElement(this); }
|
|
630
630
|
static get watchers() { return {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
8
8
|
|
|
9
9
|
const duetPanelCss = ":host {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n background: transparent;\n border: 0;\n position: relative;\n display: block;\n width: 100%;\n margin: 8px 0 20px 0;\n}\n@container (width > 36em) {\n :host {\n margin: 12px 0 28px 0;\n }\n}\n\n:host(.duet-m-0) {\n margin: 0;\n}\n\n.duet-panel {\n font-family: \"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n color: rgb(8, 42, 77);\n background-color: rgb(255, 255, 255);\n border: 0 solid rgb(212, 223, 229);\n border-radius: 16px;\n}\n.duet-panel.padding-small {\n padding: 16px;\n border-radius: 12px;\n}\n@container (width > 36em) {\n .duet-panel.padding-small {\n padding: 20px;\n }\n}\n.duet-panel.padding-medium {\n padding: 20px;\n}\n@container (width > 36em) {\n .duet-panel.padding-medium {\n padding: 28px;\n }\n}\n.duet-panel.padding-large {\n padding: 28px;\n}\n@container (width > 36em) {\n .duet-panel.padding-large {\n padding: 36px;\n }\n}\n.duet-panel.border {\n border-width: 1px;\n}\n.duet-panel.secondary {\n background-color: rgb(245, 248, 250);\n}\n.duet-panel.accent {\n background-color: rgb(240, 247, 250);\n border-color: rgb(198, 225, 238);\n}\n.duet-panel.accent.secondary {\n background-color: rgb(217, 236, 245);\n}\n\n.duet-panel.duet-theme-turva {\n font-family: \"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n color: rgb(23, 42, 59);\n border-color: rgb(212, 221, 226);\n}\n.duet-panel.duet-theme-turva.secondary {\n background-color: rgb(245, 246, 247);\n}\n.duet-panel.duet-theme-turva.accent {\n background-color: rgb(253, 247, 242);\n border-color: rgb(241, 202, 178);\n}\n.duet-panel.duet-theme-turva.accent.secondary {\n background-color: rgb(251, 225, 209);\n}";
|
|
10
10
|
|
|
@@ -36,14 +36,14 @@ const DuetPanel = class {
|
|
|
36
36
|
themeableComponent.inheritGlobalTheme(this);
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: '1de47ce04e9998565d49fc6786654bad4ab27b07', class: { "duet-m-0": this.margin === "none" } }, index.h("section", { key: 'fbd6b8aa69e37ad67a48b52c65097a1a18ca6c6b', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, "aria-describedby": this.accessibleDescribedBy, class: {
|
|
40
40
|
"duet-panel": true,
|
|
41
41
|
"duet-theme-turva": this.theme === "turva",
|
|
42
42
|
[this.variation.split("-")[0]]: true,
|
|
43
43
|
[this.variation.split("-")[1]]: true,
|
|
44
44
|
[`padding-${this.padding}`]: true,
|
|
45
45
|
border: this.border,
|
|
46
|
-
} }, index.h("slot", { key: '
|
|
46
|
+
} }, index.h("slot", { key: '8309057522fb581d231a752add39db842a9b655b' }))));
|
|
47
47
|
}
|
|
48
48
|
get element() { return index.getElement(this); }
|
|
49
49
|
};
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
8
8
|
var createId = require('./create-id-DtslnIOq.js');
|
|
9
9
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
10
|
-
var languageUtils = require('./language-utils-
|
|
11
|
-
var slotUtils = require('./slot-utils-
|
|
10
|
+
var languageUtils = require('./language-utils-BsevPDrN.js');
|
|
11
|
+
var slotUtils = require('./slot-utils-DIDW777s.js');
|
|
12
12
|
require('./string-utils-B35hEUBv.js');
|
|
13
13
|
|
|
14
14
|
const countries = {
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tokens_module = require('./tokens.module-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
|
+
var tokens_module = require('./tokens.module-CTbvyezn.js');
|
|
8
8
|
var floatingUi_dom_browser_min = require('./floating-ui.dom.browser.min-Cj0r5YDz.js');
|
|
9
|
-
var themeableComponent = require('./themeable-component-
|
|
10
|
-
var a11yUtils = require('./a11y-utils-
|
|
11
|
-
var focusUtils = require('./focus-utils-
|
|
9
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
10
|
+
var a11yUtils = require('./a11y-utils-BXDHn_nL.js');
|
|
11
|
+
var focusUtils = require('./focus-utils-KTKpjKRi.js');
|
|
12
12
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
13
|
-
var languageUtils = require('./language-utils-
|
|
13
|
+
var languageUtils = require('./language-utils-BsevPDrN.js');
|
|
14
14
|
var teleport = require('./teleport-Cqp2Q9R8.js');
|
|
15
15
|
var actionNewWindowSmall = require('./action-new-window-small-BWlVx6YN.js');
|
|
16
|
-
require('./slot-utils-
|
|
16
|
+
require('./slot-utils-DIDW777s.js');
|
|
17
17
|
require('./string-utils-B35hEUBv.js');
|
|
18
18
|
require('./_commonjsHelpers-4N64IRaP.js');
|
|
19
19
|
|
|
@@ -198,12 +198,14 @@ const DuetPopupMenu = class {
|
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
this.teleport.observeDeletion();
|
|
201
|
-
|
|
202
|
-
this.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
201
|
+
requestAnimationFrame(() => {
|
|
202
|
+
if (this.controller && typeof this.controller !== "string") {
|
|
203
|
+
this.setOpenButton(this.controller);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
this.setOpenButton();
|
|
207
|
+
}
|
|
208
|
+
});
|
|
207
209
|
}
|
|
208
210
|
disconnectedCallback() {
|
|
209
211
|
if (this.autoUpdateCleanup) {
|
|
@@ -218,6 +220,11 @@ const DuetPopupMenu = class {
|
|
|
218
220
|
* Component event handling.
|
|
219
221
|
*/
|
|
220
222
|
handleKeyUp(evt) {
|
|
223
|
+
var _a;
|
|
224
|
+
if (((_a = this.openButton) === null || _a === void 0 ? void 0 : _a.role) === "combobox") {
|
|
225
|
+
// Comboboxes handles this on their own
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
221
228
|
if (this.open) {
|
|
222
229
|
// When Esc is pressed the menu should be closed
|
|
223
230
|
if (keyboardUtils.isEscapeKey(evt)) {
|
|
@@ -264,6 +271,11 @@ const DuetPopupMenu = class {
|
|
|
264
271
|
}
|
|
265
272
|
}
|
|
266
273
|
handleClick(evt) {
|
|
274
|
+
var _a;
|
|
275
|
+
if (((_a = this.openButton) === null || _a === void 0 ? void 0 : _a.role) === "combobox") {
|
|
276
|
+
// Comboboxes handles this on their own
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
267
279
|
const isClickOutside = evt.composedPath().every(node => node !== this.element && node !== this.openButton);
|
|
268
280
|
if (this.open && isClickOutside) {
|
|
269
281
|
this.hide();
|
|
@@ -414,17 +426,17 @@ const DuetPopupMenu = class {
|
|
|
414
426
|
overflowY: "auto",
|
|
415
427
|
height: this.popupMenuStyleHeight,
|
|
416
428
|
};
|
|
417
|
-
return (index.h(index.Host, { key: '
|
|
429
|
+
return (index.h(index.Host, { key: 'faa607d185d31d39be849eaf1bc2e04a18dc6844', role: this.accessibleRole === "menu" ? "application" : null }, index.h("div", { key: '30e8fda181937ec87b45753e11407752b9cb8bdb', ref: element => {
|
|
418
430
|
this.menuElement = element;
|
|
419
431
|
}, style: styles, class: {
|
|
420
432
|
open: this.open,
|
|
421
433
|
"duet-popup-menu-list": true,
|
|
422
434
|
"duet-theme-turva": this.theme === "turva",
|
|
423
435
|
"scroll-visible": this.scrollLimit < this.itemElements.length,
|
|
424
|
-
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (index.h("div", { key: '
|
|
436
|
+
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (index.h("div", { key: '63a51a1dade7d51632c7cc03dcc5889943c06384' }, index.h("duet-input", { key: '0afe720395fbe6388ce6fb8fa106540671768f10', ref: el => (this.filterInput = el), label: this.filterLabel[this.language], "label-hidden": true, expand: true, margin: "none", type: "search", onDuetInput: this.filterItems, onKeyDown: this.handleKeyDownOnFilter }), index.h("duet-visually-hidden", { key: '8dafb4aa2cec51336c1ac0ce62fc7d55aa8950e6' }, index.h("span", { key: '172e686cfd6f5cbaab6e64a49ab86ad9ef6f860d', role: "status" }, `
|
|
425
437
|
${this.filterResultCount}/${this.itemElements.length}
|
|
426
438
|
${this.filterResultCountLabel[this.language]}
|
|
427
|
-
`)), index.h("duet-spacer", { key: '
|
|
439
|
+
`)), index.h("duet-spacer", { key: '01b48e3d5918af7980363bb2256e65e9e109bfa3', size: "xx-small" }))), index.h("slot", { key: 'd2dec433d6eb6720850805950182ff9edeaa4dc3' }))));
|
|
428
440
|
}
|
|
429
441
|
get element() { return index.getElement(this); }
|
|
430
442
|
static get watchers() { return {
|
|
@@ -536,11 +548,11 @@ const DuetPopupMenuItem = class {
|
|
|
536
548
|
};
|
|
537
549
|
// Without the role ternary Safari/iPhone wouldn't announce the label for role menuitem.
|
|
538
550
|
// This is a tradeoff and now Safari announces these items as buttons and links with the label.
|
|
539
|
-
return (index.h(index.Host, { key: '
|
|
551
|
+
return (index.h(index.Host, { key: '8e31b4732e423f363115f217c220217f85a3899a', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, index.h(TagName, { key: '5abea3ae0f24951e2f99d2a905e08def59b7d23c', ref: element => (this.itemElement = element), tabIndex: this.accessibleRole === "listitem" ? 0 : -1, onFocus: this.onFocus, onBlur: this.onBlur, role: `${TagName === "a" ? "link" : "button"}`, "aria-label": this.accessibleLabel, class: classes, value: this.value, href: this.url, target: this.external ? "_blank" : undefined, rel: this.external ? "noopener" : undefined, lang: TagName === "button" ? undefined : this.targetLanguage, hreflang: TagName === "button" ? undefined : this.targetLanguage, "aria-current": this.active ? "true" : undefined }, this.leadingIcon && (index.h("duet-icon", { key: '540354237f8e224355ddb092458c9cfb7e312afe', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), index.h("span", { key: 'b8304eae0ef5162910e1875f50737ee9a1a9b22a', class: "duet-popup-menu-item-label" }, index.h("slot", { key: '68a5948beee5b74d8c2b537e221f4d338398ad08' })), (this.trailingIcon || this.active || (this.url && this.external)) && (index.h("duet-icon", { key: '0054c8c0f16b760bd4044f2b29911b5dbacc2c70', name: this.url && this.external
|
|
540
552
|
? actionNewWindowSmall.newWindowIcon.title
|
|
541
553
|
: this.active
|
|
542
554
|
? "messaging-checked-small"
|
|
543
|
-
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && index.h("span", { key: '
|
|
555
|
+
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && index.h("span", { key: 'b1f655997c830f6d87c4091244628bec97fc0886', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
544
556
|
}
|
|
545
557
|
get element() { return index.getElement(this); }
|
|
546
558
|
};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
8
8
|
var createId = require('./create-id-DtslnIOq.js');
|
|
9
|
-
var languageUtils = require('./language-utils-
|
|
9
|
+
var languageUtils = require('./language-utils-BsevPDrN.js');
|
|
10
10
|
require('./string-utils-B35hEUBv.js');
|
|
11
11
|
|
|
12
12
|
const duetProgressCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;width:100%;height:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0 none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva .progress-bar{background-color:rgb(253, 247, 242)}.duet-progress.duet-theme-turva .progress-bar>span{background-color:rgb(230, 23, 64)}.duet-progress.duet-theme-turva progress[value]{color:rgb(230, 23, 64)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(253, 247, 242)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(230, 23, 64)}.duet-progress.duet-theme-turva progress[value]::-moz-progress-bar{background-color:rgb(253, 247, 242)}";
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
8
|
-
var slotUtils = require('./slot-utils-
|
|
9
|
-
var tokenUtils = require('./token-utils-
|
|
10
|
-
require('./tokens.module-
|
|
6
|
+
var index = require('./index-C7Yvi8y8.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-hQ83w5_A.js');
|
|
8
|
+
var slotUtils = require('./slot-utils-DIDW777s.js');
|
|
9
|
+
var tokenUtils = require('./token-utils-DY3-olMV.js');
|
|
10
|
+
require('./tokens.module-CTbvyezn.js');
|
|
11
11
|
|
|
12
|
-
const duetPromoCardCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:4px !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height: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-style:normal;color:rgb(8, 42, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none;border-radius:20px}.duet-promo-card .content-wrapper:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-promo-card .content-wrapper:focus,.duet-promo-card .content-wrapper:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;object-fit:cover;border-top-left-radius:20px;border-top-right-radius:20px}.duet-promo-card .content{display:flex;flex-grow:1;flex-direction:column;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card-link{transition:box-shadow 300ms ease}.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-theme-turva.duet-promo-card{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-theme-turva.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}";
|
|
12
|
+
const duetPromoCardCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:4px !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height: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-style:normal;color:rgb(8, 42, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none;border-radius:20px}.duet-promo-card .content-wrapper:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-promo-card .content-wrapper:focus,.duet-promo-card .content-wrapper:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;object-fit:cover;border-top-left-radius:20px;border-top-right-radius:20px}.duet-promo-card .content{display:flex;flex-grow:1;flex-direction:column;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card-link{transition:box-shadow 300ms ease}.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}::slotted(.duet-heading){margin:inherit !important;font-size:inherit !important;line-height:inherit !important;color:inherit !important}.duet-theme-turva.duet-promo-card{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-theme-turva.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}";
|
|
13
13
|
|
|
14
14
|
const DuetPromoCard = class {
|
|
15
15
|
constructor(hostRef) {
|
|
@@ -43,12 +43,16 @@ const DuetPromoCard = class {
|
|
|
43
43
|
* Component lifecycle events.
|
|
44
44
|
*/
|
|
45
45
|
componentWillLoad() {
|
|
46
|
+
const headings = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
46
47
|
themeableComponent.inheritGlobalTheme(this);
|
|
47
48
|
this.hasPreHeadingSlot = slotUtils.hasSlot(this.element, "pre-heading");
|
|
48
49
|
this.hasHeadingSlot = slotUtils.hasSlot(this.element, "heading");
|
|
49
50
|
this.hasDescriptionSlot = slotUtils.hasSlot(this.element, "description");
|
|
50
51
|
this.hasActionSlot = slotUtils.hasSlot(this.element, "action");
|
|
51
|
-
slotUtils.checkNamedSlotElement(this.element, "heading",
|
|
52
|
+
slotUtils.checkNamedSlotElement(this.element, "heading", `span,${headings.join(",")}`);
|
|
53
|
+
if (this.hasHeadingSlot && slotUtils.getElementsFromNamedSlot(this.element, "heading")[0].matches(headings.join(","))) {
|
|
54
|
+
this.hasHeadingSlotNative = true;
|
|
55
|
+
}
|
|
52
56
|
slotUtils.checkNamedSlotElement(this.element, "description", "span");
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
@@ -71,12 +75,12 @@ const DuetPromoCard = class {
|
|
|
71
75
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
72
76
|
};
|
|
73
77
|
const TagName = this.url ? "a" : "div";
|
|
74
|
-
return (index.h(index.Host, { key: '
|
|
78
|
+
return (index.h(index.Host, { key: '95b3ed27ee63d653dd40150704011e9e4ff62977', class: { "duet-m-0": this.margin === "none" } }, index.h("aside", { key: '0cc3047f13bf8ff3d13c1a4547225ef9075ee72c', class: {
|
|
75
79
|
"duet-promo-card": true,
|
|
76
80
|
"duet-theme-turva": this.theme === "turva",
|
|
77
81
|
"no-bg-color": !this.backgroundColor,
|
|
78
82
|
"duet-promo-card-link": !!this.url,
|
|
79
|
-
}, style: bannerStyles }, index.h(TagName, { key: '
|
|
83
|
+
}, style: bannerStyles }, index.h(TagName, { key: '88f499f9cfbc42cc77ae3650e25d6a67e249c667', href: this.url, class: { "content-wrapper": true, "duet-theme-turva": this.theme === "turva" }, ref: element => (this.aOrDivElement = element) }, index.h("img", { key: '3f56c0e11f43fd35a576c2612a01ef57362eb9ce', class: "image", src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" }), index.h("div", { key: '67cc5128842bfd7a97e55ab7a39607f15565aa48', class: "content" }, this.hasPreHeadingSlot && (index.h("div", { key: '6416da999d6c95dbc60c7f4210f00ff7771068a9', class: "pre-heading" }, index.h("slot", { key: 'f14c79e605bc369bcd622813975bd2e567232e8a', name: "pre-heading" }))), this.hasHeadingSlot && (index.h("div", { key: '21fc61923698870704efbc02ceb85cb41634fe76', class: "heading" }, index.h("duet-heading", { key: '4adef65c01b3b1162949e5dddb6c2e722f04376f', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.headingLevel, "visual-level": "h3", margin: "none", color: tokenUtils.postfixTheme(this.textColor, this.theme) }, index.h("span", { key: 'b5e3eeb6192b2c4dab608c7b3cb1a7ec271292bb' }, index.h("slot", { key: '717362196c9449e8eb0cad836a5d1eed094ec621', name: "heading" }))))), this.hasDescriptionSlot && (index.h("div", { key: '117900bbf76af5ae95917819fb7d2f99d2704f53', class: "description" }, index.h("duet-paragraph", { key: 'f7ef0a08c527b79980a900706fff2d4d61a28652', theme: this.theme, margin: "none", color: tokenUtils.postfixTheme(this.textColor, this.theme) }, index.h("span", { key: '799ccc75db2f0e75833f50d77f0e1c89ccd8301f' }, index.h("slot", { key: 'aa8385bab94fd5d120daa6d2040d0b683aaecaa7', name: "description" }))))), this.hasActionSlot && (index.h("div", { key: '8ec8ce8f1b6b54b29d0b5282cc6fdad63b987125', class: "action" }, index.h("slot", { key: '63f29b5905fbfebea7e2aa139c2c81b5177d5e4a', name: "action" }))))))));
|
|
80
84
|
}
|
|
81
85
|
get element() { return index.getElement(this); }
|
|
82
86
|
};
|