@duetds/components 10.2.4 → 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 +1035 -694
- package/hydrate/index.mjs +1035 -694
- package/lib/cjs/{a11y-utils-DrkNSFk7.js → a11y-utils-dXXDBTyF.js} +1 -1
- package/lib/cjs/{app-globals-D924IDJZ.js → app-globals-CyPV2FZK.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +6 -6
- package/lib/cjs/duet-alert.cjs.entry.js +5 -5
- package/lib/cjs/duet-badge.cjs.entry.js +6 -6
- package/lib/cjs/duet-banner.cjs.entry.js +14 -16
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +8 -8
- package/lib/cjs/duet-button_2.cjs.entry.js +28 -13
- package/lib/cjs/duet-callout.cjs.entry.js +6 -6
- package/lib/cjs/duet-caption_4.cjs.entry.js +19 -19
- package/lib/cjs/duet-card.cjs.entry.js +9 -9
- package/lib/cjs/duet-checkbox.cjs.entry.js +6 -6
- package/lib/cjs/duet-checkmark.cjs.entry.js +5 -5
- package/lib/cjs/duet-chip.cjs.entry.js +5 -5
- package/lib/cjs/duet-choice_2.cjs.entry.js +13 -13
- package/lib/cjs/duet-collapsible.cjs.entry.js +7 -7
- package/lib/cjs/duet-combobox.cjs.entry.js +6 -6
- package/lib/cjs/duet-contact-card.cjs.entry.js +6 -6
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +4 -4
- package/lib/cjs/duet-date-picker.cjs.entry.js +30 -34
- package/lib/cjs/duet-divider_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +86 -130
- package/lib/cjs/duet-empty-state.cjs.entry.js +5 -5
- package/lib/cjs/duet-fieldset.cjs.entry.js +7 -7
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +9 -9
- package/lib/cjs/duet-grid_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-header_2.cjs.entry.js +13 -38
- package/lib/cjs/duet-hero.cjs.entry.js +10 -10
- package/lib/cjs/duet-icon.cjs.entry.js +8 -8
- package/lib/cjs/duet-indicator.cjs.entry.js +9 -5
- package/lib/cjs/duet-input_2.cjs.entry.js +19 -15
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-modal.cjs.entry.js +15 -15
- 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 +11 -11
- package/lib/cjs/duet-number-input.cjs.entry.js +9 -9
- package/lib/cjs/duet-overlay.cjs.entry.js +4 -4
- package/lib/cjs/duet-page-heading.cjs.entry.js +5 -5
- package/lib/cjs/duet-pagination_2.cjs.entry.js +20 -20
- package/lib/cjs/duet-panel.cjs.entry.js +5 -5
- package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +22 -20
- package/lib/cjs/duet-progress.cjs.entry.js +4 -4
- package/lib/cjs/duet-promo-card.cjs.entry.js +13 -9
- package/lib/cjs/duet-radio_2.cjs.entry.js +8 -8
- package/lib/cjs/duet-range-slider.cjs.entry.js +8 -8
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +20 -20
- 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 +9 -9
- package/lib/cjs/duet-show-more.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +14 -14
- package/lib/cjs/duet-slideout.cjs.entry.js +21 -19
- package/lib/cjs/duet-status-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +8 -8
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +9 -9
- package/lib/cjs/duet-textarea.cjs.entry.js +9 -9
- package/lib/cjs/duet-toggle.cjs.entry.js +9 -9
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar.cjs.entry.js +5 -5
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +11 -11
- package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
- package/lib/cjs/duet-tray.cjs.entry.js +7 -7
- 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-CN2q01zn.js → errorcodes.utils-DQ-I8x2z.js} +1 -1
- package/lib/cjs/{focus-utils-BiNVxwJM.js → focus-utils-DstNW4_h.js} +1 -1
- package/lib/cjs/{index-BU3Nf2d6.js → index-B_QTwXEx.js} +1 -1
- package/lib/cjs/{label-Bkh3nxL_.js → label-yAj5CKm3.js} +1 -1
- package/lib/cjs/{language-utils-BazCSszn.js → language-utils-DjtvVntE.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-BUOLdbgj.js → slot-utils-YUU0XWn9.js} +1 -1
- package/lib/cjs/{themeable-component-BU-IHJDO.js → themeable-component-h3OzJgCb.js} +2 -12
- package/lib/cjs/{token-utils-BstQGJ9_.js → token-utils-DY3-olMV.js} +1 -51
- package/lib/cjs/{tokens-DGQm58Sv.js → tokens-COLlUECP.js} +335 -77
- package/lib/cjs/{tokens.module-CdKmGLcD.js → tokens.module-CTbvyezn.js} +226 -54
- package/lib/collection/common/themeable-component.js +1 -11
- package/lib/collection/components/duet-action-button/duet-action-button.css +5 -19
- package/lib/collection/components/duet-alert/duet-alert.css +4 -3
- package/lib/collection/components/duet-badge/duet-badge.css +20 -65
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.css +16 -14
- package/lib/collection/components/duet-banner/duet-banner.js +9 -11
- 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.css +4 -14
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.css +85 -157
- package/lib/collection/components/duet-button/duet-button.js +20 -5
- package/lib/collection/components/duet-callout/duet-callout.css +4 -8
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.css +6 -10
- package/lib/collection/components/duet-caption/duet-caption.js +2 -2
- package/lib/collection/components/duet-card/duet-card.css +10 -22
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +28 -38
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +2 -2
- package/lib/collection/components/duet-chip/duet-chip.css +33 -59
- package/lib/collection/components/duet-chip/duet-chip.js +1 -1
- package/lib/collection/components/duet-choice/duet-checkmark.css +1 -1
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.css +75 -123
- 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 +6 -17
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
- package/lib/collection/components/duet-combobox/duet-combobox.css +3 -9
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +2 -5
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +5 -13
- 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 +56 -80
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +23 -29
- package/lib/collection/components/duet-divider/duet-divider.css +1 -4
- 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 +1 -5
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +6 -5
- 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 +17 -19
- package/lib/collection/components/duet-footer/duet-footer.js +4 -4
- package/lib/collection/components/duet-grid/duet-grid.js +2 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +2 -6
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-header/duet-header.css +187 -200
- package/lib/collection/components/duet-heading/duet-heading.css +1 -1
- package/lib/collection/components/duet-heading/duet-heading.js +2 -2
- package/lib/collection/components/duet-hero/duet-hero.css +276 -310
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.css +6 -62
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-indicator/duet-indicator.css +1 -1
- package/lib/collection/components/duet-indicator/duet-indicator.js +5 -1
- package/lib/collection/components/duet-input/duet-input.css +103 -131
- package/lib/collection/components/duet-input/duet-input.js +10 -6
- package/lib/collection/components/duet-label/duet-label.css +0 -4
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.css +19 -53
- 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.css +11 -31
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.css +4 -12
- package/lib/collection/components/duet-logo/duet-logo.js +7 -37
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +15 -25
- 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 +5 -8
- 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 +2 -20
- 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 +5 -10
- 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 +14 -20
- 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 +9 -16
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.css +3 -10
- package/lib/collection/components/duet-modal/duet-modal.js +7 -7
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +49 -87
- 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 +11 -18
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +25 -29
- 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 -8
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.css +4 -7
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +6 -23
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.css +0 -4
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-panel/duet-panel.css +5 -19
- package/lib/collection/components/duet-panel/duet-panel.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +7 -14
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +2 -5
- 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 +8 -15
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-progress/duet-progress.css +11 -24
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +13 -5
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +8 -4
- package/lib/collection/components/duet-radio/duet-radio.css +34 -32
- 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 +28 -53
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +1 -1
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +3 -11
- 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 +35 -72
- 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.css +2 -5
- 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 +2 -5
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.css +22 -38
- package/lib/collection/components/duet-slideout/duet-slideout.js +12 -10
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +0 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +7 -13
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +16 -32
- 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 +7 -14
- 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.css +1 -4
- 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 +18 -23
- 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 +5 -15
- 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 +16 -48
- 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 +9 -22
- 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 +17 -27
- 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 +10 -27
- 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 +86 -87
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- package/lib/collection/components/duet-table/duet-table-styles.js +75 -119
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.css +42 -108
- package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
- package/lib/collection/components/duet-toggle/duet-toggle.css +23 -30
- package/lib/collection/components/duet-toggle/duet-toggle.js +3 -3
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +4 -8
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +34 -47
- 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 +7 -14
- 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 +29 -43
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +22 -46
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +8 -12
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +17 -30
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tray/duet-tray.css +8 -17
- 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/token-utils.js +0 -38
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-a4b1a21e.entry.js → p-06f17fe7.entry.js} +1 -1
- package/lib/duet/p-07b9b6c3.entry.js +4 -0
- package/lib/duet/{p-2da426b2.entry.js → p-0a80de40.entry.js} +1 -1
- package/lib/duet/{p-5ed86143.entry.js → p-0cc2921b.entry.js} +1 -1
- package/lib/duet/p-0ccecf5b.entry.js +4 -0
- package/lib/duet/p-10a326fa.entry.js +4 -0
- package/lib/duet/{p-c1b625d2.entry.js → p-12b2d402.entry.js} +1 -1
- package/lib/duet/p-162993d2.entry.js +4 -0
- package/lib/duet/p-162a0691.entry.js +4 -0
- package/lib/duet/p-17413943.entry.js +4 -0
- package/lib/duet/p-17c063a3.entry.js +4 -0
- package/lib/duet/p-18eada94.entry.js +4 -0
- package/lib/duet/p-1e168d4b.entry.js +4 -0
- package/lib/duet/p-234f4365.entry.js +4 -0
- package/lib/duet/{p-35e4a9c4.entry.js → p-245c0535.entry.js} +1 -1
- package/lib/duet/p-25b4886a.entry.js +4 -0
- package/lib/duet/{p-8f7dd5a6.entry.js → p-278ef4d8.entry.js} +1 -1
- package/lib/duet/p-29599dc5.entry.js +4 -0
- package/lib/duet/{p-2cb58d74.entry.js → p-2ac11077.entry.js} +1 -1
- package/lib/duet/p-2d963ab0.entry.js +4 -0
- package/lib/duet/{p-46959db5.entry.js → p-2e126e15.entry.js} +1 -1
- package/lib/duet/p-301b8664.entry.js +4 -0
- package/lib/duet/{p-840a6293.entry.js → p-3a45c3a4.entry.js} +1 -1
- package/lib/duet/p-3d00efb7.entry.js +4 -0
- package/lib/duet/p-3d0a716c.entry.js +4 -0
- package/lib/duet/{p-60450623.entry.js → p-3eba33cd.entry.js} +1 -1
- package/lib/duet/p-419b96b6.entry.js +4 -0
- package/lib/duet/p-44a97d21.entry.js +4 -0
- package/lib/duet/p-4856f07c.entry.js +4 -0
- package/lib/duet/p-4b8293b3.entry.js +4 -0
- package/lib/duet/{p-06e533f3.entry.js → p-550bfab9.entry.js} +1 -1
- package/lib/duet/p-5c60eca3.entry.js +4 -0
- package/lib/duet/p-5c9530f1.entry.js +4 -0
- package/lib/duet/{p-b6b32a0a.entry.js → p-5fb1092c.entry.js} +1 -1
- package/lib/duet/p-5fb783eb.entry.js +4 -0
- package/lib/duet/p-608ebd47.entry.js +4 -0
- package/lib/duet/{p-6c0ba49c.entry.js → p-65350441.entry.js} +1 -1
- package/lib/duet/p-67b3a01a.entry.js +4 -0
- package/lib/duet/p-690beb31.entry.js +4 -0
- package/lib/duet/p-6cffc5b7.entry.js +4 -0
- package/lib/duet/p-6e1b9cc8.entry.js +4 -0
- package/lib/duet/p-7ce31e10.entry.js +4 -0
- package/lib/duet/p-806c4ab8.entry.js +4 -0
- package/lib/duet/p-86166f8d.entry.js +4 -0
- package/lib/duet/p-898d5701.entry.js +4 -0
- package/lib/duet/p-8a28f86e.entry.js +4 -0
- package/lib/duet/p-9172ba70.entry.js +4 -0
- package/lib/duet/p-93abd97a.entry.js +4 -0
- package/lib/duet/{p-108bb9b1.entry.js → p-968546f6.entry.js} +1 -1
- package/lib/duet/{p-BahNb4S5.js → p-B6Z_1gqI.js} +1 -1
- 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-EzuzdWgU.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-D2ly4TZR.js +4 -0
- package/lib/duet/p-DEzE2U5T.js +4 -0
- package/lib/duet/{p-udt4OnI3.js → p-DFAnksuG.js} +1 -1
- package/lib/duet/{p-D01wpYGA.js → p-DrqQiRTn.js} +1 -1
- package/lib/duet/p-ELbbzMVZ.js +4 -0
- package/lib/duet/p-a3ad5622.entry.js +4 -0
- package/lib/duet/p-a6bec2da.entry.js +4 -0
- package/lib/duet/p-a73b7110.entry.js +4 -0
- package/lib/duet/p-a8229728.entry.js +4 -0
- package/lib/duet/p-ae778cb1.entry.js +4 -0
- package/lib/duet/{p-959c0fdf.entry.js → p-b1d91a91.entry.js} +1 -1
- package/lib/duet/p-b4c18ee6.entry.js +4 -0
- package/lib/duet/p-b6dc4395.entry.js +4 -0
- package/lib/duet/{p-208ee0bd.entry.js → p-b9a54319.entry.js} +1 -1
- package/lib/duet/p-b9be36c8.entry.js +4 -0
- package/lib/duet/p-bdae48d3.entry.js +4 -0
- package/lib/duet/p-bdf6a296.entry.js +4 -0
- package/lib/duet/p-bfc75bb9.entry.js +4 -0
- package/lib/duet/p-c8d10c67.entry.js +4 -0
- package/lib/duet/p-c8e520b6.entry.js +4 -0
- package/lib/duet/p-ce4d9add.entry.js +4 -0
- package/lib/duet/p-d2e74e89.entry.js +4 -0
- package/lib/duet/p-d7506eaa.entry.js +4 -0
- package/lib/duet/p-d83f38c7.entry.js +4 -0
- package/lib/duet/p-d8bc628c.entry.js +4 -0
- package/lib/duet/p-da275568.entry.js +4 -0
- package/lib/duet/p-dc5682d8.entry.js +4 -0
- package/lib/duet/p-de4b0518.entry.js +4 -0
- package/lib/duet/p-e050ed5c.entry.js +4 -0
- package/lib/duet/{p-52d1157e.entry.js → p-e9c2eb66.entry.js} +1 -1
- package/lib/duet/p-ec5f40a5.entry.js +4 -0
- package/lib/duet/{p-ad7a1cde.entry.js → p-ec689a7c.entry.js} +1 -1
- package/lib/duet/{p-da5a60ce.entry.js → p-ecf69f6d.entry.js} +1 -1
- package/lib/duet/p-ed750cdf.entry.js +4 -0
- package/lib/duet/p-efa1cd0b.entry.js +4 -0
- package/lib/duet/{p-cde24f7a.entry.js → p-f15ab3b8.entry.js} +1 -1
- package/lib/duet/p-f55f8bd9.entry.js +4 -0
- package/lib/duet/p-f68a4a23.entry.js +4 -0
- package/lib/duet/p-f71d04ce.entry.js +4 -0
- package/lib/duet/p-f8e26f21.entry.js +4 -0
- package/lib/duet/{p-068f930b.entry.js → p-fca9c5c4.entry.js} +1 -1
- package/lib/duet/p-fe00331c.entry.js +4 -0
- package/lib/esm/{a11y-utils-DcQ8_LjH.js → a11y-utils-D66Lzlz5.js} +1 -1
- package/lib/esm/{app-globals-BROlDQRT.js → app-globals-G9KPoeGD.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +6 -6
- package/lib/esm/duet-alert.entry.js +5 -5
- package/lib/esm/duet-badge.entry.js +6 -6
- package/lib/esm/duet-banner.entry.js +14 -16
- package/lib/esm/duet-breadcrumb.entry.js +7 -7
- package/lib/esm/duet-breadcrumbs.entry.js +8 -8
- package/lib/esm/duet-button_2.entry.js +28 -13
- package/lib/esm/duet-callout.entry.js +6 -6
- package/lib/esm/duet-caption_4.entry.js +19 -19
- package/lib/esm/duet-card.entry.js +9 -9
- package/lib/esm/duet-checkbox.entry.js +6 -6
- package/lib/esm/duet-checkmark.entry.js +5 -5
- package/lib/esm/duet-chip.entry.js +5 -5
- package/lib/esm/duet-choice_2.entry.js +13 -13
- package/lib/esm/duet-collapsible.entry.js +7 -7
- package/lib/esm/duet-combobox.entry.js +6 -6
- package/lib/esm/duet-contact-card.entry.js +6 -6
- package/lib/esm/duet-cookie-consent.entry.js +4 -4
- package/lib/esm/duet-date-picker.entry.js +30 -34
- package/lib/esm/duet-divider_2.entry.js +7 -7
- package/lib/esm/duet-editable-table_3.entry.js +86 -130
- package/lib/esm/duet-empty-state.entry.js +5 -5
- package/lib/esm/duet-fieldset.entry.js +7 -7
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +9 -9
- package/lib/esm/duet-grid_2.entry.js +7 -7
- package/lib/esm/duet-header_2.entry.js +13 -38
- package/lib/esm/duet-hero.entry.js +10 -10
- package/lib/esm/duet-icon.entry.js +8 -8
- package/lib/esm/duet-indicator.entry.js +9 -5
- package/lib/esm/duet-input_2.entry.js +19 -15
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +6 -6
- package/lib/esm/duet-menu-bar-button.entry.js +5 -5
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-menu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-menu-bar-item.entry.js +8 -8
- package/lib/esm/duet-menu-bar-link.entry.js +5 -5
- package/lib/esm/duet-menu-bar.entry.js +7 -7
- package/lib/esm/duet-modal.entry.js +15 -15
- 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 +11 -11
- package/lib/esm/duet-number-input.entry.js +9 -9
- package/lib/esm/duet-overlay.entry.js +4 -4
- package/lib/esm/duet-page-heading.entry.js +5 -5
- package/lib/esm/duet-pagination_2.entry.js +20 -20
- package/lib/esm/duet-panel.entry.js +5 -5
- package/lib/esm/duet-phone-input.entry.js +4 -4
- package/lib/esm/duet-popup-menu_2.entry.js +22 -20
- package/lib/esm/duet-progress.entry.js +4 -4
- package/lib/esm/duet-promo-card.entry.js +13 -9
- package/lib/esm/duet-radio_2.entry.js +8 -8
- package/lib/esm/duet-range-slider.entry.js +8 -8
- package/lib/esm/duet-scrollable_3.entry.js +20 -20
- 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 +9 -9
- package/lib/esm/duet-show-more.entry.js +6 -6
- package/lib/esm/duet-slideout-lang.entry.js +5 -5
- package/lib/esm/duet-slideout-link.entry.js +8 -8
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +7 -7
- package/lib/esm/duet-slideout-panel.entry.js +14 -14
- package/lib/esm/duet-slideout.entry.js +21 -19
- package/lib/esm/duet-status-icon.entry.js +4 -4
- package/lib/esm/duet-step_2.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +8 -8
- package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar.entry.js +9 -9
- package/lib/esm/duet-textarea.entry.js +9 -9
- package/lib/esm/duet-toggle.entry.js +9 -9
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-toolbar-dropdown.entry.js +7 -7
- package/lib/esm/duet-toolbar-item.entry.js +9 -9
- package/lib/esm/duet-toolbar-link.entry.js +5 -5
- package/lib/esm/duet-toolbar.entry.js +5 -5
- package/lib/esm/duet-tooltip-button_2.entry.js +11 -11
- package/lib/esm/duet-tooltip.entry.js +5 -5
- package/lib/esm/duet-tray.entry.js +7 -7
- 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-Itv_LXm1.js → errorcodes.utils-C6zptXiM.js} +1 -1
- package/lib/esm/{focus-utils-Ckrg92zt.js → focus-utils-YZ2ticmM.js} +1 -1
- package/lib/esm/{index-D01wpYGA.js → index-DrqQiRTn.js} +1 -1
- package/lib/esm/{label-BDVCTSVS.js → label-CnTwCD-3.js} +1 -1
- package/lib/esm/{language-utils-CJ6UGHBS.js → language-utils-BEG0cFmw.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-BRZl-j4n.js → slot-utils-Dzrezpl3.js} +1 -1
- package/lib/esm/{themeable-component-hw-kujXv.js → themeable-component-BLql61nC.js} +2 -12
- package/lib/esm/{token-utils-DMwF8cmT.js → token-utils-B0KAgyj_.js} +1 -51
- package/lib/esm/{tokens-lzu8l3tx.js → tokens-Ce9HQd35.js} +335 -77
- package/lib/esm/{tokens.module-BzrE0-hp.js → tokens.module-DEzE2U5T.js} +226 -54
- package/lib/types/components/duet-banner/duet-banner.d.ts +1 -1
- 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-logo/duet-logo.d.ts +0 -3
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +1 -0
- package/package.json +5 -5
- package/lib/collection/utils/turva2-color-tokens.js +0 -42
- package/lib/duet/p-00c4df17.entry.js +0 -4
- package/lib/duet/p-0e0e4046.entry.js +0 -4
- package/lib/duet/p-1040c382.entry.js +0 -4
- package/lib/duet/p-116bd504.entry.js +0 -4
- package/lib/duet/p-157995c2.entry.js +0 -4
- package/lib/duet/p-1abdf725.entry.js +0 -4
- package/lib/duet/p-1d70c401.entry.js +0 -4
- package/lib/duet/p-241ecfbb.entry.js +0 -4
- package/lib/duet/p-2ae2c00b.entry.js +0 -4
- package/lib/duet/p-38d9c2a4.entry.js +0 -4
- package/lib/duet/p-3ac158a2.entry.js +0 -4
- package/lib/duet/p-3df4d82d.entry.js +0 -4
- package/lib/duet/p-40f1b967.entry.js +0 -4
- package/lib/duet/p-4ace9ad8.entry.js +0 -4
- package/lib/duet/p-506dd7e4.entry.js +0 -4
- package/lib/duet/p-56cd1a09.entry.js +0 -4
- package/lib/duet/p-56e2f9ab.entry.js +0 -4
- package/lib/duet/p-59e14b99.entry.js +0 -4
- package/lib/duet/p-5deb728c.entry.js +0 -4
- package/lib/duet/p-62d78e93.entry.js +0 -4
- package/lib/duet/p-62f879dc.entry.js +0 -4
- package/lib/duet/p-64682619.entry.js +0 -4
- package/lib/duet/p-649abe6b.entry.js +0 -4
- package/lib/duet/p-6f1faec3.entry.js +0 -4
- package/lib/duet/p-7192d852.entry.js +0 -4
- package/lib/duet/p-7323183d.entry.js +0 -4
- package/lib/duet/p-73e78cea.entry.js +0 -4
- package/lib/duet/p-77ee5411.entry.js +0 -4
- package/lib/duet/p-78dbb64a.entry.js +0 -4
- package/lib/duet/p-79260a28.entry.js +0 -4
- package/lib/duet/p-7af8f026.entry.js +0 -4
- package/lib/duet/p-7b970c92.entry.js +0 -4
- package/lib/duet/p-817f5c02.entry.js +0 -4
- package/lib/duet/p-85ed639b.entry.js +0 -4
- package/lib/duet/p-89605d7b.entry.js +0 -4
- package/lib/duet/p-8ecff6ac.entry.js +0 -4
- package/lib/duet/p-92c976d8.entry.js +0 -4
- package/lib/duet/p-97291b00.entry.js +0 -4
- package/lib/duet/p-B0U815Vi.js +0 -4
- package/lib/duet/p-BQqubJCA.js +0 -4
- package/lib/duet/p-BlYFa84w.js +0 -4
- package/lib/duet/p-Bq_F1n6l.js +0 -4
- package/lib/duet/p-Brp9BZK6.js +0 -4
- package/lib/duet/p-BzrE0-hp.js +0 -4
- package/lib/duet/p-De8V1Ewb.js +0 -4
- package/lib/duet/p-a056d95d.entry.js +0 -4
- package/lib/duet/p-a1fdc4ec.entry.js +0 -4
- package/lib/duet/p-a8a6ab54.entry.js +0 -4
- package/lib/duet/p-a8cd78ae.entry.js +0 -4
- package/lib/duet/p-ab6cce18.entry.js +0 -4
- package/lib/duet/p-ae00066d.entry.js +0 -4
- package/lib/duet/p-ae509388.entry.js +0 -4
- package/lib/duet/p-b4f4baa3.entry.js +0 -4
- package/lib/duet/p-b8b4f2c1.entry.js +0 -4
- package/lib/duet/p-b955cb73.entry.js +0 -4
- package/lib/duet/p-c3084c8c.entry.js +0 -4
- package/lib/duet/p-c464f037.entry.js +0 -4
- package/lib/duet/p-c489791a.entry.js +0 -4
- package/lib/duet/p-caed4507.entry.js +0 -4
- package/lib/duet/p-caf9a237.entry.js +0 -4
- package/lib/duet/p-d0d43606.entry.js +0 -4
- package/lib/duet/p-dfbab0b6.entry.js +0 -4
- package/lib/duet/p-e0481b75.entry.js +0 -4
- package/lib/duet/p-e25e6ab3.entry.js +0 -4
- package/lib/duet/p-e4ac8424.entry.js +0 -4
- package/lib/duet/p-e606f740.entry.js +0 -4
- package/lib/duet/p-ed73dc86.entry.js +0 -4
- package/lib/duet/p-f23fcee4.entry.js +0 -4
- package/lib/duet/p-f27e6dd8.entry.js +0 -4
- package/lib/duet/p-f5345710.entry.js +0 -4
- package/lib/duet/p-f5b6ec35.entry.js +0 -4
- package/lib/duet/p-f9974767.entry.js +0 -4
- package/lib/duet/p-lzu8l3tx.js +0 -4
- package/lib/types/utils/turva2-color-tokens.d.ts +0 -39
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
49
49
|
border-radius: 4px;
|
|
50
50
|
}
|
|
51
|
-
.duet-theme-turva :host(.user-is-tabbing:not(.descendant-focused):focus), :host(.user-is-tabbing:not(.descendant-focused):focus).duet-theme-turva
|
|
51
|
+
.duet-theme-turva :host(.user-is-tabbing:not(.descendant-focused):focus), :host(.user-is-tabbing:not(.descendant-focused):focus).duet-theme-turva {
|
|
52
52
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -66,15 +66,6 @@
|
|
|
66
66
|
backdrop-filter: blur(4px);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
.duet-cookie-consent.duet-theme-turva {
|
|
70
|
-
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
71
|
-
background-color: rgba(12, 21, 30, 0.9);
|
|
72
|
-
}
|
|
73
|
-
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
|
|
74
|
-
.duet-cookie-consent.duet-theme-turva {
|
|
75
|
-
background: rgba(12, 21, 30, 0.8);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
69
|
@media (min-width: 48em) {
|
|
79
70
|
.duet-cookie-consent {
|
|
80
71
|
padding: 20px;
|
|
@@ -110,15 +101,16 @@
|
|
|
110
101
|
outline-offset: 2px;
|
|
111
102
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
112
103
|
}
|
|
113
|
-
.duet-theme-turva ::slotted(a:focus), ::slotted(a:focus).duet-theme-turva
|
|
104
|
+
.duet-theme-turva ::slotted(a:focus), ::slotted(a:focus).duet-theme-turva {
|
|
114
105
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
115
106
|
}
|
|
116
107
|
|
|
117
|
-
|
|
108
|
+
.duet-cookie-consent.duet-theme-turva {
|
|
109
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
118
110
|
background-color: rgba(12, 21, 30, 0.9);
|
|
119
111
|
}
|
|
120
112
|
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
|
|
121
|
-
|
|
113
|
+
.duet-cookie-consent.duet-theme-turva {
|
|
122
114
|
background: rgba(12, 21, 30, 0.8);
|
|
123
115
|
}
|
|
124
116
|
}
|
|
@@ -46,7 +46,7 @@ export class DuetCookieConsent {
|
|
|
46
46
|
* Always the last one in the class.
|
|
47
47
|
*/
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'e79333a51d76cf03ac4fdaee8e2795e98d79319d', tabindex: "-1", class: { "duet-theme-turva": this.theme === "turva" } }, h("div", { key: 'befef096fcaaf1b57daa84ff54cbe665e84f3a86', class: { "duet-cookie-consent": true, "duet-theme-turva": this.theme === "turva" } }, h("div", { key: '78b54949afed67ada604c2ce9dea9c2fcb87a39f', class: "duet-cookie-consent-content" }, h("div", { key: '84a2a875986036aad4ba0b68fa2f902cf1148b01', class: "expand" }, h("slot", { key: 'd6402515233aaa20e4c1a3ff9b59647c674fe03d' })), h("duet-spacer", { key: 'aa7b8ad14f32db64dd72219593c7217567920556', size: "large", direction: "horizontal" }), h("div", { key: '9e7c71566df83cc4e3b6224b2fcf623e81a80db2' }, h("duet-button", { key: '5dc91aa2ae5b05394f1dce473b831d490d62eeae', variation: "negative", size: "small", onClick: this.handleClick, margin: "none", "aria-label": this.accessibleLabel, theme: this.theme }, "OK"))))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "duet-cookie-consent"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,13 +25,14 @@ function createDate(year, month, day) {
|
|
|
25
25
|
}
|
|
26
26
|
return date;
|
|
27
27
|
}
|
|
28
|
+
return undefined;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* @param value date string in format dd.mm.yyyy
|
|
31
32
|
*/
|
|
32
33
|
export function parseDate(value) {
|
|
33
34
|
if (!value) {
|
|
34
|
-
return;
|
|
35
|
+
return undefined;
|
|
35
36
|
}
|
|
36
37
|
const matches = value.match(DATE_FORMAT);
|
|
37
38
|
if (matches) {
|
|
@@ -158,11 +158,6 @@
|
|
|
158
158
|
border-radius: 0 4px 4px 0;
|
|
159
159
|
transition: box-shadow 150ms ease, border 150ms ease !important;
|
|
160
160
|
}
|
|
161
|
-
.duet-theme-turva .duet-date-button {
|
|
162
|
-
color: rgb(23, 42, 59);
|
|
163
|
-
border-color: rgb(120, 145, 164);
|
|
164
|
-
border-left-color: rgb(178, 194, 205);
|
|
165
|
-
}
|
|
166
161
|
.duet-date-button::before {
|
|
167
162
|
position: absolute;
|
|
168
163
|
top: 0;
|
|
@@ -174,11 +169,11 @@
|
|
|
174
169
|
}
|
|
175
170
|
.duet-date-button:hover:not(:disabled) {
|
|
176
171
|
outline: 2px solid;
|
|
177
|
-
outline-color: rgb(
|
|
172
|
+
outline-color: rgb(127, 150, 165) !important;
|
|
178
173
|
outline-offset: -1px;
|
|
179
174
|
}
|
|
180
|
-
.duet-theme-turva .duet-date-button:hover:not(:disabled), .duet-date-button:hover:not(:disabled).duet-theme-turva
|
|
181
|
-
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;
|
|
182
177
|
}
|
|
183
178
|
.duet-date-button:disabled {
|
|
184
179
|
pointer-events: none;
|
|
@@ -186,9 +181,6 @@
|
|
|
186
181
|
background: rgb(245, 248, 250) !important;
|
|
187
182
|
border: 0 !important;
|
|
188
183
|
}
|
|
189
|
-
.duet-theme-turva .duet-date-button:disabled {
|
|
190
|
-
background: rgb(245, 246, 247) !important;
|
|
191
|
-
}
|
|
192
184
|
.duet-date-button:disabled::before {
|
|
193
185
|
display: none;
|
|
194
186
|
}
|
|
@@ -210,14 +202,11 @@
|
|
|
210
202
|
outline-offset: 2px;
|
|
211
203
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
212
204
|
}
|
|
213
|
-
.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-
|
|
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 {
|
|
214
206
|
outline: 2px solid;
|
|
215
207
|
outline-offset: 2px;
|
|
216
208
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
217
209
|
}
|
|
218
|
-
.duet-theme-turva.duet-date-input-has-focus .duet-date-button, .duet-theme-turva .duet-date-button:focus {
|
|
219
|
-
color: rgb(23, 42, 59);
|
|
220
|
-
}
|
|
221
210
|
|
|
222
211
|
.input-error {
|
|
223
212
|
border-top-color: rgb(214, 28, 82);
|
|
@@ -284,9 +273,6 @@
|
|
|
284
273
|
box-shadow: 0 4px 10px 0 rgba(0, 41, 77, 0.15);
|
|
285
274
|
transform: none;
|
|
286
275
|
}
|
|
287
|
-
.duet-theme-turva .duet-date-dialog-wrapper {
|
|
288
|
-
border-color: rgb(212, 221, 226);
|
|
289
|
-
}
|
|
290
276
|
@media (max-width: 35.9375em) {
|
|
291
277
|
.duet-date-dialog-wrapper {
|
|
292
278
|
position: absolute;
|
|
@@ -325,10 +311,6 @@
|
|
|
325
311
|
border-spacing: 0;
|
|
326
312
|
border-collapse: collapse;
|
|
327
313
|
}
|
|
328
|
-
.duet-date-table.duet-theme-turva {
|
|
329
|
-
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
330
|
-
color: rgb(23, 42, 59);
|
|
331
|
-
}
|
|
332
314
|
.duet-date-table th {
|
|
333
315
|
padding-bottom: 8px;
|
|
334
316
|
font-size: 0.75rem;
|
|
@@ -367,36 +349,20 @@
|
|
|
367
349
|
border-radius: 50% !important;
|
|
368
350
|
transition: initial !important;
|
|
369
351
|
}
|
|
370
|
-
.duet-theme-turva .duet-date-table-button {
|
|
371
|
-
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
|
|
372
|
-
color: rgb(23, 42, 59) !important;
|
|
373
|
-
}
|
|
374
352
|
.duet-date-table-button:hover {
|
|
375
353
|
background: rgb(228, 241, 247) !important;
|
|
376
354
|
}
|
|
377
|
-
.duet-theme-turva .duet-date-table-button:hover {
|
|
378
|
-
background: rgb(255, 236, 236) !important;
|
|
379
|
-
}
|
|
380
355
|
.duet-date-table-button.today {
|
|
381
356
|
z-index: 200;
|
|
382
357
|
color: rgb(0, 75, 129) !important;
|
|
383
358
|
background: rgb(240, 247, 250) !important;
|
|
384
359
|
box-shadow: 0 0 0 1px #0077b3 !important;
|
|
385
360
|
}
|
|
386
|
-
.duet-theme-turva .duet-date-table-button.today {
|
|
387
|
-
color: rgb(140, 0, 30) !important;
|
|
388
|
-
background: rgb(255, 242, 242) !important;
|
|
389
|
-
box-shadow: 0 0 0 1px #171c3a !important;
|
|
390
|
-
}
|
|
391
361
|
.selected .duet-date-table-button, :focus .duet-date-table-button {
|
|
392
362
|
color: rgb(255, 255, 255) !important;
|
|
393
363
|
outline: 0;
|
|
394
364
|
background: rgb(0, 119, 179) !important;
|
|
395
365
|
}
|
|
396
|
-
.duet-theme-turva .selected .duet-date-table-button, .duet-theme-turva :focus .duet-date-table-button {
|
|
397
|
-
color: rgb(255, 255, 255) !important;
|
|
398
|
-
background: rgb(230, 23, 64) !important;
|
|
399
|
-
}
|
|
400
366
|
.duet-date-table-button:active {
|
|
401
367
|
outline: 2px solid;
|
|
402
368
|
outline-offset: 2px;
|
|
@@ -405,20 +371,16 @@
|
|
|
405
371
|
color: rgb(255, 255, 255) !important;
|
|
406
372
|
background: rgb(0, 119, 179) !important;
|
|
407
373
|
}
|
|
408
|
-
.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 {
|
|
409
375
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
410
376
|
}
|
|
411
|
-
.duet-theme-turva .duet-date-table-button:active {
|
|
412
|
-
color: rgb(255, 255, 255) !important;
|
|
413
|
-
background: rgb(230, 23, 64) !important;
|
|
414
|
-
}
|
|
415
377
|
:focus .duet-date-table-button {
|
|
416
378
|
outline: 2px solid;
|
|
417
379
|
outline-offset: 2px;
|
|
418
380
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
419
381
|
z-index: 200;
|
|
420
382
|
}
|
|
421
|
-
.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 {
|
|
422
384
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
423
385
|
}
|
|
424
386
|
.duet-date-table-button.disabled {
|
|
@@ -427,11 +389,6 @@
|
|
|
427
389
|
outline: none !important;
|
|
428
390
|
background: transparent !important;
|
|
429
391
|
}
|
|
430
|
-
.duet-theme-turva .duet-date-table-button.disabled {
|
|
431
|
-
color: rgb(120, 145, 164) !important;
|
|
432
|
-
outline: none !important;
|
|
433
|
-
background: transparent !important;
|
|
434
|
-
}
|
|
435
392
|
.duet-date-table-button.outside {
|
|
436
393
|
color: rgb(127, 150, 165) !important;
|
|
437
394
|
pointer-events: none;
|
|
@@ -440,11 +397,6 @@
|
|
|
440
397
|
background: rgb(245, 248, 250) !important;
|
|
441
398
|
opacity: 0.75;
|
|
442
399
|
}
|
|
443
|
-
.duet-theme-turva .duet-date-table-button.outside {
|
|
444
|
-
color: rgb(120, 145, 164);
|
|
445
|
-
outline: none;
|
|
446
|
-
background: rgb(245, 246, 247);
|
|
447
|
-
}
|
|
448
400
|
|
|
449
401
|
.duet-date-dialog-header {
|
|
450
402
|
margin-bottom: 16px !important;
|
|
@@ -481,10 +433,6 @@
|
|
|
481
433
|
pointer-events: none;
|
|
482
434
|
border-radius: 4px;
|
|
483
435
|
}
|
|
484
|
-
.duet-theme-turva .duet-date-dialog-select .duet-date-dialog-select-label {
|
|
485
|
-
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
486
|
-
color: rgb(23, 42, 59);
|
|
487
|
-
}
|
|
488
436
|
.duet-date-dialog-select span {
|
|
489
437
|
margin-right: 4px;
|
|
490
438
|
}
|
|
@@ -504,7 +452,7 @@
|
|
|
504
452
|
outline-offset: 2px;
|
|
505
453
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
506
454
|
}
|
|
507
|
-
.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 {
|
|
508
456
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
509
457
|
}
|
|
510
458
|
|
|
@@ -534,9 +482,6 @@
|
|
|
534
482
|
border: 0;
|
|
535
483
|
}
|
|
536
484
|
}
|
|
537
|
-
.duet-theme-turva .duet-date-dialog-mobile-header {
|
|
538
|
-
border-color: rgb(178, 194, 205);
|
|
539
|
-
}
|
|
540
485
|
.duet-date-dialog-mobile-header label {
|
|
541
486
|
display: inline-block;
|
|
542
487
|
max-width: 84%;
|
|
@@ -569,21 +514,15 @@
|
|
|
569
514
|
opacity: 0;
|
|
570
515
|
}
|
|
571
516
|
}
|
|
572
|
-
.duet-theme-turva .duet-date-picker-close {
|
|
573
|
-
background: rgb(245, 246, 247) !important;
|
|
574
|
-
}
|
|
575
517
|
.duet-date-picker-close:hover {
|
|
576
518
|
background: rgb(245, 248, 250) !important;
|
|
577
519
|
}
|
|
578
|
-
.duet-theme-turva .duet-date-picker-close:hover {
|
|
579
|
-
background: rgb(245, 246, 247) !important;
|
|
580
|
-
}
|
|
581
520
|
.duet-date-picker-close:focus {
|
|
582
521
|
outline: 2px solid;
|
|
583
522
|
outline-offset: 2px;
|
|
584
523
|
outline-color: rgba(0, 119, 179, 0.8);
|
|
585
524
|
}
|
|
586
|
-
.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 {
|
|
587
526
|
outline-color: rgba(53, 79, 101, 0.8);
|
|
588
527
|
}
|
|
589
528
|
@media (min-width: 36em) {
|
|
@@ -592,37 +531,74 @@
|
|
|
592
531
|
}
|
|
593
532
|
}
|
|
594
533
|
|
|
595
|
-
|
|
534
|
+
.duet-theme-turva .duet-date-button {
|
|
596
535
|
color: rgb(23, 42, 59);
|
|
536
|
+
border-color: rgb(120, 145, 164);
|
|
537
|
+
border-left-color: rgb(178, 194, 205);
|
|
597
538
|
}
|
|
598
|
-
|
|
539
|
+
.duet-theme-turva:disabled {
|
|
540
|
+
background: rgb(245, 246, 247) !important;
|
|
541
|
+
}
|
|
542
|
+
.duet-theme-turva.duet-date-input-has-focus .duet-theme-turva, .duet-theme-turva:focus {
|
|
599
543
|
color: rgb(23, 42, 59);
|
|
600
544
|
}
|
|
601
|
-
|
|
545
|
+
.duet-theme-turva .duet-date-dialog-wrapper {
|
|
546
|
+
border-color: rgb(212, 221, 226);
|
|
547
|
+
}
|
|
548
|
+
.duet-theme-turva .duet-date-table-button {
|
|
549
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
|
|
602
550
|
color: rgb(23, 42, 59) !important;
|
|
603
551
|
}
|
|
604
|
-
|
|
552
|
+
.duet-theme-turva .duet-date-table-button:hover:not(.disabled) {
|
|
605
553
|
background: rgb(251, 225, 209) !important;
|
|
606
554
|
}
|
|
607
|
-
|
|
555
|
+
.duet-theme-turva .duet-date-table-button.today {
|
|
556
|
+
color: rgb(140, 0, 30) !important;
|
|
608
557
|
background: rgb(253, 247, 242) !important;
|
|
558
|
+
box-shadow: 0 0 0 1px #171c3a !important;
|
|
609
559
|
}
|
|
610
|
-
|
|
560
|
+
.duet-theme-turva .duet-date-table-button:active {
|
|
611
561
|
color: rgb(255, 255, 255) !important;
|
|
612
562
|
background: rgb(230, 23, 64) !important;
|
|
613
563
|
}
|
|
614
|
-
|
|
564
|
+
.duet-theme-turva .duet-date-table-button.outside {
|
|
615
565
|
color: rgb(120, 145, 164) !important;
|
|
566
|
+
outline: none;
|
|
616
567
|
background: rgb(245, 246, 247) !important;
|
|
617
568
|
}
|
|
618
|
-
|
|
569
|
+
.duet-theme-turva .duet-date-table-button.disabled {
|
|
619
570
|
color: rgb(178, 194, 205) !important;
|
|
571
|
+
outline: none !important;
|
|
572
|
+
background: transparent !important;
|
|
573
|
+
}
|
|
574
|
+
.duet-theme-turva .selected .duet-date-table-button,
|
|
575
|
+
.duet-theme-turva :focus .duet-date-table-button {
|
|
576
|
+
color: rgb(255, 255, 255) !important;
|
|
577
|
+
background: rgb(230, 23, 64) !important;
|
|
578
|
+
}
|
|
579
|
+
.duet-theme-turva :active.duet-date-table-button {
|
|
580
|
+
color: rgb(255, 255, 255) !important;
|
|
581
|
+
background: rgb(230, 23, 64) !important;
|
|
582
|
+
}
|
|
583
|
+
.duet-theme-turva .duet-date-dialog-select .duet-date-dialog-select-label {
|
|
584
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
585
|
+
color: rgb(23, 42, 59);
|
|
586
|
+
}
|
|
587
|
+
.duet-theme-turva .duet-date-dialog-mobile-header {
|
|
588
|
+
border-color: rgb(178, 194, 205);
|
|
620
589
|
}
|
|
621
|
-
|
|
622
|
-
:
|
|
590
|
+
.duet-theme-turva .duet-date-picker-close {
|
|
591
|
+
background: rgb(245, 246, 247) !important;
|
|
592
|
+
}
|
|
593
|
+
.duet-theme-turva .duet-date-picker-close:hover {
|
|
594
|
+
background: rgb(245, 246, 247) !important;
|
|
595
|
+
}
|
|
596
|
+
.duet-theme-turva [aria-pressed=true] .duet-date-table-button,
|
|
597
|
+
.duet-theme-turva :focus .duet-date-table-button {
|
|
623
598
|
color: rgb(255, 255, 255) !important;
|
|
624
599
|
background: rgb(230, 23, 64) !important;
|
|
625
600
|
}
|
|
626
|
-
|
|
601
|
+
.duet-theme-turva.duet-date-table {
|
|
602
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
627
603
|
color: rgb(23, 42, 59);
|
|
628
604
|
}
|
|
@@ -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() {
|
|
@@ -46,10 +46,7 @@
|
|
|
46
46
|
margin-bottom: 16px !important;
|
|
47
47
|
margin-top: 0 !important;
|
|
48
48
|
}
|
|
49
|
-
.duet-divider.duet-theme-turva {
|
|
50
|
-
background: rgb(212, 221, 226);
|
|
51
|
-
}
|
|
52
49
|
|
|
53
|
-
|
|
50
|
+
.duet-divider.duet-theme-turva {
|
|
54
51
|
background: rgb(212, 221, 226);
|
|
55
52
|
}
|
|
@@ -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"; }
|
|
@@ -42,12 +42,8 @@
|
|
|
42
42
|
background: rgb(245, 248, 250);
|
|
43
43
|
border-radius: 4px;
|
|
44
44
|
}
|
|
45
|
-
.duet-empty-state.duet-theme-turva {
|
|
46
|
-
color: rgb(23, 42, 59);
|
|
47
|
-
background: rgb(245, 246, 247);
|
|
48
|
-
}
|
|
49
45
|
|
|
50
|
-
|
|
46
|
+
.duet-empty-state.duet-theme-turva {
|
|
51
47
|
color: rgb(23, 42, 59);
|
|
52
48
|
background: rgb(245, 246, 247);
|
|
53
49
|
}
|
|
@@ -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"; }
|
|
@@ -61,10 +61,6 @@ fieldset legend {
|
|
|
61
61
|
.duet-legend-wrapper.duet-legend-compact:not(.duet-legend-has-caption) {
|
|
62
62
|
line-height: 1.25;
|
|
63
63
|
}
|
|
64
|
-
.duet-theme-turva .duet-legend-wrapper {
|
|
65
|
-
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
66
|
-
color: rgb(23, 42, 59);
|
|
67
|
-
}
|
|
68
64
|
|
|
69
65
|
.duet-fieldset-label {
|
|
70
66
|
margin-bottom: 12px !important;
|
|
@@ -121,6 +117,11 @@ fieldset legend {
|
|
|
121
117
|
clip: rect(0 0 0 0);
|
|
122
118
|
}
|
|
123
119
|
|
|
124
|
-
|
|
120
|
+
.duet-theme-turva .duet-legend-wrapper {
|
|
121
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
125
122
|
color: rgb(23, 42, 59);
|
|
123
|
+
}
|
|
124
|
+
.duet-theme-turva .duet-fieldset-help {
|
|
125
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
126
|
+
color: rgb(214, 28, 82);
|
|
126
127
|
}
|