@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
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-CIDaln0Z.js');
|
|
8
8
|
var createId = require('./create-id-DtslnIOq.js');
|
|
9
9
|
var jsUtils = require('./js-utils-hJ4A2edy.js');
|
|
10
10
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
11
|
-
var languageUtils = require('./language-utils-
|
|
11
|
+
var languageUtils = require('./language-utils-C7Z0KYg-.js');
|
|
12
12
|
var stringUtils = require('./string-utils-B35hEUBv.js');
|
|
13
13
|
var tokenUtils = require('./token-utils-DY3-olMV.js');
|
|
14
14
|
require('./tokens.module-CTbvyezn.js');
|
|
@@ -244,14 +244,13 @@ const DuetPagination = class {
|
|
|
244
244
|
calculatePageTake() {
|
|
245
245
|
this.totalPages = Math.ceil(this.total / this.take);
|
|
246
246
|
}
|
|
247
|
-
//
|
|
247
|
+
// Update current when mouse click on arrow buttons
|
|
248
248
|
async onMouseHandler(e, dir) {
|
|
249
249
|
if (this.disabled) {
|
|
250
250
|
return;
|
|
251
251
|
}
|
|
252
252
|
if (!this.processedPageLinks) {
|
|
253
253
|
e.preventDefault();
|
|
254
|
-
e.stopPropagation();
|
|
255
254
|
this.current = this.current + dir;
|
|
256
255
|
}
|
|
257
256
|
this.emitPageEvent(e);
|
|
@@ -396,32 +395,32 @@ const DuetPagination = class {
|
|
|
396
395
|
* Always the last one in the class.
|
|
397
396
|
*/
|
|
398
397
|
render() {
|
|
399
|
-
return (index.h(index.Host, { key: '
|
|
398
|
+
return (index.h(index.Host, { key: '7aae3263adf71d77b03be07c9ad260a4f4754159', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, index.h("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: {
|
|
400
399
|
"duet-pagination-nav": true,
|
|
401
400
|
[`duet-pagination-variation-${this.variation}`]: true,
|
|
402
|
-
} }, this.numbersStore !== "" && (index.h("div", { key: '
|
|
401
|
+
} }, this.numbersStore !== "" && (index.h("div", { key: '599cfcdc99c0f726f838efb59a5d18def811fec3', "aria-live": "assertive", "aria-relevant": "text", class: "duet-pagination-overlay", "aria-label": `${this.accessibleLabels.jump_to} ${this.numbersStore}`, part: "navigation-overlay" }, index.h("duet-badge", { key: '2376939fe48f1501856eabe413317653defbb0e0', theme: this.theme }, "jump to page : ", this.numbersStore))), index.h("ol", { key: '0763fd9a3261cded9a37c556ee63d55fea0beec5', id: this.listId, class: {
|
|
403
402
|
"duet-pagination": true,
|
|
404
403
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
405
|
-
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (index.h("li", { key: '
|
|
404
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (index.h("li", { key: 'b9779196cb93bee395de3583880280c988db2891', class: {
|
|
406
405
|
"duet-pagination-page-button": true,
|
|
407
406
|
"duet-pagination-button-first": true,
|
|
408
|
-
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '
|
|
407
|
+
}, role: "menuitem", part: "navigation-arrow" }, index.h("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 }))), index.h("li", { key: '90fbdfd8f5c54e45a73e354771a2f3661467b1bb', class: {
|
|
409
408
|
"duet-pagination-page-button": true,
|
|
410
409
|
"duet-pagination-button-first": true,
|
|
411
|
-
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '
|
|
410
|
+
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '93ebdbe18cdfca563aa5e6dc12a4a4fd6f68f639', disabled: !!((this.internalSectionIndex === 0 && this.current <= 1) ||
|
|
412
411
|
(this.current <= 1 && this.processedPageLinks) ||
|
|
413
|
-
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (index.h(index.Fragment, { key: '
|
|
414
|
-
this.shouldDisplayNavigation() && (index.h(index.Fragment, { key: '
|
|
412
|
+
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (index.h(index.Fragment, { key: '8b2dbe89ac7c1684e82ee77a43f0f2ca8d9b89a8' }, index.h("li", { key: '4f3ebacb88d1f21b2f358d443328bd59eec10264', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, index.h("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 }, index.h("div", { key: '469b36535535c82356ae0aa5bb58dd1771d47dd2', class: "duet-pagination-page-number" }, "1"))), index.h("li", { key: '222dcd79d07ae767593df35766d0ebb1686e16ee', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, index.h("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 }, index.h("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 &&
|
|
413
|
+
this.shouldDisplayNavigation() && (index.h(index.Fragment, { key: '7168d8184d99f05d1ceb390687004810f43cf957' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (index.h("li", { key: 'f2497085cb58ccb9c65db6f9699ff4b0d45e881d', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, index.h("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 }, index.h("div", { key: '30e54f85dc44e0ab900c5ee84e1e581658fa625e', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), index.h("li", { key: '86a7ea35747c42719c394062da51a74f147a8f0e', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, index.h("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
|
|
415
414
|
? this.processedPageLinks[this.processedPageLinks.length - 1]
|
|
416
|
-
: undefined }, index.h("div", { key: '
|
|
415
|
+
: undefined }, index.h("div", { key: '84e6618b71439ceea94b5be66dfc9ca935dee2df', class: "duet-pagination-page-number" }, this.totalPages))))), index.h("li", { key: '5cc6fc85a3cc763f9b5bb3f5bd7c2383e273f09d', class: {
|
|
417
416
|
"duet-pagination-page-button": true,
|
|
418
417
|
"duet-pagination-button-last": true,
|
|
419
|
-
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '
|
|
418
|
+
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: 'd84bd849c47769f4863cb38218e8851e7ff88291', disabled: !!((this.current === this.totalPages &&
|
|
420
419
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
421
|
-
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (index.h("li", { key: '
|
|
420
|
+
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (index.h("li", { key: '339d7f334ac903a87caa8699b31761b411a50c9d', class: {
|
|
422
421
|
"duet-pagination-page-button": true,
|
|
423
422
|
"duet-pagination-button-last": true,
|
|
424
|
-
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '
|
|
423
|
+
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { key: '3179b9a09fec7d31c2830b91a6958dfa2cdad21f', disabled: (this.current === this.totalPages &&
|
|
425
424
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
426
425
|
this.disabled, accessibleLabel: this.accessibleLabels.last_page, title: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), "icon-name": "action-move-to-last", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.totalPages - 1] : undefined })))))));
|
|
427
426
|
}
|
|
@@ -621,10 +620,10 @@ const DuetRangeStepper = class {
|
|
|
621
620
|
* Always the last one in the class.
|
|
622
621
|
*/
|
|
623
622
|
render() {
|
|
624
|
-
return (index.h("div", { key: '
|
|
623
|
+
return (index.h("div", { key: '7a19673ab541ea98696cdf665d1f37b8ac025f80', class: {
|
|
625
624
|
"duet-range-stepper": true,
|
|
626
625
|
"duet-theme-turva": this.theme === "turva",
|
|
627
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, index.h("span", { key: '
|
|
626
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, index.h("span", { key: 'c26de19d4c0bdae85dbaa9c5d0c4dca7118cbd59', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), index.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: "" }), index.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: "" })));
|
|
628
627
|
}
|
|
629
628
|
get element() { return index.getElement(this); }
|
|
630
629
|
static get watchers() { return {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-CIDaln0Z.js');
|
|
8
8
|
|
|
9
9
|
const duetPanelCss = ":host {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n background: transparent;\n border: 0;\n position: relative;\n display: block;\n width: 100%;\n margin: 8px 0 20px 0;\n}\n@container (width > 36em) {\n :host {\n margin: 12px 0 28px 0;\n }\n}\n\n:host(.duet-m-0) {\n margin: 0;\n}\n\n.duet-panel {\n font-family: \"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n color: rgb(8, 42, 77);\n background-color: rgb(255, 255, 255);\n border: 0 solid rgb(212, 223, 229);\n border-radius: 16px;\n}\n.duet-panel.padding-small {\n padding: 16px;\n border-radius: 12px;\n}\n@container (width > 36em) {\n .duet-panel.padding-small {\n padding: 20px;\n }\n}\n.duet-panel.padding-medium {\n padding: 20px;\n}\n@container (width > 36em) {\n .duet-panel.padding-medium {\n padding: 28px;\n }\n}\n.duet-panel.padding-large {\n padding: 28px;\n}\n@container (width > 36em) {\n .duet-panel.padding-large {\n padding: 36px;\n }\n}\n.duet-panel.border {\n border-width: 1px;\n}\n.duet-panel.secondary {\n background-color: rgb(245, 248, 250);\n}\n.duet-panel.accent {\n background-color: rgb(240, 247, 250);\n border-color: rgb(198, 225, 238);\n}\n.duet-panel.accent.secondary {\n background-color: rgb(217, 236, 245);\n}\n\n.duet-panel.duet-theme-turva {\n font-family: \"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n color: rgb(23, 42, 59);\n border-color: rgb(212, 221, 226);\n}\n.duet-panel.duet-theme-turva.secondary {\n background-color: rgb(245, 246, 247);\n}\n.duet-panel.duet-theme-turva.accent {\n background-color: rgb(253, 247, 242);\n border-color: rgb(241, 202, 178);\n}\n.duet-panel.duet-theme-turva.accent.secondary {\n background-color: rgb(251, 225, 209);\n}";
|
|
10
10
|
|
|
@@ -36,14 +36,14 @@ const DuetPanel = class {
|
|
|
36
36
|
themeableComponent.inheritGlobalTheme(this);
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (index.h(index.Host, { key: '
|
|
39
|
+
return (index.h(index.Host, { key: 'f245a3e1001c22a202f3568c3bb787d0733d6d06', class: { "duet-m-0": this.margin === "none" } }, index.h("section", { key: '8a2b28280d033811f77acd9160442b740f998394', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, "aria-describedby": this.accessibleDescribedBy, class: {
|
|
40
40
|
"duet-panel": true,
|
|
41
41
|
"duet-theme-turva": this.theme === "turva",
|
|
42
42
|
[this.variation.split("-")[0]]: true,
|
|
43
43
|
[this.variation.split("-")[1]]: true,
|
|
44
44
|
[`padding-${this.padding}`]: true,
|
|
45
45
|
border: this.border,
|
|
46
|
-
} }, index.h("slot", { key: '
|
|
46
|
+
} }, index.h("slot", { key: '9d8fedee8a1747268476e62d802987401074f89f' }))));
|
|
47
47
|
}
|
|
48
48
|
get element() { return index.getElement(this); }
|
|
49
49
|
};
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-CIDaln0Z.js');
|
|
8
8
|
var createId = require('./create-id-DtslnIOq.js');
|
|
9
9
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
10
|
-
var languageUtils = require('./language-utils-
|
|
11
|
-
var slotUtils = require('./slot-utils-
|
|
10
|
+
var languageUtils = require('./language-utils-C7Z0KYg-.js');
|
|
11
|
+
var slotUtils = require('./slot-utils-BXdHT3A1.js');
|
|
12
12
|
require('./string-utils-B35hEUBv.js');
|
|
13
13
|
|
|
14
14
|
const countries = {
|
|
@@ -1787,6 +1787,11 @@ const DuetPhoneInput = class {
|
|
|
1787
1787
|
fi: "Valitse maatunnus",
|
|
1788
1788
|
sv: "Välj landskod",
|
|
1789
1789
|
};
|
|
1790
|
+
this.buttonAriaLabelSelected = {
|
|
1791
|
+
en: "Now selected",
|
|
1792
|
+
fi: "Nyt valittu",
|
|
1793
|
+
sv: "Nu vald",
|
|
1794
|
+
};
|
|
1790
1795
|
this.language = languageUtils.getLanguage();
|
|
1791
1796
|
/**
|
|
1792
1797
|
* Theme of the input.
|
|
@@ -2054,6 +2059,13 @@ const DuetPhoneInput = class {
|
|
|
2054
2059
|
}
|
|
2055
2060
|
return this.renderFlag(this.currentCountry.isoCode, true);
|
|
2056
2061
|
}
|
|
2062
|
+
getAccessibleLabelForButton() {
|
|
2063
|
+
const select = this.buttonAriaLabel[this.language];
|
|
2064
|
+
const selected = this.currentCountry
|
|
2065
|
+
? ` ${this.buttonAriaLabelSelected[this.language]}, ${this.currentCountry[this.language]}.`
|
|
2066
|
+
: "";
|
|
2067
|
+
return `${select}.${selected}`;
|
|
2068
|
+
}
|
|
2057
2069
|
render() {
|
|
2058
2070
|
const lastListFirstCode = (typeof this.listFirst === "string" ? this.listFirst.split(",") : this.listFirst)
|
|
2059
2071
|
.map(c => c.trim().toUpperCase())
|
|
@@ -2063,7 +2075,7 @@ const DuetPhoneInput = class {
|
|
|
2063
2075
|
"duet-theme-turva": this.theme === "turva",
|
|
2064
2076
|
"duet-expand": this.expand,
|
|
2065
2077
|
"duet-m-0": this.margin === "none",
|
|
2066
|
-
} }, index.h("div", { class: "duet-phone-input-container" }, index.h("duet-popup-menu", { ref: el => (this.countryCodePopup = el), scrollLimit: 10, showFilterInput: true }, this.countriesToList.map(country => country.isoCode === lastListFirstCode ? (index.h(index.Fragment, null, index.h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, index.h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), index.h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")"))), index.h("duet-divider", null))) : (index.h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, index.h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), index.h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")")))))), index.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 }, index.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.
|
|
2078
|
+
} }, index.h("div", { class: "duet-phone-input-container" }, index.h("duet-popup-menu", { ref: el => (this.countryCodePopup = el), scrollLimit: 10, showFilterInput: true }, this.countriesToList.map(country => country.isoCode === lastListFirstCode ? (index.h(index.Fragment, null, index.h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, index.h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), index.h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")"))), index.h("duet-divider", null))) : (index.h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, index.h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), index.h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")")))))), index.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 }, index.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 }, index.h("span", { class: "flag-container" }, this.getFlagForButton())), index.h("slot", { name: "tooltip" })))));
|
|
2067
2079
|
}
|
|
2068
2080
|
get element() { return index.getElement(this); }
|
|
2069
2081
|
};
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
7
|
var tokens_module = require('./tokens.module-CTbvyezn.js');
|
|
8
8
|
var floatingUi_dom_browser_min = require('./floating-ui.dom.browser.min-Cj0r5YDz.js');
|
|
9
|
-
var themeableComponent = require('./themeable-component-
|
|
10
|
-
var a11yUtils = require('./a11y-utils-
|
|
11
|
-
var focusUtils = require('./focus-utils-
|
|
9
|
+
var themeableComponent = require('./themeable-component-CIDaln0Z.js');
|
|
10
|
+
var a11yUtils = require('./a11y-utils-DaAO4N9d.js');
|
|
11
|
+
var focusUtils = require('./focus-utils-BuGg0Oha.js');
|
|
12
12
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
13
|
-
var languageUtils = require('./language-utils-
|
|
13
|
+
var languageUtils = require('./language-utils-C7Z0KYg-.js');
|
|
14
14
|
var teleport = require('./teleport-Cqp2Q9R8.js');
|
|
15
15
|
var actionNewWindowSmall = require('./action-new-window-small-BWlVx6YN.js');
|
|
16
|
-
require('./slot-utils-
|
|
16
|
+
require('./slot-utils-BXdHT3A1.js');
|
|
17
17
|
require('./string-utils-B35hEUBv.js');
|
|
18
18
|
require('./_commonjsHelpers-4N64IRaP.js');
|
|
19
19
|
|
|
@@ -548,11 +548,11 @@ const DuetPopupMenuItem = class {
|
|
|
548
548
|
};
|
|
549
549
|
// Without the role ternary Safari/iPhone wouldn't announce the label for role menuitem.
|
|
550
550
|
// This is a tradeoff and now Safari announces these items as buttons and links with the label.
|
|
551
|
-
return (index.h(index.Host, { key: '
|
|
551
|
+
return (index.h(index.Host, { key: 'e4d908ef580f7a4b7f6c73b005df3024376394cf', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, index.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 && (index.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" })), index.h("span", { key: '29946d960923b123aab68ac401922cb29aaa4cd8', class: "duet-popup-menu-item-label" }, index.h("slot", { key: '9994e35a66c58296c3af45cd40f477bc23f460f8' })), (this.trailingIcon || this.active || (this.url && this.external)) && (index.h("duet-icon", { key: '29a0b6a25a8376d41f5279bebebd208e65ce4640', name: this.url && this.external
|
|
552
552
|
? actionNewWindowSmall.newWindowIcon.title
|
|
553
553
|
: this.active
|
|
554
554
|
? "messaging-checked-small"
|
|
555
|
-
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && index.h("span", { key: '
|
|
555
|
+
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && index.h("span", { key: '6d6c1681d4e0551b89bd15d461d14d583fd12b93', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
556
556
|
}
|
|
557
557
|
get element() { return index.getElement(this); }
|
|
558
558
|
};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-CIDaln0Z.js');
|
|
8
8
|
var createId = require('./create-id-DtslnIOq.js');
|
|
9
|
-
var languageUtils = require('./language-utils-
|
|
9
|
+
var languageUtils = require('./language-utils-C7Z0KYg-.js');
|
|
10
10
|
require('./string-utils-B35hEUBv.js');
|
|
11
11
|
|
|
12
12
|
const duetProgressCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;width:100%;height:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0 none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva .progress-bar{background-color:rgb(253, 247, 242)}.duet-progress.duet-theme-turva .progress-bar>span{background-color:rgb(230, 23, 64)}.duet-progress.duet-theme-turva progress[value]{color:rgb(230, 23, 64)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(253, 247, 242)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(230, 23, 64)}.duet-progress.duet-theme-turva progress[value]::-moz-progress-bar{background-color:rgb(253, 247, 242)}";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
8
|
-
var slotUtils = require('./slot-utils-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-CIDaln0Z.js');
|
|
8
|
+
var slotUtils = require('./slot-utils-BXdHT3A1.js');
|
|
9
9
|
var tokenUtils = require('./token-utils-DY3-olMV.js');
|
|
10
10
|
require('./tokens.module-CTbvyezn.js');
|
|
11
11
|
|
|
@@ -75,12 +75,12 @@ const DuetPromoCard = class {
|
|
|
75
75
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
76
76
|
};
|
|
77
77
|
const TagName = this.url ? "a" : "div";
|
|
78
|
-
return (index.h(index.Host, { key: '
|
|
78
|
+
return (index.h(index.Host, { key: '15914a069765b4badeec5e42bc0c4be98528f197', class: { "duet-m-0": this.margin === "none" } }, index.h("aside", { key: '3c097de3be0174444157d849d6d7352d60e8b4fc', class: {
|
|
79
79
|
"duet-promo-card": true,
|
|
80
80
|
"duet-theme-turva": this.theme === "turva",
|
|
81
81
|
"no-bg-color": !this.backgroundColor,
|
|
82
82
|
"duet-promo-card-link": !!this.url,
|
|
83
|
-
}, style: bannerStyles }, index.h(TagName, { key: '
|
|
83
|
+
}, style: bannerStyles }, index.h(TagName, { key: '5510d811615bbb7a172f03b40aaf4062073cb7f2', href: this.url, class: { "content-wrapper": true, "duet-theme-turva": this.theme === "turva" }, ref: element => (this.aOrDivElement = element) }, index.h("img", { key: 'bc7545b847d9d9e71d0be0572fcbc999ee6c80c3', class: "image", src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" }), index.h("div", { key: '82dc0d7269104f81e37d47c5b48f0d43b9000434', class: "content" }, this.hasPreHeadingSlot && (index.h("div", { key: 'de1578879478be3a3f9cc115acb46a19446110a8', class: "pre-heading" }, index.h("slot", { key: '08cd0e79ddf0fd865a244147adbe208c8fa3f9fa', name: "pre-heading" }))), this.hasHeadingSlot && (index.h("div", { key: 'f2317874c4af8c13e932f3eb87b371f1d1b57237', class: "heading" }, index.h("duet-heading", { key: '250310892874b2a50739c52399ea26e9c1d551f1', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.headingLevel, "visual-level": "h3", margin: "none", color: tokenUtils.postfixTheme(this.textColor, this.theme) }, index.h("span", { key: 'b07fc7401b5246d73a9685ce0c3ed066de23d72f' }, index.h("slot", { key: '8de2f4b07d14e7eee8f0c8babef852ae187fc134', name: "heading" }))))), this.hasDescriptionSlot && (index.h("div", { key: 'ddf9ce95776e1bd3c55e9dff3d0d116681f61896', class: "description" }, index.h("duet-paragraph", { key: '1decf80a64e37486c1475437c34894025ae0f021', theme: this.theme, margin: "none", color: tokenUtils.postfixTheme(this.textColor, this.theme) }, index.h("span", { key: 'db6124d5ef91014ccbc9693880921dde31157030' }, index.h("slot", { key: 'fe4c6a624551185cd748d69a451006710ed08558', name: "description" }))))), this.hasActionSlot && (index.h("div", { key: '4386f1dadb0f8311fa9c21c7a47a872a08ab2b63', class: "action" }, index.h("slot", { key: 'c5f4a3ce3b4ca1fdad040b95d883ec74f9a93904', name: "action" }))))))));
|
|
84
84
|
}
|
|
85
85
|
get element() { return index.getElement(this); }
|
|
86
86
|
};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-CIDaln0Z.js');
|
|
8
8
|
var createId = require('./create-id-DtslnIOq.js');
|
|
9
|
-
var slotUtils = require('./slot-utils-
|
|
9
|
+
var slotUtils = require('./slot-utils-BXdHT3A1.js');
|
|
10
10
|
var watchOptions = require('./watch-options-D4JNsU3B.js');
|
|
11
11
|
|
|
12
12
|
const duetRadioCss = "*,*::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:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;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:28px !important}:host(.vertical){margin-right:0 !important}:host(.horizontal){margin-bottom:0 !important;width:auto}:host(.horizontal) .duet-label .duet-label-content{max-width:100%}@media (min-width: 48em){:host(.horizontal-responsive){margin-right:28px !important;margin-bottom:0 !important;width:auto}:host(.horizontal-responsive):last-child,:host(.horizontal-responsive):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.horizontal-responsive):last-of-type:not(:last-child){margin-right:28px !important}:host(.horizontal-responsive) .duet-label .duet-label-content{max-width:100%}}:host(.duet-m-0){margin:0 !important}:host(:last-child:not(:only-child)){margin-right:0 !important;margin-bottom:0 !important}.duet-label{position:relative;z-index:100;display:flex;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);hyphens:auto;word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-label .duet-label-content{flex-grow:1;font-size:1rem}.duet-label-hidden .duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-radio-container{position:relative;width:100%;height:100%}.duet-label::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:\"\";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:50%}.duet-label.focus::before{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-label.focus::before,.duet-label.focus::before.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-label.checked::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:\"\";background:rgb(0, 119, 179);border-radius:50%}.duet-label.disabled{color:rgb(98, 121, 138)}.duet-label.disabled::before{border-color:rgb(181, 198, 208)}.duet-label.disabled.checked::before{border:1px solid rgb(127, 150, 165)}.duet-label.disabled.checked::after{background:rgb(127, 150, 165)}*::slotted([slot=input]){padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}*::slotted([slot=input][disabled]){cursor:default}.duet-theme-turva .duet-label{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)}.duet-theme-turva .duet-radio+label::before{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-label.focus::before{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-label.checked::after{background:rgb(23, 42, 59)}.duet-theme-turva .duet-label.disabled{color:rgb(120, 145, 164)}.duet-theme-turva .duet-label.disabled::before{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-label.disabled.checked::after{background:rgb(120, 145, 164);border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-radio:checked+label::after{background:rgb(23, 42, 59)}.duet-theme-turva .duet-radio[disabled]+label{color:rgb(120, 145, 164)}.duet-theme-turva .duet-radio[disabled]+label::before{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-radio[disabled]:checked+label::after{background:rgb(120, 145, 164);border-color:rgb(120, 145, 164)}";
|
|
@@ -131,9 +131,6 @@ const DuetRadio = class {
|
|
|
131
131
|
/**
|
|
132
132
|
* Component event handling.
|
|
133
133
|
*/
|
|
134
|
-
this.onClick = (ev) => {
|
|
135
|
-
ev.stopPropagation();
|
|
136
|
-
};
|
|
137
134
|
this.onChange = (ev) => {
|
|
138
135
|
const input = this.focusableElement;
|
|
139
136
|
const inputChecked = input.checked;
|
|
@@ -191,17 +188,17 @@ const DuetRadio = class {
|
|
|
191
188
|
* Always the last one in the class.
|
|
192
189
|
*/
|
|
193
190
|
render() {
|
|
194
|
-
return (index.h(index.Host, { key: '
|
|
191
|
+
return (index.h(index.Host, { key: '538a0bdaa3132fcfbd68a8f970f1dc9b8c2f1198', class: {
|
|
195
192
|
vertical: this.groupDirection === "vertical",
|
|
196
193
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
197
194
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
198
195
|
"duet-m-0": this.margin === "none",
|
|
199
|
-
} }, index.h("div", { key: '
|
|
196
|
+
} }, index.h("div", { key: '0e11d68ec02df3163c3dc1524cff2bbff950a496', class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, index.h("slot", { key: 'fdf09172f67232d5b2a689b1f1368bb5da931319', name: "input" }), index.h("label", { key: '516d9ba003ab05b3f7069b46ecfd471df3e4de3e', inert: true, ref: element => (this.labelElement = element), class: {
|
|
200
197
|
"duet-label": true,
|
|
201
198
|
checked: this.checked,
|
|
202
199
|
focus: this.focus,
|
|
203
200
|
disabled: this.disabled || this.groupDisabled,
|
|
204
|
-
} }, index.h("div", { key: '
|
|
201
|
+
} }, index.h("div", { key: 'b525b0a79e22eeb0b4fa8bdfdb854733d66acf2b', class: "duet-label-content" }, this.hasLabel ? index.h("slot", { name: "label" }) : this.label)))));
|
|
205
202
|
}
|
|
206
203
|
get element() { return index.getElement(this); }
|
|
207
204
|
};
|
|
@@ -360,7 +357,7 @@ const DuetRadioGroup = class {
|
|
|
360
357
|
* Always the last one in the class.
|
|
361
358
|
*/
|
|
362
359
|
render() {
|
|
363
|
-
return (index.h(index.Host, { key: '
|
|
360
|
+
return (index.h(index.Host, { key: 'bcae2d75b5843767deb9fc0900ee68751331a011', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, index.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 && (index.h("duet-tooltip", { key: 'af6c3a5dca20b7665e51bd0bf20923779bfd09bb', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), index.h("slot", { key: '6e970de16b4e67c79ab27d45a223ec5989dfb51e', name: "tooltip", slot: "tooltip" }), index.h("div", { key: '4b6385af491f148c5122dd990db0ef05ae8c7c6f', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, index.h("slot", { key: '4d79f47f0f3ab231307045a4c3bfbff89df1b75d' })))));
|
|
364
361
|
}
|
|
365
362
|
get element() { return index.getElement(this); }
|
|
366
363
|
static get watchers() { return {
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
7
|
var tokens_module = require('./tokens.module-CTbvyezn.js');
|
|
8
|
-
var label = require('./label-
|
|
9
|
-
var themeableComponent = require('./themeable-component-
|
|
8
|
+
var label = require('./label-CpPOBfjS.js');
|
|
9
|
+
var themeableComponent = require('./themeable-component-CIDaln0Z.js');
|
|
10
10
|
var createId = require('./create-id-DtslnIOq.js');
|
|
11
11
|
var isInternetExplorer = require('./is-internet-explorer-BTLb_loH.js');
|
|
12
12
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
13
|
-
var slotUtils = require('./slot-utils-
|
|
13
|
+
var slotUtils = require('./slot-utils-BXdHT3A1.js');
|
|
14
14
|
|
|
15
15
|
const duetRangeSliderCss = ".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{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom;text-align:left}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:16px !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-range-container{position:relative;width:100%}.duet-output{position:absolute;top:12px;right:0;z-index:200;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;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);background:rgb(255, 255, 255)}.duet-range-disabled .duet-output{color:rgb(127, 150, 165)}.duet-range{position:relative;z-index:100;width:100%;height:4px;background:rgb(181, 198, 208);border-radius:4px}.duet-range:focus{outline:0}:host(.user-is-tabbing) .duet-range:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-range:focus,:host(.user-is-tabbing) .duet-range:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-ie .duet-range{display:block;width:auto;height:26px;background:transparent !important}.duet-range::-moz-range-track{height:1px;-moz-appearance:none;background:transparent !important;border:0}.duet-range::-ms-track{color:transparent;background:transparent;border:0}.duet-range:active{outline:0}.duet-range::-webkit-slider-runnable-track{background:transparent}.duet-range::-webkit-slider-thumb{position:relative;width:24px;height:24px;-webkit-appearance:none;cursor:-webkit-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%;transition:box-shadow 300ms ease}.duet-range:active::-webkit-slider-thumb{cursor:-webkit-grabbing}.duet-range::-moz-range-thumb{position:relative;width:24px;height:24px;appearance:none;cursor:-moz-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%}.duet-range:active::-moz-range-thumb{cursor:-moz-grabbing}.duet-range::-ms-thumb{position:relative;width:24px;height:24px;overflow:visible;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%}.duet-range:disabled{background:rgb(181, 198, 208) !important}.duet-range:disabled::-webkit-slider-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-range:disabled::-moz-range-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-range:disabled::-ms-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-range::-ms-fill-lower{height:4px;background:rgb(0, 119, 179)}.duet-range::-ms-fill-upper{height:4px;background:rgb(181, 198, 208)}.duet-label-hidden .duet-internal-label,.duet-label-hidden output{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-theme-turva .duet-output{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)}.duet-range-disabled.duet-theme-turva .duet-output{color:rgb(120, 145, 164)}.duet-theme-turva .duet-range{background:rgb(178, 194, 205)}.duet-theme-turva .duet-range::-webkit-slider-thumb{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-range::-moz-range-thumb{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-range::-ms-thumb{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-range:disabled{background:rgb(178, 194, 205) !important}.duet-theme-turva .duet-range:disabled::-webkit-slider-thumb{background:rgb(178, 194, 205);border-color:transparent}.duet-theme-turva .duet-range:disabled::-moz-range-thumb{background:rgb(178, 194, 205);border-color:transparent}.duet-theme-turva .duet-range:disabled::-ms-thumb{background:rgb(178, 194, 205);border-color:transparent}.duet-theme-turva .duet-range::-ms-fill-lower{background:rgb(230, 23, 64)}.duet-theme-turva .duet-range::-ms-fill-upper{background:rgb(178, 194, 205)}";
|
|
16
16
|
|
|
@@ -164,13 +164,13 @@ const DuetRangeSlider = class {
|
|
|
164
164
|
const rangeStyles = {
|
|
165
165
|
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
166
166
|
};
|
|
167
|
-
return (index.h(index.Host, { key: '
|
|
167
|
+
return (index.h(index.Host, { key: '140a9aa52dabb7c79226006b962df8988b32d11a', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, index.h("div", { key: '57c79380ecfdc00894e732406b9f461d673a7511', class: {
|
|
168
168
|
"duet-range-container": true,
|
|
169
169
|
"duet-label-hidden": this.labelHidden,
|
|
170
170
|
"duet-theme-turva": this.theme === "turva",
|
|
171
171
|
"duet-ie": isInternetExplorer.isInternetExplorer(),
|
|
172
172
|
"duet-range-disabled": this.disabled,
|
|
173
|
-
} }, index.h(label.DuetInternalLabel, { key: '
|
|
173
|
+
} }, index.h(label.DuetInternalLabel, { key: '0bd37479e4b671590fd4dd0b63cd3750ca08ebdc', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), index.h("output", { key: '5e4d188ee952a06e3e25e06ec2d946563aed1ad8', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), index.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" }))));
|
|
174
174
|
}
|
|
175
175
|
get element() { return index.getElement(this); }
|
|
176
176
|
};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var themeableComponent = require('./themeable-component-
|
|
8
|
-
var slotUtils = require('./slot-utils-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
|
+
var themeableComponent = require('./themeable-component-CIDaln0Z.js');
|
|
8
|
+
var slotUtils = require('./slot-utils-BXdHT3A1.js');
|
|
9
9
|
var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
|
|
10
|
-
var languageUtils = require('./language-utils-
|
|
10
|
+
var languageUtils = require('./language-utils-C7Z0KYg-.js');
|
|
11
11
|
var tokenUtils = require('./token-utils-DY3-olMV.js');
|
|
12
12
|
var createId = require('./create-id-DtslnIOq.js');
|
|
13
13
|
require('./string-utils-B35hEUBv.js');
|
|
@@ -292,18 +292,18 @@ const DuetScrollable = class {
|
|
|
292
292
|
* Always the last one in the class.
|
|
293
293
|
*/
|
|
294
294
|
render() {
|
|
295
|
-
return (index.h(index.Host, { key: '
|
|
295
|
+
return (index.h(index.Host, { key: '8df51170513077145592d25caa62ba1ad2e85321', class: {
|
|
296
296
|
"duet-theme-turva": this.theme === "turva",
|
|
297
297
|
"duet-theme-default": this.theme === "default",
|
|
298
|
-
} }, this.hasCollapseButtonLabelSlot && (index.h("div", { key: '
|
|
298
|
+
} }, this.hasCollapseButtonLabelSlot && (index.h("div", { key: 'eb436b00c138655bb63089831b85d1e9bb320aae', class: {
|
|
299
299
|
collapse: true,
|
|
300
300
|
hide: !this.needsScrolling && !this.collapsed,
|
|
301
|
-
} }, index.h("duet-button", { key: '
|
|
301
|
+
} }, index.h("duet-button", { key: '7ee25c87ce3da3160b9ceb73730715becad219bf', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, index.h("slot", { key: 'bf4e7d6a981c5544251df380c5b4eef49545fd01', name: "collapse-button-label" })))), index.h("div", { key: 'cd9bea12be8aecb83efce14f2ee153896f64c7cd', class: {
|
|
302
302
|
"duet-scrollable-items": true,
|
|
303
303
|
buttons: this.buttons,
|
|
304
304
|
center: this.center,
|
|
305
305
|
"duet-theme-turva": this.theme === "turva",
|
|
306
|
-
} }, this.buttons && this.renderButton("left"), index.h("div", { key: '
|
|
306
|
+
} }, this.buttons && this.renderButton("left"), index.h("div", { key: '243fe2e1dab3b9eae761f971dbc92eb0a14baa9e', class: {
|
|
307
307
|
"duet-scrollable-list": true,
|
|
308
308
|
[`duet-scrollable-list--${this.buttonPosition}`]: true,
|
|
309
309
|
[`gap-${this.gap}`]: true,
|
|
@@ -311,7 +311,7 @@ const DuetScrollable = class {
|
|
|
311
311
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
312
312
|
[`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
|
|
313
313
|
"duet-scrollable-stretch": this.stretch,
|
|
314
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, index.h("slot", { key: '
|
|
314
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, index.h("slot", { key: '5e49e03f90b17bbb89b5b4f5ea55d6bbd93ec53e' })), this.buttons && this.renderButton("right"))));
|
|
315
315
|
}
|
|
316
316
|
get element() { return index.getElement(this); }
|
|
317
317
|
static get watchers() { return {
|
|
@@ -427,7 +427,7 @@ const DuetTab = class {
|
|
|
427
427
|
* Always the last one in the class.
|
|
428
428
|
*/
|
|
429
429
|
render() {
|
|
430
|
-
return (index.h("div", { key: '
|
|
430
|
+
return (index.h("div", { key: '12b8133d0bbf92a085f5c39db06ad4f61be77770', ref: element => {
|
|
431
431
|
if (!this.contentId) {
|
|
432
432
|
this.tabpanelElement = element;
|
|
433
433
|
}
|
|
@@ -436,7 +436,7 @@ const DuetTab = class {
|
|
|
436
436
|
"duet-tab": true,
|
|
437
437
|
selected: this.selected,
|
|
438
438
|
"has-content-id": !!this.contentId,
|
|
439
|
-
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, index.h("slot", { key: '
|
|
439
|
+
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, index.h("slot", { key: 'f4d601ccf9017d30770ea9eaaf5873b32fcab605' })));
|
|
440
440
|
}
|
|
441
441
|
get element() { return index.getElement(this); }
|
|
442
442
|
static get watchers() { return {
|
|
@@ -722,13 +722,13 @@ const DuetTabGroup = class {
|
|
|
722
722
|
[largeBreakpoint]: ["default", "plain", "plain-scrolling"].includes(this.variation) ? true : false,
|
|
723
723
|
"duet-theme-turva": this.theme === "turva",
|
|
724
724
|
}, onClick: () => this.onTabSelect(index$1), onKeyDown: ev => this.handleKeyDown(ev) }, this.variation === "checked" ? (index.h("div", { class: { "checked-tab-content": true, "stackable-checked-tab-content": this.tabs.length <= 3 } }, index.h("div", { class: { "checked-tab-description": true, "stackable-description": this.tabs.length <= 3 } }, index.h("p", null, element.label), index.h("p", { class: { "tab-caption": true, selected: element.selected } }, element.caption)), index.h("div", { class: { "stackable-checkmark": this.tabs.length <= 3 } }, index.h("duet-checkmark", { theme: this.theme, checked: element.selected, type: "radio", "presentation-only": true, center: true })))) : (element.label), element.indicator && (index.h("duet-indicator", { variation: element.indicator, "accessible-label": element.indicatorAccessibleLabel })))));
|
|
725
|
-
return (index.h("div", { key: '
|
|
725
|
+
return (index.h("div", { key: '9662897bf265783e330558b8a1b463729026b044', class: {
|
|
726
726
|
"duet-tab-group": true,
|
|
727
727
|
"duet-theme-turva": this.theme === "turva",
|
|
728
728
|
[variationClass]: true,
|
|
729
729
|
"duet-tab-plain-scrolling": this.variation === "plain-scrolling",
|
|
730
730
|
"duet-tab-group-scrolls": true,
|
|
731
|
-
}, "aria-label": this.accessibleLabel }, index.h("div", { key: '
|
|
731
|
+
}, "aria-label": this.accessibleLabel }, index.h("div", { key: 'bbeef489c8be2a79c22b7fb355a431fada517c63', role: "tablist", class: {
|
|
732
732
|
"duet-m-0": this.margin === "none" || this.variation === "checked",
|
|
733
733
|
"duet-tab-group-tabs": true,
|
|
734
734
|
"duet-tab-group-hidden": this.tabs.length > 3 && !isSwipeScrollable,
|
|
@@ -739,11 +739,11 @@ const DuetTabGroup = class {
|
|
|
739
739
|
} }, this.variation === "checked" ? (buttons) : (index.h("div", { class: {
|
|
740
740
|
"duet-tab-group-scrollable-wrapper": true,
|
|
741
741
|
"duet-tab-group-fill-space-wrapper": this.fillSpace && this.variation === "default",
|
|
742
|
-
} }, this.fillSpace && !this.stretch && this.variation === "default" && (index.h("div", { class: "duet-scrollable-stretch-overlay" }, index.h("div", { class: "background" }), index.h("div", { class: "border" }))), index.h("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)))), index.h("div", { key: '
|
|
742
|
+
} }, this.fillSpace && !this.stretch && this.variation === "default" && (index.h("div", { class: "duet-scrollable-stretch-overlay" }, index.h("div", { class: "background" }), index.h("div", { class: "border" }))), index.h("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)))), index.h("div", { key: '48bc3f8b5d1ec742e59db454a6b1649e29b7605e', class: {
|
|
743
743
|
"duet-tab-group-content": true,
|
|
744
744
|
"duet-m-0": this.margin === "none",
|
|
745
745
|
"checked-group-content": this.variation === "checked",
|
|
746
|
-
} }, index.h("slot", { key: '
|
|
746
|
+
} }, index.h("slot", { key: 'b6af6d77ff36c34028e664664c71ed391a54066b' }))));
|
|
747
747
|
}
|
|
748
748
|
get element() { return index.getElement(this); }
|
|
749
749
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-ZxE6MB5V.js');
|
|
7
7
|
var isInternetExplorer = require('./is-internet-explorer-BTLb_loH.js');
|
|
8
8
|
|
|
9
9
|
const duetSectionLayoutCss = "*,*::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;flex:1 0 auto;width:100%}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout-wrapper{display:block;margin:48px 0 36px;overflow-x:clip}@media (min-width: 36em){.duet-layout-wrapper{margin-top:72px}}@media (min-width: 62em){.duet-layout-wrapper{margin-bottom:48px}}.duet-layout-wrapper.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-wrapper>*{width:100%}.duet-layout{position:relative;padding:0 16px;margin:0 auto}@media (max-width: 20.5em){.duet-layout.padding-xxx-small{padding:0}}@media (max-width: 22.5em){.duet-layout.padding-xx-small{padding:0}}@media (max-width: 35.9375em){.duet-layout.padding-x-small{padding:0}}@media (min-width: 36em){.duet-layout.padding-small{padding:0}}@media (min-width: 48em){.duet-layout.padding-medium{padding:0}}@media (min-width: 62em){.duet-layout.padding-large{padding:0}}@media (min-width: 64.0625em){.duet-layout.padding-x-large{padding:0}}@media (min-width: 76.25em){.duet-layout.padding-xx-large{padding:0}}@media (min-width: 106.25em){.duet-layout.padding-xxx-large{padding:0}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main{display:block;width:100%}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}}";
|
|
@@ -30,13 +30,13 @@ const DuetSectionLayout = class {
|
|
|
30
30
|
* Always the last one in the class.
|
|
31
31
|
*/
|
|
32
32
|
render() {
|
|
33
|
-
return (index.h(index.Host, { key: '
|
|
33
|
+
return (index.h(index.Host, { key: '675bb0f1357f695ee2d80ae2a0a33f375191aaec', class: {
|
|
34
34
|
"duet-middle": this.middle,
|
|
35
35
|
"duet-ie": isInternetExplorer.isInternetExplorer(),
|
|
36
|
-
} }, index.h("div", { key: '
|
|
36
|
+
} }, index.h("div", { key: 'cfa957d4604cbb8a0a824633dd4bf8c17cd144ae', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, index.h("div", { key: 'afe01f3fb8d78adf63965e56f4aa1bbece5a50f3', class: {
|
|
37
37
|
"duet-layout": true,
|
|
38
38
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
39
|
-
} }, index.h("section", { key: '
|
|
39
|
+
} }, index.h("section", { key: 'a749242dc5645d0c22f8d3db2b3f798f1cb864f1', class: "duet-main" }, index.h("slot", { key: 'fc73c99e0e9750dcfe65ab40e4affc2f1fe1dd9e' }))))));
|
|
40
40
|
}
|
|
41
41
|
get element() { return index.getElement(this); }
|
|
42
42
|
};
|