@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-B2cboDWM.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-BBi3552X.js';
|
|
6
6
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
7
7
|
import { d as debounce } from './js-utils-BlUsLmbQ.js';
|
|
8
8
|
import { j as isArrowKey, k as isNumber, d as isArrowLeftKey, e as isArrowUpKey, f as isArrowRightKey, g as isArrowDownKey, l as isMinusKey, m as isPlusKey } from './keyboard-utils-Db8rvjPI.js';
|
|
9
|
-
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-
|
|
9
|
+
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-C4M4ASkT.js';
|
|
10
10
|
import { p as parsePossibleJSON } from './string-utils-C6E9F6QT.js';
|
|
11
11
|
import { b as breakpointTokensUpTo, a as breakpointToToken } from './token-utils-B0KAgyj_.js';
|
|
12
12
|
import './tokens.module-DEzE2U5T.js';
|
|
@@ -242,14 +242,13 @@ const DuetPagination = class {
|
|
|
242
242
|
calculatePageTake() {
|
|
243
243
|
this.totalPages = Math.ceil(this.total / this.take);
|
|
244
244
|
}
|
|
245
|
-
//
|
|
245
|
+
// Update current when mouse click on arrow buttons
|
|
246
246
|
async onMouseHandler(e, dir) {
|
|
247
247
|
if (this.disabled) {
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
250
|
if (!this.processedPageLinks) {
|
|
251
251
|
e.preventDefault();
|
|
252
|
-
e.stopPropagation();
|
|
253
252
|
this.current = this.current + dir;
|
|
254
253
|
}
|
|
255
254
|
this.emitPageEvent(e);
|
|
@@ -394,32 +393,32 @@ const DuetPagination = class {
|
|
|
394
393
|
* Always the last one in the class.
|
|
395
394
|
*/
|
|
396
395
|
render() {
|
|
397
|
-
return (h(Host, { key: '
|
|
396
|
+
return (h(Host, { key: '7aae3263adf71d77b03be07c9ad260a4f4754159', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, h("nav", { key: 'ad020bd94ffb14b4b41fe139ab7e377deeeead12', role: "navigation", "aria-labelledby": this.accessibleLabelledBy ? `${this.accessibleLabelledBy} ${this.listId}` : this.listId, "aria-describedby": this.accessibleDescribedBy ? `${this.accessibleDescribedBy} ${this.listId}` : this.listId, "aria-descriptions": this.accessibleDescription, "aria-details": this.accessibleDetails, ref: el => (this.nativeNav = el), "aria-controls": this.ariaControls, class: {
|
|
398
397
|
"duet-pagination-nav": true,
|
|
399
398
|
[`duet-pagination-variation-${this.variation}`]: true,
|
|
400
|
-
} }, this.numbersStore !== "" && (h("div", { key: '
|
|
399
|
+
} }, this.numbersStore !== "" && (h("div", { key: '599cfcdc99c0f726f838efb59a5d18def811fec3', "aria-live": "assertive", "aria-relevant": "text", class: "duet-pagination-overlay", "aria-label": `${this.accessibleLabels.jump_to} ${this.numbersStore}`, part: "navigation-overlay" }, h("duet-badge", { key: '2376939fe48f1501856eabe413317653defbb0e0', theme: this.theme }, "jump to page : ", this.numbersStore))), h("ol", { key: '0763fd9a3261cded9a37c556ee63d55fea0beec5', id: this.listId, class: {
|
|
401
400
|
"duet-pagination": true,
|
|
402
401
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
403
|
-
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (h("li", { key: '
|
|
402
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (h("li", { key: 'b9779196cb93bee395de3583880280c988db2891', class: {
|
|
404
403
|
"duet-pagination-page-button": true,
|
|
405
404
|
"duet-pagination-button-first": true,
|
|
406
|
-
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '
|
|
405
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: 'fb1e5c5aa1262fa16b1723ec810757d830f62738', disabled: (this.internalSectionIndex === 0 && this.current <= 1) || this.disabled, "data-direction": "back", accessibleLabel: this.accessibleLabels.first_page, title: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), "icon-name": "action-move-to-first", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[0] : undefined }))), h("li", { key: '90fbdfd8f5c54e45a73e354771a2f3661467b1bb', class: {
|
|
407
406
|
"duet-pagination-page-button": true,
|
|
408
407
|
"duet-pagination-button-first": true,
|
|
409
|
-
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '
|
|
408
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '93ebdbe18cdfca563aa5e6dc12a4a4fd6f68f639', disabled: !!((this.internalSectionIndex === 0 && this.current <= 1) ||
|
|
410
409
|
(this.current <= 1 && this.processedPageLinks) ||
|
|
411
|
-
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (h(Fragment, { key: '
|
|
412
|
-
this.shouldDisplayNavigation() && (h(Fragment, { key: '
|
|
410
|
+
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (h(Fragment, { key: '8b2dbe89ac7c1684e82ee77a43f0f2ca8d9b89a8' }, h("li", { key: '4f3ebacb88d1f21b2f358d443328bd59eec10264', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { key: 'ab65423e15d3a7cbd4c4fddf42f976e3c0ba9ea2', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-jump-back", "center-text": "true", variation: "plain", color: this.theme !== "turva" ? "secondary" : "secondary-turva", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[0] : undefined }, h("div", { key: '469b36535535c82356ae0aa5bb58dd1771d47dd2', class: "duet-pagination-page-number" }, "1"))), h("li", { key: '222dcd79d07ae767593df35766d0ebb1686e16ee', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { key: 'cf4ec1ba0cb36a0c2cd00b8a388f472a58a2e326', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-dots-back", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1), theme: this.theme }, h("div", { key: '4a9496ccdfdc6475a581a76b618897cd8e81c175', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026"))))), (this.shouldDisplayNavigation() && this.renderPageNumbers()) || this.renderSelect(), (this.internalSectionIndex + 1) * this.visibleItems < this.totalPages &&
|
|
411
|
+
this.shouldDisplayNavigation() && (h(Fragment, { key: '7168d8184d99f05d1ceb390687004810f43cf957' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (h("li", { key: 'f2497085cb58ccb9c65db6f9699ff4b0d45e881d', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { key: '9eb3a7eb684367f52a0bb31681402cf357b41493', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-dots-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.next_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, 1), theme: this.theme }, h("div", { key: '30e54f85dc44e0ab900c5ee84e1e581658fa625e', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), h("li", { key: '86a7ea35747c42719c394062da51a74f147a8f0e', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { key: '136b42193fd165e8845aa55cbbfdc4c2234063ec', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-jump-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), theme: this.theme, url: this.processedPageLinks
|
|
413
412
|
? this.processedPageLinks[this.processedPageLinks.length - 1]
|
|
414
|
-
: undefined }, h("div", { key: '
|
|
413
|
+
: undefined }, h("div", { key: '84e6618b71439ceea94b5be66dfc9ca935dee2df', class: "duet-pagination-page-number" }, this.totalPages))))), h("li", { key: '5cc6fc85a3cc763f9b5bb3f5bd7c2383e273f09d', class: {
|
|
415
414
|
"duet-pagination-page-button": true,
|
|
416
415
|
"duet-pagination-button-last": true,
|
|
417
|
-
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '
|
|
416
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: 'd84bd849c47769f4863cb38218e8851e7ff88291', disabled: !!((this.current === this.totalPages &&
|
|
418
417
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
419
|
-
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (h("li", { key: '
|
|
418
|
+
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (h("li", { key: '339d7f334ac903a87caa8699b31761b411a50c9d', class: {
|
|
420
419
|
"duet-pagination-page-button": true,
|
|
421
420
|
"duet-pagination-button-last": true,
|
|
422
|
-
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '
|
|
421
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '3179b9a09fec7d31c2830b91a6958dfa2cdad21f', disabled: (this.current === this.totalPages &&
|
|
423
422
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
424
423
|
this.disabled, accessibleLabel: this.accessibleLabels.last_page, title: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), "icon-name": "action-move-to-last", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.totalPages - 1] : undefined })))))));
|
|
425
424
|
}
|
|
@@ -619,10 +618,10 @@ const DuetRangeStepper = class {
|
|
|
619
618
|
* Always the last one in the class.
|
|
620
619
|
*/
|
|
621
620
|
render() {
|
|
622
|
-
return (h("div", { key: '
|
|
621
|
+
return (h("div", { key: '7a19673ab541ea98696cdf665d1f37b8ac025f80', class: {
|
|
623
622
|
"duet-range-stepper": true,
|
|
624
623
|
"duet-theme-turva": this.theme === "turva",
|
|
625
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: '
|
|
624
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: 'c26de19d4c0bdae85dbaa9c5d0c4dca7118cbd59', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), h("duet-action-button", { key: '780c748f25da231b4d32473c2404737516dea44c', disabled: this.disabled || this.buttonLeftDisabled, class: "duet-range-step-button duet-range-step-minus", onClick: e => this.handleClick(e, -1), id: this.leftBn, "accessible-label": `${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`, ref: el => (this.leftBnRef = el), part: "navigation-arrow", iconName: "action-arrow-left-small", title: "" }), h("duet-action-button", { key: '2883d256e795c2357edcfdd7515bc3242f754698', disabled: this.disabled || this.buttonRightDisabled, class: "duet-range-step-button duet-range-step-plus", onClick: e => this.handleClick(e, 1), "accessible-label": `${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow", iconName: "action-arrow-right-small", title: "" })));
|
|
626
625
|
}
|
|
627
626
|
get element() { return getElement(this); }
|
|
628
627
|
static get watchers() { return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-B2cboDWM.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-BBi3552X.js';
|
|
6
6
|
|
|
7
7
|
const duetPanelCss = ":host {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n background: transparent;\n border: 0;\n position: relative;\n display: block;\n width: 100%;\n margin: 8px 0 20px 0;\n}\n@container (width > 36em) {\n :host {\n margin: 12px 0 28px 0;\n }\n}\n\n:host(.duet-m-0) {\n margin: 0;\n}\n\n.duet-panel {\n font-family: \"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n color: rgb(8, 42, 77);\n background-color: rgb(255, 255, 255);\n border: 0 solid rgb(212, 223, 229);\n border-radius: 16px;\n}\n.duet-panel.padding-small {\n padding: 16px;\n border-radius: 12px;\n}\n@container (width > 36em) {\n .duet-panel.padding-small {\n padding: 20px;\n }\n}\n.duet-panel.padding-medium {\n padding: 20px;\n}\n@container (width > 36em) {\n .duet-panel.padding-medium {\n padding: 28px;\n }\n}\n.duet-panel.padding-large {\n padding: 28px;\n}\n@container (width > 36em) {\n .duet-panel.padding-large {\n padding: 36px;\n }\n}\n.duet-panel.border {\n border-width: 1px;\n}\n.duet-panel.secondary {\n background-color: rgb(245, 248, 250);\n}\n.duet-panel.accent {\n background-color: rgb(240, 247, 250);\n border-color: rgb(198, 225, 238);\n}\n.duet-panel.accent.secondary {\n background-color: rgb(217, 236, 245);\n}\n\n.duet-panel.duet-theme-turva {\n font-family: \"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n color: rgb(23, 42, 59);\n border-color: rgb(212, 221, 226);\n}\n.duet-panel.duet-theme-turva.secondary {\n background-color: rgb(245, 246, 247);\n}\n.duet-panel.duet-theme-turva.accent {\n background-color: rgb(253, 247, 242);\n border-color: rgb(241, 202, 178);\n}\n.duet-panel.duet-theme-turva.accent.secondary {\n background-color: rgb(251, 225, 209);\n}";
|
|
8
8
|
|
|
@@ -34,14 +34,14 @@ const DuetPanel = class {
|
|
|
34
34
|
inheritGlobalTheme(this);
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: 'f245a3e1001c22a202f3568c3bb787d0733d6d06', class: { "duet-m-0": this.margin === "none" } }, h("section", { key: '8a2b28280d033811f77acd9160442b740f998394', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, "aria-describedby": this.accessibleDescribedBy, class: {
|
|
38
38
|
"duet-panel": true,
|
|
39
39
|
"duet-theme-turva": this.theme === "turva",
|
|
40
40
|
[this.variation.split("-")[0]]: true,
|
|
41
41
|
[this.variation.split("-")[1]]: true,
|
|
42
42
|
[`padding-${this.padding}`]: true,
|
|
43
43
|
border: this.border,
|
|
44
|
-
} }, h("slot", { key: '
|
|
44
|
+
} }, h("slot", { key: '9d8fedee8a1747268476e62d802987401074f89f' }))));
|
|
45
45
|
}
|
|
46
46
|
get element() { return getElement(this); }
|
|
47
47
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-B2cboDWM.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-BBi3552X.js';
|
|
6
6
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
7
7
|
import { s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './keyboard-utils-Db8rvjPI.js';
|
|
8
|
-
import { a as getLanguage, g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-
|
|
9
|
-
import { c as checkNamedSlotElement } from './slot-utils
|
|
8
|
+
import { a as getLanguage, g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-C4M4ASkT.js';
|
|
9
|
+
import { c as checkNamedSlotElement } from './slot-utils--sNK1DNn.js';
|
|
10
10
|
import './string-utils-C6E9F6QT.js';
|
|
11
11
|
|
|
12
12
|
const countries = {
|
|
@@ -1785,6 +1785,11 @@ const DuetPhoneInput = class {
|
|
|
1785
1785
|
fi: "Valitse maatunnus",
|
|
1786
1786
|
sv: "Välj landskod",
|
|
1787
1787
|
};
|
|
1788
|
+
this.buttonAriaLabelSelected = {
|
|
1789
|
+
en: "Now selected",
|
|
1790
|
+
fi: "Nyt valittu",
|
|
1791
|
+
sv: "Nu vald",
|
|
1792
|
+
};
|
|
1788
1793
|
this.language = getLanguage();
|
|
1789
1794
|
/**
|
|
1790
1795
|
* Theme of the input.
|
|
@@ -2052,6 +2057,13 @@ const DuetPhoneInput = class {
|
|
|
2052
2057
|
}
|
|
2053
2058
|
return this.renderFlag(this.currentCountry.isoCode, true);
|
|
2054
2059
|
}
|
|
2060
|
+
getAccessibleLabelForButton() {
|
|
2061
|
+
const select = this.buttonAriaLabel[this.language];
|
|
2062
|
+
const selected = this.currentCountry
|
|
2063
|
+
? ` ${this.buttonAriaLabelSelected[this.language]}, ${this.currentCountry[this.language]}.`
|
|
2064
|
+
: "";
|
|
2065
|
+
return `${select}.${selected}`;
|
|
2066
|
+
}
|
|
2055
2067
|
render() {
|
|
2056
2068
|
const lastListFirstCode = (typeof this.listFirst === "string" ? this.listFirst.split(",") : this.listFirst)
|
|
2057
2069
|
.map(c => c.trim().toUpperCase())
|
|
@@ -2061,7 +2073,7 @@ const DuetPhoneInput = class {
|
|
|
2061
2073
|
"duet-theme-turva": this.theme === "turva",
|
|
2062
2074
|
"duet-expand": this.expand,
|
|
2063
2075
|
"duet-m-0": this.margin === "none",
|
|
2064
|
-
} }, h("div", { class: "duet-phone-input-container" }, h("duet-popup-menu", { ref: el => (this.countryCodePopup = el), scrollLimit: 10, showFilterInput: true }, this.countriesToList.map(country => country.isoCode === lastListFirstCode ? (h(Fragment, null, h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")"))), h("duet-divider", null))) : (h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")")))))), h("duet-input", { ref: el => (this.duetInputElement = el), onDuetChange: this.handleChange, onDuetFocus: this.handleFocus, onDuetBlur: this.handleBlur, onDuetInput: this.handleInput, label: this.label, caption: this.caption, error: this.error, name: this.name, minlength: this.minlength, maxlength: this.maxlength, component: "phone", variation: "button-left", type: "tel", disallowPattern: "[^\\+0-9 ]", required: this.required, disabled: this.disabled, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true }, h("duet-button", { ref: el => (this.countryCodeButton = el), slot: "button-left", variation: "input-button-left-secondary", margin: "none", fixed: true, icon: "action-arrow-down-small", iconSize: "small", iconRight: true, accessibleLabel: this.
|
|
2076
|
+
} }, h("div", { class: "duet-phone-input-container" }, h("duet-popup-menu", { ref: el => (this.countryCodePopup = el), scrollLimit: 10, showFilterInput: true }, this.countriesToList.map(country => country.isoCode === lastListFirstCode ? (h(Fragment, null, h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")"))), h("duet-divider", null))) : (h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")")))))), h("duet-input", { ref: el => (this.duetInputElement = el), onDuetChange: this.handleChange, onDuetFocus: this.handleFocus, onDuetBlur: this.handleBlur, onDuetInput: this.handleInput, label: this.label, caption: this.caption, error: this.error, name: this.name, minlength: this.minlength, maxlength: this.maxlength, autoComplete: "tel", component: "phone", variation: "button-left", type: "tel", disallowPattern: "[^\\+0-9 ]", required: this.required, disabled: this.disabled, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true }, h("duet-button", { ref: el => (this.countryCodeButton = el), slot: "button-left", variation: "input-button-left-secondary", margin: "none", fixed: true, icon: "action-arrow-down-small", iconSize: "small", iconRight: true, accessibleLabel: this.getAccessibleLabelForButton(), onClick: this.handleCountryCodeSelectorOpen }, h("span", { class: "flag-container" }, this.getFlagForButton())), h("slot", { name: "tooltip" })))));
|
|
2065
2077
|
}
|
|
2066
2078
|
get element() { return getElement(this); }
|
|
2067
2079
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-B2cboDWM.js';
|
|
5
5
|
import { o as spaceXSmall } from './tokens.module-DEzE2U5T.js';
|
|
6
6
|
import { M, z, o as offset, f as flip, s as shift } from './floating-ui.dom.browser.min-B_NkY9T0.js';
|
|
7
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
8
|
-
import { s as setOpenerExpanded } from './a11y-utils-
|
|
9
|
-
import { f as focusElement } from './focus-utils-
|
|
7
|
+
import { i as inheritGlobalTheme } from './themeable-component-BBi3552X.js';
|
|
8
|
+
import { s as setOpenerExpanded } from './a11y-utils-ChN5Nhxh.js';
|
|
9
|
+
import { f as focusElement } from './focus-utils-CFswdkeD.js';
|
|
10
10
|
import { g as isArrowDownKey, a as isEscapeKey, e as isArrowUpKey, b as isTabKey } from './keyboard-utils-Db8rvjPI.js';
|
|
11
|
-
import { a as getLanguage } from './language-utils-
|
|
11
|
+
import { a as getLanguage } from './language-utils-C4M4ASkT.js';
|
|
12
12
|
import { T as Teleport } from './teleport-CxwkvTlZ.js';
|
|
13
13
|
import { n as newWindowIcon } from './action-new-window-small-EH8_HdAm.js';
|
|
14
|
-
import './slot-utils
|
|
14
|
+
import './slot-utils--sNK1DNn.js';
|
|
15
15
|
import './string-utils-C6E9F6QT.js';
|
|
16
16
|
import './_commonjsHelpers-DvwKrUS6.js';
|
|
17
17
|
|
|
@@ -218,6 +218,11 @@ const DuetPopupMenu = class {
|
|
|
218
218
|
* Component event handling.
|
|
219
219
|
*/
|
|
220
220
|
handleKeyUp(evt) {
|
|
221
|
+
var _a;
|
|
222
|
+
if (((_a = this.openButton) === null || _a === void 0 ? void 0 : _a.role) === "combobox") {
|
|
223
|
+
// Comboboxes handles this on their own
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
221
226
|
if (this.open) {
|
|
222
227
|
// When Esc is pressed the menu should be closed
|
|
223
228
|
if (isEscapeKey(evt)) {
|
|
@@ -264,6 +269,11 @@ const DuetPopupMenu = class {
|
|
|
264
269
|
}
|
|
265
270
|
}
|
|
266
271
|
handleClick(evt) {
|
|
272
|
+
var _a;
|
|
273
|
+
if (((_a = this.openButton) === null || _a === void 0 ? void 0 : _a.role) === "combobox") {
|
|
274
|
+
// Comboboxes handles this on their own
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
267
277
|
const isClickOutside = evt.composedPath().every(node => node !== this.element && node !== this.openButton);
|
|
268
278
|
if (this.open && isClickOutside) {
|
|
269
279
|
this.hide();
|
|
@@ -414,17 +424,17 @@ const DuetPopupMenu = class {
|
|
|
414
424
|
overflowY: "auto",
|
|
415
425
|
height: this.popupMenuStyleHeight,
|
|
416
426
|
};
|
|
417
|
-
return (h(Host, { key: '
|
|
427
|
+
return (h(Host, { key: 'faa607d185d31d39be849eaf1bc2e04a18dc6844', role: this.accessibleRole === "menu" ? "application" : null }, h("div", { key: '30e8fda181937ec87b45753e11407752b9cb8bdb', ref: element => {
|
|
418
428
|
this.menuElement = element;
|
|
419
429
|
}, style: styles, class: {
|
|
420
430
|
open: this.open,
|
|
421
431
|
"duet-popup-menu-list": true,
|
|
422
432
|
"duet-theme-turva": this.theme === "turva",
|
|
423
433
|
"scroll-visible": this.scrollLimit < this.itemElements.length,
|
|
424
|
-
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (h("div", { key: '
|
|
434
|
+
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (h("div", { key: '63a51a1dade7d51632c7cc03dcc5889943c06384' }, h("duet-input", { key: '0afe720395fbe6388ce6fb8fa106540671768f10', ref: el => (this.filterInput = el), label: this.filterLabel[this.language], "label-hidden": true, expand: true, margin: "none", type: "search", onDuetInput: this.filterItems, onKeyDown: this.handleKeyDownOnFilter }), h("duet-visually-hidden", { key: '8dafb4aa2cec51336c1ac0ce62fc7d55aa8950e6' }, h("span", { key: '172e686cfd6f5cbaab6e64a49ab86ad9ef6f860d', role: "status" }, `
|
|
425
435
|
${this.filterResultCount}/${this.itemElements.length}
|
|
426
436
|
${this.filterResultCountLabel[this.language]}
|
|
427
|
-
`)), h("duet-spacer", { key: '
|
|
437
|
+
`)), h("duet-spacer", { key: '01b48e3d5918af7980363bb2256e65e9e109bfa3', size: "xx-small" }))), h("slot", { key: 'd2dec433d6eb6720850805950182ff9edeaa4dc3' }))));
|
|
428
438
|
}
|
|
429
439
|
get element() { return getElement(this); }
|
|
430
440
|
static get watchers() { return {
|
|
@@ -536,11 +546,11 @@ const DuetPopupMenuItem = class {
|
|
|
536
546
|
};
|
|
537
547
|
// Without the role ternary Safari/iPhone wouldn't announce the label for role menuitem.
|
|
538
548
|
// This is a tradeoff and now Safari announces these items as buttons and links with the label.
|
|
539
|
-
return (h(Host, { key: '
|
|
549
|
+
return (h(Host, { key: 'e4d908ef580f7a4b7f6c73b005df3024376394cf', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, h(TagName, { key: '9a8c95e7192879c5ef1d7c8bd8b4a1af4042f4bf', ref: element => (this.itemElement = element), tabIndex: this.accessibleRole === "listitem" ? 0 : -1, onFocus: this.onFocus, onBlur: this.onBlur, role: `${TagName === "a" ? "link" : "button"}`, "aria-label": this.accessibleLabel, class: classes, value: this.value, href: this.url, target: this.external ? "_blank" : undefined, rel: this.external ? "noopener" : undefined, lang: TagName === "button" ? undefined : this.targetLanguage, hreflang: TagName === "button" ? undefined : this.targetLanguage, "aria-current": this.active ? "true" : undefined }, this.leadingIcon && (h("duet-icon", { key: '7483b06d6477b2901f37bc6ac5d0c73c74fcc0ac', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), h("span", { key: '29946d960923b123aab68ac401922cb29aaa4cd8', class: "duet-popup-menu-item-label" }, h("slot", { key: '9994e35a66c58296c3af45cd40f477bc23f460f8' })), (this.trailingIcon || this.active || (this.url && this.external)) && (h("duet-icon", { key: '29a0b6a25a8376d41f5279bebebd208e65ce4640', name: this.url && this.external
|
|
540
550
|
? newWindowIcon.title
|
|
541
551
|
: this.active
|
|
542
552
|
? "messaging-checked-small"
|
|
543
|
-
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && h("span", { key: '
|
|
553
|
+
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && h("span", { key: '6d6c1681d4e0551b89bd15d461d14d583fd12b93', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
544
554
|
}
|
|
545
555
|
get element() { return getElement(this); }
|
|
546
556
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-B2cboDWM.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-BBi3552X.js';
|
|
6
6
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
7
|
-
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-
|
|
7
|
+
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-C4M4ASkT.js';
|
|
8
8
|
import './string-utils-C6E9F6QT.js';
|
|
9
9
|
|
|
10
10
|
const duetProgressCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;width:100%;height:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0 none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva .progress-bar{background-color:rgb(253, 247, 242)}.duet-progress.duet-theme-turva .progress-bar>span{background-color:rgb(230, 23, 64)}.duet-progress.duet-theme-turva progress[value]{color:rgb(230, 23, 64)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(253, 247, 242)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(230, 23, 64)}.duet-progress.duet-theme-turva progress[value]::-moz-progress-bar{background-color:rgb(253, 247, 242)}";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
6
|
-
import { h as hasSlot, c as checkNamedSlotElement, a as getElementsFromNamedSlot } from './slot-utils
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-B2cboDWM.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-BBi3552X.js';
|
|
6
|
+
import { h as hasSlot, c as checkNamedSlotElement, a as getElementsFromNamedSlot } from './slot-utils--sNK1DNn.js';
|
|
7
7
|
import { g as getColorByName, p as postfixTheme } from './token-utils-B0KAgyj_.js';
|
|
8
8
|
import './tokens.module-DEzE2U5T.js';
|
|
9
9
|
|
|
@@ -73,12 +73,12 @@ const DuetPromoCard = class {
|
|
|
73
73
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
74
74
|
};
|
|
75
75
|
const TagName = this.url ? "a" : "div";
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '15914a069765b4badeec5e42bc0c4be98528f197', class: { "duet-m-0": this.margin === "none" } }, h("aside", { key: '3c097de3be0174444157d849d6d7352d60e8b4fc', class: {
|
|
77
77
|
"duet-promo-card": true,
|
|
78
78
|
"duet-theme-turva": this.theme === "turva",
|
|
79
79
|
"no-bg-color": !this.backgroundColor,
|
|
80
80
|
"duet-promo-card-link": !!this.url,
|
|
81
|
-
}, style: bannerStyles }, h(TagName, { key: '
|
|
81
|
+
}, style: bannerStyles }, h(TagName, { key: '5510d811615bbb7a172f03b40aaf4062073cb7f2', href: this.url, class: { "content-wrapper": true, "duet-theme-turva": this.theme === "turva" }, ref: element => (this.aOrDivElement = element) }, h("img", { key: 'bc7545b847d9d9e71d0be0572fcbc999ee6c80c3', class: "image", src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" }), h("div", { key: '82dc0d7269104f81e37d47c5b48f0d43b9000434', class: "content" }, this.hasPreHeadingSlot && (h("div", { key: 'de1578879478be3a3f9cc115acb46a19446110a8', class: "pre-heading" }, h("slot", { key: '08cd0e79ddf0fd865a244147adbe208c8fa3f9fa', name: "pre-heading" }))), this.hasHeadingSlot && (h("div", { key: 'f2317874c4af8c13e932f3eb87b371f1d1b57237', class: "heading" }, h("duet-heading", { key: '250310892874b2a50739c52399ea26e9c1d551f1', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.headingLevel, "visual-level": "h3", margin: "none", color: postfixTheme(this.textColor, this.theme) }, h("span", { key: 'b07fc7401b5246d73a9685ce0c3ed066de23d72f' }, h("slot", { key: '8de2f4b07d14e7eee8f0c8babef852ae187fc134', name: "heading" }))))), this.hasDescriptionSlot && (h("div", { key: 'ddf9ce95776e1bd3c55e9dff3d0d116681f61896', class: "description" }, h("duet-paragraph", { key: '1decf80a64e37486c1475437c34894025ae0f021', theme: this.theme, margin: "none", color: postfixTheme(this.textColor, this.theme) }, h("span", { key: 'db6124d5ef91014ccbc9693880921dde31157030' }, h("slot", { key: 'fe4c6a624551185cd748d69a451006710ed08558', name: "description" }))))), this.hasActionSlot && (h("div", { key: '4386f1dadb0f8311fa9c21c7a47a872a08ab2b63', class: "action" }, h("slot", { key: 'c5f4a3ce3b4ca1fdad040b95d883ec74f9a93904', name: "action" }))))))));
|
|
82
82
|
}
|
|
83
83
|
get element() { return getElement(this); }
|
|
84
84
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-B2cboDWM.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-BBi3552X.js';
|
|
6
6
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
7
|
-
import { a as getElementsFromNamedSlot, h as hasSlot, c as checkNamedSlotElement } from './slot-utils
|
|
7
|
+
import { a as getElementsFromNamedSlot, h as hasSlot, c as checkNamedSlotElement } from './slot-utils--sNK1DNn.js';
|
|
8
8
|
import { f as findCheckedOption, w as watchForOptions } from './watch-options-BmMFVM-y.js';
|
|
9
9
|
|
|
10
10
|
const duetRadioCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:28px !important}:host(.vertical){margin-right:0 !important}:host(.horizontal){margin-bottom:0 !important;width:auto}:host(.horizontal) .duet-label .duet-label-content{max-width:100%}@media (min-width: 48em){:host(.horizontal-responsive){margin-right:28px !important;margin-bottom:0 !important;width:auto}:host(.horizontal-responsive):last-child,:host(.horizontal-responsive):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.horizontal-responsive):last-of-type:not(:last-child){margin-right:28px !important}:host(.horizontal-responsive) .duet-label .duet-label-content{max-width:100%}}:host(.duet-m-0){margin:0 !important}:host(:last-child:not(:only-child)){margin-right:0 !important;margin-bottom:0 !important}.duet-label{position:relative;z-index:100;display:flex;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);hyphens:auto;word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-label .duet-label-content{flex-grow:1;font-size:1rem}.duet-label-hidden .duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-radio-container{position:relative;width:100%;height:100%}.duet-label::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:\"\";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:50%}.duet-label.focus::before{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-label.focus::before,.duet-label.focus::before.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-label.checked::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:\"\";background:rgb(0, 119, 179);border-radius:50%}.duet-label.disabled{color:rgb(98, 121, 138)}.duet-label.disabled::before{border-color:rgb(181, 198, 208)}.duet-label.disabled.checked::before{border:1px solid rgb(127, 150, 165)}.duet-label.disabled.checked::after{background:rgb(127, 150, 165)}*::slotted([slot=input]){padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}*::slotted([slot=input][disabled]){cursor:default}.duet-theme-turva .duet-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}.duet-theme-turva .duet-radio+label::before{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-label.focus::before{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-label.checked::after{background:rgb(23, 42, 59)}.duet-theme-turva .duet-label.disabled{color:rgb(120, 145, 164)}.duet-theme-turva .duet-label.disabled::before{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-label.disabled.checked::after{background:rgb(120, 145, 164);border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-radio:checked+label::after{background:rgb(23, 42, 59)}.duet-theme-turva .duet-radio[disabled]+label{color:rgb(120, 145, 164)}.duet-theme-turva .duet-radio[disabled]+label::before{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-radio[disabled]:checked+label::after{background:rgb(120, 145, 164);border-color:rgb(120, 145, 164)}";
|
|
@@ -79,7 +79,9 @@ const DuetRadio = class {
|
|
|
79
79
|
radioInput.disabled = this.disabled || this.groupDisabled ? true : undefined;
|
|
80
80
|
radioInput.id = this.identifier || this.radioId;
|
|
81
81
|
radioInput.type = "radio";
|
|
82
|
-
radioInput.name
|
|
82
|
+
if (radioInput.name !== this.name) {
|
|
83
|
+
radioInput.name = this.name;
|
|
84
|
+
}
|
|
83
85
|
radioInput.value = this.value;
|
|
84
86
|
radioInput.checked = this.checked;
|
|
85
87
|
if (this.accessibleIndex) {
|
|
@@ -127,9 +129,6 @@ const DuetRadio = class {
|
|
|
127
129
|
/**
|
|
128
130
|
* Component event handling.
|
|
129
131
|
*/
|
|
130
|
-
this.onClick = (ev) => {
|
|
131
|
-
ev.stopPropagation();
|
|
132
|
-
};
|
|
133
132
|
this.onChange = (ev) => {
|
|
134
133
|
const input = this.focusableElement;
|
|
135
134
|
const inputChecked = input.checked;
|
|
@@ -187,17 +186,17 @@ const DuetRadio = class {
|
|
|
187
186
|
* Always the last one in the class.
|
|
188
187
|
*/
|
|
189
188
|
render() {
|
|
190
|
-
return (h(Host, { key: '
|
|
189
|
+
return (h(Host, { key: '538a0bdaa3132fcfbd68a8f970f1dc9b8c2f1198', class: {
|
|
191
190
|
vertical: this.groupDirection === "vertical",
|
|
192
191
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
193
192
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
194
193
|
"duet-m-0": this.margin === "none",
|
|
195
|
-
} }, h("div", { key: '
|
|
194
|
+
} }, h("div", { key: '0e11d68ec02df3163c3dc1524cff2bbff950a496', class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, h("slot", { key: 'fdf09172f67232d5b2a689b1f1368bb5da931319', name: "input" }), h("label", { key: '516d9ba003ab05b3f7069b46ecfd471df3e4de3e', inert: true, ref: element => (this.labelElement = element), class: {
|
|
196
195
|
"duet-label": true,
|
|
197
196
|
checked: this.checked,
|
|
198
197
|
focus: this.focus,
|
|
199
198
|
disabled: this.disabled || this.groupDisabled,
|
|
200
|
-
} }, h("div", { key: '
|
|
199
|
+
} }, h("div", { key: 'b525b0a79e22eeb0b4fa8bdfdb854733d66acf2b', class: "duet-label-content" }, this.hasLabel ? h("slot", { name: "label" }) : this.label)))));
|
|
201
200
|
}
|
|
202
201
|
get element() { return getElement(this); }
|
|
203
202
|
};
|
|
@@ -356,7 +355,7 @@ const DuetRadioGroup = class {
|
|
|
356
355
|
* Always the last one in the class.
|
|
357
356
|
*/
|
|
358
357
|
render() {
|
|
359
|
-
return (h(Host, { key: '
|
|
358
|
+
return (h(Host, { key: 'bcae2d75b5843767deb9fc0900ee68751331a011', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, h("duet-fieldset", { key: '41c1b4a25bef2baac49fc5abef7713582a2e8f1b', label: this.label, labelHidden: this.labelHidden, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (h("duet-tooltip", { key: 'af6c3a5dca20b7665e51bd0bf20923779bfd09bb', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '6e970de16b4e67c79ab27d45a223ec5989dfb51e', name: "tooltip", slot: "tooltip" }), h("div", { key: '4b6385af491f148c5122dd990db0ef05ae8c7c6f', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, h("slot", { key: '4d79f47f0f3ab231307045a4c3bfbff89df1b75d' })))));
|
|
360
359
|
}
|
|
361
360
|
get element() { return getElement(this); }
|
|
362
361
|
static get watchers() { return {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-B2cboDWM.js';
|
|
5
5
|
import { i as colorGray, j as colorPrimary, k as colorGrayTurva, l as colorPrimaryTurva } from './tokens.module-DEzE2U5T.js';
|
|
6
|
-
import { D as DuetInternalLabel } from './label-
|
|
7
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
6
|
+
import { D as DuetInternalLabel } from './label-CJxIWUOT.js';
|
|
7
|
+
import { i as inheritGlobalTheme } from './themeable-component-BBi3552X.js';
|
|
8
8
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
9
9
|
import { i as isInternetExplorer } from './is-internet-explorer-DxESMgwA.js';
|
|
10
10
|
import { s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './keyboard-utils-Db8rvjPI.js';
|
|
11
|
-
import { p as proxyInputToSlot } from './slot-utils
|
|
11
|
+
import { p as proxyInputToSlot } from './slot-utils--sNK1DNn.js';
|
|
12
12
|
|
|
13
13
|
const duetRangeSliderCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom;text-align:left}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:16px !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-range-container{position:relative;width:100%}.duet-output{position:absolute;top:12px;right:0;z-index:200;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);background:rgb(255, 255, 255)}.duet-range-disabled .duet-output{color:rgb(127, 150, 165)}.duet-range{position:relative;z-index:100;width:100%;height:4px;background:rgb(181, 198, 208);border-radius:4px}.duet-range:focus{outline:0}:host(.user-is-tabbing) .duet-range:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-range:focus,:host(.user-is-tabbing) .duet-range:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-ie .duet-range{display:block;width:auto;height:26px;background:transparent !important}.duet-range::-moz-range-track{height:1px;-moz-appearance:none;background:transparent !important;border:0}.duet-range::-ms-track{color:transparent;background:transparent;border:0}.duet-range:active{outline:0}.duet-range::-webkit-slider-runnable-track{background:transparent}.duet-range::-webkit-slider-thumb{position:relative;width:24px;height:24px;-webkit-appearance:none;cursor:-webkit-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%;transition:box-shadow 300ms ease}.duet-range:active::-webkit-slider-thumb{cursor:-webkit-grabbing}.duet-range::-moz-range-thumb{position:relative;width:24px;height:24px;appearance:none;cursor:-moz-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%}.duet-range:active::-moz-range-thumb{cursor:-moz-grabbing}.duet-range::-ms-thumb{position:relative;width:24px;height:24px;overflow:visible;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%}.duet-range:disabled{background:rgb(181, 198, 208) !important}.duet-range:disabled::-webkit-slider-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-range:disabled::-moz-range-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-range:disabled::-ms-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-range::-ms-fill-lower{height:4px;background:rgb(0, 119, 179)}.duet-range::-ms-fill-upper{height:4px;background:rgb(181, 198, 208)}.duet-label-hidden .duet-internal-label,.duet-label-hidden output{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-theme-turva .duet-output{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}.duet-range-disabled.duet-theme-turva .duet-output{color:rgb(120, 145, 164)}.duet-theme-turva .duet-range{background:rgb(178, 194, 205)}.duet-theme-turva .duet-range::-webkit-slider-thumb{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-range::-moz-range-thumb{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-range::-ms-thumb{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-range:disabled{background:rgb(178, 194, 205) !important}.duet-theme-turva .duet-range:disabled::-webkit-slider-thumb{background:rgb(178, 194, 205);border-color:transparent}.duet-theme-turva .duet-range:disabled::-moz-range-thumb{background:rgb(178, 194, 205);border-color:transparent}.duet-theme-turva .duet-range:disabled::-ms-thumb{background:rgb(178, 194, 205);border-color:transparent}.duet-theme-turva .duet-range::-ms-fill-lower{background:rgb(230, 23, 64)}.duet-theme-turva .duet-range::-ms-fill-upper{background:rgb(178, 194, 205)}";
|
|
14
14
|
|
|
@@ -162,13 +162,13 @@ const DuetRangeSlider = class {
|
|
|
162
162
|
const rangeStyles = {
|
|
163
163
|
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
164
164
|
};
|
|
165
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '140a9aa52dabb7c79226006b962df8988b32d11a', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, h("div", { key: '57c79380ecfdc00894e732406b9f461d673a7511', class: {
|
|
166
166
|
"duet-range-container": true,
|
|
167
167
|
"duet-label-hidden": this.labelHidden,
|
|
168
168
|
"duet-theme-turva": this.theme === "turva",
|
|
169
169
|
"duet-ie": isInternetExplorer(),
|
|
170
170
|
"duet-range-disabled": this.disabled,
|
|
171
|
-
} }, h(DuetInternalLabel, { key: '
|
|
171
|
+
} }, h(DuetInternalLabel, { key: '0bd37479e4b671590fd4dd0b63cd3750ca08ebdc', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), h("output", { key: '5e4d188ee952a06e3e25e06ec2d946563aed1ad8', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), h("input", { key: '5929028f235380be743b2937b400c4100b42640e', onInput: this.onInput, onChange: this.onChange, ref: input => (this.nativeInput = input), type: "range", min: this.min, max: this.max, step: this.step, value: this.value, style: rangeStyles, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} ${this.unit}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, id: identifier, name: this.name, disabled: this.disabled, required: this.required, class: "duet-range" }))));
|
|
172
172
|
}
|
|
173
173
|
get element() { return getElement(this); }
|
|
174
174
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
6
|
-
import { h as hasSlot, g as getElementsFromDefaultSlot } from './slot-utils
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-B2cboDWM.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-BBi3552X.js';
|
|
6
|
+
import { h as hasSlot, g as getElementsFromDefaultSlot } from './slot-utils--sNK1DNn.js';
|
|
7
7
|
import { s as subscribeTabbingChange, u as unsubscribeTabbingChange, b as isTabKey, p as isShiftTabKey, d as isArrowLeftKey, e as isArrowUpKey, f as isArrowRightKey, g as isArrowDownKey } from './keyboard-utils-Db8rvjPI.js';
|
|
8
|
-
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver, a as getLanguage } from './language-utils-
|
|
8
|
+
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver, a as getLanguage } from './language-utils-C4M4ASkT.js';
|
|
9
9
|
import { d as getShadowByName } from './token-utils-B0KAgyj_.js';
|
|
10
10
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
11
11
|
import './string-utils-C6E9F6QT.js';
|
|
@@ -290,18 +290,18 @@ const DuetScrollable = class {
|
|
|
290
290
|
* Always the last one in the class.
|
|
291
291
|
*/
|
|
292
292
|
render() {
|
|
293
|
-
return (h(Host, { key: '
|
|
293
|
+
return (h(Host, { key: '8df51170513077145592d25caa62ba1ad2e85321', class: {
|
|
294
294
|
"duet-theme-turva": this.theme === "turva",
|
|
295
295
|
"duet-theme-default": this.theme === "default",
|
|
296
|
-
} }, this.hasCollapseButtonLabelSlot && (h("div", { key: '
|
|
296
|
+
} }, this.hasCollapseButtonLabelSlot && (h("div", { key: 'eb436b00c138655bb63089831b85d1e9bb320aae', class: {
|
|
297
297
|
collapse: true,
|
|
298
298
|
hide: !this.needsScrolling && !this.collapsed,
|
|
299
|
-
} }, h("duet-button", { key: '
|
|
299
|
+
} }, h("duet-button", { key: '7ee25c87ce3da3160b9ceb73730715becad219bf', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, h("slot", { key: 'bf4e7d6a981c5544251df380c5b4eef49545fd01', name: "collapse-button-label" })))), h("div", { key: 'cd9bea12be8aecb83efce14f2ee153896f64c7cd', class: {
|
|
300
300
|
"duet-scrollable-items": true,
|
|
301
301
|
buttons: this.buttons,
|
|
302
302
|
center: this.center,
|
|
303
303
|
"duet-theme-turva": this.theme === "turva",
|
|
304
|
-
} }, this.buttons && this.renderButton("left"), h("div", { key: '
|
|
304
|
+
} }, this.buttons && this.renderButton("left"), h("div", { key: '243fe2e1dab3b9eae761f971dbc92eb0a14baa9e', class: {
|
|
305
305
|
"duet-scrollable-list": true,
|
|
306
306
|
[`duet-scrollable-list--${this.buttonPosition}`]: true,
|
|
307
307
|
[`gap-${this.gap}`]: true,
|
|
@@ -309,7 +309,7 @@ const DuetScrollable = class {
|
|
|
309
309
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
310
310
|
[`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
|
|
311
311
|
"duet-scrollable-stretch": this.stretch,
|
|
312
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: '
|
|
312
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: '5e49e03f90b17bbb89b5b4f5ea55d6bbd93ec53e' })), this.buttons && this.renderButton("right"))));
|
|
313
313
|
}
|
|
314
314
|
get element() { return getElement(this); }
|
|
315
315
|
static get watchers() { return {
|
|
@@ -425,7 +425,7 @@ const DuetTab = class {
|
|
|
425
425
|
* Always the last one in the class.
|
|
426
426
|
*/
|
|
427
427
|
render() {
|
|
428
|
-
return (h("div", { key: '
|
|
428
|
+
return (h("div", { key: '12b8133d0bbf92a085f5c39db06ad4f61be77770', ref: element => {
|
|
429
429
|
if (!this.contentId) {
|
|
430
430
|
this.tabpanelElement = element;
|
|
431
431
|
}
|
|
@@ -434,7 +434,7 @@ const DuetTab = class {
|
|
|
434
434
|
"duet-tab": true,
|
|
435
435
|
selected: this.selected,
|
|
436
436
|
"has-content-id": !!this.contentId,
|
|
437
|
-
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, h("slot", { key: '
|
|
437
|
+
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, h("slot", { key: 'f4d601ccf9017d30770ea9eaaf5873b32fcab605' })));
|
|
438
438
|
}
|
|
439
439
|
get element() { return getElement(this); }
|
|
440
440
|
static get watchers() { return {
|
|
@@ -720,13 +720,13 @@ const DuetTabGroup = class {
|
|
|
720
720
|
[largeBreakpoint]: ["default", "plain", "plain-scrolling"].includes(this.variation) ? true : false,
|
|
721
721
|
"duet-theme-turva": this.theme === "turva",
|
|
722
722
|
}, onClick: () => this.onTabSelect(index), onKeyDown: ev => this.handleKeyDown(ev) }, this.variation === "checked" ? (h("div", { class: { "checked-tab-content": true, "stackable-checked-tab-content": this.tabs.length <= 3 } }, h("div", { class: { "checked-tab-description": true, "stackable-description": this.tabs.length <= 3 } }, h("p", null, element.label), h("p", { class: { "tab-caption": true, selected: element.selected } }, element.caption)), h("div", { class: { "stackable-checkmark": this.tabs.length <= 3 } }, h("duet-checkmark", { theme: this.theme, checked: element.selected, type: "radio", "presentation-only": true, center: true })))) : (element.label), element.indicator && (h("duet-indicator", { variation: element.indicator, "accessible-label": element.indicatorAccessibleLabel })))));
|
|
723
|
-
return (h("div", { key: '
|
|
723
|
+
return (h("div", { key: '9662897bf265783e330558b8a1b463729026b044', class: {
|
|
724
724
|
"duet-tab-group": true,
|
|
725
725
|
"duet-theme-turva": this.theme === "turva",
|
|
726
726
|
[variationClass]: true,
|
|
727
727
|
"duet-tab-plain-scrolling": this.variation === "plain-scrolling",
|
|
728
728
|
"duet-tab-group-scrolls": true,
|
|
729
|
-
}, "aria-label": this.accessibleLabel }, h("div", { key: '
|
|
729
|
+
}, "aria-label": this.accessibleLabel }, h("div", { key: 'bbeef489c8be2a79c22b7fb355a431fada517c63', role: "tablist", class: {
|
|
730
730
|
"duet-m-0": this.margin === "none" || this.variation === "checked",
|
|
731
731
|
"duet-tab-group-tabs": true,
|
|
732
732
|
"duet-tab-group-hidden": this.tabs.length > 3 && !isSwipeScrollable,
|
|
@@ -737,11 +737,11 @@ const DuetTabGroup = class {
|
|
|
737
737
|
} }, this.variation === "checked" ? (buttons) : (h("div", { class: {
|
|
738
738
|
"duet-tab-group-scrollable-wrapper": true,
|
|
739
739
|
"duet-tab-group-fill-space-wrapper": this.fillSpace && this.variation === "default",
|
|
740
|
-
} }, this.fillSpace && !this.stretch && this.variation === "default" && (h("div", { class: "duet-scrollable-stretch-overlay" }, h("div", { class: "background" }), h("div", { class: "border" }))), h("duet-scrollable", { selected: this.selected, identifier: this.identifier, gap: ["default", "plain", "plain-scrolling"].includes(this.variation) ? "none" : "large", buttonPosition: this.variation === "default" ? "absolute" : "relative", center: this.isCentered() ? this.isCentered() : this.element.style.textAlign == "center", theme: this.theme, stretch: this.stretch }, buttons)))), h("div", { key: '
|
|
740
|
+
} }, this.fillSpace && !this.stretch && this.variation === "default" && (h("div", { class: "duet-scrollable-stretch-overlay" }, h("div", { class: "background" }), h("div", { class: "border" }))), h("duet-scrollable", { selected: this.selected, identifier: this.identifier, gap: ["default", "plain", "plain-scrolling"].includes(this.variation) ? "none" : "large", buttonPosition: this.variation === "default" ? "absolute" : "relative", center: this.isCentered() ? this.isCentered() : this.element.style.textAlign == "center", theme: this.theme, stretch: this.stretch }, buttons)))), h("div", { key: '48bc3f8b5d1ec742e59db454a6b1649e29b7605e', class: {
|
|
741
741
|
"duet-tab-group-content": true,
|
|
742
742
|
"duet-m-0": this.margin === "none",
|
|
743
743
|
"checked-group-content": this.variation === "checked",
|
|
744
|
-
} }, h("slot", { key: '
|
|
744
|
+
} }, h("slot", { key: 'b6af6d77ff36c34028e664664c71ed391a54066b' }))));
|
|
745
745
|
}
|
|
746
746
|
get element() { return getElement(this); }
|
|
747
747
|
};
|