@duetds/components 10.3.0 → 10.3.1
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 +693 -301
- package/hydrate/index.mjs +693 -301
- package/lib/cjs/{a11y-utils-b27OEdFX.js → a11y-utils-dXXDBTyF.js} +1 -1
- package/lib/cjs/{app-globals-DhPOoPl1.js → app-globals-CyPV2FZK.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +5 -5
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +5 -5
- package/lib/cjs/duet-banner.cjs.entry.js +13 -9
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
- package/lib/cjs/duet-button_2.cjs.entry.js +27 -12
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +15 -15
- package/lib/cjs/duet-card.cjs.entry.js +8 -8
- package/lib/cjs/duet-checkbox.cjs.entry.js +5 -5
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +4 -4
- package/lib/cjs/duet-choice_2.cjs.entry.js +12 -12
- package/lib/cjs/duet-collapsible.cjs.entry.js +6 -6
- package/lib/cjs/duet-combobox.cjs.entry.js +5 -5
- package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +30 -34
- package/lib/cjs/duet-divider_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +12 -12
- package/lib/cjs/duet-empty-state.cjs.entry.js +4 -4
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +8 -8
- package/lib/cjs/duet-grid_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-hero.cjs.entry.js +9 -9
- package/lib/cjs/duet-icon.cjs.entry.js +7 -7
- package/lib/cjs/duet-indicator.cjs.entry.js +5 -5
- package/lib/cjs/duet-input_2.cjs.entry.js +18 -14
- 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 +14 -14
- 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 +8 -8
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
- package/lib/cjs/duet-pagination_2.cjs.entry.js +18 -18
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +20 -18
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +13 -9
- package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-range-slider.cjs.entry.js +7 -7
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +17 -17
- 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 +8 -8
- 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 +13 -13
- package/lib/cjs/duet-slideout.cjs.entry.js +20 -18
- package/lib/cjs/duet-status-icon.cjs.entry.js +4 -4
- 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 +7 -7
- 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 +8 -8
- package/lib/cjs/duet-textarea.cjs.entry.js +9 -9
- 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 +9 -9
- package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
- package/lib/cjs/duet-tray.cjs.entry.js +6 -6
- 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-BlVVWFcS.js → errorcodes.utils-DQ-I8x2z.js} +1 -1
- package/lib/cjs/{focus-utils-DIeiBu1A.js → focus-utils-DstNW4_h.js} +1 -1
- package/lib/cjs/{index-CeCDgexG.js → index-B_QTwXEx.js} +1 -1
- package/lib/cjs/{label-BK_7MvDR.js → label-yAj5CKm3.js} +1 -1
- package/lib/cjs/{language-utils-BmMgyx0x.js → language-utils-DjtvVntE.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-PLQ1zjHe.js → slot-utils-YUU0XWn9.js} +1 -1
- package/lib/cjs/{themeable-component-DD3okLL-.js → themeable-component-h3OzJgCb.js} +1 -1
- package/lib/cjs/{token-utils-CaLsk40I.js → token-utils-DY3-olMV.js} +1 -1
- package/lib/cjs/{tokens-DWngQgYY.js → tokens-COLlUECP.js} +226 -4
- package/lib/cjs/{tokens.module-BMAWZwue.js → tokens.module-CTbvyezn.js} +152 -4
- package/lib/collection/components/duet-action-button/duet-action-button.css +1 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.css +7 -0
- package/lib/collection/components/duet-banner/duet-banner.js +8 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +1 -1
- 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 +14 -8
- package/lib/collection/components/duet-button/duet-button.js +20 -5
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.js +2 -2
- package/lib/collection/components/duet-card/duet-card.css +2 -2
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +1 -1
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +2 -2
- package/lib/collection/components/duet-chip/duet-chip.css +1 -3
- package/lib/collection/components/duet-chip/duet-chip.js +1 -1
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.css +3 -3
- package/lib/collection/components/duet-choice/duet-choice.js +6 -6
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +1 -1
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/date-utils.js +2 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +8 -8
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +23 -29
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.css +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +4 -4
- package/lib/collection/components/duet-grid/duet-grid.js +2 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-header/duet-header.css +6 -6
- package/lib/collection/components/duet-heading/duet-heading.js +2 -2
- package/lib/collection/components/duet-hero/duet-hero.css +1 -1
- 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 +71 -63
- package/lib/collection/components/duet-input/duet-input.js +10 -6
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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 +24 -48
- 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.css +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +1 -1
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
- package/lib/collection/components/duet-number-input/duet-number-input.css +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- 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-popup-menu/duet-popup-menu.js +11 -9
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +2 -2
- 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.css +8 -1
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +8 -4
- package/lib/collection/components/duet-radio/duet-radio.css +1 -1
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +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 +20 -37
- 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.css +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.css +1 -1
- package/lib/collection/components/duet-slideout/duet-slideout.js +12 -10
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +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.css +2 -4
- 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.css +1 -1
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
- package/lib/collection/components/duet-step/duet-step.css +1 -1
- 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.css +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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +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.css +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +3 -3
- 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 +33 -78
- package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
- package/lib/collection/components/duet-toggle/duet-toggle.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- 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.css +1 -1
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +1 -1
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +1 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tray/duet-tray.css +2 -2
- 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/duet/duet.esm.js +1 -1
- package/lib/duet/{p-f9f25386.entry.js → p-06f17fe7.entry.js} +1 -1
- package/lib/duet/{p-2d9e573a.entry.js → p-07b9b6c3.entry.js} +1 -1
- package/lib/duet/{p-831e210d.entry.js → p-0a80de40.entry.js} +1 -1
- package/lib/duet/{p-1eb20304.entry.js → p-0cc2921b.entry.js} +1 -1
- package/lib/duet/{p-137e710f.entry.js → p-0ccecf5b.entry.js} +1 -1
- package/lib/duet/{p-f58c0527.entry.js → p-10a326fa.entry.js} +1 -1
- package/lib/duet/{p-43723ce5.entry.js → p-12b2d402.entry.js} +1 -1
- package/lib/duet/{p-c18726af.entry.js → p-162993d2.entry.js} +1 -1
- package/lib/duet/{p-565bcf84.entry.js → p-162a0691.entry.js} +1 -1
- package/lib/duet/{p-6db9ac4d.entry.js → p-17413943.entry.js} +1 -1
- package/lib/duet/{p-00e0f919.entry.js → p-17c063a3.entry.js} +1 -1
- package/lib/duet/p-18eada94.entry.js +4 -0
- package/lib/duet/{p-014c965f.entry.js → p-1e168d4b.entry.js} +1 -1
- package/lib/duet/p-234f4365.entry.js +4 -0
- package/lib/duet/{p-9f941e06.entry.js → p-245c0535.entry.js} +1 -1
- package/lib/duet/{p-42105616.entry.js → p-25b4886a.entry.js} +1 -1
- package/lib/duet/{p-70d7a04d.entry.js → p-278ef4d8.entry.js} +1 -1
- package/lib/duet/{p-59553aa5.entry.js → p-29599dc5.entry.js} +1 -1
- package/lib/duet/{p-554d9373.entry.js → p-2ac11077.entry.js} +1 -1
- package/lib/duet/{p-713cc11f.entry.js → p-2d963ab0.entry.js} +1 -1
- package/lib/duet/{p-5a576bae.entry.js → p-2e126e15.entry.js} +1 -1
- package/lib/duet/{p-c0785349.entry.js → p-301b8664.entry.js} +1 -1
- package/lib/duet/{p-b7865974.entry.js → p-3a45c3a4.entry.js} +1 -1
- package/lib/duet/{p-408ace89.entry.js → p-3d00efb7.entry.js} +1 -1
- package/lib/duet/p-3d0a716c.entry.js +4 -0
- package/lib/duet/{p-c8f8acf7.entry.js → p-3eba33cd.entry.js} +1 -1
- package/lib/duet/{p-dfab71df.entry.js → p-419b96b6.entry.js} +1 -1
- package/lib/duet/{p-b0622412.entry.js → p-44a97d21.entry.js} +1 -1
- package/lib/duet/{p-4de84b4d.entry.js → p-4856f07c.entry.js} +1 -1
- package/lib/duet/{p-9240c039.entry.js → p-4b8293b3.entry.js} +1 -1
- package/lib/duet/{p-d3b4339e.entry.js → p-550bfab9.entry.js} +1 -1
- package/lib/duet/{p-2e967dc9.entry.js → p-5c60eca3.entry.js} +1 -1
- package/lib/duet/{p-32c7c0c1.entry.js → p-5c9530f1.entry.js} +1 -1
- package/lib/duet/{p-f31a6b2e.entry.js → p-5fb1092c.entry.js} +1 -1
- package/lib/duet/{p-a745eb10.entry.js → p-5fb783eb.entry.js} +1 -1
- package/lib/duet/{p-91370277.entry.js → p-608ebd47.entry.js} +1 -1
- package/lib/duet/{p-ae714f68.entry.js → p-65350441.entry.js} +1 -1
- package/lib/duet/{p-2981f32d.entry.js → p-67b3a01a.entry.js} +1 -1
- package/lib/duet/{p-098d7665.entry.js → p-690beb31.entry.js} +1 -1
- package/lib/duet/{p-73263349.entry.js → p-6cffc5b7.entry.js} +1 -1
- package/lib/duet/p-6e1b9cc8.entry.js +4 -0
- package/lib/duet/p-7ce31e10.entry.js +4 -0
- package/lib/duet/{p-ed252dd9.entry.js → p-806c4ab8.entry.js} +1 -1
- package/lib/duet/p-86166f8d.entry.js +4 -0
- package/lib/duet/{p-caf9df46.entry.js → p-898d5701.entry.js} +1 -1
- package/lib/duet/p-8a28f86e.entry.js +4 -0
- package/lib/duet/{p-8ff66f04.entry.js → p-9172ba70.entry.js} +1 -1
- package/lib/duet/{p-22143e3e.entry.js → p-93abd97a.entry.js} +1 -1
- package/lib/duet/{p-9ceede7a.entry.js → p-968546f6.entry.js} +1 -1
- package/lib/duet/p-B6Z_1gqI.js +4 -0
- package/lib/duet/p-BQVGvl4H.js +4 -0
- package/lib/duet/p-BUWuSkQW.js +4 -0
- package/lib/duet/p-CLZq8YfV.js +4 -0
- package/lib/duet/{p-DNW9B4-w.js → p-CW11pVgw.js} +1 -1
- package/lib/duet/p-Ce9HQd35.js +4 -0
- package/lib/duet/p-D2JvSVnG.js +4 -0
- package/lib/duet/{p-D8k4CqJb.js → p-D2ly4TZR.js} +1 -1
- package/lib/duet/p-DEzE2U5T.js +4 -0
- package/lib/duet/{p-Bo0igXOs.js → p-DFAnksuG.js} +1 -1
- package/lib/duet/{p-FlJJ5tdo.js → p-DrqQiRTn.js} +1 -1
- package/lib/duet/p-ELbbzMVZ.js +4 -0
- package/lib/duet/{p-1a28bbe1.entry.js → p-a3ad5622.entry.js} +1 -1
- package/lib/duet/{p-1da05915.entry.js → p-a6bec2da.entry.js} +1 -1
- package/lib/duet/p-a73b7110.entry.js +4 -0
- package/lib/duet/{p-6f08e639.entry.js → p-a8229728.entry.js} +1 -1
- package/lib/duet/{p-20aefca2.entry.js → p-ae778cb1.entry.js} +1 -1
- package/lib/duet/{p-2b489051.entry.js → p-b1d91a91.entry.js} +1 -1
- package/lib/duet/{p-6ff3fc39.entry.js → p-b4c18ee6.entry.js} +1 -1
- package/lib/duet/{p-9da7ffc9.entry.js → p-b6dc4395.entry.js} +1 -1
- package/lib/duet/{p-bc5b4e44.entry.js → p-b9a54319.entry.js} +1 -1
- package/lib/duet/{p-b8648d7a.entry.js → p-b9be36c8.entry.js} +1 -1
- package/lib/duet/{p-1d81fcf9.entry.js → p-bdae48d3.entry.js} +1 -1
- package/lib/duet/p-bdf6a296.entry.js +4 -0
- package/lib/duet/{p-7609417a.entry.js → p-bfc75bb9.entry.js} +1 -1
- package/lib/duet/p-c8d10c67.entry.js +4 -0
- package/lib/duet/{p-11847d3e.entry.js → p-c8e520b6.entry.js} +1 -1
- package/lib/duet/p-ce4d9add.entry.js +4 -0
- package/lib/duet/{p-e19d51b1.entry.js → p-d2e74e89.entry.js} +1 -1
- package/lib/duet/{p-2736a400.entry.js → p-d7506eaa.entry.js} +1 -1
- package/lib/duet/{p-bb0567b4.entry.js → p-d83f38c7.entry.js} +1 -1
- package/lib/duet/{p-a5b9e098.entry.js → p-d8bc628c.entry.js} +1 -1
- package/lib/duet/p-da275568.entry.js +4 -0
- package/lib/duet/p-dc5682d8.entry.js +4 -0
- package/lib/duet/{p-c23accaf.entry.js → p-de4b0518.entry.js} +1 -1
- package/lib/duet/p-e050ed5c.entry.js +4 -0
- package/lib/duet/{p-90ab8a57.entry.js → p-e9c2eb66.entry.js} +1 -1
- package/lib/duet/{p-e655dd7d.entry.js → p-ec5f40a5.entry.js} +1 -1
- package/lib/duet/{p-d36dabf1.entry.js → p-ec689a7c.entry.js} +1 -1
- package/lib/duet/{p-c504dc42.entry.js → p-ecf69f6d.entry.js} +1 -1
- package/lib/duet/p-ed750cdf.entry.js +4 -0
- package/lib/duet/{p-faf6d461.entry.js → p-efa1cd0b.entry.js} +1 -1
- package/lib/duet/{p-6ca30a68.entry.js → p-f15ab3b8.entry.js} +1 -1
- package/lib/duet/{p-d9963958.entry.js → p-f55f8bd9.entry.js} +1 -1
- package/lib/duet/{p-9fd00141.entry.js → p-f68a4a23.entry.js} +1 -1
- package/lib/duet/p-f71d04ce.entry.js +4 -0
- package/lib/duet/p-f8e26f21.entry.js +4 -0
- package/lib/duet/{p-3a4dcdbd.entry.js → p-fca9c5c4.entry.js} +1 -1
- package/lib/duet/{p-6e98887f.entry.js → p-fe00331c.entry.js} +1 -1
- package/lib/esm/{a11y-utils-DAo2lcPY.js → a11y-utils-D66Lzlz5.js} +1 -1
- package/lib/esm/{app-globals-CzrvWXbM.js → app-globals-G9KPoeGD.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +5 -5
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +5 -5
- package/lib/esm/duet-banner.entry.js +13 -9
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +7 -7
- package/lib/esm/duet-button_2.entry.js +27 -12
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +15 -15
- package/lib/esm/duet-card.entry.js +8 -8
- package/lib/esm/duet-checkbox.entry.js +5 -5
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +4 -4
- package/lib/esm/duet-choice_2.entry.js +12 -12
- package/lib/esm/duet-collapsible.entry.js +6 -6
- package/lib/esm/duet-combobox.entry.js +5 -5
- package/lib/esm/duet-contact-card.entry.js +5 -5
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +30 -34
- package/lib/esm/duet-divider_2.entry.js +6 -6
- package/lib/esm/duet-editable-table_3.entry.js +12 -12
- package/lib/esm/duet-empty-state.entry.js +4 -4
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +8 -8
- package/lib/esm/duet-grid_2.entry.js +6 -6
- package/lib/esm/duet-header_2.entry.js +7 -7
- package/lib/esm/duet-hero.entry.js +9 -9
- package/lib/esm/duet-icon.entry.js +7 -7
- package/lib/esm/duet-indicator.entry.js +5 -5
- package/lib/esm/duet-input_2.entry.js +18 -14
- 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 +14 -14
- 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 +8 -8
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +4 -4
- package/lib/esm/duet-pagination_2.entry.js +18 -18
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +4 -4
- package/lib/esm/duet-popup-menu_2.entry.js +20 -18
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +13 -9
- package/lib/esm/duet-radio_2.entry.js +7 -7
- package/lib/esm/duet-range-slider.entry.js +7 -7
- package/lib/esm/duet-scrollable_3.entry.js +17 -17
- 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 +8 -8
- 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 +13 -13
- package/lib/esm/duet-slideout.entry.js +20 -18
- package/lib/esm/duet-status-icon.entry.js +4 -4
- 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 +7 -7
- 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 +8 -8
- package/lib/esm/duet-textarea.entry.js +9 -9
- 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 +9 -9
- package/lib/esm/duet-tooltip.entry.js +5 -5
- package/lib/esm/duet-tray.entry.js +6 -6
- 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-DFNtyigo.js → errorcodes.utils-C6zptXiM.js} +1 -1
- package/lib/esm/{focus-utils-BMaSpIw7.js → focus-utils-YZ2ticmM.js} +1 -1
- package/lib/esm/{index-FlJJ5tdo.js → index-DrqQiRTn.js} +1 -1
- package/lib/esm/{label-B8qZstXv.js → label-CnTwCD-3.js} +1 -1
- package/lib/esm/{language-utils-D6DmVtHY.js → language-utils-BEG0cFmw.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-CNDJ1X0N.js → slot-utils-Dzrezpl3.js} +1 -1
- package/lib/esm/{themeable-component-r_Tw1vqr.js → themeable-component-BLql61nC.js} +1 -1
- package/lib/esm/{token-utils-D46K_pN4.js → token-utils-B0KAgyj_.js} +1 -1
- package/lib/esm/{tokens-vvm7i9oY.js → tokens-Ce9HQd35.js} +226 -4
- package/lib/esm/{tokens.module-D84A7Xf6.js → tokens.module-DEzE2U5T.js} +152 -4
- package/lib/types/components/duet-banner/duet-banner.d.ts +1 -0
- package/lib/types/components/duet-date-picker/date-utils.d.ts +1 -1
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +1 -2
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +1 -0
- package/package.json +5 -5
- package/lib/duet/p-0c653c09.entry.js +0 -4
- package/lib/duet/p-0ef804e4.entry.js +0 -4
- package/lib/duet/p-1f2469d6.entry.js +0 -4
- package/lib/duet/p-30190152.entry.js +0 -4
- package/lib/duet/p-44d1fafb.entry.js +0 -4
- package/lib/duet/p-47070cce.entry.js +0 -4
- package/lib/duet/p-5dc3f346.entry.js +0 -4
- package/lib/duet/p-5dc8a394.entry.js +0 -4
- package/lib/duet/p-62954ecf.entry.js +0 -4
- package/lib/duet/p-6359eb27.entry.js +0 -4
- package/lib/duet/p-846b040f.entry.js +0 -4
- package/lib/duet/p-93bfe3dd.entry.js +0 -4
- package/lib/duet/p-BEzfNXw0.js +0 -4
- package/lib/duet/p-BZkhQa5F.js +0 -4
- package/lib/duet/p-BsJux4JM.js +0 -4
- package/lib/duet/p-Bv3O2yFB.js +0 -4
- package/lib/duet/p-D84A7Xf6.js +0 -4
- package/lib/duet/p-Dd0j805V.js +0 -4
- package/lib/duet/p-a4b62f2f.entry.js +0 -4
- package/lib/duet/p-ab939713.entry.js +0 -4
- package/lib/duet/p-c2572d80.entry.js +0 -4
- package/lib/duet/p-dZaxsCbb.js +0 -4
- package/lib/duet/p-f0eda0e2.entry.js +0 -4
- package/lib/duet/p-fc0cb6fb.entry.js +0 -4
- package/lib/duet/p-vvm7i9oY.js +0 -4
|
@@ -169,11 +169,11 @@
|
|
|
169
169
|
}
|
|
170
170
|
.duet-date-button:hover:not(:disabled) {
|
|
171
171
|
outline: 2px solid;
|
|
172
|
-
outline-color: rgb(
|
|
172
|
+
outline-color: rgb(127, 150, 165) !important;
|
|
173
173
|
outline-offset: -1px;
|
|
174
174
|
}
|
|
175
|
-
.duet-theme-turva .duet-date-button:hover:not(:disabled), .duet-date-button:hover:not(:disabled).duet-theme-turva
|
|
176
|
-
outline-color: rgb(120, 145, 164);
|
|
175
|
+
.duet-theme-turva .duet-date-button:hover:not(:disabled), .duet-date-button:hover:not(:disabled).duet-theme-turva {
|
|
176
|
+
outline-color: rgb(120, 145, 164) !important;
|
|
177
177
|
}
|
|
178
178
|
.duet-date-button:disabled {
|
|
179
179
|
pointer-events: none;
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
outline-offset: 2px;
|
|
203
203
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
204
204
|
}
|
|
205
|
-
.duet-theme-turva .duet-date-input-has-focus .duet-date-button:focus, .duet-date-input-has-focus .duet-date-button:focus.duet-theme-turva, .duet-theme-turva .duet-date-
|
|
205
|
+
.duet-theme-turva .duet-date-input-has-focus .duet-date-button:focus, .duet-date-input-has-focus .duet-date-button:focus.duet-theme-turva, .duet-theme-turva .duet-date-button:focus:focus, .duet-date-button:focus:focus.duet-theme-turva {
|
|
206
206
|
outline: 2px solid;
|
|
207
207
|
outline-offset: 2px;
|
|
208
208
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
color: rgb(255, 255, 255) !important;
|
|
372
372
|
background: rgb(0, 119, 179) !important;
|
|
373
373
|
}
|
|
374
|
-
.duet-theme-turva .duet-date-table-button:active, .duet-date-table-button:active.duet-theme-turva
|
|
374
|
+
.duet-theme-turva .duet-date-table-button:active, .duet-date-table-button:active.duet-theme-turva {
|
|
375
375
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
376
376
|
}
|
|
377
377
|
:focus .duet-date-table-button {
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
381
381
|
z-index: 200;
|
|
382
382
|
}
|
|
383
|
-
.duet-theme-turva :focus .duet-date-table-button, :focus .duet-date-table-button.duet-theme-turva
|
|
383
|
+
.duet-theme-turva :focus .duet-date-table-button, :focus .duet-date-table-button.duet-theme-turva {
|
|
384
384
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
385
385
|
}
|
|
386
386
|
.duet-date-table-button.disabled {
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
outline-offset: 2px;
|
|
453
453
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
454
454
|
}
|
|
455
|
-
.duet-theme-turva .duet-date-dialog-select select:focus + .duet-date-dialog-select-label, .duet-date-dialog-select select:focus + .duet-date-dialog-select-label.duet-theme-turva
|
|
455
|
+
.duet-theme-turva .duet-date-dialog-select select:focus + .duet-date-dialog-select-label, .duet-date-dialog-select select:focus + .duet-date-dialog-select-label.duet-theme-turva {
|
|
456
456
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
457
457
|
}
|
|
458
458
|
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
outline-offset: 2px;
|
|
523
523
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
524
524
|
}
|
|
525
|
-
.duet-theme-turva .duet-date-picker-close:focus, .duet-date-picker-close:focus.duet-theme-turva
|
|
525
|
+
.duet-theme-turva .duet-date-picker-close:focus, .duet-date-picker-close:focus.duet-theme-turva {
|
|
526
526
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
527
527
|
}
|
|
528
528
|
@media (min-width: 36em) {
|
|
@@ -51,7 +51,6 @@ export class DuetDatePicker {
|
|
|
51
51
|
this.focusedDay = new Date();
|
|
52
52
|
this.inputValue = "";
|
|
53
53
|
this.inputHasFocus = false;
|
|
54
|
-
this.internalValidityError = "";
|
|
55
54
|
/**
|
|
56
55
|
* Theme of the component.
|
|
57
56
|
*/
|
|
@@ -179,10 +178,9 @@ export class DuetDatePicker {
|
|
|
179
178
|
this.handleBlur = (event) => {
|
|
180
179
|
event.stopPropagation();
|
|
181
180
|
this.inputHasFocus = false;
|
|
182
|
-
if (!this._validity.valid) {
|
|
183
|
-
this.value = null;
|
|
181
|
+
if (!this._validity.valid && !this.disableBuiltInErrors) {
|
|
184
182
|
const errorKey = Object.entries(this._validity).find(entry => !!entry[1])[0];
|
|
185
|
-
this.
|
|
183
|
+
this.error = getLocaleString(this.dateErrorMessages[errorKey]);
|
|
186
184
|
}
|
|
187
185
|
this.duetBlur.emit({
|
|
188
186
|
component: "duet-date-picker",
|
|
@@ -258,7 +256,6 @@ export class DuetDatePicker {
|
|
|
258
256
|
this.handleDaySelect = (_event, day) => {
|
|
259
257
|
const min = parseISODate(this.min);
|
|
260
258
|
const max = parseISODate(this.max);
|
|
261
|
-
this.determineValidity(day);
|
|
262
259
|
if (inRange(day, min, max)) {
|
|
263
260
|
this.setValue(day);
|
|
264
261
|
this.hide();
|
|
@@ -273,10 +270,7 @@ export class DuetDatePicker {
|
|
|
273
270
|
this.handleInputChange = (e) => {
|
|
274
271
|
this.inputValue = e.detail.value;
|
|
275
272
|
const parsed = parseDate(this.inputValue);
|
|
276
|
-
this.
|
|
277
|
-
if (parsed || this.inputValue === "") {
|
|
278
|
-
this.setValue(parsed);
|
|
279
|
-
}
|
|
273
|
+
this.setValue(parsed);
|
|
280
274
|
};
|
|
281
275
|
}
|
|
282
276
|
/**
|
|
@@ -285,19 +279,15 @@ export class DuetDatePicker {
|
|
|
285
279
|
* Useful properties to inspect are badInput, valueMissing, rangeOverflow, rangeUnderflow.
|
|
286
280
|
*/
|
|
287
281
|
get validity() {
|
|
282
|
+
this.determineValidity();
|
|
288
283
|
return this._validity;
|
|
289
284
|
}
|
|
290
|
-
updateValidity(
|
|
291
|
-
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
this.determineValidity(parseISODate(this.value));
|
|
295
|
-
if (this._validity.valid) {
|
|
296
|
-
this.internalValidityError = "";
|
|
297
|
-
}
|
|
285
|
+
updateValidity() {
|
|
286
|
+
this.determineValidity();
|
|
298
287
|
}
|
|
299
288
|
updateInternalValue() {
|
|
300
|
-
|
|
289
|
+
// don't clear input when user has focus there
|
|
290
|
+
if (!this.value && this.inputHasFocus) {
|
|
301
291
|
return;
|
|
302
292
|
}
|
|
303
293
|
const parsedValue = parseISODate(this.value);
|
|
@@ -316,7 +306,7 @@ export class DuetDatePicker {
|
|
|
316
306
|
*/
|
|
317
307
|
componentWillLoad() {
|
|
318
308
|
inheritGlobalTheme(this);
|
|
319
|
-
this.determineValidity(
|
|
309
|
+
this.determineValidity();
|
|
320
310
|
this.updateInternalValue();
|
|
321
311
|
checkNamedSlotElement(this.element, "tooltip", "duet-tooltip", 1, true);
|
|
322
312
|
}
|
|
@@ -403,13 +393,14 @@ export class DuetDatePicker {
|
|
|
403
393
|
setFocusedDay(day) {
|
|
404
394
|
this.focusedDay = clamp(day, parseISODate(this.min), parseISODate(this.max));
|
|
405
395
|
}
|
|
406
|
-
determineValidity(
|
|
396
|
+
determineValidity() {
|
|
407
397
|
var _a, _b;
|
|
398
|
+
const valueAsDate = parseISODate(this.value);
|
|
408
399
|
const inputValue = (_b = (_a = this.datePickerInput) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "";
|
|
409
|
-
const badInput = inputValue !== ""
|
|
410
|
-
const valueMissing = this.required
|
|
411
|
-
const rangeOverflow =
|
|
412
|
-
const rangeUnderflow =
|
|
400
|
+
const badInput = !valueAsDate && inputValue !== "";
|
|
401
|
+
const valueMissing = !valueAsDate && this.required;
|
|
402
|
+
const rangeOverflow = valueAsDate ? !inRange(valueAsDate, null, parseISODate(this.max)) : false;
|
|
403
|
+
const rangeUnderflow = valueAsDate ? !inRange(valueAsDate, parseISODate(this.min)) : false;
|
|
413
404
|
this._validity = {
|
|
414
405
|
patternMismatch: false,
|
|
415
406
|
customError: false,
|
|
@@ -423,6 +414,9 @@ export class DuetDatePicker {
|
|
|
423
414
|
valueMissing,
|
|
424
415
|
valid: !(valueMissing || badInput || rangeUnderflow || rangeOverflow),
|
|
425
416
|
};
|
|
417
|
+
if (this._validity.valid) {
|
|
418
|
+
this.error = "";
|
|
419
|
+
}
|
|
426
420
|
}
|
|
427
421
|
setValue(date) {
|
|
428
422
|
const newValue = printISODate(date);
|
|
@@ -430,6 +424,7 @@ export class DuetDatePicker {
|
|
|
430
424
|
return;
|
|
431
425
|
}
|
|
432
426
|
this.value = newValue;
|
|
427
|
+
this.determineValidity();
|
|
433
428
|
this.duetChange.emit({
|
|
434
429
|
component: "duet-date-picker",
|
|
435
430
|
value: this.value,
|
|
@@ -480,13 +475,13 @@ export class DuetDatePicker {
|
|
|
480
475
|
if (maxDate) {
|
|
481
476
|
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
482
477
|
}
|
|
483
|
-
return (h(Host, { key: '
|
|
478
|
+
return (h(Host, { key: '5ebd34bf6ba1033b890138e5523f45fecd17eaf4', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, h("div", { key: '8c4b995485be3c6b070ce738f3416db0d9683771', class: "duet-date" }, h(DatePickerInput, { key: 'c0b308099cd5c56790a1160d10a682551ce9da7e', 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: 'cca008327d5a939054a1b2abd748b08170b19a07', class: {
|
|
484
479
|
"duet-theme-turva": this.theme === "turva",
|
|
485
480
|
"duet-date-dialog": true,
|
|
486
481
|
left: this.direction === "left",
|
|
487
482
|
error: !!this.error,
|
|
488
483
|
active: this.open,
|
|
489
|
-
}, 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: 'fcb2d3f3fd5333529c2ebc82590a6a543112a5f4', visible: this.open, "display-device": "x-small" }), h(FocusGuard, { key: '0de38fdb796337ec9448bcff1bb652776fdf6f60', moveFocusTo: this.focusedDayNode }), h("div", { key: '9950afbc58987e498e2e6734fd6af177c65d94a8', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, h("duet-visually-hidden", { key: '2394f33f1efd2e0626b2a1bc3642a73193798b13', "aria-live": "polite" }, text.keyboardInstruction), h("div", { key: '74b68ad35d92ab0c2616be5466ea6b8b2c1a1451', class: "duet-date-dialog-mobile-header" }, h(DuetInternalLabel, { key: '7385d9ef814cf4557cf903f705b38a7571369d0f', margin: "none" }, this.label), h("button", { key: '5ba61af3c6b024f1f3ef531b412e5c20243d83ca', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, h("duet-icon", { key: '14e320af49eb06c184cfe918a67f278bdac888bf', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), h("duet-visually-hidden", { key: 'b58668ebd6f0849ae6e8f0454800b4ceb916443e' }, text.closeLabel))), h("div", { key: '79a07d6373ca479f45808ff3eef1ea6239148b26', class: "duet-date-dialog-header" }, h("div", { key: '6f08a300db74dd1562c658334c8220fc1569228c', class: "duet-date-dialog-dropdowns" }, h("duet-visually-hidden", { key: '400b1451a2180e0a189a5c1e7c27139647ec5539' }, h("h2", { key: '47225d656584304da5b114f0430e17cb74a38e53', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), h("duet-visually-hidden", { key: 'b66a24df41db7807ed3c0d3f36d380a897360fa6' }, h("label", { key: 'aae8cf780c5452e1399421e177309ad7a9179803', htmlFor: this.monthSelectId }, text.monthSelectLabel)), h("div", { key: 'f2bad2498489114a7bc0ffd6fc8c4f842b507e43', class: "duet-date-dialog-select" }, h("select", { key: '9d58e711523ace0781cc27947fb9ecc52bda8499', 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: '914f0bef1d172d4d5391991fd9f8206f7d0576df', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '7aebf3e0cbc22a117a5e155e0dd4518189f9b946' }, text.monthLabelsShort[focusedMonth]), h("duet-icon", { key: 'faf140d4032093b37db295f06e23ea761fa27c65', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), h("duet-visually-hidden", { key: '66399d5d57f605fe4db9c13ee13bcf89f4d38efd' }, h("label", { key: '76256efb6db83d4165a903420b70e9a6d43a2e49', htmlFor: this.yearSelectId }, text.yearSelectLabel)), h("div", { key: 'e871aa90559d85cad33752f52a6e538571e6984f', class: "duet-date-dialog-select" }, h("select", { key: 'af2e90cb3d28123c36c83853753be30beff06400', 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: 'a1487d1853c56fc62c20bf2b3df60cc73d666017', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: 'ad43c7efa4a93e4417c2051e000fe0f786b35612' }, this.focusedDay.getFullYear()), h("duet-icon", { key: '5c42115e3dd7c4a48e5cae87b5f03ed274087ba5', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), h("div", { key: 'bc63edbea7a3b069774fc0b8766983f570479501', class: "duet-date-dialog-buttons" }, h("duet-action-button", { key: 'e3cb3ade86eeedbaf914d104ce9b638109708eb6', 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: '3d1b9df7ab5852d770d6c98285b73e002a9f4468', 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: 'fb66dbdf2065a158a265490a6f7c0ace038919d5', 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: 'b40a59659930ae4a47fb6d8dd45f334e5fcdf026', moveFocusTo: this.closeButtonNode }))));
|
|
490
485
|
}
|
|
491
486
|
static get is() { return "duet-date-picker"; }
|
|
492
487
|
static get encapsulation() { return "shadow"; }
|
|
@@ -780,7 +775,7 @@ export class DuetDatePicker {
|
|
|
780
775
|
"error": {
|
|
781
776
|
"type": "string",
|
|
782
777
|
"attribute": "error",
|
|
783
|
-
"mutable":
|
|
778
|
+
"mutable": true,
|
|
784
779
|
"complexType": {
|
|
785
780
|
"original": "string",
|
|
786
781
|
"resolved": "string",
|
|
@@ -1154,8 +1149,7 @@ export class DuetDatePicker {
|
|
|
1154
1149
|
"open": {},
|
|
1155
1150
|
"focusedDay": {},
|
|
1156
1151
|
"inputValue": {},
|
|
1157
|
-
"inputHasFocus": {}
|
|
1158
|
-
"internalValidityError": {}
|
|
1152
|
+
"inputHasFocus": {}
|
|
1159
1153
|
};
|
|
1160
1154
|
}
|
|
1161
1155
|
static get events() {
|
|
@@ -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: 'a833c22a31c93caea94753696848ad720b5dc06d', 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: 'a0c3202194fcc3910b50193f2a4fcb3bd7d3a5d8', 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: '6e53631c212527e8702f9e9c8a1b9bc2b390c830', 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: '990481c1affeb11d6a6541a36a8f0118c961915c', role: this.accessibleRole }, h("caption", { key: 'f7b1bc44ab9fef0194485fdd6e49e11a306e365c' }, h("slot", { key: '2caecec6e5c024bdde6fa6bf72917914e2626752', name: "tcaption" })), h("thead", { key: 'c892dcd586814dcecddc46fbaf0319b04b6d9f16' }, this.hasHeadSlotFirst && (h("tr", { key: 'bfbac21dbab8afab7f34e952bd5803954be4991d' }, h("td", { key: '0a491ed1c4855d55b4dbc493a52029d657a08cc5', class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { key: '87c033e72a1bd3b87a51a4981b1b4939de66578d', name: "thead-first" })))), this.renderTableHeader(), this.hasHeadSlotLast && (h("tr", { key: '2ab66f9b14fe592f7ee7e6293cdd56b3aed0190e' }, h("td", { key: 'edb3ae066371b6f5dc990f10f088246c0d9388d9', class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { key: 'f57ebf07ee01c40cb47469b2fa07a706c4724dae', name: "thead-last" }))))), h("tbody", { key: '538b2de606132fcb272e5af1650cafb947fc5b2a' }, this.renderTableBody()), this.hasFootSlot && (h("tfoot", { key: '2f1a98dd550705933222f7179bc3ff4d6554d117' }, h("tr", { key: 'ecb9667d57ea85de7efa6fa0035fbfbb16c78a9e' }, h("td", { key: 'c78b25495de0621c55f70cce5131b1d192fc5e0e', class: "duet-editable-table-footer-menu", colSpan: 99 }, h("slot", { key: 'ed051b0e66c28fdbee565b33c1c394034a817a82', name: "tfoot" })))))))));
|
|
220
220
|
}
|
|
221
221
|
static get is() { return "duet-editable-table"; }
|
|
222
222
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,11 +29,11 @@ export class DuetEmptyState {
|
|
|
29
29
|
* Always the last one in the class.
|
|
30
30
|
*/
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '9018087936c4abe5adead5d4fe62991ea84b3dc1' }, h("div", { key: 'a0aa84fb06673f4d741891019a98fd7d4f03b174', class: {
|
|
33
33
|
"duet-empty-state": true,
|
|
34
34
|
"duet-theme-turva": this.theme === "turva",
|
|
35
35
|
"duet-is-small": this.size === "small",
|
|
36
|
-
} }, h("duet-icon", { key: '
|
|
36
|
+
} }, h("duet-icon", { key: '8d9265fb0946a832c1c386b139b28b775ade9936', color: "currentColor", name: this.icon, size: this.size === "small" ? "large" : "x-large" }), h("div", { key: '87abfa72d165e96e3ca1798ab0023e13d540d757' }, h("slot", { key: 'fc437b4821cbc146906f8c33aa06d4718a0584b2' })))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "duet-empty-state"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -75,20 +75,20 @@ export class DuetFieldset {
|
|
|
75
75
|
* Always the last one in the class.
|
|
76
76
|
*/
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '150ed749bb02f820ab14416d153e67cea52dc29e', class: { "duet-m-0": this.margin === "none" } }, h("fieldset", { key: '17055f020b42050cfc12e5954edaac9c6658788e', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
|
|
79
79
|
// NVDA and VoiceOver do not yet support aria-errormessage
|
|
80
80
|
// once they do, we can remove errors from the aria-describedby
|
|
81
81
|
// aria-errormessage={this.error ? this.errorId : null}
|
|
82
82
|
class: {
|
|
83
83
|
"duet-fieldset": true,
|
|
84
84
|
"duet-theme-turva": this.theme === "turva",
|
|
85
|
-
} }, h("legend", { key: '
|
|
85
|
+
} }, h("legend", { key: '1cf7a2d88bbcea640fe06e19ce4b2d633be56c3b', id: this.labelId }, h(this.labelHeadingLevel, { key: 'aec7db3663b9cc1c1ac2205ab103c708c56a0573' }, this.label), this.caption && h("span", { key: '849cec9875e1713b0c53ee81ffdcb33b501a78b1' }, this.caption)), h("div", { key: '319c243237ed47fe584e7498514a3f392d9b8b19', class: {
|
|
86
86
|
"duet-legend-wrapper": true,
|
|
87
87
|
"duet-legend-has-caption": !!this.caption,
|
|
88
88
|
"duet-legend-has-tooltip": this.hasTooltip,
|
|
89
89
|
"duet-legend-hidden": this.labelHidden,
|
|
90
90
|
"duet-legend-compact": this.compactLabel,
|
|
91
|
-
} }, h("div", { key: '
|
|
91
|
+
} }, h("div", { key: 'c69484583f6027412eb7d50a33af3db48a4b9755', class: "duet-fieldset-label" }, h("span", { key: 'b8df8f29e780738665c0a054399d1d1f97f5e7ea', "aria-hidden": "true" }, this.label), h("slot", { key: '18d94da36179d4ba5b78c3ed6ac83f41d401c067', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (h("div", { key: '5ceb8c432f19ab8b18d04ce12f6463e563a7459a', class: "duet-fieldset-caption", "aria-hidden": "true" }, h("duet-caption", { key: 'c6f433f3e47f2e2fdedcbc158d169ab6bea4a0a0', theme: this.theme, margin: "none" }, this.caption)))), h("slot", { key: 'b8a61deb6211c5abbc806d2762088fcedb936873' }), h("span", { key: 'a6c68e7ef61365792b92fc6ef7290d3b3a3cdd65', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: '4fea45e086a99437a8f7ddc0e1617a3a6046beed', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "duet-fieldset"; }
|
|
94
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class DuetUploadItem {
|
|
|
48
48
|
inheritGlobalTheme(this);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '4990de1bf699e3f0daea24f507a9b9e252b11d9a' }, h("duet-visually-hidden", { key: '0a226f6f53a8da89230e81df8be61a2413c44af1', "aria-hidden": "true" }, h("input", { key: 'a8a8e3bfc73847a74ea8dc8dff0da0c16d510e15', ref: input => {
|
|
52
52
|
this.nativeInput = input;
|
|
53
53
|
}, type: "file", class: {
|
|
54
54
|
"duet-upload": true,
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
outline-offset: 2px;
|
|
77
77
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
78
78
|
}
|
|
79
|
-
.duet-theme-turva :host(.user-is-tabbing) .duet-footer a:focus, :host(.user-is-tabbing) .duet-footer a:focus.duet-theme-turva
|
|
79
|
+
.duet-theme-turva :host(.user-is-tabbing) .duet-footer a:focus, :host(.user-is-tabbing) .duet-footer a:focus.duet-theme-turva {
|
|
80
80
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
81
81
|
}
|
|
82
82
|
@media (min-width: 62em) {
|
|
@@ -160,16 +160,16 @@ export class DuetFooter {
|
|
|
160
160
|
render() {
|
|
161
161
|
const text = getLocaleString(i18n, this.language);
|
|
162
162
|
const copyrightLabel = this.theme === "turva" ? text.turva : text.lahi;
|
|
163
|
-
return (h("footer", { key: '
|
|
163
|
+
return (h("footer", { key: 'cded4930f82ba556fe630d4295e351cbbb2082e2', class: {
|
|
164
164
|
"duet-footer": true,
|
|
165
165
|
"duet-m-0": this.margin === "none",
|
|
166
166
|
"duet-theme-turva": this.theme === "turva",
|
|
167
167
|
"duet-footer-simple": this.variation === "simple",
|
|
168
|
-
}, "aria-label": this.accessibleLabel }, h("div", { key: '
|
|
168
|
+
}, "aria-label": this.accessibleLabel }, h("div", { key: '937096c43e34404c84fa15418efd41c5692f6ac1', class: "duet-footer-wrapper" }, this.variation !== "simple" && (h("div", { key: '865c6932f382aba543ca23c1bd4ab5aab4885b0a', class: {
|
|
169
169
|
"duet-footer-top": true,
|
|
170
170
|
"duet-has-info": this.hasInfoSlot,
|
|
171
|
-
}, part: "top" }, h("div", { key: '
|
|
172
|
-
this.processedItems.map((item, index) => (h(Fragment, null, index > 0 && h("duet-spacer", { size: "x-large", direction: "horizontal" }), h("duet-button", { ref: element => this.setDataAttributes(element, item), theme: this.theme, id: item.id, class: "duet-footer-link", variation: "plain", margin: "none", fixed: true, negative: true, url: item.href, external: item.external, icon: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), h("slot", { key: '
|
|
171
|
+
}, part: "top" }, h("div", { key: '5a4e9f746ddacca61409f6d398474e142ddffe81', class: "footer-top-logo" }, h("duet-logo", { key: '9a80fbca3c693fdc4a659b4644b0de9ed23c6773', href: this.logoHref, onClick: this.handleLogoClick, size: "large", inverse: true, language: this.language, theme: this.theme })), h("div", { key: 'ca9651a3a6c65b51931f237bc81d6f95fe779134', class: "footer-top-right-container" }, h("slot", { key: '7c84d38abbbc5618d311e8ef263a4a1aef8ae2b7', name: "info" }), h("div", { key: '488bde039351fbbf7618daaaa071b3420662e317', class: "footer-top-items" }, this.processedItems &&
|
|
172
|
+
this.processedItems.map((item, index) => (h(Fragment, null, index > 0 && h("duet-spacer", { size: "x-large", direction: "horizontal" }), h("duet-button", { ref: element => this.setDataAttributes(element, item), theme: this.theme, id: item.id, class: "duet-footer-link", variation: "plain", margin: "none", fixed: true, negative: true, url: item.href, external: item.external, icon: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), h("slot", { key: '33805ebcfc7766486807318270595db1deedbb24', name: "extra" }), h("p", { key: '90ac218478d2659b7f74bb370d8066fd7ef7cf1c', class: "duet-footer-menu", part: "menu" }, h("span", { key: '957a273602b782e88c3e4bd9ae639a68cfd8b966', class: "duet-footer-copyright" }, `${copyrightLabel} ${new Date().getFullYear()}`), h("span", { key: 'd96e17ca5743ed26b331ecd377b6210dcf3e5a2a', class: "duet-footer-menu-links" }, this.processedMenu && (h(Fragment, { key: 'b1495de197bbd8ab5a4ca4c0feddf656e4bfc0b3' }, this.processedMenu.map(item => (h("a", { ref: element => this.setDataAttributes(element, item), href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleMenuClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label, item.external && (h(Fragment, null, h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), h("span", { class: "duet-footer-external" }, h("duet-icon", { icon: newWindowIconSmall.svg, size: "xx-small", margin: "none", color: "currentColor" })))), h("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")))))))), h("p", { key: '8be41d3d9944acb6903a6f3caff06d6f8f9cd5cc', class: "duet-footer-copyright duet-footer-copyright-mobile" }, `${copyrightLabel} ${new Date().getFullYear()}`))));
|
|
173
173
|
}
|
|
174
174
|
static get is() { return "duet-footer"; }
|
|
175
175
|
static get encapsulation() { return "shadow"; }
|
|
@@ -203,7 +203,7 @@ export class DuetGrid {
|
|
|
203
203
|
* Always the last one in the class.
|
|
204
204
|
*/
|
|
205
205
|
render() {
|
|
206
|
-
return (h(Host, { key: '
|
|
206
|
+
return (h(Host, { key: 'ad66e7c93a876e1c16fcd3e463dfbac854f9572b', class: {
|
|
207
207
|
"duet-grid": true,
|
|
208
208
|
"duet-no-stacking": !this.responsive,
|
|
209
209
|
"duet-grid-align-top": this.alignment === "top", // flex-start
|
|
@@ -230,7 +230,7 @@ export class DuetGrid {
|
|
|
230
230
|
"duet-grid-row-reverse": this.rowReverse,
|
|
231
231
|
[`duet-grid-variation-${this.gridTemplate ? "grid" : "flex"}`]: true,
|
|
232
232
|
[`duet-grid-template-${this.gridTemplate}`]: true,
|
|
233
|
-
} }, h("slot", { key: '
|
|
233
|
+
} }, h("slot", { key: 'cb6c2453668b0a2ea8b90eb003a61f78585576a0' })));
|
|
234
234
|
}
|
|
235
235
|
static get is() { return "duet-grid"; }
|
|
236
236
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@ export class DuetGridItem {
|
|
|
53
53
|
* Always the last one in the class.
|
|
54
54
|
*/
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '895153cc6a7fb2d33ea0fe30db592dc41dfe666e', style: {
|
|
57
57
|
"min-width": this.minWidth,
|
|
58
58
|
"max-width": this.maxWidth,
|
|
59
59
|
}, class: {
|
|
@@ -70,7 +70,7 @@ export class DuetGridItem {
|
|
|
70
70
|
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
71
71
|
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
72
72
|
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
73
|
-
} }, h("slot", { key: '
|
|
73
|
+
} }, h("slot", { key: 'e15b327861008131c15c1b804aecd2c0351afdf1' })));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "duet-grid-item"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
outline-offset: 2px;
|
|
280
280
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
281
281
|
}
|
|
282
|
-
.duet-theme-turva :host(.user-is-tabbing) .duet-header-items .duet-header-item:focus, :host(.user-is-tabbing) .duet-header-items .duet-header-item:focus.duet-theme-turva
|
|
282
|
+
.duet-theme-turva :host(.user-is-tabbing) .duet-header-items .duet-header-item:focus, :host(.user-is-tabbing) .duet-header-items .duet-header-item:focus.duet-theme-turva {
|
|
283
283
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
284
284
|
}
|
|
285
285
|
@media (min-width: 62em) {
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
outline-offset: 2px;
|
|
348
348
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
349
349
|
}
|
|
350
|
-
.duet-theme-turva :host(.user-is-tabbing) .duet-header-toggle:focus, :host(.user-is-tabbing) .duet-header-toggle:focus.duet-theme-turva
|
|
350
|
+
.duet-theme-turva :host(.user-is-tabbing) .duet-header-toggle:focus, :host(.user-is-tabbing) .duet-header-toggle:focus.duet-theme-turva {
|
|
351
351
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
352
352
|
}
|
|
353
353
|
@media (min-width: 62em) {
|
|
@@ -476,7 +476,7 @@ button {
|
|
|
476
476
|
outline-offset: 2px;
|
|
477
477
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
478
478
|
}
|
|
479
|
-
.duet-theme-turva :host(.user-is-tabbing) .duet-header-button:focus, :host(.user-is-tabbing) .duet-header-button:focus.duet-theme-turva
|
|
479
|
+
.duet-theme-turva :host(.user-is-tabbing) .duet-header-button:focus, :host(.user-is-tabbing) .duet-header-button:focus.duet-theme-turva {
|
|
480
480
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
481
481
|
}
|
|
482
482
|
.duet-header-button:hover {
|
|
@@ -662,7 +662,7 @@ button {
|
|
|
662
662
|
outline-offset: 2px;
|
|
663
663
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
664
664
|
}
|
|
665
|
-
.duet-theme-turva :host(.user-is-tabbing) .duet-header-dropdown-toggle:focus, :host(.user-is-tabbing) .duet-header-dropdown-toggle:focus.duet-theme-turva
|
|
665
|
+
.duet-theme-turva :host(.user-is-tabbing) .duet-header-dropdown-toggle:focus, :host(.user-is-tabbing) .duet-header-dropdown-toggle:focus.duet-theme-turva {
|
|
666
666
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
667
667
|
}
|
|
668
668
|
.duet-header-dropdown-toggle:active {
|
|
@@ -827,7 +827,7 @@ button {
|
|
|
827
827
|
outline-offset: 2px;
|
|
828
828
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
829
829
|
}
|
|
830
|
-
.duet-theme-turva :host(.user-is-tabbing) .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item):focus, :host(.user-is-tabbing) .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item):focus.duet-theme-turva
|
|
830
|
+
.duet-theme-turva :host(.user-is-tabbing) .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item):focus, :host(.user-is-tabbing) .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item):focus.duet-theme-turva {
|
|
831
831
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
832
832
|
}
|
|
833
833
|
@media (min-width: 62em) {
|
|
@@ -902,7 +902,7 @@ button {
|
|
|
902
902
|
outline-offset: 2px;
|
|
903
903
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
904
904
|
}
|
|
905
|
-
.duet-theme-turva .duet-header-skip:focus, .duet-header-skip:focus.duet-theme-turva
|
|
905
|
+
.duet-theme-turva .duet-header-skip:focus, .duet-header-skip:focus.duet-theme-turva {
|
|
906
906
|
outline: 2px solid;
|
|
907
907
|
outline-offset: 2px;
|
|
908
908
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
@@ -58,7 +58,7 @@ export class DuetHeading {
|
|
|
58
58
|
render() {
|
|
59
59
|
const TagName = sanitizeString(this.level);
|
|
60
60
|
const color = getColorByName(this.color);
|
|
61
|
-
return (h(TagName, { key: '
|
|
61
|
+
return (h(TagName, { key: '2f89171baca460e8b0b6b807a992856426a83838', class: {
|
|
62
62
|
"duet-heading": true,
|
|
63
63
|
"duet-heading-border": this.border !== false,
|
|
64
64
|
"duet-heading-border-solid": this.border === "solid",
|
|
@@ -69,7 +69,7 @@ export class DuetHeading {
|
|
|
69
69
|
[this.visualLevel ? this.visualLevel : this.level]: true,
|
|
70
70
|
"duet-theme-turva": this.theme === "turva",
|
|
71
71
|
"fixed-size": this.fixedSize,
|
|
72
|
-
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, h("slot", { key: '
|
|
72
|
+
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, h("slot", { key: 'aded9e6a879359f85d77f436736131a26188f4dc' })));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "duet-heading"; }
|
|
75
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1423,7 +1423,7 @@ duet-heading + duet-button {
|
|
|
1423
1423
|
outline-offset: 2px;
|
|
1424
1424
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
1425
1425
|
}
|
|
1426
|
-
.duet-theme-turva .duet-hero-link:focus, .duet-hero-link:focus.duet-theme-turva
|
|
1426
|
+
.duet-theme-turva .duet-hero-link:focus, .duet-hero-link:focus.duet-theme-turva {
|
|
1427
1427
|
outline: 2px solid;
|
|
1428
1428
|
outline-offset: 2px;
|
|
1429
1429
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
@@ -284,7 +284,7 @@ export class DuetHero {
|
|
|
284
284
|
outlineColor = "color-primary-turva";
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
return (h("div", { key: '
|
|
287
|
+
return (h("div", { key: 'd5eeb3fa2ded961e10b0db110bc1606beadb5878', role: "region", class: {
|
|
288
288
|
"duet-hero": true,
|
|
289
289
|
"duet-theme-turva": this.theme === "turva",
|
|
290
290
|
"duet-has-category-icon": !!this.categoryIcon,
|
|
@@ -302,17 +302,17 @@ export class DuetHero {
|
|
|
302
302
|
"duet-hero-text-center": this.variation !== "product" && ((this.textCenter && !this.leftAlign) || campaignOrSection),
|
|
303
303
|
"duet-hero-left-align": this.variation === "product" || (this.leftAlign && !campaignOrSection),
|
|
304
304
|
"duet-hero-narrow": this.layout === "narrow",
|
|
305
|
-
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: '
|
|
306
|
-
this.processedBack && (h("div", { key: '
|
|
305
|
+
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: 'f1567b419987fa37b1bf3219d073b7407d68969a', class: "background-area" }, h("div", { key: '240fb437298bb4dbbe401c66c4b7ba4be218b793', class: "background-container" }, h("div", { key: '9bd3e01a06940f60f6edebe1b360afcfc6364c65', class: "background" }, h("img", { key: 'ece8321c4bd15e3eb89a58914373699cd5f74a6d', class: `${imageSizeIsCover ? "cover" : ""} ${imagePositionIsCenter ? "center" : ""}`, src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" })), h("div", { key: '2cbf71fbd70243c9e73dbf0be5cdcd74a4a6ae80', class: "brand-shape" })))), this.variation === "product" && this.image && (h("div", { key: 'a92855b91f7460fe11771919b98613f2bc844c02', class: { "background-area": true, [this.layout]: true } }, h("div", { key: '8eab8720aee4d33edb1ffc3e189ade31115cff0a', class: { "background-container": true, [this.layout]: true } }, h("div", { key: '6a3b020ed0e975c55a1ef0a098900269282e0993', class: { background: true, [this.layout]: true } }, h("div", { key: '724ed47abbe45d42cdc24a15cf144ec92ebe7295', class: { "background-mask": true, [this.layout]: true } }), this.theme !== "turva" && h("div", { key: 'e34148e2264c68a7acce4cdd7ecd98b392f375f3', class: { "brand-shape": true, [this.layout]: true } }), h("div", { key: '995d6c69d45d9b84e98afd7fbe143dd22c91ae93', class: { "brand-shaped-image": true, [this.layout]: true } }, h("div", { key: 'f1adcd5407f731f243e920fd6d02e6307770c3b6', class: { "brand-shaped-image-wrapper": true, [this.layout]: true } }, h("div", Object.assign({ key: 'cbbd91e50a57b03cc9f1b2f8da143a73a5c9c23a', class: { "brand-shaped-image-bg": true, [this.layout]: true }, style: styles }, bgImgA11yAttrs)))), this.categoryIcon && (h("div", { key: '25750e275462cd216688306a684396609b4db5da', class: { "brand-shaped-icon": true, [this.layout]: true } }, h("duet-icon", { key: '080dc04b7915092298dbfd71d85070db370553d2', class: { [this.layout]: true }, background: "none", name: this.categoryIcon, margin: "none", size: "auto", responsive: false }))))))), this.variation === "content" && this.image && (h("div", { key: 'f56fbc69d93eb69daf1a85bf4990d32babc011fd', class: "background-area" }, h("div", { key: '2e81ad46ab2d99734b33b3a5b275124199be6174', class: "background" }, h("div", { key: '67136b598ac80dabcefa7ece68e7152a444f6813', class: "background-mask" }), this.theme !== "turva" && h("div", { key: '522590966eb8f2a919fbef1bd296d14cb7e47056', class: "brand-shape" }), h("div", { key: '64942939ee3b0cb08dbb8f9d3a0c50e3d6492fed', class: "brand-shaped-image" }, h("div", { key: '2a1c9671ff623f747a76ca2bf7eb7061f3e0ab77', class: "brand-shaped-image-wrapper" }, h("div", Object.assign({ key: 'c393815b6c10d63c768ac4af722df40ab1d611a8', class: "brand-shaped-image-bg", style: styles }, bgImgA11yAttrs))))))), h("div", { key: 'fcf490f61e4a2c2fb88ce5804d7059d68789a5ad', class: { "duet-hero-wrapper": true, [this.layout]: true } }, this.image && this.variation === "image" && (h("div", { key: '026cece4736fb17a4f0809cc085ff131296eedcf', class: "duet-hero-image-mask" }, h("div", { key: 'd353ae243b8e1787ce2904cb50a8cb0f82f2b814', class: "duet-hero-image-wrapper" }, h("div", Object.assign({ key: '0f6bf9a85808413d9e9177bb4d6f4bdec1ebb372', class: "duet-hero-image", style: styles }, bgImgA11yAttrs))))), (this.variation === "gray" || this.variation === "light" || this.variation === "minimal") &&
|
|
306
|
+
this.processedBack && (h("div", { key: '882584ea7a07b3f5920a7ab308e42e5ac8d90956', class: "duet-hero-back" }, h("duet-button", { key: 'a0bb7347fc443bc2f4dbaa8a4359304c61a4a33d', style: buttonStyles, variation: "plain", icon: "action-arrow-left-small", theme: this.theme, iconSize: "small", color: buttonColor, padding: "none", margin: "none", fixed: true, url: this.processedBack.href, identifier: this.processedBack.id, onClick: event => this.handleClick(event, {
|
|
307
307
|
label: this.processedBack.label,
|
|
308
308
|
href: this.processedBack.href,
|
|
309
309
|
id: this.processedBack.id,
|
|
310
310
|
analyticsId: this.processedBack.analyticsId,
|
|
311
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: '
|
|
311
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: 'd64fe12b0d99a21a97c3c01bf8a27c3d90168b06', class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), h("div", { key: '6f59e43937274d798205e53bb5c8097707c84c7d', class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (h("duet-paragraph", { key: '6e3a9999d6d9cfb00836f50d1f026f572c13d4d9', margin: "none", class: "duet-hero-pre", size: this.variation === "content" ? "small" : "medium", "aria-hidden": "true" }, this.preHeading ? (this.preHeading) : (h("span", null, h("slot", { name: "pre-heading" }))))), h("slot", { key: '5a246252a9a3cffd670e27c7b34d62dbe81d99d1', name: "badge" }), (this.heading || this.hasHeadingSlot) && (h("duet-heading", { key: '9deaac254f1793d9cac59610b27e90cd67a1203a', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.level, class: { "duet-hero-heading": true, "duet-hero-heading-has-pre": this.preHeading !== "" }, color: headingColor, visualLevel: headingVisualLevel, margin: campaignOrSection ? "none" : "auto", accessibleLabel: this.getAccessibleHeading() }, this.heading ? this.heading : h("slot", { name: "heading" }))), campaignOrSection && this.hasSubHeadingSlot && (h("duet-heading", { key: 'f938dd95a754fa9749699793ce5a81a313cc94a8', theme: this.theme, level: this.hasSubHeadingSlotNative ? "div" : this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, h("slot", { key: '719bb29e202df58c0cd542c6b2c72a8ced1157ea', name: "subheading" }))), this.description && (h("duet-paragraph", { key: '36849331db1a89058aa564e686a46a9b7e975e1b', theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (h("duet-list", { key: '553b3b961f3f23fdab788b84e63552d3c0686b37', theme: this.theme, "label-width": "30", breakpoint: "large", mobile: this.leftAlign ? undefined : "center" }, this.processedListItems.map(item => (h("duet-list-item", null, h("span", { slot: "label" }, item.label), h("span", { slot: "value" }, item.value)))))), this.buttonLabel && (h("duet-button", { key: 'af02b833ecfd90cfd09f0c48c071c41e935080db', url: this.buttonUrl, icon: this.icon, iconRight: this.iconRight, iconSize: this.iconSize, variation: buttonVariation, theme: this.theme, identifier: this.buttonId, onClick: event => this.handleClick(event, this.buttonData), fixed: true }, this.buttonLabel)), h("slot", { key: '77cb919644b1a87eeff3ec753e4b075b3adb6e27' })), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (h("div", { key: 'f5eed6109f77a64ee2ab2bafcc38c664a4bca2f9', class: "duet-hero-links" }, this.processedActions.map(item => (h("a", { class: "duet-hero-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleClick(event, item) }, h("div", { class: "duet-hero-action-icon" }, h("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor", outline: outlineColor })), h("span", null, item.label), item.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), item.external && (h("div", { class: "duet-hero-action-arrow" }, h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
312
312
|
this.variation !== "image" &&
|
|
313
313
|
!campaignOrSection &&
|
|
314
314
|
this.variation !== "product" &&
|
|
315
|
-
this.variation !== "content" && h("div", Object.assign({ key: '
|
|
315
|
+
this.variation !== "content" && h("div", Object.assign({ key: '4dbed5f231c2ffff11d5336b9ada8da3fefbdfce', class: "duet-hero-image", style: styles }, bgImgA11yAttrs)), h("slot", { key: '3d48509557f9575a15947b37ab4fc30b768b5dbb', name: "bottom" }))));
|
|
316
316
|
}
|
|
317
317
|
static get is() { return "duet-hero"; }
|
|
318
318
|
static get encapsulation() { return "shadow"; }
|
|
@@ -144,11 +144,11 @@ export class DuetIcon {
|
|
|
144
144
|
: {};
|
|
145
145
|
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
146
146
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
147
|
-
return (h(Host, { key: '
|
|
147
|
+
return (h(Host, { key: '2f6837b926530cee2afc83a590aa1ccb0dfeca03', class: {
|
|
148
148
|
"duet-m-0": this.margin === "none",
|
|
149
149
|
"duet-icon-has-outline": !!this.outline,
|
|
150
150
|
"duet-icon-has-background": !!this.background,
|
|
151
|
-
} }, h("span", { key: '
|
|
151
|
+
} }, h("span", { key: '6fa86044b5f3966537f38590bd12b28b698a080b', "aria-hidden": "true", style: styles, class: {
|
|
152
152
|
"duet-icon": true,
|
|
153
153
|
"duet-theme-turva": this.theme === "turva",
|
|
154
154
|
"duet-theme-default": this.theme === "default",
|
|
@@ -157,7 +157,7 @@ export class DuetIcon {
|
|
|
157
157
|
[shapeStyle]: true,
|
|
158
158
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
159
159
|
"duet-icon-not-responsive": !this.responsive,
|
|
160
|
-
} }, h("span", { key: '
|
|
160
|
+
} }, h("span", { key: '4ba33bca7da0ccbc0f11b1b5693e7912d0a0d45d', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
|
|
161
161
|
}
|
|
162
162
|
static get is() { return "duet-icon"; }
|
|
163
163
|
static get encapsulation() { return "shadow"; }
|