@duetds/components 10.1.1 → 10.2.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 +325 -255
- package/hydrate/index.mjs +325 -255
- package/lib/cjs/{a11y-utils-B_EYQg_6.js → a11y-utils-DIgK57bg.js} +1 -1
- package/lib/cjs/{app-globals-BFWJwMVq.js → app-globals-CQh0dxkp.js} +1 -1
- package/lib/cjs/{common-strings-CC6Xpjb8.js → common-strings-DMaSb4Ld.js} +8 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +5 -5
- package/lib/cjs/duet-badge.cjs.entry.js +6 -6
- package/lib/cjs/duet-banner.cjs.entry.js +3 -3
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
- package/lib/cjs/duet-button_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +20 -14
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkbox.cjs.entry.js +19 -5
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +4 -4
- package/lib/cjs/duet-choice_2.cjs.entry.js +13 -13
- package/lib/cjs/duet-collapsible.cjs.entry.js +5 -5
- package/lib/cjs/duet-combobox.cjs.entry.js +30 -9
- package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +9 -9
- package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +10 -10
- package/lib/cjs/duet-empty-state.cjs.entry.js +4 -4
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +9 -9
- package/lib/cjs/duet-grid_2.cjs.entry.js +7 -6
- package/lib/cjs/duet-header_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-hero.cjs.entry.js +10 -10
- package/lib/cjs/duet-icon.cjs.entry.js +5 -5
- package/lib/cjs/duet-indicator.cjs.entry.js +4 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +12 -12
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-modal.cjs.entry.js +13 -13
- package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-number-input.cjs.entry.js +9 -9
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
- package/lib/cjs/duet-pagination_2.cjs.entry.js +16 -16
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +11 -11
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +15 -15
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +10 -10
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart.cjs.entry.js +6 -6
- package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +11 -11
- package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- package/lib/cjs/duet-toggle.cjs.entry.js +24 -7
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
- package/lib/cjs/duet-tray.cjs.entry.js +5 -5
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-BiQq7F-O.js → errorcodes.utils-DflKGDer.js} +1 -1
- package/lib/cjs/{focus-utils-8IrILmeG.js → focus-utils-CsX9QzWh.js} +1 -1
- package/lib/cjs/{index-CwMzFaC2.js → index-CHPE0RRI.js} +1 -1
- package/lib/cjs/{label-Bw-qhJBs.js → label-Bk7Tl0vN.js} +1 -1
- package/lib/cjs/{language-utils-BLi7aaEv.js → language-utils-D7JgugVP.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-l9-tZvM8.js → slot-utils-Cz6-0IYe.js} +1 -1
- package/lib/cjs/{themeable-component-DlxAauty.js → themeable-component-DYp2VYiJ.js} +1 -1
- package/lib/collection/common-strings.js +7 -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.css +12 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +24 -2
- 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.js +6 -6
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
- package/lib/collection/components/duet-combobox/duet-combobox.js +28 -6
- 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/duet-date-picker.css +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -2
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.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 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- 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-indicator/duet-indicator.js +1 -1
- package/lib/collection/components/duet-input/duet-input.css +7 -7
- package/lib/collection/components/duet-input/duet-input.js +6 -6
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.css +43 -8
- package/lib/collection/components/duet-link/duet-link.js +11 -5
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +7 -7
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
- package/lib/collection/components/duet-number-input/duet-number-input.css +13 -7
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-panel/duet-panel.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +3 -3
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.css +10 -4
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
- package/lib/collection/components/duet-toggle/duet-toggle.css +22 -9
- package/lib/collection/components/duet-toggle/duet-toggle.js +83 -2
- 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 +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.esm.js.map +1 -0
- package/lib/duet/index.esm.js.map +1 -0
- package/lib/duet/{p-8ef9d397.entry.js → p-026b5d97.entry.js} +1 -1
- package/lib/duet/{p-8fb7d2ad.entry.js → p-0278421d.entry.js} +1 -1
- package/lib/duet/{p-be967aa3.entry.js → p-0ac52236.entry.js} +1 -1
- package/lib/duet/{p-35ab9df3.entry.js → p-0c0485ca.entry.js} +1 -1
- package/lib/duet/{p-b4405bb2.entry.js → p-0c4d3ef8.entry.js} +1 -1
- package/lib/duet/{p-23c8a3cf.entry.js → p-10593797.entry.js} +1 -1
- package/lib/duet/{p-5e312efa.entry.js → p-13423abb.entry.js} +1 -1
- package/lib/duet/{p-1a92ea28.entry.js → p-1674f94c.entry.js} +1 -1
- package/lib/duet/{p-6b6a8585.entry.js → p-16ef5016.entry.js} +1 -1
- package/lib/duet/{p-8ef3fe6f.entry.js → p-19f51a31.entry.js} +1 -1
- package/lib/duet/{p-d851fb45.entry.js → p-1a0890fa.entry.js} +1 -1
- package/lib/duet/{p-2459de04.entry.js → p-1b45ccdc.entry.js} +1 -1
- package/lib/duet/p-1b9bfe32.entry.js +4 -0
- package/lib/duet/{p-5ee97e54.entry.js → p-1dbbd855.entry.js} +1 -1
- package/lib/duet/{p-24e49455.entry.js → p-1dcde973.entry.js} +1 -1
- package/lib/duet/{p-a1bddbe0.entry.js → p-1f44c859.entry.js} +1 -1
- package/lib/duet/{p-c08a6b40.entry.js → p-1f6ea6df.entry.js} +1 -1
- package/lib/duet/{p-cd9c1ddc.entry.js → p-203ef386.entry.js} +1 -1
- package/lib/duet/{p-a94c2063.entry.js → p-22d59683.entry.js} +1 -1
- package/lib/duet/{p-8e105140.entry.js → p-24106c45.entry.js} +1 -1
- package/lib/duet/{p-af604e20.entry.js → p-2a8b5bfa.entry.js} +1 -1
- package/lib/duet/p-2d578570.entry.js +4 -0
- package/lib/duet/{p-0f15317c.entry.js → p-2e9897c7.entry.js} +1 -1
- package/lib/duet/{p-3caabda3.entry.js → p-31d16e95.entry.js} +1 -1
- package/lib/duet/{p-414306dc.entry.js → p-323fa45a.entry.js} +1 -1
- package/lib/duet/p-3434fb72.entry.js +4 -0
- package/lib/duet/{p-7cad4a7d.entry.js → p-35ea3b5a.entry.js} +1 -1
- package/lib/duet/{p-e08191e2.entry.js → p-3a42f2e8.entry.js} +1 -1
- package/lib/duet/{p-fcb7ab98.entry.js → p-48767e14.entry.js} +1 -1
- package/lib/duet/{p-47d33b6b.entry.js → p-519a52bc.entry.js} +1 -1
- package/lib/duet/{p-e0c9c534.entry.js → p-52980dc6.entry.js} +1 -1
- package/lib/duet/{p-20bfba9e.entry.js → p-55973c08.entry.js} +1 -1
- package/lib/duet/{p-e06f599b.entry.js → p-56bfa7b4.entry.js} +1 -1
- package/lib/duet/p-5be4e1b3.entry.js +4 -0
- package/lib/duet/{p-ab65780a.entry.js → p-5ded9cdd.entry.js} +1 -1
- package/lib/duet/{p-68bb7d28.entry.js → p-5f93c14a.entry.js} +1 -1
- package/lib/duet/{p-69c2989d.entry.js → p-6872f751.entry.js} +1 -1
- package/lib/duet/{p-1bf0b984.entry.js → p-6a223004.entry.js} +1 -1
- package/lib/duet/{p-a886ee0b.entry.js → p-6b20c695.entry.js} +1 -1
- package/lib/duet/{p-1bf130a0.entry.js → p-6c4ad8dd.entry.js} +1 -1
- package/lib/duet/{p-96334633.entry.js → p-71a993e9.entry.js} +1 -1
- package/lib/duet/p-77bd81a7.entry.js +4 -0
- package/lib/duet/{p-46fdb6a9.entry.js → p-78e28708.entry.js} +1 -1
- package/lib/duet/{p-f9c54d66.entry.js → p-7c27d54d.entry.js} +1 -1
- package/lib/duet/{p-999ff774.entry.js → p-7c5559aa.entry.js} +1 -1
- package/lib/duet/{p-f0c6161a.entry.js → p-7c71acff.entry.js} +1 -1
- package/lib/duet/p-8246aca5.entry.js +4 -0
- package/lib/duet/p-82bed3e4.entry.js +4 -0
- package/lib/duet/{p-5214be20.entry.js → p-83873c17.entry.js} +1 -1
- package/lib/duet/{p-fb4af30f.entry.js → p-879d2e6a.entry.js} +1 -1
- package/lib/duet/p-8RjiAqaE.js +4 -0
- package/lib/duet/{p-07b33d9a.entry.js → p-8d568b05.entry.js} +1 -1
- package/lib/duet/{p-64003bfb.entry.js → p-8f022fe4.entry.js} +1 -1
- package/lib/duet/{p-24c89cbd.entry.js → p-8f39b76a.entry.js} +1 -1
- package/lib/duet/{p-4b150620.entry.js → p-953910c3.entry.js} +1 -1
- package/lib/duet/{p-14c52ecc.entry.js → p-9705bdf2.entry.js} +1 -1
- package/lib/duet/p-9UeJiEXx.js.map +1 -0
- package/lib/duet/{p-4c8ff6a9.entry.js → p-9ad3562b.entry.js} +1 -1
- package/lib/duet/{p-c96cf3d3.entry.js → p-9dfb1602.entry.js} +1 -1
- package/lib/duet/p-BBhgW58t.js.map +1 -0
- package/lib/duet/{p-CPZ9Rh_9.js → p-BEyqDEKQ.js} +1 -1
- package/lib/duet/p-BK12s3nI.js.map +1 -0
- package/lib/duet/{p-Cz75kJ4Z.js → p-BOvQtVMD.js} +1 -1
- package/lib/duet/p-BW6JNddK.js.map +1 -0
- package/lib/duet/p-BcPp3KKD.js.map +1 -0
- package/lib/duet/p-Bd_IFUlc.js.map +1 -0
- package/lib/duet/p-BfhNMsMk.js.map +1 -0
- package/lib/duet/p-C4eu9Z7w.js.map +1 -0
- package/lib/duet/p-CGf6zkuF.js.map +1 -0
- package/lib/duet/p-CIGqx4Cc.js.map +1 -0
- package/lib/duet/p-CLDy7YaM.js.map +1 -0
- package/lib/duet/p-CV1dC6Oy.js.map +1 -0
- package/lib/duet/p-CaF2pz74.js.map +1 -0
- package/lib/duet/p-Cfr_DJqU.js.map +1 -0
- package/lib/duet/p-CgIXOlgn.js.map +1 -0
- package/lib/duet/p-CooAqTCj.js.map +1 -0
- package/lib/duet/{p-D2reh8UV.js → p-CsGZzH1g.js} +1 -1
- package/lib/duet/p-D0ZPQviq.js.map +1 -0
- package/lib/duet/p-D2eXyGqW.js.map +1 -0
- package/lib/duet/p-DAU-6bv0.js.map +1 -0
- package/lib/duet/{p-0d9FRr_b.js → p-DBab1eZF.js} +1 -1
- package/lib/duet/p-DE6tkjJW.js.map +1 -0
- package/lib/duet/{p-D7O8dU_Q.js → p-DRpZDk0L.js} +1 -1
- package/lib/duet/p-DWe9P8ry.js.map +1 -0
- package/lib/duet/p-DYO3k3VG.js.map +1 -0
- package/lib/duet/p-DajeMr0n.js.map +1 -0
- package/lib/duet/p-DbVclHyj.js +4 -0
- package/lib/duet/p-DifBJmpD.js.map +1 -0
- package/lib/duet/p-Dj_oRxdS.js +4 -0
- package/lib/duet/p-DxESMgwA.js.map +1 -0
- package/lib/duet/p-EQ8o9Cpg.js.map +1 -0
- package/lib/duet/{p-ae11d834.entry.js → p-a318f737.entry.js} +1 -1
- package/lib/duet/{p-0be1cbcc.entry.js → p-a4088637.entry.js} +1 -1
- package/lib/duet/{p-3937103e.entry.js → p-a64c60c9.entry.js} +1 -1
- package/lib/duet/{p-9c176eae.entry.js → p-a711aace.entry.js} +1 -1
- package/lib/duet/{p-46594b20.entry.js → p-a833d24e.entry.js} +1 -1
- package/lib/duet/p-aa73d232.entry.js +4 -0
- package/lib/duet/{p-e29699ea.entry.js → p-ab3f7d47.entry.js} +1 -1
- package/lib/duet/{p-87fdb2d1.entry.js → p-ae149a1c.entry.js} +1 -1
- package/lib/duet/p-af08e085.entry.js +4 -0
- package/lib/duet/p-afd58bd7.entry.js +4 -0
- package/lib/duet/{p-bafb269a.entry.js → p-afe51b83.entry.js} +1 -1
- package/lib/duet/{p-6a5089bf.entry.js → p-b051a253.entry.js} +1 -1
- package/lib/duet/{p-ec572857.entry.js → p-b108c836.entry.js} +1 -1
- package/lib/duet/p-b519650f.entry.js +4 -0
- package/lib/duet/p-b6b7126b.entry.js +4 -0
- package/lib/duet/{p-e3116610.entry.js → p-ba84bc30.entry.js} +1 -1
- package/lib/duet/{p-49f9404b.entry.js → p-be63e6cf.entry.js} +1 -1
- package/lib/duet/{p-c49521b1.entry.js → p-c0617b94.entry.js} +1 -1
- package/lib/duet/p-c5756278.entry.js +4 -0
- package/lib/duet/p-c7b7a009.entry.js +4 -0
- package/lib/duet/p-d49b80d5.entry.js +4 -0
- package/lib/duet/{p-3115c01d.entry.js → p-d6c7db11.entry.js} +1 -1
- package/lib/duet/p-df13a49e.entry.js +4 -0
- package/lib/duet/{p-53a8fc76.entry.js → p-dfd8dd6f.entry.js} +1 -1
- package/lib/duet/{p-6f1841f2.entry.js → p-e639afce.entry.js} +1 -1
- package/lib/duet/{p-c5f27149.entry.js → p-ef9c311e.entry.js} +1 -1
- package/lib/duet/{p-ad94e5b7.entry.js → p-f018de8a.entry.js} +1 -1
- package/lib/duet/{p-e1eff77c.entry.js → p-f592f327.entry.js} +1 -1
- package/lib/duet/{p-65eed68b.entry.js → p-fa0b596e.entry.js} +1 -1
- package/lib/duet/p-lTKl7i2u.js.map +1 -0
- package/lib/duet/{p-Be4oMqD2.js → p-nAcNUKp2.js} +1 -1
- package/lib/duet/p-vGm6JOUa.js.map +1 -0
- package/lib/duet/{p-B01I4GZJ.js → p-yNCV1XSS.js} +1 -1
- package/lib/esm/{a11y-utils-BPzUw6wf.js → a11y-utils-DaSX4sm4.js} +1 -1
- package/lib/esm/{app-globals-SsQsu12e.js → app-globals-Hj3SA8Ai.js} +1 -1
- package/lib/esm/{common-strings-CVPfl9fc.js → common-strings-8RjiAqaE.js} +8 -2
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +5 -5
- package/lib/esm/duet-badge.entry.js +6 -6
- package/lib/esm/duet-banner.entry.js +3 -3
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +5 -5
- package/lib/esm/duet-button_2.entry.js +5 -5
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +20 -14
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +19 -5
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +4 -4
- package/lib/esm/duet-choice_2.entry.js +13 -13
- package/lib/esm/duet-collapsible.entry.js +5 -5
- package/lib/esm/duet-combobox.entry.js +30 -9
- package/lib/esm/duet-contact-card.entry.js +5 -5
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +9 -9
- package/lib/esm/duet-divider_2.entry.js +4 -4
- package/lib/esm/duet-editable-table_3.entry.js +10 -10
- package/lib/esm/duet-empty-state.entry.js +4 -4
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +9 -9
- package/lib/esm/duet-grid_2.entry.js +7 -6
- package/lib/esm/duet-header_2.entry.js +5 -5
- package/lib/esm/duet-hero.entry.js +10 -10
- package/lib/esm/duet-icon.entry.js +5 -5
- package/lib/esm/duet-indicator.entry.js +4 -4
- package/lib/esm/duet-input_2.entry.js +12 -12
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +5 -5
- package/lib/esm/duet-menu-bar-button.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-menu-bar-item.entry.js +8 -8
- package/lib/esm/duet-menu-bar-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar.entry.js +6 -6
- package/lib/esm/duet-modal.entry.js +13 -13
- package/lib/esm/duet-multiselect.entry.js +10 -10
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +9 -9
- package/lib/esm/duet-number-input.entry.js +9 -9
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +4 -4
- package/lib/esm/duet-pagination_2.entry.js +16 -16
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +4 -4
- package/lib/esm/duet-popup-menu_2.entry.js +11 -11
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +5 -5
- package/lib/esm/duet-radio_2.entry.js +7 -7
- package/lib/esm/duet-range-slider.entry.js +6 -6
- package/lib/esm/duet-scrollable_3.entry.js +15 -15
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +10 -10
- package/lib/esm/duet-shaped-image.entry.js +4 -4
- package/lib/esm/duet-share-chart-item.entry.js +2 -2
- package/lib/esm/duet-share-chart.entry.js +6 -6
- package/lib/esm/duet-show-more.entry.js +5 -5
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +8 -8
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +11 -11
- package/lib/esm/duet-slideout.entry.js +10 -10
- package/lib/esm/duet-status-icon.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +7 -7
- package/lib/esm/duet-textarea.entry.js +8 -8
- package/lib/esm/duet-toggle.entry.js +24 -7
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +9 -9
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +9 -9
- package/lib/esm/duet-tooltip.entry.js +4 -4
- package/lib/esm/duet-tray.entry.js +5 -5
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +6 -6
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-BSrGsmkE.js → errorcodes.utils-AyF-6hZu.js} +1 -1
- package/lib/esm/{focus-utils-pVdst0px.js → focus-utils-CCWbE_kr.js} +1 -1
- package/lib/esm/{index-CPZ9Rh_9.js → index-BEyqDEKQ.js} +1 -1
- package/lib/esm/{label-DOI1kYHr.js → label-C58dWzTQ.js} +1 -1
- package/lib/esm/{language-utils-D2LZ-dAb.js → language-utils-BXhYaE0m.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-Plu0scZN.js → slot-utils-BI9kmtvd.js} +1 -1
- package/lib/esm/{themeable-component-CyP7TR8I.js → themeable-component-BAHIh10B.js} +1 -1
- package/lib/types/common-strings.d.ts +1 -0
- package/lib/types/common-types.d.ts +8 -1
- package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +6 -0
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +3 -1
- package/lib/types/components/duet-link/duet-link.d.ts +3 -1
- package/lib/types/components/duet-toggle/duet-toggle.d.ts +16 -0
- package/lib/types/components.d.ts +28 -2
- package/package.json +5 -5
- package/lib/duet/p-0557d0e3.entry.js +0 -4
- package/lib/duet/p-0596ed8f.entry.js +0 -4
- package/lib/duet/p-12037a2a.entry.js +0 -4
- package/lib/duet/p-22ecf342.entry.js +0 -4
- package/lib/duet/p-24bd3f6b.entry.js +0 -4
- package/lib/duet/p-38e2f4db.entry.js +0 -4
- package/lib/duet/p-4eb8634c.entry.js +0 -4
- package/lib/duet/p-5c8619fc.entry.js +0 -4
- package/lib/duet/p-760530e9.entry.js +0 -4
- package/lib/duet/p-8b3be0f7.entry.js +0 -4
- package/lib/duet/p-8d0727d6.entry.js +0 -4
- package/lib/duet/p-91ce1d13.entry.js +0 -4
- package/lib/duet/p-BBJluIMx.js +0 -4
- package/lib/duet/p-BiXEBkqx.js +0 -4
- package/lib/duet/p-CVPfl9fc.js +0 -4
- package/lib/duet/p-a79d0152.entry.js +0 -4
- package/lib/duet/p-b90b0d7a.entry.js +0 -4
- package/lib/duet/p-d16bdf01.entry.js +0 -4
- package/lib/duet/p-e51c28bc.entry.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -4766,7 +4766,13 @@ const DuetStringsExternalDefaults = {
|
|
|
4766
4766
|
const DuetStringsLoadingDefaults = {
|
|
4767
4767
|
fi: "Ladataan",
|
|
4768
4768
|
sv: "Laddas",
|
|
4769
|
-
en: "Loading
|
|
4769
|
+
en: "Loading",
|
|
4770
|
+
};
|
|
4771
|
+
// Use with loading messages if completion is not otherwise communicated
|
|
4772
|
+
const DuetStringsCompleteDefaults = {
|
|
4773
|
+
fi: "Valmis",
|
|
4774
|
+
sv: "Färdig",
|
|
4775
|
+
en: "Complete",
|
|
4770
4776
|
};
|
|
4771
4777
|
const DuetStringsPleaseWaitDefaults = {
|
|
4772
4778
|
fi: "Odota, ole hyvä.",
|
|
@@ -5122,12 +5128,12 @@ class DuetBadge {
|
|
|
5122
5128
|
*/
|
|
5123
5129
|
render() {
|
|
5124
5130
|
const backgroundClass = `background-${this.background}`;
|
|
5125
|
-
return (hAsync(Host, { key: '
|
|
5131
|
+
return (hAsync(Host, { key: '03d3bd79092c38d8958403b19d5c0cd283ab3ba5', class: { "duet-m-0": this.margin === "none" } }, hAsync("span", { key: 'f5a1274e6cf3bfde60480fa72d842cc767b1a273', class: {
|
|
5126
5132
|
"duet-badge": true,
|
|
5127
5133
|
[this.variation]: true,
|
|
5128
5134
|
[backgroundClass]: true,
|
|
5129
5135
|
"duet-theme-turva": this.theme === "turva",
|
|
5130
|
-
} }, hAsync("duet-visually-hidden", { key: '
|
|
5136
|
+
} }, hAsync("duet-visually-hidden", { key: 'dbd02ca355aa4f863f1e859229cb1bbfc370be66' }, this.getVariationLabel()), hAsync("slot", { key: '4a391eb33eecc9b346b7fdcb4b333d31d413b671' }))));
|
|
5131
5137
|
}
|
|
5132
5138
|
get element() { return getElement(this); }
|
|
5133
5139
|
static get style() { return duetBadgeCss; }
|
|
@@ -5380,15 +5386,15 @@ class DuetBreadcrumb {
|
|
|
5380
5386
|
*/
|
|
5381
5387
|
render() {
|
|
5382
5388
|
const Tag = this.href ? "a" : "span";
|
|
5383
|
-
return (hAsync(Host, { key: '
|
|
5389
|
+
return (hAsync(Host, { key: '941cfe85ceb3fa1921b6afe71d2885f36a071966', role: "listitem" }, hAsync("div", { key: '30ae1fd0a1a013d6fc7e2c318248c1c6eec5bbe5', class: "container" }, this.icon === "arrow-right-small-icon" && (hAsync("duet-icon", { key: '074eaae1ca2fa2797b8eba7a1354b0d815b1936d', class: "duet-breadrumbs-arrow", size: "auto", icon: arrowRightSmallIcon.svg, margin: "none", color: "currentColor" })), hAsync(Tag, { key: 'a69cd43b3f81311c55e245d1e292315cf885a972', class: {
|
|
5384
5390
|
"duet-breadcrumb": true,
|
|
5385
5391
|
"duet-theme-turva": this.theme === "turva",
|
|
5386
5392
|
"icon-only": this.icon && !this.hasSlottedContent,
|
|
5387
5393
|
}, href: this.href || undefined, "aria-label": this.accessibleLabel || this.element.textContent, "aria-current": this.href ? undefined : "page" }, this.icon !== "arrow-right-small-icon" &&
|
|
5388
5394
|
this.icon && [
|
|
5389
|
-
hAsync("duet-icon", { key: '
|
|
5390
|
-
this.hasSlottedContent && hAsync("duet-spacer", { key: '
|
|
5391
|
-
], hAsync("slot", { key: '
|
|
5395
|
+
hAsync("duet-icon", { key: 'bb4d4379b6b38d5f5a8a8852a3e8ae320b72a48a', size: this.iconSize, name: this.icon, margin: "none", color: "currentColor" }),
|
|
5396
|
+
this.hasSlottedContent && hAsync("duet-spacer", { key: '72e99845589045f22bfd119623a79c3f0206b812', size: "x-small", direction: "horizontal" }),
|
|
5397
|
+
], hAsync("slot", { key: '3190e7c4331c2856b71b54a5bdf6232b332dfa00' })))));
|
|
5392
5398
|
}
|
|
5393
5399
|
get element() { return getElement(this); }
|
|
5394
5400
|
static get style() { return duetBreadcrumbCss; }
|
|
@@ -5456,11 +5462,11 @@ class DuetBreadcrumbs {
|
|
|
5456
5462
|
*/
|
|
5457
5463
|
render() {
|
|
5458
5464
|
const color = getColorByName(this.color);
|
|
5459
|
-
return (hAsync(Host, { key: '
|
|
5465
|
+
return (hAsync(Host, { key: 'c98b2354a647046cdf36b9fc042a825d59f69016' }, hAsync("nav", { key: 'e5b3ab730c684343f6f7b551e3a90e4f804c33e4', "aria-label": this.breadcrumbsAriaLabel, class: {
|
|
5460
5466
|
"duet-breadcrumbs": true,
|
|
5461
5467
|
"duet-theme-turva": this.theme === "turva",
|
|
5462
5468
|
[this.variation]: true,
|
|
5463
|
-
} }, hAsync("div", { key: '
|
|
5469
|
+
} }, hAsync("div", { key: 'f31d96c0db9cd1c376cb303d8ecf24327d9c530e', class: "container" }, hAsync("div", { key: '94307d00ca67a2caf0783be3dfd2ebe7568dc21f', role: "list", class: "list", style: { color } }, hAsync("slot", { key: '1a5f46b90a2b35c16992b4af7766bcbd4d7925f2' })), hAsync("div", { key: '15d920594f56343f362d726da3a4a8d87edb10d7', class: "bottom-border bottom-border--container" })), hAsync("div", { key: '7bc1ccc417e8d621909d06bf2933ddd97ee6dbcc', class: "bottom-border bottom-border--nav" }))));
|
|
5464
5470
|
}
|
|
5465
5471
|
get element() { return getElement(this); }
|
|
5466
5472
|
static get style() { return duetBreadcrumbsCss; }
|
|
@@ -5881,11 +5887,11 @@ class DuetCallout {
|
|
|
5881
5887
|
<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"/>
|
|
5882
5888
|
</svg>
|
|
5883
5889
|
`;
|
|
5884
|
-
return (hAsync(Host, { key: '
|
|
5890
|
+
return (hAsync(Host, { key: 'b082df5828c66c540240a355c2143bdc97cdeda2' }, hAsync("div", { key: '318c40bc242a649eb1e74191703e77ef9f567dac', class: {
|
|
5885
5891
|
"duet-callout": true,
|
|
5886
5892
|
"duet-theme-turva": this.theme === "turva",
|
|
5887
5893
|
"duet-m-0": this.margin === "none",
|
|
5888
|
-
} }, hAsync("figure", { key: '
|
|
5894
|
+
} }, hAsync("figure", { key: '4c7ff23d3c646e8e37452488aba5b9a28344625f', class: "container" }, hAsync("duet-icon", { key: 'd5234359ce6513b20a552366603498b7dc5729f5', class: "callout-icon", shape: "brand-rotated", background: "primary-lighter", "background-opacity": "0.75", "background-rotation": this.theme === "turva" ? "0" : "7", color: "secondary", icon: icon, size: "auto", margin: "none", theme: this.theme }), hAsync("blockquote", { key: '67ab9a0d89f6abff523b8ca16a20c2a67865b86a' }, hAsync("slot", { key: 'fc4670a439f114411b42ce3dcd8ef7f365fa650c' })), this.hasAuthorSlot && (hAsync("figcaption", { key: '9d1b92d3229bef3447e7b5590efc766d4efb2ad6', class: "author" }, hAsync("span", { key: '5310ad556c87706338d0a75058107d2e4d1fe241' }, "\u2014 "), hAsync("slot", { key: 'f7281f1633a536bd242831e952ca1bc240b98b1c', name: "author" })))))));
|
|
5889
5895
|
}
|
|
5890
5896
|
get element() { return getElement(this); }
|
|
5891
5897
|
static get style() { return duetCalloutCss; }
|
|
@@ -6165,8 +6171,11 @@ class DuetCard {
|
|
|
6165
6171
|
}; }
|
|
6166
6172
|
}
|
|
6167
6173
|
|
|
6168
|
-
const duetCheckboxCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:8px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}
|
|
6174
|
+
const duetCheckboxCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:8px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host(.form-distribute:last-of-type:not(:last-child)){margin-right:8px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}: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;vertical-align:top;color:rgb(8, 42, 77);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{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{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-checkbox:focus+label::before,.duet-checkbox:focus+label::before.duet-theme-turva,.duet-theme-turva2 .duet-checkbox:focus+label::before,.duet-checkbox:focus+label::before.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-checkbox:focus+label::before{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.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-after-label{position:relative;z-index:3;padding-left:31px;margin-top:12px;cursor:default}.duet-checkbox-error{position:relative;z-index:3;padding-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;border:0;clip:rect(0 0 0 0)}:host(.duet-theme-turva2) .duet-theme-turva .duet-label{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-checkbox+label::before{border-color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-checkbox:checked+label::before{background:rgb(23, 42, 59);border-color:rgb(23, 42, 59)}";
|
|
6169
6175
|
|
|
6176
|
+
/**
|
|
6177
|
+
* @slot after-label - Shows content seamlessly after the label. Unlike with the label, here you can have links and other markup.
|
|
6178
|
+
*/
|
|
6170
6179
|
class DuetCheckbox {
|
|
6171
6180
|
constructor(hostRef) {
|
|
6172
6181
|
registerInstance(this, hostRef);
|
|
@@ -6177,7 +6186,9 @@ class DuetCheckbox {
|
|
|
6177
6186
|
* Own Properties.
|
|
6178
6187
|
*/
|
|
6179
6188
|
this.checkboxId = createID("DuetCheckbox");
|
|
6189
|
+
this.afterLabelId = createID("DuetCheckboxAfterLabel");
|
|
6180
6190
|
this.errorId = createID("DuetError");
|
|
6191
|
+
this.hasAfterLabelSlot = false;
|
|
6181
6192
|
/**
|
|
6182
6193
|
* Controls the margin of the component.
|
|
6183
6194
|
*/
|
|
@@ -6283,6 +6294,7 @@ class DuetCheckbox {
|
|
|
6283
6294
|
*/
|
|
6284
6295
|
componentWillLoad() {
|
|
6285
6296
|
inheritGlobalTheme(this);
|
|
6297
|
+
this.hasAfterLabelSlot = hasSlot(this.element, "after-label");
|
|
6286
6298
|
if (this.value === undefined) {
|
|
6287
6299
|
this.value = this.identifier;
|
|
6288
6300
|
}
|
|
@@ -6294,17 +6306,27 @@ class DuetCheckbox {
|
|
|
6294
6306
|
async setFocus(options) {
|
|
6295
6307
|
this.nativeInput.focus(options);
|
|
6296
6308
|
}
|
|
6309
|
+
getAriaDetails() {
|
|
6310
|
+
const details = [];
|
|
6311
|
+
if (this.accessibleDetails) {
|
|
6312
|
+
details.push(this.accessibleDetails);
|
|
6313
|
+
}
|
|
6314
|
+
if (this.hasAfterLabelSlot) {
|
|
6315
|
+
details.push(this.afterLabelId);
|
|
6316
|
+
}
|
|
6317
|
+
return details.join(" ");
|
|
6318
|
+
}
|
|
6297
6319
|
/**
|
|
6298
6320
|
* render() function
|
|
6299
6321
|
* Always the last one in the class.
|
|
6300
6322
|
*/
|
|
6301
6323
|
render() {
|
|
6302
6324
|
const identifier = this.identifier || this.checkboxId;
|
|
6303
|
-
return (hAsync(Host, { key: '
|
|
6325
|
+
return (hAsync(Host, { key: '89b58639dd5439529654ebe6791968205c6a0dcc', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '4fbfc9f9546310625a3767dae94b2ae517b3f7d8', class: {
|
|
6304
6326
|
"duet-checkbox-container": true,
|
|
6305
6327
|
"duet-label-hidden": this.labelHidden,
|
|
6306
6328
|
"duet-theme-turva": this.theme === "turva",
|
|
6307
|
-
} }, hAsync("input", { key: '
|
|
6329
|
+
} }, hAsync("input", { key: 'ddd0f55c22714aa512410996c1dbe3236e9583c4', ref: input => (this.nativeInput = input), type: "checkbox", onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, value: this.value, class: { "duet-checkbox": true, disabled: this.disabled }, checked: this.checked, disabled: this.disabled, tabindex: this.accessibleIndex, "aria-invalid": this.error ? "true" : "false", "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.getAriaDetails(), "aria-description": this.accessibleDescription, "aria-selected": this.accessibleSelected, required: this.required, role: this.role, name: this.name, id: identifier }), hAsync("label", { key: '7944e807c4a8fcaafc9eff276db3966aa9c40c2b', class: "duet-label", htmlFor: identifier }, hAsync("span", { key: 'b47a404400a92048a27be9d518269e1df8fb6aa3' }, this.label)), hAsync("div", { key: '1aa8a524fc1166a166d663a8cedfecac82db681e', class: "duet-after-label", id: this.afterLabelId }, hAsync("slot", { key: '6c9ea33f6cf0082e06196679183eeb43e3a2067d', name: "after-label" })), hAsync("div", { key: 'a050694cc104b9c1ceae613ae2b6fa689ca36768', class: "duet-checkbox-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'ed6d7890a72979f4e4245cd84f55ee992ef6f6af' }, this.error)))));
|
|
6308
6330
|
}
|
|
6309
6331
|
get element() { return getElement(this); }
|
|
6310
6332
|
static get style() { return duetCheckboxCss; }
|
|
@@ -6334,6 +6356,7 @@ class DuetCheckbox {
|
|
|
6334
6356
|
"role": [1],
|
|
6335
6357
|
"checked": [1540],
|
|
6336
6358
|
"value": [1537],
|
|
6359
|
+
"hasAfterLabelSlot": [32],
|
|
6337
6360
|
"setFocus": [64]
|
|
6338
6361
|
},
|
|
6339
6362
|
"$listeners$": undefined,
|
|
@@ -6375,11 +6398,11 @@ class DuetCheckmark {
|
|
|
6375
6398
|
inheritGlobalTheme(this);
|
|
6376
6399
|
}
|
|
6377
6400
|
render() {
|
|
6378
|
-
return (hAsync(Host, { key: '
|
|
6401
|
+
return (hAsync(Host, { key: '77d8d9cfa205def19022cd899ab98eb36007d2e2', class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: 'b93b32d626ceca01d12390209e700eef8665fd8b', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, hAsync("div", { key: 'fa4d7323cf416248275604e05b261bc1f542ea6e', class: {
|
|
6379
6402
|
"duet-checkmark-container": true,
|
|
6380
6403
|
center: this.center,
|
|
6381
6404
|
"duet-checkmark-radio": this.type === "radio",
|
|
6382
|
-
} }, this.checked && hAsync("div", { key: '
|
|
6405
|
+
} }, this.checked && hAsync("div", { key: 'd2a988ecdd6f5d41ce318365966515ff92c252c6', class: "duet-checkmark" })))));
|
|
6383
6406
|
}
|
|
6384
6407
|
static get style() { return duetCheckmarkCss; }
|
|
6385
6408
|
static get cmpMeta() { return {
|
|
@@ -6731,7 +6754,7 @@ class DuetChip {
|
|
|
6731
6754
|
onBlur: this.onBlur,
|
|
6732
6755
|
ref: el => (this.focusableElement = el),
|
|
6733
6756
|
};
|
|
6734
|
-
return (hAsync(Host, { key: '
|
|
6757
|
+
return (hAsync(Host, { key: 'e26aa34e15b03e670a0f3f0e0d4cc24a237434bd', class: { [this.variation]: true } }, this.variation === "button" && (hAsync("span", { key: '9f57e595caa81d8d4b84394b3a4a49fbdf19da48', class: classes }, hAsync("button", Object.assign({ key: 'd68d62140116bf1fbb975b9b6b0453ff209e02c1', id: identifier, "aria-label": this.accessibleLabel, "aria-haspopup": this.getAccessiblePopup(), "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, name: this.name, value: this.value, onClick: this.disabled ? evt => evt.stopPropagation() : undefined }, focusHandlers), hAsync("span", { key: 'ddf0a95c86a07ebed9110017d6a0bd77e47a3e95', class: "duet-chip-icon-container" }, this.icon && (hAsync("duet-icon", { key: 'd6adb6765da92cb43ed0c408ecd8bea4221047a8', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), hAsync("slot", { key: 'ce3208e6913557213ca536866493c7765bc2cb77' })))), this.variation === "input" && (hAsync("span", { key: '75ec4e277b428b7e34bd5366b9a487c16c886ae9', class: classes, "aria-label": this.getAccessibleInputChipLabel() }, hAsync("button", Object.assign({ key: '92de738c0bd52efb610ecc97056827f0af9a1252', 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: 'ff2ae73783f77320559096261e367a6d5496c9fb', class: "duet-chip-icon-container" }, this.icon && (hAsync("duet-icon", { key: 'f8ac9cb89ed8e949a37944938652b62008fc19c7', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), hAsync("slot", { key: 'aaf69ef9eb8e5b3f48a68e4a01a70b2272d469ae' })), hAsync("button", { key: 'fe3a6dcce274c4f812c58da61c30f97707ef5767', 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: 'e548beece645e839b0b43bfcd131764db993bf9f', name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (hAsync("span", { key: 'e5fd9ed10732bda6ab5ce6a44297a923c251badb', class: classes }, hAsync("input", Object.assign({ key: '86e4c71d067982fef1537d4ab02e9c28d20696b3', "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: 'd7f775b63603946790ea8e4412cde73865c49683', htmlFor: identifier }, this.icon && (hAsync("span", { key: '274d90f5406d6dd2d7d7386b1b4bdec927781a5c', class: "duet-chip-icon-container" }, hAsync("duet-icon", { key: '5425392636f14e79e52edb733baec19b330be1b4', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), hAsync("duet-icon", { key: '34eadef6cfac6361f4069f673efd04df0c6de0cc', name: "messaging-checked-small", size: this.size === "large" ? "x-small" : "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), hAsync("slot", { key: '6f33a83d88ab32af90c49a61aa55459c1c6a4e27' }), this.popupElement && (hAsync("span", { key: 'efccfca32d5aefd8c0f6d8da8c39941f93fafa73', class: "duet-chip-popup-disclosure" }, hAsync("duet-icon", { key: '49d87cd5a7e0b1249c9b484ab6ffb949b32a9d0a', name: "action-arrow-down-small", size: this.size === "large" ? "xx-small" : "xxx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (hAsync("span", { key: '34755198707218679008f8d3f1345f378a9f1be8', class: classes }, hAsync("slot", { key: 'c2fec1770e3e9916e9a456519bdb73461d00e32c', name: "input" }), hAsync("label", { key: '34286b6515f0c2f96d8ebb84f8c99a9ecdca76c2', htmlFor: identifier }, this.icon && (hAsync("span", { key: '5fbfe0a0c184a04844eccc440c042fae5f5321be', class: "duet-chip-icon-container" }, hAsync("duet-icon", { key: 'c0ada34d07c59029ef1961d0d60f9e801e8e38cc', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), hAsync("duet-icon", { key: '4b2626e45a9078b5ea6993183f57c5a0bfdc38c8', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), hAsync("slot", { key: 'a4b9352bda8b5f9e9ce1912d07159c77844a4580' }))))));
|
|
6735
6758
|
}
|
|
6736
6759
|
get element() { return getElement(this); }
|
|
6737
6760
|
static get watchers() { return {
|
|
@@ -7167,7 +7190,7 @@ class DuetChoice {
|
|
|
7167
7190
|
* Always the last one in the class.
|
|
7168
7191
|
*/
|
|
7169
7192
|
render() {
|
|
7170
|
-
return (hAsync(Host, { key: '
|
|
7193
|
+
return (hAsync(Host, { key: '583ef635169af9972811ec71576988fa12c1ad9a', class: {
|
|
7171
7194
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
7172
7195
|
[`horizontal-responsive-${this.groupResponsive}`]: this.groupDirection === "horizontal" && !!this.groupResponsive,
|
|
7173
7196
|
"vertical-stretch": this.groupDirection === "horizontal",
|
|
@@ -7176,10 +7199,10 @@ class DuetChoice {
|
|
|
7176
7199
|
"duet-theme-turva": this.theme === "turva",
|
|
7177
7200
|
"no-hover": this.isHovering,
|
|
7178
7201
|
disabled: this.getDisabled(),
|
|
7179
|
-
} }, hAsync("div", { key: '
|
|
7202
|
+
} }, hAsync("div", { key: 'ca64fbe3bb8291ad36305267c7e1ea02355ebc5c', class: {
|
|
7180
7203
|
"duet-choice-card-flextainer": true,
|
|
7181
7204
|
"duet-theme-turva": this.theme === "turva",
|
|
7182
|
-
} }, hAsync("div", { key: '
|
|
7205
|
+
} }, hAsync("div", { key: 'cad7111f70511cf2f1dbe0e9db6c00c0f2e038ad', class: {
|
|
7183
7206
|
"duet-choice-card": true,
|
|
7184
7207
|
"has-icon": !!this.icon,
|
|
7185
7208
|
"has-info": this.hasInfo,
|
|
@@ -7188,16 +7211,16 @@ class DuetChoice {
|
|
|
7188
7211
|
collapsible: this.collapsible,
|
|
7189
7212
|
"collapsible-force-expanded": this.collapsibleForceExpanded,
|
|
7190
7213
|
"duet-p-0": this.padding === "none",
|
|
7191
|
-
} }, hAsync("slot", { key: '
|
|
7214
|
+
} }, hAsync("slot", { key: 'bb7405107756f726503cf0e17278761d9f68386e', name: "choiceinput" }), hAsync("label", { key: '0ae8fc10a14a1b68cf78e7fe65164cc4ac4471f4', class: {
|
|
7192
7215
|
"duet-choice-label": true,
|
|
7193
7216
|
"has-before-text": this.hasBeforeText,
|
|
7194
7217
|
checked: this.checked,
|
|
7195
7218
|
focus: this.focus,
|
|
7196
7219
|
disabled: this.getDisabled(),
|
|
7197
|
-
}, onClick: this.onClick }, this.hasBeforeText && hAsync("slot", { key: '
|
|
7220
|
+
}, onClick: this.onClick }, this.hasBeforeText && hAsync("slot", { key: '174aa0372dd6cce4bc695425fc0f4f9b9ef51e89', name: "before-text" }), this.icon && (hAsync("div", { key: '1d8c96fbbb225864342228a15026d56c2288ba7c', class: "duet-choice-card-icon" }, hAsync("duet-icon", { key: '737fc607c29c5178a62c6981571c1624e3a7d993', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), hAsync("div", { key: 'e97966ca1b32ac47460f193997509eda09904469', class: "duet-choice-card-text" }, hAsync("div", { key: 'df684a3bf298011052b12e8a8a781f537403a1a0' }, this.hasLabel ? hAsync("slot", { name: "label" }) : this.label), this.caption && (hAsync("div", { key: 'eb703567d8b2d2a3d940af79c3e36e339b16358e' }, hAsync("duet-spacer", { key: '2a260bd1fa121622e21c8e64952c14a8fdf7e40f', size: "xx-small" }), hAsync("duet-caption", { key: 'ca97833b65e235dc4316249086e099f33cbea465', margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (hAsync("div", { key: 'bce4fd584082e0a2d2b6e72ba5ffb32487c55564' }, hAsync("duet-spacer", { key: '40efa3cc50c5636c85cfab0e4ba9e96aafad8f79', size: "xx-small" }), hAsync("slot", { key: 'db4d24e43aa875de213391981ed2b841137337aa', name: "additional" })))), hAsync("div", { key: '496255f50229c21cf645b9b2a0a3c10db73cee12' }, hAsync("div", { key: '90180fd834fc6a1f39cc6dcea6a61133961cbdaf', class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && hAsync("div", { key: '1d6455f6915d00399fdb586aca6b0ee2a622d2da', class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (hAsync("button", { key: '8897ce9328e49c68fef9b9901e8e6f271cd484d9', ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
|
|
7198
7221
|
"duet-choice-info-toggle": true,
|
|
7199
7222
|
"duet-theme-turva": this.theme === "turva",
|
|
7200
|
-
}, 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: '
|
|
7223
|
+
}, 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: 'cd0cc7ea1a4d1f7dfaf0a0cc0f2296c71d3b5d43', class: "duet-choice-info-icon" }, hAsync("duet-icon", { key: '62c25ce3534a78c7f7b5cf5c7cdc53caaf42435a', icon: infoIcon.svg, margin: "none", size: "small", color: "currentColor" }))))), this.collapsible && (hAsync("span", { key: 'efa969656f43120c9b8670160671c1c0c9630714', id: `${this.choiceId}-collapsible-notification`, hidden: true }, this.collapsibleNotification)), this.collapsible || this.hasInfo ? (hAsync("div", { class: this.getClassNames(), id: this.expandId }, hAsync("span", { class: {
|
|
7201
7224
|
"duet-choice-section-visible": this.collapsible ? this.getExpanded() : this.isInfoOpen,
|
|
7202
7225
|
"duet-choice-section-hidden": this.collapsible ? !this.getExpanded() : !this.isInfoOpen,
|
|
7203
7226
|
} }, hAsync("span", { id: this.headerId }, hAsync("slot", { name: "header" })), this.hasInfo ? (hAsync("span", { ref: span => (this.infoContainer = span), tabindex: "-1", 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));
|
|
@@ -7426,14 +7449,14 @@ class DuetChoiceGroup {
|
|
|
7426
7449
|
* Always the last one in the class.
|
|
7427
7450
|
*/
|
|
7428
7451
|
render() {
|
|
7429
|
-
return (hAsync(Host, { key: '
|
|
7452
|
+
return (hAsync(Host, { key: '91ad25e9ae34e334eb8c94c39477915350324fe4', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, class: {
|
|
7430
7453
|
horizontal: this.direction === "horizontal",
|
|
7431
7454
|
"duet-choice-group-breakpoint-x-small": this.responsive && this.breakpoint === "x-small",
|
|
7432
7455
|
"duet-choice-group-breakpoint-small": this.responsive && this.breakpoint === "small",
|
|
7433
7456
|
"duet-choice-group-breakpoint-medium": this.responsive && this.breakpoint === "medium",
|
|
7434
7457
|
"duet-choice-group-breakpoint-large": this.responsive && this.breakpoint === "large",
|
|
7435
7458
|
"duet-choice-group-breakpoint-x-large": this.responsive && this.breakpoint === "x-large",
|
|
7436
|
-
} }, hAsync("duet-fieldset", { key: '
|
|
7459
|
+
} }, hAsync("duet-fieldset", { key: '8be987ee15a23906a771c28b844ae283ca5df13c', 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: 'fb25c9c926cc1e47bf9147112634d1c2f792dfb5', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '9236736c2872c5ab10bccad8c12ee2819bf41270', name: "tooltip" }), hAsync("div", { key: '5cb0b64392398f6535d947c142ae27a794820dec', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: 'eddef456160e825d9a44fcade7482e854de79824' })))));
|
|
7437
7460
|
}
|
|
7438
7461
|
get element() { return getElement(this); }
|
|
7439
7462
|
static get watchers() { return {
|
|
@@ -8554,7 +8577,7 @@ class DuetCollapsible {
|
|
|
8554
8577
|
*/
|
|
8555
8578
|
render() {
|
|
8556
8579
|
const HeadingTagName = this.headingTags.includes(this.headingLevel) ? this.headingLevel : "div";
|
|
8557
|
-
return (hAsync(Host, { key: '
|
|
8580
|
+
return (hAsync(Host, { key: 'fd4435676c3862734ae74dc5a3f87b8eab2f70f4', class: { "duet-m-0": this.margin === "none", negative: this.negative } }, hAsync(HeadingTagName, { key: 'a8cebd440d7d71ec114617e5fb99929f577c4519' }, hAsync("button", { key: '20835d6fa2e0dd36cc25d5400f31d29f00123c08', class: {
|
|
8558
8581
|
"duet-collapsible-heading": true,
|
|
8559
8582
|
"duet-collapsible-heading-centered": this.centerHeading,
|
|
8560
8583
|
"duet-theme-turva": this.theme === "turva",
|
|
@@ -8562,7 +8585,7 @@ class DuetCollapsible {
|
|
|
8562
8585
|
"has-after-heading": this.hasAfterHeadingSlot,
|
|
8563
8586
|
"full-width": this.headingFullWidth,
|
|
8564
8587
|
"has-caption": !!this.caption,
|
|
8565
|
-
}, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", ref: button => (this.nativeButton = button), "aria-label": this.getAccessibleLabel(), "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, hAsync("div", { key: '
|
|
8588
|
+
}, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", ref: button => (this.nativeButton = button), "aria-label": this.getAccessibleLabel(), "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, hAsync("div", { key: '5efe212565a40b4805d565c6856ef080f3b0b696', class: "duet-collapsible-heading-wrapper" }, hAsync("div", { key: '09dde2b49aa4b3aee5ae10e6cd6ffee6bdd75faa', class: "duet-collapsible-heading-icon" }, hAsync("duet-icon", { key: '6bc4d5b4d62dcd39c6b03a37f0879d19d9b56f14', margin: "none", size: this.getEquivalentIconSize(), icon: arrowDownIcon.svg })), hAsync("div", { key: 'cc07686af44301b10a541149bffc8df833a294f3', class: "duet-collapsible-heading-content", part: "duet-collapsible-heading-content" }, this.heading ? this.heading : hAsync("slot", { name: "heading" })), this.hasAfterHeadingSlot && (hAsync("div", { key: '83f79853695547594c25a1b017c0653d4e4edc7d', part: "duet-collapsible-after-heading" }, hAsync("slot", { key: '47dd2ce6d896f75c6814594899604aa15e9a98cd', name: "after-heading" })))), this.caption && (hAsync("div", { key: 'ebd4561054092f312999f98f8e859bd193cb9613', class: "duet-collapsible-heading-caption" }, hAsync("duet-caption", { key: 'f620061ec26eed524ee27e417d6fb1e828fc04e8', size: "small", margin: "none" }, this.caption))))), hAsync("div", { key: '4a2de882c742fbd31fb4c1ce959e9c081cf1a15d', id: this.id, class: { "duet-collapsible-content": true, "duet-theme-turva": this.theme === "turva" }, part: "duet-collapsible-content" }, hAsync("slot", { key: '7efd617c6d79dba957e02d3a7ea4677629c64ef7' }))));
|
|
8566
8589
|
}
|
|
8567
8590
|
get element() { return getElement(this); }
|
|
8568
8591
|
static get style() { return duetCollapsibleCss; }
|
|
@@ -8619,6 +8642,7 @@ class DuetCombobox {
|
|
|
8619
8642
|
this.selectedItems = new Set();
|
|
8620
8643
|
// the activeItem number is based upon the array.index of the array stored in processedItems
|
|
8621
8644
|
this.activeItem = undefined;
|
|
8645
|
+
this.activeItemAnnouncement = "";
|
|
8622
8646
|
/**
|
|
8623
8647
|
* Defaults for the accessible labels for the select items
|
|
8624
8648
|
*/
|
|
@@ -8720,7 +8744,9 @@ class DuetCombobox {
|
|
|
8720
8744
|
const listItemsSuggestions = listItems.filter(i => !this.selectedItems.has(i.id));
|
|
8721
8745
|
// this should be set to undefined on everything BUT up/down arrow according to the aria 1.1 specs
|
|
8722
8746
|
// https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
|
|
8723
|
-
|
|
8747
|
+
// 2026-06-09: changing to aria-live approach, as aria-activedescedant stopped working with shadow-DOM
|
|
8748
|
+
// change in Duet v10. Leaving this line as a reminder for future investigation.
|
|
8749
|
+
// this.input.accessibleActiveDescendant = undefined
|
|
8724
8750
|
if (isEnterKey(e)) {
|
|
8725
8751
|
e.preventDefault();
|
|
8726
8752
|
if (this.listOpen &&
|
|
@@ -8779,7 +8805,9 @@ class DuetCombobox {
|
|
|
8779
8805
|
}
|
|
8780
8806
|
// this should be set to undefined on everything BUT up/down arrow according to the aria 1.1 specs
|
|
8781
8807
|
// https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
|
|
8782
|
-
|
|
8808
|
+
// 2026-06-09: changing to aria-live approach, as aria-activedescedant stopped working with shadow-DOM
|
|
8809
|
+
// change in Duet v10. Leaving this line as a reminder for future investigation.
|
|
8810
|
+
// this.input.accessibleActiveDescendant = this.activeDescendantId
|
|
8783
8811
|
this.activeItem = nextActiveItem;
|
|
8784
8812
|
this.scrollToActive();
|
|
8785
8813
|
}
|
|
@@ -8789,13 +8817,29 @@ class DuetCombobox {
|
|
|
8789
8817
|
popupMenuOpenHandler() {
|
|
8790
8818
|
if (this.listOpen) {
|
|
8791
8819
|
this.listContainer.show();
|
|
8820
|
+
this.announceActiveItem();
|
|
8792
8821
|
}
|
|
8793
8822
|
else {
|
|
8794
8823
|
this.listContainer.hide();
|
|
8795
8824
|
}
|
|
8796
8825
|
}
|
|
8797
|
-
activeItemHandler(
|
|
8798
|
-
|
|
8826
|
+
activeItemHandler(_state) {
|
|
8827
|
+
// 2026-06-09: changing to aria-live approach, as aria-activedescedant stopped working with shadow-DOM
|
|
8828
|
+
// change in Duet v10. The live region in render() handles screen reader announcements instead.
|
|
8829
|
+
// Leaving this line as a reminder for future investigation. Note also the param change state => _state
|
|
8830
|
+
// this.input.accessibleActiveDescendant = this.listOpen && (state || state === 0) ? this.activeDescendantId : ""
|
|
8831
|
+
this.announceActiveItem();
|
|
8832
|
+
}
|
|
8833
|
+
announceActiveItem() {
|
|
8834
|
+
if (this.listOpen && (this.activeItem || this.activeItem === 0) && this.processedItems) {
|
|
8835
|
+
const selectElements = this.returnFilteredOrNonFiltered();
|
|
8836
|
+
const item = selectElements[this.activeItem];
|
|
8837
|
+
if (item) {
|
|
8838
|
+
this.activeItemAnnouncement = this.formatLabel(item, this.activeItem, selectElements.length, this.processedItems.length);
|
|
8839
|
+
return;
|
|
8840
|
+
}
|
|
8841
|
+
}
|
|
8842
|
+
this.activeItemAnnouncement = "";
|
|
8799
8843
|
}
|
|
8800
8844
|
inputValueHandler() {
|
|
8801
8845
|
setTimeout(async () => {
|
|
@@ -9188,6 +9232,7 @@ class DuetCombobox {
|
|
|
9188
9232
|
"popupMenuController": [32],
|
|
9189
9233
|
"selectedItems": [32],
|
|
9190
9234
|
"activeItem": [32],
|
|
9235
|
+
"activeItemAnnouncement": [32],
|
|
9191
9236
|
"formatItem": [64]
|
|
9192
9237
|
},
|
|
9193
9238
|
"$listeners$": [[4, "click", "handleDocumentClick"]],
|
|
@@ -9242,10 +9287,10 @@ class DuetContactCard {
|
|
|
9242
9287
|
render() {
|
|
9243
9288
|
const isTurva = this.theme === "turva";
|
|
9244
9289
|
const theme = isTurva ? "turva" : "default";
|
|
9245
|
-
return (hAsync(Host, { key: '
|
|
9290
|
+
return (hAsync(Host, { key: '6cf20cb225b22fbb826b136c3909234684d30e3d', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '24e57cbe34b4d01ff024fe8128d3168b61e61af6', class: {
|
|
9246
9291
|
"duet-contact-card": true,
|
|
9247
9292
|
"duet-theme-turva": this.theme === "turva",
|
|
9248
|
-
}, role: "group", "aria-label": this.name }, this.image ? hAsync("img", { class: "image", src: this.image, alt: this.name }) : hAsync("div", null), hAsync("div", { key: '
|
|
9293
|
+
}, role: "group", "aria-label": this.name }, this.image ? hAsync("img", { class: "image", src: this.image, alt: this.name }) : hAsync("div", null), hAsync("div", { key: 'f3c40c440d2d9dd97e3c1e24817d60e62f6347f0' }, this.name && (hAsync("duet-heading", { key: 'cde7a70f10cfdd45e801c9ef923e116b2ee12e42', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (hAsync("duet-paragraph", { key: '1c855114d2101701a8b39f75fe8b2ae76d5ffe57', class: "description", margin: "none", theme: theme }, this.description)), this.email && (hAsync("div", { key: 'b552b0f0de5e16059e77ee518e2087d24a2171c4', class: "email" }, hAsync("duet-icon", { key: '2048a5cb8e29d7d664c984c72031cdfd1894e0a6', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: '6e2a9b632e0fb1df3efd51dc66d6df1891eaa3a1', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (hAsync("div", { key: '1a263f67d1844f9c2ba334ba24ebc32d9faf4b86', class: "phone" }, hAsync("duet-icon", { key: 'dab3c18ed7f4c092aa8644ef6d9a915854c9e33d', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: '68c6b2ff4480300f563b7d8d65fb4d47160fcd8b', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (hAsync("div", { key: '70288a25480b39a333831a129def567c99f202b7', class: "call-to-action" }, hAsync("duet-button", { key: 'c5fccd74b8b2b6b4917b464c5e723c657e326bb0', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), hAsync("div", { key: '9fd8e574534d15aa89eaac786c257586a6f9f845' }), hAsync("slot", { key: 'ab0fa1cc3232c70441d441e4c673b8b562ffbe92' }))));
|
|
9249
9294
|
}
|
|
9250
9295
|
get element() { return getElement(this); }
|
|
9251
9296
|
static get style() { return duetContactCardCss; }
|
|
@@ -9317,7 +9362,7 @@ class DuetCookieConsent {
|
|
|
9317
9362
|
* Always the last one in the class.
|
|
9318
9363
|
*/
|
|
9319
9364
|
render() {
|
|
9320
|
-
return (hAsync(Host, { key: '
|
|
9365
|
+
return (hAsync(Host, { key: 'a0945b87dc3ca428ebb77b5bafc937d26fe77b58', tabindex: "-1", class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: 'e4870573df557f7b4d7a6075afbd04fc23f54ff1', class: { "duet-cookie-consent": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: 'd0f1b43a014ccc35c9845c8c4117a8552eee8209', class: "duet-cookie-consent-content" }, hAsync("div", { key: '98d8e55937ee5afda2a8d975ebb0d4e5aefc0014', class: "expand" }, hAsync("slot", { key: '5529c9819da700b849bbf3e0f4b4c93cf4da6015' })), hAsync("duet-spacer", { key: '82e710ce0de7d91f931cbb2177d6470f77701ec4', size: "large", direction: "horizontal" }), hAsync("div", { key: '9cbf5dd3a7d82025a0912ca016b67e1b0f0022fc' }, hAsync("duet-button", { key: '50a246e22443b54c881d40063c0405f07d7190dc', variation: "negative", size: "small", onClick: this.handleClick, margin: "none", "aria-label": this.accessibleLabel, theme: this.theme }, "OK"))))));
|
|
9321
9366
|
}
|
|
9322
9367
|
get element() { return getElement(this); }
|
|
9323
9368
|
static get style() { return duetCookieConsentCss; }
|
|
@@ -9771,7 +9816,7 @@ const DatePickerMonth = ({ selectedDate, focusedDate, labelledById, theme, langu
|
|
|
9771
9816
|
} }))))))))));
|
|
9772
9817
|
};
|
|
9773
9818
|
|
|
9774
|
-
const duetDatePickerCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}[alignment=form-distribute]>:host(:last-of-type:not(:last-child)){margin-right:16px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;vertical-align:top;text-align:left}@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(143, 147, 158);border-left-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){outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva .duet-date-button:hover:not(:disabled),.duet-date-button:hover:not(:disabled).duet-theme-turva,.duet-theme-turva2 .duet-date-button:hover:not(:disabled),.duet-date-button:hover:not(:disabled).duet-theme-turva2{outline-color:rgb(120, 145, 164)}.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)}.duet-date-input-has-focus .duet-date-button:focus,.duet-date-button:focus:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-date-input-has-focus .duet-date-button:focus,.duet-date-input-has-focus .duet-date-button:focus.duet-theme-turva,.duet-theme-turva2 .duet-date-input-has-focus .duet-date-button:focus,.duet-date-input-has-focus .duet-date-button:focus.duet-theme-turva2,.duet-theme-turva .duet-date-button:focus:focus,.duet-date-button:focus:focus.duet-theme-turva,.duet-theme-turva2 .duet-date-button:focus:focus,.duet-date-button:focus:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva.duet-date-input-has-focus .duet-date-button,.duet-theme-turva .duet-date-button:focus{color:rgb(23, 28, 58)}.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;visibility:hidden;width:100%;opacity:0;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease}@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;transform:translateZ(0);transform-origin:bottom center;transition:opacity 400ms ease, visibility 400ms ease}}.duet-date-dialog.active{visibility:visible;opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);transition-property:transform, opacity}@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;visibility:hidden;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transform:translateZ(0) translateY(100%);transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease}.active .duet-date-dialog-wrapper{visibility:visible;opacity:1;transform:translateZ(0) translateY(0);transition-property:transform, opacity}}.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-transform:uppercase;letter-spacing:1px;text-decoration:none}.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;vertical-align:initial !important;color:rgb(8, 42, 77) !important;text-align:center;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}.selected .duet-date-table-button,:focus .duet-date-table-button{color:rgb(255, 255, 255) !important;outline:0;background:rgb(0, 119, 179) !important}.duet-theme-turva .selected .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{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8);z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important}.duet-theme-turva .duet-date-table-button:active,.duet-date-table-button:active.duet-theme-turva,.duet-theme-turva2 .duet-date-table-button:active,.duet-date-table-button:active.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}:focus .duet-date-table-button{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8);z-index:200}.duet-theme-turva :focus .duet-date-table-button,:focus .duet-date-table-button.duet-theme-turva,.duet-theme-turva2 :focus .duet-date-table-button,:focus .duet-date-table-button.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-date-table-button.disabled{color:rgb(127, 150, 165) !important;cursor:default;outline:none !important;background:transparent !important}.duet-theme-turva .duet-date-table-button.disabled{color:rgb(143, 147, 158) !important;outline:none !important;background:transparent !important}.duet-date-table-button.outside{color:rgb(127, 150, 165) !important;pointer-events:none;cursor:default;outline:none;background:rgb(245, 248, 250) !important;opacity:0.75}.duet-theme-turva .duet-date-table-button.outside{color:rgb(143, 147, 158);outline:none;background:rgb(245, 247, 250)}.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{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-date-dialog-select select:focus+.duet-date-dialog-select-label,.duet-date-dialog-select select:focus+.duet-date-dialog-select-label.duet-theme-turva,.duet-theme-turva2 .duet-date-dialog-select select:focus+.duet-date-dialog-select-label,.duet-date-dialog-select select:focus+.duet-date-dialog-select-label.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.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 label{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header 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;-webkit-appearance:none;appearance:none;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%}@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:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-date-picker-close:focus,.duet-date-picker-close:focus.duet-theme-turva,.duet-theme-turva2 .duet-date-picker-close:focus,.duet-date-picker-close:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}@media (min-width: 36em){.duet-date-picker-close:focus{opacity:1}}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-button{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-date-input-has-focus :host(.duet-theme-turva2) .duet-theme-turva,:host(.duet-theme-turva2) .duet-theme-turva:focus{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button{color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button:hover:not(.disabled){background:rgb(251, 225, 209) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button.today{background:rgb(253, 247, 242) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button.outside{color:rgb(120, 145, 164) !important;background:rgb(245, 246, 247) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button.disabled{color:rgb(199, 202, 207) !important}:host(.duet-theme-turva2) .duet-theme-turva [aria-pressed=true] .duet-date-table-button,:host(.duet-theme-turva2) .duet-theme-turva :focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64) !important}:host(.duet-theme-turva2) .duet-theme-turva.duet-date-table{color:rgb(23, 42, 59)}";
|
|
9819
|
+
const duetDatePickerCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host(.form-distribute:last-of-type:not(:last-child)){margin-right:16px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;vertical-align:top;text-align:left}@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(143, 147, 158);border-left-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){outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva .duet-date-button:hover:not(:disabled),.duet-date-button:hover:not(:disabled).duet-theme-turva,.duet-theme-turva2 .duet-date-button:hover:not(:disabled),.duet-date-button:hover:not(:disabled).duet-theme-turva2{outline-color:rgb(120, 145, 164)}.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)}.duet-date-input-has-focus .duet-date-button:focus,.duet-date-button:focus:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-date-input-has-focus .duet-date-button:focus,.duet-date-input-has-focus .duet-date-button:focus.duet-theme-turva,.duet-theme-turva2 .duet-date-input-has-focus .duet-date-button:focus,.duet-date-input-has-focus .duet-date-button:focus.duet-theme-turva2,.duet-theme-turva .duet-date-button:focus:focus,.duet-date-button:focus:focus.duet-theme-turva,.duet-theme-turva2 .duet-date-button:focus:focus,.duet-date-button:focus:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva.duet-date-input-has-focus .duet-date-button,.duet-theme-turva .duet-date-button:focus{color:rgb(23, 28, 58)}.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;visibility:hidden;width:100%;opacity:0;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease}@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;transform:translateZ(0);transform-origin:bottom center;transition:opacity 400ms ease, visibility 400ms ease}}.duet-date-dialog.active{visibility:visible;opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);transition-property:transform, opacity}@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;visibility:hidden;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transform:translateZ(0) translateY(100%);transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease}.active .duet-date-dialog-wrapper{visibility:visible;opacity:1;transform:translateZ(0) translateY(0);transition-property:transform, opacity}}.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-transform:uppercase;letter-spacing:1px;text-decoration:none}.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;vertical-align:initial !important;color:rgb(8, 42, 77) !important;text-align:center;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}.selected .duet-date-table-button,:focus .duet-date-table-button{color:rgb(255, 255, 255) !important;outline:0;background:rgb(0, 119, 179) !important}.duet-theme-turva .selected .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{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8);z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important}.duet-theme-turva .duet-date-table-button:active,.duet-date-table-button:active.duet-theme-turva,.duet-theme-turva2 .duet-date-table-button:active,.duet-date-table-button:active.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}:focus .duet-date-table-button{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8);z-index:200}.duet-theme-turva :focus .duet-date-table-button,:focus .duet-date-table-button.duet-theme-turva,.duet-theme-turva2 :focus .duet-date-table-button,:focus .duet-date-table-button.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-date-table-button.disabled{color:rgb(127, 150, 165) !important;cursor:default;outline:none !important;background:transparent !important}.duet-theme-turva .duet-date-table-button.disabled{color:rgb(143, 147, 158) !important;outline:none !important;background:transparent !important}.duet-date-table-button.outside{color:rgb(127, 150, 165) !important;pointer-events:none;cursor:default;outline:none;background:rgb(245, 248, 250) !important;opacity:0.75}.duet-theme-turva .duet-date-table-button.outside{color:rgb(143, 147, 158);outline:none;background:rgb(245, 247, 250)}.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{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-date-dialog-select select:focus+.duet-date-dialog-select-label,.duet-date-dialog-select select:focus+.duet-date-dialog-select-label.duet-theme-turva,.duet-theme-turva2 .duet-date-dialog-select select:focus+.duet-date-dialog-select-label,.duet-date-dialog-select select:focus+.duet-date-dialog-select-label.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.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 label{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header 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;-webkit-appearance:none;appearance:none;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%}@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:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-date-picker-close:focus,.duet-date-picker-close:focus.duet-theme-turva,.duet-theme-turva2 .duet-date-picker-close:focus,.duet-date-picker-close:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}@media (min-width: 36em){.duet-date-picker-close:focus{opacity:1}}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-button{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-date-input-has-focus :host(.duet-theme-turva2) .duet-theme-turva,:host(.duet-theme-turva2) .duet-theme-turva:focus{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button{color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button:hover:not(.disabled){background:rgb(251, 225, 209) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button.today{background:rgb(253, 247, 242) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button.outside{color:rgb(120, 145, 164) !important;background:rgb(245, 246, 247) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-date-table-button.disabled{color:rgb(199, 202, 207) !important}:host(.duet-theme-turva2) .duet-theme-turva [aria-pressed=true] .duet-date-table-button,:host(.duet-theme-turva2) .duet-theme-turva :focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64) !important}:host(.duet-theme-turva2) .duet-theme-turva.duet-date-table{color:rgb(23, 42, 59)}";
|
|
9775
9820
|
|
|
9776
9821
|
/**
|
|
9777
9822
|
* @slot tooltip - Use to place a tooltip alongside the label.
|
|
@@ -10243,13 +10288,13 @@ class DuetDatePicker {
|
|
|
10243
10288
|
if (maxDate) {
|
|
10244
10289
|
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
10245
10290
|
}
|
|
10246
|
-
return (hAsync(Host, { key: '
|
|
10291
|
+
return (hAsync(Host, { key: '2f9dd355a80f9ed65cc0cfa90d674f426bad4c59', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '8c023088cf474e2b460139486e85974f53963981', class: "duet-date" }, hAsync(DatePickerInput, { key: '0c678c083138be043f01d6df1522e385a7ee122a', 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.disableBuiltInErrors && 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: 'efec9f5c773e36d4e418dac06036390b50bff2a5', class: {
|
|
10247
10292
|
"duet-theme-turva": this.theme === "turva",
|
|
10248
10293
|
"duet-date-dialog": true,
|
|
10249
10294
|
left: this.direction === "left",
|
|
10250
10295
|
error: !!this.error,
|
|
10251
10296
|
active: this.open,
|
|
10252
|
-
}, 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: '
|
|
10297
|
+
}, 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: '130f52a0f0194b1186619bf6426f97a68c079c11', visible: this.open, "display-device": "x-small" }), hAsync(FocusGuard, { key: 'b4c229e9d91c822d87702677e213f8753f344017', moveFocusTo: this.focusedDayNode }), hAsync("div", { key: '3ce07367a559781b9872669665186af5572305ca', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, hAsync("duet-visually-hidden", { key: '7740bce6549fc3423947947f68d7e8950baa440d', "aria-live": "polite" }, text.keyboardInstruction), hAsync("div", { key: '2d80551888be784d8ea12b74c43df593c4701e83', class: "duet-date-dialog-mobile-header" }, hAsync(DuetInternalLabel, { key: '27d2994191b94efe00484fbd25d96537d6ed11b2', margin: "none" }, this.label), hAsync("button", { key: '82cf74d2d7aff047562d13320496248d352c1e82', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, hAsync("duet-icon", { key: '92b2e5fd52e4206c00acfd56e0d515d08e4527b1', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), hAsync("duet-visually-hidden", { key: '738da11657cbac3ed52ef22490165f4ac76c6ea6' }, text.closeLabel))), hAsync("div", { key: 'e8922fed8ac11149bb603c912d278c0b3843b214', class: "duet-date-dialog-header" }, hAsync("div", { key: 'e922554dbea94dfa70e62983ee6a0b08f8e159d7', class: "duet-date-dialog-dropdowns" }, hAsync("duet-visually-hidden", { key: '873ba9c661e3c280c88fffc510dcceab0b2d5863' }, hAsync("h2", { key: 'c769e12a0c0c668164d25d7864a711d0f9268f09', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), hAsync("duet-visually-hidden", { key: '5941e8d2cd0f5baec6001808c68cb4c51b37db86' }, hAsync("label", { key: 'bee65da8486f65afe8d18e90b1daed308dda8864', htmlFor: this.monthSelectId }, text.monthSelectLabel)), hAsync("div", { key: 'f9fd8b52eaa90fd555d737e2691b51260592101a', class: "duet-date-dialog-select" }, hAsync("select", { key: '83b7003769bf0042228e2ed36ad4118e8f0f1ab2', 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: '1d9bbde4fcc96fbcaf2d714ecc34a58c755dfc7d', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: '3c4be7bf8fefa6ee1f5cede7eeb34ebfeaae35a1' }, text.monthLabelsShort[focusedMonth]), hAsync("duet-icon", { key: '4eece4a65cb58ba45a30e4fd2cf179d61b05625f', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), hAsync("duet-visually-hidden", { key: '700e9f50a74a6113c33f149427169ae9917badc0' }, hAsync("label", { key: 'c5f8403791830d9b0ad68ed66af8c3f1c26310e3', htmlFor: this.yearSelectId }, text.yearSelectLabel)), hAsync("div", { key: '2c69022a45ab3effd4c907cc6d5c5a508bbb99f7', class: "duet-date-dialog-select" }, hAsync("select", { key: 'fee0495e004775929f7b7aeb66278ac8b4fd003d', 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: 'e50ff66c34ee36e965843e68e1fb3d26690ce1ed', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: '9808b372ac9fea0ce5c51acee5ee407d5906e3f1' }, this.focusedDay.getFullYear()), hAsync("duet-icon", { key: '90c5c74c91d9e3df13e70987f66c2964feca8cf5', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), hAsync("div", { key: 'f66a8e9e9fba23a7a8c9d871f1ff0bbfa6b39b37', class: "duet-date-dialog-buttons" }, hAsync("duet-action-button", { key: 'fe1df2d1456357c2ae731b66c302c45a33f40d06', 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: '86db10ad2c3d1ab190690ae65d4c778084194089', 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: '741527916476f5959328595373dc3e11b02b0df2', 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: 'de920ae43a19a7ca9790056fd3a9f51a08039d4f', moveFocusTo: this.closeButtonNode }))));
|
|
10253
10298
|
}
|
|
10254
10299
|
get element() { return getElement(this); }
|
|
10255
10300
|
static get watchers() { return {
|
|
@@ -10339,7 +10384,7 @@ class DuetDivider {
|
|
|
10339
10384
|
*/
|
|
10340
10385
|
render() {
|
|
10341
10386
|
const background = getColorByName(this.color);
|
|
10342
|
-
return (hAsync("div", { key: '
|
|
10387
|
+
return (hAsync("div", { key: 'fc0e7562cb30da77115c7a07938f9d586df909d5', class: {
|
|
10343
10388
|
"duet-m-0": this.margin === "none",
|
|
10344
10389
|
"duet-m-s": this.margin === "small",
|
|
10345
10390
|
"duet-divider": true,
|
|
@@ -10577,7 +10622,7 @@ class DuetEditableTable {
|
|
|
10577
10622
|
* Render Methods
|
|
10578
10623
|
*/
|
|
10579
10624
|
render() {
|
|
10580
|
-
return (hAsync(Host, { key: '
|
|
10625
|
+
return (hAsync(Host, { key: '5b1b28e6321b07a1d385c1945f15b0c110a8b068', class: {
|
|
10581
10626
|
[`duet-editable-table-${this.variation}`]: true,
|
|
10582
10627
|
"duet-editable-table": true,
|
|
10583
10628
|
[`duet-editable-table-${this.theme}`]: true,
|
|
@@ -10587,7 +10632,7 @@ class DuetEditableTable {
|
|
|
10587
10632
|
"duet-editable-table-actions": !!this.actions,
|
|
10588
10633
|
"duet-m-0": this.margin === "none",
|
|
10589
10634
|
"duet-theme-turva": this.theme === "turva",
|
|
10590
|
-
} }, hAsync("duet-table", { key: '
|
|
10635
|
+
} }, hAsync("duet-table", { key: '47a4b4e9d3acf3ca83e70c1aa4e7758e1f6cbbbe', class: "duet-editable-table-table", sticky: this.sticky, stickyDistance: this.stickyDistance, margin: this.margin, theme: this.theme, variation: this.variation, breakpoint: this.breakpoint, "hide-head-visually": this.hideHeadVisually }, hAsync("table", { key: '975344f17b9271b8ffa4264751aa2dae69279f45', role: this.accessibleRole }, hAsync("caption", { key: 'e9039bfd4c5bf90f96856d13d993be7f13fa2d73' }, hAsync("slot", { key: '38a7cd2c82e45ebcc080e1e20f3f77aa2a46973d', name: "tcaption" })), hAsync("thead", { key: 'c4a02a18bfae96669f45328f6198dc52f43dd887' }, this.hasHeadSlotFirst && (hAsync("tr", { key: 'af846dfeba040ddec43065803327195bea76a404' }, hAsync("td", { key: 'c002827f8c8c6cce8d8d4415c80e4f39d4bb1ed6', class: "duet-editable-table-actions-menu", colSpan: 99 }, hAsync("slot", { key: '5673bc937f4bc87b67f6112f59a1981ff7f02c79', name: "thead-first" })))), this.renderTableHeader(), this.hasHeadSlotLast && (hAsync("tr", { key: '79a45db93db0d6e5e35aade928f23032efdb821b' }, hAsync("td", { key: 'fddd1434bf5a20188be229e5c3d9bde03b8d8dca', class: "duet-editable-table-actions-menu", colSpan: 99 }, hAsync("slot", { key: '53b1ea3494b7e0f39426232f922a040eacf3a0f0', name: "thead-last" }))))), hAsync("tbody", { key: 'b5d38eed528592d29f64f749e1938d0ff5b772b3' }, this.renderTableBody()), this.hasFootSlot && (hAsync("tfoot", { key: 'e2ef34f7d078a7ac7b4a38cd5953b449ce682a23' }, hAsync("tr", { key: '9f2a92be2f425c419abd5fa1a0a7fb763cc0426b' }, hAsync("td", { key: 'da2eeda1f65004cc2c197dad36038dc4a60c2e8e', class: "duet-editable-table-footer-menu", colSpan: 99 }, hAsync("slot", { key: '988c400cb8046f0544293b8e1555f7b213f9def6', name: "tfoot" })))))))));
|
|
10591
10636
|
}
|
|
10592
10637
|
get element() { return getElement(this); }
|
|
10593
10638
|
static get style() { return duetEditableTableCss; }
|
|
@@ -10645,11 +10690,11 @@ class DuetEmptyState {
|
|
|
10645
10690
|
* Always the last one in the class.
|
|
10646
10691
|
*/
|
|
10647
10692
|
render() {
|
|
10648
|
-
return (hAsync(Host, { key: '
|
|
10693
|
+
return (hAsync(Host, { key: '6b61854be0ee8b668d513de66e117b928cb4671b' }, hAsync("div", { key: '62ab8dddad16464e202f9225d080cee855a8193d', class: {
|
|
10649
10694
|
"duet-empty-state": true,
|
|
10650
10695
|
"duet-theme-turva": this.theme === "turva",
|
|
10651
10696
|
"duet-is-small": this.size === "small",
|
|
10652
|
-
} }, hAsync("duet-icon", { key: '
|
|
10697
|
+
} }, hAsync("duet-icon", { key: '237ea5cd85e1be42a856c7b30e14022bb4cd824e', color: "currentColor", name: this.icon, size: this.size === "small" ? "large" : "x-large" }), hAsync("div", { key: '9bb0471dfd59d78fc51b71eccce4830d47506a42' }, hAsync("slot", { key: 'cdf540cdcc74733367bfc04d13ec9659bd2adb52' })))));
|
|
10653
10698
|
}
|
|
10654
10699
|
get element() { return getElement(this); }
|
|
10655
10700
|
static get style() { return duetEmptyStateCss; }
|
|
@@ -10740,20 +10785,20 @@ class DuetFieldset {
|
|
|
10740
10785
|
* Always the last one in the class.
|
|
10741
10786
|
*/
|
|
10742
10787
|
render() {
|
|
10743
|
-
return (hAsync(Host, { key: '
|
|
10788
|
+
return (hAsync(Host, { key: 'ac0f503ac6d41953e774ad46b418c8ea39ff4708', class: { "duet-m-0": this.margin === "none" } }, hAsync("fieldset", { key: 'b564273ca16fac8fbb500ab8bfc9dff72e579770', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
|
|
10744
10789
|
// NVDA and VoiceOver do not yet support aria-errormessage
|
|
10745
10790
|
// once they do, we can remove errors from the aria-describedby
|
|
10746
10791
|
// aria-errormessage={this.error ? this.errorId : null}
|
|
10747
10792
|
class: {
|
|
10748
10793
|
"duet-fieldset": true,
|
|
10749
10794
|
"duet-theme-turva": this.theme === "turva",
|
|
10750
|
-
} }, hAsync("legend", { key: '
|
|
10795
|
+
} }, hAsync("legend", { key: '607df92d8f78aaad01e4c80e33c17da55a52e20f', id: this.labelId }, hAsync(this.labelHeadingLevel, { key: '33cee42411e380076885a046790cb8006088c5ed' }, this.label), this.caption && hAsync("span", { key: '52c809bbe842c11a84e7d1a5c3083bfe92472d36' }, this.caption)), hAsync("div", { key: 'aa297b27900d3a28a48bf8102b75e900896393ff', class: {
|
|
10751
10796
|
"duet-legend-wrapper": true,
|
|
10752
10797
|
"duet-legend-has-caption": !!this.caption,
|
|
10753
10798
|
"duet-legend-has-tooltip": this.hasTooltip,
|
|
10754
10799
|
"duet-legend-hidden": this.labelHidden,
|
|
10755
10800
|
"duet-legend-compact": this.compactLabel,
|
|
10756
|
-
} }, hAsync("div", { key: '
|
|
10801
|
+
} }, hAsync("div", { key: '3af22b271c143a074adee18554408291e3faa660', class: "duet-fieldset-label" }, hAsync("span", { key: '939a883743e233ba83e8ff3328b18842b0c4eae4', "aria-hidden": "true" }, this.label), hAsync("slot", { key: '822892f650b6c0f733cc58a1aee1654e21d1f1f6', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (hAsync("div", { key: 'bc40348b978fc775d1007cdf3949e95d4d3b54e0', class: "duet-fieldset-caption", "aria-hidden": "true" }, hAsync("duet-caption", { key: '3119b1a7963015c24d6324d5de47fc53cdfd748e', theme: this.theme, margin: "none" }, this.caption)))), hAsync("slot", { key: 'fa922540a117205680098064372a70aefc0953ae' }), hAsync("span", { key: 'ad8d4d59379d7a9f89e618754d46404eb5c3c664', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'c36abae3849393120d72e3781305cb2ce88b384c', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
|
|
10757
10802
|
}
|
|
10758
10803
|
get element() { return getElement(this); }
|
|
10759
10804
|
static get style() { return duetFieldsetCss; }
|
|
@@ -10952,16 +10997,16 @@ class DuetFooter {
|
|
|
10952
10997
|
render() {
|
|
10953
10998
|
const text = getLocaleString(i18n$1, this.language);
|
|
10954
10999
|
const copyrightLabel = this.theme === "turva" ? text.turva : text.lahi;
|
|
10955
|
-
return (hAsync("footer", { key: '
|
|
11000
|
+
return (hAsync("footer", { key: 'a1f13a9e8d015c33626dc35acfbac299d5d798b8', class: {
|
|
10956
11001
|
"duet-footer": true,
|
|
10957
11002
|
"duet-m-0": this.margin === "none",
|
|
10958
11003
|
"duet-theme-turva": this.theme === "turva",
|
|
10959
11004
|
"duet-footer-simple": this.variation === "simple",
|
|
10960
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
11005
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '48ff4a3d5e8df21215a409def47ead6f70f697fa', class: "duet-footer-wrapper" }, this.variation !== "simple" && (hAsync("div", { key: 'a0cc027a05d4c054e0f99c2c2ad3fb6b34a58873', class: {
|
|
10961
11006
|
"duet-footer-top": true,
|
|
10962
11007
|
"duet-has-info": this.hasInfoSlot,
|
|
10963
|
-
}, part: "top" }, hAsync("div", { key: '
|
|
10964
|
-
this.processedItems.map((item, index) => (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: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), hAsync("slot", { key: '
|
|
11008
|
+
}, part: "top" }, hAsync("div", { key: '3724f9ef6f0af6ca9812b4c9c2854209a80cb38b', class: "footer-top-logo" }, hAsync("duet-logo", { key: '10e4b82fa2f117f130a2458a64249d36b5f99564', href: this.logoHref, onClick: this.handleLogoClick, size: "large", inverse: true, language: this.language, theme: this.theme })), hAsync("div", { key: '40ceb56a8366b96d5a9afc572984ff027249cfd0', class: "footer-top-right-container" }, hAsync("slot", { key: 'e3f21c2f91e64c844a95d40344104e8aff352013', name: "info" }), hAsync("div", { key: 'a2c5b4d2dad3aa29116a8fe5d2bd4525b6a6ad5c', class: "footer-top-items" }, this.processedItems &&
|
|
11009
|
+
this.processedItems.map((item, index) => (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: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), hAsync("slot", { key: '0058cff0a643b85a2373c0b2633f5d8d293cf639', name: "extra" }), hAsync("p", { key: '6e0623c40daaab7ecf2ba1abb3e6f5935bac445b', class: "duet-footer-menu", part: "menu" }, hAsync("span", { key: 'abb2319d06c15e6d423337f75f713e835188c326', class: "duet-footer-copyright" }, `${copyrightLabel} ${new Date().getFullYear()}`), hAsync("span", { key: 'f0b19fd6cc3da55c0519ab7e499f9d24df20ebc8', class: "duet-footer-menu-links" }, this.processedMenu && (hAsync(Fragment, { key: '308c16b052419e8570fe7e39a5708f45bb58a00d' }, 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: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))), hAsync("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")))))))), hAsync("p", { key: '6308d6f3a762e1945a197a58efa9536c82412fdc', class: "duet-footer-copyright duet-footer-copyright-mobile" }, `${copyrightLabel} ${new Date().getFullYear()}`))));
|
|
10965
11010
|
}
|
|
10966
11011
|
get element() { return getElement(this); }
|
|
10967
11012
|
static get watchers() { return {
|
|
@@ -11131,6 +11176,7 @@ class DuetGrid {
|
|
|
11131
11176
|
".duet-textarea-error",
|
|
11132
11177
|
];
|
|
11133
11178
|
const items = this.getDirectChildren().filter(child => !!child.querySelector(elementNames.join(",")) || elementNames.includes(child.tagName.toLowerCase()));
|
|
11179
|
+
items.forEach(i => i.classList.add("form-distribute"));
|
|
11134
11180
|
// if layout changes to columns instead of row, remove all padding
|
|
11135
11181
|
const hasColumnLayout = window ? window.getComputedStyle(this.element).flexDirection === "column" : false;
|
|
11136
11182
|
const selectorForErrorSpan = el => {
|
|
@@ -11177,7 +11223,7 @@ class DuetGrid {
|
|
|
11177
11223
|
* Always the last one in the class.
|
|
11178
11224
|
*/
|
|
11179
11225
|
render() {
|
|
11180
|
-
return (hAsync(Host, { key: '
|
|
11226
|
+
return (hAsync(Host, { key: '1a7bab03f61e124f9e7d90c4b32e16bfc3fba736', class: {
|
|
11181
11227
|
"duet-grid": true,
|
|
11182
11228
|
"duet-no-stacking": !this.responsive,
|
|
11183
11229
|
"duet-grid-align-top": this.alignment === "top", // flex-start
|
|
@@ -11204,7 +11250,7 @@ class DuetGrid {
|
|
|
11204
11250
|
"duet-grid-row-reverse": this.rowReverse,
|
|
11205
11251
|
[`duet-grid-variation-${this.gridTemplate ? "grid" : "flex"}`]: true,
|
|
11206
11252
|
[`duet-grid-template-${this.gridTemplate}`]: true,
|
|
11207
|
-
} }, hAsync("slot", { key: '
|
|
11253
|
+
} }, hAsync("slot", { key: '03ee25477d7ea8733b042bf85dc855f29f11dcc1' })));
|
|
11208
11254
|
}
|
|
11209
11255
|
get element() { return getElement(this); }
|
|
11210
11256
|
static get watchers() { return {
|
|
@@ -11286,7 +11332,7 @@ class DuetGridItem {
|
|
|
11286
11332
|
* Always the last one in the class.
|
|
11287
11333
|
*/
|
|
11288
11334
|
render() {
|
|
11289
|
-
return (hAsync(Host, { key: '
|
|
11335
|
+
return (hAsync(Host, { key: '59b2546565c78716d981db97ba3a66b9f4b06104', style: {
|
|
11290
11336
|
"min-width": this.minWidth,
|
|
11291
11337
|
"max-width": this.maxWidth,
|
|
11292
11338
|
}, class: {
|
|
@@ -11303,7 +11349,7 @@ class DuetGridItem {
|
|
|
11303
11349
|
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
11304
11350
|
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
11305
11351
|
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
11306
|
-
} }, hAsync("slot", { key: '
|
|
11352
|
+
} }, hAsync("slot", { key: '78c0ca977366f49a62d91c19e42b7140455c0e7e' })));
|
|
11307
11353
|
}
|
|
11308
11354
|
get element() { return getElement(this); }
|
|
11309
11355
|
static get style() { return duetGridItemCss; }
|
|
@@ -12344,7 +12390,7 @@ class DuetHeading {
|
|
|
12344
12390
|
render() {
|
|
12345
12391
|
const TagName = sanitizeString$1(this.level);
|
|
12346
12392
|
const color = getColorByName(this.color);
|
|
12347
|
-
return (hAsync(TagName, { key: '
|
|
12393
|
+
return (hAsync(TagName, { key: 'da445e961c7a06c19d0a0522e4af2814b0ae9aa4', class: {
|
|
12348
12394
|
"duet-heading": true,
|
|
12349
12395
|
"duet-heading-border": this.border !== false,
|
|
12350
12396
|
"duet-heading-border-solid": this.border === "solid",
|
|
@@ -12355,7 +12401,7 @@ class DuetHeading {
|
|
|
12355
12401
|
[this.visualLevel ? this.visualLevel : this.level]: true,
|
|
12356
12402
|
"duet-theme-turva": this.theme === "turva",
|
|
12357
12403
|
"fixed-size": this.fixedSize,
|
|
12358
|
-
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, hAsync("slot", { key: '
|
|
12404
|
+
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, hAsync("slot", { key: '7fffcae52939a894fd8c5ee37d67fccbbd0b4f16' })));
|
|
12359
12405
|
}
|
|
12360
12406
|
get element() { return getElement(this); }
|
|
12361
12407
|
static get style() { return duetHeadingCss; }
|
|
@@ -12661,7 +12707,7 @@ class DuetHero {
|
|
|
12661
12707
|
outlineColor = "color-primary-turva";
|
|
12662
12708
|
}
|
|
12663
12709
|
}
|
|
12664
|
-
return (hAsync("div", { key: '
|
|
12710
|
+
return (hAsync("div", { key: '0516fd4837dba53aae81d2ae0c78b70585422107', role: "region", class: {
|
|
12665
12711
|
"duet-hero": true,
|
|
12666
12712
|
"duet-theme-turva": this.theme === "turva",
|
|
12667
12713
|
"duet-has-category-icon": !!this.categoryIcon,
|
|
@@ -12679,17 +12725,17 @@ class DuetHero {
|
|
|
12679
12725
|
"duet-hero-text-center": this.variation !== "product" && ((this.textCenter && !this.leftAlign) || campaignOrSection),
|
|
12680
12726
|
"duet-hero-left-align": this.variation === "product" || (this.leftAlign && !campaignOrSection),
|
|
12681
12727
|
"duet-hero-narrow": this.layout === "narrow",
|
|
12682
|
-
}, part: "duet-hero" }, campaignOrSection && this.image && (hAsync("div", { key: '
|
|
12683
|
-
this.processedBack && (hAsync("div", { key: '
|
|
12728
|
+
}, part: "duet-hero" }, campaignOrSection && this.image && (hAsync("div", { key: 'c9519b4ff36fdb3ec68d569667065a743d57a360', class: "background-area" }, hAsync("div", { key: 'ddb4386a162fe50a1ec65bfb5920194cd8b8247f', class: "background-container" }, hAsync("div", { key: 'af9a1b99358098c95c9ca8ff11c8b4e8fed691db', class: "background" }, hAsync("img", { key: 'caea4a0bec4b0fab914d327878fd82fc8937528d', class: `${imageSizeIsCover ? "cover" : ""} ${imagePositionIsCenter ? "center" : ""}`, src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" })), hAsync("div", { key: '570fc51ca220622428a0d0ae0c0956c5f1ee0452', class: "brand-shape" })))), this.variation === "product" && this.image && (hAsync("div", { key: '954467ff85417b30a4a6fc18c700464df609f586', class: { "background-area": true, [this.layout]: true } }, hAsync("div", { key: 'a709338a6570cf245f37272263b03d7a27128f9e', class: { "background-container": true, [this.layout]: true } }, hAsync("div", { key: 'b93c7f5ac020bd754dba88132aaa9b7ea1ba4003', class: { background: true, [this.layout]: true } }, hAsync("div", { key: '905662fbb3364da7510db2555f03de974562e505', class: { "background-mask": true, [this.layout]: true } }), this.theme !== "turva" && hAsync("div", { key: '262820358ecd29844c65be4a1d7e82549b45cee2', class: { "brand-shape": true, [this.layout]: true } }), hAsync("div", { key: '3d20072088e4a405b83d2f65268f2d488a5112ac', class: { "brand-shaped-image": true, [this.layout]: true } }, hAsync("div", { key: 'e8c63df219322992bb8d722b01dcad205c044f9c', class: { "brand-shaped-image-wrapper": true, [this.layout]: true } }, hAsync("div", Object.assign({ key: '5b265dcc9db7e68c749b2b9c9d0e8fa4064f6b70', class: { "brand-shaped-image-bg": true, [this.layout]: true }, style: styles }, bgImgA11yAttrs)))), this.categoryIcon && (hAsync("div", { key: '81e36645d1a21d9bc66fae4765e9ef3272537f03', class: { "brand-shaped-icon": true, [this.layout]: true } }, hAsync("duet-icon", { key: '504a1771e2e356783be5844509166ab29f78159d', class: { [this.layout]: true }, background: "none", name: this.categoryIcon, margin: "none", size: "auto", responsive: false }))))))), this.variation === "content" && this.image && (hAsync("div", { key: '97b506d236d0679f53696cac58503d7be257231f', class: "background-area" }, hAsync("div", { key: '36890d9dc2a8f8b124420c7b3225ada20d01e35e', class: "background" }, hAsync("div", { key: '1df015994f4bd85a884de6e1875be96408f599b7', class: "background-mask" }), this.theme !== "turva" && hAsync("div", { key: 'f68c97a4b3c8e4b03bac4bb2181e630ef63c8639', class: "brand-shape" }), hAsync("div", { key: 'ba89b95cc6d1d2a55ca0681206266f0e52d10059', class: "brand-shaped-image" }, hAsync("div", { key: '0c133b49c54fa275782754ac6ab44c468592b50b', class: "brand-shaped-image-wrapper" }, hAsync("div", Object.assign({ key: 'c9963f3b6134885b5cd4facc450e337fd3807749', class: "brand-shaped-image-bg", style: styles }, bgImgA11yAttrs))))))), hAsync("div", { key: '6cd4723c1191be8841b3e72c186438d60b762165', class: { "duet-hero-wrapper": true, [this.layout]: true } }, this.image && this.variation === "image" && (hAsync("div", { key: '76e6d63f430faa884dbe432dcf5241287edb6d94', class: "duet-hero-image-mask" }, hAsync("div", { key: 'ac28833afeffb4273df030b71484549022dbcd7b', class: "duet-hero-image-wrapper" }, hAsync("div", Object.assign({ key: '3bd97c165b52eae5b07653f04508c94f3e2fbaa3', class: "duet-hero-image", style: styles }, bgImgA11yAttrs))))), (this.variation === "gray" || this.variation === "light" || this.variation === "minimal") &&
|
|
12729
|
+
this.processedBack && (hAsync("div", { key: 'a3139ada0576c86e38608e8b3babde7bf1cb6428', class: "duet-hero-back" }, hAsync("duet-button", { key: '18696adb6758e912d78507989319403a05031383', 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, {
|
|
12684
12730
|
label: this.processedBack.label,
|
|
12685
12731
|
href: this.processedBack.href,
|
|
12686
12732
|
id: this.processedBack.id,
|
|
12687
12733
|
analyticsId: this.processedBack.analyticsId,
|
|
12688
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (hAsync("duet-icon", { key: '
|
|
12734
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (hAsync("duet-icon", { key: '28d192b8f069b4a32baa01a027abc42bdfb95887', class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), hAsync("div", { key: '012bf0e526bb27720cf999130cee18c48f154328', class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (hAsync("duet-paragraph", { key: '5cbbe391ce79e56835076065ebcffe0bab5228ba', margin: "none", class: "duet-hero-pre", size: this.variation === "content" ? "small" : "medium", "aria-hidden": "true" }, this.preHeading ? (this.preHeading) : (hAsync("span", null, hAsync("slot", { name: "pre-heading" }))))), hAsync("slot", { key: 'b3e524e1dfb703166dabf2f84bbcc4114b55a30a', name: "badge" }), (this.heading || this.hasHeadingSlot) && (hAsync("duet-heading", { key: 'aa79305d862247ab6107539664112d93a239e8a7', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.level, class: { "duet-hero-heading": true, "duet-hero-heading-has-pre": this.preHeading !== "" }, color: headingColor, visualLevel: headingVisualLevel, margin: campaignOrSection ? "none" : "auto", accessibleLabel: this.getAccessibleHeading() }, this.heading ? this.heading : hAsync("slot", { name: "heading" }))), campaignOrSection && this.hasSubHeadingSlot && (hAsync("duet-heading", { key: 'd7be291d344c0357c68891dafcce35f2b39b5da5', theme: this.theme, level: this.hasSubHeadingSlotNative ? "div" : this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, hAsync("slot", { key: '32bb887d95e7bbf0c2037520f47080d4a4680bba', name: "subheading" }))), this.description && (hAsync("duet-paragraph", { key: 'd391fad4e9710b15fe3bbc98e8e22078f3a84972', theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (hAsync("duet-list", { key: '927d16ef81835f367bda345400b4603d6c5dd36a', 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: '05b8812b4a5f224422c0d102c9f6869bfcfe3a69', 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: '512d50180bb9fba05bcde538b19fa87e70cf5a3a' })), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (hAsync("div", { key: '1ca120e7175b467c0265513ecd4d32a30e5eaba8', 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: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
12689
12735
|
this.variation !== "image" &&
|
|
12690
12736
|
!campaignOrSection &&
|
|
12691
12737
|
this.variation !== "product" &&
|
|
12692
|
-
this.variation !== "content" && hAsync("div", Object.assign({ key: '
|
|
12738
|
+
this.variation !== "content" && hAsync("div", Object.assign({ key: 'f49f23c4edbf72e479d8f7cf4cf2767d688c362b', class: "duet-hero-image", style: styles }, bgImgA11yAttrs)), hAsync("slot", { key: 'a99b7943cc1408366bc93827beb41867aaf5fb01', name: "bottom" }))));
|
|
12693
12739
|
}
|
|
12694
12740
|
get element() { return getElement(this); }
|
|
12695
12741
|
static get watchers() { return {
|
|
@@ -12857,11 +12903,11 @@ class DuetIcon {
|
|
|
12857
12903
|
: {};
|
|
12858
12904
|
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
12859
12905
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
12860
|
-
return (hAsync(Host, { key: '
|
|
12906
|
+
return (hAsync(Host, { key: 'f6a74ccabd59055d22eec3654bde9c81fd4a9ce3', class: {
|
|
12861
12907
|
"duet-m-0": this.margin === "none",
|
|
12862
12908
|
"duet-icon-has-outline": !!this.outline,
|
|
12863
12909
|
"duet-icon-has-background": !!this.background,
|
|
12864
|
-
} }, hAsync("span", { key: '
|
|
12910
|
+
} }, hAsync("span", { key: 'f2ea10e9ec8459d5a5995781e193c6d8df7fb1ef', "aria-hidden": "true", style: styles, class: {
|
|
12865
12911
|
"duet-icon": true,
|
|
12866
12912
|
"duet-theme-turva": this.theme === "turva",
|
|
12867
12913
|
"duet-theme-default": this.theme === "default",
|
|
@@ -12870,7 +12916,7 @@ class DuetIcon {
|
|
|
12870
12916
|
[shapeStyle]: true,
|
|
12871
12917
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
12872
12918
|
"duet-icon-not-responsive": !this.responsive,
|
|
12873
|
-
} }, hAsync("span", { key: '
|
|
12919
|
+
} }, hAsync("span", { key: '3d93b31d1831fa77b71a5f574a38d838636c7757', "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 }))));
|
|
12874
12920
|
}
|
|
12875
12921
|
get element() { return getElement(this); }
|
|
12876
12922
|
static get watchers() { return {
|
|
@@ -12948,7 +12994,7 @@ class DuetIndicator {
|
|
|
12948
12994
|
inheritGlobalTheme(this);
|
|
12949
12995
|
}
|
|
12950
12996
|
render() {
|
|
12951
|
-
return (hAsync(Host, { key: '
|
|
12997
|
+
return (hAsync(Host, { key: '9361561218a4fa5c4fe9508e72b80992ad22aadc', class: { [this.theme]: true } }, hAsync("span", { key: 'd974ea12e2bfc4d8e753cc89044379b846c182ca', class: { "duet-indicator": true, [`duet-indicator-${this.variation}`]: true } }), hAsync("duet-visually-hidden", { key: '0d3abea6442dcb6254391043a32d224188cbc814' }, this.getAccessibleLabel())));
|
|
12952
12998
|
}
|
|
12953
12999
|
get element() { return getElement(this); }
|
|
12954
13000
|
static get style() { return duetIndicatorCss; }
|
|
@@ -13028,7 +13074,7 @@ function cleanValue(input, regex) {
|
|
|
13028
13074
|
return newValue;
|
|
13029
13075
|
}
|
|
13030
13076
|
|
|
13031
|
-
const duetInputCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}[alignment=form-distribute]>:host(:last-of-type:not(:last-child)){margin-right:16px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;vertical-align:bottom;text-align:left}@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}input[type=time]::-webkit-datetime-edit-fields-wrapper{padding:0}input[type=time]::-webkit-calendar-picker-indicator{display: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:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.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,.duet-theme-turva2 .duet-input-container.has-clear .duet-input-clear-icon button:focus,.duet-input-container.has-clear .duet-input-clear-icon button:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.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.input-padding-xx-small button{top:-12px}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-x-small button{top:-16px}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-small button{top:-20px}.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-single.input-padding-xx-small button{top:-36px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-x-small button{top:-40px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-small button{top:-44px}.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-double.input-padding-xx-small button{top:-12px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-x-small button{top:-16px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-small button{top:-20px}.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-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;outline-color:initial !important;background:rgb(255, 255, 255) !important;background-clip:initial !important;border:1px solid rgb(127, 150, 165) !important;border-radius:4px !important;transition: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,.has-error .duet-input[disabled]{border-color:rgb(214, 28, 82) !important}.has-error .duet-input+.duet-input-icon,.has-error .duet-input[disabled]+.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;outline:none !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !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){outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva .duet-input:hover:not(:disabled),.duet-input:hover:not(:disabled).duet-theme-turva,.duet-theme-turva2 .duet-input:hover:not(:disabled),.duet-input:hover:not(:disabled).duet-theme-turva2{outline-color:rgb(120, 145, 164)}.has-error .duet-input:hover:not(:disabled){outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-input:focus{border-color:rgb(0, 119, 179) !important;transition:none}.duet-theme-turva .duet-input:focus{border-color:rgb(23, 28, 58) !important}.duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 28, 58)}.has-error .duet-input:focus{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.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{outline: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 label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-input-relative{position:relative;width:100%}.duet-input-variation-button,.duet-input-variation-button-left{position:relative;width:100%}.duet-input-variation-button .duet-input-relative,.duet-input-variation-button-left .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,.duet-input-variation-button-left .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-button-left .duet-input-relative{border-radius:4px}.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-button-left .duet-input-relative .duet-input{border-left-width:0 !important;border-top-left-radius:0 !important;border-bottom-left-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;outline:initial;border:1px solid rgb(127, 150, 165);border-radius:4px;transition: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{outline:none !important;border-width:0 !important}.duet-input-variation-revealable.disabled .duet-input-relative{outline:none;background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.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{outline:2px solid;outline-offset:-1px;outline-color:rgb(62, 84, 102);border-color:rgb(0, 119, 179)}.duet-input-variation-revealable.duet-theme-turva.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(53, 79, 101);border-color:rgb(23, 28, 58)}.duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative{outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva .duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative,.duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative.duet-theme-turva,.duet-theme-turva2 .duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative,.duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative.duet-theme-turva2{outline-color:rgb(120, 145, 164)}.duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(62, 84, 102)}.duet-theme-turva .duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-offset:2px;outline-color:rgb(53, 79, 101)}.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;transition: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-grow:1;flex-basis:4rem;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{outline:none !important;border-width:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-input-icon{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input{color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-input::-webkit-input-placeholder{color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus::-webkit-input-placeholder{color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:-moz-placeholder{color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus::-moz-placeholder{color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:-ms-input-placeholder{color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus:-ms-input-placeholder{color:rgb(241, 202, 178)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input[disabled]{color:rgb(23, 42, 59) !important;background:rgb(245, 246, 247) !important;border-color:rgb(245, 246, 247) !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus{border-color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input-variation-button-left.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input-variation-revealable.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}";
|
|
13077
|
+
const duetInputCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host(.form-distribute:last-of-type:not(:last-child)){margin-right:16px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;vertical-align:bottom;text-align:left}@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}input[type=time]::-webkit-datetime-edit-fields-wrapper{padding:0}input[type=time]::-webkit-calendar-picker-indicator{display: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:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.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,.duet-theme-turva2 .duet-input-container.has-clear .duet-input-clear-icon button:focus,.duet-input-container.has-clear .duet-input-clear-icon button:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.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.input-padding-xx-small button{top:-12px}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-x-small button{top:-16px}.duet-input-container.has-clear .duet-input-clear-icon.input-padding-small button{top:-20px}.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-single.input-padding-xx-small button{top:-36px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-x-small button{top:-40px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-small button{top:-44px}.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-double.input-padding-xx-small button{top:-12px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-x-small button{top:-16px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-small button{top:-20px}.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-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;outline-color:initial !important;background:rgb(255, 255, 255) !important;background-clip:initial !important;border:1px solid rgb(127, 150, 165) !important;border-radius:4px !important;transition: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,.has-error .duet-input[disabled]{border-color:rgb(214, 28, 82) !important}.has-error .duet-input+.duet-input-icon,.has-error .duet-input[disabled]+.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;outline:none !important;background:rgb(228, 236, 239) !important;border-color:rgb(228, 236, 239) !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(228, 233, 237) !important;border-color:rgb(228, 233, 237) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-input:hover:not(:disabled){outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva .duet-input:hover:not(:disabled),.duet-input:hover:not(:disabled).duet-theme-turva,.duet-theme-turva2 .duet-input:hover:not(:disabled),.duet-input:hover:not(:disabled).duet-theme-turva2{outline-color:rgb(120, 145, 164)}.has-error .duet-input:hover:not(:disabled){outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-input:focus{border-color:rgb(0, 119, 179) !important;transition:none}.duet-theme-turva .duet-input:focus{border-color:rgb(23, 28, 58) !important}.duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 28, 58)}.has-error .duet-input:focus{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.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{outline: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 label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-input-relative{position:relative;width:100%}.duet-input-variation-button,.duet-input-variation-button-left{position:relative;width:100%}.duet-input-variation-button .duet-input-relative,.duet-input-variation-button-left .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,.duet-input-variation-button-left .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-button-left .duet-input-relative{border-radius:4px}.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-button-left .duet-input-relative .duet-input{border-left-width:0 !important;border-top-left-radius:0 !important;border-bottom-left-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;outline:initial;border:1px solid rgb(127, 150, 165);border-radius:4px;transition: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{outline:none !important;border-width:0 !important}.duet-input-variation-revealable.disabled .duet-input-relative{outline:none;background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.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{outline:2px solid;outline-offset:-1px;outline-color:rgb(62, 84, 102);border-color:rgb(0, 119, 179)}.duet-input-variation-revealable.duet-theme-turva.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(53, 79, 101);border-color:rgb(23, 28, 58)}.duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative{outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva .duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative,.duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative.duet-theme-turva,.duet-theme-turva2 .duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative,.duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative.duet-theme-turva2{outline-color:rgb(120, 145, 164)}.duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(62, 84, 102)}.duet-theme-turva .duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-offset:2px;outline-color:rgb(53, 79, 101)}.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;transition: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-grow:1;flex-basis:4rem;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{outline:none !important;border-width:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-input-icon{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input{color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-input::-webkit-input-placeholder{color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus::-webkit-input-placeholder{color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:-moz-placeholder{color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus::-moz-placeholder{color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:-ms-input-placeholder{color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus:-ms-input-placeholder{color:rgb(241, 202, 178)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input[disabled]{color:rgb(23, 42, 59) !important;background:rgb(228, 233, 237) !important;border-color:rgb(228, 233, 237) !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus{border-color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input-variation-button-left.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-input-variation-revealable.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}";
|
|
13032
13078
|
|
|
13033
13079
|
const icons = {
|
|
13034
13080
|
search: searchIcon,
|
|
@@ -13572,7 +13618,7 @@ class DuetInput {
|
|
|
13572
13618
|
this.type !== "password" &&
|
|
13573
13619
|
this.type !== "time" &&
|
|
13574
13620
|
this.variation !== "button";
|
|
13575
|
-
return (hAsync(Host, { key: '
|
|
13621
|
+
return (hAsync(Host, { key: '97c6c512b6c027ca8043a43672a95b94f03f6156', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" }, onKeyUp: e => this.keyHandler(e) }, this.type === "time" && (hAsync("duet-visually-hidden", { key: 'b822ea081dcf6540e2b68897ee048047aff84628', "aria-live": "polite", "aria-atomic": "true" }, selectedTime ? `${this.timeAnnouncement[this.language]} ${selectedTime.toLocaleTimeString()}` : "")), hAsync("div", { key: '9e605485547ba28244c552f56e417b5601b54fe8', class: {
|
|
13576
13622
|
"duet-input-container": true,
|
|
13577
13623
|
"duet-theme-turva": this.theme === "turva",
|
|
13578
13624
|
[`duet-input-variation-${this.variation}`]: true,
|
|
@@ -13586,7 +13632,7 @@ class DuetInput {
|
|
|
13586
13632
|
"has-clear": this.clear,
|
|
13587
13633
|
"has-focus": this.isFocused,
|
|
13588
13634
|
disabled: this.disabled,
|
|
13589
|
-
} }, hAsync("div", { key: '
|
|
13635
|
+
} }, hAsync("div", { key: '80b702bcab4580a325ba20786e5c4aabc2ed6097', class: "duet-input-label-container" }, hAsync(DuetInternalLabel, { key: 'c1deac7c8b5bb4a0b7f83b56300847e0320bbe5c', 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: 'c62963ee9ff47b91fa4380725a514df722c9d2a6', class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: '024482e338a12e5e93c1a281c5780575f72986f5', name: "tooltip" })), this.caption && (hAsync("duet-caption", { key: '38d05c2a565c01b678e55ffd8229387e67d313e5', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '211a0b1ea0a61065f35ba521c44656002a82af3d', class: "duet-input-relative" }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (hAsync("duet-caption", { key: '48c712f9c9ac80bf82ced7d12b6e3d82a4fafd9a', id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), this.chips && (hAsync("duet-visually-hidden", { key: '94be7e517078792db305259a743d3e9f9b1ed78f', id: this.chipCountId }, ", ", `${this.getAllChips().length} ${getLocaleString(this.chipsSelectedDesriptionLabel)}`, ",")), this.variation === "button-left" && hAsync("slot", { key: '1c73512bd1cb13064dface542dd5c83c0ce0bb61', name: "button-left" }), hAsync("input", Object.assign({ key: '2712744a1452a269a9cf149aaa6e6b5fc99cefe3', ref: input => (this.nativeInput = input), onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, type: this.getInputType(), class: {
|
|
13590
13636
|
"duet-input": true,
|
|
13591
13637
|
disabled: this.disabled,
|
|
13592
13638
|
"is-number": this.component === "number",
|
|
@@ -13594,17 +13640,17 @@ class DuetInput {
|
|
|
13594
13640
|
"after-chip": this.getAllChips().length > 0,
|
|
13595
13641
|
"align-right": this.inputAlign === "right",
|
|
13596
13642
|
[`input-padding-${this.inputPadding}`]: true,
|
|
13597
|
-
}, 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: '
|
|
13643
|
+
}, 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: '080395d2f4005f5e2d40ebeadf5be30fb014e71d', class: "duet-input-icon" }, hAsync("duet-icon", { key: '2a5bfe3a6d42a97e6cf451f833deeae80d852374', margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && (hAsync("div", { key: '92a1308358fff9f5c6aed1a07e24053c7499e788', class: {
|
|
13598
13644
|
"duet-input-clear-icon": true,
|
|
13599
13645
|
"duet-input-clear-icon-single": !hasInputIcon,
|
|
13600
13646
|
"duet-input-clear-icon-double": !!this.icon,
|
|
13601
13647
|
"duet-input-clear-icon-button": this.variation === "button",
|
|
13602
13648
|
[`input-padding-${this.inputPadding}`]: true,
|
|
13603
|
-
} }, hAsync("button", { key: '
|
|
13649
|
+
} }, hAsync("button", { key: 'b921d4ca4eb54fc267ad62f3c956a9acd9ea4487', onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel[this.language], "aria-keyshortcuts": "Escape" }, hAsync("duet-icon", { key: 'bdea13847de38a2cfd7cab93aa5867dda090e8d0', margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (hAsync("div", { key: '4e49e31671b84ffbda56882870611aba296daab2', class: "duet-input-icon" }, hAsync("duet-icon", { key: '8d95610824e317a5dd0c2a445f074a8845e118f9', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && hAsync("slot", { key: 'a65627a7d986abbe186808402689fc99a08bf173', name: "button" }), this.variation === "revealable" && (hAsync("duet-button", { key: 'c1ae746e55b6cf639c28a8b510c399c390ab875e', ref: button => (this.togglePasswordRevealedButton = button), onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.togglePasswordRevealed, icon: this.isPasswordRevealed ? "action-hide" : "action-show", accessibleLabel: this.isPasswordRevealed
|
|
13604
13650
|
? this.hidePasswordLabel[this.language]
|
|
13605
|
-
: 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: '
|
|
13651
|
+
: 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: '002a8f8fcab8184f130dc007637ef24216aadee3' }, hAsync("span", { key: 'fd669556e6e64700f4c2347183e20e6cbeb5682b', "aria-live": "polite" }, this.isPasswordRevealed
|
|
13606
13652
|
? this.passwordShownAriaAnnouncement[this.language]
|
|
13607
|
-
: this.passwordHiddenAriaAnnouncement[this.language]))), hAsync("slot", { key: '
|
|
13653
|
+
: this.passwordHiddenAriaAnnouncement[this.language]))), hAsync("slot", { key: 'cc9d622df88881cabca741a1dd95a162e955c349' })), hAsync("span", { key: '31c73b30b14c89c56268c32102bb5427b9850ff1', class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'b04cbeca6289a6b421013dde03381db825ac7a2c', class: "duet-input-error" }, this.error)))));
|
|
13608
13654
|
}
|
|
13609
13655
|
get element() { return getElement(this); }
|
|
13610
13656
|
static get watchers() { return {
|
|
@@ -13813,24 +13859,24 @@ class DuetLayout {
|
|
|
13813
13859
|
* Always the last one in the class.
|
|
13814
13860
|
*/
|
|
13815
13861
|
render() {
|
|
13816
|
-
return (hAsync(Host, { key: '
|
|
13862
|
+
return (hAsync(Host, { key: 'fe098e91c7bb01e0e85f187ba546f8f0c15cf657', class: {
|
|
13817
13863
|
center: this.center,
|
|
13818
13864
|
"duet-middle": this.middle,
|
|
13819
13865
|
"duet-ie": isInternetExplorer(),
|
|
13820
|
-
} }, hAsync("div", { key: '
|
|
13866
|
+
} }, hAsync("div", { key: 'da78ba19b431c58d4c317488d836973313b3205e', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, this.hasTop && (hAsync("div", { key: '6e681d77a0e10bb86b110e92d2843a41a95f57b3', class: {
|
|
13821
13867
|
"duet-layout-top": true,
|
|
13822
13868
|
"duet-center": this.center,
|
|
13823
|
-
} }, hAsync("div", { key: '
|
|
13869
|
+
} }, hAsync("div", { key: 'cb6263cad7fbb6bcd52af5be3286998c5e6f8ff3', class: "duet-layout-top-wrapper" }, hAsync("slot", { key: 'c5c141ad0307a0c11bb7a03b5c78e45356b19945', name: "top" })))), hAsync("div", { key: 'e524ed28fa4b2069b1bbbb3f603ba4e6101bd9b7', class: {
|
|
13824
13870
|
"duet-layout": true,
|
|
13825
13871
|
"has-sidebar": this.hasSidebar,
|
|
13826
13872
|
"duet-center": this.center,
|
|
13827
13873
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
13828
|
-
} }, hAsync("main", { key: '
|
|
13874
|
+
} }, hAsync("main", { key: 'c593638dad35304125cad8df76e2666a68c537b6', class: "duet-main" }, this.hasPageHeading && hAsync("slot", { key: '9bf4eb387cc838260b36ba8d14ca567dd0ab084e', name: "page-heading" }), hAsync("slot", { key: 'afb96493e079f8eb59c1ad43746c25d5a522e239', name: "main" })), this.hasSidebar && (hAsync("aside", { key: '0c61d31a6c40af17a4c2831ea7e441d3625b23b0', class: "duet-sidebar" }, hAsync("div", { key: '524ea0db179272409930c635aa1faca2716f88d4', class: {
|
|
13829
13875
|
"duet-sidebar-container": true,
|
|
13830
13876
|
"has-tabs": this.tabs,
|
|
13831
13877
|
sticky: this.sticky,
|
|
13832
13878
|
[this.stickyDistance]: this.sticky,
|
|
13833
|
-
} }, hAsync("slot", { key: '
|
|
13879
|
+
} }, hAsync("slot", { key: '8e4836e0cc16d836afcdadf1fb31b5e8f9e81e45', name: "sidebar" }))))))));
|
|
13834
13880
|
}
|
|
13835
13881
|
get element() { return getElement(this); }
|
|
13836
13882
|
static get style() { return duetLayoutCss; }
|
|
@@ -13915,7 +13961,7 @@ function setOpenerExpanded(el, expanded, popup = "true") {
|
|
|
13915
13961
|
}
|
|
13916
13962
|
}
|
|
13917
13963
|
|
|
13918
|
-
const duetLinkCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;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}[alignment=form-distribute]>:host(.duet-link-button):last-of-type:not(:last-child){margin-right:8px !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:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva,.duet-theme-turva2 .duet-link:focus,.duet-link:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.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{white-space:nowrap;text-decoration:none}.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;opacity:1}.block.duet-link,.block-center.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,.block-center.duet-link.duet-link-has-icon{grid-template-columns:auto 1fr auto}.block.duet-link.none,.block-center.duet-link.none{padding:0}.block.duet-link:hover .duet-link-content,.block-center.duet-link:hover .duet-link-content{color:rgb(0, 97, 155)}.block .block__icon,.block-center .block__icon{display:flex}.block .block__icon duet-icon,.block-center .block__icon duet-icon{width:16px;height:16px}.block .block__icon duet-icon.icon-responsive,.block-center .block__icon duet-icon.icon-responsive{width:30px;height:30px}@media (max-width: 22.5em){.block .block__icon duet-icon.icon-responsive,.block-center .block__icon duet-icon.icon-responsive{width:24px;height:24px}}.block .block__content,.block-center .block__content{position:relative;bottom:2px}.block .block__chevron,.block-center .block__chevron{align-self:center}.block .block__chevron-icon,.block-center .block__chevron-icon{transition:300ms ease}.block:not(.duet-link-is-external):hover .block__chevron-icon,.block-center:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.block-center.duet-link{align-items:center}.block-center .block__content{position:static}.block-center .block__chevron{display:flex;align-items:center}.duet-link.button:not(.duet-link-has-icon-background) .icon-wrap duet-icon{width:20px;height:20px}.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:20px;height:20px}@media (min-width: 48em){.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:24px;height:24px}}.duet-link.button,.duet-link.list-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;transition:all 300ms ease}.duet-link.button>*,.duet-link.list-button>*,.duet-link.card>*{flex-shrink:0}.duet-link.button .duet-link-content,.duet-link.list-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.list-button .icon-wrap,.duet-link.card .icon-wrap{display:flex;align-items:center;justify-content:center}.duet-link.button .icon-wrap duet-icon,.duet-link.list-button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:24px;height:24px}@media (min-width: 48em){.duet-link.button .icon-wrap duet-icon,.duet-link.list-button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:30px;height:30px}}.duet-link.button .chevron-wrap,.duet-link.list-button .chevron-wrap,.duet-link.card .chevron-wrap{height:16px}.duet-link.button.duet-link-has-icon-background,.duet-link.list-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.list-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.list-button:hover,.duet-link.card:hover{outline:2px solid rgb(0, 119, 179);border-color:rgb(0, 119, 179)}@media (min-width: 48em){.duet-link.button,.duet-link.list-button,.duet-link.card{min-height:50px}.duet-link.button.duet-link-has-icon-background,.duet-link.list-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.list-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.list-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.list-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.list-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.list-button.duet-theme-turva:hover,.duet-link.card.duet-theme-turva:hover{outline-color:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-link.button .block__chevron-icon,.duet-link.list-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.list-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.list-button{padding:20px 12px 20px 4px;margin-top:-1px;border:solid 1px rgb(181, 198, 208);border-width:1px 0;border-radius:0}.duet-link.list-button .icon-wrap duet-icon{width:20px;height:20px}@media (min-width: 48em){.duet-link.list-button .icon-wrap duet-icon{width:24px;height:24px}}.duet-link.list-button:hover{outline:0;border-color:rgb(181, 198, 208)}.duet-link.list-button:hover .duet-link-content{color:rgb(0, 119, 179)}.duet-link.list-button.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.list-button.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-link.list-button.duet-theme-turva:hover .duet-link-content{color:rgb(198, 12, 48)}.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}}:host(.duet-theme-turva2) .duet-theme-turva.duet-link{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link:hover{color:rgb(140, 0, 30)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button{border-color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button .duet-link-content{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover{border-color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover .duet-link-content{color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center .duet-link-content{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover .duet-link-content{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-to-link{color:rgb(23, 42, 59)}";
|
|
13964
|
+
const duetLinkCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;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}[alignment=form-distribute]>:host(.duet-link-button):last-of-type:not(:last-child){margin-right:8px !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:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva,.duet-theme-turva2 .duet-link:focus,.duet-link:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.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,.article-list),.duet-link-is-download.duet-link:not(.block,.button,.card,.article-list){text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card,.article-list) .duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card,.article-list) .duet-link-content{text-decoration:underline}.duet-link-is-external.duet-link:not(.block,.button,.card,.article-list):hover>.duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card,.article-list):hover>.duet-link-content{text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card,.article-list) .duet-link-icon-tail,.duet-link-is-download.duet-link:not(.block,.button,.card,.article-list) .duet-link-icon-tail{white-space:nowrap;text-decoration:none}.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;opacity:1}.block.duet-link,.block-center.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,.block-center.duet-link.duet-link-has-icon{grid-template-columns:auto 1fr auto}.block.duet-link.none,.block-center.duet-link.none{padding:0}.block.duet-link:hover .duet-link-content,.block-center.duet-link:hover .duet-link-content{color:rgb(0, 97, 155)}.block .block__icon,.block-center .block__icon{display:flex}.block .block__icon duet-icon,.block-center .block__icon duet-icon{width:16px;height:16px}.block .block__icon duet-icon.icon-responsive,.block-center .block__icon duet-icon.icon-responsive{width:30px;height:30px}@media (max-width: 22.5em){.block .block__icon duet-icon.icon-responsive,.block-center .block__icon duet-icon.icon-responsive{width:24px;height:24px}}.block .block__content,.block-center .block__content{position:relative;bottom:2px}.block .block__chevron,.block-center .block__chevron{align-self:center}.block .block__chevron-icon,.block-center .block__chevron-icon{transition:300ms ease}.block:not(.duet-link-is-external):hover .block__chevron-icon,.block-center:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.block-center.duet-link{align-items:center}.block-center .block__content{position:static}.block-center .block__chevron{display:flex;align-items:center}.duet-link.button:not(.duet-link-has-icon-background) .icon-wrap duet-icon{width:20px;height:20px}.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:20px;height:20px}@media (min-width: 48em){.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:24px;height:24px}}.duet-link.button,.duet-link.list-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;transition:all 300ms ease}.duet-link.button>*,.duet-link.list-button>*,.duet-link.card>*{flex-shrink:0}.duet-link.button .duet-link-content,.duet-link.list-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.list-button .icon-wrap,.duet-link.card .icon-wrap{display:flex;align-items:center;justify-content:center}.duet-link.button .icon-wrap duet-icon,.duet-link.list-button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:24px;height:24px}@media (min-width: 48em){.duet-link.button .icon-wrap duet-icon,.duet-link.list-button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:30px;height:30px}}.duet-link.button .chevron-wrap,.duet-link.list-button .chevron-wrap,.duet-link.card .chevron-wrap{height:16px}.duet-link.button.duet-link-has-icon-background,.duet-link.list-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.list-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.list-button:hover,.duet-link.card:hover{outline:2px solid rgb(0, 119, 179);border-color:rgb(0, 119, 179)}@media (min-width: 48em){.duet-link.button,.duet-link.list-button,.duet-link.card{min-height:50px}.duet-link.button.duet-link-has-icon-background,.duet-link.list-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.list-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.list-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.list-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.list-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.list-button.duet-theme-turva:hover,.duet-link.card.duet-theme-turva:hover{outline-color:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-link.button .block__chevron-icon,.duet-link.list-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.list-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.list-button{padding:20px 12px 20px 4px;margin-top:-1px;border:solid 1px rgb(181, 198, 208);border-width:1px 0;border-radius:0}.duet-link.list-button .icon-wrap duet-icon{width:20px;height:20px}@media (min-width: 48em){.duet-link.list-button .icon-wrap duet-icon{width:24px;height:24px}}.duet-link.list-button:hover{outline:0;border-color:rgb(181, 198, 208)}.duet-link.list-button:hover .duet-link-content{color:rgb(0, 119, 179)}.duet-link.list-button.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.list-button.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-link.list-button.duet-theme-turva:hover .duet-link-content{color:rgb(198, 12, 48)}.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}}.duet-link.article-list{display:block;padding:20px 0;margin-bottom:-1px;text-decoration:none;border:solid rgb(212, 223, 229);border-width:1px 0;border-radius:0}.duet-link.article-list .duet-link-content{font-weight:600;color:rgb(0, 75, 129)}.duet-link.article-list .duet-link-content-wrap{display:flex}.duet-link.article-list .duet-link-bullet{flex-shrink:0;width:8px;height:8px;margin-top:8px;margin-right:16px;border-radius:2px}.duet-link.article-list .duet-link-meta{display:block;margin-top:4px;font-weight:400;color:rgb(81, 105, 123)}.duet-link.article-list:focus .duet-link-content,.duet-link.article-list:hover .duet-link-content{color:rgb(0, 97, 155);text-decoration:underline}:host(.duet-theme-turva2) .duet-theme-turva.duet-link{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link:hover{color:rgb(140, 0, 30)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button{border-color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button .duet-link-content{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover{border-color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover .duet-link-content{color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center .duet-link-content{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover .duet-link-content{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-to-link{color:rgb(23, 42, 59)}";
|
|
13919
13965
|
|
|
13920
13966
|
/**
|
|
13921
13967
|
* @part duet-link - piercing selector for styling the link
|
|
@@ -13987,7 +14033,8 @@ class DuetLink {
|
|
|
13987
14033
|
*/
|
|
13988
14034
|
this.iconColor = "currentColor";
|
|
13989
14035
|
/**
|
|
13990
|
-
* Color of the icon to display (
|
|
14036
|
+
* Color of the icon to display (with "button" variation) or color of the bullet (with "article-list"
|
|
14037
|
+
* variation). Not used for other variations.
|
|
13991
14038
|
*/
|
|
13992
14039
|
this.iconBackground = null;
|
|
13993
14040
|
/**
|
|
@@ -14063,6 +14110,9 @@ class DuetLink {
|
|
|
14063
14110
|
};
|
|
14064
14111
|
return (hAsync(Fragment, null, this.icon && (hAsync("span", { class: "icon-wrap", style: iconWrapStyle }, hAsync("duet-icon", { size: "auto", name: this.icon, margin: "none", color: this.iconColor }))), hAsync("div", { class: "duet-link-content", part: "duet-link-content" }, hAsync("slot", null)), hAsync("span", { class: "chevron-wrap" }, hAsync("duet-icon", { class: "block__chevron-icon", icon: this.external ? newWindowIconLarge.svg : chevronIcon.svg, size: "x-small", margin: "none", color: "primary-dark" }))));
|
|
14065
14112
|
}
|
|
14113
|
+
renderArticleListContent() {
|
|
14114
|
+
return (hAsync("div", { class: "duet-link-content-wrap" }, this.iconBackground && (hAsync("div", { class: "duet-link-bullet", style: { background: getColorByName(this.iconBackground, this.theme) } })), hAsync("span", null, hAsync("span", { class: "duet-link-content", part: "duet-link-content" }, hAsync("slot", null)), Build.isBrowser, hAsync("span", { class: "duet-link-meta" }, hAsync("slot", { name: "meta" })))));
|
|
14115
|
+
}
|
|
14066
14116
|
renderContent() {
|
|
14067
14117
|
switch (this.variation) {
|
|
14068
14118
|
case "default":
|
|
@@ -14074,6 +14124,8 @@ class DuetLink {
|
|
|
14074
14124
|
case "list-button":
|
|
14075
14125
|
case "card":
|
|
14076
14126
|
return this.renderButtonCardContent();
|
|
14127
|
+
case "article-list":
|
|
14128
|
+
return this.renderArticleListContent();
|
|
14077
14129
|
}
|
|
14078
14130
|
}
|
|
14079
14131
|
/**
|
|
@@ -14084,10 +14136,10 @@ class DuetLink {
|
|
|
14084
14136
|
const Tag = !this.url && this.variation !== "default" ? "button" : "a";
|
|
14085
14137
|
const role = !this.url && this.variation === "default" ? "button" : null;
|
|
14086
14138
|
const isButton = Tag === "button";
|
|
14087
|
-
return (hAsync(Host, { key: '
|
|
14139
|
+
return (hAsync(Host, { key: '63ea212c967fed116f28d316bf7b4dc6f7bed88d', class: {
|
|
14088
14140
|
[`duet-link-${this.variation}`]: true,
|
|
14089
14141
|
"duet-m-0": this.margin === "none",
|
|
14090
|
-
} }, hAsync(Tag, { key: '
|
|
14142
|
+
} }, hAsync(Tag, { key: 'c799db0446fbca186340c781f23ccecaf58e4336', href: this.url, class: {
|
|
14091
14143
|
"duet-link": true,
|
|
14092
14144
|
"duet-link-is-external": this.external,
|
|
14093
14145
|
"duet-link-is-download": !!this.download,
|
|
@@ -14277,7 +14329,7 @@ class DuetList {
|
|
|
14277
14329
|
* Always the last one in the class.
|
|
14278
14330
|
*/
|
|
14279
14331
|
render() {
|
|
14280
|
-
return (hAsync("dl", { key: '
|
|
14332
|
+
return (hAsync("dl", { key: '8cae41f240da2961c27153dc122763812b5fa34c', class: { "duet-list-component": true, "duet-m-0": this.margin === "none" } }, hAsync("slot", { key: 'b99b56fcc934c6a52c71df3e77d60b91393ade02' })));
|
|
14281
14333
|
}
|
|
14282
14334
|
get element() { return getElement(this); }
|
|
14283
14335
|
static get watchers() { return {
|
|
@@ -14343,7 +14395,7 @@ class DuetListItem {
|
|
|
14343
14395
|
* Always the last one in the class.
|
|
14344
14396
|
*/
|
|
14345
14397
|
render() {
|
|
14346
|
-
return (hAsync(Host, { key: '
|
|
14398
|
+
return (hAsync(Host, { key: '2fc646c6ec771484ba741b13db4e05af02190613', class: {
|
|
14347
14399
|
"duet-theme-turva": this.theme === "turva",
|
|
14348
14400
|
"duet-no-stacking": !this.responsive,
|
|
14349
14401
|
"duet-list-item-breakpoint-x-small": this.breakpoint === "x-small",
|
|
@@ -14351,7 +14403,7 @@ class DuetListItem {
|
|
|
14351
14403
|
"duet-list-item-breakpoint-medium": this.breakpoint === "medium",
|
|
14352
14404
|
"duet-list-item-breakpoint-large": this.breakpoint === "large",
|
|
14353
14405
|
"duet-list-item-breakpoint-x-large": this.breakpoint === "x-large",
|
|
14354
|
-
} }, hAsync("dt", { key: '
|
|
14406
|
+
} }, hAsync("dt", { key: 'a6f04cd679b723dec94b73f49a1f01e765cc2c2c' }, hAsync("slot", { key: '3406e6b4499bc4e1ccbb65c8c20861a940058120', name: "label" })), hAsync("dd", { key: '12904de4492dd50e266c323d2d038a514e4ed4f1' }, hAsync("slot", { key: '1b5922436da8b77d4687c2fe55e7f58c5af37647', name: "value" }))));
|
|
14355
14407
|
}
|
|
14356
14408
|
get element() { return getElement(this); }
|
|
14357
14409
|
static get style() { return duetListItemCss; }
|
|
@@ -14500,7 +14552,7 @@ class DuetLogo {
|
|
|
14500
14552
|
*/
|
|
14501
14553
|
render() {
|
|
14502
14554
|
const TagName = this.href ? "a" : "div";
|
|
14503
|
-
return (hAsync(Host, { key: '
|
|
14555
|
+
return (hAsync(Host, { key: '45473fa278154204ad2358fcea7063bf90c56594', class: { "duet-m-0": this.margin === "none" } }, hAsync(TagName, { key: '6311062a05dc397c72ffbd371c6443cf96e3438e', href: this.href, ref: link => (this.nativeLink = link), "aria-label": this.accessibleLabel, class: {
|
|
14504
14556
|
"duet-logo": true,
|
|
14505
14557
|
[this.size]: true,
|
|
14506
14558
|
"duet-logo-inverse": this.inverse,
|
|
@@ -14661,17 +14713,17 @@ class DuetMenuBar {
|
|
|
14661
14713
|
render() {
|
|
14662
14714
|
const slideoutAvailable = document.querySelectorAll("duet-slideout").length > 0;
|
|
14663
14715
|
const isUsedAsAdditionalHorizontalNav = slideoutAvailable && !this.logo;
|
|
14664
|
-
return (hAsync(Host, { key: '
|
|
14716
|
+
return (hAsync(Host, { key: '0465c2eb195dcbd9b168a73646321e57fdbf6ac9' }, hAsync("nav", { key: 'f0bfcd1ec120c1471fe1d32715b6892125f03baa', class: {
|
|
14665
14717
|
"duet-menu-bar": true,
|
|
14666
14718
|
"duet-theme-turva": this.theme === "turva",
|
|
14667
14719
|
"horizontal-nav": isUsedAsAdditionalHorizontalNav,
|
|
14668
14720
|
"duet-menu-bar-slim": !this.centerSlotUsed,
|
|
14669
14721
|
hidden: this.hidden && this.hideOnScroll,
|
|
14670
14722
|
bottom: this.onBottom,
|
|
14671
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
14723
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: 'bc2ac882034c4d1ffc30fa989bf6d4927ecd50dc', class: "top" }), hAsync("div", { key: '2495e91eb00325b4cb6d01814a13196916e62703', class: { container: true, "with-info-text": !!this.logoInfoText && !this.centerSlotUsed }, ref: el => (this.container = el), onScroll: () => this.scrollbarCheck() }, this.logo && (hAsync("div", { key: '4eaa51862b000fb13b27c4abe9d4d44cc9ad2f1c' }, hAsync("duet-logo", { key: '909c1992fd75363ff871776e4d948d295f21ee2e', class: "medium", size: "medium", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), hAsync("duet-logo", { key: 'e672f17cccb5ba665d93375746eda2427a43fd5a', class: "large", size: "large", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), hAsync("duet-logo", { key: '92864cb719cd05cf81b3e1a8513179daeceaae30', class: "only-symbol", onlySymbol: true, margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), this.logoInfoText && !this.centerSlotUsed && (hAsync("div", { key: 'bdea5133ca4fe524e4514808a1233094a4427bd7', class: {
|
|
14672
14724
|
"duet-logo-info-text": true,
|
|
14673
14725
|
"duet-theme-turva": this.theme === "turva",
|
|
14674
|
-
} }, this.logoInfoText)))), hAsync("div", { key: '
|
|
14726
|
+
} }, this.logoInfoText)))), hAsync("div", { key: '05e4681d1eb7add830ec0dba6d8bf33df33e77a1', class: "list center", role: "list" }, hAsync("div", { key: '6b29f783a3df400d7e2f8bfca9dba33321d658c6', class: "more-left", hidden: !this.leftMoreVisible, role: "presentation" }), hAsync("slot", { key: '938d6956b67e6a8a5592ea6f13e013a672af3f0a', name: "center" }), hAsync("div", { key: '27897945987291e920d738a520fe16b2a82284f4', class: "more-right", hidden: !this.rightMoreVisible, role: "presentation" })), hAsync("div", { key: '9cc2f6e6297e855cdac09b2a3fa5d6c3a42ecf9c', class: "list right", role: "list" }, hAsync("slot", { key: '257a5853501bb6dde1d152842c77c4e8cd00b709', name: "right" }))), hAsync("div", { key: '3a7b3b351b057060e8359a4acc7857fabe29ab3d', class: "bottom" }))));
|
|
14675
14727
|
}
|
|
14676
14728
|
get element() { return getElement(this); }
|
|
14677
14729
|
static get style() { return duetMenuBarCss; }
|
|
@@ -14750,10 +14802,10 @@ class DuetMenuBarButton {
|
|
|
14750
14802
|
* Always the last one in the class.
|
|
14751
14803
|
*/
|
|
14752
14804
|
render() {
|
|
14753
|
-
return (hAsync(Host, { key: '
|
|
14805
|
+
return (hAsync(Host, { key: '27fb2c633e88b04b7397830d15c881240d29a91b', role: "listitem", onfocus: () => this.setFocus() }, hAsync("button", { key: '29791cfd8473dc9407238460bcb1e169f183f074', ref: button => (this.nativeButton = button), class: {
|
|
14754
14806
|
"duet-menu-bar-button": true,
|
|
14755
14807
|
"duet-theme-turva": this.theme === "turva",
|
|
14756
|
-
}, "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: '
|
|
14808
|
+
}, "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: 'e037dac1385bef39b070602ba5bfb278470a49dd', class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: '95fd0aef38328dece2756ceed18c904c0c447d76' }))));
|
|
14757
14809
|
}
|
|
14758
14810
|
get element() { return getElement(this); }
|
|
14759
14811
|
static get style() { return duetMenuBarButtonCss; }
|
|
@@ -14843,17 +14895,17 @@ class DuetMenuBarDropdown {
|
|
|
14843
14895
|
* Always the last one in the class.
|
|
14844
14896
|
*/
|
|
14845
14897
|
render() {
|
|
14846
|
-
return (hAsync(Host, { key: '
|
|
14898
|
+
return (hAsync(Host, { key: 'c46c77a3b37d72d4f026c5027a8bed6dc33621c5', role: "listitem" }, hAsync("div", { key: 'bed24491075bfc2c5dcf225c5262a1af76e7a34f', class: {
|
|
14847
14899
|
"duet-menu-bar-dropdown": true,
|
|
14848
14900
|
"duet-theme-turva": this.theme === "turva",
|
|
14849
14901
|
active: this.open,
|
|
14850
14902
|
[`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
|
|
14851
|
-
} }, hAsync("button", { key: '
|
|
14903
|
+
} }, hAsync("button", { key: 'bee18f72f97fe86364cdf6afa685602feea7f694', 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: {
|
|
14852
14904
|
active: this.open,
|
|
14853
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
14905
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '9b5beb13681712fe262c14ba74de6b30ab481dff', class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'debea3ea41d1b4358dbf774b54558d8921b92006', class: "label" }, hAsync("slot", { key: 'fffcc54cdfb0032577c066e374c3465eafac3206', name: "label" }), hAsync("duet-icon", { key: 'a36c591292ca2c2b445e04f53721f788a4005934', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '3794aa5366239e4db4286303ef75f30778e3b911', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
14854
14906
|
items: true,
|
|
14855
14907
|
hidden: !this.open,
|
|
14856
|
-
} }, hAsync("slot", { key: '
|
|
14908
|
+
} }, hAsync("slot", { key: '4a0657ee88ab885d6e177b654e0e9231d0027ec1' })))));
|
|
14857
14909
|
}
|
|
14858
14910
|
get element() { return getElement(this); }
|
|
14859
14911
|
static get style() { return duetMenuBarDropdownCss; }
|
|
@@ -14920,11 +14972,11 @@ class DuetMenuBarDropdownLink {
|
|
|
14920
14972
|
* Always the last one in the class.
|
|
14921
14973
|
*/
|
|
14922
14974
|
render() {
|
|
14923
|
-
return (hAsync(Host, { key: '
|
|
14975
|
+
return (hAsync(Host, { key: '44c02bb0c92ca03579e70dc6f79178099f38de61' }, hAsync("a", { key: '26b45ac19043800a070894afec67517d051b6ccc', class: {
|
|
14924
14976
|
"duet-menu-bar-dropdown-link": true,
|
|
14925
14977
|
[`duet-menu-bar-dropdown-link--slot-${this.getVariant()}`]: true,
|
|
14926
14978
|
"duet-theme-turva": this.theme === "turva",
|
|
14927
|
-
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
14979
|
+
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '4d481450931bbf089d2f6d5ee7076aca7c3978f1', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("slot", { key: 'b47043814429787c833949bac92bae95b2001419' }))));
|
|
14928
14980
|
}
|
|
14929
14981
|
get element() { return getElement(this); }
|
|
14930
14982
|
static get style() { return duetMenuBarDropdownLinkCss; }
|
|
@@ -15010,11 +15062,11 @@ class DuetMenuBarItem {
|
|
|
15010
15062
|
*/
|
|
15011
15063
|
render() {
|
|
15012
15064
|
const TagName = this.url ? "a" : "button";
|
|
15013
|
-
return (hAsync(Host, { key: '
|
|
15065
|
+
return (hAsync(Host, { key: '9feca792c6d12ed05344d17db4a5076ad037994e', role: "listitem" }, hAsync(TagName, { key: '5ab6813f5290c5f323713e6015a46330089d555a', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
15014
15066
|
"duet-menu-bar-item": true,
|
|
15015
15067
|
"duet-theme-turva": this.theme === "turva",
|
|
15016
15068
|
active: this.active,
|
|
15017
|
-
}, 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: '
|
|
15069
|
+
}, 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: '7b6541e7b7cab53fedf815feebc683b9f122e323', class: "leading-icon", size: "auto", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: 'ab89cf87285d10e52798cd123c404acb69d6bf91' }), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: '6bc587bed959b634caf6b25db7f3374ed538151c', class: {
|
|
15018
15070
|
"trailing-icon": !!this.trailingIcon,
|
|
15019
15071
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
15020
15072
|
"external-icon": !!this.external,
|
|
@@ -15079,11 +15131,11 @@ class DuetMenuBarLink {
|
|
|
15079
15131
|
* Always the last one in the class.
|
|
15080
15132
|
*/
|
|
15081
15133
|
render() {
|
|
15082
|
-
return (hAsync(Host, { key: '
|
|
15134
|
+
return (hAsync(Host, { key: '044fd632f4ea61ecd3bbbb77e3c2d0eda50f16a4', role: "listitem" }, hAsync("a", { key: 'b910e6d15c696910ab231b49facb9cd3250d66c4', class: {
|
|
15083
15135
|
"duet-menu-bar-link": true,
|
|
15084
15136
|
"duet-theme-turva": this.theme === "turva",
|
|
15085
15137
|
active: this.active,
|
|
15086
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
15138
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '46ede326e61111856df4318b018a4128b7743658', class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: '774a0d744c12e5d43783123c2d07d450a0ad0472' }))));
|
|
15087
15139
|
}
|
|
15088
15140
|
get element() { return getElement(this); }
|
|
15089
15141
|
static get style() { return duetMenuBarLinkCss; }
|
|
@@ -15419,14 +15471,14 @@ class DuetModal {
|
|
|
15419
15471
|
var _a, _b;
|
|
15420
15472
|
const iconColor = postfixTheme("primary", this.theme);
|
|
15421
15473
|
const closeColor = postfixTheme("secondary", this.theme);
|
|
15422
|
-
const closingButton = (hAsync("div", { key: '
|
|
15423
|
-
return (hAsync("div", { key: '
|
|
15474
|
+
const closingButton = (hAsync("div", { key: '4e4871ea348d26b652ca2e5509de5c8109893bec', class: "duet-modal-close" }, hAsync("duet-button", { key: 'a247c1d1de4f0eb6d17013ce97e1190f0e3cff98', 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 })));
|
|
15475
|
+
return (hAsync("div", { key: 'ea0d8046f113e79da769fdf27e90cc1564694a63', 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: {
|
|
15424
15476
|
"duet-modal-container": true,
|
|
15425
15477
|
"duet-theme-turva": this.theme === "turva",
|
|
15426
15478
|
"duet-modal-active": this.open,
|
|
15427
15479
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
15428
15480
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
15429
|
-
} }, hAsync("duet-overlay", { key: '
|
|
15481
|
+
} }, hAsync("duet-overlay", { key: '91332691051a8738a7278332558618d949b552cc', "z-index": "-1", visible: this.open, variation: this.variation === "loader" ? "white" : "default" }), hAsync("div", { key: '4068b2b99a1d7bc930812732a2fab135a99b4e1f', ref: modalInner => (this.modalInnerEl = modalInner), class: {
|
|
15430
15482
|
"duet-modal-inner": true,
|
|
15431
15483
|
[this.size]: true,
|
|
15432
15484
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
@@ -15437,22 +15489,22 @@ class DuetModal {
|
|
|
15437
15489
|
this.closeModal(e);
|
|
15438
15490
|
}
|
|
15439
15491
|
}
|
|
15440
|
-
} }, hAsync("div", { key: '
|
|
15492
|
+
} }, hAsync("div", { key: '0e3bbd10ffbad50b58f85c04ffb742036d13ebc0', ref: modalContentEl => (this.modalContentEl = modalContentEl), "aria-live": this.accessibleAnnounceChanges === "all" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "all" ? "true" : null, class: {
|
|
15441
15493
|
"duet-modal": true,
|
|
15442
15494
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
15443
15495
|
[this.size]: true,
|
|
15444
15496
|
[this.variation]: true,
|
|
15445
|
-
} }, this.gutterSize !== "none" && !this.hasStickyHeader && hAsync("duet-spacer", { key: '
|
|
15497
|
+
} }, this.gutterSize !== "none" && !this.hasStickyHeader && hAsync("duet-spacer", { key: 'bc7e5211ee8205892ac64dcc5a6e638c47616077' }), this.hasStickyHeader ? (hAsync("div", { class: "duet-modal-sticky-header" }, closingButton, hAsync("slot", { name: "sticky-header" }))) : (closingButton), hAsync("div", { key: '8c34198b5e52ebd8325b1075c4fa544606902c57', class: {
|
|
15446
15498
|
"duet-modal-body": true,
|
|
15447
15499
|
"duet-modal-gutter-none": this.gutterSize === "none",
|
|
15448
15500
|
"duet-modal-gutter-small": this.gutterSize === "small",
|
|
15449
15501
|
"duet-modal-gutter-medium": this.gutterSize === "medium",
|
|
15450
15502
|
"duet-modal-gutter-large": this.gutterSize === "large",
|
|
15451
|
-
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, hAsync("div", { key: '
|
|
15503
|
+
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, hAsync("div", { key: 'bd3fccbb60f77e869f2d22bbcd1cba5727f95662', class: "duet-modal-header" }, hAsync("span", { key: 'c39aa3dca41741380c1b447499bb8681c0a2740b', class: "duet-modal-inner-slot-top" }, hAsync("slot", { key: 'cbd305802019477236a92a4adde4146b614679f1', name: "top" })), this.icon && hAsync("duet-icon", { key: 'c7c340547b899add045132774d8e6fc77cf0cc79', name: this.icon, size: "xx-large", color: this.color || iconColor }), this.heading && (hAsync("duet-heading", { key: '51be5028e374ffba2038f37e44c8e51167b0884a', "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: '0a2606eaa0bb824d069c58cebd3239015e34c700', class: "duet-modal-spinner" }, hAsync("duet-spinner", { key: 'ab388454ca70920a04b9dd71bd8bf122fad5709a', size: "large", color: postfixTheme("primary", this.theme) }))), hAsync("div", { key: '647661b913ea78f280eb668f0f475b202188f424', "aria-live": this.variation === "loader"
|
|
15452
15504
|
? "assertive"
|
|
15453
15505
|
: this.accessibleAnnounceChanges === "body"
|
|
15454
15506
|
? "polite"
|
|
15455
|
-
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, hAsync("slot", { key: '
|
|
15507
|
+
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, hAsync("slot", { key: '510535d30879f5fe64414da8dfa065f119c02e5f' })))))));
|
|
15456
15508
|
}
|
|
15457
15509
|
get element() { return getElement(this); }
|
|
15458
15510
|
static get watchers() { return {
|
|
@@ -15768,23 +15820,23 @@ class DuetMultiselect {
|
|
|
15768
15820
|
*/
|
|
15769
15821
|
render() {
|
|
15770
15822
|
var _a;
|
|
15771
|
-
return (hAsync(Host, { key: '
|
|
15823
|
+
return (hAsync(Host, { key: '97536f27fe14e8f81df263d98c9f053b698d8ddc', class: {
|
|
15772
15824
|
"duet-m-0": this.margin === "none",
|
|
15773
15825
|
"duet-expand": this.expand,
|
|
15774
|
-
} }, hAsync("div", { key: '
|
|
15826
|
+
} }, hAsync("div", { key: '36b9eee52abd2ee6b61c75ed2ec841a0c93630f8', class: {
|
|
15775
15827
|
"duet-multiselect-container": true,
|
|
15776
15828
|
"duet-label-hidden": this.labelHidden,
|
|
15777
15829
|
"duet-theme-turva": this.theme === "turva",
|
|
15778
15830
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
15779
15831
|
"has-error": !!this.error,
|
|
15780
|
-
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync(DuetInternalLabel, { key: '
|
|
15832
|
+
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync(DuetInternalLabel, { key: '7a87af1d95f8aa21659cc54059eeee7a71381b9f', 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: 'd584d8069843723e09395b74acc855b8f1a03d3d', class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '5e51e4a0911761a464051ead529bdec483ed718c', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: 'c49215d1d23717e096993ed92626ec74b08a30a7', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: 'fa1f2d08b30643f1eb4ef6ad82b2b43b38893023', class: "duet-multiselect-wrapper" }, hAsync("button", { key: 'b3d1612d062847708718739c436922ebbeb0bbc5', 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: '0c69dbe9cabc1d5ceefacd2d39ebc2d367275e7b', 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: '6e6ec0afeae4d364fabf1d7e53405c16977345c1', class: "duet-multiselect-badge" }, this.value.length, hAsync("duet-visually-hidden", { key: '9c800e36b854577c56b995aae33579d483d382cb' }, this.selectedLangObject[this.language], ",", " ", Array.isArray(this.value) ? this.value.map(item => item.label).join(", ") : ""))), hAsync("svg", { key: '118e5e9a7038bc274546f8d1e15074228b1bfa51', 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: '3cdacabfaf82bb73eb9ae10d5266d6db8670b8f0', 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: '8b2cc52242d9b5c8171dc0b243431e85e12388c4', id: `${this.identifier}-checkboxes`, role: "listbox", class: {
|
|
15781
15833
|
"duet-multiselect-checkboxes": true,
|
|
15782
15834
|
"duet-multiselect-checkboxes-active": this.checkboxesVisible,
|
|
15783
|
-
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: '
|
|
15835
|
+
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: '32afbde85cb3c09d2b1a83a4ce101eda57e10550', class: "duet-multiselect-all-control-buttons" }, hAsync("button", { key: 'e249aa14b04681492b8d07a20b2bd527d9f5b43f', 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: '59b87660ba34d771407a4858406d56b296638d8f', class: "duet-multiselect-clear-all", onClick: this.handleClearAllClick, id: this.getOptionIdentifier(-1), onKeyDown: (e) => this.onCheckboxKeyDown(e, -1) }, this.clearAllLabel[this.language]))), this.processedItems &&
|
|
15784
15836
|
this.processedGroups.map(group => (hAsync("fieldset", null, group.label && hAsync("legend", null, group.label), group.items.map((item, key) => {
|
|
15785
15837
|
var _a, _b;
|
|
15786
15838
|
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 }));
|
|
15787
|
-
})))))), hAsync("span", { key: '
|
|
15839
|
+
})))))), hAsync("span", { key: 'bce4068b2c0e9947a80c89a371b7c1d731c03e59', class: "duet-multiselect-help duet-multiselect-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '04505dc5e9d7558c05b5a7fb31641a30011d6520' }, this.error)))));
|
|
15788
15840
|
}
|
|
15789
15841
|
get element() { return getElement(this); }
|
|
15790
15842
|
static get watchers() { return {
|
|
@@ -15859,7 +15911,7 @@ class DuetNav {
|
|
|
15859
15911
|
* Always the last one in the class.
|
|
15860
15912
|
*/
|
|
15861
15913
|
render() {
|
|
15862
|
-
return (hAsync(Host, { key: '
|
|
15914
|
+
return (hAsync(Host, { key: '7e22b4d7023564579ca7e937ea9b3e1c41383217' }, hAsync("div", { key: 'cbd604f24c3d48b16771529aaf84590fbe2c349e', class: { container: true, sticky: this.sticky } }, hAsync("slot", { key: '6d354508134cf4f829922e1d12b9163ed8796753' }), hAsync("slot", { key: '2cde080603a8252ec4015dedd7166b3d3c59b945', name: "mobile" }), hAsync("slot", { key: '9654b2dfc61dbbb9833a8b5df624bdb92adadc15', name: "desktop" }))));
|
|
15863
15915
|
}
|
|
15864
15916
|
get element() { return getElement(this); }
|
|
15865
15917
|
static get style() { return duetNavCss; }
|
|
@@ -15952,11 +16004,11 @@ class DuetNotification {
|
|
|
15952
16004
|
return `${indicatorText}${slottedText}${slottedText.endsWith(".") ? "" : "."} ${this.date}`;
|
|
15953
16005
|
}
|
|
15954
16006
|
render() {
|
|
15955
|
-
return (hAsync("div", { key: '
|
|
16007
|
+
return (hAsync("div", { key: '0c265034a28ae5591df26cf2603ab3d045b45478', role: "listitem", class: {
|
|
15956
16008
|
"duet-notification": true,
|
|
15957
16009
|
"duet-notification-highlight": this.highlight,
|
|
15958
16010
|
"duet-theme-turva": this.theme === "turva",
|
|
15959
|
-
} }, hAsync("a", { key: '
|
|
16011
|
+
} }, hAsync("a", { key: '8f26b04ba38b69dcb86b0ab8b6820ad63453c831', ref: element => (this.linkElement = element), href: this.url, target: this.external ? "_blank" : "_self", "aria-label": this.getAriaLabelText() }, hAsync("div", { key: 'e573dfed62263051b2841cb36cfe1b3c00db8e50', class: "duet-notification-container" }, hAsync("div", { key: '0e4d1b7fec55b7c69043f3beebefff071f2d1e04', class: "duet-indicator-container" }, this.highlight && (hAsync("duet-indicator", { key: 'e9086498a4ef7534f5a68956dad0a811486b41b1', variation: "new", "accessible-label": this.accessibleLabelUnread }))), hAsync("div", { key: 'd02944064c8c7842fb5556f2eadef2fc11aad3bd', class: "duet-notification-content" }, hAsync("slot", { key: 'f4de0aed88ff1f2545d2d630c299fa7e73e62a67' })), hAsync("div", { key: '8486cd8ac2797612ceae89c720b184c3e2f52805', class: "duet-notification-date" }, this.date)))));
|
|
15960
16012
|
}
|
|
15961
16013
|
get element() { return getElement(this); }
|
|
15962
16014
|
static get style() { return duetNotificationCss; }
|
|
@@ -16103,13 +16155,13 @@ class DuetNotificationDrawer {
|
|
|
16103
16155
|
* Always the last one in the class.
|
|
16104
16156
|
*/
|
|
16105
16157
|
render() {
|
|
16106
|
-
return (hAsync("div", { key: '
|
|
16158
|
+
return (hAsync("div", { key: '0bba8232dd1ab609418b4de64933e3412c0c5c34', class: {
|
|
16107
16159
|
"duet-drawer": true,
|
|
16108
16160
|
"duet-theme-turva": this.theme === "turva",
|
|
16109
|
-
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: '
|
|
16161
|
+
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: '4b962dc86ccbf2964df8500071dbc18f02c963cd', ref: el => (this.drawerButtonEl = el), type: "button", class: {
|
|
16110
16162
|
"duet-drawer-toggle": true,
|
|
16111
16163
|
"duet-theme-turva": this.theme === "turva",
|
|
16112
|
-
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (hAsync("div", { key: '
|
|
16164
|
+
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (hAsync("div", { key: '2f15bb497d2434af19730f4030d2745f91e02578', class: "duet-drawer-icon" }, hAsync("duet-icon", { key: '483eb19eec9f4540d16229e443d3db9996f184b6', margin: "none", size: "x-small", name: this.icon, color: "currentColor" }), this.badge && hAsync("duet-indicator", { key: '69984a9e0d645cd642b80e0fb2c447c700c98649', variation: "change" }))), hAsync("span", { key: '25f5d0416062bf12f288db0f3727e1b44b519133', class: "duet-drawer-label" }, this.label), hAsync("div", { key: '0ce588f8ecba4ba197f2991b205ea869aa86b139', class: "duet-drawer-caret" }, hAsync("duet-icon", { key: '26570a5e3a4b5bea09023b00801ead20e71eca9a', margin: "none", size: "auto", icon: arrowDownIcon.svg, color: "currentColor" }))), hAsync("div", { key: '07b8e4be45d32367caf6c3c430e54117fc3d334b', id: "duet-drawer-content", class: {
|
|
16113
16165
|
"duet-drawer-content": true,
|
|
16114
16166
|
"duet-drawer-right": this.direction === "right",
|
|
16115
16167
|
"duet-drawer-left": this.direction === "left",
|
|
@@ -16225,7 +16277,7 @@ function ConvertToEnUS(value, locale, replaceThousands = false) {
|
|
|
16225
16277
|
const roundTo = (val, multiple) => Math.round(val / multiple) * multiple;
|
|
16226
16278
|
const clamp$1 = (val, min, max) => Math.min(Math.max(val, min), max);
|
|
16227
16279
|
|
|
16228
|
-
const duetNumberInputCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-
|
|
16280
|
+
const duetNumberInputCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host(.form-distribute:last-of-type:not(:last-child)){margin-right:16px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;vertical-align:bottom;text-align:left}@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;-webkit-appearance:none;appearance:none;cursor:pointer;background:transparent}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{outline:2px solid;outline-offset:0;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus,:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus,:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.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)}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2}.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;z-index:-1;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)}:host(.duet-theme-turva2) .duet-theme-turva .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(178, 194, 205, 0.2) 0%, rgba(178, 194, 205, 0.2) 1px, rgba(178, 194, 205, 0.1) 1px, rgba(178, 194, 205, 0) 100%)}:host(.duet-theme-turva2) .duet-theme-turva .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(212, 221, 226)}";
|
|
16229
16281
|
|
|
16230
16282
|
/**
|
|
16231
16283
|
* @slot tooltip - Use to place a tooltip alongside the label.
|
|
@@ -16614,15 +16666,15 @@ class DuetNumberInput {
|
|
|
16614
16666
|
const identifier = this.identifier || this.inputId;
|
|
16615
16667
|
const maxlength = `${this.localizeValue(this.max)}${this.getUnitString()}`.length;
|
|
16616
16668
|
const cleanedValue = !!this.value ? SafeParseFloat(this.value, this.locale) : null;
|
|
16617
|
-
return (hAsync(Host, { key: '
|
|
16669
|
+
return (hAsync(Host, { key: '275a1396fb2d9fa28f6657eaeea0a80bfa4f467a', class: {
|
|
16618
16670
|
"duet-theme-turva": this.theme === "turva",
|
|
16619
16671
|
"duet-expand": this.expand,
|
|
16620
16672
|
"duet-m-0": this.margin === "none",
|
|
16621
|
-
} }, hAsync("div", { key: '
|
|
16673
|
+
} }, hAsync("div", { key: 'fb2d8070dbc28ae7fe8caf12d9240f46de8c9ce7', class: "duet-number-container" }, hAsync("duet-input", { key: '123545288214638cc732524a308a29192725c77b', 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.getUnitString()}` : "", 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: '4f686a5c2f574d074a2d6454cd194365fcc141c2', name: "tooltip" }), hAsync("div", { key: 'e03343cbb7974041658891a01b3f77c2c4c4aee4', class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, hAsync("button", { key: 'c8a6882f049ba90c4d020135a5db41599c13c41a', 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: '07016fbd4972e51d5aab8f7c040a70f743b3037a' }, this.accessibleSubtract
|
|
16622
16674
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
16623
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '
|
|
16675
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: 'ee01a937a49a5ad232edc351b7e359c8e286c227', icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), hAsync("button", { key: '2ae1c68852bec5ab32034dae516f44b7498f993f', 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: '76a559a4115dc80ec7e7a12f1a0010a3e0d7eb45' }, this.accessibleAdd
|
|
16624
16676
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
16625
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '
|
|
16677
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '363ca09492b9399246e03b1593bc0b2d7d565ad4', icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (hAsync("duet-visually-hidden", { key: 'e60677c28057dab13354deb353c4f147bc6a506f', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
|
|
16626
16678
|
}
|
|
16627
16679
|
get element() { return getElement(this); }
|
|
16628
16680
|
static get style() { return duetNumberInputCss; }
|
|
@@ -16734,7 +16786,7 @@ class DuetOverlay {
|
|
|
16734
16786
|
* Always the last one in the class.
|
|
16735
16787
|
*/
|
|
16736
16788
|
render() {
|
|
16737
|
-
return (hAsync(Host, { key: '
|
|
16789
|
+
return (hAsync(Host, { key: '5e9b9a675265c9da85edc378332cda2dbe9a2776', "aria-hidden": "true" }, hAsync("div", { key: 'ffe1b586a6912270360eab46b3c8226306ba24e2', style: { zIndex: this.zIndex }, class: {
|
|
16738
16790
|
"duet-overlay": true,
|
|
16739
16791
|
"duet-theme-turva": this.theme === "turva",
|
|
16740
16792
|
"keep-stacking-context": this.keepStackingContext,
|
|
@@ -16812,12 +16864,12 @@ class DuetPageHeading {
|
|
|
16812
16864
|
*/
|
|
16813
16865
|
render() {
|
|
16814
16866
|
const layout = this.layout === "narrow" ? "narrow" : this.layout === "fluid" ? "fluid" : "auto";
|
|
16815
|
-
return (hAsync("div", { key: '
|
|
16867
|
+
return (hAsync("div", { key: 'a359f4cb235a3897640cdffbd39139e189d3b5fa', class: {
|
|
16816
16868
|
"duet-page-heading": true,
|
|
16817
16869
|
"duet-theme-turva": this.theme === "turva",
|
|
16818
16870
|
"has-icon": !!this.icon,
|
|
16819
16871
|
[layout]: true,
|
|
16820
|
-
} }, hAsync("div", { key: '
|
|
16872
|
+
} }, hAsync("div", { key: '22d49c2080af3bd20cd103be9e03d1493be49e12', class: "background" }, this.theme === "turva" && hAsync("div", { key: '836160c0757b45f0fd56a737c5477e7f991647c9', class: "background-mask" }), this.theme !== "turva" && hAsync("div", { key: '11114653280d8354c0837c7b696afa7420ce317a', class: "brand-shape" }), this.theme !== "turva" && hAsync("div", { key: 'e73ed36215b6b4670f475177bd15671c70780c0b', class: "brand-shape second-shape" }), this.icon && (hAsync("div", { key: 'ca24de4ed573cccf325e04b63789ea5361cf2d5a', class: "brand-shaped-icon" }, hAsync("duet-icon", { key: '78fffdbc09d6489a817b17ac8fe360a969278292', background: "none", name: this.icon, margin: "none", size: "auto", responsive: false })))), hAsync("div", { key: '132aa722e9021f4fe671f36eeada043c752627ed', class: "heading" }, hAsync("slot", { key: 'a0545b6a759f1f3fcb73d3a63f32e9f070975835', name: "heading" }), this.progressCurrentStep !== undefined && this.progressTotalSteps > 0 && (hAsync("div", { key: 'de89e016dba311fccd701f213fb9c497a5b103ea' }, hAsync("duet-spacer", { key: '28ad3743d3ea8ac559fddc00915b063b30d13e39', size: "large" }), hAsync("div", { key: 'bc13cc4c86fe3f765ccb5aaa51e8cb4871f55d1f', role: "presentation" }, this.progressIndicator()))))));
|
|
16821
16873
|
}
|
|
16822
16874
|
get element() { return getElement(this); }
|
|
16823
16875
|
static get style() { return duetPageHeadingCss; }
|
|
@@ -17223,32 +17275,32 @@ class DuetPagination {
|
|
|
17223
17275
|
* Always the last one in the class.
|
|
17224
17276
|
*/
|
|
17225
17277
|
render() {
|
|
17226
|
-
return (hAsync(Host, { key: '
|
|
17278
|
+
return (hAsync(Host, { key: '62c4d84c58a0267e958230835282746f490f5b93', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("nav", { key: 'e308cbce7bfe457df21ca5d1a9b011ad306d8090', 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: {
|
|
17227
17279
|
"duet-pagination-nav": true,
|
|
17228
17280
|
[`duet-pagination-variation-${this.variation}`]: true,
|
|
17229
|
-
} }, this.numbersStore !== "" && (hAsync("div", { key: '
|
|
17281
|
+
} }, this.numbersStore !== "" && (hAsync("div", { key: '63cba2aeb5b53aceba412cd3ef544fad0b83f7e7', "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: '2c8d10cd7d2f4087336f5bd28905809fdf6852de', theme: this.theme }, "jump to page : ", this.numbersStore))), hAsync("ol", { key: 'ff23766c13debac377872850c408980460700cd3', id: this.listId, class: {
|
|
17230
17282
|
"duet-pagination": true,
|
|
17231
17283
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
17232
|
-
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: '
|
|
17284
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: 'af629fdaaaaceda9b49f04abb0adc8a4d111af69', class: {
|
|
17233
17285
|
"duet-pagination-page-button": true,
|
|
17234
17286
|
"duet-pagination-button-first": true,
|
|
17235
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17287
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '5b3580de4b5aa7cae5aac470c451276cb2915bb7', 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: 'b763efe60e95ce22c9a10a16f771306bc41c94e8', class: {
|
|
17236
17288
|
"duet-pagination-page-button": true,
|
|
17237
17289
|
"duet-pagination-button-first": true,
|
|
17238
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17290
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '4614a19eee937ec82b1d7f53774536bc3dc53efe', disabled: !!((this.internalSectionIndex === 0 && this.current <= 1) ||
|
|
17239
17291
|
(this.current <= 1 && this.processedPageLinks) ||
|
|
17240
|
-
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: '
|
|
17241
|
-
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '
|
|
17292
|
+
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: '6a58f0e2274e19bc36ed5724f8272b7d52aafbff' }, hAsync("li", { key: '3c9463d76188a6c709a339bc6aeb742230649517', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: 'faa2bb79c16612bf21b3c894bd044524094000b5', 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: '1d57199a2de289499f857d60e85abc5b03347701', class: "duet-pagination-page-number" }, "1"))), hAsync("li", { key: '165edfb178a9a37a62729c254ef59a759cf3234e', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: '2f86dc307015ec5c4f0c8ed8485eb539419b100f', 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: 'b72d8f2a8d07e8c81b9d3a1eff872b387982f531', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026"))))), (this.shouldDisplayNavigation() && this.renderPageNumbers()) || this.renderSelect(), (this.internalSectionIndex + 1) * this.visibleItems < this.totalPages &&
|
|
17293
|
+
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: 'd92b8e89d424fa566d435985832c1a47ff6f00e0' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (hAsync("li", { key: '02c6801c1212cdbd836d3206e0c3c57e0009c360', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: '3668dc509fbdb6567da22e8fbde178cba0a2c371', 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: 'e41f0ff84f1f30725a8c10788cbc790b5548f3e2', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), hAsync("li", { key: '3c8b3b2d1ae67bd70464a4463fce1abeac270a17', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: 'd29669bc78a9d8b299a674fbb0c862a35f2de7cd', 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
|
|
17242
17294
|
? this.processedPageLinks[this.processedPageLinks.length - 1]
|
|
17243
|
-
: undefined }, hAsync("div", { key: '
|
|
17295
|
+
: undefined }, hAsync("div", { key: '2c159077e6b2c5c72d820fa113be972db3c1a36a', class: "duet-pagination-page-number" }, this.totalPages))))), hAsync("li", { key: '17f8cb237ba3352dab6a6f9190a82995c6af50db', class: {
|
|
17244
17296
|
"duet-pagination-page-button": true,
|
|
17245
17297
|
"duet-pagination-button-last": true,
|
|
17246
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17298
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '2ed254adb9ac8a59160dda2da09dc9b4c451cfd7', disabled: !!((this.current === this.totalPages &&
|
|
17247
17299
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
17248
|
-
(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: '
|
|
17300
|
+
(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: 'be6cef233eeac10ca4964c07a8875832e5e8c5dd', class: {
|
|
17249
17301
|
"duet-pagination-page-button": true,
|
|
17250
17302
|
"duet-pagination-button-last": true,
|
|
17251
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17303
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '10c56fa0387027938a2778de48741e89c7186bd8', disabled: (this.current === this.totalPages &&
|
|
17252
17304
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
17253
17305
|
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 })))))));
|
|
17254
17306
|
}
|
|
@@ -17321,14 +17373,14 @@ class DuetPanel {
|
|
|
17321
17373
|
inheritGlobalTheme(this);
|
|
17322
17374
|
}
|
|
17323
17375
|
render() {
|
|
17324
|
-
return (hAsync(Host, { key: '
|
|
17376
|
+
return (hAsync(Host, { key: 'f0f19f168e9dc722234dfe71c45e696a0d6cf917', class: { "duet-m-0": this.margin === "none" } }, hAsync("section", { key: '2701d432c58239047f7564d14da3ea552313299f', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, "aria-describedby": this.accessibleDescribedBy, class: {
|
|
17325
17377
|
"duet-panel": true,
|
|
17326
17378
|
"duet-theme-turva": this.theme === "turva",
|
|
17327
17379
|
[this.variation.split("-")[0]]: true,
|
|
17328
17380
|
[this.variation.split("-")[1]]: true,
|
|
17329
17381
|
[`padding-${this.padding}`]: true,
|
|
17330
17382
|
border: this.border,
|
|
17331
|
-
} }, hAsync("slot", { key: '
|
|
17383
|
+
} }, hAsync("slot", { key: '4a02d9373b2c07f0d9f8e6a08e41c0ec5a7894f7' }))));
|
|
17332
17384
|
}
|
|
17333
17385
|
get element() { return getElement(this); }
|
|
17334
17386
|
static get style() { return duetPanelCss; }
|
|
@@ -17401,7 +17453,7 @@ class DuetParagraph {
|
|
|
17401
17453
|
const color = getColorByName(this.color);
|
|
17402
17454
|
// aria-describedby is to fix accessibility issue in Chrome where duet-paragraphs
|
|
17403
17455
|
// are not announced when placed inside duet-modal
|
|
17404
|
-
return (hAsync(Host, { key: '
|
|
17456
|
+
return (hAsync(Host, { key: 'b685bc9743cf7835c8b3c42219d01776f68b36d8', "aria-describedby": this.id }, hAsync("p", { key: 'fab064d13421d92311b516ce3658c09f82a8e6a8', id: this.id, class: {
|
|
17405
17457
|
"duet-paragraph": true,
|
|
17406
17458
|
"duet-paragraph-small": this.size === "small",
|
|
17407
17459
|
"duet-paragraph-semi-bold": this.weight === "semi-bold",
|
|
@@ -17410,7 +17462,7 @@ class DuetParagraph {
|
|
|
17410
17462
|
[this.variation]: true,
|
|
17411
17463
|
"duet-theme-turva": this.theme === "turva",
|
|
17412
17464
|
"duet-inherit-color": !this.color && this.inheritingParents.some(p => this.element.closest(p)),
|
|
17413
|
-
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: '
|
|
17465
|
+
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: '32a2fb093a12ade4b27b94047a87614645f2a128' }))));
|
|
17414
17466
|
}
|
|
17415
17467
|
get element() { return getElement(this); }
|
|
17416
17468
|
static get style() { return duetParagraphCss; }
|
|
@@ -21248,17 +21300,17 @@ class DuetPopupMenu {
|
|
|
21248
21300
|
overflowY: "auto",
|
|
21249
21301
|
height: this.popupMenuStyleHeight,
|
|
21250
21302
|
};
|
|
21251
|
-
return (hAsync(Host, { key: '
|
|
21303
|
+
return (hAsync(Host, { key: '38d773eb5b1edc25cd44868b2dbd1266c91a89ed', role: this.accessibleRole === "menu" ? "application" : null }, hAsync("div", { key: '91ceb69caae39a31363ad719d005dccd3b1c8ee2', ref: element => {
|
|
21252
21304
|
this.menuElement = element;
|
|
21253
21305
|
}, style: styles, class: {
|
|
21254
21306
|
open: this.open,
|
|
21255
21307
|
"duet-popup-menu-list": true,
|
|
21256
21308
|
"duet-theme-turva": this.theme === "turva",
|
|
21257
21309
|
"scroll-visible": this.scrollLimit < this.itemElements.length,
|
|
21258
|
-
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (hAsync("div", { key: '
|
|
21310
|
+
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (hAsync("div", { key: '8d88b2ea6b9530a3447e4a453e8bb8b7309db2da' }, hAsync("duet-input", { key: '254c2fe75f20cfa1af4154f31091f547ba034971', ref: el => (this.filterInput = el), label: this.filterLabel[this.language], "label-hidden": true, expand: true, margin: "none", type: "search", onDuetInput: this.filterItems, onKeyDown: this.handleKeyDownOnFilter }), hAsync("duet-visually-hidden", { key: 'cf6b107594e63b231df20558506b2a3b024b4731' }, hAsync("span", { key: 'b4f212123e9d319d2dfcf7b8d57e5f6e63d92e64', role: "status" }, `
|
|
21259
21311
|
${this.filterResultCount}/${this.itemElements.length}
|
|
21260
21312
|
${this.filterResultCountLabel[this.language]}
|
|
21261
|
-
`)), hAsync("duet-spacer", { key: '
|
|
21313
|
+
`)), hAsync("duet-spacer", { key: 'e123ca800b6c0ecd7f64099afde69f76ba837235', size: "xx-small" }))), hAsync("slot", { key: '5fe85d5c618f5256a29d3d46155b2ea23e00525d' }))));
|
|
21262
21314
|
}
|
|
21263
21315
|
get element() { return getElement(this); }
|
|
21264
21316
|
static get watchers() { return {
|
|
@@ -21403,11 +21455,11 @@ class DuetPopupMenuItem {
|
|
|
21403
21455
|
};
|
|
21404
21456
|
// Without the role ternary Safari/iPhone wouldn't announce the label for role menuitem.
|
|
21405
21457
|
// This is a tradeoff and now Safari announces these items as buttons and links with the label.
|
|
21406
|
-
return (hAsync(Host, { key: '
|
|
21458
|
+
return (hAsync(Host, { key: 'db95c4e9fb0aa71e489935fd47c3f7ac2ff56a19', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, hAsync(TagName, { key: '7a082c08242605aa154211c91f25932d33478543', 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: 'b3a98a07f252dfe67ce170caebca0f42ab683571', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), hAsync("span", { key: 'bda00beb4a4dc78a60830870a639a01dc99fcf5f', class: "duet-popup-menu-item-label" }, hAsync("slot", { key: '7c23f4c1c0b3ef2ff6d3cc555a0dedbbd8ffcfad' })), (this.trailingIcon || this.active || (this.url && this.external)) && (hAsync("duet-icon", { key: 'dca34adebe0f4c93d78b00fa32796a139a3a86b7', name: this.url && this.external
|
|
21407
21459
|
? newWindowIcon.title
|
|
21408
21460
|
: this.active
|
|
21409
21461
|
? "messaging-checked-small"
|
|
21410
|
-
: 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: '
|
|
21462
|
+
: 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: 'c6fc39d5f1aacf715990e749d2f559761d51344f', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
21411
21463
|
}
|
|
21412
21464
|
get element() { return getElement(this); }
|
|
21413
21465
|
static get style() { return duetPopupMenuItemCss; }
|
|
@@ -21599,12 +21651,12 @@ class DuetPromoCard {
|
|
|
21599
21651
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
21600
21652
|
};
|
|
21601
21653
|
const TagName = this.url ? "a" : "div";
|
|
21602
|
-
return (hAsync(Host, { key: '
|
|
21654
|
+
return (hAsync(Host, { key: '56be16710912a7b098e4c1bd75ece4275deda02e', class: { "duet-m-0": this.margin === "none" } }, hAsync("aside", { key: '8520123e09db6f31e9c0f5a5833318203a03f437', class: {
|
|
21603
21655
|
"duet-promo-card": true,
|
|
21604
21656
|
"duet-theme-turva": this.theme === "turva",
|
|
21605
21657
|
"no-bg-color": !this.backgroundColor,
|
|
21606
21658
|
"duet-promo-card-link": !!this.url,
|
|
21607
|
-
}, style: bannerStyles }, hAsync(TagName, { key: '
|
|
21659
|
+
}, style: bannerStyles }, hAsync(TagName, { key: 'ce219857ea16f66413f0ffe066a42e2f6c7de2b7', href: this.url, class: { "content-wrapper": true, "duet-theme-turva": this.theme === "turva" }, ref: element => (this.aOrDivElement = element) }, hAsync("img", { key: 'b8fd35ff9576c1c84b78a1c35fa26f0d8a7bdd83', class: "image", src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" }), hAsync("div", { key: 'e488f6860798e150634d0bd7355bfcfdd0639099', class: "content" }, this.hasPreHeadingSlot && (hAsync("div", { key: '50defa4cebf48f12beb6a6e25bb3b058bd4ab108', class: "pre-heading" }, hAsync("slot", { key: '3fe0e93d82863d84d9f95b09e301ba409d959def', name: "pre-heading" }))), this.hasHeadingSlot && (hAsync("div", { key: '4e7e6c68a1aca92f52e6e109216735f73d801174', class: "heading" }, hAsync("duet-heading", { key: '2ac242af4113cff2e0aecdc7d08a5a5c576e0a83', theme: this.theme, level: this.headingLevel, "visual-level": "h3", margin: "none", color: postfixTheme(this.textColor, this.theme) }, hAsync("span", { key: '9c9c3ea67f05664c74d029b1692fc861492ae803' }, hAsync("slot", { key: '6e0d8069fdcd49bea6a9f090e195234de7ebb30f', name: "heading" }))))), this.hasDescriptionSlot && (hAsync("div", { key: 'ed90f9561b935ca29e72a2be7610815ddf7cb6f6', class: "description" }, hAsync("duet-paragraph", { key: '50725ca77dd7bdfc626d0a04c9a312bbc26f7695', theme: this.theme, margin: "none", color: postfixTheme(this.textColor, this.theme) }, hAsync("span", { key: 'ab9901ea88b885a28027b12af72bf8080126407d' }, hAsync("slot", { key: '0029e88a6d769cc0084b90c7be3035cda0a9a3b1', name: "description" }))))), this.hasActionSlot && (hAsync("div", { key: '595080e76cbb790f9bf2cdbfcaaadd23966c596e', class: "action" }, hAsync("slot", { key: '59d7aceeb4f3fe3e72a49a3e2bd405ab5dc043f8', name: "action" }))))))));
|
|
21608
21660
|
}
|
|
21609
21661
|
get element() { return getElement(this); }
|
|
21610
21662
|
static get style() { return duetPromoCardCss; }
|
|
@@ -21811,16 +21863,16 @@ class DuetRadio {
|
|
|
21811
21863
|
* Always the last one in the class.
|
|
21812
21864
|
*/
|
|
21813
21865
|
render() {
|
|
21814
|
-
return (hAsync(Host, { key: '
|
|
21866
|
+
return (hAsync(Host, { key: '69aaca2996b0d03551927a1d506a506a64cbc513', onClick: this.onClick, class: {
|
|
21815
21867
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
21816
21868
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
21817
21869
|
"duet-m-0": this.margin === "none",
|
|
21818
|
-
} }, hAsync("div", { key: '
|
|
21870
|
+
} }, hAsync("div", { key: '66ea6a60a14b7f41d420ea8c55d0a1a72b829eb3', class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("slot", { key: 'f0984e840d5d981d22380562c3e62aee9c39e3e3', name: "input" }), hAsync("label", { key: '64131c520a668b265a4e6269824578c93f435b51', inert: true, ref: element => (this.labelElement = element), class: {
|
|
21819
21871
|
"duet-label": true,
|
|
21820
21872
|
checked: this.checked,
|
|
21821
21873
|
focus: this.focus,
|
|
21822
21874
|
disabled: this.disabled || this.groupDisabled,
|
|
21823
|
-
} }, hAsync("div", { key: '
|
|
21875
|
+
} }, hAsync("div", { key: '46ede7327f4250759b61d19bb423aafedaf2f0db', class: "duet-label-content" }, this.hasLabel ? hAsync("slot", { name: "label" }) : this.label)))));
|
|
21824
21876
|
}
|
|
21825
21877
|
get element() { return getElement(this); }
|
|
21826
21878
|
static get style() { return duetRadioCss; }
|
|
@@ -22015,7 +22067,7 @@ class DuetRadioGroup {
|
|
|
22015
22067
|
* Always the last one in the class.
|
|
22016
22068
|
*/
|
|
22017
22069
|
render() {
|
|
22018
|
-
return (hAsync(Host, { key: '
|
|
22070
|
+
return (hAsync(Host, { key: '0a4e9b973fe28ae1e8a9a583fb28df4322600d1a', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, hAsync("duet-fieldset", { key: 'e362931e7a2570013431301f59116bef1165067e', 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: '6c13847fc62ab32eb381e64614b1a99529d61c62', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '0a29afddf81e1e9509d4dcac854a4796bc890ae0', name: "tooltip" }), hAsync("div", { key: 'f11622cd32c24f83dbfd9be9d28495d78d54aa34', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: '5073cea332c31cc9e80b7b48297926f598b9b87b' })))));
|
|
22019
22071
|
}
|
|
22020
22072
|
get element() { return getElement(this); }
|
|
22021
22073
|
static get watchers() { return {
|
|
@@ -22203,13 +22255,13 @@ class DuetRangeSlider {
|
|
|
22203
22255
|
const rangeStyles = {
|
|
22204
22256
|
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
22205
22257
|
};
|
|
22206
|
-
return (hAsync(Host, { key: '
|
|
22258
|
+
return (hAsync(Host, { key: '551b6e7bcaec7d8e8603a2c969a2e5a8737d4700', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, hAsync("div", { key: 'a1c6b7d2b74d4643785d438612a744a645276ff9', class: {
|
|
22207
22259
|
"duet-range-container": true,
|
|
22208
22260
|
"duet-label-hidden": this.labelHidden,
|
|
22209
22261
|
"duet-theme-turva": this.theme === "turva",
|
|
22210
22262
|
"duet-ie": isInternetExplorer(),
|
|
22211
22263
|
"duet-range-disabled": this.disabled,
|
|
22212
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
22264
|
+
} }, hAsync(DuetInternalLabel, { key: 'ca4fc1236dfddc9c45432b6cf2943eacbb7b5d6f', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), hAsync("output", { key: '9f9b4fdede2ee464a1cce6a7ff2f70dc6c4b851d', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), hAsync("input", { key: 'c3867b976f6eefe2529e9f70f5f2c3f47ef05f0c', onInput: this.onInput, onChange: this.onChange, ref: input => (this.nativeInput = input), type: "range", min: this.min, max: this.max, step: this.step, value: this.value, style: rangeStyles, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} ${this.unit}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, id: identifier, name: this.name, disabled: this.disabled, required: this.required, class: "duet-range" }))));
|
|
22213
22265
|
}
|
|
22214
22266
|
get element() { return getElement(this); }
|
|
22215
22267
|
static get style() { return duetRangeSliderCss; }
|
|
@@ -22438,10 +22490,10 @@ class DuetRangeStepper {
|
|
|
22438
22490
|
* Always the last one in the class.
|
|
22439
22491
|
*/
|
|
22440
22492
|
render() {
|
|
22441
|
-
return (hAsync("div", { key: '
|
|
22493
|
+
return (hAsync("div", { key: 'a52fee857c27100782330372c560cab649bef9da', class: {
|
|
22442
22494
|
"duet-range-stepper": true,
|
|
22443
22495
|
"duet-theme-turva": this.theme === "turva",
|
|
22444
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: '
|
|
22496
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: '38bb481d87ac4683a737ef36c3e44dac29e53f17', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), hAsync("duet-action-button", { key: 'b990414c671f5f557677aef504e3964b45004ac2', 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: '8fc098c8d1bc03b20cc887327638d60bc6f25ca7', 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: "" })));
|
|
22445
22497
|
}
|
|
22446
22498
|
get element() { return getElement(this); }
|
|
22447
22499
|
static get watchers() { return {
|
|
@@ -22752,18 +22804,18 @@ class DuetScrollable {
|
|
|
22752
22804
|
* Always the last one in the class.
|
|
22753
22805
|
*/
|
|
22754
22806
|
render() {
|
|
22755
|
-
return (hAsync(Host, { key: '
|
|
22807
|
+
return (hAsync(Host, { key: 'fd00a29320acf14495b6cc383e0ceac6bb267a0e', class: {
|
|
22756
22808
|
"duet-theme-turva": this.theme === "turva",
|
|
22757
22809
|
"duet-theme-default": this.theme === "default",
|
|
22758
|
-
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: '
|
|
22810
|
+
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: '8a3d00551da83c08794cafd75727e6f682600d19', class: {
|
|
22759
22811
|
collapse: true,
|
|
22760
22812
|
hide: !this.needsScrolling && !this.collapsed,
|
|
22761
|
-
} }, hAsync("duet-button", { key: '
|
|
22813
|
+
} }, hAsync("duet-button", { key: '691a9be72f9c971c8f5e2b9c1a1d6a22a6febb88', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, hAsync("slot", { key: '68d9e51dc211956f2c10d3734141b322203e2ca7', name: "collapse-button-label" })))), hAsync("div", { key: 'e1768395848d8ea4bf20b2c628cc00aeca6646a2', class: {
|
|
22762
22814
|
"duet-scrollable-items": true,
|
|
22763
22815
|
buttons: this.buttons,
|
|
22764
22816
|
center: this.center,
|
|
22765
22817
|
"duet-theme-turva": this.theme === "turva",
|
|
22766
|
-
} }, this.buttons && this.renderButton("left"), hAsync("div", { key: '
|
|
22818
|
+
} }, this.buttons && this.renderButton("left"), hAsync("div", { key: 'a50c86bb57036bb9eab884d9244956e5816e234c', class: {
|
|
22767
22819
|
"duet-scrollable-list": true,
|
|
22768
22820
|
[`duet-scrollable-list--${this.buttonPosition}`]: true,
|
|
22769
22821
|
[`gap-${this.gap}`]: true,
|
|
@@ -22771,7 +22823,7 @@ class DuetScrollable {
|
|
|
22771
22823
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
22772
22824
|
[`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
|
|
22773
22825
|
"duet-scrollable-stretch": this.stretch,
|
|
22774
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: '
|
|
22826
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: 'b99ed10afd59b8ef4ffea3951ca0d335ed52c310' })), this.buttons && this.renderButton("right"))));
|
|
22775
22827
|
}
|
|
22776
22828
|
get element() { return getElement(this); }
|
|
22777
22829
|
static get watchers() { return {
|
|
@@ -22831,13 +22883,13 @@ class DuetSectionLayout {
|
|
|
22831
22883
|
* Always the last one in the class.
|
|
22832
22884
|
*/
|
|
22833
22885
|
render() {
|
|
22834
|
-
return (hAsync(Host, { key: '
|
|
22886
|
+
return (hAsync(Host, { key: '9b2ea75aa797ae1badc733580e0f8ad0d3db6010', class: {
|
|
22835
22887
|
"duet-middle": this.middle,
|
|
22836
22888
|
"duet-ie": isInternetExplorer(),
|
|
22837
|
-
} }, hAsync("div", { key: '
|
|
22889
|
+
} }, hAsync("div", { key: 'bc1417fc0201040e305cc32b699694c69f36087a', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '49cf06846048f0f226bb74554237a6354b5b4ad9', class: {
|
|
22838
22890
|
"duet-layout": true,
|
|
22839
22891
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
22840
|
-
} }, hAsync("section", { key: '
|
|
22892
|
+
} }, hAsync("section", { key: '1fe3edda6be4885c2f3ce77653be77a93eab99e9', class: "duet-main" }, hAsync("slot", { key: '700992a648447722a971e96771b19cfb85d97802' }))))));
|
|
22841
22893
|
}
|
|
22842
22894
|
get element() { return getElement(this); }
|
|
22843
22895
|
static get style() { return duetSectionLayoutCss; }
|
|
@@ -22855,7 +22907,7 @@ class DuetSectionLayout {
|
|
|
22855
22907
|
}; }
|
|
22856
22908
|
}
|
|
22857
22909
|
|
|
22858
|
-
const duetSelectCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(:not(.duet-m-0)){margin-right:16px !important;margin-bottom:12px !important}:host(:not(.duet-m-0)):last-child,:host(:not(.duet-m-0)):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(:not(.duet-m-0)):last-of-type:not(:last-child){margin-right:16px !important}@media (min-width: 36em){:host(.duet-expand){width:100% !important}}:host(.duet-select-variation-tiny),:host(.duet-select-variation-compact){position:relative;top:-2px;width:72px;margin:0;vertical-align:baseline}:host(.duet-select-variation-compact){width:auto}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;outline:none;border:0;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{outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px;border-color:rgb(127, 150, 165)}.duet-theme-turva .duet-select-wrapper select:hover+.duet-select,.duet-select-wrapper select:hover+.duet-select.duet-theme-turva,.duet-theme-turva2 .duet-select-wrapper select:hover+.duet-select,.duet-select-wrapper select:hover+.duet-select.duet-theme-turva2{outline-color:rgb(120, 145, 164)}.duet-theme-turva .duet-select-wrapper select:hover+.duet-select{border-color:rgb(143, 147, 158)}.has-error .duet-select-wrapper select:hover+.duet-select{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-select-wrapper select:focus+.duet-select{outline:2px solid;outline-offset:0;outline-color:rgba(0, 119, 179, 0.8);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select,.duet-select-wrapper select:focus+.duet-select.duet-theme-turva,.duet-theme-turva2 .duet-select-wrapper select:focus+.duet-select,.duet-select-wrapper select:focus+.duet-select.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select{border-color:rgb(23, 28, 58)}.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{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-select-wrapper select[disabled]{cursor:default !important}.duet-select-wrapper select[disabled]+.duet-select{color:rgb(8, 42, 77) !important;cursor:default !important;outline:none !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !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;text-overflow:ellipsis;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;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-internal-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:hover+.duet-select{border-color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus+.duet-select{border-color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select[disabled]+.duet-select{color:rgb(23, 42, 59) !important;background:rgb(245, 246, 247) !important;border-color:rgb(245, 246, 247) !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-select{color:rgb(23, 42, 59);border-color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select svg{color:rgb(23, 42, 59)}";
|
|
22910
|
+
const duetSelectCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host(.form-distribute:last-of-type:not(:last-child)){margin-right:16px !important}:host(:not(.duet-m-0)){margin-bottom:12px !important}@media (min-width: 36em){:host(.duet-expand){width:100% !important}}:host(.duet-select-variation-tiny),:host(.duet-select-variation-compact){position:relative;top:-2px;width:72px;margin:0;vertical-align:baseline}:host(.duet-select-variation-compact){width:auto}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;outline:none;border:0;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{outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px;border-color:rgb(127, 150, 165)}.duet-theme-turva .duet-select-wrapper select:hover+.duet-select,.duet-select-wrapper select:hover+.duet-select.duet-theme-turva,.duet-theme-turva2 .duet-select-wrapper select:hover+.duet-select,.duet-select-wrapper select:hover+.duet-select.duet-theme-turva2{outline-color:rgb(120, 145, 164)}.duet-theme-turva .duet-select-wrapper select:hover+.duet-select{border-color:rgb(143, 147, 158)}.has-error .duet-select-wrapper select:hover+.duet-select{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-select-wrapper select:focus+.duet-select{outline:2px solid;outline-offset:0;outline-color:rgba(0, 119, 179, 0.8);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select,.duet-select-wrapper select:focus+.duet-select.duet-theme-turva,.duet-theme-turva2 .duet-select-wrapper select:focus+.duet-select,.duet-select-wrapper select:focus+.duet-select.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select{border-color:rgb(23, 28, 58)}.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{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-select-wrapper select[disabled]{cursor:default !important}.duet-select-wrapper select[disabled]+.duet-select{color:rgb(8, 42, 77) !important;cursor:default !important;outline:none !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !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;text-overflow:ellipsis;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;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-internal-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:hover+.duet-select{border-color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus+.duet-select{border-color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select[disabled]+.duet-select{color:rgb(23, 42, 59) !important;background:rgb(245, 246, 247) !important;border-color:rgb(245, 246, 247) !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-select{color:rgb(23, 42, 59);border-color:rgb(120, 145, 164)}:host(.duet-theme-turva2) .duet-theme-turva .duet-select svg{color:rgb(23, 42, 59)}";
|
|
22859
22911
|
|
|
22860
22912
|
function isOptionGroup(item) {
|
|
22861
22913
|
return "options" in item;
|
|
@@ -23050,23 +23102,23 @@ class DuetSelect {
|
|
|
23050
23102
|
*/
|
|
23051
23103
|
render() {
|
|
23052
23104
|
const identifier = this.identifier || this.selectId;
|
|
23053
|
-
return (hAsync(Host, { key: '
|
|
23105
|
+
return (hAsync(Host, { key: 'd4455f68cbe21a6307b6c31fc5d1861e9b709308', class: {
|
|
23054
23106
|
"duet-m-0": this.margin === "none",
|
|
23055
23107
|
"duet-expand": this.expand,
|
|
23056
23108
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23057
|
-
} }, hAsync("div", { key: '
|
|
23109
|
+
} }, hAsync("div", { key: '40ddd5f7ed270fd9bbee28fe22f73087956bf129', class: {
|
|
23058
23110
|
"duet-select-container": true,
|
|
23059
23111
|
"duet-label-hidden": this.labelHidden,
|
|
23060
23112
|
"duet-theme-turva": this.theme === "turva",
|
|
23061
23113
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23062
23114
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
23063
23115
|
"has-error": !!this.error,
|
|
23064
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
23116
|
+
} }, hAsync(DuetInternalLabel, { key: 'e4e51bfc77281cf1fc4f160ecd4853ecbed2d8f4', 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: '775a1132a55071285222eb159dab2cad6c53ed23', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: 'c9f5f7f6cba8f1ab8fe8b97d9bc0f477b0c0c35d', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '730da616b797488390632e9736282d318d18573b', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '869eef60d494256461d86930a200bce7a1f5b6a6', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: '4606845937218a919ab4b8aa8ca7d5c03cdb7b53', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), hAsync("slot", { key: '595fe0d02b48772d88098c21cc0d4d9f67e40eee' }), hAsync("select", { key: 'ac4a661cb6210673febb02da37f5c0f4310874db', 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: '4d043e787efa622f3e396a2103439339fd2a73b8', 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 => {
|
|
23065
23117
|
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
23066
|
-
}))), hAsync("div", { key: '
|
|
23118
|
+
}))), hAsync("div", { key: 'c49def1bb08120461f4f4dc48ca9d2bfc3db1dba', class: {
|
|
23067
23119
|
"duet-select": true,
|
|
23068
23120
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23069
|
-
}, "aria-hidden": "true" }, hAsync("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (hAsync("svg", { key: '
|
|
23121
|
+
}, "aria-hidden": "true" }, hAsync("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (hAsync("svg", { key: 'fea29d4166e04f520240f5d61eed6dc2a007a3b0', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '39476404793f72829c0b759d9ac21e6436e56dde', 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: '9101a0f62cdb9392fb1c291919a9db1a951ce8fb', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), hAsync("span", { key: 'd9cd1eba5ce25f3a5d62a1cf5a91a34dde31e551', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), hAsync("span", { key: 'bdcb742b9b81e76d4767210a505d388b11b8a9ca', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '4b60b8d44ad7e984a2a97fdcc82383edce1efbc4', class: "duet-select-error" }, this.error)))));
|
|
23070
23122
|
}
|
|
23071
23123
|
get element() { return getElement(this); }
|
|
23072
23124
|
static get watchers() { return {
|
|
@@ -23146,9 +23198,9 @@ class DuetShapedImage {
|
|
|
23146
23198
|
const style = {
|
|
23147
23199
|
"--rotation": `${this.rotation}deg`,
|
|
23148
23200
|
};
|
|
23149
|
-
return (hAsync(Host, { key: '
|
|
23201
|
+
return (hAsync(Host, { key: '30bd1e8a895453ef9ba0ef177efb3d0e7dcf6e51', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, hAsync("span", { key: '41ad8a12f4f501eeedbf68d8826fb03418d79167', class: {
|
|
23150
23202
|
"shaped-image": true,
|
|
23151
|
-
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: '
|
|
23203
|
+
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: 'bf49040fd93cb6b26f9af4b4182b734d6f38fd1e', class: "shaped-image-mask", role: "presentation" }, hAsync("span", { key: 'bdb6b17ad7c5f5d599d5a26d0eee16cafaf478a2', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
|
|
23152
23204
|
}
|
|
23153
23205
|
static get style() { return duetShapedImageCss; }
|
|
23154
23206
|
static get cmpMeta() { return {
|
|
@@ -23218,12 +23270,12 @@ class DuetShareChart {
|
|
|
23218
23270
|
this.itemsTotalValue = this.items.reduce((total, { value }) => total + value, 0);
|
|
23219
23271
|
}
|
|
23220
23272
|
render() {
|
|
23221
|
-
return (hAsync(Host, { key: '
|
|
23273
|
+
return (hAsync(Host, { key: 'a8331a4750680d3263cbb297663da80b23a61474' }, hAsync("div", { key: '776a72d2c016b76c0020a0336379f6f50c767108', class: "duet-share-chart-horizontal-bar", role: "presentation" }, this.items
|
|
23222
23274
|
.filter(i => !!i.value)
|
|
23223
23275
|
.map(item => (hAsync("span", { class: "duet-share-chart-share", style: {
|
|
23224
23276
|
width: `${(item.value / this.itemsTotalValue) * 100}%`,
|
|
23225
23277
|
backgroundColor: getColorByName(item.color, this.theme),
|
|
23226
|
-
} })))), hAsync("ul", { key: '
|
|
23278
|
+
} })))), hAsync("ul", { key: '56ea054fcb62eb2b444f8359abb3bfd322f2f7e2', class: "duet-share-chart-item-list" }, this.items.map(item => (hAsync("li", { class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("span", { class: "duet-share-chart-item-color", style: { background: getColorByName(item.color, this.theme) } }), hAsync("span", { class: "duet-share-chart-item-text" }, item.text, ":"), hAsync("span", { class: "duet-share-chart-item-value" }, "\u00A0", formatNumber(item.value), "\u00A0", this.unit), this.unit !== "%" && (hAsync("duet-visually-hidden", null, `${formatNumber((item.value / this.itemsTotalValue) * 100, 0)} %`)))))), hAsync("slot", { key: '38276b55daac849b429a9ec4e963c2d308a66267' })));
|
|
23227
23279
|
}
|
|
23228
23280
|
get element() { return getElement(this); }
|
|
23229
23281
|
static get style() { return duetShareChartCss; }
|
|
@@ -23250,7 +23302,7 @@ class DuetShareChartItem {
|
|
|
23250
23302
|
this.value = 0;
|
|
23251
23303
|
}
|
|
23252
23304
|
render() {
|
|
23253
|
-
return (hAsync(Host, { key: '
|
|
23305
|
+
return (hAsync(Host, { key: 'd35a290305ffe6ec034caf3d8f5d21e4c85ed7b5' }, hAsync("div", { key: '885469b4f2ea9629da7f0baed471c5034eb9e979', hidden: true }, hAsync("slot", { key: 'b4ecc6c43546845aaffb210b38a35cdafd88b403' }))));
|
|
23254
23306
|
}
|
|
23255
23307
|
get element() { return getElement(this); }
|
|
23256
23308
|
static get cmpMeta() { return {
|
|
@@ -23400,12 +23452,12 @@ class DuetShowMore {
|
|
|
23400
23452
|
* Always the last one of the class.
|
|
23401
23453
|
*/
|
|
23402
23454
|
render() {
|
|
23403
|
-
return (hAsync(Host, { key: '
|
|
23455
|
+
return (hAsync(Host, { key: '9b7b230463671d2192e210969a461b48251cae0e' }, hAsync("div", { key: '241c4328ff06cb3582ccef14dc4798dfdfa79f9e', class: {
|
|
23404
23456
|
"duet-show-more": true,
|
|
23405
23457
|
"duet-theme-turva": this.theme === "turva",
|
|
23406
23458
|
"duet-m-0": this.margin === "none",
|
|
23407
23459
|
open: this.open,
|
|
23408
|
-
} }, hAsync("div", { key: '
|
|
23460
|
+
} }, hAsync("div", { key: 'ec5a0385c4fa9014a0d218ff6e9219be7412b0dd', ref: ref => (this.contentElement = ref), class: { content: true, "duet-theme-turva": this.theme === "turva" }, id: this.contentId, tabindex: this.open ? "-1" : "" }, hAsync("div", { key: '55832cd10199162f413b2d99a4a1d2053ac4e665', class: { "slotted-content": true } }, hAsync("slot", { key: 'c6b5fdd8c48f8ace2e8bf1bba830c21a9e2a1bb1' }))), hAsync("duet-button", { key: '7357d2b3e0aad58f27e4809cf8b727bee905f1e0', 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.isSafariBrowser ? this.open : null, 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: '762004e8bd6923114c75c638e6987f40e9bbf96d' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
|
|
23409
23461
|
}
|
|
23410
23462
|
get element() { return getElement(this); }
|
|
23411
23463
|
static get style() { return duetShowMoreCss; }
|
|
@@ -23931,17 +23983,17 @@ class DuetSlideout {
|
|
|
23931
23983
|
};
|
|
23932
23984
|
const topLevelOpenMenuBarTranslation = getLocaleString(this.topLevelOpenMenuBarLangObject);
|
|
23933
23985
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
23934
|
-
return (hAsync(Host, { key: '
|
|
23986
|
+
return (hAsync(Host, { key: 'caa2d4aaf502159fc88254ad81019fdc23d03077' }, hAsync("div", { key: 'd8608bf34db74e3ac3e652024f689db40af9284d', class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, this.modal && hAsync("duet-overlay", { key: '10f8e7f301624b2fcad5ce710cd75e6febcba1bd', visible: this.open, zIndex: "600" }), hAsync("div", { key: '5e841060cbb940a91266cb5e42d12a16bda8097b', 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: {
|
|
23935
23987
|
dialog: true,
|
|
23936
23988
|
hidden: !this.open,
|
|
23937
23989
|
modal: this.modal,
|
|
23938
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
23990
|
+
}, style: styles }, hAsync(FocusGuard, { key: '72270e11e6c5fcbb6f8c55456975c88adb9ba213', moveFocusTo: this.closeButton }), hAsync("div", { key: 'f88bb02a237361ab0bde75663eb99b659c1c6471', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: 'ad57422ab4f6f14528a487c4a7bf98568fa2ca35', class: "top" }, hAsync("button", { key: '23ff1871ebc24e6ee03e3bbeb4593c2099b545d6', ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", "aria-label": `${exitTranslation}`, type: "button", class: {
|
|
23939
23991
|
"slideout-close": true,
|
|
23940
23992
|
active: this.open,
|
|
23941
23993
|
"duet-theme-turva": this.theme === "turva",
|
|
23942
|
-
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: '
|
|
23994
|
+
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: '15cfafb84a258a1005eac6d28f49b838b7c1ed9f', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: '32b724d54613edd0646672ed0fc79c1ae414f4c1', class: "sticky-header" }, hAsync("slot", { key: 'e6750058c55d427d89eeecb7c99a0327ad3c72c2', name: "sticky-header" }))), hAsync("div", { key: 'ed3a11356f224d5d0305f13ed63db838d7ca6e00', id: "slot-container", role: this.accessibleRole, "aria-label": this.openPanel ? topLevelOpenMenuBarTranslation : null, class: {
|
|
23943
23995
|
items: true,
|
|
23944
|
-
} }, hAsync("slot", { key: '
|
|
23996
|
+
} }, hAsync("slot", { key: '3255a6c639d8c8c13044f72cd55fa3132ea99545' })), hAsync(FocusGuard, { key: '461421f76f88fd46a741033acb090e753aef8f1c', moveFocusTo: this.closeButton })))));
|
|
23945
23997
|
}
|
|
23946
23998
|
get element() { return getElement(this); }
|
|
23947
23999
|
static get watchers() { return {
|
|
@@ -24011,7 +24063,7 @@ class DuetSlideoutLang {
|
|
|
24011
24063
|
*/
|
|
24012
24064
|
render() {
|
|
24013
24065
|
const langTranslation = getLocaleString(this.chooseLangObject);
|
|
24014
|
-
return (hAsync(Host, { key: '
|
|
24066
|
+
return (hAsync(Host, { key: '2c744c1b9d32b518b879daf12ffafe26ba74c43b' }, hAsync("div", { key: 'ddb19f0b54c8a3f8680e76c8b3e565ff9c114e3b', class: "duet-slideout-lang", role: "group", "aria-label": langTranslation }, hAsync("duet-icon", { key: '09e40a1777dc671deffa188ccecfc9ce78089ecb', name: "navigation-language", margin: "none", color: "secondary", size: "small" }), hAsync("slot", { key: '6e35a0b19bab97a7810f90ddd99f399a60e9f3dc' }))));
|
|
24015
24067
|
}
|
|
24016
24068
|
get element() { return getElement(this); }
|
|
24017
24069
|
static get style() { return duetSlideoutLangCss; }
|
|
@@ -24101,12 +24153,12 @@ class DuetSlideoutLink {
|
|
|
24101
24153
|
* Always the last one in the class.
|
|
24102
24154
|
*/
|
|
24103
24155
|
render() {
|
|
24104
|
-
return (hAsync(Host, { key: '
|
|
24156
|
+
return (hAsync(Host, { key: 'ddd58c7a2dd10eb703260af1101339c6294f9d3a' }, hAsync("a", { key: 'e2be40572ff1c774d51cb6f8170c2e73b72948cf', target: !this.href ? null : this.external ? "_blank" : "_self", class: {
|
|
24105
24157
|
"duet-slideout-link": true,
|
|
24106
24158
|
"duet-theme-turva": this.theme === "turva",
|
|
24107
24159
|
active: this.active,
|
|
24108
24160
|
[this.size]: true,
|
|
24109
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": (this.href && getAccessibleLinkLabel(this)) || this.accessibleLabel, rel: this.external ? "noopener" : undefined }, this.icon && (hAsync("duet-icon", { key: '
|
|
24161
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": (this.href && getAccessibleLinkLabel(this)) || this.accessibleLabel, rel: this.external ? "noopener" : undefined }, this.icon && (hAsync("duet-icon", { key: 'c1f75fd56387b7811d990bc9bba9f7114f960fd5', name: this.icon, color: "secondary", size: this.menuItem ? "x-small" : "small", margin: "none" })), hAsync("div", { key: '6794b7cfe9a5e985e9123a1896b9b71292955930', class: "label" }, hAsync("span", { key: '02eef0aae26c07d79209c083769c83096aaaddf5' }, hAsync("span", { key: '869ba809178272b72d91830a2d0544e601bcc1f8', class: "label-container" }, hAsync("span", { key: '432f855593996fb8a470b68982662beb6cce16fd', class: "label-content" }, hAsync("slot", { key: '8be35ac79ca5ef94119a05b9f712c24e5c6760ab' })), this.external && (hAsync("duet-icon", { key: 'c80f5df7d3c816a6235150c3a89e9b685e3a1205', class: "external-icon", theme: this.theme, name: newWindowIcon.title, margin: "none", size: "auto", color: "currentColor" }))), hAsync("slot", { key: 'b685c8cc67e5e780536c46d949951516cdea46d1', name: "description" })), this.caret && (hAsync("duet-icon", { key: 'c53c92133453d2421b92f8ab7ae7741c71a686e5', name: "action-arrow-right", color: "secondary", size: "x-small", margin: "none" }))))));
|
|
24110
24162
|
}
|
|
24111
24163
|
get element() { return getElement(this); }
|
|
24112
24164
|
static get style() { return duetSlideoutLinkCss; }
|
|
@@ -24283,25 +24335,25 @@ class DuetSlideoutPanel {
|
|
|
24283
24335
|
};
|
|
24284
24336
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
24285
24337
|
const backTranslation = getLocaleString(this.backLangObject);
|
|
24286
|
-
return (hAsync(Host, { key: '
|
|
24338
|
+
return (hAsync(Host, { key: '8136756acde9cd9a5038e49c14049295ef2a50ee' }, hAsync("div", { key: 'bd5e9a275c149b6a52172d9349fefb6aef42282e', class: {
|
|
24287
24339
|
"duet-slideout-panel": true,
|
|
24288
24340
|
"duet-theme-turva": this.theme === "turva",
|
|
24289
24341
|
active: this.open,
|
|
24290
|
-
} }, this.badge && hAsync("duet-indicator", { key: '
|
|
24342
|
+
} }, this.badge && hAsync("duet-indicator", { key: '240033e4afa0a5e32dc708eceee5cd3c35fad16f', variation: "change" }), hAsync("button", { key: '2fcac219bc058445a3f744e99beb1ce8d1be7c27', 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: {
|
|
24291
24343
|
link: true,
|
|
24292
24344
|
active: this.active,
|
|
24293
24345
|
"duet-theme-turva": this.theme === "turva",
|
|
24294
|
-
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '
|
|
24346
|
+
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '9a7ea3d7682510b7a94c7e7bfff417dabfd833b0', class: "duet-slideout-icon" }, hAsync("duet-icon", { key: '29e67edcad14dd8f20f1a0a319bdbe3bba7d0495', name: this.icon, size: "small", margin: "none", color: "secondary" }))), hAsync("span", { key: '02d2e2107083535c6bf1d2b89c92681ed0ff5257', class: "label" }, hAsync("span", { key: 'ce6a1f30ee04677c584d98a228d0302f0b02c0f8', class: { "label-text": true, [this.labelSize]: true } }, hAsync("slot", { key: 'd7c645fa7153a803b3e63b3614ec65ff1cb775dd', name: "label" })), hAsync("duet-icon", { key: 'fc24304d004fc06d1f44d6611555af3aa57b91f0', class: "caret", name: "action-arrow-right", margin: "none", size: "x-small", color: "secondary" }))), hAsync("div", { key: '893f838b0476b45a35c5c5df009ea25be382748f', ref: element => (this.dialog = element), class: {
|
|
24295
24347
|
dialog: true,
|
|
24296
24348
|
hidden: !this.open,
|
|
24297
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
24349
|
+
}, style: styles }, hAsync(FocusGuard, { key: '75cd1ca13074e4edf114d7e016b30e77503f6766', moveFocusTo: this.closeButton }), hAsync("div", { key: '53f51c39c3e701be9b0fc9f402507a1315669820', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: '08f9a0174b2a902a46f6f8a722783740e2c03f01', class: "top" }, hAsync("button", { key: '70ec35736850d5740cf7940e1195202266ba64b3', ref: element => (this.closeButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-label": `${backTranslation}`, type: "button", class: {
|
|
24298
24350
|
back: true,
|
|
24299
24351
|
"duet-theme-turva": this.theme === "turva",
|
|
24300
|
-
}, onClick: this.onClick }, hAsync("duet-icon", { key: '
|
|
24352
|
+
}, onClick: this.onClick }, hAsync("duet-icon", { key: '8fd080b3ddde0fcc9edc8e3b65c71f038e9a641b', class: "caret", name: "action-arrow-left", margin: "none", size: "small", color: "secondary" })), hAsync("span", { key: '6c5bf9eee61b85d3b334a3b76f8568a91f3ede8a' }, this.label.innerHTML), hAsync("button", { key: '3de010c98fc4a25b160f0bb321652db95372b529', class: { close: true, "duet-theme-turva": this.theme === "turva" }, type: "button", onClick: this.onCloseClick, "aria-label": `${exitTranslation}` }, hAsync("duet-icon", { key: '3d98d30425ce462e8d14ffa07cb631c452bdbf36', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: '9714f189c3e45aa70201006fee01f0daab33acc8', class: "sticky-header" }, hAsync("slot", { key: 'bda41ebde4391bdce90a2d9c3c9c2b3f59a484b1', name: "sticky-header" }))), hAsync("div", { key: '7c97e9932da1cfbca0d045f7744d64a697c6849e', tabindex: "-1", role: "menu",
|
|
24301
24353
|
//TODO: slideout menu fades out, needs to be instant
|
|
24302
24354
|
id: "menu", "aria-labelledby": "button", class: {
|
|
24303
24355
|
items: true,
|
|
24304
|
-
} }, hAsync("slot", { key: '
|
|
24356
|
+
} }, hAsync("slot", { key: '760f770c9b134fddb61954aa9bda6d2f7c1ec3d5' })), hAsync(FocusGuard, { key: '0f423c9da48756f6e1f7be813e8a9e948e650293', moveFocusTo: this.closeButton })))));
|
|
24305
24357
|
}
|
|
24306
24358
|
get element() { return getElement(this); }
|
|
24307
24359
|
static get watchers() { return {
|
|
@@ -24382,18 +24434,18 @@ class DuetSlideoutPanelDropdown {
|
|
|
24382
24434
|
* Always the last one in the class.
|
|
24383
24435
|
*/
|
|
24384
24436
|
render() {
|
|
24385
|
-
return (hAsync(Host, { key: '
|
|
24437
|
+
return (hAsync(Host, { key: 'c07d09acdc3ae629d1ade84a8f38ba5a4400c93c' }, hAsync("div", { key: '5c460268ab843fd63034f39baaabb0217610742e', class: {
|
|
24386
24438
|
"duet-slideout-panel-dropdown": true,
|
|
24387
24439
|
"duet-theme-turva": this.theme === "turva",
|
|
24388
24440
|
active: this.open,
|
|
24389
|
-
} }, hAsync("button", { key: '
|
|
24441
|
+
} }, hAsync("button", { key: 'fda35d3ebe560638a7684ff895a1a07fae2795dc', 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: {
|
|
24390
24442
|
active: this.active,
|
|
24391
24443
|
"duet-theme-turva": this.theme === "turva",
|
|
24392
|
-
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: '
|
|
24444
|
+
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: 'adbef98fc7e1c01c4db93fc890adca55a968c3ed', name: this.icon, size: "small", margin: "none", color: "secondary" }), hAsync("span", { key: '9a9e035c35cfc2bd40ca504dfb755db6598072ab', class: "label" }, hAsync("slot", { key: '69b970d13d166d320f423480e93e721a8ca0791a', name: "label" }), hAsync("duet-icon", { key: '48e456eb714c1f276c30d1830c4335a2c78b7674', class: "caret", name: "action-arrow-down-small", margin: "none", size: "xx-small", color: "secondary" }))), hAsync("div", { key: 'bb3730e96c82aab35530c476c78880b73ac4c2c2', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
24393
24445
|
items: true,
|
|
24394
24446
|
hidden: !this.open,
|
|
24395
24447
|
"duet-theme-turva": this.theme === "turva",
|
|
24396
|
-
} }, hAsync("slot", { key: '
|
|
24448
|
+
} }, hAsync("slot", { key: '206ff67b3dab6d9e5b35814a26e572bca137b925' })))));
|
|
24397
24449
|
}
|
|
24398
24450
|
get element() { return getElement(this); }
|
|
24399
24451
|
static get style() { return duetSlideoutPanelDropdownCss; }
|
|
@@ -24437,7 +24489,7 @@ class DuetSpacer {
|
|
|
24437
24489
|
* Always the last one in the class.
|
|
24438
24490
|
*/
|
|
24439
24491
|
render() {
|
|
24440
|
-
return (hAsync(Host, { key: '
|
|
24492
|
+
return (hAsync(Host, { key: '7fc6e73749913f00710655bd9f3245417e7ea2d4', class: {
|
|
24441
24493
|
"duet-spacer": true,
|
|
24442
24494
|
"duet-spacer-xx-small": this.breakpoint === "xx-small",
|
|
24443
24495
|
"duet-spacer-x-small": this.breakpoint === "x-small",
|
|
@@ -24492,7 +24544,7 @@ class DuetSpinner {
|
|
|
24492
24544
|
*/
|
|
24493
24545
|
render() {
|
|
24494
24546
|
const color = !!this.color && this.color === "currentColor" ? "currentColor" : getColorByName(this.color, this.theme);
|
|
24495
|
-
return (hAsync(Host, { key: '
|
|
24547
|
+
return (hAsync(Host, { key: '8c58d59273d8cdf92c3e9bceea4cbdff5a5a4c59' }, hAsync("div", { key: 'f98223ba97758e4c0dbdb41aa0ad61100135e634', class: {
|
|
24496
24548
|
"duet-spinner": true,
|
|
24497
24549
|
[this.size]: true,
|
|
24498
24550
|
"duet-theme-turva": this.theme === "turva",
|
|
@@ -24598,10 +24650,10 @@ class DuetStatusIcon {
|
|
|
24598
24650
|
}
|
|
24599
24651
|
}
|
|
24600
24652
|
render() {
|
|
24601
|
-
return (hAsync(Host, { key: '
|
|
24653
|
+
return (hAsync(Host, { key: 'c53538070bb94c61a824cce9bf5065ce69ea989a', class: {
|
|
24602
24654
|
[`duet-status-icon-${this.getVariation()}`]: true,
|
|
24603
24655
|
"duet-strong-bg": this.strong,
|
|
24604
|
-
} }, hAsync("duet-icon", { key: '
|
|
24656
|
+
} }, hAsync("duet-icon", { key: 'ebd3f5b5c3ef995cb598ee4f9072891594e8c069', icon: this.getIcon(), size: this.size, margin: this.margin })));
|
|
24605
24657
|
}
|
|
24606
24658
|
static get cmpMeta() { return {
|
|
24607
24659
|
"$flags$": 265,
|
|
@@ -24722,13 +24774,13 @@ class DuetStep {
|
|
|
24722
24774
|
* Always the last one in the class.
|
|
24723
24775
|
*/
|
|
24724
24776
|
render() {
|
|
24725
|
-
return (hAsync("div", { key: '
|
|
24777
|
+
return (hAsync("div", { key: '05fe55382b606ac6290eac4c1d367be79867e1c0', class: {
|
|
24726
24778
|
"duet-step": true,
|
|
24727
24779
|
[`is-${this.state}`]: true,
|
|
24728
24780
|
"rounded-top": this.roundedTop,
|
|
24729
24781
|
"rounded-bottom": this.roundedBottom,
|
|
24730
24782
|
"duet-theme-turva": this.theme === "turva",
|
|
24731
|
-
} }, hAsync("div", { key: '
|
|
24783
|
+
} }, hAsync("div", { key: 'd91175b1d04f510980579ab816591f4fbe06443a', 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: '36fa6274fd3778ffdf06930c3e2bfec351f98deb', "aria-hidden": "true" }, hAsync("div", { key: '466172a0a1a89a812a3662dba416b698525bf90d', class: "duet-step-counter" }, this.renderStepCounter())), hAsync("duet-spacer", { key: '32c65b333bf51ecbfc5f07111ed48dcc42d38fcc', direction: "horizontal", size: "large", breakpoint: "small" }), hAsync("duet-spacer", { key: 'af1fcbed9aaf4ae897bbdb1bb5922539136ef824', direction: "horizontal", size: "medium", breakpoint: "x-small" }), hAsync("div", { key: '17f37ca23ca6d1f693a69e5ba6dfb1825278dca3' }, hAsync("duet-heading", { key: 'af962b921e329b246fb520dce97bf598584fc984', theme: this.theme, level: this.headingLevel, visualLevel: "h4", color: this.headingColor(), margin: "none" }, this.heading)), hAsync("duet-spacer", { key: 'f5b5926af5fc39dc2c4b9bf556ce4de203ad4a26', direction: "horizontal", size: "large" }), hAsync("div", { key: 'c61808d6e02af405b0d33d5c026bb75118031ada', class: "duet-step-heading-slot" }, hAsync("slot", { key: 'fcd25f6d9fdfd9791eb947942099fb1fbab6e2bc', name: "heading-content" }))), hAsync("div", { key: '15725f6b9d35795e4ab8cf7d1f1fd317983a5eed', class: "duet-step-content-wrapper" }, hAsync("div", { key: 'ddef3d8cb491c9712bd6be806e7d16059e2ae8e3', class: "duet-step-content", role: "region", "aria-labelledby": this.buttonId, id: this.contentId }, hAsync("slot", { key: 'b773ce9a9b621ada546d3bc6af85cd3b6271e662' })))));
|
|
24732
24784
|
}
|
|
24733
24785
|
get element() { return getElement(this); }
|
|
24734
24786
|
static get style() { return duetStepCss; }
|
|
@@ -24875,7 +24927,7 @@ class DuetStepper {
|
|
|
24875
24927
|
* Always the last one in the class.
|
|
24876
24928
|
*/
|
|
24877
24929
|
render() {
|
|
24878
|
-
return (hAsync(Host, { key: '
|
|
24930
|
+
return (hAsync(Host, { key: '84ea9dd11aea73c62494d4002383477935446fca', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: 'b86ccce71eb2f2ebda8642834800e4c2396c1e12', class: { "duet-stepper": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("duet-visually-hidden", { key: 'a50b805e73ee6d83464b8b14e6facaa48b2f50bf', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement()), hAsync("slot", { key: 'bc720b6fd6ba51b646f3e8222a5572017472bd5c' }))));
|
|
24879
24931
|
}
|
|
24880
24932
|
get element() { return getElement(this); }
|
|
24881
24933
|
static get watchers() { return {
|
|
@@ -25029,19 +25081,19 @@ class DuetSubmenuBar {
|
|
|
25029
25081
|
* Always the last one in the class.
|
|
25030
25082
|
*/
|
|
25031
25083
|
render() {
|
|
25032
|
-
return (hAsync(Host, { key: '
|
|
25084
|
+
return (hAsync(Host, { key: '5a7dfd7977d5260ecaa751065ffd668bccf7f734' }, hAsync("nav", { key: '8d374c6513e8ec3bb63948dffac4cd9b65eab3d9', class: {
|
|
25033
25085
|
"duet-submenu-bar": true,
|
|
25034
25086
|
"duet-theme-turva": this.theme === "turva",
|
|
25035
25087
|
hidden: this.hidden,
|
|
25036
|
-
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: '
|
|
25088
|
+
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: 'd72fd8118d008647c0fc1bafc797d7d7e9670676', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
25037
25089
|
active: this.open,
|
|
25038
|
-
}, onClick: this.onClick }, hAsync("span", { key: '
|
|
25090
|
+
}, onClick: this.onClick }, hAsync("span", { key: '7dbd3343077f3e63a20b441f0e6015358da502b4', class: "label" }, hAsync("slot", { key: 'a0a0ae66d22fd5737949ad3094661f172b6c0391', name: "label" }), hAsync("duet-icon", { key: '47c4c4e42e0a8ebd3565627cd0e1982457104ca3', theme: this.theme, class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" })))), hAsync("div", { key: '5986a2c225e9f40da81943d5daefc079756f2370', class: {
|
|
25039
25091
|
"menu-container": true,
|
|
25040
25092
|
hidden: !this.open,
|
|
25041
|
-
}, role: "presentation" }, hAsync("div", { key: '
|
|
25093
|
+
}, role: "presentation" }, hAsync("div", { key: 'd8afab7eb5149ac0bebeff39ab93d36d15c499fe', role: this.mobile ? "menu" : null, id: "menu", "aria-labelledby": this.mobile ? "button" : null, "aria-expanded": this.mobile ? (this.open ? "true" : "false") : null, class: {
|
|
25042
25094
|
items: true,
|
|
25043
25095
|
hidden: !this.open,
|
|
25044
|
-
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '
|
|
25096
|
+
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '83ca8fda96f8d9b05fb0ea84d0aa52dbb4183063', class: "list", role: this.mobile ? "presentation" : "list" }, hAsync("slot", { key: 'a71c59db97c47144dc7366c1adbd416d2ac6aae9' }), hAsync("div", { key: '026076d8b73e6af5d46a7f7367de6d4395e34519', class: "list-padding" }))), hAsync("duet-overlay", { key: 'd09747b12a70aefae2789f86380646779a1cc605', "keep-stacking-context": true, visible: this.open, "display-device": "not-large", transition: "immediate" })))));
|
|
25045
25097
|
}
|
|
25046
25098
|
get element() { return getElement(this); }
|
|
25047
25099
|
static get watchers() { return {
|
|
@@ -25173,18 +25225,18 @@ class DuetSubmenuBarDropdown {
|
|
|
25173
25225
|
* Always the last one in the class.
|
|
25174
25226
|
*/
|
|
25175
25227
|
render() {
|
|
25176
|
-
return (hAsync(Host, { key: '
|
|
25228
|
+
return (hAsync(Host, { key: 'cc7d79d1a2e5e6de18bd62fb408ec474400eff7b', role: "listitem" }, hAsync("div", { key: 'db0d71f4aa6a38e0e130bf2f069ac58c08d09055', class: {
|
|
25177
25229
|
"duet-submenu-bar-dropdown": true,
|
|
25178
25230
|
"duet-theme-turva": this.theme === "turva",
|
|
25179
25231
|
open: this.open,
|
|
25180
25232
|
active: this.active,
|
|
25181
|
-
} }, hAsync("button", { key: '
|
|
25233
|
+
} }, hAsync("button", { key: '8ba0bded589cc4040510538e86b311879ab78cf8', 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: {
|
|
25182
25234
|
open: this.open,
|
|
25183
25235
|
active: this.active,
|
|
25184
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
25236
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '479134abefc9407012dc7d960da64a2a00849859', class: "submenu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: '5d7eabf7611e552d4b0a4b4f45af47528f45ae6f', class: "label" }, hAsync("span", { key: '1067624e6d8997fe6d70ba84e2020160d547c98f', class: "label-text" }, hAsync("slot", { key: 'd1c5e91511f07355f95cdf0908476bb208e8356e', name: "label" })), hAsync("duet-icon", { key: 'ea41a4b8f9cd0e5307e74b517bf264b65eaf4a0f', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '7090489ee9527a38506ae8623fcd48b337ddd7a8', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
25185
25237
|
items: true,
|
|
25186
25238
|
hidden: !this.open,
|
|
25187
|
-
} }, hAsync("slot", { key: '
|
|
25239
|
+
} }, hAsync("slot", { key: '2d0d943f66b0238ed10f3c1ebcea5ab6bbceb301' })))));
|
|
25188
25240
|
}
|
|
25189
25241
|
get element() { return getElement(this); }
|
|
25190
25242
|
static get style() { return duetSubmenuBarDropdownCss; }
|
|
@@ -25253,12 +25305,12 @@ class DuetSubmenuBarDropdownLink {
|
|
|
25253
25305
|
* Always the last one in the class.
|
|
25254
25306
|
*/
|
|
25255
25307
|
render() {
|
|
25256
|
-
return (hAsync(Host, { key: '
|
|
25308
|
+
return (hAsync(Host, { key: '661c76d380b6989bfee3c31e1a0858cda9a873ce' }, hAsync("a", { key: '02cadfcabf30ae87b3d2c038841280afd52b763f', class: {
|
|
25257
25309
|
"duet-submenu-bar-dropdown-link": true,
|
|
25258
25310
|
"duet-theme-turva": this.theme === "turva",
|
|
25259
25311
|
highlight: this.highlight,
|
|
25260
25312
|
active: this.active,
|
|
25261
|
-
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '
|
|
25313
|
+
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '653820943c52d861da92a41cc0bed59e78969b80', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), hAsync("span", { key: '9e622d1fbbb2d0649da74a2a4945582eb9d72eb1', class: "label-container" }, hAsync("span", { key: '78634234c76e9d17e61ed0e7ad88c1035b340dc4', class: "label" }, hAsync("slot", { key: 'e8eec7289cffbb54eae6ddbebdb4d2a2ce6a634d' })), this.caret && hAsync("duet-icon", { key: 'c0d7df05f2f827dea7bf50ee93b49c6fca66c1e9', name: "action-arrow-right-small", size: "xxx-small", margin: "none" })), this.active && (hAsync("duet-icon", { key: '572888355bf490d4a5ddf095592e116e9d1c05ae', class: "active-check", name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
25262
25314
|
}
|
|
25263
25315
|
get element() { return getElement(this); }
|
|
25264
25316
|
static get style() { return duetSubmenuBarDropdownLinkCss; }
|
|
@@ -25354,7 +25406,7 @@ class DuetSubmenuBarItem {
|
|
|
25354
25406
|
render() {
|
|
25355
25407
|
const TagName = this.url ? "a" : "button";
|
|
25356
25408
|
const role = this.url ? "link" : "button";
|
|
25357
|
-
return (hAsync(Host, { key: '
|
|
25409
|
+
return (hAsync(Host, { key: '7ee97d49c78004d4ae845e940fb03e6e1ee75bd7', role: "listitem" }, hAsync(TagName, { key: 'dcc4541376b094f3eec8ce84465cdd2c77978bf8', 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: '74e7c4f39e27a8c9030d02bf33f50ded7220f588', class: "leading-icon", theme: this.theme, name: this.leadingIcon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'ab00e171bc83993c2580c25bbdfa3b77ea58ee89', class: "label" }, hAsync("span", { key: '0cb9766ca34e699f99c1ec699ce0a7d9be8fb0ad', class: "label-text" }, hAsync("slot", { key: '1e7f21511c1dbfb21780b7828397ddb3564c96e5' })), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: '698c894c3987de2c8c645234e25f600ecf33d8c2', class: {
|
|
25358
25410
|
"trailing-icon": !!this.trailingIcon,
|
|
25359
25411
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
25360
25412
|
"external-icon": !!this.external,
|
|
@@ -25426,7 +25478,7 @@ class DuetSubmenuBarLink {
|
|
|
25426
25478
|
* Always the last one in the class.
|
|
25427
25479
|
*/
|
|
25428
25480
|
render() {
|
|
25429
|
-
return (hAsync(Host, { key: '
|
|
25481
|
+
return (hAsync(Host, { key: 'fb8760077be9d8402a747e67fa3f5589c35b1586', role: "listitem" }, hAsync("a", { key: '5b77c9c31a719059b2df6183dd09f0fbb174dde4', 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: 'd47cacb2b609f6fb89d4955932aa460a13a70e0e', class: "submenu-bar-link-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("span", { key: '962bab30d15d749df6d2823daafba59488fc92df', class: "label" }, hAsync("slot", { key: '57541fbb4f923bbb1fdd6efbe05cddb72f63a147' })))));
|
|
25430
25482
|
}
|
|
25431
25483
|
get element() { return getElement(this); }
|
|
25432
25484
|
static get style() { return duetSubmenuBarLinkCss; }
|
|
@@ -25552,7 +25604,7 @@ class DuetTab {
|
|
|
25552
25604
|
* Always the last one in the class.
|
|
25553
25605
|
*/
|
|
25554
25606
|
render() {
|
|
25555
|
-
return (hAsync("div", { key: '
|
|
25607
|
+
return (hAsync("div", { key: '414606a9161016ce42050bb4d736547d611db39b', ref: element => {
|
|
25556
25608
|
if (!this.contentId) {
|
|
25557
25609
|
this.tabpanelElement = element;
|
|
25558
25610
|
}
|
|
@@ -25561,7 +25613,7 @@ class DuetTab {
|
|
|
25561
25613
|
"duet-tab": true,
|
|
25562
25614
|
selected: this.selected,
|
|
25563
25615
|
"has-content-id": !!this.contentId,
|
|
25564
|
-
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, hAsync("slot", { key: '
|
|
25616
|
+
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, hAsync("slot", { key: '743f5b9f0b1487dd9a7abbf01fb41b5bd9f0782c' })));
|
|
25565
25617
|
}
|
|
25566
25618
|
get element() { return getElement(this); }
|
|
25567
25619
|
static get watchers() { return {
|
|
@@ -25872,13 +25924,13 @@ class DuetTabGroup {
|
|
|
25872
25924
|
[largeBreakpoint]: ["default", "plain", "plain-scrolling"].includes(this.variation) ? true : false,
|
|
25873
25925
|
"duet-theme-turva": this.theme === "turva",
|
|
25874
25926
|
}, onClick: () => this.onTabSelect(index), onKeyDown: ev => this.handleKeyDown(ev) }, this.variation === "checked" ? (hAsync("div", { class: { "checked-tab-content": true, "stackable-checked-tab-content": this.tabs.length <= 3 } }, hAsync("div", { class: { "checked-tab-description": true, "stackable-description": this.tabs.length <= 3 } }, hAsync("p", null, element.label), hAsync("p", { class: { "tab-caption": true, selected: element.selected } }, element.caption)), hAsync("div", { class: { "stackable-checkmark": this.tabs.length <= 3 } }, hAsync("duet-checkmark", { theme: this.theme, checked: element.selected, type: "radio", "presentation-only": true, center: true })))) : (element.label), element.indicator && (hAsync("duet-indicator", { variation: element.indicator, "accessible-label": element.indicatorAccessibleLabel })))));
|
|
25875
|
-
return (hAsync("div", { key: '
|
|
25927
|
+
return (hAsync("div", { key: '45490c3fc4912de77e292ed0ed18c7146e7606d6', class: {
|
|
25876
25928
|
"duet-tab-group": true,
|
|
25877
25929
|
"duet-theme-turva": this.theme === "turva",
|
|
25878
25930
|
[variationClass]: true,
|
|
25879
25931
|
"duet-tab-plain-scrolling": this.variation === "plain-scrolling",
|
|
25880
25932
|
"duet-tab-group-scrolls": true,
|
|
25881
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
25933
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '46800b3d5e1faf4252a9f2eca77e5a35361c61b9', role: "tablist", class: {
|
|
25882
25934
|
"duet-m-0": this.margin === "none" || this.variation === "checked",
|
|
25883
25935
|
"duet-tab-group-tabs": true,
|
|
25884
25936
|
"duet-tab-group-hidden": this.tabs.length > 3 && !isSwipeScrollable,
|
|
@@ -25889,11 +25941,11 @@ class DuetTabGroup {
|
|
|
25889
25941
|
} }, this.variation === "checked" ? (buttons) : (hAsync("div", { class: {
|
|
25890
25942
|
"duet-tab-group-scrollable-wrapper": true,
|
|
25891
25943
|
"duet-tab-group-fill-space-wrapper": this.fillSpace && this.variation === "default",
|
|
25892
|
-
} }, this.fillSpace && !this.stretch && this.variation === "default" && (hAsync("div", { class: "duet-scrollable-stretch-overlay" }, hAsync("div", { class: "background" }), hAsync("div", { class: "border" }))), hAsync("duet-scrollable", { selected: this.selected, identifier: this.identifier, gap: ["default", "plain", "plain-scrolling"].includes(this.variation) ? "none" : "large", buttonPosition: this.variation === "default" ? "absolute" : "relative", center: this.isCentered() ? this.isCentered() : this.element.style.textAlign == "center", theme: this.theme, stretch: this.stretch }, buttons)))), hAsync("div", { key: '
|
|
25944
|
+
} }, this.fillSpace && !this.stretch && this.variation === "default" && (hAsync("div", { class: "duet-scrollable-stretch-overlay" }, hAsync("div", { class: "background" }), hAsync("div", { class: "border" }))), hAsync("duet-scrollable", { selected: this.selected, identifier: this.identifier, gap: ["default", "plain", "plain-scrolling"].includes(this.variation) ? "none" : "large", buttonPosition: this.variation === "default" ? "absolute" : "relative", center: this.isCentered() ? this.isCentered() : this.element.style.textAlign == "center", theme: this.theme, stretch: this.stretch }, buttons)))), hAsync("div", { key: 'f2b527640c52f4217c8dfd7c0b64849068b7eb8d', class: {
|
|
25893
25945
|
"duet-tab-group-content": true,
|
|
25894
25946
|
"duet-m-0": this.margin === "none",
|
|
25895
25947
|
"checked-group-content": this.variation === "checked",
|
|
25896
|
-
} }, hAsync("slot", { key: '
|
|
25948
|
+
} }, hAsync("slot", { key: '0949201345b7070db4ccf011171183115e518707' }))));
|
|
25897
25949
|
}
|
|
25898
25950
|
get element() { return getElement(this); }
|
|
25899
25951
|
static get style() { return duetTabGroupCss; }
|
|
@@ -26587,7 +26639,7 @@ class DuetTable {
|
|
|
26587
26639
|
}
|
|
26588
26640
|
}
|
|
26589
26641
|
render() {
|
|
26590
|
-
return (hAsync(Host, { key: '
|
|
26642
|
+
return (hAsync(Host, { key: 'fda81d8548a6180298f6e227832f9c7105a68736', class: {
|
|
26591
26643
|
[`duet-table-${this.variation}`]: true,
|
|
26592
26644
|
"duet-table-flattened": !this.matchesBreakpoint,
|
|
26593
26645
|
// sticky only valid when in regular table layout
|
|
@@ -26596,7 +26648,7 @@ class DuetTable {
|
|
|
26596
26648
|
"duet-m-0": this.margin === "none",
|
|
26597
26649
|
"duet-theme-turva": this.theme === "turva",
|
|
26598
26650
|
"duet-table-hide-head-visually": this.hideHeadVisually,
|
|
26599
|
-
} }, hAsync("slot", { key: '
|
|
26651
|
+
} }, hAsync("slot", { key: 'ac3ae69d0a1141e1feacd1bdf8fb3ba9e9e89080' })));
|
|
26600
26652
|
}
|
|
26601
26653
|
get element() { return getElement(this); }
|
|
26602
26654
|
static get watchers() { return {
|
|
@@ -26866,17 +26918,17 @@ class DuetTextarea {
|
|
|
26866
26918
|
*/
|
|
26867
26919
|
render() {
|
|
26868
26920
|
const identifier = this.identifier || this.textareaId;
|
|
26869
|
-
return (hAsync(Host, { key: '
|
|
26921
|
+
return (hAsync(Host, { key: '48030acc05f6f8415df8753151991eb3c83ae370', class: {
|
|
26870
26922
|
"duet-m-0": this.margin === "none",
|
|
26871
26923
|
"duet-has-counter": this.counter && !this.error,
|
|
26872
26924
|
"duet-expand": this.expand,
|
|
26873
|
-
} }, hAsync("div", { key: '
|
|
26925
|
+
} }, hAsync("div", { key: 'e8cac00d84bfbef67bb1f30037bb986905fc2d94', class: {
|
|
26874
26926
|
"duet-textarea-container": true,
|
|
26875
26927
|
"duet-theme-turva": this.theme === "turva",
|
|
26876
26928
|
"duet-label-hidden": this.labelHidden,
|
|
26877
26929
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
26878
26930
|
"has-error": !!this.error,
|
|
26879
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
26931
|
+
} }, hAsync(DuetInternalLabel, { key: '2f25117dc9dfce852022a09efb8a1b0c2117bb0c', 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: 'b5c614194a8699068a2b9c9156cc2a1955d8ae8c', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: '0a72de201a51d22df2604f3fa1a5fba77f9de897', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: 'fc1baf023f9c4b81131de5244bfb73c925ab265d', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), hAsync("div", { key: '3395893df5eacc499f082eade175e6bb0ce0512c', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: '6a71fad928ba647c069c05439e86a5e6eefd4e40', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), hAsync("textarea", { key: '28c7559a63890bb80d6503e3028ea430f24c739a', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, 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, rows: this.rows, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), hAsync("duet-grid", { key: '66ddcb0507cf754111843d5aa871c80ae8d7207e', alignment: "stretch" }, hAsync("duet-grid-item", { key: '79edd18dd19f6500b2c471e960c5fefc1b9492be', margin: "none", fill: true }, hAsync("div", { key: '38d0f75afeefcd4ba8afb2f87802a64885fbc0ea', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'a03fdd80d3a82221abbdeeff8c368d8208efd2b1' }, this.error))), hAsync("duet-grid-item", { key: 'deb6e76efba3354828dd21acd8a362c91c3d2e4f', margin: "none", class: "duet-character-count-caption" }, this.counter && hAsync(CharacterCount, { key: '282fe11b68a1bdd7c63b8071cfd37a3e33086bbc', theme: this.theme, value: this.value, maxlength: this.maxlength }))), this.counter && this.maxlength && (hAsync("duet-visually-hidden", { key: '06b481e31a4dad73a6538a943274f898410be541', id: this.characterCountId, class: "visually-hidden-counter" }, this.visuallyHiddenCounterText)))));
|
|
26880
26932
|
}
|
|
26881
26933
|
get element() { return getElement(this); }
|
|
26882
26934
|
static get watchers() { return {
|
|
@@ -26933,7 +26985,7 @@ class DuetTextarea {
|
|
|
26933
26985
|
}; }
|
|
26934
26986
|
}
|
|
26935
26987
|
|
|
26936
|
-
const duetToggleCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right: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}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-m-0){margin:0 !important}duet-
|
|
26988
|
+
const duetToggleCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right: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;cursor:pointer}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-m-0){margin:0 !important}:host(.duet-toggle-is-disabled){cursor:not-allowed}:host(.duet-toggle-is-loading){cursor:wait}.duet-side-label{display:flex;gap:12px;align-items:center}.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;border:0 !important;clip:rect(1px, 1px, 1px, 1px) !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::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{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-switch input:focus+.duet-slider,:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-switch input:focus+.duet-slider,:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.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-toggle-is-loading .duet-slider::before{transform:translateX(10px) !important}.duet-toggle-is-loading .duet-slider{cursor:wait}.duet-toggle-is-disabled .duet-slider{cursor:not-allowed}.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}duet-spinner{margin:2px;cursor:wait;transform:translate(-2px, -2px) scale(80%)}.duet-label-hidden .duet-internal-label{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important}:host(.duet-theme-turva2) .duet-switch input:checked+.duet-slider{background-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-switch input:checked+.duet-slider::before{box-shadow:-1px 0 2px #890e26;transform:translateX(20px)}:host(.duet-theme-turva2) .duet-switch input:disabled:checked+.duet-slider{background:#f38ba0}";
|
|
26937
26989
|
|
|
26938
26990
|
class DuetToggle {
|
|
26939
26991
|
constructor(hostRef) {
|
|
@@ -26964,6 +27016,10 @@ class DuetToggle {
|
|
|
26964
27016
|
* Aria description the button
|
|
26965
27017
|
*/
|
|
26966
27018
|
this.accessibleDescription = undefined;
|
|
27019
|
+
/**
|
|
27020
|
+
* Loading state of the toggle
|
|
27021
|
+
*/
|
|
27022
|
+
this.loading = false;
|
|
26967
27023
|
/**
|
|
26968
27024
|
* Label for the toggle.
|
|
26969
27025
|
*/
|
|
@@ -27001,6 +27057,9 @@ class DuetToggle {
|
|
|
27001
27057
|
this.checked = !this.checked;
|
|
27002
27058
|
};
|
|
27003
27059
|
}
|
|
27060
|
+
setLoadingState() {
|
|
27061
|
+
this.loadingComplete = !this.loading;
|
|
27062
|
+
}
|
|
27004
27063
|
checkedChanged(isChecked) {
|
|
27005
27064
|
this.duetChange.emit({
|
|
27006
27065
|
checked: isChecked,
|
|
@@ -27038,16 +27097,23 @@ class DuetToggle {
|
|
|
27038
27097
|
*/
|
|
27039
27098
|
render() {
|
|
27040
27099
|
const identifier = this.identifier || this.toggleId;
|
|
27041
|
-
return (hAsync(Host, { key: '
|
|
27100
|
+
return (hAsync(Host, { key: '12ad6e6c8bae45cd96993f311d30c6d02f9e694a', onClick: this.disabled || this.loading ? undefined : this.onClick, class: {
|
|
27101
|
+
"duet-m-0": this.margin === "none",
|
|
27102
|
+
"duet-toggle-is-disabled": this.disabled,
|
|
27103
|
+
"duet-toggle-is-loading": this.loading,
|
|
27104
|
+
} }, hAsync("div", { key: '0e6d8fff7a161badbca1e6ddd3f737a9e427f67b', class: {
|
|
27042
27105
|
"duet-toggle": true,
|
|
27043
27106
|
"duet-theme-turva": this.theme === "turva",
|
|
27044
27107
|
"duet-side-label": this.labelPosition !== "top",
|
|
27045
27108
|
"duet-reverse-label": this.labelPosition === "right",
|
|
27046
27109
|
"duet-label-hidden": this.labelHidden,
|
|
27047
|
-
|
|
27110
|
+
"duet-toggle-is-disabled": this.disabled,
|
|
27111
|
+
"duet-toggle-is-loading": this.loading,
|
|
27112
|
+
} }, hAsync(DuetInternalLabel, { key: '9332567db03213ffaa47ff809c83df430d5b1241', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), hAsync("label", { key: '2889a221df7d22b8186a4e2a292df66ea9796628', class: "duet-switch" }, hAsync("input", { key: 'ca4bbc240033d01dd7add7cb672b01bd3f0270fa', type: "checkbox", value: this.value, "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 || this.loading, ref: input => (this.nativeInput = input) }), hAsync("div", { key: '2b8e0241c308d29fbe2221339330435d9de10005', class: "duet-slider" }), this.loading && hAsync("duet-spinner", { key: 'eac8158c7199fba2c9e0d889a123d17602287078', color: "primary" }))), this.loading && (hAsync("duet-visually-hidden", { key: 'f17522d306a05c84cad96f4e578023e2474d0e75', "aria-live": "polite" }, this.accessibleLabelLoading || DuetStringsLoadingDefaults[getLanguage()])), this.loadingComplete && (hAsync("duet-visually-hidden", { key: '78095e04eab17679c9ef68ba25d84b027a4e89a8', "aria-live": "polite" }, this.accessibleLabelComplete || DuetStringsCompleteDefaults[getLanguage()]))));
|
|
27048
27113
|
}
|
|
27049
27114
|
get element() { return getElement(this); }
|
|
27050
27115
|
static get watchers() { return {
|
|
27116
|
+
"loading": ["setLoadingState"],
|
|
27051
27117
|
"checked": ["checkedChanged"]
|
|
27052
27118
|
}; }
|
|
27053
27119
|
static get style() { return duetToggleCss; }
|
|
@@ -27064,6 +27130,9 @@ class DuetToggle {
|
|
|
27064
27130
|
"accessibleDetails": [1, "accessible-details"],
|
|
27065
27131
|
"accessibleLabelledBy": [1, "accessible-labelled-by"],
|
|
27066
27132
|
"accessibleDescription": [1, "accessible-description"],
|
|
27133
|
+
"accessibleLabelLoading": [1, "accessible-label-loading"],
|
|
27134
|
+
"accessibleLabelComplete": [1, "accessible-label-complete"],
|
|
27135
|
+
"loading": [4],
|
|
27067
27136
|
"label": [1],
|
|
27068
27137
|
"labelHidden": [4, "label-hidden"],
|
|
27069
27138
|
"labelColor": [1025, "label-color"],
|
|
@@ -27076,6 +27145,7 @@ class DuetToggle {
|
|
|
27076
27145
|
"identifier": [1],
|
|
27077
27146
|
"name": [1],
|
|
27078
27147
|
"role": [1],
|
|
27148
|
+
"loadingComplete": [32],
|
|
27079
27149
|
"setFocus": [64]
|
|
27080
27150
|
},
|
|
27081
27151
|
"$listeners$": undefined,
|
|
@@ -27120,11 +27190,11 @@ class DuetToolbar {
|
|
|
27120
27190
|
: this.variation === "secondary"
|
|
27121
27191
|
? "secondary"
|
|
27122
27192
|
: "default";
|
|
27123
|
-
return (hAsync(Host, { key: '
|
|
27193
|
+
return (hAsync(Host, { key: 'c860be4ffbc7d94876629c2039b767516ae67069' }, hAsync("nav", { key: '93355e73bf35ed26d242a3e08140140f09d4cbcf', class: {
|
|
27124
27194
|
"duet-toolbar": true,
|
|
27125
27195
|
"duet-theme-turva": this.theme === "turva",
|
|
27126
27196
|
[variation]: true,
|
|
27127
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
27197
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: 'a50a6a5ec9b49d85edcbc10a275264e95a6ad93b', class: "container" }, hAsync("div", { key: 'd3187fa520b84678f46876238269b9e3f48aced4', class: "list", role: "list" }, hAsync("slot", { key: 'd0a092e1c45ac428b73d549b94ac932e3f4e871e', name: "left" })), hAsync("div", { key: '90c02bddb8937b6e48648a2b758211ab88ae4b00', class: "list", role: "list" }, hAsync("slot", { key: '8d66429a3b7a5d4ca4c3a570677c5fca14915108', name: "right" }))))));
|
|
27128
27198
|
}
|
|
27129
27199
|
get element() { return getElement(this); }
|
|
27130
27200
|
static get style() { return duetToolbarCss; }
|
|
@@ -27205,18 +27275,18 @@ class DuetToolbarDropdown {
|
|
|
27205
27275
|
itemsAlign = this.element.parentElement.getAttribute("slot") === "left" ? "right" : "left";
|
|
27206
27276
|
}
|
|
27207
27277
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
27208
|
-
return (hAsync(Host, { key: '
|
|
27278
|
+
return (hAsync(Host, { key: '22441fcb5b8138475d82dab2645eb4be7acc7683', role: "listitem" }, hAsync("div", { key: 'ddda27f016e058d656ebef316dbe040559949c88', class: {
|
|
27209
27279
|
"duet-toolbar-dropdown": true,
|
|
27210
27280
|
"duet-theme-turva": this.theme === "turva",
|
|
27211
27281
|
[itemsAlign]: true,
|
|
27212
27282
|
[variation]: true,
|
|
27213
|
-
} }, hAsync("button", { key: '
|
|
27283
|
+
} }, hAsync("button", { key: 'ecdfa65704fb809858dd451e2cabd81eb6362def', 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: {
|
|
27214
27284
|
active: this.active,
|
|
27215
27285
|
open: this.open,
|
|
27216
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
27286
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '094d722d70d59a46406f1e0eef3b23a2d2bfa58f', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("span", { key: '574c62534b8ee3098ed1bcd1a68bb8ac21712a1e', class: "label" }, hAsync("slot", { key: '702645793ce1d7acc23ab3d81ca340c34d68f05c', name: "label" }), hAsync("duet-icon", { key: '26e38570a74cd2d6997029053bb462449e4542e3', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '5e778fe7b21fea29300f437f18970c419fc312e5', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
27217
27287
|
items: true,
|
|
27218
27288
|
hidden: !this.open,
|
|
27219
|
-
} }, hAsync("slot", { key: '
|
|
27289
|
+
} }, hAsync("slot", { key: 'a8694deb60b5d8fb5b9131cec991471ef0020a83' })))));
|
|
27220
27290
|
}
|
|
27221
27291
|
get element() { return getElement(this); }
|
|
27222
27292
|
static get style() { return duetToolbarDropdownCss; }
|
|
@@ -27282,11 +27352,11 @@ class DuetToolbarDropdownLink {
|
|
|
27282
27352
|
* Always the last one in the class.
|
|
27283
27353
|
*/
|
|
27284
27354
|
render() {
|
|
27285
|
-
return (hAsync(Host, { key: '
|
|
27355
|
+
return (hAsync(Host, { key: '8e41d151e3313b5891dff17b78353776a85a8f07' }, hAsync("a", { key: '1dbfa3d41901af78023b0121f0b5d4699c88a190', class: {
|
|
27286
27356
|
"duet-toolbar-dropdown-link": true,
|
|
27287
27357
|
"duet-theme-turva": this.theme === "turva",
|
|
27288
27358
|
active: this.active,
|
|
27289
|
-
}, 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: '
|
|
27359
|
+
}, 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: 'e33514dc4358840cbc8520514b16e519a56458ea', name: this.icon, size: "x-small", margin: "none" }), hAsync("span", { key: '3c1420a627929ed17d384db1762e55918ca055f6', class: "label" }, hAsync("slot", { key: '73cd382bf5e2f19e5d1c6e2e64d0322021f19635' })), this.active && (hAsync("duet-icon", { key: '22214495161d78c4f620a84a03089f018d377400', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
27290
27360
|
}
|
|
27291
27361
|
get element() { return getElement(this); }
|
|
27292
27362
|
static get style() { return duetToolbarDropdownLinkCss; }
|
|
@@ -27389,17 +27459,17 @@ class DuetToolbarItem {
|
|
|
27389
27459
|
: this.variation === "secondary"
|
|
27390
27460
|
? "secondary"
|
|
27391
27461
|
: "default";
|
|
27392
|
-
return (hAsync(Host, { key: '
|
|
27462
|
+
return (hAsync(Host, { key: '82a17ce8483bcaa16bdef27b50238898b81a7549', role: "listitem" }, this.badge && hAsync("duet-indicator", { key: 'd1a27a07f28a95232cde24a20f05a0a2d7f61745', variation: "change" }), hAsync(TagName, { key: 'c2192a7a73d5f09fc1acf9d13c7f2f2d26af7def', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
27393
27463
|
"duet-toolbar-item": true,
|
|
27394
27464
|
"duet-theme-turva": this.theme === "turva",
|
|
27395
27465
|
active: this.active,
|
|
27396
27466
|
[variation]: true,
|
|
27397
|
-
}, 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: '
|
|
27467
|
+
}, 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: '00b85b5398cc6a21478840d79a11fa91270d74c0', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: '73ffe104fcc9af56100dbc8f863e207efb93a2aa', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && hAsync("div", { key: '4d185a66ab6fdf842f0d8c967fcb621fcd30e4d8', class: "duet-toolbar-badge" }))), hAsync("slot", { key: '9fc239303a5fdb7931d47ecbb57649f0650c2fa4' }), (this.trailingIcon || (this.url && this.external)) && (hAsync("div", { key: '4643254add55b63662d8c133c4c235110f82f2d7', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: 'af3c48ea2d30ddb9f7569626d49df896e6be8206', class: {
|
|
27398
27468
|
"trailing-icon": !!this.trailingIcon,
|
|
27399
27469
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
27400
27470
|
"external-icon": !!(this.url && this.external),
|
|
27401
27471
|
rotate: this.trailingIcon === "action-arrow-down-small" && this.accessibleExpanded,
|
|
27402
|
-
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && hAsync("div", { key: '
|
|
27472
|
+
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && hAsync("div", { key: '9b26ddf0fce82536ea49fec8fcfa2973ae732e84', class: "duet-toolbar-badge" }))))));
|
|
27403
27473
|
}
|
|
27404
27474
|
get element() { return getElement(this); }
|
|
27405
27475
|
static get style() { return duetToolbarItemCss; }
|
|
@@ -27466,12 +27536,12 @@ class DuetToolbarLink {
|
|
|
27466
27536
|
*/
|
|
27467
27537
|
render() {
|
|
27468
27538
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
27469
|
-
return (hAsync(Host, { key: '
|
|
27539
|
+
return (hAsync(Host, { key: '82d0a3759f48e1d3770e078ace177b7024958e6b', role: "listitem" }, hAsync("a", { key: '3865f0bcb98452a4b3f68e0242ceb7f0927dd4ad', class: {
|
|
27470
27540
|
"duet-toolbar-link": true,
|
|
27471
27541
|
"duet-theme-turva": this.theme === "turva",
|
|
27472
27542
|
active: this.active,
|
|
27473
27543
|
[variation]: true,
|
|
27474
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
27544
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '09e4f28e3bca743b155330a0df9400bf47c51f9c', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: '68c25000344101d59cd7102c51b072636137fd62' }))));
|
|
27475
27545
|
}
|
|
27476
27546
|
get element() { return getElement(this); }
|
|
27477
27547
|
static get style() { return duetToolbarLinkCss; }
|
|
@@ -27793,13 +27863,13 @@ class DuetTooltipButton {
|
|
|
27793
27863
|
* Always the last one in the class.
|
|
27794
27864
|
*/
|
|
27795
27865
|
render() {
|
|
27796
|
-
const visuallyHidden = hAsync("duet-visually-hidden", { key: '
|
|
27797
|
-
return (hAsync(Host, { key: '
|
|
27866
|
+
const visuallyHidden = hAsync("duet-visually-hidden", { key: 'f839514d25ea6f0be10ff17007bc5598c0674f61' }, this.accessibleLabel);
|
|
27867
|
+
return (hAsync(Host, { key: '1184ee05def105c059edfaabbb51f19a0ff25ad0' }, hAsync("button", { key: 'b31a9e19755ee98f2504e9aa6345f3e96cd2672e', ref: el => (this.buttonElement = el), "aria-controls": this.tooltipId, "aria-expanded": this.active ? "true" : "false", type: "button", class: {
|
|
27798
27868
|
"duet-tooltip-button": true,
|
|
27799
27869
|
"duet-tooltip-button-has-label": !!this.label,
|
|
27800
27870
|
"duet-theme-turva": this.theme === "turva",
|
|
27801
27871
|
"duet-tooltip-button-negative": this.negative,
|
|
27802
|
-
} }, hAsync("svg", { key: '
|
|
27872
|
+
} }, hAsync("svg", { key: '28d46d3d9005cc1a147a740f84ff0fba3b250b34', "aria-hidden": "true", role: "img", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '742e3a51a9b20bedea4334e3fcc1e2a3517e8342', 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: '5af82ccdef41b720dbf5fbf75c63793a6d15bc2b', cx: "11.625", cy: "7.125", r: "1.125" }), hAsync("path", { key: '30aec776b7b26838c552073174643773da4db6b8', 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, visuallyHidden)) : (visuallyHidden))));
|
|
27803
27873
|
}
|
|
27804
27874
|
get element() { return getElement(this); }
|
|
27805
27875
|
static get style() { return duetTooltipButtonCss; }
|
|
@@ -27864,14 +27934,14 @@ class DuetTooltipPopup {
|
|
|
27864
27934
|
this.contentEl.focus();
|
|
27865
27935
|
}
|
|
27866
27936
|
render() {
|
|
27867
|
-
return (hAsync(Host, { key: '
|
|
27937
|
+
return (hAsync(Host, { key: '3c8d28cef7325f7f9a37c42323e2703197a46b4c' }, hAsync("div", { key: '758460093b178a0bf27b146f95b079f25da46279', class: {
|
|
27868
27938
|
"duet-tooltip": true,
|
|
27869
27939
|
"duet-theme-turva": this.theme === "turva",
|
|
27870
27940
|
"duet-tooltip-active": this.active === true,
|
|
27871
|
-
} }, hAsync(FocusGuard, { key: '
|
|
27941
|
+
} }, hAsync(FocusGuard, { key: 'a380f2eae0bbaa67867cbaa7851e8fdb91e725e3', moveFocusTo: this.buttonEl }), hAsync("div", { key: '93547c2941da1e4bf5f11d4e927ab0a898faadb8', ref: element => (this.contentEl = element), class: {
|
|
27872
27942
|
"duet-tooltip-content-area": true,
|
|
27873
27943
|
"duet-theme-turva": this.theme === "turva",
|
|
27874
|
-
}, tabindex: -1, id: this.tooltipId }, hAsync("slot", { key: '
|
|
27944
|
+
}, tabindex: -1, id: this.tooltipId }, hAsync("slot", { key: 'e7d05bdad7849e242c18429e7694606d034931f5' })), hAsync("div", { key: 'b41cf5f06f034fad1455f5dd20cf40828be2535c', ref: element => (this.arrowEl = element), class: { arrow: true, [this.placement]: true }, style: this.arrowStyles }, hAsync("div", { key: '67b9bd2303a7c04a44d12c110b8a675b8c55f526', class: { "arrow-container": true, [this.placement]: true } })), hAsync("button", { key: '140b64666484c9cd541f10b4aa8a3c786dc0e13f', type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick, ref: el => (this.buttonEl = el) }, hAsync("duet-icon", { key: '7cdb146d795acaa65561d690e3286ce03e932684', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), hAsync("duet-visually-hidden", { key: 'bb523f67e60aa14b2f404a6e9ae8d6079360adf4' }, this.accessibleCloseLabel)), hAsync(FocusGuard, { key: 'c7dfc301f8b422a6722ceb11e1978306227bce52', moveFocusTo: this.contentEl }))));
|
|
27875
27945
|
}
|
|
27876
27946
|
get element() { return getElement(this); }
|
|
27877
27947
|
static get style() { return duetTooltipPopupCss; }
|
|
@@ -28020,14 +28090,14 @@ class DuetTray {
|
|
|
28020
28090
|
* Always the last one in the class.
|
|
28021
28091
|
*/
|
|
28022
28092
|
render() {
|
|
28023
|
-
return (hAsync("div", { key: '
|
|
28093
|
+
return (hAsync("div", { key: '9d5fc8800023764518de215eb610e8d45ab86e2b', class: {
|
|
28024
28094
|
"duet-tray": true,
|
|
28025
28095
|
"duet-tray-is-active": this.active,
|
|
28026
28096
|
"duet-tray-is-hidden": this.hiddenState,
|
|
28027
28097
|
"duet-tray-is-responsive": this.responsive,
|
|
28028
28098
|
"duet-theme-turva": this.theme === "turva",
|
|
28029
28099
|
"duet-tray-is-expandable": this.hasAdditionalContent,
|
|
28030
|
-
} }, hAsync("div", { key: '
|
|
28100
|
+
} }, hAsync("div", { key: 'd52a0e2f9d54d671a5840ac8039e6f7197021de6', class: "duet-tray-default-content", role: "status" }, hAsync("slot", { key: 'aae51b2629d00e82ff54d429dfa65d922391c017' })), this.hasAdditionalContent && (hAsync(Fragment, { key: 'f039ce601fc5bba7cc18da4b74ddae8531839c33' }, hAsync("button", { key: 'c9c444d39b541b567efdd63c629a39d891a83dda', "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: '3311dd9edddb29cd4eff813b50e7d9998934f6d5', name: "action-arrow-down", size: "small", color: "currentColor", margin: "none" }), hAsync("duet-visually-hidden", { key: '8758967c602734c8843f9a3bb31e4847a64d6257' }, this.expanded ? this.accessibleCloseLabel : this.accessibleOpenLabel)), hAsync("div", { key: '82a72aaa64ba7459397290078267177fff26d2be', id: this.expandableId, class: { "duet-tray-expandable": true, active: this.expanded } }, hAsync("div", { key: 'b7a7af3aeeeb43966f018fdd457388b0571ade0a', class: "duet-tray-expandable-content" }, hAsync("slot", { key: '527312ba646745f4a4deaad914cf9a1df640a9f2', name: "additional" })))))));
|
|
28031
28101
|
}
|
|
28032
28102
|
get element() { return getElement(this); }
|
|
28033
28103
|
static get style() { return duetTrayCss; }
|
|
@@ -29342,10 +29412,10 @@ class DuetUpload {
|
|
|
29342
29412
|
this.externalUploadButton.accessibleLabel = `${this.externalUploadButton.innerText}. ${caption}`;
|
|
29343
29413
|
}
|
|
29344
29414
|
// @ts-ignore
|
|
29345
|
-
return (hAsync(Host, { key: '
|
|
29415
|
+
return (hAsync(Host, { key: '027dcff01c8c5aef8445a0ed996aa5ad3e854b5e', class: { "duet-m-0": this.margin === "none" } }, hAsync("duet-fieldset", { key: '47ed56bd728ba7c100e5d68dd71f727b6e6b2a4d', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, hAsync("slot", { key: '63328b6f03549224f711b858cbb5e95665bbdef9', name: "header" }), !this.files.size && (hAsync("duet-empty-state", { key: '88492085957485c18c6ba40b767b87c89ff89fd2', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, hAsync("duet-paragraph", { key: '2cbe2581b60800f93dafe93e63c67d9ac826737c', margin: "none" }, this.fileListEmpty))), !!this.files.size && hAsync("slot", { key: '2bf2901abf2934c09cfeca8514ddfec09f48e82a', name: "fileheader" }), !!this.files.size && (hAsync("duet-upload-aria-status", { key: '2ac21565dbd47cfbf9954b03e4404c018871c85c', 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: '7eb58ca2a63237ee9d22f4ce8136c7bf4bd90f41', name: "filefooter" }), hAsync("slot", { key: '36bc35eb74e40102333469dadda4ac75a77ebd90', name: "uploadfooter" }), this.captionOnBottom && (hAsync("duet-caption", { key: 'c6465f63ef97ab6cb78af308da6c4c2528b911e0', margin: "none", size: "small" }, hAsync("div", { key: 'd189b328248cf862a920d1e542a18546b0b76b94', class: "upload-bottom-caption" }, caption))), hAsync("slot", { key: '87c92c6cac9b662315a12218e848a54b74094cec', name: "afterfooter" }), !this.hideButton && (hAsync(Fragment, { key: '89ba989869f8286e58f01704ef5339ab23106761' }, hAsync("duet-spacer", { key: '5c4dc126f197421e5c62edf556f9ef967df4cf89', size: "large" }), hAsync("duet-button", { key: '67c4e90266831664dbd7aae7fb1792460013cee3', 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 ||
|
|
29346
29416
|
this.bytesMaxReached ||
|
|
29347
29417
|
this.filesToUploadExceedsLimit ||
|
|
29348
|
-
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: '
|
|
29418
|
+
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: '2984ff475257e2ed17b964aa6113e6592809996a' }, hAsync("duet-spacer", { key: '3400a7c832dceb6f04c6a1efc9f69bc764004cc7', size: "medium" }), hAsync("duet-alert", { key: '22bb6896cec80f0468dd34bb2ff29d20ccb474a9', 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: 'f6871858e8e2e13839f9898cf340951616c81595', "aria-hidden": "true" }, hAsync("input", { key: 'faa902cc6425f28c15c89a0f95c1c7ce69ec8b6b', ref: input => {
|
|
29349
29419
|
this.nativeInput = input;
|
|
29350
29420
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
29351
29421
|
"duet-upload": true,
|
|
@@ -29687,7 +29757,7 @@ class DuetUploadAriaStatus {
|
|
|
29687
29757
|
* Always the last one in the class.
|
|
29688
29758
|
*/
|
|
29689
29759
|
render() {
|
|
29690
|
-
return (hAsync(Host, { key: '
|
|
29760
|
+
return (hAsync(Host, { key: '5cf7965d65a20a104085bde4788a4b7a044b7eed', role: "status", "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, hAsync("duet-visually-hidden", { key: 'fe28885c561bd1884856c733ae6f34f2b84873c7' }, this.statusMessage)));
|
|
29691
29761
|
}
|
|
29692
29762
|
get element() { return getElement(this); }
|
|
29693
29763
|
static get watchers() { return {
|
|
@@ -29763,7 +29833,7 @@ let DuetUploadItem$1 = class DuetUploadItem {
|
|
|
29763
29833
|
inheritGlobalTheme(this);
|
|
29764
29834
|
}
|
|
29765
29835
|
render() {
|
|
29766
|
-
return (hAsync(Host, { key: '
|
|
29836
|
+
return (hAsync(Host, { key: '70aa98d57c2361a70abfd51e859679df65f68027' }, hAsync("duet-visually-hidden", { key: '1c4899794b06709d24d5ff412141bf0e3714a8cb', "aria-hidden": "true" }, hAsync("input", { key: 'ec3827c684ffbb3a4299720ef07f4c8590d0d6ed', ref: input => {
|
|
29767
29837
|
this.nativeInput = input;
|
|
29768
29838
|
}, type: "file", class: {
|
|
29769
29839
|
"duet-upload": true,
|
|
@@ -29867,9 +29937,9 @@ class DuetUploadItem {
|
|
|
29867
29937
|
const { uid, meta, item } = this.data;
|
|
29868
29938
|
const Badges = meta && meta.badges ? (hAsync("span", null, meta.badges.map(badgeText => (hAsync("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
29869
29939
|
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${item.name}`;
|
|
29870
|
-
return (hAsync("div", { key: '
|
|
29940
|
+
return (hAsync("div", { key: '77bb336f85e5157b02e275554ec058cd783a6f58', class: {
|
|
29871
29941
|
"upload-item-row": true,
|
|
29872
|
-
} }, this.showCategory && (hAsync("div", { key: '
|
|
29942
|
+
} }, this.showCategory && (hAsync("div", { key: '1511526cfa7a8a3c7ffa039c761f0518c2de8f07', class: "item-categories" }, hAsync("duet-heading", { key: '8190b64ad02a4cf3ad5d50fba2dd29175c91f2cb', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.categoryLabel)), Badges)), hAsync("div", { key: '9a72d26ea9b6ac13f9f1edca9faab7c4ddd86474', class: { "item-name": true, "no-category": !this.showCategory } }, !!this.label && (hAsync("duet-heading", { key: '463a1611352d71956e7a4264ca9bd238333a71f9', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.label))), this.getFileNameLine()), hAsync("div", { key: 'cb864f51d8d622526be69d3a34c32ee0b8722312', class: "item-actions" }, this.actions.map(actionItem => {
|
|
29873
29943
|
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) }));
|
|
29874
29944
|
}))));
|
|
29875
29945
|
}
|
|
@@ -29909,7 +29979,7 @@ class DuetVisuallyHidden {
|
|
|
29909
29979
|
* Always the last one in the class.
|
|
29910
29980
|
*/
|
|
29911
29981
|
render() {
|
|
29912
|
-
return (hAsync(Host, { key: '
|
|
29982
|
+
return (hAsync(Host, { key: '24d3d4f9d5f7c38bb5f173d6fcb4ed6eb9c74510', class: "duet-visually-hidden" }, hAsync("slot", { key: 'f6acbedb718f5416d46b82450ff03d8a3416ffc5' })));
|
|
29913
29983
|
}
|
|
29914
29984
|
get element() { return getElement(this); }
|
|
29915
29985
|
static get style() { return duetVisuallyHiddenCss; }
|