@duetds/components 10.3.1 → 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 +501 -306
- package/hydrate/index.mjs +501 -306
- package/lib/cjs/{a11y-utils-dXXDBTyF.js → a11y-utils-DaAO4N9d.js} +1 -1
- package/lib/cjs/{app-globals-CyPV2FZK.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 +12 -12
- 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 +8 -9
- package/lib/cjs/duet-choice_2.cjs.entry.js +22 -22
- package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
- package/lib/cjs/duet-combobox.cjs.entry.js +26 -10
- 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 +11 -10
- 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 +33 -7
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +8 -8
- package/lib/cjs/duet-grid_2.cjs.entry.js +15 -8
- 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 +79 -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 +11 -11
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-number-input.cjs.entry.js +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 +21 -11
- 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 +10 -11
- 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 +10 -10
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart.cjs.entry.js +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 +7 -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 +14 -21
- package/lib/cjs/duet-toggle.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +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-DQ-I8x2z.js → errorcodes.utils-Dkf_MfrJ.js} +1 -1
- package/lib/cjs/{focus-utils-DstNW4_h.js → focus-utils-BuGg0Oha.js} +1 -1
- package/lib/cjs/{index-B_QTwXEx.js → index-ZxE6MB5V.js} +5 -5
- package/lib/cjs/{label-yAj5CKm3.js → label-CpPOBfjS.js} +1 -1
- package/lib/cjs/{language-utils-DjtvVntE.js → language-utils-C7Z0KYg-.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-YUU0XWn9.js → slot-utils-BXdHT3A1.js} +2 -2
- package/lib/cjs/{themeable-component-h3OzJgCb.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 +5 -6
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +12 -39
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +6 -8
- package/lib/collection/components/duet-combobox/duet-combobox.js +22 -6
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +0 -1
- 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.css +55 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +124 -6
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +4 -4
- package/lib/collection/components/duet-grid/duet-grid.css +23 -0
- package/lib/collection/components/duet-grid/duet-grid.js +29 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +5 -0
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-heading/duet-heading.css +62 -0
- package/lib/collection/components/duet-heading/duet-heading.js +40 -2
- package/lib/collection/components/duet-hero/duet-hero.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 +49 -5
- package/lib/collection/components/duet-input/duet-input.js +152 -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.css +11 -2
- 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/duet-popup-menu.js +13 -3
- 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 +6 -7
- 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.css +11 -2
- 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.css +39 -0
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +13 -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.css +11 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +8 -15
- 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/collection/utils/slot-utils.js +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-c8e520b6.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-18a8ea12.entry.js +4 -0
- package/lib/duet/{p-d8bc628c.entry.js → p-19863cdf.entry.js} +1 -1
- package/lib/duet/p-1bca9931.entry.js +4 -0
- package/lib/duet/{p-0cc2921b.entry.js → p-1da7703d.entry.js} +1 -1
- package/lib/duet/{p-690beb31.entry.js → p-20a8ef81.entry.js} +1 -1
- package/lib/duet/p-268b3066.entry.js +4 -0
- package/lib/duet/{p-2e126e15.entry.js → p-2dd7d75e.entry.js} +1 -1
- package/lib/duet/{p-5fb1092c.entry.js → p-2f8a47e2.entry.js} +1 -1
- package/lib/duet/{p-608ebd47.entry.js → p-30108edc.entry.js} +1 -1
- package/lib/duet/{p-3a45c3a4.entry.js → p-317a1fc0.entry.js} +1 -1
- package/lib/duet/{p-ae778cb1.entry.js → p-317e81f3.entry.js} +1 -1
- package/lib/duet/p-3277233e.entry.js +4 -0
- package/lib/duet/{p-efa1cd0b.entry.js → p-3690576a.entry.js} +1 -1
- package/lib/duet/{p-d7506eaa.entry.js → p-38973524.entry.js} +1 -1
- package/lib/duet/{p-3d00efb7.entry.js → p-3b2fba0f.entry.js} +1 -1
- package/lib/duet/{p-4b8293b3.entry.js → p-3f35fce3.entry.js} +1 -1
- package/lib/duet/p-3f3c6e64.entry.js +4 -0
- package/lib/duet/{p-06f17fe7.entry.js → p-3f7afd87.entry.js} +1 -1
- package/lib/duet/p-407f7f03.entry.js +4 -0
- package/lib/duet/p-40fa7371.entry.js +4 -0
- 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-2d963ab0.entry.js → p-461d4089.entry.js} +1 -1
- package/lib/duet/p-4af6a8ed.entry.js +4 -0
- package/lib/duet/{p-ecf69f6d.entry.js → p-4b7f1244.entry.js} +1 -1
- package/lib/duet/{p-18eada94.entry.js → p-516397ba.entry.js} +1 -1
- package/lib/duet/p-5284c707.entry.js +4 -0
- package/lib/duet/{p-1e168d4b.entry.js → p-52beb436.entry.js} +1 -1
- package/lib/duet/p-5c9f443c.entry.js +4 -0
- package/lib/duet/{p-968546f6.entry.js → p-5f5f72d4.entry.js} +1 -1
- package/lib/duet/p-5lFzA17H.js +4 -0
- package/lib/duet/{p-a6bec2da.entry.js → p-61ec0e1c.entry.js} +1 -1
- package/lib/duet/{p-07b9b6c3.entry.js → p-6b469225.entry.js} +1 -1
- package/lib/duet/{p-10a326fa.entry.js → p-6ef683d5.entry.js} +1 -1
- package/lib/duet/{p-de4b0518.entry.js → p-70612314.entry.js} +1 -1
- package/lib/duet/{p-6cffc5b7.entry.js → p-70961edb.entry.js} +1 -1
- package/lib/duet/p-7294c37d.entry.js +4 -0
- package/lib/duet/{p-7ce31e10.entry.js → p-72b504ef.entry.js} +1 -1
- package/lib/duet/p-734249e0.entry.js +4 -0
- package/lib/duet/{p-4856f07c.entry.js → p-7353ee4c.entry.js} +1 -1
- package/lib/duet/p-74aac967.entry.js +4 -0
- package/lib/duet/{p-ed750cdf.entry.js → p-7c08fd87.entry.js} +1 -1
- package/lib/duet/{p-44a97d21.entry.js → p-7eea47d5.entry.js} +1 -1
- package/lib/duet/{p-86166f8d.entry.js → p-7fd39204.entry.js} +1 -1
- package/lib/duet/{p-898d5701.entry.js → p-8012c7bc.entry.js} +1 -1
- package/lib/duet/{p-162a0691.entry.js → p-829db926.entry.js} +1 -1
- package/lib/duet/p-83238bf3.entry.js +4 -0
- package/lib/duet/{p-25b4886a.entry.js → p-833802f9.entry.js} +1 -1
- package/lib/duet/{p-2ac11077.entry.js → p-86ffd3cb.entry.js} +1 -1
- package/lib/duet/{p-8a28f86e.entry.js → p-871620d3.entry.js} +1 -1
- package/lib/duet/{p-d2e74e89.entry.js → p-8ace1eb4.entry.js} +1 -1
- package/lib/duet/p-8b0dfbd7.entry.js +4 -0
- package/lib/duet/p-93ff8fe4.entry.js +4 -0
- package/lib/duet/{p-a8229728.entry.js → p-9ae7aaef.entry.js} +1 -1
- package/lib/duet/{p-f71d04ce.entry.js → p-9c9811ba.entry.js} +1 -1
- package/lib/duet/{p-f15ab3b8.entry.js → p-9e1a59d1.entry.js} +1 -1
- package/lib/duet/{p-DrqQiRTn.js → p-B2cboDWM.js} +1 -1
- package/lib/duet/{p-CW11pVgw.js → p-B8-N_qjs.js} +1 -1
- package/lib/duet/p-BzYmwX5_.js +4 -0
- package/lib/duet/{p-BUWuSkQW.js → p-C5Yfx2kd.js} +1 -1
- package/lib/duet/{p-DFAnksuG.js → p-CFqvB5PA.js} +1 -1
- package/lib/duet/p-Cg4m_WHe.js +4 -0
- package/lib/duet/{p-B6Z_1gqI.js → p-R3pTP2Oy.js} +1 -1
- package/lib/duet/p-a068c086.entry.js +4 -0
- package/lib/duet/p-a483117e.entry.js +4 -0
- package/lib/duet/p-a5177d32.entry.js +4 -0
- package/lib/duet/{p-65350441.entry.js → p-a8876b3d.entry.js} +1 -1
- package/lib/duet/{p-5c9530f1.entry.js → p-a9104184.entry.js} +1 -1
- package/lib/duet/{p-b4c18ee6.entry.js → p-b1326cbb.entry.js} +1 -1
- package/lib/duet/{p-17413943.entry.js → p-b747f6e9.entry.js} +1 -1
- package/lib/duet/{p-12b2d402.entry.js → p-bdbf0fae.entry.js} +1 -1
- package/lib/duet/{p-b6dc4395.entry.js → p-c1afac0d.entry.js} +1 -1
- package/lib/duet/p-c2026c6b.entry.js +4 -0
- package/lib/duet/{p-301b8664.entry.js → p-c216e746.entry.js} +1 -1
- package/lib/duet/{p-bfc75bb9.entry.js → p-c54be349.entry.js} +1 -1
- package/lib/duet/{p-fca9c5c4.entry.js → p-cb6c4158.entry.js} +1 -1
- package/lib/duet/{p-278ef4d8.entry.js → p-cbcee3e2.entry.js} +1 -1
- package/lib/duet/{p-0ccecf5b.entry.js → p-d3b5c997.entry.js} +1 -1
- package/lib/duet/{p-ec689a7c.entry.js → p-d3baa815.entry.js} +1 -1
- package/lib/duet/{p-f55f8bd9.entry.js → p-d5f90dbc.entry.js} +1 -1
- package/lib/duet/{p-b9a54319.entry.js → p-d6f0afa5.entry.js} +1 -1
- package/lib/duet/{p-d83f38c7.entry.js → p-d779fe42.entry.js} +1 -1
- package/lib/duet/{p-806c4ab8.entry.js → p-dedf6a32.entry.js} +1 -1
- package/lib/duet/{p-5fb783eb.entry.js → p-e08dce92.entry.js} +1 -1
- package/lib/duet/{p-fe00331c.entry.js → p-e7f2359a.entry.js} +1 -1
- package/lib/duet/{p-419b96b6.entry.js → p-efa4eecc.entry.js} +1 -1
- package/lib/duet/p-f040706c.entry.js +4 -0
- package/lib/duet/{p-17c063a3.entry.js → p-fa13ffe9.entry.js} +1 -1
- package/lib/duet/{p-93abd97a.entry.js → p-fe829b53.entry.js} +1 -1
- package/lib/duet/p-s8EL6NG5.js +4 -0
- package/lib/esm/{a11y-utils-D66Lzlz5.js → a11y-utils-ChN5Nhxh.js} +1 -1
- package/lib/esm/{app-globals-G9KPoeGD.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 +12 -12
- 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 +8 -9
- package/lib/esm/duet-choice_2.entry.js +22 -22
- package/lib/esm/duet-collapsible.entry.js +3 -3
- package/lib/esm/duet-combobox.entry.js +26 -10
- 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 +11 -10
- 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 +33 -7
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +8 -8
- package/lib/esm/duet-grid_2.entry.js +15 -8
- 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 +79 -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 +11 -11
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +9 -9
- package/lib/esm/duet-number-input.entry.js +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 +21 -11
- 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 +10 -11
- 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 +10 -10
- package/lib/esm/duet-shaped-image.entry.js +4 -4
- package/lib/esm/duet-share-chart-item.entry.js +2 -2
- package/lib/esm/duet-share-chart.entry.js +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 +7 -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 +14 -21
- package/lib/esm/duet-toggle.entry.js +8 -8
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +8 -8
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +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-C6zptXiM.js → errorcodes.utils-DuFCu_27.js} +1 -1
- package/lib/esm/{focus-utils-YZ2ticmM.js → focus-utils-CFswdkeD.js} +1 -1
- package/lib/esm/{index-DrqQiRTn.js → index-B2cboDWM.js} +5 -5
- package/lib/esm/{label-CnTwCD-3.js → label-CJxIWUOT.js} +1 -1
- package/lib/esm/{language-utils-BEG0cFmw.js → language-utils-C4M4ASkT.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-Dzrezpl3.js → slot-utils--sNK1DNn.js} +2 -2
- package/lib/esm/{themeable-component-BLql61nC.js → themeable-component-BBi3552X.js} +1 -1
- package/lib/types/common-types.d.ts +11 -28
- 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-combobox/duet-combobox.d.ts +1 -0
- package/lib/types/components/duet-empty-state/duet-empty-state.d.ts +24 -4
- package/lib/types/components/duet-grid/duet-grid.d.ts +5 -0
- package/lib/types/components/duet-heading/duet-heading.d.ts +10 -0
- package/lib/types/components/duet-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-textarea/duet-textarea.d.ts +0 -5
- 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 +151 -14
- package/lib/types/utils/math.utils.d.ts +1 -0
- package/package.json +5 -5
- package/lib/duet/p-0a80de40.entry.js +0 -4
- package/lib/duet/p-162993d2.entry.js +0 -4
- package/lib/duet/p-234f4365.entry.js +0 -4
- package/lib/duet/p-245c0535.entry.js +0 -4
- package/lib/duet/p-29599dc5.entry.js +0 -4
- package/lib/duet/p-3d0a716c.entry.js +0 -4
- package/lib/duet/p-3eba33cd.entry.js +0 -4
- package/lib/duet/p-550bfab9.entry.js +0 -4
- package/lib/duet/p-5c60eca3.entry.js +0 -4
- package/lib/duet/p-67b3a01a.entry.js +0 -4
- package/lib/duet/p-6e1b9cc8.entry.js +0 -4
- package/lib/duet/p-9172ba70.entry.js +0 -4
- package/lib/duet/p-BQVGvl4H.js +0 -4
- package/lib/duet/p-CLZq8YfV.js +0 -4
- package/lib/duet/p-D2JvSVnG.js +0 -4
- package/lib/duet/p-ELbbzMVZ.js +0 -4
- package/lib/duet/p-a3ad5622.entry.js +0 -4
- package/lib/duet/p-a73b7110.entry.js +0 -4
- package/lib/duet/p-b1d91a91.entry.js +0 -4
- package/lib/duet/p-b9be36c8.entry.js +0 -4
- package/lib/duet/p-bdae48d3.entry.js +0 -4
- package/lib/duet/p-bdf6a296.entry.js +0 -4
- package/lib/duet/p-c8d10c67.entry.js +0 -4
- package/lib/duet/p-ce4d9add.entry.js +0 -4
- package/lib/duet/p-da275568.entry.js +0 -4
- package/lib/duet/p-dc5682d8.entry.js +0 -4
- package/lib/duet/p-e050ed5c.entry.js +0 -4
- package/lib/duet/p-e9c2eb66.entry.js +0 -4
- package/lib/duet/p-ec5f40a5.entry.js +0 -4
- package/lib/duet/p-f68a4a23.entry.js +0 -4
- package/lib/duet/p-f8e26f21.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"; }
|
|
@@ -89,7 +89,9 @@ export class DuetChip {
|
|
|
89
89
|
radioInput.ariaDisabled = this.disabled ? "true" : undefined;
|
|
90
90
|
radioInput.id = this.identifier || this.chipId;
|
|
91
91
|
radioInput.type = "radio";
|
|
92
|
-
radioInput.name
|
|
92
|
+
if (radioInput.name !== this.name) {
|
|
93
|
+
radioInput.name = this.name;
|
|
94
|
+
}
|
|
93
95
|
radioInput.value = this.value;
|
|
94
96
|
radioInput.checked = this.checked;
|
|
95
97
|
radioInput.ariaLabel = this.element.textContent;
|
|
@@ -201,16 +203,14 @@ export class DuetChip {
|
|
|
201
203
|
}
|
|
202
204
|
};
|
|
203
205
|
/**
|
|
204
|
-
* Stop
|
|
206
|
+
* Stop prevent default if popup is present, as the popup controls value and checked state.
|
|
205
207
|
*/
|
|
206
208
|
this.onFilterClick = (evt) => {
|
|
207
209
|
if (this.disabled) {
|
|
208
|
-
evt.stopPropagation();
|
|
209
210
|
evt.preventDefault();
|
|
210
211
|
return;
|
|
211
212
|
}
|
|
212
213
|
if (this.popupElement) {
|
|
213
|
-
evt.stopPropagation();
|
|
214
214
|
evt.preventDefault();
|
|
215
215
|
this.popupElement.toggle();
|
|
216
216
|
}
|
|
@@ -219,7 +219,6 @@ export class DuetChip {
|
|
|
219
219
|
* Remove input chip
|
|
220
220
|
*/
|
|
221
221
|
this.onRemoveClick = (evt) => {
|
|
222
|
-
evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
|
|
223
222
|
evt === null || evt === void 0 ? void 0 : evt.preventDefault();
|
|
224
223
|
this.duetRemove.emit({
|
|
225
224
|
originalEvent: evt,
|
|
@@ -332,7 +331,7 @@ export class DuetChip {
|
|
|
332
331
|
onBlur: this.onBlur,
|
|
333
332
|
ref: el => (this.focusableElement = el),
|
|
334
333
|
};
|
|
335
|
-
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' }))))));
|
|
336
335
|
}
|
|
337
336
|
static get is() { return "duet-chip"; }
|
|
338
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() {
|
|
@@ -176,7 +176,9 @@ export class DuetChoice {
|
|
|
176
176
|
input.disabled = this.getDisabled();
|
|
177
177
|
input.id = this.identifier || this.choiceId;
|
|
178
178
|
input.type = this.type;
|
|
179
|
-
input.name
|
|
179
|
+
if (input.name !== this.name) {
|
|
180
|
+
input.name = this.name;
|
|
181
|
+
}
|
|
180
182
|
input.value = this.value;
|
|
181
183
|
input.checked = this.checked;
|
|
182
184
|
input.required = this.required;
|
|
@@ -261,13 +263,13 @@ export class DuetChoice {
|
|
|
261
263
|
* Local methods
|
|
262
264
|
*/
|
|
263
265
|
this.toggleChecked = ev => {
|
|
266
|
+
// As label click by default toggles the input, but we handle
|
|
267
|
+
// toggling here, prevent default.
|
|
264
268
|
ev.preventDefault();
|
|
265
|
-
ev.stopPropagation();
|
|
266
269
|
if (this.getDisabled()) {
|
|
267
270
|
return;
|
|
268
271
|
}
|
|
269
|
-
//
|
|
270
|
-
// we shouldn't fire an event, so exit early
|
|
272
|
+
// For a checked radio button do not toggle checkedness nor emit event.
|
|
271
273
|
if (this.type === "radio" && this.checked) {
|
|
272
274
|
return;
|
|
273
275
|
}
|
|
@@ -422,7 +424,7 @@ export class DuetChoice {
|
|
|
422
424
|
* Always the last one in the class.
|
|
423
425
|
*/
|
|
424
426
|
render() {
|
|
425
|
-
return (h(Host, { key: '
|
|
427
|
+
return (h(Host, { key: '161ca837a384fd96fde8171eb0ee9a922f348740', class: {
|
|
426
428
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
427
429
|
[`horizontal-responsive-${this.groupResponsive}`]: this.groupDirection === "horizontal" && !!this.groupResponsive,
|
|
428
430
|
"vertical-stretch": this.groupDirection === "horizontal",
|
|
@@ -431,10 +433,10 @@ export class DuetChoice {
|
|
|
431
433
|
"duet-theme-turva": this.theme === "turva",
|
|
432
434
|
"no-hover": this.isHovering,
|
|
433
435
|
disabled: this.getDisabled(),
|
|
434
|
-
} }, h("div", { key: '
|
|
436
|
+
} }, h("div", { key: '9b1f7f73d1e644294e06780f748a5b5c86f3c419', class: {
|
|
435
437
|
"duet-choice-card-flextainer": true,
|
|
436
438
|
"duet-theme-turva": this.theme === "turva",
|
|
437
|
-
} }, h("div", { key: '
|
|
439
|
+
} }, h("div", { key: '5bd120316eff11e496393cc3d41401c7523d1fdc', class: {
|
|
438
440
|
"duet-choice-card": true,
|
|
439
441
|
"has-icon": !!this.icon,
|
|
440
442
|
"has-info": this.hasInfo,
|
|
@@ -443,16 +445,16 @@ export class DuetChoice {
|
|
|
443
445
|
collapsible: this.collapsible,
|
|
444
446
|
"collapsible-force-expanded": this.collapsibleForceExpanded,
|
|
445
447
|
"duet-p-0": this.padding === "none",
|
|
446
|
-
} }, h("slot", { key: '
|
|
448
|
+
} }, h("slot", { key: '25b753b3d13766c86e7c03e48ecde9ee345151c9', name: "choiceinput" }), h("label", { key: 'd113e5e6012cd5606552b6964c0f792b992483af', class: {
|
|
447
449
|
"duet-choice-label": true,
|
|
448
450
|
"has-before-text": this.hasBeforeText,
|
|
449
451
|
checked: this.checked,
|
|
450
452
|
focus: this.focus,
|
|
451
453
|
disabled: this.getDisabled(),
|
|
452
|
-
}, 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: {
|
|
453
455
|
"duet-choice-info-toggle": true,
|
|
454
456
|
"duet-theme-turva": this.theme === "turva",
|
|
455
|
-
}, 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: {
|
|
456
458
|
"duet-choice-section-visible": this.collapsible ? this.getExpanded() : this.isInfoOpen,
|
|
457
459
|
"duet-choice-section-hidden": this.collapsible ? !this.getExpanded() : !this.isInfoOpen,
|
|
458
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));
|
|
@@ -1316,32 +1318,3 @@ export class DuetChoice {
|
|
|
1316
1318
|
}
|
|
1317
1319
|
static get elementRef() { return "element"; }
|
|
1318
1320
|
}
|
|
1319
|
-
/*
|
|
1320
|
-
|
|
1321
|
-
{this.type === "checkbox" && (
|
|
1322
|
-
<input
|
|
1323
|
-
class="duet-choice-input"
|
|
1324
|
-
type={this.type}
|
|
1325
|
-
onFocus={this.onFocus}
|
|
1326
|
-
onBlur={this.onBlur}
|
|
1327
|
-
onChange={this.onChange}
|
|
1328
|
-
disabled={this.getDisabled()}
|
|
1329
|
-
required={this.required}
|
|
1330
|
-
id={identifier}
|
|
1331
|
-
name={this.name}
|
|
1332
|
-
value={this.value}
|
|
1333
|
-
checked={this.checked}
|
|
1334
|
-
aria-label={this.getLabel()}
|
|
1335
|
-
aria-controls={this.accessibleControls}
|
|
1336
|
-
aria-activedescendant={this.accessibleActiveDescendant}
|
|
1337
|
-
aria-labelledby={this.accessibleLabelledBy}
|
|
1338
|
-
aria-details={this.accessibleDetails}
|
|
1339
|
-
aria-description={this.accessibleDescription}
|
|
1340
|
-
aria-owns={this.accessibleOwns}
|
|
1341
|
-
aria-describedby={this.getAriaDescribedby()}
|
|
1342
|
-
onKeyDown={this.handleKeyDown}
|
|
1343
|
-
ref={input => (this.focusableElement = input)}
|
|
1344
|
-
></input>
|
|
1345
|
-
)}
|
|
1346
|
-
|
|
1347
|
-
*/
|
|
@@ -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"; }
|
|
@@ -20,6 +20,7 @@ export class DuetCombobox {
|
|
|
20
20
|
this.activeDescendantId = createID("duet-combobox-active-descendant");
|
|
21
21
|
this.isAndroidDevice = ((_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.userAgent) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.indexOf("android")) > -1 || null;
|
|
22
22
|
this.isInsideModal = false;
|
|
23
|
+
this.labelClick = false;
|
|
23
24
|
this.resizeObserver = new ResizeObserver(debounce(entries => {
|
|
24
25
|
var _a, _b, _c;
|
|
25
26
|
// otherwise, something is wrong, expecting 1 element only
|
|
@@ -104,8 +105,18 @@ export class DuetCombobox {
|
|
|
104
105
|
const newValue = e.detail.value;
|
|
105
106
|
this.inputValue = newValue;
|
|
106
107
|
};
|
|
107
|
-
this.onInputClick =
|
|
108
|
-
|
|
108
|
+
this.onInputClick = e => {
|
|
109
|
+
const composedPath = e.composedPath();
|
|
110
|
+
if (composedPath && composedPath[1].nodeName === "LABEL") {
|
|
111
|
+
this.labelClick = true;
|
|
112
|
+
this.listOpen = false;
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (this.labelClick || (composedPath && composedPath[0].nodeName !== "INPUT")) {
|
|
116
|
+
this.labelClick = false;
|
|
117
|
+
this.listOpen = false;
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
109
120
|
// change listOpen on next tick so popup controller is set when open changes
|
|
110
121
|
setTimeout(() => {
|
|
111
122
|
var _a, _b;
|
|
@@ -183,7 +194,6 @@ export class DuetCombobox {
|
|
|
183
194
|
return;
|
|
184
195
|
}
|
|
185
196
|
nextActiveItem = this.listOpen ? this.activeItem + 1 : this.activeItem;
|
|
186
|
-
this.popupMenuController = this.input.nativeInputElement;
|
|
187
197
|
// change listOpen on next tick so popup controller is set when open changes
|
|
188
198
|
setTimeout(() => {
|
|
189
199
|
this.listOpen = true;
|
|
@@ -356,7 +366,7 @@ export class DuetCombobox {
|
|
|
356
366
|
this.input.chips = this.multiple;
|
|
357
367
|
this.input.addEventListener("duetChange", this.onInputChange);
|
|
358
368
|
this.input.addEventListener("duetInput", this.onInputTyping);
|
|
359
|
-
this.
|
|
369
|
+
this.element.addEventListener("click", this.onInputClick);
|
|
360
370
|
//add correct aria attributes to the input element
|
|
361
371
|
this.input.role = "combobox";
|
|
362
372
|
this.input.accessibleExpanded = this.listOpen ? "true" : "false";
|
|
@@ -366,13 +376,20 @@ export class DuetCombobox {
|
|
|
366
376
|
this.element.addEventListener("keydown", this.onKeyDown);
|
|
367
377
|
connectLanguageChangeObserver(this, { prop: "accessibleLabels", defaults: "accessibleLabelDefaults" });
|
|
368
378
|
this.processListOpenChange();
|
|
379
|
+
setTimeout(() => {
|
|
380
|
+
var _a;
|
|
381
|
+
const nativeInputElement = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeInputElement;
|
|
382
|
+
if (nativeInputElement && this.popupMenuController !== nativeInputElement) {
|
|
383
|
+
this.popupMenuController = nativeInputElement;
|
|
384
|
+
}
|
|
385
|
+
}, 100);
|
|
369
386
|
}
|
|
370
387
|
disconnectedCallback() {
|
|
371
388
|
if (Build.isServer) {
|
|
372
389
|
return;
|
|
373
390
|
}
|
|
374
391
|
this.input.removeEventListener("duetChange", this.onInputChange);
|
|
375
|
-
this.
|
|
392
|
+
this.element.removeEventListener("click", this.onInputClick);
|
|
376
393
|
this.element.removeEventListener("keydown", this.onKeyDown);
|
|
377
394
|
this.resizeObserver.disconnect();
|
|
378
395
|
disconnectLanguageChangeObserver(this);
|
|
@@ -528,7 +545,6 @@ export class DuetCombobox {
|
|
|
528
545
|
// Event handlers
|
|
529
546
|
onListClick(e, item) {
|
|
530
547
|
e.preventDefault();
|
|
531
|
-
e.stopPropagation();
|
|
532
548
|
// update selected item with id
|
|
533
549
|
if (this.multiple) {
|
|
534
550
|
this.addSelectedItem(item.id, true);
|
|
@@ -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"; }
|
|
@@ -40,10 +40,63 @@
|
|
|
40
40
|
color: rgb(8, 42, 77);
|
|
41
41
|
text-align: center;
|
|
42
42
|
background: rgb(245, 248, 250);
|
|
43
|
-
border-radius:
|
|
43
|
+
border-radius: 12px;
|
|
44
|
+
}
|
|
45
|
+
.duet-empty-state.padding-small {
|
|
46
|
+
padding: 36px;
|
|
47
|
+
}
|
|
48
|
+
.duet-empty-state.padding-large {
|
|
49
|
+
padding: 72px;
|
|
50
|
+
}
|
|
51
|
+
.duet-empty-state.warning {
|
|
52
|
+
background: rgb(255, 247, 221);
|
|
53
|
+
}
|
|
54
|
+
.duet-empty-state.duet-no-background {
|
|
55
|
+
background: none;
|
|
56
|
+
}
|
|
57
|
+
.duet-empty-state > div {
|
|
58
|
+
max-width: 800px;
|
|
59
|
+
margin: auto;
|
|
60
|
+
}
|
|
61
|
+
.duet-empty-state .duet-empty-state-heading {
|
|
62
|
+
font-size: 4vw;
|
|
63
|
+
font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
64
|
+
font-style: normal;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
line-height: 1.25;
|
|
67
|
+
color: rgb(8, 42, 77);
|
|
68
|
+
letter-spacing: 0;
|
|
69
|
+
}
|
|
70
|
+
@media (max-width: 27.5rem) {
|
|
71
|
+
.duet-empty-state .duet-empty-state-heading {
|
|
72
|
+
font-size: 1.1rem;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@media (min-width: 28.4090909091rem) {
|
|
76
|
+
.duet-empty-state .duet-empty-state-heading {
|
|
77
|
+
font-size: 1.1363636364rem;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
@container (width < 576px) {
|
|
81
|
+
.duet-empty-state {
|
|
82
|
+
padding: 36px;
|
|
83
|
+
}
|
|
84
|
+
.duet-empty-state.padding-small {
|
|
85
|
+
padding: 28px;
|
|
86
|
+
}
|
|
87
|
+
.duet-empty-state.padding-large {
|
|
88
|
+
padding: 48px;
|
|
89
|
+
}
|
|
44
90
|
}
|
|
45
91
|
|
|
46
|
-
.duet-
|
|
92
|
+
.duet-theme-turva.duet-empty-state {
|
|
47
93
|
color: rgb(23, 42, 59);
|
|
94
|
+
}
|
|
95
|
+
.duet-theme-turva.duet-empty-state:not(.warning):not(.duet-no-background) {
|
|
48
96
|
background: rgb(245, 246, 247);
|
|
97
|
+
}
|
|
98
|
+
.duet-theme-turva.duet-empty-state .duet-empty-state-heading {
|
|
99
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
100
|
+
font-weight: 700;
|
|
101
|
+
color: rgb(23, 42, 59);
|
|
49
102
|
}
|