@duetds/components 9.2.8 → 10.0.0-alpha.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 +910 -272
- package/lib/cjs/a11y-utils-76311b95.js +20 -0
- package/lib/cjs/{app-globals-718a3704.js → app-globals-a1431483.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-alert.cjs.entry.js +3 -3
- package/lib/cjs/duet-badge.cjs.entry.js +3 -3
- package/lib/cjs/duet-banner.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +4 -4
- package/lib/cjs/duet-button_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-callout.cjs.entry.js +4 -4
- package/lib/cjs/duet-caption_4.cjs.entry.js +10 -11
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkmark.cjs.entry.js +3 -3
- package/lib/cjs/duet-chip_3.cjs.entry.js +6 -6
- package/lib/cjs/duet-choice_2.cjs.entry.js +100 -14
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +14 -11
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +7 -7
- package/lib/cjs/duet-empty-state.cjs.entry.js +3 -3
- package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +7 -7
- package/lib/cjs/duet-grid_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +8 -8
- package/lib/cjs/duet-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +16 -12
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +5 -6
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar.cjs.entry.js +4 -4
- package/lib/cjs/duet-modal.cjs.entry.js +10 -10
- package/lib/cjs/duet-multiselect.cjs.entry.js +8 -8
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-number-input.cjs.entry.js +11 -6
- package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +3 -3
- package/lib/cjs/duet-pagination_2.cjs.entry.js +15 -15
- package/lib/cjs/duet-progress.cjs.entry.js +2 -2
- package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-radio_2.cjs.entry.js +87 -11
- package/lib/cjs/duet-range-slider.cjs.entry.js +9 -4
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +16 -16
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +8 -8
- package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
- package/lib/cjs/duet-show-more.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +10 -10
- package/lib/cjs/duet-slideout.cjs.entry.js +8 -8
- package/lib/cjs/duet-step_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +4 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-textarea.cjs.entry.js +11 -7
- package/lib/cjs/duet-toggle.cjs.entry.js +9 -4
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +6 -7
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-tooltip.cjs.entry.js +21 -3
- package/lib/cjs/duet-tray.cjs.entry.js +4 -4
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-4e8a9de4.js → errorcodes.utils-b4cf3ce2.js} +1 -1
- package/lib/cjs/{focus-utils-2a0030aa.js → focus-utils-68fa1c8f.js} +1 -1
- package/lib/cjs/{index-21e67ab3.js → index-7e38df71.js} +1 -1
- package/lib/cjs/{language-utils-b5940c7b.js → language-utils-beee36ce.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-b5c4d888.js → slot-utils-80463bf1.js} +58 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +1 -1
- 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 +19 -18
- package/lib/collection/components/duet-choice/duet-choice.js +97 -13
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +3 -6
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
- package/lib/collection/components/duet-combobox/duet-combobox.js +1 -1
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/date-picker-input.js +2 -2
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +9 -8
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +4 -4
- package/lib/collection/components/duet-grid/duet-grid.js +3 -6
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +3 -6
- package/lib/collection/components/duet-heading/duet-heading.js +2 -2
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-input/duet-input.js +15 -14
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.css +2 -2
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -2
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +6 -6
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
- package/lib/collection/components/duet-number-input/duet-number-input.js +10 -8
- 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-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-progress/duet-progress.js +1 -0
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.css +29 -27
- package/lib/collection/components/duet-radio/duet-radio.js +90 -13
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +3 -6
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +9 -7
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.js +7 -10
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
- package/lib/collection/components/duet-step/duet-step.js +3 -6
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +4 -7
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +10 -9
- package/lib/collection/components/duet-toggle/duet-toggle.js +9 -7
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +19 -1
- 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/a11y-utils.js +5 -9
- package/lib/collection/utils/slot-utils.js +60 -0
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +4 -4
- package/lib/dist-custom-elements/duet-breadcrumb.js +7 -7
- package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +5 -5
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +3 -3
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +14 -13
- package/lib/dist-custom-elements/duet-choice.js +102 -14
- package/lib/dist-custom-elements/duet-collapsible.js +5 -5
- package/lib/dist-custom-elements/duet-combobox.js +19 -18
- package/lib/dist-custom-elements/duet-contact-card.js +10 -10
- package/lib/dist-custom-elements/duet-cookie-consent.js +7 -7
- package/lib/dist-custom-elements/duet-date-picker.js +26 -22
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +7 -7
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.js +3 -3
- package/lib/dist-custom-elements/duet-footer.js +12 -12
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +15 -15
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +7 -7
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-menu-bar-item.js +5 -5
- package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
- package/lib/dist-custom-elements/duet-modal.js +15 -15
- package/lib/dist-custom-elements/duet-multiselect.js +15 -15
- package/lib/dist-custom-elements/duet-nav.js +2 -2
- package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
- package/lib/dist-custom-elements/duet-notification.js +4 -4
- package/lib/dist-custom-elements/duet-number-input.js +22 -16
- package/lib/dist-custom-elements/duet-overlay.js +1 -1
- package/lib/dist-custom-elements/duet-page-heading.js +5 -5
- package/lib/dist-custom-elements/duet-pagination.js +24 -24
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +6 -6
- package/lib/dist-custom-elements/duet-radio-group.js +13 -12
- package/lib/dist-custom-elements/duet-radio.js +88 -9
- package/lib/dist-custom-elements/duet-range-slider.js +12 -6
- package/lib/dist-custom-elements/duet-range-stepper.js +6 -6
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +4 -4
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
- package/lib/dist-custom-elements/duet-show-more.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
- package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-slideout-panel.js +9 -9
- package/lib/dist-custom-elements/duet-slideout.js +8 -8
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +6 -6
- package/lib/dist-custom-elements/duet-stepper.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
- package/lib/dist-custom-elements/duet-tab-group.js +18 -18
- package/lib/dist-custom-elements/duet-tab.js +6 -5
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +21 -16
- package/lib/dist-custom-elements/duet-toggle.js +12 -6
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
- package/lib/dist-custom-elements/duet-toolbar-item.js +6 -6
- package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar.js +3 -3
- package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +5 -5
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload-item.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +21 -21
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-5f8dc639.js → p-0ac72fc8.js} +4 -3
- package/lib/dist-custom-elements/{p-899ca0bf.js → p-18c3a72b.js} +2 -2
- package/lib/dist-custom-elements/{p-b5aa78c4.js → p-266569ef.js} +2 -2
- package/lib/dist-custom-elements/{p-e0de8502.js → p-2a6a71e4.js} +3 -3
- package/lib/dist-custom-elements/{p-79375342.js → p-34d6d7b1.js} +6 -6
- package/lib/dist-custom-elements/{p-034f07f8.js → p-36804cd7.js} +4 -3
- package/lib/dist-custom-elements/{p-96652f7b.js → p-38a3168a.js} +4 -4
- package/lib/dist-custom-elements/{p-8b3decf2.js → p-392a87b6.js} +55 -1
- package/lib/dist-custom-elements/{p-38e65e8c.js → p-39b63c58.js} +3 -3
- package/lib/dist-custom-elements/{p-e536b916.js → p-4b53c636.js} +11 -11
- package/lib/dist-custom-elements/p-4c8762a0.js +273 -0
- package/lib/dist-custom-elements/{p-6ec31ae0.js → p-4d4c66b0.js} +3 -3
- package/lib/dist-custom-elements/{p-96949bb3.js → p-4f5a1d66.js} +2 -2
- package/lib/dist-custom-elements/{p-3667436c.js → p-5270ad3d.js} +4 -4
- package/lib/dist-custom-elements/{p-29782b53.js → p-5448ad53.js} +1 -1
- package/lib/dist-custom-elements/{p-0fbbaee9.js → p-61282ed8.js} +4 -4
- package/lib/dist-custom-elements/{p-a21a8e5e.js → p-644b52bb.js} +3 -3
- package/lib/dist-custom-elements/{p-5fc9921c.js → p-649a8c3e.js} +3 -3
- package/lib/dist-custom-elements/{p-2e2c1d87.js → p-7ff1b14d.js} +3 -3
- package/lib/dist-custom-elements/{p-94a7d4af.js → p-824a3b0b.js} +6 -6
- package/lib/dist-custom-elements/{p-23f0b101.js → p-8342a3e5.js} +4 -4
- package/lib/dist-custom-elements/{p-276aeab7.js → p-8c993e48.js} +2 -2
- package/lib/dist-custom-elements/{p-8ac247f4.js → p-92f36210.js} +12 -12
- package/lib/dist-custom-elements/{p-992a5de8.js → p-a4c60ad4.js} +26 -21
- package/lib/dist-custom-elements/{p-c0b022c4.js → p-a5c06963.js} +3 -3
- package/lib/dist-custom-elements/{p-d2a5148f.js → p-a6b39855.js} +1 -1
- package/lib/dist-custom-elements/{p-50f145f2.js → p-aa62c36f.js} +2 -2
- package/lib/dist-custom-elements/{p-7d56d012.js → p-acacce04.js} +7 -7
- package/lib/dist-custom-elements/{p-6008fcdd.js → p-b33a176e.js} +3 -3
- package/lib/dist-custom-elements/{p-e1efb203.js → p-c44197e0.js} +7 -7
- package/lib/dist-custom-elements/{p-e6dc15da.js → p-c9a14c7b.js} +5 -5
- package/lib/dist-custom-elements/{p-47d4e647.js → p-cb5df864.js} +3 -3
- package/lib/dist-custom-elements/{p-33e3a1a9.js → p-d0a4a69f.js} +3 -3
- package/lib/dist-custom-elements/{p-9e61a1b8.js → p-d0aaf2cd.js} +1 -1
- package/lib/dist-custom-elements/{p-c67a668c.js → p-d9d8aaec.js} +26 -7
- package/lib/dist-custom-elements/{p-56bc455d.js → p-e5962501.js} +3 -3
- package/lib/dist-custom-elements/{p-be9acce7.js → p-ee079d76.js} +4 -4
- package/lib/dist-custom-elements/p-f0cc5629.js +18 -0
- package/lib/dist-custom-elements/{p-d77db171.js → p-f66602b0.js} +1 -1
- package/lib/dist-custom-elements/{p-386b0af9.js → p-fb63021d.js} +2 -2
- package/lib/dist-custom-elements/{p-c58d2abe.js → p-fc92fc89.js} +3 -3
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-3608cf6e.system.entry.js → p-00c7bd0a.system.entry.js} +2 -2
- package/lib/duet/p-01fae8f7.entry.js +4 -0
- package/lib/duet/{p-e13854bd.entry.js → p-028c7b18.entry.js} +1 -1
- package/lib/duet/p-04c70cc1.entry.js +4 -0
- package/lib/duet/p-06e6b044.js +4 -0
- package/lib/duet/p-0c527115.entry.js +4 -0
- package/lib/duet/{p-22fd3cfc.entry.js → p-0cb1aedd.entry.js} +1 -1
- package/lib/duet/{p-e2daf94c.entry.js → p-0cb6800d.entry.js} +1 -1
- package/lib/duet/{p-c210a9f3.system.entry.js → p-0cde41e1.system.entry.js} +1 -1
- package/lib/duet/p-0d730e50.system.entry.js +4 -0
- package/lib/duet/{p-11db4aac.system.entry.js → p-0d79ddc1.system.entry.js} +1 -1
- package/lib/duet/{p-24c50312.system.entry.js → p-0de62774.system.entry.js} +1 -1
- package/lib/duet/{p-2c3a1d5b.system.entry.js → p-12abe4eb.system.entry.js} +1 -1
- package/lib/duet/{p-eaf1640f.entry.js → p-146a6092.entry.js} +1 -1
- package/lib/duet/{p-a2c6d500.system.entry.js → p-19519c35.system.entry.js} +1 -1
- package/lib/duet/{p-47523d35.entry.js → p-19baff31.entry.js} +1 -1
- package/lib/duet/{p-cfa09268.system.entry.js → p-1a629881.system.entry.js} +2 -2
- package/lib/duet/p-1aaa8887.entry.js +4 -0
- package/lib/duet/p-1ce82dfa.system.js +4 -0
- package/lib/duet/{p-2823bfcc.system.entry.js → p-1ec66cb0.system.entry.js} +1 -1
- package/lib/duet/{p-8e1e8d62.system.entry.js → p-210045f4.system.entry.js} +1 -1
- package/lib/duet/{p-2eae4a0b.js → p-214444f4.js} +1 -1
- package/lib/duet/{p-3fef9e7b.entry.js → p-252df607.entry.js} +1 -1
- package/lib/duet/{p-62e7624c.entry.js → p-256b4fd3.entry.js} +1 -1
- package/lib/duet/p-265b2d3f.system.entry.js +4 -0
- package/lib/duet/p-26eb501a.system.entry.js +4 -0
- package/lib/duet/p-29646ce5.system.entry.js +4 -0
- package/lib/duet/p-296eb384.entry.js +4 -0
- package/lib/duet/{p-3e02acba.entry.js → p-2ac4c5d4.entry.js} +1 -1
- package/lib/duet/p-2d34c1fe.system.entry.js +4 -0
- package/lib/duet/{p-bc0290cc.system.entry.js → p-2de11c55.system.entry.js} +1 -1
- package/lib/duet/{p-1e17463d.system.js → p-3300a0a4.system.js} +1 -1
- package/lib/duet/{p-3c286a31.entry.js → p-343c72ca.entry.js} +1 -1
- package/lib/duet/{p-87a3db45.system.entry.js → p-351076bc.system.entry.js} +1 -1
- package/lib/duet/{p-2a0b04d0.system.entry.js → p-35196930.system.entry.js} +1 -1
- package/lib/duet/{p-845b092d.system.entry.js → p-351e60ba.system.entry.js} +1 -1
- package/lib/duet/{p-82ed064b.entry.js → p-3662ad90.entry.js} +1 -1
- package/lib/duet/p-37c5de09.entry.js +4 -0
- package/lib/duet/{p-3a2e39e9.entry.js → p-37f90207.entry.js} +1 -1
- package/lib/duet/p-39733fa6.system.entry.js +4 -0
- package/lib/duet/{p-877b2e4b.system.entry.js → p-3a1f45d1.system.entry.js} +1 -1
- package/lib/duet/{p-8570bdcb.system.entry.js → p-3b77a305.system.entry.js} +1 -1
- package/lib/duet/p-3d797231.system.entry.js +4 -0
- package/lib/duet/{p-ecc9994d.system.entry.js → p-3f690e05.system.entry.js} +1 -1
- package/lib/duet/{p-c4bfa2ff.system.entry.js → p-3fce7ef4.system.entry.js} +1 -1
- package/lib/duet/{p-95f9824f.entry.js → p-405ba8bb.entry.js} +1 -1
- package/lib/duet/{p-605e69c8.system.js → p-406af1f3.system.js} +1 -1
- package/lib/duet/{p-d940168e.entry.js → p-413ee44a.entry.js} +1 -1
- package/lib/duet/{p-2ea8dd6c.system.entry.js → p-425e3794.system.entry.js} +1 -1
- package/lib/duet/{p-25c23189.system.entry.js → p-42b8ef9c.system.entry.js} +1 -1
- package/lib/duet/{p-76d69a18.system.js → p-42d0aeb0.system.js} +1 -1
- package/lib/duet/{p-216fbdc6.system.entry.js → p-4424b9e6.system.entry.js} +2 -2
- package/lib/duet/p-4b45bf31.system.entry.js +4 -0
- package/lib/duet/{p-b8607e71.entry.js → p-4bdae83b.entry.js} +1 -1
- package/lib/duet/p-4ee32b23.system.entry.js +4 -0
- package/lib/duet/{p-04cb4f0a.entry.js → p-4f913952.entry.js} +1 -1
- package/lib/duet/p-5222dec4.system.entry.js +4 -0
- package/lib/duet/{p-00340ba9.system.entry.js → p-5269e599.system.entry.js} +1 -1
- package/lib/duet/{p-fa1ea9bd.entry.js → p-530144b7.entry.js} +1 -1
- package/lib/duet/p-56c887fb.js +4 -0
- package/lib/duet/{p-3dc61c8e.system.entry.js → p-58497877.system.entry.js} +1 -1
- package/lib/duet/{p-388cd5aa.entry.js → p-59eadabe.entry.js} +1 -1
- package/lib/duet/p-5c5e87a7.system.entry.js +4 -0
- package/lib/duet/{p-ff6c9c23.system.entry.js → p-5e62f1da.system.entry.js} +1 -1
- package/lib/duet/{p-ba2dea2c.entry.js → p-5e7d7f1b.entry.js} +1 -1
- package/lib/duet/p-639fd3db.entry.js +4 -0
- package/lib/duet/p-65505cbd.entry.js +4 -0
- package/lib/duet/{p-a07d21e7.system.entry.js → p-65a3b7a2.system.entry.js} +1 -1
- package/lib/duet/p-66adb361.entry.js +4 -0
- package/lib/duet/{p-4cb02d4c.system.entry.js → p-6858f043.system.entry.js} +1 -1
- package/lib/duet/{p-bc12ff8f.system.entry.js → p-69d6bbfe.system.entry.js} +1 -1
- package/lib/duet/{p-2b06592d.system.entry.js → p-6c501d0a.system.entry.js} +1 -1
- package/lib/duet/{p-e95e650d.system.entry.js → p-6e9ec04c.system.entry.js} +1 -1
- package/lib/duet/{p-f43ebf88.entry.js → p-706c3914.entry.js} +1 -1
- package/lib/duet/{p-824d882f.entry.js → p-70adc2c4.entry.js} +1 -1
- package/lib/duet/{p-e559149e.system.entry.js → p-70fd8af5.system.entry.js} +1 -1
- package/lib/duet/{p-1f74f3cd.entry.js → p-71d12412.entry.js} +1 -1
- package/lib/duet/{p-8e4ffb74.entry.js → p-72508bb9.entry.js} +1 -1
- package/lib/duet/{p-909ae316.entry.js → p-740c1ef1.entry.js} +1 -1
- package/lib/duet/{p-0f7eec22.system.entry.js → p-7785b7a6.system.entry.js} +1 -1
- package/lib/duet/{p-6c25b6a4.system.entry.js → p-778e26b4.system.entry.js} +1 -1
- package/lib/duet/p-778e721c.entry.js +4 -0
- package/lib/duet/p-779cfa4a.system.entry.js +4 -0
- package/lib/duet/{p-53455bd1.system.entry.js → p-77eb9c59.system.entry.js} +1 -1
- package/lib/duet/p-795e5faa.entry.js +4 -0
- package/lib/duet/{p-f3c1ae71.system.entry.js → p-79bd8c35.system.entry.js} +1 -1
- package/lib/duet/p-7a3ae8a9.system.js +4 -0
- package/lib/duet/{p-a19244e5.system.js → p-7d32c253.system.js} +1 -1
- package/lib/duet/p-7ed9a6ec.entry.js +4 -0
- package/lib/duet/p-83d125ee.system.entry.js +4 -0
- package/lib/duet/{p-c7b44ed6.system.entry.js → p-8911e1f0.system.entry.js} +1 -1
- package/lib/duet/{p-9d9713da.entry.js → p-8bc4d112.entry.js} +1 -1
- package/lib/duet/{p-b8dd07d6.system.entry.js → p-907ef071.system.entry.js} +1 -1
- package/lib/duet/{p-ae215ca8.system.entry.js → p-989ecf2e.system.entry.js} +1 -1
- package/lib/duet/{p-b1ab6641.entry.js → p-99443d70.entry.js} +1 -1
- package/lib/duet/{p-b10ace99.entry.js → p-9be7442d.entry.js} +1 -1
- package/lib/duet/{p-acf39158.entry.js → p-9bfe7c56.entry.js} +1 -1
- package/lib/duet/{p-c5bacc6d.system.entry.js → p-9e27e0a8.system.entry.js} +1 -1
- package/lib/duet/{p-21a9fa67.system.entry.js → p-9f466e90.system.entry.js} +1 -1
- package/lib/duet/{p-222fc546.entry.js → p-9ff1b619.entry.js} +1 -1
- package/lib/duet/{p-4982cc6b.entry.js → p-a023bf22.entry.js} +1 -1
- package/lib/duet/p-a1b49d73.system.entry.js +4 -0
- package/lib/duet/{p-e5f269b7.entry.js → p-a5406a98.entry.js} +1 -1
- package/lib/duet/{p-b4680142.entry.js → p-a5526302.entry.js} +1 -1
- package/lib/duet/{p-2d950c77.system.entry.js → p-a6ee1072.system.entry.js} +1 -1
- package/lib/duet/{p-f43e134e.system.entry.js → p-a7c7e6a4.system.entry.js} +1 -1
- package/lib/duet/p-aa436035.system.entry.js +4 -0
- package/lib/duet/{p-d9186e07.entry.js → p-aabf13cc.entry.js} +1 -1
- package/lib/duet/p-aad77751.system.js +4 -0
- package/lib/duet/p-ac1125e2.entry.js +4 -0
- package/lib/duet/{p-4913f02c.entry.js → p-ad3fc579.entry.js} +1 -1
- package/lib/duet/{p-bde7e1d8.system.entry.js → p-adca50f8.system.entry.js} +1 -1
- package/lib/duet/{p-a3306993.system.entry.js → p-b0823273.system.entry.js} +2 -2
- package/lib/duet/{p-dfef2cbe.entry.js → p-b11c1b81.entry.js} +1 -1
- package/lib/duet/{p-6541a645.system.entry.js → p-b1c78160.system.entry.js} +2 -2
- package/lib/duet/{p-32c7c509.entry.js → p-b1f3e71c.entry.js} +1 -1
- package/lib/duet/{p-9fa72371.entry.js → p-b5b5040f.entry.js} +1 -1
- package/lib/duet/{p-3aad3baf.system.entry.js → p-b5eec241.system.entry.js} +1 -1
- package/lib/duet/{p-6e7ef80c.system.entry.js → p-b5ef2959.system.entry.js} +1 -1
- package/lib/duet/{p-ec975bab.entry.js → p-b6214d5a.entry.js} +1 -1
- package/lib/duet/p-b73129bb.entry.js +4 -0
- package/lib/duet/{p-b5846de1.system.entry.js → p-b822ce49.system.entry.js} +1 -1
- package/lib/duet/{p-8abb0984.js → p-b899b000.js} +1 -1
- package/lib/duet/{p-eb8799b0.system.entry.js → p-b9e3e4e1.system.entry.js} +1 -1
- package/lib/duet/{p-bfbe3a6d.system.entry.js → p-bcbd3dde.system.entry.js} +1 -1
- package/lib/duet/{p-62bd233d.entry.js → p-bf2016fd.entry.js} +1 -1
- package/lib/duet/p-bf60f901.system.entry.js +4 -0
- package/lib/duet/{p-ed532434.system.entry.js → p-c00beb34.system.entry.js} +1 -1
- package/lib/duet/p-c055a0a5.entry.js +4 -0
- package/lib/duet/p-c0f0ba52.entry.js +4 -0
- package/lib/duet/{p-d5870c1f.system.entry.js → p-c162b6f1.system.entry.js} +1 -1
- package/lib/duet/{p-295e34bd.entry.js → p-c20c2ae0.entry.js} +1 -1
- package/lib/duet/{p-72fde124.entry.js → p-c20e0bcd.entry.js} +1 -1
- package/lib/duet/{p-193fbc0f.entry.js → p-c2ece51b.entry.js} +1 -1
- package/lib/duet/p-c4de2dcc.entry.js +4 -0
- package/lib/duet/{p-3c6c1ee0.system.entry.js → p-c7f38ac3.system.entry.js} +1 -1
- package/lib/duet/{p-6e00b714.system.entry.js → p-c8437ddb.system.entry.js} +2 -2
- package/lib/duet/{p-0c243b6f.entry.js → p-cab2979b.entry.js} +1 -1
- package/lib/duet/{p-046b98cf.entry.js → p-cc15edd9.entry.js} +1 -1
- package/lib/duet/p-cdccf8e6.system.entry.js +4 -0
- package/lib/duet/{p-b4c0dc4c.entry.js → p-cfee6451.entry.js} +1 -1
- package/lib/duet/{p-d7d86092.js → p-d048f25c.js} +1 -1
- package/lib/duet/{p-d1266569.system.entry.js → p-d2ded72c.system.entry.js} +2 -2
- package/lib/duet/{p-d0cd60a6.entry.js → p-d3a5400e.entry.js} +1 -1
- package/lib/duet/{p-3be0272c.entry.js → p-d452cbb7.entry.js} +1 -1
- package/lib/duet/{p-328685e9.entry.js → p-d554e96b.entry.js} +1 -1
- package/lib/duet/{p-0aed733f.entry.js → p-d6b53d40.entry.js} +1 -1
- package/lib/duet/p-d709d282.entry.js +4 -0
- package/lib/duet/{p-40354594.entry.js → p-d710c54e.entry.js} +1 -1
- package/lib/duet/{p-36a317f6.entry.js → p-d7c1c492.entry.js} +1 -1
- package/lib/duet/p-d9187b9e.entry.js +4 -0
- package/lib/duet/{p-072798e6.system.entry.js → p-dc85fbfe.system.entry.js} +1 -1
- package/lib/duet/p-dd1ec0ef.entry.js +4 -0
- package/lib/duet/{p-72053364.system.entry.js → p-dea69e25.system.entry.js} +1 -1
- package/lib/duet/{p-37181efc.entry.js → p-e1a53396.entry.js} +1 -1
- package/lib/duet/p-e1d33d05.entry.js +4 -0
- package/lib/duet/{p-2437b4cb.js → p-e4d4cc92.js} +1 -1
- package/lib/duet/p-e7fa96bb.system.js +4 -0
- package/lib/duet/p-e8216065.system.entry.js +4 -0
- package/lib/duet/p-eacd8c67.entry.js +4 -0
- package/lib/duet/p-eb425280.system.entry.js +4 -0
- package/lib/duet/p-ed72e8f0.entry.js +4 -0
- package/lib/duet/{p-446ed731.system.entry.js → p-eec65fc4.system.entry.js} +1 -1
- package/lib/duet/p-f0cc5629.js +4 -0
- package/lib/duet/p-f1b8c169.entry.js +4 -0
- package/lib/duet/{p-cb612283.system.entry.js → p-f29c480a.system.entry.js} +1 -1
- package/lib/duet/{p-c8cbf8d3.entry.js → p-f35be908.entry.js} +1 -1
- package/lib/duet/{p-e21744ad.system.entry.js → p-f380d364.system.entry.js} +1 -1
- package/lib/duet/p-f417c864.entry.js +4 -0
- package/lib/duet/{p-c013a413.entry.js → p-f6900a3e.entry.js} +1 -1
- package/lib/duet/{p-6ce40239.system.entry.js → p-f933ada6.system.entry.js} +1 -1
- package/lib/duet/{p-998b929a.entry.js → p-f9a64d11.entry.js} +1 -1
- package/lib/duet/p-ffe761ec.system.entry.js +4 -0
- package/lib/esm/a11y-utils-92930863.js +18 -0
- package/lib/esm/{app-globals-00959ca9.js → app-globals-386e1feb.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +2 -2
- package/lib/esm/duet-alert.entry.js +3 -3
- package/lib/esm/duet-badge.entry.js +3 -3
- package/lib/esm/duet-banner.entry.js +2 -2
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +4 -4
- package/lib/esm/duet-button_2.entry.js +4 -4
- package/lib/esm/duet-callout.entry.js +4 -4
- package/lib/esm/duet-caption_4.entry.js +10 -11
- package/lib/esm/duet-card.entry.js +1 -1
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-checkmark.entry.js +3 -3
- package/lib/esm/duet-chip_3.entry.js +6 -6
- package/lib/esm/duet-choice_2.entry.js +100 -14
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +4 -4
- package/lib/esm/duet-contact-card.entry.js +4 -4
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +14 -11
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +7 -7
- package/lib/esm/duet-empty-state.entry.js +3 -3
- package/lib/esm/duet-fieldset.entry.js +5 -5
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +7 -7
- package/lib/esm/duet-grid_2.entry.js +5 -5
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +8 -8
- package/lib/esm/duet-icon.entry.js +4 -4
- package/lib/esm/duet-input_2.entry.js +16 -12
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +4 -4
- package/lib/esm/duet-menu-bar-button.entry.js +3 -3
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar-dropdown.entry.js +5 -5
- package/lib/esm/duet-menu-bar-item.entry.js +5 -6
- package/lib/esm/duet-menu-bar-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar.entry.js +4 -4
- package/lib/esm/duet-modal.entry.js +10 -10
- package/lib/esm/duet-multiselect.entry.js +8 -8
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +6 -6
- package/lib/esm/duet-number-input.entry.js +11 -6
- package/lib/esm/duet-overlay.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +3 -3
- package/lib/esm/duet-pagination_2.entry.js +15 -15
- package/lib/esm/duet-progress.entry.js +2 -2
- package/lib/esm/duet-promo-card.entry.js +4 -4
- package/lib/esm/duet-radio_2.entry.js +87 -11
- package/lib/esm/duet-range-slider.entry.js +9 -4
- package/lib/esm/duet-scrollable_3.entry.js +16 -16
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +8 -8
- package/lib/esm/duet-shaped-image.entry.js +3 -3
- package/lib/esm/duet-show-more.entry.js +4 -4
- package/lib/esm/duet-slideout-lang.entry.js +3 -3
- package/lib/esm/duet-slideout-link.entry.js +3 -3
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
- package/lib/esm/duet-slideout-panel.entry.js +10 -10
- package/lib/esm/duet-slideout.entry.js +8 -8
- package/lib/esm/duet-step_2.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-item.entry.js +4 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +6 -6
- package/lib/esm/duet-textarea.entry.js +11 -7
- package/lib/esm/duet-toggle.entry.js +9 -4
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
- package/lib/esm/duet-toolbar-dropdown.entry.js +5 -5
- package/lib/esm/duet-toolbar-item.entry.js +6 -7
- package/lib/esm/duet-toolbar-link.entry.js +3 -3
- package/lib/esm/duet-toolbar.entry.js +3 -3
- package/lib/esm/duet-tooltip-button_2.entry.js +6 -6
- package/lib/esm/duet-tooltip.entry.js +21 -3
- package/lib/esm/duet-tray.entry.js +4 -4
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +5 -5
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-d9431251.js → errorcodes.utils-f2529568.js} +1 -1
- package/lib/esm/{focus-utils-adcd9463.js → focus-utils-fb393f52.js} +1 -1
- package/lib/esm/{index-1d0b7c66.js → index-4e3ad237.js} +1 -1
- package/lib/esm/{language-utils-14969cef.js → language-utils-95643489.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-c62f2d7c.js → slot-utils-76c14c1b.js} +56 -2
- package/lib/esm-es5/a11y-utils-92930863.js +4 -0
- package/lib/esm-es5/{app-globals-00959ca9.js → app-globals-386e1feb.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +2 -2
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip_3.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +2 -2
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-file-chooser.entry.js +2 -2
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +2 -2
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +2 -2
- package/lib/esm-es5/duet-number-input.entry.js +2 -2
- package/lib/esm-es5/duet-overlay.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.entry.js +2 -2
- package/lib/esm-es5/duet-radio_2.entry.js +2 -2
- package/lib/esm-es5/duet-range-slider.entry.js +2 -2
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +2 -2
- package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +2 -2
- package/lib/esm-es5/duet-step_2.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +2 -2
- package/lib/esm-es5/duet-toggle.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +2 -2
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-upload-item.entry.js +2 -2
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{errorcodes.utils-d9431251.js → errorcodes.utils-f2529568.js} +1 -1
- package/lib/esm-es5/focus-utils-fb393f52.js +4 -0
- package/lib/esm-es5/{index-1d0b7c66.js → index-4e3ad237.js} +1 -1
- package/lib/esm-es5/{language-utils-14969cef.js → language-utils-95643489.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/slot-utils-76c14c1b.js +4 -0
- package/lib/types/components/duet-choice/duet-choice.d.ts +7 -1
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +2 -0
- package/lib/types/components/duet-input/duet-input.d.ts +2 -0
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +2 -0
- package/lib/types/components/duet-progress/duet-progress.d.ts +0 -6
- package/lib/types/components/duet-radio/duet-radio.d.ts +7 -1
- package/lib/types/components/duet-range-slider/duet-range-slider.d.ts +2 -0
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +2 -0
- package/lib/types/components/duet-toggle/duet-toggle.d.ts +2 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +3 -0
- package/lib/types/utils/slot-utils.d.ts +17 -0
- package/package.json +4 -4
- package/lib/cjs/a11y-utils-a0a1c591.js +0 -25
- package/lib/dist-custom-elements/p-33ef7275.js +0 -23
- package/lib/dist-custom-elements/p-e3c6562a.js +0 -272
- package/lib/duet/p-0acaeef1.system.entry.js +0 -4
- package/lib/duet/p-0bf7b3c5.entry.js +0 -4
- package/lib/duet/p-115db258.entry.js +0 -4
- package/lib/duet/p-15553b15.system.entry.js +0 -4
- package/lib/duet/p-1d988a7d.entry.js +0 -4
- package/lib/duet/p-1fa1ce4b.entry.js +0 -4
- package/lib/duet/p-216bc706.system.entry.js +0 -4
- package/lib/duet/p-22e54537.system.entry.js +0 -4
- package/lib/duet/p-2bc9a07a.system.entry.js +0 -4
- package/lib/duet/p-3149beee.system.entry.js +0 -4
- package/lib/duet/p-3b25391c.entry.js +0 -4
- package/lib/duet/p-3b838a83.system.js +0 -4
- package/lib/duet/p-3ed182b5.entry.js +0 -4
- package/lib/duet/p-41f2f90c.entry.js +0 -4
- package/lib/duet/p-5b378d7e.entry.js +0 -4
- package/lib/duet/p-5d6463a4.entry.js +0 -4
- package/lib/duet/p-5e8d9c74.system.entry.js +0 -4
- package/lib/duet/p-5f9da024.system.entry.js +0 -4
- package/lib/duet/p-67f593af.entry.js +0 -4
- package/lib/duet/p-720a5baf.system.entry.js +0 -4
- package/lib/duet/p-73a912a8.system.entry.js +0 -4
- package/lib/duet/p-76f8cf1e.entry.js +0 -4
- package/lib/duet/p-79e8dc10.entry.js +0 -4
- package/lib/duet/p-876398dc.entry.js +0 -4
- package/lib/duet/p-88592630.js +0 -4
- package/lib/duet/p-965e597c.system.js +0 -4
- package/lib/duet/p-99bddf65.system.js +0 -4
- package/lib/duet/p-9cc4e4a1.entry.js +0 -4
- package/lib/duet/p-9dddb2a6.system.entry.js +0 -4
- package/lib/duet/p-9ed7087f.entry.js +0 -4
- package/lib/duet/p-a3a959a4.entry.js +0 -4
- package/lib/duet/p-abcf33aa.entry.js +0 -4
- package/lib/duet/p-ac975c3d.js +0 -4
- package/lib/duet/p-bffcb6cc.system.entry.js +0 -4
- package/lib/duet/p-cda56872.entry.js +0 -4
- package/lib/duet/p-ce60e510.entry.js +0 -4
- package/lib/duet/p-da114a78.entry.js +0 -4
- package/lib/duet/p-e1c881da.system.js +0 -4
- package/lib/duet/p-e263da06.entry.js +0 -4
- package/lib/duet/p-e5810f77.entry.js +0 -4
- package/lib/duet/p-e6ac5022.system.entry.js +0 -4
- package/lib/duet/p-e96a159d.system.entry.js +0 -4
- package/lib/duet/p-ed803e3f.entry.js +0 -4
- package/lib/duet/p-ee1c534c.system.entry.js +0 -4
- package/lib/duet/p-f2bc16bb.system.entry.js +0 -4
- package/lib/duet/p-f3b6b75d.system.entry.js +0 -4
- package/lib/duet/p-f5f81926.system.entry.js +0 -4
- package/lib/duet/p-faf02cb3.entry.js +0 -4
- package/lib/duet/p-fb0c0f16.entry.js +0 -4
- package/lib/duet/p-fd78f61a.js +0 -4
- package/lib/duet/p-fe4a2e84.system.entry.js +0 -4
- package/lib/duet/p-fe56aeca.system.entry.js +0 -4
- package/lib/esm/a11y-utils-02741d98.js +0 -23
- package/lib/esm-es5/a11y-utils-02741d98.js +0 -4
- package/lib/esm-es5/focus-utils-adcd9463.js +0 -4
- package/lib/esm-es5/slot-utils-c62f2d7c.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -3986,12 +3986,12 @@ class DuetBadge {
|
|
|
3986
3986
|
*/
|
|
3987
3987
|
render() {
|
|
3988
3988
|
const backgroundClass = `background-${this.background}`;
|
|
3989
|
-
return (hAsync(Host, { key: '
|
|
3989
|
+
return (hAsync(Host, { key: 'ae708838b39b1a8db655ca27383e92baba3795fd', class: { "duet-m-0": this.margin === "none" } }, hAsync("span", { key: '29dbf98cb938dcd05be7a57c20e355db1e05b1df', class: {
|
|
3990
3990
|
"duet-badge": true,
|
|
3991
3991
|
[this.variation]: true,
|
|
3992
3992
|
[backgroundClass]: true,
|
|
3993
3993
|
"duet-theme-turva": this.theme === "turva",
|
|
3994
|
-
} }, hAsync("slot", { key: '
|
|
3994
|
+
} }, hAsync("slot", { key: 'aa2b310511ff50a759a7ef772a38ddbe196ef74a' }))));
|
|
3995
3995
|
}
|
|
3996
3996
|
get element() { return getElement(this); }
|
|
3997
3997
|
static get style() { return DuetBadgeStyle0; }
|
|
@@ -4181,14 +4181,14 @@ class DuetBreadcrumb {
|
|
|
4181
4181
|
*/
|
|
4182
4182
|
render() {
|
|
4183
4183
|
var _a;
|
|
4184
|
-
return (hAsync(Host, { key: '
|
|
4184
|
+
return (hAsync(Host, { key: '40039dc021f3bad94fd13cf99da9d9d0de8f68a7', role: "listitem" }, hAsync("div", { key: '8208ce2c97c5ddffbb262dbe191f07d71fb8741d', class: "container" }, this.icon === "arrow-right-small-icon" && (hAsync("duet-icon", { key: '0d1655e8b1119eb81366df2808daad4844495e1c', class: "duet-breadrumbs-arrow", size: "auto", icon: actionArrowRightSmall.svg, margin: "none", color: "currentColor" })), hAsync("a", { key: '47cb74d024694bf8b53c372ec5256d883de7a79e', class: {
|
|
4185
4185
|
"duet-breadcrumb": true,
|
|
4186
4186
|
"duet-theme-turva": this.theme === "turva",
|
|
4187
4187
|
}, href: this.href ? this.href : undefined, "aria-label": `${!this.href ? `${getLocaleString(this.currentCrumb)} ` : ""}${(_a = this.accessibleLabel) !== null && _a !== void 0 ? _a : this.element.innerHTML}`, role: "link" }, this.icon !== "arrow-right-small-icon" &&
|
|
4188
4188
|
this.icon && [
|
|
4189
|
-
hAsync("duet-icon", { key: '
|
|
4190
|
-
this.hasSlottedContent && hAsync("duet-spacer", { key: '
|
|
4191
|
-
], hAsync("slot", { key: '
|
|
4189
|
+
hAsync("duet-icon", { key: '86ee4831b6e005533aecf1371f13fe4e7af742a3', size: this.iconSize, name: this.icon, margin: "none", color: "currentColor" }),
|
|
4190
|
+
this.hasSlottedContent && hAsync("duet-spacer", { key: '25868dfb7eaf17d0eb274284762291a990a549e5', size: "x-small", direction: "horizontal" }),
|
|
4191
|
+
], hAsync("slot", { key: 'dc22ae47f49397cc88f3b1d48a0ca047c081abf2' })))));
|
|
4192
4192
|
}
|
|
4193
4193
|
get element() { return getElement(this); }
|
|
4194
4194
|
static get style() { return DuetBreadcrumbStyle0; }
|
|
@@ -4249,11 +4249,11 @@ class DuetBreadcrumbs {
|
|
|
4249
4249
|
*/
|
|
4250
4250
|
render() {
|
|
4251
4251
|
const color = getColorByName(this.color);
|
|
4252
|
-
return (hAsync(Host, { key: '
|
|
4252
|
+
return (hAsync(Host, { key: 'eb7b2e1fa288283c0cee25d2ca736f1e2b0c20e0' }, hAsync("nav", { key: '0fd682f03a66a5ace3ddd82f24a198fbcf934c11', "aria-label": this.breadcrumbsAriaLabel, class: {
|
|
4253
4253
|
"duet-breadcrumbs": true,
|
|
4254
4254
|
"duet-theme-turva": this.theme === "turva",
|
|
4255
4255
|
[this.variation]: true,
|
|
4256
|
-
} }, hAsync("div", { key: '
|
|
4256
|
+
} }, hAsync("div", { key: 'ce482ca58e56cf134d6cd9eb89da7ad0f86c4d43', class: "container" }, hAsync("div", { key: '4e49822a247fbc27d2ee8d11c7e15401e4906cf8', role: "list", class: "list", style: { color } }, hAsync("slot", { key: '40de9a013b3521d649df9e070cdfca80c04aafdb' })), hAsync("div", { key: '6f16a5234caf4512abf463e1509134b78fd599c3', class: "bottom-border bottom-border--container" })), hAsync("div", { key: '907f549692f35ee96b2273485f5667b11fba763e', class: "bottom-border bottom-border--nav" }))));
|
|
4257
4257
|
}
|
|
4258
4258
|
get element() { return getElement(this); }
|
|
4259
4259
|
static get style() { return DuetBreadcrumbsStyle0; }
|
|
@@ -4607,11 +4607,11 @@ class DuetCallout {
|
|
|
4607
4607
|
<path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>
|
|
4608
4608
|
</svg>
|
|
4609
4609
|
`;
|
|
4610
|
-
return (hAsync(Host, { key: '
|
|
4610
|
+
return (hAsync(Host, { key: '1b4cbe35da31a702d426b208e1320028b3112f9a' }, hAsync("div", { key: 'fab24aac061b0c7920309f3290a5a8159e37a0c4', class: {
|
|
4611
4611
|
"duet-callout": true,
|
|
4612
4612
|
"duet-theme-turva": this.theme === "turva",
|
|
4613
4613
|
"duet-m-0": this.margin === "none",
|
|
4614
|
-
} }, hAsync("figure", { key: '
|
|
4614
|
+
} }, hAsync("figure", { key: '8f550e61a90cbad9121cd324a6c6cc4e433cafd0', class: "container" }, hAsync("duet-icon", { key: '5dd94e456b38480e892dedd68ccf223f4f25b5a9', class: "callout-icon", shape: "brand-rotated", background: "primary-lighter", "background-opacity": "0.75", "background-rotation": this.theme === "turva" ? "0" : "7", color: "secondary", icon: icon, size: "auto", margin: "none", theme: this.theme }), hAsync("blockquote", { key: '4ea5035888ae6ad897f92f66f0b6cd46de7e76d3' }, hAsync("slot", { key: '2a646124096ae8b25c2f29ada8a993bf7294cab5' })), this.hasAuthorSlot && (hAsync("figcaption", { key: '164a3bedfcb1ffd6156b47ffe430818a910f4b6c', class: "author" }, hAsync("span", { key: 'd7ce517642be6e5ab5c17e690b927f5a78c4f41d' }, "\u2014 "), hAsync("slot", { key: 'e29dd6eb00f784b90876edabc7cc69f02a736359', name: "author" })))))));
|
|
4615
4615
|
}
|
|
4616
4616
|
get element() { return getElement(this); }
|
|
4617
4617
|
static get style() { return DuetCalloutStyle0; }
|
|
@@ -4817,7 +4817,7 @@ class DuetCard {
|
|
|
4817
4817
|
}; }
|
|
4818
4818
|
}
|
|
4819
4819
|
|
|
4820
|
-
const duetCheckboxCss = "
|
|
4820
|
+
const duetCheckboxCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(:last-child:not(:only-child)){margin-bottom:0 !important}:host(.duet-m-0){margin:0 !important}.duet-label{position:relative;z-index:100;display:inline;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);vertical-align:top;cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva .duet-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-label span{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container{position:relative;width:100%;height:100%}.duet-checkbox{padding:14px !important;position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.duet-checkbox+label::before{z-index:100;display:inline-block;width:20px;height:20px;margin:2px 10px 1px 1px;vertical-align:top;content:\"\";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:4px}.duet-theme-turva .duet-checkbox+label::before{border-color:rgb(23, 28, 58)}.duet-checkbox:checked+label::before{background:rgb(0, 119, 179);border:1px solid rgb(0, 119, 179)}.duet-theme-turva .duet-checkbox:checked+label::before{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-checkbox:focus+label::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-checkbox:focus+label::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-checkbox[aria-invalid=true]+label::before{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-checkbox[aria-invalid=true]+label::before{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-checkbox+label{position:static}.duet-checkbox:checked+label::after{position:absolute;top:6px;left:5px;z-index:200;width:12px;height:12px;pointer-events:none;content:\"\";background:transparent url(\"data:image/svg+xml,%3Csvg%20fill%3D%27white%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M23.374.287a1.5%2C1.5%2C0%2C0%2C0-2.093.345L7.246%2C20.2%2C2.561%2C15.511A1.5%2C1.5%2C0%2C1%2C0%2C.439%2C17.632l5.935%2C5.934a1.525%2C1.525%2C0%2C0%2C0%2C2.279-.186l15.066-21A1.5%2C1.5%2C0%2C0%2C0%2C23.374.287Z%27%20%2F%3E%3C%2Fsvg%3E\") no-repeat 0 0;background-size:100% auto}.duet-checkbox[disabled]{cursor:default}.duet-checkbox[disabled]+label{color:rgb(98, 121, 138)}.duet-theme-turva .duet-checkbox[disabled]+label{color:rgb(143, 147, 158)}.duet-checkbox[disabled]+label::before{border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-checkbox[disabled]+label::before{border-color:rgb(199, 202, 207)}.duet-checkbox[disabled]:checked+label::before{background:rgb(127, 150, 165);border:1px solid rgb(127, 150, 165)}.duet-theme-turva .duet-checkbox[disabled]:checked+label::before{background:rgb(143, 147, 158);border-color:rgb(143, 147, 158)}.duet-checkbox-error{margin-left:31px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(214, 28, 82);border-radius:4px}.duet-theme-turva .duet-checkbox-error{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(214, 28, 82)}.duet-label-hidden .duet-label span,.duet-label-hidden .duet-checkbox-error span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}";
|
|
4821
4821
|
var DuetCheckboxStyle0 = duetCheckboxCss;
|
|
4822
4822
|
|
|
4823
4823
|
class DuetCheckbox {
|
|
@@ -4920,7 +4920,7 @@ class DuetCheckbox {
|
|
|
4920
4920
|
get element() { return getElement(this); }
|
|
4921
4921
|
static get style() { return DuetCheckboxStyle0; }
|
|
4922
4922
|
static get cmpMeta() { return {
|
|
4923
|
-
"$flags$":
|
|
4923
|
+
"$flags$": 9,
|
|
4924
4924
|
"$tagName$": "duet-checkbox",
|
|
4925
4925
|
"$members$": {
|
|
4926
4926
|
"accessibleActiveDescendant": [1, "accessible-active-descendant"],
|
|
@@ -4972,11 +4972,11 @@ class DuetCheckmark {
|
|
|
4972
4972
|
inheritGlobalTheme(this);
|
|
4973
4973
|
}
|
|
4974
4974
|
render() {
|
|
4975
|
-
return (hAsync(Host, { key: '
|
|
4975
|
+
return (hAsync(Host, { key: '4f894c8f4f3ec363b66b92d64106650948eddbd9', class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: '97af2cb562ab2260fff669a97236d17119417883', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, hAsync("div", { key: '0017ec40a1dfa14357bb3ae08b409b537549b953', class: {
|
|
4976
4976
|
"duet-checkmark-container": true,
|
|
4977
4977
|
center: this.center,
|
|
4978
4978
|
"duet-checkmark-radio": this.type === "radio",
|
|
4979
|
-
} }, this.checked && hAsync("div", { key: '
|
|
4979
|
+
} }, this.checked && hAsync("div", { key: 'bf36ed6a59e749c98ec6f3862c013998343c2077', class: "duet-checkmark" })))));
|
|
4980
4980
|
}
|
|
4981
4981
|
static get style() { return DuetCheckmarkStyle0; }
|
|
4982
4982
|
static get cmpMeta() { return {
|
|
@@ -5298,7 +5298,7 @@ class DuetChip {
|
|
|
5298
5298
|
onBlur: this.onBlur,
|
|
5299
5299
|
ref: el => (this.focusableElement = el),
|
|
5300
5300
|
};
|
|
5301
|
-
return (hAsync(Host, { key: 'a1e4d371f57abce15c06aa88bf2faab012bde60a', class: { [this.variation]: true } }, this.variation === "button" && (hAsync("span", { key: '48b8e4b70be8c4511a33be55c6fd25ec850fe1c2', class: classes }, hAsync("button", Object.assign({ key: '
|
|
5301
|
+
return (hAsync(Host, { key: 'a1e4d371f57abce15c06aa88bf2faab012bde60a', class: { [this.variation]: true } }, this.variation === "button" && (hAsync("span", { key: '48b8e4b70be8c4511a33be55c6fd25ec850fe1c2', class: classes }, hAsync("button", Object.assign({ key: '1e92c0aff2f7d6817644759f8fc0a338a12e651e', id: identifier, "aria-label": this.accessibleLabel, "aria-disabled": this.disabled ? "true" : undefined, name: this.name, value: this.value, onClick: this.disabled ? evt => evt.stopPropagation() : undefined }, focusHandlers), hAsync("span", { key: 'f0dfef6892bc184005d490ad2d1d5f9ff5c21fe9', class: "duet-chip-icon-container" }, this.icon && (hAsync("duet-icon", { key: '490e975ca8e0573278761ac8fe978a5bac7f1188', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), hAsync("slot", { key: '1e44610c8ab2868243517a700bfdb9e5adbd5d0d' })))), this.variation === "input" && (hAsync("span", { key: 'b4340e31757471ddf6e7e326c4738a34f57d668c', class: classes, "aria-label": this.getAccessibleInputChipLabel() }, hAsync("button", Object.assign({ key: 'dbb4afd5b7f46baa28a026ff4531db068eac8980', id: identifier, class: "duet-chip-input-button", value: this.value, "aria-label": this.accessibleLabel, onMouseOver: () => (this.inputChipHover = true), onMouseOut: () => (this.inputChipHover = false), onClick: () => (this.selected = !this.selected) }, focusHandlers), hAsync("span", { key: '6e871c13f043685a2bd1fbf484256e801437a86b', class: "duet-chip-icon-container" }, this.icon && (hAsync("duet-icon", { key: '74c2893dc01e6e13a2baf628908c5f92a3bfc9d5', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), hAsync("slot", { key: 'f0600d50d6bc3a1b549d9d7b8a3c62d4d02ab53f' })), hAsync("button", { key: '70055da94df9cb43034d6b70e63c2748ca91eee5', class: "duet-chip-remove-button", "aria-label": this.getAccessibleDeleteLabel(), onClick: this.onRemoveClick, onFocus: () => (this.inputChipDeleteFocus = true), onBlur: () => (this.inputChipDeleteFocus = false), ref: el => (this.deleteButtonElement = el) }, hAsync("duet-icon", { key: '1201fc54755c07ce2bbadfc2ec8aa29d5faa43eb', name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (hAsync("span", { key: 'c6c3ddfc24d0bce8113029c644f01c5eceee6936', class: classes }, hAsync("input", Object.assign({ key: 'dae5813deea4c2b7798852027cc65d2be069fa05', "aria-haspopup": this.getAccessiblePopup(), "aria-controls": (_a = this.popupElement) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), hAsync("label", { key: '5c7534979701b02d02649f0b77aadfae19568c15', htmlFor: identifier }, this.icon && (hAsync("span", { key: 'a92359d55dae65066120c53db2f8fcfa09f89904', class: "duet-chip-icon-container" }, hAsync("duet-icon", { key: '9193a5782a8848231e53276b90b0ce2e665e2812', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), hAsync("duet-icon", { key: '78717f62e085fb0528f6ee7b141691f6c7555f42', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), hAsync("slot", { key: '7c210530d8bb610ac7aaadd0f4a7510ddd020d12' }), this.popupElement && (hAsync("span", { key: '2a6053db849ac7543ce7649c94a3fda09d7dd2f3', class: "duet-chip-popup-disclosure" }, hAsync("duet-icon", { key: 'e21b78ef1b4fca374c1112e4d492ed57f8ab9cab', name: "action-arrow-down-small", size: "xxx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (hAsync("span", { key: 'a964e2e03bfbf19d8a01f8475ee6d4b81c671c76', class: classes }, hAsync("slot", { key: '3b64cb528868bf3f36b83bfe613df41d7ee17513', name: "input" }), hAsync("label", { key: 'f3f52816c1229c2446f51642bcba073e95d44139', htmlFor: identifier }, this.icon && (hAsync("span", { key: 'e5d0dbadb5b2cc473dd1ad618bdc3f0e00d3f02c', class: "duet-chip-icon-container" }, hAsync("duet-icon", { key: '498cf093393d6b44a60aad4b73520d4f3ebecde2', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), hAsync("duet-icon", { key: '153615d1f9923f824ca91a8799dfaebb9489ad47', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), hAsync("slot", { key: '6f89ed2bcee2e5cdf1b6505f04be602fad04b904' }))))));
|
|
5302
5302
|
}
|
|
5303
5303
|
get element() { return getElement(this); }
|
|
5304
5304
|
static get watchers() { return {
|
|
@@ -5338,7 +5338,9 @@ class DuetChip {
|
|
|
5338
5338
|
}; }
|
|
5339
5339
|
}
|
|
5340
5340
|
|
|
5341
|
-
const duetChoiceCss = "*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-choice-h:last-child,.sc-duet-choice-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){.sc-duet-choice-h{width:100%}}.duet-expand.sc-duet-choice-h{width:100% !important}.duet-m-0.sc-duet-choice-h{margin:0 !important}.duet-fixed.sc-duet-choice-h{width:auto !important}.vertical.sc-duet-choice-h{margin-right:0 !important}@media (min-width: 48em){.horizontal.sc-duet-choice-h{margin-bottom:0 !important}}@media (min-width: 48em){.horizontal-responsive.sc-duet-choice-h{margin-bottom:0 !important;margin-right:16px !important}.horizontal-responsive.sc-duet-choice-h:last-child,.horizontal-responsive.sc-duet-choice-h:last-of-type{margin-right:0 !important}}.sc-duet-choice-h:last-child:not(:only-child){margin-right:0 !important}.duet-choice-card.sc-duet-choice{position:relative;display:block;width:100%;min-width:8rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:rgb(8, 42, 77) !important;text-align:left;background:rgb(255, 255, 255);border-width:1px;border-radius:8px}.duet-choice-card.duet-p-0.sc-duet-choice{padding:0 !important}.duet-choice-card.duet-m-0.sc-duet-choice{margin:0 !important}.duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58) !important}.duet-choice-card-flextainer.sc-duet-choice{display:flex}.duet-choice-label.sc-duet-choice{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;gap:12px;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:calc(1rem + 1px);font-size:1rem;font-weight:600;text-decoration:none;word-break:break-word;cursor:pointer;border:1px solid rgb(212, 223, 229);border-radius:8px;transition:background-color 150ms ease, border-color 300ms ease}.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-icon.sc-duet-choice,.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-text.sc-duet-choice{align-self:flex-start;margin-top:0.25rem}.duet-choice-label.sc-duet-choice>div.sc-duet-choice:last-child{flex:1;align-self:flex-start;justify-self:flex-end;margin-top:0.25rem}.has-info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-top-right-radius:0;border-bottom-right-radius:0}.info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding:1rem;background:rgb(240, 247, 250);border-color:rgb(0, 119, 179) !important;border-width:2px}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(23, 28, 58) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(198, 12, 48)}.checked.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice,.collapsible-force-expanded.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding-bottom:calc(1rem + 2px) !important;border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(127, 150, 165)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(23, 28, 58)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(143, 147, 158)}.duet-theme-turva .info .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(143, 147, 158)}.sc-duet-choice-h:not(.no-hover):not(.disabled):not([checked]):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){padding:1rem}input.sc-duet-choice:focus{outline:0}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(98, 121, 138) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(143, 147, 158)}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(98, 121, 138) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:hover,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:active,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:focus{box-shadow:none !important;opacity:1 !important;transition:none !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(143, 147, 158) !important}.checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(127, 150, 165) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(143, 147, 158) !important}.duet-checkmark-container.sc-duet-choice{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(143, 147, 158)}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(181, 198, 208) !important;border-color:rgb(181, 198, 208) !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(199, 202, 207) !important}.checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(181, 198, 208) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(199, 202, 207) !important;border-color:rgb(199, 202, 207) !important}.duet-checkmark.sc-duet-choice{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon.sc-duet-choice{position:relative;color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(164, 4, 40)}.duet-choice-card-icon.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-section-hidden.sc-duet-choice{display:none}.duet-choice-card-info.duet-choice-card-collapsed.sc-duet-choice,.duet-choice-card-collapsed.duet-choice-card-collapsible.sc-duet-choice{position:relative;width:auto;padding:0 !important;background:unset !important;border:0;border-radius:0}.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:20px !important;position:relative;width:100%;font-weight:400;color:rgb(8, 42, 77);border:1px solid rgb(212, 223, 229);border-top:0;border-radius:0 0 8px 8px;transition:border-color 300ms ease}@media (min-width: 36em){.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:28px !important}}.duet-theme-turva.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.duet-theme-turva.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.checked.sc-duet-choice>.duet-choice-card-info.sc-duet-choice,.checked.sc-duet-choice>.duet-choice-card-collapsible.sc-duet-choice{display:block}.duet-choice-card-info-expanded.sc-duet-choice,.duet-choice-card-collapsible-expanded.sc-duet-choice{display:block}.duet-choice-card-collapsible.sc-duet-choice{background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible.checked.sc-duet-choice{padding:19px !important;padding-top:20px !important;border-color:rgb(0, 119, 179);border-width:2px}@media (min-width: 36em){.duet-choice-card-collapsible.checked.sc-duet-choice{padding:27px !important;padding-top:28px !important}}.duet-choice-card-collapsible.checked.duet-theme-turva.sc-duet-choice{border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.checked.sc-duet-choice{border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible-disabled.duet-theme-turva.checked.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-choice-card-info.sc-duet-choice{font-size:0.875rem;line-height:1.5;background:rgb(245, 248, 250);transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container.sc-duet-choice-s>*,.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container .sc-duet-choice-s>*{display:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-container.sc-duet-choice:focus{display:block;outline:none;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.disabled.sc-duet-choice-h .duet-choice-card-collapsible.sc-duet-choice{border-color:rgb(127, 150, 165)}.disabled.sc-duet-choice-h .duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{border-color:rgb(143, 147, 158)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(143, 147, 158)}[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:19px !important;padding-top:20px !important}@media (min-width: 36em){[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:27px !important;padding-top:28px !important}}.duet-choice-info-toggle.sc-duet-choice{display:flex;flex-shrink:0;align-items:flex-start;justify-content:center;width:57.6px;padding-top:1.25rem;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-left:0 none;border-top-right-radius:8px;border-bottom-right-radius:8px;-webkit-appearance:none;appearance:none}.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 248, 250);border-bottom-color:transparent;border-bottom-right-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 247, 250)}.duet-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(127, 150, 165) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(143, 147, 158) !important}.duet-choice-info-toggle.sc-duet-choice:focus{outline:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.checked.sc-duet-choice+.duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(0, 119, 179) !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(198, 12, 48)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(127, 150, 165)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(143, 147, 158)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}";
|
|
5341
|
+
var messagingInfo={"title":"messaging-info","tags":"messaging info information circle","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z\"/><circle cx=\"11.625\" cy=\"7.125\" r=\"1.125\"/><path d=\"M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z\"/></svg>"};
|
|
5342
|
+
|
|
5343
|
+
const duetChoiceCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(.vertical){margin-right:0 !important}@media (min-width: 48em){:host(.horizontal){margin-bottom:0 !important}}@media (min-width: 48em){:host(.horizontal-responsive){margin-bottom:0 !important;margin-right:16px !important}:host(.horizontal-responsive):last-child,:host(.horizontal-responsive):last-of-type{margin-right:0 !important}}:host(:last-child:not(:only-child)){margin-right:0 !important}.duet-choice-card{position:relative;display:block;width:100%;min-width:8rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:rgb(8, 42, 77) !important;text-align:left;background:rgb(255, 255, 255);border-width:1px;border-radius:8px}.duet-choice-card.duet-p-0{padding:0 !important}.duet-choice-card.duet-m-0{margin:0 !important}.duet-theme-turva .duet-choice-card{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58) !important}.duet-choice-card-flextainer{display:flex}.duet-choice-label{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;gap:12px;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:calc(1rem + 1px);font-size:1rem;font-weight:600;text-decoration:none;word-break:break-word;cursor:pointer;border:1px solid rgb(212, 223, 229);border-radius:8px;transition:background-color 150ms ease, border-color 300ms ease}.duet-choice-label.has-before-text .duet-choice-card-icon,.duet-choice-label.has-before-text .duet-choice-card-text{align-self:flex-start;margin-top:0.25rem}.duet-choice-label>div:last-child{flex:1;align-self:flex-start;justify-self:flex-end;margin-top:0.25rem}.has-info .duet-choice-label{border-top-right-radius:0;border-bottom-right-radius:0}.info .duet-choice-label{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva .duet-choice-label{border-color:rgb(222, 224, 228)}.duet-theme-turva .info .duet-choice-label{border-color:rgb(222, 224, 228)}.duet-choice-label:active{opacity:0.75;transition:none !important}.checked>.duet-choice-label{padding:1rem;background:rgb(240, 247, 250);border-color:rgb(0, 119, 179) !important;border-width:2px}.checked>.duet-choice-label .duet-checkmark-container{border-color:rgb(0, 119, 179)}.duet-theme-turva .checked>.duet-choice-label{background:rgb(245, 247, 250);border-color:rgb(23, 28, 58) !important}.duet-theme-turva .checked>.duet-choice-label .duet-checkmark-container{border-color:rgb(198, 12, 48)}.checked.collapsible>.duet-choice-label,.collapsible-force-expanded.collapsible>.duet-choice-label{padding-bottom:calc(1rem + 2px) !important;border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}:host(:not(.no-hover):not(.disabled):hover)>.duet-choice-card-flextainer .duet-choice-label:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}:host(:not(.no-hover):not(.disabled):hover)>.duet-choice-card-flextainer .duet-choice-label:not(.checked) .duet-checkmark-container{border-color:rgb(127, 150, 165)}.duet-theme-turva :host(:not(.no-hover):not(.disabled):hover)>.duet-choice-card-flextainer .duet-choice-label:not(.checked){border-color:rgb(23, 28, 58)}.duet-theme-turva :host(:not(.no-hover):not(.disabled):hover)>.duet-choice-card-flextainer .duet-choice-label:not(.checked) .duet-checkmark-container{border-color:rgb(143, 147, 158)}.duet-theme-turva .info :host(:not(.no-hover):not(.disabled):hover)>.duet-choice-card-flextainer .duet-choice-label:not(.checked){border-color:rgb(143, 147, 158)}:host(:not(.no-hover):not(.disabled):not([checked]):hover)>.duet-choice-card-flextainer .duet-choice-label:not(.checked){padding:1rem}input:focus{outline:0}:host(.user-is-tabbing) .checked.focus.duet-choice-label{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}:host(.user-is-tabbing) :not(.checked).focus.duet-choice-label{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .checked.focus.duet-choice-label{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}:host(.user-is-tabbing) .duet-theme-turva :not(.checked).focus.duet-choice-label{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.disabled.duet-choice-label{color:rgb(98, 121, 138) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}.disabled.duet-choice-label .duet-choice-card-icon{color:rgb(98, 121, 138)}.duet-theme-turva .disabled.duet-choice-label .duet-choice-card-icon{color:rgb(143, 147, 158)}.disabled.duet-choice-label .duet-checkmark{border-color:rgb(98, 121, 138) !important}.disabled.duet-choice-label:hover,.disabled.duet-choice-label:active,.disabled.duet-choice-label:focus{box-shadow:none !important;opacity:1 !important;transition:none !important}.duet-theme-turva .disabled.duet-choice-label{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-theme-turva .disabled.duet-choice-label .duet-checkmark{border-color:rgb(143, 147, 158) !important}.checked>.disabled.duet-choice-label{border-color:rgb(127, 150, 165) !important}.duet-theme-turva .checked>.disabled.duet-choice-label{border-color:rgb(143, 147, 158) !important}.duet-checkmark-container{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 300ms ease}.duet-theme-turva .duet-checkmark-container{border-color:rgb(143, 147, 158)}.checked>.duet-choice-label .duet-checkmark-container{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva .checked>.duet-choice-label .duet-checkmark-container{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio{border-radius:50%}label.disabled .duet-checkmark-container{background:rgb(181, 198, 208) !important;border-color:rgb(181, 198, 208) !important}.duet-theme-turva label.disabled .duet-checkmark-container{border-color:rgb(199, 202, 207) !important}.checked>label.disabled .duet-checkmark-container{background:rgb(181, 198, 208) !important}.duet-theme-turva .checked>label.disabled .duet-checkmark-container{background:rgb(199, 202, 207) !important;border-color:rgb(199, 202, 207) !important}.duet-checkmark{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon{position:relative;color:rgb(0, 119, 179)}.duet-theme-turva .duet-choice-card-icon{color:rgb(164, 4, 40)}.duet-choice-card-icon duet-icon{display:block}.duet-choice-section-hidden{display:none}.duet-choice-card-info.duet-choice-card-collapsed,.duet-choice-card-collapsed.duet-choice-card-collapsible{position:relative;width:auto;padding:0 !important;background:unset !important;border:0;border-radius:0}.duet-choice-card-info,.duet-choice-card-collapsible{padding:20px !important;position:relative;width:100%;font-weight:400;color:rgb(8, 42, 77);border:1px solid rgb(212, 223, 229);border-top:0;border-radius:0 0 8px 8px;transition:border-color 300ms ease}@media (min-width: 36em){.duet-choice-card-info,.duet-choice-card-collapsible{padding:28px !important}}.duet-theme-turva .duet-choice-card-info,.duet-theme-turva .duet-choice-card-collapsible{color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.checked>.duet-choice-card-info,.checked>.duet-choice-card-collapsible{display:block}.duet-choice-card-info-expanded,.duet-choice-card-collapsible-expanded{display:block}.duet-choice-card-collapsible{background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-top:0}.duet-choice-card-collapsible.duet-theme-turva{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible.checked{padding:19px !important;padding-top:20px !important;border-color:rgb(0, 119, 179);border-width:2px}@media (min-width: 36em){.duet-choice-card-collapsible.checked{padding:27px !important;padding-top:28px !important}}.duet-choice-card-collapsible.checked.duet-theme-turva{border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.checked{border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible-disabled.duet-theme-turva.checked{border-color:rgb(222, 224, 228)}.duet-choice-card-info{font-size:0.875rem;line-height:1.5;background:rgb(245, 248, 250);transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container ::slotted(*){display:none}:host(.user-is-tabbing) .duet-choice-info-container:focus{display:block;outline:none;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.disabled) .duet-choice-card-collapsible{border-color:rgb(127, 150, 165)}:host(.disabled) .duet-choice-card-collapsible.duet-theme-turva{border-color:rgb(143, 147, 158)}:host(:not(.no-hover):not(.disabled):hover)>.duet-choice-card-collapsible:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.duet-theme-turva :host(:not(.no-hover):not(.disabled):hover)>.duet-choice-card-collapsible:not(.checked){border-color:rgb(143, 147, 158)}:host([collapsible-force-expanded]:not(.no-hover):not(.disabled):hover)>.duet-choice-card-collapsible:not(.checked){padding:19px !important;padding-top:20px !important}@media (min-width: 36em){:host([collapsible-force-expanded]:not(.no-hover):not(.disabled):hover)>.duet-choice-card-collapsible:not(.checked){padding:27px !important;padding-top:28px !important}}.duet-choice-info-toggle{display:flex;flex-shrink:0;align-items:flex-start;justify-content:center;width:57.6px;padding-top:1.25rem;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-left:0 none;border-top-right-radius:8px;border-bottom-right-radius:8px;-webkit-appearance:none;appearance:none}.duet-choice-info-toggle[aria-expanded=true]{background:rgb(245, 248, 250);border-bottom-color:transparent;border-bottom-right-radius:0}.duet-theme-turva .duet-choice-info-toggle[aria-expanded=true]{background:rgb(245, 247, 250)}.duet-choice-info-toggle[disabled]{pointer-events:none;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}.duet-choice-info-toggle[disabled] .duet-choice-info-icon{color:rgb(127, 150, 165) !important}.duet-choice-info-toggle[disabled].duet-theme-turva{background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-choice-info-toggle[disabled].duet-theme-turva .duet-choice-info-icon{color:rgb(143, 147, 158) !important}.duet-choice-info-toggle:focus{outline:none}:host(.user-is-tabbing) .duet-choice-info-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-choice-info-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.checked+.duet-choice-info-toggle{border-left-color:rgb(0, 119, 179) !important}.duet-choice-info-toggle duet-icon{display:block}.duet-choice-info-toggle .duet-choice-info-icon{color:rgb(0, 119, 179)}.duet-theme-turva .duet-choice-info-toggle .duet-choice-info-icon{color:rgb(198, 12, 48)}:host(:not(.no-hover):not(.disabled):hover)>.duet-choice-card-flextainer .duet-choice-label .duet-choice-info-toggle{border-left-color:rgb(127, 150, 165)}.duet-theme-turva :host(:not(.no-hover):not(.disabled):hover)>.duet-choice-card-flextainer .duet-choice-label .duet-choice-info-toggle{border-left-color:rgb(143, 147, 158)}.duet-choice-input,*::slotted([slot=choiceradioinput]){position:absolute !important;width:100%;height:100%;opacity:0}";
|
|
5342
5344
|
var DuetChoiceStyle0 = duetChoiceCss;
|
|
5343
5345
|
|
|
5344
5346
|
/**
|
|
@@ -5362,6 +5364,58 @@ class DuetChoice {
|
|
|
5362
5364
|
this.expandId = createID("DuetChoiceExpand");
|
|
5363
5365
|
this.headerId = createID("DuetChoiceHeader");
|
|
5364
5366
|
this.infoButtonId = createID("DuetChoiceInfoButton");
|
|
5367
|
+
this.radioInputListenersRemove = radioInput => {
|
|
5368
|
+
radioInput.removeEventListener("change", this.onChange);
|
|
5369
|
+
radioInput.removeEventListener("keydown", this.handleKeyDown);
|
|
5370
|
+
radioInput.removeEventListener("focus", this.onFocus);
|
|
5371
|
+
radioInput.removeEventListener("blur", this.onBlur);
|
|
5372
|
+
};
|
|
5373
|
+
this.radioInputListenersAdd = radioInput => {
|
|
5374
|
+
radioInput.addEventListener("change", this.onChange);
|
|
5375
|
+
radioInput.addEventListener("keydown", this.handleKeyDown);
|
|
5376
|
+
radioInput.addEventListener("focus", this.onFocus);
|
|
5377
|
+
radioInput.addEventListener("blur", this.onBlur);
|
|
5378
|
+
};
|
|
5379
|
+
this.radioInputSetUp = () => {
|
|
5380
|
+
const slotInput = this.element.querySelector("input[slot=choiceradioinput]");
|
|
5381
|
+
const radioInput = slotInput || document.createElement("input");
|
|
5382
|
+
radioInput.slot = "choiceradioinput";
|
|
5383
|
+
radioInput.disabled = this.getDisabled();
|
|
5384
|
+
radioInput.id = this.identifier || this.choiceId;
|
|
5385
|
+
radioInput.type = "radio";
|
|
5386
|
+
radioInput.name = this.name;
|
|
5387
|
+
radioInput.value = this.value;
|
|
5388
|
+
radioInput.checked = this.checked;
|
|
5389
|
+
radioInput.required = this.required;
|
|
5390
|
+
radioInput.ariaDescription = this.accessibleDescription;
|
|
5391
|
+
if (this.accessibleControls) {
|
|
5392
|
+
radioInput.setAttribute("aria-controls", this.accessibleControls);
|
|
5393
|
+
}
|
|
5394
|
+
if (this.accessibleActiveDescendant) {
|
|
5395
|
+
radioInput.setAttribute("aria-activedescendant", this.accessibleActiveDescendant);
|
|
5396
|
+
}
|
|
5397
|
+
if (this.accessibleLabelledBy) {
|
|
5398
|
+
radioInput.setAttribute("aria-labelledby", this.accessibleLabelledBy);
|
|
5399
|
+
}
|
|
5400
|
+
if (this.accessibleDetails) {
|
|
5401
|
+
radioInput.setAttribute("aria-details", this.accessibleDetails);
|
|
5402
|
+
}
|
|
5403
|
+
if (this.accessibleOwns) {
|
|
5404
|
+
radioInput.setAttribute("aria-owns", this.accessibleOwns);
|
|
5405
|
+
}
|
|
5406
|
+
if (this.getAriaDescribedby()) {
|
|
5407
|
+
radioInput.setAttribute("aria-describedby", this.getAriaDescribedby());
|
|
5408
|
+
}
|
|
5409
|
+
radioInput.ariaLabel = this.getLabel();
|
|
5410
|
+
if (slotInput) {
|
|
5411
|
+
this.radioInputListenersRemove(radioInput);
|
|
5412
|
+
}
|
|
5413
|
+
else {
|
|
5414
|
+
this.element.appendChild(radioInput);
|
|
5415
|
+
}
|
|
5416
|
+
this.radioInputListenersAdd(radioInput);
|
|
5417
|
+
this.focusableElement = radioInput;
|
|
5418
|
+
};
|
|
5365
5419
|
/**
|
|
5366
5420
|
* Component event handling.
|
|
5367
5421
|
*/
|
|
@@ -5383,7 +5437,9 @@ class DuetChoice {
|
|
|
5383
5437
|
}
|
|
5384
5438
|
};
|
|
5385
5439
|
this.onChange = () => {
|
|
5386
|
-
|
|
5440
|
+
const input = this.focusableElement;
|
|
5441
|
+
const inputChecked = input.checked;
|
|
5442
|
+
this.checked = inputChecked;
|
|
5387
5443
|
this.duetChange.emit({
|
|
5388
5444
|
checked: this.checked,
|
|
5389
5445
|
value: this.value,
|
|
@@ -5391,6 +5447,7 @@ class DuetChoice {
|
|
|
5391
5447
|
});
|
|
5392
5448
|
};
|
|
5393
5449
|
this.onBlur = (ev) => {
|
|
5450
|
+
this.focus = false;
|
|
5394
5451
|
this.duetBlur.emit({
|
|
5395
5452
|
originalEvent: ev,
|
|
5396
5453
|
checked: this.checked,
|
|
@@ -5399,6 +5456,7 @@ class DuetChoice {
|
|
|
5399
5456
|
});
|
|
5400
5457
|
};
|
|
5401
5458
|
this.onFocus = (ev) => {
|
|
5459
|
+
this.focus = true;
|
|
5402
5460
|
this.duetFocus.emit({
|
|
5403
5461
|
originalEvent: ev,
|
|
5404
5462
|
checked: this.checked,
|
|
@@ -5437,6 +5495,7 @@ class DuetChoice {
|
|
|
5437
5495
|
}, 150);
|
|
5438
5496
|
}
|
|
5439
5497
|
};
|
|
5498
|
+
this.focus = false;
|
|
5440
5499
|
this.isHovering = false;
|
|
5441
5500
|
this.isInfoOpen = false;
|
|
5442
5501
|
this.theme = "";
|
|
@@ -5501,6 +5560,11 @@ class DuetChoice {
|
|
|
5501
5560
|
subscribeTabbingChange(this);
|
|
5502
5561
|
this.duetChoiceReady.emit();
|
|
5503
5562
|
}
|
|
5563
|
+
componentDidRender() {
|
|
5564
|
+
if (this.type === "radio") {
|
|
5565
|
+
this.radioInputSetUp();
|
|
5566
|
+
}
|
|
5567
|
+
}
|
|
5504
5568
|
disconnectedCallback() {
|
|
5505
5569
|
disconnectLanguageChangeObserver(this);
|
|
5506
5570
|
unsubscribeTabbingChange(this);
|
|
@@ -5511,7 +5575,7 @@ class DuetChoice {
|
|
|
5511
5575
|
* `input.focus()`.
|
|
5512
5576
|
*/
|
|
5513
5577
|
async setFocus(options) {
|
|
5514
|
-
this.
|
|
5578
|
+
this.focusableElement.focus(options);
|
|
5515
5579
|
}
|
|
5516
5580
|
/**
|
|
5517
5581
|
* This method toggles the info section.
|
|
@@ -5588,19 +5652,68 @@ class DuetChoice {
|
|
|
5588
5652
|
"duet-choice-default-slot": true,
|
|
5589
5653
|
};
|
|
5590
5654
|
}
|
|
5655
|
+
getLabel() {
|
|
5656
|
+
let slotLabel = "";
|
|
5657
|
+
let slotBeforeText = "";
|
|
5658
|
+
let slotAdditional = "";
|
|
5659
|
+
if (this.hasLabel) {
|
|
5660
|
+
const slotContent = getElementsFromNamedSlot(this.element, "label");
|
|
5661
|
+
slotLabel = slotContent.length > 0 ? slotContent[0].textContent : "";
|
|
5662
|
+
}
|
|
5663
|
+
if (this.hasBeforeText) {
|
|
5664
|
+
const slotContent = getElementsFromNamedSlot(this.element, "before-text");
|
|
5665
|
+
slotBeforeText = slotContent.length > 0 ? slotContent[0].textContent : "";
|
|
5666
|
+
}
|
|
5667
|
+
if (this.hasAdditional) {
|
|
5668
|
+
const slotContent = getElementsFromNamedSlot(this.element, "additional");
|
|
5669
|
+
slotAdditional = slotContent.length > 0 ? slotContent[0].textContent : "";
|
|
5670
|
+
}
|
|
5671
|
+
return `${slotBeforeText} ${this.hasLabel ? slotLabel : this.label} ${this.caption} ${slotAdditional}`;
|
|
5672
|
+
}
|
|
5591
5673
|
/**
|
|
5592
5674
|
* render() function
|
|
5593
5675
|
* Always the last one in the class.
|
|
5594
5676
|
*/
|
|
5595
5677
|
render() {
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5678
|
+
const identifier = this.identifier || this.choiceId;
|
|
5679
|
+
return (hAsync(Host, { key: '769363c98f975c9f2881acdc911ba2cd28c36351', class: {
|
|
5680
|
+
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
5681
|
+
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
5682
|
+
"duet-m-0": this.margin === "none",
|
|
5683
|
+
"duet-expand": this.expand,
|
|
5684
|
+
"duet-theme-turva": this.theme === "turva",
|
|
5685
|
+
"no-hover": this.isHovering,
|
|
5686
|
+
disabled: this.getDisabled(),
|
|
5687
|
+
} }, hAsync("div", { key: '93dea4566ff9694947713e14e172c338ae0c8d8c', class: {
|
|
5688
|
+
"duet-choice-card-flextainer": true,
|
|
5689
|
+
"duet-theme-turva": this.theme === "turva",
|
|
5690
|
+
} }, hAsync("div", { key: '846c05b6a685ecba8be08d1c7bad60165452d98f', class: {
|
|
5691
|
+
"duet-choice-card": true,
|
|
5692
|
+
"has-icon": !!this.icon,
|
|
5693
|
+
"has-info": this.hasInfo,
|
|
5694
|
+
checked: this.checked,
|
|
5695
|
+
info: this.isInfoOpen,
|
|
5696
|
+
collapsible: this.collapsible,
|
|
5697
|
+
"collapsible-force-expanded": this.collapsibleForceExpanded,
|
|
5698
|
+
"duet-p-0": this.padding === "none",
|
|
5699
|
+
} }, this.type === "checkbox" && (hAsync("input", { key: '033d896b5949802ed8031f649e5f82d438a59014', class: "duet-choice-input", type: this.type, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, disabled: this.getDisabled(), required: this.required, id: identifier, name: this.name, value: this.value, checked: this.checked, "aria-label": this.getLabel(), "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedby(), onKeyDown: this.handleKeyDown, ref: input => (this.focusableElement = input) })), hAsync("slot", { key: 'c9f2bf88993e31592ea467c16858bb8a57ac5e56', name: "choiceradioinput" }), hAsync("label", { key: 'e038f367106ffd8712a0908d65d125b5f285a916', class: {
|
|
5700
|
+
"duet-choice-label": true,
|
|
5701
|
+
"has-before-text": this.hasBeforeText,
|
|
5702
|
+
checked: this.checked,
|
|
5703
|
+
focus: this.focus,
|
|
5704
|
+
disabled: this.getDisabled(),
|
|
5705
|
+
}, onClick: this.onClick }, this.hasBeforeText && hAsync("slot", { key: '1b19e1fa3fcf5a3a3e16f5330a513adff661798e', name: "before-text" }), this.icon && (hAsync("div", { key: 'cf7b7dba99cf4c93a0af8348841a548a0e4153aa', class: "duet-choice-card-icon" }, hAsync("duet-icon", { key: '3adb65bb97bad88b84472b408c2c7582ad3e6012', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), hAsync("div", { key: '8a85581545676b925ca39c614876f3cebb5553c4', class: "duet-choice-card-text" }, hAsync("div", { key: '4baf1c808b3a8946f63cd5d64c135f29387910a1' }, this.hasLabel ? hAsync("slot", { name: "label" }) : this.label), this.caption && (hAsync("div", { key: 'd4d2e94b379c242853047e92b8ef3d02358d47ab' }, hAsync("duet-spacer", { key: 'cb761b10de1afba742bcfb83cfcd0885e09d4da2', size: "xx-small" }), hAsync("duet-caption", { key: 'f4238edc949718154d77c4a465d515b4eaeae3df', margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (hAsync("div", { key: 'e932cefc8acedea9b152c66d50bbe591be8cf04d' }, hAsync("duet-spacer", { key: '1ea7940f74edb2bb99405091097530836c0412eb', size: "xx-small" }), hAsync("slot", { key: '63fc4d2ad4a0f5d14666ff703ad4defaf2e950ed', name: "additional" })))), hAsync("div", { key: '9ca502e4e6929ed03c09818909b708e6174392c9' }, hAsync("div", { key: 'e2ec3f18108f7be37e7d38a3a8a6b7126ac37367', class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && hAsync("div", { key: 'aed8333ed8fcc374095721d94a070fec03761d47', class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (hAsync("button", { key: '209184ed7ae21002ff718c2efce27aa498db02d3', ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
|
|
5706
|
+
"duet-choice-info-toggle": true,
|
|
5707
|
+
"duet-theme-turva": this.theme === "turva",
|
|
5708
|
+
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.getDisabled(), "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button", onKeyUp: e => this.handleEscape(e) }, hAsync("div", { key: 'eb76ae734893e6c9375d63a7ce73283437c3bf40', class: "duet-choice-info-icon" }, hAsync("duet-icon", { key: '21eaedd36a86a68b74ccd1420dbe838f1e23d4f0', icon: messagingInfo.svg, margin: "none", size: "small", color: "currentColor" }))))), this.collapsible && (hAsync("span", { key: 'a681b8c754aa3d6e24a70f95bf7d7c6bf7d31f5c', id: `${this.choiceId}-collapsible-notification`, hidden: true }, this.collapsibleNotification)), this.collapsible || this.hasInfo ? (hAsync("div", { class: this.getClassNames(), id: this.expandId }, hAsync("span", { class: {
|
|
5709
|
+
"duet-choice-section-visible": this.collapsible ? this.getExpanded() : this.isInfoOpen,
|
|
5710
|
+
"duet-choice-section-hidden": this.collapsible ? !this.getExpanded() : !this.isInfoOpen,
|
|
5711
|
+
} }, hAsync("span", { id: this.headerId }, hAsync("slot", { name: "header" })), this.hasInfo ? (hAsync("span", { ref: span => (this.infoContainer = span), tabindex: "0", class: "duet-choice-info-container", onKeyUp: e => this.handleEscape(e) }, hAsync("span", null, hAsync("slot", { name: "info" })), hAsync("slot", null))) : (hAsync("span", { id: `${this.choiceId}-collapsible-content` }, hAsync("slot", null)))))) : null));
|
|
5599
5712
|
}
|
|
5600
5713
|
get element() { return getElement(this); }
|
|
5601
5714
|
static get style() { return DuetChoiceStyle0; }
|
|
5602
5715
|
static get cmpMeta() { return {
|
|
5603
|
-
"$flags$":
|
|
5716
|
+
"$flags$": 9,
|
|
5604
5717
|
"$tagName$": "duet-choice",
|
|
5605
5718
|
"$members$": {
|
|
5606
5719
|
"theme": [1025],
|
|
@@ -5635,6 +5748,7 @@ class DuetChoice {
|
|
|
5635
5748
|
"infoLabel": [1025, "info-label"],
|
|
5636
5749
|
"collapsibleNotificationDefaults": [1, "accessible-collapsible-notification-default"],
|
|
5637
5750
|
"collapsibleNotification": [1025, "collapsible-notification"],
|
|
5751
|
+
"focus": [32],
|
|
5638
5752
|
"isHovering": [32],
|
|
5639
5753
|
"isInfoOpen": [32],
|
|
5640
5754
|
"setFocus": [64],
|
|
@@ -5646,7 +5760,7 @@ class DuetChoice {
|
|
|
5646
5760
|
}; }
|
|
5647
5761
|
}
|
|
5648
5762
|
|
|
5649
|
-
const duetChoiceGroupCss = "
|
|
5763
|
+
const duetChoiceGroupCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}:host(.horizontal) .duet-choice-group{display:block;margin-bottom:-12px}:host(.horizontal) .duet-choice-group.duet-no-stacking{display:flex}@media (min-width: 48em){:host(.horizontal) .duet-choice-group{margin-bottom:0}}@media (max-width: 35.9375em){:host(.horizontal) .duet-choice-group{display:flex}}:host(.horizontal.duet-choice-group-breakpoint-x-small) .duet-choice-group:not(.duet-no-stacking){display:flex}@media (max-width: 22.5em){:host(.horizontal.duet-choice-group-breakpoint-x-small) .duet-choice-group:not(.duet-no-stacking){display:block}}:host(.horizontal.duet-choice-group-breakpoint-small) .duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 36em){:host(.horizontal.duet-choice-group-breakpoint-small) .duet-choice-group:not(.duet-no-stacking){display:flex}}:host(.horizontal.duet-choice-group-breakpoint-medium) .duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 48em){:host(.horizontal.duet-choice-group-breakpoint-medium) .duet-choice-group:not(.duet-no-stacking){display:flex}}:host(.horizontal.duet-choice-group-breakpoint-large) .duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 62em){:host(.horizontal.duet-choice-group-breakpoint-large) .duet-choice-group:not(.duet-no-stacking){display:flex}}:host(.horizontal.duet-choice-group-breakpoint-x-large) .duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 64.0625em){:host(.horizontal.duet-choice-group-breakpoint-x-large) .duet-choice-group:not(.duet-no-stacking){display:flex}}.duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";
|
|
5650
5764
|
var DuetChoiceGroupStyle0 = duetChoiceGroupCss;
|
|
5651
5765
|
|
|
5652
5766
|
/**
|
|
@@ -5765,9 +5879,14 @@ class DuetChoiceGroup {
|
|
|
5765
5879
|
* Always the last one in the class.
|
|
5766
5880
|
*/
|
|
5767
5881
|
render() {
|
|
5768
|
-
{
|
|
5769
|
-
|
|
5770
|
-
|
|
5882
|
+
return (hAsync(Host, { key: '0f05e4491b0ed604ed36ad5a20755a183f219e61', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, onDuetChoiceRemove: this.onChoiceRemove, class: {
|
|
5883
|
+
horizontal: this.direction === "horizontal",
|
|
5884
|
+
"duet-choice-group-breakpoint-x-small": this.responsive && this.breakpoint === "x-small",
|
|
5885
|
+
"duet-choice-group-breakpoint-small": this.responsive && this.breakpoint === "small",
|
|
5886
|
+
"duet-choice-group-breakpoint-medium": this.responsive && this.breakpoint === "medium",
|
|
5887
|
+
"duet-choice-group-breakpoint-large": this.responsive && this.breakpoint === "large",
|
|
5888
|
+
"duet-choice-group-breakpoint-x-large": this.responsive && this.breakpoint === "x-large",
|
|
5889
|
+
} }, hAsync("duet-fieldset", { key: 'c6b16eb32fa18224f1fca5450a1a00609ee0800c', label: this.label, labelHidden: this.labelHidden, compactLabel: true, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (hAsync("duet-tooltip", { key: '23ea892920b10486ec2ff7dc5c6893d4f4b58028', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '6f067a2d955d9a60728e5f8746650480d5719491', name: "tooltip" }), hAsync("div", { key: 'e3bfaa0355f3eb50844f4e5a47dc02d0816380e2', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: '8af6ad42073f04162bf0f7482e9987e1f386e7b5' })))));
|
|
5771
5890
|
}
|
|
5772
5891
|
get element() { return getElement(this); }
|
|
5773
5892
|
static get watchers() { return {
|
|
@@ -5779,7 +5898,7 @@ class DuetChoiceGroup {
|
|
|
5779
5898
|
}; }
|
|
5780
5899
|
static get style() { return DuetChoiceGroupStyle0; }
|
|
5781
5900
|
static get cmpMeta() { return {
|
|
5782
|
-
"$flags$":
|
|
5901
|
+
"$flags$": 9,
|
|
5783
5902
|
"$tagName$": "duet-choice-group",
|
|
5784
5903
|
"$members$": {
|
|
5785
5904
|
"direction": [1],
|
|
@@ -6658,14 +6777,14 @@ class DuetCollapsible {
|
|
|
6658
6777
|
*/
|
|
6659
6778
|
render() {
|
|
6660
6779
|
const HeadingTagName = this.headingLevel ? sanitizeString$1(this.headingLevel) : "div";
|
|
6661
|
-
return (hAsync(Host, { key: '
|
|
6780
|
+
return (hAsync(Host, { key: 'e75871cb9a6fd0f3050c22c4ac9059c8daa8c2ca', class: { "duet-m-0": this.margin === "none", negative: this.negative } }, hAsync(HeadingTagName, { key: '4b9571caa365df133f607952f427d5f2662a61d6' }, hAsync("button", { key: '29f111d38aeac967f9ef9e2696fe0da79b07210c', class: {
|
|
6662
6781
|
"duet-collapsible-heading": true,
|
|
6663
6782
|
"duet-collapsible-heading-centered": this.centerHeading,
|
|
6664
6783
|
"duet-theme-turva": this.theme === "turva",
|
|
6665
6784
|
"duet-collapsible-normal-weight": this.headingWeight === "normal",
|
|
6666
6785
|
"has-after-heading": this.hasAfterHeading,
|
|
6667
6786
|
"full-width": this.headingFullWidth,
|
|
6668
|
-
}, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", ref: button => (this.nativeButton = button), "aria-label": this.accessibleLabel, "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, hAsync("div", { key: '
|
|
6787
|
+
}, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", ref: button => (this.nativeButton = button), "aria-label": this.accessibleLabel, "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, hAsync("div", { key: 'f22a73bf54b611968e8e9ecfac22c4a5d912942a', class: "duet-collapsible-heading-icon" }, hAsync("duet-icon", { key: '3f1706b22520ee9e1856ba3d9bd8f4e04a026e20', margin: "none", size: this.getEquivalentIconSize(), icon: actionArrowDownSmall.svg })), hAsync("div", { key: '88b89faf977d753d6d53f838d986b6ec567ed8e3', class: "duet-collapsible-heading-content", part: "duet-collapsible-heading-content" }, this.heading), this.hasAfterHeading && (hAsync("div", { key: '97304f5806f809b1d7e86306b60901ce96df2f8e', part: "duet-collapsible-after-heading" }, hAsync("slot", { key: '0d37e9e85c477aa0f4b3f0f9b7209b429c917bd6', name: "after-heading" }))))), hAsync("div", { key: 'cc27c3dca50171f016f3a0991a67f07334223f9b', id: this.id, class: { "duet-collapsible-content": true, "duet-theme-turva": this.theme === "turva" }, part: "duet-collapsible-content" }, hAsync("slot", { key: 'b17cc5907e981ea030f3a070e6cad046e15af55c' }))));
|
|
6669
6788
|
}
|
|
6670
6789
|
get element() { return getElement(this); }
|
|
6671
6790
|
static get style() { return DuetCollapsibleStyle0; }
|
|
@@ -6692,7 +6811,7 @@ class DuetCollapsible {
|
|
|
6692
6811
|
}; }
|
|
6693
6812
|
}
|
|
6694
6813
|
|
|
6695
|
-
const duetComboboxCss = "
|
|
6814
|
+
const duetComboboxCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(8, 42, 77)}:host a{color:rgb(8, 42, 77);transition:none}:host.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}:host.duet-theme-turva a{color:rgb(23, 28, 58)}.combobox-menu-container{width:var(--popup-width);max-height:200px}";
|
|
6696
6815
|
var DuetComboboxStyle0 = duetComboboxCss;
|
|
6697
6816
|
|
|
6698
6817
|
class DuetCombobox {
|
|
@@ -7209,7 +7328,7 @@ class DuetCombobox {
|
|
|
7209
7328
|
}; }
|
|
7210
7329
|
static get style() { return DuetComboboxStyle0; }
|
|
7211
7330
|
static get cmpMeta() { return {
|
|
7212
|
-
"$flags$":
|
|
7331
|
+
"$flags$": 9,
|
|
7213
7332
|
"$tagName$": "duet-combobox",
|
|
7214
7333
|
"$members$": {
|
|
7215
7334
|
"accessibleLabelDefaults": [1, "accessible-label-defaults"],
|
|
@@ -7283,10 +7402,10 @@ class DuetContactCard {
|
|
|
7283
7402
|
render() {
|
|
7284
7403
|
const isTurva = this.theme === "turva";
|
|
7285
7404
|
const theme = isTurva ? "turva" : "default";
|
|
7286
|
-
return (hAsync(Host, { key: '
|
|
7405
|
+
return (hAsync(Host, { key: 'ee161f82ee10fff2c20d0a1710bad6af28d693f4', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: 'b9252238696889b1c15f9c7ade693f7e0d28c5da', class: {
|
|
7287
7406
|
"duet-contact-card": true,
|
|
7288
7407
|
"duet-theme-turva": this.theme === "turva",
|
|
7289
|
-
}, role: "group", "aria-label": this.name }, this.image ? hAsync("img", { class: "image", src: this.image, alt: this.name }) : hAsync("div", null), hAsync("div", { key: '
|
|
7408
|
+
}, role: "group", "aria-label": this.name }, this.image ? hAsync("img", { class: "image", src: this.image, alt: this.name }) : hAsync("div", null), hAsync("div", { key: 'c9575adf25010f58a30f297b89355cf1c404a03e' }, this.name && (hAsync("duet-heading", { key: '2158805949358fd34db41c0b182c384ea19e7691', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (hAsync("duet-paragraph", { key: 'f9372c59121b55e6247515dba14f557fd73a0c80', class: "description", margin: "none", theme: theme }, this.description)), this.email && (hAsync("div", { key: 'abf9dfb8a80916d11a756d51556f17d63ff3ccb1', class: "email" }, hAsync("duet-icon", { key: '8ed9a810ce0a6523541e1f25221d6c0efbe04dfe', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: 'ebe066f4492bf29aa08c0ad4e7bffc3bc33da31d', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (hAsync("div", { key: '95d380ceee42f69a6ed0f9d1c611a32a71fce355', class: "phone" }, hAsync("duet-icon", { key: '785043c08e6fca93a358f385b4fe1a9fe52ce74b', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: '3f798fe2fb406091faadec2e72b7da3ccced7b83', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (hAsync("div", { key: '603dc620090b067f6798a117df506ba244163f3a', class: "call-to-action" }, hAsync("duet-button", { key: '585f7cf08e0620af3af47ef41436a90d75aa48bd', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), hAsync("div", { key: 'f9c5a90f43159f6349b09b515bb9b75fc06bb7d3' }), hAsync("slot", { key: 'aac7d0d9a759305ef4986cc11ce446f191f72133' }))));
|
|
7290
7409
|
}
|
|
7291
7410
|
get element() { return getElement(this); }
|
|
7292
7411
|
static get style() { return DuetContactCardStyle0; }
|
|
@@ -7353,7 +7472,7 @@ class DuetCookieConsent {
|
|
|
7353
7472
|
* Always the last one in the class.
|
|
7354
7473
|
*/
|
|
7355
7474
|
render() {
|
|
7356
|
-
return (hAsync(Host, { key: '
|
|
7475
|
+
return (hAsync(Host, { key: '61cde7dad29f6806c3bf5f598897ebab55a50c2c', tabindex: "0", class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: 'acb59a9600f655eb3c485a7334dd078c03f82f56', class: { "duet-cookie-consent": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: '5d1eb2561aef70174bb1ca9d11e44ae2d743a13a', class: "duet-cookie-consent-content" }, hAsync("div", { key: 'ef24cb4ba0672188c6216da4007746b52fa46526', class: "expand" }, hAsync("slot", { key: '7e170fcdf30814f4308ae952a2236e67b5fecf2e' })), hAsync("duet-spacer", { key: '3155cd41922ea15d6543243292651832b353461f', size: "large", direction: "horizontal" }), hAsync("div", { key: 'e6578866cc2ea81852778c514eb5c04f766a2dcc' }, hAsync("duet-button", { key: 'dae7a5c4b619f93d19fbc3e72e0c782fbef9550f', variation: "negative", size: "small", onClick: this.handleClick, margin: "none", "aria-label": this.accessibleLabel, theme: this.theme }, "OK"))))));
|
|
7357
7476
|
}
|
|
7358
7477
|
get element() { return getElement(this); }
|
|
7359
7478
|
static get style() { return DuetCookieConsentStyle0; }
|
|
@@ -7382,6 +7501,131 @@ const FocusGuard = ({ moveFocusTo }) => {
|
|
|
7382
7501
|
return hAsync("div", { class: "duet-focus-guard", "aria-hidden": "true", tabIndex: 0, onFocus: () => focusElement(moveFocusTo) });
|
|
7383
7502
|
};
|
|
7384
7503
|
|
|
7504
|
+
const formatOptionsShort = { day: "numeric", month: "long", weekday: "long" };
|
|
7505
|
+
const formatOptionsLong = { day: "numeric", month: "long", year: "numeric" };
|
|
7506
|
+
const i18n$2 = {
|
|
7507
|
+
fi: {
|
|
7508
|
+
buttonLabel: "Valitse päivämäärä",
|
|
7509
|
+
prevMonthLabel: "Edellinen kuukausi",
|
|
7510
|
+
nextMonthLabel: "Seuraava kuukausi",
|
|
7511
|
+
monthSelectLabel: "Kuukausi",
|
|
7512
|
+
yearSelectLabel: "Vuosi",
|
|
7513
|
+
closeLabel: "Sulje ikkuna",
|
|
7514
|
+
selected: "Valittu päivämäärä on",
|
|
7515
|
+
keyboardInstruction: "Voit navigoida päivämääriä nuolinäppäimillä",
|
|
7516
|
+
dayLabels: ["Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai", "Sunnuntai"],
|
|
7517
|
+
monthLabels: [
|
|
7518
|
+
"Tammikuu",
|
|
7519
|
+
"Helmikuu",
|
|
7520
|
+
"Maaliskuu",
|
|
7521
|
+
"Huhtikuu",
|
|
7522
|
+
"Toukokuu",
|
|
7523
|
+
"Kesäkuu",
|
|
7524
|
+
"Heinäkuu",
|
|
7525
|
+
"Elokuu",
|
|
7526
|
+
"Syyskuu",
|
|
7527
|
+
"Lokakuu",
|
|
7528
|
+
"Marraskuu",
|
|
7529
|
+
"Joulukuu",
|
|
7530
|
+
],
|
|
7531
|
+
monthLabelsShort: [
|
|
7532
|
+
"Tammi",
|
|
7533
|
+
"Helmi",
|
|
7534
|
+
"Maalis",
|
|
7535
|
+
"Huhti",
|
|
7536
|
+
"Touko",
|
|
7537
|
+
"Kesä",
|
|
7538
|
+
"Heinä",
|
|
7539
|
+
"Elo",
|
|
7540
|
+
"Syys",
|
|
7541
|
+
"Loka",
|
|
7542
|
+
"Marras",
|
|
7543
|
+
"Joulu",
|
|
7544
|
+
],
|
|
7545
|
+
formatterShort: new Intl.DateTimeFormat("fi-FI", formatOptionsShort),
|
|
7546
|
+
formatterLong: new Intl.DateTimeFormat("fi-FI", formatOptionsLong),
|
|
7547
|
+
},
|
|
7548
|
+
en: {
|
|
7549
|
+
buttonLabel: "Choose date",
|
|
7550
|
+
prevMonthLabel: "Previous month",
|
|
7551
|
+
nextMonthLabel: "Next month",
|
|
7552
|
+
monthSelectLabel: "Month",
|
|
7553
|
+
yearSelectLabel: "Year",
|
|
7554
|
+
closeLabel: "Close window",
|
|
7555
|
+
selected: "Selected date is",
|
|
7556
|
+
keyboardInstruction: "You can use arrow keys to navigate dates",
|
|
7557
|
+
dayLabels: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
|
|
7558
|
+
monthLabels: [
|
|
7559
|
+
"January",
|
|
7560
|
+
"February",
|
|
7561
|
+
"March",
|
|
7562
|
+
"April",
|
|
7563
|
+
"May",
|
|
7564
|
+
"June",
|
|
7565
|
+
"July",
|
|
7566
|
+
"August",
|
|
7567
|
+
"September",
|
|
7568
|
+
"October",
|
|
7569
|
+
"November",
|
|
7570
|
+
"December",
|
|
7571
|
+
],
|
|
7572
|
+
monthLabelsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
7573
|
+
formatterShort: new Intl.DateTimeFormat("en-GB", formatOptionsShort),
|
|
7574
|
+
formatterLong: new Intl.DateTimeFormat("en-GB", formatOptionsLong),
|
|
7575
|
+
},
|
|
7576
|
+
sv: {
|
|
7577
|
+
buttonLabel: "Välj datum",
|
|
7578
|
+
prevMonthLabel: "Föregående månad",
|
|
7579
|
+
nextMonthLabel: "Nästa månad",
|
|
7580
|
+
monthSelectLabel: "Månad",
|
|
7581
|
+
yearSelectLabel: "År",
|
|
7582
|
+
closeLabel: "Stäng fönstret",
|
|
7583
|
+
selected: "Valt datum är",
|
|
7584
|
+
keyboardInstruction: "Använd piltangenterna för att navigera i kalender",
|
|
7585
|
+
dayLabels: ["Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag", "Söndag"],
|
|
7586
|
+
monthLabels: [
|
|
7587
|
+
"Januari",
|
|
7588
|
+
"Februari",
|
|
7589
|
+
"Mars",
|
|
7590
|
+
"April",
|
|
7591
|
+
"Maj",
|
|
7592
|
+
"Juni",
|
|
7593
|
+
"Juli",
|
|
7594
|
+
"Augusti",
|
|
7595
|
+
"September",
|
|
7596
|
+
"Oktober",
|
|
7597
|
+
"November",
|
|
7598
|
+
"December",
|
|
7599
|
+
],
|
|
7600
|
+
monthLabelsShort: ["Jan", "Feb", "Mars", "April", "Maj", "Juni", "Juli", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
|
7601
|
+
formatterShort: new Intl.DateTimeFormat("sv-SE", formatOptionsShort),
|
|
7602
|
+
formatterLong: new Intl.DateTimeFormat("sv-SE", formatOptionsLong),
|
|
7603
|
+
},
|
|
7604
|
+
};
|
|
7605
|
+
|
|
7606
|
+
var formDate={"title":"form-date","tags":"form date calendar date picker","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M2.25 24A2.252 2.252 0 0 1 0 21.75V5.25A2.252 2.252 0 0 1 2.25 3H6V.75a.75.75 0 0 1 1.5 0V3h9V.75a.75.75 0 0 1 1.5 0V3h3.75A2.252 2.252 0 0 1 24 5.25v16.5A2.252 2.252 0 0 1 21.75 24zm-.75-2.25c0 .414.336.75.75.75h19.5a.75.75 0 0 0 .75-.75V10.5h-21zM22.5 9V5.25a.75.75 0 0 0-.75-.75H18V6a.75.75 0 0 1-1.5 0V4.5h-9V6A.75.75 0 0 1 6 6V4.5H2.25a.75.75 0 0 0-.75.75V9z\"/><circle cx=\"5.625\" cy=\"13.875\" r=\"1.125\"/><circle cx=\"5.625\" cy=\"19.125\" r=\"1.125\"/><circle cx=\"12\" cy=\"13.875\" r=\"1.125\"/><circle cx=\"12\" cy=\"19.125\" r=\"1.125\"/><circle cx=\"18.375\" cy=\"13.875\" r=\"1.125\"/><path d=\"M18.375 20.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.171-1.122l.027.003a1.118 1.118 0 0 1 1.052 1.12c0 .619-.505 1.124-1.125 1.124z\"/></svg>"};
|
|
7607
|
+
|
|
7608
|
+
const DatePickerInput = ({ onClick, placeholder, inputLabel, valueAsDate, formattedValue, language, identifier, theme, disabled, error, role, required, tooltip, tooltipDirection, labelHidden, buttonRef, inputRef, onInput, onBlur, onFocus, hasFocus, accessibleActiveDescendant, accessibleControls, accessibleOwns, accessibleDescribedBy, accessibleLiveError, echoPlaceholder, caption, }) => {
|
|
7609
|
+
const { buttonLabel, selected, formatterLong } = i18n$2[language];
|
|
7610
|
+
const classes = {
|
|
7611
|
+
"duet-theme-turva": theme === "turva",
|
|
7612
|
+
"duet-date-input": true,
|
|
7613
|
+
"duet-date-input-has-focus": hasFocus,
|
|
7614
|
+
};
|
|
7615
|
+
return (hAsync("div", { class: classes },
|
|
7616
|
+
hAsync("duet-input", { label: inputLabel, value: formattedValue, placeholder: placeholder, id: identifier, disabled: disabled, theme: theme, error: error, role: role, required: required, tooltip: tooltip, tooltipDirection: tooltipDirection, margin: "none", labelHidden: labelHidden, accessibleAutocomplete: "none", onDuetChange: e => e.stopImmediatePropagation(), onDuetInput: onInput, onDuetFocus: onFocus, onDuetBlur: onBlur, autoComplete: "off", disallowPattern: "[^0-9\\.\\-\\/]", expand: true, ref: inputRef, accessibleActiveDescendant: accessibleActiveDescendant, accessibleControls: accessibleControls, accessibleOwns: accessibleOwns, accessibleDescribedBy: accessibleDescribedBy, accessibleLiveError: accessibleLiveError, echoPlaceholder: echoPlaceholder, caption: caption, variation: "button" },
|
|
7617
|
+
hAsync("slot", { name: "tooltip" }),
|
|
7618
|
+
hAsync("button", { class: { "duet-date-button": true, "duet-no-label": labelHidden, "input-error": !!error }, onClick: onClick, disabled: disabled, ref: buttonRef, type: "button", slot: "button" },
|
|
7619
|
+
hAsync("duet-icon", { icon: formDate.svg, margin: "none", size: "small", color: "currentColor" }),
|
|
7620
|
+
hAsync("duet-visually-hidden", null,
|
|
7621
|
+
buttonLabel,
|
|
7622
|
+
valueAsDate && (hAsync("span", null,
|
|
7623
|
+
", ",
|
|
7624
|
+
selected,
|
|
7625
|
+
" ",
|
|
7626
|
+
formatterLong.format(valueAsDate))))))));
|
|
7627
|
+
};
|
|
7628
|
+
|
|
7385
7629
|
const DATE_FORMAT = /^(\d{1,2})[\.\-\/](\d{1,2})[\.\-\/](\d{4})$/;
|
|
7386
7630
|
const ISO_DATE_FORMAT = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
7387
7631
|
const DATE_OUTPUT_FORMAT = "dd.mm.yyyy";
|
|
@@ -7524,6 +7768,44 @@ function clamp$2(date, min, max) {
|
|
|
7524
7768
|
}
|
|
7525
7769
|
return date;
|
|
7526
7770
|
}
|
|
7771
|
+
/**
|
|
7772
|
+
* given start and end date, return an (inclusive) array of all dates in between
|
|
7773
|
+
* @param start
|
|
7774
|
+
* @param end
|
|
7775
|
+
*/
|
|
7776
|
+
function getDaysInRange(start, end) {
|
|
7777
|
+
const days = [];
|
|
7778
|
+
let current = start;
|
|
7779
|
+
while (!isEqual(current, end)) {
|
|
7780
|
+
days.push(current);
|
|
7781
|
+
current = addDays(current, 1);
|
|
7782
|
+
}
|
|
7783
|
+
days.push(current);
|
|
7784
|
+
return days;
|
|
7785
|
+
}
|
|
7786
|
+
/**
|
|
7787
|
+
* given a date, return an array of dates from a calendar perspective
|
|
7788
|
+
* @param date
|
|
7789
|
+
* @param firstDayOfWeek
|
|
7790
|
+
*/
|
|
7791
|
+
function getViewOfMonth(date, firstDayOfWeek = 1) {
|
|
7792
|
+
const start = startOfWeek(startOfMonth(date), firstDayOfWeek);
|
|
7793
|
+
const end = endOfWeek(endOfMonth(date), firstDayOfWeek);
|
|
7794
|
+
return getDaysInRange(start, end);
|
|
7795
|
+
}
|
|
7796
|
+
|
|
7797
|
+
const DatePickerDay = ({ focusedDay, today, day, language, onDaySelect, onKeyboardNavigation, ref, inRange, isSelected, }) => {
|
|
7798
|
+
const isToday = isEqual(day, today);
|
|
7799
|
+
const isFocused = isEqual(day, focusedDay);
|
|
7800
|
+
const isDisabled = day.getMonth() !== focusedDay.getMonth();
|
|
7801
|
+
const isOutsideRange = !inRange;
|
|
7802
|
+
const { formatterShort } = i18n$2[language];
|
|
7803
|
+
function handleClick(e) {
|
|
7804
|
+
onDaySelect(e, day);
|
|
7805
|
+
}
|
|
7806
|
+
return (hAsync("td", { "data-day": printISODate(day), class: "duet-date-table-cell", "aria-label": formatterShort.format(day), role: "button", tabIndex: isFocused ? 0 : -1, onClick: handleClick, onKeyDown: onKeyboardNavigation, "aria-disabled": isOutsideRange || isDisabled, "aria-pressed": isSelected ? "true" : "false", ref: ref },
|
|
7807
|
+
hAsync("span", { class: { "duet-date-table-button": true, outside: isOutsideRange, disabled: isDisabled, today: isToday } }, day.getDate())));
|
|
7808
|
+
};
|
|
7527
7809
|
|
|
7528
7810
|
/**
|
|
7529
7811
|
* Creates an array representing an inclusive numeric range.
|
|
@@ -7531,6 +7813,25 @@ function clamp$2(date, min, max) {
|
|
|
7531
7813
|
* @param from
|
|
7532
7814
|
* @param to
|
|
7533
7815
|
*/
|
|
7816
|
+
function range(from, to) {
|
|
7817
|
+
var result = [];
|
|
7818
|
+
for (var i = from; i <= to; i++) {
|
|
7819
|
+
result.push(i);
|
|
7820
|
+
}
|
|
7821
|
+
return result;
|
|
7822
|
+
}
|
|
7823
|
+
/**
|
|
7824
|
+
* Splits an array into smaller arrays of given chunk size
|
|
7825
|
+
* @param array
|
|
7826
|
+
* @param chunkSize
|
|
7827
|
+
*/
|
|
7828
|
+
function chunk(array, chunkSize) {
|
|
7829
|
+
const result = [];
|
|
7830
|
+
for (let i = 0; i < array.length; i += chunkSize) {
|
|
7831
|
+
result.push(array.slice(i, i + chunkSize));
|
|
7832
|
+
}
|
|
7833
|
+
return result;
|
|
7834
|
+
}
|
|
7534
7835
|
function parseShortcut(str) {
|
|
7535
7836
|
var _a;
|
|
7536
7837
|
const press = str.trim().split("+");
|
|
@@ -7565,7 +7866,32 @@ function createShortcuts(shortcuts) {
|
|
|
7565
7866
|
};
|
|
7566
7867
|
}
|
|
7567
7868
|
|
|
7568
|
-
const duetDatePickerCss = "*.sc-duet-date-picker,*.sc-duet-date-picker::after,*.sc-duet-date-picker::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-date-picker-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:top}.sc-duet-date-picker-h:last-child,.sc-duet-date-picker-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-date-picker-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-date-picker-h{width:100% !important}.duet-m-0.sc-duet-date-picker-h{margin:0 !important}.duet-date.sc-duet-date-picker{position:relative;width:100%}.duet-date.sc-duet-date-picker button.sc-duet-date-picker,.duet-date-dialog.sc-duet-date-picker button.sc-duet-date-picker{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button.sc-duet-date-picker{-webkit-user-select:none;user-select:none;position:relative;z-index:200;box-sizing:content-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;width:47px;height:48px;color:rgb(8, 42, 77);cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-left-color:rgb(181, 198, 208);border-radius:0 4px 4px 0;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker{color:rgb(23, 28, 58);border-color:rgb(199, 202, 207)}.duet-date-button.sc-duet-date-picker::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:\"\";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-date-button.sc-duet-date-picker:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.duet-date-button.sc-duet-date-picker:disabled{pointer-events:none;cursor:not-allowed;background:rgb(245, 248, 250) !important;border:0 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:disabled{background:rgb(245, 247, 250) !important}.duet-date-button.sc-duet-date-picker:disabled::before{display:none}.duet-date-button.sc-duet-date-picker:disabled duet-icon.sc-duet-date-picker{opacity:0.4}.duet-date-button.sc-duet-date-picker duet-icon.sc-duet-date-picker{transform:translateY(-1px)}.duet-date-button.sc-duet-date-picker:active duet-icon.sc-duet-date-picker{transform:translateY(0)}.duet-date-input-has-focus.sc-duet-date-picker .duet-date-button.sc-duet-date-picker,.duet-date-button.sc-duet-date-picker:focus{height:46px;color:rgb(0, 119, 179);border-color:transparent;outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-input-has-focus.sc-duet-date-picker .duet-date-button.sc-duet-date-picker,.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px #171c3a !important}.input-error.sc-duet-date-picker{border-top-color:rgb(214, 28, 82);border-right-color:rgb(214, 28, 82);border-bottom-color:rgb(214, 28, 82)}.duet-date-dialog.sc-duet-date-picker{position:absolute;top:100%;left:0;z-index:900;display:flex;width:100%;visibility:hidden;opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}@media (min-width: 36em){.duet-date-dialog.left.sc-duet-date-picker{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog.sc-duet-date-picker{position:fixed;top:0;right:0;bottom:0;transition:opacity 400ms ease, visibility 400ms ease;transform:translateZ(0);transform-origin:bottom center}}.duet-date-dialog.active.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}@media (min-width: 36em){.duet-date-dialog.error.sc-duet-date-picker{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper.sc-duet-date-picker{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{border-color:rgb(222, 224, 228)}@media (max-width: 35.9375em){.duet-date-dialog-wrapper.sc-duet-date-picker{position:absolute;bottom:0;left:0;z-index:900;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;visibility:hidden;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;transform:translateZ(0) translateY(100%)}.active.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:translateZ(0) translateY(0)}}.duet-date-table.sc-duet-date-picker{width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.duet-theme-turva.sc-duet-date-picker{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-date-table.sc-duet-date-picker th.sc-duet-date-picker{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-decoration:none;text-transform:uppercase;letter-spacing:1px}.duet-date-table.sc-duet-date-picker .duet-date-table-cell.sc-duet-date-picker{text-align:center}.duet-date-table.sc-duet-date-picker .duet-date-table-cell.sc-duet-date-picker:focus{outline:none}.duet-date-table-button.sc-duet-date-picker{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:2.6 !important;color:rgb(8, 42, 77) !important;text-align:center;vertical-align:initial !important;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;color:rgb(23, 28, 58) !important}.duet-date-table-button.sc-duet-date-picker:hover{background:rgb(228, 241, 247) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:hover{background:rgb(255, 227, 228) !important}.duet-date-table-button.today.sc-duet-date-picker{z-index:200;color:rgb(0, 75, 129) !important;background:rgb(240, 247, 250) !important;box-shadow:0 0 0 1px #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.today.sc-duet-date-picker{color:rgb(126, 2, 35) !important;background:rgb(255, 241, 241) !important;box-shadow:0 0 0 1px #171c3a !important}[aria-pressed=true].sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker,.sc-duet-date-picker:focus .duet-date-table-button.sc-duet-date-picker{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;outline:0}.duet-theme-turva.sc-duet-date-picker [aria-pressed=true].sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker,.duet-theme-turva.sc-duet-date-picker .sc-duet-date-picker:focus .duet-date-table-button.sc-duet-date-picker{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}.duet-date-table-button.sc-duet-date-picker:active{z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important;box-shadow:0 0 5px 0 #171c3a !important}.sc-duet-date-picker:focus .duet-date-table-button.sc-duet-date-picker{z-index:200;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .sc-duet-date-picker:focus .duet-date-table-button.sc-duet-date-picker{box-shadow:0 0 5px 0 #171c3a !important}.duet-date-table-button.disabled.sc-duet-date-picker{color:rgb(127, 150, 165) !important;cursor:default;background:transparent !important;box-shadow:none !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.disabled.sc-duet-date-picker{color:rgb(143, 147, 158) !important;background:transparent !important;box-shadow:none !important}.duet-date-table-button.outside.sc-duet-date-picker{color:rgb(127, 150, 165) !important;pointer-events:none;cursor:default;background:rgb(245, 248, 250) !important;box-shadow:none;opacity:0.75}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.outside.sc-duet-date-picker{color:rgb(143, 147, 158);background:rgb(245, 247, 250);box-shadow:none}.duet-date-dialog-header.sc-duet-date-picker{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons.sc-duet-date-picker{white-space:nowrap}.duet-date-dialog-buttons.sc-duet-date-picker .sc-duet-date-picker::part(button){border:0}.duet-date-dialog-select.sc-duet-date-picker{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1.25rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);pointer-events:none;border-radius:4px}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-date-dialog-select.sc-duet-date-picker span.sc-duet-date-picker{margin-right:4px}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px #171c3a !important}.duet-date-dialog-mobile-header.sc-duet-date-picker{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid rgb(181, 198, 208)}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-mobile-header.sc-duet-date-picker{border-color:rgb(199, 202, 207)}.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:none}}.duet-date-picker-close.sc-duet-date-picker{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:rgb(8, 42, 77) !important;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker{opacity:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker{background:rgb(245, 247, 250) !important}.duet-date-picker-close.sc-duet-date-picker:hover{background:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:hover{background:rgb(245, 247, 250) !important}.duet-date-picker-close.sc-duet-date-picker:focus{outline:none;box-shadow:0 0 0 2px #0077b3 !important}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker:focus{opacity:1}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:focus{box-shadow:0 0 0 2px #171c3a !important}";
|
|
7869
|
+
const DatePickerMonth = ({ selectedDate, focusedDate, labelledById, theme, language, min, max, onDateSelect, onKeyboardNavigation, focusedDayRef, onFocusEnter, onFocusExit, }) => {
|
|
7870
|
+
const { dayLabels } = i18n$2[language];
|
|
7871
|
+
const today = new Date();
|
|
7872
|
+
const days = getViewOfMonth(focusedDate);
|
|
7873
|
+
function handleFocusOut(e) {
|
|
7874
|
+
const table = e.currentTarget;
|
|
7875
|
+
const relatedTarget = e.relatedTarget;
|
|
7876
|
+
if (relatedTarget && !table.contains(relatedTarget)) {
|
|
7877
|
+
onFocusExit(e);
|
|
7878
|
+
}
|
|
7879
|
+
}
|
|
7880
|
+
return (hAsync("div", { role: "application" },
|
|
7881
|
+
hAsync("table", { role: "presentation", class: { "duet-date-table": true, "duet-theme-turva": theme === "turva" }, "aria-labelledby": labelledById,
|
|
7882
|
+
// @ts-ignore
|
|
7883
|
+
onFocusin: onFocusEnter, onFocusout: handleFocusOut },
|
|
7884
|
+
hAsync("thead", null,
|
|
7885
|
+
hAsync("tr", null, dayLabels.map(label => (hAsync("th", { scope: "col" },
|
|
7886
|
+
hAsync("span", { "aria-hidden": "true" }, label.substr(0, 2))))))),
|
|
7887
|
+
hAsync("tbody", null, chunk(days, 7).map(week => (hAsync("tr", { class: "duet-date-table-row" }, week.map(day => (hAsync(DatePickerDay, { day: day, today: today, language: language, focusedDay: focusedDate, inRange: inRange(day, min, max), isSelected: isEqual(day, selectedDate), onDaySelect: onDateSelect, onKeyboardNavigation: onKeyboardNavigation, ref: el => {
|
|
7888
|
+
if (el && isEqual(day, focusedDate)) {
|
|
7889
|
+
focusedDayRef(el);
|
|
7890
|
+
}
|
|
7891
|
+
} }))))))))));
|
|
7892
|
+
};
|
|
7893
|
+
|
|
7894
|
+
const duetDatePickerCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:top}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-date{position:relative;width:100%}.duet-date button,.duet-date-dialog button{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button{-webkit-user-select:none;user-select:none;position:relative;z-index:200;box-sizing:content-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;width:47px;height:48px;color:rgb(8, 42, 77);cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-left-color:rgb(181, 198, 208);border-radius:0 4px 4px 0;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-theme-turva .duet-date-button{color:rgb(23, 28, 58);border-color:rgb(199, 202, 207)}.duet-date-button::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:\"\";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-date-button:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva .duet-date-button:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.duet-date-button:disabled{pointer-events:none;cursor:not-allowed;background:rgb(245, 248, 250) !important;border:0 !important}.duet-theme-turva .duet-date-button:disabled{background:rgb(245, 247, 250) !important}.duet-date-button:disabled::before{display:none}.duet-date-button:disabled duet-icon{opacity:0.4}.duet-date-button duet-icon{transform:translateY(-1px)}.duet-date-button:active duet-icon{transform:translateY(0)}.duet-date-input-has-focus .duet-date-button,.duet-date-button:focus{height:46px;color:rgb(0, 119, 179);border-color:transparent;outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .duet-date-input-has-focus .duet-date-button,.duet-theme-turva .duet-date-button:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px #171c3a !important}.input-error{border-top-color:rgb(214, 28, 82);border-right-color:rgb(214, 28, 82);border-bottom-color:rgb(214, 28, 82)}.duet-date-dialog{position:absolute;top:100%;left:0;z-index:900;display:flex;width:100%;visibility:hidden;opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}@media (min-width: 36em){.duet-date-dialog.left{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog{position:fixed;top:0;right:0;bottom:0;transition:opacity 400ms ease, visibility 400ms ease;transform:translateZ(0);transform-origin:bottom center}}.duet-date-dialog.active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}@media (min-width: 36em){.duet-date-dialog.error{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva .duet-date-dialog-wrapper{border-color:rgb(222, 224, 228)}@media (max-width: 35.9375em){.duet-date-dialog-wrapper{position:absolute;bottom:0;left:0;z-index:900;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;visibility:hidden;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;transform:translateZ(0) translateY(100%)}.active .duet-date-dialog-wrapper{visibility:visible;opacity:1;transition-property:transform, opacity;transform:translateZ(0) translateY(0)}}.duet-date-table{width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-date-table th{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-decoration:none;text-transform:uppercase;letter-spacing:1px}.duet-date-table .duet-date-table-cell{text-align:center}.duet-date-table .duet-date-table-cell:focus{outline:none}.duet-date-table-button{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:2.6 !important;color:rgb(8, 42, 77) !important;text-align:center;vertical-align:initial !important;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva .duet-date-table-button{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;color:rgb(23, 28, 58) !important}.duet-date-table-button:hover{background:rgb(228, 241, 247) !important}.duet-theme-turva .duet-date-table-button:hover{background:rgb(255, 227, 228) !important}.duet-date-table-button.today{z-index:200;color:rgb(0, 75, 129) !important;background:rgb(240, 247, 250) !important;box-shadow:0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-date-table-button.today{color:rgb(126, 2, 35) !important;background:rgb(255, 241, 241) !important;box-shadow:0 0 0 1px #171c3a !important}[aria-pressed=true] .duet-date-table-button,:focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;outline:0}.duet-theme-turva [aria-pressed=true] .duet-date-table-button,.duet-theme-turva :focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}.duet-date-table-button:active{z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important;box-shadow:0 0 5px 0 #171c3a !important}:focus .duet-date-table-button{z-index:200;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva :focus .duet-date-table-button{box-shadow:0 0 5px 0 #171c3a !important}.duet-date-table-button.disabled{color:rgb(127, 150, 165) !important;cursor:default;background:transparent !important;box-shadow:none !important}.duet-theme-turva .duet-date-table-button.disabled{color:rgb(143, 147, 158) !important;background:transparent !important;box-shadow:none !important}.duet-date-table-button.outside{color:rgb(127, 150, 165) !important;pointer-events:none;cursor:default;background:rgb(245, 248, 250) !important;box-shadow:none;opacity:0.75}.duet-theme-turva .duet-date-table-button.outside{color:rgb(143, 147, 158);background:rgb(245, 247, 250);box-shadow:none}.duet-date-dialog-header{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons{white-space:nowrap}.duet-date-dialog-buttons ::part(button){border:0}.duet-date-dialog-select{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select .duet-date-dialog-select-label{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1.25rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);pointer-events:none;border-radius:4px}.duet-theme-turva .duet-date-dialog-select .duet-date-dialog-select-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-date-dialog-select span{margin-right:4px}.duet-date-dialog-select select{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select select:focus+.duet-date-dialog-select-label{box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .duet-date-dialog-select select:focus+.duet-date-dialog-select-label{box-shadow:0 0 0 2px #171c3a !important}.duet-date-dialog-mobile-header{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid rgb(181, 198, 208)}@media (min-width: 36em){.duet-date-dialog-mobile-header{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva .duet-date-dialog-mobile-header{border-color:rgb(199, 202, 207)}.duet-date-dialog-mobile-header duet-label{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header duet-label{display:none}}.duet-date-picker-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:rgb(8, 42, 77) !important;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-date-picker-close{opacity:0}}.duet-theme-turva .duet-date-picker-close{background:rgb(245, 247, 250) !important}.duet-date-picker-close:hover{background:rgb(245, 248, 250) !important}.duet-theme-turva .duet-date-picker-close:hover{background:rgb(245, 247, 250) !important}.duet-date-picker-close:focus{outline:none;box-shadow:0 0 0 2px #0077b3 !important}@media (min-width: 36em){.duet-date-picker-close:focus{opacity:1}}.duet-theme-turva .duet-date-picker-close:focus{box-shadow:0 0 0 2px #171c3a !important}";
|
|
7569
7895
|
var DuetDatePickerStyle0 = duetDatePickerCss;
|
|
7570
7896
|
|
|
7571
7897
|
/**
|
|
@@ -7577,6 +7903,7 @@ class DuetDatePicker {
|
|
|
7577
7903
|
this.duetChange = createEvent$2(this, "duetChange", 7);
|
|
7578
7904
|
this.duetBlur = createEvent$2(this, "duetBlur", 7);
|
|
7579
7905
|
this.duetFocus = createEvent$2(this, "duetFocus", 7);
|
|
7906
|
+
this.proxyId = createID("DuetDatePicker");
|
|
7580
7907
|
this.monthSelectId = createID("DuetDatePicker");
|
|
7581
7908
|
this.yearSelectId = createID("DuetDatePicker");
|
|
7582
7909
|
this.dialogLabelId = createID("DuetDatePicker");
|
|
@@ -7811,6 +8138,8 @@ class DuetDatePicker {
|
|
|
7811
8138
|
break;
|
|
7812
8139
|
}
|
|
7813
8140
|
}
|
|
8141
|
+
componentDidRender() {
|
|
8142
|
+
}
|
|
7814
8143
|
connectedCallback() {
|
|
7815
8144
|
connectLanguageChangeObserver(this, { prop: "placeholder", defaults: "placeholderDefaults" });
|
|
7816
8145
|
}
|
|
@@ -7931,9 +8260,30 @@ class DuetDatePicker {
|
|
|
7931
8260
|
* Always the last one in the class.
|
|
7932
8261
|
*/
|
|
7933
8262
|
render() {
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
8263
|
+
const valueAsDate = parseISODate(this.value);
|
|
8264
|
+
const selectedYear = (valueAsDate || this.focusedDay).getFullYear();
|
|
8265
|
+
const focusedMonth = this.focusedDay.getMonth();
|
|
8266
|
+
const focusedYear = this.focusedDay.getFullYear();
|
|
8267
|
+
const text = i18n$2[this.language];
|
|
8268
|
+
const minDate = parseISODate(this.min);
|
|
8269
|
+
const maxDate = parseISODate(this.max);
|
|
8270
|
+
const prevMonthDisabled = minDate != null && minDate.getMonth() === focusedMonth && minDate.getFullYear() === focusedYear;
|
|
8271
|
+
const nextMonthDisabled = maxDate != null && maxDate.getMonth() === focusedMonth && maxDate.getFullYear() === focusedYear;
|
|
8272
|
+
let minYear = selectedYear - this.incrementYears;
|
|
8273
|
+
let maxYear = selectedYear + this.incrementYears;
|
|
8274
|
+
if (minDate) {
|
|
8275
|
+
minYear = Math.max(minYear, minDate.getFullYear());
|
|
8276
|
+
}
|
|
8277
|
+
if (maxDate) {
|
|
8278
|
+
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
8279
|
+
}
|
|
8280
|
+
return (hAsync(Host, { key: '48dfac6edc6326788eda85f8bf70bf5b4a0ff4ad', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: 'c3e6cf0d8d6e7ae3e917900e6c0093c53a13a44d', class: "duet-date" }, hAsync(DatePickerInput, { key: 'a440f6697d91cd0d0de2ab2c7c17d595e39bf9ae', 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 || this.internalValidityError || null, 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 })), hAsync("div", { key: '856f8608b56c0a24bc287b35cd6e6edf51b42e1f', class: {
|
|
8281
|
+
"duet-theme-turva": this.theme === "turva",
|
|
8282
|
+
"duet-date-dialog": true,
|
|
8283
|
+
left: this.direction === "left",
|
|
8284
|
+
error: !!this.error,
|
|
8285
|
+
active: this.open,
|
|
8286
|
+
}, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, hAsync("duet-overlay", { key: 'dbfa04c5bf7c3f3982b22597fcad4b1029aa4539', visible: this.open, "display-device": "x-small" }), hAsync(FocusGuard, { key: '443af141eb824070c60ee455ea5dbeec2a37cdb7', moveFocusTo: this.focusedDayNode }), hAsync("div", { key: '107fd0fac02235e7567a3c4c39caa17209a45c29', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, hAsync("duet-visually-hidden", { key: '9cb6d9c06ec92d0d21e7fb0529f3c406ae5b741a', "aria-live": "polite" }, text.keyboardInstruction), hAsync("div", { key: '0752365441e95a42b6e3a17dc81aaa179342e5ca', class: "duet-date-dialog-mobile-header" }, hAsync("duet-label", { key: '6ffc63566ac1bd7484a2dacb2fcce822ce21c3c6', margin: "none" }, this.label), hAsync("button", { key: '248c0904984b9c5a67caf1892357d57e5ce60066', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, hAsync("duet-icon", { key: 'af984cb01089e8d9406c5b6bf0e67d2eeceb3beb', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), hAsync("duet-visually-hidden", { key: 'b8d0f1caeab887aa6b6651dcb193a7fa5525cbb7' }, text.closeLabel))), hAsync("div", { key: 'dd6610096ef2f1c7d7e5d4e0d1fac457362c5faf', class: "duet-date-dialog-header" }, hAsync("div", { key: 'd68c8dea57050c6fa051629f74add64e10cd38be', class: "duet-date-dialog-dropdowns" }, hAsync("duet-visually-hidden", { key: '58909421fde5e46cc2b1373e7e2d9532d6c1a03e' }, hAsync("h2", { key: '612d51f0e60b090a35458d90b0e9866ede633c83', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), hAsync("duet-visually-hidden", { key: 'b2463d984236267298af6c391d215c89f28c6488' }, hAsync("label", { key: '42e90c9b899b24cc40ac4c84e71a2c1d65043f51', htmlFor: this.monthSelectId }, text.monthSelectLabel)), hAsync("div", { key: '6d721a0d53346e15ce27eadc9eead200c7919610', class: "duet-date-dialog-select" }, hAsync("select", { key: '87df3cd45d626c59170b2f3874af646db4977c70', id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (hAsync("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), hAsync("div", { key: 'eec62361035a4a7da7e473b35c83da7602db752b', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: 'ec536ccf980e51e293a7e6eea022761c447fdbc1' }, text.monthLabelsShort[focusedMonth]), hAsync("duet-icon", { key: 'f1a8731882be82bc403d1eb52575895255322d6f', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), hAsync("duet-visually-hidden", { key: '00a216897e04d308ce5750c8fa70e22e1ccc8138' }, hAsync("label", { key: '5ba713a95d1b746651a9d76bc0039373dfbeaa4d', htmlFor: this.yearSelectId }, text.yearSelectLabel)), hAsync("div", { key: '22dd0678e259984875717419a12860953b95cfb5', class: "duet-date-dialog-select" }, hAsync("select", { key: 'd78d55d784a66a3add24104426f3bcc0a8b0d22b', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (hAsync("option", { key: year, selected: year === focusedYear }, year)))), hAsync("div", { key: '7d1ca2d567364c693db485929b0730e2d260c7ca', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: '2757b9f9910c6f2e1f7fb8b3d3adc65333bb679f' }, this.focusedDay.getFullYear()), hAsync("duet-icon", { key: 'dc068d24ccf9116a5c2e76e3bbdea7c356eb8eee', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), hAsync("div", { key: '34b00c0ca21c0d748927721b8ee5d1b830e1ce3a', class: "duet-date-dialog-buttons" }, hAsync("duet-action-button", { key: '1afdaac3260fc7c94c8a138b44f3aa608ea1b59d', accessibleLabel: i18n$2[this.language].prevMonthLabel, actionName: i18n$2[this.language].prevMonthLabel, class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel), hAsync("duet-action-button", { key: 'c2bef35e310c1ccc274ee52e17dcf790c4c3eb99', accessibleLabel: i18n$2[this.language].nextMonthLabel, actionName: i18n$2[this.language].nextMonthLabel, class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))), hAsync(DatePickerMonth, { key: 'a2f57b6196e1ee4ac2f53ed81b484622a49297dc', 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 })), hAsync(FocusGuard, { key: 'be87303e8ba3831c94e72a8d07ca967ce35604a6', moveFocusTo: this.closeButtonNode }))));
|
|
7937
8287
|
}
|
|
7938
8288
|
get element() { return getElement(this); }
|
|
7939
8289
|
static get watchers() { return {
|
|
@@ -7944,7 +8294,7 @@ class DuetDatePicker {
|
|
|
7944
8294
|
}; }
|
|
7945
8295
|
static get style() { return DuetDatePickerStyle0; }
|
|
7946
8296
|
static get cmpMeta() { return {
|
|
7947
|
-
"$flags$":
|
|
8297
|
+
"$flags$": 9,
|
|
7948
8298
|
"$tagName$": "duet-date-picker",
|
|
7949
8299
|
"$members$": {
|
|
7950
8300
|
"theme": [1025],
|
|
@@ -8013,7 +8363,7 @@ class DuetDivider {
|
|
|
8013
8363
|
*/
|
|
8014
8364
|
render() {
|
|
8015
8365
|
const background = getColorByName(this.color);
|
|
8016
|
-
return (hAsync("div", { key: '
|
|
8366
|
+
return (hAsync("div", { key: 'c2cc3db06f08c31c90b7038ebaa32159765ae737', class: {
|
|
8017
8367
|
"duet-m-0": this.margin === "none",
|
|
8018
8368
|
"duet-m-s": this.margin === "small",
|
|
8019
8369
|
"duet-divider": true,
|
|
@@ -8250,11 +8600,11 @@ class DuetEmptyState {
|
|
|
8250
8600
|
* Always the last one in the class.
|
|
8251
8601
|
*/
|
|
8252
8602
|
render() {
|
|
8253
|
-
return (hAsync(Host, { key: '
|
|
8603
|
+
return (hAsync(Host, { key: 'de95b8dde0a1b050210be7afc24bbd534f0cfc1a' }, hAsync("div", { key: '2dde668c5bed949f10a84abb1e6108dabb5e12e8', class: {
|
|
8254
8604
|
"duet-empty-state": true,
|
|
8255
8605
|
"duet-theme-turva": this.theme === "turva",
|
|
8256
8606
|
"duet-is-small": this.size === "small",
|
|
8257
|
-
} }, hAsync("duet-icon", { key: '
|
|
8607
|
+
} }, hAsync("duet-icon", { key: '0341402760ee9f9417e6c4716ac79831f4b2ef48', color: "currentColor", name: this.icon, size: this.size === "small" ? "large" : "x-large" }), hAsync("div", { key: '782e28c5c025f7f3aa7839d2fae882b0f159b2e8' }, hAsync("slot", { key: 'fb7d4c425c9680cf0ea95048e16db7b566932941' })))));
|
|
8258
8608
|
}
|
|
8259
8609
|
get element() { return getElement(this); }
|
|
8260
8610
|
static get style() { return DuetEmptyStateStyle0; }
|
|
@@ -8310,20 +8660,20 @@ class DuetFieldset {
|
|
|
8310
8660
|
* Always the last one in the class.
|
|
8311
8661
|
*/
|
|
8312
8662
|
render() {
|
|
8313
|
-
return (hAsync(Host, { key: '
|
|
8663
|
+
return (hAsync(Host, { key: 'ca59865ca0d6db9d10c70462818e285ec3208184', class: { "duet-m-0": this.margin === "none" } }, hAsync("fieldset", { key: 'c89da8d67c7de257ae9409a4e54ee9812b4cb92b', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
|
|
8314
8664
|
// NVDA and VoiceOver do not yet support aria-errormessage
|
|
8315
8665
|
// once they do, we can remove errors from the aria-describedby
|
|
8316
8666
|
// aria-errormessage={this.error ? this.errorId : null}
|
|
8317
8667
|
class: {
|
|
8318
8668
|
"duet-fieldset": true,
|
|
8319
8669
|
"duet-theme-turva": this.theme === "turva",
|
|
8320
|
-
} }, hAsync("legend", { key: '
|
|
8670
|
+
} }, hAsync("legend", { key: '036a03b77941dff9d7efc20417d373d71cc34ba3', id: this.labelId }, hAsync(this.labelHeadingLevel, { key: 'cd0adcfea05900fd897c22362412a95c513b49e3' }, this.label), this.caption && hAsync("span", { key: 'e10e9aab722d8171c79153380e4560f9ef3516e9' }, this.caption)), hAsync("div", { key: '065decf08a99464352cd821eb3163a0ac558f026', class: {
|
|
8321
8671
|
"duet-legend-wrapper": true,
|
|
8322
8672
|
"duet-legend-has-caption": !!this.caption,
|
|
8323
8673
|
"duet-legend-has-tooltip": this.hasTooltip,
|
|
8324
8674
|
"duet-legend-hidden": this.labelHidden,
|
|
8325
8675
|
"duet-legend-compact": this.compactLabel,
|
|
8326
|
-
} }, hAsync("div", { key: '
|
|
8676
|
+
} }, hAsync("div", { key: 'e9ac0900cc8d721eb1e4b5e1be879c82e6e7f10c', class: "duet-fieldset-label" }, hAsync("span", { key: '6c688a2ce71f8c756c42a9d4a9cf9405a1d89d12', "aria-hidden": "true" }, this.label), hAsync("slot", { key: '7607eb09fce89802192ce8bcc0b7cf0ade619077', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (hAsync("div", { key: '31677e80e585af8afa52abbe06f932e4a997bf77', class: "duet-fieldset-caption", "aria-hidden": "true" }, hAsync("duet-caption", { key: '46c3ed5a36d278084b31f59a6dfaa823e302dd8c', theme: this.theme, margin: "none" }, this.caption)))), hAsync("slot", { key: '3b3227842435c8e6e6a646b32add95d18a7abad1' }), hAsync("span", { key: '6b5656824bc1faabfe1519667e1e148b19703b02', class: "duet-fieldset-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'f3399d78309f6caa9b62608e7e090b0684e1d012' }, this.error)))));
|
|
8327
8677
|
}
|
|
8328
8678
|
get element() { return getElement(this); }
|
|
8329
8679
|
static get style() { return DuetFieldsetStyle0; }
|
|
@@ -8467,15 +8817,15 @@ class DuetFooter {
|
|
|
8467
8817
|
render() {
|
|
8468
8818
|
const text = getLocaleString(i18n$1, this.language);
|
|
8469
8819
|
const copyrightLabel = this.theme === "turva" ? text.turva : text.lahi;
|
|
8470
|
-
return (hAsync("footer", { key: '
|
|
8820
|
+
return (hAsync("footer", { key: '984434597100f2619e70f0fb78942e03971633ba', class: {
|
|
8471
8821
|
"duet-footer": true,
|
|
8472
8822
|
"duet-m-0": this.margin === "none",
|
|
8473
8823
|
"duet-theme-turva": this.theme === "turva",
|
|
8474
8824
|
"duet-footer-simple": this.variation === "simple",
|
|
8475
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
8825
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '54916b84623acfa5541d9c4fd744405251657f4c', class: "duet-footer-wrapper" }, this.variation !== "simple" && (hAsync("div", { key: '1750f3f4dfdc27ca09ad5aeb8109bda2bd05ec77', class: {
|
|
8476
8826
|
"duet-footer-top": true,
|
|
8477
8827
|
"duet-has-info": this.hasInfoSlot,
|
|
8478
|
-
}, part: "top" }, hAsync("div", { key: '
|
|
8828
|
+
}, part: "top" }, hAsync("div", { key: 'bb9d1aca77e745616b992c4c298987db3c17aea7', class: "footer-top-logo" }, hAsync("duet-logo", { key: '6e7b06875f6fbe9c37ee62e55e998ed3a21a8721', href: this.logoHref, onClick: this.handleLogoClick, size: "large", inverse: true, language: this.language, theme: this.theme })), hAsync("div", { key: '21c24e081d8345e51e292e294a185ad6823e2353', class: "footer-top-right-container" }, hAsync("slot", { key: '5432347d10fd601d8d676c3228f0695370f96db6', name: "info" }), hAsync("div", { key: '27d2b49fdac1ab15bebcce259432bc8d9827a02d', class: "footer-top-items" }, this.processedItems &&
|
|
8479
8829
|
this.processedItems.map((item, index) => {
|
|
8480
8830
|
var _a, _b, _c, _d, _e, _f;
|
|
8481
8831
|
return (hAsync(Fragment, null, index > 0 && hAsync("duet-spacer", { size: "x-large", direction: "horizontal" }), hAsync("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: ((_a = item.href) === null || _a === void 0 ? void 0 : _a.startsWith("tel:"))
|
|
@@ -8485,7 +8835,7 @@ class DuetFooter {
|
|
|
8485
8835
|
: "navigation-arrow-right", "icon-right": !((_c = item.href) === null || _c === void 0 ? void 0 : _c.startsWith("tel:")) && !((_d = item.href) === null || _d === void 0 ? void 0 : _d.startsWith("mailto:")), "icon-size": ((_e = item.href) === null || _e === void 0 ? void 0 : _e.startsWith("tel:")) || ((_f = item.href) === null || _f === void 0 ? void 0 : _f.startsWith("mailto:"))
|
|
8486
8836
|
? "medium"
|
|
8487
8837
|
: "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)));
|
|
8488
|
-
}))))), hAsync("slot", { key: '
|
|
8838
|
+
}))))), hAsync("slot", { key: '2d0660ceb4c7f5696d1dddd46506d84ea879ed19', name: "extra" }), hAsync("p", { key: '0c6ad47b06a8db2a3668bcb26a48d8f5e5c0e460', class: "duet-footer-menu", part: "menu" }, hAsync("span", { key: 'e2540585ee767f554113a6f8d796b9ebdeed13ba', class: "duet-footer-copyright" }, `${copyrightLabel} ${new Date().getFullYear()}`), hAsync("span", { key: '8fb63fa6bf02d4876aa2d8a555768a53bf168762', class: "duet-footer-menu-links" }, this.processedMenu && (hAsync(Fragment, { key: '8a21168dfc250e46ca4e16cd302108ca43b51dc2' }, this.processedMenu.map(item => (hAsync("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 && (hAsync(Fragment, null, hAsync("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), hAsync("span", { class: "duet-footer-external" }, hAsync("duet-icon", { icon: actionNewWindowSmall.svg, size: "xx-small", margin: "none", color: "currentColor" })))), hAsync("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")))))))), hAsync("p", { key: 'b0a1683053d60ace83a92a07b2800649d4b976f5', class: "duet-footer-copyright duet-footer-copyright-mobile" }, `${copyrightLabel} ${new Date().getFullYear()}`))));
|
|
8489
8839
|
}
|
|
8490
8840
|
get element() { return getElement(this); }
|
|
8491
8841
|
static get watchers() { return {
|
|
@@ -8689,9 +9039,34 @@ class DuetGrid {
|
|
|
8689
9039
|
* Always the last one in the class.
|
|
8690
9040
|
*/
|
|
8691
9041
|
render() {
|
|
8692
|
-
{
|
|
8693
|
-
|
|
8694
|
-
|
|
9042
|
+
return (hAsync(Host, { key: 'fd65566d78340fbb5446524cb7c18694f40f219e', class: {
|
|
9043
|
+
"duet-grid": true,
|
|
9044
|
+
"duet-no-stacking": !this.responsive,
|
|
9045
|
+
"duet-grid-align-top": this.alignment === "top", // flex-start
|
|
9046
|
+
"duet-grid-align-bottom": this.alignment === "bottom" || this.alignment === "form_distribute", // flex-end
|
|
9047
|
+
"duet-grid-align-center": this.alignment === "center", // center
|
|
9048
|
+
"duet-grid-align-stretch": this.alignment === "stretch", // stretch
|
|
9049
|
+
"duet-grid-align-baseline": this.alignment === "baseline", // baseline
|
|
9050
|
+
"duet-grid-distribution-left": this.distribution === "left", // flex-start
|
|
9051
|
+
"duet-grid-distribution-right": this.distribution === "right", // flex-end
|
|
9052
|
+
"duet-grid-distribution-center": this.distribution === "center", // center
|
|
9053
|
+
"duet-grid-distribution-between": this.distribution === "space-between", // space-between
|
|
9054
|
+
"duet-grid-distribution-around": this.distribution === "space-around", // space-around
|
|
9055
|
+
"duet-grid-distribution-evenly": this.distribution === "space-evenly", // space-evenly
|
|
9056
|
+
"duet-grid-mobile-left": this.mobile === "left",
|
|
9057
|
+
"duet-grid-mobile-center": this.mobile === "center",
|
|
9058
|
+
"duet-grid-mobile-right": this.mobile === "right",
|
|
9059
|
+
"duet-grid-direction-horizontal": this.direction === "horizontal",
|
|
9060
|
+
"duet-grid-direction-vertical": this.direction === "vertical",
|
|
9061
|
+
"duet-grid-breakpoint-x-small": this.breakpoint === "x-small",
|
|
9062
|
+
"duet-grid-breakpoint-small": this.breakpoint === "small",
|
|
9063
|
+
"duet-grid-breakpoint-medium": this.breakpoint === "medium",
|
|
9064
|
+
"duet-grid-breakpoint-large": this.breakpoint === "large",
|
|
9065
|
+
"duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
|
|
9066
|
+
"duet-grid-row-reverse": this.rowReverse,
|
|
9067
|
+
[`duet-grid-variation-${this.gridTemplate ? "grid" : "flex"}`]: true,
|
|
9068
|
+
[`duet-grid-template-${this.gridTemplate}`]: true,
|
|
9069
|
+
} }, hAsync("slot", { key: 'acc5ce23bb2454400755b6dac1f31db22d00877b' })));
|
|
8695
9070
|
}
|
|
8696
9071
|
get element() { return getElement(this); }
|
|
8697
9072
|
static get watchers() { return {
|
|
@@ -8747,9 +9122,24 @@ class DuetGridItem {
|
|
|
8747
9122
|
* Always the last one in the class.
|
|
8748
9123
|
*/
|
|
8749
9124
|
render() {
|
|
8750
|
-
{
|
|
8751
|
-
|
|
8752
|
-
|
|
9125
|
+
return (hAsync(Host, { key: '89acf29883fafc4e79dcb26e288ae0b7540c43a1', style: {
|
|
9126
|
+
"min-width": this.minWidth,
|
|
9127
|
+
"max-width": this.maxWidth,
|
|
9128
|
+
}, class: {
|
|
9129
|
+
"duet-m-0": this.margin === "none",
|
|
9130
|
+
"duet-theme-turva": this.theme === "turva",
|
|
9131
|
+
"duet-grid-item": true,
|
|
9132
|
+
"duet-grid-item-fill": this.fill,
|
|
9133
|
+
"duet-grid-item-responsive": this.responsive,
|
|
9134
|
+
"duet-grid-item-row-reverse": this.rowReverse,
|
|
9135
|
+
"duet-grid-direction-horizontal": this.direction === "horizontal",
|
|
9136
|
+
"duet-grid-direction-vertical": this.direction === "vertical",
|
|
9137
|
+
"duet-grid-item-br-x-small": this.breakpoint === "x-small",
|
|
9138
|
+
"duet-grid-item-br-small": this.breakpoint === "small",
|
|
9139
|
+
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
9140
|
+
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
9141
|
+
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
9142
|
+
} }, hAsync("slot", { key: '44bf045264a1cfe27bd16f2eab6881a2eb7850b6' })));
|
|
8753
9143
|
}
|
|
8754
9144
|
static get style() { return DuetGridItemStyle0; }
|
|
8755
9145
|
static get cmpMeta() { return {
|
|
@@ -9613,7 +10003,7 @@ class DuetHeading {
|
|
|
9613
10003
|
render() {
|
|
9614
10004
|
const TagName = sanitizeString$1(this.level);
|
|
9615
10005
|
const color = getColorByName(this.color);
|
|
9616
|
-
return (hAsync(TagName, { key: '
|
|
10006
|
+
return (hAsync(TagName, { key: 'f606e3e4de6cf69ec6743328d4e9e8bbce5fe66b', class: {
|
|
9617
10007
|
"duet-heading": true,
|
|
9618
10008
|
"duet-heading-border": this.border !== false,
|
|
9619
10009
|
"duet-heading-border-solid": this.border === "solid",
|
|
@@ -9624,7 +10014,7 @@ class DuetHeading {
|
|
|
9624
10014
|
[this.visualLevel ? this.visualLevel : this.level]: true,
|
|
9625
10015
|
"duet-theme-turva": this.theme === "turva",
|
|
9626
10016
|
"fixed-size": this.fixedSize,
|
|
9627
|
-
}, style: { color }, part: "duet-heading" }, hAsync("slot", { key: '
|
|
10017
|
+
}, style: { color }, part: "duet-heading" }, hAsync("slot", { key: '57fe6321051376c1b8dd03ceb22130a79d916745' })));
|
|
9628
10018
|
}
|
|
9629
10019
|
get element() { return getElement(this); }
|
|
9630
10020
|
static get style() { return DuetHeadingStyle0; }
|
|
@@ -9804,7 +10194,7 @@ class DuetHero {
|
|
|
9804
10194
|
outlineColor = "color-primary-turva";
|
|
9805
10195
|
}
|
|
9806
10196
|
}
|
|
9807
|
-
return (hAsync("div", { key: '
|
|
10197
|
+
return (hAsync("div", { key: '0c4038b005e7b453195addcd524b72d6ba2b3f86', role: "region", class: {
|
|
9808
10198
|
"duet-hero": true,
|
|
9809
10199
|
"duet-theme-turva": this.theme === "turva",
|
|
9810
10200
|
"duet-has-category-icon": !!this.categoryIcon,
|
|
@@ -9822,17 +10212,17 @@ class DuetHero {
|
|
|
9822
10212
|
"duet-hero-text-center": (this.textCenter && !this.leftAlign) || campaignOrSection,
|
|
9823
10213
|
"duet-hero-left-align": this.leftAlign && !campaignOrSection,
|
|
9824
10214
|
"duet-hero-narrow": this.layout === "narrow",
|
|
9825
|
-
}, part: "duet-hero" }, campaignOrSection && this.image && (hAsync("div", { key: '
|
|
9826
|
-
this.processedBack && (hAsync("div", { key: '
|
|
10215
|
+
}, part: "duet-hero" }, campaignOrSection && this.image && (hAsync("div", { key: '2cb744f9d21aae8900369096bffd08e271402053', class: "background-area" }, hAsync("div", { key: '9a6c181bff667af0cc99f16896ff702761736e68', class: "background-container" }, hAsync("div", { key: '9d96ddb71b6ff095622a709796aca2c64b30deb2', class: "background" }, hAsync("img", { key: '5c7b3ac41baf0186fc4f63bd9970bf16c2dc74dc', class: `${imageSizeIsCover ? "cover" : ""} ${imagePositionIsCenter ? "center" : ""}`, src: this.image, alt: "", role: "presentation" })), hAsync("div", { key: 'eb4469222c17d13a1fa751cb60da7292dcdf5749', class: "brand-shape" })))), this.variation === "product" && this.image && (hAsync("div", { key: '80278ce211fb2d3085d68ab1cb531d8ea7a01466', class: { "background-area": true, [this.layout]: true } }, hAsync("div", { key: '73d1a5d1e768ae43b2c118c0b8b18e6855a116ab', class: { "background-container": true, [this.layout]: true } }, hAsync("div", { key: 'e65bbd5ad6ee10717273740a1cf5f4f9e55bb069', class: { background: true, [this.layout]: true } }, hAsync("div", { key: '006f31a8ec8a628d32a7a910cfffe9058a314a54', class: { "background-mask": true, [this.layout]: true } }), this.theme !== "turva" && hAsync("div", { key: '655eb93298ed822cec744262497129f5470fdc52', class: { "brand-shape": true, [this.layout]: true } }), hAsync("div", { key: 'fe646994943778c82b885c51ef0486aac015a99a', class: { "brand-shaped-image": true, [this.layout]: true } }, hAsync("div", { key: '685632469ce5465d35954d83b52463421bdfbf20', class: { "brand-shaped-image-wrapper": true, [this.layout]: true } }, hAsync("div", { key: '377041432c9d2ed89fb8d76f9930a5d754464869', class: { "brand-shaped-image-bg": true, [this.layout]: true }, style: styles }))), this.categoryIcon && (hAsync("div", { key: 'c2adf4a16bdc21724bbdbb99353fbb494632ea08', class: { "brand-shaped-icon": true, [this.layout]: true } }, hAsync("duet-icon", { key: 'fa66a3685808028cb23b95c6f509995469cbef1c', class: { [this.layout]: true }, background: "none", name: this.categoryIcon, margin: "none", size: "auto", responsive: false }))))))), this.variation === "content" && this.image && (hAsync("div", { key: '47590fda0e8e1d0342bdaa3f879e71b6d86c3873', class: "background-area" }, hAsync("div", { key: '3a18024fff5df5404b8e8f4406dcbdbfcfc5017c', class: "background" }, hAsync("div", { key: '159c2abcc696ca752a3d7657bd0714377dad40fa', class: "background-mask" }), this.theme !== "turva" && hAsync("div", { key: '3a56d7ab5ed83ec71182d607a79d4566953d8627', class: "brand-shape" }), hAsync("div", { key: '4d0ee4bc1e28d66da1bcf2b0cb5cd47dcf1ae8b3', class: "brand-shaped-image" }, hAsync("div", { key: '6e1345fbc0cf5e553df210e81c39de26e11c5714', class: "brand-shaped-image-wrapper" }, hAsync("div", { key: '7ea88df1647ed0473e3c92b547118cd27c13e51e', class: "brand-shaped-image-bg", style: styles })))))), hAsync("div", { key: '7f01db8e264b2e73a20426055b5a270281def01a', class: { "duet-hero-wrapper": true, [this.layout]: true } }, this.image && this.variation === "image" && (hAsync("div", { key: 'cd6ee31a587dc5728f1086208e34609c4cb41576', class: "duet-hero-image-mask" }, hAsync("div", { key: '240753cdf68d85b41903e1d6134e83627c36ea20', class: "duet-hero-image-wrapper" }, hAsync("div", { key: '6cafe1f5e91d8ec09c6deac64d10a2e18dc7dfa0', class: "duet-hero-image", style: styles })))), (this.variation === "gray" || this.variation === "light" || this.variation === "minimal") &&
|
|
10216
|
+
this.processedBack && (hAsync("div", { key: '42d227de39c2c3c2f363d6254ad0443447f14b5a', class: "duet-hero-back" }, hAsync("duet-button", { key: '417c38fa04a95e3fa3c050d338cab9715949ee26', 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, {
|
|
9827
10217
|
label: this.processedBack.label,
|
|
9828
10218
|
href: this.processedBack.href,
|
|
9829
10219
|
id: this.processedBack.id,
|
|
9830
10220
|
analyticsId: this.processedBack.analyticsId,
|
|
9831
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (hAsync("duet-icon", { key: '
|
|
10221
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (hAsync("duet-icon", { key: '66063cd0b99415c605abe15352a9b71168037059', class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), hAsync("div", { key: '4a3fcc41f5daaf4d700068aa75197cd68a46bc11', class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (hAsync("duet-paragraph", { key: '62051b4ac62ec3a47501537478ee19e709d10166', margin: "none", class: "duet-hero-pre", size: this.variation === "content" ? "small" : "medium" }, this.preHeading ? (this.preHeading) : (hAsync("span", null, hAsync("slot", { name: "pre-heading" }))))), hAsync("slot", { key: 'ea902d83a964060c8597405b0b24e1679af35e98', name: "badge" }), (this.heading || this.hasHeadingSlot) && (hAsync("duet-heading", { key: 'd77ac46a19fa244d4dcb33a68b44a3ff7cba8e4f', theme: this.theme, level: this.level, class: { "duet-hero-heading": true, "duet-hero-heading-has-pre": this.preHeading !== "" }, color: headingColor, visualLevel: headingVisualLevel, margin: campaignOrSection ? "none" : "auto" }, this.heading ? (this.heading) : (hAsync("span", null, hAsync("slot", { name: "heading" }))))), campaignOrSection && this.hasSubHeadingSlot && (hAsync("duet-heading", { key: 'c21c9d1e62d0eec3999fe1feaff0cec00179f5cc', theme: this.theme, level: this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, hAsync("span", { key: '9199c48d4fc9f198b7d8b9dee733b2f11eed776b' }, hAsync("slot", { key: 'c42f417640ac4c491cfdc8365fa3e6b42e736777', name: "subheading" })))), this.description && (hAsync("duet-paragraph", { key: '30dda4b5e866efe5078f4fe416b1e869cdd41d96', theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (hAsync("duet-list", { key: 'ed22cd538744a99e79f4f4114da63273bc87cd8f', theme: this.theme, "label-width": "30", breakpoint: "large", mobile: this.leftAlign ? undefined : "center" }, this.processedListItems.map(item => (hAsync("duet-list-item", null, hAsync("span", { slot: "label" }, item.label), hAsync("span", { slot: "value" }, item.value)))))), this.buttonLabel && (hAsync("duet-button", { key: '3bc7ef7148147a5d45bd58da145ad45a1bc446d7', 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)), hAsync("slot", { key: 'decca9d5a65846b314106812964952a4a31dd749' })), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (hAsync("div", { key: '241e28061c2c805cb601a4f76298856359bfec12', class: "duet-hero-links" }, this.processedActions.map(item => (hAsync("a", { class: "duet-hero-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleClick(event, item) }, hAsync("div", { class: "duet-hero-action-icon" }, hAsync("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor", outline: outlineColor })), hAsync("span", null, item.label), item.external && hAsync("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), item.external && (hAsync("div", { class: "duet-hero-action-arrow" }, hAsync("duet-icon", { icon: actionNewWindowSmall.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
9832
10222
|
this.variation !== "image" &&
|
|
9833
10223
|
!campaignOrSection &&
|
|
9834
10224
|
this.variation !== "product" &&
|
|
9835
|
-
this.variation !== "content" && hAsync("div", { key: '
|
|
10225
|
+
this.variation !== "content" && hAsync("div", { key: '004ab35e7ed914486fbcd85ec53efe7bdc2b98ce', class: "duet-hero-image", style: styles }), hAsync("slot", { key: '63d9b82445adb55bb89618092ed1e4178d6b8755', name: "bottom" }))));
|
|
9836
10226
|
}
|
|
9837
10227
|
get element() { return getElement(this); }
|
|
9838
10228
|
static get watchers() { return {
|
|
@@ -9958,11 +10348,11 @@ class DuetIcon {
|
|
|
9958
10348
|
: {};
|
|
9959
10349
|
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
9960
10350
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
9961
|
-
return (hAsync(Host, { key: '
|
|
10351
|
+
return (hAsync(Host, { key: 'bcc69839a12f0f324283e2ac3fcdcc0bf9f62f97', class: {
|
|
9962
10352
|
"duet-m-0": this.margin === "none",
|
|
9963
10353
|
"duet-icon-has-outline": !!this.outline,
|
|
9964
10354
|
"duet-icon-has-background": !!this.background,
|
|
9965
|
-
} }, hAsync("span", { key: '
|
|
10355
|
+
} }, hAsync("span", { key: '7b11a7a766f0b472bea854c1f39971d73a499b9b', "aria-hidden": "true", style: styles, class: {
|
|
9966
10356
|
"duet-icon": true,
|
|
9967
10357
|
"duet-theme-turva": this.theme === "turva",
|
|
9968
10358
|
"duet-theme-default": this.theme === "default",
|
|
@@ -9971,7 +10361,7 @@ class DuetIcon {
|
|
|
9971
10361
|
[shapeStyle]: true,
|
|
9972
10362
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
9973
10363
|
"duet-icon-not-responsive": !this.responsive,
|
|
9974
|
-
} }, hAsync("span", { key: '
|
|
10364
|
+
} }, hAsync("span", { key: 'e84a88efa8d6d8f3b04c288939d3a36b80095878', "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 }))));
|
|
9975
10365
|
}
|
|
9976
10366
|
get element() { return getElement(this); }
|
|
9977
10367
|
static get watchers() { return {
|
|
@@ -10005,6 +10395,8 @@ class DuetIcon {
|
|
|
10005
10395
|
}; }
|
|
10006
10396
|
}
|
|
10007
10397
|
|
|
10398
|
+
var formEmail={"title":"form-email","tags":"form email","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M12 23.999c-3.205 0-6.218-1.248-8.484-3.514S.001 15.206.001 12.001s1.248-6.218 3.514-8.485C5.782 1.25 8.795.001 12 .001s6.218 1.248 8.485 3.514A11.92 11.92 0 0 1 24 12v2.25A3.754 3.754 0 0 1 20.25 18a3.77 3.77 0 0 1-3.48-2.365A6.009 6.009 0 0 1 12 18c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6v2.25c0 1.241 1.009 2.25 2.25 2.25s2.25-1.009 2.25-2.25V12c0-2.804-1.092-5.441-3.075-7.424A10.433 10.433 0 0 0 12 1.501c-2.804 0-5.441 1.092-7.424 3.075S1.501 9.196 1.501 12c0 2.805 1.092 5.441 3.075 7.424s4.619 3.074 7.423 3.074c2.257 0 4.494-.746 6.299-2.1a.749.749 0 1 1 .9 1.199A12.049 12.049 0 0 1 12 23.999zM12 7.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z\"/></svg>"};
|
|
10399
|
+
|
|
10008
10400
|
/**
|
|
10009
10401
|
* This function restores cursor position after changing input
|
|
10010
10402
|
*
|
|
@@ -10054,9 +10446,13 @@ function cleanValue(input, regex) {
|
|
|
10054
10446
|
return newValue;
|
|
10055
10447
|
}
|
|
10056
10448
|
|
|
10057
|
-
const duetInputCss = "*.sc-duet-input,*.sc-duet-input::after,*.sc-duet-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:bottom}.sc-duet-input-h:last-child,.sc-duet-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-input-h{width:100% !important}.duet-m-0.sc-duet-input-h{margin:0 !important}input[type=search].sc-duet-input::-webkit-search-cancel-button{-webkit-appearance:none}duet-tooltip.sc-duet-input,.sc-duet-input-s>duet-tooltip{position:relative;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-input,.sc-duet-input-s>duet-tooltip{right:auto}}duet-caption.sc-duet-input:not(:last-of-type){margin-bottom:0}.duet-input-placeholder.sc-duet-input{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-input-icon.sc-duet-input{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;font-size:0;line-height:normal;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva.sc-duet-input .duet-input-icon.sc-duet-input{color:rgb(23, 28, 58)}.duet-input-container.sc-duet-input{position:relative;width:100%;height:100%}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input{position:relative;z-index:250}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input{position:absolute;top:-24px;right:-24px;min-width:48px;min-height:48px;color:rgb(0, 75, 129)}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-input .duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus,.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:active{opacity:0.75;transition:none}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.sc-duet-input button.sc-duet-input{top:-48px;right:0}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.sc-duet-input button.sc-duet-input{top:-24px;right:12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-button.sc-duet-input button.sc-duet-input{top:-24px;right:0}.duet-input-container.has-clear.has-icon.sc-duet-input .duet-input-clear-icon.sc-duet-input{top:-24px;right:24px}.duet-input-container.duet-theme-turva.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input{color:rgb(8, 42, 77)}.duet-input-container.duet-theme-turva.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-input-label-container.sc-duet-input{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}@media (min-width: 48em){.duet-input-label-container.sc-duet-input{justify-content:flex-start}}.duet-input.sc-duet-input{position:relative;z-index:100;display:block !important;width:100% !important;min-width:8rem;max-width:initial !important;height:auto !important;padding:12px 14px !important;margin:initial !important;margin-bottom:initial !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400 !important;font-variant-numeric:tabular-nums;line-height:1.5 !important;color:rgb(8, 42, 77) !important;cursor:initial !important;background:rgb(255, 255, 255) !important;background-clip:initial !important;border:1px solid rgb(127, 150, 165) !important;border-radius:4px !important;box-shadow:initial !important;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-input.input-padding-small.sc-duet-input{padding:8px 10px !important}.duet-input.input-padding-x-small.sc-duet-input{padding:4px 6px !important}.duet-input.input-padding-xx-small.sc-duet-input{padding:0px 2px !important}.duet-input.is-number.sc-duet-input{padding-right:112px !important}.duet-input.is-date.sc-duet-input{padding-right:64px !important}.duet-input.after-chip.sc-duet-input{padding-left:8px !important}.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:rgb(214, 28, 82) !important}.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:rgb(214, 28, 82) !important}.has-icon.sc-duet-input .duet-input.sc-duet-input{padding-right:48px !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58) !important;border-color:rgb(143, 147, 158) !important}.duet-input.align-right.sc-duet-input{text-align:right}.duet-input.sc-duet-input::-ms-clear{display:none}.duet-input.sc-duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input.sc-duet-input::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-input.sc-duet-input::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-moz-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-input.sc-duet-input:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-input[disabled].sc-duet-input{color:rgb(8, 42, 77) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva.sc-duet-input .duet-input[disabled].sc-duet-input{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.has-error.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-input.sc-duet-input:focus{border-color:rgb(0, 119, 179) !important;outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus{border-color:rgb(23, 28, 58) !important;box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(23, 28, 58)}.has-error.sc-duet-input .duet-input.sc-duet-input:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input:focus{box-shadow:0 0 0 1px #e55039}.duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(0, 119, 179)}.duet-input[type=search].sc-duet-input:not(:placeholder-shown):focus+.duet-input-icon.sc-duet-input{display:none}.duet-input.sc-duet-input:not(:focus):not(:hover):invalid{box-shadow:none !important}.duet-input[type=number].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=number].sc-duet-input::-webkit-outer-spin-button,.duet-input[type=time].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=time].sc-duet-input::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input.sc-duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help.sc-duet-input{display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-input-help.sc-duet-input span.sc-duet-input{display:block;margin-top:8px}.duet-theme-turva.sc-duet-input .duet-input-help.sc-duet-input{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(143, 147, 158)}.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-input duet-label.sc-duet-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-input-relative.sc-duet-input{position:relative;width:100%}.duet-input-variation-button.sc-duet-input{position:relative;width:100%}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input{z-index:250;margin-bottom:0}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-right-width:0 !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.duet-input-variation-revealable.sc-duet-input{position:relative;width:100%}.duet-input-variation-revealable.sc-duet-input .sc-duet-input::-ms-reveal{display:none}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;box-shadow:initial;transition:box-shadow 150ms ease, border 150ms ease}.duet-theme-turva.sc-duet-input .duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(143, 147, 158)}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input{z-index:250;margin-bottom:0}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-width:0 !important}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:hover{border-width:0 !important;box-shadow:none !important}.duet-input-variation-revealable.disabled.sc-duet-input .duet-input-relative.sc-duet-input{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229);box-shadow:none}.duet-input-variation-revealable.has-error.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.duet-theme-turva.has-error.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(0, 119, 179);box-shadow:0 0 0 1px #0077b3 !important}.duet-input-variation-revealable.duet-theme-turva.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-input-variation-revealable.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #909599}.duet-input-variation-revealable.duet-theme-turva.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #747475}.duet-input-variation-revealable.has-error.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #de2362}.duet-input-variation-revealable.duet-theme-turva.has-error.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #e55039}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;box-shadow:initial;transition:box-shadow 150ms ease, border 150ms ease}.duet-theme-turva.sc-duet-input .duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(143, 147, 158)}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{flex-basis:4rem;flex-grow:1;padding-left:0 !important;margin-left:12px !important;border-width:0 !important}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:hover{border-width:0 !important;box-shadow:none !important}";
|
|
10449
|
+
const duetInputCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}duet-tooltip,::slotted(duet-tooltip){position:relative;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){right:auto}}duet-caption:not(:last-of-type){margin-bottom:0}.duet-input-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-input-icon{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;font-size:0;line-height:normal;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva .duet-input-icon{color:rgb(23, 28, 58)}.duet-input-container{position:relative;width:100%;height:100%}.duet-input-container.has-clear .duet-input-clear-icon{position:relative;z-index:250}.duet-input-container.has-clear .duet-input-clear-icon button{position:absolute;top:-24px;right:-24px;min-width:48px;min-height:48px;color:rgb(0, 75, 129)}.duet-input-container.has-clear .duet-input-clear-icon button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-input-container.has-clear .duet-input-clear-icon button:focus,.duet-input-container.has-clear .duet-input-clear-icon button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-input-container.has-clear .duet-input-clear-icon button:active{opacity:0.75;transition:none}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single button{top:-48px;right:0}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double button{top:-24px;right:12px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-button button{top:-24px;right:0}.duet-input-container.has-clear.has-icon .duet-input-clear-icon{top:-24px;right:24px}.duet-input-container.duet-theme-turva.has-clear .duet-input-clear-icon button{color:rgb(8, 42, 77)}.duet-input-container.duet-theme-turva.has-clear .duet-input-clear-icon button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-input-label-container{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}@media (min-width: 48em){.duet-input-label-container{justify-content:flex-start}}.duet-input{position:relative;z-index:100;display:block !important;width:100% !important;min-width:8rem;max-width:initial !important;height:auto !important;padding:12px 14px !important;margin:initial !important;margin-bottom:initial !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400 !important;font-variant-numeric:tabular-nums;line-height:1.5 !important;color:rgb(8, 42, 77) !important;cursor:initial !important;background:rgb(255, 255, 255) !important;background-clip:initial !important;border:1px solid rgb(127, 150, 165) !important;border-radius:4px !important;box-shadow:initial !important;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-input.input-padding-small{padding:8px 10px !important}.duet-input.input-padding-x-small{padding:4px 6px !important}.duet-input.input-padding-xx-small{padding:0px 2px !important}.duet-input.is-number{padding-right:112px !important}.duet-input.is-date{padding-right:64px !important}.duet-input.after-chip{padding-left:8px !important}.has-error .duet-input{border-color:rgb(214, 28, 82) !important}.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-input{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.has-icon .duet-input{padding-right:48px !important}.duet-theme-turva .duet-input{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58) !important;border-color:rgb(143, 147, 158) !important}.duet-input.align-right{text-align:right}.duet-input::-ms-clear{display:none}.duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva .duet-input::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-input:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-input:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-input::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva .duet-input::-moz-placeholder{color:rgb(143, 147, 158)}.duet-input:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-input:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-input:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva .duet-input:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-input:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-input:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-input[disabled]{color:rgb(8, 42, 77) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-input[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva .duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.has-error .duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-input:focus{border-color:rgb(0, 119, 179) !important;outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-input:focus{border-color:rgb(23, 28, 58) !important;box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 28, 58)}.has-error .duet-input:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-input:focus{box-shadow:0 0 0 1px #e55039}.duet-input:focus+.duet-input-icon{color:rgb(0, 119, 179)}.duet-input[type=search]:not(:placeholder-shown):focus+.duet-input-icon{display:none}.duet-input:not(:focus):not(:hover):invalid{box-shadow:none !important}.duet-input[type=number]::-webkit-inner-spin-button,.duet-input[type=number]::-webkit-outer-spin-button,.duet-input[type=time]::-webkit-inner-spin-button,.duet-input[type=time]::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help{display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-input-help span{display:block;margin-top:8px}.duet-theme-turva .duet-input-help{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(143, 147, 158)}.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-input-relative{position:relative;width:100%}.duet-input-variation-button{position:relative;width:100%}.duet-input-variation-button .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto}.duet-input-variation-button .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-button .duet-input-relative .duet-input{border-right-width:0 !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.duet-input-variation-revealable{position:relative;width:100%}.duet-input-variation-revealable ::-ms-reveal{display:none}.duet-input-variation-revealable .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;box-shadow:initial;transition:box-shadow 150ms ease, border 150ms ease}.duet-theme-turva .duet-input-variation-revealable .duet-input-relative{border-color:rgb(143, 147, 158)}.duet-input-variation-revealable .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-revealable .duet-input-relative .duet-input{border-width:0 !important}.duet-input-variation-revealable .duet-input-relative .duet-input:focus,.duet-input-variation-revealable .duet-input-relative .duet-input:hover{border-width:0 !important;box-shadow:none !important}.duet-input-variation-revealable.disabled .duet-input-relative{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229);box-shadow:none}.duet-input-variation-revealable.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.duet-theme-turva.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.has-focus .duet-input-relative{border-color:rgb(0, 119, 179);box-shadow:0 0 0 1px #0077b3 !important}.duet-input-variation-revealable.duet-theme-turva.has-focus .duet-input-relative{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #909599}.duet-input-variation-revealable.duet-theme-turva:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #747475}.duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #de2362}.duet-input-variation-revealable.duet-theme-turva.has-error:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #e55039}.duet-input-container.has-chips .duet-input-relative{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;box-shadow:initial;transition:box-shadow 150ms ease, border 150ms ease}.duet-theme-turva .duet-input-container.has-chips .duet-input-relative{border-color:rgb(143, 147, 158)}.duet-input-container.has-chips .duet-input-relative .duet-input{flex-basis:4rem;flex-grow:1;padding-left:0 !important;margin-left:12px !important;border-width:0 !important}.duet-input-container.has-chips .duet-input-relative .duet-input:focus,.duet-input-container.has-chips .duet-input-relative .duet-input:hover{border-width:0 !important;box-shadow:none !important}";
|
|
10058
10450
|
var DuetInputStyle0 = duetInputCss;
|
|
10059
10451
|
|
|
10452
|
+
const icons = {
|
|
10453
|
+
search: formSearch,
|
|
10454
|
+
email: formEmail,
|
|
10455
|
+
};
|
|
10060
10456
|
/**
|
|
10061
10457
|
* @slot tooltip - Use to place a tooltip alongside the label.
|
|
10062
10458
|
*/
|
|
@@ -10072,6 +10468,7 @@ class DuetInput {
|
|
|
10072
10468
|
* Own Properties
|
|
10073
10469
|
*/
|
|
10074
10470
|
this.inputId = createID("DuetInput");
|
|
10471
|
+
this.proxyId = createID("DuetInput");
|
|
10075
10472
|
this.clearId = createID("DuetInputClear");
|
|
10076
10473
|
this.labelId = createID("DuetLabel");
|
|
10077
10474
|
this.topCaptionId = createID("DuetCaptionTop");
|
|
@@ -10323,6 +10720,8 @@ class DuetInput {
|
|
|
10323
10720
|
disconnectedCallback() {
|
|
10324
10721
|
disconnectLanguageChangeObserver(this);
|
|
10325
10722
|
}
|
|
10723
|
+
componentDidRender() {
|
|
10724
|
+
}
|
|
10326
10725
|
/**
|
|
10327
10726
|
* Sets focus on the specified `duet-input`. Use this method instead of the global
|
|
10328
10727
|
* `input.focus()`.
|
|
@@ -10355,7 +10754,7 @@ class DuetInput {
|
|
|
10355
10754
|
}
|
|
10356
10755
|
}
|
|
10357
10756
|
getAllChips() {
|
|
10358
|
-
return Array.from(this.element.querySelectorAll(".duet-input-relative duet-chip"));
|
|
10757
|
+
return Array.from(this.element.shadowRoot.querySelectorAll(".duet-input-relative duet-chip"));
|
|
10359
10758
|
}
|
|
10360
10759
|
isChipSelected() {
|
|
10361
10760
|
return this.getAllChips().some(chip => chip.selected);
|
|
@@ -10418,7 +10817,7 @@ class DuetInput {
|
|
|
10418
10817
|
* Add a chip to the input
|
|
10419
10818
|
*/
|
|
10420
10819
|
async addChip(chip) {
|
|
10421
|
-
const container = this.element.querySelector(".duet-input-relative");
|
|
10820
|
+
const container = this.element.shadowRoot.querySelector(".duet-input-relative");
|
|
10422
10821
|
const input = container.querySelector("input:not(duet-chip input)");
|
|
10423
10822
|
chip.id = createID("DuetInputChip");
|
|
10424
10823
|
container.insertBefore(chip, input);
|
|
@@ -10449,9 +10848,66 @@ class DuetInput {
|
|
|
10449
10848
|
* Always the last one in the class.
|
|
10450
10849
|
*/
|
|
10451
10850
|
render() {
|
|
10452
|
-
|
|
10453
|
-
|
|
10851
|
+
const identifier = this.identifier || this.inputId;
|
|
10852
|
+
const inputProps = {};
|
|
10853
|
+
if (this.numericKeyboard) {
|
|
10854
|
+
inputProps.inputmode = "numeric";
|
|
10855
|
+
}
|
|
10856
|
+
// Set validation regexes
|
|
10857
|
+
if (this.pattern && this.type !== "tel") {
|
|
10858
|
+
inputProps.pattern = this.pattern;
|
|
10859
|
+
}
|
|
10860
|
+
else if (!this.pattern && this.type === "tel") {
|
|
10861
|
+
inputProps.pattern = "[0-9+ ]+";
|
|
10454
10862
|
}
|
|
10863
|
+
let selectedTime;
|
|
10864
|
+
if (this.value) {
|
|
10865
|
+
selectedTime = new Date();
|
|
10866
|
+
try {
|
|
10867
|
+
selectedTime.setHours(Number(this.value.slice(0, 2)), Number(this.value.slice(3, 5)), 0, 0);
|
|
10868
|
+
}
|
|
10869
|
+
catch (e) {
|
|
10870
|
+
selectedTime = undefined;
|
|
10871
|
+
}
|
|
10872
|
+
}
|
|
10873
|
+
const hasInputIcon = !this.icon &&
|
|
10874
|
+
this.type !== "text" &&
|
|
10875
|
+
this.type !== "tel" &&
|
|
10876
|
+
this.type !== "password" &&
|
|
10877
|
+
this.type !== "time" &&
|
|
10878
|
+
this.variation !== "button";
|
|
10879
|
+
return (hAsync(Host, { key: 'e4e873f95bf94f97147a15b2587cce826ffe328d', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" }, onKeyUp: e => this.keyHandler(e) }, this.type === "time" && (hAsync("duet-visually-hidden", { key: '6c116b58cda98a99d0561e57f42478e6f95fe85b', "aria-live": "polite", "aria-atomic": "true" }, selectedTime ? `${this.timeAnnouncement[this.language]} ${selectedTime.toLocaleTimeString()}` : "")), hAsync("div", { key: 'dc417736dc38bf828bb78b5ef7c18b4fd0f55660', class: {
|
|
10880
|
+
"duet-input-container": true,
|
|
10881
|
+
"duet-theme-turva": this.theme === "turva",
|
|
10882
|
+
[`duet-input-variation-${this.variation}`]: true,
|
|
10883
|
+
"duet-label-hidden": this.labelHidden,
|
|
10884
|
+
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
10885
|
+
"has-icon": this.variation !== "button" &&
|
|
10886
|
+
(!!this.icon ||
|
|
10887
|
+
(this.type !== "text" && this.type !== "tel" && this.type !== "password" && this.type !== "time")),
|
|
10888
|
+
"has-error": !!this.error,
|
|
10889
|
+
"has-chips": this.chips,
|
|
10890
|
+
"has-clear": this.clear,
|
|
10891
|
+
"has-focus": this.isFocused,
|
|
10892
|
+
disabled: this.disabled,
|
|
10893
|
+
} }, hAsync("div", { key: '3120dd57e859e1f11c7f871046ff93ca379f7d33', class: "duet-input-label-container" }, hAsync("duet-label", { key: '1625fdf912a8f117979ac70414b749e5920d6697', theme: this.theme === "turva" ? "turva" : "default", margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: '3e8fb18bae9803bd617d98fc326ff4879113505b', class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: 'f9e4dca121a806252b7d523be78ae0db191ab05a', name: "tooltip" })), this.caption && (hAsync("duet-caption", { key: 'c3a0f5039b0a6a78600b26003cf742b6c100b715', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '6df3e2e0abb79ce6bf5347c6e52e03be6ac374e1', class: "duet-input-relative" }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (hAsync("duet-caption", { key: '3f6dec06ad90dba4cb28b08ed008252423f6db74', id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), this.chips && (hAsync("duet-visually-hidden", { key: 'a53cd8aa2761ac6ebd7b5d6ee329573595c9aacf', id: this.chipCountId }, ", ", `${this.getAllChips().length} ${getLocaleString(this.chipsSelectedDesriptionLabel)}`, ",")), hAsync("input", Object.assign({ key: '37decf03a973f6fa26a76961afc0598ab976b1e7', ref: input => (this.nativeInput = input), onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, type: this.getInputType(), class: {
|
|
10894
|
+
"duet-input": true,
|
|
10895
|
+
disabled: this.disabled,
|
|
10896
|
+
"is-number": this.component === "number",
|
|
10897
|
+
"is-date": this.component === "date",
|
|
10898
|
+
"after-chip": this.getAllChips().length > 0,
|
|
10899
|
+
"align-right": this.inputAlign === "right",
|
|
10900
|
+
[`input-padding-${this.inputPadding}`]: true,
|
|
10901
|
+
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.type === "password" ? "off" : this.autoComplete, required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), !this.value && hasInputIcon && (hAsync("div", { key: '2b06ed113322c4e03fdcb04bf528cc9425307013', class: "duet-input-icon" }, hAsync("duet-icon", { key: 'b5d41a945b099d2c5ade8c121738a9d387599c80', margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && (hAsync("div", { key: 'f89624f414e9005f484f4d31b90edcf6ea81ca44', class: {
|
|
10902
|
+
"duet-input-clear-icon": true,
|
|
10903
|
+
"duet-input-clear-icon-single": !hasInputIcon,
|
|
10904
|
+
"duet-input-clear-icon-double": !!this.icon,
|
|
10905
|
+
"duet-input-clear-icon-button": this.variation === "button",
|
|
10906
|
+
} }, hAsync("button", { key: 'aeedec82776de92e930bef230fdaed43552002a6', onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel[this.language], "aria-keyshortcuts": "Escape" }, hAsync("duet-icon", { key: '92d15bab69bbfc0ea9b635c94b0edc5e5ddf4f3f', margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (hAsync("div", { key: 'e16da8f6c4c252309cd6cf2fd9ad1d3f5ccdb547', class: "duet-input-icon" }, hAsync("duet-icon", { key: 'ee55dc419577e1bd21eca218717c1ec7a64f38c2', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && hAsync("slot", { key: '104d0b90682cd0508d684bebc22b9d4893d7181e', name: "button" }), this.variation === "revealable" && (hAsync("duet-button", { key: '838c0aef8ef924af565ad34a0004f4d5f187418f', ref: button => (this.togglePasswordRevealedButton = button), onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.togglePasswordRevealed, icon: this.isPasswordRevealed ? "action-hide" : "action-show", accessibleLabel: this.isPasswordRevealed
|
|
10907
|
+
? this.hidePasswordLabel[this.language]
|
|
10908
|
+
: this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (hAsync("duet-visually-hidden", { key: '902ec5a2c111186ed9cda34dcd1ad0d6666b74c7' }, hAsync("span", { key: '1c94535e903e542ff97a52cb871e91d4ab244646', "aria-live": "polite" }, this.isPasswordRevealed
|
|
10909
|
+
? this.passwordShownAriaAnnouncement[this.language]
|
|
10910
|
+
: this.passwordHiddenAriaAnnouncement[this.language]))), hAsync("slot", { key: '9e346bbb5e1d4a0e78fe8ff3b79401c7988a4e91' })), hAsync("span", { key: '661e5d3ae11da4b71c4b024b6835b230008ddf42', class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '66b313ab9b88db56592c542e1294012f6fbf3c10', class: "duet-input-error" }, this.error)))));
|
|
10455
10911
|
}
|
|
10456
10912
|
get element() { return getElement(this); }
|
|
10457
10913
|
static get watchers() { return {
|
|
@@ -10460,7 +10916,7 @@ class DuetInput {
|
|
|
10460
10916
|
}; }
|
|
10461
10917
|
static get style() { return DuetInputStyle0; }
|
|
10462
10918
|
static get cmpMeta() { return {
|
|
10463
|
-
"$flags$":
|
|
10919
|
+
"$flags$": 9,
|
|
10464
10920
|
"$tagName$": "duet-input",
|
|
10465
10921
|
"$members$": {
|
|
10466
10922
|
"accessibleActiveDescendant": [1, "accessible-active-descendant"],
|
|
@@ -10620,24 +11076,24 @@ class DuetLayout {
|
|
|
10620
11076
|
* Always the last one in the class.
|
|
10621
11077
|
*/
|
|
10622
11078
|
render() {
|
|
10623
|
-
return (hAsync(Host, { key: '
|
|
11079
|
+
return (hAsync(Host, { key: '90f647eba78b36ab1d85e0a560b038ffc21303a2', class: {
|
|
10624
11080
|
center: this.center,
|
|
10625
11081
|
"duet-middle": this.middle,
|
|
10626
11082
|
"duet-ie": isInternetExplorer(),
|
|
10627
|
-
} }, hAsync("div", { key: '
|
|
11083
|
+
} }, hAsync("div", { key: '1431a32d05c84c241a2d8c7159e612e609e2824c', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, this.hasTop && (hAsync("div", { key: '60671d632fc27c596bdfcc7d615a48dc21f8b9a8', class: {
|
|
10628
11084
|
"duet-layout-top": true,
|
|
10629
11085
|
"duet-center": this.center,
|
|
10630
|
-
} }, hAsync("div", { key: '
|
|
11086
|
+
} }, hAsync("div", { key: '5550861a3548f488f5626097295495e42f1da21b', class: "duet-layout-top-wrapper" }, hAsync("slot", { key: '50d4f55c8a796813d02274f30346110262213a88', name: "top" })))), hAsync("div", { key: '1225a8d5b7023bc36962ce3ac6def89d972435d1', class: {
|
|
10631
11087
|
"duet-layout": true,
|
|
10632
11088
|
"has-sidebar": this.hasSidebar,
|
|
10633
11089
|
"duet-center": this.center,
|
|
10634
11090
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
10635
|
-
} }, hAsync("main", { key: '
|
|
11091
|
+
} }, hAsync("main", { key: '0e584acec6dc315e435bd00361e1ff3b374d04c0', class: "duet-main" }, this.hasPageHeading && hAsync("slot", { key: '301f7c76d42a45373c5bf769e9293ede7d38e05c', name: "page-heading" }), hAsync("slot", { key: 'cc8b9f7018c621c98ebb261167a92cace2b8ab62', name: "main" })), this.hasSidebar && (hAsync("aside", { key: '811455504b48787253def2101178f1aeb6f497fd', class: "duet-sidebar" }, hAsync("div", { key: '6bd13075032951b5837f51e7ffec4ab0966b16da', class: {
|
|
10636
11092
|
"duet-sidebar-container": true,
|
|
10637
11093
|
"has-tabs": this.tabs,
|
|
10638
11094
|
sticky: this.sticky,
|
|
10639
11095
|
[this.stickyDistance]: this.sticky,
|
|
10640
|
-
} }, hAsync("slot", { key: '
|
|
11096
|
+
} }, hAsync("slot", { key: '9dd5da1cca1abfb7f3946c2e9b254f76f4edf609', name: "sidebar" }))))))));
|
|
10641
11097
|
}
|
|
10642
11098
|
get element() { return getElement(this); }
|
|
10643
11099
|
static get style() { return DuetLayoutStyle0; }
|
|
@@ -10664,23 +11120,20 @@ var actionArrowRight={"title":"action-arrow-right","tags":"action arrow right ca
|
|
|
10664
11120
|
var actionNewWindow={"title":"action-new-window","tags":"arrow open new window tab external link square box rectangle action","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M10.25 2a.75.75 0 1 1 0 1.5h-6.5A2.252 2.252 0 0 0 1.5 5.75v14.5a2.252 2.252 0 0 0 2.25 2.25h14.5a2.252 2.252 0 0 0 2.25-2.25v-6.5a.75.75 0 0 1 1.5 0v6.5A3.754 3.754 0 0 1 18.25 24H3.75A3.754 3.754 0 0 1 0 20.25V5.75A3.754 3.754 0 0 1 3.75 2zm12.985-2c.1 0 .198.02.29.058l.025.011a.726.726 0 0 1 .15.091l.066.059a.755.755 0 0 1 .109.138l.051.1c.04.092.06.192.06.293l-.001 6.363c0 .2-.078.389-.22.53a.743.743 0 0 1-.53.22.743.743 0 0 1-.53-.22.743.743 0 0 1-.22-.53V2.559L15.28 9.764a.75.75 0 0 1-1.06-1.06l7.204-7.205h-4.553a.744.744 0 0 1-.75-.75c0-.2.078-.388.22-.53A.743.743 0 0 1 16.87 0z\"/></svg>"};
|
|
10665
11121
|
|
|
10666
11122
|
function getAccessibleLinkLabel(component) {
|
|
10667
|
-
const
|
|
11123
|
+
const textContext = component.element.textContent;
|
|
10668
11124
|
if (component.accessibleLabel) {
|
|
10669
11125
|
return component.accessibleLabel;
|
|
10670
11126
|
}
|
|
10671
|
-
if ((!!component.download || component.download === "") &&
|
|
10672
|
-
return `${
|
|
11127
|
+
if ((!!component.download || component.download === "") && textContext) {
|
|
11128
|
+
return `${textContext}. ${component.accessibleLabelDownload}.`;
|
|
10673
11129
|
}
|
|
10674
|
-
if (component.external &&
|
|
10675
|
-
return `${
|
|
10676
|
-
}
|
|
10677
|
-
if (getElementsFromDefaultSlot(component.element).length) {
|
|
10678
|
-
return textContent;
|
|
11130
|
+
if (component.external && textContext) {
|
|
11131
|
+
return `${textContext}. ${component.accessibleLabelExternal}.`;
|
|
10679
11132
|
}
|
|
10680
11133
|
return null;
|
|
10681
11134
|
}
|
|
10682
11135
|
|
|
10683
|
-
const duetLinkCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline}:host(.duet-link-block){display:block}:host(.duet-link-button){margin-right:8px !important;margin-bottom:12px !important;display:inline-block;width:100%}:host(.duet-link-button):last-child,:host(.duet-link-button):last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-link{display:inline;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-style:normal;font-weight:400;color:rgb(0, 97, 155);text-decoration:underline;border-radius:4px;transition:300ms ease}.duet-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3
|
|
11136
|
+
const duetLinkCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline}:host(.duet-link-block){display:block}:host(.duet-link-button){margin-right:8px !important;margin-bottom:12px !important;display:inline-block;width:100%}:host(.duet-link-button):last-child,:host(.duet-link-button):last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-link{display:inline;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-style:normal;font-weight:400;color:rgb(0, 97, 155);text-decoration:underline;border-radius:4px;transition:300ms ease}.duet-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-link.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(164, 4, 40)}.duet-link:hover{color:rgb(0, 75, 129);text-decoration:none}.duet-link:hover.duet-theme-turva{color:rgb(126, 2, 35)}.duet-link:active{opacity:0.75;transition:none}button{font-size:inherit;cursor:pointer}.duet-link-is-external.duet-link:not(.block,.button,.card),.duet-link-is-download.duet-link:not(.block,.button,.card){text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card) .duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card) .duet-link-content{text-decoration:underline}.duet-link-is-external.duet-link:not(.block,.button,.card):hover>.duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card):hover>.duet-link-content{text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card) .duet-link-icon-tail,.duet-link-is-download.duet-link:not(.block,.button,.card) .duet-link-icon-tail{text-decoration:none;white-space:nowrap}.duet-tab-to-link{padding:15px 28px 16px !important;position:absolute;top:-100%;left:-100%;z-index:200;width:1px;min-width:190px;height:1px;overflow:hidden;font-weight:600;color:rgb(0, 119, 179);text-align:center;text-decoration:none;background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:none}.duet-tab-to-link.duet-theme-turva{min-width:120px;color:rgb(23, 28, 58)}@media (min-width: 106.25em){.duet-tab-to-link{margin-left:20px}}.duet-tab-to-link:focus{top:12px;left:20px;width:auto;height:auto;outline:0;opacity:1}.block.duet-link{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;padding:16px;font-weight:600;color:rgb(8, 42, 77);text-decoration:none}.block.duet-link.duet-link-has-icon{grid-template-columns:auto 1fr auto}.block.duet-link.none{padding:0}.block .block__icon{display:flex}.block .block__content{position:relative;bottom:2px}.block .block__chevron{align-self:center}.block .block__chevron-icon{transition:300ms ease}.block:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.duet-link.button,.duet-link.card{display:flex;gap:12px;align-items:center;width:100%;min-height:48px;padding:14px 16px;line-height:1.25;text-decoration:none;background-color:rgb(255, 255, 255);border:solid 1px rgb(181, 198, 208);border-radius:12px;outline:0 solid rgb(181, 198, 208);outline-offset:-2px;transition:all 300ms ease}.duet-link.button>*,.duet-link.card>*{flex-shrink:0}.duet-link.button .duet-link-content,.duet-link.card .duet-link-content{flex-grow:1;flex-shrink:1;font-size:1rem;font-weight:600;color:rgb(8, 42, 77);text-align:left}.duet-link.button .icon-wrap,.duet-link.card .icon-wrap{display:flex;align-items:center;justify-content:center}.duet-link.button.duet-link-has-icon-background,.duet-link.card.duet-link-has-icon-background{min-height:60px;padding:12px;padding-right:20px;line-height:1.5}.duet-link.button.duet-link-has-icon-background .icon-wrap,.duet-link.card.duet-link-has-icon-background .icon-wrap{width:36px;height:36px;border-radius:8px}.duet-link.button:hover,.duet-link.card:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179)}@media (min-width: 48em){.duet-link.button,.duet-link.card{min-height:50px}.duet-link.button.duet-link-has-icon-background,.duet-link.card.duet-link-has-icon-background{gap:16px;min-height:72px;border-radius:16px}.duet-link.button.duet-link-has-icon-background .icon-wrap,.duet-link.card.duet-link-has-icon-background .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.button.duet-link-has-icon-background .duet-link-content,.duet-link.card.duet-link-has-icon-background .duet-link-content{font-size:1.1rem}}.duet-link.button.duet-theme-turva,.duet-link.card.duet-theme-turva{border-color:rgb(199, 202, 207)}.duet-link.button.duet-theme-turva .duet-link-content,.duet-link.card.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.button.duet-theme-turva:hover,.duet-link.card.duet-theme-turva:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-link.button .block__chevron-icon,.duet-link.card .block__chevron-icon{transition:300ms ease}.duet-link.button:not(.duet-link-is-external):hover .block__chevron-icon,.duet-link.card:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.duet-link.card{border-color:rgb(228, 236, 239);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-link.card.duet-theme-turva{border-color:rgb(234, 235, 239);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}.duet-link.card:not(.duet-link-has-icon){gap:12px;padding:16px}.duet-link.card .chevron-wrap{display:flex;align-items:center;height:100%}.duet-link.card.duet-link-has-icon{gap:12px;align-items:flex-start;padding:16px}.duet-link.card.duet-link-has-icon .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.card.duet-link-has-icon .chevron-wrap{height:48px}@media (min-width: 48em){.duet-link.card:not(.duet-link-has-icon){gap:20px;padding:24px}.duet-link.card.duet-link-has-icon{gap:20px;padding:24px}.duet-link.card.duet-link-has-icon .icon-wrap{width:62px;height:62px;border-radius:16px}.duet-link.card.duet-link-has-icon .chevron-wrap{height:62px}}";
|
|
10684
11137
|
var DuetLinkStyle0 = duetLinkCss;
|
|
10685
11138
|
|
|
10686
11139
|
/**
|
|
@@ -10802,10 +11255,10 @@ class DuetLink {
|
|
|
10802
11255
|
render() {
|
|
10803
11256
|
const Tag = !this.url ? "button" : "a";
|
|
10804
11257
|
const isButton = Tag === "button";
|
|
10805
|
-
return (hAsync(Host, { key: '
|
|
11258
|
+
return (hAsync(Host, { key: 'e7cb6ea76d92ed46bca6c328a17e50755ea4c750', class: {
|
|
10806
11259
|
[`duet-link-${this.variation}`]: true,
|
|
10807
11260
|
"duet-m-0": this.margin === "none",
|
|
10808
|
-
} }, hAsync(Tag, { key: '
|
|
11261
|
+
} }, hAsync(Tag, { key: 'c6c6d30ed3774822aeae25f20e0bd227f71b397b', href: this.url, class: {
|
|
10809
11262
|
"duet-link": true,
|
|
10810
11263
|
"duet-link-is-external": this.external,
|
|
10811
11264
|
"duet-link-is-download": !!this.download,
|
|
@@ -10928,7 +11381,7 @@ class DuetList {
|
|
|
10928
11381
|
* Always the last one in the class.
|
|
10929
11382
|
*/
|
|
10930
11383
|
render() {
|
|
10931
|
-
return (hAsync("dl", { key: '
|
|
11384
|
+
return (hAsync("dl", { key: '2494b68d174f2bed0ca129e8970a12ccf09d3532', class: { "duet-list-component": true, "duet-m-0": this.margin === "none" } }, hAsync("slot", { key: '966205c93097469e4b0e1c92aa7e7f264a235ae3' })));
|
|
10932
11385
|
}
|
|
10933
11386
|
get element() { return getElement(this); }
|
|
10934
11387
|
static get watchers() { return {
|
|
@@ -10978,14 +11431,14 @@ class DuetListItem {
|
|
|
10978
11431
|
* Always the last one in the class.
|
|
10979
11432
|
*/
|
|
10980
11433
|
render() {
|
|
10981
|
-
return (hAsync(Host, { key: '
|
|
11434
|
+
return (hAsync(Host, { key: 'b6d3629f682ab9c7962c63213a42d93633b7b5ae', class: {
|
|
10982
11435
|
"duet-no-stacking": !this.responsive,
|
|
10983
11436
|
"duet-list-item-breakpoint-x-small": this.breakpoint === "x-small",
|
|
10984
11437
|
"duet-list-item-breakpoint-small": this.breakpoint === "small",
|
|
10985
11438
|
"duet-list-item-breakpoint-medium": this.breakpoint === "medium",
|
|
10986
11439
|
"duet-list-item-breakpoint-large": this.breakpoint === "large",
|
|
10987
11440
|
"duet-list-item-breakpoint-x-large": this.breakpoint === "x-large",
|
|
10988
|
-
} }, hAsync("dt", { key: '
|
|
11441
|
+
} }, hAsync("dt", { key: '6fd5bb285e0657c6669dcd1aa45983655ae96e44' }, hAsync("slot", { key: '3042541fb55b198c4f183ddcbd5d3a318f20c0f6', name: "label" })), hAsync("dd", { key: 'd925ef59c712ea7ea6308c65ff10e8e2293202bb' }, hAsync("slot", { key: 'e38113683d53d0a1a23f80c900784c148ade05de', name: "value" }))));
|
|
10989
11442
|
}
|
|
10990
11443
|
static get style() { return DuetListItemStyle0; }
|
|
10991
11444
|
static get cmpMeta() { return {
|
|
@@ -11078,7 +11531,7 @@ class DuetLogo {
|
|
|
11078
11531
|
*/
|
|
11079
11532
|
render() {
|
|
11080
11533
|
const TagName = this.href ? "a" : "div";
|
|
11081
|
-
return (hAsync(Host, { key: '
|
|
11534
|
+
return (hAsync(Host, { key: 'e0134b0c6453f025fbb84513f17ad1fe857841fd', class: { "duet-m-0": this.margin === "none" } }, hAsync(TagName, { key: '5d97b1065c652c700fef53b4cdd3c92e3a49a82f', href: this.href, ref: link => (this.nativeLink = link), "aria-label": this.accessibleLabel, class: {
|
|
11082
11535
|
"duet-logo": true,
|
|
11083
11536
|
[this.size]: true,
|
|
11084
11537
|
"duet-theme-turva": this.theme === "turva",
|
|
@@ -11256,14 +11709,14 @@ class DuetMenuBar {
|
|
|
11256
11709
|
render() {
|
|
11257
11710
|
const slideoutAvailable = document.querySelectorAll("duet-slideout").length > 0;
|
|
11258
11711
|
const isUsedAsAdditionalHorizontalNav = slideoutAvailable && !this.logo;
|
|
11259
|
-
return (hAsync(Host, { key: '
|
|
11712
|
+
return (hAsync(Host, { key: '7424032f4fe4cf9e7391b652faddecf381ffd039' }, hAsync("nav", { key: '8c3201741b36da474a2241e8ba5b3e1dfb53a61e', class: {
|
|
11260
11713
|
"duet-menu-bar": true,
|
|
11261
11714
|
"duet-theme-turva": this.theme === "turva",
|
|
11262
11715
|
"horizontal-nav": isUsedAsAdditionalHorizontalNav,
|
|
11263
11716
|
"duet-menu-bar-slim": !this.centerSlotUsed,
|
|
11264
11717
|
hidden: this.hidden && this.hideOnScroll,
|
|
11265
11718
|
bottom: this.onBottom,
|
|
11266
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
11719
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '343657eeb7bbc89db0881a7bb0fe485bfcd6cdd6', class: "top" }), hAsync("div", { key: '7252aede6443560c0dd9d9b1da3be093312468aa', class: { container: true }, ref: el => (this.container = el), onScroll: () => this.scrollbarCheck() }, this.logo && (hAsync("div", { key: '95c2d74cb086c7ae350a20b2f10555ac8a9ccf18' }, hAsync("duet-logo", { key: '00d5ca62ce150e05e4015f1597692ed9122303e0', size: this.logoSize, margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }))), hAsync("div", { key: 'd11a1fe47483eaa847dd6e1b33fe3f022182056f', class: "list center", role: "list" }, hAsync("div", { key: '70d5324316868d9eac48fcf6f6519fce58f08411', class: "more-left", hidden: !this.leftMoreVisible, role: "presentation" }), hAsync("slot", { key: '3565b69ae8c95cbe9dcda578b6870cfcb680fa3e', name: "center" }), hAsync("div", { key: 'ea2d3738b94bcfec575da5cb1e2896e152780f2c', class: "more-right", hidden: !this.rightMoreVisible, role: "presentation" })), hAsync("div", { key: 'bc825dee9988ee497c9df9ef96a94c76d58e0de9', class: "list right", role: "list" }, hAsync("slot", { key: '3ebc272f053762d22d0fb80bc22093edf171fffa', name: "right" }))), hAsync("div", { key: '6ee303d3e34ebda33fefbd13d0b13ea0d43fbfa6', class: "bottom" }))));
|
|
11267
11720
|
}
|
|
11268
11721
|
get element() { return getElement(this); }
|
|
11269
11722
|
static get style() { return DuetMenuBarStyle0; }
|
|
@@ -11330,10 +11783,10 @@ class DuetMenuBarButton {
|
|
|
11330
11783
|
* Always the last one in the class.
|
|
11331
11784
|
*/
|
|
11332
11785
|
render() {
|
|
11333
|
-
return (hAsync(Host, { key: '
|
|
11786
|
+
return (hAsync(Host, { key: '7ede8c9b9c82a2c6bcdcfc416f3794834ab77293', role: "listitem", onfocus: () => this.setFocus() }, hAsync("button", { key: '6910d36f8ae066a551ca0143b2f34ec38775dfdb', ref: button => (this.nativeButton = button), class: {
|
|
11334
11787
|
"duet-menu-bar-button": true,
|
|
11335
11788
|
"duet-theme-turva": this.theme === "turva",
|
|
11336
|
-
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (hAsync("duet-icon", { key: '
|
|
11789
|
+
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (hAsync("duet-icon", { key: '0e45ee09f68a3aac1f440e01ace151783be7c120', class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: '1a0b04b92ffc25cf50f594a50d02be255f24aeba' }))));
|
|
11337
11790
|
}
|
|
11338
11791
|
get element() { return getElement(this); }
|
|
11339
11792
|
static get style() { return DuetMenuBarButtonStyle0; }
|
|
@@ -11416,17 +11869,17 @@ class DuetMenuBarDropdown {
|
|
|
11416
11869
|
* Always the last one in the class.
|
|
11417
11870
|
*/
|
|
11418
11871
|
render() {
|
|
11419
|
-
return (hAsync(Host, { key: '
|
|
11872
|
+
return (hAsync(Host, { key: '30ea5bdc409a19c4f606a08a851fc3a91f636e87', role: "listitem" }, hAsync("div", { key: '60eacea3711c3398f19bb391127b0a3742f6c779', class: {
|
|
11420
11873
|
"duet-menu-bar-dropdown": true,
|
|
11421
11874
|
"duet-theme-turva": this.theme === "turva",
|
|
11422
11875
|
active: this.open,
|
|
11423
11876
|
[`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
|
|
11424
|
-
} }, hAsync("button", { key: '
|
|
11877
|
+
} }, hAsync("button", { key: '87b94f39ed7bbbf01ec425ccadb044d64d797c59', ref: element => (this.button = element), "aria-label": this.accessibleLabel, "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
11425
11878
|
active: this.open,
|
|
11426
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
11879
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '5d1abdaafbd7e5b1bb75e46863f7d178799ee757', class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'a1d04c25159935646c9613c3f59d176af8a3ee3d', class: "label" }, hAsync("slot", { key: '48e78d6657df24ad22b495d244702169de00cfda', name: "label" }), hAsync("duet-icon", { key: '5577398b8bd80946812d5f3a816684707852337d', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '14071561dd61cdc2e5d918323587f4d30674d2dc', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
11427
11880
|
items: true,
|
|
11428
11881
|
hidden: !this.open,
|
|
11429
|
-
} }, hAsync("slot", { key: '
|
|
11882
|
+
} }, hAsync("slot", { key: 'c42c206ba4b3c97f6dcd92c72a1cffc13d57834c' })))));
|
|
11430
11883
|
}
|
|
11431
11884
|
get element() { return getElement(this); }
|
|
11432
11885
|
static get style() { return DuetMenuBarDropdownStyle0; }
|
|
@@ -11486,11 +11939,11 @@ class DuetMenuBarDropdownLink {
|
|
|
11486
11939
|
* Always the last one in the class.
|
|
11487
11940
|
*/
|
|
11488
11941
|
render() {
|
|
11489
|
-
return (hAsync(Host, { key: '
|
|
11942
|
+
return (hAsync(Host, { key: 'fe377ce2b21f3ec7de8c6db577d706ed4e9e8745' }, hAsync("a", { key: '583c2614e636104b1b2ff40c597e127550be5f5e', class: {
|
|
11490
11943
|
"duet-menu-bar-dropdown-link": true,
|
|
11491
11944
|
[`duet-menu-bar-dropdown-link--slot-${this.getVariant()}`]: true,
|
|
11492
11945
|
"duet-theme-turva": this.theme === "turva",
|
|
11493
|
-
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
11946
|
+
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '147d4e4ca57001748a3adf41757770577efb3113', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("slot", { key: '3b471e970dfa2dbb5054245bd0c459860a629c91' }))));
|
|
11494
11947
|
}
|
|
11495
11948
|
get element() { return getElement(this); }
|
|
11496
11949
|
static get style() { return DuetMenuBarDropdownLinkStyle0; }
|
|
@@ -11554,11 +12007,11 @@ class DuetMenuBarItem {
|
|
|
11554
12007
|
*/
|
|
11555
12008
|
render() {
|
|
11556
12009
|
const TagName = this.url ? "a" : "button";
|
|
11557
|
-
return (hAsync(Host, { key: '
|
|
12010
|
+
return (hAsync(Host, { key: '9a4fa3850a59a9e92ed6453f83ba66510ba98eed', role: "listitem" }, hAsync(TagName, { key: '89b1d29049ab6f5a5cde267a3ff6488c1fc9ee6f', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
11558
12011
|
"duet-menu-bar-item": true,
|
|
11559
12012
|
"duet-theme-turva": this.theme === "turva",
|
|
11560
12013
|
active: this.active,
|
|
11561
|
-
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '
|
|
12014
|
+
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '4c323e8083d3dabfa32c7ad10d5cef783c25b50e', class: "leading-icon", size: "auto", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: '2cdf47895c4330542078da87b401ca6e51467c6c' }), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: 'e0c912d7168f8ae6072f5329d3d451da30adf4db', class: {
|
|
11562
12015
|
"trailing-icon": !!this.trailingIcon,
|
|
11563
12016
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
11564
12017
|
"external-icon": !!this.external,
|
|
@@ -11613,11 +12066,11 @@ class DuetMenuBarLink {
|
|
|
11613
12066
|
* Always the last one in the class.
|
|
11614
12067
|
*/
|
|
11615
12068
|
render() {
|
|
11616
|
-
return (hAsync(Host, { key: '
|
|
12069
|
+
return (hAsync(Host, { key: '944fc042969f5fb1c958f2e2b3c3b90cf4ed09e8', role: "listitem" }, hAsync("a", { key: '8a379484694ccdd6eac62c98606b3d0410fd012f', class: {
|
|
11617
12070
|
"duet-menu-bar-link": true,
|
|
11618
12071
|
"duet-theme-turva": this.theme === "turva",
|
|
11619
12072
|
active: this.active,
|
|
11620
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
12073
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '6cb57d184b32ccf2d88b480cf6e14febee77d8bd', class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: 'be23134b984610bea7ed18384aad517712760e84' }))));
|
|
11621
12074
|
}
|
|
11622
12075
|
get element() { return getElement(this); }
|
|
11623
12076
|
static get style() { return DuetMenuBarLinkStyle0; }
|
|
@@ -11868,18 +12321,18 @@ class DuetModal {
|
|
|
11868
12321
|
var _a, _b;
|
|
11869
12322
|
let iconColor = "primary";
|
|
11870
12323
|
let closeColor = "secondary";
|
|
11871
|
-
const closingButton = (hAsync("div", { key: '
|
|
12324
|
+
const closingButton = (hAsync("div", { key: '0a05dbaf283737a1f77b62ab112c88b353464350', class: "duet-modal-close" }, hAsync("duet-button", { key: '3a87f9968b872763efed783e1014d1117f1d375f', ref: button => (this.buttonEl = button), variation: "plain", accessibleLabel: this.accessibleCloseLabel, color: closeColor, iconSize: "large", icon: "navigation-close", iconOnly: true, margin: "none", theme: this.theme, onClick: ev => this.closeModal(ev), fixed: true })));
|
|
11872
12325
|
if (this.theme === "turva") {
|
|
11873
12326
|
iconColor = "primary-turva";
|
|
11874
12327
|
closeColor = "secondary-turva";
|
|
11875
12328
|
}
|
|
11876
|
-
return (hAsync("div", { key: '
|
|
12329
|
+
return (hAsync("div", { key: 'c93f95ce929ec3c82786932e3d6a0fe5d82d3173', ref: modal => (this.modalEl = modal), "aria-label": (_a = this.accessibleLabel) !== null && _a !== void 0 ? _a : this.heading, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-describedby": this.accessibleDescribedBy, role: this.variation === "loader" ? "alert" : "dialog", "aria-modal": this.isSafariBrowser ? false : true, tabindex: "-1", class: {
|
|
11877
12330
|
"duet-modal-container": true,
|
|
11878
12331
|
"duet-theme-turva": this.theme === "turva",
|
|
11879
12332
|
"duet-modal-active": this.open,
|
|
11880
12333
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
11881
12334
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
11882
|
-
} }, hAsync("duet-overlay", { key: '
|
|
12335
|
+
} }, hAsync("duet-overlay", { key: '874d509e0e869ace4ec126dc6c4316f1618ac0d9', "z-index": "-1", visible: this.open, variation: this.variation === "loader" ? "white" : "default" }), hAsync("div", { key: 'fe13b5967653c95bb6fc6087d048de8b0dddae5c', ref: modalInner => (this.modalInnerEl = modalInner), class: {
|
|
11883
12336
|
"duet-modal-inner": true,
|
|
11884
12337
|
[this.size]: true,
|
|
11885
12338
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
@@ -11890,18 +12343,18 @@ class DuetModal {
|
|
|
11890
12343
|
this.closeModal(e);
|
|
11891
12344
|
}
|
|
11892
12345
|
}
|
|
11893
|
-
} }, hAsync("div", { key: '
|
|
12346
|
+
} }, hAsync("div", { key: '97db4dc604168bf16f732f70233bea7b08bc3269', ref: modalContentEl => (this.modalContentEl = modalContentEl), class: {
|
|
11894
12347
|
"duet-modal": true,
|
|
11895
12348
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
11896
12349
|
[this.size]: true,
|
|
11897
12350
|
[this.variation]: true,
|
|
11898
|
-
} }, this.gutterSize !== "none" && !this.hasStickyHeader && hAsync("duet-spacer", { key: '
|
|
12351
|
+
} }, this.gutterSize !== "none" && !this.hasStickyHeader && hAsync("duet-spacer", { key: 'e238c81f94ffdef58ced08126a52e121e010c1ba' }), this.hasStickyHeader ? (hAsync("div", { class: "duet-modal-sticky-header" }, closingButton, hAsync("slot", { name: "sticky-header" }))) : (closingButton), hAsync("div", { key: 'e6c7fe686edbee8d767ceb94c6c355b9de5f2932', class: {
|
|
11899
12352
|
"duet-modal-body": true,
|
|
11900
12353
|
"duet-modal-gutter-none": this.gutterSize === "none",
|
|
11901
12354
|
"duet-modal-gutter-small": this.gutterSize === "small",
|
|
11902
12355
|
"duet-modal-gutter-medium": this.gutterSize === "medium",
|
|
11903
12356
|
"duet-modal-gutter-large": this.gutterSize === "large",
|
|
11904
|
-
} }, hAsync("div", { key: '
|
|
12357
|
+
} }, hAsync("div", { key: '503f1759d8da05b03424f7cd4dc4fcbc1475b750', class: "duet-modal-header" }, hAsync("span", { key: '4da34d236160f41ebebcbedf021756e2e7f16e7a', class: "duet-modal-inner-slot-top" }, hAsync("slot", { key: 'a4ec96d9dbce295980f9310f4e346b7db2b2ae1c', name: "top" })), this.icon && hAsync("duet-icon", { key: '189ce6c874db5b0c63f6a4f99832467967660c36', name: this.icon, size: "xx-large", color: this.color || iconColor }), this.heading && (hAsync("duet-heading", { key: '1ea245199b5d0824fc099b8efd3c0c78a5685c46', "visual-level": (_b = this.headingVisualLevel) !== null && _b !== void 0 ? _b : this.headingLevel, level: this.headingLevel, theme: this.theme }, this.heading))), this.variation === "loader" && (hAsync("div", { key: 'b6445a691a50ba8c5c675e400b5452ffc8076df5', class: "duet-modal-spinner" }, hAsync("duet-spinner", { key: '5931daa7f184bfe4639353d28004a6c940b36854', size: "large", color: "primary" }))), hAsync("div", { key: '3fb83728c1ecb7aa1c1c5cebfb426322e57065eb', class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el), "aria-live": this.variation === "loader" ? "assertive" : "off" }, hAsync("slot", { key: '34cade5d14c9b734a6c330b9648a2d3d33cbe878' })))))));
|
|
11905
12358
|
}
|
|
11906
12359
|
get element() { return getElement(this); }
|
|
11907
12360
|
static get watchers() { return {
|
|
@@ -12166,23 +12619,23 @@ class DuetMultiselect {
|
|
|
12166
12619
|
*/
|
|
12167
12620
|
render() {
|
|
12168
12621
|
var _a;
|
|
12169
|
-
return (hAsync(Host, { key: '
|
|
12622
|
+
return (hAsync(Host, { key: '3a671559e08eccdf48ad44b9e9b52b7d7e48e0c6', class: {
|
|
12170
12623
|
"duet-m-0": this.margin === "none",
|
|
12171
12624
|
"duet-expand": this.expand,
|
|
12172
|
-
} }, hAsync("div", { key: '
|
|
12625
|
+
} }, hAsync("div", { key: 'fdf19e2d8b4d3b2badc1578e9024bb2aa3eb0c79', class: {
|
|
12173
12626
|
"duet-multiselect-container": true,
|
|
12174
12627
|
"duet-label-hidden": this.labelHidden,
|
|
12175
12628
|
"duet-theme-turva": this.theme === "turva",
|
|
12176
12629
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
12177
12630
|
"has-error": !!this.error,
|
|
12178
|
-
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync("duet-label", { key: '
|
|
12631
|
+
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync("duet-label", { key: 'a0fbdb1c0e5fb5bec6fd6bca6e2664daf8167857', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: this.identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: 'afa2b2750e582751ad2f939c06a926d642674d97', class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '6de41caacf1f02a5c1a1d066fd374ff3c4a11c5a', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '27d956b0dda43a64bde53c69d5e09c3a1187aee7', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '4f7e7596be60a0108a21644d0673d5f80e28ecd3', class: "duet-multiselect-wrapper" }, hAsync("button", { key: 'bbcf2b3c97dc20be60de1436ab54a12299fe249c', id: this.identifier, ref: el => (this.multiselectElement = el), class: { "duet-multiselect": true, "duet-multiselect-active": this.checkboxesVisible }, tabindex: "0", onClick: () => this.toggleCheckboxes(), onFocus: e => this.onFocus(e), onBlur: e => this.onBlur(e), role: "combobox", "aria-expanded": this.checkboxesVisible ? "true" : "false", "aria-haspopup": "listbox", "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-owns": `${this.identifier}-checkboxes`, onKeyDown: (e) => this.onMultiselectInputKeyDown(e), disabled: this.disabled }, hAsync("span", { key: '6cbf96b0870b6bcce05de05913c5bb7c52fe0f52', role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes`, "aria-label": this.placeholderLabel[this.language], class: "duet-multiselect-label" }, this.placeholder), this.value && this.value.length > 0 && (hAsync("span", { key: '314065c7594a074bc12181cb0e1ee435ee430430', class: "duet-multiselect-badge" }, this.value.length, hAsync("duet-visually-hidden", { key: '7aad3d1e91e90de0a0dfe7f36033e136c748d0ed' }, this.selectedLangObject[this.language], ", ", this.value.map(item => item.label).join(", ")))), hAsync("svg", { key: 'e72d639f91e3d087689764dd2328c72e8d891702', class: { "duet-multiselect-icon": true, "duet-multiselect-icon--rotate": this.checkboxesVisible }, fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'bb0c604921ecb5c00cf369fa4765093c88d62129', d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), hAsync("div", { key: 'a0ca77aba5de16cd53113ded0103d776062b84c9', id: `${this.identifier}-checkboxes`, role: "listbox", class: {
|
|
12179
12632
|
"duet-multiselect-checkboxes": true,
|
|
12180
12633
|
"duet-multiselect-checkboxes-active": this.checkboxesVisible,
|
|
12181
|
-
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: '
|
|
12634
|
+
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: '867656e4631ed271950191a5144ef7ec14f782eb', class: "duet-multiselect-all-control-buttons" }, hAsync("button", { key: 'b55d9d3e7f6726a76301c32276608b307353e9d9', class: "duet-multiselect-select-all", onClick: this.handleSelectAllClick, id: this.getOptionIdentifier(-2), onKeyDown: (e) => this.onCheckboxKeyDown(e, -2) }, this.selectAllLabel[this.language]), hAsync("button", { key: '94d9f908ea389d09f404906f75121a7d38eac415', class: "duet-multiselect-clear-all", onClick: this.handleClearAllClick, id: this.getOptionIdentifier(-1), onKeyDown: (e) => this.onCheckboxKeyDown(e, -1) }, this.clearAllLabel[this.language]))), this.processedItems &&
|
|
12182
12635
|
this.processedGroups.map(group => (hAsync("fieldset", null, group.label && hAsync("legend", null, group.label), group.items.map((item, key) => {
|
|
12183
12636
|
var _a, _b;
|
|
12184
12637
|
return (hAsync("duet-checkbox", { identifier: this.getOptionIdentifier(key), role: "option", label: item.label, value: item.value, key: item.value, checked: (_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(item), "accessible-selected": ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(item)) ? "true" : undefined, disabled: !this.checkboxesVisible || item.disabled, onDuetChange: e => this.toggleCheckbox(e, item), onKeyDown: (e) => this.onCheckboxKeyDown(e, key), theme: this.theme }));
|
|
12185
|
-
})))))), hAsync("span", { key: '
|
|
12638
|
+
})))))), hAsync("span", { key: '823e0b5d814cf797b45c231fded5191e17911527', class: "duet-multiselect-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '8ffa0864b4ff78136869432028f26f80957d38a2' }, this.error)))));
|
|
12186
12639
|
}
|
|
12187
12640
|
get element() { return getElement(this); }
|
|
12188
12641
|
static get watchers() { return {
|
|
@@ -12251,7 +12704,7 @@ class DuetNav {
|
|
|
12251
12704
|
* Always the last one in the class.
|
|
12252
12705
|
*/
|
|
12253
12706
|
render() {
|
|
12254
|
-
return (hAsync(Host, { key: '
|
|
12707
|
+
return (hAsync(Host, { key: 'c5ab5dae2e7d22ca95bc16e28afef27ae15afcb0' }, hAsync("div", { key: '4dce1e440de9e33921a8d156dd2a7e524e6a6f19', class: { container: true, sticky: this.sticky } }, hAsync("slot", { key: '6172b6cf2f4def6008bcf4738d66aff2042e9a0a' }), hAsync("slot", { key: 'd363f92ea1b28f1d09b413affc48e6780fb6374b', name: "mobile" }), hAsync("slot", { key: '6a7323e9949b9d2c68ddf41048c23aefa4873f0d', name: "desktop" }))));
|
|
12255
12708
|
}
|
|
12256
12709
|
get element() { return getElement(this); }
|
|
12257
12710
|
static get style() { return DuetNavStyle0; }
|
|
@@ -12310,11 +12763,11 @@ class DuetNotification {
|
|
|
12310
12763
|
this.linkElement.focus(options);
|
|
12311
12764
|
}
|
|
12312
12765
|
render() {
|
|
12313
|
-
return (hAsync("div", { key: '
|
|
12766
|
+
return (hAsync("div", { key: '890f3393ed0551fe1b939f89f6d2f04e892c4913', role: "listitem", class: {
|
|
12314
12767
|
"duet-notification": true,
|
|
12315
12768
|
"duet-notification-highlight": this.highlight,
|
|
12316
12769
|
"duet-theme-turva": this.theme === "turva",
|
|
12317
|
-
} }, hAsync("a", { key: '
|
|
12770
|
+
} }, hAsync("a", { key: 'cc685fd8b8b81325ed7e98bc08ae5503066ac612', ref: element => (this.linkElement = element), href: this.url, target: this.external ? "_blank" : "_self" }, hAsync("div", { key: '0e5be7a64538f4da436284ad7284230f1f86028d', class: "duet-notification-container" }, hAsync("div", { key: '307f2270705569eefc4200d8b2b0ff452116821d', class: "duet-notification-badge-container" }, this.highlight && (hAsync("div", { key: 'bbdb2452de67bf6e56bd8540ad0d34fc0a8d77e1', class: "duet-notification-badge" }, hAsync("duet-visually-hidden", { key: 'f01eee90a99d84210a27e271e3b2338cd35bb524' }, this.accessibleLabelUnread, ":")))), hAsync("div", { key: '6173ca5bd3321cffdcaee2ae9e8fa48c84c46651', class: "duet-notification-content" }, hAsync("slot", { key: '10edf0a272da934786f59453fb9700e5f8a53de0' })), hAsync("div", { key: '2dfad6249fe5be7e28f37fa6ddfb665f7cbd04f3', class: "duet-notification-date" }, this.date)))));
|
|
12318
12771
|
}
|
|
12319
12772
|
get element() { return getElement(this); }
|
|
12320
12773
|
static get style() { return DuetNotificationStyle0; }
|
|
@@ -12432,10 +12885,10 @@ class DuetNotificationDrawer {
|
|
|
12432
12885
|
* Always the last one in the class.
|
|
12433
12886
|
*/
|
|
12434
12887
|
render() {
|
|
12435
|
-
return (hAsync("div", { key: '
|
|
12888
|
+
return (hAsync("div", { key: 'd3c48a796945f129730ee58bb90a5d74fbe2d20a', class: {
|
|
12436
12889
|
"duet-drawer": true,
|
|
12437
12890
|
"duet-theme-turva": this.theme === "turva",
|
|
12438
|
-
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: '
|
|
12891
|
+
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: 'a475ca447ada0163de80bc07e655202171c5e303', ref: el => (this.drawerButtonEl = el), type: "button", class: "duet-drawer-toggle", id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (hAsync("div", { key: '6b0367bfa98ae6940f657ebd59591f6a9f37f88b', class: "duet-drawer-icon" }, hAsync("duet-icon", { key: 'd2fbb0ac6b02c5df43ffd02aa3267af80e0cb2e8', margin: "none", size: "x-small", name: this.icon, color: "currentColor" }), this.badge && hAsync("div", { key: '4d461ddfeb0718e2e8b02cc26b8a06a4302a54ac', class: "duet-drawer-badge" }))), hAsync("span", { key: '3648203174b5eb431f9f3c7d294c66c151435f1f', class: "duet-drawer-label" }, this.label), hAsync("div", { key: '98c6a53d3f09666c54320fc0805ee7b1acedcb01', class: "duet-drawer-caret" }, hAsync("duet-icon", { key: '025d6d0ed15cce1e08a4256fbe8bda777b8d98eb', margin: "none", size: "auto", icon: actionArrowDownSmall.svg, color: "currentColor" }))), hAsync("div", { key: 'bda418ac6381015dbbb2c588764161883af0e9c8', id: "duet-drawer-content", class: {
|
|
12439
12892
|
"duet-drawer-content": true,
|
|
12440
12893
|
"duet-drawer-right": this.direction === "right",
|
|
12441
12894
|
"duet-drawer-left": this.direction === "left",
|
|
@@ -12468,6 +12921,10 @@ class DuetNotificationDrawer {
|
|
|
12468
12921
|
}; }
|
|
12469
12922
|
}
|
|
12470
12923
|
|
|
12924
|
+
var actionAdd={"title":"action-add","tags":"action add plus","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z\"/></svg>"};
|
|
12925
|
+
|
|
12926
|
+
var actionSubtract={"title":"action-subtract","tags":"action subtract minus remove delete cancel","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z\"/></svg>"};
|
|
12927
|
+
|
|
12471
12928
|
/**
|
|
12472
12929
|
* function that takes a string value or number and looks for any character resembling a minus,
|
|
12473
12930
|
* it will then replace it with a hypen-minus and return the parseFloat value of that string
|
|
@@ -12525,7 +12982,7 @@ function ConvertToEnUS(value, locale, replaceThousands = false) {
|
|
|
12525
12982
|
const roundTo = (val, multiple) => Math.round(val / multiple) * multiple;
|
|
12526
12983
|
const clamp$1 = (val, min, max) => Math.min(Math.max(val, min), max);
|
|
12527
12984
|
|
|
12528
|
-
const duetNumberInputCss = "
|
|
12985
|
+
const duetNumberInputCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:\"\";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:\"\";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}";
|
|
12529
12986
|
var DuetNumberInputStyle0 = duetNumberInputCss;
|
|
12530
12987
|
|
|
12531
12988
|
/**
|
|
@@ -12539,6 +12996,7 @@ class DuetNumberInput {
|
|
|
12539
12996
|
this.duetBlur = createEvent$2(this, "duetBlur", 7);
|
|
12540
12997
|
this.duetFocus = createEvent$2(this, "duetFocus", 7);
|
|
12541
12998
|
this.inputId = createID("DuetInput");
|
|
12999
|
+
this.proxyId = createID("DuetInput");
|
|
12542
13000
|
/**
|
|
12543
13001
|
* Component event handling.
|
|
12544
13002
|
*/
|
|
@@ -12558,6 +13016,7 @@ class DuetNumberInput {
|
|
|
12558
13016
|
}
|
|
12559
13017
|
};
|
|
12560
13018
|
this.handleChange = (ev) => {
|
|
13019
|
+
ev.stopPropagation();
|
|
12561
13020
|
const input = ev.target;
|
|
12562
13021
|
if (input && input.value) {
|
|
12563
13022
|
try {
|
|
@@ -12778,6 +13237,8 @@ class DuetNumberInput {
|
|
|
12778
13237
|
disconnectLanguageChangeObserver(this);
|
|
12779
13238
|
unsubscribeTabbingChange(this);
|
|
12780
13239
|
}
|
|
13240
|
+
componentDidRender() {
|
|
13241
|
+
}
|
|
12781
13242
|
/**
|
|
12782
13243
|
* Sets focus on the specified `duet-number-input`. Use this method instead of the global
|
|
12783
13244
|
* `input.focus()`.
|
|
@@ -12811,14 +13272,19 @@ class DuetNumberInput {
|
|
|
12811
13272
|
* Always the last one in the class.
|
|
12812
13273
|
*/
|
|
12813
13274
|
render() {
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
13275
|
+
const identifier = this.identifier || this.inputId;
|
|
13276
|
+
const maxlength = `${this.localizeValue(this.max)} ${this.unit}`.length;
|
|
13277
|
+
const cleanedValue = !!this.value ? SafeParseFloat(this.value, this.locale) : null;
|
|
13278
|
+
return (hAsync(Host, { key: '27634a68033872b85ed0ac1d2baa3ab694680d41', class: {
|
|
13279
|
+
"duet-theme-turva": this.theme === "turva",
|
|
13280
|
+
"duet-expand": this.expand,
|
|
13281
|
+
"duet-m-0": this.margin === "none",
|
|
13282
|
+
} }, hAsync("div", { key: '6827f8b2e63c45d4c1a102af1cc451806e22c6b2', class: "duet-number-container" }, hAsync("duet-input", { key: '6ebc92848603fb489852d878a1d26aa75401527d', ref: input => (this.duetInputElement = input), onDuetChange: event => this.handleChange(event), onDuetFocus: this.handleFocus, onDuetBlur: event => this.handleBlur(event), onKeyDown: event => this.handleKeyDown(event), label: this.label, value: this.value ? `${this.value} ${this.unit}` : "", error: this.error, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": cleanedValue != null ? cleanedValue : "", maxlength: maxlength, name: this.name, component: "number", required: this.required, disabled: this.disabled, role: this.role, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true, numericKeyboard: true, autoComplete: "off", type: "text", accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleLabelledBy: this.accessibleLabelledBy, accessibleDescription: this.accessibleDescription, accessibleDetails: this.accessibleDetails, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy }, hAsync("slot", { key: '8d5588224b8d90b55c49aedf839923eccff05d0f', name: "tooltip" }), hAsync("div", { key: '26ecdb715139c53e42ad0365ddde6b73b66ba525', class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, hAsync("button", { key: '9ee76518bfa2851ddb3c195b1f2ae44b55b81a94', disabled: this.disabled, "aria-disabled": cleanedValue == null || cleanedValue === this.min ? "true" : "false", class: "duet-number-button duet-number-button-subtract", onClick: this.subtract, type: "button" }, hAsync("duet-visually-hidden", { key: 'af735c2a71d3ec8f158bad31f424f58eda96b371' }, this.accessibleSubtract, " ", this.step), hAsync("duet-icon", { key: '315b5a60f0c2930f1ebdbf54fa61b6f00ca2a2cc', icon: actionSubtract.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), hAsync("button", { key: '9b0f29334057be1214d1ed30a1cf192f5a40bca2', disabled: this.disabled, "aria-disabled": cleanedValue === this.max ? "true" : "false", class: "duet-number-button duet-number-button-add", onClick: this.add, type: "button" }, hAsync("duet-visually-hidden", { key: 'dad3dcf4e65c811e03147889494f664b875f0b95' }, this.accessibleAdd, " ", this.step), hAsync("duet-icon", { key: 'd9662ee9fd8d82605e4ee26c0b00826500674b0a', icon: actionAdd.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (hAsync("duet-visually-hidden", { key: '974d023f255a72941f249af920c4ffbff4786b37', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
|
|
12817
13283
|
}
|
|
12818
13284
|
get element() { return getElement(this); }
|
|
12819
13285
|
static get style() { return DuetNumberInputStyle0; }
|
|
12820
13286
|
static get cmpMeta() { return {
|
|
12821
|
-
"$flags$":
|
|
13287
|
+
"$flags$": 9,
|
|
12822
13288
|
"$tagName$": "duet-number-input",
|
|
12823
13289
|
"$members$": {
|
|
12824
13290
|
"language": [1025],
|
|
@@ -12902,7 +13368,7 @@ class DuetOverlay {
|
|
|
12902
13368
|
* Always the last one in the class.
|
|
12903
13369
|
*/
|
|
12904
13370
|
render() {
|
|
12905
|
-
return (hAsync(Host, { key: '
|
|
13371
|
+
return (hAsync(Host, { key: '06582c6852e2d6982612c3acc9fa8bbd09a275e3', "aria-hidden": "true" }, hAsync("div", { key: '4e3a9651ea3d397a1ea974216514c2e29ff35082', style: { zIndex: this.zIndex }, class: {
|
|
12906
13372
|
"duet-overlay": true,
|
|
12907
13373
|
"duet-theme-turva": this.theme === "turva",
|
|
12908
13374
|
"keep-stacking-context": this.keepStackingContext,
|
|
@@ -12972,12 +13438,12 @@ class DuetPageHeading {
|
|
|
12972
13438
|
*/
|
|
12973
13439
|
render() {
|
|
12974
13440
|
const layout = this.layout === "narrow" ? "narrow" : this.layout === "fluid" ? "fluid" : "auto";
|
|
12975
|
-
return (hAsync("div", { key: '
|
|
13441
|
+
return (hAsync("div", { key: '3f0397cbed93e749d4486cf990007f59ea93ce13', class: {
|
|
12976
13442
|
"duet-page-heading": true,
|
|
12977
13443
|
"duet-theme-turva": this.theme === "turva",
|
|
12978
13444
|
"has-icon": !!this.icon,
|
|
12979
13445
|
[layout]: true,
|
|
12980
|
-
} }, hAsync("div", { key: '
|
|
13446
|
+
} }, hAsync("div", { key: '1b66828676f13f2949f1ae77f184a1febc9c1f9c', class: "background" }, this.theme === "turva" && hAsync("div", { key: 'c7d6eb30d8a969debc22e0dac7e5d63a1ad23431', class: "background-mask" }), this.theme !== "turva" && hAsync("div", { key: 'eff5674f587d91449d40c1c58ec1d736123dae4b', class: "brand-shape" }), this.theme !== "turva" && hAsync("div", { key: 'bead352c11517d3cdc8bbe778872a5d1aeac3933', class: "brand-shape second-shape" }), this.icon && (hAsync("div", { key: 'af08880826e40a0c82a800625801f4783fe9bac8', class: "brand-shaped-icon" }, hAsync("duet-icon", { key: 'a0b0a5baf486627155ea0e5bb385752b62d5617a', background: "none", name: this.icon, margin: "none", size: "auto", responsive: false })))), hAsync("div", { key: '12d4f1a5336805f643f0a3aa25c40a688e92253c', class: "heading" }, hAsync("slot", { key: 'ff2c2f3da8dd82cd5943f24f1bedc609a13ae5d1', name: "heading" }), this.progressCurrentStep && this.progressTotalSteps && (hAsync("div", { key: 'a1e2fe5be47a7fb043006deddc1e728154062db9' }, hAsync("duet-spacer", { key: '7b1923732eec7a9b35f9b5b8a15687be6212fd90', size: "large" }), hAsync("div", { key: 'b6c4d4905ea4a19c0b466e1492debe516a0e2e6c', role: "presentation" }, this.progressIndicator()))))));
|
|
12981
13447
|
}
|
|
12982
13448
|
get element() { return getElement(this); }
|
|
12983
13449
|
static get style() { return DuetPageHeadingStyle0; }
|
|
@@ -13332,32 +13798,32 @@ class DuetPagination {
|
|
|
13332
13798
|
* Always the last one in the class.
|
|
13333
13799
|
*/
|
|
13334
13800
|
render() {
|
|
13335
|
-
return (hAsync(Host, { key: '
|
|
13801
|
+
return (hAsync(Host, { key: '63ebab0bf7dea080db742a196ec6cadd4faf3422', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("nav", { key: '5b4e1021fb02a66c75a69bd9d38aa122b02f0853', role: "navigation", "aria-labelledby": this.accessibleLabelledBy ? `${this.accessibleLabelledBy} ${this.listId}` : this.listId, "aria-describedby": this.accessibleDescribedBy ? `${this.accessibleDescribedBy} ${this.listId}` : this.listId, "aria-descriptions": this.accessibleDescription, "aria-details": this.accessibleDetails, ref: el => (this.nativeNav = el), "aria-controls": this.ariaControls, class: {
|
|
13336
13802
|
"duet-pagination-nav": true,
|
|
13337
13803
|
[`duet-pagination-variation-${this.variation}`]: true,
|
|
13338
|
-
} }, this.numbersStore !== "" && (hAsync("div", { key: '
|
|
13804
|
+
} }, this.numbersStore !== "" && (hAsync("div", { key: '93e3182cbbc58a95b98717a46d7b12493ec0818d', "aria-live": "assertive", "aria-relevant": "text", class: "duet-pagination-overlay", "aria-label": `${this.accessibleLabels.jump_to} ${this.numbersStore}`, part: "navigation-overlay" }, hAsync("duet-badge", { key: '2c4d460cefbb01010e16f981ee02a88c72676697', theme: this.theme }, "jump to page : ", this.numbersStore))), hAsync("ol", { key: '34474987dd9a26aea05634587138e95af4fe450c', id: this.listId, class: {
|
|
13339
13805
|
"duet-pagination": true,
|
|
13340
13806
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
13341
|
-
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: '
|
|
13807
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: 'c69df7d962b26a27a954c7d8bef8f535505a4cd1', class: {
|
|
13342
13808
|
"duet-pagination-page-button": true,
|
|
13343
13809
|
"duet-pagination-button-first": true,
|
|
13344
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
13810
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '901a11fde18ff828ab5ee44301b430f1551ff721', disabled: (this.internalSectionIndex === 0 && this.current <= 1) || this.disabled, "data-direction": "back", accessibleLabel: this.accessibleLabels.first_page, title: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), "icon-name": "action-move-to-first", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[0] : undefined }))), hAsync("li", { key: 'deb4f81302119384f87796c6c571d3bff92394cc', class: {
|
|
13345
13811
|
"duet-pagination-page-button": true,
|
|
13346
13812
|
"duet-pagination-button-first": true,
|
|
13347
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
13813
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '43edc2b4276101f2a199656d97905fbb5c318d01', disabled: !!((this.internalSectionIndex === 0 && this.current <= 1) ||
|
|
13348
13814
|
(this.current <= 1 && this.processedPageLinks) ||
|
|
13349
|
-
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '
|
|
13350
|
-
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '
|
|
13815
|
+
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (hAsync(Fragment, { key: 'e7bb804999bcc0049a36cee1cfed6eace4f69a9d' }, hAsync("li", { key: 'bc8e86d51a05ed7207c61130e03adab99972d990', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: 'c8cf1aa4d17fa21f4bac1df94d567ee7c6518926', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-jump-back", "center-text": "true", variation: "plain", color: this.theme !== "turva" ? "secondary" : "secondary-turva", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[0] : undefined }, hAsync("div", { key: '949333bff2072db55bc94f2038c0dc17086075f7', class: "duet-pagination-page-number" }, "1"))), hAsync("li", { key: 'a60a0b5db53ce3ab2d53ef5d621cb116bfc54a24', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: 'ac69e69536e75c62726f5d0ebc403575ff059b2b', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-dots-back", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1), theme: this.theme }, hAsync("div", { key: 'e6fa249f0f887d99b24f8d98f8b2872c7d259ffe', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026"))))), (this.shouldDisplayNavigation() && this.renderPageNumbers()) || this.renderSelect(), (this.internalSectionIndex + 1) * this.visibleItems < this.totalPages &&
|
|
13816
|
+
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '68d65a89a09e8f96f8079165c10677ea7e28eb16' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (hAsync("li", { key: '2b3a962f01999ee98fa7404fb492d70facca7ce0', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: '0007c2b7bfb175274c0d9bf0b6c44cb391573a4a', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-dots-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.next_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, 1), theme: this.theme }, hAsync("div", { key: '6fe7f71ea889cf3338600fd1bd0eb4f7ded1c02a', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), hAsync("li", { key: 'e2e34841b26b18aca84c76f43ef2d185528fefe4', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: '8947ea4940b1e8df4759fdf76fc53c2f77febaf7', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-jump-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), theme: this.theme, url: this.processedPageLinks
|
|
13351
13817
|
? this.processedPageLinks[this.processedPageLinks.length - 1]
|
|
13352
|
-
: undefined }, hAsync("div", { key: '
|
|
13818
|
+
: undefined }, hAsync("div", { key: '60e347e323fd4361a1cf408ee51e4bc67a9230d3', class: "duet-pagination-page-number" }, this.totalPages))))), hAsync("li", { key: '978ffca86c84b3fed8deaa3842f5ce5d1176699e', class: {
|
|
13353
13819
|
"duet-pagination-page-button": true,
|
|
13354
13820
|
"duet-pagination-button-last": true,
|
|
13355
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
13821
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '1d9c0a03632a95f0da443958fc9701410407ad24', disabled: !!((this.current === this.totalPages &&
|
|
13356
13822
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
13357
|
-
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: '
|
|
13823
|
+
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: '6387079d576477e9fd25739cc58563a16f3d7f00', class: {
|
|
13358
13824
|
"duet-pagination-page-button": true,
|
|
13359
13825
|
"duet-pagination-button-last": true,
|
|
13360
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
13826
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '6b41bfa37ce32dbc2a977aa9110659c8720d04ab', disabled: (this.current === this.totalPages &&
|
|
13361
13827
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
13362
13828
|
this.disabled, accessibleLabel: this.accessibleLabels.last_page, title: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), "icon-name": "action-move-to-last", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.totalPages - 1] : undefined })))))));
|
|
13363
13829
|
}
|
|
@@ -13431,7 +13897,7 @@ class DuetParagraph {
|
|
|
13431
13897
|
const color = getColorByName(this.color);
|
|
13432
13898
|
// aria-describedby is to fix accessibility issue in Chrome where duet-paragraphs
|
|
13433
13899
|
// are not announced when placed inside duet-modal
|
|
13434
|
-
return (hAsync(Host, { key: '
|
|
13900
|
+
return (hAsync(Host, { key: '3cf5f2bd4aeee4bd1c6314a7ac8d54539a87b895', "aria-describedby": this.id }, hAsync("p", { key: '1f9c9162b385ac72e8a47f7f80b69293ea6bfc78', id: this.id, class: {
|
|
13435
13901
|
"duet-paragraph": true,
|
|
13436
13902
|
"duet-paragraph-small": this.size === "small",
|
|
13437
13903
|
"duet-paragraph-semi-bold": this.weight === "semi-bold",
|
|
@@ -13439,7 +13905,7 @@ class DuetParagraph {
|
|
|
13439
13905
|
"duet-m-0": this.margin === "none",
|
|
13440
13906
|
[this.variation]: true,
|
|
13441
13907
|
"duet-theme-turva": this.theme === "turva",
|
|
13442
|
-
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: '
|
|
13908
|
+
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: 'd5c6a5b6d69f600454a85ad01f39406fd57b7188' }))));
|
|
13443
13909
|
}
|
|
13444
13910
|
get element() { return getElement(this); }
|
|
13445
13911
|
static get style() { return DuetParagraphStyle0; }
|
|
@@ -15183,11 +15649,11 @@ class DuetPopupMenuItem {
|
|
|
15183
15649
|
"duet-theme-turva": this.theme === "turva",
|
|
15184
15650
|
"active-descendant": this.activeDescendant,
|
|
15185
15651
|
};
|
|
15186
|
-
return (hAsync(Host, { key: '
|
|
15652
|
+
return (hAsync(Host, { key: 'd8a0f9f62ecc1abedce8431e27331ff3d88f4c24', role: this.accessibleRole }, hAsync(TagName, { key: '998d7156c8a1e789405240a5927923e83130eb48', ref: element => (this.itemElement = element), tabIndex: this.accessibleRole === "listitem" ? 0 : -1, onFocus: this.onFocus, onBlur: this.onBlur, role: `${TagName === "a" ? "link" : "button"}`, "aria-label": this.accessibleLabel, class: classes, value: this.value, href: this.url, target: this.external ? "_blank" : undefined, rel: this.external ? "noopener" : undefined, lang: TagName === "button" ? undefined : this.targetLanguage, hreflang: TagName === "button" ? undefined : this.targetLanguage }, this.leadingIcon && (hAsync("duet-icon", { key: 'db04fcce497b69525b6dafe5179aaff15a61a98f', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), hAsync("span", { key: 'f67feb833576c6272f80097877c16cc0c68f41f8', class: "duet-popup-menu-item-label" }, hAsync("slot", { key: 'bd8abe74d51a7398ab7ba70813dc1449ad5e0bb4' })), (this.trailingIcon || this.active || (this.url && this.external)) && (hAsync("duet-icon", { key: '3f75ee757d5ff1b5fa9055b897fd51c31f6919d5', name: this.url && this.external
|
|
15187
15653
|
? actionNewWindowSmall.title
|
|
15188
15654
|
: this.active
|
|
15189
15655
|
? "messaging-checked-small"
|
|
15190
|
-
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && hAsync("span", { key: '
|
|
15656
|
+
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && hAsync("span", { key: 'e716737df75eb8ee5512b2075e37ef539fe4ef2c', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
15191
15657
|
}
|
|
15192
15658
|
get element() { return getElement(this); }
|
|
15193
15659
|
static get style() { return DuetPopupMenuItemStyle0; }
|
|
@@ -15269,7 +15735,7 @@ class DuetProgress {
|
|
|
15269
15735
|
get element() { return getElement(this); }
|
|
15270
15736
|
static get style() { return DuetProgressStyle0; }
|
|
15271
15737
|
static get cmpMeta() { return {
|
|
15272
|
-
"$flags$":
|
|
15738
|
+
"$flags$": 9,
|
|
15273
15739
|
"$tagName$": "duet-progress",
|
|
15274
15740
|
"$members$": {
|
|
15275
15741
|
"accessibleDescribedBy": [1, "accessible-described-by"],
|
|
@@ -15342,12 +15808,12 @@ class DuetPromoCard {
|
|
|
15342
15808
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
15343
15809
|
};
|
|
15344
15810
|
const TagName = this.url ? "a" : "div";
|
|
15345
|
-
return (hAsync(Host, { key: '
|
|
15811
|
+
return (hAsync(Host, { key: 'cf0d6881f2f47a55a8143ca7b3456883bb2d772a', class: { "duet-m-0": this.margin === "none" } }, hAsync("aside", { key: '928893cdc7ec06b1d2c063bb97534847c647272e', class: {
|
|
15346
15812
|
"duet-promo-card": true,
|
|
15347
15813
|
"duet-theme-turva": this.theme === "turva",
|
|
15348
15814
|
"no-bg-color": !this.backgroundColor,
|
|
15349
15815
|
"duet-promo-card-link": !!this.url,
|
|
15350
|
-
}, style: bannerStyles }, hAsync(TagName, { key: '
|
|
15816
|
+
}, style: bannerStyles }, hAsync(TagName, { key: '364938761185a64da7aa41156bc9537a98214cd9', href: this.url, class: "content-wrapper", ref: element => (this.aOrDivElement = element) }, hAsync("img", { key: '2c0cf1389b24e9f83d2ceaa0f8c9b7d61497be6d', class: "image", src: this.image, alt: "", role: "presentation" }), hAsync("div", { key: '1d0b3d4c573a508916a2764704371938cde06015', class: "content" }, this.hasPreHeadingSlot && (hAsync("div", { key: '2b37c5cdafaed100d881143c347afb3c61001204', class: "pre-heading" }, hAsync("slot", { key: '25a7c6af10e95f45da8d0b541f62deef43e1425c', name: "pre-heading" }))), this.hasHeadingSlot && (hAsync("div", { key: 'd442b4843e6ef12edaf638fa40ea1dfeb7530b67', class: "heading" }, hAsync("duet-heading", { key: 'a958109c2ee15936268c1f4d2442c882b2201f23', theme: this.theme, level: this.headingLevel, "visual-level": "h3", margin: "none", color: this.textColor }, hAsync("span", { key: 'c0e6cfbc00e165a7d268e523f70fb9bd35319d74' }, hAsync("slot", { key: '0486de64216f817a4beea3c033cc8358b1c5e0e4', name: "heading" }))))), this.hasDescriptionSlot && (hAsync("div", { key: '290862c134b87ef88be10e76b8bbcdd4d3b81e4a', class: "description" }, hAsync("duet-paragraph", { key: '62c172d0ca03aaf5a07eebc9ba746522b3ad4111', theme: this.theme, margin: "none", color: this.textColor }, hAsync("span", { key: '2e1aa4953e82e554989d540ea3457b4e3bf41ab1' }, hAsync("slot", { key: 'e84b12f234411a1cc96e6e3162a1c0c18014dd2b', name: "description" }))))), this.hasActionSlot && (hAsync("div", { key: '2fb7c4c6c1c6e1726ea7ae5b2dc98964523f7161', class: "action" }, hAsync("slot", { key: '62ed799aa718b7dfe639a2c06e868ed5d019d881', name: "action" }))))))));
|
|
15351
15817
|
}
|
|
15352
15818
|
get element() { return getElement(this); }
|
|
15353
15819
|
static get style() { return DuetPromoCardStyle0; }
|
|
@@ -15370,7 +15836,7 @@ class DuetPromoCard {
|
|
|
15370
15836
|
}; }
|
|
15371
15837
|
}
|
|
15372
15838
|
|
|
15373
|
-
const duetRadioCss = "
|
|
15839
|
+
const duetRadioCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.vertical){margin-right:0 !important}:host(.horizontal){margin-bottom:0 !important;width:auto}:host(.horizontal) .duet-label .duet-label-content{max-width:100%}@media (min-width: 48em){:host(.horizontal-responsive){margin-right:28px !important;margin-bottom:0 !important;width:auto}:host(.horizontal-responsive):last-child,:host(.horizontal-responsive):last-of-type{margin-right:0 !important}:host(.horizontal-responsive) .duet-label .duet-label-content{max-width:100%}}:host(.duet-m-0){margin:0 !important}:host(:last-child:not(:only-child)){margin-right:0 !important;margin-bottom:0 !important}.duet-label{position:relative;z-index:100;display:flex;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;hyphens:auto;line-height:1.5;color:rgb(8, 42, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva .duet-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-label .duet-label-content{flex-grow:1;font-size:1rem}.duet-label-hidden .duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-radio-container{position:relative;width:100%;height:100%}.duet-label::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:\"\";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:50%}.duet-theme-turva .duet-label::before{border-color:rgb(23, 28, 58)}.duet-label.focus::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-label.focus::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-label.checked::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:\"\";background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-label.checked::after{background:rgb(23, 28, 58)}.duet-label.disabled{color:rgb(98, 121, 138)}.duet-theme-turva .duet-label.disabled{color:rgb(143, 147, 158)}.duet-label.disabled::before{border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-label.disabled::before{border-color:rgb(143, 147, 158)}.duet-label.disabled.checked::before{border:1px solid rgb(127, 150, 165)}.duet-label.disabled.checked::after{background:rgb(127, 150, 165)}.duet-theme-turva .duet-label.disabled.checked::after{background:rgb(143, 147, 158);border-color:rgb(143, 147, 158)}*::slotted([slot=input]){padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}*::slotted([slot=input][disabled]){cursor:default}";
|
|
15374
15840
|
var DuetRadioStyle0 = duetRadioCss;
|
|
15375
15841
|
|
|
15376
15842
|
/**
|
|
@@ -15386,6 +15852,70 @@ class DuetRadio {
|
|
|
15386
15852
|
* Own Properties.
|
|
15387
15853
|
*/
|
|
15388
15854
|
this.radioId = createID("DuetRadio");
|
|
15855
|
+
this.radioInputListenersRemove = radioInput => {
|
|
15856
|
+
radioInput.removeEventListener("change", this.onChange);
|
|
15857
|
+
//radioInput.removeEventListener("click", this.onRadioClick)
|
|
15858
|
+
radioInput.removeEventListener("focus", this.onFocus);
|
|
15859
|
+
radioInput.removeEventListener("blur", this.onBlur);
|
|
15860
|
+
};
|
|
15861
|
+
this.radioInputListenersAdd = radioInput => {
|
|
15862
|
+
radioInput.addEventListener("change", this.onChange);
|
|
15863
|
+
//radioInput.addEventListener("click", this.onRadioClick)
|
|
15864
|
+
radioInput.addEventListener("focus", this.onFocus);
|
|
15865
|
+
radioInput.addEventListener("blur", this.onBlur);
|
|
15866
|
+
};
|
|
15867
|
+
this.radioInputSetUp = () => {
|
|
15868
|
+
const slotInput = this.element.querySelector("input[slot=input]");
|
|
15869
|
+
const radioInput = slotInput || document.createElement("input");
|
|
15870
|
+
radioInput.slot = "input";
|
|
15871
|
+
radioInput.disabled = this.disabled || this.groupDisabled ? true : undefined;
|
|
15872
|
+
radioInput.id = this.identifier || this.radioId;
|
|
15873
|
+
radioInput.type = "radio";
|
|
15874
|
+
radioInput.name = this.name;
|
|
15875
|
+
radioInput.value = this.value;
|
|
15876
|
+
radioInput.checked = this.checked;
|
|
15877
|
+
if (this.accessibleIndex) {
|
|
15878
|
+
radioInput.tabIndex = Number(this.accessibleIndex);
|
|
15879
|
+
}
|
|
15880
|
+
radioInput.required = this.required;
|
|
15881
|
+
radioInput.role = this.role;
|
|
15882
|
+
if (this.accessibleControls) {
|
|
15883
|
+
radioInput.setAttribute("aria-controls", this.accessibleControls);
|
|
15884
|
+
}
|
|
15885
|
+
if (this.accessibleActiveDescendant) {
|
|
15886
|
+
radioInput.setAttribute("aria-activedescendant", this.accessibleActiveDescendant);
|
|
15887
|
+
}
|
|
15888
|
+
if (this.accessibleOwns) {
|
|
15889
|
+
radioInput.setAttribute("aria-owns", this.accessibleOwns);
|
|
15890
|
+
}
|
|
15891
|
+
if (this.accessibleDescribedBy) {
|
|
15892
|
+
radioInput.setAttribute("aria-describedby", this.accessibleDescribedBy);
|
|
15893
|
+
}
|
|
15894
|
+
if (this.accessibleLabelledBy) {
|
|
15895
|
+
radioInput.setAttribute("aria-labelledby", this.accessibleLabelledBy);
|
|
15896
|
+
}
|
|
15897
|
+
if (this.accessibleDetails) {
|
|
15898
|
+
radioInput.setAttribute("aria-details", this.accessibleDetails);
|
|
15899
|
+
}
|
|
15900
|
+
if (this.accessibleDescription) {
|
|
15901
|
+
radioInput.setAttribute("aria-description", this.accessibleDescription);
|
|
15902
|
+
}
|
|
15903
|
+
if (this.hasLabel) {
|
|
15904
|
+
const slotContent = getElementsFromNamedSlot(this.element, "label");
|
|
15905
|
+
radioInput.ariaLabel = slotContent.length > 0 ? slotContent[0].textContent : this.labelElement.textContent;
|
|
15906
|
+
}
|
|
15907
|
+
else {
|
|
15908
|
+
radioInput.ariaLabel = this.labelElement.textContent;
|
|
15909
|
+
}
|
|
15910
|
+
if (slotInput) {
|
|
15911
|
+
this.radioInputListenersRemove(radioInput);
|
|
15912
|
+
}
|
|
15913
|
+
else {
|
|
15914
|
+
this.element.appendChild(radioInput);
|
|
15915
|
+
}
|
|
15916
|
+
this.radioInputListenersAdd(radioInput);
|
|
15917
|
+
this.focusableElement = radioInput;
|
|
15918
|
+
};
|
|
15389
15919
|
/**
|
|
15390
15920
|
* Component event handling.
|
|
15391
15921
|
*/
|
|
@@ -15393,7 +15923,9 @@ class DuetRadio {
|
|
|
15393
15923
|
ev.stopPropagation();
|
|
15394
15924
|
};
|
|
15395
15925
|
this.onChange = (ev) => {
|
|
15396
|
-
|
|
15926
|
+
const input = this.focusableElement;
|
|
15927
|
+
const inputChecked = input.checked;
|
|
15928
|
+
this.checked = inputChecked;
|
|
15397
15929
|
if (this.checked && !this.blockEvents) {
|
|
15398
15930
|
this.duetChange.emit({
|
|
15399
15931
|
originalEvent: ev,
|
|
@@ -15404,6 +15936,7 @@ class DuetRadio {
|
|
|
15404
15936
|
}
|
|
15405
15937
|
};
|
|
15406
15938
|
this.onBlur = (ev) => {
|
|
15939
|
+
this.focus = false;
|
|
15407
15940
|
this.duetBlur.emit({
|
|
15408
15941
|
originalEvent: ev,
|
|
15409
15942
|
checked: this.checked,
|
|
@@ -15412,6 +15945,7 @@ class DuetRadio {
|
|
|
15412
15945
|
});
|
|
15413
15946
|
};
|
|
15414
15947
|
this.onFocus = (ev) => {
|
|
15948
|
+
this.focus = true;
|
|
15415
15949
|
this.duetFocus.emit({
|
|
15416
15950
|
originalEvent: ev,
|
|
15417
15951
|
checked: this.checked,
|
|
@@ -15419,6 +15953,7 @@ class DuetRadio {
|
|
|
15419
15953
|
component: "duet-radio",
|
|
15420
15954
|
});
|
|
15421
15955
|
};
|
|
15956
|
+
this.focus = false;
|
|
15422
15957
|
this.accessibleActiveDescendant = undefined;
|
|
15423
15958
|
this.accessibleDetails = undefined;
|
|
15424
15959
|
this.accessibleLabelledBy = undefined;
|
|
@@ -15447,32 +15982,41 @@ class DuetRadio {
|
|
|
15447
15982
|
*/
|
|
15448
15983
|
componentWillLoad() {
|
|
15449
15984
|
inheritGlobalTheme(this);
|
|
15450
|
-
this.hasLabel =
|
|
15451
|
-
;
|
|
15985
|
+
this.hasLabel = hasSlot(this.element, "label");
|
|
15452
15986
|
if (this.value === undefined) {
|
|
15453
15987
|
this.value = this.identifier;
|
|
15454
15988
|
}
|
|
15455
15989
|
}
|
|
15990
|
+
componentDidRender() {
|
|
15991
|
+
this.radioInputSetUp();
|
|
15992
|
+
}
|
|
15456
15993
|
/**
|
|
15457
15994
|
* Sets focus on the specified `duet-radio`. Use this method instead of the global
|
|
15458
15995
|
* `input.focus()`.
|
|
15459
15996
|
*/
|
|
15460
15997
|
async setFocus(options) {
|
|
15461
|
-
this.
|
|
15998
|
+
this.focusableElement.focus(options);
|
|
15462
15999
|
}
|
|
15463
16000
|
/**
|
|
15464
16001
|
* render() function
|
|
15465
16002
|
* Always the last one in the class.
|
|
15466
16003
|
*/
|
|
15467
16004
|
render() {
|
|
15468
|
-
{
|
|
15469
|
-
|
|
15470
|
-
|
|
16005
|
+
return (hAsync(Host, { key: '45b1545ee1fba45f0e798ecc8d00e3a1008626f8', onClick: this.onClick, class: {
|
|
16006
|
+
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
16007
|
+
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
16008
|
+
"duet-m-0": this.margin === "none",
|
|
16009
|
+
} }, hAsync("div", { key: '08a710d7eba8d2d525f28914ee1a607772193aad', class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("slot", { key: '0ae4454c2bbca3802ff1e39a9a8cc9fa8e5a0f55', name: "input" }), hAsync("label", { key: '135a95b34307d57a9af5fe5768da8df2a74e7803', inert: true, ref: element => (this.labelElement = element), class: {
|
|
16010
|
+
"duet-label": true,
|
|
16011
|
+
checked: this.checked,
|
|
16012
|
+
focus: this.focus,
|
|
16013
|
+
disabled: this.disabled || this.groupDisabled,
|
|
16014
|
+
} }, hAsync("div", { key: '908ecfc2809c9ff575ded9cc37c034921d7c4966', class: "duet-label-content" }, this.hasLabel ? hAsync("slot", { name: "label" }) : this.label)))));
|
|
15471
16015
|
}
|
|
15472
16016
|
get element() { return getElement(this); }
|
|
15473
16017
|
static get style() { return DuetRadioStyle0; }
|
|
15474
16018
|
static get cmpMeta() { return {
|
|
15475
|
-
"$flags$":
|
|
16019
|
+
"$flags$": 9,
|
|
15476
16020
|
"$tagName$": "duet-radio",
|
|
15477
16021
|
"$members$": {
|
|
15478
16022
|
"accessibleActiveDescendant": [1, "accessible-active-descendant"],
|
|
@@ -15497,6 +16041,7 @@ class DuetRadio {
|
|
|
15497
16041
|
"groupResponsive": [4, "group-responsive"],
|
|
15498
16042
|
"checked": [1540],
|
|
15499
16043
|
"value": [1537],
|
|
16044
|
+
"focus": [32],
|
|
15500
16045
|
"setFocus": [64]
|
|
15501
16046
|
},
|
|
15502
16047
|
"$listeners$": undefined,
|
|
@@ -15505,7 +16050,7 @@ class DuetRadio {
|
|
|
15505
16050
|
}; }
|
|
15506
16051
|
}
|
|
15507
16052
|
|
|
15508
|
-
const duetRadioGroupCss = "
|
|
16053
|
+
const duetRadioGroupCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}:host(.horizontal) .duet-radio-group{display:block}@media (min-width: 48em){:host(.horizontal) .duet-radio-group{display:flex}}:host(.horizontal) .duet-radio-group.duet-no-stacking{display:flex}.deut-radio-group{width:100%}";
|
|
15509
16054
|
var DuetRadioGroupStyle0 = duetRadioGroupCss;
|
|
15510
16055
|
|
|
15511
16056
|
/**
|
|
@@ -15617,9 +16162,7 @@ class DuetRadioGroup {
|
|
|
15617
16162
|
* Always the last one in the class.
|
|
15618
16163
|
*/
|
|
15619
16164
|
render() {
|
|
15620
|
-
{
|
|
15621
|
-
return;
|
|
15622
|
-
}
|
|
16165
|
+
return (hAsync(Host, { key: 'e516156e7c44831a8e14c4025a5533d4b2a4b7c9', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, hAsync("duet-fieldset", { key: 'dec5b7cb93bc57ea111b05a52dc0a3c2bf34cd79', label: this.label, labelHidden: this.labelHidden, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (hAsync("duet-tooltip", { key: 'e26e641c572e513574e148f6fb7132a6456a5692', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '27b29b5694912bcbac44b04c4842eaf18acfb941', name: "tooltip" }), hAsync("div", { key: '6ddeead79d117c688fcb68166a7eecbd51f5b7df', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: '3b8f61ca49010d8ebd8aed718c514a5e51f9feaf' })))));
|
|
15623
16166
|
}
|
|
15624
16167
|
get element() { return getElement(this); }
|
|
15625
16168
|
static get watchers() { return {
|
|
@@ -15631,7 +16174,7 @@ class DuetRadioGroup {
|
|
|
15631
16174
|
}; }
|
|
15632
16175
|
static get style() { return DuetRadioGroupStyle0; }
|
|
15633
16176
|
static get cmpMeta() { return {
|
|
15634
|
-
"$flags$":
|
|
16177
|
+
"$flags$": 9,
|
|
15635
16178
|
"$tagName$": "duet-radio-group",
|
|
15636
16179
|
"$members$": {
|
|
15637
16180
|
"direction": [1],
|
|
@@ -15656,9 +16199,19 @@ class DuetRadioGroup {
|
|
|
15656
16199
|
}; }
|
|
15657
16200
|
}
|
|
15658
16201
|
|
|
15659
|
-
const duetRangeSliderCss = "
|
|
16202
|
+
const duetRangeSliderCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-range-container{position:relative;width:100%}.duet-output{position:absolute;top:12px;right:0;z-index:200;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);background:rgb(255, 255, 255)}.duet-theme-turva .duet-output{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-range-disabled .duet-output{color:rgb(127, 150, 165)}.duet-range-disabled.duet-theme-turva .duet-output{color:rgb(143, 147, 158)}.duet-range{position:relative;z-index:100;width:100%;height:4px;background:rgb(181, 198, 208);border-radius:4px}.duet-theme-turva .duet-range{background:rgb(199, 202, 207)}.duet-ie .duet-range{display:block;width:auto;height:26px;background:transparent !important}.duet-range::-moz-range-track{height:1px;background:transparent !important;border:0;-moz-appearance:none}.duet-range::-ms-track{color:transparent;background:transparent;border:0}.duet-range:focus,.duet-range:active{outline:0}:host(.user-is-tabbing) .duet-range:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(0, 119, 179, 0.75)}:host(.user-is-tabbing) .duet-theme-turva .duet-range:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(23, 28, 58, 0.75)}.duet-range::-webkit-slider-runnable-track{background:transparent}.duet-range::-webkit-slider-thumb{position:relative;width:24px;height:24px;cursor:-webkit-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%;transition:box-shadow 300ms ease;-webkit-appearance:none}.duet-theme-turva .duet-range::-webkit-slider-thumb{border-color:rgb(143, 147, 158)}.duet-range:active::-webkit-slider-thumb{cursor:-webkit-grabbing}.duet-range::-moz-range-thumb{position:relative;width:24px;height:24px;cursor:-moz-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%;appearance:none}.duet-theme-turva .duet-range::-moz-range-thumb{border-color:rgb(143, 147, 158)}.duet-range:active::-moz-range-thumb{cursor:-moz-grabbing}.duet-range::-ms-thumb{position:relative;width:24px;height:24px;overflow:visible;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%}.duet-theme-turva .duet-range::-ms-thumb{border-color:rgb(143, 147, 158)}.duet-range:disabled{background:rgb(181, 198, 208) !important}.duet-theme-turva .duet-range:disabled{background:rgb(199, 202, 207) !important}.duet-range:disabled::-webkit-slider-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-theme-turva .duet-range:disabled::-webkit-slider-thumb{background:rgb(199, 202, 207);border-color:transparent}.duet-range:disabled::-moz-range-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-theme-turva .duet-range:disabled::-moz-range-thumb{background:rgb(199, 202, 207);border-color:transparent}.duet-range:disabled::-ms-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-theme-turva .duet-range:disabled::-ms-thumb{background:rgb(199, 202, 207);border-color:transparent}.duet-range::-ms-fill-lower{height:4px;background:rgb(0, 119, 179)}.duet-theme-turva .duet-range::-ms-fill-lower{background:rgb(198, 12, 48)}.duet-range::-ms-fill-upper{height:4px;background:rgb(181, 198, 208)}.duet-theme-turva .duet-range::-ms-fill-upper{background:rgb(199, 202, 207)}.duet-label-hidden duet-label,.duet-label-hidden output{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}";
|
|
15660
16203
|
var DuetRangeSliderStyle0 = duetRangeSliderCss;
|
|
15661
16204
|
|
|
16205
|
+
const colors = {
|
|
16206
|
+
turva: {
|
|
16207
|
+
active: colorPrimaryTurva,
|
|
16208
|
+
inactive: colorGrayTurva,
|
|
16209
|
+
},
|
|
16210
|
+
default: {
|
|
16211
|
+
active: colorPrimary,
|
|
16212
|
+
inactive: colorGray,
|
|
16213
|
+
},
|
|
16214
|
+
};
|
|
15662
16215
|
class DuetRangeSlider {
|
|
15663
16216
|
constructor(hostRef) {
|
|
15664
16217
|
registerInstance(this, hostRef);
|
|
@@ -15668,6 +16221,7 @@ class DuetRangeSlider {
|
|
|
15668
16221
|
* Own Properties
|
|
15669
16222
|
*/
|
|
15670
16223
|
this.rangeId = createID("DuetRange");
|
|
16224
|
+
this.proxyId = createID("DuetRange");
|
|
15671
16225
|
/**
|
|
15672
16226
|
* Component event handling.
|
|
15673
16227
|
*/
|
|
@@ -15731,6 +16285,8 @@ class DuetRangeSlider {
|
|
|
15731
16285
|
disconnectedCallback() {
|
|
15732
16286
|
unsubscribeTabbingChange(this);
|
|
15733
16287
|
}
|
|
16288
|
+
componentDidRender() {
|
|
16289
|
+
}
|
|
15734
16290
|
/**
|
|
15735
16291
|
* Sets focus on the specified `duet-range-slider`. Use this method instead of the global
|
|
15736
16292
|
* `input.focus()`.
|
|
@@ -15749,14 +16305,25 @@ class DuetRangeSlider {
|
|
|
15749
16305
|
* Always the last one in the class.
|
|
15750
16306
|
*/
|
|
15751
16307
|
render() {
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
}
|
|
16308
|
+
const identifier = this.identifier || this.rangeId;
|
|
16309
|
+
const theme = this.theme === "turva" ? "turva" : "default";
|
|
16310
|
+
const { inactive, active } = colors[theme];
|
|
16311
|
+
const percentage = this.calculatePercentage();
|
|
16312
|
+
const rangeStyles = {
|
|
16313
|
+
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
16314
|
+
};
|
|
16315
|
+
return (hAsync(Host, { key: '88829030a8bbb0f4f4029de9ec16b04e3e476798', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, hAsync("div", { key: 'be11c8a8f243506acbd30ee4676104dbcea9a1ba', class: {
|
|
16316
|
+
"duet-range-container": true,
|
|
16317
|
+
"duet-label-hidden": this.labelHidden,
|
|
16318
|
+
"duet-theme-turva": this.theme === "turva",
|
|
16319
|
+
"duet-ie": isInternetExplorer(),
|
|
16320
|
+
"duet-range-disabled": this.disabled,
|
|
16321
|
+
} }, hAsync("duet-label", { key: 'c732b5fee1e4bfdb9873dfea49c26fdc34d6b03d', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small" }, this.label), hAsync("output", { key: '43e6503a9b071299e557c6e39b64679e32f8f483', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), hAsync("input", { key: '2cc4a064e002ac2c4ae45d6fd13f0bdc3401f5de', onInput: this.onInput, onChange: this.onChange, ref: input => (this.nativeInput = input), type: "range", min: this.min, max: this.max, step: this.step, value: this.value, style: rangeStyles, "aria-label": this.label, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} ${this.unit}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, id: identifier, name: this.name, disabled: this.disabled, required: this.required, class: "duet-range" }))));
|
|
15755
16322
|
}
|
|
15756
16323
|
get element() { return getElement(this); }
|
|
15757
16324
|
static get style() { return DuetRangeSliderStyle0; }
|
|
15758
16325
|
static get cmpMeta() { return {
|
|
15759
|
-
"$flags$":
|
|
16326
|
+
"$flags$": 9,
|
|
15760
16327
|
"$tagName$": "duet-range-slider",
|
|
15761
16328
|
"$members$": {
|
|
15762
16329
|
"theme": [1025],
|
|
@@ -15954,10 +16521,10 @@ class DuetRangeStepper {
|
|
|
15954
16521
|
* Always the last one in the class.
|
|
15955
16522
|
*/
|
|
15956
16523
|
render() {
|
|
15957
|
-
return (hAsync("div", { key: '
|
|
16524
|
+
return (hAsync("div", { key: 'e398ec0cf2d35150c78f4e3475fd7e4c95d646ad', class: {
|
|
15958
16525
|
"duet-range-stepper": true,
|
|
15959
16526
|
"duet-theme-turva": this.theme === "turva",
|
|
15960
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: '
|
|
16527
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: '24a874579791e03416eb316216ea44c6d35d7e0b', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), hAsync("duet-action-button", { key: '13d2b13c96b44797b61192a0e99c63ec0098e7a6', disabled: this.disabled || this.buttonLeftDisabled, class: "duet-range-step-button duet-range-step-minus", onClick: e => this.handleClick(e, -1), id: this.leftBn, "accessible-label": `${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`, ref: el => (this.leftBnRef = el), part: "navigation-arrow", iconName: "action-arrow-left-small", title: "" }), hAsync("duet-action-button", { key: 'd8b25262e3f9549252640e5479b83dd2c7ea4930', disabled: this.disabled || this.buttonRightDisabled, class: "duet-range-step-button duet-range-step-plus", onClick: e => this.handleClick(e, 1), "accessible-label": `${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow", iconName: "action-arrow-right-small", title: "" })));
|
|
15961
16528
|
}
|
|
15962
16529
|
get element() { return getElement(this); }
|
|
15963
16530
|
static get watchers() { return {
|
|
@@ -16207,21 +16774,21 @@ class DuetScrollable {
|
|
|
16207
16774
|
* Always the last one in the class.
|
|
16208
16775
|
*/
|
|
16209
16776
|
render() {
|
|
16210
|
-
return (hAsync(Host, { key: '
|
|
16777
|
+
return (hAsync(Host, { key: 'b4198b556c21a0b793694cfc88c23d2ae01d50bf', class: {
|
|
16211
16778
|
"duet-theme-turva": this.theme === "turva",
|
|
16212
16779
|
"duet-theme-default": this.theme === "default",
|
|
16213
|
-
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: '
|
|
16780
|
+
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: 'c15a9e37829ff7f41eb5c90156f78086777a44d7', class: {
|
|
16214
16781
|
collapse: true,
|
|
16215
16782
|
hide: !this.needsScrolling && !this.collapsed,
|
|
16216
|
-
} }, hAsync("duet-button", { key: '
|
|
16783
|
+
} }, hAsync("duet-button", { key: '69ac59727a4efdf372e05a241e53f3f465278782', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, hAsync("slot", { key: '9ae0e03e390f546425e0c4a36ba4e1b14e9df548', name: "collapse-button-label" })))), hAsync("div", { key: '693aa91ad582ae80b569a3d1c1cdcd6a2fd5b4fc', class: {
|
|
16217
16784
|
"duet-scrollable-items": true,
|
|
16218
16785
|
buttons: this.buttons,
|
|
16219
16786
|
center: this.center,
|
|
16220
|
-
} }, this.buttons && this.renderButton("left"), this.renderFadeOverlay("left"), hAsync("div", { key: '
|
|
16787
|
+
} }, this.buttons && this.renderButton("left"), this.renderFadeOverlay("left"), hAsync("div", { key: 'f24739dbd27c222602e2aaf283e1ebdbc9a4af0b', class: {
|
|
16221
16788
|
"duet-scrollable-list": true,
|
|
16222
16789
|
collapsed: this.collapsed,
|
|
16223
16790
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
16224
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: '
|
|
16791
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: 'a27f4a34f1c196b441eebf291c9cfd9e2a632299' })), this.renderFadeOverlay("right"), this.buttons && this.renderButton("right"))));
|
|
16225
16792
|
}
|
|
16226
16793
|
get element() { return getElement(this); }
|
|
16227
16794
|
static get watchers() { return {
|
|
@@ -16266,13 +16833,13 @@ class DuetSectionLayout {
|
|
|
16266
16833
|
* Always the last one in the class.
|
|
16267
16834
|
*/
|
|
16268
16835
|
render() {
|
|
16269
|
-
return (hAsync(Host, { key: '
|
|
16836
|
+
return (hAsync(Host, { key: '7f434babace607653e64faabeddb9c27bb616862', class: {
|
|
16270
16837
|
"duet-middle": this.middle,
|
|
16271
16838
|
"duet-ie": isInternetExplorer(),
|
|
16272
|
-
} }, hAsync("div", { key: '
|
|
16839
|
+
} }, hAsync("div", { key: '9fbdea587d94910e97eb9ecbea464c1778fc1ff8', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: 'f4c957ebabd014d3ebf626d7539f3542314ce0a1', class: {
|
|
16273
16840
|
"duet-layout": true,
|
|
16274
16841
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
16275
|
-
} }, hAsync("section", { key: '
|
|
16842
|
+
} }, hAsync("section", { key: 'd803f587fb3f7f481d22d2a3e3566bcd85c7f98b', class: "duet-main" }, hAsync("slot", { key: 'fb1c82948b2d25d0437c41743abf0f9ed666b4d5' }))))));
|
|
16276
16843
|
}
|
|
16277
16844
|
get element() { return getElement(this); }
|
|
16278
16845
|
static get style() { return DuetSectionLayoutStyle0; }
|
|
@@ -16290,7 +16857,7 @@ class DuetSectionLayout {
|
|
|
16290
16857
|
}; }
|
|
16291
16858
|
}
|
|
16292
16859
|
|
|
16293
|
-
const duetSelectCss = "
|
|
16860
|
+
const duetSelectCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host.duet-select-variation-tiny,:host.duet-select-variation-compact{position:relative;top:-2px;width:72px;margin:0 !important;vertical-align:baseline}:host.duet-select-variation-compact{width:auto}:host(.duet-m-0){margin:0 !important}duet-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-select-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-select-container{position:relative;width:100%}.duet-select-container.duet-select-variation-tiny{width:72px}.duet-select-wrapper{position:relative;width:100%;padding:15px 14px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-select-wrapper{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-select-variation-tiny .duet-select-wrapper{width:81px;padding:0 !important}.duet-select-variation-compact .duet-select-wrapper{padding:0 !important;line-height:1}.duet-select-wrapper select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;width:100%;height:100%;padding:0;margin:0;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;cursor:pointer;border:0;outline:none;opacity:0}.duet-theme-turva .duet-select-wrapper select{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-select-wrapper select:hover+.duet-select{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-select-wrapper select:hover+.duet-select{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-select-wrapper select:hover+.duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-select-wrapper select:hover+.duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper select:focus+.duet-select{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(23, 28, 58)}.duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(0, 119, 179)}.has-error .duet-select-wrapper select:focus+.duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-select-wrapper select:focus+.duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper select[disabled]{cursor:default !important}.duet-select-wrapper select[disabled]+.duet-select{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-select-wrapper select[disabled]+.duet-select{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-select-wrapper span.duet-keep-container-height{opacity:0}.duet-select-variation-compact .duet-select-wrapper span.duet-keep-container-height{display:none}.duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;display:block;width:100%;min-width:8rem;padding:12px 14px !important;padding-right:48px !important;overflow:hidden;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.has-error .duet-select{border-color:rgb(214, 28, 82) !important}.has-error .duet-select .duet-select-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-select{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-select .duet-select-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-select{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.duet-select svg{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva .duet-select svg{color:rgb(23, 28, 58)}.duet-select-variation-tiny .duet-select,.duet-select-variation-compact .duet-select{width:72px;min-width:inherit;padding:0 !important;margin-bottom:-4px;overflow:visible;font-weight:600;text-align:center}.duet-select-variation-tiny .duet-select duet-icon,.duet-select-variation-compact .duet-select duet-icon{padding-left:10px}.duet-select-variation-compact .duet-select{position:relative;width:fit-content;padding:7px 16px !important;font-size:0.875rem;line-height:1.1;text-align:right;border-radius:8px}.duet-select-help{display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-select-help span{display:block;margin-top:8px}.duet-theme-turva .duet-select-help{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(143, 147, 158)}.has-error .duet-select-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-select-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}";
|
|
16294
16861
|
var DuetSelectStyle0 = duetSelectCss;
|
|
16295
16862
|
|
|
16296
16863
|
function isOptionGroup(item) {
|
|
@@ -16440,9 +17007,24 @@ class DuetSelect {
|
|
|
16440
17007
|
* Always the last one in the class.
|
|
16441
17008
|
*/
|
|
16442
17009
|
render() {
|
|
16443
|
-
|
|
16444
|
-
|
|
16445
|
-
|
|
17010
|
+
const identifier = this.identifier || this.selectId;
|
|
17011
|
+
return (hAsync(Host, { key: '28f5db49f64ea0115fa20745df6d535fac98ca08', onClick: this.onClick, class: {
|
|
17012
|
+
"duet-m-0": this.margin === "none",
|
|
17013
|
+
"duet-expand": this.expand,
|
|
17014
|
+
[`duet-select-variation-${this.variation}`]: true,
|
|
17015
|
+
} }, hAsync("div", { key: '73e7a3937df41f97d6501cb393b05a1e11e07b97', class: {
|
|
17016
|
+
"duet-select-container": true,
|
|
17017
|
+
"duet-label-hidden": this.labelHidden,
|
|
17018
|
+
"duet-theme-turva": this.theme === "turva",
|
|
17019
|
+
[`duet-select-variation-${this.variation}`]: true,
|
|
17020
|
+
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
17021
|
+
"has-error": !!this.error,
|
|
17022
|
+
} }, hAsync("duet-label", { key: '1b908d4ce2db347aea7654f7d150c3536023be7e', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: 'f4ae4625f3844a0a4ff41ceeb5b09cc73f2c3139', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '56432a29cd588587216dcb91b1d7fa29ae80c12d', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '2664591e6e79d7786ecd95e2136b7eb6ac46eb43', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '17a7d144eb109640535302879dc8e46622f7542a', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: '2777dafee5e8f98ca467b83cfa672aeb2bd51d26', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), hAsync("select", { key: '2d00bf64843b3d4402d75b50660baaa701e776bd', ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, required: this.required }, this.placeholder && (hAsync("option", { key: '9f4a48986073692a67a221d489c3bc9402324828', disabled: true, selected: true, value: "" }, this.placeholder)), !this.processedItems ? (hAsync("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
|
|
17023
|
+
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
17024
|
+
}))), hAsync("div", { key: '00870092e20d5e30222ad0afa3072d1dfba03dce', class: {
|
|
17025
|
+
"duet-select": true,
|
|
17026
|
+
[`duet-select-variation-${this.variation}`]: true,
|
|
17027
|
+
}, "aria-hidden": "true" }, hAsync("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (hAsync("svg", { key: 'e1e57dfb22ba2d97a460c34b18a49355e8fa41a7', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '5fedaf97f4a4293f318512cc312d4c1d6ac9fce2', d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" })))) || (hAsync("duet-icon", { key: '52b2404b48602331e322f5ccf6f338cf5dba46e4', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), hAsync("span", { key: 'c647fdcfac98bfd444789464f4e89f905a3db068', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), hAsync("span", { key: '2f8730fa473524bdc6fbfe52f295215fe023b984', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '438e8329537edfc708bb57ce8de8d91abb7aaae8' }, this.error)))));
|
|
16446
17028
|
}
|
|
16447
17029
|
get element() { return getElement(this); }
|
|
16448
17030
|
static get watchers() { return {
|
|
@@ -16451,7 +17033,7 @@ class DuetSelect {
|
|
|
16451
17033
|
}; }
|
|
16452
17034
|
static get style() { return DuetSelectStyle0; }
|
|
16453
17035
|
static get cmpMeta() { return {
|
|
16454
|
-
"$flags$":
|
|
17036
|
+
"$flags$": 9,
|
|
16455
17037
|
"$tagName$": "duet-select",
|
|
16456
17038
|
"$members$": {
|
|
16457
17039
|
"variation": [1],
|
|
@@ -16515,9 +17097,9 @@ class DuetShapedImage {
|
|
|
16515
17097
|
const style = {
|
|
16516
17098
|
"--rotation": `${this.rotation}deg`,
|
|
16517
17099
|
};
|
|
16518
|
-
return (hAsync(Host, { key: '
|
|
17100
|
+
return (hAsync(Host, { key: '555cbcb9c76cbda51c3c4cede13d764de7334c4e', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, hAsync("span", { key: '11704c842ec39f85048625cc78eb3dac55c18508', class: {
|
|
16519
17101
|
"shaped-image": true,
|
|
16520
|
-
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: '
|
|
17102
|
+
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: 'f4ebb6576b8d69bc929ccae1662a87bc7c2481c7', class: "shaped-image-mask", role: "presentation" }, hAsync("span", { key: 'd7d83206a5d52dd0ec81ea25256ace0b0f68df6c', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
|
|
16521
17103
|
}
|
|
16522
17104
|
static get style() { return DuetShapedImageStyle0; }
|
|
16523
17105
|
static get cmpMeta() { return {
|
|
@@ -16625,12 +17207,12 @@ class DuetShowMore {
|
|
|
16625
17207
|
* Always the last one of the class.
|
|
16626
17208
|
*/
|
|
16627
17209
|
render() {
|
|
16628
|
-
return (hAsync(Host, { key: '
|
|
17210
|
+
return (hAsync(Host, { key: 'e795502d610ccc4d9fb5e2820c6e50a58b1f1d9d' }, hAsync("div", { key: '7f3dc284c84c60fea4742b85c080e43e4529b6f8', class: {
|
|
16629
17211
|
"duet-show-more": true,
|
|
16630
17212
|
"duet-theme-turva": this.theme === "turva",
|
|
16631
17213
|
"duet-m-0": this.margin === "none",
|
|
16632
17214
|
open: this.open,
|
|
16633
|
-
} }, hAsync("div", { key: '
|
|
17215
|
+
} }, hAsync("div", { key: '7f2d9de11a429a5d9e219cdeb5835e2ea8be2c2b', ref: ref => (this.contentElement = ref), class: { content: true }, id: this.contentId, tabindex: this.open ? "0" : "" }, hAsync("div", { key: 'f10b510dd9a1369178d5bc4259d2ef55fc569e10', class: { "slotted-content": true } }, hAsync("slot", { key: '21169537ec721827e96bd24710de3f5d6d81fa8f' }))), hAsync("duet-button", { key: 'fd0aae5f657aeab52c5a9a49003e0d70c3644a10', id: this.buttonId, variation: "plain", "accessible-label": this.buttonAriaOpen ? this.showLessAccessibleLabel : this.showMoreAccessibleLabel, "accessible-expanded": this.buttonAriaOpen ? "true" : "false", "accessible-controls": this.contentId, accessiblePressed: this.open, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "icon-right": true, icon: this.open ? "action-arrow-up-small" : "action-arrow-down-small", "icon-size": "medium-small", size: "small", margin: this.buttonMargin, padding: this.buttonPadding, theme: this.theme === "turva" ? "turva" : "default" }, hAsync("span", { key: 'e4996c3f3a786b12ef395679e892ccce7d84399d' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
|
|
16634
17216
|
}
|
|
16635
17217
|
get element() { return getElement(this); }
|
|
16636
17218
|
static get style() { return DuetShowMoreStyle0; }
|
|
@@ -17117,16 +17699,16 @@ class DuetSlideout {
|
|
|
17117
17699
|
};
|
|
17118
17700
|
const topLevelOpenMenuBarTranslation = getLocaleString(this.topLevelOpenMenuBarLangObject);
|
|
17119
17701
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
17120
|
-
return (hAsync(Host, { key: '
|
|
17702
|
+
return (hAsync(Host, { key: '7e5384e7a8da21a6bfcd4e6f84f8c0cb60d3250a' }, hAsync("div", { key: 'a0ddecf72e05002132592afbea9ab503e8929698', class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, this.modal && hAsync("duet-overlay", { key: 'bd9eb4bb301549c79486fbec4ec9cc3306001152', visible: this.open, "display-device": "large", zIndex: "600" }), hAsync("div", { key: '8bcb933d1862b16a784105144cbb830b085b7a37', ref: element => (this.dialog = element), tabindex: "-1", role: "dialog", id: "dialog", "aria-labelledby": "button", "aria-modal": this.isSafariBrowser ? false : true, "aria-flowto": "slot-container", class: {
|
|
17121
17703
|
dialog: true,
|
|
17122
17704
|
hidden: !this.open,
|
|
17123
17705
|
modal: this.modal,
|
|
17124
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
17706
|
+
}, style: styles }, hAsync(FocusGuard, { key: '4f32ae824a9963b9324a6a75aec30a1ec3b9da34', moveFocusTo: this.closeButton }), hAsync("div", { key: 'b3a2d23360f0080c3345925ab2dd3ba71726102e', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: '346320e78d1b3b31cd27505873e27d9de14e7105', class: "top" }, hAsync("button", { key: '70bd3ca676c250d31bf67ffc0cd4900c73d2e093', ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", "aria-label": `${exitTranslation}`, type: "button", class: {
|
|
17125
17707
|
"slideout-close": true,
|
|
17126
17708
|
active: this.open,
|
|
17127
|
-
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: '
|
|
17709
|
+
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: '1aa814b1f9015483a3b4bc7f473b5aede84f3cd0', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: 'f11c81c8efcdca2ddb6cdc987e2e1f220d467398', class: "sticky-header" }, hAsync("slot", { key: 'e0bf8ba236ee29c1f1b497df27b337ab1f96628a', name: "sticky-header" }))), hAsync("div", { key: 'dbf227d18aed0d6d3db65db6522ffda1b69d8dba', id: "slot-container", role: this.accessibleRole, "aria-label": this.openPanel ? topLevelOpenMenuBarTranslation : null, class: {
|
|
17128
17710
|
items: true,
|
|
17129
|
-
} }, hAsync("slot", { key: '
|
|
17711
|
+
} }, hAsync("slot", { key: 'facef4d207e8df7c34a8aeca8595d832fd6de5e6' })), hAsync(FocusGuard, { key: '5733820870caa0acd80b157d88b03ae1797360b8', moveFocusTo: this.closeButton })))));
|
|
17130
17712
|
}
|
|
17131
17713
|
get element() { return getElement(this); }
|
|
17132
17714
|
static get watchers() { return {
|
|
@@ -17193,7 +17775,7 @@ class DuetSlideoutLang {
|
|
|
17193
17775
|
*/
|
|
17194
17776
|
render() {
|
|
17195
17777
|
const langTranslation = getLocaleString(this.chooseLangObject);
|
|
17196
|
-
return (hAsync(Host, { key: '
|
|
17778
|
+
return (hAsync(Host, { key: 'd163f56230650efc540cf21892239905271a775e' }, hAsync("div", { key: '7b1d95d36da23db34a90055407a7f307ab0d4ffa', class: "duet-slideout-lang", role: "group", "aria-label": langTranslation }, hAsync("duet-icon", { key: '07ed0679705221e14ba5e20d0db83a5b3073a7cf', name: "navigation-language", margin: "none", color: "secondary" }), hAsync("slot", { key: 'e847d0a2bf84e7099988d6bc9f6e59dfa0ba99d7' }))));
|
|
17197
17779
|
}
|
|
17198
17780
|
get element() { return getElement(this); }
|
|
17199
17781
|
static get style() { return DuetSlideoutLangStyle0; }
|
|
@@ -17237,12 +17819,12 @@ class DuetSlideoutLink {
|
|
|
17237
17819
|
* Always the last one in the class.
|
|
17238
17820
|
*/
|
|
17239
17821
|
render() {
|
|
17240
|
-
return (hAsync(Host, { key: '
|
|
17822
|
+
return (hAsync(Host, { key: 'dbcb8bf6b8c65743fb716cbdda625cf4ea5162f8' }, hAsync("a", { key: '542c9910bad183af64eff3b965ef1cec19b4ac7b', class: {
|
|
17241
17823
|
"duet-slideout-link": true,
|
|
17242
17824
|
"duet-theme-turva": this.theme === "turva",
|
|
17243
17825
|
active: this.active,
|
|
17244
17826
|
[this.size]: true,
|
|
17245
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
17827
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: 'c192e191c1323e742022c48651a75c16017b4837', name: this.icon, color: "secondary", size: this.menuItem ? "x-small" : "medium", margin: "none" })), hAsync("div", { key: 'b0e214e358e524f13a884c78e1d78118b171e3ed', class: "label" }, hAsync("span", { key: 'af8697663031dc729bc98cf7c15cd2d58a03f861' }, hAsync("slot", { key: '84b1b365ac8fabcbf3c6451a8aa51caa18010aa9' }), hAsync("slot", { key: '82b78e911b41cfd441fb9eab798093f6b726c993', name: "description" })), this.caret && (hAsync("duet-icon", { key: 'ee835e2bd7427531239041e03b19ed4335b8ad74', name: "action-arrow-right", color: "secondary", size: "x-small", margin: "none" }))))));
|
|
17246
17828
|
}
|
|
17247
17829
|
get element() { return getElement(this); }
|
|
17248
17830
|
static get style() { return DuetSlideoutLinkStyle0; }
|
|
@@ -17402,23 +17984,23 @@ class DuetSlideoutPanel {
|
|
|
17402
17984
|
};
|
|
17403
17985
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
17404
17986
|
const backTranslation = getLocaleString(this.backLangObject);
|
|
17405
|
-
return (hAsync(Host, { key: '
|
|
17987
|
+
return (hAsync(Host, { key: '0318776fab9cea36b44efcbd8a066fc7a71aa59e' }, hAsync("div", { key: '1d95822243d5c86ec5b5173e4e681b4146e4476f', class: {
|
|
17406
17988
|
"duet-slideout-panel": true,
|
|
17407
17989
|
"duet-theme-turva": this.theme === "turva",
|
|
17408
17990
|
active: this.open,
|
|
17409
|
-
} }, hAsync("button", { key: '
|
|
17991
|
+
} }, hAsync("button", { key: 'a45e36b09686a148c2ba62e9984627920710ecb7', ref: element => (this.openButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
17410
17992
|
link: true,
|
|
17411
17993
|
active: this.active,
|
|
17412
|
-
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '
|
|
17994
|
+
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '6f2dee22c324bf4ead87048ebff2a20c47ca896a', class: "duet-slideout-icon" }, hAsync("duet-icon", { key: '44e1cac15f61dab325132fcc3514c8e0354cc43a', name: this.icon, size: "medium", margin: "none", color: "secondary" }), this.badge && hAsync("div", { key: '024312ec408282554844e751ab4b49d05b96b548', class: "duet-slideout-badge" }))), hAsync("span", { key: '283051aa5c3b14ee17ca9da70c094a57235e749e', class: "label" }, hAsync("span", { key: '81b5642422add92e13dbf34d95a26c0588858de7', class: { "label-text": true, [this.labelSize]: true } }, hAsync("slot", { key: 'd44a3600f9a66a1768a530317ee8e97d61d7d5a4', name: "label" })), hAsync("duet-icon", { key: '4e27c46508e15f8a57b08025121d7a30386fd7e1', class: "caret", name: "action-arrow-right", margin: "none", size: "x-small", color: "secondary" }))), hAsync("div", { key: '0e7fce1743db4fe772c3165ea76ddd2b5215e3c3', ref: element => (this.dialog = element), class: {
|
|
17413
17995
|
dialog: true,
|
|
17414
17996
|
hidden: !this.open,
|
|
17415
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
17997
|
+
}, style: styles }, hAsync(FocusGuard, { key: '40a3ed99c1bf1bceb7378326804d3f5e76a2caf0', moveFocusTo: this.closeButton }), hAsync("div", { key: '513ce8191e12b73aa0ec22360499905c9a120aca', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: 'f6d518848785f147415050e356dcfe42e00e64af', class: "top" }, hAsync("button", { key: '6c6d3320016eeabed6b06b5d997bf0fe871b7d5b', ref: element => (this.closeButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-label": `${backTranslation}`, type: "button", class: {
|
|
17416
17998
|
back: true,
|
|
17417
|
-
}, onClick: this.onClick }, hAsync("duet-icon", { key: '
|
|
17999
|
+
}, onClick: this.onClick }, hAsync("duet-icon", { key: 'e68686b85946c9e54babfb2aa7012e37048b6a23', class: "caret", name: "action-arrow-left", margin: "none", size: "small", color: "secondary" })), hAsync("span", { key: 'b2082182002d6fc1687fdbe1a75c30a62061a083' }, this.label.innerHTML), hAsync("button", { key: 'b6cfea3156d9398f6ff290c6abbdbdff55a16edd', class: "close", type: "button", onClick: this.onCloseClick, "aria-label": `${exitTranslation}` }, hAsync("duet-icon", { key: '4f973e329f5254a4d6fbb230bb2e1c815d07fab5', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: 'b2f3ca3d5bd5e4881cfbe6acd61b8ff209408f35', class: "sticky-header" }, hAsync("slot", { key: '9a1594cd89ffce28613a575b53219736fcf02bae', name: "sticky-header" }))), hAsync("div", { key: '74a5a1eefa940a78f4904f118fbb22da52177d83', tabindex: "-1", role: "menu",
|
|
17418
18000
|
//TODO: slideout menu fades out, needs to be instant
|
|
17419
18001
|
id: "menu", "aria-labelledby": "button", class: {
|
|
17420
18002
|
items: true,
|
|
17421
|
-
} }, hAsync("slot", { key: '
|
|
18003
|
+
} }, hAsync("slot", { key: '59168289af3be6afbf35af828da4800c1209809c' })), hAsync(FocusGuard, { key: '688c55a2b0881c10204aa353123bc524c88a23b9', moveFocusTo: this.closeButton })))));
|
|
17422
18004
|
}
|
|
17423
18005
|
get element() { return getElement(this); }
|
|
17424
18006
|
static get watchers() { return {
|
|
@@ -17488,16 +18070,16 @@ class DuetSlideoutPanelDropdown {
|
|
|
17488
18070
|
* Always the last one in the class.
|
|
17489
18071
|
*/
|
|
17490
18072
|
render() {
|
|
17491
|
-
return (hAsync(Host, { key: '
|
|
18073
|
+
return (hAsync(Host, { key: 'f7a1b3521e799c7792945551a66c1c295dd5ffdc' }, hAsync("div", { key: 'd63da6a1f3650e633c97795042a7b34b8ad48302', class: {
|
|
17492
18074
|
"duet-slideout-panel-dropdown": true,
|
|
17493
18075
|
"duet-theme-turva": this.theme === "turva",
|
|
17494
18076
|
active: this.open,
|
|
17495
|
-
} }, hAsync("button", { key: '
|
|
18077
|
+
} }, hAsync("button", { key: 'ed40e8b4d2a431e4f578ea26583a70b8977d951c', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
17496
18078
|
active: this.active,
|
|
17497
|
-
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: '
|
|
18079
|
+
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: '44a4510103738db121e37e1d18f3a5f2484e7683', name: this.icon, size: "medium", margin: "none", color: "secondary" }), hAsync("span", { key: 'b2ce145800f498a7382885190458bb49205b7ada', class: "label" }, hAsync("slot", { key: '6ce00dfcd2d2ef3ac62143b9150b80f1ecc9a69d', name: "label" }), hAsync("duet-icon", { key: 'e6890351789e07002b0b9fc85d79baf6862bd239', class: "caret", name: "action-arrow-down-small", margin: "none", size: "xx-small", color: "secondary" }))), hAsync("div", { key: '81a201018140f6519e9ed18baec3855790ef4cb4', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
17498
18080
|
items: true,
|
|
17499
18081
|
hidden: !this.open,
|
|
17500
|
-
} }, hAsync("slot", { key: '
|
|
18082
|
+
} }, hAsync("slot", { key: '473c54c7f46f6cb77f5656ff8c7d60106836aa73' })))));
|
|
17501
18083
|
}
|
|
17502
18084
|
get element() { return getElement(this); }
|
|
17503
18085
|
static get style() { return DuetSlideoutPanelDropdownStyle0; }
|
|
@@ -17532,7 +18114,7 @@ class DuetSpacer {
|
|
|
17532
18114
|
* Always the last one in the class.
|
|
17533
18115
|
*/
|
|
17534
18116
|
render() {
|
|
17535
|
-
return (hAsync(Host, { key: '
|
|
18117
|
+
return (hAsync(Host, { key: '9983782e43b5323f7af87b3b18656794fa851208', class: {
|
|
17536
18118
|
"duet-spacer": true,
|
|
17537
18119
|
"duet-spacer-xx-small": this.breakpoint === "xx-small",
|
|
17538
18120
|
"duet-spacer-x-small": this.breakpoint === "x-small",
|
|
@@ -17583,11 +18165,11 @@ class DuetSpinner {
|
|
|
17583
18165
|
*/
|
|
17584
18166
|
render() {
|
|
17585
18167
|
const color = this.color === "currentColor" ? "currentColor" : getColorByName(this.color);
|
|
17586
|
-
return (hAsync(Host, { key: '
|
|
18168
|
+
return (hAsync(Host, { key: 'dee78f5cd0044c327f345f8fc6f36a79eb92552e', class: {
|
|
17587
18169
|
"duet-custom-color": this.color !== "currentColor" && this.theme !== "turva" && this.theme !== "default",
|
|
17588
18170
|
"duet-theme-turva": this.theme === "turva" && this.color !== "currentColor",
|
|
17589
18171
|
"duet-theme-default": this.theme === "default" && this.color !== "currentColor",
|
|
17590
|
-
} }, hAsync("div", { key: '
|
|
18172
|
+
} }, hAsync("div", { key: 'e896d825e335fa91c0b583b17fce6b5012fee1ca', class: {
|
|
17591
18173
|
"duet-spinner": true,
|
|
17592
18174
|
[this.size]: true,
|
|
17593
18175
|
}, style: { color }, "aria-label": this.accessibleLabel })));
|
|
@@ -17693,9 +18275,13 @@ class DuetStep {
|
|
|
17693
18275
|
* Always the last one in the class.
|
|
17694
18276
|
*/
|
|
17695
18277
|
render() {
|
|
17696
|
-
{
|
|
17697
|
-
|
|
17698
|
-
|
|
18278
|
+
return (hAsync("div", { key: '4824107e0acf23c2c8705c98bf936075b57f0832', class: {
|
|
18279
|
+
"duet-step": true,
|
|
18280
|
+
[`is-${this.state}`]: true,
|
|
18281
|
+
"rounded-top": this.roundedTop,
|
|
18282
|
+
"rounded-bottom": this.roundedBottom,
|
|
18283
|
+
"duet-theme-turva": this.theme === "turva",
|
|
18284
|
+
} }, hAsync("div", { key: '090c1ada985e57f936ac65154af4e1cde73cf820', class: "duet-step-heading", id: this.buttonId, role: this.state !== "current" ? "button" : "region", "aria-current": this.state === "current" ? "step" : undefined, tabindex: this.state !== "current" ? "0" : undefined, "aria-disabled": this.isClickDisabled().toString(), "aria-expanded": (this.state === "current").toString(), "aria-controls": this.contentId, "aria-selected": (this.state === "current").toString(), onClick: this.handleClick, onKeyDown: this.handleKeyDown, ref: element => (this.buttonElement = element) }, hAsync("div", { key: '2fe4d50db56975760a58c1aa4a326758fbceeac8', "aria-hidden": "true" }, hAsync("div", { key: '9c2265041152125c05b017c65f432b9ec0c758d6', class: "duet-step-counter" }, this.renderStepCounter())), hAsync("duet-spacer", { key: '3820e59fd9b9cb0b9618eed034474a90293f3985', direction: "horizontal", size: "large", breakpoint: "small" }), hAsync("duet-spacer", { key: '9c3a323b02d4543d4791ba77a2bf90d2e0ed77bd', direction: "horizontal", size: "medium", breakpoint: "x-small" }), hAsync("div", { key: 'a50916963ca0efc77a309f009255f283b5584258' }, hAsync("duet-heading", { key: '637ef135f7d47160eba76bf7d736e0f0a8086282', theme: this.theme, level: this.headingLevel, visualLevel: "h4", color: this.headingColor(), margin: "none" }, this.heading)), hAsync("duet-spacer", { key: 'efe8ebfe55fbc93f526803ac66c469492967f21d', direction: "horizontal", size: "large" }), hAsync("div", { key: '0974cb5ac0bb24d1cf9bd7a1bfa2eaac4a67f18f', class: "duet-step-heading-slot" }, hAsync("slot", { key: 'f7ee80ecb5f96068f5dfc59f1a42cd17fca1f2c3', name: "heading-content" }))), hAsync("div", { key: '31fab92932786d05ac222d35e3097b4f4d9a014d', class: "duet-step-content-wrapper" }, hAsync("div", { key: '00679961075564d18dbd7faffa05618cf3dac572', class: "duet-step-content", role: "region", "aria-labelledby": this.buttonId, id: this.contentId }, hAsync("slot", { key: '898ad6c5810daff1adeb5d85ff6db990ae3d7c43' })))));
|
|
17699
18285
|
}
|
|
17700
18286
|
get element() { return getElement(this); }
|
|
17701
18287
|
static get style() { return DuetStepStyle0; }
|
|
@@ -17819,7 +18405,7 @@ class DuetStepper {
|
|
|
17819
18405
|
* Always the last one in the class.
|
|
17820
18406
|
*/
|
|
17821
18407
|
render() {
|
|
17822
|
-
return (hAsync(Host, { key: '
|
|
18408
|
+
return (hAsync(Host, { key: 'a9fd058aba3edef3374cccd0a93f842c0f9aaeb2', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '0669c1d5037caa0fd14184e653d7bcd8bff5c84e', class: { "duet-stepper": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("duet-visually-hidden", { key: 'c129a1a808027193572c28b4708b9bc036b117c2', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement()), hAsync("slot", { key: 'c6d77528bc6dcd5f9e3fd0d2a3ae62253fca0114' }))));
|
|
17823
18409
|
}
|
|
17824
18410
|
get element() { return getElement(this); }
|
|
17825
18411
|
static get watchers() { return {
|
|
@@ -17964,19 +18550,19 @@ class DuetSubmenuBar {
|
|
|
17964
18550
|
* Always the last one in the class.
|
|
17965
18551
|
*/
|
|
17966
18552
|
render() {
|
|
17967
|
-
return (hAsync(Host, { key: '
|
|
18553
|
+
return (hAsync(Host, { key: 'a63e21429e735858870de3a6c6b4f1d641ea0536' }, hAsync("nav", { key: 'ec81c1ea9da9a6a1f976e4f809a44f5a0cc9129f', class: {
|
|
17968
18554
|
"duet-submenu-bar": true,
|
|
17969
18555
|
"duet-theme-turva": this.theme === "turva",
|
|
17970
18556
|
hidden: this.hidden,
|
|
17971
|
-
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: '
|
|
18557
|
+
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: '9c7afa7571d91d251c0a9ed320dcfaefe4ff10ec', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
17972
18558
|
active: this.open,
|
|
17973
|
-
}, onClick: this.onClick }, hAsync("span", { key: '
|
|
18559
|
+
}, onClick: this.onClick }, hAsync("span", { key: '670e006fcab56b5057addd32c86e78c488a6a954', class: "label" }, hAsync("slot", { key: '6aeb5157b136b0d51ea614df7170db9901d7159a', name: "label" }), hAsync("duet-icon", { key: 'd7801a42f75a4b6dfde7c1bd197b5c4aafb7eb03', theme: this.theme, class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" })))), hAsync("div", { key: 'b527227c328438130d7ec32a80c7d9ac8ee472b2', class: {
|
|
17974
18560
|
"menu-container": true,
|
|
17975
18561
|
hidden: !this.open,
|
|
17976
|
-
}, role: "presentation" }, hAsync("div", { key: '
|
|
18562
|
+
}, role: "presentation" }, hAsync("div", { key: '60bcdce4e176cf742905e6eb6e50d4dc8046b1be', role: this.mobile ? "menu" : null, id: "menu", "aria-labelledby": this.mobile ? "button" : null, "aria-expanded": this.mobile ? (this.open ? "true" : "false") : null, class: {
|
|
17977
18563
|
items: true,
|
|
17978
18564
|
hidden: !this.open,
|
|
17979
|
-
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '
|
|
18565
|
+
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '69d9ea394265451a554e19db4e5105e21027a61e', class: "list", role: this.mobile ? "presentation" : "list" }, hAsync("slot", { key: '95f8cedf2b0590010f0a6560531e9306350b2c37' }), hAsync("div", { key: '780946443cd19822597df52bd006d3d3a30c2e5f', class: "list-padding" }))), hAsync("duet-overlay", { key: '19734aa5ac1dd7c03192d3310518173fa8a43c07', "keep-stacking-context": true, visible: this.open, "display-device": "not-large", transition: "immediate" })))));
|
|
17980
18566
|
}
|
|
17981
18567
|
get element() { return getElement(this); }
|
|
17982
18568
|
static get watchers() { return {
|
|
@@ -18097,18 +18683,18 @@ class DuetSubmenuBarDropdown {
|
|
|
18097
18683
|
* Always the last one in the class.
|
|
18098
18684
|
*/
|
|
18099
18685
|
render() {
|
|
18100
|
-
return (hAsync(Host, { key: '
|
|
18686
|
+
return (hAsync(Host, { key: '950ec986065630156024e30fc4ff3808bd83331e', role: "listitem" }, hAsync("div", { key: '8aa74d12b0b0e63f82062c705b61f3881a130ece', class: {
|
|
18101
18687
|
"duet-submenu-bar-dropdown": true,
|
|
18102
18688
|
"duet-theme-turva": this.theme === "turva",
|
|
18103
18689
|
open: this.open,
|
|
18104
18690
|
active: this.active,
|
|
18105
|
-
} }, hAsync("button", { key: '
|
|
18691
|
+
} }, hAsync("button", { key: '06132dc834775c0f78a00690e71381f2f8bc48dd', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
18106
18692
|
open: this.open,
|
|
18107
18693
|
active: this.active,
|
|
18108
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
18694
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '5808b4d746aacc6834d5c7cfc886cb2318ca11bf', class: "submenu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: '4d1a960326bb00837cdffa7d7968d1a09c246656', class: "label" }, hAsync("span", { key: '0b0fab9353193d5f65ba7a40474548653b0bd233', class: "label-text" }, hAsync("slot", { key: '6270448ade06bfe7555500c63eba0c0dd4bc589a', name: "label" })), hAsync("duet-icon", { key: '445ce13635b1ac94a6059dfa0cc74925bdb42829', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '72428c05d80b77b7443611c15548731847faf492', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
18109
18695
|
items: true,
|
|
18110
18696
|
hidden: !this.open,
|
|
18111
|
-
} }, hAsync("slot", { key: '
|
|
18697
|
+
} }, hAsync("slot", { key: 'da23085cb0178dc3a796bfef1127aff57a055703' })))));
|
|
18112
18698
|
}
|
|
18113
18699
|
get element() { return getElement(this); }
|
|
18114
18700
|
static get style() { return DuetSubmenuBarDropdownStyle0; }
|
|
@@ -18160,12 +18746,12 @@ class DuetSubmenuBarDropdownLink {
|
|
|
18160
18746
|
* Always the last one in the class.
|
|
18161
18747
|
*/
|
|
18162
18748
|
render() {
|
|
18163
|
-
return (hAsync(Host, { key: '
|
|
18749
|
+
return (hAsync(Host, { key: 'a746efa1453d4cec928e66f4122f1a1b593e8442' }, hAsync("a", { key: '6c959b9aad16526f25fa0f8c94d544e47850a69b', class: {
|
|
18164
18750
|
"duet-submenu-bar-dropdown-link": true,
|
|
18165
18751
|
"duet-theme-turva": this.theme === "turva",
|
|
18166
18752
|
highlight: this.highlight,
|
|
18167
18753
|
active: this.active,
|
|
18168
|
-
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '
|
|
18754
|
+
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: 'c0fc8773a756787903d3e312ebabdae1f5854445', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), hAsync("span", { key: 'e3970bb855fdb008fe5c71d5b70ffaa0c95c6ca1', class: "label-container" }, hAsync("span", { key: '615e56e9b3b4c900b96ae2e77435dcfd29a9a321', class: "label" }, hAsync("slot", { key: '66142de58ca0b982f962787e57583acf2645acd2' })), this.caret && hAsync("duet-icon", { key: '690f5210ff9271e47c36a9ec86fbe0c427a7e823', name: "action-arrow-right-small", size: "xxx-small", margin: "none" })), this.active && (hAsync("duet-icon", { key: '019e32fdb4672495348327df056ff55e5654c91d', class: "active-check", name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
18169
18755
|
}
|
|
18170
18756
|
get element() { return getElement(this); }
|
|
18171
18757
|
static get style() { return DuetSubmenuBarDropdownLinkStyle0; }
|
|
@@ -18239,7 +18825,7 @@ class DuetSubmenuBarItem {
|
|
|
18239
18825
|
render() {
|
|
18240
18826
|
const TagName = this.url ? "a" : "button";
|
|
18241
18827
|
const role = this.url ? "link" : "button";
|
|
18242
|
-
return (hAsync(Host, { key: '
|
|
18828
|
+
return (hAsync(Host, { key: 'bbd6de093fd02cb675b6a27822e8fd64ae2e6e36', role: "listitem" }, hAsync(TagName, { key: '857df988d8c2d9ee3c830455d97496903f43af24', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: { "duet-submenu-bar-item": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.url, onKeyUp: e => this.handleEscape(e), "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, role: role, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '77a2683b345776fdd073d562025d01ad7b42b8cf', class: "leading-icon", theme: this.theme, name: this.leadingIcon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'e5e54d900b8e9861fd7f687c302a83e9a5d26087', class: "label" }, hAsync("span", { key: '7b8893ae6bd4a6209763cd1e88606495db78f84e', class: "label-text" }, hAsync("slot", { key: 'bd0380cd2eee95bed2c16884fdc77827a7748da2' })), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: '94315f7a4d4ab2444536fec20724bbbeaee83a65', class: {
|
|
18243
18829
|
"trailing-icon": !!this.trailingIcon,
|
|
18244
18830
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
18245
18831
|
"external-icon": !!this.external,
|
|
@@ -18300,7 +18886,7 @@ class DuetSubmenuBarLink {
|
|
|
18300
18886
|
* Always the last one in the class.
|
|
18301
18887
|
*/
|
|
18302
18888
|
render() {
|
|
18303
|
-
return (hAsync(Host, { key: '
|
|
18889
|
+
return (hAsync(Host, { key: 'd500cddc2f019854bae1756301dc68ae23835b10', role: "listitem" }, hAsync("a", { key: '3688cdd47046d93cae4ad667a348881d35449cb8', class: { "duet-submenu-bar-link": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.href, onKeyUp: e => this.handleEscape(e), "aria-current": this.active ? "true" : "false" }, this.icon && (hAsync("duet-icon", { key: 'c620d6cac216344f07879ad271f2488f9e4a3036', class: "submenu-bar-link-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("span", { key: '82438bf5ee24adf621d9e342de9886829f193176', class: "label" }, hAsync("slot", { key: '5ee0ae247c68b887845ce939e812e7923b994be8' })))));
|
|
18304
18890
|
}
|
|
18305
18891
|
get element() { return getElement(this); }
|
|
18306
18892
|
static get style() { return DuetSubmenuBarLinkStyle0; }
|
|
@@ -18319,7 +18905,7 @@ class DuetSubmenuBarLink {
|
|
|
18319
18905
|
}; }
|
|
18320
18906
|
}
|
|
18321
18907
|
|
|
18322
|
-
const duetTabCss = "
|
|
18908
|
+
const duetTabCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected{display:block}.duet-tab.has-content-id,.duet-tab.has-content-id.selected{display:none}:host(.user-is-tabbing) .duet-tab:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-tab.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";
|
|
18323
18909
|
var DuetTabStyle0 = duetTabCss;
|
|
18324
18910
|
|
|
18325
18911
|
class DuetTab {
|
|
@@ -18410,9 +18996,16 @@ class DuetTab {
|
|
|
18410
18996
|
* Always the last one in the class.
|
|
18411
18997
|
*/
|
|
18412
18998
|
render() {
|
|
18413
|
-
{
|
|
18414
|
-
|
|
18415
|
-
|
|
18999
|
+
return (hAsync("div", { key: '82a68331e195880eaab4d0975ebe843c8b0383e8', ref: element => {
|
|
19000
|
+
if (!this.contentId) {
|
|
19001
|
+
this.tabpanelElement = element;
|
|
19002
|
+
}
|
|
19003
|
+
}, role: "tabpanel", class: {
|
|
19004
|
+
"duet-theme-turva": this.theme === "turva",
|
|
19005
|
+
"duet-tab": true,
|
|
19006
|
+
selected: this.selected,
|
|
19007
|
+
"has-content-id": !!this.contentId,
|
|
19008
|
+
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, hAsync("slot", { key: '1c63bb93ad6c9c031569794c156568497ee28b27' })));
|
|
18416
19009
|
}
|
|
18417
19010
|
get element() { return getElement(this); }
|
|
18418
19011
|
static get watchers() { return {
|
|
@@ -18420,7 +19013,7 @@ class DuetTab {
|
|
|
18420
19013
|
}; }
|
|
18421
19014
|
static get style() { return DuetTabStyle0; }
|
|
18422
19015
|
static get cmpMeta() { return {
|
|
18423
|
-
"$flags$":
|
|
19016
|
+
"$flags$": 9,
|
|
18424
19017
|
"$tagName$": "duet-tab",
|
|
18425
19018
|
"$members$": {
|
|
18426
19019
|
"theme": [1025],
|
|
@@ -18644,27 +19237,27 @@ class DuetTabGroup {
|
|
|
18644
19237
|
render() {
|
|
18645
19238
|
const variationClass = this.variation === "plain-scrolling" ? "duet-tab-variation-plain" : `duet-tab-variation-${this.variation}`;
|
|
18646
19239
|
const isSwipeScrollable = this.variation === "checked" || this.variation === "plain-scrolling";
|
|
18647
|
-
return (hAsync("div", { key: '
|
|
19240
|
+
return (hAsync("div", { key: '55b19c0083ced74f0862c8879512d8a7ac550ccf', class: {
|
|
18648
19241
|
"duet-tab-group": true,
|
|
18649
19242
|
"duet-theme-turva": this.theme === "turva",
|
|
18650
19243
|
[variationClass]: true,
|
|
18651
19244
|
"duet-tab-plain-scrolling": this.variation === "plain-scrolling",
|
|
18652
19245
|
"duet-tab-group-scrolls": this.scrolls,
|
|
18653
19246
|
"duet-tab-group-collapses": this.collapses,
|
|
18654
|
-
}, "aria-label": this.accessibleLabel }, !isSwipeScrollable && this.tabs.length > 3 && this.collapses && (hAsync("duet-select", { key: '
|
|
19247
|
+
}, "aria-label": this.accessibleLabel }, !isSwipeScrollable && this.tabs.length > 3 && this.collapses && (hAsync("duet-select", { key: 'fa42a4e505fb4d94cfde64470682bcda87c4e8a8', value: this.selected.toString(), expand: true, label: this.label, labelHidden: this.labelHidden, theme: this.theme, onDuetChange: event => this.onTabSelect(Number(event.detail.value)), items: this.tabs.map((tab, index) => {
|
|
18655
19248
|
return { label: tab.label, value: index.toString() };
|
|
18656
|
-
}) })), hAsync("div", { key: '
|
|
19249
|
+
}) })), hAsync("div", { key: '5a4ba1e8089bd37f2bcd012ef58285369eb0282f', role: "tablist", class: {
|
|
18657
19250
|
"duet-m-0": this.margin === "none" || this.variation === "checked",
|
|
18658
19251
|
"duet-tab-group-tabs": true,
|
|
18659
19252
|
"duet-tab-group-hidden": this.tabs.length > 3 && !isSwipeScrollable,
|
|
18660
19253
|
"duet-tab-group-collapses": this.collapses,
|
|
18661
19254
|
}, ref: el => {
|
|
18662
19255
|
this.tabsContainer = el;
|
|
18663
|
-
} }, this.renderTab()), hAsync("div", { key: '
|
|
19256
|
+
} }, this.renderTab()), hAsync("div", { key: 'd80d6fdd3ad52d8c0dfd13d7ae1d906703eac971', class: {
|
|
18664
19257
|
"duet-tab-group-content": true,
|
|
18665
19258
|
"duet-m-0": this.margin === "none",
|
|
18666
19259
|
"checked-group-content": this.variation === "checked",
|
|
18667
|
-
} }, hAsync("slot", { key: '
|
|
19260
|
+
} }, hAsync("slot", { key: 'a14facc65a69917ede3d270a93919e949aa5116e' }))));
|
|
18668
19261
|
}
|
|
18669
19262
|
get element() { return getElement(this); }
|
|
18670
19263
|
static get style() { return DuetTabGroupStyle0; }
|
|
@@ -18768,7 +19361,7 @@ class DuetTable {
|
|
|
18768
19361
|
}
|
|
18769
19362
|
}
|
|
18770
19363
|
render() {
|
|
18771
|
-
return (hAsync(Host, { key: '
|
|
19364
|
+
return (hAsync(Host, { key: 'fe804ab98faa5a67150c751bb1c75fffd76d9979', class: {
|
|
18772
19365
|
[`duet-table-${this.variation}`]: true,
|
|
18773
19366
|
"duet-table-flattened": !this.matchesBreakpoint,
|
|
18774
19367
|
// sticky only valid when in regular table layout
|
|
@@ -18777,7 +19370,7 @@ class DuetTable {
|
|
|
18777
19370
|
"duet-m-0": this.margin === "none",
|
|
18778
19371
|
"duet-theme-turva": this.theme === "turva",
|
|
18779
19372
|
"duet-table-hide-head-visually": this.hideHeadVisually,
|
|
18780
|
-
} }, hAsync("slot", { key: '
|
|
19373
|
+
} }, hAsync("slot", { key: '5771327fbab3d42432e014a2f527de6c865d4999' })));
|
|
18781
19374
|
}
|
|
18782
19375
|
get element() { return getElement(this); }
|
|
18783
19376
|
static get watchers() { return {
|
|
@@ -18804,9 +19397,18 @@ class DuetTable {
|
|
|
18804
19397
|
}; }
|
|
18805
19398
|
}
|
|
18806
19399
|
|
|
18807
|
-
const duetTextareaCss = "
|
|
19400
|
+
const duetTextareaCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:block;width:100%;max-width:100%;text-align:left}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}duet-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-textarea-container{position:relative;width:100%;height:100%}.duet-textarea-container .duet-input-top-caption{display:none}.duet-textarea-container.duet-input-top-caption-shown .duet-input-top-caption{display:flex !important}.duet-textarea-wrapper{position:relative}.duet-textarea-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-theme-turva .duet-textarea{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.has-error .duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-textarea::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva .duet-textarea::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-textarea:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva .duet-textarea::-moz-placeholder{color:rgb(143, 147, 158)}.duet-textarea:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-textarea:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-textarea:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva .duet-textarea:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-textarea:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea[disabled]{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva .duet-textarea[disabled]{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important}.duet-textarea[disabled]::-webkit-input-placeholder{color:rgb(8, 42, 77);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva .duet-textarea[disabled]::-webkit-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled]::-moz-placeholder{color:rgb(8, 42, 77);opacity:1 !important}.duet-theme-turva .duet-textarea[disabled]::-moz-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled]:-ms-input-placeholder{color:rgb(8, 42, 77)}.duet-theme-turva .duet-textarea[disabled]:-ms-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #747475}.has-error .duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-textarea:focus{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-textarea:focus{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-textarea:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-textarea:focus{box-shadow:0 0 0 1px #e55039}.duet-textarea:not(:focus):not(:hover):invalid{box-shadow:none}.duet-textarea-help{font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;line-height:1.25}.duet-textarea-help span{display:block;margin-top:8px}.duet-theme-turva .duet-textarea-help{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(143, 147, 158)}.has-error .duet-textarea-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-textarea-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-character-count{display:block;margin:8px 0 0 auto}";
|
|
18808
19401
|
var DuetTextareaStyle0 = duetTextareaCss;
|
|
18809
19402
|
|
|
19403
|
+
const CharacterCount = ({ value, maxlength, label, theme }) => {
|
|
19404
|
+
if (maxlength == null) {
|
|
19405
|
+
return;
|
|
19406
|
+
}
|
|
19407
|
+
const length = value.length;
|
|
19408
|
+
const remainder = Math.max(maxlength - length, 0); // ensure we never have negative numbers
|
|
19409
|
+
const isApproachingLimit = remainder / maxlength <= 0.1; // <= 10% chars remaining
|
|
19410
|
+
return (hAsync("div", { class: "duet-character-count" }, hAsync("duet-caption", { margin: "none", theme: theme, size: "small" }, hAsync("duet-visually-hidden", { "aria-live": "polite", "aria-atomic": "true", class: "duet-textarea-counter-remaining" }, isApproachingLimit && `${remainder} ${label}`), hAsync("span", { "aria-hidden": "true" }, length, "/", maxlength))));
|
|
19411
|
+
};
|
|
18810
19412
|
/**
|
|
18811
19413
|
* @slot tooltip - Use to place a tooltip alongside the label.
|
|
18812
19414
|
*/
|
|
@@ -18821,6 +19423,7 @@ class DuetTextarea {
|
|
|
18821
19423
|
* Own Properties
|
|
18822
19424
|
*/
|
|
18823
19425
|
this.textareaId = createID("DuetTextarea");
|
|
19426
|
+
this.proxyId = createID("DuetTextarea");
|
|
18824
19427
|
this.topCaptionId = createID("DuetCaptionTop");
|
|
18825
19428
|
this.topCaptionPlaceholderId = createID("DuetCaptionPlaceholderTop");
|
|
18826
19429
|
this.labelId = createID("DuetLabel");
|
|
@@ -18946,6 +19549,8 @@ class DuetTextarea {
|
|
|
18946
19549
|
disconnectedCallback() {
|
|
18947
19550
|
disconnectLanguageChangeObserver(this);
|
|
18948
19551
|
}
|
|
19552
|
+
componentDidRender() {
|
|
19553
|
+
}
|
|
18949
19554
|
/**
|
|
18950
19555
|
* Sets focus on the specified `duet-textarea`. Use this method instead of the global
|
|
18951
19556
|
* `textarea.focus()`.
|
|
@@ -18958,9 +19563,20 @@ class DuetTextarea {
|
|
|
18958
19563
|
* Always the last one in the class.
|
|
18959
19564
|
*/
|
|
18960
19565
|
render() {
|
|
18961
|
-
|
|
18962
|
-
|
|
18963
|
-
|
|
19566
|
+
const identifier = this.identifier || this.textareaId;
|
|
19567
|
+
return (hAsync(Host, { key: 'afb475015d0e4ad8439c1a2baf3ecd6196d608a4', class: {
|
|
19568
|
+
"duet-m-0": this.margin === "none",
|
|
19569
|
+
"duet-has-counter": this.counter && !this.error,
|
|
19570
|
+
"duet-expand": this.expand,
|
|
19571
|
+
} }, hAsync("div", { key: '0978415bfb413a15d80dfffc46c1e4d4990989dd', class: {
|
|
19572
|
+
"duet-textarea-container": true,
|
|
19573
|
+
"duet-theme-turva": this.theme === "turva",
|
|
19574
|
+
"duet-label-hidden": this.labelHidden,
|
|
19575
|
+
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
19576
|
+
"has-error": !!this.error,
|
|
19577
|
+
} }, hAsync("duet-label", { key: 'd2bc5abddc08c58802a4123e8bfecd42d8ef286e', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: 'ecb4778229571b2a0430cd8440a383b8e7a9ce4c', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: 'f55c7c3f480ed44c6476a276ecc8a21213b08ee9', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '9508ae1e04ff3a74551efa81779c7e6f5ac5b3e8', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), hAsync("div", { key: 'fa901006cd5a7ef28e443fb0ec1e289e7b91fd02', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: 'f352aa22e295837c2697022318f0ed3e27bdef8b', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), hAsync("textarea", { key: 'b481afa761533533c22861249961fea2b6933a99', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), hAsync("duet-grid", { key: '5448fd837456b03dbf6c6beb3fddc63e6ab767ff', alignment: "stretch" }, hAsync("duet-grid-item", { key: '23a4a4c7166b21e3749164f384def7a733421c59', margin: "none", fill: true }, hAsync("div", { key: 'a0d0109c87a899274270d83e5dd2ec30df16caa6', class: "duet-textarea-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'f23227e447ca85e2e8e79ebdea459d6ebfcd0420' }, this.error))), hAsync("duet-grid-item", { key: '3646d29d504b4f9c9cce38f66e58e8f994e54fb8', margin: "none", class: "duet-character-count-caption" }, this.counter && (hAsync(CharacterCount, { key: '83b2e50ae63c30e0cd0beff5891309b8ce36e6a7', theme: this.theme, value: this.value, maxlength: this.maxlength, label: this.counterLabel })))), this.counter && (hAsync("duet-visually-hidden", { key: '66fd9e4bab5013f6afd24a99dc1fbe2aa56ed5a9', class: "duet-visually-hidden", id: this.characterCountId, ref: el => {
|
|
19578
|
+
this.hiddenCounterLabel = el;
|
|
19579
|
+
} })))));
|
|
18964
19580
|
}
|
|
18965
19581
|
get element() { return getElement(this); }
|
|
18966
19582
|
static get watchers() { return {
|
|
@@ -18968,7 +19584,7 @@ class DuetTextarea {
|
|
|
18968
19584
|
}; }
|
|
18969
19585
|
static get style() { return DuetTextareaStyle0; }
|
|
18970
19586
|
static get cmpMeta() { return {
|
|
18971
|
-
"$flags$":
|
|
19587
|
+
"$flags$": 9,
|
|
18972
19588
|
"$tagName$": "duet-textarea",
|
|
18973
19589
|
"$members$": {
|
|
18974
19590
|
"margin": [1],
|
|
@@ -19012,7 +19628,7 @@ class DuetTextarea {
|
|
|
19012
19628
|
}; }
|
|
19013
19629
|
}
|
|
19014
19630
|
|
|
19015
|
-
const duetToggleCss = "
|
|
19631
|
+
const duetToggleCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;-webkit-user-select:none;user-select:none;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}duet-label{display:block !important;width:100% !important}.duet-side-label{display:flex;gap:12px;align-items:center}.duet-side-label duet-label{width:auto !important}.duet-reverse-label{flex-direction:row-reverse}.duet-switch{position:relative;display:block;width:48px;height:28px}.duet-switch input{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-switch input:checked+.duet-slider{background-color:rgb(0, 119, 179);box-shadow:none}.duet-theme-turva .duet-switch input:checked+.duet-slider{background-color:rgb(198, 12, 48)}.duet-switch input:checked+.duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #004467;transform:translateX(20px)}.duet-theme-turva .duet-switch input:checked+.duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #660619}.duet-switch input:disabled+.duet-slider{cursor:default}.duet-switch input:disabled+.duet-slider::before{box-shadow:none}.duet-theme-turva .duet-switch input:disabled+.duet-slider::before{box-shadow:none}.duet-switch input:disabled:not(:checked)+.duet-slider{background:#bfcbd2}.duet-switch input:disabled:not(:checked)+.duet-slider::before{background:rgb(255, 255, 255);box-shadow:none}.duet-theme-turva .duet-switch input:disabled:not(:checked)+.duet-slider{background:#c7c9cf}.duet-theme-turva .duet-switch input:disabled:not(:checked)+.duet-slider::before{background:rgb(255, 255, 255)}.duet-switch input:disabled:checked+.duet-slider{background:#80bbd9}.duet-theme-turva .duet-switch input:disabled:checked+.duet-slider{background:#e38698}:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(0, 119, 179, 0.75)}:host(.user-is-tabbing) .duet-theme-turva .duet-switch input:focus+.duet-slider{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(23, 28, 58, 0.75)}.duet-slider{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:rgb(127, 150, 165);border-radius:24px;transition:background-color 300ms ease}.duet-slider::before{position:absolute;bottom:2px;left:2px;width:24px;height:24px;content:\"\";background-color:rgb(255, 255, 255);border-radius:50%;box-shadow:1px 0 2px 0 #5d6266;transition:300ms ease}.duet-theme-turva .duet-slider{background-color:rgb(143, 147, 158)}.duet-theme-turva .duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:1px 0 2px 0 #00334d}";
|
|
19016
19632
|
var DuetToggleStyle0 = duetToggleCss;
|
|
19017
19633
|
|
|
19018
19634
|
class DuetToggle {
|
|
@@ -19023,6 +19639,7 @@ class DuetToggle {
|
|
|
19023
19639
|
* Own Properties
|
|
19024
19640
|
*/
|
|
19025
19641
|
this.toggleId = createID("DuetToggle");
|
|
19642
|
+
this.proxyId = createID("DuetToggle");
|
|
19026
19643
|
/**
|
|
19027
19644
|
* Component event handling.
|
|
19028
19645
|
*/
|
|
@@ -19074,6 +19691,8 @@ class DuetToggle {
|
|
|
19074
19691
|
disconnectedCallback() {
|
|
19075
19692
|
unsubscribeTabbingChange(this);
|
|
19076
19693
|
}
|
|
19694
|
+
componentDidRender() {
|
|
19695
|
+
}
|
|
19077
19696
|
/**
|
|
19078
19697
|
* Sets focus on the specified `duet-toggle`. Use this method instead of the global
|
|
19079
19698
|
* `input.focus()`.
|
|
@@ -19086,9 +19705,13 @@ class DuetToggle {
|
|
|
19086
19705
|
* Always the last one in the class.
|
|
19087
19706
|
*/
|
|
19088
19707
|
render() {
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19708
|
+
const identifier = this.identifier || this.toggleId;
|
|
19709
|
+
return (hAsync(Host, { key: 'f1b8c9c08fb1aee347e563410dca93a4ab121bac', onClick: this.disabled ? undefined : this.onClick, class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '68fbc5e970aa27bb23354da6ef76fe97ef7ac56c', class: {
|
|
19710
|
+
"duet-toggle": true,
|
|
19711
|
+
"duet-theme-turva": this.theme === "turva",
|
|
19712
|
+
"duet-side-label": this.labelPosition !== "top",
|
|
19713
|
+
"duet-reverse-label": this.labelPosition === "right",
|
|
19714
|
+
} }, hAsync("duet-label", { key: '71d8ab7afbe009e196619c59fc7f4d67e5014ecd', theme: this.theme, color: this.labelColor, weight: this.labelWeight, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), hAsync("label", { key: 'ad1ad4bb8249ff6999f9c8dfd48fd70ee658e80c', class: "duet-switch" }, hAsync("input", { key: '79c34fa10a7846e3e4751f314616a96ac7aaaacc', type: "checkbox", value: this.value, "aria-label": this.label, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, id: identifier, role: this.role, name: this.name, checked: this.checked, required: this.required, disabled: this.disabled, ref: input => (this.nativeInput = input) }), hAsync("div", { key: '36aa5a3052136ff112b395ebac661c6496e64f93', class: "duet-slider" })))));
|
|
19092
19715
|
}
|
|
19093
19716
|
get element() { return getElement(this); }
|
|
19094
19717
|
static get watchers() { return {
|
|
@@ -19096,7 +19719,7 @@ class DuetToggle {
|
|
|
19096
19719
|
}; }
|
|
19097
19720
|
static get style() { return DuetToggleStyle0; }
|
|
19098
19721
|
static get cmpMeta() { return {
|
|
19099
|
-
"$flags$":
|
|
19722
|
+
"$flags$": 9,
|
|
19100
19723
|
"$tagName$": "duet-toggle",
|
|
19101
19724
|
"$members$": {
|
|
19102
19725
|
"theme": [1025],
|
|
@@ -19159,11 +19782,11 @@ class DuetToolbar {
|
|
|
19159
19782
|
: this.variation === "secondary"
|
|
19160
19783
|
? "secondary"
|
|
19161
19784
|
: "default";
|
|
19162
|
-
return (hAsync(Host, { key: '
|
|
19785
|
+
return (hAsync(Host, { key: '21d533cd790fd3160001662f405fd6d576238601' }, hAsync("nav", { key: '7b6dd43ab8c737929acec750be80136d3f5bb007', class: {
|
|
19163
19786
|
"duet-toolbar": true,
|
|
19164
19787
|
"duet-theme-turva": this.theme === "turva",
|
|
19165
19788
|
[variation]: true,
|
|
19166
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
19789
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: 'c6858334c5f7a5a760775d6cb1d5f3c8439f10a7', class: "container" }, hAsync("div", { key: '28485640df44e2daf65bee426b757931d7fe01e8', class: "list", role: "list" }, hAsync("slot", { key: '7fe71028d8cd2e938ec176fcf8a3bf9dd1d2e446', name: "left" })), hAsync("div", { key: 'a5fa75c98324be554112c6bead973905e2144371', class: "list", role: "list" }, hAsync("slot", { key: '277f1bafd019f0e03080d3c830be989eac1dd461', name: "right" }))))));
|
|
19167
19790
|
}
|
|
19168
19791
|
get element() { return getElement(this); }
|
|
19169
19792
|
static get style() { return DuetToolbarStyle0; }
|
|
@@ -19231,18 +19854,18 @@ class DuetToolbarDropdown {
|
|
|
19231
19854
|
itemsAlign = this.element.parentElement.getAttribute("slot") === "left" ? "right" : "left";
|
|
19232
19855
|
}
|
|
19233
19856
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
19234
|
-
return (hAsync(Host, { key: '
|
|
19857
|
+
return (hAsync(Host, { key: '3f216acdbee35637a06bba1ad6bd31c79060c485', role: "listitem" }, hAsync("div", { key: 'f327067f1cca48416dbadf416c81beb395f68bf6', class: {
|
|
19235
19858
|
"duet-toolbar-dropdown": true,
|
|
19236
19859
|
"duet-theme-turva": this.theme === "turva",
|
|
19237
19860
|
[itemsAlign]: true,
|
|
19238
19861
|
[variation]: true,
|
|
19239
|
-
} }, hAsync("button", { key: '
|
|
19862
|
+
} }, hAsync("button", { key: '7dc771dbb2a86dea2b8765ce9913edf088f789f6', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, id: "button", type: "button", class: {
|
|
19240
19863
|
active: this.active,
|
|
19241
19864
|
open: this.open,
|
|
19242
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
19865
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: 'dddf695359ec083dc8f227c5e1deae8a5506b73f', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("span", { key: 'd334e49d8815344ab29ac8db03eb694ddb496a54', class: "label" }, hAsync("slot", { key: '348fcd3dd00b6a81b94d33771f6e4557284bd16d', name: "label" }), hAsync("duet-icon", { key: '7dc2d3d54ff3117e2f48e687f3a762db43a837d4', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '90d305c6cecfb3fd7ee23ce5169cdcad6c4dd66f', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
19243
19866
|
items: true,
|
|
19244
19867
|
hidden: !this.open,
|
|
19245
|
-
} }, hAsync("slot", { key: '
|
|
19868
|
+
} }, hAsync("slot", { key: 'eda0a71fd30d9a00a11d61a797243b2da1d4e19a' })))));
|
|
19246
19869
|
}
|
|
19247
19870
|
get element() { return getElement(this); }
|
|
19248
19871
|
static get style() { return DuetToolbarDropdownStyle0; }
|
|
@@ -19295,11 +19918,11 @@ class DuetToolbarDropdownLink {
|
|
|
19295
19918
|
* Always the last one in the class.
|
|
19296
19919
|
*/
|
|
19297
19920
|
render() {
|
|
19298
|
-
return (hAsync(Host, { key: '
|
|
19921
|
+
return (hAsync(Host, { key: '8cb69dd33c2d35233088309fd5cdad8c1d16ed01' }, hAsync("a", { key: 'c805b960def6061680c14e5b401d1854c52f94a6', class: {
|
|
19299
19922
|
"duet-toolbar-dropdown-link": true,
|
|
19300
19923
|
"duet-theme-turva": this.theme === "turva",
|
|
19301
19924
|
active: this.active,
|
|
19302
|
-
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '
|
|
19925
|
+
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: 'aa73a86d1c127f99f803b772bd2ae89b207fab30', name: this.icon, size: "x-small", margin: "none" }), hAsync("span", { key: '7435a9263b6389e3a4a2e980a6528741c3b7a46f', class: "label" }, hAsync("slot", { key: '5bdd6f17bf41ee7a6f6dec80b9f3c9f741a1fc27' })), this.active && (hAsync("duet-icon", { key: '6d9294ed304b2652d8cf535f549edad17fc6965d', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
19303
19926
|
}
|
|
19304
19927
|
get element() { return getElement(this); }
|
|
19305
19928
|
static get style() { return DuetToolbarDropdownLinkStyle0; }
|
|
@@ -19374,17 +19997,17 @@ class DuetToolbarItem {
|
|
|
19374
19997
|
: this.variation === "secondary"
|
|
19375
19998
|
? "secondary"
|
|
19376
19999
|
: "default";
|
|
19377
|
-
return (hAsync(Host, { key: '
|
|
20000
|
+
return (hAsync(Host, { key: 'dd49a814af5543b3c5322f9ba0f14b94c1f2c0ff', role: "listitem" }, hAsync(TagName, { key: '99e8b130d9de3a738aa494473908afa59fcb5c9d', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
19378
20001
|
"duet-toolbar-item": true,
|
|
19379
20002
|
"duet-theme-turva": this.theme === "turva",
|
|
19380
20003
|
active: this.active,
|
|
19381
20004
|
[variation]: true,
|
|
19382
|
-
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("div", { key: '
|
|
20005
|
+
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("div", { key: 'f2cb988f3e1224d79d1fe65d289e08364b43d75f', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: '8608706b7b512cfe61e35f4eb63a41804ac0085d', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && hAsync("div", { key: 'c4a5b2eba922d2bcaf1e90c63d496d6e0e8a282f', class: "duet-toolbar-badge" }))), hAsync("slot", { key: 'c4c8114069e098da845703905b77f15c4bb1c743' }), (this.trailingIcon || (this.url && this.external)) && (hAsync("div", { key: '7f21cf0cd2a5aeca2685360049504e5daab02c3b', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: '0c39d469df56947c3cec7f2e377906f0f48d0ef6', class: {
|
|
19383
20006
|
"trailing-icon": !!this.trailingIcon,
|
|
19384
20007
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
19385
20008
|
"external-icon": !!(this.url && this.external),
|
|
19386
20009
|
rotate: this.trailingIcon === "action-arrow-down-small" && this.accessibleExpanded,
|
|
19387
|
-
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? actionNewWindowSmall.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && hAsync("div", { key: '
|
|
20010
|
+
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? actionNewWindowSmall.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && hAsync("div", { key: 'a59af5319ed0f896c0ba81b8c6234d7ebed0d3f2', class: "duet-toolbar-badge" }))))));
|
|
19388
20011
|
}
|
|
19389
20012
|
get element() { return getElement(this); }
|
|
19390
20013
|
static get style() { return DuetToolbarItemStyle0; }
|
|
@@ -19438,12 +20061,12 @@ class DuetToolbarLink {
|
|
|
19438
20061
|
*/
|
|
19439
20062
|
render() {
|
|
19440
20063
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
19441
|
-
return (hAsync(Host, { key: '
|
|
20064
|
+
return (hAsync(Host, { key: '2656a1b596a4b66cf46c4f417335e35eb881dab2', role: "listitem" }, hAsync("a", { key: 'ce034bce2589926b97d4bb34280799747927414f', class: {
|
|
19442
20065
|
"duet-toolbar-link": true,
|
|
19443
20066
|
"duet-theme-turva": this.theme === "turva",
|
|
19444
20067
|
active: this.active,
|
|
19445
20068
|
[variation]: true,
|
|
19446
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
20069
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '0fc473d63161aaa4922c4557f902e170f68464ed', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: 'beba45fdc4e282f23e04735c6491c67f65ac7b7f' }))));
|
|
19447
20070
|
}
|
|
19448
20071
|
get element() { return getElement(this); }
|
|
19449
20072
|
static get style() { return DuetToolbarLinkStyle0; }
|
|
@@ -19464,7 +20087,7 @@ class DuetToolbarLink {
|
|
|
19464
20087
|
}; }
|
|
19465
20088
|
}
|
|
19466
20089
|
|
|
19467
|
-
const duetTooltipCss = "
|
|
20090
|
+
const duetTooltipCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}duet-tooltip-button{position:relative}duet-tooltip-popup{position:absolute}";
|
|
19468
20091
|
var DuetTooltipStyle0 = duetTooltipCss;
|
|
19469
20092
|
|
|
19470
20093
|
class DuetTooltip {
|
|
@@ -19473,6 +20096,7 @@ class DuetTooltip {
|
|
|
19473
20096
|
/**
|
|
19474
20097
|
* Own Properties.
|
|
19475
20098
|
*/
|
|
20099
|
+
this.firstRender = true;
|
|
19476
20100
|
this.mql = [
|
|
19477
20101
|
window.matchMedia(media_query_medium.replace(/'/g, "")),
|
|
19478
20102
|
window.matchMedia(media_query_large.replace(/'/g, "")),
|
|
@@ -19583,6 +20207,20 @@ class DuetTooltip {
|
|
|
19583
20207
|
{ prop: "accessibleLabel", defaults: "accessibleLabelDefault" },
|
|
19584
20208
|
{ prop: "accessibleCloseLabel", defaults: "accessibleCloseLabelDefault" },
|
|
19585
20209
|
]);
|
|
20210
|
+
if (typeof MutationObserver !== "undefined") {
|
|
20211
|
+
this.mutationO = new MutationObserver(() => {
|
|
20212
|
+
});
|
|
20213
|
+
this.mutationO.observe(this.element, {
|
|
20214
|
+
childList: true,
|
|
20215
|
+
characterData: true,
|
|
20216
|
+
subtree: true,
|
|
20217
|
+
});
|
|
20218
|
+
}
|
|
20219
|
+
}
|
|
20220
|
+
componentDidRender() {
|
|
20221
|
+
if (this.firstRender) {
|
|
20222
|
+
this.firstRender = false;
|
|
20223
|
+
}
|
|
19586
20224
|
}
|
|
19587
20225
|
disconnectedCallback() {
|
|
19588
20226
|
disconnectLanguageChangeObserver(this);
|
|
@@ -19630,7 +20268,7 @@ class DuetTooltip {
|
|
|
19630
20268
|
}; }
|
|
19631
20269
|
static get style() { return DuetTooltipStyle0; }
|
|
19632
20270
|
static get cmpMeta() { return {
|
|
19633
|
-
"$flags$":
|
|
20271
|
+
"$flags$": 9,
|
|
19634
20272
|
"$tagName$": "duet-tooltip",
|
|
19635
20273
|
"$members$": {
|
|
19636
20274
|
"theme": [1025],
|
|
@@ -19700,12 +20338,12 @@ class DuetTooltipButton {
|
|
|
19700
20338
|
* Always the last one in the class.
|
|
19701
20339
|
*/
|
|
19702
20340
|
render() {
|
|
19703
|
-
return (hAsync(Host, { key: '
|
|
20341
|
+
return (hAsync(Host, { key: '9072e8917cb41793dea41b85387c0d0ed01364ab' }, hAsync("button", { key: '873fe45b6a53107875d7f6cbd52edcef6c35a4cd', ref: el => (this.buttonElement = el), "aria-controls": this.tooltipId, "aria-expanded": this.active ? "true" : "false", type: "button", class: {
|
|
19704
20342
|
"duet-tooltip-button": true,
|
|
19705
20343
|
"duet-tooltip-button-has-label": !!this.label,
|
|
19706
20344
|
"duet-theme-turva": this.theme === "turva",
|
|
19707
20345
|
"duet-tooltip-button-negative": this.negative,
|
|
19708
|
-
} }, hAsync("svg", { key: '
|
|
20346
|
+
} }, hAsync("svg", { key: '323d7874dea1e157dfa25d203eb3dda93e4a4100', "aria-hidden": "true", role: "img", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'ef7df8fea96fc5f5adfec07ac1c7176c58f5939e', d: "m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z" }), hAsync("circle", { key: 'd5e097119c80dbcee1e9a8b40e0a8e1416991c78', cx: "11.625", cy: "7.125", r: "1.125" }), hAsync("path", { key: 'a85da0b6a9f044e2584d7a0cfbab5ff3045ee19a', d: "m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z" })), this.label ? (hAsync("span", { class: "duet-tooltip-label" }, this.label)) : (hAsync("duet-visually-hidden", null, this.accessibleLabel)))));
|
|
19709
20347
|
}
|
|
19710
20348
|
get element() { return getElement(this); }
|
|
19711
20349
|
static get style() { return DuetTooltipButtonStyle0; }
|
|
@@ -19773,11 +20411,11 @@ class DuetTooltipPopup {
|
|
|
19773
20411
|
this.contentEl.focus();
|
|
19774
20412
|
}
|
|
19775
20413
|
render() {
|
|
19776
|
-
return (hAsync(Host, { key: '
|
|
20414
|
+
return (hAsync(Host, { key: '8acc3821b4d946db588b369f4b6a49949049aef3' }, hAsync("div", { key: '4e67df16578e9d684c13956359696ebb46aaa431', class: {
|
|
19777
20415
|
"duet-tooltip": true,
|
|
19778
20416
|
"duet-theme-turva": this.theme === "turva",
|
|
19779
20417
|
"duet-tooltip-active": this.active === true,
|
|
19780
|
-
} }, hAsync(FocusGuard, { key: '
|
|
20418
|
+
} }, hAsync(FocusGuard, { key: 'f80a8056489ea1d33f28e35e02956080855b8e0c', moveFocusTo: this.buttonEl }), hAsync("div", { key: '776dd94339d875a1a66e6384792b6ceb1c6aa3d0', ref: element => (this.contentEl = element), class: "duet-tooltip-content-area", tabindex: 0, id: this.tooltipId }, hAsync("slot", { key: '5ca5cb490bbd841897e92550487d5ec2994c1454' })), hAsync("div", { key: '0d94a795e9e48495dfaf0f89a2deb85168e28e93', ref: element => (this.arrowEl = element), class: { arrow: true, [this.placement]: true }, style: this.arrowStyles }, hAsync("div", { key: '55de0f4a7b2af1fdc80591cf22164528677038b3', class: { "arrow-container": true, [this.placement]: true } })), hAsync("button", { key: '5c666a5fa3eeb84d1b9cae6a8e8c9ead45c44b69', type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick, ref: el => (this.buttonEl = el) }, hAsync("duet-icon", { key: '50e2ef126f129c562fe92652d057f7295d1c67f2', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), hAsync("duet-visually-hidden", { key: '1453b395ca04e521704846b572d7165cc150f0ff' }, this.accessibleCloseLabel)), hAsync(FocusGuard, { key: '75fbf5e7a95c4f2a30064a47e2e1c3905c2ee289', moveFocusTo: this.contentEl }))));
|
|
19781
20419
|
}
|
|
19782
20420
|
get element() { return getElement(this); }
|
|
19783
20421
|
static get style() { return DuetTooltipPopupStyle0; }
|
|
@@ -19885,14 +20523,14 @@ class DuetTray {
|
|
|
19885
20523
|
* Always the last one in the class.
|
|
19886
20524
|
*/
|
|
19887
20525
|
render() {
|
|
19888
|
-
return (hAsync("div", { key: '
|
|
20526
|
+
return (hAsync("div", { key: '978707965f7036c59164be861c06e3a95d0b010c', class: {
|
|
19889
20527
|
"duet-tray": true,
|
|
19890
20528
|
"duet-tray-is-active": this.active,
|
|
19891
20529
|
"duet-tray-is-hidden": this.hiddenState,
|
|
19892
20530
|
"duet-tray-is-responsive": this.responsive,
|
|
19893
20531
|
"duet-theme-turva": this.theme === "turva",
|
|
19894
20532
|
"duet-tray-is-expandable": this.hasAdditionalContent,
|
|
19895
|
-
} }, hAsync("div", { key: '
|
|
20533
|
+
} }, hAsync("div", { key: 'fa71800b202335afe225062b6546c259024d1ebc', class: "duet-tray-default-content", role: "status" }, hAsync("slot", { key: '88504b3e7785cb2c996ca2a69f4f7613b3142641' })), this.hasAdditionalContent && (hAsync(Fragment, { key: 'b7bbc3062d4b56e76021d7fb1e275033b1d973de' }, hAsync("button", { key: '9f63e2b609caa6ba75251270b1e3f21e2c51900f', "aria-expanded": this.expanded ? "true" : "false", "aria-controls": this.expandableId, onClick: ev => this.toggleExpandable(ev), class: { "duet-tray-button": true, "duet-tray-is-expanded": this.expanded } }, hAsync("duet-icon", { key: '1976d894857521dba637850fd6d0f67dc5d2fb7c', name: "action-arrow-down", size: "small", color: "currentColor", margin: "none" }), hAsync("duet-visually-hidden", { key: '52a51dd5b1c5f590ab6b69cb14f229df0b7af8cd' }, this.expanded ? this.accessibleCloseLabel : this.accessibleOpenLabel)), hAsync("div", { key: '6258528ccbe8a9bb546ad35639457757583a4914', id: this.expandableId, class: { "duet-tray-expandable": true, active: this.expanded } }, hAsync("div", { key: '79124cc2718b71d49e3ce57eaa405f7663f2db1e', class: "duet-tray-expandable-content" }, hAsync("slot", { key: '842a4506b47dae4db5b81bd1fe551e09a08672f0', name: "additional" })))))));
|
|
19896
20534
|
}
|
|
19897
20535
|
get element() { return getElement(this); }
|
|
19898
20536
|
static get style() { return DuetTrayStyle0; }
|
|
@@ -21008,10 +21646,10 @@ class DuetUpload {
|
|
|
21008
21646
|
this.externalUploadButton.accessibleLabel = `${this.externalUploadButton.innerText}. ${caption}`;
|
|
21009
21647
|
}
|
|
21010
21648
|
// @ts-ignore
|
|
21011
|
-
return (hAsync(Host, { key: '
|
|
21649
|
+
return (hAsync(Host, { key: 'd9a06a80ee3dbe6c14afeba29034210c0876e030', class: { "duet-m-0": this.margin === "none" } }, hAsync("duet-fieldset", { key: '91dd6b9b6702eda6b91bde8051ba3dc19f61897f', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, hAsync("slot", { key: 'db5e4b9f271fe451b5d22f7400ec4c0d3a6f138e', name: "header" }), !this.files.size && (hAsync("duet-empty-state", { key: '27ba6010ee533701bf11a149427d2216c8ce29d9', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, hAsync("duet-paragraph", { key: 'e89c1d5f4ec256d1e3a78c3c39d2e70abf10e8e6', margin: "none" }, this.fileListEmpty))), !!this.files.size && hAsync("slot", { key: '42eadc522cef6c31bf92926536586c335f70aa29', name: "fileheader" }), !!this.files.size && (hAsync("duet-upload-aria-status", { key: '73e49bd8b917493fe195e9a41485bc92f7b28f87', invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && hAsync("slot", { key: 'f4af2ea636e86ad99ea095816a947160842e473a', name: "filefooter" }), hAsync("slot", { key: '4f5808dd9f1d1f59a22358e889b465603fcf66e5', name: "uploadfooter" }), this.captionOnBottom && (hAsync("duet-caption", { key: '098d617ed6b92abb83204dfd0c02f38aee307091', margin: "none", size: "small" }, hAsync("div", { key: 'df692c821b64ef7d2a8e00f1b798e0d6ea28589b', class: "upload-bottom-caption" }, caption))), hAsync("slot", { key: 'f5c2d00cef8aea857176ccfa0cf3ff52eb4b07ec', name: "afterfooter" }), !this.hideButton && (hAsync(Fragment, { key: '6950dea516b4b35f4e5fb7c9d37afd340a151a14' }, hAsync("duet-spacer", { key: '24eac12d73d7ed5ad8fab3be0777d7452bf326d7', size: "large" }), hAsync("duet-button", { key: 'fb63b67dfcd988535867d4fde83bd13c110d9f1c', id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel || `${this.buttonLabel}. ${caption}`, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel))), (this.fileMaxReached ||
|
|
21012
21650
|
this.bytesMaxReached ||
|
|
21013
21651
|
this.filesToUploadExceedsLimit ||
|
|
21014
|
-
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: '
|
|
21652
|
+
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: '749d1166c084a9b2919b909ee7ab9246d2c0ebe7' }, hAsync("duet-spacer", { key: '907c8f0f2709cf387eef1b2bb815335ded8ad30d', size: "medium" }), hAsync("duet-alert", { key: '792b424865e2a20fe34eeb248cbd00e376bcd646', part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && getI18nError("duet-upload-202", this.errorCodes), this.filesToUploadExceedsLimit && getI18nError("duet-upload-302", this.errorCodes), this.filesToUploadTotalSizeIsAboveMax && getI18nError("duet-upload-203", this.errorCodes)))), hAsync("duet-visually-hidden", { key: '31b3a469d2722362b44ee1e89e468f79e313fc7e', "aria-hidden": "true" }, hAsync("input", { key: 'ee5f9699f2d29c0ac92d0ba78c3e007a0cc327cd', ref: input => {
|
|
21015
21653
|
this.nativeInput = input;
|
|
21016
21654
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
21017
21655
|
"duet-upload": true,
|
|
@@ -21332,7 +21970,7 @@ class DuetUploadAriaStatus {
|
|
|
21332
21970
|
* Always the last one in the class.
|
|
21333
21971
|
*/
|
|
21334
21972
|
render() {
|
|
21335
|
-
return (hAsync(Host, { key: '
|
|
21973
|
+
return (hAsync(Host, { key: '177f33a14fe939c866cc4b465b1886899d97af29', role: "status", "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, hAsync("duet-visually-hidden", { key: '410c70a49016691f5795d537a66ead6cc2a9bb64' }, this.statusMessage)));
|
|
21336
21974
|
}
|
|
21337
21975
|
get element() { return getElement(this); }
|
|
21338
21976
|
static get watchers() { return {
|
|
@@ -21399,7 +22037,7 @@ class DuetUploadItem$1 {
|
|
|
21399
22037
|
inheritGlobalTheme(this);
|
|
21400
22038
|
}
|
|
21401
22039
|
render() {
|
|
21402
|
-
return (hAsync(Host, { key: '
|
|
22040
|
+
return (hAsync(Host, { key: '7dc8581b1c1cb947362a48413aa328ba66ed8958' }, hAsync("duet-visually-hidden", { key: '7e5084aaaec4b91f34eb2e0902744751f3a7818b', "aria-hidden": "true" }, hAsync("input", { key: 'ddc3d9e9c6fdb590a529fc506b291f6edbd07730', ref: input => {
|
|
21403
22041
|
this.nativeInput = input;
|
|
21404
22042
|
}, type: "file", class: {
|
|
21405
22043
|
"duet-upload": true,
|
|
@@ -21511,9 +22149,9 @@ class DuetUploadItem {
|
|
|
21511
22149
|
const { uid, meta, item } = this.data;
|
|
21512
22150
|
const Badges = meta && meta.badges ? (hAsync("span", null, meta.badges.map(badgeText => (hAsync("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
21513
22151
|
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${item.name}`;
|
|
21514
|
-
return (hAsync("div", { key: '
|
|
22152
|
+
return (hAsync("div", { key: '499163ce1be1b45ff2d97156ce06d7d9f3fefeb2', class: {
|
|
21515
22153
|
"upload-item-row": true,
|
|
21516
|
-
} }, this.showCategory && (hAsync("div", { key: '
|
|
22154
|
+
} }, this.showCategory && (hAsync("div", { key: '0486c8703101bcb3837161c24ad0fc1a4ffe215f', class: "item-categories" }, hAsync("duet-heading", { key: '292cc4893eebebb39be0360efc9559c5de47b22e', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.categoryLabel)), Badges)), hAsync("div", { key: '8e6c67e49f9b5bc79fc011bc44362392eb3b7b24', class: { "item-name": true, "no-category": !this.showCategory } }, !!this.label && (hAsync("duet-heading", { key: '24f05bb11ee5970722963e688fd5c5e797a0e77c', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.label))), this.getFileNameLine()), hAsync("div", { key: '1c93322e3405f0c329978af89b70c91e7eb9733d', class: "item-actions" }, this.actions.map(actionItem => {
|
|
21517
22155
|
return (hAsync("duet-action-button", { actionMeta: Object.assign({}, meta || {}), actionId: uid || null, actionName: actionItem.name, theme: this.theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${actionDescription} ${getLocaleString(actionItem.label)} `, accessibleTitle: this.getActionButtonTitle(actionItem), ref: button => (this.actionButton = button) }));
|
|
21518
22156
|
}))));
|
|
21519
22157
|
}
|
|
@@ -21554,7 +22192,7 @@ class DuetVisuallyHidden {
|
|
|
21554
22192
|
* Always the last one in the class.
|
|
21555
22193
|
*/
|
|
21556
22194
|
render() {
|
|
21557
|
-
return (hAsync(Host, { key: '
|
|
22195
|
+
return (hAsync(Host, { key: 'cd9e7fe168ed42bfa9fc4751303db7edd312ce75', class: "duet-visually-hidden" }, hAsync("slot", { key: 'bd33aa5a8f5cf442fab2f40ef59b13c36b32eb9d' })));
|
|
21558
22196
|
}
|
|
21559
22197
|
get element() { return getElement(this); }
|
|
21560
22198
|
static get style() { return DuetVisuallyHiddenStyle0; }
|