@duetds/components 10.7.0 → 10.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +385 -237
- package/hydrate/index.mjs +385 -237
- package/lib/cjs/{a11y-utils-DmCjy3Q3.js → a11y-utils-DZ42p33K.js} +1 -1
- package/lib/cjs/{app-globals-D1tikFob.js → app-globals-DiBfle2l.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +6 -6
- package/lib/cjs/duet-banner.cjs.entry.js +4 -4
- 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 +10 -10
- package/lib/cjs/duet-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +3 -3
- package/lib/cjs/duet-choice_2.cjs.entry.js +16 -7
- package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
- package/lib/cjs/duet-combobox.cjs.entry.js +31 -14
- package/lib/cjs/duet-contact-card.cjs.entry.js +6 -6
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +17 -13
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +8 -8
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +5 -5
- package/lib/cjs/duet-icon.cjs.entry.js +5 -5
- package/lib/cjs/duet-indicator.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +33 -19
- package/lib/cjs/duet-layout.cjs.entry.js +2 -2
- package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
- package/lib/cjs/duet-modal.cjs.entry.js +12 -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 +8 -8
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +6 -6
- 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 +13 -5
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +22 -13
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
- 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 +9 -9
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart.cjs.entry.js +6 -6
- package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +11 -11
- package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-teaser.cjs.entry.js +6 -6
- package/lib/cjs/duet-textarea.cjs.entry.js +20 -11
- package/lib/cjs/duet-toggle.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +10 -10
- package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
- 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-Di-nO8ua.js → errorcodes.utils-MdC-C1Fa.js} +1 -1
- package/lib/cjs/{floating-ui.dom.browser.min-Cj0r5YDz.js → floating-ui.dom.browser.min-DaH62q3u.js} +83 -0
- package/lib/cjs/{focus-utils-uEO1pi2O.js → focus-utils-KpSp5WDp.js} +1 -1
- package/lib/cjs/{index-BGRMvA4R.js → index-BP4tQozH.js} +1 -1
- package/lib/cjs/{label-CwgdRt0Q.js → label-CjvqwyJR.js} +1 -1
- package/lib/cjs/{language-utils-CrB5zNlc.js → language-utils-BCJyRc_q.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{picture-utils-CZhgDlXJ.js → picture-utils-Dp6TiDHy.js} +1 -1
- package/lib/cjs/{slot-utils-4v5bqyQh.js → slot-utils-DvtoWHAA.js} +1 -1
- package/lib/cjs/{themeable-component-I4SEm6nQ.js → themeable-component-BXqwFhg-.js} +1 -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-button/duet-button.css +3 -0
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-card/duet-card.css +13 -9
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +12 -3
- package/lib/collection/components/duet-combobox/duet-combobox-select.js +1 -1
- package/lib/collection/components/duet-combobox/duet-combobox.js +29 -11
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-date-picker/date-picker-day.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +34 -7
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-input/duet-input.css +31 -0
- package/lib/collection/components/duet-input/duet-input.js +48 -14
- package/lib/collection/components/duet-link/duet-link.css +16 -0
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.css +8 -1
- package/lib/collection/components/duet-modal/duet-modal.js +6 -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.js +23 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +3 -3
- 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-phone-input/duet-phone-input.js +9 -1
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +13 -4
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +2 -0
- 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.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-teaser/duet-teaser.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.css +8 -0
- package/lib/collection/components/duet-textarea/duet-textarea.js +35 -6
- package/lib/collection/components/duet-toggle/duet-toggle.js +3 -3
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +6 -0
- 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/{p-4695398d.entry.js → p-01a6e993.entry.js} +1 -1
- package/lib/duet/{p-e3d91f53.entry.js → p-0476dabc.entry.js} +1 -1
- package/lib/duet/{p-05a6360b.entry.js → p-06e879d2.entry.js} +1 -1
- package/lib/duet/p-0f433f55.entry.js +4 -0
- package/lib/duet/{p-5fc88879.entry.js → p-126b3fd0.entry.js} +1 -1
- package/lib/duet/p-1566e2ec.entry.js +4 -0
- package/lib/duet/{p-a6dc8c7d.entry.js → p-1956dd8e.entry.js} +1 -1
- package/lib/duet/{p-8b9ffff4.entry.js → p-1db9e784.entry.js} +1 -1
- package/lib/duet/{p-b2f0905a.entry.js → p-1deed1aa.entry.js} +1 -1
- package/lib/duet/{p-f264879d.entry.js → p-27894857.entry.js} +1 -1
- package/lib/duet/{p-868647de.entry.js → p-2c2e7c9b.entry.js} +1 -1
- package/lib/duet/{p-6865e880.entry.js → p-2c465a03.entry.js} +1 -1
- package/lib/duet/p-2d780739.entry.js +4 -0
- package/lib/duet/{p-9987420d.entry.js → p-2f092aed.entry.js} +1 -1
- package/lib/duet/p-304af2e5.entry.js +4 -0
- package/lib/duet/{p-0df7094e.entry.js → p-34d16cbb.entry.js} +1 -1
- package/lib/duet/p-34ec25cb.entry.js +4 -0
- package/lib/duet/{p-430fad4e.entry.js → p-37d5a3c5.entry.js} +1 -1
- package/lib/duet/{p-e9a7215b.entry.js → p-3932a89b.entry.js} +1 -1
- package/lib/duet/{p-4bc7198d.entry.js → p-3c8d76e2.entry.js} +1 -1
- package/lib/duet/{p-9d41df85.entry.js → p-3d454072.entry.js} +1 -1
- package/lib/duet/{p-c5c63d0f.entry.js → p-3e66035d.entry.js} +1 -1
- package/lib/duet/p-471d4d75.entry.js +4 -0
- package/lib/duet/{p-ccaf5c28.entry.js → p-4ddf8009.entry.js} +1 -1
- package/lib/duet/{p-047af1e2.entry.js → p-5044e0ed.entry.js} +1 -1
- package/lib/duet/{p-c26e2123.entry.js → p-5103d5f4.entry.js} +1 -1
- package/lib/duet/{p-f959ca52.entry.js → p-51693a7c.entry.js} +1 -1
- package/lib/duet/{p-b58cfa18.entry.js → p-54bfe081.entry.js} +1 -1
- package/lib/duet/p-588e75cd.entry.js +4 -0
- package/lib/duet/{p-feae1702.entry.js → p-5d70e259.entry.js} +1 -1
- package/lib/duet/p-618cfeef.entry.js +4 -0
- package/lib/duet/{p-8ea85c31.entry.js → p-6449b1cc.entry.js} +1 -1
- package/lib/duet/{p-a944ffff.entry.js → p-6502a274.entry.js} +1 -1
- package/lib/duet/p-69a72f22.entry.js +4 -0
- package/lib/duet/{p-d78923f9.entry.js → p-6e4536e3.entry.js} +1 -1
- package/lib/duet/p-6ed52261.entry.js +4 -0
- package/lib/duet/{p-b4a1c719.entry.js → p-712adcec.entry.js} +1 -1
- package/lib/duet/{p-c49a72ad.entry.js → p-79afa773.entry.js} +1 -1
- package/lib/duet/p-7d61dc62.entry.js +4 -0
- package/lib/duet/p-7f9de2a6.entry.js +4 -0
- package/lib/duet/{p-f17438c7.entry.js → p-870d3c78.entry.js} +1 -1
- package/lib/duet/{p-017873ec.entry.js → p-88bf42dc.entry.js} +1 -1
- package/lib/duet/{p-2013545d.entry.js → p-88e65283.entry.js} +1 -1
- package/lib/duet/{p-8ad4bb4c.entry.js → p-8aaf283d.entry.js} +1 -1
- package/lib/duet/p-8d939074.entry.js +4 -0
- package/lib/duet/{p-84ed366e.entry.js → p-908fca79.entry.js} +1 -1
- package/lib/duet/{p-1358a396.entry.js → p-93080f2d.entry.js} +1 -1
- package/lib/duet/{p-b9e97305.entry.js → p-94d057ea.entry.js} +1 -1
- package/lib/duet/{p-8da66626.entry.js → p-99367980.entry.js} +1 -1
- package/lib/duet/{p-2f0f3a4a.entry.js → p-9a248faf.entry.js} +1 -1
- package/lib/duet/p-9d405b35.entry.js +4 -0
- package/lib/duet/{p-058fcc72.entry.js → p-9ed154f5.entry.js} +1 -1
- package/lib/duet/{p-DtprEjjN.js → p-B1GzOTNZ.js} +1 -1
- package/lib/duet/p-BQTM1aqo.js +4 -0
- package/lib/duet/{p-D4MpGrUR.js → p-CdcBxXLd.js} +1 -1
- package/lib/duet/p-CirNV9Vh.js +4 -0
- package/lib/duet/{p-B0XOGsB6.js → p-Cj9zQLn2.js} +1 -1
- package/lib/duet/p-D3ladndz.js +4 -0
- package/lib/duet/p-D4pJQwPW.js +4 -0
- package/lib/duet/p-Dbe-q7B5.js +4 -0
- package/lib/duet/{p-DSNAI2Lx.js → p-DmLE9-rw.js} +1 -1
- package/lib/duet/p-DoEOuTZj.js +4 -0
- package/lib/duet/{p-420df0aa.entry.js → p-a2514ad4.entry.js} +1 -1
- package/lib/duet/{p-a2f7ef35.entry.js → p-a4a3febe.entry.js} +1 -1
- package/lib/duet/p-a517cdce.entry.js +4 -0
- package/lib/duet/{p-0acf9bcf.entry.js → p-a70bb08d.entry.js} +1 -1
- package/lib/duet/{p-1498e4a8.entry.js → p-aa2c3e0a.entry.js} +1 -1
- package/lib/duet/{p-0c42cc61.entry.js → p-af7b2954.entry.js} +1 -1
- package/lib/duet/{p-1ec31f22.entry.js → p-b37d4985.entry.js} +1 -1
- package/lib/duet/{p-fb59f80d.entry.js → p-b4cf5f14.entry.js} +1 -1
- package/lib/duet/{p-ebe55a34.entry.js → p-b6233e75.entry.js} +1 -1
- package/lib/duet/{p-07d43c60.entry.js → p-b97098a6.entry.js} +1 -1
- package/lib/duet/{p-aebcf484.entry.js → p-bd0263e4.entry.js} +1 -1
- package/lib/duet/{p-69bcb076.entry.js → p-beaa4612.entry.js} +1 -1
- package/lib/duet/{p-a2106abd.entry.js → p-c15c8dd2.entry.js} +1 -1
- package/lib/duet/{p-b7351bfd.entry.js → p-c223cd3e.entry.js} +1 -1
- package/lib/duet/{p-b7bb7472.entry.js → p-c35ae5a0.entry.js} +1 -1
- package/lib/duet/{p-b5204ec2.entry.js → p-c435bb67.entry.js} +1 -1
- package/lib/duet/p-c6e3723f.entry.js +4 -0
- package/lib/duet/{p-a62e6d8d.entry.js → p-c7b32952.entry.js} +1 -1
- package/lib/duet/p-c95669be.entry.js +4 -0
- package/lib/duet/{p-9dee0205.entry.js → p-c987a644.entry.js} +1 -1
- package/lib/duet/p-c9b8c2ba.entry.js +4 -0
- package/lib/duet/{p-3ce04abc.entry.js → p-c9bdf927.entry.js} +1 -1
- package/lib/duet/{p-b3a7ef62.entry.js → p-cdf0fb4c.entry.js} +1 -1
- package/lib/duet/p-d069edf1.entry.js +4 -0
- package/lib/duet/p-ddafe27d.entry.js +4 -0
- package/lib/duet/{p-fb0f6212.entry.js → p-dfdec452.entry.js} +1 -1
- package/lib/duet/{p-f89da74c.entry.js → p-e0f729ad.entry.js} +1 -1
- package/lib/duet/{p-bef7eed7.entry.js → p-e32af858.entry.js} +1 -1
- package/lib/duet/{p-68a9ffb5.entry.js → p-e353daaf.entry.js} +1 -1
- package/lib/duet/p-e5dbac7a.entry.js +4 -0
- package/lib/duet/{p-f647f09e.entry.js → p-ec2dcb1b.entry.js} +1 -1
- package/lib/duet/{p-0ab559fb.entry.js → p-ed7fbc44.entry.js} +1 -1
- package/lib/duet/{p-76e2c659.entry.js → p-ef6ce9dc.entry.js} +1 -1
- package/lib/duet/{p-2b17c517.entry.js → p-fcb9c0db.entry.js} +1 -1
- package/lib/duet/{p-e78af675.entry.js → p-fe821e46.entry.js} +1 -1
- package/lib/duet/p-qboSQpUe.js +4 -0
- package/lib/esm/{a11y-utils-DZqe1lDK.js → a11y-utils-DbDY4hy4.js} +1 -1
- package/lib/esm/{app-globals-Byl9AdI1.js → app-globals-COfbcvxE.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +6 -6
- package/lib/esm/duet-banner.entry.js +4 -4
- 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 +10 -10
- package/lib/esm/duet-card.entry.js +5 -5
- package/lib/esm/duet-checkbox.entry.js +3 -3
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +3 -3
- package/lib/esm/duet-choice_2.entry.js +16 -7
- package/lib/esm/duet-collapsible.entry.js +3 -3
- package/lib/esm/duet-combobox.entry.js +31 -14
- package/lib/esm/duet-contact-card.entry.js +6 -6
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +17 -13
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +8 -8
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +4 -4
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +5 -5
- package/lib/esm/duet-icon.entry.js +5 -5
- package/lib/esm/duet-indicator.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +33 -19
- package/lib/esm/duet-layout.entry.js +2 -2
- package/lib/esm/duet-list_2.entry.js +4 -4
- package/lib/esm/duet-menu-bar-button.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-menu-bar-item.entry.js +7 -7
- package/lib/esm/duet-menu-bar-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar.entry.js +3 -3
- package/lib/esm/duet-modal.entry.js +12 -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 +8 -8
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +6 -6
- 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 +13 -5
- package/lib/esm/duet-popup-menu_2.entry.js +22 -13
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +6 -6
- 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 +9 -9
- package/lib/esm/duet-shaped-image.entry.js +4 -4
- package/lib/esm/duet-share-chart-item.entry.js +2 -2
- package/lib/esm/duet-share-chart.entry.js +6 -6
- package/lib/esm/duet-show-more.entry.js +5 -5
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +7 -7
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +11 -11
- package/lib/esm/duet-slideout.entry.js +10 -10
- package/lib/esm/duet-status-icon.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +7 -7
- package/lib/esm/duet-teaser.entry.js +6 -6
- package/lib/esm/duet-textarea.entry.js +20 -11
- package/lib/esm/duet-toggle.entry.js +8 -8
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +8 -8
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +10 -10
- package/lib/esm/duet-tooltip.entry.js +5 -5
- 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-KA3z1KuW.js → errorcodes.utils-0XnfYFAn.js} +1 -1
- package/lib/esm/{floating-ui.dom.browser.min-B_NkY9T0.js → floating-ui.dom.browser.min-BQTM1aqo.js} +83 -1
- package/lib/esm/{focus-utils-id9x3opi.js → focus-utils-BwoMMpkj.js} +1 -1
- package/lib/esm/{index-D4MpGrUR.js → index-CdcBxXLd.js} +1 -1
- package/lib/esm/{label-Caev3m-F.js → label-D835wXCb.js} +1 -1
- package/lib/esm/{language-utils-DTyUbpD-.js → language-utils-C-lpMyP9.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{picture-utils-4PMNZDR2.js → picture-utils-Cl2qK3GJ.js} +1 -1
- package/lib/esm/{slot-utils-BhEk4zKY.js → slot-utils-BSS0Em_Z.js} +1 -1
- package/lib/esm/{themeable-component-B_d7Klmd.js → themeable-component-DQtSOD4i.js} +1 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +2 -0
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +5 -1
- package/lib/types/components/duet-input/duet-input.d.ts +11 -1
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +4 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +1 -0
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +8 -1
- package/lib/types/components.d.ts +48 -10
- package/package.json +5 -5
- package/lib/duet/p-05b5ef84.entry.js +0 -4
- package/lib/duet/p-10baba94.entry.js +0 -4
- package/lib/duet/p-16d5dd2c.entry.js +0 -4
- package/lib/duet/p-2265c46a.entry.js +0 -4
- package/lib/duet/p-2394b3cd.entry.js +0 -4
- package/lib/duet/p-453001ea.entry.js +0 -4
- package/lib/duet/p-4e028274.entry.js +0 -4
- package/lib/duet/p-5be103d0.entry.js +0 -4
- package/lib/duet/p-5e5b6dc7.entry.js +0 -4
- package/lib/duet/p-71da8fbe.entry.js +0 -4
- package/lib/duet/p-7f5387dd.entry.js +0 -4
- package/lib/duet/p-940a87e7.entry.js +0 -4
- package/lib/duet/p-99550717.entry.js +0 -4
- package/lib/duet/p-B44ykle6.js +0 -4
- package/lib/duet/p-B5SMAn1G.js +0 -4
- package/lib/duet/p-BAiGBGTO.js +0 -4
- package/lib/duet/p-BWz_ChlU.js +0 -4
- package/lib/duet/p-B_NkY9T0.js +0 -4
- package/lib/duet/p-Bnup2-sN.js +0 -4
- package/lib/duet/p-C6rGA5IU.js +0 -4
- package/lib/duet/p-a2a2f775.entry.js +0 -4
- package/lib/duet/p-b69946d4.entry.js +0 -4
- package/lib/duet/p-bb7fa0cf.entry.js +0 -4
- package/lib/duet/p-bffae8f6.entry.js +0 -4
- package/lib/duet/p-c9a12663.entry.js +0 -4
- package/lib/duet/p-d8383f1a.entry.js +0 -4
- package/lib/duet/p-ef340dc6.entry.js +0 -4
- package/lib/duet/p-f61ebeb1.entry.js +0 -4
package/hydrate/index.mjs
CHANGED
|
@@ -5270,13 +5270,13 @@ class DuetBadge {
|
|
|
5270
5270
|
*/
|
|
5271
5271
|
render() {
|
|
5272
5272
|
const backgroundClass = `background-${this.background}`;
|
|
5273
|
-
return (hAsync(Host, { key: '
|
|
5273
|
+
return (hAsync(Host, { key: '1963c91d66ae23fdb441d2dce1a84f073bcdf7dc', class: { "duet-m-0": this.margin === "none" } }, hAsync("span", { key: 'b7e28ae61de88316c3d7731611b97826205a66b8', class: {
|
|
5274
5274
|
"duet-badge": true,
|
|
5275
5275
|
[this.variation]: true,
|
|
5276
5276
|
[backgroundClass]: true,
|
|
5277
5277
|
"has-tooltip": !!this.tooltip || this.hasTooltipSlot,
|
|
5278
5278
|
"duet-theme-turva": this.theme === "turva",
|
|
5279
|
-
} }, hAsync("duet-visually-hidden", { key: '
|
|
5279
|
+
} }, hAsync("duet-visually-hidden", { key: '4fe8e2e72cd4fa1081b9bad8c96997cfb835891e' }, this.getVariationLabel()), hAsync("slot", { key: '399d4132158cef2c65e9646eb62d8c345f6047f9' }), (this.tooltip || this.hasTooltipSlot) && (hAsync("span", { key: '1e908df23daa2a69ac125d56f9b25662e3fb308e', class: "tooltip-wrap" }, !this.hasTooltipSlot && (hAsync("duet-tooltip", { key: 'e4bc5393384f5cc5932a2e222336dc2e7ddc6573', "accessible-about-label": this.getBadgeText(), badgeElement: this.element }, this.tooltip)), hAsync("slot", { key: '452acb4e7b7d7e90e7414efcf4cbf3ed7937225c', name: "tooltip" }))))));
|
|
5280
5280
|
}
|
|
5281
5281
|
get element() { return getElement(this); }
|
|
5282
5282
|
static get style() { return duetBadgeCss; }
|
|
@@ -5540,15 +5540,15 @@ class DuetBreadcrumb {
|
|
|
5540
5540
|
*/
|
|
5541
5541
|
render() {
|
|
5542
5542
|
const Tag = this.href ? "a" : "span";
|
|
5543
|
-
return (hAsync(Host, { key: '
|
|
5543
|
+
return (hAsync(Host, { key: '458e4f048570629b3f8002588b750757021e0bbd', role: "listitem" }, hAsync("div", { key: '4fade87714b80818fda47fbfb3789b0f8b27f489', class: "container" }, this.icon === "arrow-right-small-icon" && (hAsync("duet-icon", { key: '9269d8c80d836f44019a394e8a26e878fced07f2', class: "duet-breadrumbs-arrow", size: "auto", icon: arrowRightSmallIcon.svg, margin: "none", color: "currentColor" })), hAsync(Tag, { key: '23772d6dae87c75499adb847dd4a49acb4ffabff', class: {
|
|
5544
5544
|
"duet-breadcrumb": true,
|
|
5545
5545
|
"duet-theme-turva": this.theme === "turva",
|
|
5546
5546
|
"icon-only": this.icon && !this.hasSlottedContent,
|
|
5547
5547
|
}, href: this.href || undefined, "aria-label": this.accessibleLabel || this.element.textContent, "aria-current": this.href ? undefined : "page" }, this.icon !== "arrow-right-small-icon" &&
|
|
5548
5548
|
this.icon && [
|
|
5549
|
-
hAsync("duet-icon", { key: '
|
|
5550
|
-
this.hasSlottedContent && hAsync("duet-spacer", { key: '
|
|
5551
|
-
], hAsync("slot", { key: '
|
|
5549
|
+
hAsync("duet-icon", { key: '5d413bae291a7d10dc2a54b9b0389128defc9e82', size: this.iconSize, name: this.icon, margin: "none", color: "currentColor" }),
|
|
5550
|
+
this.hasSlottedContent && hAsync("duet-spacer", { key: '9fef8271d98fa98c6a31623a937156413718f37c', size: "x-small", direction: "horizontal" }),
|
|
5551
|
+
], hAsync("slot", { key: '47df258e2b4f9bb7d75f4869abd16c8ed84e8550' })))));
|
|
5552
5552
|
}
|
|
5553
5553
|
get element() { return getElement(this); }
|
|
5554
5554
|
static get style() { return duetBreadcrumbCss; }
|
|
@@ -5616,11 +5616,11 @@ class DuetBreadcrumbs {
|
|
|
5616
5616
|
*/
|
|
5617
5617
|
render() {
|
|
5618
5618
|
const color = getColorByName(this.color);
|
|
5619
|
-
return (hAsync(Host, { key: '
|
|
5619
|
+
return (hAsync(Host, { key: '4858d49a29bb34e845436ec070f27e75a6fbe504' }, hAsync("nav", { key: 'fdf5c15b2ee7adcbf8e4b0c230735f8d26ccd83f', "aria-label": this.breadcrumbsAriaLabel, class: {
|
|
5620
5620
|
"duet-breadcrumbs": true,
|
|
5621
5621
|
"duet-theme-turva": this.theme === "turva",
|
|
5622
5622
|
[this.variation]: true,
|
|
5623
|
-
} }, hAsync("div", { key: '
|
|
5623
|
+
} }, hAsync("div", { key: '3235e10bb08008d3b3854f888bf3e4b934aed9e6', class: "container" }, hAsync("div", { key: '60d548db832a4eca47caf48789d5082a7100b5ba', role: "list", class: "list", style: { color } }, hAsync("slot", { key: 'd8170a022b3c9f2e737a29c353a0d2070f752a9c' })), hAsync("div", { key: 'c76631c4b488b8f3ba0007de6c4a62aaf7abc4c7', class: "bottom-border bottom-border--container" })), hAsync("div", { key: '1ca349ec39f209d18d6713f1a127932d4c6d08c8', class: "bottom-border bottom-border--nav" }))));
|
|
5624
5624
|
}
|
|
5625
5625
|
get element() { return getElement(this); }
|
|
5626
5626
|
static get style() { return duetBreadcrumbsCss; }
|
|
@@ -5639,7 +5639,7 @@ class DuetBreadcrumbs {
|
|
|
5639
5639
|
}; }
|
|
5640
5640
|
}
|
|
5641
5641
|
|
|
5642
|
-
const duetButtonCss = "*,*::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;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;font-size:0;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}@media (max-width: 35.9375em){:host{width:100%}}:host(.square){margin-right:12px !important}:host(.square):last-child,:host(.square):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square):last-of-type:not(:last-child){margin-right:12px !important}:host(.input-button){z-index:250}:host(.duet-small),:host(.duet-x-small){margin-right:4px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type,:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:4px !important}@media (max-width: 35.9375em){:host(.duet-small),:host(.duet-x-small){width:auto}}:host(.duet-x-small){margin-right:2px !important}:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:2px !important}:host(.square.duet-small),:host(.square.duet-x-small){margin-right:8px !important}:host(.square.duet-small):last-child,:host(.square.duet-small):last-of-type,:host(.square.duet-x-small):last-child,:host(.square.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.square.duet-x-small):last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;display:block;width:100%}.duet-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;align-items:center;width:100%;min-width:8rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.1;color:rgb(0, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:1px;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, padding 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-button:focus,.duet-button:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-button.duet-button-size-medium{height:50px;padding-right:30px;padding-left:30px;font-size:1rem;border-radius:25px}.duet-button.duet-button-size-medium.square{border-radius:12.5px}.duet-button.duet-button-size-medium.icon-left{padding-left:24px}.duet-button.duet-button-size-medium.icon-right{padding-right:24px}.duet-button.duet-button-size-small{height:40px;padding-right:20px;padding-left:20px;font-size:0.875rem;border-radius:20px}.duet-button.duet-button-size-small.square{border-radius:10px}.duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-button.duet-button-size-x-small{height:32px;padding-right:12px;padding-left:12px;font-size:0.75rem;border-radius:8px}.duet-button.duet-button-size-x-small.icon-left{padding-left:10px}.duet-button.duet-button-size-x-small.icon-right{padding-right:10px}.duet-button.plain.duet-p-0{height:auto}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){min-width:48px}.duet-button.duet-button-is-small:not(.duet-button-icon-only).plain{padding-right:0 !important;padding-left:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).duet-p-0{padding:0 !important}.duet-button .duet-button-contents{position:relative;display:flex;gap:10px;align-items:center;margin:0 auto;pointer-events:none}.duet-button .duet-button-contents.icon-right{flex-direction:row-reverse}.duet-button .duet-button-contents .duet-button-contents-slot{position:relative;top:0}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{display:flex;align-items:center}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{background:rgb(255, 255, 255);border-color:rgb(181, 198, 208)}.duet-button.default:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.primary,.duet-button.input-button-primary,.duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.primary:hover,.duet-button.input-button-primary:hover,.duet-button.input-button-left-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-left-secondary,.duet-button.input-button-embedded{color:rgb(8, 42, 77) !important;background:transparent;border-color:rgb(8, 42, 77)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-left-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179);outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-button.secondary:hover,.duet-button.secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-button.input-button-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-button.input-button-left-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-embedded:hover,.duet-button.input-button-embedded:hover.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-left-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(212, 223, 229) !important;border-color:rgb(255, 255, 255)}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.input-button{height:auto}.duet-button.negative{color:rgb(8, 42, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.duet-button-negative:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(255, 255, 255, 0.8)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-button.destructive-primary:hover{background:#ab1642;border-color:#ab1642;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-button.plain.duet-p-0 .duet-button-contents{height:auto}.duet-button.plain[disabled],.duet-button.plain[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-button.plain:hover{color:rgb(0, 75, 129) !important;background:transparent !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-button.plain.duet-button-negative:hover{color:rgba(255, 255, 255, 0.8) !important}.duet-button.plain.duet-button-icon-only:focus{outline-offset:1px}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded,.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents,.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-secondary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-embedded .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-secondary .duet-button-contents.icon-right{padding:0 16px}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-top-right-radius:4px !important;border-bottom-right-radius:4px !important;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{border-top-left-radius:4px !important;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px !important}.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-left-secondary{border-color:rgb(127, 150, 165)}.duet-button.square{width:52px;min-width:auto !important;padding:0 !important;font-size:1rem;border-color:rgb(181, 198, 208);border-width:1px}.duet-button.square.duet-button-size-small{width:42px;font-size:0.875rem}.duet-button.square.duet-button-size-x-small{width:34px;font-size:0.875rem}.duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.square:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.square .duet-button-contents{gap:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;outline:none !important;outline-color:rgb(212, 223, 229) !important;outline-color:rgb(212, 223, 229) !important;background:rgb(212, 223, 229) !important;border-color:rgb(212, 223, 229) !important;box-shadow:none !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}.duet-theme-turva .duet-button{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(230, 23, 64) !important;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium{padding-right:24px;padding-left:24px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-left{padding-left:14px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-right{padding-right:14px}.duet-theme-turva .duet-button.duet-button-size-small{padding-right:18px;padding-left:18px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-theme-turva .duet-button.default{color:rgb(230, 23, 64) !important;border-color:rgb(178, 194, 205)}.duet-theme-turva .duet-button.default:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary,.duet-theme-turva .duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover,.duet-theme-turva .duet-button.input-button-left-primary:hover{background:rgb(140, 0, 30);border-color:rgb(140, 0, 30)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-left-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 42, 59) !important;border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.duet-button.input-button-primary,.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-bottom-left-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-left-primary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-top-right-radius:0;border-bottom-right-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-button.negative{color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-button.negative:hover{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#ab1642}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-theme-turva .duet-button.plain{color:rgb(230, 23, 64) !important;background:transparent;border-color:transparent}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(140, 0, 30) !important}.duet-theme-turva .duet-button.plain[disabled],.duet-theme-turva .duet-button.plain[disabled]:hover{color:rgb(95, 122, 143) !important;cursor:not-allowed;background:transparent !important;border-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.square{border-color:rgb(212, 221, 226)}.duet-theme-turva .duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.square:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(120, 145, 164) !important;cursor:not-allowed;outline-color:rgb(212, 221, 226) !important;background:rgb(212, 221, 226) !important;border-color:rgb(212, 221, 226) !important}.duet-theme-turva .duet-button-is-loading.default{color:rgb(230, 23, 64)}";
|
|
5642
|
+
const duetButtonCss = "*,*::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;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;font-size:0;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}@media (max-width: 35.9375em){:host{width:100%}}:host(.square){margin-right:12px !important}:host(.square):last-child,:host(.square):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square):last-of-type:not(:last-child){margin-right:12px !important}:host(.input-button){z-index:250}:host(.duet-small),:host(.duet-x-small){margin-right:4px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type,:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:4px !important}@media (max-width: 35.9375em){:host(.duet-small),:host(.duet-x-small){width:auto}}:host(.duet-x-small){margin-right:2px !important}:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:2px !important}:host(.square.duet-small),:host(.square.duet-x-small){margin-right:8px !important}:host(.square.duet-small):last-child,:host(.square.duet-small):last-of-type,:host(.square.duet-x-small):last-child,:host(.square.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.square.duet-x-small):last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;display:block;width:100%}.duet-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;align-items:center;width:100%;min-width:8rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.1;color:rgb(0, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:1px;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, padding 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-button:focus,.duet-button:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-button.duet-button-size-medium{height:50px;padding-right:30px;padding-left:30px;font-size:1rem;border-radius:25px}.duet-button.duet-button-size-medium.square{border-radius:12.5px}.duet-button.duet-button-size-medium.icon-left{padding-left:24px}.duet-button.duet-button-size-medium.icon-right{padding-right:24px}.duet-button.duet-button-size-small{height:40px;padding-right:20px;padding-left:20px;font-size:0.875rem;border-radius:20px}.duet-button.duet-button-size-small.square{border-radius:10px}.duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-button.duet-button-size-x-small{height:32px;padding-right:12px;padding-left:12px;font-size:0.75rem;border-radius:8px}.duet-button.duet-button-size-x-small.icon-left{padding-left:10px}.duet-button.duet-button-size-x-small.icon-right{padding-right:10px}.duet-button.plain.duet-p-0{height:auto}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){min-width:48px}.duet-button.duet-button-is-small:not(.duet-button-icon-only).plain{padding-right:0 !important;padding-left:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).duet-p-0{padding:0 !important}.duet-button .duet-button-contents{position:relative;display:flex;gap:10px;align-items:center;margin:0 auto;pointer-events:none}.duet-button .duet-button-contents.icon-right{flex-direction:row-reverse}.duet-button .duet-button-contents .duet-button-contents-slot{position:relative;top:0}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{display:flex;align-items:center}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{background:rgb(255, 255, 255);border-color:rgb(181, 198, 208)}.duet-button.default:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.primary,.duet-button.input-button-primary,.duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.primary:hover,.duet-button.input-button-primary:hover,.duet-button.input-button-left-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-left-secondary,.duet-button.input-button-embedded{color:rgb(8, 42, 77) !important;background:transparent;border-color:rgb(8, 42, 77)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-left-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179);outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-button.secondary:hover,.duet-button.secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-button.input-button-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-button.input-button-left-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-embedded:hover,.duet-button.input-button-embedded:hover.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-left-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(212, 223, 229) !important;border-color:rgb(255, 255, 255)}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.input-button{height:auto}.duet-button.negative{color:rgb(8, 42, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.duet-button-negative:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(255, 255, 255, 0.8)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-button.destructive-primary:hover{background:#ab1642;border-color:#ab1642;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-button.plain.duet-p-0 .duet-button-contents{height:auto}.duet-button.plain[disabled],.duet-button.plain[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-button.plain:hover{color:rgb(0, 75, 129) !important;background:transparent !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-button.plain.duet-button-negative:hover{color:rgba(255, 255, 255, 0.8) !important}.duet-button.plain.duet-button-icon-only:focus{outline-offset:1px}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded,.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents,.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-secondary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-embedded .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-secondary .duet-button-contents.icon-right{padding:0 16px}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-top-right-radius:4px !important;border-bottom-right-radius:4px !important;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{border-top-left-radius:4px !important;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px !important}.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-left-secondary{border-color:rgb(127, 150, 165)}.duet-button.square{width:52px;min-width:auto !important;padding:0 !important;font-size:1rem;border-color:rgb(181, 198, 208);border-width:1px}.duet-button.square.duet-button-size-small{width:42px;font-size:0.875rem}.duet-button.square.duet-button-size-x-small{width:34px;font-size:0.875rem}.duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.square:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.square .duet-button-contents{gap:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;outline:none !important;outline-color:rgb(212, 223, 229) !important;outline-color:rgb(212, 223, 229) !important;background:rgb(212, 223, 229) !important;border-color:rgb(212, 223, 229) !important;box-shadow:none !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}.duet-theme-turva .duet-button{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(230, 23, 64) !important;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium{padding-right:24px;padding-left:24px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-left{padding-left:14px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-right{padding-right:14px}.duet-theme-turva .duet-button.duet-button-size-small{padding-right:18px;padding-left:18px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-theme-turva .duet-button.default{color:rgb(230, 23, 64) !important;border-color:rgb(178, 194, 205)}.duet-theme-turva .duet-button.default:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary,.duet-theme-turva .duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover,.duet-theme-turva .duet-button.input-button-left-primary:hover{background:rgb(140, 0, 30);border-color:rgb(140, 0, 30)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-left-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 42, 59) !important;border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.duet-button.input-button-primary,.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-bottom-left-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-left-primary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-top-right-radius:0;border-bottom-right-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-button.negative{color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-button.negative:hover{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#ab1642}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-theme-turva .duet-button.plain{color:rgb(230, 23, 64) !important;background:transparent;border-color:transparent}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain.duet-button-negative:hover{color:rgba(255, 255, 255, 0.8) !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(140, 0, 30) !important}.duet-theme-turva .duet-button.plain[disabled],.duet-theme-turva .duet-button.plain[disabled]:hover{color:rgb(95, 122, 143) !important;cursor:not-allowed;background:transparent !important;border-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.square{border-color:rgb(212, 221, 226)}.duet-theme-turva .duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.square:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(120, 145, 164) !important;cursor:not-allowed;outline-color:rgb(212, 221, 226) !important;background:rgb(212, 221, 226) !important;border-color:rgb(212, 221, 226) !important}.duet-theme-turva .duet-button-is-loading.default{color:rgb(230, 23, 64)}";
|
|
5643
5643
|
|
|
5644
5644
|
class DuetButton {
|
|
5645
5645
|
constructor(hostRef) {
|
|
@@ -6056,11 +6056,11 @@ class DuetCallout {
|
|
|
6056
6056
|
<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"/>
|
|
6057
6057
|
</svg>
|
|
6058
6058
|
`;
|
|
6059
|
-
return (hAsync(Host, { key: '
|
|
6059
|
+
return (hAsync(Host, { key: '7c2142db52608760dec767f79a7bca3447a7cd5f' }, hAsync("div", { key: 'f8198db62bb29ce33d65fc3c3cc3e32f87de2c5c', class: {
|
|
6060
6060
|
"duet-callout": true,
|
|
6061
6061
|
"duet-theme-turva": this.theme === "turva",
|
|
6062
6062
|
"duet-m-0": this.margin === "none",
|
|
6063
|
-
} }, hAsync("figure", { key: '
|
|
6063
|
+
} }, hAsync("figure", { key: 'e994ff471b5559524635c85974669c8057658363', class: "container" }, hAsync("duet-icon", { key: '88762cb245c8695ac5a4e6e964429055b7256fa5', 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: '4b39bc138213d594a5eb81c9f0fe50e49342c626' }, hAsync("slot", { key: 'fc14d22469315c162b71aa1b3bf09c8bcd0e1901' })), this.hasAuthorSlot && (hAsync("figcaption", { key: 'b8fc8be9af52e97966a8ae61ad5ab3f88e7e8aa0', class: "author" }, hAsync("span", { key: 'e0ca2034da2119ef9b5c6b9ddf004f46706a59fe' }, "\u2014 "), hAsync("slot", { key: '6224eae7686973960ea35086635e3dbeeaa8e944', name: "author" })))))));
|
|
6064
6064
|
}
|
|
6065
6065
|
get element() { return getElement(this); }
|
|
6066
6066
|
static get style() { return duetCalloutCss; }
|
|
@@ -6148,7 +6148,7 @@ function requireActionArrowUp () {
|
|
|
6148
6148
|
var actionArrowUpExports = requireActionArrowUp();
|
|
6149
6149
|
var arrowUpIcon = /*@__PURE__*/getDefaultExportFromCjs(actionArrowUpExports);
|
|
6150
6150
|
|
|
6151
|
-
const duetCardCss = "*,*::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-bottom:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}:host{--duet-card-border-radius:12px}@media (min-width: 36em){:host{--duet-card-border-radius:16px}}.duet-card{padding:20px !important;position:relative;display:flex;flex-direction:column;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-style:normal;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-decoration:none;border-radius:var(--duet-card-border-radius);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-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}@media (max-width: 20.5em){.duet-card.shadow-xxx-small{box-shadow:none}}@media (max-width: 22.5em){.duet-card.shadow-xx-small{box-shadow:none}}@media (max-width: 35.9375em){.duet-card.shadow-x-small{box-shadow:none}}@media (min-width: 36em){.duet-card.shadow-small{box-shadow:none}}@media (min-width: 48em){.duet-card.shadow-medium{box-shadow:none}}@media (min-width: 62em){.duet-card.shadow-large{box-shadow:none}}@media (min-width: 64.0625em){.duet-card.shadow-x-large{box-shadow:none}}@media (min-width: 76.25em){.duet-card.shadow-xx-large{box-shadow:none}}@media (min-width: 106.25em){.duet-card.shadow-xxx-large{box-shadow:none}}@media (min-width: 36em){.duet-card{padding:28px !important}}@media (min-width: 36em){.duet-card.xx-small{padding:12px !important}}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(4, 81, 128, 0.04) !important;box-shadow:none}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1.25rem;font-weight:800;color:rgb(8, 42, 77);border-bottom:1px solid rgb(212, 223, 229);border-radius:var(--duet-card-border-radius) var(--duet-card-border-radius) 0 0}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}.none .duet-card-heading{padding:0 !important;margin:0}}.duet-card-collapsed .duet-card-heading{border-radius:var(--duet-card-border-radius)}.duet-card-image-mask+.duet-card-heading{border-radius:0}.duet-card-heading.duet-card-heading--collapsible{cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button{width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus,:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{border-radius:var(--duet-card-border-radius)}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}@media (min-width: 36em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 48em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0;margin:0}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:rgb(245, 248, 250);border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.xx-small .duet-card-footer{padding:10px 20px 11px !important;padding-left:12px !important;margin:12px -12px -12px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:0;margin:0}.duet-card-content{flex:1 1 auto;width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;padding:0;margin:0}.duet-card-image-mask picture{display:block}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transform:scale(1.0001);transition:transform 300ms ease}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{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), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 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), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transform:translateY(1px);transition:none}.duet-card.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);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 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-card.duet-theme-turva.info{background:rgb(253, 247, 242) !important}.duet-card.duet-theme-turva .duet-card-heading{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);border-color:rgb(212, 221, 226)}.duet-card.duet-theme-turva .duet-card-footer{background:rgb(245, 246, 247)}";
|
|
6151
|
+
const duetCardCss = "*,*::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-bottom:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}:host{--duet-card-border-radius:12px}@media (min-width: 36em){:host{--duet-card-border-radius:16px}}.duet-card{padding:20px !important;position:relative;display:flex;flex-direction:column;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-style:normal;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-decoration:none;border-radius:var(--duet-card-border-radius);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-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}@media (max-width: 20.5em){.duet-card.shadow-xxx-small,.duet-card.duet-theme-turva.shadow-xxx-small{box-shadow:none}}@media (max-width: 22.5em){.duet-card.shadow-xx-small,.duet-card.duet-theme-turva.shadow-xx-small{box-shadow:none}}@media (max-width: 35.9375em){.duet-card.shadow-x-small,.duet-card.duet-theme-turva.shadow-x-small{box-shadow:none}}@media (min-width: 36em){.duet-card.shadow-small,.duet-card.duet-theme-turva.shadow-small{box-shadow:none}}@media (min-width: 48em){.duet-card.shadow-medium,.duet-card.duet-theme-turva.shadow-medium{box-shadow:none}}@media (min-width: 62em){.duet-card.shadow-large,.duet-card.duet-theme-turva.shadow-large{box-shadow:none}}@media (min-width: 64.0625em){.duet-card.shadow-x-large,.duet-card.duet-theme-turva.shadow-x-large{box-shadow:none}}@media (min-width: 76.25em){.duet-card.shadow-xx-large,.duet-card.duet-theme-turva.shadow-xx-large{box-shadow:none}}@media (min-width: 106.25em){.duet-card.shadow-xxx-large,.duet-card.duet-theme-turva.shadow-xxx-large{box-shadow:none}}@media (min-width: 36em){.duet-card{padding:28px !important}}@media (min-width: 36em){.duet-card.xx-small{padding:12px !important}}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(4, 81, 128, 0.04) !important;box-shadow:none}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1.25rem;font-weight:800;color:rgb(8, 42, 77);border-bottom:1px solid rgb(212, 223, 229);border-radius:var(--duet-card-border-radius) var(--duet-card-border-radius) 0 0}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}.none .duet-card-heading{padding:0 !important;margin:0}}.duet-card-collapsed .duet-card-heading{border-radius:var(--duet-card-border-radius)}.duet-card-image-mask+.duet-card-heading{border-radius:0}.duet-card-heading.duet-card-heading--collapsible{cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button{width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus,:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{border-radius:var(--duet-card-border-radius)}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}@media (min-width: 36em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 48em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0;margin:0}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:rgb(245, 248, 250);border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.xx-small .duet-card-footer{padding:10px 20px 11px !important;padding-left:12px !important;margin:12px -12px -12px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:0;margin:0}.duet-card-content{flex:1 1 auto;width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;padding:0;margin:0}.duet-card-image-mask picture{display:block}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transform:scale(1.0001);transition:transform 300ms ease}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{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), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 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), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transform:translateY(1px);transition:none}.duet-card.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);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 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-card.duet-theme-turva.info{background:rgb(253, 247, 242) !important;box-shadow:none}.duet-card.duet-theme-turva.plain{box-shadow:none}.duet-card.duet-theme-turva .duet-card-heading{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);border-color:rgb(212, 221, 226)}.duet-card.duet-theme-turva .duet-card-footer{background:rgb(245, 246, 247)}";
|
|
6152
6152
|
|
|
6153
6153
|
/**
|
|
6154
6154
|
* @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
|
|
@@ -6580,11 +6580,11 @@ class DuetCheckmark {
|
|
|
6580
6580
|
inheritGlobalTheme(this);
|
|
6581
6581
|
}
|
|
6582
6582
|
render() {
|
|
6583
|
-
return (hAsync(Host, { key: '
|
|
6583
|
+
return (hAsync(Host, { key: '2142269327442a806b3ea159abe1c55920cd4ec7', class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: '5e80d429c85b08fdc7252dc4b63bae771186b611', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, hAsync("div", { key: '059edd1d87fa195725d63016b61692f62d1a5728', class: {
|
|
6584
6584
|
"duet-checkmark-container": true,
|
|
6585
6585
|
center: this.center,
|
|
6586
6586
|
"duet-checkmark-radio": this.type === "radio",
|
|
6587
|
-
} }, this.checked && hAsync("div", { key: '
|
|
6587
|
+
} }, this.checked && hAsync("div", { key: '3a81e706e386b1e81377521a89875eb790f5e68e', class: "duet-checkmark" })))));
|
|
6588
6588
|
}
|
|
6589
6589
|
static get style() { return duetCheckmarkCss; }
|
|
6590
6590
|
static get cmpMeta() { return {
|
|
@@ -7610,7 +7610,16 @@ class DuetChoiceGroup {
|
|
|
7610
7610
|
var _a;
|
|
7611
7611
|
const value = (_a = this.value) !== null && _a !== void 0 ? _a : this.initialValue;
|
|
7612
7612
|
const allChoices = Array.from(this.element.querySelectorAll("duet-choice"));
|
|
7613
|
-
const ownChoices = allChoices
|
|
7613
|
+
const ownChoices = allChoices
|
|
7614
|
+
.filter(choice => !allChoices.includes(choice.parentElement.closest("duet-choice")))
|
|
7615
|
+
.filter(ownChoice => {
|
|
7616
|
+
if (ownChoice.type === "checkbox") {
|
|
7617
|
+
console.error("Choice Group must consist of type=radio Choices. Choise type=checkbox is not allowed. They will be removed in a future Duet version", ownChoice);
|
|
7618
|
+
// ownChoice.remove()
|
|
7619
|
+
return false;
|
|
7620
|
+
}
|
|
7621
|
+
return true;
|
|
7622
|
+
});
|
|
7614
7623
|
let hasChecked = false;
|
|
7615
7624
|
this.choices.clear();
|
|
7616
7625
|
ownChoices.forEach(choice => this.choices.add(choice));
|
|
@@ -7645,14 +7654,14 @@ class DuetChoiceGroup {
|
|
|
7645
7654
|
* Always the last one in the class.
|
|
7646
7655
|
*/
|
|
7647
7656
|
render() {
|
|
7648
|
-
return (hAsync(Host, { key: '
|
|
7657
|
+
return (hAsync(Host, { key: 'bef9e6aed77ae942a881822af3fd9b2fd340088b', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, class: {
|
|
7649
7658
|
horizontal: this.direction === "horizontal",
|
|
7650
7659
|
"duet-choice-group-breakpoint-x-small": this.responsive && this.breakpoint === "x-small",
|
|
7651
7660
|
"duet-choice-group-breakpoint-small": this.responsive && this.breakpoint === "small",
|
|
7652
7661
|
"duet-choice-group-breakpoint-medium": this.responsive && this.breakpoint === "medium",
|
|
7653
7662
|
"duet-choice-group-breakpoint-large": this.responsive && this.breakpoint === "large",
|
|
7654
7663
|
"duet-choice-group-breakpoint-x-large": this.responsive && this.breakpoint === "x-large",
|
|
7655
|
-
} }, hAsync("duet-fieldset", { key: '
|
|
7664
|
+
} }, hAsync("duet-fieldset", { key: '18197d3bbcf9772c85e002a0df25e9df79dcb3a7', 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: 'f9a555c68c6f7312e0941a16752f5c2b3e488e93', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '041c890f290b5ecd750edd189288cfb2769aa60b', name: "tooltip", slot: "tooltip" }), hAsync("div", { key: '01d3e4cad179c9aa864c80557831cbf10bf2b0f2', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: '87f9ea13d22d029ba9025572432ebdde96456838' })))));
|
|
7656
7665
|
}
|
|
7657
7666
|
get element() { return getElement(this); }
|
|
7658
7667
|
static get watchers() { return {
|
|
@@ -9098,6 +9107,7 @@ class DuetCombobox {
|
|
|
9098
9107
|
// the activeItem number is based upon the array.index of the array stored in processedItems
|
|
9099
9108
|
this.activeItem = undefined;
|
|
9100
9109
|
this.activeItemAnnouncement = "";
|
|
9110
|
+
this.optionsFoundAnnouncement = "";
|
|
9101
9111
|
/**
|
|
9102
9112
|
* Defaults for the accessible labels for the select items
|
|
9103
9113
|
*/
|
|
@@ -9105,17 +9115,23 @@ class DuetCombobox {
|
|
|
9105
9115
|
en: {
|
|
9106
9116
|
heading: "Select:",
|
|
9107
9117
|
item: "{name}",
|
|
9108
|
-
|
|
9118
|
+
activeItemLabel: "{name}, {current} / {total}",
|
|
9119
|
+
optionsFound: "{optionCount} options found",
|
|
9120
|
+
noOptionsFound: "No options found",
|
|
9109
9121
|
},
|
|
9110
9122
|
fi: {
|
|
9111
9123
|
heading: "Valitse:",
|
|
9112
9124
|
item: "{name}",
|
|
9113
|
-
|
|
9125
|
+
activeItemLabel: "{name}, {current} / {total}",
|
|
9126
|
+
optionsFound: "{optionCount}, valintaa löydetty", // extra comma to prevent unwanted conjugation
|
|
9127
|
+
noOptionsFound: "Yhtään valintaa ei löydy",
|
|
9114
9128
|
},
|
|
9115
9129
|
sv: {
|
|
9116
9130
|
heading: "Välj:",
|
|
9117
9131
|
item: "{name}",
|
|
9118
|
-
|
|
9132
|
+
activeItemLabel: "{name}, {current} / {total}",
|
|
9133
|
+
optionsFound: "{optionCount} val hittades",
|
|
9134
|
+
noOptionsFound: "Inget val hittades",
|
|
9119
9135
|
},
|
|
9120
9136
|
};
|
|
9121
9137
|
/**
|
|
@@ -9191,6 +9207,7 @@ class DuetCombobox {
|
|
|
9191
9207
|
}
|
|
9192
9208
|
});
|
|
9193
9209
|
};
|
|
9210
|
+
this.optionsFoundTimeoutId = 0;
|
|
9194
9211
|
this.onInputTyping = async (e) => {
|
|
9195
9212
|
var _a;
|
|
9196
9213
|
const newValue = e.detail.value;
|
|
@@ -9200,7 +9217,14 @@ class DuetCombobox {
|
|
|
9200
9217
|
if (!this.multiple && newValue === "") {
|
|
9201
9218
|
this.value = undefined;
|
|
9202
9219
|
}
|
|
9203
|
-
|
|
9220
|
+
const filteredItemsCount = ((_a = this.getFilteredItems()) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
9221
|
+
this.listOpen = String(newValue).length >= this.minCharacters && filteredItemsCount > 0;
|
|
9222
|
+
clearTimeout(this.optionsFoundTimeoutId);
|
|
9223
|
+
this.optionsFoundTimeoutId = setTimeout(() => {
|
|
9224
|
+
this.optionsFoundAnnouncement = filteredItemsCount
|
|
9225
|
+
? this.accessibleLabels.optionsFound.replace("{optionCount}", `${filteredItemsCount}`)
|
|
9226
|
+
: this.accessibleLabels.noOptionsFound;
|
|
9227
|
+
}, 1000);
|
|
9204
9228
|
};
|
|
9205
9229
|
this.onKeyDown = (e) => {
|
|
9206
9230
|
var _a, _b, _c;
|
|
@@ -9570,7 +9594,8 @@ class DuetCombobox {
|
|
|
9570
9594
|
}
|
|
9571
9595
|
//function that scrolls to the li element with the class "active"
|
|
9572
9596
|
scrollToActive() {
|
|
9573
|
-
|
|
9597
|
+
var _a;
|
|
9598
|
+
const activeElement = (_a = this.element.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(`${this.activeDescendantId}`);
|
|
9574
9599
|
if (activeElement) {
|
|
9575
9600
|
activeElement.scrollIntoView({
|
|
9576
9601
|
behavior: "smooth",
|
|
@@ -9582,12 +9607,11 @@ class DuetCombobox {
|
|
|
9582
9607
|
if (!item || itemsLength === undefined) {
|
|
9583
9608
|
return "";
|
|
9584
9609
|
}
|
|
9585
|
-
const labelString = length === itemsLength ? this.accessibleLabels.item : this.accessibleLabels.
|
|
9610
|
+
const labelString = length === itemsLength ? this.accessibleLabels.item : this.accessibleLabels.activeItemLabel;
|
|
9586
9611
|
return labelString
|
|
9587
9612
|
.replace("{name}", String(item.name))
|
|
9588
9613
|
.replace("{current}", String(itemIndex + 1))
|
|
9589
|
-
.replace("{total}", String(length))
|
|
9590
|
-
.replace("{hiddenItems}", String(itemsLength - length));
|
|
9614
|
+
.replace("{total}", String(length));
|
|
9591
9615
|
}
|
|
9592
9616
|
/**
|
|
9593
9617
|
* Filter the items based on the input value
|
|
@@ -9686,6 +9710,7 @@ class DuetCombobox {
|
|
|
9686
9710
|
"selectedItems": [32],
|
|
9687
9711
|
"activeItem": [32],
|
|
9688
9712
|
"activeItemAnnouncement": [32],
|
|
9713
|
+
"optionsFoundAnnouncement": [32],
|
|
9689
9714
|
"formatItem": [64]
|
|
9690
9715
|
},
|
|
9691
9716
|
"$listeners$": [[4, "click", "handleDocumentClick"]],
|
|
@@ -9750,10 +9775,10 @@ class DuetContactCard {
|
|
|
9750
9775
|
},
|
|
9751
9776
|
sources: parsePossibleJSON(this.sources),
|
|
9752
9777
|
};
|
|
9753
|
-
return (hAsync(Host, { key: '
|
|
9778
|
+
return (hAsync(Host, { key: '04096609d15dbb158a385792f711da26ee95dd95', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: 'a0878e116a425a2ed9652904f7bc7d3d93544354', class: {
|
|
9754
9779
|
"duet-contact-card": true,
|
|
9755
9780
|
"duet-theme-turva": this.theme === "turva",
|
|
9756
|
-
}, role: "group", "aria-label": this.name }, this.image ? hAsync(DuetPicture, Object.assign({}, pictureSource)) : hAsync("div", null), hAsync("div", { key: '
|
|
9781
|
+
}, role: "group", "aria-label": this.name }, this.image ? hAsync(DuetPicture, Object.assign({}, pictureSource)) : hAsync("div", null), hAsync("div", { key: '152a894a38c39c7f16488b0507ea8a2c139d29c5' }, this.name && (hAsync("duet-heading", { key: '8738ca48c85445b027021dc89b500332a6d6b449', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (hAsync("duet-paragraph", { key: 'a9f592ba12df7aeb59c5a5e2fad53ae1e52bab85', class: "description", margin: "none", theme: theme }, this.description)), this.email && (hAsync("div", { key: 'afc1e103364b705e988962ab9edfdd5e0dfbbf5f', class: "email" }, hAsync("duet-icon", { key: '5cf4768948c4b002f742233dc4d4f279bbc45b54', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: 'e2e59421cec8883de026f5f47a6da855545a68ce', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (hAsync("div", { key: '5a4085420c24900f3ae971f5cf5b84a91a830da4', class: "phone" }, hAsync("duet-icon", { key: '01c049683d092c7b71fcdbf24b9a8470bd8af2da', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: '99c27b5983a2388e1349de7eb7b7db19d754b475', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (hAsync("div", { key: '9996e7c2693ddb274ab8a803e0dc564bfc40c246', class: "call-to-action" }, hAsync("duet-button", { key: 'c0730311ffec7410311d527e75a725332a849ac8', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), hAsync("div", { key: '136c1d0c39ad396194d2f9f7e9ca180e82aa66a7' }), hAsync("slot", { key: 'fc98de9e746468e61a869ed3f4678495fe9df91f' }))));
|
|
9757
9782
|
}
|
|
9758
9783
|
get element() { return getElement(this); }
|
|
9759
9784
|
static get style() { return duetContactCardCss; }
|
|
@@ -10201,7 +10226,7 @@ const DatePickerDay = ({ focusedDay, today, day, language, onDaySelect, onKeyboa
|
|
|
10201
10226
|
function handleClick(e) {
|
|
10202
10227
|
onDaySelect(e, day);
|
|
10203
10228
|
}
|
|
10204
|
-
return (hAsync("td", { "data-day": printISODate(day), class: { "duet-date-table-cell": true, selected: isSelected }, "aria-label": `${formatterShort.format(day)}${isSelected ? `, ${selectedDayLabel[language]}` :
|
|
10229
|
+
return (hAsync("td", { "data-day": printISODate(day), class: { "duet-date-table-cell": true, selected: isSelected }, "aria-label": `${formatterShort.format(day)}${isSelected ? `, ${selectedDayLabel[language]}` : ""}`, role: "button", tabIndex: isFocused ? 0 : -1, onClick: handleClick, onKeyDown: onKeyboardNavigation, "aria-disabled": isOutsideRange || isDisabled, ref: ref },
|
|
10205
10230
|
hAsync("span", { class: { "duet-date-table-button": true, outside: isOutsideRange, disabled: isDisabled, today: isToday } }, day.getDate())));
|
|
10206
10231
|
};
|
|
10207
10232
|
|
|
@@ -10481,9 +10506,13 @@ class DuetDatePicker {
|
|
|
10481
10506
|
*/
|
|
10482
10507
|
this.error = "";
|
|
10483
10508
|
/**
|
|
10484
|
-
*
|
|
10509
|
+
* @deprecated changed from opt-out to opt-in with attribute `enable-built-in-errors`
|
|
10510
|
+
*/
|
|
10511
|
+
this.disableBuiltInErrors = true;
|
|
10512
|
+
/**
|
|
10513
|
+
* Date picker can use built-in error messages for invalid or missing entries if the application does not handle those.
|
|
10485
10514
|
*/
|
|
10486
|
-
this.
|
|
10515
|
+
this.enableBuiltInErrors = false;
|
|
10487
10516
|
/**
|
|
10488
10517
|
* Visually hide the label, but still show it to screen readers.
|
|
10489
10518
|
*/
|
|
@@ -10561,7 +10590,7 @@ class DuetDatePicker {
|
|
|
10561
10590
|
this.handleBlur = (event) => {
|
|
10562
10591
|
event.stopPropagation();
|
|
10563
10592
|
this.inputHasFocus = false;
|
|
10564
|
-
if (!this._validity.valid &&
|
|
10593
|
+
if (!this._validity.valid && this.enableBuiltInErrors) {
|
|
10565
10594
|
const errorKey = Object.entries(this._validity).find(entry => !!entry[1])[0];
|
|
10566
10595
|
this.error = getLocaleString(this.dateErrorMessages[errorKey]);
|
|
10567
10596
|
}
|
|
@@ -10798,7 +10827,7 @@ class DuetDatePicker {
|
|
|
10798
10827
|
valueMissing,
|
|
10799
10828
|
valid: !(valueMissing || badInput || rangeUnderflow || rangeOverflow || customError),
|
|
10800
10829
|
};
|
|
10801
|
-
if (this._validity.valid) {
|
|
10830
|
+
if (this._validity.valid && this.enableBuiltInErrors) {
|
|
10802
10831
|
this.error = "";
|
|
10803
10832
|
}
|
|
10804
10833
|
}
|
|
@@ -10859,13 +10888,13 @@ class DuetDatePicker {
|
|
|
10859
10888
|
if (maxDate) {
|
|
10860
10889
|
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
10861
10890
|
}
|
|
10862
|
-
return (hAsync(Host, { key: '
|
|
10891
|
+
return (hAsync(Host, { key: '2101b93d551d7db95be216d7e8293354201e68fb', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: 'd23a2c29a015fbf53bf97b6f07cc79230ec77ae3', class: "duet-date" }, hAsync(DatePickerInput, { key: '0d7a4f813cb59f576fe7bdf0b5866e60cbaccc71', hasFocus: this.inputHasFocus, value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, accessibleLiveError: this.accessibleLiveError, echoPlaceholder: this.echoPlaceholder, caption: this.caption })), hAsync("div", { key: '868801785eb752e7c988273787ba367463f0d2c0', class: {
|
|
10863
10892
|
"duet-theme-turva": this.theme === "turva",
|
|
10864
10893
|
"duet-date-dialog": true,
|
|
10865
10894
|
left: this.direction === "left",
|
|
10866
10895
|
error: !!this.error,
|
|
10867
10896
|
active: this.open,
|
|
10868
|
-
}, 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: '
|
|
10897
|
+
}, 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: 'ff3ca44007f17949b16824685e55d4b52304a635', visible: this.open, "display-device": "x-small" }), hAsync(FocusGuard, { key: '52415f73958c302f54ed9ed1d2fc4f4d4d8c2413', moveFocusTo: this.focusedDayNode }), hAsync("div", { key: '0dd696ad1ac07902f07f483907d28056a7a53875', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, hAsync("duet-visually-hidden", { key: 'e2a7f570483f794aa9f69367e6d5d264e382704d', "aria-live": "polite" }, text.keyboardInstruction), hAsync("div", { key: '5fba9ce2d01e722cef8125759dc2ca476a1b75ac', class: "duet-date-dialog-mobile-header" }, hAsync(DuetInternalLabel, { key: '1e06e95abf149f493566476b91a8a5478e7978e1', margin: "none" }, this.label), hAsync("button", { key: 'f0d02d5c156532cbcd62a941a3624b7e97f0ffed', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, hAsync("duet-icon", { key: '7ddaf28a52153f0d7c2f514fe4d657a108d8cefb', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), hAsync("duet-visually-hidden", { key: 'db236821d951de7fec7f33b55841538d9fe5f796' }, text.closeLabel))), hAsync("div", { key: 'bf259e202dd64c21a95dd24ba47b7c0776811b4b', class: "duet-date-dialog-header" }, hAsync("div", { key: '9d833d152a1f2d7f594d5c47e28d18363c8910d7', class: "duet-date-dialog-dropdowns" }, hAsync("duet-visually-hidden", { key: 'f00f0ff852c76fff5bae02ab2915127b105c4d63' }, hAsync("h2", { key: '028369aad6a32055c14ecf6c0b06334e2e54a9bb', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), hAsync("duet-visually-hidden", { key: '73d126ea4d199f59eb55df5113e06c54a4222dc3' }, hAsync("label", { key: '22f1038fdc4e65bf77d0e888f1e4f4e714b70bbc', htmlFor: this.monthSelectId }, text.monthSelectLabel)), hAsync("div", { key: '6770d474539174a57fcd109545e693cae6894f77', class: "duet-date-dialog-select" }, hAsync("select", { key: '8a8d5005e81c8ba1838d298599d074b82d2e0197', 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: '8144b70f64ab6f3dd4361ad61e489912c38e02d8', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: '4e0172c58f7771d0f84ef9fa7ae5bebd7d7b5036' }, text.monthLabelsShort[focusedMonth]), hAsync("duet-icon", { key: '025b0e895b95983de955fbbda9f793ad7b52fb80', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), hAsync("duet-visually-hidden", { key: 'e0323ecb8e50e0d40dd93b0269dd8dcc07ad6435' }, hAsync("label", { key: '4072da35b9fd966b01d8b49d4c396f66f3c5485a', htmlFor: this.yearSelectId }, text.yearSelectLabel)), hAsync("div", { key: '781da9cd4ee79d9e64cb9c76926859d4d819434e', class: "duet-date-dialog-select" }, hAsync("select", { key: '75f150c29f8bc931d36cd02e2a354d89b7f2761b', 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: '96384ab271288677c40cae8d26b7e3d732ac6986', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: '6f5068e75adf6ccb8dd62e9e3495278130b8406e' }, this.focusedDay.getFullYear()), hAsync("duet-icon", { key: 'ca880dd653adc64184a8804ffeb45b2bad8da968', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), hAsync("div", { key: '5dd36177b3b2e383e8879dc5fc05eaaa554fc22e', class: "duet-date-dialog-buttons" }, hAsync("duet-action-button", { key: 'ee701d60f8510cf00e34042bd9693ae47f99d6a0', 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: 'c6da5355e47cd7d1fd4402650b019b9a6e36d150', 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: 'b6a5540ec6e095f556c761b2e7784b7004568156', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, disallowWeekends: this.disallowWeekends, disallowBankHolidays: this.disallowBankHolidays, disallowedDates: this.disallowedDates, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })), hAsync(FocusGuard, { key: 'ff93eaf35841d06eb93e2125254f8f801631bd88', moveFocusTo: this.closeButtonNode }))));
|
|
10869
10898
|
}
|
|
10870
10899
|
get element() { return getElement(this); }
|
|
10871
10900
|
static get watchers() { return {
|
|
@@ -10897,6 +10926,7 @@ class DuetDatePicker {
|
|
|
10897
10926
|
"disabled": [516],
|
|
10898
10927
|
"error": [1537],
|
|
10899
10928
|
"disableBuiltInErrors": [4, "disable-built-in-errors"],
|
|
10929
|
+
"enableBuiltInErrors": [4, "enable-built-in-errors"],
|
|
10900
10930
|
"labelHidden": [4, "label-hidden"],
|
|
10901
10931
|
"role": [1],
|
|
10902
10932
|
"accessibleActiveDescendant": [1, "accessible-active-descendant"],
|
|
@@ -11392,20 +11422,20 @@ class DuetFieldset {
|
|
|
11392
11422
|
* Always the last one in the class.
|
|
11393
11423
|
*/
|
|
11394
11424
|
render() {
|
|
11395
|
-
return (hAsync(Host, { key: '
|
|
11425
|
+
return (hAsync(Host, { key: 'e2c6cc99f8d6e3fcf85ee4a774b61e8a138fe2cb', class: { "duet-m-0": this.margin === "none" } }, hAsync("fieldset", { key: '1e382d523fb124212f4475c59f660566b22cac4a', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
|
|
11396
11426
|
// NVDA and VoiceOver do not yet support aria-errormessage
|
|
11397
11427
|
// once they do, we can remove errors from the aria-describedby
|
|
11398
11428
|
// aria-errormessage={this.error ? this.errorId : null}
|
|
11399
11429
|
class: {
|
|
11400
11430
|
"duet-fieldset": true,
|
|
11401
11431
|
"duet-theme-turva": this.theme === "turva",
|
|
11402
|
-
} }, hAsync("legend", { key: '
|
|
11432
|
+
} }, hAsync("legend", { key: '4af73da9eecbdef957d0d9f9fbbde218082cd94b', id: this.labelId }, hAsync(this.labelHeadingLevel, { key: '5b52e382eecc29c2bd709765592e2b9e6fe0fd60' }, this.label), this.caption && hAsync("span", { key: 'ce5feca713eeddbfafb5ab03576e6026e588ac63' }, this.caption)), hAsync("div", { key: '29f85072f52ccc650302586b79d334d2aa686706', class: {
|
|
11403
11433
|
"duet-legend-wrapper": true,
|
|
11404
11434
|
"duet-legend-has-caption": !!this.caption,
|
|
11405
11435
|
"duet-legend-has-tooltip": this.hasTooltip,
|
|
11406
11436
|
"duet-legend-hidden": this.labelHidden,
|
|
11407
11437
|
"duet-legend-compact": this.compactLabel,
|
|
11408
|
-
} }, hAsync("div", { key: '
|
|
11438
|
+
} }, hAsync("div", { key: '78421d08367b6a7e158fb3cc461767cd34eb4dad', class: "duet-fieldset-label" }, hAsync("span", { key: '4df48d5fb01b4cdc199ee36b034f0b54c7ad2039', "aria-hidden": "true" }, this.label), hAsync("slot", { key: 'c4e9d3107c5d62aaadb594e9fa41e455159693cb', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (hAsync("div", { key: '1777e78c69d940f110b1ae7bbe33a257197b1229', class: "duet-fieldset-caption", "aria-hidden": "true" }, hAsync("duet-caption", { key: '0ded2be735ec605ecd5451e37a0941db8b9cb7ce', theme: this.theme, margin: "none" }, this.caption)))), hAsync("slot", { key: '2c2acbb1a507fcef25618366d958cbe494d0929c' }), hAsync("span", { key: 'acd99ed8f4ce567b424bb0097df9d4fccca103c3', 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: '4bbba6d24a221081cc559fec9cfca914109b1aac', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
|
|
11409
11439
|
}
|
|
11410
11440
|
get element() { return getElement(this); }
|
|
11411
11441
|
static get style() { return duetFieldsetCss; }
|
|
@@ -11952,7 +11982,7 @@ class DuetGridItem {
|
|
|
11952
11982
|
* Always the last one in the class.
|
|
11953
11983
|
*/
|
|
11954
11984
|
render() {
|
|
11955
|
-
return (hAsync(Host, { key: '
|
|
11985
|
+
return (hAsync(Host, { key: '12dce875bc953154224e96f783fbbc66ecc28884', style: {
|
|
11956
11986
|
"min-width": this.minWidth,
|
|
11957
11987
|
"max-width": this.maxWidth,
|
|
11958
11988
|
}, class: {
|
|
@@ -11969,7 +11999,7 @@ class DuetGridItem {
|
|
|
11969
11999
|
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
11970
12000
|
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
11971
12001
|
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
11972
|
-
} }, hAsync("slot", { key: '
|
|
12002
|
+
} }, hAsync("slot", { key: '51f9a6b4ce1898cf60071a5d527a3c542c761051' })));
|
|
11973
12003
|
}
|
|
11974
12004
|
get element() { return getElement(this); }
|
|
11975
12005
|
static get style() { return duetGridItemCss; }
|
|
@@ -13532,11 +13562,11 @@ class DuetIcon {
|
|
|
13532
13562
|
: {};
|
|
13533
13563
|
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
13534
13564
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
13535
|
-
return (hAsync(Host, { key: '
|
|
13565
|
+
return (hAsync(Host, { key: 'fc3baf3fd1c385e8841cb935f5ea4781fed66367', class: {
|
|
13536
13566
|
"duet-m-0": this.margin === "none",
|
|
13537
13567
|
"duet-icon-has-outline": !!this.outline,
|
|
13538
13568
|
"duet-icon-has-background": !!this.background,
|
|
13539
|
-
} }, hAsync("span", { key: '
|
|
13569
|
+
} }, hAsync("span", { key: '5c8edb2e88c8214bb38753dd019c9d24a1421dad', "aria-hidden": "true", style: styles, class: {
|
|
13540
13570
|
"duet-icon": true,
|
|
13541
13571
|
"duet-theme-turva": this.theme === "turva",
|
|
13542
13572
|
"duet-theme-default": this.theme === "default",
|
|
@@ -13545,7 +13575,7 @@ class DuetIcon {
|
|
|
13545
13575
|
[shapeStyle]: true,
|
|
13546
13576
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
13547
13577
|
"duet-icon-not-responsive": !this.responsive,
|
|
13548
|
-
} }, hAsync("span", { key: '
|
|
13578
|
+
} }, hAsync("span", { key: '93836d0a46c0293fc59790869a0c0732b055c191', "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 }))));
|
|
13549
13579
|
}
|
|
13550
13580
|
get element() { return getElement(this); }
|
|
13551
13581
|
static get watchers() { return {
|
|
@@ -13707,7 +13737,7 @@ function cleanValue(input, regex) {
|
|
|
13707
13737
|
return newValue;
|
|
13708
13738
|
}
|
|
13709
13739
|
|
|
13710
|
-
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-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{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-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{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.has-icon .duet-input{padding-right:48px !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::placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-input:focus::placeholder{color:rgb(181, 198, 208)}.duet-input[disabled]{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 236, 239) !important;border-color:rgb(181, 198, 208) !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-input:hover:not(:disabled):not(:focus){outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input:hover:not(:disabled):not(:focus),.duet-input:hover:not(:disabled):not(:focus).duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.has-error .duet-input:hover:not(:disabled):not(:focus){outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-input:focus{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-input:focus,.duet-input:focus.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.has-error .duet-input:focus{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.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}.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-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.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:hover:not(.disabled):not(.has-focus) .duet-input-relative{outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative,.duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-input-container.has-adornment.has-focus .duet-input-relative,.duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-input-container.has-adornment.has-focus .duet-input-relative,.duet-input-container.has-adornment.has-focus .duet-input-relative.duet-theme-turva,.duet-theme-turva .duet-input-container.has-chips.has-focus .duet-input-relative,.duet-input-container.has-chips.has-focus .duet-input-relative.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative{outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative.duet-theme-turva,.duet-theme-turva .duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-input-container.has-adornment.has-error .duet-input-relative,.duet-input-container.has-chips.has-error .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-input-container.has-adornment.has-error.has-focus .duet-input-relative,.duet-input-container.has-chips.has-error.has-focus .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.duet-input-container.has-adornment.has-error:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips.has-error:hover:not(:disabled):not(.has-focus) .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-input-container.has-adornment .duet-input-relative,.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;padding-right:2px;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 150ms ease}.duet-input-container.has-adornment .duet-input-relative .duet-input,.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-adornment .duet-input-relative .duet-input:focus,.duet-input-container.has-adornment .duet-input-relative .duet-input:hover,.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}.duet-input-container.has-adornment .duet-input-relative .duet-input{padding:12px 14px !important;margin:initial !important}.duet-input-container.has-adornment .duet-input-relative .input-adornment{color:rgb(98, 121, 138)}.duet-input-container.has-adornment .duet-input-relative .input-adornment.prefix{padding-left:14px}.duet-input-container.has-adornment .duet-input-relative .input-adornment.suffix{padding-right:14px}.duet-input-container.has-prefix .duet-input-relative .duet-input{padding-left:8px !important}.duet-input-container.has-suffix .duet-input-relative .duet-input{padding-right:8px !important}.duet-theme-turva .duet-input-icon{color:rgb(23, 42, 59)}.duet-theme-turva.duet-input-container.has-clear .duet-input-clear-icon button{color:rgb(8, 42, 77)}.duet-theme-turva.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva:not(.has-error) .duet-input{border-color:rgb(120, 145, 164) !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, 42, 59) !important}.duet-theme-turva .duet-input[disabled]{color:rgb(95, 122, 143) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 233, 237) !important;border-color:rgb(178, 194, 205) !important;opacity:1 !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-input::placeholder{color:rgb(120, 145, 164)}.duet-theme-turva .duet-input:focus::placeholder{color:rgb(178, 194, 205)}.duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-variation-button-left.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-variation-revealable.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}.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(120, 145, 164)}.duet-theme-turva.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-theme-turva .duet-input-variation-revealable .duet-input-relative{border-color:rgb(120, 145, 164)}.duet-theme-turva.duet-input-variation-revealable.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-theme-turva.duet-input-variation-revealable.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(53, 79, 101);border-color:rgb(23, 42, 59)}.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-theme-turva .duet-input-container.has-chips .duet-input-relative{border-color:rgb(120, 145, 164)}";
|
|
13740
|
+
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-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{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-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}.duet-input[readonly]{color:rgb(62, 84, 102) !important;border-color:rgb(212, 223, 229)}.has-error .duet-input{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.has-icon .duet-input{padding-right:48px !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::placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-input:focus::placeholder{color:rgb(181, 198, 208)}.duet-input[disabled]{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 236, 239) !important;border-color:rgb(181, 198, 208) !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-input:hover:not(:disabled):not(:focus){outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input:hover:not(:disabled):not(:focus),.duet-input:hover:not(:disabled):not(:focus).duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.has-error .duet-input:hover:not(:disabled):not(:focus){outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-input:focus{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-input:focus,.duet-input:focus.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.has-error .duet-input:focus{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.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}.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-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(181, 198, 208)}.duet-input-variation-revealable.readonly .duet-input-relative{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.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:hover:not(.disabled):not(.has-focus) .duet-input-relative{outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative,.duet-input-variation-revealable:hover:not(.disabled):not(.has-focus) .duet-input-relative.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-input-container.has-adornment.disabled .duet-input-relative,.duet-input-container.has-chips.disabled .duet-input-relative{border-color:rgb(181, 198, 208)}.duet-input-container.has-adornment.readonly .duet-input-relative,.duet-input-container.has-chips.readonly .duet-input-relative{border-color:rgb(212, 223, 229)}.duet-input-container.has-adornment.has-focus .duet-input-relative,.duet-input-container.has-chips.has-focus .duet-input-relative{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-input-container.has-adornment.has-focus .duet-input-relative,.duet-input-container.has-adornment.has-focus .duet-input-relative.duet-theme-turva,.duet-theme-turva .duet-input-container.has-chips.has-focus .duet-input-relative,.duet-input-container.has-chips.has-focus .duet-input-relative.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative{outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative.duet-theme-turva,.duet-theme-turva .duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-input-container.has-adornment.has-error .duet-input-relative,.duet-input-container.has-chips.has-error .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-input-container.has-adornment.has-error.has-focus .duet-input-relative,.duet-input-container.has-chips.has-error.has-focus .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.duet-input-container.has-adornment.has-error:hover:not(:disabled):not(.has-focus) .duet-input-relative,.duet-input-container.has-chips.has-error:hover:not(:disabled):not(.has-focus) .duet-input-relative{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-input-container.has-adornment .duet-input-relative,.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;padding-right:2px;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 150ms ease}.duet-input-container.has-adornment .duet-input-relative .duet-input,.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-adornment .duet-input-relative .duet-input:focus,.duet-input-container.has-adornment .duet-input-relative .duet-input:hover,.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}.duet-input-container.has-adornment .duet-input-relative .duet-input{padding:12px 14px !important;margin:initial !important}.duet-input-container.has-adornment .duet-input-relative .input-adornment{color:rgb(98, 121, 138)}.duet-input-container.has-adornment .duet-input-relative .input-adornment.prefix{padding-left:14px}.duet-input-container.has-adornment .duet-input-relative .input-adornment.suffix{padding-right:14px}.duet-input-container.has-prefix .duet-input-relative .duet-input{padding-left:8px !important}.duet-input-container.has-suffix .duet-input-relative .duet-input{padding-right:8px !important}.duet-theme-turva .duet-input-icon{color:rgb(23, 42, 59)}.duet-theme-turva.duet-input-container.has-clear .duet-input-clear-icon button{color:rgb(8, 42, 77)}.duet-theme-turva.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva:not(.has-error) .duet-input{border-color:rgb(120, 145, 164) !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, 42, 59) !important}.duet-theme-turva .duet-input[readonly]{color:rgb(53, 79, 101) !important;border-color:rgb(212, 221, 226)}.duet-theme-turva .duet-input[disabled]{color:rgb(95, 122, 143) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 233, 237) !important;border-color:rgb(178, 194, 205) !important;opacity:1 !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-input::placeholder{color:rgb(120, 145, 164)}.duet-theme-turva .duet-input:focus::placeholder{color:rgb(178, 194, 205)}.duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-variation-button-left.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-input-variation-revealable.has-focus .duet-input-relative{border-color:rgb(23, 42, 59)}.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(120, 145, 164)}.duet-theme-turva.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-theme-turva .duet-input-variation-revealable .duet-input-relative{border-color:rgb(120, 145, 164)}.duet-theme-turva.duet-input-variation-revealable.disabled .duet-input-relative{border-color:rgb(178, 194, 205)}.duet-theme-turva.duet-input-variation-revealable.readonly .duet-input-relative{border-color:rgb(212, 221, 226)}.duet-theme-turva.duet-input-variation-revealable.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-theme-turva.duet-input-variation-revealable.has-focus .duet-input-relative{outline:2px solid;outline-offset:-1px;outline-color:rgb(53, 79, 101);border-color:rgb(23, 42, 59)}.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-theme-turva .duet-input-container.has-chips .duet-input-relative{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-input-container.has-chips.disabled .duet-input-relative{border-color:rgb(178, 194, 205)}.duet-theme-turva .duet-input-container.has-chips.readonly .duet-input-relative{border-color:rgb(212, 221, 226)}";
|
|
13711
13741
|
|
|
13712
13742
|
const icons = {
|
|
13713
13743
|
search: searchIcon,
|
|
@@ -13842,6 +13872,13 @@ class DuetInput {
|
|
|
13842
13872
|
* interact with the input, and conveys its inactive state to assistive technologies.
|
|
13843
13873
|
*/
|
|
13844
13874
|
this.disabled = false;
|
|
13875
|
+
/**
|
|
13876
|
+
* Makes the input component not mutable, meaning the user cannot edit the control.
|
|
13877
|
+
* The user can otherwise interact, e.g. by selecting the content and copying it.
|
|
13878
|
+
* Due to differences in different browsers' and screen readers' implementations it
|
|
13879
|
+
* is strongly advisable to use this only with type="text".
|
|
13880
|
+
*/
|
|
13881
|
+
this.readonly = false;
|
|
13845
13882
|
/**
|
|
13846
13883
|
* Controls the margin of the component.
|
|
13847
13884
|
*/
|
|
@@ -13881,7 +13918,8 @@ class DuetInput {
|
|
|
13881
13918
|
*/
|
|
13882
13919
|
this.label = "Label";
|
|
13883
13920
|
/**
|
|
13884
|
-
* Display the input in error state along with an error message.
|
|
13921
|
+
* Display the input in error state along with an error message. If input is disabled or readonly,
|
|
13922
|
+
* error is ignored.
|
|
13885
13923
|
*/
|
|
13886
13924
|
this.error = "";
|
|
13887
13925
|
/**
|
|
@@ -14051,7 +14089,7 @@ class DuetInput {
|
|
|
14051
14089
|
return clearing;
|
|
14052
14090
|
};
|
|
14053
14091
|
this.keyHandler = (event) => {
|
|
14054
|
-
if (isEscapeKey(event) && this.clear) {
|
|
14092
|
+
if (isEscapeKey(event) && this.clear && this.writable) {
|
|
14055
14093
|
this.handleClearClick(event);
|
|
14056
14094
|
}
|
|
14057
14095
|
if (isEnterKey(event) && this.variation === "revealable") {
|
|
@@ -14064,7 +14102,7 @@ class DuetInput {
|
|
|
14064
14102
|
}
|
|
14065
14103
|
if (this.chips && this.nativeInput.value.length === 0) {
|
|
14066
14104
|
if (isBackspaceKey(event)) {
|
|
14067
|
-
if (this.isChipSelected()) {
|
|
14105
|
+
if (this.isChipSelected() && this.writable) {
|
|
14068
14106
|
this.getSelectedChip().removeChip();
|
|
14069
14107
|
setTimeout(() => this.selectLastChip());
|
|
14070
14108
|
}
|
|
@@ -14173,7 +14211,6 @@ class DuetInput {
|
|
|
14173
14211
|
componentWillLoad() {
|
|
14174
14212
|
inheritGlobalTheme(this);
|
|
14175
14213
|
this.disallowedPatternChange();
|
|
14176
|
-
this.isCaptionVisible = !!this.caption;
|
|
14177
14214
|
// Accept also slot element so that other components using duet-input can pass their tooltip slots here.
|
|
14178
14215
|
checkNamedSlotElement(this.element, "tooltip", "duet-tooltip, slot", 1, true);
|
|
14179
14216
|
}
|
|
@@ -14190,8 +14227,14 @@ class DuetInput {
|
|
|
14190
14227
|
disconnectedCallback() {
|
|
14191
14228
|
disconnectLanguageChangeObserver(this);
|
|
14192
14229
|
}
|
|
14230
|
+
componentWillRender() {
|
|
14231
|
+
this.isCaptionVisible = !!this.caption;
|
|
14232
|
+
}
|
|
14193
14233
|
componentDidRender() {
|
|
14194
14234
|
}
|
|
14235
|
+
get writable() {
|
|
14236
|
+
return !this.disabled && !this.readonly;
|
|
14237
|
+
}
|
|
14195
14238
|
/**
|
|
14196
14239
|
* Sets focus on the specified `duet-input`. Use this method instead of the global
|
|
14197
14240
|
* `input.focus()`.
|
|
@@ -14361,7 +14404,7 @@ class DuetInput {
|
|
|
14361
14404
|
this.type !== "password" &&
|
|
14362
14405
|
this.type !== "time" &&
|
|
14363
14406
|
this.variation !== "button";
|
|
14364
|
-
return (hAsync(Host, { key: '
|
|
14407
|
+
return (hAsync(Host, { key: 'a859732fa2ed3e36d5564c93e08d4bd4cb501188', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" }, onKeyUp: e => this.keyHandler(e) }, this.type === "time" && (hAsync("duet-visually-hidden", { key: 'ce15aa89693e557f5abd16e8111db759be70c89d', "aria-live": "polite", "aria-atomic": "true" }, selectedTime ? `${this.timeAnnouncement[this.language]} ${selectedTime.toLocaleTimeString()}` : "")), hAsync("div", { key: '58f44c874cc78e07b6ea9f9b07502f46830d389f', class: {
|
|
14365
14408
|
"duet-input-container": true,
|
|
14366
14409
|
"duet-theme-turva": this.theme === "turva",
|
|
14367
14410
|
[`duet-input-variation-${this.variation}`]: true,
|
|
@@ -14370,7 +14413,7 @@ class DuetInput {
|
|
|
14370
14413
|
"has-icon": this.variation !== "button" &&
|
|
14371
14414
|
(!!this.icon ||
|
|
14372
14415
|
(this.type !== "text" && this.type !== "tel" && this.type !== "password" && this.type !== "time")),
|
|
14373
|
-
"has-error": !!this.error,
|
|
14416
|
+
"has-error": !!this.error && this.writable,
|
|
14374
14417
|
"has-chips": this.chips,
|
|
14375
14418
|
"has-clear": this.clear,
|
|
14376
14419
|
"has-focus": this.isFocused,
|
|
@@ -14378,11 +14421,12 @@ class DuetInput {
|
|
|
14378
14421
|
"has-prefix": !!this.fieldPrefix,
|
|
14379
14422
|
"has-suffix": !!this.fieldSuffix,
|
|
14380
14423
|
disabled: this.disabled,
|
|
14381
|
-
|
|
14424
|
+
readonly: this.readonly,
|
|
14425
|
+
} }, hAsync("div", { key: '285821770ae823d73eaaeff2f2c88996778f8b69', class: "duet-input-label-container" }, hAsync(DuetInternalLabel, { key: '3fa55f1f4bd918ba022ecf233e9aff5b972a72db', 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: '2e08a75002784f2269629dce2ae232fa768d0906', class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: '4125f60b2ae5f69cf6e33ad5485f6d9633b6ea47', name: "tooltip" })), this.caption && (hAsync("duet-caption", { key: 'e7c72af17640691b585f81ac5c9c838ebb8c36b0', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: 'f7228488fa060e6b0344fd86ac487aed1c76a418', class: {
|
|
14382
14426
|
"duet-input-relative": true,
|
|
14383
14427
|
"duet-theme-turva": this.theme === "turva",
|
|
14384
|
-
"has-error": !!this.error,
|
|
14385
|
-
} }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (hAsync("duet-caption", { key: '
|
|
14428
|
+
"has-error": !!this.error && this.writable,
|
|
14429
|
+
} }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (hAsync("duet-caption", { key: 'b9f16783722dd5eceffa4c680f735d0a967e2cb1', id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), this.chips && (hAsync("duet-visually-hidden", { key: 'ceeb27c775ffc161915f98aaeeb0cf0a61b56b95', id: this.chipCountId }, ", ", `${this.getAllChips().length} ${getLocaleString(this.chipsSelectedDesriptionLabel)}`, ",")), this.variation === "button-left" && hAsync("slot", { key: '8cccc4fde3d2315b69a9212e2f1bacf627fefa0b', name: "button-left" }), this.fieldPrefix && (hAsync("span", { key: 'cdc1574242d2921e79c871330b4e058e8a7219cb', class: "input-adornment prefix", id: this.prefixId }, this.fieldPrefix)), hAsync("input", Object.assign({ key: '707a06f6db287db4753feafcf24f5d4d1e34d01a', ref: input => (this.nativeInput = input), onInput: this.onInput, onKeyDown: this.onInputKeyDown, onPaste: this.onInputPaste, onBlur: this.onBlur, onFocus: this.onFocus, type: this.getInputType(), class: {
|
|
14386
14430
|
"duet-input": true,
|
|
14387
14431
|
disabled: this.disabled,
|
|
14388
14432
|
"is-number": this.component === "number",
|
|
@@ -14390,17 +14434,17 @@ class DuetInput {
|
|
|
14390
14434
|
"after-chip": this.getAllChips().length > 0,
|
|
14391
14435
|
"align-right": this.inputAlign === "right",
|
|
14392
14436
|
[`input-padding-${this.inputPadding}`]: true,
|
|
14393
|
-
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.getAriaLabelledBy(), "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.getAutocomplete(), required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), this.maxlength && (hAsync("duet-visually-hidden", { key: `maxlength-announcement-${this.maxlengthAnnouncementKey}`, "aria-live": "polite", "aria-atomic": "true" }, this.maxlengthAnnouncement)), this.fieldSuffix && (hAsync("span", { key: '
|
|
14437
|
+
}, value: this.value, disabled: this.disabled, readonly: this.readonly, "aria-invalid": this.error && this.writable ? "true" : "false", "aria-labelledby": this.getAriaLabelledBy(), "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.getAutocomplete(), required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), this.maxlength && (hAsync("duet-visually-hidden", { key: `maxlength-announcement-${this.maxlengthAnnouncementKey}`, "aria-live": "polite", "aria-atomic": "true" }, this.maxlengthAnnouncement)), this.fieldSuffix && (hAsync("span", { key: 'b75739603d5e5ad093db7a2440c0b8abc217dcf6', class: "input-adornment suffix", id: this.suffixId }, this.fieldSuffix)), !this.value && hasInputIcon && (hAsync("div", { key: '404d988da35d4387e0eda7e1d343e6d98df86be7', class: "duet-input-icon" }, hAsync("duet-icon", { key: '917289116b7c97efb8f384353f44f02c7fd07205', margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && this.writable && (hAsync("div", { key: 'b7b38ab40d68c5092bc82672308572134a033168', class: {
|
|
14394
14438
|
"duet-input-clear-icon": true,
|
|
14395
14439
|
"duet-input-clear-icon-single": !hasInputIcon,
|
|
14396
14440
|
"duet-input-clear-icon-double": !!this.icon,
|
|
14397
14441
|
"duet-input-clear-icon-button": this.variation === "button",
|
|
14398
14442
|
[`input-padding-${this.inputPadding}`]: true,
|
|
14399
|
-
} }, hAsync("button", { key: '
|
|
14443
|
+
} }, hAsync("button", { key: 'ea77d45ff7dde685c5f35e0b33d1c75189d2d6c4', onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel[this.language], "aria-keyshortcuts": "Escape" }, hAsync("duet-icon", { key: '7807be8fb14c59731458e17b7ceecb99cda77545', margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (hAsync("div", { key: 'c6a744f0be1c484f051980f70d0a0deed5fcd9c0', class: "duet-input-icon" }, hAsync("duet-icon", { key: '9d33dac97ba817f3bfa11e82097b95499727c885', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && hAsync("slot", { key: '435f5d3927a55c4ce2c17e4483305b4f47afef8b', name: "button" }), this.variation === "revealable" && (hAsync("duet-button", { key: 'a1074a0cfe211da5cdebdf9a81c82d6200de6961', ref: button => (this.togglePasswordRevealedButton = button), onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.togglePasswordRevealed, icon: this.isPasswordRevealed ? "action-hide" : "action-show", accessibleLabel: this.isPasswordRevealed
|
|
14400
14444
|
? this.hidePasswordLabel[this.language]
|
|
14401
|
-
: 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: '
|
|
14445
|
+
: 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: '0a8bbe5ec03d73b5e673c42a7031c6b097bd8681' }, hAsync("span", { key: 'cf080989a3e7b86369904921249a95fe1cb3bc19', "aria-live": "polite" }, this.isPasswordRevealed
|
|
14402
14446
|
? this.passwordShownAriaAnnouncement[this.language]
|
|
14403
|
-
: this.passwordHiddenAriaAnnouncement[this.language]))), hAsync("slot", { key: '
|
|
14447
|
+
: this.passwordHiddenAriaAnnouncement[this.language]))), hAsync("slot", { key: '32c4cb54404e67cf564c60e555f7aee3437f0282' })), hAsync("span", { key: 'a860619ce4d528dcb8d714ef3680629640c08461', class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && this.writable && hAsync("span", { key: '3dfc64f27935e571630a215cbd69bcd2c0d8e1f1', class: "duet-input-error" }, this.error)))));
|
|
14404
14448
|
}
|
|
14405
14449
|
get element() { return getElement(this); }
|
|
14406
14450
|
static get watchers() { return {
|
|
@@ -14431,6 +14475,7 @@ class DuetInput {
|
|
|
14431
14475
|
"theme": [1025],
|
|
14432
14476
|
"expand": [4],
|
|
14433
14477
|
"disabled": [516],
|
|
14478
|
+
"readonly": [516],
|
|
14434
14479
|
"identifier": [1],
|
|
14435
14480
|
"margin": [1],
|
|
14436
14481
|
"inputAlign": [1, "input-align"],
|
|
@@ -14479,7 +14524,7 @@ class DuetInput {
|
|
|
14479
14524
|
},
|
|
14480
14525
|
"$listeners$": undefined,
|
|
14481
14526
|
"$lazyBundleId$": "-",
|
|
14482
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["error", "error"]]
|
|
14527
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["readonly", "readonly"], ["error", "error"]]
|
|
14483
14528
|
}; }
|
|
14484
14529
|
}
|
|
14485
14530
|
|
|
@@ -14716,7 +14761,7 @@ function setOpenerExpanded(el, expanded, popup = "true") {
|
|
|
14716
14761
|
}
|
|
14717
14762
|
}
|
|
14718
14763
|
|
|
14719
|
-
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{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-link:hover{color:rgb(0, 75, 129);text-decoration:none}.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}@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 .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.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: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}.duet-theme-turva.duet-link{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(185, 3, 41)}.duet-theme-turva.duet-link:hover{color:rgb(140, 0, 30)}.duet-theme-turva.duet-link.button,.duet-theme-turva.duet-link.list-button{border-color:rgb(178, 194, 205)}.duet-theme-turva.duet-link.button .duet-link-content,.duet-theme-turva.duet-link.list-button .duet-link-content{color:rgb(23, 42, 59)}.duet-theme-turva.duet-link.button:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva.duet-link.list-button:hover{border-color:rgb(178, 194, 205)}.duet-theme-turva.duet-link.list-button:hover .duet-link-content{color:rgb(230, 23, 64)}.duet-theme-turva.duet-link.card{border-color:rgb(228, 233, 237);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}.duet-theme-turva.duet-link.block,.duet-theme-turva.duet-link.block-center{color:rgb(23, 42, 59)}.duet-theme-turva.duet-link.block .duet-link-content,.duet-theme-turva.duet-link.block-center .duet-link-content{color:rgb(23, 42, 59)}.duet-theme-turva.duet-link.block:hover,.duet-theme-turva.duet-link.block-center:hover{color:rgb(185, 3, 41)}.duet-theme-turva.duet-link.block:hover .duet-link-content,.duet-theme-turva.duet-link.block-center:hover .duet-link-content{color:rgb(185, 3, 41)}.duet-theme-turva.duet-tab-to-link{min-width:120px;color:rgb(23, 42, 59)}";
|
|
14764
|
+
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{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-link:hover{color:rgb(0, 75, 129);text-decoration:none}.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}@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 .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.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: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}.duet-theme-turva.duet-link{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(185, 3, 41)}.duet-theme-turva.duet-link:hover{color:rgb(140, 0, 30)}.duet-theme-turva.duet-link.button,.duet-theme-turva.duet-link.list-button{border-color:rgb(178, 194, 205)}.duet-theme-turva.duet-link.button .duet-link-content,.duet-theme-turva.duet-link.list-button .duet-link-content{color:rgb(23, 42, 59)}.duet-theme-turva.duet-link.button:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva.duet-link.list-button:hover{border-color:rgb(178, 194, 205)}.duet-theme-turva.duet-link.list-button:hover .duet-link-content{color:rgb(230, 23, 64)}.duet-theme-turva.duet-link.card{border-color:rgb(228, 233, 237);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}.duet-theme-turva.duet-link.card:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva.duet-link.block,.duet-theme-turva.duet-link.block-center{color:rgb(23, 42, 59)}.duet-theme-turva.duet-link.block .duet-link-content,.duet-theme-turva.duet-link.block-center .duet-link-content{color:rgb(23, 42, 59)}.duet-theme-turva.duet-link.block:hover,.duet-theme-turva.duet-link.block-center:hover{color:rgb(185, 3, 41)}.duet-theme-turva.duet-link.block:hover .duet-link-content,.duet-theme-turva.duet-link.block-center:hover .duet-link-content{color:rgb(185, 3, 41)}.duet-theme-turva.duet-link.article-list{border-color:rgb(212, 221, 226)}.duet-theme-turva.duet-link.article-list .duet-link-content{color:rgb(23, 42, 59)}.duet-theme-turva.duet-link.article-list .duet-link-meta{color:rgb(72, 100, 122)}.duet-theme-turva.duet-link.article-list:focus .duet-link-content,.duet-theme-turva.duet-link.article-list:hover .duet-link-content{color:rgb(230, 23, 64)}.duet-theme-turva.duet-tab-to-link{min-width:120px;color:rgb(23, 42, 59)}";
|
|
14720
14765
|
|
|
14721
14766
|
/**
|
|
14722
14767
|
* @part duet-link - piercing selector for styling the link
|
|
@@ -14891,10 +14936,10 @@ class DuetLink {
|
|
|
14891
14936
|
const Tag = !this.url && this.variation !== "default" ? "button" : "a";
|
|
14892
14937
|
const role = !this.url && this.variation === "default" ? "button" : null;
|
|
14893
14938
|
const isButton = Tag === "button";
|
|
14894
|
-
return (hAsync(Host, { key: '
|
|
14939
|
+
return (hAsync(Host, { key: '0a7c2de12ea320f4fcf5d73e60200af11254f8c3', class: {
|
|
14895
14940
|
[`duet-link-${this.variation}`]: true,
|
|
14896
14941
|
"duet-m-0": this.margin === "none",
|
|
14897
|
-
} }, hAsync(Tag, { key: '
|
|
14942
|
+
} }, hAsync(Tag, { key: '6351d938da19503fa7c0e3526700729a9f2c054e', href: this.url, class: {
|
|
14898
14943
|
"duet-link": true,
|
|
14899
14944
|
"duet-link-is-external": this.external,
|
|
14900
14945
|
"duet-link-is-download": !!this.download,
|
|
@@ -15150,7 +15195,7 @@ class DuetListItem {
|
|
|
15150
15195
|
* Always the last one in the class.
|
|
15151
15196
|
*/
|
|
15152
15197
|
render() {
|
|
15153
|
-
return (hAsync(Host, { key: '
|
|
15198
|
+
return (hAsync(Host, { key: '93429c86b018cb9924bb270b97c4cc6ea77e15e2', class: {
|
|
15154
15199
|
"duet-theme-turva": this.theme === "turva",
|
|
15155
15200
|
"duet-no-stacking": !this.responsive,
|
|
15156
15201
|
"duet-list-item-breakpoint-x-small": this.breakpoint === "x-small",
|
|
@@ -15158,7 +15203,7 @@ class DuetListItem {
|
|
|
15158
15203
|
"duet-list-item-breakpoint-medium": this.breakpoint === "medium",
|
|
15159
15204
|
"duet-list-item-breakpoint-large": this.breakpoint === "large",
|
|
15160
15205
|
"duet-list-item-breakpoint-x-large": this.breakpoint === "x-large",
|
|
15161
|
-
} }, hAsync("dt", { key: '
|
|
15206
|
+
} }, hAsync("dt", { key: '0cecfd17dc6b92affc741ef0acd7bd0711458349' }, hAsync("slot", { key: '697172f2c68302fa10188e2b403d3cddbd00e87e', name: "label" })), hAsync("dd", { key: 'd9fd6244ee03c35c91e8b22a4ddce2daf7e97c0e' }, hAsync("slot", { key: '52593380dc62cbb4245718eaf4093fa9e1faa45c', name: "value" }))));
|
|
15162
15207
|
}
|
|
15163
15208
|
get element() { return getElement(this); }
|
|
15164
15209
|
static get style() { return duetListItemCss; }
|
|
@@ -15545,10 +15590,10 @@ class DuetMenuBarButton {
|
|
|
15545
15590
|
* Always the last one in the class.
|
|
15546
15591
|
*/
|
|
15547
15592
|
render() {
|
|
15548
|
-
return (hAsync(Host, { key: '
|
|
15593
|
+
return (hAsync(Host, { key: '88f40e311573b2d27899805495afd382b2aad3fb', role: "listitem", onfocus: () => this.setFocus() }, hAsync("button", { key: '08b48017ee3ecd55f15950dfaae5d3ad1793c903', ref: button => (this.nativeButton = button), class: {
|
|
15549
15594
|
"duet-menu-bar-button": true,
|
|
15550
15595
|
"duet-theme-turva": this.theme === "turva",
|
|
15551
|
-
}, "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: '
|
|
15596
|
+
}, "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: 'd976b8e93df053c47a8a9eb29f110032af9c5296', class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: 'ca7e1fdd2f0076481571c6e68dbbf502b07a6eac' }))));
|
|
15552
15597
|
}
|
|
15553
15598
|
get element() { return getElement(this); }
|
|
15554
15599
|
static get style() { return duetMenuBarButtonCss; }
|
|
@@ -15638,17 +15683,17 @@ class DuetMenuBarDropdown {
|
|
|
15638
15683
|
* Always the last one in the class.
|
|
15639
15684
|
*/
|
|
15640
15685
|
render() {
|
|
15641
|
-
return (hAsync(Host, { key: '
|
|
15686
|
+
return (hAsync(Host, { key: 'ff056c7f9b32fc195dce24533ee8630abfeaaf3a', role: "listitem" }, hAsync("div", { key: '60e89230ad26c406f88ac6f97b0aa6c6ba3d375e', class: {
|
|
15642
15687
|
"duet-menu-bar-dropdown": true,
|
|
15643
15688
|
"duet-theme-turva": this.theme === "turva",
|
|
15644
15689
|
active: this.open,
|
|
15645
15690
|
[`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
|
|
15646
|
-
} }, hAsync("button", { key: '
|
|
15691
|
+
} }, hAsync("button", { key: 'f17715296f5d32580c607489aa7af48e86f08d76', 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: {
|
|
15647
15692
|
active: this.open,
|
|
15648
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
15693
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: 'f8c1548339d36aac26609301b610e0f06970d3f4', class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: '8c9b33f5e4963f0a44ebfd8c2153e67273e220fe', class: "label" }, hAsync("slot", { key: '384f003e1c584084aa93a1419370fb90ee1dd12b', name: "label" }), hAsync("duet-icon", { key: '09e840b30922276af41659768e0ccdbc2dfd6bfd', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: 'fe85298a3a0c0bdffba6571a62a4946b884aaca1', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
15649
15694
|
items: true,
|
|
15650
15695
|
hidden: !this.open,
|
|
15651
|
-
} }, hAsync("slot", { key: '
|
|
15696
|
+
} }, hAsync("slot", { key: '826246d0e8db1cc67ad2549613e8ae6dc6a6a6b0' })))));
|
|
15652
15697
|
}
|
|
15653
15698
|
get element() { return getElement(this); }
|
|
15654
15699
|
static get style() { return duetMenuBarDropdownCss; }
|
|
@@ -15715,11 +15760,11 @@ class DuetMenuBarDropdownLink {
|
|
|
15715
15760
|
* Always the last one in the class.
|
|
15716
15761
|
*/
|
|
15717
15762
|
render() {
|
|
15718
|
-
return (hAsync(Host, { key: '
|
|
15763
|
+
return (hAsync(Host, { key: 'd38d954b553c14935519a49e02698a1bd32428b4' }, hAsync("a", { key: '2476410fa261eb67053dbd56f01bc335bdbcbd7d', class: {
|
|
15719
15764
|
"duet-menu-bar-dropdown-link": true,
|
|
15720
15765
|
[`duet-menu-bar-dropdown-link--slot-${this.getVariant()}`]: true,
|
|
15721
15766
|
"duet-theme-turva": this.theme === "turva",
|
|
15722
|
-
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
15767
|
+
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: 'ba2417251a7dbd8bc7148c65d0aae529f728b274', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("slot", { key: '257327a6af0a87c8565bf75cace2b5657580783a' }))));
|
|
15723
15768
|
}
|
|
15724
15769
|
get element() { return getElement(this); }
|
|
15725
15770
|
static get style() { return duetMenuBarDropdownLinkCss; }
|
|
@@ -15805,11 +15850,11 @@ class DuetMenuBarItem {
|
|
|
15805
15850
|
*/
|
|
15806
15851
|
render() {
|
|
15807
15852
|
const TagName = this.url ? "a" : "button";
|
|
15808
|
-
return (hAsync(Host, { key: '
|
|
15853
|
+
return (hAsync(Host, { key: 'e9d6de396865bf28beb5717950467d4b0d1f519c', role: "listitem" }, hAsync(TagName, { key: 'f7cbfca8d2781170838b37dfa65714ddbf932145', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
15809
15854
|
"duet-menu-bar-item": true,
|
|
15810
15855
|
"duet-theme-turva": this.theme === "turva",
|
|
15811
15856
|
active: this.active,
|
|
15812
|
-
}, 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: '
|
|
15857
|
+
}, 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: '934988ad9b43c8e3691c02a698c0677ea2629faa', class: "leading-icon", size: "auto", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: '50cbb5cdd4a117936eea719c9f176667688e74dc' }), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: 'cfe3ea2669e9d8eb1f14ffa88eacd1c08548f55c', class: {
|
|
15813
15858
|
"trailing-icon": !!this.trailingIcon,
|
|
15814
15859
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
15815
15860
|
"external-icon": !!this.external,
|
|
@@ -15874,11 +15919,11 @@ class DuetMenuBarLink {
|
|
|
15874
15919
|
* Always the last one in the class.
|
|
15875
15920
|
*/
|
|
15876
15921
|
render() {
|
|
15877
|
-
return (hAsync(Host, { key: '
|
|
15922
|
+
return (hAsync(Host, { key: '8c3490151abb08fa0f203abfa0d7376b26df086f', role: "listitem" }, hAsync("a", { key: '6b285bf13edb937dc1e7a6e5e6479ae58c9e2578', class: {
|
|
15878
15923
|
"duet-menu-bar-link": true,
|
|
15879
15924
|
"duet-theme-turva": this.theme === "turva",
|
|
15880
15925
|
active: this.active,
|
|
15881
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
15926
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '551b1bb669f59a9db03276cc4bfdebd3c42a8929', class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: '271053e138876c15abe304dcb141122d5d313f1f' }))));
|
|
15882
15927
|
}
|
|
15883
15928
|
get element() { return getElement(this); }
|
|
15884
15929
|
static get style() { return duetMenuBarLinkCss; }
|
|
@@ -15898,7 +15943,7 @@ class DuetMenuBarLink {
|
|
|
15898
15943
|
}; }
|
|
15899
15944
|
}
|
|
15900
15945
|
|
|
15901
|
-
const duetModalCss = "*,*::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}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;visibility:hidden;max-height:100vh;overflow-y:auto;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:\"\";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transform:scale(0.96);transition:300ms ease;transition-delay:0ms}.duet-modal-active .duet-modal{opacity:1;transform:none;transition:300ms ease;transition-delay:200ms}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transform:scaleY(0);transform-origin:top;transition:all 300ms ease}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-modal-close{position:
|
|
15946
|
+
const duetModalCss = "*,*::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}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;visibility:hidden;max-height:100vh;overflow-y:auto;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:\"\";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transform:scale(0.96);transition:300ms ease;transition-delay:0ms}.duet-modal-active .duet-modal{opacity:1;transform:none;transition:300ms ease;transition-delay:200ms}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transform:scaleY(0);transform-origin:top;transition:all 300ms ease}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-modal-close{position:relative;z-index:301;float:right;margin:8px}.duet-modal-slide-up .duet-modal-close{position:sticky;top:8px;right:8px}.duet-modal-heading{width:100%;padding-right:60px;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:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);letter-spacing:-0.01rem;white-space:nowrap;text-decoration:none}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}.duet-theme-turva .duet-modal{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}.duet-theme-turva .duet-modal-sticky-header{background:rgb(253, 247, 242);border-bottom:1px solid rgb(212, 221, 226)}";
|
|
15902
15947
|
|
|
15903
15948
|
// The transition below is slightly higher than the actual CSS transition as VoiceOver on
|
|
15904
15949
|
// iOS has otherwise problems moving the focus from modal back to the original element.
|
|
@@ -16214,14 +16259,13 @@ class DuetModal {
|
|
|
16214
16259
|
var _a, _b;
|
|
16215
16260
|
const iconColor = postfixTheme("primary", this.theme);
|
|
16216
16261
|
const closeColor = postfixTheme("secondary", this.theme);
|
|
16217
|
-
|
|
16218
|
-
return (hAsync("div", { key: '44ad4e8bf6516da0e6350649f8e4cae009f7cf07', 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: {
|
|
16262
|
+
return (hAsync("div", { key: 'b2154a3b1549e84c7bdbc822f5ac8a38e8504a35', 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 ? undefined : "true", tabindex: "-1", class: {
|
|
16219
16263
|
"duet-modal-container": true,
|
|
16220
16264
|
"duet-theme-turva": this.theme === "turva",
|
|
16221
16265
|
"duet-modal-active": this.open,
|
|
16222
16266
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
16223
16267
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
16224
|
-
} }, hAsync("duet-overlay", { key: '
|
|
16268
|
+
} }, hAsync("duet-overlay", { key: '36662031598a265fddec54ebcdd7d4d94e7b8625', "z-index": "-1", visible: this.open, variation: this.variation === "loader" ? "white" : "default" }), hAsync("div", { key: '68c59b43722015abb8936e559cdac7dd6aef6fe7', ref: modalInner => (this.modalInnerEl = modalInner), class: {
|
|
16225
16269
|
"duet-modal-inner": true,
|
|
16226
16270
|
[this.size]: true,
|
|
16227
16271
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
@@ -16232,22 +16276,22 @@ class DuetModal {
|
|
|
16232
16276
|
this.closeModal(e);
|
|
16233
16277
|
}
|
|
16234
16278
|
}
|
|
16235
|
-
} }, hAsync("div", { key: '
|
|
16279
|
+
} }, hAsync("div", { key: '01ea6b1e9120c277f00937fdbcd41f8b7c956700', ref: modalContentEl => (this.modalContentEl = modalContentEl), "aria-live": this.accessibleAnnounceChanges === "all" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "all" ? "true" : null, class: {
|
|
16236
16280
|
"duet-modal": true,
|
|
16237
16281
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
16238
16282
|
[this.size]: true,
|
|
16239
16283
|
[this.variation]: true,
|
|
16240
|
-
} },
|
|
16284
|
+
} }, hAsync("div", { key: '485e05e90114ba206285807ef6e5b0b704137254', class: "duet-modal-close" }, hAsync("duet-button", { key: 'add58ae26c95fe8d4f1f1f9b1320de78e4a08c02', 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 })), this.hasStickyHeader && (hAsync("div", { key: 'a00dc00eca76a103b3b8e144beac8df904bd2a27', class: "duet-modal-sticky-header" }, hAsync("slot", { key: 'd199b48814c854359c3792f967e6e9187bf9d2db', name: "sticky-header" }))), this.gutterSize !== "none" && !this.hasStickyHeader && hAsync("duet-spacer", { key: 'b175ca528a46801e52bbf75a7fb35c4736a986ba' }), hAsync("div", { key: '524aa776ad9bb4bbf48e921d0c71ca25eb71e28d', class: {
|
|
16241
16285
|
"duet-modal-body": true,
|
|
16242
16286
|
"duet-modal-gutter-none": this.gutterSize === "none",
|
|
16243
16287
|
"duet-modal-gutter-small": this.gutterSize === "small",
|
|
16244
16288
|
"duet-modal-gutter-medium": this.gutterSize === "medium",
|
|
16245
16289
|
"duet-modal-gutter-large": this.gutterSize === "large",
|
|
16246
|
-
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, hAsync("div", { key: '
|
|
16290
|
+
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, hAsync("div", { key: '90be2af349ec10c2d5ae55be8e74e50cd8032e30', class: "duet-modal-header" }, hAsync("span", { key: '6150e88c970678165ee100eedad0938196b5e0f3', class: "duet-modal-inner-slot-top" }, hAsync("slot", { key: '171a28abe15da7ae258d411b1a552b181b825749', name: "top" })), this.icon && hAsync("duet-icon", { key: 'cf52aeafd15ebfc0e71eb8573a08330bfafd6cbc', name: this.icon, size: "xx-large", color: this.color || iconColor }), this.heading && (hAsync("duet-heading", { key: '706973f2ff5fa09a241907a48ec001fb6df3efe2', "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: '8670545fd3e1ada7916a39dd3617ebf7797fa6ce', class: "duet-modal-spinner" }, hAsync("duet-spinner", { key: 'ae2f19a4913255f1ce6263e0003482bb72b6bfae', size: "large", color: postfixTheme("primary", this.theme) }))), hAsync("div", { key: '8e1a2ca420d09f50e2cea2104aade7d9e7062ff9', "aria-live": this.variation === "loader"
|
|
16247
16291
|
? "assertive"
|
|
16248
16292
|
: this.accessibleAnnounceChanges === "body"
|
|
16249
16293
|
? "polite"
|
|
16250
|
-
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, hAsync("slot", { key: '
|
|
16294
|
+
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, hAsync("slot", { key: '07830d94eeb317030caaa0cd706ebf1ef6a8e578' })))))));
|
|
16251
16295
|
}
|
|
16252
16296
|
get element() { return getElement(this); }
|
|
16253
16297
|
static get watchers() { return {
|
|
@@ -16563,23 +16607,23 @@ class DuetMultiselect {
|
|
|
16563
16607
|
*/
|
|
16564
16608
|
render() {
|
|
16565
16609
|
var _a;
|
|
16566
|
-
return (hAsync(Host, { key: '
|
|
16610
|
+
return (hAsync(Host, { key: '0710656376962142671b6c65a3d0c8fa0bfdde17', class: {
|
|
16567
16611
|
"duet-m-0": this.margin === "none",
|
|
16568
16612
|
"duet-expand": this.expand,
|
|
16569
|
-
} }, hAsync("div", { key: '
|
|
16613
|
+
} }, hAsync("div", { key: '690b2414fdae1630e4a55a9ce2e9f5dc540cc435', class: {
|
|
16570
16614
|
"duet-multiselect-container": true,
|
|
16571
16615
|
"duet-label-hidden": this.labelHidden,
|
|
16572
16616
|
"duet-theme-turva": this.theme === "turva",
|
|
16573
16617
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
16574
16618
|
"has-error": !!this.error,
|
|
16575
|
-
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync(DuetInternalLabel, { key: '
|
|
16619
|
+
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync(DuetInternalLabel, { key: 'c469c416d065e20353425c33cc235e356a9a9ac0', 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: 'e586ad708e105267607b2e41b36937c4df33bdf4', class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '86ac648e522c69ed6f761940c536cbc8c6d89c37', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '084247996400fa2100ec5aae3ccf81e46a95488b', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '2e769d052bb05ed162c5a4d5c855b71ec543aa22', class: "duet-multiselect-wrapper" }, hAsync("button", { key: '221b22293ebe302ae76087c3808a13240bab1bae', 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: '8d39dc569c01d388470dd25e1e51099add2b7bdc', 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: '6b646cb3cb2d53c003ab4bd0fb12373784bcff15', class: "duet-multiselect-badge" }, this.value.length, hAsync("duet-visually-hidden", { key: '2f19ae5e9cef683c2c776e3a52cc6308ee25fe22' }, this.selectedLangObject[this.language], ",", " ", Array.isArray(this.value) ? this.value.map(item => item.label).join(", ") : ""))), hAsync("svg", { key: 'f6731917540f67b11f344b7858feae85a2a40ef9', 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: '48f40a7f7d0c45d6f11f1eb4ae609aa111f40c22', 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: '8edf93a17bb06302959feaa6f37dace7ff6310d6', id: `${this.identifier}-checkboxes`, role: "listbox", class: {
|
|
16576
16620
|
"duet-multiselect-checkboxes": true,
|
|
16577
16621
|
"duet-multiselect-checkboxes-active": this.checkboxesVisible,
|
|
16578
|
-
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: '
|
|
16622
|
+
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: '54ec6623e55b9282483a4217aa635d8c26f5e54e', class: "duet-multiselect-all-control-buttons" }, hAsync("button", { key: 'ab167f22d9064dd059c36e115b069813894c2985', 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: 'a3f5536268c911481c9330135467a32489fe74cb', class: "duet-multiselect-clear-all", onClick: this.handleClearAllClick, id: this.getOptionIdentifier(-1), onKeyDown: (e) => this.onCheckboxKeyDown(e, -1) }, this.clearAllLabel[this.language]))), this.processedItems &&
|
|
16579
16623
|
this.processedGroups.map(group => (hAsync("fieldset", null, group.label && hAsync("legend", null, group.label), group.items.map((item, key) => {
|
|
16580
16624
|
var _a, _b;
|
|
16581
16625
|
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 }));
|
|
16582
|
-
})))))), hAsync("span", { key: '
|
|
16626
|
+
})))))), hAsync("span", { key: 'f669eea3585579caeba9b0549367509f85db35ad', 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: '32a00ccdd2e45db427a87dbabb707960b734df4d' }, this.error)))));
|
|
16583
16627
|
}
|
|
16584
16628
|
get element() { return getElement(this); }
|
|
16585
16629
|
static get watchers() { return {
|
|
@@ -16654,7 +16698,7 @@ class DuetNav {
|
|
|
16654
16698
|
* Always the last one in the class.
|
|
16655
16699
|
*/
|
|
16656
16700
|
render() {
|
|
16657
|
-
return (hAsync(Host, { key: '
|
|
16701
|
+
return (hAsync(Host, { key: '328e6c0b204e81ba8492e09f3c99e51ccf54b3c9' }, hAsync("div", { key: 'edbf3c6c3e7e66ba961ef76306be8e57bb379c82', class: { container: true, sticky: this.sticky } }, hAsync("slot", { key: 'beecebafa68e4eecf50fed6d2f66161fcf9ad4f9' }), hAsync("slot", { key: 'e86611d1f874f7fecef786352fb2485465fea16c', name: "mobile" }), hAsync("slot", { key: '614a8c925539ca4fb8820a5dbcea8a17ec0326ae', name: "desktop" }))));
|
|
16658
16702
|
}
|
|
16659
16703
|
get element() { return getElement(this); }
|
|
16660
16704
|
static get style() { return duetNavCss; }
|
|
@@ -16747,11 +16791,11 @@ class DuetNotification {
|
|
|
16747
16791
|
return `${indicatorText}${slottedText}${slottedText.endsWith(".") ? "" : "."} ${this.date}`;
|
|
16748
16792
|
}
|
|
16749
16793
|
render() {
|
|
16750
|
-
return (hAsync("div", { key: '
|
|
16794
|
+
return (hAsync("div", { key: '0755007d365b224053afc86e8ffedecc29f6de2b', role: "listitem", class: {
|
|
16751
16795
|
"duet-notification": true,
|
|
16752
16796
|
"duet-notification-highlight": this.highlight,
|
|
16753
16797
|
"duet-theme-turva": this.theme === "turva",
|
|
16754
|
-
} }, hAsync("a", { key: '
|
|
16798
|
+
} }, hAsync("a", { key: '97d9d1acc01c8cf58e0e668785678cd019b1dd74', ref: element => (this.linkElement = element), href: this.url, target: this.external ? "_blank" : "_self", "aria-label": this.getAriaLabelText() }, hAsync("div", { key: 'faa07470a724ec22d342404194c16acb4e8b4cb9', class: "duet-notification-container" }, hAsync("div", { key: '1d39f1cfafc46c55a644524fc510b26fdb6e6ebd', class: "duet-indicator-container" }, this.highlight && (hAsync("duet-indicator", { key: 'bc0b9e295f7c6915e5199c46ecaa86df05fd5d5a', variation: "new", "accessible-label": this.accessibleLabelUnread }))), hAsync("div", { key: '46714b76ca2114f2c17cabae75faf1cf50729ada', class: "duet-notification-content" }, hAsync("slot", { key: 'c8b0b56c6c9dc513634ac81f5607b4a7c9ef57ef' })), hAsync("div", { key: '1266253fe3753d8f8a652e0cbc35615743ed026d', class: "duet-notification-date" }, this.date)))));
|
|
16755
16799
|
}
|
|
16756
16800
|
get element() { return getElement(this); }
|
|
16757
16801
|
static get style() { return duetNotificationCss; }
|
|
@@ -16898,13 +16942,13 @@ class DuetNotificationDrawer {
|
|
|
16898
16942
|
* Always the last one in the class.
|
|
16899
16943
|
*/
|
|
16900
16944
|
render() {
|
|
16901
|
-
return (hAsync("div", { key: '
|
|
16945
|
+
return (hAsync("div", { key: 'f64474d7b1fc293f9f84b46af781474adc8e4e12', class: {
|
|
16902
16946
|
"duet-drawer": true,
|
|
16903
16947
|
"duet-theme-turva": this.theme === "turva",
|
|
16904
|
-
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: '
|
|
16948
|
+
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: '3a50f54565c35db0bcef5b227c931f476ead3aef', ref: el => (this.drawerButtonEl = el), type: "button", class: {
|
|
16905
16949
|
"duet-drawer-toggle": true,
|
|
16906
16950
|
"duet-theme-turva": this.theme === "turva",
|
|
16907
|
-
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (hAsync("div", { key: '
|
|
16951
|
+
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (hAsync("div", { key: 'cb9054a5811f6bb303959c289fa7b05598f80a9b', class: "duet-drawer-icon" }, hAsync("duet-icon", { key: 'ea93e752d5e5fa5151c358243b3d0f21c3398ea8', margin: "none", size: "x-small", name: this.icon, color: "currentColor" }), this.badge && hAsync("duet-indicator", { key: '2fa021b5e7ca70fc63211f03e648cff1af6a6681', variation: "change" }))), hAsync("span", { key: '517bbd72489ea86aaf16740f5e76057a0905a633', class: "duet-drawer-label" }, this.label), hAsync("div", { key: '35018504fde6cafc82064c1ac372866843b0851b', class: "duet-drawer-caret" }, hAsync("duet-icon", { key: '83ef07800bb0117286b89a88f923003cf4ca7841', margin: "none", size: "auto", icon: arrowDownIcon.svg, color: "currentColor" }))), hAsync("div", { key: 'ffc7ff35e445368c50fc98555f4147b541efd0d0', id: "duet-drawer-content", class: {
|
|
16908
16952
|
"duet-drawer-content": true,
|
|
16909
16953
|
"duet-drawer-right": this.direction === "right",
|
|
16910
16954
|
"duet-drawer-left": this.direction === "left",
|
|
@@ -17411,15 +17455,15 @@ class DuetNumberInput {
|
|
|
17411
17455
|
const identifier = this.identifier || this.inputId;
|
|
17412
17456
|
const maxlength = `${this.localizeValue(this.max)}${this.getUnitString()}`.length;
|
|
17413
17457
|
const cleanedValue = !!this.value ? SafeParseFloat(this.value, this.locale) : null;
|
|
17414
|
-
return (hAsync(Host, { key: '
|
|
17458
|
+
return (hAsync(Host, { key: 'dd6481f3c9a5c1db3d4e4edf06120a79f015d33d', class: {
|
|
17415
17459
|
"duet-theme-turva": this.theme === "turva",
|
|
17416
17460
|
"duet-expand": this.expand,
|
|
17417
17461
|
"duet-m-0": this.margin === "none",
|
|
17418
|
-
} }, hAsync("div", { key: '
|
|
17462
|
+
} }, hAsync("div", { key: 'd6c82f4b745801cd2ae8f256c7bb3f7442bd6949', class: "duet-number-container" }, hAsync("duet-input", { key: 'e4de66a5437265772070627b0cf72ad92218dba9', 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, caption: this.caption, 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: 'e1ebed47dbb766a2b12d71650327e1071f776f97', name: "tooltip", slot: "tooltip" }), hAsync("div", { key: 'b5d814557b3cb9ab4d14afd5afca0d2e7b583a5e', class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, hAsync("button", { key: '1f0d70579892176f9785c6954e9e8c937864b4b2', 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: 'ef5fc7aa7e3d4aa2780eac64dd6794488af62d51' }, this.accessibleSubtract
|
|
17419
17463
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
17420
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '
|
|
17464
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '3c5d74395785f44aaf71b2390a30158865d27ad5', icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), hAsync("button", { key: '5e0fd58cc1ea01f45694f26f14616e22b5984cf7', 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: 'b952bdea56d58c9948847ad27d0890e543b5cee8' }, this.accessibleAdd
|
|
17421
17465
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
17422
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '
|
|
17466
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: 'e5c4f242dfdb36d1935be12d716f622e6d5a7570', icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (hAsync("duet-visually-hidden", { key: '2e82bb69f5103762366ebc7d600820849c56ba08', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
|
|
17423
17467
|
}
|
|
17424
17468
|
get element() { return getElement(this); }
|
|
17425
17469
|
static get style() { return duetNumberInputCss; }
|
|
@@ -17452,6 +17496,7 @@ class DuetNumberInput {
|
|
|
17452
17496
|
"labelDefaults": [1, "label-default"],
|
|
17453
17497
|
"label": [1025],
|
|
17454
17498
|
"labelHidden": [4, "label-hidden"],
|
|
17499
|
+
"caption": [1],
|
|
17455
17500
|
"max": [2],
|
|
17456
17501
|
"name": [1],
|
|
17457
17502
|
"error": [513],
|
|
@@ -17531,7 +17576,7 @@ class DuetOverlay {
|
|
|
17531
17576
|
* Always the last one in the class.
|
|
17532
17577
|
*/
|
|
17533
17578
|
render() {
|
|
17534
|
-
return (hAsync(Host, { key: '
|
|
17579
|
+
return (hAsync(Host, { key: 'ede75e9192a5cc0ae1db5e70f9f1e1623654b5c7', "aria-hidden": "true" }, hAsync("div", { key: '12684840f86edbf45b811415a637a7c26101ae31', style: { zIndex: this.zIndex }, class: {
|
|
17535
17580
|
"duet-overlay": true,
|
|
17536
17581
|
"duet-theme-turva": this.theme === "turva",
|
|
17537
17582
|
"keep-stacking-context": this.keepStackingContext,
|
|
@@ -17621,15 +17666,15 @@ class DuetPageHeading {
|
|
|
17621
17666
|
*/
|
|
17622
17667
|
render() {
|
|
17623
17668
|
const layout = this.layout === "narrow" ? "narrow" : this.layout === "fluid" ? "fluid" : "auto";
|
|
17624
|
-
return (hAsync("div", { key: '
|
|
17669
|
+
return (hAsync("div", { key: '59dfd679550b20ce3934cff294d548fc975c1c25', class: {
|
|
17625
17670
|
"duet-page-heading": true,
|
|
17626
17671
|
"duet-theme-turva": this.theme === "turva",
|
|
17627
17672
|
"has-icon": !!this.icon,
|
|
17628
17673
|
[layout]: true,
|
|
17629
|
-
} }, hAsync("div", { key: '
|
|
17674
|
+
} }, hAsync("div", { key: '258eb3656ba0059840c72bd7806a0439ca52a415', class: "background" }, this.theme === "turva" && hAsync("div", { key: '99ded3829d56deddf33a2fc806d9dd0d72600574', class: "background-mask" }), this.theme !== "turva" && this.shape !== "none" && hAsync("div", { key: '3ba1c95200692d41c5504b61201e8509e3b6a054', class: "brand-shape" }), this.theme !== "turva" && this.shape !== "none" && hAsync("div", { key: '8887d09accb487a364fd18dfeb1184ecb92cc6c3', class: "brand-shape second-shape" }), this.icon && (hAsync("div", { key: '3177e2e35c05cb053c96928e3b0d47378e6da68e', class: {
|
|
17630
17675
|
"brand-shaped-icon": true,
|
|
17631
17676
|
"secondary-background": this.iconBackground === "secondary" && this.theme !== "turva",
|
|
17632
|
-
} }, hAsync("duet-icon", { key: '
|
|
17677
|
+
} }, hAsync("duet-icon", { key: '61898fc2452a5c18f7c259de4dc07d75cf7f8c75', background: "none", name: this.icon, margin: "none", size: "auto", responsive: false })))), hAsync("div", { key: 'ecdede2a7eecfdc568ae7ccbb0614f88c189b143', class: { heading: true, "has-back-button": this.hasButtonSlot } }, hAsync("slot", { key: '319cf123e63319a630230536b32f6157d0ee2aff', name: "heading" }), this.hasButtonSlot && (hAsync("div", { key: 'c6a4b5e6128c6da9a023d6ad2e3c06b206fc83c4', class: "button-container" }, hAsync("slot", { key: 'c78cd05232a91bf956da92477d246d4b31aadabd', name: "button" }))), this.progressCurrentStep !== undefined && this.progressTotalSteps > 0 && (hAsync("div", { key: 'd92c68af2e209cc28656d8e9817e756faa39fa29' }, hAsync("duet-spacer", { key: 'd05f4b7cb5ca7b61417bcc8423e5cf0690a5b40b', size: "large" }), hAsync("div", { key: 'c59a33d2a43f6960c6fd3bd6d8e99b078e8b1281', role: "presentation" }, this.progressIndicator()))))));
|
|
17633
17678
|
}
|
|
17634
17679
|
get element() { return getElement(this); }
|
|
17635
17680
|
static get style() { return duetPageHeadingCss; }
|
|
@@ -18036,32 +18081,32 @@ class DuetPagination {
|
|
|
18036
18081
|
* Always the last one in the class.
|
|
18037
18082
|
*/
|
|
18038
18083
|
render() {
|
|
18039
|
-
return (hAsync(Host, { key: '
|
|
18084
|
+
return (hAsync(Host, { key: 'd4335699dfa6e3335dfcafed3de2cc0b2d0e0267', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("nav", { key: '08b38d39cdd61be664e02d24ab6c518ce4e652ce', 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: {
|
|
18040
18085
|
"duet-pagination-nav": true,
|
|
18041
18086
|
[`duet-pagination-variation-${this.variation}`]: true,
|
|
18042
|
-
} }, this.numbersStore !== "" && (hAsync("div", { key: '
|
|
18087
|
+
} }, this.numbersStore !== "" && (hAsync("div", { key: 'd0dace3644fb466ba455012c04624c2a24b0ff9f', "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: '99fced562563224ca9667ddc0c2a3d0cc46604f6', theme: this.theme }, "jump to page : ", this.numbersStore))), hAsync("ol", { key: '392854e8ea2b19e6f7c28434d930db4f733b6485', id: this.listId, class: {
|
|
18043
18088
|
"duet-pagination": true,
|
|
18044
18089
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
18045
|
-
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: '
|
|
18090
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: 'de374f4e19bc9a7dea35fda71123e18c040d3cd6', class: {
|
|
18046
18091
|
"duet-pagination-page-button": true,
|
|
18047
18092
|
"duet-pagination-button-first": true,
|
|
18048
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
18093
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '7d0bf05653e187650b301293c8b48ecf7c19775a', 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: '90d13a9f2c13fcca364cc126b01ad46ce8b6f1e9', class: {
|
|
18049
18094
|
"duet-pagination-page-button": true,
|
|
18050
18095
|
"duet-pagination-button-first": true,
|
|
18051
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
18096
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '0e1f27295e8d57233da5e99e921deb0acc40bdf5', disabled: !!((this.internalSectionIndex === 0 && this.current <= 1) ||
|
|
18052
18097
|
(this.current <= 1 && this.processedPageLinks) ||
|
|
18053
|
-
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: '
|
|
18054
|
-
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '
|
|
18098
|
+
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: '3fa13a5d834e8c4a9a8a3abe93ef7466955fb3c3' }, hAsync("li", { key: '48750614360629d752ef5338feee64d26ee14070', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: '851ea5271176c28b4182c932df5420296360a660', 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: '3577f7013764aaa16cfe26677f0b517d637a55dc', class: "duet-pagination-page-number" }, "1"))), hAsync("li", { key: 'affed7955f766520ba5ab4cbbb2927c31f2e3a7b', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: 'a5c04fd07e5c086c458a50943ea23f8cdd65f136', 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: '5af97877da74ed4b46d77eda227d2c20ab045be3', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026"))))), (this.shouldDisplayNavigation() && this.renderPageNumbers()) || this.renderSelect(), (this.internalSectionIndex + 1) * this.visibleItems < this.totalPages &&
|
|
18099
|
+
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '8480cff4e6aa59cebc295fee8ee08523d87ef5ec' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (hAsync("li", { key: '0d0af2a75256c727c8fc1e362b5c8628e164d51e', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: 'b9009792ab06fed817fa435c1434c0a73fa1b9ec', 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: '268a3e0ba7d800dacc323398a00b970a72cf1cd7', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), hAsync("li", { key: 'edaa7c3c5522faf40e84cff469b09a05138ffccb', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: 'ced4311041090c7cc3351403e24247e0c5c154b5', 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
|
|
18055
18100
|
? this.processedPageLinks[this.processedPageLinks.length - 1]
|
|
18056
|
-
: undefined }, hAsync("div", { key: '
|
|
18101
|
+
: undefined }, hAsync("div", { key: '9c6a910c389d177383641955b31555b814df5694', class: "duet-pagination-page-number" }, this.totalPages))))), hAsync("li", { key: 'df2ef26b5062b14d09f74e6bf165673834d89d98', class: {
|
|
18057
18102
|
"duet-pagination-page-button": true,
|
|
18058
18103
|
"duet-pagination-button-last": true,
|
|
18059
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
18104
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: 'ef49bbd3a02a2938e5d96cf667078e999051c49e', disabled: !!((this.current === this.totalPages &&
|
|
18060
18105
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
18061
|
-
(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: '
|
|
18106
|
+
(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: 'bcc8fc11ffaf043e45579c55efc07afc16fe9347', class: {
|
|
18062
18107
|
"duet-pagination-page-button": true,
|
|
18063
18108
|
"duet-pagination-button-last": true,
|
|
18064
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
18109
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: 'fb6f817b26e12d521918dafb1bf356d8ea75d9b5', disabled: (this.current === this.totalPages &&
|
|
18065
18110
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
18066
18111
|
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 })))))));
|
|
18067
18112
|
}
|
|
@@ -18134,14 +18179,14 @@ class DuetPanel {
|
|
|
18134
18179
|
inheritGlobalTheme(this);
|
|
18135
18180
|
}
|
|
18136
18181
|
render() {
|
|
18137
|
-
return (hAsync(Host, { key: '
|
|
18182
|
+
return (hAsync(Host, { key: 'f37216ed42183b04d0adc65eaa6e83562dd6cde5', class: { "duet-m-0": this.margin === "none" } }, hAsync("section", { key: '6be8f932e02e034eb5dedcd260162d19c53377d6', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, "aria-describedby": this.accessibleDescribedBy, class: {
|
|
18138
18183
|
"duet-panel": true,
|
|
18139
18184
|
"duet-theme-turva": this.theme === "turva",
|
|
18140
18185
|
[this.variation.split("-")[0]]: true,
|
|
18141
18186
|
[this.variation.split("-")[1]]: true,
|
|
18142
18187
|
[`padding-${this.padding}`]: true,
|
|
18143
18188
|
border: this.border,
|
|
18144
|
-
} }, hAsync("slot", { key: '
|
|
18189
|
+
} }, hAsync("slot", { key: 'ce0682b4b1c4a663c5f58f12c5e92d5bca0da715' }))));
|
|
18145
18190
|
}
|
|
18146
18191
|
get element() { return getElement(this); }
|
|
18147
18192
|
static get style() { return duetPanelCss; }
|
|
@@ -18214,7 +18259,7 @@ class DuetParagraph {
|
|
|
18214
18259
|
const color = getColorByName(this.color);
|
|
18215
18260
|
// aria-describedby is to fix accessibility issue in Chrome where duet-paragraphs
|
|
18216
18261
|
// are not announced when placed inside duet-modal
|
|
18217
|
-
return (hAsync(Host, { key: '
|
|
18262
|
+
return (hAsync(Host, { key: '1fcdbc323b600e21f69c2b1f91343aacdc8c6552', "aria-describedby": this.id }, hAsync("p", { key: '0d8f3bd22932b3520707fb4f1013816bc88bd779', id: this.id, class: {
|
|
18218
18263
|
"duet-paragraph": true,
|
|
18219
18264
|
"duet-paragraph-small": this.size === "small",
|
|
18220
18265
|
"duet-paragraph-semi-bold": this.weight === "semi-bold",
|
|
@@ -18223,7 +18268,7 @@ class DuetParagraph {
|
|
|
18223
18268
|
[this.variation]: true,
|
|
18224
18269
|
"duet-theme-turva": this.theme === "turva",
|
|
18225
18270
|
"duet-inherit-color": !this.color && this.inheritingParents.some(p => this.element.closest(p)),
|
|
18226
|
-
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: '
|
|
18271
|
+
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: '3ab49870546786d333d5e1d2c4d2271d129d990e' }))));
|
|
18227
18272
|
}
|
|
18228
18273
|
get element() { return getElement(this); }
|
|
18229
18274
|
static get style() { return duetParagraphCss; }
|
|
@@ -20119,6 +20164,7 @@ class DuetPhoneInput {
|
|
|
20119
20164
|
this.handleBlur = () => {
|
|
20120
20165
|
//console.log(ev)
|
|
20121
20166
|
};
|
|
20167
|
+
this.setPopupMenuWidth = () => (this.countryCodePopup.shadowRoot.querySelector("div").style.width = `${this.element.clientWidth}px`);
|
|
20122
20168
|
this.handleInput = () => {
|
|
20123
20169
|
var _a, _b, _c;
|
|
20124
20170
|
const currentValue = (_b = (_a = this.duetInputElement) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.trim();
|
|
@@ -20145,6 +20191,7 @@ class DuetPhoneInput {
|
|
|
20145
20191
|
this.handleCountryCodeSelectorOpen = () => {
|
|
20146
20192
|
this.countryCodePopup.controller = this.countryCodeButton;
|
|
20147
20193
|
this.countryCodePopup.show();
|
|
20194
|
+
this.setPopupMenuWidth();
|
|
20148
20195
|
};
|
|
20149
20196
|
this.handleCountryCodeSelectorSelect = (ev) => {
|
|
20150
20197
|
const item = ev.target.closest("duet-popup-menu-item");
|
|
@@ -21045,6 +21092,88 @@ const shift = function (options) {
|
|
|
21045
21092
|
};
|
|
21046
21093
|
};
|
|
21047
21094
|
|
|
21095
|
+
/**
|
|
21096
|
+
* Provides data that allows you to change the size of the floating element —
|
|
21097
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
21098
|
+
* width of the reference element.
|
|
21099
|
+
* @see https://floating-ui.com/docs/size
|
|
21100
|
+
*/
|
|
21101
|
+
const size = function (options) {
|
|
21102
|
+
if (options === void 0) {
|
|
21103
|
+
options = {};
|
|
21104
|
+
}
|
|
21105
|
+
return {
|
|
21106
|
+
name: 'size',
|
|
21107
|
+
options,
|
|
21108
|
+
async fn(state) {
|
|
21109
|
+
const {
|
|
21110
|
+
placement,
|
|
21111
|
+
rects,
|
|
21112
|
+
platform,
|
|
21113
|
+
elements
|
|
21114
|
+
} = state;
|
|
21115
|
+
const {
|
|
21116
|
+
apply = () => {},
|
|
21117
|
+
...detectOverflowOptions
|
|
21118
|
+
} = evaluate(options, state);
|
|
21119
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
21120
|
+
const side = getSide(placement);
|
|
21121
|
+
const alignment = getAlignment(placement);
|
|
21122
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
|
21123
|
+
const {
|
|
21124
|
+
width,
|
|
21125
|
+
height
|
|
21126
|
+
} = rects.floating;
|
|
21127
|
+
let heightSide;
|
|
21128
|
+
let widthSide;
|
|
21129
|
+
if (side === 'top' || side === 'bottom') {
|
|
21130
|
+
heightSide = side;
|
|
21131
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
|
21132
|
+
} else {
|
|
21133
|
+
widthSide = side;
|
|
21134
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
21135
|
+
}
|
|
21136
|
+
const overflowAvailableHeight = height - overflow[heightSide];
|
|
21137
|
+
const overflowAvailableWidth = width - overflow[widthSide];
|
|
21138
|
+
const noShift = !state.middlewareData.shift;
|
|
21139
|
+
let availableHeight = overflowAvailableHeight;
|
|
21140
|
+
let availableWidth = overflowAvailableWidth;
|
|
21141
|
+
if (isYAxis) {
|
|
21142
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
21143
|
+
availableWidth = alignment || noShift ? min$1(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
21144
|
+
} else {
|
|
21145
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
21146
|
+
availableHeight = alignment || noShift ? min$1(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
21147
|
+
}
|
|
21148
|
+
if (noShift && !alignment) {
|
|
21149
|
+
const xMin = max$1(overflow.left, 0);
|
|
21150
|
+
const xMax = max$1(overflow.right, 0);
|
|
21151
|
+
const yMin = max$1(overflow.top, 0);
|
|
21152
|
+
const yMax = max$1(overflow.bottom, 0);
|
|
21153
|
+
if (isYAxis) {
|
|
21154
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max$1(overflow.left, overflow.right));
|
|
21155
|
+
} else {
|
|
21156
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max$1(overflow.top, overflow.bottom));
|
|
21157
|
+
}
|
|
21158
|
+
}
|
|
21159
|
+
await apply({
|
|
21160
|
+
...state,
|
|
21161
|
+
availableWidth,
|
|
21162
|
+
availableHeight
|
|
21163
|
+
});
|
|
21164
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
21165
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
21166
|
+
return {
|
|
21167
|
+
reset: {
|
|
21168
|
+
rects: true
|
|
21169
|
+
}
|
|
21170
|
+
};
|
|
21171
|
+
}
|
|
21172
|
+
return {};
|
|
21173
|
+
}
|
|
21174
|
+
};
|
|
21175
|
+
};
|
|
21176
|
+
|
|
21048
21177
|
function getWindow(node) {
|
|
21049
21178
|
var _node$ownerDocument;
|
|
21050
21179
|
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
@@ -21805,10 +21934,19 @@ class DuetPopupMenu {
|
|
|
21805
21934
|
if (!this.openButton) {
|
|
21806
21935
|
return;
|
|
21807
21936
|
}
|
|
21937
|
+
if (this.menuElement) {
|
|
21938
|
+
this.menuElement.style.maxHeight = "";
|
|
21939
|
+
}
|
|
21808
21940
|
const middleware = [
|
|
21809
21941
|
offset({ mainAxis: this.mainAxisOffset, crossAxis: this.crossAxisOffset }),
|
|
21810
21942
|
this.allowVerticalFlip && flip(),
|
|
21811
21943
|
shift({ padding: 5 }),
|
|
21944
|
+
size({
|
|
21945
|
+
padding: 5,
|
|
21946
|
+
apply: ({ availableHeight, elements }) => {
|
|
21947
|
+
elements.floating.style.maxHeight = `${availableHeight}px`;
|
|
21948
|
+
},
|
|
21949
|
+
}),
|
|
21812
21950
|
].filter(Boolean);
|
|
21813
21951
|
const coordinates = await computePosition(this.openButton, this.menuElement, {
|
|
21814
21952
|
middleware,
|
|
@@ -22084,17 +22222,17 @@ class DuetPopupMenu {
|
|
|
22084
22222
|
overflowY: "auto",
|
|
22085
22223
|
height: this.popupMenuStyleHeight,
|
|
22086
22224
|
};
|
|
22087
|
-
return (hAsync(Host, { key: '
|
|
22225
|
+
return (hAsync(Host, { key: '719d2a7e1c11ff9163309781fec512cc4e37fa4a', role: this.accessibleRole === "menu" ? "application" : null }, hAsync("div", { key: 'a8dfefb0508a16c814d88e2fecc32409011f90db', ref: element => {
|
|
22088
22226
|
this.menuElement = element;
|
|
22089
22227
|
}, style: styles, class: {
|
|
22090
22228
|
open: this.open,
|
|
22091
22229
|
"duet-popup-menu-list": true,
|
|
22092
22230
|
"duet-theme-turva": this.theme === "turva",
|
|
22093
22231
|
"scroll-visible": this.scrollLimit < this.itemElements.length,
|
|
22094
|
-
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (hAsync("div", { key: '
|
|
22232
|
+
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (hAsync("div", { key: 'd8332f24330773e5d0be9adcde515d949c95c08d' }, hAsync("duet-input", { key: 'e2754d948c53aa5b1af9752bd8705b32b3a93bcb', 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: 'f8fe6c8dacb340d88c4896ce56c2ccecd38f655e' }, hAsync("span", { key: 'ccca6cce4b4c5852c2bbb50954c002505a6d2872', role: "status" }, `
|
|
22095
22233
|
${this.filterResultCount}/${this.itemElements.length}
|
|
22096
22234
|
${this.filterResultCountLabel[this.language]}
|
|
22097
|
-
`)), hAsync("duet-spacer", { key: '
|
|
22235
|
+
`)), hAsync("duet-spacer", { key: '843f6111e7484d49e20e528e95e090678812d819', size: "xx-small" }))), hAsync("slot", { key: 'f5c3eb16c8bc812f982ec6c2e0b95f5cbbe643cc' }))));
|
|
22098
22236
|
}
|
|
22099
22237
|
get element() { return getElement(this); }
|
|
22100
22238
|
static get watchers() { return {
|
|
@@ -22137,7 +22275,7 @@ class DuetPopupMenu {
|
|
|
22137
22275
|
}; }
|
|
22138
22276
|
}
|
|
22139
22277
|
|
|
22140
|
-
const duetPopupMenuItemCss = "*,*::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:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{position:relative;z-index:1;display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding: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:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer;border-radius:4px}.duet-popup-menu-item:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-popup-menu-item.active{z-index:0;background:rgb(240, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}.active-descendant{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .active-descendant,.active-descendant.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-popup-menu-item.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)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(253, 247, 242)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(251, 235, 225)}";
|
|
22278
|
+
const duetPopupMenuItemCss = "*,*::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:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{position:relative;z-index:1;display:flex;flex-grow:1;gap:12px;align-items:center;min-width:0;height:100%;padding: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:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer;border-radius:4px}.duet-popup-menu-item:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-popup-menu-item.active{z-index:0;background:rgb(240, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1;min-width:0}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}.active-descendant{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .active-descendant,.active-descendant.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-popup-menu-item.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)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(253, 247, 242)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(251, 235, 225)}";
|
|
22141
22279
|
|
|
22142
22280
|
class DuetPopupMenuItem {
|
|
22143
22281
|
constructor(hostRef) {
|
|
@@ -22239,11 +22377,11 @@ class DuetPopupMenuItem {
|
|
|
22239
22377
|
};
|
|
22240
22378
|
// Without the role ternary Safari/iPhone wouldn't announce the label for role menuitem.
|
|
22241
22379
|
// This is a tradeoff and now Safari announces these items as buttons and links with the label.
|
|
22242
|
-
return (hAsync(Host, { key: '
|
|
22380
|
+
return (hAsync(Host, { key: '5a9f85c614eb0525860c91e07dac83db868b26ff', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, hAsync(TagName, { key: 'a7362c89ea53df72a450570693052218434c1cb3', ref: element => (this.itemElement = element), tabIndex: this.accessibleRole === "listitem" ? 0 : -1, onFocus: this.onFocus, onBlur: this.onBlur, role: `${TagName === "a" ? "link" : "button"}`, "aria-label": this.accessibleLabel, class: classes, value: this.value, href: this.url, target: this.external ? "_blank" : undefined, rel: this.external ? "noopener" : undefined, lang: TagName === "button" ? undefined : this.targetLanguage, hreflang: TagName === "button" ? undefined : this.targetLanguage, "aria-current": this.active ? "true" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '4c19fb2ac64438dc692a6c81cf8d51b48114cca7', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), hAsync("span", { key: 'e5ae676e11f424cae135d54b5bab02d2de476eb8', class: "duet-popup-menu-item-label" }, hAsync("slot", { key: '42cc85d521d8515ce3d5e413c117a98d41f008ff' })), (this.trailingIcon || this.active || (this.url && this.external)) && (hAsync("duet-icon", { key: '2a675b18dc0e1162df79ae87fab5ebeda3477959', name: this.url && this.external
|
|
22243
22381
|
? newWindowIcon.title
|
|
22244
22382
|
: this.active
|
|
22245
22383
|
? "messaging-checked-small"
|
|
22246
|
-
: 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: '
|
|
22384
|
+
: 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: '2d23cea5ab743b54774fbda5a252153d11e1ddf5', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
22247
22385
|
}
|
|
22248
22386
|
get element() { return getElement(this); }
|
|
22249
22387
|
static get style() { return duetPopupMenuItemCss; }
|
|
@@ -22449,12 +22587,12 @@ class DuetPromoCard {
|
|
|
22449
22587
|
},
|
|
22450
22588
|
sources: parsePossibleJSON(this.sources),
|
|
22451
22589
|
};
|
|
22452
|
-
return (hAsync(Host, { key: '
|
|
22590
|
+
return (hAsync(Host, { key: 'a11868d1112419d418d0e9ed0fb62d5cfad351e4', class: { "duet-m-0": this.margin === "none" } }, hAsync("aside", { key: '15a7d5bbf45eb253980ec7d5a9d1a0ab22567eb5', class: {
|
|
22453
22591
|
"duet-promo-card": true,
|
|
22454
22592
|
"duet-theme-turva": this.theme === "turva",
|
|
22455
22593
|
"no-bg-color": !this.backgroundColor,
|
|
22456
22594
|
"duet-promo-card-link": !!this.url,
|
|
22457
|
-
}, style: bannerStyles }, hAsync(TagName, { key: '
|
|
22595
|
+
}, style: bannerStyles }, hAsync(TagName, { key: '74cafd91fd84b708b39d04ab2ff76e80f040c6cd', href: this.url, class: { "content-wrapper": true, "duet-theme-turva": this.theme === "turva" }, ref: element => (this.aOrDivElement = element) }, hAsync(DuetPicture, Object.assign({ key: '455e032e836d10caf961d1b7e9e9f5927ee2110c' }, pictureSource)), hAsync("div", { key: '8b8d9f4df668c52eed6d356a5713474760d38f0c', class: "content" }, this.hasPreHeadingSlot && (hAsync("div", { key: '30c8391d3082c4f13fd5fe15688078834b1d33b6', class: "pre-heading" }, hAsync("slot", { key: 'e1f9aff9e5943734f31af4a79d826eec45fed120', name: "pre-heading" }))), this.hasHeadingSlot && (hAsync("div", { key: 'b540f06b51e05fefadd176294331c5333977fa45', class: "heading" }, hAsync("duet-heading", { key: 'fce865ee3ea25de126bc75c4f2b96daacf2470d3', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.headingLevel, "visual-level": "h3", margin: "none", color: postfixTheme(this.textColor, this.theme) }, hAsync("span", { key: '46225638ad07ce667b2cb7d8a341e404fa091b1f' }, hAsync("slot", { key: 'd8d502652a8163b0437669aa07f2b933eb3f630d', name: "heading" }))))), this.hasDescriptionSlot && (hAsync("div", { key: '4d3ce20fc62961f6b9ebd4a1846bf55db3d33b2e', class: "description" }, hAsync("duet-paragraph", { key: '058e06c452f4cdaeb9954f44dfa2dc48c15841a1', theme: this.theme, margin: "none", color: postfixTheme(this.textColor, this.theme) }, hAsync("span", { key: 'f74e2644fdfbba489502f98ff4e4a9e2b20d06eb' }, hAsync("slot", { key: '1a570c3b1db0b4964069fc8b9f3a5bd56a8de326', name: "description" }))))), this.hasActionSlot && (hAsync("div", { key: '2ab71f64f6bbccf208b4281a096df0488c34d580', class: "action" }, hAsync("slot", { key: '120257629db8b69ee16078f519e55a163c16687d', name: "action" }))))))));
|
|
22458
22596
|
}
|
|
22459
22597
|
get element() { return getElement(this); }
|
|
22460
22598
|
static get style() { return duetPromoCardCss; }
|
|
@@ -22662,17 +22800,17 @@ class DuetRadio {
|
|
|
22662
22800
|
* Always the last one in the class.
|
|
22663
22801
|
*/
|
|
22664
22802
|
render() {
|
|
22665
|
-
return (hAsync(Host, { key: '
|
|
22803
|
+
return (hAsync(Host, { key: '29c7e9f14ff4c754ebba4120c003a837a0ac32f0', class: {
|
|
22666
22804
|
vertical: this.groupDirection === "vertical",
|
|
22667
22805
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
22668
22806
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
22669
22807
|
"duet-m-0": this.margin === "none",
|
|
22670
|
-
} }, hAsync("div", { key: '
|
|
22808
|
+
} }, hAsync("div", { key: 'd2408d28b5d18fd9f039e12263dfea29aebe3b00', class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("slot", { key: '73c0247859265711e30f1b2aa9a6d88e8fec2d65', name: "input" }), hAsync("label", { key: '03196671dde4b1ec067e049f1d9a10715fa48cda', inert: true, ref: element => (this.labelElement = element), class: {
|
|
22671
22809
|
"duet-label": true,
|
|
22672
22810
|
checked: this.checked,
|
|
22673
22811
|
focus: this.focus,
|
|
22674
22812
|
disabled: this.disabled || this.groupDisabled,
|
|
22675
|
-
} }, hAsync("div", { key: '
|
|
22813
|
+
} }, hAsync("div", { key: '49caed7ab06483a88f1ec6e13b42d58bbd6d0c49', class: "duet-label-content" }, this.hasLabel ? hAsync("slot", { name: "label" }) : this.label)))));
|
|
22676
22814
|
}
|
|
22677
22815
|
get element() { return getElement(this); }
|
|
22678
22816
|
static get style() { return duetRadioCss; }
|
|
@@ -22867,7 +23005,7 @@ class DuetRadioGroup {
|
|
|
22867
23005
|
* Always the last one in the class.
|
|
22868
23006
|
*/
|
|
22869
23007
|
render() {
|
|
22870
|
-
return (hAsync(Host, { key: '
|
|
23008
|
+
return (hAsync(Host, { key: 'b2b6d23b32ce0192c2793ac76f8178b4658abf78', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, hAsync("duet-fieldset", { key: '51275fe0f808f32e82bda0389f306546f006eb9d', 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: 'f12dac2f01fd32293e7d075e70ecedad6695709e', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: 'bb8d90fd7e329d57129fc7594ad6cd13e142fe3c', name: "tooltip", slot: "tooltip" }), hAsync("div", { key: 'c49b8642d476b6b3a43d286481523adf573d5232', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: '7a0f2eb3f85a4ac1803ae0be898aadc1360a98ea' })))));
|
|
22871
23009
|
}
|
|
22872
23010
|
get element() { return getElement(this); }
|
|
22873
23011
|
static get watchers() { return {
|
|
@@ -23055,13 +23193,13 @@ class DuetRangeSlider {
|
|
|
23055
23193
|
const rangeStyles = {
|
|
23056
23194
|
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
23057
23195
|
};
|
|
23058
|
-
return (hAsync(Host, { key: '
|
|
23196
|
+
return (hAsync(Host, { key: '740ff7d06f193b8bfe148e68702228b0e969e177', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, hAsync("div", { key: 'd401cbcaed967a4f946771a878893bbdf5b8b765', class: {
|
|
23059
23197
|
"duet-range-container": true,
|
|
23060
23198
|
"duet-label-hidden": this.labelHidden,
|
|
23061
23199
|
"duet-theme-turva": this.theme === "turva",
|
|
23062
23200
|
"duet-ie": isInternetExplorer(),
|
|
23063
23201
|
"duet-range-disabled": this.disabled,
|
|
23064
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
23202
|
+
} }, hAsync(DuetInternalLabel, { key: 'd19d2ae90fe8aba1b8894566f9cd1c445c56df7a', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), hAsync("output", { key: 'c596df8a741761dd493cf18adf08f7f0f1f4b94f', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), hAsync("input", { key: 'de318d3817d8f23921312361fe2f35fa9b79dc88', 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" }))));
|
|
23065
23203
|
}
|
|
23066
23204
|
get element() { return getElement(this); }
|
|
23067
23205
|
static get style() { return duetRangeSliderCss; }
|
|
@@ -23290,10 +23428,10 @@ class DuetRangeStepper {
|
|
|
23290
23428
|
* Always the last one in the class.
|
|
23291
23429
|
*/
|
|
23292
23430
|
render() {
|
|
23293
|
-
return (hAsync("div", { key: '
|
|
23431
|
+
return (hAsync("div", { key: 'ee60a3b8c9a38eef22d54525e2173980f4471a80', class: {
|
|
23294
23432
|
"duet-range-stepper": true,
|
|
23295
23433
|
"duet-theme-turva": this.theme === "turva",
|
|
23296
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: '
|
|
23434
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: '802f99d51d6cab2ed946337466def72d9fdad351', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), hAsync("duet-action-button", { key: '396ccc56f5b5617029313bc1ade243103a5b1a2a', 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: '90f158af1224b99186b4b24b6089b37afa9264f0', 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: "" })));
|
|
23297
23435
|
}
|
|
23298
23436
|
get element() { return getElement(this); }
|
|
23299
23437
|
static get watchers() { return {
|
|
@@ -23604,18 +23742,18 @@ class DuetScrollable {
|
|
|
23604
23742
|
* Always the last one in the class.
|
|
23605
23743
|
*/
|
|
23606
23744
|
render() {
|
|
23607
|
-
return (hAsync(Host, { key: '
|
|
23745
|
+
return (hAsync(Host, { key: '8c26c49fa79b5ae44744540e1910fc5cd23e2280', class: {
|
|
23608
23746
|
"duet-theme-turva": this.theme === "turva",
|
|
23609
23747
|
"duet-theme-default": this.theme === "default",
|
|
23610
|
-
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: '
|
|
23748
|
+
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: 'a56b751635fce29f6cd1838c696267913e1a8bb7', class: {
|
|
23611
23749
|
collapse: true,
|
|
23612
23750
|
hide: !this.needsScrolling && !this.collapsed,
|
|
23613
|
-
} }, hAsync("duet-button", { key: '
|
|
23751
|
+
} }, hAsync("duet-button", { key: '5dbff0b7fbcdc5be8d30276efc1d537e14715133', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, hAsync("slot", { key: 'eba374d5ac518957c878f5c8b7610cc749776908', name: "collapse-button-label" })))), hAsync("div", { key: '3aa49b4cc6c52939d07e56f53aa02f915cc94dfd', class: {
|
|
23614
23752
|
"duet-scrollable-items": true,
|
|
23615
23753
|
buttons: this.buttons,
|
|
23616
23754
|
center: this.center,
|
|
23617
23755
|
"duet-theme-turva": this.theme === "turva",
|
|
23618
|
-
} }, this.buttons && this.renderButton("left"), hAsync("div", { key: '
|
|
23756
|
+
} }, this.buttons && this.renderButton("left"), hAsync("div", { key: 'c85bf3929c372cbea0b8be43f5e9aa912ef0df2e', class: {
|
|
23619
23757
|
"duet-scrollable-list": true,
|
|
23620
23758
|
[`duet-scrollable-list--${this.buttonPosition}`]: true,
|
|
23621
23759
|
[`gap-${this.gap}`]: true,
|
|
@@ -23623,7 +23761,7 @@ class DuetScrollable {
|
|
|
23623
23761
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
23624
23762
|
[`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
|
|
23625
23763
|
"duet-scrollable-stretch": this.stretch,
|
|
23626
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: '
|
|
23764
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: 'a5b51ed3a159ce2b580850e8973800c75af4b3d5' })), this.buttons && this.renderButton("right"))));
|
|
23627
23765
|
}
|
|
23628
23766
|
get element() { return getElement(this); }
|
|
23629
23767
|
static get watchers() { return {
|
|
@@ -23683,13 +23821,13 @@ class DuetSectionLayout {
|
|
|
23683
23821
|
* Always the last one in the class.
|
|
23684
23822
|
*/
|
|
23685
23823
|
render() {
|
|
23686
|
-
return (hAsync(Host, { key: '
|
|
23824
|
+
return (hAsync(Host, { key: 'b94e0fb95034731dd6fa96fd68011589fef87858', class: {
|
|
23687
23825
|
"duet-middle": this.middle,
|
|
23688
23826
|
"duet-ie": isInternetExplorer(),
|
|
23689
|
-
} }, hAsync("div", { key: '
|
|
23827
|
+
} }, hAsync("div", { key: '12e1c3868a43482d02a1e9103593015035dfce3d', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '058f4850f071237d9fa1eb4eec97f760b8113a25', class: {
|
|
23690
23828
|
"duet-layout": true,
|
|
23691
23829
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
23692
|
-
} }, hAsync("section", { key: '
|
|
23830
|
+
} }, hAsync("section", { key: '6138f2dda261d7823a9b6b5db4e0c8c7d7e0a335', class: "duet-main" }, hAsync("slot", { key: '3d190b45ea4e7c773c4c74c12486c802d8067536' }))))));
|
|
23693
23831
|
}
|
|
23694
23832
|
get element() { return getElement(this); }
|
|
23695
23833
|
static get style() { return duetSectionLayoutCss; }
|
|
@@ -23902,23 +24040,23 @@ class DuetSelect {
|
|
|
23902
24040
|
*/
|
|
23903
24041
|
render() {
|
|
23904
24042
|
const identifier = this.identifier || this.selectId;
|
|
23905
|
-
return (hAsync(Host, { key: '
|
|
24043
|
+
return (hAsync(Host, { key: '05edeb2d61b86141dafcb6a3a124497b41bb0242', class: {
|
|
23906
24044
|
"duet-m-0": this.margin === "none",
|
|
23907
24045
|
"duet-expand": this.expand,
|
|
23908
24046
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23909
|
-
} }, hAsync("div", { key: '
|
|
24047
|
+
} }, hAsync("div", { key: '897d4e5471ec22b463adb6629b2d3c7ed2e4c8e1', class: {
|
|
23910
24048
|
"duet-select-container": true,
|
|
23911
24049
|
"duet-label-hidden": this.labelHidden,
|
|
23912
24050
|
"duet-theme-turva": this.theme === "turva",
|
|
23913
24051
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23914
24052
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
23915
24053
|
"has-error": !!this.error,
|
|
23916
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
24054
|
+
} }, hAsync(DuetInternalLabel, { key: '50c26fd239285a6a168f54f0974c94fa4d5ccc5e', 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: '3337a7a9d80314cd7bd69816200ea8adc9ed64cc', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: 'e59013542be31c7f564f347ac36c6c58716c1fad', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '6f9a2f7d3b1891be67ef2d99320466d6b89d4945', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '856cb3b0e207b4c440b9542c3aed96f5d35b3c3b', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: '20ca49020566bd26705715a12279ad043ea0d40d', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), hAsync("slot", { key: '5d2dd785db740afbe15e754d2080f39fb93534fb' }), hAsync("select", { key: '2e2f8e99ae58d570c4756ae8801ce5d1293ae806', 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: 'a6b868ec1eefe2c508c38a73a97d1e19f1e04f14', 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 => {
|
|
23917
24055
|
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
23918
|
-
}))), hAsync("div", { key: '
|
|
24056
|
+
}))), hAsync("div", { key: 'bb4b1ce4fcc1ced68464eb4e89e65b2f31d9c489', class: {
|
|
23919
24057
|
"duet-select": true,
|
|
23920
24058
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23921
|
-
}, "aria-hidden": "true" }, hAsync("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (hAsync("svg", { key: '
|
|
24059
|
+
}, "aria-hidden": "true" }, hAsync("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (hAsync("svg", { key: 'dd8a6f6455d08d562c17bc41295567fbf6c2b756', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'efc3261cede3e5ec10932481cd2a2415bb4ff6b3', 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: '973409781026e93c2b343a47895c2051152ccf66', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), hAsync("span", { key: '8c4375727be85a26ebc724cefb69600193a5a3af', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), hAsync("span", { key: '184737a1361d67fc58be1e54e92ce17b1e9b9d9b', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '20bb85898431127cd66bc9b71ac18b99d9075ae7', class: "duet-select-error" }, this.error)))));
|
|
23922
24060
|
}
|
|
23923
24061
|
get element() { return getElement(this); }
|
|
23924
24062
|
static get watchers() { return {
|
|
@@ -23998,9 +24136,9 @@ class DuetShapedImage {
|
|
|
23998
24136
|
const style = {
|
|
23999
24137
|
"--rotation": `${this.rotation}deg`,
|
|
24000
24138
|
};
|
|
24001
|
-
return (hAsync(Host, { key: '
|
|
24139
|
+
return (hAsync(Host, { key: '7b1d056821d3a87f329524519264ae42642f79b2', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, hAsync("span", { key: 'cfee37d6e11b4c774057f6e93efc6b4411b4535c', class: {
|
|
24002
24140
|
"shaped-image": true,
|
|
24003
|
-
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: '
|
|
24141
|
+
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: '1b81306ffb9c9c34a2301b952ed6894705f2cb03', class: "shaped-image-mask", role: "presentation" }, hAsync("span", { key: 'de6e0992fec3395802b4ed7863e969b26405a329', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
|
|
24004
24142
|
}
|
|
24005
24143
|
static get style() { return duetShapedImageCss; }
|
|
24006
24144
|
static get cmpMeta() { return {
|
|
@@ -24070,12 +24208,12 @@ class DuetShareChart {
|
|
|
24070
24208
|
this.itemsTotalValue = this.items.reduce((total, { value }) => total + value, 0);
|
|
24071
24209
|
}
|
|
24072
24210
|
render() {
|
|
24073
|
-
return (hAsync(Host, { key: '
|
|
24211
|
+
return (hAsync(Host, { key: 'cbf28a10c67b0f2b45f925b2fc1e3307eb28b417' }, hAsync("div", { key: '5d21486e2571bf894d01ff990a144334a1c54690', class: "duet-share-chart-horizontal-bar", role: "presentation" }, this.items
|
|
24074
24212
|
.filter(i => !!i.value)
|
|
24075
24213
|
.map(item => (hAsync("span", { class: "duet-share-chart-share", style: {
|
|
24076
24214
|
width: `${(item.value / this.itemsTotalValue) * 100}%`,
|
|
24077
24215
|
backgroundColor: getColorByName(item.color, this.theme),
|
|
24078
|
-
} })))), hAsync("ul", { key: '
|
|
24216
|
+
} })))), hAsync("ul", { key: 'd292d9aecfdbc152d1c2cc8beb81abb295580fe7', 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: '12967cf08700fdf0fee3741b3ba552c6eb89d565' })));
|
|
24079
24217
|
}
|
|
24080
24218
|
get element() { return getElement(this); }
|
|
24081
24219
|
static get style() { return duetShareChartCss; }
|
|
@@ -24102,7 +24240,7 @@ class DuetShareChartItem {
|
|
|
24102
24240
|
this.value = 0;
|
|
24103
24241
|
}
|
|
24104
24242
|
render() {
|
|
24105
|
-
return (hAsync(Host, { key: '
|
|
24243
|
+
return (hAsync(Host, { key: 'a4f958f8110b3d7c6c18999ab4c96346923715e6' }, hAsync("div", { key: 'e0253794e39235b6e3f93d475c7a84a21f9ae8ef', hidden: true }, hAsync("slot", { key: '8ce6f29e00278febb2225437385987fcfac48eb7' }))));
|
|
24106
24244
|
}
|
|
24107
24245
|
get element() { return getElement(this); }
|
|
24108
24246
|
static get cmpMeta() { return {
|
|
@@ -24252,12 +24390,12 @@ class DuetShowMore {
|
|
|
24252
24390
|
* Always the last one of the class.
|
|
24253
24391
|
*/
|
|
24254
24392
|
render() {
|
|
24255
|
-
return (hAsync(Host, { key: '
|
|
24393
|
+
return (hAsync(Host, { key: '9afe7d7d486b0149b0d7d0f2f565ebed0a06125b' }, hAsync("div", { key: '68e86cab291190cd4e56871e3dbb8456a8e67a8e', class: {
|
|
24256
24394
|
"duet-show-more": true,
|
|
24257
24395
|
"duet-theme-turva": this.theme === "turva",
|
|
24258
24396
|
"duet-m-0": this.margin === "none",
|
|
24259
24397
|
open: this.open,
|
|
24260
|
-
} }, hAsync("div", { key: '
|
|
24398
|
+
} }, hAsync("div", { key: '3e95652047d8e72819869f278ae30a1c2c387f6c', ref: ref => (this.contentElement = ref), class: { content: true, "duet-theme-turva": this.theme === "turva" }, id: this.contentId, tabindex: this.open ? "-1" : "" }, hAsync("div", { key: 'be27b4b6e37c644fc4022ab4b628adb4f220a08d', class: { "slotted-content": true } }, hAsync("slot", { key: 'f0f1bb220a099f21340da94176c281667a8a5287' }))), hAsync("duet-button", { key: '04759c15d2218db3332056e41d1ee5725237aba0', 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: '6219f2cd6af88b56a9e829bf667e00565b7a8109' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
|
|
24261
24399
|
}
|
|
24262
24400
|
get element() { return getElement(this); }
|
|
24263
24401
|
static get style() { return duetShowMoreCss; }
|
|
@@ -24784,17 +24922,17 @@ class DuetSlideout {
|
|
|
24784
24922
|
};
|
|
24785
24923
|
const topLevelOpenMenuBarTranslation = getLocaleString(this.topLevelOpenMenuBarLangObject);
|
|
24786
24924
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
24787
|
-
return (hAsync(Host, { key: '
|
|
24925
|
+
return (hAsync(Host, { key: 'c5298a04c706d21901c666657d022fbf6ac2ccbf' }, hAsync("div", { key: 'f449518506a39eb2112fe07828e9d345b225cb39', class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, this.modal && hAsync("duet-overlay", { key: 'b6e2a80e4cf4e73870a108661bf73a29b41e7e85', visible: this.open, zIndex: "600" }), hAsync("div", { key: '53b4cf1cef91b08e31c8c1a39d98a327c6d6f409', 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: {
|
|
24788
24926
|
dialog: true,
|
|
24789
24927
|
hidden: !this.open,
|
|
24790
24928
|
modal: this.modal,
|
|
24791
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
24929
|
+
}, style: styles }, hAsync(FocusGuard, { key: 'babca49248ba28d1e2811593058ee32742712507', moveFocusTo: this.closeButton }), hAsync("div", { key: '75123b9e195240e64ad91ca08d38f2b8333ae8fc', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: '4d8806dd671066b064e4f7176332b756d654080b', class: "top" }, hAsync("button", { key: 'f4aee0f201feb52d93f93d9a52a28912860c7614', ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", "aria-label": `${exitTranslation}`, type: "button", class: {
|
|
24792
24930
|
"slideout-close": true,
|
|
24793
24931
|
active: this.open,
|
|
24794
24932
|
"duet-theme-turva": this.theme === "turva",
|
|
24795
|
-
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: '
|
|
24933
|
+
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: '548f982fcbb29297168b949fdeb169765ad3615a', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: '22bc0ca96855476ea148c016e7434be2beee9823', class: "sticky-header" }, hAsync("slot", { key: 'ab6575d6303c56291d08d6276f150216de2e17d5', name: "sticky-header" }))), hAsync("div", { key: 'cb6c393cb05fd8be1d487755cc123786e93ccfb6', id: "slot-container", role: this.accessibleRole, "aria-label": this.openPanel ? topLevelOpenMenuBarTranslation : null, class: {
|
|
24796
24934
|
items: true,
|
|
24797
|
-
} }, hAsync("slot", { key: '
|
|
24935
|
+
} }, hAsync("slot", { key: 'efd0a4ced368a63a52de97e6ca0416461d4e0dfc' })), hAsync(FocusGuard, { key: '395ee2fb97043653972a9082f82f6a423abfcbfe', moveFocusTo: this.closeButton })))));
|
|
24798
24936
|
}
|
|
24799
24937
|
get element() { return getElement(this); }
|
|
24800
24938
|
static get watchers() { return {
|
|
@@ -24864,7 +25002,7 @@ class DuetSlideoutLang {
|
|
|
24864
25002
|
*/
|
|
24865
25003
|
render() {
|
|
24866
25004
|
const langTranslation = getLocaleString(this.chooseLangObject);
|
|
24867
|
-
return (hAsync(Host, { key: '
|
|
25005
|
+
return (hAsync(Host, { key: '4553d896b4bfdb640ba3d098ea57128d964a19b6' }, hAsync("div", { key: 'e296a886f0cb3243458c937866a41f2b4be3a538', class: "duet-slideout-lang", role: "group", "aria-label": langTranslation }, hAsync("duet-icon", { key: 'bb80517845c1ee6384be27ed48efc598befb18b3', name: "navigation-language", margin: "none", color: "secondary", size: "small" }), hAsync("slot", { key: '8bd61a2b46aa5d6f488d1ef61d260ca1f2d6c698' }))));
|
|
24868
25006
|
}
|
|
24869
25007
|
get element() { return getElement(this); }
|
|
24870
25008
|
static get style() { return duetSlideoutLangCss; }
|
|
@@ -24954,12 +25092,12 @@ class DuetSlideoutLink {
|
|
|
24954
25092
|
* Always the last one in the class.
|
|
24955
25093
|
*/
|
|
24956
25094
|
render() {
|
|
24957
|
-
return (hAsync(Host, { key: '
|
|
25095
|
+
return (hAsync(Host, { key: '0fa4145e0ed6826a49aafd34c4ca247e7f2960e8' }, hAsync("a", { key: '8b44ab4f3639e42c46dd9868586eb42a6066f808', target: !this.href ? null : this.external ? "_blank" : "_self", class: {
|
|
24958
25096
|
"duet-slideout-link": true,
|
|
24959
25097
|
"duet-theme-turva": this.theme === "turva",
|
|
24960
25098
|
active: this.active,
|
|
24961
25099
|
[this.size]: true,
|
|
24962
|
-
}, 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: '
|
|
25100
|
+
}, 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: '7de46db5dc6aee8706a63e96c136aa36b3092716', name: this.icon, color: "secondary", size: this.menuItem ? "x-small" : "small", margin: "none" })), hAsync("div", { key: 'edf5b92481f2c7678b5e8d74dd08f62c60875593', class: "label" }, hAsync("span", { key: 'df63061c436078c2decf3ebaabb2e7909ec6df2b' }, hAsync("span", { key: '79e134bfc5b40595760793751a4dfde4b4895638', class: "label-container" }, hAsync("span", { key: 'a69d00a9b25e5ff0a709c27bd5418691a20eb1e3', class: "label-content" }, hAsync("slot", { key: 'abf04341872118d105d8703dca1566d6aa33f6ea' })), this.external && (hAsync("duet-icon", { key: '695eb8fbfe860d0dc19475a255139f9c042ad9e9', class: "external-icon", theme: this.theme, name: newWindowIcon.title, margin: "none", size: "auto", color: "currentColor" }))), hAsync("slot", { key: '1587bcc9a12db87d4c4c153d6e938ca136acfedc', name: "description" })), this.caret && (hAsync("duet-icon", { key: 'd40e0716e4dfa8a6b20fbeebb8c19b6868c11087', name: "action-arrow-right", color: "secondary", size: "x-small", margin: "none" }))))));
|
|
24963
25101
|
}
|
|
24964
25102
|
get element() { return getElement(this); }
|
|
24965
25103
|
static get style() { return duetSlideoutLinkCss; }
|
|
@@ -25136,25 +25274,25 @@ class DuetSlideoutPanel {
|
|
|
25136
25274
|
};
|
|
25137
25275
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
25138
25276
|
const backTranslation = getLocaleString(this.backLangObject);
|
|
25139
|
-
return (hAsync(Host, { key: '
|
|
25277
|
+
return (hAsync(Host, { key: 'd6f887a4066a57a089fbb66e8dcf9738025fcf32' }, hAsync("div", { key: '9e4366a8bf2394467c60c58d9c6e28d3a73eeb70', class: {
|
|
25140
25278
|
"duet-slideout-panel": true,
|
|
25141
25279
|
"duet-theme-turva": this.theme === "turva",
|
|
25142
25280
|
active: this.open,
|
|
25143
|
-
} }, this.badge && hAsync("duet-indicator", { key: '
|
|
25281
|
+
} }, this.badge && hAsync("duet-indicator", { key: '8653c304ca1073549efb1b3b1e530c1d44a414de', variation: "change" }), hAsync("button", { key: 'b5597ee44dfd1e7cd694670e16a6c89cfbac979d', 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: {
|
|
25144
25282
|
link: true,
|
|
25145
25283
|
active: this.active,
|
|
25146
25284
|
"duet-theme-turva": this.theme === "turva",
|
|
25147
|
-
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '
|
|
25285
|
+
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '72c123b4d7dafd5c7f390c38422ec80206d0f2c1', class: "duet-slideout-icon" }, hAsync("duet-icon", { key: '28a9b256bb5d354e8da1c5f7221781e727d800e8', name: this.icon, size: "small", margin: "none", color: "secondary" }))), hAsync("span", { key: '202044837e321fbacb1ff3cee181a7bef41d0119', class: "label" }, hAsync("span", { key: 'f638d3d0ef1668cf7d427de10ac54e74b39011db', class: { "label-text": true, [this.labelSize]: true } }, hAsync("slot", { key: '3c854c284b0b9efb93e849ca20595949f8436e58', name: "label" })), hAsync("duet-icon", { key: '05ab8ab345187d418d2e847ea7b9fb95b9df48ac', class: "caret", name: "action-arrow-right", margin: "none", size: "x-small", color: "secondary" }))), hAsync("div", { key: '4997c8cf6f2f442211a671c1f996e7f0a5bad5b0', ref: element => (this.dialog = element), class: {
|
|
25148
25286
|
dialog: true,
|
|
25149
25287
|
hidden: !this.open,
|
|
25150
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
25288
|
+
}, style: styles }, hAsync(FocusGuard, { key: '3d7fbcc1526cc861f8b8ed25cd150cd0776e41e2', moveFocusTo: this.closeButton }), hAsync("div", { key: '6263ee14fb4ed01b3882fd5aee6072085b4d2673', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: '7129481501bde51cde421266fa427feb71d60e96', class: "top" }, hAsync("button", { key: '9c9b4a36175962ecfd9d4d55315a6f7387dd83fb', ref: element => (this.closeButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-label": `${backTranslation}`, type: "button", class: {
|
|
25151
25289
|
back: true,
|
|
25152
25290
|
"duet-theme-turva": this.theme === "turva",
|
|
25153
|
-
}, onClick: this.onClick }, hAsync("duet-icon", { key: '
|
|
25291
|
+
}, onClick: this.onClick }, hAsync("duet-icon", { key: 'd993b8b1ca9f1dd5246c09d0aa6c1e2af14f8404', class: "caret", name: "action-arrow-left", margin: "none", size: "small", color: "secondary" })), hAsync("span", { key: '7548145c9fefcb76a430cc3ab53c4dce08c0e244' }, this.label.innerHTML), hAsync("button", { key: '05f09bf1036ae0db17edd1f0dccbc3e67a0d3e78', class: { close: true, "duet-theme-turva": this.theme === "turva" }, type: "button", onClick: this.onCloseClick, "aria-label": `${exitTranslation}` }, hAsync("duet-icon", { key: 'eb271988b011397d50d77fb303e0902d987ea717', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: '14aa2af7d6c1c6671056fed4a92d1982a24da715', class: "sticky-header" }, hAsync("slot", { key: 'ceace8c522d5236bc7814d85aed1fefb88645c63', name: "sticky-header" }))), hAsync("div", { key: 'a21d4a36e5a0d09ec6d2352c78a40ab9b7d26b94', tabindex: "-1", role: "menu",
|
|
25154
25292
|
//TODO: slideout menu fades out, needs to be instant
|
|
25155
25293
|
id: "menu", "aria-labelledby": "button", class: {
|
|
25156
25294
|
items: true,
|
|
25157
|
-
} }, hAsync("slot", { key: '
|
|
25295
|
+
} }, hAsync("slot", { key: '59691db3416b43696ca5620275e7be271cc84595' })), hAsync(FocusGuard, { key: 'd1840ad6416502b10cd8bfe89c091c5265fc89ac', moveFocusTo: this.closeButton })))));
|
|
25158
25296
|
}
|
|
25159
25297
|
get element() { return getElement(this); }
|
|
25160
25298
|
static get watchers() { return {
|
|
@@ -25235,18 +25373,18 @@ class DuetSlideoutPanelDropdown {
|
|
|
25235
25373
|
* Always the last one in the class.
|
|
25236
25374
|
*/
|
|
25237
25375
|
render() {
|
|
25238
|
-
return (hAsync(Host, { key: '
|
|
25376
|
+
return (hAsync(Host, { key: 'b8179a5080947725342d197344710fbb8c99fee2' }, hAsync("div", { key: 'dfb6f63b98b77618b5f556d2008bb2745c5164ac', class: {
|
|
25239
25377
|
"duet-slideout-panel-dropdown": true,
|
|
25240
25378
|
"duet-theme-turva": this.theme === "turva",
|
|
25241
25379
|
active: this.open,
|
|
25242
|
-
} }, hAsync("button", { key: '
|
|
25380
|
+
} }, hAsync("button", { key: '6a31f384af8ec340aa0d26d3fb18efe76855d18b', 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: {
|
|
25243
25381
|
active: this.active,
|
|
25244
25382
|
"duet-theme-turva": this.theme === "turva",
|
|
25245
|
-
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: '
|
|
25383
|
+
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: '10ffc7f65f631843ec04d4a016061155033d633e', name: this.icon, size: "small", margin: "none", color: "secondary" }), hAsync("span", { key: 'de2ae3fe7a4de7974c3b839d245449d8b7268abc', class: "label" }, hAsync("slot", { key: 'e2f3a31a59d5baf185f7a49076b5fa47d2a9eba2', name: "label" }), hAsync("duet-icon", { key: '654ec9b0d065f01e1f144c3de8838ccd9a16a38c', class: "caret", name: "action-arrow-down-small", margin: "none", size: "xx-small", color: "secondary" }))), hAsync("div", { key: 'e14ff7d4a35724a16e4463d19c7ac7abfa1e2aa7', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
25246
25384
|
items: true,
|
|
25247
25385
|
hidden: !this.open,
|
|
25248
25386
|
"duet-theme-turva": this.theme === "turva",
|
|
25249
|
-
} }, hAsync("slot", { key: '
|
|
25387
|
+
} }, hAsync("slot", { key: 'd2ccb0322e0d7b4a2bb757bd5d23cebfe60db960' })))));
|
|
25250
25388
|
}
|
|
25251
25389
|
get element() { return getElement(this); }
|
|
25252
25390
|
static get style() { return duetSlideoutPanelDropdownCss; }
|
|
@@ -25290,7 +25428,7 @@ class DuetSpacer {
|
|
|
25290
25428
|
* Always the last one in the class.
|
|
25291
25429
|
*/
|
|
25292
25430
|
render() {
|
|
25293
|
-
return (hAsync(Host, { key: '
|
|
25431
|
+
return (hAsync(Host, { key: 'd6cd3738f2f7e8184419c36dab8844ba5bbb5e1e', class: {
|
|
25294
25432
|
"duet-spacer": true,
|
|
25295
25433
|
"duet-spacer-xx-small": this.breakpoint === "xx-small",
|
|
25296
25434
|
"duet-spacer-x-small": this.breakpoint === "x-small",
|
|
@@ -25345,7 +25483,7 @@ class DuetSpinner {
|
|
|
25345
25483
|
*/
|
|
25346
25484
|
render() {
|
|
25347
25485
|
const color = !!this.color && this.color === "currentColor" ? "currentColor" : getColorByName(this.color, this.theme);
|
|
25348
|
-
return (hAsync(Host, { key: '
|
|
25486
|
+
return (hAsync(Host, { key: '2bc7c46f85e5bc998bdacbd35c9c1446f69cbafb' }, hAsync("div", { key: '7d7f56f381399e446b907acf07560819c0cbe769', class: {
|
|
25349
25487
|
"duet-spinner": true,
|
|
25350
25488
|
[this.size]: true,
|
|
25351
25489
|
"duet-theme-turva": this.theme === "turva",
|
|
@@ -25453,11 +25591,11 @@ class DuetStatusIcon {
|
|
|
25453
25591
|
}
|
|
25454
25592
|
}
|
|
25455
25593
|
render() {
|
|
25456
|
-
return (hAsync(Host, { key: '
|
|
25594
|
+
return (hAsync(Host, { key: '1ca69dd10d6b02ca1861ed79ca6893995846297a', class: {
|
|
25457
25595
|
[`duet-status-icon-${this.getVariation()}`]: true,
|
|
25458
25596
|
"duet-strong-bg": this.strong,
|
|
25459
25597
|
"duet-m-0": this.margin === "none",
|
|
25460
|
-
} }, hAsync("duet-icon", { key: '
|
|
25598
|
+
} }, hAsync("duet-icon", { key: 'fa7ba272523dad56aca0e17ce988da0f737ba2dd', icon: this.getIcon(), size: this.size, margin: "none" })));
|
|
25461
25599
|
}
|
|
25462
25600
|
static get style() { return duetStatusIconCss; }
|
|
25463
25601
|
static get cmpMeta() { return {
|
|
@@ -25579,13 +25717,13 @@ class DuetStep {
|
|
|
25579
25717
|
* Always the last one in the class.
|
|
25580
25718
|
*/
|
|
25581
25719
|
render() {
|
|
25582
|
-
return (hAsync("div", { key: '
|
|
25720
|
+
return (hAsync("div", { key: '410f3ba5a4c08c17e565dca5914c6397a8b4a9bb', class: {
|
|
25583
25721
|
"duet-step": true,
|
|
25584
25722
|
[`is-${this.state}`]: true,
|
|
25585
25723
|
"rounded-top": this.roundedTop,
|
|
25586
25724
|
"rounded-bottom": this.roundedBottom,
|
|
25587
25725
|
"duet-theme-turva": this.theme === "turva",
|
|
25588
|
-
} }, hAsync("div", { key: '
|
|
25726
|
+
} }, hAsync("div", { key: 'c32f962589b722dd4cdff4570236e5461844d9f2', 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: '534b449b0149f14c71c8a255e97f438f1fb534b3', "aria-hidden": "true" }, hAsync("div", { key: '83026292f5ad4c4fd49cfb3eabd2788af1fd4780', class: "duet-step-counter" }, this.renderStepCounter())), hAsync("duet-spacer", { key: '40bd8de5bb73973ce94b92840593dfa62db9652d', direction: "horizontal", size: "large", breakpoint: "small" }), hAsync("duet-spacer", { key: 'e821c6539548079ca25a9bf9fb2a23c3514933de', direction: "horizontal", size: "medium", breakpoint: "x-small" }), hAsync("div", { key: 'a30345d3bc25835f4f949a35cc5f904dddd23d89' }, hAsync("duet-heading", { key: '5bff2f4ba60be7e1fc9055a5768e9833185ab3aa', theme: this.theme, level: this.headingLevel, visualLevel: "h4", color: this.headingColor(), margin: "none" }, this.heading)), hAsync("duet-spacer", { key: '975fd245cc2446e5e5512e14d2321c52e14fb956', direction: "horizontal", size: "large" }), hAsync("div", { key: '3fcc998e525a6466b3e3145ff3761785e90ec3b8', class: "duet-step-heading-slot" }, hAsync("slot", { key: 'e9d50a730784ed9bd962dca7d877ad087fa4609d', name: "heading-content" }))), hAsync("div", { key: '55ac85266d0d99b8395ea4767eb4ac2286803ec5', class: "duet-step-content-wrapper" }, hAsync("div", { key: 'aba80e085e8739ac8c87c4e1ead392b3d1965017', class: "duet-step-content", role: "region", "aria-labelledby": this.buttonId, id: this.contentId }, hAsync("slot", { key: 'e45dc448e50cc6a3a025de1c1869e1dca0591caa' })))));
|
|
25589
25727
|
}
|
|
25590
25728
|
get element() { return getElement(this); }
|
|
25591
25729
|
static get style() { return duetStepCss; }
|
|
@@ -25732,7 +25870,7 @@ class DuetStepper {
|
|
|
25732
25870
|
* Always the last one in the class.
|
|
25733
25871
|
*/
|
|
25734
25872
|
render() {
|
|
25735
|
-
return (hAsync(Host, { key: '
|
|
25873
|
+
return (hAsync(Host, { key: 'ad7496622f65e7ea3efc00cd1d5cde5f83bee8de', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '6a48c6be81c8b46c82d4b3004b28ce5c7b50c345', class: { "duet-stepper": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("duet-visually-hidden", { key: 'b121f34975d226d3dc3bfc78c30507d0d8ad359f', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement()), hAsync("slot", { key: '6cc98ee6e6fde161ec959cceee943d8e13e9054d' }))));
|
|
25736
25874
|
}
|
|
25737
25875
|
get element() { return getElement(this); }
|
|
25738
25876
|
static get watchers() { return {
|
|
@@ -25886,19 +26024,19 @@ class DuetSubmenuBar {
|
|
|
25886
26024
|
* Always the last one in the class.
|
|
25887
26025
|
*/
|
|
25888
26026
|
render() {
|
|
25889
|
-
return (hAsync(Host, { key: '
|
|
26027
|
+
return (hAsync(Host, { key: '816ecf621e240e3cf6a2288aab18767528ef10b0' }, hAsync("nav", { key: 'aee92ffb8c65faaa013ddfdf10c40ec4f467030f', class: {
|
|
25890
26028
|
"duet-submenu-bar": true,
|
|
25891
26029
|
"duet-theme-turva": this.theme === "turva",
|
|
25892
26030
|
hidden: this.hidden,
|
|
25893
|
-
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: '
|
|
26031
|
+
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: 'c6d43080e7c320cfb23321f04aaf242a00d08a0d', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
25894
26032
|
active: this.open,
|
|
25895
|
-
}, onClick: this.onClick }, hAsync("span", { key: '
|
|
26033
|
+
}, onClick: this.onClick }, hAsync("span", { key: '724fe14b534bb7275701c6ee57f6eba306ed21ce', class: "label" }, hAsync("slot", { key: '1e761ff10257510e5a44b581d3c6bbae8e3fd1f2', name: "label" }), hAsync("duet-icon", { key: 'ca72a4a98873e59b5dfd602408c05913de7b7070', theme: this.theme, class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" })))), hAsync("div", { key: 'beed4388ee3ff813baa6c1fe93c8bfddb6c7529f', class: {
|
|
25896
26034
|
"menu-container": true,
|
|
25897
26035
|
hidden: !this.open,
|
|
25898
|
-
}, role: "presentation" }, hAsync("div", { key: '
|
|
26036
|
+
}, role: "presentation" }, hAsync("div", { key: 'e294e75a427015c1cbbde13893a39ea85f1f7835', role: this.mobile ? "menu" : null, id: "menu", "aria-labelledby": this.mobile ? "button" : null, "aria-expanded": this.mobile ? (this.open ? "true" : "false") : null, class: {
|
|
25899
26037
|
items: true,
|
|
25900
26038
|
hidden: !this.open,
|
|
25901
|
-
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '
|
|
26039
|
+
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '99cf2dbeac35681c212fa459d303036f74c6e66e', class: "list", role: this.mobile ? "presentation" : "list" }, hAsync("slot", { key: 'fb30bed27a6b2d3dc7289043e4814b5aa076e210' }), hAsync("div", { key: '09ccbcb5e99b2579ea961dddbdda729420d0f43f', class: "list-padding" }))), hAsync("duet-overlay", { key: 'c95ed4b5f791d6c6cab6ade6fb4269a00dc4af1d', "keep-stacking-context": true, visible: this.open, "display-device": "not-large", transition: "immediate" })))));
|
|
25902
26040
|
}
|
|
25903
26041
|
get element() { return getElement(this); }
|
|
25904
26042
|
static get watchers() { return {
|
|
@@ -26030,18 +26168,18 @@ class DuetSubmenuBarDropdown {
|
|
|
26030
26168
|
* Always the last one in the class.
|
|
26031
26169
|
*/
|
|
26032
26170
|
render() {
|
|
26033
|
-
return (hAsync(Host, { key: '
|
|
26171
|
+
return (hAsync(Host, { key: 'b51e8416e33625711e381e53bec0724889b3d4a1', role: "listitem" }, hAsync("div", { key: '44c9b2f36c4579b75175240b1ab037d48fabed5d', class: {
|
|
26034
26172
|
"duet-submenu-bar-dropdown": true,
|
|
26035
26173
|
"duet-theme-turva": this.theme === "turva",
|
|
26036
26174
|
open: this.open,
|
|
26037
26175
|
active: this.active,
|
|
26038
|
-
} }, hAsync("button", { key: '
|
|
26176
|
+
} }, hAsync("button", { key: '9142786ada48453874be341a2409d16c83e91347', 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: {
|
|
26039
26177
|
open: this.open,
|
|
26040
26178
|
active: this.active,
|
|
26041
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
26179
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: 'e0dba09b06d16f60131bf1ac7744e7867e77a9c3', class: "submenu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'da38470a493fbbae28f1e9ab1217f63fa8106937', class: "label" }, hAsync("span", { key: '64980453db932e88d8dfe8f88f28e1aa5eb14c66', class: "label-text" }, hAsync("slot", { key: 'f8dc584414a25bd7ab46519ebc01e0b9f1892db0', name: "label" })), hAsync("duet-icon", { key: '1ede41bfa5de2236c4f2d1dbfc3c470864710fca', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '18aec6f6c56e6b784c2e74fe652e9cce530b675f', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
26042
26180
|
items: true,
|
|
26043
26181
|
hidden: !this.open,
|
|
26044
|
-
} }, hAsync("slot", { key: '
|
|
26182
|
+
} }, hAsync("slot", { key: '8dc7c90b3bf98db886ad26d888b54899eb399a29' })))));
|
|
26045
26183
|
}
|
|
26046
26184
|
get element() { return getElement(this); }
|
|
26047
26185
|
static get style() { return duetSubmenuBarDropdownCss; }
|
|
@@ -26110,12 +26248,12 @@ class DuetSubmenuBarDropdownLink {
|
|
|
26110
26248
|
* Always the last one in the class.
|
|
26111
26249
|
*/
|
|
26112
26250
|
render() {
|
|
26113
|
-
return (hAsync(Host, { key: '
|
|
26251
|
+
return (hAsync(Host, { key: '46fc9ecd76bd0715d98c22b8e9b0fc81fa13b151' }, hAsync("a", { key: '3bd490d3d6485f2a2aa481cbcd294c76f18670ec', class: {
|
|
26114
26252
|
"duet-submenu-bar-dropdown-link": true,
|
|
26115
26253
|
"duet-theme-turva": this.theme === "turva",
|
|
26116
26254
|
highlight: this.highlight,
|
|
26117
26255
|
active: this.active,
|
|
26118
|
-
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '
|
|
26256
|
+
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: 'ad47b72b28599ba487f8c98ed70b01514e3e1086', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), hAsync("span", { key: 'df8c68c67625c6c7c4ef9363225bdddc13946d6f', class: "label-container" }, hAsync("span", { key: '2befba9fc4edcedfc11cd3554439fa795d8baaf3', class: "label" }, hAsync("slot", { key: '0ff3ae9e9ea866cc6bf02cf51ef3c157101164b5' })), this.caret && hAsync("duet-icon", { key: '5206b89fd11d42de2c5072746c8a0de5d01e8236', name: "action-arrow-right-small", size: "xxx-small", margin: "none" })), this.active && (hAsync("duet-icon", { key: '4ef4476f43c827135b27937299b87b29e8026412', class: "active-check", name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
26119
26257
|
}
|
|
26120
26258
|
get element() { return getElement(this); }
|
|
26121
26259
|
static get style() { return duetSubmenuBarDropdownLinkCss; }
|
|
@@ -26211,7 +26349,7 @@ class DuetSubmenuBarItem {
|
|
|
26211
26349
|
render() {
|
|
26212
26350
|
const TagName = this.url ? "a" : "button";
|
|
26213
26351
|
const role = this.url ? "link" : "button";
|
|
26214
|
-
return (hAsync(Host, { key: '
|
|
26352
|
+
return (hAsync(Host, { key: 'a6d866946b9ba85265cc7df4d98403697d619606', role: "listitem" }, hAsync(TagName, { key: '32a6f64535cfb4468e4df774b840203265d183d8', 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: '49ecd11776943249f4563c1131a9f76dff3914e9', class: "leading-icon", theme: this.theme, name: this.leadingIcon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'b129913e594e27a973bd72edcb1cde1eb5cb3e1e', class: "label" }, hAsync("span", { key: '0f6a39e368b2e40b6ba401586fc4daa9442cf8f0', class: "label-text" }, hAsync("slot", { key: '00bfacd528e419c0e68e6d9c8040d36f0cc0b71c' })), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: 'e44a9f410642e5acd3f79250bf80844393789527', class: {
|
|
26215
26353
|
"trailing-icon": !!this.trailingIcon,
|
|
26216
26354
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
26217
26355
|
"external-icon": !!this.external,
|
|
@@ -26283,7 +26421,7 @@ class DuetSubmenuBarLink {
|
|
|
26283
26421
|
* Always the last one in the class.
|
|
26284
26422
|
*/
|
|
26285
26423
|
render() {
|
|
26286
|
-
return (hAsync(Host, { key: '
|
|
26424
|
+
return (hAsync(Host, { key: '61a7e1fc2b326138c7cfc134690d1c4f190fe946', role: "listitem" }, hAsync("a", { key: 'd5322e03b0df04c31a0937d405679c24674b35d6', 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: '5f5def1255fed4d06a745760805a4d5305165c2e', class: "submenu-bar-link-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("span", { key: '5c0f68184f743f8252c0a05efa52fbd7b6bcd5c0', class: "label" }, hAsync("slot", { key: 'd372e57f8d53c24773f8f0583e73194abeab8601' })))));
|
|
26287
26425
|
}
|
|
26288
26426
|
get element() { return getElement(this); }
|
|
26289
26427
|
static get style() { return duetSubmenuBarLinkCss; }
|
|
@@ -26409,7 +26547,7 @@ class DuetTab {
|
|
|
26409
26547
|
* Always the last one in the class.
|
|
26410
26548
|
*/
|
|
26411
26549
|
render() {
|
|
26412
|
-
return (hAsync("div", { key: '
|
|
26550
|
+
return (hAsync("div", { key: '52685c26793f37570debd51c11fd6d9c0eacb7a1', ref: element => {
|
|
26413
26551
|
if (!this.contentId) {
|
|
26414
26552
|
this.tabpanelElement = element;
|
|
26415
26553
|
}
|
|
@@ -26418,7 +26556,7 @@ class DuetTab {
|
|
|
26418
26556
|
"duet-tab": true,
|
|
26419
26557
|
selected: this.selected,
|
|
26420
26558
|
"has-content-id": !!this.contentId,
|
|
26421
|
-
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, hAsync("slot", { key: '
|
|
26559
|
+
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, hAsync("slot", { key: 'bc08f9d93e9cb6653bfb2a97f5cc5fb9f67a1fe9' })));
|
|
26422
26560
|
}
|
|
26423
26561
|
get element() { return getElement(this); }
|
|
26424
26562
|
static get watchers() { return {
|
|
@@ -26729,13 +26867,13 @@ class DuetTabGroup {
|
|
|
26729
26867
|
[largeBreakpoint]: ["default", "plain", "plain-scrolling"].includes(this.variation) ? true : false,
|
|
26730
26868
|
"duet-theme-turva": this.theme === "turva",
|
|
26731
26869
|
}, 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 })))));
|
|
26732
|
-
return (hAsync("div", { key: '
|
|
26870
|
+
return (hAsync("div", { key: '494ac1333a13dd37b390174ca79a3a90e89f13d0', class: {
|
|
26733
26871
|
"duet-tab-group": true,
|
|
26734
26872
|
"duet-theme-turva": this.theme === "turva",
|
|
26735
26873
|
[variationClass]: true,
|
|
26736
26874
|
"duet-tab-plain-scrolling": this.variation === "plain-scrolling",
|
|
26737
26875
|
"duet-tab-group-scrolls": true,
|
|
26738
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
26876
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: 'eb4e340563793bfda1941a66200f6d07929bccb2', role: "tablist", class: {
|
|
26739
26877
|
"duet-m-0": this.margin === "none" || this.variation === "checked",
|
|
26740
26878
|
"duet-tab-group-tabs": true,
|
|
26741
26879
|
"duet-tab-group-hidden": this.tabs.length > 3 && !isSwipeScrollable,
|
|
@@ -26746,11 +26884,11 @@ class DuetTabGroup {
|
|
|
26746
26884
|
} }, this.variation === "checked" ? (buttons) : (hAsync("div", { class: {
|
|
26747
26885
|
"duet-tab-group-scrollable-wrapper": true,
|
|
26748
26886
|
"duet-tab-group-fill-space-wrapper": this.fillSpace && this.variation === "default",
|
|
26749
|
-
} }, 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: '
|
|
26887
|
+
} }, 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: 'fc769c72a4f684dc6f6cf0e893b93215b98b2d87', class: {
|
|
26750
26888
|
"duet-tab-group-content": true,
|
|
26751
26889
|
"duet-m-0": this.margin === "none",
|
|
26752
26890
|
"checked-group-content": this.variation === "checked",
|
|
26753
|
-
} }, hAsync("slot", { key: '
|
|
26891
|
+
} }, hAsync("slot", { key: '20db6ecc342cbd347bdf35885289259106a07442' }))));
|
|
26754
26892
|
}
|
|
26755
26893
|
get element() { return getElement(this); }
|
|
26756
26894
|
static get style() { return duetTabGroupCss; }
|
|
@@ -27400,7 +27538,7 @@ class DuetTable {
|
|
|
27400
27538
|
}
|
|
27401
27539
|
}
|
|
27402
27540
|
render() {
|
|
27403
|
-
return (hAsync(Host, { key: '
|
|
27541
|
+
return (hAsync(Host, { key: '5416b5f7a33d4e5c30e826f1f41c03005bf5511b', class: {
|
|
27404
27542
|
[`duet-table-${this.variation}`]: true,
|
|
27405
27543
|
"duet-table-flattened": !this.matchesBreakpoint,
|
|
27406
27544
|
// sticky only valid when in regular table layout
|
|
@@ -27409,7 +27547,7 @@ class DuetTable {
|
|
|
27409
27547
|
"duet-m-0": this.margin === "none",
|
|
27410
27548
|
"duet-theme-turva": this.theme === "turva",
|
|
27411
27549
|
"duet-table-hide-head-visually": this.hideHeadVisually,
|
|
27412
|
-
} }, hAsync("slot", { key: '
|
|
27550
|
+
} }, hAsync("slot", { key: '517ff1c0cda9e306cb0ea05f1e56a1d74e9a74d3' })));
|
|
27413
27551
|
}
|
|
27414
27552
|
get element() { return getElement(this); }
|
|
27415
27553
|
static get watchers() { return {
|
|
@@ -27526,11 +27664,11 @@ class DuetTeaser {
|
|
|
27526
27664
|
},
|
|
27527
27665
|
sources: parsePossibleJSON(this.sources),
|
|
27528
27666
|
};
|
|
27529
|
-
return (hAsync(Host, { key: '
|
|
27667
|
+
return (hAsync(Host, { key: '2177fb25347d6718b106ee8ae29a47da6ae543b2' }, hAsync(TagName, { key: '4485125a5e29b14c00da4a7ff1ab55ae30ae03fd', href: this.url, class: {
|
|
27530
27668
|
"duet-teaser": true,
|
|
27531
27669
|
"duet-theme-turva": this.theme === "turva",
|
|
27532
27670
|
"duet-teaser-link": !!this.url,
|
|
27533
|
-
}, ref: element => (this.aOrDivElement = element) }, this.image ? (hAsync("div", { class: "image-wrap" }, hAsync(DuetPicture, Object.assign({}, pictureSource)))) : (this.icon && (hAsync("div", { class: "icon-wrap" }, hAsync("duet-icon", { class: "duet-teaser-icon", shape: "brand", color: this.iconColor, background: this.iconBackground, name: this.icon, margin: "none" })))), hAsync("div", { key: '
|
|
27671
|
+
}, ref: element => (this.aOrDivElement = element) }, this.image ? (hAsync("div", { class: "image-wrap" }, hAsync(DuetPicture, Object.assign({}, pictureSource)))) : (this.icon && (hAsync("div", { class: "icon-wrap" }, hAsync("duet-icon", { class: "duet-teaser-icon", shape: "brand", color: this.iconColor, background: this.iconBackground, name: this.icon, margin: "none" })))), hAsync("div", { key: 'c1bf8197236423d2c89e927609b46bf541f2ff2c', class: "duet-teaser-body" }, this.heading && (hAsync("div", { key: 'f217f4e9e0ef3304743f40e2fff01054ca029f70' }, hAsync("slot", { key: '4a57d8a71a89df56fff5f1be801425a26cac3e54', name: "heading" }))), this.meta && (hAsync("duet-paragraph", { key: 'cacaa63522817218386da1de2ef6ab41dcf7927e', class: "duet-teaser-meta", margin: "none" }, this.meta)), this.description && hAsync("duet-paragraph", { key: '575cb467ffd41ab0a5fb5f71f8995a4a8db15d48' }, this.description), !this.url && this.hasLinksSlot && (hAsync("duet-grid", { key: '02c90e874e6c2b45b5e43194d161b30045effd31', direction: "vertical" }, hAsync("slot", { key: 'fd2c221a55bbb1433355d189632eaf7795576561', name: "links" })))))));
|
|
27534
27672
|
}
|
|
27535
27673
|
get element() { return getElement(this); }
|
|
27536
27674
|
static get style() { return duetTeaserCss; }
|
|
@@ -27560,7 +27698,7 @@ class DuetTeaser {
|
|
|
27560
27698
|
}; }
|
|
27561
27699
|
}
|
|
27562
27700
|
|
|
27563
|
-
const duetTextareaCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:16px !important;margin-bottom:12px !important;display:block;width:100%;max-width:100%;text-align:left}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:16px !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}duet-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-textarea-container{position:relative;width:100%;height:100%}.duet-textarea-container .duet-input-top-caption{display:none}.duet-textarea-container.duet-input-top-caption-shown .duet-input-top-caption{display:flex !important}.duet-textarea-wrapper{position:relative}.duet-textarea-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px}.duet-textarea:focus{outline:2px solid;outline-offset:0;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-textarea:focus,.duet-textarea:focus.duet-theme-turva{outline:2px solid;outline-offset:0;outline-color:rgba(53, 79, 101, 0.8)}.has-error .duet-textarea{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-textarea[rows]{min-height:auto}.duet-textarea::placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-textarea:focus::placeholder{color:rgb(181, 198, 208)}.duet-textarea[disabled]{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 236, 239) !important;border-color:rgb(181, 198, 208) !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-textarea[disabled]::placeholder{color:rgb(8, 42, 77);opacity:1 !important}.duet-textarea:hover:not(:disabled):not(:focus){outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-textarea:hover:not(:disabled):not(:focus),.duet-textarea:hover:not(:disabled):not(:focus).duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.has-error .duet-textarea:hover:not(:disabled):not(:focus){outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-textarea:focus{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-textarea:focus,.duet-textarea:focus.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.has-error .duet-textarea:focus{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.duet-textarea:not(:focus):not(:hover):invalid{outline:none}.duet-textarea-help{font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;line-height:1.25}.duet-textarea-help span{display:block;margin-top:8px}.has-error .duet-textarea-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)}.duet-character-count{display:block;margin:8px 0 0 auto}.duet-theme-turva .duet-textarea{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59);border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-textarea::placeholder{color:rgb(120, 145, 164)}.duet-theme-turva .duet-textarea:focus{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-textarea:focus::placeholder{color:rgb(178, 194, 205)}.duet-theme-turva .duet-textarea[disabled]::placeholder{color:rgb(23, 42, 59)}.duet-theme-turva .duet-textarea[disabled]{color:rgb(95, 122, 143) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 233, 237) !important;border-color:rgb(178, 194, 205) !important;opacity:1 !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}.duet-theme-turva.has-error .duet-textarea-help{color:rgb(214, 28, 82)}.duet-theme-turva .duet-textarea-help{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(120, 145, 164)}";
|
|
27701
|
+
const duetTextareaCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:16px !important;margin-bottom:12px !important;display:block;width:100%;max-width:100%;text-align:left}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:16px !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}duet-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-textarea-container{position:relative;width:100%;height:100%}.duet-textarea-container .duet-input-top-caption{display:none}.duet-textarea-container.duet-input-top-caption-shown .duet-input-top-caption{display:flex !important}.duet-textarea-wrapper{position:relative}.duet-textarea-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px}.duet-textarea:focus{outline:2px solid;outline-offset:0;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-textarea:focus,.duet-textarea:focus.duet-theme-turva{outline:2px solid;outline-offset:0;outline-color:rgba(53, 79, 101, 0.8)}.has-error .duet-textarea{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important}.duet-textarea[rows]{min-height:auto}.duet-textarea::placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-textarea:focus::placeholder{color:rgb(181, 198, 208)}.duet-textarea[disabled]{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 236, 239) !important;border-color:rgb(181, 198, 208) !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-textarea[disabled]::placeholder{color:rgb(8, 42, 77);opacity:1 !important}.duet-textarea[readonly]{color:rgb(62, 84, 102) !important;border-color:rgb(212, 223, 229)}.duet-textarea:hover:not(:disabled):not(:focus){outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-textarea:hover:not(:disabled):not(:focus),.duet-textarea:hover:not(:disabled):not(:focus).duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.has-error .duet-textarea:hover:not(:disabled):not(:focus){outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important}.duet-textarea:focus{outline:2px solid;outline-color:rgb(0, 119, 179) !important;outline-offset:-1px}.duet-theme-turva .duet-textarea:focus,.duet-textarea:focus.duet-theme-turva{outline-color:rgb(23, 42, 59) !important}.has-error .duet-textarea:focus{outline-offset:-1px;background-color:rgb(255, 240, 243) !important;border-color:rgb(214, 28, 82) !important;outline-width:2px;outline-color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255) !important}.duet-textarea:not(:focus):not(:hover):invalid{outline:none}.duet-textarea-help{font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;line-height:1.25}.duet-textarea-help span{display:block;margin-top:8px}.has-error .duet-textarea-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)}.duet-character-count{display:block;margin:8px 0 0 auto}.duet-theme-turva .duet-textarea{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59);border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-textarea::placeholder{color:rgb(120, 145, 164)}.duet-theme-turva .duet-textarea:focus{border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-textarea:focus::placeholder{color:rgb(178, 194, 205)}.duet-theme-turva .duet-textarea[disabled]::placeholder{color:rgb(23, 42, 59)}.duet-theme-turva .duet-textarea[disabled]{color:rgb(95, 122, 143) !important;cursor:not-allowed !important;outline:none !important;background:rgb(228, 233, 237) !important;border-color:rgb(178, 194, 205) !important;opacity:1 !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-textarea[readonly]{color:rgb(53, 79, 101) !important;border-color:rgb(212, 221, 226)}.duet-theme-turva.has-error .duet-textarea-help{color:rgb(214, 28, 82)}.duet-theme-turva .duet-textarea-help{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(120, 145, 164)}";
|
|
27564
27702
|
|
|
27565
27703
|
const CharacterCount = ({ value, maxlength, theme }) => {
|
|
27566
27704
|
if (maxlength == null) {
|
|
@@ -27635,6 +27773,11 @@ class DuetTextarea {
|
|
|
27635
27773
|
* technologies.
|
|
27636
27774
|
*/
|
|
27637
27775
|
this.disabled = false;
|
|
27776
|
+
/**
|
|
27777
|
+
* Makes the textarea component not mutable, meaning the user cannot edit the control.
|
|
27778
|
+
* The user can otherwise interact, e.g. by selecting the content and copying it.
|
|
27779
|
+
*/
|
|
27780
|
+
this.readonly = false;
|
|
27638
27781
|
/**
|
|
27639
27782
|
* Set whether the textarea is required or not. Please note that this is required for
|
|
27640
27783
|
* accessible inputs when the user is required to fill them. When using this property
|
|
@@ -27656,7 +27799,8 @@ class DuetTextarea {
|
|
|
27656
27799
|
*/
|
|
27657
27800
|
this.echoPlaceholder = false;
|
|
27658
27801
|
/**
|
|
27659
|
-
* Display the textarea in error state along with an error message.
|
|
27802
|
+
* Display the textarea in error state along with an error message. If the textarea is disabled
|
|
27803
|
+
* or readonly, the error is ignored.
|
|
27660
27804
|
*/
|
|
27661
27805
|
this.error = "";
|
|
27662
27806
|
/**
|
|
@@ -27791,23 +27935,26 @@ class DuetTextarea {
|
|
|
27791
27935
|
async setFocus(options) {
|
|
27792
27936
|
this.nativeInput.focus(options);
|
|
27793
27937
|
}
|
|
27938
|
+
get writable() {
|
|
27939
|
+
return !this.disabled && !this.readonly;
|
|
27940
|
+
}
|
|
27794
27941
|
/**
|
|
27795
27942
|
* render() function
|
|
27796
27943
|
* Always the last one in the class.
|
|
27797
27944
|
*/
|
|
27798
27945
|
render() {
|
|
27799
27946
|
const identifier = this.identifier || this.textareaId;
|
|
27800
|
-
return (hAsync(Host, { key: '
|
|
27947
|
+
return (hAsync(Host, { key: 'f667e15959599e11fba7779a062513b430c237f4', class: {
|
|
27801
27948
|
"duet-m-0": this.margin === "none",
|
|
27802
27949
|
"duet-has-counter": this.counter && !this.error,
|
|
27803
27950
|
"duet-expand": this.expand,
|
|
27804
|
-
} }, hAsync("div", { key: '
|
|
27951
|
+
} }, hAsync("div", { key: '3017c39ed8485d0c4cd5cbff373e5795b315e239', class: {
|
|
27805
27952
|
"duet-textarea-container": true,
|
|
27806
27953
|
"duet-theme-turva": this.theme === "turva",
|
|
27807
27954
|
"duet-label-hidden": this.labelHidden,
|
|
27808
27955
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
27809
|
-
"has-error": !!this.error,
|
|
27810
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
27956
|
+
"has-error": !!this.error && this.writable,
|
|
27957
|
+
} }, hAsync(DuetInternalLabel, { key: 'b62e9c27cf13789036b04f320bda685083796517', 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: '24dcec9860bfc8bbfb0547e924f8d4319cd18064', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: '5a197f095df7dd625df5b6f9b0b40a2f8d61bb52', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '08a5a97579b9614b1e1e059f0975885c8ff4030f', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), hAsync("div", { key: '78ece66c1cfdbe778fe3e3293ddf5343842dcc21', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: '326ce34b3e142f2a7676067fc13452d02cd63d05', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), hAsync("textarea", { key: '994ac4a61ba288bd72d73a504f8a7721fa1c0389', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, readonly: this.readonly, "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: '0b61766a90b3b6e76cab85dfd55b81cc487e77c9', alignment: "stretch" }, hAsync("duet-grid-item", { key: '9bc9ee00a5268f80e0b9c01cb99099f98ea59fde', margin: "none", fill: true }, hAsync("div", { key: '18eb1c48ea7cf5a44ab21477b6a68bc7b7baccc5', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && this.writable && hAsync("span", { key: 'a76db4119e297a2451e2c6ffa6894cf044a1aeaa' }, this.error))), hAsync("duet-grid-item", { key: '020dc157342b1572a54c82726d88d14ef17c6dcb', margin: "none", class: "duet-character-count-caption" }, this.counter && hAsync(CharacterCount, { key: '495d71bfc1a80ce1709014843a81cb2e96fb6021', theme: this.theme, value: this.value, maxlength: this.maxlength }))), this.counter && this.maxlength && (hAsync("duet-visually-hidden", { key: 'b682416e87e7ad792b67cc3b6d754495f94b351f', id: this.characterCountId, class: "visually-hidden-counter", "aria-live": "polite" }, this.visuallyHiddenCounterText)))));
|
|
27811
27958
|
}
|
|
27812
27959
|
get element() { return getElement(this); }
|
|
27813
27960
|
static get watchers() { return {
|
|
@@ -27832,6 +27979,7 @@ class DuetTextarea {
|
|
|
27832
27979
|
"theme": [1025],
|
|
27833
27980
|
"expand": [4],
|
|
27834
27981
|
"disabled": [516],
|
|
27982
|
+
"readonly": [516],
|
|
27835
27983
|
"identifier": [1],
|
|
27836
27984
|
"required": [4],
|
|
27837
27985
|
"label": [1],
|
|
@@ -27860,7 +28008,7 @@ class DuetTextarea {
|
|
|
27860
28008
|
},
|
|
27861
28009
|
"$listeners$": undefined,
|
|
27862
28010
|
"$lazyBundleId$": "-",
|
|
27863
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["error", "error"]]
|
|
28011
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["readonly", "readonly"], ["error", "error"]]
|
|
27864
28012
|
}; }
|
|
27865
28013
|
}
|
|
27866
28014
|
|
|
@@ -27976,11 +28124,11 @@ class DuetToggle {
|
|
|
27976
28124
|
*/
|
|
27977
28125
|
render() {
|
|
27978
28126
|
const identifier = this.identifier || this.toggleId;
|
|
27979
|
-
return (hAsync(Host, { key: '
|
|
28127
|
+
return (hAsync(Host, { key: 'c1f8b026ca2f0eaf39a54127c1f69d22694a46d2', onClick: this.disabled || this.loading ? undefined : this.onClick, class: {
|
|
27980
28128
|
"duet-m-0": this.margin === "none",
|
|
27981
28129
|
"duet-toggle-is-disabled": this.disabled,
|
|
27982
28130
|
"duet-toggle-is-loading": this.loading,
|
|
27983
|
-
} }, hAsync("div", { key: '
|
|
28131
|
+
} }, hAsync("div", { key: '13c89c2abc235e07e99e671d73e4561eb0f83cc8', class: {
|
|
27984
28132
|
"duet-toggle": true,
|
|
27985
28133
|
"duet-theme-turva": this.theme === "turva",
|
|
27986
28134
|
"duet-side-label": this.labelPosition !== "top",
|
|
@@ -27988,7 +28136,7 @@ class DuetToggle {
|
|
|
27988
28136
|
"duet-label-hidden": this.labelHidden,
|
|
27989
28137
|
"duet-toggle-is-disabled": this.disabled,
|
|
27990
28138
|
"duet-toggle-is-loading": this.loading,
|
|
27991
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
28139
|
+
} }, hAsync(DuetInternalLabel, { key: 'ee03e1def14f4be0d469081e28e6dd34f622ff29', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), hAsync("div", { key: '46af0389473f5f8d9f509472b24b92eef985b98e', class: "duet-switch" }, hAsync("input", { key: '864dbbeaffc9cea78be34939de9c6d349c88cae2', 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: '0493bd3ec7da36a97706b3950c28d98b723d1979', class: { "duet-slider": true, "duet-theme-turva": this.theme === "turva" } }), this.loading && hAsync("duet-spinner", { key: 'd484ef05401a121a7ed665c35cc466ad06ed933b', color: "primary" }))), this.loading && (hAsync("duet-visually-hidden", { key: '489d5f94a8f46f6c1acefece45eda231d9c786c9', "aria-live": "polite" }, this.accessibleLabelLoading || DuetStringsLoadingDefaults[getLanguage()])), this.loadingComplete && (hAsync("duet-visually-hidden", { key: '7c3d367d72ff5cecae77d9ca0e8a9d5ed43e0a39', "aria-live": "polite" }, this.accessibleLabelComplete || DuetStringsCompleteDefaults[getLanguage()]))));
|
|
27992
28140
|
}
|
|
27993
28141
|
get element() { return getElement(this); }
|
|
27994
28142
|
static get watchers() { return {
|
|
@@ -28069,11 +28217,11 @@ class DuetToolbar {
|
|
|
28069
28217
|
: this.variation === "secondary"
|
|
28070
28218
|
? "secondary"
|
|
28071
28219
|
: "default";
|
|
28072
|
-
return (hAsync(Host, { key: '
|
|
28220
|
+
return (hAsync(Host, { key: 'a37f1935a900c25d98ec68adf41051ba262b8382' }, hAsync("nav", { key: '2902f5f92017c5d24c9d402f1e15a987e015ee39', class: {
|
|
28073
28221
|
"duet-toolbar": true,
|
|
28074
28222
|
"duet-theme-turva": this.theme === "turva",
|
|
28075
28223
|
[variation]: true,
|
|
28076
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
28224
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '83f64d72ba0fb5f452c002eaf87c5fe549665730', class: "container" }, hAsync("div", { key: '81ca721a0ef1c7f5251611645bb4bd1bad34c154', class: "list", role: "list" }, hAsync("slot", { key: '67dc75314e0816f603cd8a377641f353d809f35d', name: "left" })), hAsync("div", { key: 'd4d812cb4a537406f4bd1763df1ecb1dbcc4c36d', class: "list", role: "list" }, hAsync("slot", { key: 'fd698d64dcd063a8aac4d85a89100a35108ae52d', name: "right" }))))));
|
|
28077
28225
|
}
|
|
28078
28226
|
get element() { return getElement(this); }
|
|
28079
28227
|
static get style() { return duetToolbarCss; }
|
|
@@ -28154,18 +28302,18 @@ class DuetToolbarDropdown {
|
|
|
28154
28302
|
itemsAlign = this.element.parentElement.getAttribute("slot") === "left" ? "right" : "left";
|
|
28155
28303
|
}
|
|
28156
28304
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
28157
|
-
return (hAsync(Host, { key: '
|
|
28305
|
+
return (hAsync(Host, { key: 'aafd01e336e6bc1037a016fbffba1ae619434b15', role: "listitem" }, hAsync("div", { key: '8620d663e3c022d08b0daa55dda118d493244188', class: {
|
|
28158
28306
|
"duet-toolbar-dropdown": true,
|
|
28159
28307
|
"duet-theme-turva": this.theme === "turva",
|
|
28160
28308
|
[itemsAlign]: true,
|
|
28161
28309
|
[variation]: true,
|
|
28162
|
-
} }, hAsync("button", { key: '
|
|
28310
|
+
} }, hAsync("button", { key: '1bcde327fae00ec8f8dcdbc34bd2af817394901a', 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: {
|
|
28163
28311
|
active: this.active,
|
|
28164
28312
|
open: this.open,
|
|
28165
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
28313
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '1b7b369f990d99d15c37ce70162d3148bca43324', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("span", { key: 'bc284f69d58f2e4c4dc426aafe9e6f0683752d32', class: "label" }, hAsync("slot", { key: '1a2892fad84bce88372d8217504315d0d268d3ed', name: "label" }), hAsync("duet-icon", { key: 'd3ba7796bcf62e9a1bafc0d69fbe77f7b5efc031', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: 'e81d20d35970fd47f5e0999a48746863a282a980', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
28166
28314
|
items: true,
|
|
28167
28315
|
hidden: !this.open,
|
|
28168
|
-
} }, hAsync("slot", { key: '
|
|
28316
|
+
} }, hAsync("slot", { key: '4e1918ec2fe0c4c33248f10ffca23c9fa12a175a' })))));
|
|
28169
28317
|
}
|
|
28170
28318
|
get element() { return getElement(this); }
|
|
28171
28319
|
static get style() { return duetToolbarDropdownCss; }
|
|
@@ -28231,11 +28379,11 @@ class DuetToolbarDropdownLink {
|
|
|
28231
28379
|
* Always the last one in the class.
|
|
28232
28380
|
*/
|
|
28233
28381
|
render() {
|
|
28234
|
-
return (hAsync(Host, { key: '
|
|
28382
|
+
return (hAsync(Host, { key: '8afa16142be5af1ab49de317f14695be29cb76a7' }, hAsync("a", { key: '17139e958d8b5bd8b2c9a8b272e8faaf844b3b6b', class: {
|
|
28235
28383
|
"duet-toolbar-dropdown-link": true,
|
|
28236
28384
|
"duet-theme-turva": this.theme === "turva",
|
|
28237
28385
|
active: this.active,
|
|
28238
|
-
}, 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: '
|
|
28386
|
+
}, 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: '0953a2ad108b8f7c7705bff8b946cc065ae64369', name: this.icon, size: "x-small", margin: "none" }), hAsync("span", { key: '4187f1ee1ec2f028643715c47719354d45842ffe', class: "label" }, hAsync("slot", { key: '35b9dc036dba71cda8d9f25077fa638fd2e15e86' })), this.active && (hAsync("duet-icon", { key: '00cc11661aa635747fe4d1029c0fbac4f96c8dea', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
28239
28387
|
}
|
|
28240
28388
|
get element() { return getElement(this); }
|
|
28241
28389
|
static get style() { return duetToolbarDropdownLinkCss; }
|
|
@@ -28338,17 +28486,17 @@ class DuetToolbarItem {
|
|
|
28338
28486
|
: this.variation === "secondary"
|
|
28339
28487
|
? "secondary"
|
|
28340
28488
|
: "default";
|
|
28341
|
-
return (hAsync(Host, { key: '
|
|
28489
|
+
return (hAsync(Host, { key: '73b6913f425eb535964ae3ae588815d7d69548f5', role: "listitem" }, this.badge && hAsync("duet-indicator", { key: 'fb04ed3b79c12c89dce6c4cc42e53ffc6a25b9a7', variation: "change" }), hAsync(TagName, { key: '34f42a96b15efdd18605a81134d12790585b1b5d', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
28342
28490
|
"duet-toolbar-item": true,
|
|
28343
28491
|
"duet-theme-turva": this.theme === "turva",
|
|
28344
28492
|
active: this.active,
|
|
28345
28493
|
[variation]: true,
|
|
28346
|
-
}, 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: '
|
|
28494
|
+
}, 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: '9289fe0fd7d3cba9769923352564e54ccd6bdb15', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: '7a68a52ec75a0cb94658292ec2888a41cfe6af55', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && hAsync("div", { key: '5dd3b5ede328e883a64141fde15a1dd6eca5fe4c', class: "duet-toolbar-badge" }))), hAsync("slot", { key: '3a7913d7f34b57b85720813018e2b122ef38b9d7' }), (this.trailingIcon || (this.url && this.external)) && (hAsync("div", { key: '62a9d4853e8b77c6197624c58edd4aed4a60748f', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: '48819424506ca2fbde8b1510c4f68bdc323b7a99', class: {
|
|
28347
28495
|
"trailing-icon": !!this.trailingIcon,
|
|
28348
28496
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
28349
28497
|
"external-icon": !!(this.url && this.external),
|
|
28350
28498
|
rotate: this.trailingIcon === "action-arrow-down-small" && this.accessibleExpanded,
|
|
28351
|
-
}, 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: '
|
|
28499
|
+
}, 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: 'fa960663370b85e48492736a9cd6cba8c62b5732', class: "duet-toolbar-badge" }))))));
|
|
28352
28500
|
}
|
|
28353
28501
|
get element() { return getElement(this); }
|
|
28354
28502
|
static get style() { return duetToolbarItemCss; }
|
|
@@ -28415,12 +28563,12 @@ class DuetToolbarLink {
|
|
|
28415
28563
|
*/
|
|
28416
28564
|
render() {
|
|
28417
28565
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
28418
|
-
return (hAsync(Host, { key: '
|
|
28566
|
+
return (hAsync(Host, { key: '05a4f64c0670e5cd2739b4c48604b3b66f4f66f6', role: "listitem" }, hAsync("a", { key: '3c7e34e171e59a1d33a5f38f130b76305da9d838', class: {
|
|
28419
28567
|
"duet-toolbar-link": true,
|
|
28420
28568
|
"duet-theme-turva": this.theme === "turva",
|
|
28421
28569
|
active: this.active,
|
|
28422
28570
|
[variation]: true,
|
|
28423
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
28571
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '091c6f6380417c2580fd39ea6a75a1ca84c3f62d', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: '734f21e042064ae86b54ddeb767a58909a5af1f7' }))));
|
|
28424
28572
|
}
|
|
28425
28573
|
get element() { return getElement(this); }
|
|
28426
28574
|
static get style() { return duetToolbarLinkCss; }
|
|
@@ -28737,7 +28885,7 @@ class DuetTooltip {
|
|
|
28737
28885
|
}; }
|
|
28738
28886
|
}
|
|
28739
28887
|
|
|
28740
|
-
const duetTooltipButtonCss = "*,*::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}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button:focus{outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-tooltip-button:focus,:host(.user-is-tabbing) .duet-tooltip-button:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-tooltip-button.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:hover{color:rgb(0, 75, 129)}.duet-tooltip-button:hover.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:focus,:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button.duet-tooltip-button-in-badge{width:16px;min-width:16px;height:16px;color:inherit}.duet-tooltip-button.duet-tooltip-button-in-badge:focus{outline:0 !important}.duet-tooltip-button.duet-tooltip-button-in-badge svg{width:12px;height:12px}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !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;line-height:1.25;vertical-align:top;text-align:left;white-space:normal}.duet-theme-turva.duet-tooltip-button{color:rgb(230, 23, 64)}.duet-theme-turva.duet-tooltip-button:hover{color:rgb(230, 23, 64)}.duet-theme-turva.duet-tooltip-button.duet-tooltip-button-in-badge{color:inherit}.duet-theme-turva .duet-tooltip-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}";
|
|
28888
|
+
const duetTooltipButtonCss = "*,*::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}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button:focus{outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-tooltip-button:focus,:host(.user-is-tabbing) .duet-tooltip-button:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}.duet-tooltip-button.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:hover{color:rgb(0, 75, 129)}.duet-tooltip-button:hover.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-tooltip-button:focus,:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button.duet-tooltip-button-in-badge{width:16px;min-width:16px;height:16px;color:inherit}.duet-tooltip-button.duet-tooltip-button-in-badge:focus{outline:0 !important}.duet-tooltip-button.duet-tooltip-button-in-badge svg{width:12px;height:12px}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !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;line-height:1.25;vertical-align:top;text-align:left;white-space:normal}.duet-theme-turva.duet-tooltip-button{color:rgb(230, 23, 64)}.duet-theme-turva.duet-tooltip-button:hover{color:rgb(230, 23, 64)}.duet-theme-turva.duet-tooltip-button.duet-tooltip-button-in-badge{color:inherit}.duet-theme-turva.duet-tooltip-button.duet-tooltip-button-negative{color:rgb(255, 255, 255)}.duet-theme-turva.duet-tooltip-button.duet-tooltip-button-negative:hover{color:rgb(255, 255, 255)}.duet-theme-turva .duet-tooltip-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}";
|
|
28741
28889
|
|
|
28742
28890
|
/**
|
|
28743
28891
|
* @internal
|
|
@@ -28773,14 +28921,14 @@ class DuetTooltipButton {
|
|
|
28773
28921
|
* Always the last one in the class.
|
|
28774
28922
|
*/
|
|
28775
28923
|
render() {
|
|
28776
|
-
const visuallyHidden = hAsync("duet-visually-hidden", { key: '
|
|
28777
|
-
return (hAsync(Host, { key: '
|
|
28924
|
+
const visuallyHidden = hAsync("duet-visually-hidden", { key: '635d9f636534191031bbefe82d1efe3bb0ca1be3' }, this.accessibleLabel);
|
|
28925
|
+
return (hAsync(Host, { key: 'f4ac65122f13177047aeb77c0861d58738546509' }, hAsync("button", { key: 'e6b356569faeb652df1aa80feb023ab4cff1e621', ref: el => (this.buttonElement = el), "aria-controls": this.tooltipId, "aria-expanded": this.active ? "true" : "false", type: "button", class: {
|
|
28778
28926
|
"duet-tooltip-button": true,
|
|
28779
28927
|
"duet-tooltip-button-has-label": !!this.label,
|
|
28780
28928
|
"duet-theme-turva": this.theme === "turva",
|
|
28781
28929
|
"duet-tooltip-button-negative": this.negative,
|
|
28782
28930
|
"duet-tooltip-button-in-badge": this.inBadge,
|
|
28783
|
-
} }, hAsync("svg", { key: '
|
|
28931
|
+
} }, hAsync("svg", { key: '78594fe2105d48e470ea27e1c776e3be260d05a3', "aria-hidden": "true", role: "img", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '889a195a1409d4bc11fee456c8bedd3cc9c9f104', 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: '6b321e4d4880ac85bf1c4a4cdbb9578cd8ed3637', cx: "11.625", cy: "7.125", r: "1.125" }), hAsync("path", { key: '1a13066394a6acb5b62cf8fae650a79104b91a21', 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))));
|
|
28784
28932
|
}
|
|
28785
28933
|
get element() { return getElement(this); }
|
|
28786
28934
|
static get style() { return duetTooltipButtonCss; }
|
|
@@ -28846,14 +28994,14 @@ class DuetTooltipPopup {
|
|
|
28846
28994
|
this.contentEl.focus();
|
|
28847
28995
|
}
|
|
28848
28996
|
render() {
|
|
28849
|
-
return (hAsync(Host, { key: '
|
|
28997
|
+
return (hAsync(Host, { key: '778391de6847a5b7b639a09443e9dec0621a8796' }, hAsync("div", { key: '9b0d4cb9978cf2d304de748b9a87828379ea12b1', class: {
|
|
28850
28998
|
"duet-tooltip": true,
|
|
28851
28999
|
"duet-theme-turva": this.theme === "turva",
|
|
28852
29000
|
"duet-tooltip-active": this.active === true,
|
|
28853
|
-
} }, hAsync(FocusGuard, { key: '
|
|
29001
|
+
} }, hAsync(FocusGuard, { key: '71184f23e8382d5825458029532f2a405f218110', moveFocusTo: this.buttonEl }), hAsync("div", { key: 'a401f946fc3c88268557b0ce35eae3d839179ee6', ref: element => (this.contentEl = element), class: {
|
|
28854
29002
|
"duet-tooltip-content-area": true,
|
|
28855
29003
|
"duet-theme-turva": this.theme === "turva",
|
|
28856
|
-
}, tabindex: -1, id: this.tooltipId }, hAsync("slot", { key: '
|
|
29004
|
+
}, tabindex: -1, id: this.tooltipId }, hAsync("slot", { key: '26863da248c5b4a88ccc62322feb440cd3b0c1b0' })), hAsync("div", { key: 'cd0499889d2a77c78accd98e43c779d094763621', ref: element => (this.arrowEl = element), class: { arrow: true, [this.placement]: true }, style: this.arrowStyles }, hAsync("div", { key: 'cec22b52e115faf80fc4fe5e718194adc703b186', class: { "arrow-container": true, [this.placement]: true } })), hAsync("button", { key: 'e94d9ea886d69e78317113bd1cbdee3b4c384b5e', type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick, ref: el => (this.buttonEl = el) }, hAsync("duet-icon", { key: 'cb959efca9b977153343d3f1fc94eed0b08c71d6', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), hAsync("duet-visually-hidden", { key: '7ddb28ae6bac6673c73b92378d2298746f2f2631' }, this.accessibleCloseLabel)), hAsync(FocusGuard, { key: '707fc931ad2d467dc590b8752b939d8a854af30c', moveFocusTo: this.contentEl }))));
|
|
28857
29005
|
}
|
|
28858
29006
|
get element() { return getElement(this); }
|
|
28859
29007
|
static get style() { return duetTooltipPopupCss; }
|
|
@@ -29002,14 +29150,14 @@ class DuetTray {
|
|
|
29002
29150
|
* Always the last one in the class.
|
|
29003
29151
|
*/
|
|
29004
29152
|
render() {
|
|
29005
|
-
return (hAsync("div", { key: '
|
|
29153
|
+
return (hAsync("div", { key: 'fd50cc2b8b3ef5655eea859837b7d777e643ed8b', class: {
|
|
29006
29154
|
"duet-tray": true,
|
|
29007
29155
|
"duet-tray-is-active": this.active,
|
|
29008
29156
|
"duet-tray-is-hidden": this.hiddenState,
|
|
29009
29157
|
"duet-tray-is-responsive": this.responsive,
|
|
29010
29158
|
"duet-theme-turva": this.theme === "turva",
|
|
29011
29159
|
"duet-tray-is-expandable": this.hasAdditionalContent,
|
|
29012
|
-
} }, hAsync("div", { key: '
|
|
29160
|
+
} }, hAsync("div", { key: '6f4920fc46ec9ca16fffde76491332f8c4347ca1', class: "duet-tray-default-content", role: "status" }, hAsync("slot", { key: '86015d1b7a5c5f2fa233def31e8f827d7d087e16' })), this.hasAdditionalContent && (hAsync(Fragment, { key: '8a60cf5da72a7a7c5fe879a616d71c82381c4585' }, hAsync("button", { key: 'b1276c9c3c7758191345196f93f17edbae8b1b0f', "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: '24fcfa99098667d6e75caaa51e77032cf8dc9ad1', name: "action-arrow-down", size: "small", color: "currentColor", margin: "none" }), hAsync("duet-visually-hidden", { key: '423a4e0bc8d2ca2984f406f2f392f88bd9602dc2' }, this.expanded ? this.accessibleCloseLabel : this.accessibleOpenLabel)), hAsync("div", { key: '8f3e1506edebd49b0c7f867bdc4aa109ed8f0f2e', id: this.expandableId, class: { "duet-tray-expandable": true, active: this.expanded } }, hAsync("div", { key: 'd904e8635cc16b23ce73280b6df8db7254f4256e', class: "duet-tray-expandable-content" }, hAsync("slot", { key: 'e18df7f7b85e8d19c5910c76b026535a5d478dd7', name: "additional" })))))));
|
|
29013
29161
|
}
|
|
29014
29162
|
get element() { return getElement(this); }
|
|
29015
29163
|
static get style() { return duetTrayCss; }
|
|
@@ -30324,10 +30472,10 @@ class DuetUpload {
|
|
|
30324
30472
|
this.externalUploadButton.accessibleLabel = `${this.externalUploadButton.innerText}. ${caption}`;
|
|
30325
30473
|
}
|
|
30326
30474
|
// @ts-ignore
|
|
30327
|
-
return (hAsync(Host, { key: '
|
|
30475
|
+
return (hAsync(Host, { key: '7a152217f20a5952f3fb56a19e7a023ee4d819cd', class: { "duet-m-0": this.margin === "none" } }, hAsync("duet-fieldset", { key: '795450ef207fe4bdcb4a20420dab7a31157b9212', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, hAsync("slot", { key: 'bd126d24ef5606b3679f71efd8050269ec03df54', name: "header" }), !this.files.size && (hAsync("duet-empty-state", { key: '3792437017508549add030634c569b1244900b7d', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, hAsync("duet-paragraph", { key: '3ea6db36be8d73603e76f60edace6861cbd5744c', margin: "none" }, this.fileListEmpty))), !!this.files.size && hAsync("slot", { key: '53028d4e767022b6f6b3febf0d5df6e7d32a00a9', name: "fileheader" }), !!this.files.size && (hAsync("duet-upload-aria-status", { key: 'e3ac3ea0554fef9c565d5b4c1836c6a8d065f38a', 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: 'cb5adc8146b9e74da3605a0d14a8804f82596a4e', name: "filefooter" }), hAsync("slot", { key: '7abf37dd8db76b7c9f4d8912903f5dbe5b12ec3e', name: "uploadfooter" }), this.captionOnBottom && (hAsync("duet-caption", { key: '57a1b68a1fd251dc605854edd693adf797ca49ea', margin: "none", size: "small" }, hAsync("div", { key: '284d2854de5ab0e07c1745ba505964506644a162', class: "upload-bottom-caption" }, caption))), hAsync("slot", { key: 'f61599602e2867e2d4d99f2d651f5a59f6a1b69d', name: "afterfooter" }), !this.hideButton && (hAsync(Fragment, { key: '4aa652f38046eba11567fcaab4afb284b7663d0c' }, hAsync("duet-spacer", { key: '61b878fca646add83750e7f5443e83641404c73a', size: "large" }), hAsync("duet-button", { key: '51dd54c0c592bcc16ad74e30cbce94b4410c152d', 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 ||
|
|
30328
30476
|
this.bytesMaxReached ||
|
|
30329
30477
|
this.filesToUploadExceedsLimit ||
|
|
30330
|
-
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: '
|
|
30478
|
+
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: 'bc998642add4334e430abac07ab486962e549bce' }, hAsync("duet-spacer", { key: '007476fd81b90e2cbf53c30801159e3b418a02f2', size: "medium" }), hAsync("duet-alert", { key: 'be4c38fd16bbd10e02a084c978b5f18e66e69d4b', 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: '479c3dbc81d4d0105339b0139884681b519e9350', "aria-hidden": "true" }, hAsync("input", { key: 'f48b8a20c1cf9f97251fa02eaba68731f18ec909', ref: input => {
|
|
30331
30479
|
this.nativeInput = input;
|
|
30332
30480
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
30333
30481
|
"duet-upload": true,
|
|
@@ -30669,7 +30817,7 @@ class DuetUploadAriaStatus {
|
|
|
30669
30817
|
* Always the last one in the class.
|
|
30670
30818
|
*/
|
|
30671
30819
|
render() {
|
|
30672
|
-
return (hAsync(Host, { key: '
|
|
30820
|
+
return (hAsync(Host, { key: '4fca4f32ff28bded94b942cc2b8f148e0d95fd29', role: "status", "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, hAsync("duet-visually-hidden", { key: '5af42f3e8747936597131b1bcca491dfd3e244bb' }, this.statusMessage)));
|
|
30673
30821
|
}
|
|
30674
30822
|
get element() { return getElement(this); }
|
|
30675
30823
|
static get watchers() { return {
|
|
@@ -30849,9 +30997,9 @@ class DuetUploadItem {
|
|
|
30849
30997
|
const { uid, meta, item } = this.data;
|
|
30850
30998
|
const Badges = meta && meta.badges ? (hAsync("span", null, meta.badges.map(badgeText => (hAsync("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
30851
30999
|
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${item.name}`;
|
|
30852
|
-
return (hAsync("div", { key: '
|
|
31000
|
+
return (hAsync("div", { key: 'c2b1fa02e7a76fcbdd4007dffed433137c10e7fe', class: {
|
|
30853
31001
|
"upload-item-row": true,
|
|
30854
|
-
} }, this.showCategory && (hAsync("div", { key: '
|
|
31002
|
+
} }, this.showCategory && (hAsync("div", { key: '5dcff0e0c23116550d6a6f45329bf4d4a0e2fa8f', class: "item-categories" }, hAsync("duet-heading", { key: '1f2ead94635bc38a7d2aadb863d8f98d63cb1afc', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.categoryLabel)), Badges)), hAsync("div", { key: 'e018839c73a7e879b643560f026c9a0a7ceb8181', class: { "item-name": true, "no-category": !this.showCategory } }, !!this.label && (hAsync("duet-heading", { key: '128801bc7d77a9b0f8e6d116306d9cd0c4ec8a6c', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.label))), this.getFileNameLine()), hAsync("div", { key: '18a62c6ba81fc952b6aa0b397e6287460abb2b39', class: "item-actions" }, this.actions.map(actionItem => {
|
|
30855
31003
|
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) }));
|
|
30856
31004
|
}))));
|
|
30857
31005
|
}
|
|
@@ -30891,7 +31039,7 @@ class DuetVisuallyHidden {
|
|
|
30891
31039
|
* Always the last one in the class.
|
|
30892
31040
|
*/
|
|
30893
31041
|
render() {
|
|
30894
|
-
return (hAsync(Host, { key: '
|
|
31042
|
+
return (hAsync(Host, { key: '3b08520661ce7817a247cdc1574d2e17934a7e17', class: "duet-visually-hidden" }, hAsync("slot", { key: 'fb9e14e593da0a47c7946ed385c3cbd711dc2ce7' })));
|
|
30895
31043
|
}
|
|
30896
31044
|
get element() { return getElement(this); }
|
|
30897
31045
|
static get style() { return duetVisuallyHiddenCss; }
|