@duetds/components 10.4.0 → 10.5.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 +405 -275
- package/hydrate/index.mjs +405 -275
- package/lib/cjs/{a11y-utils-BXDHn_nL.js → a11y-utils-DaAO4N9d.js} +1 -1
- package/lib/cjs/{app-globals-Bs3-XKhd.js → app-globals-CHNvdfQj.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +29 -6
- package/lib/cjs/duet-banner.cjs.entry.js +3 -3
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- 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 +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +11 -11
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +5 -8
- package/lib/cjs/duet-choice_2.cjs.entry.js +19 -21
- package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -5
- package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +10 -9
- package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +10 -10
- package/lib/cjs/duet-empty-state.cjs.entry.js +4 -4
- 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 +7 -7
- package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-hero.cjs.entry.js +9 -9
- package/lib/cjs/duet-icon.cjs.entry.js +5 -5
- package/lib/cjs/duet-indicator.cjs.entry.js +5 -5
- package/lib/cjs/duet-input_2.cjs.entry.js +75 -18
- 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 +12 -12
- package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
- 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 +13 -11
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +20 -5
- package/lib/cjs/duet-pagination_2.cjs.entry.js +17 -18
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +17 -5
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +8 -8
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-radio_2.cjs.entry.js +7 -10
- package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +15 -15
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +9 -9
- 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 +6 -6
- 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 +11 -11
- package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- 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 +6 -6
- 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 +7 -7
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- 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 +13 -11
- package/lib/cjs/duet-tooltip.cjs.entry.js +24 -7
- package/lib/cjs/duet-tray.cjs.entry.js +5 -5
- 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-W6UQ3hgy.js → errorcodes.utils-Dkf_MfrJ.js} +1 -1
- package/lib/cjs/{focus-utils-KTKpjKRi.js → focus-utils-BuGg0Oha.js} +1 -1
- package/lib/cjs/{index-C7Yvi8y8.js → index-ZxE6MB5V.js} +1 -1
- package/lib/cjs/{label-DZ63Z3SI.js → label-CpPOBfjS.js} +1 -1
- package/lib/cjs/{language-utils-BsevPDrN.js → language-utils-C7Z0KYg-.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-DIDW777s.js → slot-utils-BXdHT3A1.js} +1 -1
- package/lib/cjs/{themeable-component-hQ83w5_A.js → themeable-component-CIDaln0Z.js} +1 -1
- package/lib/collection/components/duet-badge/duet-badge.css +66 -5
- package/lib/collection/components/duet-badge/duet-badge.js +49 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.css +5 -0
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-chip/duet-chip.js +2 -5
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +9 -9
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +6 -8
- package/lib/collection/components/duet-combobox/duet-combobox.js +0 -1
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +5 -2
- 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.js +2 -2
- 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.js +4 -4
- package/lib/collection/components/duet-grid/duet-grid.js +2 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +5 -0
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-heading/duet-heading.js +2 -2
- 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 +38 -3
- package/lib/collection/components/duet-input/duet-input.js +148 -15
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- 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.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.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +7 -7
- 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.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
- package/lib/collection/components/duet-number-input/duet-number-input.js +10 -9
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +20 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +58 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +12 -13
- 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-phone-input/duet-phone-input.js +13 -1
- 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.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.js +3 -6
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +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.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.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-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.js +2 -2
- 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.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/duet-tab.js +2 -2
- 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.js +3 -3
- 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.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +18 -4
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +25 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +1 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +47 -4
- 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/math.utils.js +1 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-14d4a45a.entry.js → p-02d8e844.entry.js} +1 -1
- package/lib/duet/p-06297bd8.entry.js +4 -0
- package/lib/duet/p-0c04f9f5.entry.js +4 -0
- package/lib/duet/p-110c7572.entry.js +4 -0
- package/lib/duet/{p-eab349f2.entry.js → p-18a8ea12.entry.js} +1 -1
- package/lib/duet/{p-1ee400e7.entry.js → p-19863cdf.entry.js} +1 -1
- package/lib/duet/p-1bca9931.entry.js +4 -0
- package/lib/duet/{p-a690a165.entry.js → p-1da7703d.entry.js} +1 -1
- package/lib/duet/{p-84420fbf.entry.js → p-20a8ef81.entry.js} +1 -1
- package/lib/duet/{p-526fa31c.entry.js → p-268b3066.entry.js} +1 -1
- package/lib/duet/{p-61b6962a.entry.js → p-2dd7d75e.entry.js} +1 -1
- package/lib/duet/{p-1666aeaf.entry.js → p-2f8a47e2.entry.js} +1 -1
- package/lib/duet/{p-c1d4542d.entry.js → p-30108edc.entry.js} +1 -1
- package/lib/duet/{p-b3ec9b98.entry.js → p-317a1fc0.entry.js} +1 -1
- package/lib/duet/{p-2e413951.entry.js → p-317e81f3.entry.js} +1 -1
- package/lib/duet/{p-81332db1.entry.js → p-3277233e.entry.js} +1 -1
- package/lib/duet/{p-6988c81c.entry.js → p-3690576a.entry.js} +1 -1
- package/lib/duet/{p-adecab91.entry.js → p-38973524.entry.js} +1 -1
- package/lib/duet/{p-2d43de54.entry.js → p-3b2fba0f.entry.js} +1 -1
- package/lib/duet/{p-01f3e30c.entry.js → p-3f35fce3.entry.js} +1 -1
- package/lib/duet/p-3f3c6e64.entry.js +4 -0
- package/lib/duet/{p-494755d0.entry.js → p-3f7afd87.entry.js} +1 -1
- package/lib/duet/p-407f7f03.entry.js +4 -0
- package/lib/duet/{p-d181c624.entry.js → p-40fa7371.entry.js} +1 -1
- package/lib/duet/p-42ec7305.entry.js +4 -0
- package/lib/duet/p-43e076b5.entry.js +4 -0
- package/lib/duet/p-443af533.entry.js +4 -0
- package/lib/duet/{p-a4a1b8e3.entry.js → p-461d4089.entry.js} +1 -1
- package/lib/duet/{p-7e640c8e.entry.js → p-4af6a8ed.entry.js} +1 -1
- package/lib/duet/{p-4d39941c.entry.js → p-4b7f1244.entry.js} +1 -1
- package/lib/duet/{p-a63327c3.entry.js → p-516397ba.entry.js} +1 -1
- package/lib/duet/{p-cd4f52a9.entry.js → p-5284c707.entry.js} +1 -1
- package/lib/duet/{p-d2c91ed0.entry.js → p-52beb436.entry.js} +1 -1
- package/lib/duet/p-5c9f443c.entry.js +4 -0
- package/lib/duet/{p-dc87f3f4.entry.js → p-5f5f72d4.entry.js} +1 -1
- package/lib/duet/{p--fmK3qPb.js → p-5lFzA17H.js} +1 -1
- package/lib/duet/{p-376f9d06.entry.js → p-61ec0e1c.entry.js} +1 -1
- package/lib/duet/{p-eebf150c.entry.js → p-6b469225.entry.js} +1 -1
- package/lib/duet/p-6ef683d5.entry.js +4 -0
- package/lib/duet/{p-d2c04a7e.entry.js → p-70612314.entry.js} +1 -1
- package/lib/duet/{p-5ffc4081.entry.js → p-70961edb.entry.js} +1 -1
- package/lib/duet/p-7294c37d.entry.js +4 -0
- package/lib/duet/p-72b504ef.entry.js +4 -0
- package/lib/duet/{p-5dde8fbb.entry.js → p-734249e0.entry.js} +1 -1
- package/lib/duet/{p-bcced6eb.entry.js → p-7353ee4c.entry.js} +1 -1
- package/lib/duet/p-74aac967.entry.js +4 -0
- package/lib/duet/{p-870dc953.entry.js → p-7c08fd87.entry.js} +1 -1
- package/lib/duet/{p-e8bd6dab.entry.js → p-7eea47d5.entry.js} +1 -1
- package/lib/duet/{p-3bd45b5b.entry.js → p-7fd39204.entry.js} +1 -1
- package/lib/duet/{p-816caa58.entry.js → p-8012c7bc.entry.js} +1 -1
- package/lib/duet/{p-46300680.entry.js → p-829db926.entry.js} +1 -1
- package/lib/duet/p-83238bf3.entry.js +4 -0
- package/lib/duet/{p-b64b3e2f.entry.js → p-833802f9.entry.js} +1 -1
- package/lib/duet/p-86ffd3cb.entry.js +4 -0
- package/lib/duet/{p-0eb0e582.entry.js → p-871620d3.entry.js} +1 -1
- package/lib/duet/{p-afd7d87a.entry.js → p-8ace1eb4.entry.js} +1 -1
- package/lib/duet/{p-3648404d.entry.js → p-8b0dfbd7.entry.js} +1 -1
- package/lib/duet/{p-1dcbbd67.entry.js → p-93ff8fe4.entry.js} +1 -1
- package/lib/duet/{p-428db44b.entry.js → p-9ae7aaef.entry.js} +1 -1
- package/lib/duet/{p-73ed0008.entry.js → p-9c9811ba.entry.js} +1 -1
- package/lib/duet/{p-1bdef0e0.entry.js → p-9e1a59d1.entry.js} +1 -1
- package/lib/duet/{p-Cwhi6_oZ.js → p-B2cboDWM.js} +1 -1
- package/lib/duet/{p-Chf7ZRmW.js → p-B8-N_qjs.js} +1 -1
- package/lib/duet/{p-D2EBd3cT.js → p-BzYmwX5_.js} +1 -1
- package/lib/duet/{p-2HU78SJ-.js → p-C5Yfx2kd.js} +1 -1
- package/lib/duet/{p-DWIjWGAD.js → p-CFqvB5PA.js} +1 -1
- package/lib/duet/{p-CtBx3Trd.js → p-Cg4m_WHe.js} +1 -1
- package/lib/duet/{p-BW3SZS4F.js → p-R3pTP2Oy.js} +1 -1
- package/lib/duet/{p-9d8027aa.entry.js → p-a068c086.entry.js} +1 -1
- package/lib/duet/p-a483117e.entry.js +4 -0
- package/lib/duet/{p-0395eb34.entry.js → p-a5177d32.entry.js} +1 -1
- package/lib/duet/{p-fbce84d5.entry.js → p-a8876b3d.entry.js} +1 -1
- package/lib/duet/{p-3361387d.entry.js → p-a9104184.entry.js} +1 -1
- package/lib/duet/{p-184d53a7.entry.js → p-b1326cbb.entry.js} +1 -1
- package/lib/duet/{p-fea479fd.entry.js → p-b747f6e9.entry.js} +1 -1
- package/lib/duet/{p-7a5066b8.entry.js → p-bdbf0fae.entry.js} +1 -1
- package/lib/duet/{p-3c26d300.entry.js → p-c1afac0d.entry.js} +1 -1
- package/lib/duet/p-c2026c6b.entry.js +4 -0
- package/lib/duet/{p-1ed82a27.entry.js → p-c216e746.entry.js} +1 -1
- package/lib/duet/{p-0453edd0.entry.js → p-c54be349.entry.js} +1 -1
- package/lib/duet/{p-13b7f4e0.entry.js → p-cb6c4158.entry.js} +1 -1
- package/lib/duet/{p-4c5a8ed3.entry.js → p-cbcee3e2.entry.js} +1 -1
- package/lib/duet/{p-12e4e9b6.entry.js → p-d3b5c997.entry.js} +1 -1
- package/lib/duet/{p-7a668cee.entry.js → p-d3baa815.entry.js} +1 -1
- package/lib/duet/{p-1705b6cf.entry.js → p-d5f90dbc.entry.js} +1 -1
- package/lib/duet/{p-07c4b435.entry.js → p-d6f0afa5.entry.js} +1 -1
- package/lib/duet/{p-dfd55180.entry.js → p-d779fe42.entry.js} +1 -1
- package/lib/duet/{p-f210e405.entry.js → p-dedf6a32.entry.js} +1 -1
- package/lib/duet/{p-d0a54e6d.entry.js → p-e08dce92.entry.js} +1 -1
- package/lib/duet/{p-c71f6942.entry.js → p-e7f2359a.entry.js} +1 -1
- package/lib/duet/p-efa4eecc.entry.js +4 -0
- package/lib/duet/p-f040706c.entry.js +4 -0
- package/lib/duet/{p-7eaa1fb5.entry.js → p-fa13ffe9.entry.js} +1 -1
- package/lib/duet/{p-87bb797c.entry.js → p-fe829b53.entry.js} +1 -1
- package/lib/duet/p-s8EL6NG5.js +4 -0
- package/lib/esm/{a11y-utils-sgAajRY0.js → a11y-utils-ChN5Nhxh.js} +1 -1
- package/lib/esm/{app-globals-NNQmI_gc.js → app-globals-4kCk2rkO.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +29 -6
- package/lib/esm/duet-banner.entry.js +3 -3
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- 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 +5 -5
- package/lib/esm/duet-caption_4.entry.js +11 -11
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +3 -3
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +5 -8
- package/lib/esm/duet-choice_2.entry.js +19 -21
- package/lib/esm/duet-collapsible.entry.js +3 -3
- package/lib/esm/duet-combobox.entry.js +4 -5
- package/lib/esm/duet-contact-card.entry.js +5 -5
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +10 -9
- package/lib/esm/duet-divider_2.entry.js +4 -4
- package/lib/esm/duet-editable-table_3.entry.js +10 -10
- package/lib/esm/duet-empty-state.entry.js +4 -4
- 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 +7 -7
- package/lib/esm/duet-header_2.entry.js +4 -4
- package/lib/esm/duet-hero.entry.js +9 -9
- package/lib/esm/duet-icon.entry.js +5 -5
- package/lib/esm/duet-indicator.entry.js +5 -5
- package/lib/esm/duet-input_2.entry.js +75 -18
- 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 +12 -12
- package/lib/esm/duet-multiselect.entry.js +10 -10
- 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 +13 -11
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +20 -5
- package/lib/esm/duet-pagination_2.entry.js +17 -18
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +17 -5
- package/lib/esm/duet-popup-menu_2.entry.js +8 -8
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +5 -5
- package/lib/esm/duet-radio_2.entry.js +7 -10
- package/lib/esm/duet-range-slider.entry.js +6 -6
- package/lib/esm/duet-scrollable_3.entry.js +15 -15
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +9 -9
- 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 +6 -6
- 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 +11 -11
- package/lib/esm/duet-slideout.entry.js +10 -10
- package/lib/esm/duet-status-icon.entry.js +3 -3
- 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 +6 -6
- 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 +7 -7
- package/lib/esm/duet-textarea.entry.js +8 -8
- 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 +13 -11
- package/lib/esm/duet-tooltip.entry.js +25 -8
- package/lib/esm/duet-tray.entry.js +5 -5
- 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-CqW0-HM8.js → errorcodes.utils-DuFCu_27.js} +1 -1
- package/lib/esm/{focus-utils-Dokkd7xz.js → focus-utils-CFswdkeD.js} +1 -1
- package/lib/esm/{index-Cwhi6_oZ.js → index-B2cboDWM.js} +1 -1
- package/lib/esm/{label-CyQlly6Z.js → label-CJxIWUOT.js} +1 -1
- package/lib/esm/{language-utils-LZh-sc2s.js → language-utils-C4M4ASkT.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-CEZnAp61.js → slot-utils--sNK1DNn.js} +1 -1
- package/lib/esm/{themeable-component-D_FVcjsD.js → themeable-component-BBi3552X.js} +1 -1
- package/lib/types/components/duet-badge/duet-badge.d.ts +14 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +1 -1
- package/lib/types/components/duet-input/duet-input.d.ts +31 -3
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +2 -1
- package/lib/types/components/duet-page-heading/duet-page-heading.d.ts +10 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +2 -0
- package/lib/types/components/duet-radio/duet-radio.d.ts +0 -1
- package/lib/types/components/duet-tooltip/duet-tooltip-button.d.ts +1 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +6 -0
- package/lib/types/components.d.ts +79 -8
- package/lib/types/utils/math.utils.d.ts +1 -0
- package/package.json +5 -5
- package/lib/duet/p-07aa40df.entry.js +0 -4
- package/lib/duet/p-104ddbf2.entry.js +0 -4
- package/lib/duet/p-2168e431.entry.js +0 -4
- package/lib/duet/p-4420973e.entry.js +0 -4
- package/lib/duet/p-455e8ebe.entry.js +0 -4
- package/lib/duet/p-4f7b0699.entry.js +0 -4
- package/lib/duet/p-58496fb1.entry.js +0 -4
- package/lib/duet/p-58a70b3d.entry.js +0 -4
- package/lib/duet/p-592a6542.entry.js +0 -4
- package/lib/duet/p-5c8c691b.entry.js +0 -4
- package/lib/duet/p-7a2ca711.entry.js +0 -4
- package/lib/duet/p-DCDM41Ef.js +0 -4
- package/lib/duet/p-a4db8c29.entry.js +0 -4
- package/lib/duet/p-a7bb038a.entry.js +0 -4
- package/lib/duet/p-af9c8169.entry.js +0 -4
- package/lib/duet/p-c7851c15.entry.js +0 -4
- package/lib/duet/p-cbd1069e.entry.js +0 -4
- package/lib/duet/p-d3dac8af.entry.js +0 -4
- package/lib/duet/p-e9ed96cf.entry.js +0 -4
- package/lib/duet/p-f600e215.entry.js +0 -4
- package/lib/duet/p-f652a9c7.entry.js +0 -4
package/hydrate/index.mjs
CHANGED
|
@@ -5201,11 +5201,16 @@ class DuetAlert {
|
|
|
5201
5201
|
}; }
|
|
5202
5202
|
}
|
|
5203
5203
|
|
|
5204
|
-
const duetBadgeCss = "*,*::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:inline-block;width:auto;vertical-align:middle}: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-badge{display:inline-block;width:100%;padding:4.4444444444px 12px 5.4444444444px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.75rem;font-style:normal;font-weight:600;line-height:1.25;vertical-align:middle;color:rgb(3, 56, 102);text-align:center;word-break:break-word;background:rgb(217, 236, 245);border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.
|
|
5204
|
+
const duetBadgeCss = "*,*::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:inline-block;width:auto;vertical-align:middle}: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-badge{position:relative;display:inline-block;width:100%;padding:4.4444444444px 12px 5.4444444444px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.75rem;font-style:normal;font-weight:600;line-height:1.25;vertical-align:middle;color:rgb(3, 56, 102);text-align:center;word-break:break-word;background:rgb(217, 236, 245);border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.warning{color:rgb(81, 55, 9);background:rgb(255, 232, 160)}.duet-badge.danger{color:rgb(120, 4, 56);background:rgb(255, 211, 219)}.duet-badge.success{color:rgb(13, 71, 59);background:rgb(191, 239, 218)}.duet-badge.subtle{color:rgb(62, 84, 102);background:rgb(228, 236, 239)}.duet-badge.background-strong.default{color:rgb(240, 247, 250);background:rgb(0, 97, 155)}.duet-badge.background-strong.warning{color:rgb(38, 26, 4);background:rgb(247, 178, 40)}.duet-badge.background-strong.danger{color:rgb(255, 240, 243);background:rgb(185, 16, 74)}.duet-badge.background-strong.success{color:rgb(244, 250, 247);background:rgb(29, 106, 88)}.duet-badge.background-strong.subtle{color:rgb(245, 248, 250);background:rgb(98, 121, 138)}.duet-badge.has-tooltip{padding-right:24px;cursor:pointer}.duet-badge.has-tooltip .tooltip-wrap{position:absolute;top:6.5px;right:11px;display:inline-block;width:16px;height:12px}.duet-badge.has-tooltip:hover{color:rgb(0, 75, 129)}.duet-badge.has-tooltip:hover.warning{color:rgb(126, 87, 16)}.duet-badge.has-tooltip:hover.danger{color:rgb(153, 9, 66)}.duet-badge.has-tooltip:hover.success{color:rgb(29, 106, 88)}.duet-badge.has-tooltip:hover.subtle{color:rgb(45, 64, 81)}.duet-badge.has-tooltip:hover.background-strong.default{color:rgb(240, 247, 250);background:rgb(0, 119, 179)}.duet-badge.has-tooltip:hover.background-strong.warning{color:rgb(38, 26, 4);background:rgb(255, 199, 79)}.duet-badge.has-tooltip:hover.background-strong.danger{color:rgb(255, 240, 243);background:rgb(214, 28, 82)}.duet-badge.has-tooltip:hover.background-strong.success{color:rgb(244, 250, 247);background:rgb(76, 164, 138)}.duet-badge.has-tooltip:hover.background-strong.subtle{color:rgb(245, 248, 250);background:rgb(127, 150, 165)}:host(.user-is-tabbing) .duet-badge.has-tooltip:focus-within{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-badge.has-tooltip:focus-within,:host(.user-is-tabbing) .duet-badge.has-tooltip:focus-within.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva.duet-badge{padding:5.4444444444px 12px 4.4444444444px;font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-weight:700}.duet-theme-turva.duet-badge.has-tooltip{padding-right:24px}";
|
|
5205
5205
|
|
|
5206
|
+
/**
|
|
5207
|
+
* @slot default - Badge content.
|
|
5208
|
+
* @slot tooltip - Alternative way to provide a tooltip for the badge, takes one duet-tooltip.
|
|
5209
|
+
*/
|
|
5206
5210
|
class DuetBadge {
|
|
5207
5211
|
constructor(hostRef) {
|
|
5208
5212
|
registerInstance(this, hostRef);
|
|
5213
|
+
this.hasTooltipSlot = false;
|
|
5209
5214
|
/**
|
|
5210
5215
|
* Theme of the badge.
|
|
5211
5216
|
*/
|
|
@@ -5223,6 +5228,13 @@ class DuetBadge {
|
|
|
5223
5228
|
* Controls the margin of the component.
|
|
5224
5229
|
*/
|
|
5225
5230
|
this.margin = "auto";
|
|
5231
|
+
/**
|
|
5232
|
+
* Giving tooltip text makes the badge act as tooltip button. The badge's text content will be used as the
|
|
5233
|
+
* tooltips accessible-about-label - if you want other accessible label, use the tooltip slot instead of this
|
|
5234
|
+
* attribute.
|
|
5235
|
+
*/
|
|
5236
|
+
this.tooltip = "";
|
|
5237
|
+
this.getBadgeText = () => this.element.textContent;
|
|
5226
5238
|
this.getVariationLabel = () => {
|
|
5227
5239
|
if (this.variation === "subtle") {
|
|
5228
5240
|
return "";
|
|
@@ -5236,8 +5248,20 @@ class DuetBadge {
|
|
|
5236
5248
|
/**
|
|
5237
5249
|
* Component lifecycle events.
|
|
5238
5250
|
*/
|
|
5251
|
+
connectedCallback() {
|
|
5252
|
+
subscribeTabbingChange(this);
|
|
5253
|
+
}
|
|
5254
|
+
disconnectedCallback() {
|
|
5255
|
+
unsubscribeTabbingChange(this);
|
|
5256
|
+
}
|
|
5239
5257
|
componentWillLoad() {
|
|
5240
5258
|
inheritGlobalTheme(this);
|
|
5259
|
+
this.hasTooltipSlot = hasSlot(this.element, "tooltip");
|
|
5260
|
+
checkNamedSlotElement(this.element, "tooltip", "duet-tooltip", 1, true);
|
|
5261
|
+
if (this.hasTooltipSlot) {
|
|
5262
|
+
const tooltip = getElementsFromNamedSlot(this.element, "tooltip")[0];
|
|
5263
|
+
tooltip.badgeElement = this.element;
|
|
5264
|
+
}
|
|
5241
5265
|
}
|
|
5242
5266
|
/**
|
|
5243
5267
|
* render() function
|
|
@@ -5245,12 +5269,13 @@ class DuetBadge {
|
|
|
5245
5269
|
*/
|
|
5246
5270
|
render() {
|
|
5247
5271
|
const backgroundClass = `background-${this.background}`;
|
|
5248
|
-
return (hAsync(Host, { key: '
|
|
5272
|
+
return (hAsync(Host, { key: '03d5a24faf4335689dd2e6bc3dfb75550f453021', class: { "duet-m-0": this.margin === "none" } }, hAsync("span", { key: '0c455e8ff4ff40445fe06c19dd4774a81c6e00e7', class: {
|
|
5249
5273
|
"duet-badge": true,
|
|
5250
5274
|
[this.variation]: true,
|
|
5251
5275
|
[backgroundClass]: true,
|
|
5276
|
+
"has-tooltip": !!this.tooltip || this.hasTooltipSlot,
|
|
5252
5277
|
"duet-theme-turva": this.theme === "turva",
|
|
5253
|
-
} }, hAsync("duet-visually-hidden", { key: '
|
|
5278
|
+
} }, hAsync("duet-visually-hidden", { key: '397c683fb66c3302277c9fbbecc867a193e7ccdb' }, this.getVariationLabel()), hAsync("slot", { key: '3d4764656e3ee91de6d9f5f85088aaf433602365' }), (this.tooltip || this.hasTooltipSlot) && (hAsync("span", { key: '4b14897ec382b55bd71402976bdf549c241ac64f', class: "tooltip-wrap" }, !this.hasTooltipSlot && (hAsync("duet-tooltip", { key: '68e5e4bf3191f4143271fdaaa9201882c089cea6', "accessible-about-label": this.getBadgeText(), badgeElement: this.element }, this.tooltip)), hAsync("slot", { key: '1103f4673c24886644bf5550bb6feb85856ff7d0', name: "tooltip" }))))));
|
|
5254
5279
|
}
|
|
5255
5280
|
get element() { return getElement(this); }
|
|
5256
5281
|
static get style() { return duetBadgeCss; }
|
|
@@ -5261,7 +5286,8 @@ class DuetBadge {
|
|
|
5261
5286
|
"theme": [1025],
|
|
5262
5287
|
"variation": [1],
|
|
5263
5288
|
"background": [1],
|
|
5264
|
-
"margin": [1]
|
|
5289
|
+
"margin": [1],
|
|
5290
|
+
"tooltip": [1]
|
|
5265
5291
|
},
|
|
5266
5292
|
"$listeners$": undefined,
|
|
5267
5293
|
"$lazyBundleId$": "-",
|
|
@@ -5501,15 +5527,15 @@ class DuetBreadcrumb {
|
|
|
5501
5527
|
*/
|
|
5502
5528
|
render() {
|
|
5503
5529
|
const Tag = this.href ? "a" : "span";
|
|
5504
|
-
return (hAsync(Host, { key: '
|
|
5530
|
+
return (hAsync(Host, { key: '941cfe85ceb3fa1921b6afe71d2885f36a071966', role: "listitem" }, hAsync("div", { key: '30ae1fd0a1a013d6fc7e2c318248c1c6eec5bbe5', class: "container" }, this.icon === "arrow-right-small-icon" && (hAsync("duet-icon", { key: '074eaae1ca2fa2797b8eba7a1354b0d815b1936d', class: "duet-breadrumbs-arrow", size: "auto", icon: arrowRightSmallIcon.svg, margin: "none", color: "currentColor" })), hAsync(Tag, { key: 'a69cd43b3f81311c55e245d1e292315cf885a972', class: {
|
|
5505
5531
|
"duet-breadcrumb": true,
|
|
5506
5532
|
"duet-theme-turva": this.theme === "turva",
|
|
5507
5533
|
"icon-only": this.icon && !this.hasSlottedContent,
|
|
5508
5534
|
}, href: this.href || undefined, "aria-label": this.accessibleLabel || this.element.textContent, "aria-current": this.href ? undefined : "page" }, this.icon !== "arrow-right-small-icon" &&
|
|
5509
5535
|
this.icon && [
|
|
5510
|
-
hAsync("duet-icon", { key: '
|
|
5511
|
-
this.hasSlottedContent && hAsync("duet-spacer", { key: '
|
|
5512
|
-
], hAsync("slot", { key: '
|
|
5536
|
+
hAsync("duet-icon", { key: 'bb4d4379b6b38d5f5a8a8852a3e8ae320b72a48a', size: this.iconSize, name: this.icon, margin: "none", color: "currentColor" }),
|
|
5537
|
+
this.hasSlottedContent && hAsync("duet-spacer", { key: '72e99845589045f22bfd119623a79c3f0206b812', size: "x-small", direction: "horizontal" }),
|
|
5538
|
+
], hAsync("slot", { key: '3190e7c4331c2856b71b54a5bdf6232b332dfa00' })))));
|
|
5513
5539
|
}
|
|
5514
5540
|
get element() { return getElement(this); }
|
|
5515
5541
|
static get style() { return duetBreadcrumbCss; }
|
|
@@ -5577,11 +5603,11 @@ class DuetBreadcrumbs {
|
|
|
5577
5603
|
*/
|
|
5578
5604
|
render() {
|
|
5579
5605
|
const color = getColorByName(this.color);
|
|
5580
|
-
return (hAsync(Host, { key: '
|
|
5606
|
+
return (hAsync(Host, { key: 'c98b2354a647046cdf36b9fc042a825d59f69016' }, hAsync("nav", { key: 'e5b3ab730c684343f6f7b551e3a90e4f804c33e4', "aria-label": this.breadcrumbsAriaLabel, class: {
|
|
5581
5607
|
"duet-breadcrumbs": true,
|
|
5582
5608
|
"duet-theme-turva": this.theme === "turva",
|
|
5583
5609
|
[this.variation]: true,
|
|
5584
|
-
} }, hAsync("div", { key: '
|
|
5610
|
+
} }, hAsync("div", { key: 'f31d96c0db9cd1c376cb303d8ecf24327d9c530e', class: "container" }, hAsync("div", { key: '94307d00ca67a2caf0783be3dfd2ebe7568dc21f', role: "list", class: "list", style: { color } }, hAsync("slot", { key: '1a5f46b90a2b35c16992b4af7766bcbd4d7925f2' })), hAsync("div", { key: '15d920594f56343f362d726da3a4a8d87edb10d7', class: "bottom-border bottom-border--container" })), hAsync("div", { key: '7bc1ccc417e8d621909d06bf2933ddd97ee6dbcc', class: "bottom-border bottom-border--nav" }))));
|
|
5585
5611
|
}
|
|
5586
5612
|
get element() { return getElement(this); }
|
|
5587
5613
|
static get style() { return duetBreadcrumbsCss; }
|
|
@@ -5600,7 +5626,7 @@ class DuetBreadcrumbs {
|
|
|
5600
5626
|
}; }
|
|
5601
5627
|
}
|
|
5602
5628
|
|
|
5603
|
-
const duetButtonCss = "*,*::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:8px !important;margin-bottom:12px !important;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;font-size:0;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:8px !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.square){margin-right:12px !important}:host(.square):last-child,:host(.square):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square):last-of-type:not(:last-child){margin-right:12px !important}:host(.input-button){z-index:250}:host(.duet-small),:host(.duet-x-small){margin-right:4px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type,:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:4px !important}@media (max-width: 35.9375em){:host(.duet-small),:host(.duet-x-small){width:auto}}:host(.duet-x-small){margin-right:2px !important}:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:2px !important}:host(.square.duet-small),:host(.square.duet-x-small){margin-right:8px !important}:host(.square.duet-small):last-child,:host(.square.duet-small):last-of-type,:host(.square.duet-x-small):last-child,:host(.square.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.square.duet-x-small):last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;display:block;width:100%}.duet-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;align-items:center;width:100%;min-width:8rem;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, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:1px;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, padding 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-button:focus,.duet-button:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-button.duet-button-size-medium{height:50px;padding-right:30px;padding-left:30px;font-size:1rem;border-radius:25px}.duet-button.duet-button-size-medium.square{border-radius:12.5px}.duet-button.duet-button-size-medium.icon-left{padding-left:24px}.duet-button.duet-button-size-medium.icon-right{padding-right:24px}.duet-button.duet-button-size-small{height:40px;padding-right:20px;padding-left:20px;font-size:0.875rem;border-radius:20px}.duet-button.duet-button-size-small.square{border-radius:10px}.duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-button.duet-button-size-x-small{height:32px;padding-right:12px;padding-left:12px;font-size:0.75rem;border-radius:8px}.duet-button.duet-button-size-x-small.icon-left{padding-left:10px}.duet-button.duet-button-size-x-small.icon-right{padding-right:10px}.duet-button.plain.duet-p-0{height:auto}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){min-width:48px}.duet-button.duet-button-is-small:not(.duet-button-icon-only).plain{padding-right:0 !important;padding-left:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).duet-p-0{padding:0 !important}.duet-button .duet-button-contents{position:relative;display:flex;gap:10px;align-items:center;margin:0 auto;pointer-events:none}.duet-button .duet-button-contents.icon-right{flex-direction:row-reverse}.duet-button .duet-button-contents .duet-button-contents-slot{position:relative;top:0}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{display:flex;align-items:center}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{background:rgb(255, 255, 255);border-color:rgb(181, 198, 208)}.duet-button.default:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.primary,.duet-button.input-button-primary,.duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.primary:hover,.duet-button.input-button-primary:hover,.duet-button.input-button-left-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-left-secondary,.duet-button.input-button-embedded{color:rgb(8, 42, 77) !important;background:transparent;border-color:rgb(8, 42, 77)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-left-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179);outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-button.secondary:hover,.duet-button.secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-button.input-button-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-button.input-button-left-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-embedded:hover,.duet-button.input-button-embedded:hover.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-left-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(212, 223, 229) !important;border-color:rgb(255, 255, 255)}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.input-button{height:auto}.duet-button.negative{color:rgb(8, 42, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-button.destructive-primary:hover{background:#ab1642;border-color:#ab1642;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-button.plain.duet-p-0 .duet-button-contents{height:auto}.duet-button.plain[disabled],.duet-button.plain[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-button.plain:hover{color:rgb(0, 75, 129) !important;background:transparent !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-button.plain.duet-button-negative:hover{color:rgba(255, 255, 255, 0.8) !important}.duet-button.plain.duet-button-icon-only:focus{outline-offset:1px}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded,.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents,.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-secondary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-embedded .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-secondary .duet-button-contents.icon-right{padding:0 16px}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-top-right-radius:4px !important;border-bottom-right-radius:4px !important;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{border-top-left-radius:4px !important;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px !important}.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-left-secondary{border-color:rgb(127, 150, 165)}.duet-button.square{width:52px;min-width:auto !important;padding:0 !important;font-size:1rem;border-color:rgb(181, 198, 208);border-width:1px}.duet-button.square.duet-button-size-small{width:42px;font-size:0.875rem}.duet-button.square.duet-button-size-x-small{width:34px;font-size:0.875rem}.duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.square:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.square .duet-button-contents{gap:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;outline:none !important;outline-color:rgb(212, 223, 229) !important;outline-color:rgb(212, 223, 229) !important;background:rgb(212, 223, 229) !important;border-color:rgb(212, 223, 229) !important;box-shadow:none !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}.duet-theme-turva .duet-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(230, 23, 64) !important;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium{padding-right:24px;padding-left:24px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-left{padding-left:14px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-right{padding-right:14px}.duet-theme-turva .duet-button.duet-button-size-small{padding-right:18px;padding-left:18px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-theme-turva .duet-button.default{color:rgb(230, 23, 64) !important;border-color:rgb(178, 194, 205)}.duet-theme-turva .duet-button.default:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary,.duet-theme-turva .duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover,.duet-theme-turva .duet-button.input-button-left-primary:hover{background:rgb(140, 0, 30);border-color:rgb(140, 0, 30)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-left-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 42, 59) !important;border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.duet-button.input-button-primary,.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-bottom-left-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-left-primary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-top-right-radius:0;border-bottom-right-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-button.negative{color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-button.negative:hover{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#ab1642}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-theme-turva .duet-button.plain{color:rgb(230, 23, 64) !important;background:transparent;border-color:transparent}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(140, 0, 30) !important}.duet-theme-turva .duet-button.plain[disabled],.duet-theme-turva .duet-button.plain[disabled]:hover{color:rgb(95, 122, 143) !important;cursor:not-allowed;background:transparent !important;border-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.square{border-color:rgb(212, 221, 226)}.duet-theme-turva .duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.square:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(120, 145, 164) !important;cursor:not-allowed;outline-color:rgb(212, 221, 226) !important;background:rgb(212, 221, 226) !important;border-color:rgb(212, 221, 226) !important}.duet-theme-turva .duet-button-is-loading.default{color:rgb(230, 23, 64)}";
|
|
5629
|
+
const duetButtonCss = "*,*::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:8px !important;margin-bottom:12px !important;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;font-size:0;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:8px !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.square){margin-right:12px !important}:host(.square):last-child,:host(.square):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square):last-of-type:not(:last-child){margin-right:12px !important}:host(.input-button){z-index:250}:host(.duet-small),:host(.duet-x-small){margin-right:4px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type,:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:4px !important}@media (max-width: 35.9375em){:host(.duet-small),:host(.duet-x-small){width:auto}}:host(.duet-x-small){margin-right:2px !important}:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:2px !important}:host(.square.duet-small),:host(.square.duet-x-small){margin-right:8px !important}:host(.square.duet-small):last-child,:host(.square.duet-small):last-of-type,:host(.square.duet-x-small):last-child,:host(.square.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.square.duet-x-small):last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;display:block;width:100%}.duet-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;align-items:center;width:100%;min-width:8rem;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, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:1px;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, padding 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-button:focus,.duet-button:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-button.duet-button-size-medium{height:50px;padding-right:30px;padding-left:30px;font-size:1rem;border-radius:25px}.duet-button.duet-button-size-medium.square{border-radius:12.5px}.duet-button.duet-button-size-medium.icon-left{padding-left:24px}.duet-button.duet-button-size-medium.icon-right{padding-right:24px}.duet-button.duet-button-size-small{height:40px;padding-right:20px;padding-left:20px;font-size:0.875rem;border-radius:20px}.duet-button.duet-button-size-small.square{border-radius:10px}.duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-button.duet-button-size-x-small{height:32px;padding-right:12px;padding-left:12px;font-size:0.75rem;border-radius:8px}.duet-button.duet-button-size-x-small.icon-left{padding-left:10px}.duet-button.duet-button-size-x-small.icon-right{padding-right:10px}.duet-button.plain.duet-p-0{height:auto}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){min-width:48px}.duet-button.duet-button-is-small:not(.duet-button-icon-only).plain{padding-right:0 !important;padding-left:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).duet-p-0{padding:0 !important}.duet-button .duet-button-contents{position:relative;display:flex;gap:10px;align-items:center;margin:0 auto;pointer-events:none}.duet-button .duet-button-contents.icon-right{flex-direction:row-reverse}.duet-button .duet-button-contents .duet-button-contents-slot{position:relative;top:0}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{display:flex;align-items:center}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{background:rgb(255, 255, 255);border-color:rgb(181, 198, 208)}.duet-button.default:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.primary,.duet-button.input-button-primary,.duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.primary:hover,.duet-button.input-button-primary:hover,.duet-button.input-button-left-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-left-secondary,.duet-button.input-button-embedded{color:rgb(8, 42, 77) !important;background:transparent;border-color:rgb(8, 42, 77)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-left-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179);outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-button.secondary:hover,.duet-button.secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-button.input-button-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-button.input-button-left-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-embedded:hover,.duet-button.input-button-embedded:hover.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-left-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(212, 223, 229) !important;border-color:rgb(255, 255, 255)}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.input-button{height:auto}.duet-button.negative{color:rgb(8, 42, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.duet-button-negative:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(255, 255, 255, 0.8)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-button.destructive-primary:hover{background:#ab1642;border-color:#ab1642;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-button.plain.duet-p-0 .duet-button-contents{height:auto}.duet-button.plain[disabled],.duet-button.plain[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-button.plain:hover{color:rgb(0, 75, 129) !important;background:transparent !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-button.plain.duet-button-negative:hover{color:rgba(255, 255, 255, 0.8) !important}.duet-button.plain.duet-button-icon-only:focus{outline-offset:1px}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded,.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents,.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-secondary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-embedded .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-secondary .duet-button-contents.icon-right{padding:0 16px}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-top-right-radius:4px !important;border-bottom-right-radius:4px !important;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{border-top-left-radius:4px !important;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px !important}.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-left-secondary{border-color:rgb(127, 150, 165)}.duet-button.square{width:52px;min-width:auto !important;padding:0 !important;font-size:1rem;border-color:rgb(181, 198, 208);border-width:1px}.duet-button.square.duet-button-size-small{width:42px;font-size:0.875rem}.duet-button.square.duet-button-size-x-small{width:34px;font-size:0.875rem}.duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.square:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.square .duet-button-contents{gap:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;outline:none !important;outline-color:rgb(212, 223, 229) !important;outline-color:rgb(212, 223, 229) !important;background:rgb(212, 223, 229) !important;border-color:rgb(212, 223, 229) !important;box-shadow:none !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}.duet-theme-turva .duet-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(230, 23, 64) !important;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium{padding-right:24px;padding-left:24px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-left{padding-left:14px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-right{padding-right:14px}.duet-theme-turva .duet-button.duet-button-size-small{padding-right:18px;padding-left:18px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-theme-turva .duet-button.default{color:rgb(230, 23, 64) !important;border-color:rgb(178, 194, 205)}.duet-theme-turva .duet-button.default:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary,.duet-theme-turva .duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover,.duet-theme-turva .duet-button.input-button-left-primary:hover{background:rgb(140, 0, 30);border-color:rgb(140, 0, 30)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-left-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 42, 59) !important;border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.duet-button.input-button-primary,.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-bottom-left-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-left-primary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-top-right-radius:0;border-bottom-right-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-button.negative{color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-button.negative:hover{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#ab1642}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-theme-turva .duet-button.plain{color:rgb(230, 23, 64) !important;background:transparent;border-color:transparent}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(140, 0, 30) !important}.duet-theme-turva .duet-button.plain[disabled],.duet-theme-turva .duet-button.plain[disabled]:hover{color:rgb(95, 122, 143) !important;cursor:not-allowed;background:transparent !important;border-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.square{border-color:rgb(212, 221, 226)}.duet-theme-turva .duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.square:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(120, 145, 164) !important;cursor:not-allowed;outline-color:rgb(212, 221, 226) !important;background:rgb(212, 221, 226) !important;border-color:rgb(212, 221, 226) !important}.duet-theme-turva .duet-button-is-loading.default{color:rgb(230, 23, 64)}";
|
|
5604
5630
|
|
|
5605
5631
|
class DuetButton {
|
|
5606
5632
|
constructor(hostRef) {
|
|
@@ -6017,11 +6043,11 @@ class DuetCallout {
|
|
|
6017
6043
|
<path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>
|
|
6018
6044
|
</svg>
|
|
6019
6045
|
`;
|
|
6020
|
-
return (hAsync(Host, { key: '
|
|
6046
|
+
return (hAsync(Host, { key: 'b082df5828c66c540240a355c2143bdc97cdeda2' }, hAsync("div", { key: '318c40bc242a649eb1e74191703e77ef9f567dac', class: {
|
|
6021
6047
|
"duet-callout": true,
|
|
6022
6048
|
"duet-theme-turva": this.theme === "turva",
|
|
6023
6049
|
"duet-m-0": this.margin === "none",
|
|
6024
|
-
} }, hAsync("figure", { key: '
|
|
6050
|
+
} }, hAsync("figure", { key: '4c7ff23d3c646e8e37452488aba5b9a28344625f', class: "container" }, hAsync("duet-icon", { key: 'd5234359ce6513b20a552366603498b7dc5729f5', class: "callout-icon", shape: "brand-rotated", background: "primary-lighter", "background-opacity": "0.75", "background-rotation": this.theme === "turva" ? "0" : "7", color: "secondary", icon: icon, size: "auto", margin: "none", theme: this.theme }), hAsync("blockquote", { key: '67ab9a0d89f6abff523b8ca16a20c2a67865b86a' }, hAsync("slot", { key: 'fc4670a439f114411b42ce3dcd8ef7f365fa650c' })), this.hasAuthorSlot && (hAsync("figcaption", { key: '9d1b92d3229bef3447e7b5590efc766d4efb2ad6', class: "author" }, hAsync("span", { key: '5310ad556c87706338d0a75058107d2e4d1fe241' }, "\u2014 "), hAsync("slot", { key: 'f7281f1633a536bd242831e952ca1bc240b98b1c', name: "author" })))))));
|
|
6025
6051
|
}
|
|
6026
6052
|
get element() { return getElement(this); }
|
|
6027
6053
|
static get style() { return duetCalloutCss; }
|
|
@@ -6528,11 +6554,11 @@ class DuetCheckmark {
|
|
|
6528
6554
|
inheritGlobalTheme(this);
|
|
6529
6555
|
}
|
|
6530
6556
|
render() {
|
|
6531
|
-
return (hAsync(Host, { key: '
|
|
6557
|
+
return (hAsync(Host, { key: '77d8d9cfa205def19022cd899ab98eb36007d2e2', class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: 'b93b32d626ceca01d12390209e700eef8665fd8b', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, hAsync("div", { key: 'fa4d7323cf416248275604e05b261bc1f542ea6e', class: {
|
|
6532
6558
|
"duet-checkmark-container": true,
|
|
6533
6559
|
center: this.center,
|
|
6534
6560
|
"duet-checkmark-radio": this.type === "radio",
|
|
6535
|
-
} }, this.checked && hAsync("div", { key: '
|
|
6561
|
+
} }, this.checked && hAsync("div", { key: 'd2a988ecdd6f5d41ce318365966515ff92c252c6', class: "duet-checkmark" })))));
|
|
6536
6562
|
}
|
|
6537
6563
|
static get style() { return duetCheckmarkCss; }
|
|
6538
6564
|
static get cmpMeta() { return {
|
|
@@ -6755,16 +6781,14 @@ class DuetChip {
|
|
|
6755
6781
|
}
|
|
6756
6782
|
};
|
|
6757
6783
|
/**
|
|
6758
|
-
* Stop
|
|
6784
|
+
* Stop prevent default if popup is present, as the popup controls value and checked state.
|
|
6759
6785
|
*/
|
|
6760
6786
|
this.onFilterClick = (evt) => {
|
|
6761
6787
|
if (this.disabled) {
|
|
6762
|
-
evt.stopPropagation();
|
|
6763
6788
|
evt.preventDefault();
|
|
6764
6789
|
return;
|
|
6765
6790
|
}
|
|
6766
6791
|
if (this.popupElement) {
|
|
6767
|
-
evt.stopPropagation();
|
|
6768
6792
|
evt.preventDefault();
|
|
6769
6793
|
this.popupElement.toggle();
|
|
6770
6794
|
}
|
|
@@ -6773,7 +6797,6 @@ class DuetChip {
|
|
|
6773
6797
|
* Remove input chip
|
|
6774
6798
|
*/
|
|
6775
6799
|
this.onRemoveClick = (evt) => {
|
|
6776
|
-
evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
|
|
6777
6800
|
evt === null || evt === void 0 ? void 0 : evt.preventDefault();
|
|
6778
6801
|
this.duetRemove.emit({
|
|
6779
6802
|
originalEvent: evt,
|
|
@@ -6886,7 +6909,7 @@ class DuetChip {
|
|
|
6886
6909
|
onBlur: this.onBlur,
|
|
6887
6910
|
ref: el => (this.focusableElement = el),
|
|
6888
6911
|
};
|
|
6889
|
-
return (hAsync(Host, { key: '
|
|
6912
|
+
return (hAsync(Host, { key: 'ebc8f8cba112ee9f682c22ba09f04b05968d4ba2', class: { [this.variation]: true } }, this.variation === "button" && (hAsync("span", { key: '6bf0c0545a457d2917df074d7d263e12e07e3255', class: classes }, hAsync("button", Object.assign({ key: '51780aa4be42824dd17784e59b17ff23cdca4ea1', id: identifier, "aria-label": this.accessibleLabel, "aria-haspopup": this.getAccessiblePopup(), "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, name: this.name, value: this.value, onClick: this.disabled ? evt => evt.stopPropagation() : undefined }, focusHandlers), hAsync("span", { key: '52036fee728f26c3b21701d9ed870caf45e9295f', class: "duet-chip-icon-container" }, this.icon && (hAsync("duet-icon", { key: '7ef322e3c74ca552fb91a03d1d4d7cbba4b325e3', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), hAsync("slot", { key: 'b781a521f1dc02c0c7b0792309d4fb730acc5c2d' })))), this.variation === "input" && (hAsync("span", { key: 'c997bfd1f27de93629210b953c9788bdf754538f', class: classes, "aria-label": this.getAccessibleInputChipLabel() }, hAsync("button", Object.assign({ key: 'c1ff3d503dda53884a42637460d048a27fe0d40e', id: identifier, class: "duet-chip-input-button", value: this.value, "aria-label": this.accessibleLabel, onMouseOver: () => (this.inputChipHover = true), onMouseOut: () => (this.inputChipHover = false), onClick: () => (this.selected = !this.selected) }, focusHandlers), hAsync("span", { key: '73d0e2250e46b6bdd1ffd65f9879e7c9d90da448', class: "duet-chip-icon-container" }, this.icon && (hAsync("duet-icon", { key: 'f5353d825977fb008fb2d71fe796a2c6f4720181', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), hAsync("slot", { key: '2932e26e6266957b80953b2ce275d580466e47ba' })), hAsync("button", { key: '248c016d99211ec7893a1cc74f7ecd268d44d343', class: "duet-chip-remove-button", "aria-label": this.getAccessibleDeleteLabel(), onClick: this.onRemoveClick, onFocus: () => (this.inputChipDeleteFocus = true), onBlur: () => (this.inputChipDeleteFocus = false), ref: el => (this.deleteButtonElement = el) }, hAsync("duet-icon", { key: '6172cedf507d0e6f69ea39ce8fa6a4e21b714d11', name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (hAsync("span", { key: '8c7b88c4c077b7bd4afd0c7bdf36d01f9c9092ae', class: classes }, hAsync("input", Object.assign({ key: 'b97c5cba016483f506521d00100f022160f48680', "aria-haspopup": this.getAccessiblePopup(), "aria-controls": (_a = this.popupElement) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), hAsync("label", { key: 'cc082e72c8f2a782f4bfd44afc35daea973c6b08', htmlFor: identifier }, this.icon && (hAsync("span", { key: 'a453948d4d0507fe5dbd080f573d83356f95f35c', class: "duet-chip-icon-container" }, hAsync("duet-icon", { key: '4545c9c75f4ac311e19d9932328eb7e6d8318ac9', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), hAsync("duet-icon", { key: '2dd3e4bc69e6efd4138ba8b74a5fddf52394416f', name: "messaging-checked-small", size: this.size === "large" ? "x-small" : "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), hAsync("slot", { key: '5367a32b3b34e7c67412bd0a0dfa9ace24636687' }), this.popupElement && (hAsync("span", { key: 'edad2d024ba464eea661cd1990629633438b6ba0', class: "duet-chip-popup-disclosure" }, hAsync("duet-icon", { key: 'aa76a07f9446fea95dc61660c92c5bee645f27d4', name: "action-arrow-down-small", size: this.size === "large" ? "xx-small" : "xxx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (hAsync("span", { key: '97fe2aee42e9823b794acaeda3df724470c4c832', class: classes }, hAsync("slot", { key: 'f820fe5d09ff67433693698dd9d60848535cab8a', name: "input" }), hAsync("label", { key: '0953b3248cc1c8f6fa46f2684f7fc465bfd0a412', htmlFor: identifier }, this.icon && (hAsync("span", { key: '25e66d3992af529de900ead65488bf64a4c12650', class: "duet-chip-icon-container" }, hAsync("duet-icon", { key: '731d3562a51b7c231d8142c7b0ec8d95675439ab', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), hAsync("duet-icon", { key: '9b041e11ab55414369bcd45962c31263129fd5b6', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), hAsync("slot", { key: '9a9dd5c4ba7e327a2df00f24bb272f61a4061d65' }))))));
|
|
6890
6913
|
}
|
|
6891
6914
|
get element() { return getElement(this); }
|
|
6892
6915
|
static get watchers() { return {
|
|
@@ -7161,13 +7184,13 @@ class DuetChoice {
|
|
|
7161
7184
|
* Local methods
|
|
7162
7185
|
*/
|
|
7163
7186
|
this.toggleChecked = ev => {
|
|
7187
|
+
// As label click by default toggles the input, but we handle
|
|
7188
|
+
// toggling here, prevent default.
|
|
7164
7189
|
ev.preventDefault();
|
|
7165
|
-
ev.stopPropagation();
|
|
7166
7190
|
if (this.getDisabled()) {
|
|
7167
7191
|
return;
|
|
7168
7192
|
}
|
|
7169
|
-
//
|
|
7170
|
-
// we shouldn't fire an event, so exit early
|
|
7193
|
+
// For a checked radio button do not toggle checkedness nor emit event.
|
|
7171
7194
|
if (this.type === "radio" && this.checked) {
|
|
7172
7195
|
return;
|
|
7173
7196
|
}
|
|
@@ -7322,7 +7345,7 @@ class DuetChoice {
|
|
|
7322
7345
|
* Always the last one in the class.
|
|
7323
7346
|
*/
|
|
7324
7347
|
render() {
|
|
7325
|
-
return (hAsync(Host, { key: '
|
|
7348
|
+
return (hAsync(Host, { key: '161ca837a384fd96fde8171eb0ee9a922f348740', class: {
|
|
7326
7349
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
7327
7350
|
[`horizontal-responsive-${this.groupResponsive}`]: this.groupDirection === "horizontal" && !!this.groupResponsive,
|
|
7328
7351
|
"vertical-stretch": this.groupDirection === "horizontal",
|
|
@@ -7331,10 +7354,10 @@ class DuetChoice {
|
|
|
7331
7354
|
"duet-theme-turva": this.theme === "turva",
|
|
7332
7355
|
"no-hover": this.isHovering,
|
|
7333
7356
|
disabled: this.getDisabled(),
|
|
7334
|
-
} }, hAsync("div", { key: '
|
|
7357
|
+
} }, hAsync("div", { key: '9b1f7f73d1e644294e06780f748a5b5c86f3c419', class: {
|
|
7335
7358
|
"duet-choice-card-flextainer": true,
|
|
7336
7359
|
"duet-theme-turva": this.theme === "turva",
|
|
7337
|
-
} }, hAsync("div", { key: '
|
|
7360
|
+
} }, hAsync("div", { key: '5bd120316eff11e496393cc3d41401c7523d1fdc', class: {
|
|
7338
7361
|
"duet-choice-card": true,
|
|
7339
7362
|
"has-icon": !!this.icon,
|
|
7340
7363
|
"has-info": this.hasInfo,
|
|
@@ -7343,16 +7366,16 @@ class DuetChoice {
|
|
|
7343
7366
|
collapsible: this.collapsible,
|
|
7344
7367
|
"collapsible-force-expanded": this.collapsibleForceExpanded,
|
|
7345
7368
|
"duet-p-0": this.padding === "none",
|
|
7346
|
-
} }, hAsync("slot", { key: '
|
|
7369
|
+
} }, hAsync("slot", { key: '25b753b3d13766c86e7c03e48ecde9ee345151c9', name: "choiceinput" }), hAsync("label", { key: 'd113e5e6012cd5606552b6964c0f792b992483af', class: {
|
|
7347
7370
|
"duet-choice-label": true,
|
|
7348
7371
|
"has-before-text": this.hasBeforeText,
|
|
7349
7372
|
checked: this.checked,
|
|
7350
7373
|
focus: this.focus,
|
|
7351
7374
|
disabled: this.getDisabled(),
|
|
7352
|
-
}, onClick: this.onClick }, this.hasBeforeText && hAsync("slot", { key: '
|
|
7375
|
+
}, onClick: this.onClick }, this.hasBeforeText && hAsync("slot", { key: '1ab6a902a2a1e6ea5ab7e075a2318482cf0a1f75', name: "before-text" }), this.icon && (hAsync("div", { key: '524b6f9260ab2e3bab12f933ad14e744b1401a12', class: "duet-choice-card-icon" }, hAsync("duet-icon", { key: 'b969cf6e06ffaf643aa701c37d4541e36f4e16a8', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), hAsync("div", { key: '9cc50495673c27a7c6a5f3bdb14c609e6a4601f8', class: "duet-choice-card-text" }, hAsync("div", { key: 'c87f5c7fbfcb824cd962b47f5b245b0d113cb04b' }, this.hasLabel ? hAsync("slot", { name: "label" }) : this.label), this.caption && (hAsync("div", { key: '8b325a22769d880383b1b3b24e531306b83bc082' }, hAsync("duet-spacer", { key: '7d0b9e0b85d3ed5d5da0bcad6991d17ceb385587', size: "xx-small" }), hAsync("duet-caption", { key: '3a3a799147caa313ca58a101dc47e5149c0c214f', margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (hAsync("div", { key: 'ebea33b278a48a2d1277df23682aff24ffca5f93' }, hAsync("duet-spacer", { key: 'c06cf1daace2056cfc11c90e2fdbe2e3d5a02281', size: "xx-small" }), hAsync("slot", { key: '952ec73f80beb3dc70550cc7f294f3cc19466109', name: "additional" })))), hAsync("div", { key: 'c011bec512f287c09ac07c7eb27351bdf035d95f' }, hAsync("div", { key: 'df64779e16fd3eb7a476794b11516433f7d9cdce', class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && hAsync("div", { key: '94314b297dc613c45adaa647eeec06f93b01e325', class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (hAsync("button", { key: 'dd3fc995ac9ac436708557efc5319b7c081d76e8', ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
|
|
7353
7376
|
"duet-choice-info-toggle": true,
|
|
7354
7377
|
"duet-theme-turva": this.theme === "turva",
|
|
7355
|
-
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.getDisabled(), "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button", onKeyUp: e => this.handleEscape(e) }, hAsync("div", { key: '
|
|
7378
|
+
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.getDisabled(), "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button", onKeyUp: e => this.handleEscape(e) }, hAsync("div", { key: 'a78097639b91f3c310e490e8cfc23040a7dfcb48', class: "duet-choice-info-icon" }, hAsync("duet-icon", { key: 'a4a43850eb0cbbb171ff87b7834e135247d5f4c8', icon: infoIcon.svg, margin: "none", size: "small", color: "currentColor" }))))), this.collapsible && (hAsync("span", { key: 'd081dffa05b32cd86475b5dcaed06d8d12af4b85', id: `${this.choiceId}-collapsible-notification`, hidden: true }, this.collapsibleNotification)), this.collapsible || this.hasInfo ? (hAsync("div", { class: this.getClassNames(), id: this.expandId }, hAsync("span", { class: {
|
|
7356
7379
|
"duet-choice-section-visible": this.collapsible ? this.getExpanded() : this.isInfoOpen,
|
|
7357
7380
|
"duet-choice-section-hidden": this.collapsible ? !this.getExpanded() : !this.isInfoOpen,
|
|
7358
7381
|
} }, hAsync("span", { id: this.headerId }, hAsync("slot", { name: "header" })), this.hasInfo ? (hAsync("span", { ref: span => (this.infoContainer = span), tabindex: "-1", class: "duet-choice-info-container", onKeyUp: e => this.handleEscape(e) }, hAsync("span", null, hAsync("slot", { name: "info" })), hAsync("slot", null))) : (hAsync("span", { id: `${this.choiceId}-collapsible-content` }, hAsync("slot", null)))))) : null));
|
|
@@ -7481,7 +7504,7 @@ class DuetChoiceGroup {
|
|
|
7481
7504
|
if (mutationList.some(r => {
|
|
7482
7505
|
var _a;
|
|
7483
7506
|
return ((_a = r.removedNodes) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
7484
|
-
Array.from(r.removedNodes.values()).some(n => n.nodeName.toLowerCase() === "duet-choice");
|
|
7507
|
+
Array.from(r.removedNodes.values()).some(n => n.nodeName.toLowerCase() === "duet-choice" && this.choices.has(n));
|
|
7485
7508
|
})) {
|
|
7486
7509
|
this.updateChoices();
|
|
7487
7510
|
}
|
|
@@ -7543,13 +7566,11 @@ class DuetChoiceGroup {
|
|
|
7543
7566
|
async updateChoices() {
|
|
7544
7567
|
var _a;
|
|
7545
7568
|
const value = (_a = this.value) !== null && _a !== void 0 ? _a : this.initialValue;
|
|
7569
|
+
const allChoices = Array.from(this.element.querySelectorAll("duet-choice"));
|
|
7570
|
+
const ownChoices = allChoices.filter(choice => !allChoices.includes(choice.parentElement.closest("duet-choice")));
|
|
7546
7571
|
let hasChecked = false;
|
|
7547
7572
|
this.choices.clear();
|
|
7548
|
-
|
|
7549
|
-
if (choice.closest("duet-choice-group") === this.element) {
|
|
7550
|
-
this.choices.add(choice);
|
|
7551
|
-
}
|
|
7552
|
-
});
|
|
7573
|
+
ownChoices.forEach(choice => this.choices.add(choice));
|
|
7553
7574
|
// Walk the DOM in reverse order, since the last selected one wins
|
|
7554
7575
|
for (const choice of Array.from(this.choices)) {
|
|
7555
7576
|
choice.name = this.name;
|
|
@@ -7581,14 +7602,14 @@ class DuetChoiceGroup {
|
|
|
7581
7602
|
* Always the last one in the class.
|
|
7582
7603
|
*/
|
|
7583
7604
|
render() {
|
|
7584
|
-
return (hAsync(Host, { key: '
|
|
7605
|
+
return (hAsync(Host, { key: '94d0ad93557a1487328291dec3786b2a54809a33', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, class: {
|
|
7585
7606
|
horizontal: this.direction === "horizontal",
|
|
7586
7607
|
"duet-choice-group-breakpoint-x-small": this.responsive && this.breakpoint === "x-small",
|
|
7587
7608
|
"duet-choice-group-breakpoint-small": this.responsive && this.breakpoint === "small",
|
|
7588
7609
|
"duet-choice-group-breakpoint-medium": this.responsive && this.breakpoint === "medium",
|
|
7589
7610
|
"duet-choice-group-breakpoint-large": this.responsive && this.breakpoint === "large",
|
|
7590
7611
|
"duet-choice-group-breakpoint-x-large": this.responsive && this.breakpoint === "x-large",
|
|
7591
|
-
} }, hAsync("duet-fieldset", { key: '
|
|
7612
|
+
} }, hAsync("duet-fieldset", { key: '21ef6afa85bf7d3dddc001aae2583adbd3dee304', label: this.label, labelHidden: this.labelHidden, compactLabel: true, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (hAsync("duet-tooltip", { key: '5ff31a8282e6e7eace9d2bb035d325af2d073fea', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '8e9b7d9abb95cd49f4bbc5fa9a694c2691a32c7d', name: "tooltip", slot: "tooltip" }), hAsync("div", { key: 'be989adb0d4a5794d0132a3ee00979cf1bf79bd9', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: '725c965b94dd5e8555d9e2e450ac6d61e74cefb6' })))));
|
|
7592
7613
|
}
|
|
7593
7614
|
get element() { return getElement(this); }
|
|
7594
7615
|
static get watchers() { return {
|
|
@@ -9502,7 +9523,6 @@ class DuetCombobox {
|
|
|
9502
9523
|
// Event handlers
|
|
9503
9524
|
onListClick(e, item) {
|
|
9504
9525
|
e.preventDefault();
|
|
9505
|
-
e.stopPropagation();
|
|
9506
9526
|
// update selected item with id
|
|
9507
9527
|
if (this.multiple) {
|
|
9508
9528
|
this.addSelectedItem(item.id, true);
|
|
@@ -9687,10 +9707,10 @@ class DuetContactCard {
|
|
|
9687
9707
|
render() {
|
|
9688
9708
|
const isTurva = this.theme === "turva";
|
|
9689
9709
|
const theme = isTurva ? "turva" : "default";
|
|
9690
|
-
return (hAsync(Host, { key: '
|
|
9710
|
+
return (hAsync(Host, { key: '6cf20cb225b22fbb826b136c3909234684d30e3d', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '24e57cbe34b4d01ff024fe8128d3168b61e61af6', class: {
|
|
9691
9711
|
"duet-contact-card": true,
|
|
9692
9712
|
"duet-theme-turva": this.theme === "turva",
|
|
9693
|
-
}, role: "group", "aria-label": this.name }, this.image ? hAsync("img", { class: "image", src: this.image, alt: this.name }) : hAsync("div", null), hAsync("div", { key: '
|
|
9713
|
+
}, role: "group", "aria-label": this.name }, this.image ? hAsync("img", { class: "image", src: this.image, alt: this.name }) : hAsync("div", null), hAsync("div", { key: 'f3c40c440d2d9dd97e3c1e24817d60e62f6347f0' }, this.name && (hAsync("duet-heading", { key: 'cde7a70f10cfdd45e801c9ef923e116b2ee12e42', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (hAsync("duet-paragraph", { key: '1c855114d2101701a8b39f75fe8b2ae76d5ffe57', class: "description", margin: "none", theme: theme }, this.description)), this.email && (hAsync("div", { key: 'b552b0f0de5e16059e77ee518e2087d24a2171c4', class: "email" }, hAsync("duet-icon", { key: '2048a5cb8e29d7d664c984c72031cdfd1894e0a6', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: '6e2a9b632e0fb1df3efd51dc66d6df1891eaa3a1', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (hAsync("div", { key: '1a263f67d1844f9c2ba334ba24ebc32d9faf4b86', class: "phone" }, hAsync("duet-icon", { key: 'dab3c18ed7f4c092aa8644ef6d9a915854c9e33d', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: '68c6b2ff4480300f563b7d8d65fb4d47160fcd8b', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (hAsync("div", { key: '70288a25480b39a333831a129def567c99f202b7', class: "call-to-action" }, hAsync("duet-button", { key: 'c5fccd74b8b2b6b4917b464c5e723c657e326bb0', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), hAsync("div", { key: '9fd8e574534d15aa89eaac786c257586a6f9f845' }), hAsync("slot", { key: 'ab0fa1cc3232c70441d441e4c673b8b562ffbe92' }))));
|
|
9694
9714
|
}
|
|
9695
9715
|
get element() { return getElement(this); }
|
|
9696
9716
|
static get style() { return duetContactCardCss; }
|
|
@@ -10684,20 +10704,21 @@ class DuetDatePicker {
|
|
|
10684
10704
|
if (maxDate) {
|
|
10685
10705
|
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
10686
10706
|
}
|
|
10687
|
-
return (hAsync(Host, { key: '
|
|
10707
|
+
return (hAsync(Host, { key: 'bc53156f31fd151a978be4cb494d89811177d2de', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: 'bd85feeae1d997447181347f131cf0eaa309af93', class: "duet-date" }, hAsync(DatePickerInput, { key: '0e22a10646a9df5c2dee41047df08e8df6b63872', hasFocus: this.inputHasFocus, value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, accessibleLiveError: this.accessibleLiveError, echoPlaceholder: this.echoPlaceholder, caption: this.caption })), hAsync("div", { key: 'c4575f4c809d00307b254756d1c00e5d65520b03', class: {
|
|
10688
10708
|
"duet-theme-turva": this.theme === "turva",
|
|
10689
10709
|
"duet-date-dialog": true,
|
|
10690
10710
|
left: this.direction === "left",
|
|
10691
10711
|
error: !!this.error,
|
|
10692
10712
|
active: this.open,
|
|
10693
|
-
}, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, hAsync("duet-overlay", { key: '
|
|
10713
|
+
}, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, hAsync("duet-overlay", { key: '73718663a16c1f4f18625a0e9b5e12c4d84e2862', visible: this.open, "display-device": "x-small" }), hAsync(FocusGuard, { key: '55795dff1697ed625725a441813c2837b9180ca4', moveFocusTo: this.focusedDayNode }), hAsync("div", { key: '4575c14cab6890c2ed93f14cc269495f4e6112c6', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, hAsync("duet-visually-hidden", { key: '64ec3d2f1809490ebfe3dd1e04bd332fd603010a', "aria-live": "polite" }, text.keyboardInstruction), hAsync("div", { key: 'b5545e0104ad9a0bc9f99ff3a725752595a0ffa6', class: "duet-date-dialog-mobile-header" }, hAsync(DuetInternalLabel, { key: '73d2c0aa481b994ce191816304e1867f461aa7d7', margin: "none" }, this.label), hAsync("button", { key: 'c7483c8e743830ff8a21c2127897b43e45b57d8b', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, hAsync("duet-icon", { key: 'b2b8fd08895e8a5b0de42af39fb3e8b4810314e7', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), hAsync("duet-visually-hidden", { key: '9238a95c2b5266055844e593ba8ab6349d9d033f' }, text.closeLabel))), hAsync("div", { key: '3f68135c40899e3de9f9546ebdace84fbe831141', class: "duet-date-dialog-header" }, hAsync("div", { key: '5cc6d3e6a2665e29091147f86fe44339af33327c', class: "duet-date-dialog-dropdowns" }, hAsync("duet-visually-hidden", { key: '5bf35b2c9736d2d110344b92942f13be850d644b' }, hAsync("h2", { key: '95391f17e2c907733fe1c3d567678d236e369fdc', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), hAsync("duet-visually-hidden", { key: 'a356aafd4ce51cf91cbc363297645efa79da42e3' }, hAsync("label", { key: 'd806131d0e348f3743726e47daeb580baaec91a2', htmlFor: this.monthSelectId }, text.monthSelectLabel)), hAsync("div", { key: '5e4a84de81c95b6c62dc03de1c805f472377805c', class: "duet-date-dialog-select" }, hAsync("select", { key: 'aa66520799ef32c4dfe30506cdbeb4f01000055e', id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (hAsync("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), hAsync("div", { key: '8bf72353d282a2c82f0e64e1a752a17dbcd6423b', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: '1b9a7f95c0007b30117782c962311c54244228a3' }, text.monthLabelsShort[focusedMonth]), hAsync("duet-icon", { key: 'a234a84604cb1f87ee8c382b7d886e00a13cd913', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), hAsync("duet-visually-hidden", { key: 'f41e59ff6c32248ea057f4547ef6bf24688423e1' }, hAsync("label", { key: '10ea1d3b43b673950054ad36abe59688971843d0', htmlFor: this.yearSelectId }, text.yearSelectLabel)), hAsync("div", { key: 'b7cd16b90fb5126189de4648b99c6634c15bc5a2', class: "duet-date-dialog-select" }, hAsync("select", { key: '852475517a751519016dcc2c14023b9f1850b0d9', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (hAsync("option", { key: year, selected: year === focusedYear }, year)))), hAsync("div", { key: '426ab30bd0268b659253d8b9dcd375b7da1952dd', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: '55b9cc0f5e60cd6ad666e58c2724865216d1c635' }, this.focusedDay.getFullYear()), hAsync("duet-icon", { key: 'b28ab73ebb1ca7fac93ee3c52d696fa65f2bef29', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), hAsync("div", { key: 'eee0f191f6b409674d0ef2b7383d6ab45c316d7c', class: "duet-date-dialog-buttons" }, hAsync("duet-action-button", { key: '5a4c05b83e76b2740f71fe7e2d94602e16aa0219', accessibleLabel: i18n$2[this.language].prevMonthLabel, actionName: i18n$2[this.language].prevMonthLabel, class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel), hAsync("duet-action-button", { key: '0d4117fdd8511135bede66b13c8177d7105b567f', accessibleLabel: i18n$2[this.language].nextMonthLabel, actionName: i18n$2[this.language].nextMonthLabel, class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))), hAsync(DatePickerMonth, { key: 'ac47f9d6b83fa994e5137a45c300db313dd70701', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })), hAsync(FocusGuard, { key: '9727a0dab133694bd4b2ef008adec00439040b8b', moveFocusTo: this.closeButtonNode }))));
|
|
10694
10714
|
}
|
|
10695
10715
|
get element() { return getElement(this); }
|
|
10696
10716
|
static get watchers() { return {
|
|
10697
10717
|
"min": ["updateValidity"],
|
|
10698
10718
|
"max": ["updateValidity"],
|
|
10699
10719
|
"value": ["updateValidity", "updateInternalValue"],
|
|
10700
|
-
"required": ["updateValidity"]
|
|
10720
|
+
"required": ["updateValidity"],
|
|
10721
|
+
"inputValue": ["updateValidity"]
|
|
10701
10722
|
}; }
|
|
10702
10723
|
static get style() { return duetDatePickerCss; }
|
|
10703
10724
|
static get cmpMeta() { return {
|
|
@@ -10779,7 +10800,7 @@ class DuetDivider {
|
|
|
10779
10800
|
*/
|
|
10780
10801
|
render() {
|
|
10781
10802
|
const background = getColorByName(this.color);
|
|
10782
|
-
return (hAsync("div", { key: '
|
|
10803
|
+
return (hAsync("div", { key: 'cfe1692393e236239489a12b1348ee3ceacbd6e8', class: {
|
|
10783
10804
|
"duet-m-0": this.margin === "none",
|
|
10784
10805
|
"duet-m-s": this.margin === "small",
|
|
10785
10806
|
"duet-divider": true,
|
|
@@ -11017,7 +11038,7 @@ class DuetEditableTable {
|
|
|
11017
11038
|
* Render Methods
|
|
11018
11039
|
*/
|
|
11019
11040
|
render() {
|
|
11020
|
-
return (hAsync(Host, { key: '
|
|
11041
|
+
return (hAsync(Host, { key: 'e8047048590b1dfac635e5a94a46fb1d61e4030b', class: {
|
|
11021
11042
|
[`duet-editable-table-${this.variation}`]: true,
|
|
11022
11043
|
"duet-editable-table": true,
|
|
11023
11044
|
[`duet-editable-table-${this.theme}`]: true,
|
|
@@ -11027,7 +11048,7 @@ class DuetEditableTable {
|
|
|
11027
11048
|
"duet-editable-table-actions": !!this.actions,
|
|
11028
11049
|
"duet-m-0": this.margin === "none",
|
|
11029
11050
|
"duet-theme-turva": this.theme === "turva",
|
|
11030
|
-
} }, hAsync("duet-table", { key: '
|
|
11051
|
+
} }, hAsync("duet-table", { key: 'abcb5c0dc22830d840bbf18144e66605207849d0', class: "duet-editable-table-table", sticky: this.sticky, stickyDistance: this.stickyDistance, margin: this.margin, theme: this.theme, variation: this.variation, breakpoint: this.breakpoint, "hide-head-visually": this.hideHeadVisually }, hAsync("table", { key: '269ab86ebe745cfcf2e208e174e0914ea7b4fed8', role: this.accessibleRole }, hAsync("caption", { key: '2753e748db0c5264c994a41b002e52a5641d2971' }, hAsync("slot", { key: '567de210690137ae00e2ad40e2e2c1e1c733f3d7', name: "tcaption" })), hAsync("thead", { key: 'ea6b829d344cd19619f667d75304614cbf60cc9d' }, this.hasHeadSlotFirst && (hAsync("tr", { key: '84c66d116690df93737670dbbd0fc2b0e5c9f80b' }, hAsync("td", { key: '3ab4954300f48b65cdc48f612045ef4296f3561d', class: "duet-editable-table-actions-menu", colSpan: 99 }, hAsync("slot", { key: '9f32c90606e46036a34ca037bdfd61d4eae70fb2', name: "thead-first" })))), this.renderTableHeader(), this.hasHeadSlotLast && (hAsync("tr", { key: '8be7b6223bd2ba7109db839efde2baab0f04c40f' }, hAsync("td", { key: '1d6b0626d4b9dfdedc24f1118b53558e3ad80a54', class: "duet-editable-table-actions-menu", colSpan: 99 }, hAsync("slot", { key: '247e4a043cc716d504a4827c415a3d73e8285046', name: "thead-last" }))))), hAsync("tbody", { key: '778fd5a880190cffa0f9649b37839b2a0abedbe5' }, this.renderTableBody()), this.hasFootSlot && (hAsync("tfoot", { key: '8c5e4045377ec3547c5005836f389cac2221dc62' }, hAsync("tr", { key: '71959adb135cbcd6b7e19c9c9d4dcd3e799e8720' }, hAsync("td", { key: 'ff1dc8216a9c918c1d9dec4aaf77454fd728a9ff', class: "duet-editable-table-footer-menu", colSpan: 99 }, hAsync("slot", { key: '450238c070a9f72a326737a26b1f6ede2f9606d2', name: "tfoot" })))))))));
|
|
11031
11052
|
}
|
|
11032
11053
|
get element() { return getElement(this); }
|
|
11033
11054
|
static get style() { return duetEditableTableCss; }
|
|
@@ -11109,13 +11130,13 @@ class DuetEmptyState {
|
|
|
11109
11130
|
* Always the last one in the class.
|
|
11110
11131
|
*/
|
|
11111
11132
|
render() {
|
|
11112
|
-
return (hAsync(Host, { key: '
|
|
11133
|
+
return (hAsync(Host, { key: 'bf9aa87672aa22b4e89cc0014f6918fd8389981f' }, hAsync("div", { key: '21e1d1af1326ef9709a99695809cb6025bd8431a', class: {
|
|
11113
11134
|
"duet-empty-state": true,
|
|
11114
11135
|
[this.variation]: true,
|
|
11115
11136
|
[`padding-${this.padding}`]: true,
|
|
11116
11137
|
"duet-theme-turva": this.theme === "turva",
|
|
11117
11138
|
"duet-no-background": this.background === "none",
|
|
11118
|
-
} }, this.icon !== "none" && this.getIcon(), this.heading && (hAsync("div", { key: '
|
|
11139
|
+
} }, this.icon !== "none" && this.getIcon(), this.heading && (hAsync("div", { key: 'dc994018199345c865ee6d242349dadd99f71b36' }, hAsync("strong", { key: '4e758372f9785d9f54bfe969ddcb90a0ae1fee6d', class: "duet-empty-state-heading" }, this.heading), hAsync("duet-spacer", { key: '7eedd7853ef4ea89bb434dc55a488132fa8a30ef', size: "x-small" }))), hAsync("div", { key: '4d1817b68cd9e88627eb1725a06cd510ea10ed61' }, hAsync("slot", { key: '4db106ff0912e6896ca74071580223340fb3df14' })))));
|
|
11119
11140
|
}
|
|
11120
11141
|
get element() { return getElement(this); }
|
|
11121
11142
|
static get style() { return duetEmptyStateCss; }
|
|
@@ -11210,20 +11231,20 @@ class DuetFieldset {
|
|
|
11210
11231
|
* Always the last one in the class.
|
|
11211
11232
|
*/
|
|
11212
11233
|
render() {
|
|
11213
|
-
return (hAsync(Host, { key: '
|
|
11234
|
+
return (hAsync(Host, { key: 'ac0f503ac6d41953e774ad46b418c8ea39ff4708', class: { "duet-m-0": this.margin === "none" } }, hAsync("fieldset", { key: 'b564273ca16fac8fbb500ab8bfc9dff72e579770', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
|
|
11214
11235
|
// NVDA and VoiceOver do not yet support aria-errormessage
|
|
11215
11236
|
// once they do, we can remove errors from the aria-describedby
|
|
11216
11237
|
// aria-errormessage={this.error ? this.errorId : null}
|
|
11217
11238
|
class: {
|
|
11218
11239
|
"duet-fieldset": true,
|
|
11219
11240
|
"duet-theme-turva": this.theme === "turva",
|
|
11220
|
-
} }, hAsync("legend", { key: '
|
|
11241
|
+
} }, hAsync("legend", { key: '607df92d8f78aaad01e4c80e33c17da55a52e20f', id: this.labelId }, hAsync(this.labelHeadingLevel, { key: '33cee42411e380076885a046790cb8006088c5ed' }, this.label), this.caption && hAsync("span", { key: '52c809bbe842c11a84e7d1a5c3083bfe92472d36' }, this.caption)), hAsync("div", { key: 'aa297b27900d3a28a48bf8102b75e900896393ff', class: {
|
|
11221
11242
|
"duet-legend-wrapper": true,
|
|
11222
11243
|
"duet-legend-has-caption": !!this.caption,
|
|
11223
11244
|
"duet-legend-has-tooltip": this.hasTooltip,
|
|
11224
11245
|
"duet-legend-hidden": this.labelHidden,
|
|
11225
11246
|
"duet-legend-compact": this.compactLabel,
|
|
11226
|
-
} }, hAsync("div", { key: '
|
|
11247
|
+
} }, hAsync("div", { key: '3af22b271c143a074adee18554408291e3faa660', class: "duet-fieldset-label" }, hAsync("span", { key: '939a883743e233ba83e8ff3328b18842b0c4eae4', "aria-hidden": "true" }, this.label), hAsync("slot", { key: '822892f650b6c0f733cc58a1aee1654e21d1f1f6', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (hAsync("div", { key: 'bc40348b978fc775d1007cdf3949e95d4d3b54e0', class: "duet-fieldset-caption", "aria-hidden": "true" }, hAsync("duet-caption", { key: '3119b1a7963015c24d6324d5de47fc53cdfd748e', theme: this.theme, margin: "none" }, this.caption)))), hAsync("slot", { key: 'fa922540a117205680098064372a70aefc0953ae' }), hAsync("span", { key: 'ad8d4d59379d7a9f89e618754d46404eb5c3c664', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'c36abae3849393120d72e3781305cb2ce88b384c', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
|
|
11227
11248
|
}
|
|
11228
11249
|
get element() { return getElement(this); }
|
|
11229
11250
|
static get style() { return duetFieldsetCss; }
|
|
@@ -11422,16 +11443,16 @@ class DuetFooter {
|
|
|
11422
11443
|
render() {
|
|
11423
11444
|
const text = getLocaleString(i18n$1, this.language);
|
|
11424
11445
|
const copyrightLabel = this.theme === "turva" ? text.turva : text.lahi;
|
|
11425
|
-
return (hAsync("footer", { key: '
|
|
11446
|
+
return (hAsync("footer", { key: '41644e999245cd90d4c97839293f95bfa5d9d250', class: {
|
|
11426
11447
|
"duet-footer": true,
|
|
11427
11448
|
"duet-m-0": this.margin === "none",
|
|
11428
11449
|
"duet-theme-turva": this.theme === "turva",
|
|
11429
11450
|
"duet-footer-simple": this.variation === "simple",
|
|
11430
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
11451
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '5cc2520a6657b134143ef4b54e8bc25cb4ec6f3f', class: "duet-footer-wrapper" }, this.variation !== "simple" && (hAsync("div", { key: '6172bf0124114fa0d1447d4cde52541c06513707', class: {
|
|
11431
11452
|
"duet-footer-top": true,
|
|
11432
11453
|
"duet-has-info": this.hasInfoSlot,
|
|
11433
|
-
}, part: "top" }, hAsync("div", { key: '
|
|
11434
|
-
this.processedItems.map((item, index) => (hAsync(Fragment, null, index > 0 && hAsync("duet-spacer", { size: "x-large", direction: "horizontal" }), hAsync("duet-button", { ref: element => this.setDataAttributes(element, item), theme: this.theme, id: item.id, class: "duet-footer-link", variation: "plain", margin: "none", fixed: true, negative: true, url: item.href, external: item.external, icon: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), hAsync("slot", { key: '
|
|
11454
|
+
}, part: "top" }, hAsync("div", { key: '8d7fa0e35487812a06867478b0d8c717e8cbc295', class: "footer-top-logo" }, hAsync("duet-logo", { key: '88a405f43f8923aec01dfbe7637d8b693c24ee94', href: this.logoHref, onClick: this.handleLogoClick, size: "large", inverse: true, language: this.language, theme: this.theme })), hAsync("div", { key: '0945fb2a21d2621abd034763e50d30f047fa7734', class: "footer-top-right-container" }, hAsync("slot", { key: '73eb607d6eae88968f7066c951f5f8ddf326f55e', name: "info" }), hAsync("div", { key: '1c142d6053b4b3f9b0bae03289e9ad79849cade6', class: "footer-top-items" }, this.processedItems &&
|
|
11455
|
+
this.processedItems.map((item, index) => (hAsync(Fragment, null, index > 0 && hAsync("duet-spacer", { size: "x-large", direction: "horizontal" }), hAsync("duet-button", { ref: element => this.setDataAttributes(element, item), theme: this.theme, id: item.id, class: "duet-footer-link", variation: "plain", margin: "none", fixed: true, negative: true, url: item.href, external: item.external, icon: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), hAsync("slot", { key: '86fc7e14e4fb80b35c4e81659c9e3b35d6c965c7', name: "extra" }), hAsync("p", { key: 'f5ddbb6a4cbf19f70259d96ef786cd6b068f503f', class: "duet-footer-menu", part: "menu" }, hAsync("span", { key: '9e2390e03d199fc50f6fb67181734a4ba71a38b8', class: "duet-footer-copyright" }, `${copyrightLabel} ${new Date().getFullYear()}`), hAsync("span", { key: 'c7b6bc951c3d2dc81abfcc4eac43d6d9061e9421', class: "duet-footer-menu-links" }, this.processedMenu && (hAsync(Fragment, { key: '87ef405d79957865d7cfd81f07fb400b9aa2ab1a' }, this.processedMenu.map(item => (hAsync("a", { ref: element => this.setDataAttributes(element, item), href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleMenuClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label, item.external && (hAsync(Fragment, null, hAsync("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), hAsync("span", { class: "duet-footer-external" }, hAsync("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))), hAsync("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")))))))), hAsync("p", { key: '53c2ae3a42969730299aa948b8b6d42e9d765d32', class: "duet-footer-copyright duet-footer-copyright-mobile" }, `${copyrightLabel} ${new Date().getFullYear()}`))));
|
|
11435
11456
|
}
|
|
11436
11457
|
get element() { return getElement(this); }
|
|
11437
11458
|
static get watchers() { return {
|
|
@@ -11653,7 +11674,7 @@ class DuetGrid {
|
|
|
11653
11674
|
* Always the last one in the class.
|
|
11654
11675
|
*/
|
|
11655
11676
|
render() {
|
|
11656
|
-
return (hAsync(Host, { key: '
|
|
11677
|
+
return (hAsync(Host, { key: 'e64260236eda4217a2cb10444342c33d243da8cf', class: {
|
|
11657
11678
|
"duet-grid": true,
|
|
11658
11679
|
"duet-no-stacking": !this.responsive,
|
|
11659
11680
|
"duet-grid-align-top": this.alignment === "top", // flex-start
|
|
@@ -11682,7 +11703,7 @@ class DuetGrid {
|
|
|
11682
11703
|
[`duet-grid-template-${this.gridTemplate}`]: true,
|
|
11683
11704
|
"duet-grid-no-row-gap": this.gridTemplateGap.startsWith("none") && this.gridTemplate !== "button-grid",
|
|
11684
11705
|
"duet-grid-no-column-gap": this.gridTemplateGap.endsWith("none") && this.gridTemplate !== "button-grid",
|
|
11685
|
-
} }, hAsync("slot", { key: '
|
|
11706
|
+
} }, hAsync("slot", { key: '1cb11ce3685bf5043dfa3e36e6a0ff3653106b54' })));
|
|
11686
11707
|
}
|
|
11687
11708
|
get element() { return getElement(this); }
|
|
11688
11709
|
static get watchers() { return {
|
|
@@ -11712,7 +11733,7 @@ class DuetGrid {
|
|
|
11712
11733
|
}; }
|
|
11713
11734
|
}
|
|
11714
11735
|
|
|
11715
|
-
const duetGridItemCss = ":host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;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(8, 42, 77)}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):first-child){padding-left:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):first-of-type){padding-left:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):last-child){padding-right:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):last-of-type){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:first-child){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:first-of-type){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:last-child){padding-left:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:last-of-type){padding-left:0}@media (max-width: 35.9375em){:host(.duet-grid-item-responsive){width:100% !important;min-width:0 !important;max-width:100% !important;padding-right:0;padding-left:0}}@media screen and (max-width: 47.9375em){:host(.duet-grid-item-br-medium){width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 47.9375em){:host(.duet-grid-item-responsive.duet-grid-item-br-medium){padding-right:0;padding-left:0}}@media screen and (max-width: 64em){:host(.duet-grid-item-br-x-large){width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 64em){:host(.duet-grid-item-responsive.duet-grid-item-br-x-large){padding-right:0;padding-left:0}}:host(.duet-grid-item-fill){flex:1 1 auto;width:100%}:host(.duet-m-0){padding:0 !important;margin:0 !important}:host(.duet-theme-turva){font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}";
|
|
11736
|
+
const duetGridItemCss = ":host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;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(8, 42, 77)}:host(.duet-grid-direction-vertical){padding-right:0;padding-left:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):first-child){padding-left:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):first-of-type){padding-left:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):last-child){padding-right:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):last-of-type){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:first-child){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:first-of-type){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:last-child){padding-left:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:last-of-type){padding-left:0}@media (max-width: 35.9375em){:host(.duet-grid-item-responsive){width:100% !important;min-width:0 !important;max-width:100% !important;padding-right:0;padding-left:0}}@media screen and (max-width: 47.9375em){:host(.duet-grid-item-br-medium){width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 47.9375em){:host(.duet-grid-item-responsive.duet-grid-item-br-medium){padding-right:0;padding-left:0}}@media screen and (max-width: 64em){:host(.duet-grid-item-br-x-large){width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 64em){:host(.duet-grid-item-responsive.duet-grid-item-br-x-large){padding-right:0;padding-left:0}}:host(.duet-grid-item-fill){flex:1 1 auto;width:100%}:host(.duet-m-0){padding:0 !important;margin:0 !important}:host(.duet-theme-turva){font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}";
|
|
11716
11737
|
|
|
11717
11738
|
class DuetGridItem {
|
|
11718
11739
|
constructor(hostRef) {
|
|
@@ -11765,7 +11786,7 @@ class DuetGridItem {
|
|
|
11765
11786
|
* Always the last one in the class.
|
|
11766
11787
|
*/
|
|
11767
11788
|
render() {
|
|
11768
|
-
return (hAsync(Host, { key: '
|
|
11789
|
+
return (hAsync(Host, { key: '59b2546565c78716d981db97ba3a66b9f4b06104', style: {
|
|
11769
11790
|
"min-width": this.minWidth,
|
|
11770
11791
|
"max-width": this.maxWidth,
|
|
11771
11792
|
}, class: {
|
|
@@ -11782,7 +11803,7 @@ class DuetGridItem {
|
|
|
11782
11803
|
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
11783
11804
|
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
11784
11805
|
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
11785
|
-
} }, hAsync("slot", { key: '
|
|
11806
|
+
} }, hAsync("slot", { key: '78c0ca977366f49a62d91c19e42b7140455c0e7e' })));
|
|
11786
11807
|
}
|
|
11787
11808
|
get element() { return getElement(this); }
|
|
11788
11809
|
static get style() { return duetGridItemCss; }
|
|
@@ -12823,7 +12844,7 @@ class DuetHeading {
|
|
|
12823
12844
|
render() {
|
|
12824
12845
|
const TagName = sanitizeString$1(this.level);
|
|
12825
12846
|
const color = getColorByName(this.color);
|
|
12826
|
-
return (hAsync(TagName, { key: '
|
|
12847
|
+
return (hAsync(TagName, { key: 'c921aaf37180daaa075fa9973069ff1ead3050a1', class: {
|
|
12827
12848
|
"duet-heading": true,
|
|
12828
12849
|
"duet-heading-border": this.border !== false,
|
|
12829
12850
|
"duet-heading-border-solid": this.border === "solid",
|
|
@@ -12834,7 +12855,7 @@ class DuetHeading {
|
|
|
12834
12855
|
[this.visualLevel ? this.visualLevel : this.level]: true,
|
|
12835
12856
|
"duet-theme-turva": this.theme === "turva",
|
|
12836
12857
|
"fixed-size": this.fixedSize,
|
|
12837
|
-
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, this.preHeading && hAsync("span", { key: '
|
|
12858
|
+
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, this.preHeading && hAsync("span", { key: 'a39345b73db50edae14806161481c4f5ec2aea71', class: "pre-post-heading" }, this.preHeading, " "), hAsync("slot", { key: 'f36300eafdc9fea4a9b8fde902cd1872bb586b65' }), this.postHeading && hAsync("span", { key: 'e8f5b8d19838e6c3d8e049975dcc5740bfd00363', class: "pre-post-heading" }, " ", this.postHeading)));
|
|
12838
12859
|
}
|
|
12839
12860
|
get element() { return getElement(this); }
|
|
12840
12861
|
static get style() { return duetHeadingCss; }
|
|
@@ -13142,7 +13163,7 @@ class DuetHero {
|
|
|
13142
13163
|
outlineColor = "color-primary-turva";
|
|
13143
13164
|
}
|
|
13144
13165
|
}
|
|
13145
|
-
return (hAsync("div", { key: '
|
|
13166
|
+
return (hAsync("div", { key: 'c9ddbcc16c2911a20e497cd8aa384fa5c07d33aa', role: "region", class: {
|
|
13146
13167
|
"duet-hero": true,
|
|
13147
13168
|
"duet-theme-turva": this.theme === "turva",
|
|
13148
13169
|
"duet-has-category-icon": !!this.categoryIcon,
|
|
@@ -13160,17 +13181,17 @@ class DuetHero {
|
|
|
13160
13181
|
"duet-hero-text-center": this.variation !== "product" && ((this.textCenter && !this.leftAlign) || campaignOrSection),
|
|
13161
13182
|
"duet-hero-left-align": this.variation === "product" || (this.leftAlign && !campaignOrSection),
|
|
13162
13183
|
"duet-hero-narrow": this.layout === "narrow",
|
|
13163
|
-
}, part: "duet-hero" }, campaignOrSection && this.image && (hAsync("div", { key: '
|
|
13164
|
-
this.processedBack && (hAsync("div", { key: '
|
|
13184
|
+
}, part: "duet-hero" }, campaignOrSection && this.image && (hAsync("div", { key: 'a11039ca72275168553d2bba06cd909229dc1925', class: "background-area" }, hAsync("div", { key: 'a21ad76654ac39c2fa21795f1cca235dc92e6404', class: "background-container" }, hAsync("div", { key: '12d3583034b68b6fb747c749c0449146c40cb471', class: "background" }, hAsync("img", { key: '8961eadf230127f3783efad4c48be759c4657e2a', class: `${imageSizeIsCover ? "cover" : ""} ${imagePositionIsCenter ? "center" : ""}`, src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" })), hAsync("div", { key: 'bdfeab66795ec39e3f0383d9c2ef713733eb1a87', class: "brand-shape" })))), this.variation === "product" && this.image && (hAsync("div", { key: 'f08f6d3f621e7dac9a46f1942d87a6ec8cc8afa1', class: { "background-area": true, [this.layout]: true } }, hAsync("div", { key: 'dcb0f245be411d836d24d7adb5c98b82841d6038', class: { "background-container": true, [this.layout]: true } }, hAsync("div", { key: 'a5c5eccc8dcf20d10c7be435873c815eaf0713e2', class: { background: true, [this.layout]: true } }, hAsync("div", { key: '358763fb7ceea2e54bb6d5249a3b4281de220758', class: { "background-mask": true, [this.layout]: true } }), this.theme !== "turva" && hAsync("div", { key: 'a11b4ea782b4e6887ec4d6573188adeec90577b1', class: { "brand-shape": true, [this.layout]: true } }), hAsync("div", { key: '7afb89a0beb1d7675c33fcc831880c8126f1299a', class: { "brand-shaped-image": true, [this.layout]: true } }, hAsync("div", { key: 'd9f4649e3eb88d062cbde9eb311f195357f67d5d', class: { "brand-shaped-image-wrapper": true, [this.layout]: true } }, hAsync("div", Object.assign({ key: 'e75eeac505d3b021f0a7de2c195b9846b77c7c17', class: { "brand-shaped-image-bg": true, [this.layout]: true }, style: styles }, bgImgA11yAttrs)))), this.categoryIcon && (hAsync("div", { key: '3c7d8d8ef1ccb2a63c0cde7ce064adb3ac49ba9a', class: { "brand-shaped-icon": true, [this.layout]: true } }, hAsync("duet-icon", { key: '23ff81f55a6f02a5fee73f17ea54a96cee164b85', class: { [this.layout]: true }, background: "none", name: this.categoryIcon, margin: "none", size: "auto", responsive: false }))))))), this.variation === "content" && this.image && (hAsync("div", { key: 'd1d02c374a68c1b68fb2f9d848e5a7c357b5a220', class: "background-area" }, hAsync("div", { key: '9f53455c7fca9008387d26b0dfc89c104076c248', class: "background" }, hAsync("div", { key: '80d50fdf1c366ac730e88fff3d59f10f725f66bb', class: "background-mask" }), this.theme !== "turva" && hAsync("div", { key: 'b079b624311717908bb1e1c37a0c56ad560ed44e', class: "brand-shape" }), hAsync("div", { key: '247c5196610c63556bf2f66e2d8334d9cce8bdfa', class: "brand-shaped-image" }, hAsync("div", { key: 'a83da29f05f36125276f4e74096648b30a8e9898', class: "brand-shaped-image-wrapper" }, hAsync("div", Object.assign({ key: '150f6775a489981cbeaa8aa03f188f165d48aee0', class: "brand-shaped-image-bg", style: styles }, bgImgA11yAttrs))))))), hAsync("div", { key: '558787b0fd8e59329b907d7dda223526d14b632d', class: { "duet-hero-wrapper": true, [this.layout]: true } }, this.image && this.variation === "image" && (hAsync("div", { key: '12abfe5fb1240e186528ecbc2119c0797480e77f', class: "duet-hero-image-mask" }, hAsync("div", { key: '0592878e99fd51f01ce16c2bf2ac1ae44c4636a1', class: "duet-hero-image-wrapper" }, hAsync("div", Object.assign({ key: 'd7a6838d0f589bb56ea831375e8a6237fe3c4bf2', class: "duet-hero-image", style: styles }, bgImgA11yAttrs))))), (this.variation === "gray" || this.variation === "light" || this.variation === "minimal") &&
|
|
13185
|
+
this.processedBack && (hAsync("div", { key: 'dbef4d7459000d59a63deb5834086f5e607f8a0a', class: "duet-hero-back" }, hAsync("duet-button", { key: '19481b475ec5fa1a83ee3d94d6170e823d80e5ae', style: buttonStyles, variation: "plain", icon: "action-arrow-left-small", theme: this.theme, iconSize: "small", color: buttonColor, padding: "none", margin: "none", fixed: true, url: this.processedBack.href, identifier: this.processedBack.id, onClick: event => this.handleClick(event, {
|
|
13165
13186
|
label: this.processedBack.label,
|
|
13166
13187
|
href: this.processedBack.href,
|
|
13167
13188
|
id: this.processedBack.id,
|
|
13168
13189
|
analyticsId: this.processedBack.analyticsId,
|
|
13169
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (hAsync("duet-icon", { key: '
|
|
13190
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (hAsync("duet-icon", { key: 'f1afc26bae892d9ae01824cae17226859bcb2156', class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), hAsync("div", { key: '8ce3263c60dc312e31098663adadec75d34c9e0e', class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (hAsync("duet-paragraph", { key: 'a9faf36bb7d72156356b527ef585f4db2f07885f', margin: "none", class: "duet-hero-pre", size: this.variation === "content" ? "small" : "medium", "aria-hidden": "true" }, this.preHeading ? (this.preHeading) : (hAsync("span", null, hAsync("slot", { name: "pre-heading" }))))), hAsync("slot", { key: '10e35d0acadfbe28c7c3c9a5725190c00cc35214', name: "badge" }), (this.heading || this.hasHeadingSlot) && (hAsync("duet-heading", { key: 'd289ee15b7e8ae4e821195252e132ba6dfd4bb13', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.level, class: { "duet-hero-heading": true, "duet-hero-heading-has-pre": this.preHeading !== "" }, color: headingColor, visualLevel: headingVisualLevel, margin: campaignOrSection ? "none" : "auto", accessibleLabel: this.getAccessibleHeading() }, this.heading ? this.heading : hAsync("slot", { name: "heading" }))), campaignOrSection && this.hasSubHeadingSlot && (hAsync("duet-heading", { key: '66f747db21ef3d390d01c78ff7b05879a4d435c5', theme: this.theme, level: this.hasSubHeadingSlotNative ? "div" : this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, hAsync("slot", { key: 'a61351c8a3463e0d7b3881d4ed2eb430a4d708f8', name: "subheading" }))), this.description && (hAsync("duet-paragraph", { key: '5e17ebff3513457595a670b8b180ad4c900bb5ac', theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (hAsync("duet-list", { key: '7cb299e23a2062bdf5a7831891b9a3590ad51ad5', theme: this.theme, "label-width": "30", breakpoint: "large", mobile: this.leftAlign ? undefined : "center" }, this.processedListItems.map(item => (hAsync("duet-list-item", null, hAsync("span", { slot: "label" }, item.label), hAsync("span", { slot: "value" }, item.value)))))), this.buttonLabel && (hAsync("duet-button", { key: '132f4b0f22736d84217d2ef92fb137bb37ae1bfa', url: this.buttonUrl, icon: this.icon, iconRight: this.iconRight, iconSize: this.iconSize, variation: buttonVariation, theme: this.theme, identifier: this.buttonId, onClick: event => this.handleClick(event, this.buttonData), fixed: true }, this.buttonLabel)), hAsync("slot", { key: 'ba4d8449b00fe95aa8e9e2b4c0f43143e851c44f' })), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (hAsync("div", { key: 'da7c7c2652fe88ee7a097e696e56c301d8d813b9', class: "duet-hero-links" }, this.processedActions.map(item => (hAsync("a", { class: "duet-hero-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleClick(event, item) }, hAsync("div", { class: "duet-hero-action-icon" }, hAsync("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor", outline: outlineColor })), hAsync("span", null, item.label), item.external && hAsync("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), item.external && (hAsync("div", { class: "duet-hero-action-arrow" }, hAsync("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
13170
13191
|
this.variation !== "image" &&
|
|
13171
13192
|
!campaignOrSection &&
|
|
13172
13193
|
this.variation !== "product" &&
|
|
13173
|
-
this.variation !== "content" && hAsync("div", Object.assign({ key: '
|
|
13194
|
+
this.variation !== "content" && hAsync("div", Object.assign({ key: 'b02c3a2b4e9722c7fc64b62e708c2d69d668b5a7', class: "duet-hero-image", style: styles }, bgImgA11yAttrs)), hAsync("slot", { key: 'a8869163ed1e35a8987e126305221199705f4a88', name: "bottom" }))));
|
|
13174
13195
|
}
|
|
13175
13196
|
get element() { return getElement(this); }
|
|
13176
13197
|
static get watchers() { return {
|
|
@@ -13338,11 +13359,11 @@ class DuetIcon {
|
|
|
13338
13359
|
: {};
|
|
13339
13360
|
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
13340
13361
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
13341
|
-
return (hAsync(Host, { key: '
|
|
13362
|
+
return (hAsync(Host, { key: 'f6a74ccabd59055d22eec3654bde9c81fd4a9ce3', class: {
|
|
13342
13363
|
"duet-m-0": this.margin === "none",
|
|
13343
13364
|
"duet-icon-has-outline": !!this.outline,
|
|
13344
13365
|
"duet-icon-has-background": !!this.background,
|
|
13345
|
-
} }, hAsync("span", { key: '
|
|
13366
|
+
} }, hAsync("span", { key: 'f2ea10e9ec8459d5a5995781e193c6d8df7fb1ef', "aria-hidden": "true", style: styles, class: {
|
|
13346
13367
|
"duet-icon": true,
|
|
13347
13368
|
"duet-theme-turva": this.theme === "turva",
|
|
13348
13369
|
"duet-theme-default": this.theme === "default",
|
|
@@ -13351,7 +13372,7 @@ class DuetIcon {
|
|
|
13351
13372
|
[shapeStyle]: true,
|
|
13352
13373
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
13353
13374
|
"duet-icon-not-responsive": !this.responsive,
|
|
13354
|
-
} }, hAsync("span", { key: '
|
|
13375
|
+
} }, hAsync("span", { key: '3d93b31d1831fa77b71a5f574a38d838636c7757', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
|
|
13355
13376
|
}
|
|
13356
13377
|
get element() { return getElement(this); }
|
|
13357
13378
|
static get watchers() { return {
|
|
@@ -13429,11 +13450,11 @@ class DuetIndicator {
|
|
|
13429
13450
|
inheritGlobalTheme(this);
|
|
13430
13451
|
}
|
|
13431
13452
|
render() {
|
|
13432
|
-
return (hAsync(Host, { key: '
|
|
13453
|
+
return (hAsync(Host, { key: '6c412435545134515ed6bb4eb8f5e1ec8701dce7' }, hAsync("span", { key: 'f7c0f6b5019c3d9abcd01b8da701ad123910b5b3', class: {
|
|
13433
13454
|
"duet-indicator": true,
|
|
13434
13455
|
[`duet-indicator-${this.variation}`]: true,
|
|
13435
13456
|
"duet-theme-turva": this.theme === "turva",
|
|
13436
|
-
} }), hAsync("duet-visually-hidden", { key: '
|
|
13457
|
+
} }), hAsync("duet-visually-hidden", { key: 'c4ceeb86a4ab008a251f1ce9f4f6271c3fab73ef' }, this.getAccessibleLabel())));
|
|
13437
13458
|
}
|
|
13438
13459
|
get element() { return getElement(this); }
|
|
13439
13460
|
static get style() { return duetIndicatorCss; }
|
|
@@ -13513,7 +13534,7 @@ function cleanValue(input, regex) {
|
|
|
13513
13534
|
return newValue;
|
|
13514
13535
|
}
|
|
13515
13536
|
|
|
13516
|
-
const duetInputCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host(.form-distribute:last-of-type:not(:last-child)){margin-right:16px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;vertical-align:bottom;text-align:left}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}input[type=time]::-webkit-datetime-edit-fields-wrapper{padding:0}input[type=time]::-webkit-calendar-picker-indicator{display:none}duet-tooltip,::slotted(duet-tooltip){position:relative;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){right:auto}}duet-caption:not(:last-of-type){margin-bottom:0}.duet-input-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-input-icon{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;font-size:0;line-height:normal;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-input-container{position:relative;width:100%;height:100%}.duet-input-container.has-clear .duet-input-clear-icon{position:relative;z-index:250}.duet-input-container.has-clear .duet-input-clear-icon button{position:absolute;top:-24px;right:-24px;min-width:48px;min-height:48px;color:rgb(0, 75, 129)}.duet-input-container.has-clear .duet-input-clear-icon button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-input-container.has-clear .duet-input-clear-icon button:focus,.duet-input-container.has-clear .duet-input-clear-icon button:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-input-container.has-clear .duet-input-clear-icon button:active{opacity:0.75;transition:none}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-xx-small button{top:-12px}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-x-small button{top:-16px}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-small button{top:-20px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single button{top:-48px;right:0}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-xx-small button{top:-36px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-x-small button{top:-40px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-small button{top:-44px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double button{top:-24px;right:12px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-xx-small button{top:-12px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-x-small button{top:-16px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-small button{top:-20px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-button button{top:-24px;right:0}.duet-input-container.has-clear.has-icon .duet-input-clear-icon{top:-24px;right:24px}.duet-input-label-container{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}@media (min-width: 48em){.duet-input-label-container{justify-content:flex-start}}.duet-input{position:relative;z-index:100;display:block !important;width:100% !important;min-width:8rem;max-width:initial !important;height:auto !important;padding:12px 14px !important;margin:initial !important;margin-bottom:initial !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400 !important;font-variant-numeric:tabular-nums;line-height:1.5 !important;color:rgb(8, 42, 77) !important;cursor:initial !important;outline-color:initial !important;background:rgb(255, 255, 255) !important;background-clip:initial !important;border:1px solid rgb(127, 150, 165) !important;border-radius:4px !important;transition:border 150ms ease !important}.duet-input.input-padding-small{padding:8px 10px !important}.duet-input.input-padding-x-small{padding:4px 6px !important}.duet-input.input-padding-xx-small{padding:0px 2px !important}.duet-input.is-number{padding-right:112px !important}.duet-input.is-date{padding-right:64px !important}.duet-input.after-chip{padding-left:8px !important}.has-error .duet-input{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.has-icon .duet-input{padding-right:48px !important}.duet-input.align-right{text-align:right}.duet-input::-ms-clear{display:none}.duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input::placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-input:focus::placeholder{color:rgb(181, 198, 208)}.duet-input[disabled]{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 236, 239) !important;border-color:rgb(181, 198, 208) !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-input:hover:not(:disabled):not(:focus){outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input:hover:not(:disabled):not(:focus),.duet-input:hover:not(:disabled):not(:focus).duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.has-error .duet-input:hover:not(:disabled):not(:focus){outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-input:focus{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-input:focus,.duet-input:focus.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.has-error .duet-input:focus{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.duet-input:focus+.duet-input-icon{color:rgb(0, 119, 179)}.duet-input[type=search]:not(:placeholder-shown):focus+.duet-input-icon{display:none}.duet-input:not(:focus):not(:hover):invalid{outline:none !important}.duet-input[type=number]::-webkit-inner-spin-button,.duet-input[type=number]::-webkit-outer-spin-button,.duet-input[type=time]::-webkit-inner-spin-button,.duet-input[type=time]::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help{display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-input-help span{display:block;margin-top:8px}.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-label-hidden label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-input-relative{position:relative;width:100%}.duet-input-variation-button,.duet-input-variation-button-left{position:relative;width:100%}.duet-input-variation-button .duet-input-relative,.duet-input-variation-button-left .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto}.duet-input-variation-button .duet-input-relative duet-button,.duet-input-variation-button-left .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-button-left .duet-input-relative{border-radius:4px}.duet-input-variation-button .duet-input-relative .duet-input{border-right-width:0 !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.duet-input-variation-button-left .duet-input-relative .duet-input{border-left-width:0 !important;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.duet-input-variation-revealable{position:relative;width:100%}.duet-input-variation-revealable ::-ms-reveal{display:none}.duet-input-variation-revealable .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;outline:initial;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 150ms ease}.duet-input-variation-revealable .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-revealable .duet-input-relative .duet-input{border-width:0 !important}.duet-input-variation-revealable .duet-input-relative .duet-input:focus,.duet-input-variation-revealable .duet-input-relative .duet-input:hover{outline:none !important;border-width:0 !important}.duet-input-variation-revealable.disabled .duet-input-relative{outline:none;background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.duet-input-variation-revealable.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(62, 84, 102);border-color:rgb(0, 119, 179)}.duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative{outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative,.duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-input-container.has-chips.has-focus .duet-input-relative,.duet-input-container.has-chips.has-focus .duet-input-relative.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative{outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-input-container.has-chips.has-error .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-input-container.has-chips.has-error.has-focus .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.duet-input-container.has-chips.has-error:hover:not(:disabled):not(.has-focus) .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-input-container.has-chips .duet-input-relative{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;padding-right:2px;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 150ms ease}.duet-input-container.has-chips .duet-input-relative .duet-input{flex-grow:1;flex-basis:4rem;padding-left:0 !important;margin-left:12px !important;border-width:0 !important}.duet-input-container.has-chips .duet-input-relative .duet-input:focus,.duet-input-container.has-chips .duet-input-relative .duet-input:hover{outline:none !important;border-width:0 !important}.duet-theme-turva .duet-input-icon{color:rgb(23, 42, 59)}.duet-theme-turva.duet-input-container.has-clear .duet-input-clear-icon button{color:rgb(8, 42, 77)}.duet-theme-turva.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva:not(.has-error) .duet-input{border-color:rgb(120, 145, 164) !important}.duet-theme-turva .duet-input{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, 42, 59) !important}.duet-theme-turva .duet-input[disabled]{color:rgb(95, 122, 143) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 233, 237) !important;border-color:rgb(178, 194, 205) !important;opacity:1 !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-input::placeholder{color:rgb(120, 145, 164)}.duet-theme-turva .duet-input:focus::placeholder{color:rgb(178, 194, 205)}.duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-variation-button-left.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-variation-revealable.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-help{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(120, 145, 164)}.duet-theme-turva.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-theme-turva .duet-input-variation-revealable .duet-input-relative{border-color:rgb(120, 145, 164)}.duet-theme-turva.duet-input-variation-revealable.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-theme-turva.duet-input-variation-revealable.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(53, 79, 101);border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-offset:2px;outline-color:rgb(53, 79, 101)}.duet-theme-turva .duet-input-container.has-chips .duet-input-relative{border-color:rgb(120, 145, 164)}";
|
|
13537
|
+
const duetInputCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host(.form-distribute:last-of-type:not(:last-child)){margin-right:16px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;vertical-align:bottom;text-align:left}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}input[type=time]::-webkit-datetime-edit-fields-wrapper{padding:0}input[type=time]::-webkit-calendar-picker-indicator{display:none}duet-tooltip,::slotted(duet-tooltip){position:relative;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){right:auto}}duet-caption:not(:last-of-type){margin-bottom:0}.duet-input-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-input-icon{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;font-size:0;line-height:normal;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-input-container{position:relative;width:100%;height:100%}.duet-input-container.has-clear .duet-input-clear-icon{position:relative;z-index:250}.duet-input-container.has-clear .duet-input-clear-icon button{position:absolute;top:-24px;right:-24px;min-width:48px;min-height:48px;color:rgb(0, 75, 129)}.duet-input-container.has-clear .duet-input-clear-icon button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-input-container.has-clear .duet-input-clear-icon button:focus,.duet-input-container.has-clear .duet-input-clear-icon button:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-input-container.has-clear .duet-input-clear-icon button:active{opacity:0.75;transition:none}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-xx-small button{top:-12px}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-x-small button{top:-16px}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-small button{top:-20px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single button{top:-48px;right:0}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-xx-small button{top:-36px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-x-small button{top:-40px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-small button{top:-44px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double button{top:-24px;right:12px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-xx-small button{top:-12px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-x-small button{top:-16px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-small button{top:-20px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-button button{top:-24px;right:0}.duet-input-container.has-clear.has-icon .duet-input-clear-icon{top:-24px;right:24px}.duet-input-label-container{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}@media (min-width: 48em){.duet-input-label-container{justify-content:flex-start}}.duet-input{position:relative;z-index:100;display:block !important;width:100% !important;min-width:8rem;max-width:initial !important;height:auto !important;padding:12px 14px !important;margin:initial !important;margin-bottom:initial !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400 !important;font-variant-numeric:tabular-nums;line-height:1.5 !important;color:rgb(8, 42, 77) !important;cursor:initial !important;outline-color:initial !important;background:rgb(255, 255, 255) !important;background-clip:initial !important;border:1px solid rgb(127, 150, 165) !important;border-radius:4px !important;transition:border 150ms ease !important}.duet-input.input-padding-small{padding:8px 10px !important}.duet-input.input-padding-x-small{padding:4px 6px !important}.duet-input.input-padding-xx-small{padding:0px 2px !important}.duet-input.is-number{padding-right:112px !important}.duet-input.is-date{padding-right:64px !important}.duet-input.after-chip{padding-left:8px !important}.has-error .duet-input{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.has-icon .duet-input{padding-right:48px !important}.duet-input.align-right{text-align:right}.duet-input::-ms-clear{display:none}.duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input::placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-input:focus::placeholder{color:rgb(181, 198, 208)}.duet-input[disabled]{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 236, 239) !important;border-color:rgb(181, 198, 208) !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-input:hover:not(:disabled):not(:focus){outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input:hover:not(:disabled):not(:focus),.duet-input:hover:not(:disabled):not(:focus).duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.has-error .duet-input:hover:not(:disabled):not(:focus){outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-input:focus{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-input:focus,.duet-input:focus.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.has-error .duet-input:focus{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.duet-input:focus+.duet-input-icon{color:rgb(0, 119, 179)}.duet-input[type=search]:not(:placeholder-shown):focus+.duet-input-icon{display:none}.duet-input:not(:focus):not(:hover):invalid{outline:none !important}.duet-input[type=number]::-webkit-inner-spin-button,.duet-input[type=number]::-webkit-outer-spin-button,.duet-input[type=time]::-webkit-inner-spin-button,.duet-input[type=time]::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help{display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-input-help span{display:block;margin-top:8px}.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-label-hidden label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-input-relative{position:relative;width:100%}.duet-input-variation-button,.duet-input-variation-button-left{position:relative;width:100%}.duet-input-variation-button .duet-input-relative,.duet-input-variation-button-left .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto}.duet-input-variation-button .duet-input-relative duet-button,.duet-input-variation-button-left .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-button-left .duet-input-relative{border-radius:4px}.duet-input-variation-button .duet-input-relative .duet-input{border-right-width:0 !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.duet-input-variation-button-left .duet-input-relative .duet-input{border-left-width:0 !important;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.duet-input-variation-revealable{position:relative;width:100%}.duet-input-variation-revealable ::-ms-reveal{display:none}.duet-input-variation-revealable .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;outline:initial;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 150ms ease}.duet-input-variation-revealable .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-revealable .duet-input-relative .duet-input{border-width:0 !important}.duet-input-variation-revealable .duet-input-relative .duet-input:focus,.duet-input-variation-revealable .duet-input-relative .duet-input:hover{outline:none !important;border-width:0 !important}.duet-input-variation-revealable.disabled .duet-input-relative{outline:none;background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.duet-input-variation-revealable.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(62, 84, 102);border-color:rgb(0, 119, 179)}.duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative{outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative,.duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-input-container.has-adornment.has-focus .duet-input-relative,.duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-input-container.has-adornment.has-focus .duet-input-relative,.duet-input-container.has-adornment.has-focus .duet-input-relative.duet-theme-turva,.duet-theme-turva .duet-input-container.has-chips.has-focus .duet-input-relative,.duet-input-container.has-chips.has-focus .duet-input-relative.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative{outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative.duet-theme-turva,.duet-theme-turva .duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-input-container.has-adornment.has-error .duet-input-relative,.duet-input-container.has-chips.has-error .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-input-container.has-adornment.has-error.has-focus .duet-input-relative,.duet-input-container.has-chips.has-error.has-focus .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.duet-input-container.has-adornment.has-error:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips.has-error:hover:not(:disabled):not(.has-focus) .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-input-container.has-adornment .duet-input-relative,.duet-input-container.has-chips .duet-input-relative{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;padding-right:2px;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 150ms ease}.duet-input-container.has-adornment .duet-input-relative .duet-input,.duet-input-container.has-chips .duet-input-relative .duet-input{flex-grow:1;flex-basis:4rem;padding-left:0 !important;margin-left:12px !important;border-width:0 !important}.duet-input-container.has-adornment .duet-input-relative .duet-input:focus,.duet-input-container.has-adornment .duet-input-relative .duet-input:hover,.duet-input-container.has-chips .duet-input-relative .duet-input:focus,.duet-input-container.has-chips .duet-input-relative .duet-input:hover{outline:none !important;border-width:0 !important}.duet-input-container.has-adornment .duet-input-relative .duet-input{padding:12px 14px !important;margin:initial !important}.duet-input-container.has-adornment .duet-input-relative .input-adornment{color:rgb(98, 121, 138)}.duet-input-container.has-adornment .duet-input-relative .input-adornment.prefix{padding-left:14px}.duet-input-container.has-adornment .duet-input-relative .input-adornment.suffix{padding-right:14px}.duet-input-container.has-prefix .duet-input-relative .duet-input{padding-left:8px !important}.duet-input-container.has-suffix .duet-input-relative .duet-input{padding-right:8px !important}.duet-theme-turva .duet-input-icon{color:rgb(23, 42, 59)}.duet-theme-turva.duet-input-container.has-clear .duet-input-clear-icon button{color:rgb(8, 42, 77)}.duet-theme-turva.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva:not(.has-error) .duet-input{border-color:rgb(120, 145, 164) !important}.duet-theme-turva .duet-input{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, 42, 59) !important}.duet-theme-turva .duet-input[disabled]{color:rgb(95, 122, 143) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 233, 237) !important;border-color:rgb(178, 194, 205) !important;opacity:1 !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-input::placeholder{color:rgb(120, 145, 164)}.duet-theme-turva .duet-input:focus::placeholder{color:rgb(178, 194, 205)}.duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-variation-button-left.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-variation-revealable.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-help{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(120, 145, 164)}.duet-theme-turva.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-theme-turva .duet-input-variation-revealable .duet-input-relative{border-color:rgb(120, 145, 164)}.duet-theme-turva.duet-input-variation-revealable.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-theme-turva.duet-input-variation-revealable.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(53, 79, 101);border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-offset:2px;outline-color:rgb(53, 79, 101)}.duet-theme-turva .duet-input-container.has-chips .duet-input-relative{border-color:rgb(120, 145, 164)}";
|
|
13517
13538
|
|
|
13518
13539
|
const icons = {
|
|
13519
13540
|
search: searchIcon,
|
|
@@ -13537,6 +13558,8 @@ class DuetInput {
|
|
|
13537
13558
|
this.proxyId = createID("DuetInput");
|
|
13538
13559
|
this.clearId = createID("DuetInputClear");
|
|
13539
13560
|
this.labelId = createID("DuetLabel");
|
|
13561
|
+
this.prefixId = createID("DuetInputPrefix");
|
|
13562
|
+
this.suffixId = createID("DuetInputSuffix");
|
|
13540
13563
|
this.topCaptionId = createID("DuetCaptionTop");
|
|
13541
13564
|
this.topCaptionPlaceholderId = createID("DuetCaptionPlaceholderTop");
|
|
13542
13565
|
this.chipCountId = createID("DuetInputChipCount");
|
|
@@ -13683,7 +13706,7 @@ class DuetInput {
|
|
|
13683
13706
|
*/
|
|
13684
13707
|
this.labelHidden = false;
|
|
13685
13708
|
/**
|
|
13686
|
-
* Enable numeric keyboard for the input.
|
|
13709
|
+
* Enable numeric keyboard for the input. Note that on iOS the numeric keyboard does not contain minus.
|
|
13687
13710
|
*/
|
|
13688
13711
|
this.numericKeyboard = false;
|
|
13689
13712
|
/**
|
|
@@ -13692,7 +13715,9 @@ class DuetInput {
|
|
|
13692
13715
|
*/
|
|
13693
13716
|
this.component = "input";
|
|
13694
13717
|
/**
|
|
13695
|
-
*
|
|
13718
|
+
* Set the type of automatic completion by the browser. If possible use the standard tokens like "name", "given-name",
|
|
13719
|
+
* "family-name", "postal-code", "street-address" etc. The component adds automatically "tel" and "email". If you must
|
|
13720
|
+
* disable autocomplete use "off" (but avoid disabling unless absolutely necessary).
|
|
13696
13721
|
*/
|
|
13697
13722
|
this.autoComplete = "on";
|
|
13698
13723
|
/**
|
|
@@ -13765,6 +13790,8 @@ class DuetInput {
|
|
|
13765
13790
|
/**
|
|
13766
13791
|
* Private functions
|
|
13767
13792
|
*/
|
|
13793
|
+
// As comma may be used as decimal separator normalize value to have dot before parsing as number
|
|
13794
|
+
this.valueAsNormalizedFloat = () => { var _a; return Number.parseFloat((_a = this.value) === null || _a === void 0 ? void 0 : _a.replace(/,/g, ".")); };
|
|
13768
13795
|
this.getAriaDescribedBy = () => {
|
|
13769
13796
|
const describedBy = [];
|
|
13770
13797
|
if (this.isCaptionVisible && this.topCaptionId) {
|
|
@@ -13785,6 +13812,19 @@ class DuetInput {
|
|
|
13785
13812
|
}
|
|
13786
13813
|
return describedBy.length > 0 ? describedBy.join(" ") : null;
|
|
13787
13814
|
};
|
|
13815
|
+
this.getAriaLabelledBy = () => {
|
|
13816
|
+
const labelledBy = [this.labelId];
|
|
13817
|
+
if (!!this.fieldPrefix) {
|
|
13818
|
+
labelledBy.push(this.prefixId);
|
|
13819
|
+
}
|
|
13820
|
+
if (!!this.fieldSuffix) {
|
|
13821
|
+
labelledBy.push(this.suffixId);
|
|
13822
|
+
}
|
|
13823
|
+
if (!!this.accessibleLabelledBy) {
|
|
13824
|
+
labelledBy.push(this.accessibleLabelledBy);
|
|
13825
|
+
}
|
|
13826
|
+
return labelledBy.join(" ");
|
|
13827
|
+
};
|
|
13788
13828
|
this.handleClearClick = (event) => {
|
|
13789
13829
|
const clearing = this.clearInput();
|
|
13790
13830
|
this.onClear(event);
|
|
@@ -13875,7 +13915,31 @@ class DuetInput {
|
|
|
13875
13915
|
* This is a proxy for the enclosed native inputs validity
|
|
13876
13916
|
*/
|
|
13877
13917
|
get validity() {
|
|
13878
|
-
|
|
13918
|
+
var _a, _b;
|
|
13919
|
+
// Copy the value of the native validity state to a proxy object, as native validity is readonly.
|
|
13920
|
+
const validity = {
|
|
13921
|
+
badInput: false,
|
|
13922
|
+
customError: false,
|
|
13923
|
+
patternMismatch: false,
|
|
13924
|
+
rangeOverflow: false,
|
|
13925
|
+
rangeUnderflow: false,
|
|
13926
|
+
stepMismatch: false,
|
|
13927
|
+
tooLong: false,
|
|
13928
|
+
tooShort: false,
|
|
13929
|
+
typeMismatch: false,
|
|
13930
|
+
valid: true,
|
|
13931
|
+
valueMissing: false,
|
|
13932
|
+
};
|
|
13933
|
+
Object.keys(validity).forEach(key => (validity[key] = this.nativeInput.validity[key]));
|
|
13934
|
+
if (typeof this.max !== "undefined" && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) && this.max < this.valueAsNormalizedFloat()) {
|
|
13935
|
+
validity.rangeOverflow = true;
|
|
13936
|
+
validity.valid = false;
|
|
13937
|
+
}
|
|
13938
|
+
if (typeof this.min !== "undefined" && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) && this.min > this.valueAsNormalizedFloat()) {
|
|
13939
|
+
validity.rangeUnderflow = true;
|
|
13940
|
+
validity.valid = false;
|
|
13941
|
+
}
|
|
13942
|
+
return validity;
|
|
13879
13943
|
}
|
|
13880
13944
|
/**
|
|
13881
13945
|
* @internal
|
|
@@ -13890,7 +13954,8 @@ class DuetInput {
|
|
|
13890
13954
|
inheritGlobalTheme(this);
|
|
13891
13955
|
this.disallowedPatternChange();
|
|
13892
13956
|
this.isCaptionVisible = !!this.caption;
|
|
13893
|
-
|
|
13957
|
+
// Accept also slot element so that other components using duet-input can pass their tooltip slots here.
|
|
13958
|
+
checkNamedSlotElement(this.element, "tooltip", "duet-tooltip, slot", 1, true);
|
|
13894
13959
|
}
|
|
13895
13960
|
componentDidLoad() {
|
|
13896
13961
|
if (this.variation === "revealable" && this.nativeInput.form) {
|
|
@@ -13997,6 +14062,16 @@ class DuetInput {
|
|
|
13997
14062
|
}
|
|
13998
14063
|
}
|
|
13999
14064
|
}
|
|
14065
|
+
getAutocomplete() {
|
|
14066
|
+
if (this.type === "password") {
|
|
14067
|
+
return "off";
|
|
14068
|
+
}
|
|
14069
|
+
// If attribute includes "email", e.g. "work email", don't overwrite it
|
|
14070
|
+
if (this.type === "email" && this.autoComplete !== "off" && !this.autoComplete.includes("email")) {
|
|
14071
|
+
return "email";
|
|
14072
|
+
}
|
|
14073
|
+
return this.autoComplete;
|
|
14074
|
+
}
|
|
14000
14075
|
/**
|
|
14001
14076
|
* Add a chip to the input. Property "chips" must be true.
|
|
14002
14077
|
*/
|
|
@@ -14036,7 +14111,7 @@ class DuetInput {
|
|
|
14036
14111
|
const identifier = this.identifier || this.inputId;
|
|
14037
14112
|
const inputProps = {};
|
|
14038
14113
|
if (this.numericKeyboard) {
|
|
14039
|
-
inputProps.inputmode = "
|
|
14114
|
+
inputProps.inputmode = "decimal";
|
|
14040
14115
|
}
|
|
14041
14116
|
// Set validation regexes
|
|
14042
14117
|
if (this.pattern && this.type !== "tel") {
|
|
@@ -14061,7 +14136,7 @@ class DuetInput {
|
|
|
14061
14136
|
this.type !== "password" &&
|
|
14062
14137
|
this.type !== "time" &&
|
|
14063
14138
|
this.variation !== "button";
|
|
14064
|
-
return (hAsync(Host, { key: '
|
|
14139
|
+
return (hAsync(Host, { key: '776ea6ee90a20ff356574b64890a7b98d9947e6c', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" }, onKeyUp: e => this.keyHandler(e) }, this.type === "time" && (hAsync("duet-visually-hidden", { key: 'a56addb34f4bcf57a59e060921e3dacab36a98b7', "aria-live": "polite", "aria-atomic": "true" }, selectedTime ? `${this.timeAnnouncement[this.language]} ${selectedTime.toLocaleTimeString()}` : "")), hAsync("div", { key: '04447fa85e1470adbfc2307f7b2fd5758454e0b7', class: {
|
|
14065
14140
|
"duet-input-container": true,
|
|
14066
14141
|
"duet-theme-turva": this.theme === "turva",
|
|
14067
14142
|
[`duet-input-variation-${this.variation}`]: true,
|
|
@@ -14074,12 +14149,15 @@ class DuetInput {
|
|
|
14074
14149
|
"has-chips": this.chips,
|
|
14075
14150
|
"has-clear": this.clear,
|
|
14076
14151
|
"has-focus": this.isFocused,
|
|
14152
|
+
"has-adornment": !!this.fieldPrefix || !!this.fieldSuffix,
|
|
14153
|
+
"has-prefix": !!this.fieldPrefix,
|
|
14154
|
+
"has-suffix": !!this.fieldSuffix,
|
|
14077
14155
|
disabled: this.disabled,
|
|
14078
|
-
} }, hAsync("div", { key: '
|
|
14156
|
+
} }, hAsync("div", { key: 'f5f3de4654fac36f5ffb7e0302ffccb56263728a', class: "duet-input-label-container" }, hAsync(DuetInternalLabel, { key: '566d4df4f7cfe09b50f4aedaf342cef70e7fc80a', theme: this.theme === "turva" ? "turva" : "default", margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: '7560dd36ade42746228061727b2fb2b38dce7ed6', class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: '9b8a15f4f79269696a24c9fd989186f95dfc1e62', name: "tooltip" })), this.caption && (hAsync("duet-caption", { key: 'c425ac21ec5942adfe5a4e48ae20080ab661bf4d', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: 'ac98b112529396687ec21a938c55ce1b3d86f091', class: {
|
|
14079
14157
|
"duet-input-relative": true,
|
|
14080
14158
|
"duet-theme-turva": this.theme === "turva",
|
|
14081
14159
|
"has-error": !!this.error,
|
|
14082
|
-
} }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (hAsync("duet-caption", { key: '
|
|
14160
|
+
} }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (hAsync("duet-caption", { key: 'db332864c2b97112aa2b9347da3d6c2468f77b0b', id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), this.chips && (hAsync("duet-visually-hidden", { key: 'e92de63c87071f00143ee9db06c94361970b704a', id: this.chipCountId }, ", ", `${this.getAllChips().length} ${getLocaleString(this.chipsSelectedDesriptionLabel)}`, ",")), this.variation === "button-left" && hAsync("slot", { key: '274e2fe6a604c30aa879ac72a33154f1fb3c8fc9', name: "button-left" }), this.fieldPrefix && (hAsync("span", { key: '2bd5154e89d13c7562283684a3087c3c48481fb9', class: "input-adornment prefix", id: this.prefixId }, this.fieldPrefix)), hAsync("input", Object.assign({ key: '0b77d2e90b3acdb1452d73ad2a736e924200009a', ref: input => (this.nativeInput = input), onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, type: this.getInputType(), class: {
|
|
14083
14161
|
"duet-input": true,
|
|
14084
14162
|
disabled: this.disabled,
|
|
14085
14163
|
"is-number": this.component === "number",
|
|
@@ -14087,17 +14165,17 @@ class DuetInput {
|
|
|
14087
14165
|
"after-chip": this.getAllChips().length > 0,
|
|
14088
14166
|
"align-right": this.inputAlign === "right",
|
|
14089
14167
|
[`input-padding-${this.inputPadding}`]: true,
|
|
14090
|
-
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.
|
|
14168
|
+
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.getAriaLabelledBy(), "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.getAutocomplete(), required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), this.fieldSuffix && (hAsync("span", { key: '00f86f44a74b91127a1c11b696b51983d62a7c28', class: "input-adornment suffix", id: this.suffixId }, this.fieldSuffix)), !this.value && hasInputIcon && (hAsync("div", { key: 'f1d531cc26ab9de06b90e38a4b790069fe920d88', class: "duet-input-icon" }, hAsync("duet-icon", { key: 'fb14ea462e583a24e6bbd0337666dfa4ef9c9a1a', margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && (hAsync("div", { key: 'f2e415cb5d8c5eaa0bbb1bb0cad942d8a976e9a5', class: {
|
|
14091
14169
|
"duet-input-clear-icon": true,
|
|
14092
14170
|
"duet-input-clear-icon-single": !hasInputIcon,
|
|
14093
14171
|
"duet-input-clear-icon-double": !!this.icon,
|
|
14094
14172
|
"duet-input-clear-icon-button": this.variation === "button",
|
|
14095
14173
|
[`input-padding-${this.inputPadding}`]: true,
|
|
14096
|
-
} }, hAsync("button", { key: '
|
|
14174
|
+
} }, hAsync("button", { key: '7046a5f2c94bf429f4fc46dd4a9d590171975f04', onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel[this.language], "aria-keyshortcuts": "Escape" }, hAsync("duet-icon", { key: 'd33b0603197b14c98b4b8d76773f0c2325d365a9', margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (hAsync("div", { key: 'f5b6861e2cd8f9affe011fc08700092296ef50c8', class: "duet-input-icon" }, hAsync("duet-icon", { key: 'af0f1a819e505da950eec079950eb2a6c13c5254', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && hAsync("slot", { key: 'db2a27e9e1683615a207b34f63a2981e0bbfe3e8', name: "button" }), this.variation === "revealable" && (hAsync("duet-button", { key: 'f2c727cd4f07ea799ad033e737f490d14a285ded', ref: button => (this.togglePasswordRevealedButton = button), onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.togglePasswordRevealed, icon: this.isPasswordRevealed ? "action-hide" : "action-show", accessibleLabel: this.isPasswordRevealed
|
|
14097
14175
|
? this.hidePasswordLabel[this.language]
|
|
14098
|
-
: this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (hAsync("duet-visually-hidden", { key: '
|
|
14176
|
+
: this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (hAsync("duet-visually-hidden", { key: 'd240447d7431097c99bd50fa6241a48d87b48ae0' }, hAsync("span", { key: '47d29c787f119d0dae23436a69b192855b7bca63', "aria-live": "polite" }, this.isPasswordRevealed
|
|
14099
14177
|
? this.passwordShownAriaAnnouncement[this.language]
|
|
14100
|
-
: this.passwordHiddenAriaAnnouncement[this.language]))), hAsync("slot", { key: '
|
|
14178
|
+
: this.passwordHiddenAriaAnnouncement[this.language]))), hAsync("slot", { key: 'cd872ef0355479149e3b926e98e33ebccc1d0faa' })), hAsync("span", { key: 'bbbbc5e7b7b1ddd8064bdda229ad110686075dd2', class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '91876b01063f2de6147210b06daad0e5a3c71b3c', class: "duet-input-error" }, this.error)))));
|
|
14101
14179
|
}
|
|
14102
14180
|
get element() { return getElement(this); }
|
|
14103
14181
|
static get watchers() { return {
|
|
@@ -14141,11 +14219,15 @@ class DuetInput {
|
|
|
14141
14219
|
"labelWeight": [1025, "label-weight"],
|
|
14142
14220
|
"error": [513],
|
|
14143
14221
|
"labelHidden": [4, "label-hidden"],
|
|
14222
|
+
"fieldPrefix": [1, "field-prefix"],
|
|
14223
|
+
"fieldSuffix": [1, "field-suffix"],
|
|
14144
14224
|
"numericKeyboard": [4, "numeric-keyboard"],
|
|
14145
14225
|
"name": [1],
|
|
14146
14226
|
"pattern": [1],
|
|
14147
14227
|
"maxlength": [2],
|
|
14148
14228
|
"minlength": [2],
|
|
14229
|
+
"max": [2],
|
|
14230
|
+
"min": [2],
|
|
14149
14231
|
"placeholder": [1],
|
|
14150
14232
|
"component": [1],
|
|
14151
14233
|
"role": [1],
|
|
@@ -14306,24 +14388,24 @@ class DuetLayout {
|
|
|
14306
14388
|
* Always the last one in the class.
|
|
14307
14389
|
*/
|
|
14308
14390
|
render() {
|
|
14309
|
-
return (hAsync(Host, { key: '
|
|
14391
|
+
return (hAsync(Host, { key: '7796cda5c4db65768c100838b80382b318b3ac73', class: {
|
|
14310
14392
|
center: this.center,
|
|
14311
14393
|
"duet-middle": this.middle,
|
|
14312
14394
|
"duet-ie": isInternetExplorer(),
|
|
14313
|
-
} }, hAsync("div", { key: '
|
|
14395
|
+
} }, hAsync("div", { key: '1b4f06b0ccaf2a93e30cb57085b3260c9d138d1f', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, this.hasTop && (hAsync("div", { key: '9b64258743ef0f5802e2853b2251788fc3c7f02d', class: {
|
|
14314
14396
|
"duet-layout-top": true,
|
|
14315
14397
|
"duet-center": this.center,
|
|
14316
|
-
} }, hAsync("div", { key: '
|
|
14398
|
+
} }, hAsync("div", { key: '8de64147ed6cd7c0942f5f477da01c1ee4a8a0ce', class: "duet-layout-top-wrapper" }, hAsync("slot", { key: '5b3dcec144e1e7a7707f52b18b8b1dc1d3cb13e7', name: "top" })))), hAsync("div", { key: '57ef787cdd754a6749f76ce151ed15bb779b110b', class: {
|
|
14317
14399
|
"duet-layout": true,
|
|
14318
14400
|
"has-sidebar": this.hasSidebar,
|
|
14319
14401
|
"duet-center": this.center,
|
|
14320
14402
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
14321
|
-
} }, hAsync("main", { key: '
|
|
14403
|
+
} }, hAsync("main", { key: '11712887cb73595787e00eb4ae51be583e222d69', class: "duet-main" }, this.hasPageHeading && hAsync("slot", { key: '024128c99761e9ce2df803f1a7af98da0bb39d48', name: "page-heading" }), hAsync("slot", { key: '5ec1793d46d607633b527d9497e9c160f1879f4a', name: "main" })), this.hasSidebar && (hAsync("aside", { key: 'c68315f8b323267fabd94fb2f45fa29294c6e17a', class: "duet-sidebar" }, hAsync("div", { key: '5222f4a3bc1b36710f1efc85cd09c31cd676d661', class: {
|
|
14322
14404
|
"duet-sidebar-container": true,
|
|
14323
14405
|
"has-tabs": this.tabs,
|
|
14324
14406
|
sticky: this.sticky,
|
|
14325
14407
|
[this.stickyDistance]: this.sticky,
|
|
14326
|
-
} }, hAsync("slot", { key: '
|
|
14408
|
+
} }, hAsync("slot", { key: '2c51db0affb26210fbbf38b7776d66f64c530f6f', name: "sidebar" }))))))));
|
|
14327
14409
|
}
|
|
14328
14410
|
get element() { return getElement(this); }
|
|
14329
14411
|
static get style() { return duetLayoutCss; }
|
|
@@ -14583,10 +14665,10 @@ class DuetLink {
|
|
|
14583
14665
|
const Tag = !this.url && this.variation !== "default" ? "button" : "a";
|
|
14584
14666
|
const role = !this.url && this.variation === "default" ? "button" : null;
|
|
14585
14667
|
const isButton = Tag === "button";
|
|
14586
|
-
return (hAsync(Host, { key: '
|
|
14668
|
+
return (hAsync(Host, { key: '63ea212c967fed116f28d316bf7b4dc6f7bed88d', class: {
|
|
14587
14669
|
[`duet-link-${this.variation}`]: true,
|
|
14588
14670
|
"duet-m-0": this.margin === "none",
|
|
14589
|
-
} }, hAsync(Tag, { key: '
|
|
14671
|
+
} }, hAsync(Tag, { key: 'c799db0446fbca186340c781f23ccecaf58e4336', href: this.url, class: {
|
|
14590
14672
|
"duet-link": true,
|
|
14591
14673
|
"duet-link-is-external": this.external,
|
|
14592
14674
|
"duet-link-is-download": !!this.download,
|
|
@@ -14776,7 +14858,7 @@ class DuetList {
|
|
|
14776
14858
|
* Always the last one in the class.
|
|
14777
14859
|
*/
|
|
14778
14860
|
render() {
|
|
14779
|
-
return (hAsync("dl", { key: '
|
|
14861
|
+
return (hAsync("dl", { key: '8b5a83409655ee3c79b0d076851d5f35ac038766', class: { "duet-list-component": true, "duet-m-0": this.margin === "none" } }, hAsync("slot", { key: 'f9e3dfbf22a5055c0ee910c4347f2d69b7971d59' })));
|
|
14780
14862
|
}
|
|
14781
14863
|
get element() { return getElement(this); }
|
|
14782
14864
|
static get watchers() { return {
|
|
@@ -14842,7 +14924,7 @@ class DuetListItem {
|
|
|
14842
14924
|
* Always the last one in the class.
|
|
14843
14925
|
*/
|
|
14844
14926
|
render() {
|
|
14845
|
-
return (hAsync(Host, { key: '
|
|
14927
|
+
return (hAsync(Host, { key: '2fc646c6ec771484ba741b13db4e05af02190613', class: {
|
|
14846
14928
|
"duet-theme-turva": this.theme === "turva",
|
|
14847
14929
|
"duet-no-stacking": !this.responsive,
|
|
14848
14930
|
"duet-list-item-breakpoint-x-small": this.breakpoint === "x-small",
|
|
@@ -14850,7 +14932,7 @@ class DuetListItem {
|
|
|
14850
14932
|
"duet-list-item-breakpoint-medium": this.breakpoint === "medium",
|
|
14851
14933
|
"duet-list-item-breakpoint-large": this.breakpoint === "large",
|
|
14852
14934
|
"duet-list-item-breakpoint-x-large": this.breakpoint === "x-large",
|
|
14853
|
-
} }, hAsync("dt", { key: '
|
|
14935
|
+
} }, hAsync("dt", { key: 'a6f04cd679b723dec94b73f49a1f01e765cc2c2c' }, hAsync("slot", { key: '3406e6b4499bc4e1ccbb65c8c20861a940058120', name: "label" })), hAsync("dd", { key: '12904de4492dd50e266c323d2d038a514e4ed4f1' }, hAsync("slot", { key: '1b5922436da8b77d4687c2fe55e7f58c5af37647', name: "value" }))));
|
|
14854
14936
|
}
|
|
14855
14937
|
get element() { return getElement(this); }
|
|
14856
14938
|
static get style() { return duetListItemCss; }
|
|
@@ -14988,7 +15070,7 @@ class DuetLogo {
|
|
|
14988
15070
|
*/
|
|
14989
15071
|
render() {
|
|
14990
15072
|
const TagName = this.href ? "a" : "div";
|
|
14991
|
-
return (hAsync(Host, { key: '
|
|
15073
|
+
return (hAsync(Host, { key: 'e210c4ffcf033bc1f53fb90ae2d1a9c98c8f61f6', class: { "duet-m-0": this.margin === "none" } }, hAsync(TagName, { key: 'cabf21f4898aab94d08a9de35222313124a6645c', href: this.href, ref: link => (this.nativeLink = link), "aria-label": this.accessibleLabel, class: {
|
|
14992
15074
|
"duet-logo": true,
|
|
14993
15075
|
[this.size]: true,
|
|
14994
15076
|
"duet-logo-inverse": this.inverse,
|
|
@@ -15148,17 +15230,17 @@ class DuetMenuBar {
|
|
|
15148
15230
|
render() {
|
|
15149
15231
|
const slideoutAvailable = document.querySelectorAll("duet-slideout").length > 0;
|
|
15150
15232
|
const isUsedAsAdditionalHorizontalNav = slideoutAvailable && !this.logo;
|
|
15151
|
-
return (hAsync(Host, { key: '
|
|
15233
|
+
return (hAsync(Host, { key: '0ebf784bb990ec8bd12412e38dd2ba2a78fb52b7' }, hAsync("nav", { key: '64c163dbdfb5179dae0026489a795e2834141a8a', class: {
|
|
15152
15234
|
"duet-menu-bar": true,
|
|
15153
15235
|
"duet-theme-turva": this.theme === "turva",
|
|
15154
15236
|
"horizontal-nav": isUsedAsAdditionalHorizontalNav,
|
|
15155
15237
|
"duet-menu-bar-slim": !this.centerSlotUsed,
|
|
15156
15238
|
hidden: this.hidden && this.hideOnScroll,
|
|
15157
15239
|
bottom: this.onBottom,
|
|
15158
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
15240
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: 'f98ccc695bc530e42a1301dfd641cc370657db84', class: "top" }), hAsync("div", { key: 'd642b8235270592ef2fe2f8a0e09efc1f7c6642a', class: { container: true, "with-info-text": !!this.logoInfoText && !this.centerSlotUsed }, ref: el => (this.container = el), onScroll: () => this.scrollbarCheck() }, this.logo && (hAsync("div", { key: '0af4e7323cad0bd980ed583c1fca8d84d8bb91e5' }, hAsync("duet-logo", { key: 'f6c4faec9956d31df570be2e37dcff785eb716e3', class: "medium", size: "medium", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), hAsync("duet-logo", { key: 'b32ee7cfe7ffdffe9daadb6a3e134fbd8f1a979a', class: "large", size: "large", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), hAsync("duet-logo", { key: '2051733dc6d65e369f731cc2060cc7ffd64433a9', class: "only-symbol", onlySymbol: true, margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), this.logoInfoText && !this.centerSlotUsed && (hAsync("div", { key: '3e4aabaf4fe328670b3c0aac894219ed8d8948b8', class: {
|
|
15159
15241
|
"duet-logo-info-text": true,
|
|
15160
15242
|
"duet-theme-turva": this.theme === "turva",
|
|
15161
|
-
} }, this.logoInfoText)))), hAsync("div", { key: '
|
|
15243
|
+
} }, this.logoInfoText)))), hAsync("div", { key: '69a656950f585ea5a403c2cbef0fe43a187c3fb9', class: "list center", role: "list" }, hAsync("div", { key: 'c09b81f8d1445a9a6e160a17e8b2ae8385e48c32', class: "more-left", hidden: !this.leftMoreVisible, role: "presentation" }), hAsync("slot", { key: '73b85aa0012107a492b4193248889d19dc4f0284', name: "center" }), hAsync("div", { key: 'd63135139588f5edde15aa4fe06db312f81c2d16', class: "more-right", hidden: !this.rightMoreVisible, role: "presentation" })), hAsync("div", { key: '2e226edcf43265cfe66c6d593b852e22bc0b184c', class: "list right", role: "list" }, hAsync("slot", { key: 'ff09b9aca19634847dec1ae050e29378cffee6eb', name: "right" }))), hAsync("div", { key: '037e499130954d66e9a319da25bbf134fa53acec', class: "bottom" }))));
|
|
15162
15244
|
}
|
|
15163
15245
|
get element() { return getElement(this); }
|
|
15164
15246
|
static get style() { return duetMenuBarCss; }
|
|
@@ -15237,10 +15319,10 @@ class DuetMenuBarButton {
|
|
|
15237
15319
|
* Always the last one in the class.
|
|
15238
15320
|
*/
|
|
15239
15321
|
render() {
|
|
15240
|
-
return (hAsync(Host, { key: '
|
|
15322
|
+
return (hAsync(Host, { key: '27fb2c633e88b04b7397830d15c881240d29a91b', role: "listitem", onfocus: () => this.setFocus() }, hAsync("button", { key: '29791cfd8473dc9407238460bcb1e169f183f074', ref: button => (this.nativeButton = button), class: {
|
|
15241
15323
|
"duet-menu-bar-button": true,
|
|
15242
15324
|
"duet-theme-turva": this.theme === "turva",
|
|
15243
|
-
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (hAsync("duet-icon", { key: '
|
|
15325
|
+
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (hAsync("duet-icon", { key: 'e037dac1385bef39b070602ba5bfb278470a49dd', class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: '95fd0aef38328dece2756ceed18c904c0c447d76' }))));
|
|
15244
15326
|
}
|
|
15245
15327
|
get element() { return getElement(this); }
|
|
15246
15328
|
static get style() { return duetMenuBarButtonCss; }
|
|
@@ -15330,17 +15412,17 @@ class DuetMenuBarDropdown {
|
|
|
15330
15412
|
* Always the last one in the class.
|
|
15331
15413
|
*/
|
|
15332
15414
|
render() {
|
|
15333
|
-
return (hAsync(Host, { key: '
|
|
15415
|
+
return (hAsync(Host, { key: 'c46c77a3b37d72d4f026c5027a8bed6dc33621c5', role: "listitem" }, hAsync("div", { key: 'bed24491075bfc2c5dcf225c5262a1af76e7a34f', class: {
|
|
15334
15416
|
"duet-menu-bar-dropdown": true,
|
|
15335
15417
|
"duet-theme-turva": this.theme === "turva",
|
|
15336
15418
|
active: this.open,
|
|
15337
15419
|
[`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
|
|
15338
|
-
} }, hAsync("button", { key: '
|
|
15420
|
+
} }, hAsync("button", { key: 'bee18f72f97fe86364cdf6afa685602feea7f694', ref: element => (this.button = element), "aria-label": this.accessibleLabel, "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
15339
15421
|
active: this.open,
|
|
15340
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
15422
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '9b5beb13681712fe262c14ba74de6b30ab481dff', class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'debea3ea41d1b4358dbf774b54558d8921b92006', class: "label" }, hAsync("slot", { key: 'fffcc54cdfb0032577c066e374c3465eafac3206', name: "label" }), hAsync("duet-icon", { key: 'a36c591292ca2c2b445e04f53721f788a4005934', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '3794aa5366239e4db4286303ef75f30778e3b911', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
15341
15423
|
items: true,
|
|
15342
15424
|
hidden: !this.open,
|
|
15343
|
-
} }, hAsync("slot", { key: '
|
|
15425
|
+
} }, hAsync("slot", { key: '4a0657ee88ab885d6e177b654e0e9231d0027ec1' })))));
|
|
15344
15426
|
}
|
|
15345
15427
|
get element() { return getElement(this); }
|
|
15346
15428
|
static get style() { return duetMenuBarDropdownCss; }
|
|
@@ -15407,11 +15489,11 @@ class DuetMenuBarDropdownLink {
|
|
|
15407
15489
|
* Always the last one in the class.
|
|
15408
15490
|
*/
|
|
15409
15491
|
render() {
|
|
15410
|
-
return (hAsync(Host, { key: '
|
|
15492
|
+
return (hAsync(Host, { key: '44c02bb0c92ca03579e70dc6f79178099f38de61' }, hAsync("a", { key: '26b45ac19043800a070894afec67517d051b6ccc', class: {
|
|
15411
15493
|
"duet-menu-bar-dropdown-link": true,
|
|
15412
15494
|
[`duet-menu-bar-dropdown-link--slot-${this.getVariant()}`]: true,
|
|
15413
15495
|
"duet-theme-turva": this.theme === "turva",
|
|
15414
|
-
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
15496
|
+
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '4d481450931bbf089d2f6d5ee7076aca7c3978f1', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("slot", { key: 'b47043814429787c833949bac92bae95b2001419' }))));
|
|
15415
15497
|
}
|
|
15416
15498
|
get element() { return getElement(this); }
|
|
15417
15499
|
static get style() { return duetMenuBarDropdownLinkCss; }
|
|
@@ -15497,11 +15579,11 @@ class DuetMenuBarItem {
|
|
|
15497
15579
|
*/
|
|
15498
15580
|
render() {
|
|
15499
15581
|
const TagName = this.url ? "a" : "button";
|
|
15500
|
-
return (hAsync(Host, { key: '
|
|
15582
|
+
return (hAsync(Host, { key: '9feca792c6d12ed05344d17db4a5076ad037994e', role: "listitem" }, hAsync(TagName, { key: '5ab6813f5290c5f323713e6015a46330089d555a', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
15501
15583
|
"duet-menu-bar-item": true,
|
|
15502
15584
|
"duet-theme-turva": this.theme === "turva",
|
|
15503
15585
|
active: this.active,
|
|
15504
|
-
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '
|
|
15586
|
+
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '7b6541e7b7cab53fedf815feebc683b9f122e323', class: "leading-icon", size: "auto", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: 'ab89cf87285d10e52798cd123c404acb69d6bf91' }), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: '6bc587bed959b634caf6b25db7f3374ed538151c', class: {
|
|
15505
15587
|
"trailing-icon": !!this.trailingIcon,
|
|
15506
15588
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
15507
15589
|
"external-icon": !!this.external,
|
|
@@ -15566,11 +15648,11 @@ class DuetMenuBarLink {
|
|
|
15566
15648
|
* Always the last one in the class.
|
|
15567
15649
|
*/
|
|
15568
15650
|
render() {
|
|
15569
|
-
return (hAsync(Host, { key: '
|
|
15651
|
+
return (hAsync(Host, { key: '044fd632f4ea61ecd3bbbb77e3c2d0eda50f16a4', role: "listitem" }, hAsync("a", { key: 'b910e6d15c696910ab231b49facb9cd3250d66c4', class: {
|
|
15570
15652
|
"duet-menu-bar-link": true,
|
|
15571
15653
|
"duet-theme-turva": this.theme === "turva",
|
|
15572
15654
|
active: this.active,
|
|
15573
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
15655
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '46ede326e61111856df4318b018a4128b7743658', class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: '774a0d744c12e5d43783123c2d07d450a0ad0472' }))));
|
|
15574
15656
|
}
|
|
15575
15657
|
get element() { return getElement(this); }
|
|
15576
15658
|
static get style() { return duetMenuBarLinkCss; }
|
|
@@ -15906,14 +15988,14 @@ class DuetModal {
|
|
|
15906
15988
|
var _a, _b;
|
|
15907
15989
|
const iconColor = postfixTheme("primary", this.theme);
|
|
15908
15990
|
const closeColor = postfixTheme("secondary", this.theme);
|
|
15909
|
-
const closingButton = (hAsync("div", { key: '
|
|
15910
|
-
return (hAsync("div", { key: '
|
|
15991
|
+
const closingButton = (hAsync("div", { key: 'b61aef40272ef152a04b32009608462e6edbef70', class: "duet-modal-close" }, hAsync("duet-button", { key: '33eaf633dc95c400fc36c3d3c492ab09d4669eb5', ref: button => (this.buttonEl = button), variation: "plain", accessibleLabel: this.accessibleCloseLabel, color: closeColor, iconSize: "large", icon: "navigation-close", iconOnly: true, margin: "none", theme: this.theme, onClick: ev => this.closeModal(ev), fixed: true })));
|
|
15992
|
+
return (hAsync("div", { key: '90cf02b79031ce0131f2dec7e4d92557de03678f', ref: modal => (this.modalEl = modal), "aria-label": (_a = this.accessibleLabel) !== null && _a !== void 0 ? _a : this.heading, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-describedby": this.accessibleDescribedBy, role: this.variation === "loader" ? "alert" : "dialog", "aria-modal": this.isSafariBrowser ? false : true, tabindex: "-1", class: {
|
|
15911
15993
|
"duet-modal-container": true,
|
|
15912
15994
|
"duet-theme-turva": this.theme === "turva",
|
|
15913
15995
|
"duet-modal-active": this.open,
|
|
15914
15996
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
15915
15997
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
15916
|
-
} }, hAsync("duet-overlay", { key: '
|
|
15998
|
+
} }, hAsync("duet-overlay", { key: '8a3e89ba3597519bb8db927cf22e104ae4673de6', "z-index": "-1", visible: this.open, variation: this.variation === "loader" ? "white" : "default" }), hAsync("div", { key: 'b6bb8c2df5b032e0c0ac71938735caa11ad2533f', ref: modalInner => (this.modalInnerEl = modalInner), class: {
|
|
15917
15999
|
"duet-modal-inner": true,
|
|
15918
16000
|
[this.size]: true,
|
|
15919
16001
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
@@ -15924,22 +16006,22 @@ class DuetModal {
|
|
|
15924
16006
|
this.closeModal(e);
|
|
15925
16007
|
}
|
|
15926
16008
|
}
|
|
15927
|
-
} }, hAsync("div", { key: '
|
|
16009
|
+
} }, hAsync("div", { key: '155d1d6da0f2606cb31ef316f097852d7cdb7025', ref: modalContentEl => (this.modalContentEl = modalContentEl), "aria-live": this.accessibleAnnounceChanges === "all" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "all" ? "true" : null, class: {
|
|
15928
16010
|
"duet-modal": true,
|
|
15929
16011
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
15930
16012
|
[this.size]: true,
|
|
15931
16013
|
[this.variation]: true,
|
|
15932
|
-
} }, this.gutterSize !== "none" && !this.hasStickyHeader && hAsync("duet-spacer", { key: '
|
|
16014
|
+
} }, this.gutterSize !== "none" && !this.hasStickyHeader && hAsync("duet-spacer", { key: 'acb1064c87210fd405931e54f517a74fffd1f838' }), this.hasStickyHeader ? (hAsync("div", { class: "duet-modal-sticky-header" }, closingButton, hAsync("slot", { name: "sticky-header" }))) : (closingButton), hAsync("div", { key: '602e0ef7ab4dcfb571b492b000d9287583462376', class: {
|
|
15933
16015
|
"duet-modal-body": true,
|
|
15934
16016
|
"duet-modal-gutter-none": this.gutterSize === "none",
|
|
15935
16017
|
"duet-modal-gutter-small": this.gutterSize === "small",
|
|
15936
16018
|
"duet-modal-gutter-medium": this.gutterSize === "medium",
|
|
15937
16019
|
"duet-modal-gutter-large": this.gutterSize === "large",
|
|
15938
|
-
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, hAsync("div", { key: '
|
|
16020
|
+
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, hAsync("div", { key: '17b2404b57b5a363c9e75a3c1d0c803805c9f124', class: "duet-modal-header" }, hAsync("span", { key: 'aad3dc7341703d4b5e1820e5560086a09ea01d73', class: "duet-modal-inner-slot-top" }, hAsync("slot", { key: 'f2704ee80a6a925a0ac2dba6f7ca5ffb66725d5c', name: "top" })), this.icon && hAsync("duet-icon", { key: '127d2a74dcecbc31a452318d8b491b8b720ed69d', name: this.icon, size: "xx-large", color: this.color || iconColor }), this.heading && (hAsync("duet-heading", { key: 'f7c9cd02320985bb5ede9e1bb87415349986e62c', "visual-level": (_b = this.headingVisualLevel) !== null && _b !== void 0 ? _b : this.headingLevel, level: this.headingLevel, theme: this.theme }, this.heading))), this.variation === "loader" && (hAsync("div", { key: 'e6078337de87fc1f449347b1b8164a03b397efc9', class: "duet-modal-spinner" }, hAsync("duet-spinner", { key: '08ded544a2c7cd799d0492beacd599df3b7be785', size: "large", color: postfixTheme("primary", this.theme) }))), hAsync("div", { key: 'bf23f204e215b36e9a0ebf752e52d850d5b62e24', "aria-live": this.variation === "loader"
|
|
15939
16021
|
? "assertive"
|
|
15940
16022
|
: this.accessibleAnnounceChanges === "body"
|
|
15941
16023
|
? "polite"
|
|
15942
|
-
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, hAsync("slot", { key: '
|
|
16024
|
+
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, hAsync("slot", { key: 'a9cae84bfc443ad938f202e5760a5dbae540bc84' })))))));
|
|
15943
16025
|
}
|
|
15944
16026
|
get element() { return getElement(this); }
|
|
15945
16027
|
static get watchers() { return {
|
|
@@ -16255,23 +16337,23 @@ class DuetMultiselect {
|
|
|
16255
16337
|
*/
|
|
16256
16338
|
render() {
|
|
16257
16339
|
var _a;
|
|
16258
|
-
return (hAsync(Host, { key: '
|
|
16340
|
+
return (hAsync(Host, { key: '2347a9fc6542af294322242041d6881e7d46705a', class: {
|
|
16259
16341
|
"duet-m-0": this.margin === "none",
|
|
16260
16342
|
"duet-expand": this.expand,
|
|
16261
|
-
} }, hAsync("div", { key: '
|
|
16343
|
+
} }, hAsync("div", { key: '956a141db6a505bace52938e5fe4806494f45159', class: {
|
|
16262
16344
|
"duet-multiselect-container": true,
|
|
16263
16345
|
"duet-label-hidden": this.labelHidden,
|
|
16264
16346
|
"duet-theme-turva": this.theme === "turva",
|
|
16265
16347
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
16266
16348
|
"has-error": !!this.error,
|
|
16267
|
-
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync(DuetInternalLabel, { key: '
|
|
16349
|
+
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync(DuetInternalLabel, { key: '2f23d51d3671879786ba1407b56ae3222f9a5bf5', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: this.identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: '85a8c563721a63f0a34cce7cc459dd18d6280194', class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '56a2689eeda397d20a42b167ddb099b920107e26', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '0c8e2c9a01b16cd4dcfa46d4e9ad7a656d5a3c74', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '4436df38933bbd41698bd155d710c0d2216d1f6d', class: "duet-multiselect-wrapper" }, hAsync("button", { key: '99022f18da86f4373ff64c74a52dace5a2bd7d60', id: this.identifier, ref: el => (this.multiselectElement = el), class: { "duet-multiselect": true, "duet-multiselect-active": this.checkboxesVisible }, tabindex: "0", onClick: () => this.toggleCheckboxes(), onFocus: e => this.onFocus(e), onBlur: e => this.onBlur(e), role: "combobox", "aria-expanded": this.checkboxesVisible ? "true" : "false", "aria-haspopup": "listbox", "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-owns": `${this.identifier}-checkboxes`, onKeyDown: (e) => this.onMultiselectInputKeyDown(e), disabled: this.disabled }, hAsync("span", { key: 'e64ce99653325421f0618ad642a840e4b0cd3695', role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes`, "aria-label": this.placeholderLabel[this.language], class: "duet-multiselect-label" }, this.placeholder), this.value && this.value.length > 0 && (hAsync("span", { key: 'ead81f383496a853979310009d9899727eca2585', class: "duet-multiselect-badge" }, this.value.length, hAsync("duet-visually-hidden", { key: '34142a17a4b013c56292dff2eb224f6544afa95e' }, this.selectedLangObject[this.language], ",", " ", Array.isArray(this.value) ? this.value.map(item => item.label).join(", ") : ""))), hAsync("svg", { key: '0608e4eb2995dcc8f02a1c92c35b5cbf545f7ad5', class: { "duet-multiselect-icon": true, "duet-multiselect-icon--rotate": this.checkboxesVisible }, fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '0b9a5d56df9e428d036f77c886fce63855aeae12', d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), hAsync("div", { key: 'ae5eb2b331307f54eeab1c6728f289dcda6b3f27', id: `${this.identifier}-checkboxes`, role: "listbox", class: {
|
|
16268
16350
|
"duet-multiselect-checkboxes": true,
|
|
16269
16351
|
"duet-multiselect-checkboxes-active": this.checkboxesVisible,
|
|
16270
|
-
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: '
|
|
16352
|
+
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: 'd5883b8ebe1c051efd79ddb1f79dc78e5fddeb47', class: "duet-multiselect-all-control-buttons" }, hAsync("button", { key: '24482082ed2715da5f7c57cce55e2c68da043f07', class: "duet-multiselect-select-all", onClick: this.handleSelectAllClick, id: this.getOptionIdentifier(-2), onKeyDown: (e) => this.onCheckboxKeyDown(e, -2) }, this.selectAllLabel[this.language]), hAsync("button", { key: '5c900fa9f95cf21ca22c498212ec6cbd72e23139', class: "duet-multiselect-clear-all", onClick: this.handleClearAllClick, id: this.getOptionIdentifier(-1), onKeyDown: (e) => this.onCheckboxKeyDown(e, -1) }, this.clearAllLabel[this.language]))), this.processedItems &&
|
|
16271
16353
|
this.processedGroups.map(group => (hAsync("fieldset", null, group.label && hAsync("legend", null, group.label), group.items.map((item, key) => {
|
|
16272
16354
|
var _a, _b;
|
|
16273
16355
|
return (hAsync("duet-checkbox", { identifier: this.getOptionIdentifier(key), role: "option", label: item.label, value: item.value, key: item.value, checked: (_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(item), "accessible-selected": ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(item)) ? "true" : undefined, disabled: !this.checkboxesVisible || item.disabled, onDuetChange: e => this.toggleCheckbox(e, item), onKeyDown: (e) => this.onCheckboxKeyDown(e, key), theme: this.theme }));
|
|
16274
|
-
})))))), hAsync("span", { key: '
|
|
16356
|
+
})))))), hAsync("span", { key: '733dfa1e852f5b450de3e11e7d9bd9516c1c6284', class: "duet-multiselect-help duet-multiselect-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '4535a77dbbb418ceb1c63d423e390324f5d0f18d' }, this.error)))));
|
|
16275
16357
|
}
|
|
16276
16358
|
get element() { return getElement(this); }
|
|
16277
16359
|
static get watchers() { return {
|
|
@@ -16346,7 +16428,7 @@ class DuetNav {
|
|
|
16346
16428
|
* Always the last one in the class.
|
|
16347
16429
|
*/
|
|
16348
16430
|
render() {
|
|
16349
|
-
return (hAsync(Host, { key: '
|
|
16431
|
+
return (hAsync(Host, { key: '7e22b4d7023564579ca7e937ea9b3e1c41383217' }, hAsync("div", { key: 'cbd604f24c3d48b16771529aaf84590fbe2c349e', class: { container: true, sticky: this.sticky } }, hAsync("slot", { key: '6d354508134cf4f829922e1d12b9163ed8796753' }), hAsync("slot", { key: '2cde080603a8252ec4015dedd7166b3d3c59b945', name: "mobile" }), hAsync("slot", { key: '9654b2dfc61dbbb9833a8b5df624bdb92adadc15', name: "desktop" }))));
|
|
16350
16432
|
}
|
|
16351
16433
|
get element() { return getElement(this); }
|
|
16352
16434
|
static get style() { return duetNavCss; }
|
|
@@ -16439,11 +16521,11 @@ class DuetNotification {
|
|
|
16439
16521
|
return `${indicatorText}${slottedText}${slottedText.endsWith(".") ? "" : "."} ${this.date}`;
|
|
16440
16522
|
}
|
|
16441
16523
|
render() {
|
|
16442
|
-
return (hAsync("div", { key: '
|
|
16524
|
+
return (hAsync("div", { key: '0c265034a28ae5591df26cf2603ab3d045b45478', role: "listitem", class: {
|
|
16443
16525
|
"duet-notification": true,
|
|
16444
16526
|
"duet-notification-highlight": this.highlight,
|
|
16445
16527
|
"duet-theme-turva": this.theme === "turva",
|
|
16446
|
-
} }, hAsync("a", { key: '
|
|
16528
|
+
} }, hAsync("a", { key: '8f26b04ba38b69dcb86b0ab8b6820ad63453c831', ref: element => (this.linkElement = element), href: this.url, target: this.external ? "_blank" : "_self", "aria-label": this.getAriaLabelText() }, hAsync("div", { key: 'e573dfed62263051b2841cb36cfe1b3c00db8e50', class: "duet-notification-container" }, hAsync("div", { key: '0e4d1b7fec55b7c69043f3beebefff071f2d1e04', class: "duet-indicator-container" }, this.highlight && (hAsync("duet-indicator", { key: 'e9086498a4ef7534f5a68956dad0a811486b41b1', variation: "new", "accessible-label": this.accessibleLabelUnread }))), hAsync("div", { key: 'd02944064c8c7842fb5556f2eadef2fc11aad3bd', class: "duet-notification-content" }, hAsync("slot", { key: 'f4de0aed88ff1f2545d2d630c299fa7e73e62a67' })), hAsync("div", { key: '8486cd8ac2797612ceae89c720b184c3e2f52805', class: "duet-notification-date" }, this.date)))));
|
|
16447
16529
|
}
|
|
16448
16530
|
get element() { return getElement(this); }
|
|
16449
16531
|
static get style() { return duetNotificationCss; }
|
|
@@ -16590,13 +16672,13 @@ class DuetNotificationDrawer {
|
|
|
16590
16672
|
* Always the last one in the class.
|
|
16591
16673
|
*/
|
|
16592
16674
|
render() {
|
|
16593
|
-
return (hAsync("div", { key: '
|
|
16675
|
+
return (hAsync("div", { key: '8e97a8e6a2058296cc10026f42860f3bb895b2a3', class: {
|
|
16594
16676
|
"duet-drawer": true,
|
|
16595
16677
|
"duet-theme-turva": this.theme === "turva",
|
|
16596
|
-
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: '
|
|
16678
|
+
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: 'b13ac8ee8dab57c43589f2a07ce1c3093aa19b8c', ref: el => (this.drawerButtonEl = el), type: "button", class: {
|
|
16597
16679
|
"duet-drawer-toggle": true,
|
|
16598
16680
|
"duet-theme-turva": this.theme === "turva",
|
|
16599
|
-
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (hAsync("div", { key: '
|
|
16681
|
+
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (hAsync("div", { key: 'bd4969fcb3d1f150d6a90b6c51a30c6be85edc75', class: "duet-drawer-icon" }, hAsync("duet-icon", { key: 'd5ff03e6dc3d7149488ec7c2de6377ee31ddbd16', margin: "none", size: "x-small", name: this.icon, color: "currentColor" }), this.badge && hAsync("duet-indicator", { key: 'f79d92d82b2d2d60b4df0e272d0d394d61fd63db', variation: "change" }))), hAsync("span", { key: '1199f0cd40d583e1c01df562f08bcf60b4698526', class: "duet-drawer-label" }, this.label), hAsync("div", { key: '2e37bb3393dbae08571b683c09b674d7bc3e1e86', class: "duet-drawer-caret" }, hAsync("duet-icon", { key: 'ec6d5078dfdfe96c112b9116518cfd0a61d03852', margin: "none", size: "auto", icon: arrowDownIcon.svg, color: "currentColor" }))), hAsync("div", { key: 'c09a322633b12ba12e6cc18a9bec6a8a96590dc2', id: "duet-drawer-content", class: {
|
|
16600
16682
|
"duet-drawer-content": true,
|
|
16601
16683
|
"duet-drawer-right": this.direction === "right",
|
|
16602
16684
|
"duet-drawer-left": this.direction === "left",
|
|
@@ -16711,6 +16793,7 @@ function ConvertToEnUS(value, locale, replaceThousands = false) {
|
|
|
16711
16793
|
}
|
|
16712
16794
|
const roundTo = (val, multiple) => Math.round(val / multiple) * multiple;
|
|
16713
16795
|
const clamp$1 = (val, min, max) => Math.min(Math.max(val, min), max);
|
|
16796
|
+
const isInteger = (val) => val === Math.round(val);
|
|
16714
16797
|
|
|
16715
16798
|
const duetNumberInputCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host(.form-distribute:last-of-type:not(:last-child)){margin-right:16px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;vertical-align:bottom;text-align:left}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;-webkit-appearance:none;appearance:none;cursor:pointer;background:transparent}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{outline:2px solid;outline-offset:0;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus,:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:\"\";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;z-index:-1;width:1px;height:60%;content:\"\";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(178, 194, 205, 0.2) 0%, rgba(178, 194, 205, 0.2) 1px, rgba(178, 194, 205, 0.1) 1px, rgba(178, 194, 205, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(212, 221, 226)}";
|
|
16716
16799
|
|
|
@@ -16851,7 +16934,8 @@ class DuetNumberInput {
|
|
|
16851
16934
|
*/
|
|
16852
16935
|
this.tooltip = "";
|
|
16853
16936
|
/**
|
|
16854
|
-
* Step amount.
|
|
16937
|
+
* Step amount. Note that decimal values as step (e.g. 0.01) may produce unexpected results and thus are strongly
|
|
16938
|
+
* discouraged (but for backwards compatibility still accepted).
|
|
16855
16939
|
*/
|
|
16856
16940
|
this.step = 5000;
|
|
16857
16941
|
/**
|
|
@@ -17003,7 +17087,7 @@ class DuetNumberInput {
|
|
|
17003
17087
|
// handle cases where value is not multiple of step
|
|
17004
17088
|
// e.g. if someone enters 199, with a step of 100, add should go to 200
|
|
17005
17089
|
// and if someone enters 101, add should also go to 200
|
|
17006
|
-
if (newValue % this.step !== 0) {
|
|
17090
|
+
if (isInteger(this.step) && newValue % this.step !== 0) {
|
|
17007
17091
|
const adjustment = newValue % this.step;
|
|
17008
17092
|
newValue -= adjustment;
|
|
17009
17093
|
}
|
|
@@ -17026,7 +17110,7 @@ class DuetNumberInput {
|
|
|
17026
17110
|
// handle cases where value is not multiple of step
|
|
17027
17111
|
// if someone enters 199, with a step of 100, subtract should go to 100
|
|
17028
17112
|
// and if someone enters 101, subtract should also go to 100
|
|
17029
|
-
if (newValue % this.step !== 0) {
|
|
17113
|
+
if (isInteger(this.step) && newValue % this.step !== 0) {
|
|
17030
17114
|
const adjustment = this.step - (newValue % this.step);
|
|
17031
17115
|
newValue += adjustment;
|
|
17032
17116
|
}
|
|
@@ -17101,15 +17185,15 @@ class DuetNumberInput {
|
|
|
17101
17185
|
const identifier = this.identifier || this.inputId;
|
|
17102
17186
|
const maxlength = `${this.localizeValue(this.max)}${this.getUnitString()}`.length;
|
|
17103
17187
|
const cleanedValue = !!this.value ? SafeParseFloat(this.value, this.locale) : null;
|
|
17104
|
-
return (hAsync(Host, { key: '
|
|
17188
|
+
return (hAsync(Host, { key: '81daee26177116322c1048713a28d09d8a36afe3', class: {
|
|
17105
17189
|
"duet-theme-turva": this.theme === "turva",
|
|
17106
17190
|
"duet-expand": this.expand,
|
|
17107
17191
|
"duet-m-0": this.margin === "none",
|
|
17108
|
-
} }, hAsync("div", { key: '
|
|
17192
|
+
} }, hAsync("div", { key: 'f7ff1854e40887b3b3aa14be2d350c23ec364c7a', class: "duet-number-container" }, hAsync("duet-input", { key: 'a05dd4922337179d6fbc1b84cc0fbcd1c168f508', 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 }, hAsync("slot", { key: '45828645242ce4779aeae9368f0631de124e855b', name: "tooltip", slot: "tooltip" }), hAsync("div", { key: '229d18fbba76520c64109a4300dec29378432aac', class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, hAsync("button", { key: '49918d06cee7e8878266d3f3ed9295d9fbf31102', 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" }, hAsync("duet-visually-hidden", { key: '894e200f0b7ee004486e07d5a7f4c59640066da3' }, this.accessibleSubtract
|
|
17109
17193
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
17110
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '
|
|
17194
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: 'eee91808ec61039f59fd9c7df8fba1c7f0c558cd', icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), hAsync("button", { key: 'f146b62278677f506fa9c047bcf759432e3bd6c9', disabled: this.disabled, "aria-disabled": cleanedValue === this.max ? "true" : "false", class: "duet-number-button duet-number-button-add", onClick: this.add, type: "button" }, hAsync("duet-visually-hidden", { key: '8f0efec2146187d6b3781d635c8445ee3673f032' }, this.accessibleAdd
|
|
17111
17195
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
17112
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '
|
|
17196
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '12e8a56782a15e7788e7a087a46aff0535991517', icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (hAsync("duet-visually-hidden", { key: 'cd675e89f9f78297f98bf0ec110d0013ccf0354b', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
|
|
17113
17197
|
}
|
|
17114
17198
|
get element() { return getElement(this); }
|
|
17115
17199
|
static get style() { return duetNumberInputCss; }
|
|
@@ -17221,7 +17305,7 @@ class DuetOverlay {
|
|
|
17221
17305
|
* Always the last one in the class.
|
|
17222
17306
|
*/
|
|
17223
17307
|
render() {
|
|
17224
|
-
return (hAsync(Host, { key: '
|
|
17308
|
+
return (hAsync(Host, { key: 'd947da491d318a4bb83befcfc756e140c9531881', "aria-hidden": "true" }, hAsync("div", { key: 'afaa04313e1d9cb640378e12084495ffb3d35409', style: { zIndex: this.zIndex }, class: {
|
|
17225
17309
|
"duet-overlay": true,
|
|
17226
17310
|
"duet-theme-turva": this.theme === "turva",
|
|
17227
17311
|
"keep-stacking-context": this.keepStackingContext,
|
|
@@ -17256,22 +17340,32 @@ class DuetOverlay {
|
|
|
17256
17340
|
}; }
|
|
17257
17341
|
}
|
|
17258
17342
|
|
|
17259
|
-
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+CjxwYXRoIGQ9Ik04MC4xNzA1IDIzLjE4MTVDOTEuOTY5OSAxOC44NjU5IDEwMi44NyAxMS42NTU5IDExMi45MDkgMS41NjQ0OEMxMjMuNzcgLTguMzA1MjcgMTM0LjM4MiAtMTguMjAxMSAxNDQuODI2IC0yOC4xODgyQzE1NS4yNDMgLTM4LjE2MjIgMTY1LjkwOCAtNDguMDg0MSAxNzYuNzQzIC01Ny45Mjc4QzE3OC44MTYgLTU5LjA0OSAxODAuNDk4IC02MC4yODc3IDE4MS43ODggLTYxLjY1NjdDMTgzLjA2NiAtNjMuMDEyNiAxODUuNDY1IC02Mi4yODI1IDE4OS4wMTIgLTU5LjQ3OTNDMTg0LjczNSAtNTEuMTM1IDE4MC43NTkgLTQyLjk2MDIgMTc3LjAxNyAtMzQuOTAyN0MxNzMuMjg4IC0yNi44NDUyIDE2Ny42ODEgLTE5LjEyNjggMTYwLjIxMSAtMTEuNzYwM0MxNTIuNzUzIC00LjM4MDgzIDE0NC45NTYgMy4zMTE1MiAxMzYuODQ3IDExLjM2OUMxMjguNzI0IDE5LjQyNjUgMTIwLjk2NiAyNy4xNDUgMTEzLjQ4MyAzNC40OTg0Qzk3LjQ5OCA0OS44MTggNzkuNjYyIDU2LjAyNDEgNjAuMDAwOCA1My4xNjg4QzQwLjI4NzQgNTAuMzEzNSAyNS41NDE0IDM5LjA3NDcgMTUuNjk3NyAxOS40Nzg2QzMuOTI0NDUgLTIuMzcyOTkgLTEuMjI1NTUgLTI0LjQ3MjQgMC4yNDc3NDMgLTQ2Ljc4MDNDMS4yNTE2NyAtNjcuNDg0NiAzLjQwMjkzIC04Ny43OTc4IDYuODA1ODQgLTEwNy43NzJDMTAuMTk1NyAtMTI3LjczMyAxNS43MTA4IC0xNDcuNDg2IDIzLjMzOCAtMTY3LjA0M0MyNi4zMTA3IC0xNzQuMDMxIDI5LjAwOTUgLTE4MC44NSAzMS40NzM3IC0xODcuNTY0QzMzLjkxMTggLTE5NC4yMjcgMzYuNTMyNCAtMjAwLjY2OCAzOS4yNTc0IC0yMDYuODQ4QzQxLjgxMjggLTIwOS41NzIgNDMuNDY4NiAtMjEyLjEyOCA0NC4xODU3IC0yMTQuNTRDNTMuMDI1NSAtMjI5LjM3NyA2Mi44MyAtMjM3Ljk5NSA3My42Mzg1IC0yNDAuNDMzQzg0LjM5NDggLTI0Mi44NzEgOTguMTM2OSAtMjM5LjgyMSAxMTQuODEyIC0yMzEuMzJDMTI3Ljk0MiAtMjI1LjYwOSAxMzMuMzkyIC0yMTYuMTA1IDEzMS4xNDkgLTIwMi43OTNDMTMwLjE3MSAtMTkwLjgzNyAxMjcuOTk0IC0xNzkuMjU5IDEyNC42MTcgLTE2OC4wMkMxMjAuMDQxIC0xNTIuNzc5IDExNS40MzggLTEzNy41NTEgMTEwLjg0OSAtMTIyLjMyMkMxMDYuMjczIC0xMDcuMDgxIDEwMS4yNzkgLTkxLjk2OTkgOTUuODk0MyAtNzcuMDAyM0M4NS41OTQzIC00OC42MDU3IDc5LjQyNzQgLTE5LjQyNjcgNzcuNDA2NSAxMC41NjA2Qzc3LjcxOTQgMTIuNDEyIDc4LjA0NTMgMTQuMjYzNSA3OC4zNTgzIDE2LjA4ODhDNzguNjcxMiAxNy45NDAyIDc5LjI3MDkgMjAuMyA4MC4xNzA1IDIzLjE5NDRNMTEwLjkxNCAtMjk2Ljc1N0MxMDkuNTQ1IC0yOTguMDM1IDEwNy4zMTYgLTI5OS4zNTIgMTA0LjIzOSAtMzAwLjczNEMxMDEuMTYyIC0zMDIuMDkgOTguMjQxMiAtMzA0LjA1OSA5NS41NDIzIC0zMDYuNjI3QzkwLjA3OTQgLTMxMS43NzcgODYuOTc2MyAtMzE4LjE2NiA4Ni4yMzMyIC0zMjUuODE5Qzg1LjQ2NCAtMzMzLjQ3MiA4Ny4zODA1IC0zNDAuNTUyIDkxLjk2OTkgLTM0Ny4wNThDOTMuMjIxNSAtMzQ4LjQxNCA5NC4xNDcyIC0zNDkuMjM1IDk0LjY4MTggLTM0OS41MjJDOTUuMTkwMyAtMzQ5Ljc5NiA5Ni4xMDI5IC0zNTAuNjA0IDk3LjM5MzcgLTM1MS45OTlDMTA5LjY3NSAtMzU3LjkwNiAxMjIuNDE0IC0zNTYuNjkzIDEzNS42MzQgLTM0OC4zMzZDMTQ2Ljk1MSAtMzQyLjMyNSAxNTIuMDg4IC0zMzMuMzE2IDE1MS4xMzYgLTMyMS4zNkwxNDguMjI5IC0zMTEuNzM4QzE0NC42NjkgLTI5Ny4wNyAxMzUuNTY5IC0yOTEuNTAzIDEyMC45MTQgLTI5NS4wNjJDMTE5LjA1IC0yOTQuNzIzIDExNS43MzggLTI5NS4yOTcgMTEwLjkxNCAtMjk2Ljc0NCIgZmlsbD0iI0Y1RjVGNyIvPgo8cGF0aCBkPSJNMjQyLjc2NyAyMTUuNTE4QzI0NS4wODggMjEzLjU4OCAyNDcuMjc4IDIxMi4xMDIgMjQ5LjM3NyAyMTAuOTY4QzI1MS40NSAyMDkuODU5IDI1My41MzYgMjA4Ljc1MSAyNTUuNjIyIDIwNy42MDRDMjc0LjIyNyAxOTIuMjg0IDI5MC41NzcgMTc3LjE2IDMwNC43MjMgMTYyLjE5M0MzMTUuNjg4IDE0OC45NDYgMzI2LjYxNCAxMzUuODU2IDMzNy40ODggMTIyLjk4N0MzNDguMzYxIDExMC4xMTkgMzU4Ljg4MyA5Ni45Mzc1IDM2OS4wNjYgODMuNDE3MUMzNzYuNDQ1IDczLjQzMDEgMzg0LjU4MSA2My44NjAyIDM5My40NDcgNTQuNzQ2NkM0MDIuMyA0NS42NDYxIDQxMC44MjYgMzYuMjMyNyA0MTkuMDAxIDI2LjQ4MDNDNDIxLjgwNCAyMi45NzMxIDQyNC4yMjkgMjAuMDAwNCA0MjYuMjg5IDE3LjU0OTNDNDI4LjMyMyAxNS4xMjQzIDQzMC41MDEgMTIuOTMzOCA0MzIuODM1IDExLjAxNzNDNDM0LjkwOCA5LjkwOTA2IDQzNi43NDYgOS41ODMwMSA0MzguMzYzIDEwLjA2NTRDNDM5Ljk1MyAxMC41NDc5IDQ0MS43OTIgMTAuMjQ4IDQ0My45MDQgOS4xMTM3MUM0NDMuMTg3IDExLjUxMjcgNDQyLjgyMiAxMy4zOTAzIDQ0Mi44ODcgMTQuNjk0QzQ0Mi45MjYgMTYuMDIzOSA0NDIuMjg3IDE3LjM2NjggNDQxLjAwOSAxOC43MjI3QzQyNC42NDcgNDYuOTYzIDQwNy42ODQgNzIuODE3MyAzOTAuMTIyIDk2LjMxMTdDMzc2LjY0MSAxMTQuOTU2IDM2My4xNDcgMTMyLjkwOSAzNDkuNjM5IDE1MC4yMjRDMzM2LjEwNiAxNjcuNTI1IDMyMi4yMiAxODUuMzYxIDMwNy45NDQgMjAzLjc1OEMzMDEuNTI5IDIxMC41MzcgMjk1LjM4OCAyMTcuMiAyODkuNDk1IDIyMy43MTlDMjgzLjU4OSAyMzAuMjI1IDI3Ny40MzUgMjM2LjkgMjcxLjAyIDI0My42NjdDMjU4LjkyMSAyNTQuODggMjQ0LjQ4OCAyNTkuMjM0IDIyNy43MzQgMjU2Ljc5NkMxOTYuODYgMjUxLjg4MSAxNzYuMDI1IDIzNi44NzQgMTY1LjIxNyAyMTEuNzg5QzE1NC42OTUgMTg4LjU2OCAxNDkuNTMyIDE2Ni41MDggMTQ5LjcwMiAxNDUuNjA4QzE0Ny45NDIgMTEzLjY3OCAxNDguMzA3IDgxLjk0MzggMTUwLjgxIDUwLjQxOEMxNTMuMyAxOC44NzkyIDE1OC4zMiAtMTIuMzIwNyAxNjUuODY5IC00My4yMDc3QzE4MC4xNzIgLTEwNS4yMDMgMTk4LjU2OCAtMTY2LjQwMyAyMjEuMTExIC0yMjYuODA4QzIzMi4wODkgLTI1Ny41MjYgMjQ0LjQyMyAtMjg3LjYxOCAyNTguMSAtMzE3LjA5NkMyNzEuNzc2IC0zNDYuNTc1IDI4Ni4zNzkgLTM3NS41MDcgMzAxLjk3MiAtNDA0LjAwOEMzMTIuOTUgLTQyNS45OSAzMjQuNjMyIC00NDcuMzQ2IDMzNi45NzkgLTQ2OC4wNjNDMzQ5LjMxMyAtNDg4Ljc1NCAzNjIuNDk1IC01MDkuMjI0IDM3Ni40MzIgLTUyOS40NTlDNDAzLjg2NCAtNTY4LjI5OSA0MzQuMTkgLTYwMy42NzEgNDY3LjM5OCAtNjM1LjU3NUM0NzUuNjM4IC02NDIuNjgxIDQ4My45OTUgLTY0OS4zMTcgNDkyLjQwNSAtNjU1LjUxQzUwMC44MjggLTY2MS42NzcgNTEwLjM5NyAtNjY2LjY1OCA1MjEuMTU0IC02NzAuMzk5QzU0NS4yNzQgLTY3Ny45NjEgNTY3LjcxMiAtNjc2Ljg3OSA1ODguMzkxIC02NjcuMTY2QzYwNC43MjcgLTY2MC40NzggNjEzLjY3MSAtNjQ5LjUxMyA2MTUuMjEgLTYzNC4yMTlDNjE3LjU5NiAtNjI0Ljc1NCA2MTguMTk1IC02MTMuNjcxIDYxNi45ODMgLTYwMC45NTlDNjEwLjMyIC01NTguNDgxIDU5Ny44NTYgLTUxNS41MzQgNTc5LjU1MSAtNDcyLjE5NkM1NjUuNDMxIC00MzkuODIzIDU0OS4wODEgLTQwOC43NTMgNTMwLjUyOCAtMzc5LjAwMUM1MTEuOTM2IC0zNDkuMjYxIDQ5Mi42MTQgLTMxOS45NTIgNDcyLjYgLTI5MS4wOTlDNDY1LjQ1NiAtMjgxLjkyIDQ1Ny45NDYgLTI3MS41MDMgNDUwLjEyMyAtMjU5LjkxMkM0MzMuNTc4IC0yMzYuOTc4IDQxNS42MzcgLTIxNS4xMjYgMzk2LjI4OSAtMTk0LjM1N0MzNzYuOTAyIC0xNzMuNTYxIDM1NS44NDUgLTE1NC4zOTYgMzMzLjA2OCAtMTM2LjgyQzMyMC4zODIgLTEyNi42OSAzMTIuNTMzIC0xMTUuMDg2IDMwOS40ODIgLTEwMi4wNDhDMzA0LjE4OSAtODQuNDQ2OCAyOTguOTc0IC02Ny4wNDExIDI5My43OTggLTQ5Ljg0NEMyODguNjIxIC0zMi42NDY5IDI4My43NzEgLTE1LjExMDggMjc5LjI4NiAyLjcxMjFDMjc1LjI3MSAxOC45NzA1IDI3MS4zMDcgMzQuOTgxIDI2Ny40MjIgNTAuODM1MkMyNjMuNTIzIDY2LjY2MzMgMjU5Ljk2NCA4Mi44NDM0IDI1Ni43NyA5OS4zMzY1QzI1My41NDkgMTE1LjgwMyAyNTAuNjgxIDEzMi42MjIgMjQ4LjE1MiAxNDkuNzQxQzI0NS42MDkgMTY2Ljg2IDI0My4xMzIgMTgzLjc5NyAyNDAuNzQ2IDIwMC40OThDMjQxLjA0NiAyMDIuMzM3IDI0MS4zMDcgMjA0LjM5NiAyNDEuNTE1IDIwNi42MTNDMjQxLjY5OCAyMDguODY4IDI0Mi4xMjggMjExLjg0MSAyNDIuNzggMjE1LjUxOE01NjQuMzIyIC02MjIuMDgxQzU2MS43MjggLTYxOS4zNDMgNTU4LjExNiAtNjE2LjA4MyA1NTMuNDg4IC02MTIuMjM3QzU0Mi4yMzYgLTU5OC4xNjkgNTMwLjk1OCAtNTgzLjkwNiA1MTkuNjI4IC01NjkuNDU5QzUwOC4yNTkgLTU1NC45ODcgNDk4LjA1IC01MzkuOTQxIDQ4OS4wMTUgLTUyNC4zNzRDNDU5LjIzNiAtNDc0Ljg2OSA0MzIuNzY5IC00MjMuOTU2IDQwOS42MDEgLTM3MS42MDhDMzg2LjQxOSAtMzE5LjI0OCAzNjUuMTkzIC0yNjUuNDQgMzQ1LjkzNiAtMjEwLjE3MkMzNDUuNzAyIC0yMDkuMzc3IDM0NS43MDIgLTIwOC43MTIgMzQ2LjAxNSAtMjA4LjE5QzM0Ni4yNjIgLTIwNy42NTYgMzQ2LjE4NCAtMjA2LjU4NyAzNDUuNzE1IC0yMDUuMDA5QzM0OS4zNzggLTIwNS42MjIgMzUxLjM2IC0yMDYuMzM5IDM1MS42MDggLTIwNy4xNDdDMzU1LjQ2NyAtMjExLjIxNSAzNTkuNTA5IC0yMTUuMjMxIDM2My43NDYgLTIxOS4xOTRDMzY3Ljk5NyAtMjIzLjE0NSAzNzEuNzY1IC0yMjcuNjgyIDM3NS4wNzYgLTIzMi44MTlDNDAyLjg4NiAtMjY3LjE2MSA0MjguNzE0IC0zMDIuMTQyIDQ1Mi41MzUgLTMzNy43MzZDNDc2LjM2OCAtMzczLjMwMyA0OTguNTMzIC00MTAuNjk2IDUxOS4wNjggLTQ0OS44ODhDNTQzLjg1MyAtNDk3LjM3MiA1NTkuNTc3IC01NDYuNzM0IDU2Ni4yNTIgLTU5Ny45MzRDNTY2LjY0MyAtNjAyLjE4NSA1NjYuOTE3IC02MDYuMDE4IDU2Ny4xIC02MDkuNDZDNTY3LjI0MyAtNjEyLjkwMiA1NjYuMzE3IC02MTcuMSA1NjQuMzM2IC02MjIuMDgxIiBmaWxsPSIjRjVGNUY3Ii8+CjxwYXRoIGQ9Ik02OTYuNTE1IDE4OS4wNjRDNzA0LjYzOCAxODQuMzk2IDcxMi42ODIgMTc5LjYxMSA3MjAuNjg4IDE3NC43MzVWMTM0LjA1N0M2OTcuODE5IDE0OC41MDMgNjczLjgwMyAxNTkuNjM3IDY0OC42MDEgMTY3LjQyMUM2MjIuMDgyIDE3NS42MzUgNTk0LjU1OCAxODAuNjY3IDU2Ni4wMTggMTgyLjU1OEM1NTAuOTIgMTgzLjI2MiA1NDEuMjk4IDE4MS44OTMgNTM3LjEgMTc4LjQzOEM1MzIuODc2IDE3NS4wMDkgNTI5LjA5NSAxNjUuNzUyIDUyNS43NTcgMTUwLjc0NUw1MjMuOTU4IDEzMC41NDlDNTIzLjMzMiAxMTguMTI0IDUyNC43NjYgMTA2Ljc1NSA1MjguMzM5IDk2LjQyODlDNTMxLjg1OSA4Ni4xNTUgNTM2LjEyMiA3NS42MjAzIDU0MS4xMTYgNjQuODc3QzU0NS42MTQgNjQuNDg1OSA1NDkuNTY0IDY0LjM2ODUgNTUzLjAzMiA2NC41MzhDNTU2LjQ3NSA2NC42OTQ1IDU2MC40MzggNjQuNTc3MSA1NjQuOTQ5IDY0LjE3MjlDNTg1Ljg3NSA2NC4zNjg1IDYwNy42MzYgNjEuNzQ3OSA2MzAuMjY5IDU2LjI4NDlDNjUyLjA4MiA1MC42MjY1IDY3MC40IDQxLjI3ODIgNjg1LjI3NyAyOC4yNTMzQzY5NC45MzggMTkuNzc4NiA3MDQuMDI1IDEwLjM3ODMgNzEyLjU2NSAwLjA5MTMwODZINjM5LjUyNkM2MjAuMjU2IDE2Ljk4ODUgNTk2Ljk0NCAyNy40ODQxIDU2OS41MzkgMzEuNDYwN0M1NjcuNjYxIDMxLjc3MzYgNTY2LjM1NyAzMS44MTI3IDU2NS41NzUgMzEuNTY1QzU2NC43NTQgMzEuMzMwMyA1NjMuODI4IDMxLjUxMjggNTYyLjgxMSAzMi4wNDc0QzU2MS45OSAzMS44MTI3IDU2MS42NTEgMzEuNDk5OCA1NjEuNzgxIDMxLjA4MjZDNTYxLjg5OCAzMC42OTE1IDU2MS41NDYgMzAuMzY1NSA1NjAuNzUxIDMwLjEzMDhDNTYwLjk5OSAyOS4zMzU1IDU2MC45MDcgMjguODY2MSA1NjAuNTE2IDI4Ljc2MThDNTYwLjA5OSAyOC42MTg0IDU2MC4wMzQgMjguMTYyIDU2MC4yOTUgMjcuMzUzN0M1NjUuMzc5IDE4LjE3NDkgNTcwLjc3NyA5LjEwMDU1IDU3Ni40MzYgMC4wOTEzMDg2SDQzMC4xNzZDNDI0LjIwNCAxMi42NzMgNDE5LjA1NCAyNS45NDU2IDQxNC44MyAzOS45ODc1QzQwNi40NzMgNjEuOTU2NSA0MDQuMjgyIDgyLjI2OTcgNDA4LjI4NSAxMDAuOTY2QzQxMi4wMTQgMTIwLjQ1OCA0MTguODMzIDEzOC40NjMgNDI4LjcyOCAxNTQuOTgyQzQzOC42MTEgMTcxLjUyOCA0NTIuNDU4IDE4NS4wODcgNDcwLjI1NCAxOTUuN0M0OTAuNzM3IDIwOC44ODEgNTEyLjE0NSAyMTcuNzIxIDUzNC40MDEgMjIyLjI0NUM1NTYuNjQ0IDIyNi43NTcgNTc5Ljg2NSAyMjYuNTA5IDYwNC4xMTUgMjIxLjU2N0M2MDkuNjQzIDIyMC42MTYgNjE1LjI2MyAyMTkuNDY4IDYyMC45MjEgMjE4LjA5OUM2MjYuNTY3IDIxNi43NTYgNjMyLjI3NyAyMTUuMTkyIDYzOC4wNTMgMjEzLjQxOUM2NTkuMDU3IDIwNy41MjUgNjc4LjU2MiAxOTkuMzkgNjk2LjU0MSAxODkuMDc3IiBmaWxsPSIjRjVGNUY3Ii8+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)}";
|
|
17343
|
+
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}.duet-page-heading .heading.has-back-button{padding-top:72px}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}.duet-page-heading .heading.has-back-button{padding-top:94px}}.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+CjxwYXRoIGQ9Ik04MC4xNzA1IDIzLjE4MTVDOTEuOTY5OSAxOC44NjU5IDEwMi44NyAxMS42NTU5IDExMi45MDkgMS41NjQ0OEMxMjMuNzcgLTguMzA1MjcgMTM0LjM4MiAtMTguMjAxMSAxNDQuODI2IC0yOC4xODgyQzE1NS4yNDMgLTM4LjE2MjIgMTY1LjkwOCAtNDguMDg0MSAxNzYuNzQzIC01Ny45Mjc4QzE3OC44MTYgLTU5LjA0OSAxODAuNDk4IC02MC4yODc3IDE4MS43ODggLTYxLjY1NjdDMTgzLjA2NiAtNjMuMDEyNiAxODUuNDY1IC02Mi4yODI1IDE4OS4wMTIgLTU5LjQ3OTNDMTg0LjczNSAtNTEuMTM1IDE4MC43NTkgLTQyLjk2MDIgMTc3LjAxNyAtMzQuOTAyN0MxNzMuMjg4IC0yNi44NDUyIDE2Ny42ODEgLTE5LjEyNjggMTYwLjIxMSAtMTEuNzYwM0MxNTIuNzUzIC00LjM4MDgzIDE0NC45NTYgMy4zMTE1MiAxMzYuODQ3IDExLjM2OUMxMjguNzI0IDE5LjQyNjUgMTIwLjk2NiAyNy4xNDUgMTEzLjQ4MyAzNC40OTg0Qzk3LjQ5OCA0OS44MTggNzkuNjYyIDU2LjAyNDEgNjAuMDAwOCA1My4xNjg4QzQwLjI4NzQgNTAuMzEzNSAyNS41NDE0IDM5LjA3NDcgMTUuNjk3NyAxOS40Nzg2QzMuOTI0NDUgLTIuMzcyOTkgLTEuMjI1NTUgLTI0LjQ3MjQgMC4yNDc3NDMgLTQ2Ljc4MDNDMS4yNTE2NyAtNjcuNDg0NiAzLjQwMjkzIC04Ny43OTc4IDYuODA1ODQgLTEwNy43NzJDMTAuMTk1NyAtMTI3LjczMyAxNS43MTA4IC0xNDcuNDg2IDIzLjMzOCAtMTY3LjA0M0MyNi4zMTA3IC0xNzQuMDMxIDI5LjAwOTUgLTE4MC44NSAzMS40NzM3IC0xODcuNTY0QzMzLjkxMTggLTE5NC4yMjcgMzYuNTMyNCAtMjAwLjY2OCAzOS4yNTc0IC0yMDYuODQ4QzQxLjgxMjggLTIwOS41NzIgNDMuNDY4NiAtMjEyLjEyOCA0NC4xODU3IC0yMTQuNTRDNTMuMDI1NSAtMjI5LjM3NyA2Mi44MyAtMjM3Ljk5NSA3My42Mzg1IC0yNDAuNDMzQzg0LjM5NDggLTI0Mi44NzEgOTguMTM2OSAtMjM5LjgyMSAxMTQuODEyIC0yMzEuMzJDMTI3Ljk0MiAtMjI1LjYwOSAxMzMuMzkyIC0yMTYuMTA1IDEzMS4xNDkgLTIwMi43OTNDMTMwLjE3MSAtMTkwLjgzNyAxMjcuOTk0IC0xNzkuMjU5IDEyNC42MTcgLTE2OC4wMkMxMjAuMDQxIC0xNTIuNzc5IDExNS40MzggLTEzNy41NTEgMTEwLjg0OSAtMTIyLjMyMkMxMDYuMjczIC0xMDcuMDgxIDEwMS4yNzkgLTkxLjk2OTkgOTUuODk0MyAtNzcuMDAyM0M4NS41OTQzIC00OC42MDU3IDc5LjQyNzQgLTE5LjQyNjcgNzcuNDA2NSAxMC41NjA2Qzc3LjcxOTQgMTIuNDEyIDc4LjA0NTMgMTQuMjYzNSA3OC4zNTgzIDE2LjA4ODhDNzguNjcxMiAxNy45NDAyIDc5LjI3MDkgMjAuMyA4MC4xNzA1IDIzLjE5NDRNMTEwLjkxNCAtMjk2Ljc1N0MxMDkuNTQ1IC0yOTguMDM1IDEwNy4zMTYgLTI5OS4zNTIgMTA0LjIzOSAtMzAwLjczNEMxMDEuMTYyIC0zMDIuMDkgOTguMjQxMiAtMzA0LjA1OSA5NS41NDIzIC0zMDYuNjI3QzkwLjA3OTQgLTMxMS43NzcgODYuOTc2MyAtMzE4LjE2NiA4Ni4yMzMyIC0zMjUuODE5Qzg1LjQ2NCAtMzMzLjQ3MiA4Ny4zODA1IC0zNDAuNTUyIDkxLjk2OTkgLTM0Ny4wNThDOTMuMjIxNSAtMzQ4LjQxNCA5NC4xNDcyIC0zNDkuMjM1IDk0LjY4MTggLTM0OS41MjJDOTUuMTkwMyAtMzQ5Ljc5NiA5Ni4xMDI5IC0zNTAuNjA0IDk3LjM5MzcgLTM1MS45OTlDMTA5LjY3NSAtMzU3LjkwNiAxMjIuNDE0IC0zNTYuNjkzIDEzNS42MzQgLTM0OC4zMzZDMTQ2Ljk1MSAtMzQyLjMyNSAxNTIuMDg4IC0zMzMuMzE2IDE1MS4xMzYgLTMyMS4zNkwxNDguMjI5IC0zMTEuNzM4QzE0NC42NjkgLTI5Ny4wNyAxMzUuNTY5IC0yOTEuNTAzIDEyMC45MTQgLTI5NS4wNjJDMTE5LjA1IC0yOTQuNzIzIDExNS43MzggLTI5NS4yOTcgMTEwLjkxNCAtMjk2Ljc0NCIgZmlsbD0iI0Y1RjVGNyIvPgo8cGF0aCBkPSJNMjQyLjc2NyAyMTUuNTE4QzI0NS4wODggMjEzLjU4OCAyNDcuMjc4IDIxMi4xMDIgMjQ5LjM3NyAyMTAuOTY4QzI1MS40NSAyMDkuODU5IDI1My41MzYgMjA4Ljc1MSAyNTUuNjIyIDIwNy42MDRDMjc0LjIyNyAxOTIuMjg0IDI5MC41NzcgMTc3LjE2IDMwNC43MjMgMTYyLjE5M0MzMTUuNjg4IDE0OC45NDYgMzI2LjYxNCAxMzUuODU2IDMzNy40ODggMTIyLjk4N0MzNDguMzYxIDExMC4xMTkgMzU4Ljg4MyA5Ni45Mzc1IDM2OS4wNjYgODMuNDE3MUMzNzYuNDQ1IDczLjQzMDEgMzg0LjU4MSA2My44NjAyIDM5My40NDcgNTQuNzQ2NkM0MDIuMyA0NS42NDYxIDQxMC44MjYgMzYuMjMyNyA0MTkuMDAxIDI2LjQ4MDNDNDIxLjgwNCAyMi45NzMxIDQyNC4yMjkgMjAuMDAwNCA0MjYuMjg5IDE3LjU0OTNDNDI4LjMyMyAxNS4xMjQzIDQzMC41MDEgMTIuOTMzOCA0MzIuODM1IDExLjAxNzNDNDM0LjkwOCA5LjkwOTA2IDQzNi43NDYgOS41ODMwMSA0MzguMzYzIDEwLjA2NTRDNDM5Ljk1MyAxMC41NDc5IDQ0MS43OTIgMTAuMjQ4IDQ0My45MDQgOS4xMTM3MUM0NDMuMTg3IDExLjUxMjcgNDQyLjgyMiAxMy4zOTAzIDQ0Mi44ODcgMTQuNjk0QzQ0Mi45MjYgMTYuMDIzOSA0NDIuMjg3IDE3LjM2NjggNDQxLjAwOSAxOC43MjI3QzQyNC42NDcgNDYuOTYzIDQwNy42ODQgNzIuODE3MyAzOTAuMTIyIDk2LjMxMTdDMzc2LjY0MSAxMTQuOTU2IDM2My4xNDcgMTMyLjkwOSAzNDkuNjM5IDE1MC4yMjRDMzM2LjEwNiAxNjcuNTI1IDMyMi4yMiAxODUuMzYxIDMwNy45NDQgMjAzLjc1OEMzMDEuNTI5IDIxMC41MzcgMjk1LjM4OCAyMTcuMiAyODkuNDk1IDIyMy43MTlDMjgzLjU4OSAyMzAuMjI1IDI3Ny40MzUgMjM2LjkgMjcxLjAyIDI0My42NjdDMjU4LjkyMSAyNTQuODggMjQ0LjQ4OCAyNTkuMjM0IDIyNy43MzQgMjU2Ljc5NkMxOTYuODYgMjUxLjg4MSAxNzYuMDI1IDIzNi44NzQgMTY1LjIxNyAyMTEuNzg5QzE1NC42OTUgMTg4LjU2OCAxNDkuNTMyIDE2Ni41MDggMTQ5LjcwMiAxNDUuNjA4QzE0Ny45NDIgMTEzLjY3OCAxNDguMzA3IDgxLjk0MzggMTUwLjgxIDUwLjQxOEMxNTMuMyAxOC44NzkyIDE1OC4zMiAtMTIuMzIwNyAxNjUuODY5IC00My4yMDc3QzE4MC4xNzIgLTEwNS4yMDMgMTk4LjU2OCAtMTY2LjQwMyAyMjEuMTExIC0yMjYuODA4QzIzMi4wODkgLTI1Ny41MjYgMjQ0LjQyMyAtMjg3LjYxOCAyNTguMSAtMzE3LjA5NkMyNzEuNzc2IC0zNDYuNTc1IDI4Ni4zNzkgLTM3NS41MDcgMzAxLjk3MiAtNDA0LjAwOEMzMTIuOTUgLTQyNS45OSAzMjQuNjMyIC00NDcuMzQ2IDMzNi45NzkgLTQ2OC4wNjNDMzQ5LjMxMyAtNDg4Ljc1NCAzNjIuNDk1IC01MDkuMjI0IDM3Ni40MzIgLTUyOS40NTlDNDAzLjg2NCAtNTY4LjI5OSA0MzQuMTkgLTYwMy42NzEgNDY3LjM5OCAtNjM1LjU3NUM0NzUuNjM4IC02NDIuNjgxIDQ4My45OTUgLTY0OS4zMTcgNDkyLjQwNSAtNjU1LjUxQzUwMC44MjggLTY2MS42NzcgNTEwLjM5NyAtNjY2LjY1OCA1MjEuMTU0IC02NzAuMzk5QzU0NS4yNzQgLTY3Ny45NjEgNTY3LjcxMiAtNjc2Ljg3OSA1ODguMzkxIC02NjcuMTY2QzYwNC43MjcgLTY2MC40NzggNjEzLjY3MSAtNjQ5LjUxMyA2MTUuMjEgLTYzNC4yMTlDNjE3LjU5NiAtNjI0Ljc1NCA2MTguMTk1IC02MTMuNjcxIDYxNi45ODMgLTYwMC45NTlDNjEwLjMyIC01NTguNDgxIDU5Ny44NTYgLTUxNS41MzQgNTc5LjU1MSAtNDcyLjE5NkM1NjUuNDMxIC00MzkuODIzIDU0OS4wODEgLTQwOC43NTMgNTMwLjUyOCAtMzc5LjAwMUM1MTEuOTM2IC0zNDkuMjYxIDQ5Mi42MTQgLTMxOS45NTIgNDcyLjYgLTI5MS4wOTlDNDY1LjQ1NiAtMjgxLjkyIDQ1Ny45NDYgLTI3MS41MDMgNDUwLjEyMyAtMjU5LjkxMkM0MzMuNTc4IC0yMzYuOTc4IDQxNS42MzcgLTIxNS4xMjYgMzk2LjI4OSAtMTk0LjM1N0MzNzYuOTAyIC0xNzMuNTYxIDM1NS44NDUgLTE1NC4zOTYgMzMzLjA2OCAtMTM2LjgyQzMyMC4zODIgLTEyNi42OSAzMTIuNTMzIC0xMTUuMDg2IDMwOS40ODIgLTEwMi4wNDhDMzA0LjE4OSAtODQuNDQ2OCAyOTguOTc0IC02Ny4wNDExIDI5My43OTggLTQ5Ljg0NEMyODguNjIxIC0zMi42NDY5IDI4My43NzEgLTE1LjExMDggMjc5LjI4NiAyLjcxMjFDMjc1LjI3MSAxOC45NzA1IDI3MS4zMDcgMzQuOTgxIDI2Ny40MjIgNTAuODM1MkMyNjMuNTIzIDY2LjY2MzMgMjU5Ljk2NCA4Mi44NDM0IDI1Ni43NyA5OS4zMzY1QzI1My41NDkgMTE1LjgwMyAyNTAuNjgxIDEzMi42MjIgMjQ4LjE1MiAxNDkuNzQxQzI0NS42MDkgMTY2Ljg2IDI0My4xMzIgMTgzLjc5NyAyNDAuNzQ2IDIwMC40OThDMjQxLjA0NiAyMDIuMzM3IDI0MS4zMDcgMjA0LjM5NiAyNDEuNTE1IDIwNi42MTNDMjQxLjY5OCAyMDguODY4IDI0Mi4xMjggMjExLjg0MSAyNDIuNzggMjE1LjUxOE01NjQuMzIyIC02MjIuMDgxQzU2MS43MjggLTYxOS4zNDMgNTU4LjExNiAtNjE2LjA4MyA1NTMuNDg4IC02MTIuMjM3QzU0Mi4yMzYgLTU5OC4xNjkgNTMwLjk1OCAtNTgzLjkwNiA1MTkuNjI4IC01NjkuNDU5QzUwOC4yNTkgLTU1NC45ODcgNDk4LjA1IC01MzkuOTQxIDQ4OS4wMTUgLTUyNC4zNzRDNDU5LjIzNiAtNDc0Ljg2OSA0MzIuNzY5IC00MjMuOTU2IDQwOS42MDEgLTM3MS42MDhDMzg2LjQxOSAtMzE5LjI0OCAzNjUuMTkzIC0yNjUuNDQgMzQ1LjkzNiAtMjEwLjE3MkMzNDUuNzAyIC0yMDkuMzc3IDM0NS43MDIgLTIwOC43MTIgMzQ2LjAxNSAtMjA4LjE5QzM0Ni4yNjIgLTIwNy42NTYgMzQ2LjE4NCAtMjA2LjU4NyAzNDUuNzE1IC0yMDUuMDA5QzM0OS4zNzggLTIwNS42MjIgMzUxLjM2IC0yMDYuMzM5IDM1MS42MDggLTIwNy4xNDdDMzU1LjQ2NyAtMjExLjIxNSAzNTkuNTA5IC0yMTUuMjMxIDM2My43NDYgLTIxOS4xOTRDMzY3Ljk5NyAtMjIzLjE0NSAzNzEuNzY1IC0yMjcuNjgyIDM3NS4wNzYgLTIzMi44MTlDNDAyLjg4NiAtMjY3LjE2MSA0MjguNzE0IC0zMDIuMTQyIDQ1Mi41MzUgLTMzNy43MzZDNDc2LjM2OCAtMzczLjMwMyA0OTguNTMzIC00MTAuNjk2IDUxOS4wNjggLTQ0OS44ODhDNTQzLjg1MyAtNDk3LjM3MiA1NTkuNTc3IC01NDYuNzM0IDU2Ni4yNTIgLTU5Ny45MzRDNTY2LjY0MyAtNjAyLjE4NSA1NjYuOTE3IC02MDYuMDE4IDU2Ny4xIC02MDkuNDZDNTY3LjI0MyAtNjEyLjkwMiA1NjYuMzE3IC02MTcuMSA1NjQuMzM2IC02MjIuMDgxIiBmaWxsPSIjRjVGNUY3Ii8+CjxwYXRoIGQ9Ik02OTYuNTE1IDE4OS4wNjRDNzA0LjYzOCAxODQuMzk2IDcxMi42ODIgMTc5LjYxMSA3MjAuNjg4IDE3NC43MzVWMTM0LjA1N0M2OTcuODE5IDE0OC41MDMgNjczLjgwMyAxNTkuNjM3IDY0OC42MDEgMTY3LjQyMUM2MjIuMDgyIDE3NS42MzUgNTk0LjU1OCAxODAuNjY3IDU2Ni4wMTggMTgyLjU1OEM1NTAuOTIgMTgzLjI2MiA1NDEuMjk4IDE4MS44OTMgNTM3LjEgMTc4LjQzOEM1MzIuODc2IDE3NS4wMDkgNTI5LjA5NSAxNjUuNzUyIDUyNS43NTcgMTUwLjc0NUw1MjMuOTU4IDEzMC41NDlDNTIzLjMzMiAxMTguMTI0IDUyNC43NjYgMTA2Ljc1NSA1MjguMzM5IDk2LjQyODlDNTMxLjg1OSA4Ni4xNTUgNTM2LjEyMiA3NS42MjAzIDU0MS4xMTYgNjQuODc3QzU0NS42MTQgNjQuNDg1OSA1NDkuNTY0IDY0LjM2ODUgNTUzLjAzMiA2NC41MzhDNTU2LjQ3NSA2NC42OTQ1IDU2MC40MzggNjQuNTc3MSA1NjQuOTQ5IDY0LjE3MjlDNTg1Ljg3NSA2NC4zNjg1IDYwNy42MzYgNjEuNzQ3OSA2MzAuMjY5IDU2LjI4NDlDNjUyLjA4MiA1MC42MjY1IDY3MC40IDQxLjI3ODIgNjg1LjI3NyAyOC4yNTMzQzY5NC45MzggMTkuNzc4NiA3MDQuMDI1IDEwLjM3ODMgNzEyLjU2NSAwLjA5MTMwODZINjM5LjUyNkM2MjAuMjU2IDE2Ljk4ODUgNTk2Ljk0NCAyNy40ODQxIDU2OS41MzkgMzEuNDYwN0M1NjcuNjYxIDMxLjc3MzYgNTY2LjM1NyAzMS44MTI3IDU2NS41NzUgMzEuNTY1QzU2NC43NTQgMzEuMzMwMyA1NjMuODI4IDMxLjUxMjggNTYyLjgxMSAzMi4wNDc0QzU2MS45OSAzMS44MTI3IDU2MS42NTEgMzEuNDk5OCA1NjEuNzgxIDMxLjA4MjZDNTYxLjg5OCAzMC42OTE1IDU2MS41NDYgMzAuMzY1NSA1NjAuNzUxIDMwLjEzMDhDNTYwLjk5OSAyOS4zMzU1IDU2MC45MDcgMjguODY2MSA1NjAuNTE2IDI4Ljc2MThDNTYwLjA5OSAyOC42MTg0IDU2MC4wMzQgMjguMTYyIDU2MC4yOTUgMjcuMzUzN0M1NjUuMzc5IDE4LjE3NDkgNTcwLjc3NyA5LjEwMDU1IDU3Ni40MzYgMC4wOTEzMDg2SDQzMC4xNzZDNDI0LjIwNCAxMi42NzMgNDE5LjA1NCAyNS45NDU2IDQxNC44MyAzOS45ODc1QzQwNi40NzMgNjEuOTU2NSA0MDQuMjgyIDgyLjI2OTcgNDA4LjI4NSAxMDAuOTY2QzQxMi4wMTQgMTIwLjQ1OCA0MTguODMzIDEzOC40NjMgNDI4LjcyOCAxNTQuOTgyQzQzOC42MTEgMTcxLjUyOCA0NTIuNDU4IDE4NS4wODcgNDcwLjI1NCAxOTUuN0M0OTAuNzM3IDIwOC44ODEgNTEyLjE0NSAyMTcuNzIxIDUzNC40MDEgMjIyLjI0NUM1NTYuNjQ0IDIyNi43NTcgNTc5Ljg2NSAyMjYuNTA5IDYwNC4xMTUgMjIxLjU2N0M2MDkuNjQzIDIyMC42MTYgNjE1LjI2MyAyMTkuNDY4IDYyMC45MjEgMjE4LjA5OUM2MjYuNTY3IDIxNi43NTYgNjMyLjI3NyAyMTUuMTkyIDYzOC4wNTMgMjEzLjQxOUM2NTkuMDU3IDIwNy41MjUgNjc4LjU2MiAxOTkuMzkgNjk2LjU0MSAxODkuMDc3IiBmaWxsPSIjRjVGNUY3Ii8+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.9);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}.duet-page-heading .background .brand-shaped-icon.secondary-background{background:rgba(8, 42, 77, 0.85)}@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 .button-container{position:absolute;top:20px;left:0}@media (min-width: 48em){.duet-page-heading .button-container{top:36px}}.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)}";
|
|
17260
17344
|
|
|
17261
17345
|
/**
|
|
17262
17346
|
* @slot heading - This is a slot for heading content.
|
|
17347
|
+
* @slot button - This is a slot for button visually above the heading. Use only variation "plain" button.
|
|
17263
17348
|
*/
|
|
17264
17349
|
class DuetPageHeading {
|
|
17265
17350
|
constructor(hostRef) {
|
|
17266
17351
|
registerInstance(this, hostRef);
|
|
17352
|
+
this.hasButtonSlot = false;
|
|
17267
17353
|
/**
|
|
17268
17354
|
* Theme of the hero area.
|
|
17269
17355
|
*/
|
|
17270
17356
|
this.theme = "";
|
|
17357
|
+
/**
|
|
17358
|
+
* LähiTapiola theme includes a brand shape at the top by default. Set to "none" to omit it. Has no effect for Turva.
|
|
17359
|
+
*/
|
|
17360
|
+
this.shape = "auto";
|
|
17271
17361
|
/**
|
|
17272
17362
|
* Icon.
|
|
17273
17363
|
*/
|
|
17274
17364
|
this.icon = "";
|
|
17365
|
+
/**
|
|
17366
|
+
* With LähiTapiola theme the icon can have secondary background instead of default. This has no effect on Turva theme.
|
|
17367
|
+
*/
|
|
17368
|
+
this.iconBackground = "default";
|
|
17275
17369
|
/**
|
|
17276
17370
|
* Layout.
|
|
17277
17371
|
* Values narrow and fluid are deprecated.
|
|
@@ -17283,6 +17377,8 @@ class DuetPageHeading {
|
|
|
17283
17377
|
*/
|
|
17284
17378
|
componentWillLoad() {
|
|
17285
17379
|
inheritGlobalTheme(this);
|
|
17380
|
+
this.hasButtonSlot = hasSlot(this.element, "button");
|
|
17381
|
+
checkNamedSlotElement(this.element, "button", "duet-button[variation=plain]");
|
|
17286
17382
|
}
|
|
17287
17383
|
progressIndicator() {
|
|
17288
17384
|
return (hAsync("div", { class: "progress-indicator" }, Array.from({ length: Math.ceil(this.progressTotalSteps) }, (_, i) => {
|
|
@@ -17299,12 +17395,15 @@ class DuetPageHeading {
|
|
|
17299
17395
|
*/
|
|
17300
17396
|
render() {
|
|
17301
17397
|
const layout = this.layout === "narrow" ? "narrow" : this.layout === "fluid" ? "fluid" : "auto";
|
|
17302
|
-
return (hAsync("div", { key: '
|
|
17398
|
+
return (hAsync("div", { key: 'ea4be735731e17f47330bab5ecb5e9d65795a539', class: {
|
|
17303
17399
|
"duet-page-heading": true,
|
|
17304
17400
|
"duet-theme-turva": this.theme === "turva",
|
|
17305
17401
|
"has-icon": !!this.icon,
|
|
17306
17402
|
[layout]: true,
|
|
17307
|
-
} }, hAsync("div", { key: '
|
|
17403
|
+
} }, hAsync("div", { key: 'e159d4b2942446b90f8e09a492f57a6fa974d51f', class: "background" }, this.theme === "turva" && hAsync("div", { key: '4f268e0c0adead476a918f94a41e9c6bd6fbe40e', class: "background-mask" }), this.theme !== "turva" && this.shape !== "none" && hAsync("div", { key: 'daf14331254bc8f0b5181e0a803f0057f169e629', class: "brand-shape" }), this.theme !== "turva" && this.shape !== "none" && hAsync("div", { key: 'a663ecceca1b90420088f692cb8bda12d579537d', class: "brand-shape second-shape" }), this.icon && (hAsync("div", { key: '9ea7885cc662e52f2df4d8a42557797280ba3ca3', class: {
|
|
17404
|
+
"brand-shaped-icon": true,
|
|
17405
|
+
"secondary-background": this.iconBackground === "secondary" && this.theme !== "turva",
|
|
17406
|
+
} }, hAsync("duet-icon", { key: '7edd9a52e8a515d9b946db7d3fdb95fa62ffa058', background: "none", name: this.icon, margin: "none", size: "auto", responsive: false })))), hAsync("div", { key: '85a7494fc13886d24677ee09bf86ccca61ee31cd', class: { heading: true, "has-back-button": this.hasButtonSlot } }, hAsync("slot", { key: '8c25416fc8f80c50830e36a2e2b1f47b609d0798', name: "heading" }), this.hasButtonSlot && (hAsync("div", { key: '198528161f296ee1a0bfedbd1e567dde1b552783', class: "button-container" }, hAsync("slot", { key: 'effe866326f9b75d678775a643d1e05f266b36fa', name: "button" }))), this.progressCurrentStep !== undefined && this.progressTotalSteps > 0 && (hAsync("div", { key: 'ab91a8ea60a18ad94a053b4d0e1ac1259cd1fbb9' }, hAsync("duet-spacer", { key: '6f8e47579eeb1a2b3450dab080fb93ec8ad9a2da', size: "large" }), hAsync("div", { key: '0602fe82a2bbf284687559d342c8b6589070f196', role: "presentation" }, this.progressIndicator()))))));
|
|
17308
17407
|
}
|
|
17309
17408
|
get element() { return getElement(this); }
|
|
17310
17409
|
static get style() { return duetPageHeadingCss; }
|
|
@@ -17313,7 +17412,9 @@ class DuetPageHeading {
|
|
|
17313
17412
|
"$tagName$": "duet-page-heading",
|
|
17314
17413
|
"$members$": {
|
|
17315
17414
|
"theme": [1025],
|
|
17415
|
+
"shape": [1],
|
|
17316
17416
|
"icon": [1025],
|
|
17417
|
+
"iconBackground": [1, "icon-background"],
|
|
17317
17418
|
"layout": [1025],
|
|
17318
17419
|
"progressCurrentStep": [2, "progress-current-step"],
|
|
17319
17420
|
"progressTotalSteps": [2, "progress-total-steps"]
|
|
@@ -17558,14 +17659,13 @@ class DuetPagination {
|
|
|
17558
17659
|
calculatePageTake() {
|
|
17559
17660
|
this.totalPages = Math.ceil(this.total / this.take);
|
|
17560
17661
|
}
|
|
17561
|
-
//
|
|
17662
|
+
// Update current when mouse click on arrow buttons
|
|
17562
17663
|
async onMouseHandler(e, dir) {
|
|
17563
17664
|
if (this.disabled) {
|
|
17564
17665
|
return;
|
|
17565
17666
|
}
|
|
17566
17667
|
if (!this.processedPageLinks) {
|
|
17567
17668
|
e.preventDefault();
|
|
17568
|
-
e.stopPropagation();
|
|
17569
17669
|
this.current = this.current + dir;
|
|
17570
17670
|
}
|
|
17571
17671
|
this.emitPageEvent(e);
|
|
@@ -17710,32 +17810,32 @@ class DuetPagination {
|
|
|
17710
17810
|
* Always the last one in the class.
|
|
17711
17811
|
*/
|
|
17712
17812
|
render() {
|
|
17713
|
-
return (hAsync(Host, { key: '
|
|
17813
|
+
return (hAsync(Host, { key: '7aae3263adf71d77b03be07c9ad260a4f4754159', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("nav", { key: 'ad020bd94ffb14b4b41fe139ab7e377deeeead12', 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: {
|
|
17714
17814
|
"duet-pagination-nav": true,
|
|
17715
17815
|
[`duet-pagination-variation-${this.variation}`]: true,
|
|
17716
|
-
} }, this.numbersStore !== "" && (hAsync("div", { key: '
|
|
17816
|
+
} }, this.numbersStore !== "" && (hAsync("div", { key: '599cfcdc99c0f726f838efb59a5d18def811fec3', "aria-live": "assertive", "aria-relevant": "text", class: "duet-pagination-overlay", "aria-label": `${this.accessibleLabels.jump_to} ${this.numbersStore}`, part: "navigation-overlay" }, hAsync("duet-badge", { key: '2376939fe48f1501856eabe413317653defbb0e0', theme: this.theme }, "jump to page : ", this.numbersStore))), hAsync("ol", { key: '0763fd9a3261cded9a37c556ee63d55fea0beec5', id: this.listId, class: {
|
|
17717
17817
|
"duet-pagination": true,
|
|
17718
17818
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
17719
|
-
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: '
|
|
17819
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: 'b9779196cb93bee395de3583880280c988db2891', class: {
|
|
17720
17820
|
"duet-pagination-page-button": true,
|
|
17721
17821
|
"duet-pagination-button-first": true,
|
|
17722
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17822
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: 'fb1e5c5aa1262fa16b1723ec810757d830f62738', 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 }))), hAsync("li", { key: '90fbdfd8f5c54e45a73e354771a2f3661467b1bb', class: {
|
|
17723
17823
|
"duet-pagination-page-button": true,
|
|
17724
17824
|
"duet-pagination-button-first": true,
|
|
17725
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17825
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '93ebdbe18cdfca563aa5e6dc12a4a4fd6f68f639', disabled: !!((this.internalSectionIndex === 0 && this.current <= 1) ||
|
|
17726
17826
|
(this.current <= 1 && this.processedPageLinks) ||
|
|
17727
|
-
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() && (hAsync(Fragment, { key: '
|
|
17728
|
-
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '
|
|
17827
|
+
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() && (hAsync(Fragment, { key: '8b2dbe89ac7c1684e82ee77a43f0f2ca8d9b89a8' }, hAsync("li", { key: '4f3ebacb88d1f21b2f358d443328bd59eec10264', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: 'ab65423e15d3a7cbd4c4fddf42f976e3c0ba9ea2', 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 }, hAsync("div", { key: '469b36535535c82356ae0aa5bb58dd1771d47dd2', class: "duet-pagination-page-number" }, "1"))), hAsync("li", { key: '222dcd79d07ae767593df35766d0ebb1686e16ee', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: 'cf4ec1ba0cb36a0c2cd00b8a388f472a58a2e326', 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 }, hAsync("div", { key: '4a9496ccdfdc6475a581a76b618897cd8e81c175', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026"))))), (this.shouldDisplayNavigation() && this.renderPageNumbers()) || this.renderSelect(), (this.internalSectionIndex + 1) * this.visibleItems < this.totalPages &&
|
|
17828
|
+
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '7168d8184d99f05d1ceb390687004810f43cf957' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (hAsync("li", { key: 'f2497085cb58ccb9c65db6f9699ff4b0d45e881d', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: '9eb3a7eb684367f52a0bb31681402cf357b41493', 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 }, hAsync("div", { key: '30e54f85dc44e0ab900c5ee84e1e581658fa625e', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), hAsync("li", { key: '86a7ea35747c42719c394062da51a74f147a8f0e', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: '136b42193fd165e8845aa55cbbfdc4c2234063ec', 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
|
|
17729
17829
|
? this.processedPageLinks[this.processedPageLinks.length - 1]
|
|
17730
|
-
: undefined }, hAsync("div", { key: '
|
|
17830
|
+
: undefined }, hAsync("div", { key: '84e6618b71439ceea94b5be66dfc9ca935dee2df', class: "duet-pagination-page-number" }, this.totalPages))))), hAsync("li", { key: '5cc6fc85a3cc763f9b5bb3f5bd7c2383e273f09d', class: {
|
|
17731
17831
|
"duet-pagination-page-button": true,
|
|
17732
17832
|
"duet-pagination-button-last": true,
|
|
17733
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17833
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: 'd84bd849c47769f4863cb38218e8851e7ff88291', disabled: !!((this.current === this.totalPages &&
|
|
17734
17834
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
17735
|
-
(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) && (hAsync("li", { key: '
|
|
17835
|
+
(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) && (hAsync("li", { key: '339d7f334ac903a87caa8699b31761b411a50c9d', class: {
|
|
17736
17836
|
"duet-pagination-page-button": true,
|
|
17737
17837
|
"duet-pagination-button-last": true,
|
|
17738
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17838
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '3179b9a09fec7d31c2830b91a6958dfa2cdad21f', disabled: (this.current === this.totalPages &&
|
|
17739
17839
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
17740
17840
|
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 })))))));
|
|
17741
17841
|
}
|
|
@@ -17808,14 +17908,14 @@ class DuetPanel {
|
|
|
17808
17908
|
inheritGlobalTheme(this);
|
|
17809
17909
|
}
|
|
17810
17910
|
render() {
|
|
17811
|
-
return (hAsync(Host, { key: '
|
|
17911
|
+
return (hAsync(Host, { key: 'f245a3e1001c22a202f3568c3bb787d0733d6d06', class: { "duet-m-0": this.margin === "none" } }, hAsync("section", { key: '8a2b28280d033811f77acd9160442b740f998394', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, "aria-describedby": this.accessibleDescribedBy, class: {
|
|
17812
17912
|
"duet-panel": true,
|
|
17813
17913
|
"duet-theme-turva": this.theme === "turva",
|
|
17814
17914
|
[this.variation.split("-")[0]]: true,
|
|
17815
17915
|
[this.variation.split("-")[1]]: true,
|
|
17816
17916
|
[`padding-${this.padding}`]: true,
|
|
17817
17917
|
border: this.border,
|
|
17818
|
-
} }, hAsync("slot", { key: '
|
|
17918
|
+
} }, hAsync("slot", { key: '9d8fedee8a1747268476e62d802987401074f89f' }))));
|
|
17819
17919
|
}
|
|
17820
17920
|
get element() { return getElement(this); }
|
|
17821
17921
|
static get style() { return duetPanelCss; }
|
|
@@ -17888,7 +17988,7 @@ class DuetParagraph {
|
|
|
17888
17988
|
const color = getColorByName(this.color);
|
|
17889
17989
|
// aria-describedby is to fix accessibility issue in Chrome where duet-paragraphs
|
|
17890
17990
|
// are not announced when placed inside duet-modal
|
|
17891
|
-
return (hAsync(Host, { key: '
|
|
17991
|
+
return (hAsync(Host, { key: 'c9571d612085644c30e1f218b12682df1c290b0c', "aria-describedby": this.id }, hAsync("p", { key: 'bd24c521e2c48f5cc8bd221b94e21f6fe4cd6f8d', id: this.id, class: {
|
|
17892
17992
|
"duet-paragraph": true,
|
|
17893
17993
|
"duet-paragraph-small": this.size === "small",
|
|
17894
17994
|
"duet-paragraph-semi-bold": this.weight === "semi-bold",
|
|
@@ -17897,7 +17997,7 @@ class DuetParagraph {
|
|
|
17897
17997
|
[this.variation]: true,
|
|
17898
17998
|
"duet-theme-turva": this.theme === "turva",
|
|
17899
17999
|
"duet-inherit-color": !this.color && this.inheritingParents.some(p => this.element.closest(p)),
|
|
17900
|
-
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: '
|
|
18000
|
+
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: '8b9f20872deb8cdc33aa95afdde6e492aa2d21d9' }))));
|
|
17901
18001
|
}
|
|
17902
18002
|
get element() { return getElement(this); }
|
|
17903
18003
|
static get style() { return duetParagraphCss; }
|
|
@@ -19694,6 +19794,11 @@ class DuetPhoneInput {
|
|
|
19694
19794
|
fi: "Valitse maatunnus",
|
|
19695
19795
|
sv: "Välj landskod",
|
|
19696
19796
|
};
|
|
19797
|
+
this.buttonAriaLabelSelected = {
|
|
19798
|
+
en: "Now selected",
|
|
19799
|
+
fi: "Nyt valittu",
|
|
19800
|
+
sv: "Nu vald",
|
|
19801
|
+
};
|
|
19697
19802
|
this.language = getLanguage();
|
|
19698
19803
|
/**
|
|
19699
19804
|
* Theme of the input.
|
|
@@ -19961,6 +20066,13 @@ class DuetPhoneInput {
|
|
|
19961
20066
|
}
|
|
19962
20067
|
return this.renderFlag(this.currentCountry.isoCode, true);
|
|
19963
20068
|
}
|
|
20069
|
+
getAccessibleLabelForButton() {
|
|
20070
|
+
const select = this.buttonAriaLabel[this.language];
|
|
20071
|
+
const selected = this.currentCountry
|
|
20072
|
+
? ` ${this.buttonAriaLabelSelected[this.language]}, ${this.currentCountry[this.language]}.`
|
|
20073
|
+
: "";
|
|
20074
|
+
return `${select}.${selected}`;
|
|
20075
|
+
}
|
|
19964
20076
|
render() {
|
|
19965
20077
|
{
|
|
19966
20078
|
return;
|
|
@@ -21895,11 +22007,11 @@ class DuetPopupMenuItem {
|
|
|
21895
22007
|
};
|
|
21896
22008
|
// Without the role ternary Safari/iPhone wouldn't announce the label for role menuitem.
|
|
21897
22009
|
// This is a tradeoff and now Safari announces these items as buttons and links with the label.
|
|
21898
|
-
return (hAsync(Host, { key: '
|
|
22010
|
+
return (hAsync(Host, { key: 'e4d908ef580f7a4b7f6c73b005df3024376394cf', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, hAsync(TagName, { key: '9a8c95e7192879c5ef1d7c8bd8b4a1af4042f4bf', 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 && (hAsync("duet-icon", { key: '7483b06d6477b2901f37bc6ac5d0c73c74fcc0ac', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), hAsync("span", { key: '29946d960923b123aab68ac401922cb29aaa4cd8', class: "duet-popup-menu-item-label" }, hAsync("slot", { key: '9994e35a66c58296c3af45cd40f477bc23f460f8' })), (this.trailingIcon || this.active || (this.url && this.external)) && (hAsync("duet-icon", { key: '29a0b6a25a8376d41f5279bebebd208e65ce4640', name: this.url && this.external
|
|
21899
22011
|
? newWindowIcon.title
|
|
21900
22012
|
: this.active
|
|
21901
22013
|
? "messaging-checked-small"
|
|
21902
|
-
: 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 && hAsync("span", { key: '
|
|
22014
|
+
: 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 && hAsync("span", { key: '6d6c1681d4e0551b89bd15d461d14d583fd12b93', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
21903
22015
|
}
|
|
21904
22016
|
get element() { return getElement(this); }
|
|
21905
22017
|
static get style() { return duetPopupMenuItemCss; }
|
|
@@ -22095,12 +22207,12 @@ class DuetPromoCard {
|
|
|
22095
22207
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
22096
22208
|
};
|
|
22097
22209
|
const TagName = this.url ? "a" : "div";
|
|
22098
|
-
return (hAsync(Host, { key: '
|
|
22210
|
+
return (hAsync(Host, { key: '15914a069765b4badeec5e42bc0c4be98528f197', class: { "duet-m-0": this.margin === "none" } }, hAsync("aside", { key: '3c097de3be0174444157d849d6d7352d60e8b4fc', class: {
|
|
22099
22211
|
"duet-promo-card": true,
|
|
22100
22212
|
"duet-theme-turva": this.theme === "turva",
|
|
22101
22213
|
"no-bg-color": !this.backgroundColor,
|
|
22102
22214
|
"duet-promo-card-link": !!this.url,
|
|
22103
|
-
}, style: bannerStyles }, hAsync(TagName, { key: '
|
|
22215
|
+
}, style: bannerStyles }, hAsync(TagName, { key: '5510d811615bbb7a172f03b40aaf4062073cb7f2', href: this.url, class: { "content-wrapper": true, "duet-theme-turva": this.theme === "turva" }, ref: element => (this.aOrDivElement = element) }, hAsync("img", { key: 'bc7545b847d9d9e71d0be0572fcbc999ee6c80c3', class: "image", src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" }), hAsync("div", { key: '82dc0d7269104f81e37d47c5b48f0d43b9000434', class: "content" }, this.hasPreHeadingSlot && (hAsync("div", { key: 'de1578879478be3a3f9cc115acb46a19446110a8', class: "pre-heading" }, hAsync("slot", { key: '08cd0e79ddf0fd865a244147adbe208c8fa3f9fa', name: "pre-heading" }))), this.hasHeadingSlot && (hAsync("div", { key: 'f2317874c4af8c13e932f3eb87b371f1d1b57237', class: "heading" }, hAsync("duet-heading", { key: '250310892874b2a50739c52399ea26e9c1d551f1', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.headingLevel, "visual-level": "h3", margin: "none", color: postfixTheme(this.textColor, this.theme) }, hAsync("span", { key: 'b07fc7401b5246d73a9685ce0c3ed066de23d72f' }, hAsync("slot", { key: '8de2f4b07d14e7eee8f0c8babef852ae187fc134', name: "heading" }))))), this.hasDescriptionSlot && (hAsync("div", { key: 'ddf9ce95776e1bd3c55e9dff3d0d116681f61896', class: "description" }, hAsync("duet-paragraph", { key: '1decf80a64e37486c1475437c34894025ae0f021', theme: this.theme, margin: "none", color: postfixTheme(this.textColor, this.theme) }, hAsync("span", { key: 'db6124d5ef91014ccbc9693880921dde31157030' }, hAsync("slot", { key: 'fe4c6a624551185cd748d69a451006710ed08558', name: "description" }))))), this.hasActionSlot && (hAsync("div", { key: '4386f1dadb0f8311fa9c21c7a47a872a08ab2b63', class: "action" }, hAsync("slot", { key: 'c5f4a3ce3b4ca1fdad040b95d883ec74f9a93904', name: "action" }))))))));
|
|
22104
22216
|
}
|
|
22105
22217
|
get element() { return getElement(this); }
|
|
22106
22218
|
static get style() { return duetPromoCardCss; }
|
|
@@ -22249,9 +22361,6 @@ class DuetRadio {
|
|
|
22249
22361
|
/**
|
|
22250
22362
|
* Component event handling.
|
|
22251
22363
|
*/
|
|
22252
|
-
this.onClick = (ev) => {
|
|
22253
|
-
ev.stopPropagation();
|
|
22254
|
-
};
|
|
22255
22364
|
this.onChange = (ev) => {
|
|
22256
22365
|
const input = this.focusableElement;
|
|
22257
22366
|
const inputChecked = input.checked;
|
|
@@ -22309,17 +22418,17 @@ class DuetRadio {
|
|
|
22309
22418
|
* Always the last one in the class.
|
|
22310
22419
|
*/
|
|
22311
22420
|
render() {
|
|
22312
|
-
return (hAsync(Host, { key: '
|
|
22421
|
+
return (hAsync(Host, { key: '538a0bdaa3132fcfbd68a8f970f1dc9b8c2f1198', class: {
|
|
22313
22422
|
vertical: this.groupDirection === "vertical",
|
|
22314
22423
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
22315
22424
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
22316
22425
|
"duet-m-0": this.margin === "none",
|
|
22317
|
-
} }, hAsync("div", { key: '
|
|
22426
|
+
} }, hAsync("div", { key: '0e11d68ec02df3163c3dc1524cff2bbff950a496', class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("slot", { key: 'fdf09172f67232d5b2a689b1f1368bb5da931319', name: "input" }), hAsync("label", { key: '516d9ba003ab05b3f7069b46ecfd471df3e4de3e', inert: true, ref: element => (this.labelElement = element), class: {
|
|
22318
22427
|
"duet-label": true,
|
|
22319
22428
|
checked: this.checked,
|
|
22320
22429
|
focus: this.focus,
|
|
22321
22430
|
disabled: this.disabled || this.groupDisabled,
|
|
22322
|
-
} }, hAsync("div", { key: '
|
|
22431
|
+
} }, hAsync("div", { key: 'b525b0a79e22eeb0b4fa8bdfdb854733d66acf2b', class: "duet-label-content" }, this.hasLabel ? hAsync("slot", { name: "label" }) : this.label)))));
|
|
22323
22432
|
}
|
|
22324
22433
|
get element() { return getElement(this); }
|
|
22325
22434
|
static get style() { return duetRadioCss; }
|
|
@@ -22514,7 +22623,7 @@ class DuetRadioGroup {
|
|
|
22514
22623
|
* Always the last one in the class.
|
|
22515
22624
|
*/
|
|
22516
22625
|
render() {
|
|
22517
|
-
return (hAsync(Host, { key: '
|
|
22626
|
+
return (hAsync(Host, { key: 'bcae2d75b5843767deb9fc0900ee68751331a011', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, hAsync("duet-fieldset", { key: '41c1b4a25bef2baac49fc5abef7713582a2e8f1b', label: this.label, labelHidden: this.labelHidden, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (hAsync("duet-tooltip", { key: 'af6c3a5dca20b7665e51bd0bf20923779bfd09bb', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '6e970de16b4e67c79ab27d45a223ec5989dfb51e', name: "tooltip", slot: "tooltip" }), hAsync("div", { key: '4b6385af491f148c5122dd990db0ef05ae8c7c6f', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: '4d79f47f0f3ab231307045a4c3bfbff89df1b75d' })))));
|
|
22518
22627
|
}
|
|
22519
22628
|
get element() { return getElement(this); }
|
|
22520
22629
|
static get watchers() { return {
|
|
@@ -22702,13 +22811,13 @@ class DuetRangeSlider {
|
|
|
22702
22811
|
const rangeStyles = {
|
|
22703
22812
|
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
22704
22813
|
};
|
|
22705
|
-
return (hAsync(Host, { key: '
|
|
22814
|
+
return (hAsync(Host, { key: '140a9aa52dabb7c79226006b962df8988b32d11a', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, hAsync("div", { key: '57c79380ecfdc00894e732406b9f461d673a7511', class: {
|
|
22706
22815
|
"duet-range-container": true,
|
|
22707
22816
|
"duet-label-hidden": this.labelHidden,
|
|
22708
22817
|
"duet-theme-turva": this.theme === "turva",
|
|
22709
22818
|
"duet-ie": isInternetExplorer(),
|
|
22710
22819
|
"duet-range-disabled": this.disabled,
|
|
22711
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
22820
|
+
} }, hAsync(DuetInternalLabel, { key: '0bd37479e4b671590fd4dd0b63cd3750ca08ebdc', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), hAsync("output", { key: '5e4d188ee952a06e3e25e06ec2d946563aed1ad8', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), hAsync("input", { key: '5929028f235380be743b2937b400c4100b42640e', onInput: this.onInput, onChange: this.onChange, ref: input => (this.nativeInput = input), type: "range", min: this.min, max: this.max, step: this.step, value: this.value, style: rangeStyles, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} ${this.unit}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, id: identifier, name: this.name, disabled: this.disabled, required: this.required, class: "duet-range" }))));
|
|
22712
22821
|
}
|
|
22713
22822
|
get element() { return getElement(this); }
|
|
22714
22823
|
static get style() { return duetRangeSliderCss; }
|
|
@@ -22937,10 +23046,10 @@ class DuetRangeStepper {
|
|
|
22937
23046
|
* Always the last one in the class.
|
|
22938
23047
|
*/
|
|
22939
23048
|
render() {
|
|
22940
|
-
return (hAsync("div", { key: '
|
|
23049
|
+
return (hAsync("div", { key: '7a19673ab541ea98696cdf665d1f37b8ac025f80', class: {
|
|
22941
23050
|
"duet-range-stepper": true,
|
|
22942
23051
|
"duet-theme-turva": this.theme === "turva",
|
|
22943
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: '
|
|
23052
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: 'c26de19d4c0bdae85dbaa9c5d0c4dca7118cbd59', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), hAsync("duet-action-button", { key: '780c748f25da231b4d32473c2404737516dea44c', 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: "" }), hAsync("duet-action-button", { key: '2883d256e795c2357edcfdd7515bc3242f754698', 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: "" })));
|
|
22944
23053
|
}
|
|
22945
23054
|
get element() { return getElement(this); }
|
|
22946
23055
|
static get watchers() { return {
|
|
@@ -23251,18 +23360,18 @@ class DuetScrollable {
|
|
|
23251
23360
|
* Always the last one in the class.
|
|
23252
23361
|
*/
|
|
23253
23362
|
render() {
|
|
23254
|
-
return (hAsync(Host, { key: '
|
|
23363
|
+
return (hAsync(Host, { key: '8df51170513077145592d25caa62ba1ad2e85321', class: {
|
|
23255
23364
|
"duet-theme-turva": this.theme === "turva",
|
|
23256
23365
|
"duet-theme-default": this.theme === "default",
|
|
23257
|
-
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: '
|
|
23366
|
+
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: 'eb436b00c138655bb63089831b85d1e9bb320aae', class: {
|
|
23258
23367
|
collapse: true,
|
|
23259
23368
|
hide: !this.needsScrolling && !this.collapsed,
|
|
23260
|
-
} }, hAsync("duet-button", { key: '
|
|
23369
|
+
} }, hAsync("duet-button", { key: '7ee25c87ce3da3160b9ceb73730715becad219bf', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, hAsync("slot", { key: 'bf4e7d6a981c5544251df380c5b4eef49545fd01', name: "collapse-button-label" })))), hAsync("div", { key: 'cd9bea12be8aecb83efce14f2ee153896f64c7cd', class: {
|
|
23261
23370
|
"duet-scrollable-items": true,
|
|
23262
23371
|
buttons: this.buttons,
|
|
23263
23372
|
center: this.center,
|
|
23264
23373
|
"duet-theme-turva": this.theme === "turva",
|
|
23265
|
-
} }, this.buttons && this.renderButton("left"), hAsync("div", { key: '
|
|
23374
|
+
} }, this.buttons && this.renderButton("left"), hAsync("div", { key: '243fe2e1dab3b9eae761f971dbc92eb0a14baa9e', class: {
|
|
23266
23375
|
"duet-scrollable-list": true,
|
|
23267
23376
|
[`duet-scrollable-list--${this.buttonPosition}`]: true,
|
|
23268
23377
|
[`gap-${this.gap}`]: true,
|
|
@@ -23270,7 +23379,7 @@ class DuetScrollable {
|
|
|
23270
23379
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
23271
23380
|
[`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
|
|
23272
23381
|
"duet-scrollable-stretch": this.stretch,
|
|
23273
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: '
|
|
23382
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: '5e49e03f90b17bbb89b5b4f5ea55d6bbd93ec53e' })), this.buttons && this.renderButton("right"))));
|
|
23274
23383
|
}
|
|
23275
23384
|
get element() { return getElement(this); }
|
|
23276
23385
|
static get watchers() { return {
|
|
@@ -23330,13 +23439,13 @@ class DuetSectionLayout {
|
|
|
23330
23439
|
* Always the last one in the class.
|
|
23331
23440
|
*/
|
|
23332
23441
|
render() {
|
|
23333
|
-
return (hAsync(Host, { key: '
|
|
23442
|
+
return (hAsync(Host, { key: '675bb0f1357f695ee2d80ae2a0a33f375191aaec', class: {
|
|
23334
23443
|
"duet-middle": this.middle,
|
|
23335
23444
|
"duet-ie": isInternetExplorer(),
|
|
23336
|
-
} }, hAsync("div", { key: '
|
|
23445
|
+
} }, hAsync("div", { key: 'cfa957d4604cbb8a0a824633dd4bf8c17cd144ae', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: 'afe01f3fb8d78adf63965e56f4aa1bbece5a50f3', class: {
|
|
23337
23446
|
"duet-layout": true,
|
|
23338
23447
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
23339
|
-
} }, hAsync("section", { key: '
|
|
23448
|
+
} }, hAsync("section", { key: 'a749242dc5645d0c22f8d3db2b3f798f1cb864f1', class: "duet-main" }, hAsync("slot", { key: 'fc73c99e0e9750dcfe65ab40e4affc2f1fe1dd9e' }))))));
|
|
23340
23449
|
}
|
|
23341
23450
|
get element() { return getElement(this); }
|
|
23342
23451
|
static get style() { return duetSectionLayoutCss; }
|
|
@@ -23549,23 +23658,23 @@ class DuetSelect {
|
|
|
23549
23658
|
*/
|
|
23550
23659
|
render() {
|
|
23551
23660
|
const identifier = this.identifier || this.selectId;
|
|
23552
|
-
return (hAsync(Host, { key: '
|
|
23661
|
+
return (hAsync(Host, { key: '6bbba69df6d714d95582b920dcd6704e872c1fef', class: {
|
|
23553
23662
|
"duet-m-0": this.margin === "none",
|
|
23554
23663
|
"duet-expand": this.expand,
|
|
23555
23664
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23556
|
-
} }, hAsync("div", { key: '
|
|
23665
|
+
} }, hAsync("div", { key: '9c89cfab0838693f6ae93ed0c6999196ed046018', class: {
|
|
23557
23666
|
"duet-select-container": true,
|
|
23558
23667
|
"duet-label-hidden": this.labelHidden,
|
|
23559
23668
|
"duet-theme-turva": this.theme === "turva",
|
|
23560
23669
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23561
23670
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
23562
23671
|
"has-error": !!this.error,
|
|
23563
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
23672
|
+
} }, hAsync(DuetInternalLabel, { key: 'bb1b08004476e4c91a526e189d59b26c06628f0d', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: '242f060046569b43a16a590fc61ac16fa7dd182b', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '7ebd1a36c092a298330bb5de020c67977c33607c', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: 'a53a8b9a16ef888449c6f544c0dd649c9e871d28', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: 'c706535ed2ab42090d1fa1a7ecaea348dd1bbb43', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: 'c2252184677717fb9dc1174d804fc961ece7b7df', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), hAsync("slot", { key: '3998a6027e75a35f26a2806b2f763cacd93d352a' }), hAsync("select", { key: 'eeea5188dac3f4ffa04f16f73b00422ef8fe00df', ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, required: this.required }, this.placeholder && (hAsync("option", { key: 'cfd9f517dbf8ce0c71191bf6e1223f0e8685a29f', disabled: true, selected: true, value: "" }, this.placeholder)), !this.processedItems ? (hAsync("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
|
|
23564
23673
|
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
23565
|
-
}))), hAsync("div", { key: '
|
|
23674
|
+
}))), hAsync("div", { key: '96657339d7fb34f8978eda641539e72dec7b224a', class: {
|
|
23566
23675
|
"duet-select": true,
|
|
23567
23676
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23568
|
-
}, "aria-hidden": "true" }, hAsync("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (hAsync("svg", { key: '
|
|
23677
|
+
}, "aria-hidden": "true" }, hAsync("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (hAsync("svg", { key: '11f2c494a1a3194d9e59f314bac8db237f8344b5', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '27492e3b9f53ec44100bbbe780f4aa464d4a9263', d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" })))) || (hAsync("duet-icon", { key: '3586a25ad9cb318b6565d17786f7e426f46d7768', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), hAsync("span", { key: 'ebd9af0776d3462414fff4ad4df8af165f6ac4b6', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), hAsync("span", { key: 'b9644fc1fbb467bfc7312029141323b743be8d30', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '572d61055aac43567212efc7c2ded45999d2d386', class: "duet-select-error" }, this.error)))));
|
|
23569
23678
|
}
|
|
23570
23679
|
get element() { return getElement(this); }
|
|
23571
23680
|
static get watchers() { return {
|
|
@@ -23645,9 +23754,9 @@ class DuetShapedImage {
|
|
|
23645
23754
|
const style = {
|
|
23646
23755
|
"--rotation": `${this.rotation}deg`,
|
|
23647
23756
|
};
|
|
23648
|
-
return (hAsync(Host, { key: '
|
|
23757
|
+
return (hAsync(Host, { key: '020b3d5e11c9cbc503711861dd206686d799a4e3', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, hAsync("span", { key: '296b4c2f04267b0d782923ae2e68d4ef6cb0561f', class: {
|
|
23649
23758
|
"shaped-image": true,
|
|
23650
|
-
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: '
|
|
23759
|
+
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: '7dc1daa1ef4e816a866dbe1f9106d27d79ba0f80', class: "shaped-image-mask", role: "presentation" }, hAsync("span", { key: '3471561d23efb71e7ffbd03964a87fc79b4a1630', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
|
|
23651
23760
|
}
|
|
23652
23761
|
static get style() { return duetShapedImageCss; }
|
|
23653
23762
|
static get cmpMeta() { return {
|
|
@@ -23717,12 +23826,12 @@ class DuetShareChart {
|
|
|
23717
23826
|
this.itemsTotalValue = this.items.reduce((total, { value }) => total + value, 0);
|
|
23718
23827
|
}
|
|
23719
23828
|
render() {
|
|
23720
|
-
return (hAsync(Host, { key: '
|
|
23829
|
+
return (hAsync(Host, { key: '76dcdb711e01b723ebfc6a7ac917640566d3c519' }, hAsync("div", { key: '0e33db2ae8dbd50fcca75bfc44780e47f540b35c', class: "duet-share-chart-horizontal-bar", role: "presentation" }, this.items
|
|
23721
23830
|
.filter(i => !!i.value)
|
|
23722
23831
|
.map(item => (hAsync("span", { class: "duet-share-chart-share", style: {
|
|
23723
23832
|
width: `${(item.value / this.itemsTotalValue) * 100}%`,
|
|
23724
23833
|
backgroundColor: getColorByName(item.color, this.theme),
|
|
23725
|
-
} })))), hAsync("ul", { key: '
|
|
23834
|
+
} })))), hAsync("ul", { key: 'af7cc163b43b67f726f90a32bd8bebb172a65ddd', class: "duet-share-chart-item-list" }, this.items.map(item => (hAsync("li", { class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("span", { class: "duet-share-chart-item-color", style: { background: getColorByName(item.color, this.theme) } }), hAsync("span", { class: "duet-share-chart-item-text" }, item.text, ":"), hAsync("span", { class: "duet-share-chart-item-value" }, "\u00A0", formatNumber(item.value), "\u00A0", this.unit), this.unit !== "%" && (hAsync("duet-visually-hidden", null, `${formatNumber((item.value / this.itemsTotalValue) * 100, 0)} %`)))))), hAsync("slot", { key: '4648ee2e833c07161de6ceb6179678b978e07741' })));
|
|
23726
23835
|
}
|
|
23727
23836
|
get element() { return getElement(this); }
|
|
23728
23837
|
static get style() { return duetShareChartCss; }
|
|
@@ -23749,7 +23858,7 @@ class DuetShareChartItem {
|
|
|
23749
23858
|
this.value = 0;
|
|
23750
23859
|
}
|
|
23751
23860
|
render() {
|
|
23752
|
-
return (hAsync(Host, { key: '
|
|
23861
|
+
return (hAsync(Host, { key: '5b9263e8f4daf50f566738052822cc63a935d7a6' }, hAsync("div", { key: 'd79e1ab4daabd5fd6dc314a33c7608c1cdd8c3f2', hidden: true }, hAsync("slot", { key: 'e9ff46324b7dea7138cfcce138d57c08c851626f' }))));
|
|
23753
23862
|
}
|
|
23754
23863
|
get element() { return getElement(this); }
|
|
23755
23864
|
static get cmpMeta() { return {
|
|
@@ -23899,12 +24008,12 @@ class DuetShowMore {
|
|
|
23899
24008
|
* Always the last one of the class.
|
|
23900
24009
|
*/
|
|
23901
24010
|
render() {
|
|
23902
|
-
return (hAsync(Host, { key: '
|
|
24011
|
+
return (hAsync(Host, { key: '63b3a492707e1a57c1611b073e6b663f3b3f5550' }, hAsync("div", { key: '663d694dedf732ed665fdd22ac8bfbb609aa4ba2', class: {
|
|
23903
24012
|
"duet-show-more": true,
|
|
23904
24013
|
"duet-theme-turva": this.theme === "turva",
|
|
23905
24014
|
"duet-m-0": this.margin === "none",
|
|
23906
24015
|
open: this.open,
|
|
23907
|
-
} }, hAsync("div", { key: '
|
|
24016
|
+
} }, hAsync("div", { key: '035ca78df910e7b4c7266e94ce54011f73197274', ref: ref => (this.contentElement = ref), class: { content: true, "duet-theme-turva": this.theme === "turva" }, id: this.contentId, tabindex: this.open ? "-1" : "" }, hAsync("div", { key: '6a41aea8c1bd21d5112e1d0fadb83de9c25b99a2', class: { "slotted-content": true } }, hAsync("slot", { key: '7cbe45659e187d12579f798c9019be8aa6c40c83' }))), hAsync("duet-button", { key: 'fb2e655522a81a79a288db8a6ba720e3ada41a5d', id: this.buttonId, variation: "plain", "accessible-label": this.buttonAriaOpen ? this.showLessAccessibleLabel : this.showMoreAccessibleLabel, "accessible-expanded": this.buttonAriaOpen ? "true" : "false", "accessible-controls": this.contentId, accessiblePressed: this.isSafariBrowser ? this.open : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "icon-right": true, icon: this.open ? "action-arrow-up-small" : "action-arrow-down-small", "icon-size": "medium-small", size: "small", margin: this.buttonMargin, padding: this.buttonPadding, theme: this.theme === "turva" ? "turva" : "default" }, hAsync("span", { key: '5cb30295ce5968c5d7a87185652db0640ab42839' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
|
|
23908
24017
|
}
|
|
23909
24018
|
get element() { return getElement(this); }
|
|
23910
24019
|
static get style() { return duetShowMoreCss; }
|
|
@@ -24425,17 +24534,17 @@ class DuetSlideout {
|
|
|
24425
24534
|
};
|
|
24426
24535
|
const topLevelOpenMenuBarTranslation = getLocaleString(this.topLevelOpenMenuBarLangObject);
|
|
24427
24536
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
24428
|
-
return (hAsync(Host, { key: '
|
|
24537
|
+
return (hAsync(Host, { key: '4967e4765890d5a1fc428a6da2917e5423728b8f' }, hAsync("div", { key: '019469e0d6a0b7115a2739d19c4db7643912ed0d', class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, this.modal && hAsync("duet-overlay", { key: '1ab0ab05de7bef08b4f9907c3588c4ae1b27a1d6', visible: this.open, zIndex: "600" }), hAsync("div", { key: 'a36de0bbaa226512b8fc62ec92912b0d9ea48fbe', ref: element => (this.dialog = element), tabindex: "-1", role: "dialog", id: "dialog", "aria-labelledby": "button", "aria-modal": this.isSafariBrowser ? false : true, "aria-flowto": "slot-container", class: {
|
|
24429
24538
|
dialog: true,
|
|
24430
24539
|
hidden: !this.open,
|
|
24431
24540
|
modal: this.modal,
|
|
24432
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
24541
|
+
}, style: styles }, hAsync(FocusGuard, { key: 'f8cd5d6bf0a93a2ec39783b9660a7fe7d666f631', moveFocusTo: this.closeButton }), hAsync("div", { key: '4599d8a89db4503856c93ae476044d0f8b58a6e8', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: '3b9e1c5b2de674864a0570a94eaccc0d2b1fd444', class: "top" }, hAsync("button", { key: '8c68434c8e735aee3a92cbd41dcdfdfdaabda9d3', ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", "aria-label": `${exitTranslation}`, type: "button", class: {
|
|
24433
24542
|
"slideout-close": true,
|
|
24434
24543
|
active: this.open,
|
|
24435
24544
|
"duet-theme-turva": this.theme === "turva",
|
|
24436
|
-
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: '
|
|
24545
|
+
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: 'a65c83b73256734cf30bb76d70a585f7396e91e7', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: '2cd42bbba1aae10f8ea951af29fd111ffc145ecc', class: "sticky-header" }, hAsync("slot", { key: 'c0c2c759bf1f9190a5bcb845d868210801792553', name: "sticky-header" }))), hAsync("div", { key: '9da45e60847db54c0ed5baf6e87d8526c54db02c', id: "slot-container", role: this.accessibleRole, "aria-label": this.openPanel ? topLevelOpenMenuBarTranslation : null, class: {
|
|
24437
24546
|
items: true,
|
|
24438
|
-
} }, hAsync("slot", { key: '
|
|
24547
|
+
} }, hAsync("slot", { key: '812379a9042a1a79781f4378a0c2b256676d12d8' })), hAsync(FocusGuard, { key: 'a2aeac2c61dbc0b9839144613d999de4dc8edb36', moveFocusTo: this.closeButton })))));
|
|
24439
24548
|
}
|
|
24440
24549
|
get element() { return getElement(this); }
|
|
24441
24550
|
static get watchers() { return {
|
|
@@ -24505,7 +24614,7 @@ class DuetSlideoutLang {
|
|
|
24505
24614
|
*/
|
|
24506
24615
|
render() {
|
|
24507
24616
|
const langTranslation = getLocaleString(this.chooseLangObject);
|
|
24508
|
-
return (hAsync(Host, { key: '
|
|
24617
|
+
return (hAsync(Host, { key: '34f0930dcf8021c6864fb605ea004dc58e6b8c9b' }, hAsync("div", { key: '9433641622ace86c08d679f5de5a06c065bc24cd', class: "duet-slideout-lang", role: "group", "aria-label": langTranslation }, hAsync("duet-icon", { key: 'bc6f8729f8011ff306198f5e6a6c050145199d03', name: "navigation-language", margin: "none", color: "secondary", size: "small" }), hAsync("slot", { key: 'a1608d54cdb7ec066e5757e46ec943db0aeb3eed' }))));
|
|
24509
24618
|
}
|
|
24510
24619
|
get element() { return getElement(this); }
|
|
24511
24620
|
static get style() { return duetSlideoutLangCss; }
|
|
@@ -24595,12 +24704,12 @@ class DuetSlideoutLink {
|
|
|
24595
24704
|
* Always the last one in the class.
|
|
24596
24705
|
*/
|
|
24597
24706
|
render() {
|
|
24598
|
-
return (hAsync(Host, { key: '
|
|
24707
|
+
return (hAsync(Host, { key: '8af50d9b7ac2dff34a22383644c26bc271feb186' }, hAsync("a", { key: '2331800cc3a3541998250f6e0d77989311da783d', target: !this.href ? null : this.external ? "_blank" : "_self", class: {
|
|
24599
24708
|
"duet-slideout-link": true,
|
|
24600
24709
|
"duet-theme-turva": this.theme === "turva",
|
|
24601
24710
|
active: this.active,
|
|
24602
24711
|
[this.size]: true,
|
|
24603
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": (this.href && getAccessibleLinkLabel(this)) || this.accessibleLabel, rel: this.external ? "noopener" : undefined }, this.icon && (hAsync("duet-icon", { key: '
|
|
24712
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": (this.href && getAccessibleLinkLabel(this)) || this.accessibleLabel, rel: this.external ? "noopener" : undefined }, this.icon && (hAsync("duet-icon", { key: 'ce90f34daf34e3fad2b5ad7b3b5e37dad9c1fd20', name: this.icon, color: "secondary", size: this.menuItem ? "x-small" : "small", margin: "none" })), hAsync("div", { key: 'a5fc2cc4c2a7c166b57b529ff62d133775b8dc51', class: "label" }, hAsync("span", { key: '49dc50b3f9fccbca74e22a2a62d8b8037484f386' }, hAsync("span", { key: '732a205ac37b15f4f242c827b90600ff15194c74', class: "label-container" }, hAsync("span", { key: 'cc338ec61125f8695556d8ecc08d9d75d2ded84e', class: "label-content" }, hAsync("slot", { key: '9eacab150163fb2dba6e373a4a3b8ca05346916d' })), this.external && (hAsync("duet-icon", { key: '6420a54645299ae8b19bfcc8626a929b6cc4f5cb', class: "external-icon", theme: this.theme, name: newWindowIcon.title, margin: "none", size: "auto", color: "currentColor" }))), hAsync("slot", { key: '9546111ca2eb2084ee09d4d48ad60eae283fad70', name: "description" })), this.caret && (hAsync("duet-icon", { key: '8d9d92137460efafad759509121e6dae57165a72', name: "action-arrow-right", color: "secondary", size: "x-small", margin: "none" }))))));
|
|
24604
24713
|
}
|
|
24605
24714
|
get element() { return getElement(this); }
|
|
24606
24715
|
static get style() { return duetSlideoutLinkCss; }
|
|
@@ -24777,25 +24886,25 @@ class DuetSlideoutPanel {
|
|
|
24777
24886
|
};
|
|
24778
24887
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
24779
24888
|
const backTranslation = getLocaleString(this.backLangObject);
|
|
24780
|
-
return (hAsync(Host, { key: '
|
|
24889
|
+
return (hAsync(Host, { key: '8a4dddd16156e7e26f2d90d27e4135baef9d7f7f' }, hAsync("div", { key: 'cfed35efbcbf9502380c2b19e452447d64c0590a', class: {
|
|
24781
24890
|
"duet-slideout-panel": true,
|
|
24782
24891
|
"duet-theme-turva": this.theme === "turva",
|
|
24783
24892
|
active: this.open,
|
|
24784
|
-
} }, this.badge && hAsync("duet-indicator", { key: '
|
|
24893
|
+
} }, this.badge && hAsync("duet-indicator", { key: '4a1de84e3b6ea4ffb2a1e01631f0a1739771e13e', variation: "change" }), hAsync("button", { key: '0663a7f9b6b1f5f779313be946f44fb0c8e00504', ref: element => (this.openButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
24785
24894
|
link: true,
|
|
24786
24895
|
active: this.active,
|
|
24787
24896
|
"duet-theme-turva": this.theme === "turva",
|
|
24788
|
-
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '
|
|
24897
|
+
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '871f1fcb5709c43089b627de26a80a8a7eecd519', class: "duet-slideout-icon" }, hAsync("duet-icon", { key: 'f1666ba453de11810cc1b1a5ce9d45faed10c193', name: this.icon, size: "small", margin: "none", color: "secondary" }))), hAsync("span", { key: '051ce78454689a7a379a9abd4a75e9a6495afcfa', class: "label" }, hAsync("span", { key: 'a22d205208a777b52b62e0d116a5db0998e3a79d', class: { "label-text": true, [this.labelSize]: true } }, hAsync("slot", { key: '6b817eb49b69b5fe02cd3355fa045fad80bc7692', name: "label" })), hAsync("duet-icon", { key: '0b397ce8f1de51dd50007ab3311e5ad59a7aa428', class: "caret", name: "action-arrow-right", margin: "none", size: "x-small", color: "secondary" }))), hAsync("div", { key: 'c7665a664268fbd5c4d01e152788ea70445814b8', ref: element => (this.dialog = element), class: {
|
|
24789
24898
|
dialog: true,
|
|
24790
24899
|
hidden: !this.open,
|
|
24791
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
24900
|
+
}, style: styles }, hAsync(FocusGuard, { key: 'c05cc6d5b0da41bedee7978f01d6f7c90ecfcf43', moveFocusTo: this.closeButton }), hAsync("div", { key: '8ba7873500abd185fe735632b574279157c8a707', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: '042cbf7c5c36e7a477a64ef184452817030a1fe9', class: "top" }, hAsync("button", { key: 'f327d356b8de850e432f515a4c1a6dc9e003d6f8', ref: element => (this.closeButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-label": `${backTranslation}`, type: "button", class: {
|
|
24792
24901
|
back: true,
|
|
24793
24902
|
"duet-theme-turva": this.theme === "turva",
|
|
24794
|
-
}, onClick: this.onClick }, hAsync("duet-icon", { key: '
|
|
24903
|
+
}, onClick: this.onClick }, hAsync("duet-icon", { key: '504fac50c5194735f7da38fd9034f28a39418192', class: "caret", name: "action-arrow-left", margin: "none", size: "small", color: "secondary" })), hAsync("span", { key: '274ca7fdd2c19790c60a7652a7733b41589709d0' }, this.label.innerHTML), hAsync("button", { key: '8aadd95055653e4125015bde99188315d0c2e8cc', class: { close: true, "duet-theme-turva": this.theme === "turva" }, type: "button", onClick: this.onCloseClick, "aria-label": `${exitTranslation}` }, hAsync("duet-icon", { key: '183d96aae0264a7b83f1aa77bdfb63778f173c74', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: '7861b5f725b0711c2b7cd7509c8a9a413e28564b', class: "sticky-header" }, hAsync("slot", { key: '2c16e97d5eb0d661158a567b6a07fb89ef1414f2', name: "sticky-header" }))), hAsync("div", { key: 'd6e922e2a37b2ab0ae519dda40afb32d5b56e554', tabindex: "-1", role: "menu",
|
|
24795
24904
|
//TODO: slideout menu fades out, needs to be instant
|
|
24796
24905
|
id: "menu", "aria-labelledby": "button", class: {
|
|
24797
24906
|
items: true,
|
|
24798
|
-
} }, hAsync("slot", { key: '
|
|
24907
|
+
} }, hAsync("slot", { key: 'af607556495101c55d23a7365f7ad3e661f7fc23' })), hAsync(FocusGuard, { key: 'f2f4d91ef8062f83bbd6099bedccff41d4a144ab', moveFocusTo: this.closeButton })))));
|
|
24799
24908
|
}
|
|
24800
24909
|
get element() { return getElement(this); }
|
|
24801
24910
|
static get watchers() { return {
|
|
@@ -24876,18 +24985,18 @@ class DuetSlideoutPanelDropdown {
|
|
|
24876
24985
|
* Always the last one in the class.
|
|
24877
24986
|
*/
|
|
24878
24987
|
render() {
|
|
24879
|
-
return (hAsync(Host, { key: '
|
|
24988
|
+
return (hAsync(Host, { key: 'f64a64dc68d8df8aebfa507aa995894eb65bb2ce' }, hAsync("div", { key: '18fe7e1d42915f5c5363c5eb95e86db85b214049', class: {
|
|
24880
24989
|
"duet-slideout-panel-dropdown": true,
|
|
24881
24990
|
"duet-theme-turva": this.theme === "turva",
|
|
24882
24991
|
active: this.open,
|
|
24883
|
-
} }, hAsync("button", { key: '
|
|
24992
|
+
} }, hAsync("button", { key: '06555319532a4a266c061fd1d9c37170c8f9fce0', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
24884
24993
|
active: this.active,
|
|
24885
24994
|
"duet-theme-turva": this.theme === "turva",
|
|
24886
|
-
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: '
|
|
24995
|
+
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: '0ea9ceb0e10517319ada16db751234cd3f620d69', name: this.icon, size: "small", margin: "none", color: "secondary" }), hAsync("span", { key: 'd2fc1e1e76b6cde371078a56be4f463fa2592ab2', class: "label" }, hAsync("slot", { key: 'e24116c6f0faf563303c6cfb862c635b5b46852b', name: "label" }), hAsync("duet-icon", { key: '8cd1fdb85c9b4c70767c962dd87e4363f79cb384', class: "caret", name: "action-arrow-down-small", margin: "none", size: "xx-small", color: "secondary" }))), hAsync("div", { key: 'ff90c4f48368c6020919db5272954fbeaf25bcbd', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
24887
24996
|
items: true,
|
|
24888
24997
|
hidden: !this.open,
|
|
24889
24998
|
"duet-theme-turva": this.theme === "turva",
|
|
24890
|
-
} }, hAsync("slot", { key: '
|
|
24999
|
+
} }, hAsync("slot", { key: '7e267c038e415f115df54d5b9ff2c7354614a9ec' })))));
|
|
24891
25000
|
}
|
|
24892
25001
|
get element() { return getElement(this); }
|
|
24893
25002
|
static get style() { return duetSlideoutPanelDropdownCss; }
|
|
@@ -24931,7 +25040,7 @@ class DuetSpacer {
|
|
|
24931
25040
|
* Always the last one in the class.
|
|
24932
25041
|
*/
|
|
24933
25042
|
render() {
|
|
24934
|
-
return (hAsync(Host, { key: '
|
|
25043
|
+
return (hAsync(Host, { key: '76988a79c56144ea938670ea5a369478d5cbbb9d', class: {
|
|
24935
25044
|
"duet-spacer": true,
|
|
24936
25045
|
"duet-spacer-xx-small": this.breakpoint === "xx-small",
|
|
24937
25046
|
"duet-spacer-x-small": this.breakpoint === "x-small",
|
|
@@ -24986,7 +25095,7 @@ class DuetSpinner {
|
|
|
24986
25095
|
*/
|
|
24987
25096
|
render() {
|
|
24988
25097
|
const color = !!this.color && this.color === "currentColor" ? "currentColor" : getColorByName(this.color, this.theme);
|
|
24989
|
-
return (hAsync(Host, { key: '
|
|
25098
|
+
return (hAsync(Host, { key: '61675c5a2a19edc0eba1be2f591f2bde7a7ab8fd' }, hAsync("div", { key: 'cf612fe4fe85f35a7019913136249169aa74163c', class: {
|
|
24990
25099
|
"duet-spinner": true,
|
|
24991
25100
|
[this.size]: true,
|
|
24992
25101
|
"duet-theme-turva": this.theme === "turva",
|
|
@@ -25094,11 +25203,11 @@ class DuetStatusIcon {
|
|
|
25094
25203
|
}
|
|
25095
25204
|
}
|
|
25096
25205
|
render() {
|
|
25097
|
-
return (hAsync(Host, { key: '
|
|
25206
|
+
return (hAsync(Host, { key: '66f1b0519e8fcb4b025f2e1b64963c25b78b0ce1', class: {
|
|
25098
25207
|
[`duet-status-icon-${this.getVariation()}`]: true,
|
|
25099
25208
|
"duet-strong-bg": this.strong,
|
|
25100
25209
|
"duet-m-0": this.margin === "none",
|
|
25101
|
-
} }, hAsync("duet-icon", { key: '
|
|
25210
|
+
} }, hAsync("duet-icon", { key: '91b2d72ca3e85296b48e4cec8c9c5908c4025649', icon: this.getIcon(), size: this.size, margin: "none" })));
|
|
25102
25211
|
}
|
|
25103
25212
|
static get style() { return duetStatusIconCss; }
|
|
25104
25213
|
static get cmpMeta() { return {
|
|
@@ -25220,13 +25329,13 @@ class DuetStep {
|
|
|
25220
25329
|
* Always the last one in the class.
|
|
25221
25330
|
*/
|
|
25222
25331
|
render() {
|
|
25223
|
-
return (hAsync("div", { key: '
|
|
25332
|
+
return (hAsync("div", { key: 'feada3a7c7ec6780e79afdb23123316ab540f4b6', class: {
|
|
25224
25333
|
"duet-step": true,
|
|
25225
25334
|
[`is-${this.state}`]: true,
|
|
25226
25335
|
"rounded-top": this.roundedTop,
|
|
25227
25336
|
"rounded-bottom": this.roundedBottom,
|
|
25228
25337
|
"duet-theme-turva": this.theme === "turva",
|
|
25229
|
-
} }, hAsync("div", { key: '
|
|
25338
|
+
} }, hAsync("div", { key: 'db476849907739144958c523a74ff59d4fa02cb6', class: "duet-step-heading", id: this.buttonId, role: this.state !== "current" ? "button" : "region", "aria-current": this.state === "current" ? "step" : undefined, tabindex: this.state !== "current" ? "0" : undefined, "aria-disabled": this.isClickDisabled().toString(), "aria-expanded": (this.state === "current").toString(), "aria-controls": this.contentId, "aria-selected": (this.state === "current").toString(), onClick: this.handleClick, onKeyDown: this.handleKeyDown, ref: element => (this.buttonElement = element) }, hAsync("div", { key: '50c87080ab159d3c3b21291b364ec76ff0fa3a93', "aria-hidden": "true" }, hAsync("div", { key: '42a157140c2377439884f0af12b4248dec9bfd34', class: "duet-step-counter" }, this.renderStepCounter())), hAsync("duet-spacer", { key: '94aa9e260262de0b9cea9d2fa2c47eb10faded9f', direction: "horizontal", size: "large", breakpoint: "small" }), hAsync("duet-spacer", { key: 'a03e66e47f83ca929b0df04debceb86a2a689b40', direction: "horizontal", size: "medium", breakpoint: "x-small" }), hAsync("div", { key: 'e4da79ec72dc0e986030cd3254f07d0313a7fb47' }, hAsync("duet-heading", { key: '74b1068c7b0625bc4252c62882e596f44205a458', theme: this.theme, level: this.headingLevel, visualLevel: "h4", color: this.headingColor(), margin: "none" }, this.heading)), hAsync("duet-spacer", { key: '3d65d8674ce6b54a17bfa9c355dbf1bb6ab6b4a4', direction: "horizontal", size: "large" }), hAsync("div", { key: 'a17bc89f352a7160004d00a64aa650614fad31e9', class: "duet-step-heading-slot" }, hAsync("slot", { key: '01a89d91a83a2a60e32d88d408a75895f3c68df2', name: "heading-content" }))), hAsync("div", { key: '730bd661a145a1c84f6b475671343f578195454e', class: "duet-step-content-wrapper" }, hAsync("div", { key: 'a95661b180820900e0064b370e62db765a05fcff', class: "duet-step-content", role: "region", "aria-labelledby": this.buttonId, id: this.contentId }, hAsync("slot", { key: 'af8b9819618629683931e6a11e89011e5de7e427' })))));
|
|
25230
25339
|
}
|
|
25231
25340
|
get element() { return getElement(this); }
|
|
25232
25341
|
static get style() { return duetStepCss; }
|
|
@@ -25373,7 +25482,7 @@ class DuetStepper {
|
|
|
25373
25482
|
* Always the last one in the class.
|
|
25374
25483
|
*/
|
|
25375
25484
|
render() {
|
|
25376
|
-
return (hAsync(Host, { key: '
|
|
25485
|
+
return (hAsync(Host, { key: '8a749ceb402c16d72935d15c496ca811cd50b957', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '6aac613a7d6f22aea18a8da6971fdba169e6fa1f', class: { "duet-stepper": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("duet-visually-hidden", { key: '329b1de26e25748913712e9f6c02890ac3aa1431', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement()), hAsync("slot", { key: 'a7346309c44aad2e5ab18fe0ac6d8d73af8b29f5' }))));
|
|
25377
25486
|
}
|
|
25378
25487
|
get element() { return getElement(this); }
|
|
25379
25488
|
static get watchers() { return {
|
|
@@ -25527,19 +25636,19 @@ class DuetSubmenuBar {
|
|
|
25527
25636
|
* Always the last one in the class.
|
|
25528
25637
|
*/
|
|
25529
25638
|
render() {
|
|
25530
|
-
return (hAsync(Host, { key: '
|
|
25639
|
+
return (hAsync(Host, { key: 'd3c7f13bd97536a6c8fc957eeff995a11cd700f1' }, hAsync("nav", { key: '33d3db0a43395d1211e77d348ab5cc1200d55f16', class: {
|
|
25531
25640
|
"duet-submenu-bar": true,
|
|
25532
25641
|
"duet-theme-turva": this.theme === "turva",
|
|
25533
25642
|
hidden: this.hidden,
|
|
25534
|
-
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: '
|
|
25643
|
+
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: '5d58b7f7a4f45d64f55533a007972a0fe334dbc8', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
25535
25644
|
active: this.open,
|
|
25536
|
-
}, onClick: this.onClick }, hAsync("span", { key: '
|
|
25645
|
+
}, onClick: this.onClick }, hAsync("span", { key: 'b63c704252ae0abd39443445c66f0e8d33962bab', class: "label" }, hAsync("slot", { key: '66bcb4983acd319a25ddd403c53cc0eff6a100a4', name: "label" }), hAsync("duet-icon", { key: '139459aa15d1fd051c14e53ed86927cafdb82a96', theme: this.theme, class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" })))), hAsync("div", { key: 'cac6ef2a388f1b6dad1673e3d7198b48fe5ae5d4', class: {
|
|
25537
25646
|
"menu-container": true,
|
|
25538
25647
|
hidden: !this.open,
|
|
25539
|
-
}, role: "presentation" }, hAsync("div", { key: '
|
|
25648
|
+
}, role: "presentation" }, hAsync("div", { key: 'cbd1192338ae183ad463075d7081ec224704d59a', role: this.mobile ? "menu" : null, id: "menu", "aria-labelledby": this.mobile ? "button" : null, "aria-expanded": this.mobile ? (this.open ? "true" : "false") : null, class: {
|
|
25540
25649
|
items: true,
|
|
25541
25650
|
hidden: !this.open,
|
|
25542
|
-
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '
|
|
25651
|
+
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '1ed2556ebc4900043e6943cd26405739e933799a', class: "list", role: this.mobile ? "presentation" : "list" }, hAsync("slot", { key: '3dca8078e8bebb973a96a1a727610ae5fa903db8' }), hAsync("div", { key: 'a4cbdb268b4a92530189e6e212b4b8bd7c2a92e2', class: "list-padding" }))), hAsync("duet-overlay", { key: 'b954f6be12e9613c2ef6d464034205874cba6f98', "keep-stacking-context": true, visible: this.open, "display-device": "not-large", transition: "immediate" })))));
|
|
25543
25652
|
}
|
|
25544
25653
|
get element() { return getElement(this); }
|
|
25545
25654
|
static get watchers() { return {
|
|
@@ -25671,18 +25780,18 @@ class DuetSubmenuBarDropdown {
|
|
|
25671
25780
|
* Always the last one in the class.
|
|
25672
25781
|
*/
|
|
25673
25782
|
render() {
|
|
25674
|
-
return (hAsync(Host, { key: '
|
|
25783
|
+
return (hAsync(Host, { key: 'b6cb68f4a7f9031d91d1ee24dd9d2c9362ac6725', role: "listitem" }, hAsync("div", { key: '7e96c76557c1d6e73b30ebca3306a894febcc82c', class: {
|
|
25675
25784
|
"duet-submenu-bar-dropdown": true,
|
|
25676
25785
|
"duet-theme-turva": this.theme === "turva",
|
|
25677
25786
|
open: this.open,
|
|
25678
25787
|
active: this.active,
|
|
25679
|
-
} }, hAsync("button", { key: '
|
|
25788
|
+
} }, hAsync("button", { key: '7b67d1dcae40e2b849bd6510b40564232c0d5ef1', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
25680
25789
|
open: this.open,
|
|
25681
25790
|
active: this.active,
|
|
25682
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
25791
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '7930a2bb5271755d5bef2033ab4d26e0a1066a3e', class: "submenu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: '421394660c70b14303e7a1ac02077fa2b738122c', class: "label" }, hAsync("span", { key: '0faf06b99e50e65a857da85c547a4faced3ca773', class: "label-text" }, hAsync("slot", { key: 'b1d4f70cfb107ff5dd4babcd7d0da42d2e979f56', name: "label" })), hAsync("duet-icon", { key: 'e240873040259a28f6d5aa3a86600114627e2a97', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '6336348bb6bc7f8cd5630bdbbd3f36920b6ebe5a', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
25683
25792
|
items: true,
|
|
25684
25793
|
hidden: !this.open,
|
|
25685
|
-
} }, hAsync("slot", { key: '
|
|
25794
|
+
} }, hAsync("slot", { key: '1f3bd9f1dabf44b36839eb121c965ead3e3c66fa' })))));
|
|
25686
25795
|
}
|
|
25687
25796
|
get element() { return getElement(this); }
|
|
25688
25797
|
static get style() { return duetSubmenuBarDropdownCss; }
|
|
@@ -25751,12 +25860,12 @@ class DuetSubmenuBarDropdownLink {
|
|
|
25751
25860
|
* Always the last one in the class.
|
|
25752
25861
|
*/
|
|
25753
25862
|
render() {
|
|
25754
|
-
return (hAsync(Host, { key: '
|
|
25863
|
+
return (hAsync(Host, { key: 'd7f1a1d392bb3537d252a930db732bb9a062aa1a' }, hAsync("a", { key: 'f29d863d04d3fb1a4bdced3ca6f4c474dfdf686b', class: {
|
|
25755
25864
|
"duet-submenu-bar-dropdown-link": true,
|
|
25756
25865
|
"duet-theme-turva": this.theme === "turva",
|
|
25757
25866
|
highlight: this.highlight,
|
|
25758
25867
|
active: this.active,
|
|
25759
|
-
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '
|
|
25868
|
+
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: 'e971fcc188cd3bd8165992bf590ca2eab7ac36d2', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), hAsync("span", { key: '0098384100989c6ce00468717181578c80d39577', class: "label-container" }, hAsync("span", { key: '7a7114ef344ebe12bbbf1a86aa1adc93f6877f1b', class: "label" }, hAsync("slot", { key: 'c5ffaea2de58f7b00416bd02d103063278951d6c' })), this.caret && hAsync("duet-icon", { key: 'e0c832ffb658a7561ddc817f5b5af9aa70780bea', name: "action-arrow-right-small", size: "xxx-small", margin: "none" })), this.active && (hAsync("duet-icon", { key: 'f178e2e11a936dba6e05987d34fd3ba6a9d2ad02', class: "active-check", name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
25760
25869
|
}
|
|
25761
25870
|
get element() { return getElement(this); }
|
|
25762
25871
|
static get style() { return duetSubmenuBarDropdownLinkCss; }
|
|
@@ -25852,7 +25961,7 @@ class DuetSubmenuBarItem {
|
|
|
25852
25961
|
render() {
|
|
25853
25962
|
const TagName = this.url ? "a" : "button";
|
|
25854
25963
|
const role = this.url ? "link" : "button";
|
|
25855
|
-
return (hAsync(Host, { key: '
|
|
25964
|
+
return (hAsync(Host, { key: '003100904b0f93856bed193bd01dc1e376b06e6f', role: "listitem" }, hAsync(TagName, { key: 'f16847c6d388d57dca985f6a6ddb9b0d6e1c6157', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: { "duet-submenu-bar-item": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.url, onKeyUp: e => this.handleEscape(e), "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, role: role, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '71b069df0ff1d797f2992b865e6ccbae58ac88d4', class: "leading-icon", theme: this.theme, name: this.leadingIcon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'ff67a89fe841a2be286bffe807a171854cfe2c1f', class: "label" }, hAsync("span", { key: '527aa1d31d10d8b327c62d283882e4c5dda3d362', class: "label-text" }, hAsync("slot", { key: 'd13184e6dc0881e5596c8c9ad59031db71300f33' })), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: '6f1a65c84496095f3fb339ba17f0a80ff9550b03', class: {
|
|
25856
25965
|
"trailing-icon": !!this.trailingIcon,
|
|
25857
25966
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
25858
25967
|
"external-icon": !!this.external,
|
|
@@ -25924,7 +26033,7 @@ class DuetSubmenuBarLink {
|
|
|
25924
26033
|
* Always the last one in the class.
|
|
25925
26034
|
*/
|
|
25926
26035
|
render() {
|
|
25927
|
-
return (hAsync(Host, { key: '
|
|
26036
|
+
return (hAsync(Host, { key: '0b8ab66aa806a5cda83d91b525f0df8f06d594de', role: "listitem" }, hAsync("a", { key: '6afed3047487660b7f969cd5064b985899a86797', class: { "duet-submenu-bar-link": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.href, onKeyUp: e => this.handleEscape(e), "aria-current": this.active ? "true" : "false" }, this.icon && (hAsync("duet-icon", { key: '2c2b94f00eb0428a73255667ed7d320fa81bac1f', class: "submenu-bar-link-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("span", { key: '98e5c15c559592573613071d617fc46cf2b8d6f5', class: "label" }, hAsync("slot", { key: 'b99c0f46131d490d6aa540d646fc7750c255c4b4' })))));
|
|
25928
26037
|
}
|
|
25929
26038
|
get element() { return getElement(this); }
|
|
25930
26039
|
static get style() { return duetSubmenuBarLinkCss; }
|
|
@@ -26050,7 +26159,7 @@ class DuetTab {
|
|
|
26050
26159
|
* Always the last one in the class.
|
|
26051
26160
|
*/
|
|
26052
26161
|
render() {
|
|
26053
|
-
return (hAsync("div", { key: '
|
|
26162
|
+
return (hAsync("div", { key: '12b8133d0bbf92a085f5c39db06ad4f61be77770', ref: element => {
|
|
26054
26163
|
if (!this.contentId) {
|
|
26055
26164
|
this.tabpanelElement = element;
|
|
26056
26165
|
}
|
|
@@ -26059,7 +26168,7 @@ class DuetTab {
|
|
|
26059
26168
|
"duet-tab": true,
|
|
26060
26169
|
selected: this.selected,
|
|
26061
26170
|
"has-content-id": !!this.contentId,
|
|
26062
|
-
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, hAsync("slot", { key: '
|
|
26171
|
+
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, hAsync("slot", { key: 'f4d601ccf9017d30770ea9eaaf5873b32fcab605' })));
|
|
26063
26172
|
}
|
|
26064
26173
|
get element() { return getElement(this); }
|
|
26065
26174
|
static get watchers() { return {
|
|
@@ -26370,13 +26479,13 @@ class DuetTabGroup {
|
|
|
26370
26479
|
[largeBreakpoint]: ["default", "plain", "plain-scrolling"].includes(this.variation) ? true : false,
|
|
26371
26480
|
"duet-theme-turva": this.theme === "turva",
|
|
26372
26481
|
}, onClick: () => this.onTabSelect(index), onKeyDown: ev => this.handleKeyDown(ev) }, this.variation === "checked" ? (hAsync("div", { class: { "checked-tab-content": true, "stackable-checked-tab-content": this.tabs.length <= 3 } }, hAsync("div", { class: { "checked-tab-description": true, "stackable-description": this.tabs.length <= 3 } }, hAsync("p", null, element.label), hAsync("p", { class: { "tab-caption": true, selected: element.selected } }, element.caption)), hAsync("div", { class: { "stackable-checkmark": this.tabs.length <= 3 } }, hAsync("duet-checkmark", { theme: this.theme, checked: element.selected, type: "radio", "presentation-only": true, center: true })))) : (element.label), element.indicator && (hAsync("duet-indicator", { variation: element.indicator, "accessible-label": element.indicatorAccessibleLabel })))));
|
|
26373
|
-
return (hAsync("div", { key: '
|
|
26482
|
+
return (hAsync("div", { key: '9662897bf265783e330558b8a1b463729026b044', class: {
|
|
26374
26483
|
"duet-tab-group": true,
|
|
26375
26484
|
"duet-theme-turva": this.theme === "turva",
|
|
26376
26485
|
[variationClass]: true,
|
|
26377
26486
|
"duet-tab-plain-scrolling": this.variation === "plain-scrolling",
|
|
26378
26487
|
"duet-tab-group-scrolls": true,
|
|
26379
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
26488
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: 'bbeef489c8be2a79c22b7fb355a431fada517c63', role: "tablist", class: {
|
|
26380
26489
|
"duet-m-0": this.margin === "none" || this.variation === "checked",
|
|
26381
26490
|
"duet-tab-group-tabs": true,
|
|
26382
26491
|
"duet-tab-group-hidden": this.tabs.length > 3 && !isSwipeScrollable,
|
|
@@ -26387,11 +26496,11 @@ class DuetTabGroup {
|
|
|
26387
26496
|
} }, this.variation === "checked" ? (buttons) : (hAsync("div", { class: {
|
|
26388
26497
|
"duet-tab-group-scrollable-wrapper": true,
|
|
26389
26498
|
"duet-tab-group-fill-space-wrapper": this.fillSpace && this.variation === "default",
|
|
26390
|
-
} }, this.fillSpace && !this.stretch && this.variation === "default" && (hAsync("div", { class: "duet-scrollable-stretch-overlay" }, hAsync("div", { class: "background" }), hAsync("div", { class: "border" }))), hAsync("duet-scrollable", { selected: this.selected, identifier: this.identifier, gap: ["default", "plain", "plain-scrolling"].includes(this.variation) ? "none" : "large", buttonPosition: this.variation === "default" ? "absolute" : "relative", center: this.isCentered() ? this.isCentered() : this.element.style.textAlign == "center", theme: this.theme, stretch: this.stretch }, buttons)))), hAsync("div", { key: '
|
|
26499
|
+
} }, this.fillSpace && !this.stretch && this.variation === "default" && (hAsync("div", { class: "duet-scrollable-stretch-overlay" }, hAsync("div", { class: "background" }), hAsync("div", { class: "border" }))), hAsync("duet-scrollable", { selected: this.selected, identifier: this.identifier, gap: ["default", "plain", "plain-scrolling"].includes(this.variation) ? "none" : "large", buttonPosition: this.variation === "default" ? "absolute" : "relative", center: this.isCentered() ? this.isCentered() : this.element.style.textAlign == "center", theme: this.theme, stretch: this.stretch }, buttons)))), hAsync("div", { key: '48bc3f8b5d1ec742e59db454a6b1649e29b7605e', class: {
|
|
26391
26500
|
"duet-tab-group-content": true,
|
|
26392
26501
|
"duet-m-0": this.margin === "none",
|
|
26393
26502
|
"checked-group-content": this.variation === "checked",
|
|
26394
|
-
} }, hAsync("slot", { key: '
|
|
26503
|
+
} }, hAsync("slot", { key: 'b6af6d77ff36c34028e664664c71ed391a54066b' }))));
|
|
26395
26504
|
}
|
|
26396
26505
|
get element() { return getElement(this); }
|
|
26397
26506
|
static get style() { return duetTabGroupCss; }
|
|
@@ -27041,7 +27150,7 @@ class DuetTable {
|
|
|
27041
27150
|
}
|
|
27042
27151
|
}
|
|
27043
27152
|
render() {
|
|
27044
|
-
return (hAsync(Host, { key: '
|
|
27153
|
+
return (hAsync(Host, { key: '9f1704f22fc4624b02f78c7aef30b43a788ce295', class: {
|
|
27045
27154
|
[`duet-table-${this.variation}`]: true,
|
|
27046
27155
|
"duet-table-flattened": !this.matchesBreakpoint,
|
|
27047
27156
|
// sticky only valid when in regular table layout
|
|
@@ -27050,7 +27159,7 @@ class DuetTable {
|
|
|
27050
27159
|
"duet-m-0": this.margin === "none",
|
|
27051
27160
|
"duet-theme-turva": this.theme === "turva",
|
|
27052
27161
|
"duet-table-hide-head-visually": this.hideHeadVisually,
|
|
27053
|
-
} }, hAsync("slot", { key: '
|
|
27162
|
+
} }, hAsync("slot", { key: '110acd28c9af7e36e6be318cfc5ad44251b72d32' })));
|
|
27054
27163
|
}
|
|
27055
27164
|
get element() { return getElement(this); }
|
|
27056
27165
|
static get watchers() { return {
|
|
@@ -27313,17 +27422,17 @@ class DuetTextarea {
|
|
|
27313
27422
|
*/
|
|
27314
27423
|
render() {
|
|
27315
27424
|
const identifier = this.identifier || this.textareaId;
|
|
27316
|
-
return (hAsync(Host, { key: '
|
|
27425
|
+
return (hAsync(Host, { key: '211eee926b033df681bfa181f836ac43a4c0ba09', class: {
|
|
27317
27426
|
"duet-m-0": this.margin === "none",
|
|
27318
27427
|
"duet-has-counter": this.counter && !this.error,
|
|
27319
27428
|
"duet-expand": this.expand,
|
|
27320
|
-
} }, hAsync("div", { key: '
|
|
27429
|
+
} }, hAsync("div", { key: 'cfcf260b9fd091276f51e09091a33ff4c3a83d08', class: {
|
|
27321
27430
|
"duet-textarea-container": true,
|
|
27322
27431
|
"duet-theme-turva": this.theme === "turva",
|
|
27323
27432
|
"duet-label-hidden": this.labelHidden,
|
|
27324
27433
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
27325
27434
|
"has-error": !!this.error,
|
|
27326
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
27435
|
+
} }, hAsync(DuetInternalLabel, { key: 'c76014369a86887fda60254a033d25a7b7e1bfb5', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: '9abca81aad0578f879a60f7ad3c3c9c4bf802844', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: '121037f9cfc26ca53cacec00d649deb6bc27f9df', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '591ea1c34b2d913e57339154963abca7250306c2', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), hAsync("div", { key: '76180b11f3d1a22ead10da74a5859ad834692b23', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: '45421d1cb662348a134379db56d11fc5d596258e', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), hAsync("textarea", { key: '90db389f0d9db7978f0e89549b32256a7f7e2bac', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, rows: this.rows, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), hAsync("duet-grid", { key: '87dd339097470f80dd947f348c77b116bc4e03dc', alignment: "stretch" }, hAsync("duet-grid-item", { key: 'e262e22da2fb8ebeef06d26a7ba8745c6847ea17', margin: "none", fill: true }, hAsync("div", { key: 'bf6617b4e6cbdd0acdf6d8e0e10a93c06b74cdc1', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'ff43fd8b7d10d76a7277ffefed9ad8cfc382e126' }, this.error))), hAsync("duet-grid-item", { key: 'e282c9a57669043a61480a74d9f8e4706f91c9fa', margin: "none", class: "duet-character-count-caption" }, this.counter && hAsync(CharacterCount, { key: 'bdc58d108462478349be98a5a082fc3a77a617eb', theme: this.theme, value: this.value, maxlength: this.maxlength }))), this.counter && this.maxlength && (hAsync("duet-visually-hidden", { key: '07ff710ca4335176c57f2131b257e727bf5f15d7', id: this.characterCountId, class: "visually-hidden-counter", "aria-live": "polite" }, this.visuallyHiddenCounterText)))));
|
|
27327
27436
|
}
|
|
27328
27437
|
get element() { return getElement(this); }
|
|
27329
27438
|
static get watchers() { return {
|
|
@@ -27492,11 +27601,11 @@ class DuetToggle {
|
|
|
27492
27601
|
*/
|
|
27493
27602
|
render() {
|
|
27494
27603
|
const identifier = this.identifier || this.toggleId;
|
|
27495
|
-
return (hAsync(Host, { key: '
|
|
27604
|
+
return (hAsync(Host, { key: '89f3936593f8ca70269c76f52de881f4de9cbf0a', onClick: this.disabled || this.loading ? undefined : this.onClick, class: {
|
|
27496
27605
|
"duet-m-0": this.margin === "none",
|
|
27497
27606
|
"duet-toggle-is-disabled": this.disabled,
|
|
27498
27607
|
"duet-toggle-is-loading": this.loading,
|
|
27499
|
-
} }, hAsync("div", { key: '
|
|
27608
|
+
} }, hAsync("div", { key: '601e3dae811479b1295d3c1ed6f83c03dba12540', class: {
|
|
27500
27609
|
"duet-toggle": true,
|
|
27501
27610
|
"duet-theme-turva": this.theme === "turva",
|
|
27502
27611
|
"duet-side-label": this.labelPosition !== "top",
|
|
@@ -27504,7 +27613,7 @@ class DuetToggle {
|
|
|
27504
27613
|
"duet-label-hidden": this.labelHidden,
|
|
27505
27614
|
"duet-toggle-is-disabled": this.disabled,
|
|
27506
27615
|
"duet-toggle-is-loading": this.loading,
|
|
27507
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
27616
|
+
} }, hAsync(DuetInternalLabel, { key: 'be5948b0ebcadfc14210f34cca8eeb1fccb06502', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), hAsync("div", { key: '3f8647b2608163e46f15301079fcc8b122ac3c33', class: "duet-switch" }, hAsync("input", { key: '42a3b6cddb829fb45229d8369771656883036973', type: "checkbox", value: this.value, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, id: identifier, role: this.role, name: this.name, checked: this.checked, required: this.required, disabled: this.disabled || this.loading, ref: input => (this.nativeInput = input) }), hAsync("div", { key: '91479d3cf87e7a3740a50a79a79c1f677e6f8112', class: { "duet-slider": true, "duet-theme-turva": this.theme === "turva" } }), this.loading && hAsync("duet-spinner", { key: '84e0a5c60ce9330f5e4f528e27071ffcd74d1663', color: "primary" }))), this.loading && (hAsync("duet-visually-hidden", { key: '6899d3cb49f592f7fa15aa7b3878678f0c9a3225', "aria-live": "polite" }, this.accessibleLabelLoading || DuetStringsLoadingDefaults[getLanguage()])), this.loadingComplete && (hAsync("duet-visually-hidden", { key: '3ea3bee89470aae2c080774a208a8b47f90599d2', "aria-live": "polite" }, this.accessibleLabelComplete || DuetStringsCompleteDefaults[getLanguage()]))));
|
|
27508
27617
|
}
|
|
27509
27618
|
get element() { return getElement(this); }
|
|
27510
27619
|
static get watchers() { return {
|
|
@@ -27585,11 +27694,11 @@ class DuetToolbar {
|
|
|
27585
27694
|
: this.variation === "secondary"
|
|
27586
27695
|
? "secondary"
|
|
27587
27696
|
: "default";
|
|
27588
|
-
return (hAsync(Host, { key: '
|
|
27697
|
+
return (hAsync(Host, { key: '61e98006169a65d7bbb6625d7451f91f668e35c0' }, hAsync("nav", { key: '82ab3b6e4e0c48b63a0fd35070954c2a5a20a354', class: {
|
|
27589
27698
|
"duet-toolbar": true,
|
|
27590
27699
|
"duet-theme-turva": this.theme === "turva",
|
|
27591
27700
|
[variation]: true,
|
|
27592
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
27701
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '8e5732502152fea0b6440dde585f097993cab4ae', class: "container" }, hAsync("div", { key: 'cfbafa235559cb745df699aa2525ec9b0b0e71cf', class: "list", role: "list" }, hAsync("slot", { key: 'cdf08194cf629b6b753f660c3450dfc0528b78a4', name: "left" })), hAsync("div", { key: '7138e57d143210886eb9b7cdd29e836f35011700', class: "list", role: "list" }, hAsync("slot", { key: '08a8dcaa7bc56cffdf52f5fc5f043b6e44e4efff', name: "right" }))))));
|
|
27593
27702
|
}
|
|
27594
27703
|
get element() { return getElement(this); }
|
|
27595
27704
|
static get style() { return duetToolbarCss; }
|
|
@@ -27670,18 +27779,18 @@ class DuetToolbarDropdown {
|
|
|
27670
27779
|
itemsAlign = this.element.parentElement.getAttribute("slot") === "left" ? "right" : "left";
|
|
27671
27780
|
}
|
|
27672
27781
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
27673
|
-
return (hAsync(Host, { key: '
|
|
27782
|
+
return (hAsync(Host, { key: '22cb35015320274acce981985df55799665b713a', role: "listitem" }, hAsync("div", { key: '466adb2c4849f05177cfe4a50f7ac1faa08949ba', class: {
|
|
27674
27783
|
"duet-toolbar-dropdown": true,
|
|
27675
27784
|
"duet-theme-turva": this.theme === "turva",
|
|
27676
27785
|
[itemsAlign]: true,
|
|
27677
27786
|
[variation]: true,
|
|
27678
|
-
} }, hAsync("button", { key: '
|
|
27787
|
+
} }, hAsync("button", { key: 'dc93624c73cce00736c82811b784ae313e15dd77', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, id: "button", type: "button", class: {
|
|
27679
27788
|
active: this.active,
|
|
27680
27789
|
open: this.open,
|
|
27681
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
27790
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '5f01f840acddd63571251a53b8e5f948ab9f4e9c', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("span", { key: '9bb302d4f43dffd773318d9e51efdac336fca57d', class: "label" }, hAsync("slot", { key: '98ca0e3de14cf72a8744842709e29715940cf9ef', name: "label" }), hAsync("duet-icon", { key: '8cbb044036478aeebb855d566b46180344a42b6f', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: 'b3599e83b70469818f63333ff6b6379ee73d55c0', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
27682
27791
|
items: true,
|
|
27683
27792
|
hidden: !this.open,
|
|
27684
|
-
} }, hAsync("slot", { key: '
|
|
27793
|
+
} }, hAsync("slot", { key: '28830c7ce0bb0900d77074989dd4f239158ae5b4' })))));
|
|
27685
27794
|
}
|
|
27686
27795
|
get element() { return getElement(this); }
|
|
27687
27796
|
static get style() { return duetToolbarDropdownCss; }
|
|
@@ -27747,11 +27856,11 @@ class DuetToolbarDropdownLink {
|
|
|
27747
27856
|
* Always the last one in the class.
|
|
27748
27857
|
*/
|
|
27749
27858
|
render() {
|
|
27750
|
-
return (hAsync(Host, { key: '
|
|
27859
|
+
return (hAsync(Host, { key: '3e2d19344c30c5f4aaa61b8ba843140145f9472e' }, hAsync("a", { key: '1c6b82c5be15bb9aae1591a3ad4b677a933f42d5', class: {
|
|
27751
27860
|
"duet-toolbar-dropdown-link": true,
|
|
27752
27861
|
"duet-theme-turva": this.theme === "turva",
|
|
27753
27862
|
active: this.active,
|
|
27754
|
-
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '
|
|
27863
|
+
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '77cb536dcca7ad1a91b58af50a9ba02709f9cbf9', name: this.icon, size: "x-small", margin: "none" }), hAsync("span", { key: '2dafae9c60150889a0d75f3b87e8744d8d236095', class: "label" }, hAsync("slot", { key: '08c22e9d5dee73d3398843901654cfd78505f5b4' })), this.active && (hAsync("duet-icon", { key: '0a99a17b4854ea9d34a86f762c3651e8ef018bd7', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
27755
27864
|
}
|
|
27756
27865
|
get element() { return getElement(this); }
|
|
27757
27866
|
static get style() { return duetToolbarDropdownLinkCss; }
|
|
@@ -27854,17 +27963,17 @@ class DuetToolbarItem {
|
|
|
27854
27963
|
: this.variation === "secondary"
|
|
27855
27964
|
? "secondary"
|
|
27856
27965
|
: "default";
|
|
27857
|
-
return (hAsync(Host, { key: '
|
|
27966
|
+
return (hAsync(Host, { key: 'c3b26e4d4e56b5fcb57e2d2ca8d1a4a80932ede0', role: "listitem" }, this.badge && hAsync("duet-indicator", { key: 'a4d75c4424e5dead88857241566a903d66c5dda4', variation: "change" }), hAsync(TagName, { key: '77679eaaff1b154f672efb08e66f0ad292db0f8f', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
27858
27967
|
"duet-toolbar-item": true,
|
|
27859
27968
|
"duet-theme-turva": this.theme === "turva",
|
|
27860
27969
|
active: this.active,
|
|
27861
27970
|
[variation]: true,
|
|
27862
|
-
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("div", { key: '
|
|
27971
|
+
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("div", { key: '6c72cdc06b33d97ddecbea15e5691761629cbd1d', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: '9ad57ebb409bafcb728b0e1c8f7aea4a226ff685', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && hAsync("div", { key: 'fd35055e936b2ec542013846a21ae65f5a713d40', class: "duet-toolbar-badge" }))), hAsync("slot", { key: '4b83ed066d92cdebc3a1bd555881cdc66e65874c' }), (this.trailingIcon || (this.url && this.external)) && (hAsync("div", { key: '613e202f68cb843af58cbfdc8a416c8305dc02de', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: 'a124e6d2a3235c867451110766122664707939b5', class: {
|
|
27863
27972
|
"trailing-icon": !!this.trailingIcon,
|
|
27864
27973
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
27865
27974
|
"external-icon": !!(this.url && this.external),
|
|
27866
27975
|
rotate: this.trailingIcon === "action-arrow-down-small" && this.accessibleExpanded,
|
|
27867
|
-
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && hAsync("div", { key: '
|
|
27976
|
+
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && hAsync("div", { key: '22150daad32a8e7a5d4ec06e62d78caf4c822232', class: "duet-toolbar-badge" }))))));
|
|
27868
27977
|
}
|
|
27869
27978
|
get element() { return getElement(this); }
|
|
27870
27979
|
static get style() { return duetToolbarItemCss; }
|
|
@@ -27931,12 +28040,12 @@ class DuetToolbarLink {
|
|
|
27931
28040
|
*/
|
|
27932
28041
|
render() {
|
|
27933
28042
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
27934
|
-
return (hAsync(Host, { key: '
|
|
28043
|
+
return (hAsync(Host, { key: 'd5a11257db70c563cd2b15b062b11fc221b88c51', role: "listitem" }, hAsync("a", { key: 'a104104ad8ad87083e0329f3c7c70d175b2b23c6', class: {
|
|
27935
28044
|
"duet-toolbar-link": true,
|
|
27936
28045
|
"duet-theme-turva": this.theme === "turva",
|
|
27937
28046
|
active: this.active,
|
|
27938
28047
|
[variation]: true,
|
|
27939
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
28048
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '592cc3e8546dfc89ed53a591c367c4f88d18abea', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: '2ce50e32cb75f09a50ca4dafdcbc7e94aea500c3' }))));
|
|
27940
28049
|
}
|
|
27941
28050
|
get element() { return getElement(this); }
|
|
27942
28051
|
static get style() { return duetToolbarLinkCss; }
|
|
@@ -28114,9 +28223,13 @@ class DuetTooltip {
|
|
|
28114
28223
|
// Not closing via this.closeTooltip() as it calls this.updatePlacement() causing an infinite loop
|
|
28115
28224
|
this.active = false;
|
|
28116
28225
|
}
|
|
28117
|
-
const
|
|
28226
|
+
const middleware = [flip(), shift({ padding: 5 }), arrow({ element: this.arrowEl })];
|
|
28227
|
+
if (this.badgeElement) {
|
|
28228
|
+
middleware.unshift(offset(10));
|
|
28229
|
+
}
|
|
28230
|
+
const position = await computePosition(this.badgeElement || this.buttonEl, this.popupElement, {
|
|
28118
28231
|
placement,
|
|
28119
|
-
middleware
|
|
28232
|
+
middleware,
|
|
28120
28233
|
});
|
|
28121
28234
|
this.tooltipY = position.y;
|
|
28122
28235
|
this.tooltipX = position.x;
|
|
@@ -28124,6 +28237,12 @@ class DuetTooltip {
|
|
|
28124
28237
|
this.arrowY = (_a = position.middlewareData.arrow) === null || _a === void 0 ? void 0 : _a.y;
|
|
28125
28238
|
this.arrowX = (_b = position.middlewareData.arrow) === null || _b === void 0 ? void 0 : _b.x;
|
|
28126
28239
|
};
|
|
28240
|
+
this.badgeClick = (ev) => {
|
|
28241
|
+
if (ev.composedPath().includes(this.buttonEl)) {
|
|
28242
|
+
return;
|
|
28243
|
+
}
|
|
28244
|
+
this.buttonEl.click();
|
|
28245
|
+
};
|
|
28127
28246
|
}
|
|
28128
28247
|
/**
|
|
28129
28248
|
* Component lifecycle events.
|
|
@@ -28156,9 +28275,16 @@ class DuetTooltip {
|
|
|
28156
28275
|
if (this.firstRender) {
|
|
28157
28276
|
this.firstRender = false;
|
|
28158
28277
|
}
|
|
28278
|
+
if (this.badgeElement) {
|
|
28279
|
+
this.badgeElement.removeEventListener("click", this.badgeClick);
|
|
28280
|
+
this.badgeElement.addEventListener("click", this.badgeClick);
|
|
28281
|
+
}
|
|
28159
28282
|
}
|
|
28160
28283
|
disconnectedCallback() {
|
|
28161
28284
|
disconnectLanguageChangeObserver(this);
|
|
28285
|
+
if (this.badgeElement) {
|
|
28286
|
+
this.badgeElement.removeEventListener("click", this.badgeClick);
|
|
28287
|
+
}
|
|
28162
28288
|
}
|
|
28163
28289
|
handleDocumentClick(e) {
|
|
28164
28290
|
if (!this.active) {
|
|
@@ -28221,6 +28347,7 @@ class DuetTooltip {
|
|
|
28221
28347
|
"positionHorizontal": [513, "position-horizontal"],
|
|
28222
28348
|
"active": [1540],
|
|
28223
28349
|
"negative": [4],
|
|
28350
|
+
"badgeElement": [16, "badge-element"],
|
|
28224
28351
|
"placement": [32],
|
|
28225
28352
|
"tooltipY": [32],
|
|
28226
28353
|
"tooltipX": [32],
|
|
@@ -28235,7 +28362,7 @@ class DuetTooltip {
|
|
|
28235
28362
|
}; }
|
|
28236
28363
|
}
|
|
28237
28364
|
|
|
28238
|
-
const duetTooltipButtonCss = "*,*::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}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button:focus{outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-tooltip-button:focus,:host(.user-is-tabbing) .duet-tooltip-button:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-tooltip-button.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:hover{color:rgb(0, 75, 129)}.duet-tooltip-button:hover.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:focus,:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.25;vertical-align:top;text-align:left;white-space:normal}.duet-
|
|
28365
|
+
const duetTooltipButtonCss = "*,*::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}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button:focus{outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-tooltip-button:focus,:host(.user-is-tabbing) .duet-tooltip-button:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-tooltip-button.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:hover{color:rgb(0, 75, 129)}.duet-tooltip-button:hover.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:focus,:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button.duet-tooltip-button-in-badge{width:16px;min-width:16px;height:16px;color:inherit}.duet-tooltip-button.duet-tooltip-button-in-badge:focus{outline:0 !important}.duet-tooltip-button.duet-tooltip-button-in-badge svg{width:12px;height:12px}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.25;vertical-align:top;text-align:left;white-space:normal}.duet-theme-turva.duet-tooltip-button{color:rgb(230, 23, 64)}.duet-theme-turva.duet-tooltip-button:hover{color:rgb(230, 23, 64)}.duet-theme-turva.duet-tooltip-button.duet-tooltip-button-in-badge{color:inherit}.duet-theme-turva .duet-tooltip-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}";
|
|
28239
28366
|
|
|
28240
28367
|
/**
|
|
28241
28368
|
* @internal
|
|
@@ -28247,6 +28374,7 @@ class DuetTooltipButton {
|
|
|
28247
28374
|
this.label = "";
|
|
28248
28375
|
this.theme = "";
|
|
28249
28376
|
this.negative = false;
|
|
28377
|
+
this.inBadge = false;
|
|
28250
28378
|
}
|
|
28251
28379
|
/**
|
|
28252
28380
|
* Component lifecycle events.
|
|
@@ -28270,13 +28398,14 @@ class DuetTooltipButton {
|
|
|
28270
28398
|
* Always the last one in the class.
|
|
28271
28399
|
*/
|
|
28272
28400
|
render() {
|
|
28273
|
-
const visuallyHidden = hAsync("duet-visually-hidden", { key: '
|
|
28274
|
-
return (hAsync(Host, { key: '
|
|
28401
|
+
const visuallyHidden = hAsync("duet-visually-hidden", { key: 'ded762f4e7856c8f1c4d095463a406e98f7b82f0' }, this.accessibleLabel);
|
|
28402
|
+
return (hAsync(Host, { key: '6711d2a89b2dc210baf333a0c0023e78b7d5697f' }, hAsync("button", { key: '1d9e860f68303cbe9f78df1b29643d27d266168c', ref: el => (this.buttonElement = el), "aria-controls": this.tooltipId, "aria-expanded": this.active ? "true" : "false", type: "button", class: {
|
|
28275
28403
|
"duet-tooltip-button": true,
|
|
28276
28404
|
"duet-tooltip-button-has-label": !!this.label,
|
|
28277
28405
|
"duet-theme-turva": this.theme === "turva",
|
|
28278
28406
|
"duet-tooltip-button-negative": this.negative,
|
|
28279
|
-
|
|
28407
|
+
"duet-tooltip-button-in-badge": this.inBadge,
|
|
28408
|
+
} }, hAsync("svg", { key: 'c9891f25e887b6d7a7a4abac4df3a70e4ddf384a', "aria-hidden": "true", role: "img", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '9bd8e387ee6d5a371c80a5f2804661463b044875', d: "m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z" }), hAsync("circle", { key: '438bd9ee6f284ee38e3dab022b945fce9f1623ed', cx: "11.625", cy: "7.125", r: "1.125" }), hAsync("path", { key: '210feefcda3be6b66e077942f3e55129a2492277', d: "m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z" })), this.label ? (hAsync("span", { class: "duet-tooltip-label" }, this.label, visuallyHidden)) : (visuallyHidden))));
|
|
28280
28409
|
}
|
|
28281
28410
|
get element() { return getElement(this); }
|
|
28282
28411
|
static get style() { return duetTooltipButtonCss; }
|
|
@@ -28290,6 +28419,7 @@ class DuetTooltipButton {
|
|
|
28290
28419
|
"negative": [4],
|
|
28291
28420
|
"active": [4],
|
|
28292
28421
|
"tooltipId": [1, "tooltip-id"],
|
|
28422
|
+
"inBadge": [4, "in-badge"],
|
|
28293
28423
|
"setFocus": [64]
|
|
28294
28424
|
},
|
|
28295
28425
|
"$listeners$": undefined,
|
|
@@ -28298,7 +28428,7 @@ class DuetTooltipButton {
|
|
|
28298
28428
|
}; }
|
|
28299
28429
|
}
|
|
28300
28430
|
|
|
28301
|
-
const duetTooltipPopupCss = "*,*::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;position:absolute;z-index:950}.duet-tooltip{position:relative;visibility:hidden;width:282px;min-height:48px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transform-origin:100% 100%;transition:300ms ease}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-
|
|
28431
|
+
const duetTooltipPopupCss = "*,*::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;position:absolute;z-index:950}.duet-tooltip{position:relative;visibility:hidden;width:282px;min-height:48px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transform-origin:100% 100%;transition:300ms ease}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-21px}.duet-tooltip .arrow-container{position:relative;left:4px;width:100%;height:100%;pointer-events:none}.duet-tooltip .arrow-container::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:\"\"}.duet-tooltip .arrow-container::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:\"\"}.duet-tooltip .arrow-container.top::after,.duet-tooltip .arrow-container.top-start::after,.duet-tooltip .arrow-container.top-end::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.top::before,.duet-tooltip .arrow-container.top-start::before,.duet-tooltip .arrow-container.top-end::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(212, 223, 229)}.duet-tooltip .arrow-container.bottom::after,.duet-tooltip .arrow-container.bottom-start::after,.duet-tooltip .arrow-container.bottom-end::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.bottom::before,.duet-tooltip .arrow-container.bottom-start::before,.duet-tooltip .arrow-container.bottom-end::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(212, 223, 229)}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-content-area{padding:20px !important;width:100%;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-content-area:focus{outline:0}:host(.user-is-tabbing) .duet-tooltip-content-area:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-tooltip-content-area:focus,:host(.user-is-tabbing) .duet-tooltip-content-area:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-tooltip-content-area::-webkit-scrollbar{width:4px}.duet-tooltip-content-area::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-content-area::-webkit-scrollbar-thumb{background:rgb(212, 223, 229);border-radius:4px}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(8, 42, 77);-webkit-appearance:none;appearance:none;cursor:pointer;background:rgb(245, 248, 250);border-radius:50%}.duet-tooltip-close:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-tooltip-close:focus,.duet-tooltip-close:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-tooltip-close{color:rgb(23, 42, 59)}.duet-theme-turva.duet-tooltip.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59);border-color:rgb(212, 221, 226);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-theme-turva.duet-tooltip .arrow-container.top::before,.duet-theme-turva.duet-tooltip .arrow-container.top-start::before,.duet-theme-turva.duet-tooltip .arrow-container.top-end::before{border-top:11px solid rgb(212, 221, 226)}.duet-theme-turva.duet-tooltip .arrow-container.bottom::before,.duet-theme-turva.duet-tooltip .arrow-container.bottom-start::before,.duet-theme-turva.duet-tooltip .arrow-container.bottom-end::before{border-bottom:11px solid rgb(212, 221, 226)}.duet-theme-turva .duet-tooltip-content-area::-webkit-scrollbar-thumb{background:rgb(212, 221, 226)}.duet-theme-turva .duet-tooltip-close{color:rgb(23, 42, 59)}";
|
|
28302
28432
|
|
|
28303
28433
|
/**
|
|
28304
28434
|
* @internal
|
|
@@ -28341,14 +28471,14 @@ class DuetTooltipPopup {
|
|
|
28341
28471
|
this.contentEl.focus();
|
|
28342
28472
|
}
|
|
28343
28473
|
render() {
|
|
28344
|
-
return (hAsync(Host, { key: '
|
|
28474
|
+
return (hAsync(Host, { key: '29d3de91254dc1a869484f580648311e15f56b30' }, hAsync("div", { key: '662564b5f5fc5f057084ca43fbe0d5d63fa2dc9f', class: {
|
|
28345
28475
|
"duet-tooltip": true,
|
|
28346
28476
|
"duet-theme-turva": this.theme === "turva",
|
|
28347
28477
|
"duet-tooltip-active": this.active === true,
|
|
28348
|
-
} }, hAsync(FocusGuard, { key: '
|
|
28478
|
+
} }, hAsync(FocusGuard, { key: '92e046c9658d3e58aa005493211c2e80b7f6d4e9', moveFocusTo: this.buttonEl }), hAsync("div", { key: '13dec9440e718fa77cb153d95cc85767b363b560', ref: element => (this.contentEl = element), class: {
|
|
28349
28479
|
"duet-tooltip-content-area": true,
|
|
28350
28480
|
"duet-theme-turva": this.theme === "turva",
|
|
28351
|
-
}, tabindex: -1, id: this.tooltipId }, hAsync("slot", { key: '
|
|
28481
|
+
}, tabindex: -1, id: this.tooltipId }, hAsync("slot", { key: '2b64af48cdfa6caeed19a5f2d013b46d99e4bfde' })), hAsync("div", { key: '77032302c1bef1d1b58194dfae5cc3f4e53a2bd4', ref: element => (this.arrowEl = element), class: { arrow: true, [this.placement]: true }, style: this.arrowStyles }, hAsync("div", { key: '5cf2ad060245b552eacc2cb4baf7d23bd167fefa', class: { "arrow-container": true, [this.placement]: true } })), hAsync("button", { key: 'd2c072d73e9c1830d9dda8cbdddcabb926741a58', type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick, ref: el => (this.buttonEl = el) }, hAsync("duet-icon", { key: '3139344fdf52410ea53e3fd84fc2c464c446e696', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), hAsync("duet-visually-hidden", { key: '45770929e752f3292cfb55a302c4bbb788ae7d52' }, this.accessibleCloseLabel)), hAsync(FocusGuard, { key: 'b88bd4a634b78548fb910db91e2b3263cb7e5bd2', moveFocusTo: this.contentEl }))));
|
|
28352
28482
|
}
|
|
28353
28483
|
get element() { return getElement(this); }
|
|
28354
28484
|
static get style() { return duetTooltipPopupCss; }
|
|
@@ -28497,14 +28627,14 @@ class DuetTray {
|
|
|
28497
28627
|
* Always the last one in the class.
|
|
28498
28628
|
*/
|
|
28499
28629
|
render() {
|
|
28500
|
-
return (hAsync("div", { key: '
|
|
28630
|
+
return (hAsync("div", { key: '62e6d87f9a5ff9a959bd15fea1a0b6d4f2f78018', class: {
|
|
28501
28631
|
"duet-tray": true,
|
|
28502
28632
|
"duet-tray-is-active": this.active,
|
|
28503
28633
|
"duet-tray-is-hidden": this.hiddenState,
|
|
28504
28634
|
"duet-tray-is-responsive": this.responsive,
|
|
28505
28635
|
"duet-theme-turva": this.theme === "turva",
|
|
28506
28636
|
"duet-tray-is-expandable": this.hasAdditionalContent,
|
|
28507
|
-
} }, hAsync("div", { key: '
|
|
28637
|
+
} }, hAsync("div", { key: 'f1c78227de8998333acf857905e95c6d6be25937', class: "duet-tray-default-content", role: "status" }, hAsync("slot", { key: 'd7748f81620cd98c5a8b35a18e344302d756a0a0' })), this.hasAdditionalContent && (hAsync(Fragment, { key: 'f87597291a46075ceda6d114fe67ffa1df52870b' }, hAsync("button", { key: '2886b0325718e16d0c904fa327ceb3d8c318d7bf', "aria-expanded": this.expanded ? "true" : "false", "aria-controls": this.expandableId, onClick: ev => this.toggleExpandable(ev), class: { "duet-tray-button": true, "duet-tray-is-expanded": this.expanded } }, hAsync("duet-icon", { key: 'afe046c5fc6baf22268fe063cd0c6d2bd0e661ea', name: "action-arrow-down", size: "small", color: "currentColor", margin: "none" }), hAsync("duet-visually-hidden", { key: '44c04a86d76063ef62ecd3544f25a09a1d6901dc' }, this.expanded ? this.accessibleCloseLabel : this.accessibleOpenLabel)), hAsync("div", { key: '89aa1e7d332a1d8aa649eaff0c798bfaf6349964', id: this.expandableId, class: { "duet-tray-expandable": true, active: this.expanded } }, hAsync("div", { key: 'ad9f9814c60e70a8a19a0872d3006fcdd4d36f62', class: "duet-tray-expandable-content" }, hAsync("slot", { key: 'd319a5002fb41dbd3f7d036c881a064a5f2dd832', name: "additional" })))))));
|
|
28508
28638
|
}
|
|
28509
28639
|
get element() { return getElement(this); }
|
|
28510
28640
|
static get style() { return duetTrayCss; }
|
|
@@ -29819,10 +29949,10 @@ class DuetUpload {
|
|
|
29819
29949
|
this.externalUploadButton.accessibleLabel = `${this.externalUploadButton.innerText}. ${caption}`;
|
|
29820
29950
|
}
|
|
29821
29951
|
// @ts-ignore
|
|
29822
|
-
return (hAsync(Host, { key: '
|
|
29952
|
+
return (hAsync(Host, { key: 'fe296e7a1f173e1f9d106725647de568270f7381', class: { "duet-m-0": this.margin === "none" } }, hAsync("duet-fieldset", { key: '72451c8e8021c8efdbef350e92d5d00db671f5eb', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, hAsync("slot", { key: '120762b8d74276d518b1a4aa5ebc9267bb821b86', name: "header" }), !this.files.size && (hAsync("duet-empty-state", { key: '7d1685f051c1607ed5984f21ca0306cffb135f9c', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, hAsync("duet-paragraph", { key: '4341d78e97e8842976517a9427dad1fb79f15600', margin: "none" }, this.fileListEmpty))), !!this.files.size && hAsync("slot", { key: 'ebd5fcbee689a2d69689a66da5770057f959e05b', name: "fileheader" }), !!this.files.size && (hAsync("duet-upload-aria-status", { key: 'da8d067ccff2b9de4ef7036d28538c3e1a99813a', invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && hAsync("slot", { key: '72fb36ce235d388cf811d0b1e2689e673f166aee', name: "filefooter" }), hAsync("slot", { key: '1f0f3dc31f01636b94567622dc365a743bb9c555', name: "uploadfooter" }), this.captionOnBottom && (hAsync("duet-caption", { key: '071ab836a62ea4c49ab66af59eebf8fd8e6ac0a1', margin: "none", size: "small" }, hAsync("div", { key: '8cb3bbe8afe46260ee01de1ccfec1171ad7d15b3', class: "upload-bottom-caption" }, caption))), hAsync("slot", { key: '6ccb7bba76d874455cb6c6e4cde19fb4f3118c84', name: "afterfooter" }), !this.hideButton && (hAsync(Fragment, { key: 'fb69a17ce2cd8ab89382b3a88aaf11c3ec5111d3' }, hAsync("duet-spacer", { key: 'd12382964296660b0138d5e7cb23119d9ba51315', size: "large" }), hAsync("duet-button", { key: '585b1a6670caf0810ea89a1dc930b4cb7a45c09a', id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel || `${this.buttonLabel}. ${caption}`, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel))), (this.fileMaxReached ||
|
|
29823
29953
|
this.bytesMaxReached ||
|
|
29824
29954
|
this.filesToUploadExceedsLimit ||
|
|
29825
|
-
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: '
|
|
29955
|
+
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: '2c6faea7f05f92b8156afb6125ed218230d03a9b' }, hAsync("duet-spacer", { key: '0a03717e16ad6080343f46e9cea6235fe7c95fb3', size: "medium" }), hAsync("duet-alert", { key: '6e455df241d9c0371a4ac45e9d7f11f9d5b2469a', part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && getI18nError("duet-upload-202", this.errorCodes), this.filesToUploadExceedsLimit && getI18nError("duet-upload-302", this.errorCodes), this.filesToUploadTotalSizeIsAboveMax && getI18nError("duet-upload-203", this.errorCodes)))), hAsync("duet-visually-hidden", { key: '0dcf57e2b593b8b4581b9516300d7fcf93a94ded', "aria-hidden": "true" }, hAsync("input", { key: '8c8089792d4049c26b827d1b543bd9ddaaba326b', ref: input => {
|
|
29826
29956
|
this.nativeInput = input;
|
|
29827
29957
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
29828
29958
|
"duet-upload": true,
|
|
@@ -30164,7 +30294,7 @@ class DuetUploadAriaStatus {
|
|
|
30164
30294
|
* Always the last one in the class.
|
|
30165
30295
|
*/
|
|
30166
30296
|
render() {
|
|
30167
|
-
return (hAsync(Host, { key: '
|
|
30297
|
+
return (hAsync(Host, { key: '8da58752d98bfb8c52ddcd1d48112711fd2ea5c6', role: "status", "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, hAsync("duet-visually-hidden", { key: '78ecb9ee37907bdbdb174bf58b75af88b2edfbd1' }, this.statusMessage)));
|
|
30168
30298
|
}
|
|
30169
30299
|
get element() { return getElement(this); }
|
|
30170
30300
|
static get watchers() { return {
|
|
@@ -30240,7 +30370,7 @@ let DuetUploadItem$1 = class DuetUploadItem {
|
|
|
30240
30370
|
inheritGlobalTheme(this);
|
|
30241
30371
|
}
|
|
30242
30372
|
render() {
|
|
30243
|
-
return (hAsync(Host, { key: '
|
|
30373
|
+
return (hAsync(Host, { key: 'f17176210e5f0675eb847b4d9d60594a226e3dab' }, hAsync("duet-visually-hidden", { key: '3a0eef27ad35e9348f9047f8ad2dcf13c5a9ad76', "aria-hidden": "true" }, hAsync("input", { key: '4c67d86c2f388fbd4e2914013b0611e973a24e35', ref: input => {
|
|
30244
30374
|
this.nativeInput = input;
|
|
30245
30375
|
}, type: "file", class: {
|
|
30246
30376
|
"duet-upload": true,
|
|
@@ -30344,9 +30474,9 @@ class DuetUploadItem {
|
|
|
30344
30474
|
const { uid, meta, item } = this.data;
|
|
30345
30475
|
const Badges = meta && meta.badges ? (hAsync("span", null, meta.badges.map(badgeText => (hAsync("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
30346
30476
|
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${item.name}`;
|
|
30347
|
-
return (hAsync("div", { key: '
|
|
30477
|
+
return (hAsync("div", { key: '6ce0c4b0b64b9726755ba74c037759bfa90d0a1a', class: {
|
|
30348
30478
|
"upload-item-row": true,
|
|
30349
|
-
} }, this.showCategory && (hAsync("div", { key: '
|
|
30479
|
+
} }, this.showCategory && (hAsync("div", { key: 'a54b15975dfb0b72019838f7b77009c974b9e4bf', class: "item-categories" }, hAsync("duet-heading", { key: '1f71cfd6a0573e176e7874fa14005afc36d7a885', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.categoryLabel)), Badges)), hAsync("div", { key: '5788235ef6265f08adbc17020fccb8fa8ba5bb77', class: { "item-name": true, "no-category": !this.showCategory } }, !!this.label && (hAsync("duet-heading", { key: '43235e4073c7cb9c3b81c9efd2c58c3938c5503c', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.label))), this.getFileNameLine()), hAsync("div", { key: '5d69daba599aec48c4a98ca0f1543a9dbbead4b3', class: "item-actions" }, this.actions.map(actionItem => {
|
|
30350
30480
|
return (hAsync("duet-action-button", { actionMeta: Object.assign({}, meta || {}), actionId: uid || null, actionName: actionItem.name, theme: this.theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${actionDescription} ${getLocaleString(actionItem.label)} `, accessibleTitle: this.getActionButtonTitle(actionItem), ref: button => (this.actionButton = button) }));
|
|
30351
30481
|
}))));
|
|
30352
30482
|
}
|
|
@@ -30386,7 +30516,7 @@ class DuetVisuallyHidden {
|
|
|
30386
30516
|
* Always the last one in the class.
|
|
30387
30517
|
*/
|
|
30388
30518
|
render() {
|
|
30389
|
-
return (hAsync(Host, { key: '
|
|
30519
|
+
return (hAsync(Host, { key: 'ef47dba78565c8af97e21ac63b93ca377c20f0dc', class: "duet-visually-hidden" }, hAsync("slot", { key: '228e005804125169d172ba680bed0f6955aa13a0' })));
|
|
30390
30520
|
}
|
|
30391
30521
|
get element() { return getElement(this); }
|
|
30392
30522
|
static get style() { return duetVisuallyHiddenCss; }
|