@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
|
@@ -37,11 +37,11 @@ export class DuetCallout {
|
|
|
37
37
|
<path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>
|
|
38
38
|
</svg>
|
|
39
39
|
`;
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'b082df5828c66c540240a355c2143bdc97cdeda2' }, h("div", { key: '318c40bc242a649eb1e74191703e77ef9f567dac', class: {
|
|
41
41
|
"duet-callout": true,
|
|
42
42
|
"duet-theme-turva": this.theme === "turva",
|
|
43
43
|
"duet-m-0": this.margin === "none",
|
|
44
|
-
} }, h("figure", { key: '
|
|
44
|
+
} }, h("figure", { key: '4c7ff23d3c646e8e37452488aba5b9a28344625f', class: "container" }, h("duet-icon", { key: 'd5234359ce6513b20a552366603498b7dc5729f5', class: "callout-icon", shape: "brand-rotated", background: "primary-lighter", "background-opacity": "0.75", "background-rotation": this.theme === "turva" ? "0" : "7", color: "secondary", icon: icon, size: "auto", margin: "none", theme: this.theme }), h("blockquote", { key: '67ab9a0d89f6abff523b8ca16a20c2a67865b86a' }, h("slot", { key: 'fc4670a439f114411b42ce3dcd8ef7f365fa650c' })), this.hasAuthorSlot && (h("figcaption", { key: '9d1b92d3229bef3447e7b5590efc766d4efb2ad6', class: "author" }, h("span", { key: '5310ad556c87706338d0a75058107d2e4d1fe241' }, "\u2014 "), h("slot", { key: 'f7281f1633a536bd242831e952ca1bc240b98b1c', name: "author" })))))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "duet-callout"; }
|
|
47
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -203,16 +203,14 @@ export class DuetChip {
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
/**
|
|
206
|
-
* Stop
|
|
206
|
+
* Stop prevent default if popup is present, as the popup controls value and checked state.
|
|
207
207
|
*/
|
|
208
208
|
this.onFilterClick = (evt) => {
|
|
209
209
|
if (this.disabled) {
|
|
210
|
-
evt.stopPropagation();
|
|
211
210
|
evt.preventDefault();
|
|
212
211
|
return;
|
|
213
212
|
}
|
|
214
213
|
if (this.popupElement) {
|
|
215
|
-
evt.stopPropagation();
|
|
216
214
|
evt.preventDefault();
|
|
217
215
|
this.popupElement.toggle();
|
|
218
216
|
}
|
|
@@ -221,7 +219,6 @@ export class DuetChip {
|
|
|
221
219
|
* Remove input chip
|
|
222
220
|
*/
|
|
223
221
|
this.onRemoveClick = (evt) => {
|
|
224
|
-
evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
|
|
225
222
|
evt === null || evt === void 0 ? void 0 : evt.preventDefault();
|
|
226
223
|
this.duetRemove.emit({
|
|
227
224
|
originalEvent: evt,
|
|
@@ -334,7 +331,7 @@ export class DuetChip {
|
|
|
334
331
|
onBlur: this.onBlur,
|
|
335
332
|
ref: el => (this.focusableElement = el),
|
|
336
333
|
};
|
|
337
|
-
return (h(Host, { key: '
|
|
334
|
+
return (h(Host, { key: 'ebc8f8cba112ee9f682c22ba09f04b05968d4ba2', class: { [this.variation]: true } }, this.variation === "button" && (h("span", { key: '6bf0c0545a457d2917df074d7d263e12e07e3255', class: classes }, h("button", Object.assign({ key: '51780aa4be42824dd17784e59b17ff23cdca4ea1', id: identifier, "aria-label": this.accessibleLabel, "aria-haspopup": this.getAccessiblePopup(), "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, name: this.name, value: this.value, onClick: this.disabled ? evt => evt.stopPropagation() : undefined }, focusHandlers), h("span", { key: '52036fee728f26c3b21701d9ed870caf45e9295f', class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { key: '7ef322e3c74ca552fb91a03d1d4d7cbba4b325e3', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", { key: 'b781a521f1dc02c0c7b0792309d4fb730acc5c2d' })))), this.variation === "input" && (h("span", { key: 'c997bfd1f27de93629210b953c9788bdf754538f', class: classes, "aria-label": this.getAccessibleInputChipLabel() }, h("button", Object.assign({ key: 'c1ff3d503dda53884a42637460d048a27fe0d40e', id: identifier, class: "duet-chip-input-button", value: this.value, "aria-label": this.accessibleLabel, onMouseOver: () => (this.inputChipHover = true), onMouseOut: () => (this.inputChipHover = false), onClick: () => (this.selected = !this.selected) }, focusHandlers), h("span", { key: '73d0e2250e46b6bdd1ffd65f9879e7c9d90da448', class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { key: 'f5353d825977fb008fb2d71fe796a2c6f4720181', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", { key: '2932e26e6266957b80953b2ce275d580466e47ba' })), h("button", { key: '248c016d99211ec7893a1cc74f7ecd268d44d343', class: "duet-chip-remove-button", "aria-label": this.getAccessibleDeleteLabel(), onClick: this.onRemoveClick, onFocus: () => (this.inputChipDeleteFocus = true), onBlur: () => (this.inputChipDeleteFocus = false), ref: el => (this.deleteButtonElement = el) }, h("duet-icon", { key: '6172cedf507d0e6f69ea39ce8fa6a4e21b714d11', name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (h("span", { key: '8c7b88c4c077b7bd4afd0c7bdf36d01f9c9092ae', class: classes }, h("input", Object.assign({ key: 'b97c5cba016483f506521d00100f022160f48680', "aria-haspopup": this.getAccessiblePopup(), "aria-controls": (_a = this.popupElement) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), h("label", { key: 'cc082e72c8f2a782f4bfd44afc35daea973c6b08', htmlFor: identifier }, this.icon && (h("span", { key: 'a453948d4d0507fe5dbd080f573d83356f95f35c', class: "duet-chip-icon-container" }, h("duet-icon", { key: '4545c9c75f4ac311e19d9932328eb7e6d8318ac9', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), h("duet-icon", { key: '2dd3e4bc69e6efd4138ba8b74a5fddf52394416f', name: "messaging-checked-small", size: this.size === "large" ? "x-small" : "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), h("slot", { key: '5367a32b3b34e7c67412bd0a0dfa9ace24636687' }), this.popupElement && (h("span", { key: 'edad2d024ba464eea661cd1990629633438b6ba0', class: "duet-chip-popup-disclosure" }, h("duet-icon", { key: 'aa76a07f9446fea95dc61660c92c5bee645f27d4', name: "action-arrow-down-small", size: this.size === "large" ? "xx-small" : "xxx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (h("span", { key: '97fe2aee42e9823b794acaeda3df724470c4c832', class: classes }, h("slot", { key: 'f820fe5d09ff67433693698dd9d60848535cab8a', name: "input" }), h("label", { key: '0953b3248cc1c8f6fa46f2684f7fc465bfd0a412', htmlFor: identifier }, this.icon && (h("span", { key: '25e66d3992af529de900ead65488bf64a4c12650', class: "duet-chip-icon-container" }, h("duet-icon", { key: '731d3562a51b7c231d8142c7b0ec8d95675439ab', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), h("duet-icon", { key: '9b041e11ab55414369bcd45962c31263129fd5b6', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), h("slot", { key: '9a9dd5c4ba7e327a2df00f24bb272f61a4061d65' }))))));
|
|
338
335
|
}
|
|
339
336
|
static get is() { return "duet-chip"; }
|
|
340
337
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,11 +33,11 @@ export class DuetCheckmark {
|
|
|
33
33
|
inheritGlobalTheme(this);
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '77d8d9cfa205def19022cd899ab98eb36007d2e2', class: { "duet-theme-turva": this.theme === "turva" } }, h("div", { key: 'b93b32d626ceca01d12390209e700eef8665fd8b', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, h("div", { key: 'fa4d7323cf416248275604e05b261bc1f542ea6e', class: {
|
|
37
37
|
"duet-checkmark-container": true,
|
|
38
38
|
center: this.center,
|
|
39
39
|
"duet-checkmark-radio": this.type === "radio",
|
|
40
|
-
} }, this.checked && h("div", { key: '
|
|
40
|
+
} }, this.checked && h("div", { key: 'd2a988ecdd6f5d41ce318365966515ff92c252c6', class: "duet-checkmark" })))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "duet-checkmark"; }
|
|
43
43
|
static get originalStyleUrls() {
|
|
@@ -263,13 +263,13 @@ export class DuetChoice {
|
|
|
263
263
|
* Local methods
|
|
264
264
|
*/
|
|
265
265
|
this.toggleChecked = ev => {
|
|
266
|
+
// As label click by default toggles the input, but we handle
|
|
267
|
+
// toggling here, prevent default.
|
|
266
268
|
ev.preventDefault();
|
|
267
|
-
ev.stopPropagation();
|
|
268
269
|
if (this.getDisabled()) {
|
|
269
270
|
return;
|
|
270
271
|
}
|
|
271
|
-
//
|
|
272
|
-
// we shouldn't fire an event, so exit early
|
|
272
|
+
// For a checked radio button do not toggle checkedness nor emit event.
|
|
273
273
|
if (this.type === "radio" && this.checked) {
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
@@ -424,7 +424,7 @@ export class DuetChoice {
|
|
|
424
424
|
* Always the last one in the class.
|
|
425
425
|
*/
|
|
426
426
|
render() {
|
|
427
|
-
return (h(Host, { key: '
|
|
427
|
+
return (h(Host, { key: '161ca837a384fd96fde8171eb0ee9a922f348740', class: {
|
|
428
428
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
429
429
|
[`horizontal-responsive-${this.groupResponsive}`]: this.groupDirection === "horizontal" && !!this.groupResponsive,
|
|
430
430
|
"vertical-stretch": this.groupDirection === "horizontal",
|
|
@@ -433,10 +433,10 @@ export class DuetChoice {
|
|
|
433
433
|
"duet-theme-turva": this.theme === "turva",
|
|
434
434
|
"no-hover": this.isHovering,
|
|
435
435
|
disabled: this.getDisabled(),
|
|
436
|
-
} }, h("div", { key: '
|
|
436
|
+
} }, h("div", { key: '9b1f7f73d1e644294e06780f748a5b5c86f3c419', class: {
|
|
437
437
|
"duet-choice-card-flextainer": true,
|
|
438
438
|
"duet-theme-turva": this.theme === "turva",
|
|
439
|
-
} }, h("div", { key: '
|
|
439
|
+
} }, h("div", { key: '5bd120316eff11e496393cc3d41401c7523d1fdc', class: {
|
|
440
440
|
"duet-choice-card": true,
|
|
441
441
|
"has-icon": !!this.icon,
|
|
442
442
|
"has-info": this.hasInfo,
|
|
@@ -445,16 +445,16 @@ export class DuetChoice {
|
|
|
445
445
|
collapsible: this.collapsible,
|
|
446
446
|
"collapsible-force-expanded": this.collapsibleForceExpanded,
|
|
447
447
|
"duet-p-0": this.padding === "none",
|
|
448
|
-
} }, h("slot", { key: '
|
|
448
|
+
} }, h("slot", { key: '25b753b3d13766c86e7c03e48ecde9ee345151c9', name: "choiceinput" }), h("label", { key: 'd113e5e6012cd5606552b6964c0f792b992483af', class: {
|
|
449
449
|
"duet-choice-label": true,
|
|
450
450
|
"has-before-text": this.hasBeforeText,
|
|
451
451
|
checked: this.checked,
|
|
452
452
|
focus: this.focus,
|
|
453
453
|
disabled: this.getDisabled(),
|
|
454
|
-
}, onClick: this.onClick }, this.hasBeforeText && h("slot", { key: '
|
|
454
|
+
}, onClick: this.onClick }, this.hasBeforeText && h("slot", { key: '1ab6a902a2a1e6ea5ab7e075a2318482cf0a1f75', name: "before-text" }), this.icon && (h("div", { key: '524b6f9260ab2e3bab12f933ad14e744b1401a12', class: "duet-choice-card-icon" }, h("duet-icon", { key: 'b969cf6e06ffaf643aa701c37d4541e36f4e16a8', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), h("div", { key: '9cc50495673c27a7c6a5f3bdb14c609e6a4601f8', class: "duet-choice-card-text" }, h("div", { key: 'c87f5c7fbfcb824cd962b47f5b245b0d113cb04b' }, this.hasLabel ? h("slot", { name: "label" }) : this.label), this.caption && (h("div", { key: '8b325a22769d880383b1b3b24e531306b83bc082' }, h("duet-spacer", { key: '7d0b9e0b85d3ed5d5da0bcad6991d17ceb385587', size: "xx-small" }), h("duet-caption", { key: '3a3a799147caa313ca58a101dc47e5149c0c214f', margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (h("div", { key: 'ebea33b278a48a2d1277df23682aff24ffca5f93' }, h("duet-spacer", { key: 'c06cf1daace2056cfc11c90e2fdbe2e3d5a02281', size: "xx-small" }), h("slot", { key: '952ec73f80beb3dc70550cc7f294f3cc19466109', name: "additional" })))), h("div", { key: 'c011bec512f287c09ac07c7eb27351bdf035d95f' }, h("div", { key: 'df64779e16fd3eb7a476794b11516433f7d9cdce', class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && h("div", { key: '94314b297dc613c45adaa647eeec06f93b01e325', class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (h("button", { key: 'dd3fc995ac9ac436708557efc5319b7c081d76e8', ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
|
|
455
455
|
"duet-choice-info-toggle": true,
|
|
456
456
|
"duet-theme-turva": this.theme === "turva",
|
|
457
|
-
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.getDisabled(), "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button", onKeyUp: e => this.handleEscape(e) }, h("div", { key: '
|
|
457
|
+
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.getDisabled(), "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button", onKeyUp: e => this.handleEscape(e) }, h("div", { key: 'a78097639b91f3c310e490e8cfc23040a7dfcb48', class: "duet-choice-info-icon" }, h("duet-icon", { key: 'a4a43850eb0cbbb171ff87b7834e135247d5f4c8', icon: infoIcon.svg, margin: "none", size: "small", color: "currentColor" }))))), this.collapsible && (h("span", { key: 'd081dffa05b32cd86475b5dcaed06d8d12af4b85', id: `${this.choiceId}-collapsible-notification`, hidden: true }, this.collapsibleNotification)), this.collapsible || this.hasInfo ? (h("div", { class: this.getClassNames(), id: this.expandId }, h("span", { class: {
|
|
458
458
|
"duet-choice-section-visible": this.collapsible ? this.getExpanded() : this.isInfoOpen,
|
|
459
459
|
"duet-choice-section-hidden": this.collapsible ? !this.getExpanded() : !this.isInfoOpen,
|
|
460
460
|
} }, h("span", { id: this.headerId }, h("slot", { name: "header" })), this.hasInfo ? (h("span", { ref: span => (this.infoContainer = span), tabindex: "-1", class: "duet-choice-info-container", onKeyUp: e => this.handleEscape(e) }, h("span", null, h("slot", { name: "info" })), h("slot", null))) : (h("span", { id: `${this.choiceId}-collapsible-content` }, h("slot", null)))))) : null));
|
|
@@ -75,7 +75,7 @@ export class DuetChoiceGroup {
|
|
|
75
75
|
if (mutationList.some(r => {
|
|
76
76
|
var _a;
|
|
77
77
|
return ((_a = r.removedNodes) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
78
|
-
Array.from(r.removedNodes.values()).some(n => n.nodeName.toLowerCase() === "duet-choice");
|
|
78
|
+
Array.from(r.removedNodes.values()).some(n => n.nodeName.toLowerCase() === "duet-choice" && this.choices.has(n));
|
|
79
79
|
})) {
|
|
80
80
|
this.updateChoices();
|
|
81
81
|
}
|
|
@@ -145,13 +145,11 @@ export class DuetChoiceGroup {
|
|
|
145
145
|
async updateChoices() {
|
|
146
146
|
var _a;
|
|
147
147
|
const value = (_a = this.value) !== null && _a !== void 0 ? _a : this.initialValue;
|
|
148
|
+
const allChoices = Array.from(this.element.querySelectorAll("duet-choice"));
|
|
149
|
+
const ownChoices = allChoices.filter(choice => !allChoices.includes(choice.parentElement.closest("duet-choice")));
|
|
148
150
|
let hasChecked = false;
|
|
149
151
|
this.choices.clear();
|
|
150
|
-
|
|
151
|
-
if (choice.closest("duet-choice-group") === this.element) {
|
|
152
|
-
this.choices.add(choice);
|
|
153
|
-
}
|
|
154
|
-
});
|
|
152
|
+
ownChoices.forEach(choice => this.choices.add(choice));
|
|
155
153
|
// Walk the DOM in reverse order, since the last selected one wins
|
|
156
154
|
for (const choice of Array.from(this.choices)) {
|
|
157
155
|
choice.name = this.name;
|
|
@@ -183,14 +181,14 @@ export class DuetChoiceGroup {
|
|
|
183
181
|
* Always the last one in the class.
|
|
184
182
|
*/
|
|
185
183
|
render() {
|
|
186
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: '94d0ad93557a1487328291dec3786b2a54809a33', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, class: {
|
|
187
185
|
horizontal: this.direction === "horizontal",
|
|
188
186
|
"duet-choice-group-breakpoint-x-small": this.responsive && this.breakpoint === "x-small",
|
|
189
187
|
"duet-choice-group-breakpoint-small": this.responsive && this.breakpoint === "small",
|
|
190
188
|
"duet-choice-group-breakpoint-medium": this.responsive && this.breakpoint === "medium",
|
|
191
189
|
"duet-choice-group-breakpoint-large": this.responsive && this.breakpoint === "large",
|
|
192
190
|
"duet-choice-group-breakpoint-x-large": this.responsive && this.breakpoint === "x-large",
|
|
193
|
-
} }, h("duet-fieldset", { key: '
|
|
191
|
+
} }, h("duet-fieldset", { key: '21ef6afa85bf7d3dddc001aae2583adbd3dee304', label: this.label, labelHidden: this.labelHidden, compactLabel: true, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (h("duet-tooltip", { key: '5ff31a8282e6e7eace9d2bb035d325af2d073fea', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '8e9b7d9abb95cd49f4bbc5fa9a694c2691a32c7d', name: "tooltip", slot: "tooltip" }), h("div", { key: 'be989adb0d4a5794d0132a3ee00979cf1bf79bd9', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, h("slot", { key: '725c965b94dd5e8555d9e2e450ac6d61e74cefb6' })))));
|
|
194
192
|
}
|
|
195
193
|
static get is() { return "duet-choice-group"; }
|
|
196
194
|
static get encapsulation() { return "shadow"; }
|
|
@@ -47,10 +47,10 @@ export class DuetContactCard {
|
|
|
47
47
|
render() {
|
|
48
48
|
const isTurva = this.theme === "turva";
|
|
49
49
|
const theme = isTurva ? "turva" : "default";
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '6cf20cb225b22fbb826b136c3909234684d30e3d', class: { "duet-m-0": this.margin === "none" } }, h("div", { key: '24e57cbe34b4d01ff024fe8128d3168b61e61af6', class: {
|
|
51
51
|
"duet-contact-card": true,
|
|
52
52
|
"duet-theme-turva": this.theme === "turva",
|
|
53
|
-
}, role: "group", "aria-label": this.name }, this.image ? h("img", { class: "image", src: this.image, alt: this.name }) : h("div", null), h("div", { key: '
|
|
53
|
+
}, role: "group", "aria-label": this.name }, this.image ? h("img", { class: "image", src: this.image, alt: this.name }) : h("div", null), h("div", { key: 'f3c40c440d2d9dd97e3c1e24817d60e62f6347f0' }, this.name && (h("duet-heading", { key: 'cde7a70f10cfdd45e801c9ef923e116b2ee12e42', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (h("duet-paragraph", { key: '1c855114d2101701a8b39f75fe8b2ae76d5ffe57', class: "description", margin: "none", theme: theme }, this.description)), this.email && (h("div", { key: 'b552b0f0de5e16059e77ee518e2087d24a2171c4', class: "email" }, h("duet-icon", { key: '2048a5cb8e29d7d664c984c72031cdfd1894e0a6', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '6e2a9b632e0fb1df3efd51dc66d6df1891eaa3a1', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (h("div", { key: '1a263f67d1844f9c2ba334ba24ebc32d9faf4b86', class: "phone" }, h("duet-icon", { key: 'dab3c18ed7f4c092aa8644ef6d9a915854c9e33d', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '68c6b2ff4480300f563b7d8d65fb4d47160fcd8b', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (h("div", { key: '70288a25480b39a333831a129def567c99f202b7', class: "call-to-action" }, h("duet-button", { key: 'c5fccd74b8b2b6b4917b464c5e723c657e326bb0', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), h("div", { key: '9fd8e574534d15aa89eaac786c257586a6f9f845' }), h("slot", { key: 'ab0fa1cc3232c70441d441e4c673b8b562ffbe92' }))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "duet-contact-card"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -475,13 +475,13 @@ export class DuetDatePicker {
|
|
|
475
475
|
if (maxDate) {
|
|
476
476
|
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
477
477
|
}
|
|
478
|
-
return (h(Host, { key: '
|
|
478
|
+
return (h(Host, { key: 'bc53156f31fd151a978be4cb494d89811177d2de', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, h("div", { key: 'bd85feeae1d997447181347f131cf0eaa309af93', class: "duet-date" }, h(DatePickerInput, { key: '0e22a10646a9df5c2dee41047df08e8df6b63872', hasFocus: this.inputHasFocus, value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, accessibleLiveError: this.accessibleLiveError, echoPlaceholder: this.echoPlaceholder, caption: this.caption })), h("div", { key: 'c4575f4c809d00307b254756d1c00e5d65520b03', class: {
|
|
479
479
|
"duet-theme-turva": this.theme === "turva",
|
|
480
480
|
"duet-date-dialog": true,
|
|
481
481
|
left: this.direction === "left",
|
|
482
482
|
error: !!this.error,
|
|
483
483
|
active: this.open,
|
|
484
|
-
}, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("duet-overlay", { key: '
|
|
484
|
+
}, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("duet-overlay", { key: '73718663a16c1f4f18625a0e9b5e12c4d84e2862', visible: this.open, "display-device": "x-small" }), h(FocusGuard, { key: '55795dff1697ed625725a441813c2837b9180ca4', moveFocusTo: this.focusedDayNode }), h("div", { key: '4575c14cab6890c2ed93f14cc269495f4e6112c6', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, h("duet-visually-hidden", { key: '64ec3d2f1809490ebfe3dd1e04bd332fd603010a', "aria-live": "polite" }, text.keyboardInstruction), h("div", { key: 'b5545e0104ad9a0bc9f99ff3a725752595a0ffa6', class: "duet-date-dialog-mobile-header" }, h(DuetInternalLabel, { key: '73d2c0aa481b994ce191816304e1867f461aa7d7', margin: "none" }, this.label), h("button", { key: 'c7483c8e743830ff8a21c2127897b43e45b57d8b', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, h("duet-icon", { key: 'b2b8fd08895e8a5b0de42af39fb3e8b4810314e7', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), h("duet-visually-hidden", { key: '9238a95c2b5266055844e593ba8ab6349d9d033f' }, text.closeLabel))), h("div", { key: '3f68135c40899e3de9f9546ebdace84fbe831141', class: "duet-date-dialog-header" }, h("div", { key: '5cc6d3e6a2665e29091147f86fe44339af33327c', class: "duet-date-dialog-dropdowns" }, h("duet-visually-hidden", { key: '5bf35b2c9736d2d110344b92942f13be850d644b' }, h("h2", { key: '95391f17e2c907733fe1c3d567678d236e369fdc', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), h("duet-visually-hidden", { key: 'a356aafd4ce51cf91cbc363297645efa79da42e3' }, h("label", { key: 'd806131d0e348f3743726e47daeb580baaec91a2', htmlFor: this.monthSelectId }, text.monthSelectLabel)), h("div", { key: '5e4a84de81c95b6c62dc03de1c805f472377805c', class: "duet-date-dialog-select" }, h("select", { key: 'aa66520799ef32c4dfe30506cdbeb4f01000055e', id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (h("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), h("div", { key: '8bf72353d282a2c82f0e64e1a752a17dbcd6423b', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '1b9a7f95c0007b30117782c962311c54244228a3' }, text.monthLabelsShort[focusedMonth]), h("duet-icon", { key: 'a234a84604cb1f87ee8c382b7d886e00a13cd913', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), h("duet-visually-hidden", { key: 'f41e59ff6c32248ea057f4547ef6bf24688423e1' }, h("label", { key: '10ea1d3b43b673950054ad36abe59688971843d0', htmlFor: this.yearSelectId }, text.yearSelectLabel)), h("div", { key: 'b7cd16b90fb5126189de4648b99c6634c15bc5a2', class: "duet-date-dialog-select" }, h("select", { key: '852475517a751519016dcc2c14023b9f1850b0d9', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (h("option", { key: year, selected: year === focusedYear }, year)))), h("div", { key: '426ab30bd0268b659253d8b9dcd375b7da1952dd', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '55b9cc0f5e60cd6ad666e58c2724865216d1c635' }, this.focusedDay.getFullYear()), h("duet-icon", { key: 'b28ab73ebb1ca7fac93ee3c52d696fa65f2bef29', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), h("div", { key: 'eee0f191f6b409674d0ef2b7383d6ab45c316d7c', class: "duet-date-dialog-buttons" }, h("duet-action-button", { key: '5a4c05b83e76b2740f71fe7e2d94602e16aa0219', accessibleLabel: i18n[this.language].prevMonthLabel, actionName: i18n[this.language].prevMonthLabel, class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel), h("duet-action-button", { key: '0d4117fdd8511135bede66b13c8177d7105b567f', accessibleLabel: i18n[this.language].nextMonthLabel, actionName: i18n[this.language].nextMonthLabel, class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))), h(DatePickerMonth, { key: 'ac47f9d6b83fa994e5137a45c300db313dd70701', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })), h(FocusGuard, { key: '9727a0dab133694bd4b2ef008adec00439040b8b', moveFocusTo: this.closeButtonNode }))));
|
|
485
485
|
}
|
|
486
486
|
static get is() { return "duet-date-picker"; }
|
|
487
487
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1299,6 +1299,9 @@ export class DuetDatePicker {
|
|
|
1299
1299
|
}, {
|
|
1300
1300
|
"propName": "required",
|
|
1301
1301
|
"methodName": "updateValidity"
|
|
1302
|
+
}, {
|
|
1303
|
+
"propName": "inputValue",
|
|
1304
|
+
"methodName": "updateValidity"
|
|
1302
1305
|
}, {
|
|
1303
1306
|
"propName": "value",
|
|
1304
1307
|
"methodName": "updateInternalValue"
|
|
@@ -32,7 +32,7 @@ export class DuetDivider {
|
|
|
32
32
|
*/
|
|
33
33
|
render() {
|
|
34
34
|
const background = getColorByName(this.color);
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: 'cfe1692393e236239489a12b1348ee3ceacbd6e8', class: {
|
|
36
36
|
"duet-m-0": this.margin === "none",
|
|
37
37
|
"duet-m-s": this.margin === "small",
|
|
38
38
|
"duet-divider": true,
|
|
@@ -206,7 +206,7 @@ export class DuetEditableTable {
|
|
|
206
206
|
* Render Methods
|
|
207
207
|
*/
|
|
208
208
|
render() {
|
|
209
|
-
return (h(Host, { key: '
|
|
209
|
+
return (h(Host, { key: 'e8047048590b1dfac635e5a94a46fb1d61e4030b', class: {
|
|
210
210
|
[`duet-editable-table-${this.variation}`]: true,
|
|
211
211
|
"duet-editable-table": true,
|
|
212
212
|
[`duet-editable-table-${this.theme}`]: true,
|
|
@@ -216,7 +216,7 @@ export class DuetEditableTable {
|
|
|
216
216
|
"duet-editable-table-actions": !!this.actions,
|
|
217
217
|
"duet-m-0": this.margin === "none",
|
|
218
218
|
"duet-theme-turva": this.theme === "turva",
|
|
219
|
-
} }, h("duet-table", { key: '
|
|
219
|
+
} }, h("duet-table", { key: 'abcb5c0dc22830d840bbf18144e66605207849d0', class: "duet-editable-table-table", sticky: this.sticky, stickyDistance: this.stickyDistance, margin: this.margin, theme: this.theme, variation: this.variation, breakpoint: this.breakpoint, "hide-head-visually": this.hideHeadVisually }, h("table", { key: '269ab86ebe745cfcf2e208e174e0914ea7b4fed8', role: this.accessibleRole }, h("caption", { key: '2753e748db0c5264c994a41b002e52a5641d2971' }, h("slot", { key: '567de210690137ae00e2ad40e2e2c1e1c733f3d7', name: "tcaption" })), h("thead", { key: 'ea6b829d344cd19619f667d75304614cbf60cc9d' }, this.hasHeadSlotFirst && (h("tr", { key: '84c66d116690df93737670dbbd0fc2b0e5c9f80b' }, h("td", { key: '3ab4954300f48b65cdc48f612045ef4296f3561d', class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { key: '9f32c90606e46036a34ca037bdfd61d4eae70fb2', name: "thead-first" })))), this.renderTableHeader(), this.hasHeadSlotLast && (h("tr", { key: '8be7b6223bd2ba7109db839efde2baab0f04c40f' }, h("td", { key: '1d6b0626d4b9dfdedc24f1118b53558e3ad80a54', class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { key: '247e4a043cc716d504a4827c415a3d73e8285046', name: "thead-last" }))))), h("tbody", { key: '778fd5a880190cffa0f9649b37839b2a0abedbe5' }, this.renderTableBody()), this.hasFootSlot && (h("tfoot", { key: '8c5e4045377ec3547c5005836f389cac2221dc62' }, h("tr", { key: '71959adb135cbcd6b7e19c9c9d4dcd3e799e8720' }, h("td", { key: 'ff1dc8216a9c918c1d9dec4aaf77454fd728a9ff', class: "duet-editable-table-footer-menu", colSpan: 99 }, h("slot", { key: '450238c070a9f72a326737a26b1f6ede2f9606d2', name: "tfoot" })))))))));
|
|
220
220
|
}
|
|
221
221
|
static get is() { return "duet-editable-table"; }
|
|
222
222
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,13 +53,13 @@ export class DuetEmptyState {
|
|
|
53
53
|
* Always the last one in the class.
|
|
54
54
|
*/
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'bf9aa87672aa22b4e89cc0014f6918fd8389981f' }, h("div", { key: '21e1d1af1326ef9709a99695809cb6025bd8431a', class: {
|
|
57
57
|
"duet-empty-state": true,
|
|
58
58
|
[this.variation]: true,
|
|
59
59
|
[`padding-${this.padding}`]: true,
|
|
60
60
|
"duet-theme-turva": this.theme === "turva",
|
|
61
61
|
"duet-no-background": this.background === "none",
|
|
62
|
-
} }, this.icon !== "none" && this.getIcon(), this.heading && (h("div", { key: '
|
|
62
|
+
} }, this.icon !== "none" && this.getIcon(), this.heading && (h("div", { key: 'dc994018199345c865ee6d242349dadd99f71b36' }, h("strong", { key: '4e758372f9785d9f54bfe969ddcb90a0ae1fee6d', class: "duet-empty-state-heading" }, this.heading), h("duet-spacer", { key: '7eedd7853ef4ea89bb434dc55a488132fa8a30ef', size: "x-small" }))), h("div", { key: '4d1817b68cd9e88627eb1725a06cd510ea10ed61' }, h("slot", { key: '4db106ff0912e6896ca74071580223340fb3df14' })))));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "duet-empty-state"; }
|
|
65
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -75,20 +75,20 @@ export class DuetFieldset {
|
|
|
75
75
|
* Always the last one in the class.
|
|
76
76
|
*/
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: 'ac0f503ac6d41953e774ad46b418c8ea39ff4708', class: { "duet-m-0": this.margin === "none" } }, h("fieldset", { key: 'b564273ca16fac8fbb500ab8bfc9dff72e579770', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
|
|
79
79
|
// NVDA and VoiceOver do not yet support aria-errormessage
|
|
80
80
|
// once they do, we can remove errors from the aria-describedby
|
|
81
81
|
// aria-errormessage={this.error ? this.errorId : null}
|
|
82
82
|
class: {
|
|
83
83
|
"duet-fieldset": true,
|
|
84
84
|
"duet-theme-turva": this.theme === "turva",
|
|
85
|
-
} }, h("legend", { key: '
|
|
85
|
+
} }, h("legend", { key: '607df92d8f78aaad01e4c80e33c17da55a52e20f', id: this.labelId }, h(this.labelHeadingLevel, { key: '33cee42411e380076885a046790cb8006088c5ed' }, this.label), this.caption && h("span", { key: '52c809bbe842c11a84e7d1a5c3083bfe92472d36' }, this.caption)), h("div", { key: 'aa297b27900d3a28a48bf8102b75e900896393ff', class: {
|
|
86
86
|
"duet-legend-wrapper": true,
|
|
87
87
|
"duet-legend-has-caption": !!this.caption,
|
|
88
88
|
"duet-legend-has-tooltip": this.hasTooltip,
|
|
89
89
|
"duet-legend-hidden": this.labelHidden,
|
|
90
90
|
"duet-legend-compact": this.compactLabel,
|
|
91
|
-
} }, h("div", { key: '
|
|
91
|
+
} }, h("div", { key: '3af22b271c143a074adee18554408291e3faa660', class: "duet-fieldset-label" }, h("span", { key: '939a883743e233ba83e8ff3328b18842b0c4eae4', "aria-hidden": "true" }, this.label), h("slot", { key: '822892f650b6c0f733cc58a1aee1654e21d1f1f6', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (h("div", { key: 'bc40348b978fc775d1007cdf3949e95d4d3b54e0', class: "duet-fieldset-caption", "aria-hidden": "true" }, h("duet-caption", { key: '3119b1a7963015c24d6324d5de47fc53cdfd748e', theme: this.theme, margin: "none" }, this.caption)))), h("slot", { key: 'fa922540a117205680098064372a70aefc0953ae' }), h("span", { key: 'ad8d4d59379d7a9f89e618754d46404eb5c3c664', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: 'c36abae3849393120d72e3781305cb2ce88b384c', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "duet-fieldset"; }
|
|
94
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class DuetUploadItem {
|
|
|
48
48
|
inheritGlobalTheme(this);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: 'f17176210e5f0675eb847b4d9d60594a226e3dab' }, h("duet-visually-hidden", { key: '3a0eef27ad35e9348f9047f8ad2dcf13c5a9ad76', "aria-hidden": "true" }, h("input", { key: '4c67d86c2f388fbd4e2914013b0611e973a24e35', ref: input => {
|
|
52
52
|
this.nativeInput = input;
|
|
53
53
|
}, type: "file", class: {
|
|
54
54
|
"duet-upload": true,
|
|
@@ -160,16 +160,16 @@ export class DuetFooter {
|
|
|
160
160
|
render() {
|
|
161
161
|
const text = getLocaleString(i18n, this.language);
|
|
162
162
|
const copyrightLabel = this.theme === "turva" ? text.turva : text.lahi;
|
|
163
|
-
return (h("footer", { key: '
|
|
163
|
+
return (h("footer", { key: '41644e999245cd90d4c97839293f95bfa5d9d250', class: {
|
|
164
164
|
"duet-footer": true,
|
|
165
165
|
"duet-m-0": this.margin === "none",
|
|
166
166
|
"duet-theme-turva": this.theme === "turva",
|
|
167
167
|
"duet-footer-simple": this.variation === "simple",
|
|
168
|
-
}, "aria-label": this.accessibleLabel }, h("div", { key: '
|
|
168
|
+
}, "aria-label": this.accessibleLabel }, h("div", { key: '5cc2520a6657b134143ef4b54e8bc25cb4ec6f3f', class: "duet-footer-wrapper" }, this.variation !== "simple" && (h("div", { key: '6172bf0124114fa0d1447d4cde52541c06513707', class: {
|
|
169
169
|
"duet-footer-top": true,
|
|
170
170
|
"duet-has-info": this.hasInfoSlot,
|
|
171
|
-
}, part: "top" }, h("div", { key: '
|
|
172
|
-
this.processedItems.map((item, index) => (h(Fragment, null, index > 0 && h("duet-spacer", { size: "x-large", direction: "horizontal" }), h("duet-button", { ref: element => this.setDataAttributes(element, item), theme: this.theme, id: item.id, class: "duet-footer-link", variation: "plain", margin: "none", fixed: true, negative: true, url: item.href, external: item.external, icon: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), h("slot", { key: '
|
|
171
|
+
}, part: "top" }, h("div", { key: '8d7fa0e35487812a06867478b0d8c717e8cbc295', class: "footer-top-logo" }, h("duet-logo", { key: '88a405f43f8923aec01dfbe7637d8b693c24ee94', href: this.logoHref, onClick: this.handleLogoClick, size: "large", inverse: true, language: this.language, theme: this.theme })), h("div", { key: '0945fb2a21d2621abd034763e50d30f047fa7734', class: "footer-top-right-container" }, h("slot", { key: '73eb607d6eae88968f7066c951f5f8ddf326f55e', name: "info" }), h("div", { key: '1c142d6053b4b3f9b0bae03289e9ad79849cade6', class: "footer-top-items" }, this.processedItems &&
|
|
172
|
+
this.processedItems.map((item, index) => (h(Fragment, null, index > 0 && h("duet-spacer", { size: "x-large", direction: "horizontal" }), h("duet-button", { ref: element => this.setDataAttributes(element, item), theme: this.theme, id: item.id, class: "duet-footer-link", variation: "plain", margin: "none", fixed: true, negative: true, url: item.href, external: item.external, icon: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), h("slot", { key: '86fc7e14e4fb80b35c4e81659c9e3b35d6c965c7', name: "extra" }), h("p", { key: 'f5ddbb6a4cbf19f70259d96ef786cd6b068f503f', class: "duet-footer-menu", part: "menu" }, h("span", { key: '9e2390e03d199fc50f6fb67181734a4ba71a38b8', class: "duet-footer-copyright" }, `${copyrightLabel} ${new Date().getFullYear()}`), h("span", { key: 'c7b6bc951c3d2dc81abfcc4eac43d6d9061e9421', class: "duet-footer-menu-links" }, this.processedMenu && (h(Fragment, { key: '87ef405d79957865d7cfd81f07fb400b9aa2ab1a' }, this.processedMenu.map(item => (h("a", { ref: element => this.setDataAttributes(element, item), href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleMenuClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label, item.external && (h(Fragment, null, h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), h("span", { class: "duet-footer-external" }, h("duet-icon", { icon: newWindowIconSmall.svg, size: "xx-small", margin: "none", color: "currentColor" })))), h("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")))))))), h("p", { key: '53c2ae3a42969730299aa948b8b6d42e9d765d32', class: "duet-footer-copyright duet-footer-copyright-mobile" }, `${copyrightLabel} ${new Date().getFullYear()}`))));
|
|
173
173
|
}
|
|
174
174
|
static get is() { return "duet-footer"; }
|
|
175
175
|
static get encapsulation() { return "shadow"; }
|
|
@@ -208,7 +208,7 @@ export class DuetGrid {
|
|
|
208
208
|
* Always the last one in the class.
|
|
209
209
|
*/
|
|
210
210
|
render() {
|
|
211
|
-
return (h(Host, { key: '
|
|
211
|
+
return (h(Host, { key: 'e64260236eda4217a2cb10444342c33d243da8cf', class: {
|
|
212
212
|
"duet-grid": true,
|
|
213
213
|
"duet-no-stacking": !this.responsive,
|
|
214
214
|
"duet-grid-align-top": this.alignment === "top", // flex-start
|
|
@@ -237,7 +237,7 @@ export class DuetGrid {
|
|
|
237
237
|
[`duet-grid-template-${this.gridTemplate}`]: true,
|
|
238
238
|
"duet-grid-no-row-gap": this.gridTemplateGap.startsWith("none") && this.gridTemplate !== "button-grid",
|
|
239
239
|
"duet-grid-no-column-gap": this.gridTemplateGap.endsWith("none") && this.gridTemplate !== "button-grid",
|
|
240
|
-
} }, h("slot", { key: '
|
|
240
|
+
} }, h("slot", { key: '1cb11ce3685bf5043dfa3e36e6a0ff3653106b54' })));
|
|
241
241
|
}
|
|
242
242
|
static get is() { return "duet-grid"; }
|
|
243
243
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@ export class DuetGridItem {
|
|
|
53
53
|
* Always the last one in the class.
|
|
54
54
|
*/
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '59b2546565c78716d981db97ba3a66b9f4b06104', style: {
|
|
57
57
|
"min-width": this.minWidth,
|
|
58
58
|
"max-width": this.maxWidth,
|
|
59
59
|
}, class: {
|
|
@@ -70,7 +70,7 @@ export class DuetGridItem {
|
|
|
70
70
|
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
71
71
|
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
72
72
|
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
73
|
-
} }, h("slot", { key: '
|
|
73
|
+
} }, h("slot", { key: '78c0ca977366f49a62d91c19e42b7140455c0e7e' })));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "duet-grid-item"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,7 +58,7 @@ export class DuetHeading {
|
|
|
58
58
|
render() {
|
|
59
59
|
const TagName = sanitizeString(this.level);
|
|
60
60
|
const color = getColorByName(this.color);
|
|
61
|
-
return (h(TagName, { key: '
|
|
61
|
+
return (h(TagName, { key: 'c921aaf37180daaa075fa9973069ff1ead3050a1', class: {
|
|
62
62
|
"duet-heading": true,
|
|
63
63
|
"duet-heading-border": this.border !== false,
|
|
64
64
|
"duet-heading-border-solid": this.border === "solid",
|
|
@@ -69,7 +69,7 @@ export class DuetHeading {
|
|
|
69
69
|
[this.visualLevel ? this.visualLevel : this.level]: true,
|
|
70
70
|
"duet-theme-turva": this.theme === "turva",
|
|
71
71
|
"fixed-size": this.fixedSize,
|
|
72
|
-
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, this.preHeading && h("span", { key: '
|
|
72
|
+
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, this.preHeading && h("span", { key: 'a39345b73db50edae14806161481c4f5ec2aea71', class: "pre-post-heading" }, this.preHeading, " "), h("slot", { key: 'f36300eafdc9fea4a9b8fde902cd1872bb586b65' }), this.postHeading && h("span", { key: 'e8f5b8d19838e6c3d8e049975dcc5740bfd00363', class: "pre-post-heading" }, " ", this.postHeading)));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "duet-heading"; }
|
|
75
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -284,7 +284,7 @@ export class DuetHero {
|
|
|
284
284
|
outlineColor = "color-primary-turva";
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
return (h("div", { key: '
|
|
287
|
+
return (h("div", { key: 'c9ddbcc16c2911a20e497cd8aa384fa5c07d33aa', role: "region", class: {
|
|
288
288
|
"duet-hero": true,
|
|
289
289
|
"duet-theme-turva": this.theme === "turva",
|
|
290
290
|
"duet-has-category-icon": !!this.categoryIcon,
|
|
@@ -302,17 +302,17 @@ export class DuetHero {
|
|
|
302
302
|
"duet-hero-text-center": this.variation !== "product" && ((this.textCenter && !this.leftAlign) || campaignOrSection),
|
|
303
303
|
"duet-hero-left-align": this.variation === "product" || (this.leftAlign && !campaignOrSection),
|
|
304
304
|
"duet-hero-narrow": this.layout === "narrow",
|
|
305
|
-
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: '
|
|
306
|
-
this.processedBack && (h("div", { key: '
|
|
305
|
+
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: 'a11039ca72275168553d2bba06cd909229dc1925', class: "background-area" }, h("div", { key: 'a21ad76654ac39c2fa21795f1cca235dc92e6404', class: "background-container" }, h("div", { key: '12d3583034b68b6fb747c749c0449146c40cb471', class: "background" }, h("img", { key: '8961eadf230127f3783efad4c48be759c4657e2a', class: `${imageSizeIsCover ? "cover" : ""} ${imagePositionIsCenter ? "center" : ""}`, src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" })), h("div", { key: 'bdfeab66795ec39e3f0383d9c2ef713733eb1a87', class: "brand-shape" })))), this.variation === "product" && this.image && (h("div", { key: 'f08f6d3f621e7dac9a46f1942d87a6ec8cc8afa1', class: { "background-area": true, [this.layout]: true } }, h("div", { key: 'dcb0f245be411d836d24d7adb5c98b82841d6038', class: { "background-container": true, [this.layout]: true } }, h("div", { key: 'a5c5eccc8dcf20d10c7be435873c815eaf0713e2', class: { background: true, [this.layout]: true } }, h("div", { key: '358763fb7ceea2e54bb6d5249a3b4281de220758', class: { "background-mask": true, [this.layout]: true } }), this.theme !== "turva" && h("div", { key: 'a11b4ea782b4e6887ec4d6573188adeec90577b1', class: { "brand-shape": true, [this.layout]: true } }), h("div", { key: '7afb89a0beb1d7675c33fcc831880c8126f1299a', class: { "brand-shaped-image": true, [this.layout]: true } }, h("div", { key: 'd9f4649e3eb88d062cbde9eb311f195357f67d5d', class: { "brand-shaped-image-wrapper": true, [this.layout]: true } }, h("div", Object.assign({ key: 'e75eeac505d3b021f0a7de2c195b9846b77c7c17', class: { "brand-shaped-image-bg": true, [this.layout]: true }, style: styles }, bgImgA11yAttrs)))), this.categoryIcon && (h("div", { key: '3c7d8d8ef1ccb2a63c0cde7ce064adb3ac49ba9a', class: { "brand-shaped-icon": true, [this.layout]: true } }, h("duet-icon", { key: '23ff81f55a6f02a5fee73f17ea54a96cee164b85', class: { [this.layout]: true }, background: "none", name: this.categoryIcon, margin: "none", size: "auto", responsive: false }))))))), this.variation === "content" && this.image && (h("div", { key: 'd1d02c374a68c1b68fb2f9d848e5a7c357b5a220', class: "background-area" }, h("div", { key: '9f53455c7fca9008387d26b0dfc89c104076c248', class: "background" }, h("div", { key: '80d50fdf1c366ac730e88fff3d59f10f725f66bb', class: "background-mask" }), this.theme !== "turva" && h("div", { key: 'b079b624311717908bb1e1c37a0c56ad560ed44e', class: "brand-shape" }), h("div", { key: '247c5196610c63556bf2f66e2d8334d9cce8bdfa', class: "brand-shaped-image" }, h("div", { key: 'a83da29f05f36125276f4e74096648b30a8e9898', class: "brand-shaped-image-wrapper" }, h("div", Object.assign({ key: '150f6775a489981cbeaa8aa03f188f165d48aee0', class: "brand-shaped-image-bg", style: styles }, bgImgA11yAttrs))))))), h("div", { key: '558787b0fd8e59329b907d7dda223526d14b632d', class: { "duet-hero-wrapper": true, [this.layout]: true } }, this.image && this.variation === "image" && (h("div", { key: '12abfe5fb1240e186528ecbc2119c0797480e77f', class: "duet-hero-image-mask" }, h("div", { key: '0592878e99fd51f01ce16c2bf2ac1ae44c4636a1', class: "duet-hero-image-wrapper" }, h("div", Object.assign({ key: 'd7a6838d0f589bb56ea831375e8a6237fe3c4bf2', class: "duet-hero-image", style: styles }, bgImgA11yAttrs))))), (this.variation === "gray" || this.variation === "light" || this.variation === "minimal") &&
|
|
306
|
+
this.processedBack && (h("div", { key: 'dbef4d7459000d59a63deb5834086f5e607f8a0a', class: "duet-hero-back" }, h("duet-button", { key: '19481b475ec5fa1a83ee3d94d6170e823d80e5ae', style: buttonStyles, variation: "plain", icon: "action-arrow-left-small", theme: this.theme, iconSize: "small", color: buttonColor, padding: "none", margin: "none", fixed: true, url: this.processedBack.href, identifier: this.processedBack.id, onClick: event => this.handleClick(event, {
|
|
307
307
|
label: this.processedBack.label,
|
|
308
308
|
href: this.processedBack.href,
|
|
309
309
|
id: this.processedBack.id,
|
|
310
310
|
analyticsId: this.processedBack.analyticsId,
|
|
311
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: '
|
|
311
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: 'f1afc26bae892d9ae01824cae17226859bcb2156', class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), h("div", { key: '8ce3263c60dc312e31098663adadec75d34c9e0e', class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (h("duet-paragraph", { key: 'a9faf36bb7d72156356b527ef585f4db2f07885f', margin: "none", class: "duet-hero-pre", size: this.variation === "content" ? "small" : "medium", "aria-hidden": "true" }, this.preHeading ? (this.preHeading) : (h("span", null, h("slot", { name: "pre-heading" }))))), h("slot", { key: '10e35d0acadfbe28c7c3c9a5725190c00cc35214', name: "badge" }), (this.heading || this.hasHeadingSlot) && (h("duet-heading", { key: 'd289ee15b7e8ae4e821195252e132ba6dfd4bb13', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.level, class: { "duet-hero-heading": true, "duet-hero-heading-has-pre": this.preHeading !== "" }, color: headingColor, visualLevel: headingVisualLevel, margin: campaignOrSection ? "none" : "auto", accessibleLabel: this.getAccessibleHeading() }, this.heading ? this.heading : h("slot", { name: "heading" }))), campaignOrSection && this.hasSubHeadingSlot && (h("duet-heading", { key: '66f747db21ef3d390d01c78ff7b05879a4d435c5', theme: this.theme, level: this.hasSubHeadingSlotNative ? "div" : this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, h("slot", { key: 'a61351c8a3463e0d7b3881d4ed2eb430a4d708f8', name: "subheading" }))), this.description && (h("duet-paragraph", { key: '5e17ebff3513457595a670b8b180ad4c900bb5ac', theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (h("duet-list", { key: '7cb299e23a2062bdf5a7831891b9a3590ad51ad5', theme: this.theme, "label-width": "30", breakpoint: "large", mobile: this.leftAlign ? undefined : "center" }, this.processedListItems.map(item => (h("duet-list-item", null, h("span", { slot: "label" }, item.label), h("span", { slot: "value" }, item.value)))))), this.buttonLabel && (h("duet-button", { key: '132f4b0f22736d84217d2ef92fb137bb37ae1bfa', url: this.buttonUrl, icon: this.icon, iconRight: this.iconRight, iconSize: this.iconSize, variation: buttonVariation, theme: this.theme, identifier: this.buttonId, onClick: event => this.handleClick(event, this.buttonData), fixed: true }, this.buttonLabel)), h("slot", { key: 'ba4d8449b00fe95aa8e9e2b4c0f43143e851c44f' })), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (h("div", { key: 'da7c7c2652fe88ee7a097e696e56c301d8d813b9', class: "duet-hero-links" }, this.processedActions.map(item => (h("a", { class: "duet-hero-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleClick(event, item) }, h("div", { class: "duet-hero-action-icon" }, h("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor", outline: outlineColor })), h("span", null, item.label), item.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), item.external && (h("div", { class: "duet-hero-action-arrow" }, h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
312
312
|
this.variation !== "image" &&
|
|
313
313
|
!campaignOrSection &&
|
|
314
314
|
this.variation !== "product" &&
|
|
315
|
-
this.variation !== "content" && h("div", Object.assign({ key: '
|
|
315
|
+
this.variation !== "content" && h("div", Object.assign({ key: 'b02c3a2b4e9722c7fc64b62e708c2d69d668b5a7', class: "duet-hero-image", style: styles }, bgImgA11yAttrs)), h("slot", { key: 'a8869163ed1e35a8987e126305221199705f4a88', name: "bottom" }))));
|
|
316
316
|
}
|
|
317
317
|
static get is() { return "duet-hero"; }
|
|
318
318
|
static get encapsulation() { return "shadow"; }
|