@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
|
@@ -18,6 +18,11 @@ export class DuetPhoneInput {
|
|
|
18
18
|
fi: "Valitse maatunnus",
|
|
19
19
|
sv: "Välj landskod",
|
|
20
20
|
};
|
|
21
|
+
this.buttonAriaLabelSelected = {
|
|
22
|
+
en: "Now selected",
|
|
23
|
+
fi: "Nyt valittu",
|
|
24
|
+
sv: "Nu vald",
|
|
25
|
+
};
|
|
21
26
|
this.language = getLanguage();
|
|
22
27
|
/**
|
|
23
28
|
* Theme of the input.
|
|
@@ -285,6 +290,13 @@ export class DuetPhoneInput {
|
|
|
285
290
|
}
|
|
286
291
|
return this.renderFlag(this.currentCountry.isoCode, true);
|
|
287
292
|
}
|
|
293
|
+
getAccessibleLabelForButton() {
|
|
294
|
+
const select = this.buttonAriaLabel[this.language];
|
|
295
|
+
const selected = this.currentCountry
|
|
296
|
+
? ` ${this.buttonAriaLabelSelected[this.language]}, ${this.currentCountry[this.language]}.`
|
|
297
|
+
: "";
|
|
298
|
+
return `${select}.${selected}`;
|
|
299
|
+
}
|
|
288
300
|
render() {
|
|
289
301
|
if (Build.isServer) {
|
|
290
302
|
return;
|
|
@@ -297,7 +309,7 @@ export class DuetPhoneInput {
|
|
|
297
309
|
"duet-theme-turva": this.theme === "turva",
|
|
298
310
|
"duet-expand": this.expand,
|
|
299
311
|
"duet-m-0": this.margin === "none",
|
|
300
|
-
} }, h("div", { class: "duet-phone-input-container" }, h("duet-popup-menu", { ref: el => (this.countryCodePopup = el), scrollLimit: 10, showFilterInput: true }, this.countriesToList.map(country => country.isoCode === lastListFirstCode ? (h(Fragment, null, h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")"))), h("duet-divider", null))) : (h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")")))))), h("duet-input", { ref: el => (this.duetInputElement = el), onDuetChange: this.handleChange, onDuetFocus: this.handleFocus, onDuetBlur: this.handleBlur, onDuetInput: this.handleInput, label: this.label, caption: this.caption, error: this.error, name: this.name, minlength: this.minlength, maxlength: this.maxlength, component: "phone", variation: "button-left", type: "tel", disallowPattern: "[^\\+0-9 ]", required: this.required, disabled: this.disabled, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true }, h("duet-button", { ref: el => (this.countryCodeButton = el), slot: "button-left", variation: "input-button-left-secondary", margin: "none", fixed: true, icon: "action-arrow-down-small", iconSize: "small", iconRight: true, accessibleLabel: this.
|
|
312
|
+
} }, h("div", { class: "duet-phone-input-container" }, h("duet-popup-menu", { ref: el => (this.countryCodePopup = el), scrollLimit: 10, showFilterInput: true }, this.countriesToList.map(country => country.isoCode === lastListFirstCode ? (h(Fragment, null, h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")"))), h("duet-divider", null))) : (h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")")))))), h("duet-input", { ref: el => (this.duetInputElement = el), onDuetChange: this.handleChange, onDuetFocus: this.handleFocus, onDuetBlur: this.handleBlur, onDuetInput: this.handleInput, label: this.label, caption: this.caption, error: this.error, name: this.name, minlength: this.minlength, maxlength: this.maxlength, autoComplete: "tel", component: "phone", variation: "button-left", type: "tel", disallowPattern: "[^\\+0-9 ]", required: this.required, disabled: this.disabled, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true }, h("duet-button", { ref: el => (this.countryCodeButton = el), slot: "button-left", variation: "input-button-left-secondary", margin: "none", fixed: true, icon: "action-arrow-down-small", iconSize: "small", iconRight: true, accessibleLabel: this.getAccessibleLabelForButton(), onClick: this.handleCountryCodeSelectorOpen }, h("span", { class: "flag-container" }, this.getFlagForButton())), h("slot", { name: "tooltip" })))));
|
|
301
313
|
}
|
|
302
314
|
static get is() { return "duet-phone-input"; }
|
|
303
315
|
static get encapsulation() { return "shadow"; }
|
|
@@ -101,11 +101,11 @@ export class DuetPopupMenuItem {
|
|
|
101
101
|
};
|
|
102
102
|
// Without the role ternary Safari/iPhone wouldn't announce the label for role menuitem.
|
|
103
103
|
// This is a tradeoff and now Safari announces these items as buttons and links with the label.
|
|
104
|
-
return (h(Host, { key: '
|
|
104
|
+
return (h(Host, { key: 'e4d908ef580f7a4b7f6c73b005df3024376394cf', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, h(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 && (h("duet-icon", { key: '7483b06d6477b2901f37bc6ac5d0c73c74fcc0ac', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), h("span", { key: '29946d960923b123aab68ac401922cb29aaa4cd8', class: "duet-popup-menu-item-label" }, h("slot", { key: '9994e35a66c58296c3af45cd40f477bc23f460f8' })), (this.trailingIcon || this.active || (this.url && this.external)) && (h("duet-icon", { key: '29a0b6a25a8376d41f5279bebebd208e65ce4640', name: this.url && this.external
|
|
105
105
|
? newWindowIcon.title
|
|
106
106
|
: this.active
|
|
107
107
|
? "messaging-checked-small"
|
|
108
|
-
: 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 && h("span", { key: '
|
|
108
|
+
: 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 && h("span", { key: '6d6c1681d4e0551b89bd15d461d14d583fd12b93', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
109
109
|
}
|
|
110
110
|
static get is() { return "duet-popup-menu-item"; }
|
|
111
111
|
static get encapsulation() { return "shadow"; }
|
|
@@ -74,12 +74,12 @@ export class DuetPromoCard {
|
|
|
74
74
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
75
75
|
};
|
|
76
76
|
const TagName = this.url ? "a" : "div";
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '15914a069765b4badeec5e42bc0c4be98528f197', class: { "duet-m-0": this.margin === "none" } }, h("aside", { key: '3c097de3be0174444157d849d6d7352d60e8b4fc', class: {
|
|
78
78
|
"duet-promo-card": true,
|
|
79
79
|
"duet-theme-turva": this.theme === "turva",
|
|
80
80
|
"no-bg-color": !this.backgroundColor,
|
|
81
81
|
"duet-promo-card-link": !!this.url,
|
|
82
|
-
}, style: bannerStyles }, h(TagName, { key: '
|
|
82
|
+
}, style: bannerStyles }, h(TagName, { key: '5510d811615bbb7a172f03b40aaf4062073cb7f2', href: this.url, class: { "content-wrapper": true, "duet-theme-turva": this.theme === "turva" }, ref: element => (this.aOrDivElement = element) }, h("img", { key: 'bc7545b847d9d9e71d0be0572fcbc999ee6c80c3', class: "image", src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" }), h("div", { key: '82dc0d7269104f81e37d47c5b48f0d43b9000434', class: "content" }, this.hasPreHeadingSlot && (h("div", { key: 'de1578879478be3a3f9cc115acb46a19446110a8', class: "pre-heading" }, h("slot", { key: '08cd0e79ddf0fd865a244147adbe208c8fa3f9fa', name: "pre-heading" }))), this.hasHeadingSlot && (h("div", { key: 'f2317874c4af8c13e932f3eb87b371f1d1b57237', class: "heading" }, h("duet-heading", { key: '250310892874b2a50739c52399ea26e9c1d551f1', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.headingLevel, "visual-level": "h3", margin: "none", color: postfixTheme(this.textColor, this.theme) }, h("span", { key: 'b07fc7401b5246d73a9685ce0c3ed066de23d72f' }, h("slot", { key: '8de2f4b07d14e7eee8f0c8babef852ae187fc134', name: "heading" }))))), this.hasDescriptionSlot && (h("div", { key: 'ddf9ce95776e1bd3c55e9dff3d0d116681f61896', class: "description" }, h("duet-paragraph", { key: '1decf80a64e37486c1475437c34894025ae0f021', theme: this.theme, margin: "none", color: postfixTheme(this.textColor, this.theme) }, h("span", { key: 'db6124d5ef91014ccbc9693880921dde31157030' }, h("slot", { key: 'fe4c6a624551185cd748d69a451006710ed08558', name: "description" }))))), this.hasActionSlot && (h("div", { key: '4386f1dadb0f8311fa9c21c7a47a872a08ab2b63', class: "action" }, h("slot", { key: 'c5f4a3ce3b4ca1fdad040b95d883ec74f9a93904', name: "action" }))))))));
|
|
83
83
|
}
|
|
84
84
|
static get is() { return "duet-promo-card"; }
|
|
85
85
|
static get encapsulation() { return "shadow"; }
|
|
@@ -124,9 +124,6 @@ export class DuetRadio {
|
|
|
124
124
|
/**
|
|
125
125
|
* Component event handling.
|
|
126
126
|
*/
|
|
127
|
-
this.onClick = (ev) => {
|
|
128
|
-
ev.stopPropagation();
|
|
129
|
-
};
|
|
130
127
|
this.onChange = (ev) => {
|
|
131
128
|
const input = this.focusableElement;
|
|
132
129
|
const inputChecked = input.checked;
|
|
@@ -184,17 +181,17 @@ export class DuetRadio {
|
|
|
184
181
|
* Always the last one in the class.
|
|
185
182
|
*/
|
|
186
183
|
render() {
|
|
187
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: '538a0bdaa3132fcfbd68a8f970f1dc9b8c2f1198', class: {
|
|
188
185
|
vertical: this.groupDirection === "vertical",
|
|
189
186
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
190
187
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
191
188
|
"duet-m-0": this.margin === "none",
|
|
192
|
-
} }, h("div", { key: '
|
|
189
|
+
} }, h("div", { key: '0e11d68ec02df3163c3dc1524cff2bbff950a496', class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, h("slot", { key: 'fdf09172f67232d5b2a689b1f1368bb5da931319', name: "input" }), h("label", { key: '516d9ba003ab05b3f7069b46ecfd471df3e4de3e', inert: true, ref: element => (this.labelElement = element), class: {
|
|
193
190
|
"duet-label": true,
|
|
194
191
|
checked: this.checked,
|
|
195
192
|
focus: this.focus,
|
|
196
193
|
disabled: this.disabled || this.groupDisabled,
|
|
197
|
-
} }, h("div", { key: '
|
|
194
|
+
} }, h("div", { key: 'b525b0a79e22eeb0b4fa8bdfdb854733d66acf2b', class: "duet-label-content" }, this.hasLabel ? h("slot", { name: "label" }) : this.label)))));
|
|
198
195
|
}
|
|
199
196
|
static get is() { return "duet-radio"; }
|
|
200
197
|
static get encapsulation() { return "shadow"; }
|
|
@@ -158,7 +158,7 @@ export class DuetRadioGroup {
|
|
|
158
158
|
* Always the last one in the class.
|
|
159
159
|
*/
|
|
160
160
|
render() {
|
|
161
|
-
return (h(Host, { key: '
|
|
161
|
+
return (h(Host, { key: 'bcae2d75b5843767deb9fc0900ee68751331a011', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, h("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 && (h("duet-tooltip", { key: 'af6c3a5dca20b7665e51bd0bf20923779bfd09bb', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '6e970de16b4e67c79ab27d45a223ec5989dfb51e', name: "tooltip", slot: "tooltip" }), h("div", { key: '4b6385af491f148c5122dd990db0ef05ae8c7c6f', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, h("slot", { key: '4d79f47f0f3ab231307045a4c3bfbff89df1b75d' })))));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "duet-radio-group"; }
|
|
164
164
|
static get encapsulation() { return "shadow"; }
|
|
@@ -156,13 +156,13 @@ export class DuetRangeSlider {
|
|
|
156
156
|
const rangeStyles = {
|
|
157
157
|
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
158
158
|
};
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: '140a9aa52dabb7c79226006b962df8988b32d11a', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, h("div", { key: '57c79380ecfdc00894e732406b9f461d673a7511', class: {
|
|
160
160
|
"duet-range-container": true,
|
|
161
161
|
"duet-label-hidden": this.labelHidden,
|
|
162
162
|
"duet-theme-turva": this.theme === "turva",
|
|
163
163
|
"duet-ie": isInternetExplorer(),
|
|
164
164
|
"duet-range-disabled": this.disabled,
|
|
165
|
-
} }, h(DuetInternalLabel, { key: '
|
|
165
|
+
} }, h(DuetInternalLabel, { key: '0bd37479e4b671590fd4dd0b63cd3750ca08ebdc', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), h("output", { key: '5e4d188ee952a06e3e25e06ec2d946563aed1ad8', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), h("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" }))));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "duet-range-slider"; }
|
|
168
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -196,10 +196,10 @@ export class DuetRangeStepper {
|
|
|
196
196
|
* Always the last one in the class.
|
|
197
197
|
*/
|
|
198
198
|
render() {
|
|
199
|
-
return (h("div", { key: '
|
|
199
|
+
return (h("div", { key: '7a19673ab541ea98696cdf665d1f37b8ac025f80', class: {
|
|
200
200
|
"duet-range-stepper": true,
|
|
201
201
|
"duet-theme-turva": this.theme === "turva",
|
|
202
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: '
|
|
202
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: 'c26de19d4c0bdae85dbaa9c5d0c4dca7118cbd59', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), h("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: "" }), h("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: "" })));
|
|
203
203
|
}
|
|
204
204
|
static get is() { return "duet-range-stepper"; }
|
|
205
205
|
static get encapsulation() { return "shadow"; }
|
|
@@ -284,18 +284,18 @@ export class DuetScrollable {
|
|
|
284
284
|
* Always the last one in the class.
|
|
285
285
|
*/
|
|
286
286
|
render() {
|
|
287
|
-
return (h(Host, { key: '
|
|
287
|
+
return (h(Host, { key: '8df51170513077145592d25caa62ba1ad2e85321', class: {
|
|
288
288
|
"duet-theme-turva": this.theme === "turva",
|
|
289
289
|
"duet-theme-default": this.theme === "default",
|
|
290
|
-
} }, this.hasCollapseButtonLabelSlot && (h("div", { key: '
|
|
290
|
+
} }, this.hasCollapseButtonLabelSlot && (h("div", { key: 'eb436b00c138655bb63089831b85d1e9bb320aae', class: {
|
|
291
291
|
collapse: true,
|
|
292
292
|
hide: !this.needsScrolling && !this.collapsed,
|
|
293
|
-
} }, h("duet-button", { key: '
|
|
293
|
+
} }, h("duet-button", { key: '7ee25c87ce3da3160b9ceb73730715becad219bf', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, h("slot", { key: 'bf4e7d6a981c5544251df380c5b4eef49545fd01', name: "collapse-button-label" })))), h("div", { key: 'cd9bea12be8aecb83efce14f2ee153896f64c7cd', class: {
|
|
294
294
|
"duet-scrollable-items": true,
|
|
295
295
|
buttons: this.buttons,
|
|
296
296
|
center: this.center,
|
|
297
297
|
"duet-theme-turva": this.theme === "turva",
|
|
298
|
-
} }, this.buttons && this.renderButton("left"), h("div", { key: '
|
|
298
|
+
} }, this.buttons && this.renderButton("left"), h("div", { key: '243fe2e1dab3b9eae761f971dbc92eb0a14baa9e', class: {
|
|
299
299
|
"duet-scrollable-list": true,
|
|
300
300
|
[`duet-scrollable-list--${this.buttonPosition}`]: true,
|
|
301
301
|
[`gap-${this.gap}`]: true,
|
|
@@ -303,7 +303,7 @@ export class DuetScrollable {
|
|
|
303
303
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
304
304
|
[`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
|
|
305
305
|
"duet-scrollable-stretch": this.stretch,
|
|
306
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: '
|
|
306
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: '5e49e03f90b17bbb89b5b4f5ea55d6bbd93ec53e' })), this.buttons && this.renderButton("right"))));
|
|
307
307
|
}
|
|
308
308
|
static get is() { return "duet-scrollable"; }
|
|
309
309
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,13 +24,13 @@ export class DuetSectionLayout {
|
|
|
24
24
|
* Always the last one in the class.
|
|
25
25
|
*/
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '675bb0f1357f695ee2d80ae2a0a33f375191aaec', class: {
|
|
28
28
|
"duet-middle": this.middle,
|
|
29
29
|
"duet-ie": isInternetExplorer(),
|
|
30
|
-
} }, h("div", { key: '
|
|
30
|
+
} }, h("div", { key: 'cfa957d4604cbb8a0a824633dd4bf8c17cd144ae', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, h("div", { key: 'afe01f3fb8d78adf63965e56f4aa1bbece5a50f3', class: {
|
|
31
31
|
"duet-layout": true,
|
|
32
32
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
33
|
-
} }, h("section", { key: '
|
|
33
|
+
} }, h("section", { key: 'a749242dc5645d0c22f8d3db2b3f798f1cb864f1', class: "duet-main" }, h("slot", { key: 'fc73c99e0e9750dcfe65ab40e4affc2f1fe1dd9e' }))))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "duet-section-layout"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -197,23 +197,23 @@ export class DuetSelect {
|
|
|
197
197
|
*/
|
|
198
198
|
render() {
|
|
199
199
|
const identifier = this.identifier || this.selectId;
|
|
200
|
-
return (h(Host, { key: '
|
|
200
|
+
return (h(Host, { key: '6bbba69df6d714d95582b920dcd6704e872c1fef', class: {
|
|
201
201
|
"duet-m-0": this.margin === "none",
|
|
202
202
|
"duet-expand": this.expand,
|
|
203
203
|
[`duet-select-variation-${this.variation}`]: true,
|
|
204
|
-
} }, h("div", { key: '
|
|
204
|
+
} }, h("div", { key: '9c89cfab0838693f6ae93ed0c6999196ed046018', class: {
|
|
205
205
|
"duet-select-container": true,
|
|
206
206
|
"duet-label-hidden": this.labelHidden,
|
|
207
207
|
"duet-theme-turva": this.theme === "turva",
|
|
208
208
|
[`duet-select-variation-${this.variation}`]: true,
|
|
209
209
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
210
210
|
"has-error": !!this.error,
|
|
211
|
-
} }, h(DuetInternalLabel, { key: '
|
|
211
|
+
} }, h(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 && (h("duet-tooltip", { key: '242f060046569b43a16a590fc61ac16fa7dd182b', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '7ebd1a36c092a298330bb5de020c67977c33607c', name: "tooltip" }), this.caption && (h("duet-caption", { key: 'a53a8b9a16ef888449c6f544c0dd649c9e871d28', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: 'c706535ed2ab42090d1fa1a7ecaea348dd1bbb43', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: 'c2252184677717fb9dc1174d804fc961ece7b7df', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), h("slot", { key: '3998a6027e75a35f26a2806b2f763cacd93d352a' }), h("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 && (h("option", { key: 'cfd9f517dbf8ce0c71191bf6e1223f0e8685a29f', disabled: true, selected: true, value: "" }, this.placeholder)), !this.processedItems ? (h("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
|
|
212
212
|
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
213
|
-
}))), h("div", { key: '
|
|
213
|
+
}))), h("div", { key: '96657339d7fb34f8978eda641539e72dec7b224a', class: {
|
|
214
214
|
"duet-select": true,
|
|
215
215
|
[`duet-select-variation-${this.variation}`]: true,
|
|
216
|
-
}, "aria-hidden": "true" }, h("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (h("svg", { key: '
|
|
216
|
+
}, "aria-hidden": "true" }, h("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (h("svg", { key: '11f2c494a1a3194d9e59f314bac8db237f8344b5', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("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" })))) || (h("duet-icon", { key: '3586a25ad9cb318b6565d17786f7e426f46d7768', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), h("span", { key: 'ebd9af0776d3462414fff4ad4df8af165f6ac4b6', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), h("span", { key: 'b9644fc1fbb467bfc7312029141323b743be8d30', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", { key: '572d61055aac43567212efc7c2ded45999d2d386', class: "duet-select-error" }, this.error)))));
|
|
217
217
|
}
|
|
218
218
|
static get is() { return "duet-select"; }
|
|
219
219
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,9 +33,9 @@ export class DuetShapedImage {
|
|
|
33
33
|
const style = {
|
|
34
34
|
"--rotation": `${this.rotation}deg`,
|
|
35
35
|
};
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '020b3d5e11c9cbc503711861dd206686d799a4e3', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, h("span", { key: '296b4c2f04267b0d782923ae2e68d4ef6cb0561f', class: {
|
|
37
37
|
"shaped-image": true,
|
|
38
|
-
}, role: "img", "aria-label": this.accessibleLabel, style: style }, h("span", { key: '
|
|
38
|
+
}, role: "img", "aria-label": this.accessibleLabel, style: style }, h("span", { key: '7dc1daa1ef4e816a866dbe1f9106d27d79ba0f80', class: "shaped-image-mask", role: "presentation" }, h("span", { key: '3471561d23efb71e7ffbd03964a87fc79b4a1630', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "duet-shaped-image"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,12 +63,12 @@ export class DuetShareChart {
|
|
|
63
63
|
this.itemsTotalValue = this.items.reduce((total, { value }) => total + value, 0);
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '76dcdb711e01b723ebfc6a7ac917640566d3c519' }, h("div", { key: '0e33db2ae8dbd50fcca75bfc44780e47f540b35c', class: "duet-share-chart-horizontal-bar", role: "presentation" }, this.items
|
|
67
67
|
.filter(i => !!i.value)
|
|
68
68
|
.map(item => (h("span", { class: "duet-share-chart-share", style: {
|
|
69
69
|
width: `${(item.value / this.itemsTotalValue) * 100}%`,
|
|
70
70
|
backgroundColor: getColorByName(item.color, this.theme),
|
|
71
|
-
} })))), h("ul", { key: '
|
|
71
|
+
} })))), h("ul", { key: 'af7cc163b43b67f726f90a32bd8bebb172a65ddd', class: "duet-share-chart-item-list" }, this.items.map(item => (h("li", { class: { "duet-theme-turva": this.theme === "turva" } }, h("span", { class: "duet-share-chart-item-color", style: { background: getColorByName(item.color, this.theme) } }), h("span", { class: "duet-share-chart-item-text" }, item.text, ":"), h("span", { class: "duet-share-chart-item-value" }, "\u00A0", formatNumber(item.value), "\u00A0", this.unit), this.unit !== "%" && (h("duet-visually-hidden", null, `${formatNumber((item.value / this.itemsTotalValue) * 100, 0)} %`)))))), h("slot", { key: '4648ee2e833c07161de6ceb6179678b978e07741' })));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "duet-share-chart"; }
|
|
74
74
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class DuetShareChartItem {
|
|
|
10
10
|
this.value = 0;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '5b9263e8f4daf50f566738052822cc63a935d7a6' }, h("div", { key: 'd79e1ab4daabd5fd6dc314a33c7608c1cdd8c3f2', hidden: true }, h("slot", { key: 'e9ff46324b7dea7138cfcce138d57c08c851626f' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "duet-share-chart-item"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -136,12 +136,12 @@ export class DuetShowMore {
|
|
|
136
136
|
* Always the last one of the class.
|
|
137
137
|
*/
|
|
138
138
|
render() {
|
|
139
|
-
return (h(Host, { key: '
|
|
139
|
+
return (h(Host, { key: '63b3a492707e1a57c1611b073e6b663f3b3f5550' }, h("div", { key: '663d694dedf732ed665fdd22ac8bfbb609aa4ba2', class: {
|
|
140
140
|
"duet-show-more": true,
|
|
141
141
|
"duet-theme-turva": this.theme === "turva",
|
|
142
142
|
"duet-m-0": this.margin === "none",
|
|
143
143
|
open: this.open,
|
|
144
|
-
} }, h("div", { key: '
|
|
144
|
+
} }, h("div", { key: '035ca78df910e7b4c7266e94ce54011f73197274', ref: ref => (this.contentElement = ref), class: { content: true, "duet-theme-turva": this.theme === "turva" }, id: this.contentId, tabindex: this.open ? "-1" : "" }, h("div", { key: '6a41aea8c1bd21d5112e1d0fadb83de9c25b99a2', class: { "slotted-content": true } }, h("slot", { key: '7cbe45659e187d12579f798c9019be8aa6c40c83' }))), h("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" }, h("span", { key: '5cb30295ce5968c5d7a87185652db0640ab42839' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
|
|
145
145
|
}
|
|
146
146
|
static get is() { return "duet-show-more"; }
|
|
147
147
|
static get encapsulation() { return "shadow"; }
|
|
@@ -296,17 +296,17 @@ export class DuetSlideout {
|
|
|
296
296
|
};
|
|
297
297
|
const topLevelOpenMenuBarTranslation = getLocaleString(this.topLevelOpenMenuBarLangObject);
|
|
298
298
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
299
|
-
return (h(Host, { key: '
|
|
299
|
+
return (h(Host, { key: '4967e4765890d5a1fc428a6da2917e5423728b8f' }, h("div", { key: '019469e0d6a0b7115a2739d19c4db7643912ed0d', class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, this.modal && h("duet-overlay", { key: '1ab0ab05de7bef08b4f9907c3588c4ae1b27a1d6', visible: this.open, zIndex: "600" }), h("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: {
|
|
300
300
|
dialog: true,
|
|
301
301
|
hidden: !this.open,
|
|
302
302
|
modal: this.modal,
|
|
303
|
-
}, style: styles }, h(FocusGuard, { key: '
|
|
303
|
+
}, style: styles }, h(FocusGuard, { key: 'f8cd5d6bf0a93a2ec39783b9660a7fe7d666f631', moveFocusTo: this.closeButton }), h("div", { key: '4599d8a89db4503856c93ae476044d0f8b58a6e8', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, h("div", { key: '3b9e1c5b2de674864a0570a94eaccc0d2b1fd444', class: "top" }, h("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: {
|
|
304
304
|
"slideout-close": true,
|
|
305
305
|
active: this.open,
|
|
306
306
|
"duet-theme-turva": this.theme === "turva",
|
|
307
|
-
}, onClick: this.onClick, inert: this.openPanel }, h("duet-icon", { key: '
|
|
307
|
+
}, onClick: this.onClick, inert: this.openPanel }, h("duet-icon", { key: 'a65c83b73256734cf30bb76d70a585f7396e91e7', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), h("div", { key: '2cd42bbba1aae10f8ea951af29fd111ffc145ecc', class: "sticky-header" }, h("slot", { key: 'c0c2c759bf1f9190a5bcb845d868210801792553', name: "sticky-header" }))), h("div", { key: '9da45e60847db54c0ed5baf6e87d8526c54db02c', id: "slot-container", role: this.accessibleRole, "aria-label": this.openPanel ? topLevelOpenMenuBarTranslation : null, class: {
|
|
308
308
|
items: true,
|
|
309
|
-
} }, h("slot", { key: '
|
|
309
|
+
} }, h("slot", { key: '812379a9042a1a79781f4378a0c2b256676d12d8' })), h(FocusGuard, { key: 'a2aeac2c61dbc0b9839144613d999de4dc8edb36', moveFocusTo: this.closeButton })))));
|
|
310
310
|
}
|
|
311
311
|
static get is() { return "duet-slideout"; }
|
|
312
312
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,7 +38,7 @@ export class DuetSlideoutLang {
|
|
|
38
38
|
*/
|
|
39
39
|
render() {
|
|
40
40
|
const langTranslation = getLocaleString(this.chooseLangObject);
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '34f0930dcf8021c6864fb605ea004dc58e6b8c9b' }, h("div", { key: '9433641622ace86c08d679f5de5a06c065bc24cd', class: "duet-slideout-lang", role: "group", "aria-label": langTranslation }, h("duet-icon", { key: 'bc6f8729f8011ff306198f5e6a6c050145199d03', name: "navigation-language", margin: "none", color: "secondary", size: "small" }), h("slot", { key: 'a1608d54cdb7ec066e5757e46ec943db0aeb3eed' }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "duet-slideout-lang"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,12 +77,12 @@ export class DuetSlideoutLink {
|
|
|
77
77
|
* Always the last one in the class.
|
|
78
78
|
*/
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '8af50d9b7ac2dff34a22383644c26bc271feb186' }, h("a", { key: '2331800cc3a3541998250f6e0d77989311da783d', target: !this.href ? null : this.external ? "_blank" : "_self", class: {
|
|
81
81
|
"duet-slideout-link": true,
|
|
82
82
|
"duet-theme-turva": this.theme === "turva",
|
|
83
83
|
active: this.active,
|
|
84
84
|
[this.size]: true,
|
|
85
|
-
}, 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 && (h("duet-icon", { key: '
|
|
85
|
+
}, 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 && (h("duet-icon", { key: 'ce90f34daf34e3fad2b5ad7b3b5e37dad9c1fd20', name: this.icon, color: "secondary", size: this.menuItem ? "x-small" : "small", margin: "none" })), h("div", { key: 'a5fc2cc4c2a7c166b57b529ff62d133775b8dc51', class: "label" }, h("span", { key: '49dc50b3f9fccbca74e22a2a62d8b8037484f386' }, h("span", { key: '732a205ac37b15f4f242c827b90600ff15194c74', class: "label-container" }, h("span", { key: 'cc338ec61125f8695556d8ecc08d9d75d2ded84e', class: "label-content" }, h("slot", { key: '9eacab150163fb2dba6e373a4a3b8ca05346916d' })), this.external && (h("duet-icon", { key: '6420a54645299ae8b19bfcc8626a929b6cc4f5cb', class: "external-icon", theme: this.theme, name: newWindowIcon.title, margin: "none", size: "auto", color: "currentColor" }))), h("slot", { key: '9546111ca2eb2084ee09d4d48ad60eae283fad70', name: "description" })), this.caret && (h("duet-icon", { key: '8d9d92137460efafad759509121e6dae57165a72', name: "action-arrow-right", color: "secondary", size: "x-small", margin: "none" }))))));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "duet-slideout-link"; }
|
|
88
88
|
static get encapsulation() { return "shadow"; }
|
|
@@ -174,25 +174,25 @@ export class DuetSlideoutPanel {
|
|
|
174
174
|
};
|
|
175
175
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
176
176
|
const backTranslation = getLocaleString(this.backLangObject);
|
|
177
|
-
return (h(Host, { key: '
|
|
177
|
+
return (h(Host, { key: '8a4dddd16156e7e26f2d90d27e4135baef9d7f7f' }, h("div", { key: 'cfed35efbcbf9502380c2b19e452447d64c0590a', class: {
|
|
178
178
|
"duet-slideout-panel": true,
|
|
179
179
|
"duet-theme-turva": this.theme === "turva",
|
|
180
180
|
active: this.open,
|
|
181
|
-
} }, this.badge && h("duet-indicator", { key: '
|
|
181
|
+
} }, this.badge && h("duet-indicator", { key: '4a1de84e3b6ea4ffb2a1e01631f0a1739771e13e', variation: "change" }), h("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: {
|
|
182
182
|
link: true,
|
|
183
183
|
active: this.active,
|
|
184
184
|
"duet-theme-turva": this.theme === "turva",
|
|
185
|
-
}, onClick: this.onClick, inert: this.open }, this.icon && (h("div", { key: '
|
|
185
|
+
}, onClick: this.onClick, inert: this.open }, this.icon && (h("div", { key: '871f1fcb5709c43089b627de26a80a8a7eecd519', class: "duet-slideout-icon" }, h("duet-icon", { key: 'f1666ba453de11810cc1b1a5ce9d45faed10c193', name: this.icon, size: "small", margin: "none", color: "secondary" }))), h("span", { key: '051ce78454689a7a379a9abd4a75e9a6495afcfa', class: "label" }, h("span", { key: 'a22d205208a777b52b62e0d116a5db0998e3a79d', class: { "label-text": true, [this.labelSize]: true } }, h("slot", { key: '6b817eb49b69b5fe02cd3355fa045fad80bc7692', name: "label" })), h("duet-icon", { key: '0b397ce8f1de51dd50007ab3311e5ad59a7aa428', class: "caret", name: "action-arrow-right", margin: "none", size: "x-small", color: "secondary" }))), h("div", { key: 'c7665a664268fbd5c4d01e152788ea70445814b8', ref: element => (this.dialog = element), class: {
|
|
186
186
|
dialog: true,
|
|
187
187
|
hidden: !this.open,
|
|
188
|
-
}, style: styles }, h(FocusGuard, { key: '
|
|
188
|
+
}, style: styles }, h(FocusGuard, { key: 'c05cc6d5b0da41bedee7978f01d6f7c90ecfcf43', moveFocusTo: this.closeButton }), h("div", { key: '8ba7873500abd185fe735632b574279157c8a707', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, h("div", { key: '042cbf7c5c36e7a477a64ef184452817030a1fe9', class: "top" }, h("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: {
|
|
189
189
|
back: true,
|
|
190
190
|
"duet-theme-turva": this.theme === "turva",
|
|
191
|
-
}, onClick: this.onClick }, h("duet-icon", { key: '
|
|
191
|
+
}, onClick: this.onClick }, h("duet-icon", { key: '504fac50c5194735f7da38fd9034f28a39418192', class: "caret", name: "action-arrow-left", margin: "none", size: "small", color: "secondary" })), h("span", { key: '274ca7fdd2c19790c60a7652a7733b41589709d0' }, this.label.innerHTML), h("button", { key: '8aadd95055653e4125015bde99188315d0c2e8cc', class: { close: true, "duet-theme-turva": this.theme === "turva" }, type: "button", onClick: this.onCloseClick, "aria-label": `${exitTranslation}` }, h("duet-icon", { key: '183d96aae0264a7b83f1aa77bdfb63778f173c74', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), h("div", { key: '7861b5f725b0711c2b7cd7509c8a9a413e28564b', class: "sticky-header" }, h("slot", { key: '2c16e97d5eb0d661158a567b6a07fb89ef1414f2', name: "sticky-header" }))), h("div", { key: 'd6e922e2a37b2ab0ae519dda40afb32d5b56e554', tabindex: "-1", role: "menu",
|
|
192
192
|
//TODO: slideout menu fades out, needs to be instant
|
|
193
193
|
id: "menu", "aria-labelledby": "button", class: {
|
|
194
194
|
items: true,
|
|
195
|
-
} }, h("slot", { key: '
|
|
195
|
+
} }, h("slot", { key: 'af607556495101c55d23a7365f7ad3e661f7fc23' })), h(FocusGuard, { key: 'f2f4d91ef8062f83bbd6099bedccff41d4a144ab', moveFocusTo: this.closeButton })))));
|
|
196
196
|
}
|
|
197
197
|
static get is() { return "duet-slideout-panel"; }
|
|
198
198
|
static get encapsulation() { return "shadow"; }
|
package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js
CHANGED
|
@@ -52,18 +52,18 @@ export class DuetSlideoutPanelDropdown {
|
|
|
52
52
|
* Always the last one in the class.
|
|
53
53
|
*/
|
|
54
54
|
render() {
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'f64a64dc68d8df8aebfa507aa995894eb65bb2ce' }, h("div", { key: '18fe7e1d42915f5c5363c5eb95e86db85b214049', class: {
|
|
56
56
|
"duet-slideout-panel-dropdown": true,
|
|
57
57
|
"duet-theme-turva": this.theme === "turva",
|
|
58
58
|
active: this.open,
|
|
59
|
-
} }, h("button", { key: '
|
|
59
|
+
} }, h("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: {
|
|
60
60
|
active: this.active,
|
|
61
61
|
"duet-theme-turva": this.theme === "turva",
|
|
62
|
-
}, onClick: this.onClick }, this.icon && h("duet-icon", { key: '
|
|
62
|
+
}, onClick: this.onClick }, this.icon && h("duet-icon", { key: '0ea9ceb0e10517319ada16db751234cd3f620d69', name: this.icon, size: "small", margin: "none", color: "secondary" }), h("span", { key: 'd2fc1e1e76b6cde371078a56be4f463fa2592ab2', class: "label" }, h("slot", { key: 'e24116c6f0faf563303c6cfb862c635b5b46852b', name: "label" }), h("duet-icon", { key: '8cd1fdb85c9b4c70767c962dd87e4363f79cb384', class: "caret", name: "action-arrow-down-small", margin: "none", size: "xx-small", color: "secondary" }))), h("div", { key: 'ff90c4f48368c6020919db5272954fbeaf25bcbd', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
63
63
|
items: true,
|
|
64
64
|
hidden: !this.open,
|
|
65
65
|
"duet-theme-turva": this.theme === "turva",
|
|
66
|
-
} }, h("slot", { key: '
|
|
66
|
+
} }, h("slot", { key: '7e267c038e415f115df54d5b9ff2c7354614a9ec' })))));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "duet-slideout-panel-dropdown"; }
|
|
69
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,7 +23,7 @@ export class DuetSpacer {
|
|
|
23
23
|
* Always the last one in the class.
|
|
24
24
|
*/
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '76988a79c56144ea938670ea5a369478d5cbbb9d', class: {
|
|
27
27
|
"duet-spacer": true,
|
|
28
28
|
"duet-spacer-xx-small": this.breakpoint === "xx-small",
|
|
29
29
|
"duet-spacer-x-small": this.breakpoint === "x-small",
|
|
@@ -25,7 +25,7 @@ export class DuetSpinner {
|
|
|
25
25
|
*/
|
|
26
26
|
render() {
|
|
27
27
|
const color = !!this.color && this.color === "currentColor" ? "currentColor" : getColorByName(this.color, this.theme);
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '61675c5a2a19edc0eba1be2f591f2bde7a7ab8fd' }, h("div", { key: 'cf612fe4fe85f35a7019913136249169aa74163c', class: {
|
|
29
29
|
"duet-spinner": true,
|
|
30
30
|
[this.size]: true,
|
|
31
31
|
"duet-theme-turva": this.theme === "turva",
|
|
@@ -85,11 +85,11 @@ export class DuetStatusIcon {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: '66f1b0519e8fcb4b025f2e1b64963c25b78b0ce1', class: {
|
|
89
89
|
[`duet-status-icon-${this.getVariation()}`]: true,
|
|
90
90
|
"duet-strong-bg": this.strong,
|
|
91
91
|
"duet-m-0": this.margin === "none",
|
|
92
|
-
} }, h("duet-icon", { key: '
|
|
92
|
+
} }, h("duet-icon", { key: '91b2d72ca3e85296b48e4cec8c9c5908c4025649', icon: this.getIcon(), size: this.size, margin: "none" })));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "duet-status-icon"; }
|
|
95
95
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,13 +93,13 @@ export class DuetStep {
|
|
|
93
93
|
* Always the last one in the class.
|
|
94
94
|
*/
|
|
95
95
|
render() {
|
|
96
|
-
return (h("div", { key: '
|
|
96
|
+
return (h("div", { key: 'feada3a7c7ec6780e79afdb23123316ab540f4b6', class: {
|
|
97
97
|
"duet-step": true,
|
|
98
98
|
[`is-${this.state}`]: true,
|
|
99
99
|
"rounded-top": this.roundedTop,
|
|
100
100
|
"rounded-bottom": this.roundedBottom,
|
|
101
101
|
"duet-theme-turva": this.theme === "turva",
|
|
102
|
-
} }, h("div", { key: '
|
|
102
|
+
} }, h("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) }, h("div", { key: '50c87080ab159d3c3b21291b364ec76ff0fa3a93', "aria-hidden": "true" }, h("div", { key: '42a157140c2377439884f0af12b4248dec9bfd34', class: "duet-step-counter" }, this.renderStepCounter())), h("duet-spacer", { key: '94aa9e260262de0b9cea9d2fa2c47eb10faded9f', direction: "horizontal", size: "large", breakpoint: "small" }), h("duet-spacer", { key: 'a03e66e47f83ca929b0df04debceb86a2a689b40', direction: "horizontal", size: "medium", breakpoint: "x-small" }), h("div", { key: 'e4da79ec72dc0e986030cd3254f07d0313a7fb47' }, h("duet-heading", { key: '74b1068c7b0625bc4252c62882e596f44205a458', theme: this.theme, level: this.headingLevel, visualLevel: "h4", color: this.headingColor(), margin: "none" }, this.heading)), h("duet-spacer", { key: '3d65d8674ce6b54a17bfa9c355dbf1bb6ab6b4a4', direction: "horizontal", size: "large" }), h("div", { key: 'a17bc89f352a7160004d00a64aa650614fad31e9', class: "duet-step-heading-slot" }, h("slot", { key: '01a89d91a83a2a60e32d88d408a75895f3c68df2', name: "heading-content" }))), h("div", { key: '730bd661a145a1c84f6b475671343f578195454e', class: "duet-step-content-wrapper" }, h("div", { key: 'a95661b180820900e0064b370e62db765a05fcff', class: "duet-step-content", role: "region", "aria-labelledby": this.buttonId, id: this.contentId }, h("slot", { key: 'af8b9819618629683931e6a11e89011e5de7e427' })))));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "duet-step"; }
|
|
105
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -118,7 +118,7 @@ export class DuetStepper {
|
|
|
118
118
|
* Always the last one in the class.
|
|
119
119
|
*/
|
|
120
120
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: '8a749ceb402c16d72935d15c496ca811cd50b957', class: { "duet-m-0": this.margin === "none" } }, h("div", { key: '6aac613a7d6f22aea18a8da6971fdba169e6fa1f', class: { "duet-stepper": true, "duet-theme-turva": this.theme === "turva" } }, h("duet-visually-hidden", { key: '329b1de26e25748913712e9f6c02890ac3aa1431', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement()), h("slot", { key: 'a7346309c44aad2e5ab18fe0ac6d8d73af8b29f5' }))));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "duet-stepper"; }
|
|
124
124
|
static get encapsulation() { return "shadow"; }
|