@duetds/components 10.1.1 → 10.2.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 +295 -247
- package/hydrate/index.mjs +295 -247
- package/lib/cjs/{a11y-utils-B_EYQg_6.js → a11y-utils-Dt4L3QkG.js} +1 -1
- package/lib/cjs/{app-globals-BFWJwMVq.js → app-globals-1gECxmAH.js} +1 -1
- package/lib/cjs/{common-strings-CC6Xpjb8.js → common-strings-DMaSb4Ld.js} +8 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +5 -5
- package/lib/cjs/duet-badge.cjs.entry.js +6 -6
- package/lib/cjs/duet-banner.cjs.entry.js +3 -3
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
- package/lib/cjs/duet-button_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +20 -14
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkbox.cjs.entry.js +19 -5
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +4 -4
- package/lib/cjs/duet-choice_2.cjs.entry.js +13 -13
- package/lib/cjs/duet-collapsible.cjs.entry.js +5 -5
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +8 -8
- package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +10 -10
- package/lib/cjs/duet-empty-state.cjs.entry.js +4 -4
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +9 -9
- package/lib/cjs/duet-grid_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-header_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-hero.cjs.entry.js +10 -10
- package/lib/cjs/duet-icon.cjs.entry.js +5 -5
- package/lib/cjs/duet-indicator.cjs.entry.js +4 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +11 -11
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-modal.cjs.entry.js +13 -13
- package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-number-input.cjs.entry.js +8 -8
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
- package/lib/cjs/duet-pagination_2.cjs.entry.js +16 -16
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +11 -11
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +15 -15
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +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 +8 -8
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +11 -11
- package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- package/lib/cjs/duet-toggle.cjs.entry.js +25 -7
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
- package/lib/cjs/duet-tray.cjs.entry.js +5 -5
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-BiQq7F-O.js → errorcodes.utils-DtuBPKs3.js} +1 -1
- package/lib/cjs/{focus-utils-8IrILmeG.js → focus-utils-n84nLLND.js} +1 -1
- package/lib/cjs/{index-CwMzFaC2.js → index-BfggyC6D.js} +1 -1
- package/lib/cjs/{label-Bw-qhJBs.js → label-CFsg_9mi.js} +1 -1
- package/lib/cjs/{language-utils-BLi7aaEv.js → language-utils-UQJMUCLw.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-l9-tZvM8.js → slot-utils-BEQnfNX2.js} +1 -1
- package/lib/cjs/{themeable-component-DlxAauty.js → themeable-component-BkwBlXGz.js} +1 -1
- package/lib/collection/common-strings.js +7 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +11 -2
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +24 -2
- package/lib/collection/components/duet-chip/duet-chip.js +1 -1
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +6 -6
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -2
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +4 -4
- package/lib/collection/components/duet-grid/duet-grid.js +2 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-heading/duet-heading.js +2 -2
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-indicator/duet-indicator.js +1 -1
- package/lib/collection/components/duet-input/duet-input.js +6 -6
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.css +42 -8
- package/lib/collection/components/duet-link/duet-link.js +11 -5
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +7 -7
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-panel/duet-panel.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +3 -3
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
- package/lib/collection/components/duet-toggle/duet-toggle.css +22 -9
- package/lib/collection/components/duet-toggle/duet-toggle.js +84 -2
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-7cad4a7d.entry.js → p-01ede40e.entry.js} +1 -1
- package/lib/duet/{p-1bf0b984.entry.js → p-0c677bac.entry.js} +1 -1
- package/lib/duet/{p-49f9404b.entry.js → p-0e6feeaf.entry.js} +1 -1
- package/lib/duet/{p-5ee97e54.entry.js → p-10d943ea.entry.js} +1 -1
- package/lib/duet/{p-24bd3f6b.entry.js → p-11e17622.entry.js} +1 -1
- package/lib/duet/{p-8fb7d2ad.entry.js → p-16db57d6.entry.js} +1 -1
- package/lib/duet/{p-fb4af30f.entry.js → p-19dfac00.entry.js} +1 -1
- package/lib/duet/{p-e29699ea.entry.js → p-1a9f5440.entry.js} +1 -1
- package/lib/duet/{p-4c8ff6a9.entry.js → p-1b1018d1.entry.js} +1 -1
- package/lib/duet/p-1e4903a7.entry.js +4 -0
- package/lib/duet/{p-be967aa3.entry.js → p-1e82c441.entry.js} +1 -1
- package/lib/duet/{p-414306dc.entry.js → p-1f76c77a.entry.js} +1 -1
- package/lib/duet/{p-35ab9df3.entry.js → p-2871d3f5.entry.js} +1 -1
- package/lib/duet/{p-a1bddbe0.entry.js → p-2a1db046.entry.js} +1 -1
- package/lib/duet/{p-b4405bb2.entry.js → p-2b41b6c3.entry.js} +1 -1
- package/lib/duet/{p-5214be20.entry.js → p-2d813dd9.entry.js} +1 -1
- package/lib/duet/{p-8ef9d397.entry.js → p-2e99a3d1.entry.js} +1 -1
- package/lib/duet/{p-c49521b1.entry.js → p-308328c0.entry.js} +1 -1
- package/lib/duet/{p-d16bdf01.entry.js → p-31c03dbc.entry.js} +1 -1
- package/lib/duet/{p-4b150620.entry.js → p-32ae38d2.entry.js} +1 -1
- package/lib/duet/p-3650e089.entry.js +4 -0
- package/lib/duet/{p-c96cf3d3.entry.js → p-3b6f0ed3.entry.js} +1 -1
- package/lib/duet/{p-6f1841f2.entry.js → p-3c19d851.entry.js} +1 -1
- package/lib/duet/{p-2459de04.entry.js → p-3d85dbf7.entry.js} +1 -1
- package/lib/duet/{p-f9c54d66.entry.js → p-3dd1304e.entry.js} +1 -1
- package/lib/duet/{p-65eed68b.entry.js → p-413ccfee.entry.js} +1 -1
- package/lib/duet/{p-c08a6b40.entry.js → p-45f8d839.entry.js} +1 -1
- package/lib/duet/{p-6a5089bf.entry.js → p-493b240f.entry.js} +1 -1
- package/lib/duet/{p-f0c6161a.entry.js → p-4f16859a.entry.js} +1 -1
- package/lib/duet/{p-af604e20.entry.js → p-50f80b6c.entry.js} +1 -1
- package/lib/duet/{p-cd9c1ddc.entry.js → p-5302f338.entry.js} +1 -1
- package/lib/duet/{p-24e49455.entry.js → p-549e68da.entry.js} +1 -1
- package/lib/duet/{p-ae11d834.entry.js → p-6333c633.entry.js} +1 -1
- package/lib/duet/{p-fcb7ab98.entry.js → p-6969647c.entry.js} +1 -1
- package/lib/duet/{p-24c89cbd.entry.js → p-6b06705f.entry.js} +1 -1
- package/lib/duet/{p-38e2f4db.entry.js → p-6b9ac7ea.entry.js} +1 -1
- package/lib/duet/{p-c5f27149.entry.js → p-6bddd7b7.entry.js} +1 -1
- package/lib/duet/{p-d851fb45.entry.js → p-7515a195.entry.js} +1 -1
- package/lib/duet/{p-3caabda3.entry.js → p-7916d25e.entry.js} +1 -1
- package/lib/duet/{p-999ff774.entry.js → p-81e55a2f.entry.js} +1 -1
- package/lib/duet/{p-8ef3fe6f.entry.js → p-82ed09c9.entry.js} +1 -1
- package/lib/duet/{p-1bf130a0.entry.js → p-89cba286.entry.js} +1 -1
- package/lib/duet/p-8RjiAqaE.js +4 -0
- package/lib/duet/{p-68bb7d28.entry.js → p-8a9ad498.entry.js} +1 -1
- package/lib/duet/{p-0f15317c.entry.js → p-8ecfef50.entry.js} +1 -1
- package/lib/duet/{p-bafb269a.entry.js → p-8f43c23a.entry.js} +1 -1
- package/lib/duet/{p-D2reh8UV.js → p-8odxhfeD.js} +1 -1
- package/lib/duet/{p-9c176eae.entry.js → p-9289e2d6.entry.js} +1 -1
- package/lib/duet/{p-47d33b6b.entry.js → p-9bcb57a9.entry.js} +1 -1
- package/lib/duet/{p-e1eff77c.entry.js → p-9efde101.entry.js} +1 -1
- package/lib/duet/{p-Cz75kJ4Z.js → p-BcVbsW_2.js} +1 -1
- package/lib/duet/p-BhRNiBUo.js +4 -0
- package/lib/duet/{p-CPZ9Rh_9.js → p-BxH0r0DA.js} +1 -1
- package/lib/duet/{p-Be4oMqD2.js → p-C7D5HRhY.js} +1 -1
- package/lib/duet/p-CKemMSHL.js +4 -0
- package/lib/duet/{p-D7O8dU_Q.js → p-DMjxD3N-.js} +1 -1
- package/lib/duet/{p-BiXEBkqx.js → p-LYJwm2Mz.js} +1 -1
- package/lib/duet/{p-e08191e2.entry.js → p-a408c8ef.entry.js} +1 -1
- package/lib/duet/{p-14c52ecc.entry.js → p-a8b8aa7f.entry.js} +1 -1
- package/lib/duet/{p-46fdb6a9.entry.js → p-abb3a02c.entry.js} +1 -1
- package/lib/duet/{p-5c8619fc.entry.js → p-ad2d810a.entry.js} +1 -1
- package/lib/duet/{p-ad94e5b7.entry.js → p-ad86f19c.entry.js} +1 -1
- package/lib/duet/{p-0be1cbcc.entry.js → p-ad8929e4.entry.js} +1 -1
- package/lib/duet/p-aef55e42.entry.js +4 -0
- package/lib/duet/{p-07b33d9a.entry.js → p-b178aa13.entry.js} +1 -1
- package/lib/duet/{p-3115c01d.entry.js → p-b8fe3df0.entry.js} +1 -1
- package/lib/duet/{p-3937103e.entry.js → p-b9327667.entry.js} +1 -1
- package/lib/duet/{p-e06f599b.entry.js → p-b9c35e5e.entry.js} +1 -1
- package/lib/duet/{p-23c8a3cf.entry.js → p-bbaa683a.entry.js} +1 -1
- package/lib/duet/{p-a886ee0b.entry.js → p-bdb10c77.entry.js} +1 -1
- package/lib/duet/{p-96334633.entry.js → p-bdd24cc6.entry.js} +1 -1
- package/lib/duet/p-be91dd8c.entry.js +4 -0
- package/lib/duet/{p-ec572857.entry.js → p-cb90478e.entry.js} +1 -1
- package/lib/duet/{p-5e312efa.entry.js → p-cdc6285c.entry.js} +1 -1
- package/lib/duet/{p-1a92ea28.entry.js → p-d1db3194.entry.js} +1 -1
- package/lib/duet/{p-ab65780a.entry.js → p-d2c50765.entry.js} +1 -1
- package/lib/duet/{p-e51c28bc.entry.js → p-d625732a.entry.js} +1 -1
- package/lib/duet/p-d8ddd6aa.entry.js +4 -0
- package/lib/duet/{p-46594b20.entry.js → p-d948db17.entry.js} +1 -1
- package/lib/duet/{p-0d9FRr_b.js → p-dX4lCxX-.js} +1 -1
- package/lib/duet/{p-87fdb2d1.entry.js → p-dc7b2908.entry.js} +1 -1
- package/lib/duet/{p-20bfba9e.entry.js → p-dfb7e2a4.entry.js} +1 -1
- package/lib/duet/{p-69c2989d.entry.js → p-e042f54a.entry.js} +1 -1
- package/lib/duet/{p-e0c9c534.entry.js → p-e197cf15.entry.js} +1 -1
- package/lib/duet/p-e21285ad.entry.js +4 -0
- package/lib/duet/p-e5173b25.entry.js +4 -0
- package/lib/duet/p-e6a05ef9.entry.js +4 -0
- package/lib/duet/{p-a94c2063.entry.js → p-ecad641c.entry.js} +1 -1
- package/lib/duet/{p-6b6a8585.entry.js → p-ed84afb6.entry.js} +1 -1
- package/lib/duet/p-ee7e1387.entry.js +4 -0
- package/lib/duet/{p-53a8fc76.entry.js → p-f2cc172e.entry.js} +1 -1
- package/lib/duet/p-f55ffe76.entry.js +4 -0
- package/lib/duet/{p-64003bfb.entry.js → p-f80c76b3.entry.js} +1 -1
- package/lib/duet/{p-e3116610.entry.js → p-f920d7a8.entry.js} +1 -1
- package/lib/duet/{p-a79d0152.entry.js → p-fc427a9c.entry.js} +1 -1
- package/lib/duet/{p-8e105140.entry.js → p-fd1bf11b.entry.js} +1 -1
- package/lib/esm/{a11y-utils-BPzUw6wf.js → a11y-utils-Cc259XJX.js} +1 -1
- package/lib/esm/{app-globals-SsQsu12e.js → app-globals-CIsV7gbu.js} +1 -1
- package/lib/esm/{common-strings-CVPfl9fc.js → common-strings-8RjiAqaE.js} +8 -2
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +5 -5
- package/lib/esm/duet-badge.entry.js +6 -6
- package/lib/esm/duet-banner.entry.js +3 -3
- package/lib/esm/duet-breadcrumb.entry.js +6 -6
- package/lib/esm/duet-breadcrumbs.entry.js +5 -5
- package/lib/esm/duet-button_2.entry.js +5 -5
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +20 -14
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +19 -5
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +4 -4
- package/lib/esm/duet-choice_2.entry.js +13 -13
- package/lib/esm/duet-collapsible.entry.js +5 -5
- package/lib/esm/duet-combobox.entry.js +4 -4
- package/lib/esm/duet-contact-card.entry.js +5 -5
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +8 -8
- package/lib/esm/duet-divider_2.entry.js +4 -4
- package/lib/esm/duet-editable-table_3.entry.js +10 -10
- package/lib/esm/duet-empty-state.entry.js +4 -4
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +9 -9
- package/lib/esm/duet-grid_2.entry.js +6 -6
- package/lib/esm/duet-header_2.entry.js +5 -5
- package/lib/esm/duet-hero.entry.js +10 -10
- package/lib/esm/duet-icon.entry.js +5 -5
- package/lib/esm/duet-indicator.entry.js +4 -4
- package/lib/esm/duet-input_2.entry.js +11 -11
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +5 -5
- package/lib/esm/duet-menu-bar-button.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-menu-bar-item.entry.js +8 -8
- package/lib/esm/duet-menu-bar-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar.entry.js +6 -6
- package/lib/esm/duet-modal.entry.js +13 -13
- package/lib/esm/duet-multiselect.entry.js +10 -10
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +9 -9
- package/lib/esm/duet-number-input.entry.js +8 -8
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +4 -4
- package/lib/esm/duet-pagination_2.entry.js +16 -16
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +4 -4
- package/lib/esm/duet-popup-menu_2.entry.js +11 -11
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +5 -5
- package/lib/esm/duet-radio_2.entry.js +7 -7
- package/lib/esm/duet-range-slider.entry.js +6 -6
- package/lib/esm/duet-scrollable_3.entry.js +15 -15
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +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 +8 -8
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +11 -11
- package/lib/esm/duet-slideout.entry.js +10 -10
- package/lib/esm/duet-status-icon.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +7 -7
- package/lib/esm/duet-textarea.entry.js +8 -8
- package/lib/esm/duet-toggle.entry.js +25 -7
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +9 -9
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +9 -9
- package/lib/esm/duet-tooltip.entry.js +4 -4
- package/lib/esm/duet-tray.entry.js +5 -5
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +6 -6
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-BSrGsmkE.js → errorcodes.utils-KnjOo5JF.js} +1 -1
- package/lib/esm/{focus-utils-pVdst0px.js → focus-utils-Cgrh4d7y.js} +1 -1
- package/lib/esm/{index-CPZ9Rh_9.js → index-BxH0r0DA.js} +1 -1
- package/lib/esm/{label-DOI1kYHr.js → label-DA-iWWhe.js} +1 -1
- package/lib/esm/{language-utils-D2LZ-dAb.js → language-utils-BqCiY8zW.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-Plu0scZN.js → slot-utils-Bi4BkMYE.js} +1 -1
- package/lib/esm/{themeable-component-CyP7TR8I.js → themeable-component-EeTaKAPP.js} +1 -1
- package/lib/types/common-strings.d.ts +1 -0
- package/lib/types/common-types.d.ts +8 -1
- package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +6 -0
- package/lib/types/components/duet-link/duet-link.d.ts +3 -1
- package/lib/types/components/duet-toggle/duet-toggle.d.ts +16 -0
- package/lib/types/components.d.ts +28 -2
- package/package.json +5 -5
- package/lib/duet/p-0557d0e3.entry.js +0 -4
- package/lib/duet/p-0596ed8f.entry.js +0 -4
- package/lib/duet/p-12037a2a.entry.js +0 -4
- package/lib/duet/p-22ecf342.entry.js +0 -4
- package/lib/duet/p-4eb8634c.entry.js +0 -4
- package/lib/duet/p-760530e9.entry.js +0 -4
- package/lib/duet/p-8b3be0f7.entry.js +0 -4
- package/lib/duet/p-8d0727d6.entry.js +0 -4
- package/lib/duet/p-91ce1d13.entry.js +0 -4
- package/lib/duet/p-B01I4GZJ.js +0 -4
- package/lib/duet/p-BBJluIMx.js +0 -4
- package/lib/duet/p-CVPfl9fc.js +0 -4
- package/lib/duet/p-b90b0d7a.entry.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -4766,7 +4766,13 @@ const DuetStringsExternalDefaults = {
|
|
|
4766
4766
|
const DuetStringsLoadingDefaults = {
|
|
4767
4767
|
fi: "Ladataan",
|
|
4768
4768
|
sv: "Laddas",
|
|
4769
|
-
en: "Loading
|
|
4769
|
+
en: "Loading",
|
|
4770
|
+
};
|
|
4771
|
+
// Use with loading messages if completion is not otherwise communicated
|
|
4772
|
+
const DuetStringsCompleteDefaults = {
|
|
4773
|
+
fi: "Valmis",
|
|
4774
|
+
sv: "Färdig",
|
|
4775
|
+
en: "Complete",
|
|
4770
4776
|
};
|
|
4771
4777
|
const DuetStringsPleaseWaitDefaults = {
|
|
4772
4778
|
fi: "Odota, ole hyvä.",
|
|
@@ -5122,12 +5128,12 @@ class DuetBadge {
|
|
|
5122
5128
|
*/
|
|
5123
5129
|
render() {
|
|
5124
5130
|
const backgroundClass = `background-${this.background}`;
|
|
5125
|
-
return (hAsync(Host, { key: '
|
|
5131
|
+
return (hAsync(Host, { key: '03d3bd79092c38d8958403b19d5c0cd283ab3ba5', class: { "duet-m-0": this.margin === "none" } }, hAsync("span", { key: 'f5a1274e6cf3bfde60480fa72d842cc767b1a273', class: {
|
|
5126
5132
|
"duet-badge": true,
|
|
5127
5133
|
[this.variation]: true,
|
|
5128
5134
|
[backgroundClass]: true,
|
|
5129
5135
|
"duet-theme-turva": this.theme === "turva",
|
|
5130
|
-
} }, hAsync("duet-visually-hidden", { key: '
|
|
5136
|
+
} }, hAsync("duet-visually-hidden", { key: 'dbd02ca355aa4f863f1e859229cb1bbfc370be66' }, this.getVariationLabel()), hAsync("slot", { key: '4a391eb33eecc9b346b7fdcb4b333d31d413b671' }))));
|
|
5131
5137
|
}
|
|
5132
5138
|
get element() { return getElement(this); }
|
|
5133
5139
|
static get style() { return duetBadgeCss; }
|
|
@@ -5380,15 +5386,15 @@ class DuetBreadcrumb {
|
|
|
5380
5386
|
*/
|
|
5381
5387
|
render() {
|
|
5382
5388
|
const Tag = this.href ? "a" : "span";
|
|
5383
|
-
return (hAsync(Host, { key: '
|
|
5389
|
+
return (hAsync(Host, { key: '941cfe85ceb3fa1921b6afe71d2885f36a071966', role: "listitem" }, hAsync("div", { key: '30ae1fd0a1a013d6fc7e2c318248c1c6eec5bbe5', class: "container" }, this.icon === "arrow-right-small-icon" && (hAsync("duet-icon", { key: '074eaae1ca2fa2797b8eba7a1354b0d815b1936d', class: "duet-breadrumbs-arrow", size: "auto", icon: arrowRightSmallIcon.svg, margin: "none", color: "currentColor" })), hAsync(Tag, { key: 'a69cd43b3f81311c55e245d1e292315cf885a972', class: {
|
|
5384
5390
|
"duet-breadcrumb": true,
|
|
5385
5391
|
"duet-theme-turva": this.theme === "turva",
|
|
5386
5392
|
"icon-only": this.icon && !this.hasSlottedContent,
|
|
5387
5393
|
}, href: this.href || undefined, "aria-label": this.accessibleLabel || this.element.textContent, "aria-current": this.href ? undefined : "page" }, this.icon !== "arrow-right-small-icon" &&
|
|
5388
5394
|
this.icon && [
|
|
5389
|
-
hAsync("duet-icon", { key: '
|
|
5390
|
-
this.hasSlottedContent && hAsync("duet-spacer", { key: '
|
|
5391
|
-
], hAsync("slot", { key: '
|
|
5395
|
+
hAsync("duet-icon", { key: 'bb4d4379b6b38d5f5a8a8852a3e8ae320b72a48a', size: this.iconSize, name: this.icon, margin: "none", color: "currentColor" }),
|
|
5396
|
+
this.hasSlottedContent && hAsync("duet-spacer", { key: '72e99845589045f22bfd119623a79c3f0206b812', size: "x-small", direction: "horizontal" }),
|
|
5397
|
+
], hAsync("slot", { key: '3190e7c4331c2856b71b54a5bdf6232b332dfa00' })))));
|
|
5392
5398
|
}
|
|
5393
5399
|
get element() { return getElement(this); }
|
|
5394
5400
|
static get style() { return duetBreadcrumbCss; }
|
|
@@ -5456,11 +5462,11 @@ class DuetBreadcrumbs {
|
|
|
5456
5462
|
*/
|
|
5457
5463
|
render() {
|
|
5458
5464
|
const color = getColorByName(this.color);
|
|
5459
|
-
return (hAsync(Host, { key: '
|
|
5465
|
+
return (hAsync(Host, { key: 'c98b2354a647046cdf36b9fc042a825d59f69016' }, hAsync("nav", { key: 'e5b3ab730c684343f6f7b551e3a90e4f804c33e4', "aria-label": this.breadcrumbsAriaLabel, class: {
|
|
5460
5466
|
"duet-breadcrumbs": true,
|
|
5461
5467
|
"duet-theme-turva": this.theme === "turva",
|
|
5462
5468
|
[this.variation]: true,
|
|
5463
|
-
} }, hAsync("div", { key: '
|
|
5469
|
+
} }, hAsync("div", { key: 'f31d96c0db9cd1c376cb303d8ecf24327d9c530e', class: "container" }, hAsync("div", { key: '94307d00ca67a2caf0783be3dfd2ebe7568dc21f', role: "list", class: "list", style: { color } }, hAsync("slot", { key: '1a5f46b90a2b35c16992b4af7766bcbd4d7925f2' })), hAsync("div", { key: '15d920594f56343f362d726da3a4a8d87edb10d7', class: "bottom-border bottom-border--container" })), hAsync("div", { key: '7bc1ccc417e8d621909d06bf2933ddd97ee6dbcc', class: "bottom-border bottom-border--nav" }))));
|
|
5464
5470
|
}
|
|
5465
5471
|
get element() { return getElement(this); }
|
|
5466
5472
|
static get style() { return duetBreadcrumbsCss; }
|
|
@@ -5881,11 +5887,11 @@ class DuetCallout {
|
|
|
5881
5887
|
<path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>
|
|
5882
5888
|
</svg>
|
|
5883
5889
|
`;
|
|
5884
|
-
return (hAsync(Host, { key: '
|
|
5890
|
+
return (hAsync(Host, { key: 'b082df5828c66c540240a355c2143bdc97cdeda2' }, hAsync("div", { key: '318c40bc242a649eb1e74191703e77ef9f567dac', class: {
|
|
5885
5891
|
"duet-callout": true,
|
|
5886
5892
|
"duet-theme-turva": this.theme === "turva",
|
|
5887
5893
|
"duet-m-0": this.margin === "none",
|
|
5888
|
-
} }, hAsync("figure", { key: '
|
|
5894
|
+
} }, hAsync("figure", { key: '4c7ff23d3c646e8e37452488aba5b9a28344625f', class: "container" }, hAsync("duet-icon", { key: 'd5234359ce6513b20a552366603498b7dc5729f5', class: "callout-icon", shape: "brand-rotated", background: "primary-lighter", "background-opacity": "0.75", "background-rotation": this.theme === "turva" ? "0" : "7", color: "secondary", icon: icon, size: "auto", margin: "none", theme: this.theme }), hAsync("blockquote", { key: '67ab9a0d89f6abff523b8ca16a20c2a67865b86a' }, hAsync("slot", { key: 'fc4670a439f114411b42ce3dcd8ef7f365fa650c' })), this.hasAuthorSlot && (hAsync("figcaption", { key: '9d1b92d3229bef3447e7b5590efc766d4efb2ad6', class: "author" }, hAsync("span", { key: '5310ad556c87706338d0a75058107d2e4d1fe241' }, "\u2014 "), hAsync("slot", { key: 'f7281f1633a536bd242831e952ca1bc240b98b1c', name: "author" })))))));
|
|
5889
5895
|
}
|
|
5890
5896
|
get element() { return getElement(this); }
|
|
5891
5897
|
static get style() { return duetCalloutCss; }
|
|
@@ -6165,8 +6171,11 @@ class DuetCard {
|
|
|
6165
6171
|
}; }
|
|
6166
6172
|
}
|
|
6167
6173
|
|
|
6168
|
-
const duetCheckboxCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:8px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}[alignment=form-distribute]>:host(:last-of-type:not(:last-child)){margin-right:8px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host(:last-child:not(:only-child)){margin-bottom:0 !important}:host(.duet-m-0){margin:0 !important}.duet-label{position:relative;z-index:100;display:inline;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.5;vertical-align:top;color:rgb(8, 42, 77);cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva .duet-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-label span{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container{position:relative;width:100%;height:100%}.duet-checkbox{
|
|
6174
|
+
const duetCheckboxCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{margin-right:8px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}[alignment=form-distribute]>:host(:last-of-type:not(:last-child)){margin-right:8px !important}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host(:last-child:not(:only-child)){margin-bottom:0 !important}:host(.duet-m-0){margin:0 !important}.duet-label{position:relative;z-index:100;display:inline;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.5;vertical-align:top;color:rgb(8, 42, 77);cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva .duet-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-label span{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container{position:relative;width:100%;height:100%}.duet-checkbox{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.duet-checkbox+label::before{z-index:100;display:inline-block;width:20px;height:20px;margin:2px 10px 1px 1px;vertical-align:top;content:\"\";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:4px}.duet-theme-turva .duet-checkbox+label::before{border-color:rgb(23, 28, 58)}.duet-checkbox:checked+label::before{background:rgb(0, 119, 179);border:1px solid rgb(0, 119, 179)}.duet-theme-turva .duet-checkbox:checked+label::before{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-checkbox:focus+label::before{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-checkbox:focus+label::before,.duet-checkbox:focus+label::before.duet-theme-turva,.duet-theme-turva2 .duet-checkbox:focus+label::before,.duet-checkbox:focus+label::before.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva .duet-checkbox:focus+label::before{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-checkbox[aria-invalid=true]+label::before{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-checkbox[aria-invalid=true]+label::before{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-checkbox+label{position:static}.duet-checkbox:checked+label::after{position:absolute;top:6px;left:5px;z-index:200;width:12px;height:12px;pointer-events:none;content:\"\";background:transparent url(\"data:image/svg+xml,%3Csvg%20fill%3D%27white%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M23.374.287a1.5%2C1.5%2C0%2C0%2C0-2.093.345L7.246%2C20.2%2C2.561%2C15.511A1.5%2C1.5%2C0%2C1%2C0%2C.439%2C17.632l5.935%2C5.934a1.525%2C1.525%2C0%2C0%2C0%2C2.279-.186l15.066-21A1.5%2C1.5%2C0%2C0%2C0%2C23.374.287Z%27%20%2F%3E%3C%2Fsvg%3E\") no-repeat 0 0;background-size:100% auto}.duet-checkbox[disabled]{cursor:default}.duet-checkbox[disabled]+label{color:rgb(98, 121, 138)}.duet-theme-turva .duet-checkbox[disabled]+label{color:rgb(143, 147, 158)}.duet-checkbox[disabled]+label::before{border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-checkbox[disabled]+label::before{border-color:rgb(199, 202, 207)}.duet-checkbox[disabled]:checked+label::before{background:rgb(127, 150, 165);border:1px solid rgb(127, 150, 165)}.duet-theme-turva .duet-checkbox[disabled]:checked+label::before{background:rgb(143, 147, 158);border-color:rgb(143, 147, 158)}.duet-after-label{position:relative;z-index:3;padding-left:31px;margin-top:12px;cursor:default}.duet-checkbox-error{position:relative;z-index:3;padding-left:31px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(214, 28, 82);border-radius:4px}.duet-theme-turva .duet-checkbox-error{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(214, 28, 82)}.duet-label-hidden .duet-label span,.duet-label-hidden .duet-checkbox-error span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}:host(.duet-theme-turva2) .duet-theme-turva .duet-label{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-checkbox+label::before{border-color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-checkbox:checked+label::before{background:rgb(23, 42, 59);border-color:rgb(23, 42, 59)}";
|
|
6169
6175
|
|
|
6176
|
+
/**
|
|
6177
|
+
* @slot after-label - Shows content seamlessly after the label. Unlike with the label, here you can have links and other markup.
|
|
6178
|
+
*/
|
|
6170
6179
|
class DuetCheckbox {
|
|
6171
6180
|
constructor(hostRef) {
|
|
6172
6181
|
registerInstance(this, hostRef);
|
|
@@ -6177,7 +6186,9 @@ class DuetCheckbox {
|
|
|
6177
6186
|
* Own Properties.
|
|
6178
6187
|
*/
|
|
6179
6188
|
this.checkboxId = createID("DuetCheckbox");
|
|
6189
|
+
this.afterLabelId = createID("DuetCheckboxAfterLabel");
|
|
6180
6190
|
this.errorId = createID("DuetError");
|
|
6191
|
+
this.hasAfterLabelSlot = false;
|
|
6181
6192
|
/**
|
|
6182
6193
|
* Controls the margin of the component.
|
|
6183
6194
|
*/
|
|
@@ -6283,6 +6294,7 @@ class DuetCheckbox {
|
|
|
6283
6294
|
*/
|
|
6284
6295
|
componentWillLoad() {
|
|
6285
6296
|
inheritGlobalTheme(this);
|
|
6297
|
+
this.hasAfterLabelSlot = hasSlot(this.element, "after-label");
|
|
6286
6298
|
if (this.value === undefined) {
|
|
6287
6299
|
this.value = this.identifier;
|
|
6288
6300
|
}
|
|
@@ -6294,17 +6306,27 @@ class DuetCheckbox {
|
|
|
6294
6306
|
async setFocus(options) {
|
|
6295
6307
|
this.nativeInput.focus(options);
|
|
6296
6308
|
}
|
|
6309
|
+
getAriaDetails() {
|
|
6310
|
+
const details = [];
|
|
6311
|
+
if (this.accessibleDetails) {
|
|
6312
|
+
details.push(this.accessibleDetails);
|
|
6313
|
+
}
|
|
6314
|
+
if (this.hasAfterLabelSlot) {
|
|
6315
|
+
details.push(this.afterLabelId);
|
|
6316
|
+
}
|
|
6317
|
+
return details.join(" ");
|
|
6318
|
+
}
|
|
6297
6319
|
/**
|
|
6298
6320
|
* render() function
|
|
6299
6321
|
* Always the last one in the class.
|
|
6300
6322
|
*/
|
|
6301
6323
|
render() {
|
|
6302
6324
|
const identifier = this.identifier || this.checkboxId;
|
|
6303
|
-
return (hAsync(Host, { key: '
|
|
6325
|
+
return (hAsync(Host, { key: '89b58639dd5439529654ebe6791968205c6a0dcc', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '4fbfc9f9546310625a3767dae94b2ae517b3f7d8', class: {
|
|
6304
6326
|
"duet-checkbox-container": true,
|
|
6305
6327
|
"duet-label-hidden": this.labelHidden,
|
|
6306
6328
|
"duet-theme-turva": this.theme === "turva",
|
|
6307
|
-
} }, hAsync("input", { key: '
|
|
6329
|
+
} }, hAsync("input", { key: 'ddd0f55c22714aa512410996c1dbe3236e9583c4', ref: input => (this.nativeInput = input), type: "checkbox", onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, value: this.value, class: { "duet-checkbox": true, disabled: this.disabled }, checked: this.checked, disabled: this.disabled, tabindex: this.accessibleIndex, "aria-invalid": this.error ? "true" : "false", "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.getAriaDetails(), "aria-description": this.accessibleDescription, "aria-selected": this.accessibleSelected, required: this.required, role: this.role, name: this.name, id: identifier }), hAsync("label", { key: '7944e807c4a8fcaafc9eff276db3966aa9c40c2b', class: "duet-label", htmlFor: identifier }, hAsync("span", { key: 'b47a404400a92048a27be9d518269e1df8fb6aa3' }, this.label)), hAsync("div", { key: '1aa8a524fc1166a166d663a8cedfecac82db681e', class: "duet-after-label", id: this.afterLabelId }, hAsync("slot", { key: '6c9ea33f6cf0082e06196679183eeb43e3a2067d', name: "after-label" })), hAsync("div", { key: 'a050694cc104b9c1ceae613ae2b6fa689ca36768', class: "duet-checkbox-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'ed6d7890a72979f4e4245cd84f55ee992ef6f6af' }, this.error)))));
|
|
6308
6330
|
}
|
|
6309
6331
|
get element() { return getElement(this); }
|
|
6310
6332
|
static get style() { return duetCheckboxCss; }
|
|
@@ -6334,6 +6356,7 @@ class DuetCheckbox {
|
|
|
6334
6356
|
"role": [1],
|
|
6335
6357
|
"checked": [1540],
|
|
6336
6358
|
"value": [1537],
|
|
6359
|
+
"hasAfterLabelSlot": [32],
|
|
6337
6360
|
"setFocus": [64]
|
|
6338
6361
|
},
|
|
6339
6362
|
"$listeners$": undefined,
|
|
@@ -6375,11 +6398,11 @@ class DuetCheckmark {
|
|
|
6375
6398
|
inheritGlobalTheme(this);
|
|
6376
6399
|
}
|
|
6377
6400
|
render() {
|
|
6378
|
-
return (hAsync(Host, { key: '
|
|
6401
|
+
return (hAsync(Host, { key: '77d8d9cfa205def19022cd899ab98eb36007d2e2', class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: 'b93b32d626ceca01d12390209e700eef8665fd8b', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, hAsync("div", { key: 'fa4d7323cf416248275604e05b261bc1f542ea6e', class: {
|
|
6379
6402
|
"duet-checkmark-container": true,
|
|
6380
6403
|
center: this.center,
|
|
6381
6404
|
"duet-checkmark-radio": this.type === "radio",
|
|
6382
|
-
} }, this.checked && hAsync("div", { key: '
|
|
6405
|
+
} }, this.checked && hAsync("div", { key: 'd2a988ecdd6f5d41ce318365966515ff92c252c6', class: "duet-checkmark" })))));
|
|
6383
6406
|
}
|
|
6384
6407
|
static get style() { return duetCheckmarkCss; }
|
|
6385
6408
|
static get cmpMeta() { return {
|
|
@@ -6731,7 +6754,7 @@ class DuetChip {
|
|
|
6731
6754
|
onBlur: this.onBlur,
|
|
6732
6755
|
ref: el => (this.focusableElement = el),
|
|
6733
6756
|
};
|
|
6734
|
-
return (hAsync(Host, { key: '
|
|
6757
|
+
return (hAsync(Host, { key: 'e26aa34e15b03e670a0f3f0e0d4cc24a237434bd', class: { [this.variation]: true } }, this.variation === "button" && (hAsync("span", { key: '9f57e595caa81d8d4b84394b3a4a49fbdf19da48', class: classes }, hAsync("button", Object.assign({ key: 'd68d62140116bf1fbb975b9b6b0453ff209e02c1', id: identifier, "aria-label": this.accessibleLabel, "aria-haspopup": this.getAccessiblePopup(), "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, name: this.name, value: this.value, onClick: this.disabled ? evt => evt.stopPropagation() : undefined }, focusHandlers), hAsync("span", { key: 'ddf0a95c86a07ebed9110017d6a0bd77e47a3e95', class: "duet-chip-icon-container" }, this.icon && (hAsync("duet-icon", { key: 'd6adb6765da92cb43ed0c408ecd8bea4221047a8', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), hAsync("slot", { key: 'ce3208e6913557213ca536866493c7765bc2cb77' })))), this.variation === "input" && (hAsync("span", { key: '75ec4e277b428b7e34bd5366b9a487c16c886ae9', class: classes, "aria-label": this.getAccessibleInputChipLabel() }, hAsync("button", Object.assign({ key: '92de738c0bd52efb610ecc97056827f0af9a1252', id: identifier, class: "duet-chip-input-button", value: this.value, "aria-label": this.accessibleLabel, onMouseOver: () => (this.inputChipHover = true), onMouseOut: () => (this.inputChipHover = false), onClick: () => (this.selected = !this.selected) }, focusHandlers), hAsync("span", { key: 'ff2ae73783f77320559096261e367a6d5496c9fb', class: "duet-chip-icon-container" }, this.icon && (hAsync("duet-icon", { key: 'f8ac9cb89ed8e949a37944938652b62008fc19c7', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), hAsync("slot", { key: 'aaf69ef9eb8e5b3f48a68e4a01a70b2272d469ae' })), hAsync("button", { key: 'fe3a6dcce274c4f812c58da61c30f97707ef5767', class: "duet-chip-remove-button", "aria-label": this.getAccessibleDeleteLabel(), onClick: this.onRemoveClick, onFocus: () => (this.inputChipDeleteFocus = true), onBlur: () => (this.inputChipDeleteFocus = false), ref: el => (this.deleteButtonElement = el) }, hAsync("duet-icon", { key: 'e548beece645e839b0b43bfcd131764db993bf9f', name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (hAsync("span", { key: 'e5fd9ed10732bda6ab5ce6a44297a923c251badb', class: classes }, hAsync("input", Object.assign({ key: '86e4c71d067982fef1537d4ab02e9c28d20696b3', "aria-haspopup": this.getAccessiblePopup(), "aria-controls": (_a = this.popupElement) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), hAsync("label", { key: 'd7f775b63603946790ea8e4412cde73865c49683', htmlFor: identifier }, this.icon && (hAsync("span", { key: '274d90f5406d6dd2d7d7386b1b4bdec927781a5c', class: "duet-chip-icon-container" }, hAsync("duet-icon", { key: '5425392636f14e79e52edb733baec19b330be1b4', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), hAsync("duet-icon", { key: '34eadef6cfac6361f4069f673efd04df0c6de0cc', name: "messaging-checked-small", size: this.size === "large" ? "x-small" : "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), hAsync("slot", { key: '6f33a83d88ab32af90c49a61aa55459c1c6a4e27' }), this.popupElement && (hAsync("span", { key: 'efccfca32d5aefd8c0f6d8da8c39941f93fafa73', class: "duet-chip-popup-disclosure" }, hAsync("duet-icon", { key: '49d87cd5a7e0b1249c9b484ab6ffb949b32a9d0a', name: "action-arrow-down-small", size: this.size === "large" ? "xx-small" : "xxx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (hAsync("span", { key: '34755198707218679008f8d3f1345f378a9f1be8', class: classes }, hAsync("slot", { key: 'c2fec1770e3e9916e9a456519bdb73461d00e32c', name: "input" }), hAsync("label", { key: '34286b6515f0c2f96d8ebb84f8c99a9ecdca76c2', htmlFor: identifier }, this.icon && (hAsync("span", { key: '5fbfe0a0c184a04844eccc440c042fae5f5321be', class: "duet-chip-icon-container" }, hAsync("duet-icon", { key: 'c0ada34d07c59029ef1961d0d60f9e801e8e38cc', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), hAsync("duet-icon", { key: '4b2626e45a9078b5ea6993183f57c5a0bfdc38c8', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), hAsync("slot", { key: 'a4b9352bda8b5f9e9ce1912d07159c77844a4580' }))))));
|
|
6735
6758
|
}
|
|
6736
6759
|
get element() { return getElement(this); }
|
|
6737
6760
|
static get watchers() { return {
|
|
@@ -7167,7 +7190,7 @@ class DuetChoice {
|
|
|
7167
7190
|
* Always the last one in the class.
|
|
7168
7191
|
*/
|
|
7169
7192
|
render() {
|
|
7170
|
-
return (hAsync(Host, { key: '
|
|
7193
|
+
return (hAsync(Host, { key: '583ef635169af9972811ec71576988fa12c1ad9a', class: {
|
|
7171
7194
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
7172
7195
|
[`horizontal-responsive-${this.groupResponsive}`]: this.groupDirection === "horizontal" && !!this.groupResponsive,
|
|
7173
7196
|
"vertical-stretch": this.groupDirection === "horizontal",
|
|
@@ -7176,10 +7199,10 @@ class DuetChoice {
|
|
|
7176
7199
|
"duet-theme-turva": this.theme === "turva",
|
|
7177
7200
|
"no-hover": this.isHovering,
|
|
7178
7201
|
disabled: this.getDisabled(),
|
|
7179
|
-
} }, hAsync("div", { key: '
|
|
7202
|
+
} }, hAsync("div", { key: 'ca64fbe3bb8291ad36305267c7e1ea02355ebc5c', class: {
|
|
7180
7203
|
"duet-choice-card-flextainer": true,
|
|
7181
7204
|
"duet-theme-turva": this.theme === "turva",
|
|
7182
|
-
} }, hAsync("div", { key: '
|
|
7205
|
+
} }, hAsync("div", { key: 'cad7111f70511cf2f1dbe0e9db6c00c0f2e038ad', class: {
|
|
7183
7206
|
"duet-choice-card": true,
|
|
7184
7207
|
"has-icon": !!this.icon,
|
|
7185
7208
|
"has-info": this.hasInfo,
|
|
@@ -7188,16 +7211,16 @@ class DuetChoice {
|
|
|
7188
7211
|
collapsible: this.collapsible,
|
|
7189
7212
|
"collapsible-force-expanded": this.collapsibleForceExpanded,
|
|
7190
7213
|
"duet-p-0": this.padding === "none",
|
|
7191
|
-
} }, hAsync("slot", { key: '
|
|
7214
|
+
} }, hAsync("slot", { key: 'bb7405107756f726503cf0e17278761d9f68386e', name: "choiceinput" }), hAsync("label", { key: '0ae8fc10a14a1b68cf78e7fe65164cc4ac4471f4', class: {
|
|
7192
7215
|
"duet-choice-label": true,
|
|
7193
7216
|
"has-before-text": this.hasBeforeText,
|
|
7194
7217
|
checked: this.checked,
|
|
7195
7218
|
focus: this.focus,
|
|
7196
7219
|
disabled: this.getDisabled(),
|
|
7197
|
-
}, onClick: this.onClick }, this.hasBeforeText && hAsync("slot", { key: '
|
|
7220
|
+
}, onClick: this.onClick }, this.hasBeforeText && hAsync("slot", { key: '174aa0372dd6cce4bc695425fc0f4f9b9ef51e89', name: "before-text" }), this.icon && (hAsync("div", { key: '1d8c96fbbb225864342228a15026d56c2288ba7c', class: "duet-choice-card-icon" }, hAsync("duet-icon", { key: '737fc607c29c5178a62c6981571c1624e3a7d993', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), hAsync("div", { key: 'e97966ca1b32ac47460f193997509eda09904469', class: "duet-choice-card-text" }, hAsync("div", { key: 'df684a3bf298011052b12e8a8a781f537403a1a0' }, this.hasLabel ? hAsync("slot", { name: "label" }) : this.label), this.caption && (hAsync("div", { key: 'eb703567d8b2d2a3d940af79c3e36e339b16358e' }, hAsync("duet-spacer", { key: '2a260bd1fa121622e21c8e64952c14a8fdf7e40f', size: "xx-small" }), hAsync("duet-caption", { key: 'ca97833b65e235dc4316249086e099f33cbea465', margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (hAsync("div", { key: 'bce4fd584082e0a2d2b6e72ba5ffb32487c55564' }, hAsync("duet-spacer", { key: '40efa3cc50c5636c85cfab0e4ba9e96aafad8f79', size: "xx-small" }), hAsync("slot", { key: 'db4d24e43aa875de213391981ed2b841137337aa', name: "additional" })))), hAsync("div", { key: '496255f50229c21cf645b9b2a0a3c10db73cee12' }, hAsync("div", { key: '90180fd834fc6a1f39cc6dcea6a61133961cbdaf', class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && hAsync("div", { key: '1d6455f6915d00399fdb586aca6b0ee2a622d2da', class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (hAsync("button", { key: '8897ce9328e49c68fef9b9901e8e6f271cd484d9', ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
|
|
7198
7221
|
"duet-choice-info-toggle": true,
|
|
7199
7222
|
"duet-theme-turva": this.theme === "turva",
|
|
7200
|
-
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.getDisabled(), "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button", onKeyUp: e => this.handleEscape(e) }, hAsync("div", { key: '
|
|
7223
|
+
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.getDisabled(), "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button", onKeyUp: e => this.handleEscape(e) }, hAsync("div", { key: 'cd0cc7ea1a4d1f7dfaf0a0cc0f2296c71d3b5d43', class: "duet-choice-info-icon" }, hAsync("duet-icon", { key: '62c25ce3534a78c7f7b5cf5c7cdc53caaf42435a', icon: infoIcon.svg, margin: "none", size: "small", color: "currentColor" }))))), this.collapsible && (hAsync("span", { key: 'efa969656f43120c9b8670160671c1c0c9630714', id: `${this.choiceId}-collapsible-notification`, hidden: true }, this.collapsibleNotification)), this.collapsible || this.hasInfo ? (hAsync("div", { class: this.getClassNames(), id: this.expandId }, hAsync("span", { class: {
|
|
7201
7224
|
"duet-choice-section-visible": this.collapsible ? this.getExpanded() : this.isInfoOpen,
|
|
7202
7225
|
"duet-choice-section-hidden": this.collapsible ? !this.getExpanded() : !this.isInfoOpen,
|
|
7203
7226
|
} }, hAsync("span", { id: this.headerId }, hAsync("slot", { name: "header" })), this.hasInfo ? (hAsync("span", { ref: span => (this.infoContainer = span), tabindex: "-1", class: "duet-choice-info-container", onKeyUp: e => this.handleEscape(e) }, hAsync("span", null, hAsync("slot", { name: "info" })), hAsync("slot", null))) : (hAsync("span", { id: `${this.choiceId}-collapsible-content` }, hAsync("slot", null)))))) : null));
|
|
@@ -7426,14 +7449,14 @@ class DuetChoiceGroup {
|
|
|
7426
7449
|
* Always the last one in the class.
|
|
7427
7450
|
*/
|
|
7428
7451
|
render() {
|
|
7429
|
-
return (hAsync(Host, { key: '
|
|
7452
|
+
return (hAsync(Host, { key: '91ad25e9ae34e334eb8c94c39477915350324fe4', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, class: {
|
|
7430
7453
|
horizontal: this.direction === "horizontal",
|
|
7431
7454
|
"duet-choice-group-breakpoint-x-small": this.responsive && this.breakpoint === "x-small",
|
|
7432
7455
|
"duet-choice-group-breakpoint-small": this.responsive && this.breakpoint === "small",
|
|
7433
7456
|
"duet-choice-group-breakpoint-medium": this.responsive && this.breakpoint === "medium",
|
|
7434
7457
|
"duet-choice-group-breakpoint-large": this.responsive && this.breakpoint === "large",
|
|
7435
7458
|
"duet-choice-group-breakpoint-x-large": this.responsive && this.breakpoint === "x-large",
|
|
7436
|
-
} }, hAsync("duet-fieldset", { key: '
|
|
7459
|
+
} }, hAsync("duet-fieldset", { key: '8be987ee15a23906a771c28b844ae283ca5df13c', label: this.label, labelHidden: this.labelHidden, compactLabel: true, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (hAsync("duet-tooltip", { key: 'fb25c9c926cc1e47bf9147112634d1c2f792dfb5', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '9236736c2872c5ab10bccad8c12ee2819bf41270', name: "tooltip" }), hAsync("div", { key: '5cb0b64392398f6535d947c142ae27a794820dec', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: 'eddef456160e825d9a44fcade7482e854de79824' })))));
|
|
7437
7460
|
}
|
|
7438
7461
|
get element() { return getElement(this); }
|
|
7439
7462
|
static get watchers() { return {
|
|
@@ -8554,7 +8577,7 @@ class DuetCollapsible {
|
|
|
8554
8577
|
*/
|
|
8555
8578
|
render() {
|
|
8556
8579
|
const HeadingTagName = this.headingTags.includes(this.headingLevel) ? this.headingLevel : "div";
|
|
8557
|
-
return (hAsync(Host, { key: '
|
|
8580
|
+
return (hAsync(Host, { key: 'fd4435676c3862734ae74dc5a3f87b8eab2f70f4', class: { "duet-m-0": this.margin === "none", negative: this.negative } }, hAsync(HeadingTagName, { key: 'a8cebd440d7d71ec114617e5fb99929f577c4519' }, hAsync("button", { key: '20835d6fa2e0dd36cc25d5400f31d29f00123c08', class: {
|
|
8558
8581
|
"duet-collapsible-heading": true,
|
|
8559
8582
|
"duet-collapsible-heading-centered": this.centerHeading,
|
|
8560
8583
|
"duet-theme-turva": this.theme === "turva",
|
|
@@ -8562,7 +8585,7 @@ class DuetCollapsible {
|
|
|
8562
8585
|
"has-after-heading": this.hasAfterHeadingSlot,
|
|
8563
8586
|
"full-width": this.headingFullWidth,
|
|
8564
8587
|
"has-caption": !!this.caption,
|
|
8565
|
-
}, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", ref: button => (this.nativeButton = button), "aria-label": this.getAccessibleLabel(), "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, hAsync("div", { key: '
|
|
8588
|
+
}, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", ref: button => (this.nativeButton = button), "aria-label": this.getAccessibleLabel(), "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, hAsync("div", { key: '5efe212565a40b4805d565c6856ef080f3b0b696', class: "duet-collapsible-heading-wrapper" }, hAsync("div", { key: '09dde2b49aa4b3aee5ae10e6cd6ffee6bdd75faa', class: "duet-collapsible-heading-icon" }, hAsync("duet-icon", { key: '6bc4d5b4d62dcd39c6b03a37f0879d19d9b56f14', margin: "none", size: this.getEquivalentIconSize(), icon: arrowDownIcon.svg })), hAsync("div", { key: 'cc07686af44301b10a541149bffc8df833a294f3', class: "duet-collapsible-heading-content", part: "duet-collapsible-heading-content" }, this.heading ? this.heading : hAsync("slot", { name: "heading" })), this.hasAfterHeadingSlot && (hAsync("div", { key: '83f79853695547594c25a1b017c0653d4e4edc7d', part: "duet-collapsible-after-heading" }, hAsync("slot", { key: '47dd2ce6d896f75c6814594899604aa15e9a98cd', name: "after-heading" })))), this.caption && (hAsync("div", { key: 'ebd4561054092f312999f98f8e859bd193cb9613', class: "duet-collapsible-heading-caption" }, hAsync("duet-caption", { key: 'f620061ec26eed524ee27e417d6fb1e828fc04e8', size: "small", margin: "none" }, this.caption))))), hAsync("div", { key: '4a2de882c742fbd31fb4c1ce959e9c081cf1a15d', id: this.id, class: { "duet-collapsible-content": true, "duet-theme-turva": this.theme === "turva" }, part: "duet-collapsible-content" }, hAsync("slot", { key: '7efd617c6d79dba957e02d3a7ea4677629c64ef7' }))));
|
|
8566
8589
|
}
|
|
8567
8590
|
get element() { return getElement(this); }
|
|
8568
8591
|
static get style() { return duetCollapsibleCss; }
|
|
@@ -9242,10 +9265,10 @@ class DuetContactCard {
|
|
|
9242
9265
|
render() {
|
|
9243
9266
|
const isTurva = this.theme === "turva";
|
|
9244
9267
|
const theme = isTurva ? "turva" : "default";
|
|
9245
|
-
return (hAsync(Host, { key: '
|
|
9268
|
+
return (hAsync(Host, { key: '6cf20cb225b22fbb826b136c3909234684d30e3d', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '24e57cbe34b4d01ff024fe8128d3168b61e61af6', class: {
|
|
9246
9269
|
"duet-contact-card": true,
|
|
9247
9270
|
"duet-theme-turva": this.theme === "turva",
|
|
9248
|
-
}, role: "group", "aria-label": this.name }, this.image ? hAsync("img", { class: "image", src: this.image, alt: this.name }) : hAsync("div", null), hAsync("div", { key: '
|
|
9271
|
+
}, role: "group", "aria-label": this.name }, this.image ? hAsync("img", { class: "image", src: this.image, alt: this.name }) : hAsync("div", null), hAsync("div", { key: 'f3c40c440d2d9dd97e3c1e24817d60e62f6347f0' }, this.name && (hAsync("duet-heading", { key: 'cde7a70f10cfdd45e801c9ef923e116b2ee12e42', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (hAsync("duet-paragraph", { key: '1c855114d2101701a8b39f75fe8b2ae76d5ffe57', class: "description", margin: "none", theme: theme }, this.description)), this.email && (hAsync("div", { key: 'b552b0f0de5e16059e77ee518e2087d24a2171c4', class: "email" }, hAsync("duet-icon", { key: '2048a5cb8e29d7d664c984c72031cdfd1894e0a6', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: '6e2a9b632e0fb1df3efd51dc66d6df1891eaa3a1', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (hAsync("div", { key: '1a263f67d1844f9c2ba334ba24ebc32d9faf4b86', class: "phone" }, hAsync("duet-icon", { key: 'dab3c18ed7f4c092aa8644ef6d9a915854c9e33d', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), hAsync("duet-link", { key: '68c6b2ff4480300f563b7d8d65fb4d47160fcd8b', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (hAsync("div", { key: '70288a25480b39a333831a129def567c99f202b7', class: "call-to-action" }, hAsync("duet-button", { key: 'c5fccd74b8b2b6b4917b464c5e723c657e326bb0', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), hAsync("div", { key: '9fd8e574534d15aa89eaac786c257586a6f9f845' }), hAsync("slot", { key: 'ab0fa1cc3232c70441d441e4c673b8b562ffbe92' }))));
|
|
9249
9272
|
}
|
|
9250
9273
|
get element() { return getElement(this); }
|
|
9251
9274
|
static get style() { return duetContactCardCss; }
|
|
@@ -9317,7 +9340,7 @@ class DuetCookieConsent {
|
|
|
9317
9340
|
* Always the last one in the class.
|
|
9318
9341
|
*/
|
|
9319
9342
|
render() {
|
|
9320
|
-
return (hAsync(Host, { key: '
|
|
9343
|
+
return (hAsync(Host, { key: 'a0945b87dc3ca428ebb77b5bafc937d26fe77b58', tabindex: "-1", class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: 'e4870573df557f7b4d7a6075afbd04fc23f54ff1', class: { "duet-cookie-consent": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("div", { key: 'd0f1b43a014ccc35c9845c8c4117a8552eee8209', class: "duet-cookie-consent-content" }, hAsync("div", { key: '98d8e55937ee5afda2a8d975ebb0d4e5aefc0014', class: "expand" }, hAsync("slot", { key: '5529c9819da700b849bbf3e0f4b4c93cf4da6015' })), hAsync("duet-spacer", { key: '82e710ce0de7d91f931cbb2177d6470f77701ec4', size: "large", direction: "horizontal" }), hAsync("div", { key: '9cbf5dd3a7d82025a0912ca016b67e1b0f0022fc' }, hAsync("duet-button", { key: '50a246e22443b54c881d40063c0405f07d7190dc', variation: "negative", size: "small", onClick: this.handleClick, margin: "none", "aria-label": this.accessibleLabel, theme: this.theme }, "OK"))))));
|
|
9321
9344
|
}
|
|
9322
9345
|
get element() { return getElement(this); }
|
|
9323
9346
|
static get style() { return duetCookieConsentCss; }
|
|
@@ -10243,13 +10266,13 @@ class DuetDatePicker {
|
|
|
10243
10266
|
if (maxDate) {
|
|
10244
10267
|
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
10245
10268
|
}
|
|
10246
|
-
return (hAsync(Host, { key: '
|
|
10269
|
+
return (hAsync(Host, { key: '2f9dd355a80f9ed65cc0cfa90d674f426bad4c59', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '8c023088cf474e2b460139486e85974f53963981', class: "duet-date" }, hAsync(DatePickerInput, { key: '0c678c083138be043f01d6df1522e385a7ee122a', hasFocus: this.inputHasFocus, value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error || (!this.disableBuiltInErrors && this.internalValidityError) || null, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, accessibleLiveError: this.accessibleLiveError, echoPlaceholder: this.echoPlaceholder, caption: this.caption })), hAsync("div", { key: 'efec9f5c773e36d4e418dac06036390b50bff2a5', class: {
|
|
10247
10270
|
"duet-theme-turva": this.theme === "turva",
|
|
10248
10271
|
"duet-date-dialog": true,
|
|
10249
10272
|
left: this.direction === "left",
|
|
10250
10273
|
error: !!this.error,
|
|
10251
10274
|
active: this.open,
|
|
10252
|
-
}, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, hAsync("duet-overlay", { key: '
|
|
10275
|
+
}, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, hAsync("duet-overlay", { key: '130f52a0f0194b1186619bf6426f97a68c079c11', visible: this.open, "display-device": "x-small" }), hAsync(FocusGuard, { key: 'b4c229e9d91c822d87702677e213f8753f344017', moveFocusTo: this.focusedDayNode }), hAsync("div", { key: '3ce07367a559781b9872669665186af5572305ca', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, hAsync("duet-visually-hidden", { key: '7740bce6549fc3423947947f68d7e8950baa440d', "aria-live": "polite" }, text.keyboardInstruction), hAsync("div", { key: '2d80551888be784d8ea12b74c43df593c4701e83', class: "duet-date-dialog-mobile-header" }, hAsync(DuetInternalLabel, { key: '27d2994191b94efe00484fbd25d96537d6ed11b2', margin: "none" }, this.label), hAsync("button", { key: '82cf74d2d7aff047562d13320496248d352c1e82', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, hAsync("duet-icon", { key: '92b2e5fd52e4206c00acfd56e0d515d08e4527b1', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), hAsync("duet-visually-hidden", { key: '738da11657cbac3ed52ef22490165f4ac76c6ea6' }, text.closeLabel))), hAsync("div", { key: 'e8922fed8ac11149bb603c912d278c0b3843b214', class: "duet-date-dialog-header" }, hAsync("div", { key: 'e922554dbea94dfa70e62983ee6a0b08f8e159d7', class: "duet-date-dialog-dropdowns" }, hAsync("duet-visually-hidden", { key: '873ba9c661e3c280c88fffc510dcceab0b2d5863' }, hAsync("h2", { key: 'c769e12a0c0c668164d25d7864a711d0f9268f09', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), hAsync("duet-visually-hidden", { key: '5941e8d2cd0f5baec6001808c68cb4c51b37db86' }, hAsync("label", { key: 'bee65da8486f65afe8d18e90b1daed308dda8864', htmlFor: this.monthSelectId }, text.monthSelectLabel)), hAsync("div", { key: 'f9fd8b52eaa90fd555d737e2691b51260592101a', class: "duet-date-dialog-select" }, hAsync("select", { key: '83b7003769bf0042228e2ed36ad4118e8f0f1ab2', id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (hAsync("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), hAsync("div", { key: '1d9bbde4fcc96fbcaf2d714ecc34a58c755dfc7d', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: '3c4be7bf8fefa6ee1f5cede7eeb34ebfeaae35a1' }, text.monthLabelsShort[focusedMonth]), hAsync("duet-icon", { key: '4eece4a65cb58ba45a30e4fd2cf179d61b05625f', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), hAsync("duet-visually-hidden", { key: '700e9f50a74a6113c33f149427169ae9917badc0' }, hAsync("label", { key: 'c5f8403791830d9b0ad68ed66af8c3f1c26310e3', htmlFor: this.yearSelectId }, text.yearSelectLabel)), hAsync("div", { key: '2c69022a45ab3effd4c907cc6d5c5a508bbb99f7', class: "duet-date-dialog-select" }, hAsync("select", { key: 'fee0495e004775929f7b7aeb66278ac8b4fd003d', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (hAsync("option", { key: year, selected: year === focusedYear }, year)))), hAsync("div", { key: 'e50ff66c34ee36e965843e68e1fb3d26690ce1ed', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, hAsync("span", { key: '9808b372ac9fea0ce5c51acee5ee407d5906e3f1' }, this.focusedDay.getFullYear()), hAsync("duet-icon", { key: '90c5c74c91d9e3df13e70987f66c2964feca8cf5', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), hAsync("div", { key: 'f66a8e9e9fba23a7a8c9d871f1ff0bbfa6b39b37', class: "duet-date-dialog-buttons" }, hAsync("duet-action-button", { key: 'fe1df2d1456357c2ae731b66c302c45a33f40d06', accessibleLabel: i18n$2[this.language].prevMonthLabel, actionName: i18n$2[this.language].prevMonthLabel, class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel), hAsync("duet-action-button", { key: '86db10ad2c3d1ab190690ae65d4c778084194089', accessibleLabel: i18n$2[this.language].nextMonthLabel, actionName: i18n$2[this.language].nextMonthLabel, class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))), hAsync(DatePickerMonth, { key: '741527916476f5959328595373dc3e11b02b0df2', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })), hAsync(FocusGuard, { key: 'de920ae43a19a7ca9790056fd3a9f51a08039d4f', moveFocusTo: this.closeButtonNode }))));
|
|
10253
10276
|
}
|
|
10254
10277
|
get element() { return getElement(this); }
|
|
10255
10278
|
static get watchers() { return {
|
|
@@ -10339,7 +10362,7 @@ class DuetDivider {
|
|
|
10339
10362
|
*/
|
|
10340
10363
|
render() {
|
|
10341
10364
|
const background = getColorByName(this.color);
|
|
10342
|
-
return (hAsync("div", { key: '
|
|
10365
|
+
return (hAsync("div", { key: 'fc0e7562cb30da77115c7a07938f9d586df909d5', class: {
|
|
10343
10366
|
"duet-m-0": this.margin === "none",
|
|
10344
10367
|
"duet-m-s": this.margin === "small",
|
|
10345
10368
|
"duet-divider": true,
|
|
@@ -10577,7 +10600,7 @@ class DuetEditableTable {
|
|
|
10577
10600
|
* Render Methods
|
|
10578
10601
|
*/
|
|
10579
10602
|
render() {
|
|
10580
|
-
return (hAsync(Host, { key: '
|
|
10603
|
+
return (hAsync(Host, { key: '5b1b28e6321b07a1d385c1945f15b0c110a8b068', class: {
|
|
10581
10604
|
[`duet-editable-table-${this.variation}`]: true,
|
|
10582
10605
|
"duet-editable-table": true,
|
|
10583
10606
|
[`duet-editable-table-${this.theme}`]: true,
|
|
@@ -10587,7 +10610,7 @@ class DuetEditableTable {
|
|
|
10587
10610
|
"duet-editable-table-actions": !!this.actions,
|
|
10588
10611
|
"duet-m-0": this.margin === "none",
|
|
10589
10612
|
"duet-theme-turva": this.theme === "turva",
|
|
10590
|
-
} }, hAsync("duet-table", { key: '
|
|
10613
|
+
} }, hAsync("duet-table", { key: '47a4b4e9d3acf3ca83e70c1aa4e7758e1f6cbbbe', class: "duet-editable-table-table", sticky: this.sticky, stickyDistance: this.stickyDistance, margin: this.margin, theme: this.theme, variation: this.variation, breakpoint: this.breakpoint, "hide-head-visually": this.hideHeadVisually }, hAsync("table", { key: '975344f17b9271b8ffa4264751aa2dae69279f45', role: this.accessibleRole }, hAsync("caption", { key: 'e9039bfd4c5bf90f96856d13d993be7f13fa2d73' }, hAsync("slot", { key: '38a7cd2c82e45ebcc080e1e20f3f77aa2a46973d', name: "tcaption" })), hAsync("thead", { key: 'c4a02a18bfae96669f45328f6198dc52f43dd887' }, this.hasHeadSlotFirst && (hAsync("tr", { key: 'af846dfeba040ddec43065803327195bea76a404' }, hAsync("td", { key: 'c002827f8c8c6cce8d8d4415c80e4f39d4bb1ed6', class: "duet-editable-table-actions-menu", colSpan: 99 }, hAsync("slot", { key: '5673bc937f4bc87b67f6112f59a1981ff7f02c79', name: "thead-first" })))), this.renderTableHeader(), this.hasHeadSlotLast && (hAsync("tr", { key: '79a45db93db0d6e5e35aade928f23032efdb821b' }, hAsync("td", { key: 'fddd1434bf5a20188be229e5c3d9bde03b8d8dca', class: "duet-editable-table-actions-menu", colSpan: 99 }, hAsync("slot", { key: '53b1ea3494b7e0f39426232f922a040eacf3a0f0', name: "thead-last" }))))), hAsync("tbody", { key: 'b5d38eed528592d29f64f749e1938d0ff5b772b3' }, this.renderTableBody()), this.hasFootSlot && (hAsync("tfoot", { key: 'e2ef34f7d078a7ac7b4a38cd5953b449ce682a23' }, hAsync("tr", { key: '9f2a92be2f425c419abd5fa1a0a7fb763cc0426b' }, hAsync("td", { key: 'da2eeda1f65004cc2c197dad36038dc4a60c2e8e', class: "duet-editable-table-footer-menu", colSpan: 99 }, hAsync("slot", { key: '988c400cb8046f0544293b8e1555f7b213f9def6', name: "tfoot" })))))))));
|
|
10591
10614
|
}
|
|
10592
10615
|
get element() { return getElement(this); }
|
|
10593
10616
|
static get style() { return duetEditableTableCss; }
|
|
@@ -10645,11 +10668,11 @@ class DuetEmptyState {
|
|
|
10645
10668
|
* Always the last one in the class.
|
|
10646
10669
|
*/
|
|
10647
10670
|
render() {
|
|
10648
|
-
return (hAsync(Host, { key: '
|
|
10671
|
+
return (hAsync(Host, { key: '6b61854be0ee8b668d513de66e117b928cb4671b' }, hAsync("div", { key: '62ab8dddad16464e202f9225d080cee855a8193d', class: {
|
|
10649
10672
|
"duet-empty-state": true,
|
|
10650
10673
|
"duet-theme-turva": this.theme === "turva",
|
|
10651
10674
|
"duet-is-small": this.size === "small",
|
|
10652
|
-
} }, hAsync("duet-icon", { key: '
|
|
10675
|
+
} }, hAsync("duet-icon", { key: '237ea5cd85e1be42a856c7b30e14022bb4cd824e', color: "currentColor", name: this.icon, size: this.size === "small" ? "large" : "x-large" }), hAsync("div", { key: '9bb0471dfd59d78fc51b71eccce4830d47506a42' }, hAsync("slot", { key: 'cdf540cdcc74733367bfc04d13ec9659bd2adb52' })))));
|
|
10653
10676
|
}
|
|
10654
10677
|
get element() { return getElement(this); }
|
|
10655
10678
|
static get style() { return duetEmptyStateCss; }
|
|
@@ -10740,20 +10763,20 @@ class DuetFieldset {
|
|
|
10740
10763
|
* Always the last one in the class.
|
|
10741
10764
|
*/
|
|
10742
10765
|
render() {
|
|
10743
|
-
return (hAsync(Host, { key: '
|
|
10766
|
+
return (hAsync(Host, { key: 'ac0f503ac6d41953e774ad46b418c8ea39ff4708', class: { "duet-m-0": this.margin === "none" } }, hAsync("fieldset", { key: 'b564273ca16fac8fbb500ab8bfc9dff72e579770', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
|
|
10744
10767
|
// NVDA and VoiceOver do not yet support aria-errormessage
|
|
10745
10768
|
// once they do, we can remove errors from the aria-describedby
|
|
10746
10769
|
// aria-errormessage={this.error ? this.errorId : null}
|
|
10747
10770
|
class: {
|
|
10748
10771
|
"duet-fieldset": true,
|
|
10749
10772
|
"duet-theme-turva": this.theme === "turva",
|
|
10750
|
-
} }, hAsync("legend", { key: '
|
|
10773
|
+
} }, hAsync("legend", { key: '607df92d8f78aaad01e4c80e33c17da55a52e20f', id: this.labelId }, hAsync(this.labelHeadingLevel, { key: '33cee42411e380076885a046790cb8006088c5ed' }, this.label), this.caption && hAsync("span", { key: '52c809bbe842c11a84e7d1a5c3083bfe92472d36' }, this.caption)), hAsync("div", { key: 'aa297b27900d3a28a48bf8102b75e900896393ff', class: {
|
|
10751
10774
|
"duet-legend-wrapper": true,
|
|
10752
10775
|
"duet-legend-has-caption": !!this.caption,
|
|
10753
10776
|
"duet-legend-has-tooltip": this.hasTooltip,
|
|
10754
10777
|
"duet-legend-hidden": this.labelHidden,
|
|
10755
10778
|
"duet-legend-compact": this.compactLabel,
|
|
10756
|
-
} }, hAsync("div", { key: '
|
|
10779
|
+
} }, hAsync("div", { key: '3af22b271c143a074adee18554408291e3faa660', class: "duet-fieldset-label" }, hAsync("span", { key: '939a883743e233ba83e8ff3328b18842b0c4eae4', "aria-hidden": "true" }, this.label), hAsync("slot", { key: '822892f650b6c0f733cc58a1aee1654e21d1f1f6', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (hAsync("div", { key: 'bc40348b978fc775d1007cdf3949e95d4d3b54e0', class: "duet-fieldset-caption", "aria-hidden": "true" }, hAsync("duet-caption", { key: '3119b1a7963015c24d6324d5de47fc53cdfd748e', theme: this.theme, margin: "none" }, this.caption)))), hAsync("slot", { key: 'fa922540a117205680098064372a70aefc0953ae' }), hAsync("span", { key: 'ad8d4d59379d7a9f89e618754d46404eb5c3c664', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'c36abae3849393120d72e3781305cb2ce88b384c', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
|
|
10757
10780
|
}
|
|
10758
10781
|
get element() { return getElement(this); }
|
|
10759
10782
|
static get style() { return duetFieldsetCss; }
|
|
@@ -10952,16 +10975,16 @@ class DuetFooter {
|
|
|
10952
10975
|
render() {
|
|
10953
10976
|
const text = getLocaleString(i18n$1, this.language);
|
|
10954
10977
|
const copyrightLabel = this.theme === "turva" ? text.turva : text.lahi;
|
|
10955
|
-
return (hAsync("footer", { key: '
|
|
10978
|
+
return (hAsync("footer", { key: 'a1f13a9e8d015c33626dc35acfbac299d5d798b8', class: {
|
|
10956
10979
|
"duet-footer": true,
|
|
10957
10980
|
"duet-m-0": this.margin === "none",
|
|
10958
10981
|
"duet-theme-turva": this.theme === "turva",
|
|
10959
10982
|
"duet-footer-simple": this.variation === "simple",
|
|
10960
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
10983
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '48ff4a3d5e8df21215a409def47ead6f70f697fa', class: "duet-footer-wrapper" }, this.variation !== "simple" && (hAsync("div", { key: 'a0cc027a05d4c054e0f99c2c2ad3fb6b34a58873', class: {
|
|
10961
10984
|
"duet-footer-top": true,
|
|
10962
10985
|
"duet-has-info": this.hasInfoSlot,
|
|
10963
|
-
}, part: "top" }, hAsync("div", { key: '
|
|
10964
|
-
this.processedItems.map((item, index) => (hAsync(Fragment, null, index > 0 && hAsync("duet-spacer", { size: "x-large", direction: "horizontal" }), hAsync("duet-button", { ref: element => this.setDataAttributes(element, item), theme: this.theme, id: item.id, class: "duet-footer-link", variation: "plain", margin: "none", fixed: true, negative: true, url: item.href, external: item.external, icon: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), hAsync("slot", { key: '
|
|
10986
|
+
}, part: "top" }, hAsync("div", { key: '3724f9ef6f0af6ca9812b4c9c2854209a80cb38b', class: "footer-top-logo" }, hAsync("duet-logo", { key: '10e4b82fa2f117f130a2458a64249d36b5f99564', href: this.logoHref, onClick: this.handleLogoClick, size: "large", inverse: true, language: this.language, theme: this.theme })), hAsync("div", { key: '40ceb56a8366b96d5a9afc572984ff027249cfd0', class: "footer-top-right-container" }, hAsync("slot", { key: 'e3f21c2f91e64c844a95d40344104e8aff352013', name: "info" }), hAsync("div", { key: 'a2c5b4d2dad3aa29116a8fe5d2bd4525b6a6ad5c', class: "footer-top-items" }, this.processedItems &&
|
|
10987
|
+
this.processedItems.map((item, index) => (hAsync(Fragment, null, index > 0 && hAsync("duet-spacer", { size: "x-large", direction: "horizontal" }), hAsync("duet-button", { ref: element => this.setDataAttributes(element, item), theme: this.theme, id: item.id, class: "duet-footer-link", variation: "plain", margin: "none", fixed: true, negative: true, url: item.href, external: item.external, icon: this.getTopItemButtonIcon(item), "icon-right": !this.isMessagingLink(item.href), "icon-size": this.isMessagingLink(item.href) ? "medium" : "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)))))))), hAsync("slot", { key: '0058cff0a643b85a2373c0b2633f5d8d293cf639', name: "extra" }), hAsync("p", { key: '6e0623c40daaab7ecf2ba1abb3e6f5935bac445b', class: "duet-footer-menu", part: "menu" }, hAsync("span", { key: 'abb2319d06c15e6d423337f75f713e835188c326', class: "duet-footer-copyright" }, `${copyrightLabel} ${new Date().getFullYear()}`), hAsync("span", { key: 'f0b19fd6cc3da55c0519ab7e499f9d24df20ebc8', class: "duet-footer-menu-links" }, this.processedMenu && (hAsync(Fragment, { key: '308c16b052419e8570fe7e39a5708f45bb58a00d' }, this.processedMenu.map(item => (hAsync("a", { ref: element => this.setDataAttributes(element, item), href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleMenuClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label, item.external && (hAsync(Fragment, null, hAsync("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), hAsync("span", { class: "duet-footer-external" }, hAsync("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))), hAsync("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")))))))), hAsync("p", { key: '6308d6f3a762e1945a197a58efa9536c82412fdc', class: "duet-footer-copyright duet-footer-copyright-mobile" }, `${copyrightLabel} ${new Date().getFullYear()}`))));
|
|
10965
10988
|
}
|
|
10966
10989
|
get element() { return getElement(this); }
|
|
10967
10990
|
static get watchers() { return {
|
|
@@ -11177,7 +11200,7 @@ class DuetGrid {
|
|
|
11177
11200
|
* Always the last one in the class.
|
|
11178
11201
|
*/
|
|
11179
11202
|
render() {
|
|
11180
|
-
return (hAsync(Host, { key: '
|
|
11203
|
+
return (hAsync(Host, { key: 'e57f80a42dbd839fa9e967bbdb7cc9ee2a75c9b4', class: {
|
|
11181
11204
|
"duet-grid": true,
|
|
11182
11205
|
"duet-no-stacking": !this.responsive,
|
|
11183
11206
|
"duet-grid-align-top": this.alignment === "top", // flex-start
|
|
@@ -11204,7 +11227,7 @@ class DuetGrid {
|
|
|
11204
11227
|
"duet-grid-row-reverse": this.rowReverse,
|
|
11205
11228
|
[`duet-grid-variation-${this.gridTemplate ? "grid" : "flex"}`]: true,
|
|
11206
11229
|
[`duet-grid-template-${this.gridTemplate}`]: true,
|
|
11207
|
-
} }, hAsync("slot", { key: '
|
|
11230
|
+
} }, hAsync("slot", { key: '2a69e732742e35222c2825a5205ba6bb9c9514fd' })));
|
|
11208
11231
|
}
|
|
11209
11232
|
get element() { return getElement(this); }
|
|
11210
11233
|
static get watchers() { return {
|
|
@@ -11286,7 +11309,7 @@ class DuetGridItem {
|
|
|
11286
11309
|
* Always the last one in the class.
|
|
11287
11310
|
*/
|
|
11288
11311
|
render() {
|
|
11289
|
-
return (hAsync(Host, { key: '
|
|
11312
|
+
return (hAsync(Host, { key: '59b2546565c78716d981db97ba3a66b9f4b06104', style: {
|
|
11290
11313
|
"min-width": this.minWidth,
|
|
11291
11314
|
"max-width": this.maxWidth,
|
|
11292
11315
|
}, class: {
|
|
@@ -11303,7 +11326,7 @@ class DuetGridItem {
|
|
|
11303
11326
|
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
11304
11327
|
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
11305
11328
|
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
11306
|
-
} }, hAsync("slot", { key: '
|
|
11329
|
+
} }, hAsync("slot", { key: '78c0ca977366f49a62d91c19e42b7140455c0e7e' })));
|
|
11307
11330
|
}
|
|
11308
11331
|
get element() { return getElement(this); }
|
|
11309
11332
|
static get style() { return duetGridItemCss; }
|
|
@@ -12344,7 +12367,7 @@ class DuetHeading {
|
|
|
12344
12367
|
render() {
|
|
12345
12368
|
const TagName = sanitizeString$1(this.level);
|
|
12346
12369
|
const color = getColorByName(this.color);
|
|
12347
|
-
return (hAsync(TagName, { key: '
|
|
12370
|
+
return (hAsync(TagName, { key: 'da445e961c7a06c19d0a0522e4af2814b0ae9aa4', class: {
|
|
12348
12371
|
"duet-heading": true,
|
|
12349
12372
|
"duet-heading-border": this.border !== false,
|
|
12350
12373
|
"duet-heading-border-solid": this.border === "solid",
|
|
@@ -12355,7 +12378,7 @@ class DuetHeading {
|
|
|
12355
12378
|
[this.visualLevel ? this.visualLevel : this.level]: true,
|
|
12356
12379
|
"duet-theme-turva": this.theme === "turva",
|
|
12357
12380
|
"fixed-size": this.fixedSize,
|
|
12358
|
-
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, hAsync("slot", { key: '
|
|
12381
|
+
}, "aria-label": this.accessibleLabel, style: { color }, part: "duet-heading" }, hAsync("slot", { key: '7fffcae52939a894fd8c5ee37d67fccbbd0b4f16' })));
|
|
12359
12382
|
}
|
|
12360
12383
|
get element() { return getElement(this); }
|
|
12361
12384
|
static get style() { return duetHeadingCss; }
|
|
@@ -12661,7 +12684,7 @@ class DuetHero {
|
|
|
12661
12684
|
outlineColor = "color-primary-turva";
|
|
12662
12685
|
}
|
|
12663
12686
|
}
|
|
12664
|
-
return (hAsync("div", { key: '
|
|
12687
|
+
return (hAsync("div", { key: '0516fd4837dba53aae81d2ae0c78b70585422107', role: "region", class: {
|
|
12665
12688
|
"duet-hero": true,
|
|
12666
12689
|
"duet-theme-turva": this.theme === "turva",
|
|
12667
12690
|
"duet-has-category-icon": !!this.categoryIcon,
|
|
@@ -12679,17 +12702,17 @@ class DuetHero {
|
|
|
12679
12702
|
"duet-hero-text-center": this.variation !== "product" && ((this.textCenter && !this.leftAlign) || campaignOrSection),
|
|
12680
12703
|
"duet-hero-left-align": this.variation === "product" || (this.leftAlign && !campaignOrSection),
|
|
12681
12704
|
"duet-hero-narrow": this.layout === "narrow",
|
|
12682
|
-
}, part: "duet-hero" }, campaignOrSection && this.image && (hAsync("div", { key: '
|
|
12683
|
-
this.processedBack && (hAsync("div", { key: '
|
|
12705
|
+
}, part: "duet-hero" }, campaignOrSection && this.image && (hAsync("div", { key: 'c9519b4ff36fdb3ec68d569667065a743d57a360', class: "background-area" }, hAsync("div", { key: 'ddb4386a162fe50a1ec65bfb5920194cd8b8247f', class: "background-container" }, hAsync("div", { key: 'af9a1b99358098c95c9ca8ff11c8b4e8fed691db', class: "background" }, hAsync("img", { key: 'caea4a0bec4b0fab914d327878fd82fc8937528d', class: `${imageSizeIsCover ? "cover" : ""} ${imagePositionIsCenter ? "center" : ""}`, src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" })), hAsync("div", { key: '570fc51ca220622428a0d0ae0c0956c5f1ee0452', class: "brand-shape" })))), this.variation === "product" && this.image && (hAsync("div", { key: '954467ff85417b30a4a6fc18c700464df609f586', class: { "background-area": true, [this.layout]: true } }, hAsync("div", { key: 'a709338a6570cf245f37272263b03d7a27128f9e', class: { "background-container": true, [this.layout]: true } }, hAsync("div", { key: 'b93c7f5ac020bd754dba88132aaa9b7ea1ba4003', class: { background: true, [this.layout]: true } }, hAsync("div", { key: '905662fbb3364da7510db2555f03de974562e505', class: { "background-mask": true, [this.layout]: true } }), this.theme !== "turva" && hAsync("div", { key: '262820358ecd29844c65be4a1d7e82549b45cee2', class: { "brand-shape": true, [this.layout]: true } }), hAsync("div", { key: '3d20072088e4a405b83d2f65268f2d488a5112ac', class: { "brand-shaped-image": true, [this.layout]: true } }, hAsync("div", { key: 'e8c63df219322992bb8d722b01dcad205c044f9c', class: { "brand-shaped-image-wrapper": true, [this.layout]: true } }, hAsync("div", Object.assign({ key: '5b265dcc9db7e68c749b2b9c9d0e8fa4064f6b70', class: { "brand-shaped-image-bg": true, [this.layout]: true }, style: styles }, bgImgA11yAttrs)))), this.categoryIcon && (hAsync("div", { key: '81e36645d1a21d9bc66fae4765e9ef3272537f03', class: { "brand-shaped-icon": true, [this.layout]: true } }, hAsync("duet-icon", { key: '504a1771e2e356783be5844509166ab29f78159d', class: { [this.layout]: true }, background: "none", name: this.categoryIcon, margin: "none", size: "auto", responsive: false }))))))), this.variation === "content" && this.image && (hAsync("div", { key: '97b506d236d0679f53696cac58503d7be257231f', class: "background-area" }, hAsync("div", { key: '36890d9dc2a8f8b124420c7b3225ada20d01e35e', class: "background" }, hAsync("div", { key: '1df015994f4bd85a884de6e1875be96408f599b7', class: "background-mask" }), this.theme !== "turva" && hAsync("div", { key: 'f68c97a4b3c8e4b03bac4bb2181e630ef63c8639', class: "brand-shape" }), hAsync("div", { key: 'ba89b95cc6d1d2a55ca0681206266f0e52d10059', class: "brand-shaped-image" }, hAsync("div", { key: '0c133b49c54fa275782754ac6ab44c468592b50b', class: "brand-shaped-image-wrapper" }, hAsync("div", Object.assign({ key: 'c9963f3b6134885b5cd4facc450e337fd3807749', class: "brand-shaped-image-bg", style: styles }, bgImgA11yAttrs))))))), hAsync("div", { key: '6cd4723c1191be8841b3e72c186438d60b762165', class: { "duet-hero-wrapper": true, [this.layout]: true } }, this.image && this.variation === "image" && (hAsync("div", { key: '76e6d63f430faa884dbe432dcf5241287edb6d94', class: "duet-hero-image-mask" }, hAsync("div", { key: 'ac28833afeffb4273df030b71484549022dbcd7b', class: "duet-hero-image-wrapper" }, hAsync("div", Object.assign({ key: '3bd97c165b52eae5b07653f04508c94f3e2fbaa3', class: "duet-hero-image", style: styles }, bgImgA11yAttrs))))), (this.variation === "gray" || this.variation === "light" || this.variation === "minimal") &&
|
|
12706
|
+
this.processedBack && (hAsync("div", { key: 'a3139ada0576c86e38608e8b3babde7bf1cb6428', class: "duet-hero-back" }, hAsync("duet-button", { key: '18696adb6758e912d78507989319403a05031383', style: buttonStyles, variation: "plain", icon: "action-arrow-left-small", theme: this.theme, iconSize: "small", color: buttonColor, padding: "none", margin: "none", fixed: true, url: this.processedBack.href, identifier: this.processedBack.id, onClick: event => this.handleClick(event, {
|
|
12684
12707
|
label: this.processedBack.label,
|
|
12685
12708
|
href: this.processedBack.href,
|
|
12686
12709
|
id: this.processedBack.id,
|
|
12687
12710
|
analyticsId: this.processedBack.analyticsId,
|
|
12688
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (hAsync("duet-icon", { key: '
|
|
12711
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (hAsync("duet-icon", { key: '28d192b8f069b4a32baa01a027abc42bdfb95887', class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), hAsync("div", { key: '012bf0e526bb27720cf999130cee18c48f154328', class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (hAsync("duet-paragraph", { key: '5cbbe391ce79e56835076065ebcffe0bab5228ba', margin: "none", class: "duet-hero-pre", size: this.variation === "content" ? "small" : "medium", "aria-hidden": "true" }, this.preHeading ? (this.preHeading) : (hAsync("span", null, hAsync("slot", { name: "pre-heading" }))))), hAsync("slot", { key: 'b3e524e1dfb703166dabf2f84bbcc4114b55a30a', name: "badge" }), (this.heading || this.hasHeadingSlot) && (hAsync("duet-heading", { key: 'aa79305d862247ab6107539664112d93a239e8a7', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.level, class: { "duet-hero-heading": true, "duet-hero-heading-has-pre": this.preHeading !== "" }, color: headingColor, visualLevel: headingVisualLevel, margin: campaignOrSection ? "none" : "auto", accessibleLabel: this.getAccessibleHeading() }, this.heading ? this.heading : hAsync("slot", { name: "heading" }))), campaignOrSection && this.hasSubHeadingSlot && (hAsync("duet-heading", { key: 'd7be291d344c0357c68891dafcce35f2b39b5da5', theme: this.theme, level: this.hasSubHeadingSlotNative ? "div" : this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, hAsync("slot", { key: '32bb887d95e7bbf0c2037520f47080d4a4680bba', name: "subheading" }))), this.description && (hAsync("duet-paragraph", { key: 'd391fad4e9710b15fe3bbc98e8e22078f3a84972', theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (hAsync("duet-list", { key: '927d16ef81835f367bda345400b4603d6c5dd36a', theme: this.theme, "label-width": "30", breakpoint: "large", mobile: this.leftAlign ? undefined : "center" }, this.processedListItems.map(item => (hAsync("duet-list-item", null, hAsync("span", { slot: "label" }, item.label), hAsync("span", { slot: "value" }, item.value)))))), this.buttonLabel && (hAsync("duet-button", { key: '05b8812b4a5f224422c0d102c9f6869bfcfe3a69', url: this.buttonUrl, icon: this.icon, iconRight: this.iconRight, iconSize: this.iconSize, variation: buttonVariation, theme: this.theme, identifier: this.buttonId, onClick: event => this.handleClick(event, this.buttonData), fixed: true }, this.buttonLabel)), hAsync("slot", { key: '512d50180bb9fba05bcde538b19fa87e70cf5a3a' })), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (hAsync("div", { key: '1ca120e7175b467c0265513ecd4d32a30e5eaba8', class: "duet-hero-links" }, this.processedActions.map(item => (hAsync("a", { class: "duet-hero-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleClick(event, item) }, hAsync("div", { class: "duet-hero-action-icon" }, hAsync("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor", outline: outlineColor })), hAsync("span", null, item.label), item.external && hAsync("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), item.external && (hAsync("div", { class: "duet-hero-action-arrow" }, hAsync("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
12689
12712
|
this.variation !== "image" &&
|
|
12690
12713
|
!campaignOrSection &&
|
|
12691
12714
|
this.variation !== "product" &&
|
|
12692
|
-
this.variation !== "content" && hAsync("div", Object.assign({ key: '
|
|
12715
|
+
this.variation !== "content" && hAsync("div", Object.assign({ key: 'f49f23c4edbf72e479d8f7cf4cf2767d688c362b', class: "duet-hero-image", style: styles }, bgImgA11yAttrs)), hAsync("slot", { key: 'a99b7943cc1408366bc93827beb41867aaf5fb01', name: "bottom" }))));
|
|
12693
12716
|
}
|
|
12694
12717
|
get element() { return getElement(this); }
|
|
12695
12718
|
static get watchers() { return {
|
|
@@ -12857,11 +12880,11 @@ class DuetIcon {
|
|
|
12857
12880
|
: {};
|
|
12858
12881
|
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
12859
12882
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
12860
|
-
return (hAsync(Host, { key: '
|
|
12883
|
+
return (hAsync(Host, { key: 'f6a74ccabd59055d22eec3654bde9c81fd4a9ce3', class: {
|
|
12861
12884
|
"duet-m-0": this.margin === "none",
|
|
12862
12885
|
"duet-icon-has-outline": !!this.outline,
|
|
12863
12886
|
"duet-icon-has-background": !!this.background,
|
|
12864
|
-
} }, hAsync("span", { key: '
|
|
12887
|
+
} }, hAsync("span", { key: 'f2ea10e9ec8459d5a5995781e193c6d8df7fb1ef', "aria-hidden": "true", style: styles, class: {
|
|
12865
12888
|
"duet-icon": true,
|
|
12866
12889
|
"duet-theme-turva": this.theme === "turva",
|
|
12867
12890
|
"duet-theme-default": this.theme === "default",
|
|
@@ -12870,7 +12893,7 @@ class DuetIcon {
|
|
|
12870
12893
|
[shapeStyle]: true,
|
|
12871
12894
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
12872
12895
|
"duet-icon-not-responsive": !this.responsive,
|
|
12873
|
-
} }, hAsync("span", { key: '
|
|
12896
|
+
} }, hAsync("span", { key: '3d93b31d1831fa77b71a5f574a38d838636c7757', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
|
|
12874
12897
|
}
|
|
12875
12898
|
get element() { return getElement(this); }
|
|
12876
12899
|
static get watchers() { return {
|
|
@@ -12948,7 +12971,7 @@ class DuetIndicator {
|
|
|
12948
12971
|
inheritGlobalTheme(this);
|
|
12949
12972
|
}
|
|
12950
12973
|
render() {
|
|
12951
|
-
return (hAsync(Host, { key: '
|
|
12974
|
+
return (hAsync(Host, { key: '9361561218a4fa5c4fe9508e72b80992ad22aadc', class: { [this.theme]: true } }, hAsync("span", { key: 'd974ea12e2bfc4d8e753cc89044379b846c182ca', class: { "duet-indicator": true, [`duet-indicator-${this.variation}`]: true } }), hAsync("duet-visually-hidden", { key: '0d3abea6442dcb6254391043a32d224188cbc814' }, this.getAccessibleLabel())));
|
|
12952
12975
|
}
|
|
12953
12976
|
get element() { return getElement(this); }
|
|
12954
12977
|
static get style() { return duetIndicatorCss; }
|
|
@@ -13572,7 +13595,7 @@ class DuetInput {
|
|
|
13572
13595
|
this.type !== "password" &&
|
|
13573
13596
|
this.type !== "time" &&
|
|
13574
13597
|
this.variation !== "button";
|
|
13575
|
-
return (hAsync(Host, { key: '
|
|
13598
|
+
return (hAsync(Host, { key: '97c6c512b6c027ca8043a43672a95b94f03f6156', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" }, onKeyUp: e => this.keyHandler(e) }, this.type === "time" && (hAsync("duet-visually-hidden", { key: 'b822ea081dcf6540e2b68897ee048047aff84628', "aria-live": "polite", "aria-atomic": "true" }, selectedTime ? `${this.timeAnnouncement[this.language]} ${selectedTime.toLocaleTimeString()}` : "")), hAsync("div", { key: '9e605485547ba28244c552f56e417b5601b54fe8', class: {
|
|
13576
13599
|
"duet-input-container": true,
|
|
13577
13600
|
"duet-theme-turva": this.theme === "turva",
|
|
13578
13601
|
[`duet-input-variation-${this.variation}`]: true,
|
|
@@ -13586,7 +13609,7 @@ class DuetInput {
|
|
|
13586
13609
|
"has-clear": this.clear,
|
|
13587
13610
|
"has-focus": this.isFocused,
|
|
13588
13611
|
disabled: this.disabled,
|
|
13589
|
-
} }, hAsync("div", { key: '
|
|
13612
|
+
} }, hAsync("div", { key: '80b702bcab4580a325ba20786e5c4aabc2ed6097', class: "duet-input-label-container" }, hAsync(DuetInternalLabel, { key: 'c1deac7c8b5bb4a0b7f83b56300847e0320bbe5c', theme: this.theme === "turva" ? "turva" : "default", margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: 'c62963ee9ff47b91fa4380725a514df722c9d2a6', class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: '024482e338a12e5e93c1a281c5780575f72986f5', name: "tooltip" })), this.caption && (hAsync("duet-caption", { key: '38d05c2a565c01b678e55ffd8229387e67d313e5', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '211a0b1ea0a61065f35ba521c44656002a82af3d', class: "duet-input-relative" }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (hAsync("duet-caption", { key: '48c712f9c9ac80bf82ced7d12b6e3d82a4fafd9a', id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), this.chips && (hAsync("duet-visually-hidden", { key: '94be7e517078792db305259a743d3e9f9b1ed78f', id: this.chipCountId }, ", ", `${this.getAllChips().length} ${getLocaleString(this.chipsSelectedDesriptionLabel)}`, ",")), this.variation === "button-left" && hAsync("slot", { key: '1c73512bd1cb13064dface542dd5c83c0ce0bb61', name: "button-left" }), hAsync("input", Object.assign({ key: '2712744a1452a269a9cf149aaa6e6b5fc99cefe3', ref: input => (this.nativeInput = input), onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, type: this.getInputType(), class: {
|
|
13590
13613
|
"duet-input": true,
|
|
13591
13614
|
disabled: this.disabled,
|
|
13592
13615
|
"is-number": this.component === "number",
|
|
@@ -13594,17 +13617,17 @@ class DuetInput {
|
|
|
13594
13617
|
"after-chip": this.getAllChips().length > 0,
|
|
13595
13618
|
"align-right": this.inputAlign === "right",
|
|
13596
13619
|
[`input-padding-${this.inputPadding}`]: true,
|
|
13597
|
-
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.type === "password" ? "off" : this.autoComplete, required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), !this.value && hasInputIcon && (hAsync("div", { key: '
|
|
13620
|
+
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.type === "password" ? "off" : this.autoComplete, required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), !this.value && hasInputIcon && (hAsync("div", { key: '080395d2f4005f5e2d40ebeadf5be30fb014e71d', class: "duet-input-icon" }, hAsync("duet-icon", { key: '2a5bfe3a6d42a97e6cf451f833deeae80d852374', margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && (hAsync("div", { key: '92a1308358fff9f5c6aed1a07e24053c7499e788', class: {
|
|
13598
13621
|
"duet-input-clear-icon": true,
|
|
13599
13622
|
"duet-input-clear-icon-single": !hasInputIcon,
|
|
13600
13623
|
"duet-input-clear-icon-double": !!this.icon,
|
|
13601
13624
|
"duet-input-clear-icon-button": this.variation === "button",
|
|
13602
13625
|
[`input-padding-${this.inputPadding}`]: true,
|
|
13603
|
-
} }, hAsync("button", { key: '
|
|
13626
|
+
} }, hAsync("button", { key: 'b921d4ca4eb54fc267ad62f3c956a9acd9ea4487', onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel[this.language], "aria-keyshortcuts": "Escape" }, hAsync("duet-icon", { key: 'bdea13847de38a2cfd7cab93aa5867dda090e8d0', margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (hAsync("div", { key: '4e49e31671b84ffbda56882870611aba296daab2', class: "duet-input-icon" }, hAsync("duet-icon", { key: '8d95610824e317a5dd0c2a445f074a8845e118f9', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && hAsync("slot", { key: 'a65627a7d986abbe186808402689fc99a08bf173', name: "button" }), this.variation === "revealable" && (hAsync("duet-button", { key: 'c1ae746e55b6cf639c28a8b510c399c390ab875e', ref: button => (this.togglePasswordRevealedButton = button), onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.togglePasswordRevealed, icon: this.isPasswordRevealed ? "action-hide" : "action-show", accessibleLabel: this.isPasswordRevealed
|
|
13604
13627
|
? this.hidePasswordLabel[this.language]
|
|
13605
|
-
: this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (hAsync("duet-visually-hidden", { key: '
|
|
13628
|
+
: this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (hAsync("duet-visually-hidden", { key: '002a8f8fcab8184f130dc007637ef24216aadee3' }, hAsync("span", { key: 'fd669556e6e64700f4c2347183e20e6cbeb5682b', "aria-live": "polite" }, this.isPasswordRevealed
|
|
13606
13629
|
? this.passwordShownAriaAnnouncement[this.language]
|
|
13607
|
-
: this.passwordHiddenAriaAnnouncement[this.language]))), hAsync("slot", { key: '
|
|
13630
|
+
: this.passwordHiddenAriaAnnouncement[this.language]))), hAsync("slot", { key: 'cc9d622df88881cabca741a1dd95a162e955c349' })), hAsync("span", { key: '31c73b30b14c89c56268c32102bb5427b9850ff1', class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'b04cbeca6289a6b421013dde03381db825ac7a2c', class: "duet-input-error" }, this.error)))));
|
|
13608
13631
|
}
|
|
13609
13632
|
get element() { return getElement(this); }
|
|
13610
13633
|
static get watchers() { return {
|
|
@@ -13813,24 +13836,24 @@ class DuetLayout {
|
|
|
13813
13836
|
* Always the last one in the class.
|
|
13814
13837
|
*/
|
|
13815
13838
|
render() {
|
|
13816
|
-
return (hAsync(Host, { key: '
|
|
13839
|
+
return (hAsync(Host, { key: 'fe098e91c7bb01e0e85f187ba546f8f0c15cf657', class: {
|
|
13817
13840
|
center: this.center,
|
|
13818
13841
|
"duet-middle": this.middle,
|
|
13819
13842
|
"duet-ie": isInternetExplorer(),
|
|
13820
|
-
} }, hAsync("div", { key: '
|
|
13843
|
+
} }, hAsync("div", { key: 'da78ba19b431c58d4c317488d836973313b3205e', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, this.hasTop && (hAsync("div", { key: '6e681d77a0e10bb86b110e92d2843a41a95f57b3', class: {
|
|
13821
13844
|
"duet-layout-top": true,
|
|
13822
13845
|
"duet-center": this.center,
|
|
13823
|
-
} }, hAsync("div", { key: '
|
|
13846
|
+
} }, hAsync("div", { key: 'cb6263cad7fbb6bcd52af5be3286998c5e6f8ff3', class: "duet-layout-top-wrapper" }, hAsync("slot", { key: 'c5c141ad0307a0c11bb7a03b5c78e45356b19945', name: "top" })))), hAsync("div", { key: 'e524ed28fa4b2069b1bbbb3f603ba4e6101bd9b7', class: {
|
|
13824
13847
|
"duet-layout": true,
|
|
13825
13848
|
"has-sidebar": this.hasSidebar,
|
|
13826
13849
|
"duet-center": this.center,
|
|
13827
13850
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
13828
|
-
} }, hAsync("main", { key: '
|
|
13851
|
+
} }, hAsync("main", { key: 'c593638dad35304125cad8df76e2666a68c537b6', class: "duet-main" }, this.hasPageHeading && hAsync("slot", { key: '9bf4eb387cc838260b36ba8d14ca567dd0ab084e', name: "page-heading" }), hAsync("slot", { key: 'afb96493e079f8eb59c1ad43746c25d5a522e239', name: "main" })), this.hasSidebar && (hAsync("aside", { key: '0c61d31a6c40af17a4c2831ea7e441d3625b23b0', class: "duet-sidebar" }, hAsync("div", { key: '524ea0db179272409930c635aa1faca2716f88d4', class: {
|
|
13829
13852
|
"duet-sidebar-container": true,
|
|
13830
13853
|
"has-tabs": this.tabs,
|
|
13831
13854
|
sticky: this.sticky,
|
|
13832
13855
|
[this.stickyDistance]: this.sticky,
|
|
13833
|
-
} }, hAsync("slot", { key: '
|
|
13856
|
+
} }, hAsync("slot", { key: '8e4836e0cc16d836afcdadf1fb31b5e8f9e81e45', name: "sidebar" }))))))));
|
|
13834
13857
|
}
|
|
13835
13858
|
get element() { return getElement(this); }
|
|
13836
13859
|
static get style() { return duetLayoutCss; }
|
|
@@ -13915,7 +13938,7 @@ function setOpenerExpanded(el, expanded, popup = "true") {
|
|
|
13915
13938
|
}
|
|
13916
13939
|
}
|
|
13917
13940
|
|
|
13918
|
-
const duetLinkCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:inline}:host(.duet-link-block){display:block}:host(.duet-link-button){margin-right:8px !important;margin-bottom:12px !important;display:inline-block;width:100%}:host(.duet-link-button):last-child,:host(.duet-link-button):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-link-button):last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-m-0){margin:0 !important}.duet-link{display:inline;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-style:normal;font-weight:400;color:rgb(0, 97, 155);text-decoration:underline;border-radius:4px;transition:300ms ease}.duet-link:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva,.duet-theme-turva2 .duet-link:focus,.duet-link:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-link.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(164, 4, 40)}.duet-link:hover{color:rgb(0, 75, 129);text-decoration:none}.duet-link:hover.duet-theme-turva{color:rgb(126, 2, 35)}.duet-link:active{opacity:0.75;transition:none}button{font-size:inherit;cursor:pointer}.duet-link-is-external.duet-link:not(.block,.button,.card),.duet-link-is-download.duet-link:not(.block,.button,.card){text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card) .duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card) .duet-link-content{text-decoration:underline}.duet-link-is-external.duet-link:not(.block,.button,.card):hover>.duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card):hover>.duet-link-content{text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card) .duet-link-icon-tail,.duet-link-is-download.duet-link:not(.block,.button,.card) .duet-link-icon-tail{white-space:nowrap;text-decoration:none}.duet-tab-to-link{padding:15px 28px 16px !important;position:absolute;top:-100%;left:-100%;z-index:200;width:1px;min-width:190px;height:1px;overflow:hidden;font-weight:600;color:rgb(0, 119, 179);text-align:center;text-decoration:none;background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:none}.duet-tab-to-link.duet-theme-turva{min-width:120px;color:rgb(23, 28, 58)}@media (min-width: 106.25em){.duet-tab-to-link{margin-left:20px}}.duet-tab-to-link:focus{top:12px;left:20px;width:auto;height:auto;opacity:1}.block.duet-link,.block-center.duet-link{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;padding:16px;font-weight:600;color:rgb(8, 42, 77);text-decoration:none}.block.duet-link.duet-link-has-icon,.block-center.duet-link.duet-link-has-icon{grid-template-columns:auto 1fr auto}.block.duet-link.none,.block-center.duet-link.none{padding:0}.block.duet-link:hover .duet-link-content,.block-center.duet-link:hover .duet-link-content{color:rgb(0, 97, 155)}.block .block__icon,.block-center .block__icon{display:flex}.block .block__icon duet-icon,.block-center .block__icon duet-icon{width:16px;height:16px}.block .block__icon duet-icon.icon-responsive,.block-center .block__icon duet-icon.icon-responsive{width:30px;height:30px}@media (max-width: 22.5em){.block .block__icon duet-icon.icon-responsive,.block-center .block__icon duet-icon.icon-responsive{width:24px;height:24px}}.block .block__content,.block-center .block__content{position:relative;bottom:2px}.block .block__chevron,.block-center .block__chevron{align-self:center}.block .block__chevron-icon,.block-center .block__chevron-icon{transition:300ms ease}.block:not(.duet-link-is-external):hover .block__chevron-icon,.block-center:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.block-center.duet-link{align-items:center}.block-center .block__content{position:static}.block-center .block__chevron{display:flex;align-items:center}.duet-link.button:not(.duet-link-has-icon-background) .icon-wrap duet-icon{width:20px;height:20px}.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:20px;height:20px}@media (min-width: 48em){.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:24px;height:24px}}.duet-link.button,.duet-link.list-button,.duet-link.card{display:flex;gap:12px;align-items:center;width:100%;min-height:48px;padding:14px 16px;line-height:1.25;text-decoration:none;background-color:rgb(255, 255, 255);border:solid 1px rgb(181, 198, 208);border-radius:12px;transition:all 300ms ease}.duet-link.button>*,.duet-link.list-button>*,.duet-link.card>*{flex-shrink:0}.duet-link.button .duet-link-content,.duet-link.list-button .duet-link-content,.duet-link.card .duet-link-content{flex-grow:1;flex-shrink:1;font-size:1rem;font-weight:600;color:rgb(8, 42, 77);text-align:left}.duet-link.button .icon-wrap,.duet-link.list-button .icon-wrap,.duet-link.card .icon-wrap{display:flex;align-items:center;justify-content:center}.duet-link.button .icon-wrap duet-icon,.duet-link.list-button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:24px;height:24px}@media (min-width: 48em){.duet-link.button .icon-wrap duet-icon,.duet-link.list-button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:30px;height:30px}}.duet-link.button .chevron-wrap,.duet-link.list-button .chevron-wrap,.duet-link.card .chevron-wrap{height:16px}.duet-link.button.duet-link-has-icon-background,.duet-link.list-button.duet-link-has-icon-background,.duet-link.card.duet-link-has-icon-background{min-height:60px;padding:12px;padding-right:20px;line-height:1.5}.duet-link.button.duet-link-has-icon-background .icon-wrap,.duet-link.list-button.duet-link-has-icon-background .icon-wrap,.duet-link.card.duet-link-has-icon-background .icon-wrap{width:36px;height:36px;border-radius:8px}.duet-link.button:hover,.duet-link.list-button:hover,.duet-link.card:hover{outline:2px solid rgb(0, 119, 179);border-color:rgb(0, 119, 179)}@media (min-width: 48em){.duet-link.button,.duet-link.list-button,.duet-link.card{min-height:50px}.duet-link.button.duet-link-has-icon-background,.duet-link.list-button.duet-link-has-icon-background,.duet-link.card.duet-link-has-icon-background{gap:16px;min-height:72px;border-radius:16px}.duet-link.button.duet-link-has-icon-background .icon-wrap,.duet-link.list-button.duet-link-has-icon-background .icon-wrap,.duet-link.card.duet-link-has-icon-background .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.button.duet-link-has-icon-background .duet-link-content,.duet-link.list-button.duet-link-has-icon-background .duet-link-content,.duet-link.card.duet-link-has-icon-background .duet-link-content{font-size:1.1rem}}.duet-link.button.duet-theme-turva,.duet-link.list-button.duet-theme-turva,.duet-link.card.duet-theme-turva{border-color:rgb(199, 202, 207)}.duet-link.button.duet-theme-turva .duet-link-content,.duet-link.list-button.duet-theme-turva .duet-link-content,.duet-link.card.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.button.duet-theme-turva:hover,.duet-link.list-button.duet-theme-turva:hover,.duet-link.card.duet-theme-turva:hover{outline-color:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-link.button .block__chevron-icon,.duet-link.list-button .block__chevron-icon,.duet-link.card .block__chevron-icon{transition:300ms ease}.duet-link.button:not(.duet-link-is-external):hover .block__chevron-icon,.duet-link.list-button:not(.duet-link-is-external):hover .block__chevron-icon,.duet-link.card:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.duet-link.list-button{padding:20px 12px 20px 4px;margin-top:-1px;border:solid 1px rgb(181, 198, 208);border-width:1px 0;border-radius:0}.duet-link.list-button .icon-wrap duet-icon{width:20px;height:20px}@media (min-width: 48em){.duet-link.list-button .icon-wrap duet-icon{width:24px;height:24px}}.duet-link.list-button:hover{outline:0;border-color:rgb(181, 198, 208)}.duet-link.list-button:hover .duet-link-content{color:rgb(0, 119, 179)}.duet-link.list-button.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.list-button.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-link.list-button.duet-theme-turva:hover .duet-link-content{color:rgb(198, 12, 48)}.duet-link.card{border-color:rgb(228, 236, 239);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-link.card.duet-theme-turva{border-color:rgb(234, 235, 239);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}.duet-link.card:not(.duet-link-has-icon){gap:12px;padding:16px}.duet-link.card .chevron-wrap{display:flex;align-items:center;height:100%}.duet-link.card.duet-link-has-icon{gap:12px;align-items:flex-start;padding:16px}.duet-link.card.duet-link-has-icon .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.card.duet-link-has-icon .chevron-wrap{height:48px}@media (min-width: 48em){.duet-link.card:not(.duet-link-has-icon){gap:20px;padding:24px}.duet-link.card.duet-link-has-icon{gap:20px;padding:24px}.duet-link.card.duet-link-has-icon .icon-wrap{width:62px;height:62px;border-radius:16px}.duet-link.card.duet-link-has-icon .chevron-wrap{height:62px}}:host(.duet-theme-turva2) .duet-theme-turva.duet-link{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link:hover{color:rgb(140, 0, 30)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button{border-color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button .duet-link-content{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover{border-color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover .duet-link-content{color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center .duet-link-content{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover .duet-link-content{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-to-link{color:rgb(23, 42, 59)}";
|
|
13941
|
+
const duetLinkCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:inline}:host(.duet-link-block){display:block}:host(.duet-link-button){margin-right:8px !important;margin-bottom:12px !important;display:inline-block;width:100%}:host(.duet-link-button):last-child,:host(.duet-link-button):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-link-button):last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-m-0){margin:0 !important}.duet-link{display:inline;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-style:normal;font-weight:400;color:rgb(0, 97, 155);text-decoration:underline;border-radius:4px;transition:300ms ease}.duet-link:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva,.duet-theme-turva2 .duet-link:focus,.duet-link:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-link.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(164, 4, 40)}.duet-link:hover{color:rgb(0, 75, 129);text-decoration:none}.duet-link:hover.duet-theme-turva{color:rgb(126, 2, 35)}.duet-link:active{opacity:0.75;transition:none}button{font-size:inherit;cursor:pointer}.duet-link-is-external.duet-link:not(.block,.button,.card,.article-list),.duet-link-is-download.duet-link:not(.block,.button,.card,.article-list){text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card,.article-list) .duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card,.article-list) .duet-link-content{text-decoration:underline}.duet-link-is-external.duet-link:not(.block,.button,.card,.article-list):hover>.duet-link-content,.duet-link-is-download.duet-link:not(.block,.button,.card,.article-list):hover>.duet-link-content{text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button,.card,.article-list) .duet-link-icon-tail,.duet-link-is-download.duet-link:not(.block,.button,.card,.article-list) .duet-link-icon-tail{white-space:nowrap;text-decoration:none}.duet-tab-to-link{padding:15px 28px 16px !important;position:absolute;top:-100%;left:-100%;z-index:200;width:1px;min-width:190px;height:1px;overflow:hidden;font-weight:600;color:rgb(0, 119, 179);text-align:center;text-decoration:none;background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:none}.duet-tab-to-link.duet-theme-turva{min-width:120px;color:rgb(23, 28, 58)}@media (min-width: 106.25em){.duet-tab-to-link{margin-left:20px}}.duet-tab-to-link:focus{top:12px;left:20px;width:auto;height:auto;opacity:1}.block.duet-link,.block-center.duet-link{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;padding:16px;font-weight:600;color:rgb(8, 42, 77);text-decoration:none}.block.duet-link.duet-link-has-icon,.block-center.duet-link.duet-link-has-icon{grid-template-columns:auto 1fr auto}.block.duet-link.none,.block-center.duet-link.none{padding:0}.block.duet-link:hover .duet-link-content,.block-center.duet-link:hover .duet-link-content{color:rgb(0, 97, 155)}.block .block__icon,.block-center .block__icon{display:flex}.block .block__icon duet-icon,.block-center .block__icon duet-icon{width:16px;height:16px}.block .block__icon duet-icon.icon-responsive,.block-center .block__icon duet-icon.icon-responsive{width:30px;height:30px}@media (max-width: 22.5em){.block .block__icon duet-icon.icon-responsive,.block-center .block__icon duet-icon.icon-responsive{width:24px;height:24px}}.block .block__content,.block-center .block__content{position:relative;bottom:2px}.block .block__chevron,.block-center .block__chevron{align-self:center}.block .block__chevron-icon,.block-center .block__chevron-icon{transition:300ms ease}.block:not(.duet-link-is-external):hover .block__chevron-icon,.block-center:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.block-center.duet-link{align-items:center}.block-center .block__content{position:static}.block-center .block__chevron{display:flex;align-items:center}.duet-link.button:not(.duet-link-has-icon-background) .icon-wrap duet-icon{width:20px;height:20px}.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:20px;height:20px}@media (min-width: 48em){.duet-link.button.duet-link-has-icon-background .icon-wrap duet-icon{width:24px;height:24px}}.duet-link.button,.duet-link.list-button,.duet-link.card{display:flex;gap:12px;align-items:center;width:100%;min-height:48px;padding:14px 16px;line-height:1.25;text-decoration:none;background-color:rgb(255, 255, 255);border:solid 1px rgb(181, 198, 208);border-radius:12px;transition:all 300ms ease}.duet-link.button>*,.duet-link.list-button>*,.duet-link.card>*{flex-shrink:0}.duet-link.button .duet-link-content,.duet-link.list-button .duet-link-content,.duet-link.card .duet-link-content{flex-grow:1;flex-shrink:1;font-size:1rem;font-weight:600;color:rgb(8, 42, 77);text-align:left}.duet-link.button .icon-wrap,.duet-link.list-button .icon-wrap,.duet-link.card .icon-wrap{display:flex;align-items:center;justify-content:center}.duet-link.button .icon-wrap duet-icon,.duet-link.list-button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:24px;height:24px}@media (min-width: 48em){.duet-link.button .icon-wrap duet-icon,.duet-link.list-button .icon-wrap duet-icon,.duet-link.card .icon-wrap duet-icon{width:30px;height:30px}}.duet-link.button .chevron-wrap,.duet-link.list-button .chevron-wrap,.duet-link.card .chevron-wrap{height:16px}.duet-link.button.duet-link-has-icon-background,.duet-link.list-button.duet-link-has-icon-background,.duet-link.card.duet-link-has-icon-background{min-height:60px;padding:12px;padding-right:20px;line-height:1.5}.duet-link.button.duet-link-has-icon-background .icon-wrap,.duet-link.list-button.duet-link-has-icon-background .icon-wrap,.duet-link.card.duet-link-has-icon-background .icon-wrap{width:36px;height:36px;border-radius:8px}.duet-link.button:hover,.duet-link.list-button:hover,.duet-link.card:hover{outline:2px solid rgb(0, 119, 179);border-color:rgb(0, 119, 179)}@media (min-width: 48em){.duet-link.button,.duet-link.list-button,.duet-link.card{min-height:50px}.duet-link.button.duet-link-has-icon-background,.duet-link.list-button.duet-link-has-icon-background,.duet-link.card.duet-link-has-icon-background{gap:16px;min-height:72px;border-radius:16px}.duet-link.button.duet-link-has-icon-background .icon-wrap,.duet-link.list-button.duet-link-has-icon-background .icon-wrap,.duet-link.card.duet-link-has-icon-background .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.button.duet-link-has-icon-background .duet-link-content,.duet-link.list-button.duet-link-has-icon-background .duet-link-content,.duet-link.card.duet-link-has-icon-background .duet-link-content{font-size:1.1rem}}.duet-link.button.duet-theme-turva,.duet-link.list-button.duet-theme-turva,.duet-link.card.duet-theme-turva{border-color:rgb(199, 202, 207)}.duet-link.button.duet-theme-turva .duet-link-content,.duet-link.list-button.duet-theme-turva .duet-link-content,.duet-link.card.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.button.duet-theme-turva:hover,.duet-link.list-button.duet-theme-turva:hover,.duet-link.card.duet-theme-turva:hover{outline-color:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-link.button .block__chevron-icon,.duet-link.list-button .block__chevron-icon,.duet-link.card .block__chevron-icon{transition:300ms ease}.duet-link.button:not(.duet-link-is-external):hover .block__chevron-icon,.duet-link.list-button:not(.duet-link-is-external):hover .block__chevron-icon,.duet-link.card:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.duet-link.list-button{padding:20px 12px 20px 4px;margin-top:-1px;border:solid 1px rgb(181, 198, 208);border-width:1px 0;border-radius:0}.duet-link.list-button .icon-wrap duet-icon{width:20px;height:20px}@media (min-width: 48em){.duet-link.list-button .icon-wrap duet-icon{width:24px;height:24px}}.duet-link.list-button:hover{outline:0;border-color:rgb(181, 198, 208)}.duet-link.list-button:hover .duet-link-content{color:rgb(0, 119, 179)}.duet-link.list-button.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.list-button.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-link.list-button.duet-theme-turva:hover .duet-link-content{color:rgb(198, 12, 48)}.duet-link.card{border-color:rgb(228, 236, 239);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-link.card.duet-theme-turva{border-color:rgb(234, 235, 239);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}.duet-link.card:not(.duet-link-has-icon){gap:12px;padding:16px}.duet-link.card .chevron-wrap{display:flex;align-items:center;height:100%}.duet-link.card.duet-link-has-icon{gap:12px;align-items:flex-start;padding:16px}.duet-link.card.duet-link-has-icon .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.card.duet-link-has-icon .chevron-wrap{height:48px}@media (min-width: 48em){.duet-link.card:not(.duet-link-has-icon){gap:20px;padding:24px}.duet-link.card.duet-link-has-icon{gap:20px;padding:24px}.duet-link.card.duet-link-has-icon .icon-wrap{width:62px;height:62px;border-radius:16px}.duet-link.card.duet-link-has-icon .chevron-wrap{height:62px}}.duet-link.article-list{display:block;padding:20px 0;margin-bottom:-1px;text-decoration:none;border:solid rgb(212, 223, 229);border-width:1px 0;border-radius:0}.duet-link.article-list .duet-link-content{font-weight:600;color:rgb(0, 75, 129)}.duet-link.article-list .duet-link-content-wrap{display:flex}.duet-link.article-list .duet-link-bullet{width:8px;height:8px;margin-top:8px;margin-right:16px;border-radius:2px}.duet-link.article-list .duet-link-meta{display:block;margin-top:4px;font-weight:400;color:rgb(81, 105, 123)}.duet-link.article-list:focus .duet-link-content,.duet-link.article-list:hover .duet-link-content{color:rgb(0, 97, 155);text-decoration:underline}:host(.duet-theme-turva2) .duet-theme-turva.duet-link{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link:hover{color:rgb(140, 0, 30)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button{border-color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button .duet-link-content{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover{border-color:rgb(178, 194, 205)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover .duet-link-content{color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center .duet-link-content{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover .duet-link-content,:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover .duet-link-content{color:rgb(185, 3, 41)}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-to-link{color:rgb(23, 42, 59)}";
|
|
13919
13942
|
|
|
13920
13943
|
/**
|
|
13921
13944
|
* @part duet-link - piercing selector for styling the link
|
|
@@ -13987,7 +14010,8 @@ class DuetLink {
|
|
|
13987
14010
|
*/
|
|
13988
14011
|
this.iconColor = "currentColor";
|
|
13989
14012
|
/**
|
|
13990
|
-
* Color of the icon to display (
|
|
14013
|
+
* Color of the icon to display (with "button" variation) or color of the bullet (with "article-list"
|
|
14014
|
+
* variation). Not used for other variations.
|
|
13991
14015
|
*/
|
|
13992
14016
|
this.iconBackground = null;
|
|
13993
14017
|
/**
|
|
@@ -14063,6 +14087,9 @@ class DuetLink {
|
|
|
14063
14087
|
};
|
|
14064
14088
|
return (hAsync(Fragment, null, this.icon && (hAsync("span", { class: "icon-wrap", style: iconWrapStyle }, hAsync("duet-icon", { size: "auto", name: this.icon, margin: "none", color: this.iconColor }))), hAsync("div", { class: "duet-link-content", part: "duet-link-content" }, hAsync("slot", null)), hAsync("span", { class: "chevron-wrap" }, hAsync("duet-icon", { class: "block__chevron-icon", icon: this.external ? newWindowIconLarge.svg : chevronIcon.svg, size: "x-small", margin: "none", color: "primary-dark" }))));
|
|
14065
14089
|
}
|
|
14090
|
+
renderArticleListContent() {
|
|
14091
|
+
return (hAsync("div", { class: "duet-link-content-wrap" }, this.iconBackground && (hAsync("div", { class: "duet-link-bullet", style: { background: getColorByName(this.iconBackground, this.theme) } })), hAsync("span", null, hAsync("span", { class: "duet-link-content", part: "duet-link-content" }, hAsync("slot", null)), Build.isBrowser, hAsync("span", { class: "duet-link-meta" }, hAsync("slot", { name: "meta" })))));
|
|
14092
|
+
}
|
|
14066
14093
|
renderContent() {
|
|
14067
14094
|
switch (this.variation) {
|
|
14068
14095
|
case "default":
|
|
@@ -14074,6 +14101,8 @@ class DuetLink {
|
|
|
14074
14101
|
case "list-button":
|
|
14075
14102
|
case "card":
|
|
14076
14103
|
return this.renderButtonCardContent();
|
|
14104
|
+
case "article-list":
|
|
14105
|
+
return this.renderArticleListContent();
|
|
14077
14106
|
}
|
|
14078
14107
|
}
|
|
14079
14108
|
/**
|
|
@@ -14084,10 +14113,10 @@ class DuetLink {
|
|
|
14084
14113
|
const Tag = !this.url && this.variation !== "default" ? "button" : "a";
|
|
14085
14114
|
const role = !this.url && this.variation === "default" ? "button" : null;
|
|
14086
14115
|
const isButton = Tag === "button";
|
|
14087
|
-
return (hAsync(Host, { key: '
|
|
14116
|
+
return (hAsync(Host, { key: '63ea212c967fed116f28d316bf7b4dc6f7bed88d', class: {
|
|
14088
14117
|
[`duet-link-${this.variation}`]: true,
|
|
14089
14118
|
"duet-m-0": this.margin === "none",
|
|
14090
|
-
} }, hAsync(Tag, { key: '
|
|
14119
|
+
} }, hAsync(Tag, { key: 'c799db0446fbca186340c781f23ccecaf58e4336', href: this.url, class: {
|
|
14091
14120
|
"duet-link": true,
|
|
14092
14121
|
"duet-link-is-external": this.external,
|
|
14093
14122
|
"duet-link-is-download": !!this.download,
|
|
@@ -14277,7 +14306,7 @@ class DuetList {
|
|
|
14277
14306
|
* Always the last one in the class.
|
|
14278
14307
|
*/
|
|
14279
14308
|
render() {
|
|
14280
|
-
return (hAsync("dl", { key: '
|
|
14309
|
+
return (hAsync("dl", { key: '8cae41f240da2961c27153dc122763812b5fa34c', class: { "duet-list-component": true, "duet-m-0": this.margin === "none" } }, hAsync("slot", { key: 'b99b56fcc934c6a52c71df3e77d60b91393ade02' })));
|
|
14281
14310
|
}
|
|
14282
14311
|
get element() { return getElement(this); }
|
|
14283
14312
|
static get watchers() { return {
|
|
@@ -14343,7 +14372,7 @@ class DuetListItem {
|
|
|
14343
14372
|
* Always the last one in the class.
|
|
14344
14373
|
*/
|
|
14345
14374
|
render() {
|
|
14346
|
-
return (hAsync(Host, { key: '
|
|
14375
|
+
return (hAsync(Host, { key: '2fc646c6ec771484ba741b13db4e05af02190613', class: {
|
|
14347
14376
|
"duet-theme-turva": this.theme === "turva",
|
|
14348
14377
|
"duet-no-stacking": !this.responsive,
|
|
14349
14378
|
"duet-list-item-breakpoint-x-small": this.breakpoint === "x-small",
|
|
@@ -14351,7 +14380,7 @@ class DuetListItem {
|
|
|
14351
14380
|
"duet-list-item-breakpoint-medium": this.breakpoint === "medium",
|
|
14352
14381
|
"duet-list-item-breakpoint-large": this.breakpoint === "large",
|
|
14353
14382
|
"duet-list-item-breakpoint-x-large": this.breakpoint === "x-large",
|
|
14354
|
-
} }, hAsync("dt", { key: '
|
|
14383
|
+
} }, hAsync("dt", { key: 'a6f04cd679b723dec94b73f49a1f01e765cc2c2c' }, hAsync("slot", { key: '3406e6b4499bc4e1ccbb65c8c20861a940058120', name: "label" })), hAsync("dd", { key: '12904de4492dd50e266c323d2d038a514e4ed4f1' }, hAsync("slot", { key: '1b5922436da8b77d4687c2fe55e7f58c5af37647', name: "value" }))));
|
|
14355
14384
|
}
|
|
14356
14385
|
get element() { return getElement(this); }
|
|
14357
14386
|
static get style() { return duetListItemCss; }
|
|
@@ -14500,7 +14529,7 @@ class DuetLogo {
|
|
|
14500
14529
|
*/
|
|
14501
14530
|
render() {
|
|
14502
14531
|
const TagName = this.href ? "a" : "div";
|
|
14503
|
-
return (hAsync(Host, { key: '
|
|
14532
|
+
return (hAsync(Host, { key: '45473fa278154204ad2358fcea7063bf90c56594', class: { "duet-m-0": this.margin === "none" } }, hAsync(TagName, { key: '6311062a05dc397c72ffbd371c6443cf96e3438e', href: this.href, ref: link => (this.nativeLink = link), "aria-label": this.accessibleLabel, class: {
|
|
14504
14533
|
"duet-logo": true,
|
|
14505
14534
|
[this.size]: true,
|
|
14506
14535
|
"duet-logo-inverse": this.inverse,
|
|
@@ -14661,17 +14690,17 @@ class DuetMenuBar {
|
|
|
14661
14690
|
render() {
|
|
14662
14691
|
const slideoutAvailable = document.querySelectorAll("duet-slideout").length > 0;
|
|
14663
14692
|
const isUsedAsAdditionalHorizontalNav = slideoutAvailable && !this.logo;
|
|
14664
|
-
return (hAsync(Host, { key: '
|
|
14693
|
+
return (hAsync(Host, { key: '0465c2eb195dcbd9b168a73646321e57fdbf6ac9' }, hAsync("nav", { key: 'f0bfcd1ec120c1471fe1d32715b6892125f03baa', class: {
|
|
14665
14694
|
"duet-menu-bar": true,
|
|
14666
14695
|
"duet-theme-turva": this.theme === "turva",
|
|
14667
14696
|
"horizontal-nav": isUsedAsAdditionalHorizontalNav,
|
|
14668
14697
|
"duet-menu-bar-slim": !this.centerSlotUsed,
|
|
14669
14698
|
hidden: this.hidden && this.hideOnScroll,
|
|
14670
14699
|
bottom: this.onBottom,
|
|
14671
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
14700
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: 'bc2ac882034c4d1ffc30fa989bf6d4927ecd50dc', class: "top" }), hAsync("div", { key: '2495e91eb00325b4cb6d01814a13196916e62703', class: { container: true, "with-info-text": !!this.logoInfoText && !this.centerSlotUsed }, ref: el => (this.container = el), onScroll: () => this.scrollbarCheck() }, this.logo && (hAsync("div", { key: '4eaa51862b000fb13b27c4abe9d4d44cc9ad2f1c' }, hAsync("duet-logo", { key: '909c1992fd75363ff871776e4d948d295f21ee2e', class: "medium", size: "medium", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), hAsync("duet-logo", { key: 'e672f17cccb5ba665d93375746eda2427a43fd5a', class: "large", size: "large", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), hAsync("duet-logo", { key: '92864cb719cd05cf81b3e1a8513179daeceaae30', class: "only-symbol", onlySymbol: true, margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), this.logoInfoText && !this.centerSlotUsed && (hAsync("div", { key: 'bdea5133ca4fe524e4514808a1233094a4427bd7', class: {
|
|
14672
14701
|
"duet-logo-info-text": true,
|
|
14673
14702
|
"duet-theme-turva": this.theme === "turva",
|
|
14674
|
-
} }, this.logoInfoText)))), hAsync("div", { key: '
|
|
14703
|
+
} }, this.logoInfoText)))), hAsync("div", { key: '05e4681d1eb7add830ec0dba6d8bf33df33e77a1', class: "list center", role: "list" }, hAsync("div", { key: '6b29f783a3df400d7e2f8bfca9dba33321d658c6', class: "more-left", hidden: !this.leftMoreVisible, role: "presentation" }), hAsync("slot", { key: '938d6956b67e6a8a5592ea6f13e013a672af3f0a', name: "center" }), hAsync("div", { key: '27897945987291e920d738a520fe16b2a82284f4', class: "more-right", hidden: !this.rightMoreVisible, role: "presentation" })), hAsync("div", { key: '9cc2f6e6297e855cdac09b2a3fa5d6c3a42ecf9c', class: "list right", role: "list" }, hAsync("slot", { key: '257a5853501bb6dde1d152842c77c4e8cd00b709', name: "right" }))), hAsync("div", { key: '3a7b3b351b057060e8359a4acc7857fabe29ab3d', class: "bottom" }))));
|
|
14675
14704
|
}
|
|
14676
14705
|
get element() { return getElement(this); }
|
|
14677
14706
|
static get style() { return duetMenuBarCss; }
|
|
@@ -14750,10 +14779,10 @@ class DuetMenuBarButton {
|
|
|
14750
14779
|
* Always the last one in the class.
|
|
14751
14780
|
*/
|
|
14752
14781
|
render() {
|
|
14753
|
-
return (hAsync(Host, { key: '
|
|
14782
|
+
return (hAsync(Host, { key: '27fb2c633e88b04b7397830d15c881240d29a91b', role: "listitem", onfocus: () => this.setFocus() }, hAsync("button", { key: '29791cfd8473dc9407238460bcb1e169f183f074', ref: button => (this.nativeButton = button), class: {
|
|
14754
14783
|
"duet-menu-bar-button": true,
|
|
14755
14784
|
"duet-theme-turva": this.theme === "turva",
|
|
14756
|
-
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (hAsync("duet-icon", { key: '
|
|
14785
|
+
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (hAsync("duet-icon", { key: 'e037dac1385bef39b070602ba5bfb278470a49dd', class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: '95fd0aef38328dece2756ceed18c904c0c447d76' }))));
|
|
14757
14786
|
}
|
|
14758
14787
|
get element() { return getElement(this); }
|
|
14759
14788
|
static get style() { return duetMenuBarButtonCss; }
|
|
@@ -14843,17 +14872,17 @@ class DuetMenuBarDropdown {
|
|
|
14843
14872
|
* Always the last one in the class.
|
|
14844
14873
|
*/
|
|
14845
14874
|
render() {
|
|
14846
|
-
return (hAsync(Host, { key: '
|
|
14875
|
+
return (hAsync(Host, { key: 'c46c77a3b37d72d4f026c5027a8bed6dc33621c5', role: "listitem" }, hAsync("div", { key: 'bed24491075bfc2c5dcf225c5262a1af76e7a34f', class: {
|
|
14847
14876
|
"duet-menu-bar-dropdown": true,
|
|
14848
14877
|
"duet-theme-turva": this.theme === "turva",
|
|
14849
14878
|
active: this.open,
|
|
14850
14879
|
[`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
|
|
14851
|
-
} }, hAsync("button", { key: '
|
|
14880
|
+
} }, hAsync("button", { key: 'bee18f72f97fe86364cdf6afa685602feea7f694', ref: element => (this.button = element), "aria-label": this.accessibleLabel, "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
14852
14881
|
active: this.open,
|
|
14853
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
14882
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '9b5beb13681712fe262c14ba74de6b30ab481dff', class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'debea3ea41d1b4358dbf774b54558d8921b92006', class: "label" }, hAsync("slot", { key: 'fffcc54cdfb0032577c066e374c3465eafac3206', name: "label" }), hAsync("duet-icon", { key: 'a36c591292ca2c2b445e04f53721f788a4005934', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '3794aa5366239e4db4286303ef75f30778e3b911', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
14854
14883
|
items: true,
|
|
14855
14884
|
hidden: !this.open,
|
|
14856
|
-
} }, hAsync("slot", { key: '
|
|
14885
|
+
} }, hAsync("slot", { key: '4a0657ee88ab885d6e177b654e0e9231d0027ec1' })))));
|
|
14857
14886
|
}
|
|
14858
14887
|
get element() { return getElement(this); }
|
|
14859
14888
|
static get style() { return duetMenuBarDropdownCss; }
|
|
@@ -14920,11 +14949,11 @@ class DuetMenuBarDropdownLink {
|
|
|
14920
14949
|
* Always the last one in the class.
|
|
14921
14950
|
*/
|
|
14922
14951
|
render() {
|
|
14923
|
-
return (hAsync(Host, { key: '
|
|
14952
|
+
return (hAsync(Host, { key: '44c02bb0c92ca03579e70dc6f79178099f38de61' }, hAsync("a", { key: '26b45ac19043800a070894afec67517d051b6ccc', class: {
|
|
14924
14953
|
"duet-menu-bar-dropdown-link": true,
|
|
14925
14954
|
[`duet-menu-bar-dropdown-link--slot-${this.getVariant()}`]: true,
|
|
14926
14955
|
"duet-theme-turva": this.theme === "turva",
|
|
14927
|
-
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
14956
|
+
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '4d481450931bbf089d2f6d5ee7076aca7c3978f1', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("slot", { key: 'b47043814429787c833949bac92bae95b2001419' }))));
|
|
14928
14957
|
}
|
|
14929
14958
|
get element() { return getElement(this); }
|
|
14930
14959
|
static get style() { return duetMenuBarDropdownLinkCss; }
|
|
@@ -15010,11 +15039,11 @@ class DuetMenuBarItem {
|
|
|
15010
15039
|
*/
|
|
15011
15040
|
render() {
|
|
15012
15041
|
const TagName = this.url ? "a" : "button";
|
|
15013
|
-
return (hAsync(Host, { key: '
|
|
15042
|
+
return (hAsync(Host, { key: '9feca792c6d12ed05344d17db4a5076ad037994e', role: "listitem" }, hAsync(TagName, { key: '5ab6813f5290c5f323713e6015a46330089d555a', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
15014
15043
|
"duet-menu-bar-item": true,
|
|
15015
15044
|
"duet-theme-turva": this.theme === "turva",
|
|
15016
15045
|
active: this.active,
|
|
15017
|
-
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '
|
|
15046
|
+
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '7b6541e7b7cab53fedf815feebc683b9f122e323', class: "leading-icon", size: "auto", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: 'ab89cf87285d10e52798cd123c404acb69d6bf91' }), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: '6bc587bed959b634caf6b25db7f3374ed538151c', class: {
|
|
15018
15047
|
"trailing-icon": !!this.trailingIcon,
|
|
15019
15048
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
15020
15049
|
"external-icon": !!this.external,
|
|
@@ -15079,11 +15108,11 @@ class DuetMenuBarLink {
|
|
|
15079
15108
|
* Always the last one in the class.
|
|
15080
15109
|
*/
|
|
15081
15110
|
render() {
|
|
15082
|
-
return (hAsync(Host, { key: '
|
|
15111
|
+
return (hAsync(Host, { key: '044fd632f4ea61ecd3bbbb77e3c2d0eda50f16a4', role: "listitem" }, hAsync("a", { key: 'b910e6d15c696910ab231b49facb9cd3250d66c4', class: {
|
|
15083
15112
|
"duet-menu-bar-link": true,
|
|
15084
15113
|
"duet-theme-turva": this.theme === "turva",
|
|
15085
15114
|
active: this.active,
|
|
15086
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
15115
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '46ede326e61111856df4318b018a4128b7743658', class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), hAsync("slot", { key: '774a0d744c12e5d43783123c2d07d450a0ad0472' }))));
|
|
15087
15116
|
}
|
|
15088
15117
|
get element() { return getElement(this); }
|
|
15089
15118
|
static get style() { return duetMenuBarLinkCss; }
|
|
@@ -15419,14 +15448,14 @@ class DuetModal {
|
|
|
15419
15448
|
var _a, _b;
|
|
15420
15449
|
const iconColor = postfixTheme("primary", this.theme);
|
|
15421
15450
|
const closeColor = postfixTheme("secondary", this.theme);
|
|
15422
|
-
const closingButton = (hAsync("div", { key: '
|
|
15423
|
-
return (hAsync("div", { key: '
|
|
15451
|
+
const closingButton = (hAsync("div", { key: '4e4871ea348d26b652ca2e5509de5c8109893bec', class: "duet-modal-close" }, hAsync("duet-button", { key: 'a247c1d1de4f0eb6d17013ce97e1190f0e3cff98', ref: button => (this.buttonEl = button), variation: "plain", accessibleLabel: this.accessibleCloseLabel, color: closeColor, iconSize: "large", icon: "navigation-close", iconOnly: true, margin: "none", theme: this.theme, onClick: ev => this.closeModal(ev), fixed: true })));
|
|
15452
|
+
return (hAsync("div", { key: 'ea0d8046f113e79da769fdf27e90cc1564694a63', ref: modal => (this.modalEl = modal), "aria-label": (_a = this.accessibleLabel) !== null && _a !== void 0 ? _a : this.heading, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-describedby": this.accessibleDescribedBy, role: this.variation === "loader" ? "alert" : "dialog", "aria-modal": this.isSafariBrowser ? false : true, tabindex: "-1", class: {
|
|
15424
15453
|
"duet-modal-container": true,
|
|
15425
15454
|
"duet-theme-turva": this.theme === "turva",
|
|
15426
15455
|
"duet-modal-active": this.open,
|
|
15427
15456
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
15428
15457
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
15429
|
-
} }, hAsync("duet-overlay", { key: '
|
|
15458
|
+
} }, hAsync("duet-overlay", { key: '91332691051a8738a7278332558618d949b552cc', "z-index": "-1", visible: this.open, variation: this.variation === "loader" ? "white" : "default" }), hAsync("div", { key: '4068b2b99a1d7bc930812732a2fab135a99b4e1f', ref: modalInner => (this.modalInnerEl = modalInner), class: {
|
|
15430
15459
|
"duet-modal-inner": true,
|
|
15431
15460
|
[this.size]: true,
|
|
15432
15461
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
@@ -15437,22 +15466,22 @@ class DuetModal {
|
|
|
15437
15466
|
this.closeModal(e);
|
|
15438
15467
|
}
|
|
15439
15468
|
}
|
|
15440
|
-
} }, hAsync("div", { key: '
|
|
15469
|
+
} }, hAsync("div", { key: '0e3bbd10ffbad50b58f85c04ffb742036d13ebc0', ref: modalContentEl => (this.modalContentEl = modalContentEl), "aria-live": this.accessibleAnnounceChanges === "all" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "all" ? "true" : null, class: {
|
|
15441
15470
|
"duet-modal": true,
|
|
15442
15471
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
15443
15472
|
[this.size]: true,
|
|
15444
15473
|
[this.variation]: true,
|
|
15445
|
-
} }, this.gutterSize !== "none" && !this.hasStickyHeader && hAsync("duet-spacer", { key: '
|
|
15474
|
+
} }, this.gutterSize !== "none" && !this.hasStickyHeader && hAsync("duet-spacer", { key: 'bc7e5211ee8205892ac64dcc5a6e638c47616077' }), this.hasStickyHeader ? (hAsync("div", { class: "duet-modal-sticky-header" }, closingButton, hAsync("slot", { name: "sticky-header" }))) : (closingButton), hAsync("div", { key: '8c34198b5e52ebd8325b1075c4fa544606902c57', class: {
|
|
15446
15475
|
"duet-modal-body": true,
|
|
15447
15476
|
"duet-modal-gutter-none": this.gutterSize === "none",
|
|
15448
15477
|
"duet-modal-gutter-small": this.gutterSize === "small",
|
|
15449
15478
|
"duet-modal-gutter-medium": this.gutterSize === "medium",
|
|
15450
15479
|
"duet-modal-gutter-large": this.gutterSize === "large",
|
|
15451
|
-
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, hAsync("div", { key: '
|
|
15480
|
+
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, hAsync("div", { key: 'bd3fccbb60f77e869f2d22bbcd1cba5727f95662', class: "duet-modal-header" }, hAsync("span", { key: 'c39aa3dca41741380c1b447499bb8681c0a2740b', class: "duet-modal-inner-slot-top" }, hAsync("slot", { key: 'cbd305802019477236a92a4adde4146b614679f1', name: "top" })), this.icon && hAsync("duet-icon", { key: 'c7c340547b899add045132774d8e6fc77cf0cc79', name: this.icon, size: "xx-large", color: this.color || iconColor }), this.heading && (hAsync("duet-heading", { key: '51be5028e374ffba2038f37e44c8e51167b0884a', "visual-level": (_b = this.headingVisualLevel) !== null && _b !== void 0 ? _b : this.headingLevel, level: this.headingLevel, theme: this.theme }, this.heading))), this.variation === "loader" && (hAsync("div", { key: '0a2606eaa0bb824d069c58cebd3239015e34c700', class: "duet-modal-spinner" }, hAsync("duet-spinner", { key: 'ab388454ca70920a04b9dd71bd8bf122fad5709a', size: "large", color: postfixTheme("primary", this.theme) }))), hAsync("div", { key: '647661b913ea78f280eb668f0f475b202188f424', "aria-live": this.variation === "loader"
|
|
15452
15481
|
? "assertive"
|
|
15453
15482
|
: this.accessibleAnnounceChanges === "body"
|
|
15454
15483
|
? "polite"
|
|
15455
|
-
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, hAsync("slot", { key: '
|
|
15484
|
+
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, hAsync("slot", { key: '510535d30879f5fe64414da8dfa065f119c02e5f' })))))));
|
|
15456
15485
|
}
|
|
15457
15486
|
get element() { return getElement(this); }
|
|
15458
15487
|
static get watchers() { return {
|
|
@@ -15768,23 +15797,23 @@ class DuetMultiselect {
|
|
|
15768
15797
|
*/
|
|
15769
15798
|
render() {
|
|
15770
15799
|
var _a;
|
|
15771
|
-
return (hAsync(Host, { key: '
|
|
15800
|
+
return (hAsync(Host, { key: '97536f27fe14e8f81df263d98c9f053b698d8ddc', class: {
|
|
15772
15801
|
"duet-m-0": this.margin === "none",
|
|
15773
15802
|
"duet-expand": this.expand,
|
|
15774
|
-
} }, hAsync("div", { key: '
|
|
15803
|
+
} }, hAsync("div", { key: '36b9eee52abd2ee6b61c75ed2ec841a0c93630f8', class: {
|
|
15775
15804
|
"duet-multiselect-container": true,
|
|
15776
15805
|
"duet-label-hidden": this.labelHidden,
|
|
15777
15806
|
"duet-theme-turva": this.theme === "turva",
|
|
15778
15807
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
15779
15808
|
"has-error": !!this.error,
|
|
15780
|
-
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync(DuetInternalLabel, { key: '
|
|
15809
|
+
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, hAsync(DuetInternalLabel, { key: '7a87af1d95f8aa21659cc54059eeee7a71381b9f', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: this.identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: 'd584d8069843723e09395b74acc855b8f1a03d3d', class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '5e51e4a0911761a464051ead529bdec483ed718c', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: 'c49215d1d23717e096993ed92626ec74b08a30a7', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: 'fa1f2d08b30643f1eb4ef6ad82b2b43b38893023', class: "duet-multiselect-wrapper" }, hAsync("button", { key: 'b3d1612d062847708718739c436922ebbeb0bbc5', id: this.identifier, ref: el => (this.multiselectElement = el), class: { "duet-multiselect": true, "duet-multiselect-active": this.checkboxesVisible }, tabindex: "0", onClick: () => this.toggleCheckboxes(), onFocus: e => this.onFocus(e), onBlur: e => this.onBlur(e), role: "combobox", "aria-expanded": this.checkboxesVisible ? "true" : "false", "aria-haspopup": "listbox", "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-owns": `${this.identifier}-checkboxes`, onKeyDown: (e) => this.onMultiselectInputKeyDown(e), disabled: this.disabled }, hAsync("span", { key: '0c69dbe9cabc1d5ceefacd2d39ebc2d367275e7b', role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes`, "aria-label": this.placeholderLabel[this.language], class: "duet-multiselect-label" }, this.placeholder), this.value && this.value.length > 0 && (hAsync("span", { key: '6e6ec0afeae4d364fabf1d7e53405c16977345c1', class: "duet-multiselect-badge" }, this.value.length, hAsync("duet-visually-hidden", { key: '9c800e36b854577c56b995aae33579d483d382cb' }, this.selectedLangObject[this.language], ",", " ", Array.isArray(this.value) ? this.value.map(item => item.label).join(", ") : ""))), hAsync("svg", { key: '118e5e9a7038bc274546f8d1e15074228b1bfa51', class: { "duet-multiselect-icon": true, "duet-multiselect-icon--rotate": this.checkboxesVisible }, fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '3cdacabfaf82bb73eb9ae10d5266d6db8670b8f0', d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), hAsync("div", { key: '8b2cc52242d9b5c8171dc0b243431e85e12388c4', id: `${this.identifier}-checkboxes`, role: "listbox", class: {
|
|
15781
15810
|
"duet-multiselect-checkboxes": true,
|
|
15782
15811
|
"duet-multiselect-checkboxes-active": this.checkboxesVisible,
|
|
15783
|
-
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: '
|
|
15812
|
+
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (hAsync("div", { key: '32afbde85cb3c09d2b1a83a4ce101eda57e10550', class: "duet-multiselect-all-control-buttons" }, hAsync("button", { key: 'e249aa14b04681492b8d07a20b2bd527d9f5b43f', class: "duet-multiselect-select-all", onClick: this.handleSelectAllClick, id: this.getOptionIdentifier(-2), onKeyDown: (e) => this.onCheckboxKeyDown(e, -2) }, this.selectAllLabel[this.language]), hAsync("button", { key: '59b87660ba34d771407a4858406d56b296638d8f', class: "duet-multiselect-clear-all", onClick: this.handleClearAllClick, id: this.getOptionIdentifier(-1), onKeyDown: (e) => this.onCheckboxKeyDown(e, -1) }, this.clearAllLabel[this.language]))), this.processedItems &&
|
|
15784
15813
|
this.processedGroups.map(group => (hAsync("fieldset", null, group.label && hAsync("legend", null, group.label), group.items.map((item, key) => {
|
|
15785
15814
|
var _a, _b;
|
|
15786
15815
|
return (hAsync("duet-checkbox", { identifier: this.getOptionIdentifier(key), role: "option", label: item.label, value: item.value, key: item.value, checked: (_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(item), "accessible-selected": ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(item)) ? "true" : undefined, disabled: !this.checkboxesVisible || item.disabled, onDuetChange: e => this.toggleCheckbox(e, item), onKeyDown: (e) => this.onCheckboxKeyDown(e, key), theme: this.theme }));
|
|
15787
|
-
})))))), hAsync("span", { key: '
|
|
15816
|
+
})))))), hAsync("span", { key: 'bce4068b2c0e9947a80c89a371b7c1d731c03e59', class: "duet-multiselect-help duet-multiselect-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '04505dc5e9d7558c05b5a7fb31641a30011d6520' }, this.error)))));
|
|
15788
15817
|
}
|
|
15789
15818
|
get element() { return getElement(this); }
|
|
15790
15819
|
static get watchers() { return {
|
|
@@ -15859,7 +15888,7 @@ class DuetNav {
|
|
|
15859
15888
|
* Always the last one in the class.
|
|
15860
15889
|
*/
|
|
15861
15890
|
render() {
|
|
15862
|
-
return (hAsync(Host, { key: '
|
|
15891
|
+
return (hAsync(Host, { key: '7e22b4d7023564579ca7e937ea9b3e1c41383217' }, hAsync("div", { key: 'cbd604f24c3d48b16771529aaf84590fbe2c349e', class: { container: true, sticky: this.sticky } }, hAsync("slot", { key: '6d354508134cf4f829922e1d12b9163ed8796753' }), hAsync("slot", { key: '2cde080603a8252ec4015dedd7166b3d3c59b945', name: "mobile" }), hAsync("slot", { key: '9654b2dfc61dbbb9833a8b5df624bdb92adadc15', name: "desktop" }))));
|
|
15863
15892
|
}
|
|
15864
15893
|
get element() { return getElement(this); }
|
|
15865
15894
|
static get style() { return duetNavCss; }
|
|
@@ -15952,11 +15981,11 @@ class DuetNotification {
|
|
|
15952
15981
|
return `${indicatorText}${slottedText}${slottedText.endsWith(".") ? "" : "."} ${this.date}`;
|
|
15953
15982
|
}
|
|
15954
15983
|
render() {
|
|
15955
|
-
return (hAsync("div", { key: '
|
|
15984
|
+
return (hAsync("div", { key: '0c265034a28ae5591df26cf2603ab3d045b45478', role: "listitem", class: {
|
|
15956
15985
|
"duet-notification": true,
|
|
15957
15986
|
"duet-notification-highlight": this.highlight,
|
|
15958
15987
|
"duet-theme-turva": this.theme === "turva",
|
|
15959
|
-
} }, hAsync("a", { key: '
|
|
15988
|
+
} }, hAsync("a", { key: '8f26b04ba38b69dcb86b0ab8b6820ad63453c831', ref: element => (this.linkElement = element), href: this.url, target: this.external ? "_blank" : "_self", "aria-label": this.getAriaLabelText() }, hAsync("div", { key: 'e573dfed62263051b2841cb36cfe1b3c00db8e50', class: "duet-notification-container" }, hAsync("div", { key: '0e4d1b7fec55b7c69043f3beebefff071f2d1e04', class: "duet-indicator-container" }, this.highlight && (hAsync("duet-indicator", { key: 'e9086498a4ef7534f5a68956dad0a811486b41b1', variation: "new", "accessible-label": this.accessibleLabelUnread }))), hAsync("div", { key: 'd02944064c8c7842fb5556f2eadef2fc11aad3bd', class: "duet-notification-content" }, hAsync("slot", { key: 'f4de0aed88ff1f2545d2d630c299fa7e73e62a67' })), hAsync("div", { key: '8486cd8ac2797612ceae89c720b184c3e2f52805', class: "duet-notification-date" }, this.date)))));
|
|
15960
15989
|
}
|
|
15961
15990
|
get element() { return getElement(this); }
|
|
15962
15991
|
static get style() { return duetNotificationCss; }
|
|
@@ -16103,13 +16132,13 @@ class DuetNotificationDrawer {
|
|
|
16103
16132
|
* Always the last one in the class.
|
|
16104
16133
|
*/
|
|
16105
16134
|
render() {
|
|
16106
|
-
return (hAsync("div", { key: '
|
|
16135
|
+
return (hAsync("div", { key: '0bba8232dd1ab609418b4de64933e3412c0c5c34', class: {
|
|
16107
16136
|
"duet-drawer": true,
|
|
16108
16137
|
"duet-theme-turva": this.theme === "turva",
|
|
16109
|
-
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: '
|
|
16138
|
+
}, onKeyDown: this.handleKeyDown }, hAsync("button", { key: '4b962dc86ccbf2964df8500071dbc18f02c963cd', ref: el => (this.drawerButtonEl = el), type: "button", class: {
|
|
16110
16139
|
"duet-drawer-toggle": true,
|
|
16111
16140
|
"duet-theme-turva": this.theme === "turva",
|
|
16112
|
-
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (hAsync("div", { key: '
|
|
16141
|
+
}, id: "duet-drawer-toggle", "aria-controls": "duet-drawer-content", "aria-expanded": this.isOpen ? "true" : "false", onClick: this.toggleMenu }, this.icon && (hAsync("div", { key: '2f15bb497d2434af19730f4030d2745f91e02578', class: "duet-drawer-icon" }, hAsync("duet-icon", { key: '483eb19eec9f4540d16229e443d3db9996f184b6', margin: "none", size: "x-small", name: this.icon, color: "currentColor" }), this.badge && hAsync("duet-indicator", { key: '69984a9e0d645cd642b80e0fb2c447c700c98649', variation: "change" }))), hAsync("span", { key: '25f5d0416062bf12f288db0f3727e1b44b519133', class: "duet-drawer-label" }, this.label), hAsync("div", { key: '0ce588f8ecba4ba197f2991b205ea869aa86b139', class: "duet-drawer-caret" }, hAsync("duet-icon", { key: '26570a5e3a4b5bea09023b00801ead20e71eca9a', margin: "none", size: "auto", icon: arrowDownIcon.svg, color: "currentColor" }))), hAsync("div", { key: '07b8e4be45d32367caf6c3c430e54117fc3d334b', id: "duet-drawer-content", class: {
|
|
16113
16142
|
"duet-drawer-content": true,
|
|
16114
16143
|
"duet-drawer-right": this.direction === "right",
|
|
16115
16144
|
"duet-drawer-left": this.direction === "left",
|
|
@@ -16614,15 +16643,15 @@ class DuetNumberInput {
|
|
|
16614
16643
|
const identifier = this.identifier || this.inputId;
|
|
16615
16644
|
const maxlength = `${this.localizeValue(this.max)}${this.getUnitString()}`.length;
|
|
16616
16645
|
const cleanedValue = !!this.value ? SafeParseFloat(this.value, this.locale) : null;
|
|
16617
|
-
return (hAsync(Host, { key: '
|
|
16646
|
+
return (hAsync(Host, { key: '275a1396fb2d9fa28f6657eaeea0a80bfa4f467a', class: {
|
|
16618
16647
|
"duet-theme-turva": this.theme === "turva",
|
|
16619
16648
|
"duet-expand": this.expand,
|
|
16620
16649
|
"duet-m-0": this.margin === "none",
|
|
16621
|
-
} }, hAsync("div", { key: '
|
|
16650
|
+
} }, hAsync("div", { key: 'fb2d8070dbc28ae7fe8caf12d9240f46de8c9ce7', class: "duet-number-container" }, hAsync("duet-input", { key: '123545288214638cc732524a308a29192725c77b', ref: input => (this.duetInputElement = input), onDuetChange: event => this.handleChange(event), onDuetFocus: this.handleFocus, onDuetBlur: event => this.handleBlur(event), onKeyDown: event => this.handleKeyDown(event), label: this.label, value: this.value ? `${this.value}${this.getUnitString()}` : "", error: this.error, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": cleanedValue != null ? cleanedValue : "", maxlength: maxlength, name: this.name, component: "number", required: this.required, disabled: this.disabled, role: this.role, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true, numericKeyboard: true, autoComplete: "off", type: "text", accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleLabelledBy: this.accessibleLabelledBy, accessibleDescription: this.accessibleDescription, accessibleDetails: this.accessibleDetails, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy }, hAsync("slot", { key: '4f686a5c2f574d074a2d6454cd194365fcc141c2', name: "tooltip" }), hAsync("div", { key: 'e03343cbb7974041658891a01b3f77c2c4c4aee4', class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, hAsync("button", { key: 'c8a6882f049ba90c4d020135a5db41599c13c41a', disabled: this.disabled, "aria-disabled": cleanedValue == null || cleanedValue === this.min ? "true" : "false", class: "duet-number-button duet-number-button-subtract", onClick: this.subtract, type: "button" }, hAsync("duet-visually-hidden", { key: '07016fbd4972e51d5aab8f7c040a70f743b3037a' }, this.accessibleSubtract
|
|
16622
16651
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
16623
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '
|
|
16652
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: 'ee01a937a49a5ad232edc351b7e359c8e286c227', icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), hAsync("button", { key: '2ae1c68852bec5ab32034dae516f44b7498f993f', disabled: this.disabled, "aria-disabled": cleanedValue === this.max ? "true" : "false", class: "duet-number-button duet-number-button-add", onClick: this.add, type: "button" }, hAsync("duet-visually-hidden", { key: '76a559a4115dc80ec7e7a12f1a0010a3e0d7eb45' }, this.accessibleAdd
|
|
16624
16653
|
.replace(/\{\s*step\s*\}/, `${this.step}`)
|
|
16625
|
-
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '
|
|
16654
|
+
.replace(/\{\s*unit\s*\}/, `${this.unit}`)), hAsync("duet-icon", { key: '363ca09492b9399246e03b1593bc0b2d7d565ad4', icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (hAsync("duet-visually-hidden", { key: 'e60677c28057dab13354deb353c4f147bc6a506f', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
|
|
16626
16655
|
}
|
|
16627
16656
|
get element() { return getElement(this); }
|
|
16628
16657
|
static get style() { return duetNumberInputCss; }
|
|
@@ -16734,7 +16763,7 @@ class DuetOverlay {
|
|
|
16734
16763
|
* Always the last one in the class.
|
|
16735
16764
|
*/
|
|
16736
16765
|
render() {
|
|
16737
|
-
return (hAsync(Host, { key: '
|
|
16766
|
+
return (hAsync(Host, { key: '5e9b9a675265c9da85edc378332cda2dbe9a2776', "aria-hidden": "true" }, hAsync("div", { key: 'ffe1b586a6912270360eab46b3c8226306ba24e2', style: { zIndex: this.zIndex }, class: {
|
|
16738
16767
|
"duet-overlay": true,
|
|
16739
16768
|
"duet-theme-turva": this.theme === "turva",
|
|
16740
16769
|
"keep-stacking-context": this.keepStackingContext,
|
|
@@ -16812,12 +16841,12 @@ class DuetPageHeading {
|
|
|
16812
16841
|
*/
|
|
16813
16842
|
render() {
|
|
16814
16843
|
const layout = this.layout === "narrow" ? "narrow" : this.layout === "fluid" ? "fluid" : "auto";
|
|
16815
|
-
return (hAsync("div", { key: '
|
|
16844
|
+
return (hAsync("div", { key: 'a359f4cb235a3897640cdffbd39139e189d3b5fa', class: {
|
|
16816
16845
|
"duet-page-heading": true,
|
|
16817
16846
|
"duet-theme-turva": this.theme === "turva",
|
|
16818
16847
|
"has-icon": !!this.icon,
|
|
16819
16848
|
[layout]: true,
|
|
16820
|
-
} }, hAsync("div", { key: '
|
|
16849
|
+
} }, hAsync("div", { key: '22d49c2080af3bd20cd103be9e03d1493be49e12', class: "background" }, this.theme === "turva" && hAsync("div", { key: '836160c0757b45f0fd56a737c5477e7f991647c9', class: "background-mask" }), this.theme !== "turva" && hAsync("div", { key: '11114653280d8354c0837c7b696afa7420ce317a', class: "brand-shape" }), this.theme !== "turva" && hAsync("div", { key: 'e73ed36215b6b4670f475177bd15671c70780c0b', class: "brand-shape second-shape" }), this.icon && (hAsync("div", { key: 'ca24de4ed573cccf325e04b63789ea5361cf2d5a', class: "brand-shaped-icon" }, hAsync("duet-icon", { key: '78fffdbc09d6489a817b17ac8fe360a969278292', background: "none", name: this.icon, margin: "none", size: "auto", responsive: false })))), hAsync("div", { key: '132aa722e9021f4fe671f36eeada043c752627ed', class: "heading" }, hAsync("slot", { key: 'a0545b6a759f1f3fcb73d3a63f32e9f070975835', name: "heading" }), this.progressCurrentStep !== undefined && this.progressTotalSteps > 0 && (hAsync("div", { key: 'de89e016dba311fccd701f213fb9c497a5b103ea' }, hAsync("duet-spacer", { key: '28ad3743d3ea8ac559fddc00915b063b30d13e39', size: "large" }), hAsync("div", { key: 'bc13cc4c86fe3f765ccb5aaa51e8cb4871f55d1f', role: "presentation" }, this.progressIndicator()))))));
|
|
16821
16850
|
}
|
|
16822
16851
|
get element() { return getElement(this); }
|
|
16823
16852
|
static get style() { return duetPageHeadingCss; }
|
|
@@ -17223,32 +17252,32 @@ class DuetPagination {
|
|
|
17223
17252
|
* Always the last one in the class.
|
|
17224
17253
|
*/
|
|
17225
17254
|
render() {
|
|
17226
|
-
return (hAsync(Host, { key: '
|
|
17255
|
+
return (hAsync(Host, { key: '62c4d84c58a0267e958230835282746f490f5b93', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("nav", { key: 'e308cbce7bfe457df21ca5d1a9b011ad306d8090', role: "navigation", "aria-labelledby": this.accessibleLabelledBy ? `${this.accessibleLabelledBy} ${this.listId}` : this.listId, "aria-describedby": this.accessibleDescribedBy ? `${this.accessibleDescribedBy} ${this.listId}` : this.listId, "aria-descriptions": this.accessibleDescription, "aria-details": this.accessibleDetails, ref: el => (this.nativeNav = el), "aria-controls": this.ariaControls, class: {
|
|
17227
17256
|
"duet-pagination-nav": true,
|
|
17228
17257
|
[`duet-pagination-variation-${this.variation}`]: true,
|
|
17229
|
-
} }, this.numbersStore !== "" && (hAsync("div", { key: '
|
|
17258
|
+
} }, this.numbersStore !== "" && (hAsync("div", { key: '63cba2aeb5b53aceba412cd3ef544fad0b83f7e7', "aria-live": "assertive", "aria-relevant": "text", class: "duet-pagination-overlay", "aria-label": `${this.accessibleLabels.jump_to} ${this.numbersStore}`, part: "navigation-overlay" }, hAsync("duet-badge", { key: '2c8d10cd7d2f4087336f5bd28905809fdf6852de', theme: this.theme }, "jump to page : ", this.numbersStore))), hAsync("ol", { key: 'ff23766c13debac377872850c408980460700cd3', id: this.listId, class: {
|
|
17230
17259
|
"duet-pagination": true,
|
|
17231
17260
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
17232
|
-
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: '
|
|
17261
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: 'af629fdaaaaceda9b49f04abb0adc8a4d111af69', class: {
|
|
17233
17262
|
"duet-pagination-page-button": true,
|
|
17234
17263
|
"duet-pagination-button-first": true,
|
|
17235
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17264
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '5b3580de4b5aa7cae5aac470c451276cb2915bb7', disabled: (this.internalSectionIndex === 0 && this.current <= 1) || this.disabled, "data-direction": "back", accessibleLabel: this.accessibleLabels.first_page, title: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), "icon-name": "action-move-to-first", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[0] : undefined }))), hAsync("li", { key: 'b763efe60e95ce22c9a10a16f771306bc41c94e8', class: {
|
|
17236
17265
|
"duet-pagination-page-button": true,
|
|
17237
17266
|
"duet-pagination-button-first": true,
|
|
17238
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17267
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '4614a19eee937ec82b1d7f53774536bc3dc53efe', disabled: !!((this.internalSectionIndex === 0 && this.current <= 1) ||
|
|
17239
17268
|
(this.current <= 1 && this.processedPageLinks) ||
|
|
17240
|
-
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '
|
|
17241
|
-
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '
|
|
17269
|
+
this.disabled), "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "accessible-label": this.accessibleLabels.previous_page, title: this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current - 2] : undefined })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (hAsync(Fragment, { key: '6a58f0e2274e19bc36ed5724f8272b7d52aafbff' }, hAsync("li", { key: '3c9463d76188a6c709a339bc6aeb742230649517', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: 'faa2bb79c16612bf21b3c894bd044524094000b5', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-jump-back", "center-text": "true", variation: "plain", color: this.theme !== "turva" ? "secondary" : "secondary-turva", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e), theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[0] : undefined }, hAsync("div", { key: '1d57199a2de289499f857d60e85abc5b03347701', class: "duet-pagination-page-number" }, "1"))), hAsync("li", { key: '165edfb178a9a37a62729c254ef59a759cf3234e', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: '2f86dc307015ec5c4f0c8ed8485eb539419b100f', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-dots-back", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1), theme: this.theme }, hAsync("div", { key: 'b72d8f2a8d07e8c81b9d3a1eff872b387982f531', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026"))))), (this.shouldDisplayNavigation() && this.renderPageNumbers()) || this.renderSelect(), (this.internalSectionIndex + 1) * this.visibleItems < this.totalPages &&
|
|
17270
|
+
this.shouldDisplayNavigation() && (hAsync(Fragment, { key: 'd92b8e89d424fa566d435985832c1a47ff6f00e0' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (hAsync("li", { key: '02c6801c1212cdbd836d3206e0c3c57e0009c360', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, hAsync("duet-button", { key: '3668dc509fbdb6567da22e8fbde178cba0a2c371', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-dots-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.next_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, 1), theme: this.theme }, hAsync("div", { key: 'e41f0ff84f1f30725a8c10788cbc790b5548f3e2', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), hAsync("li", { key: '3c8b3b2d1ae67bd70464a4463fce1abeac270a17', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, hAsync("duet-button", { key: 'd29669bc78a9d8b299a674fbb0c862a35f2de7cd', disabled: this.disabled, class: "duet-pagination-link duet-pagination-link-jump-forward", "center-text": "true", color: this.theme !== "turva" ? "secondary" : "secondary-turva", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), theme: this.theme, url: this.processedPageLinks
|
|
17242
17271
|
? this.processedPageLinks[this.processedPageLinks.length - 1]
|
|
17243
|
-
: undefined }, hAsync("div", { key: '
|
|
17272
|
+
: undefined }, hAsync("div", { key: '2c159077e6b2c5c72d820fa113be972db3c1a36a', class: "duet-pagination-page-number" }, this.totalPages))))), hAsync("li", { key: '17f8cb237ba3352dab6a6f9190a82995c6af50db', class: {
|
|
17244
17273
|
"duet-pagination-page-button": true,
|
|
17245
17274
|
"duet-pagination-button-last": true,
|
|
17246
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17275
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '2ed254adb9ac8a59160dda2da09dc9b4c451cfd7', disabled: !!((this.current === this.totalPages &&
|
|
17247
17276
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
17248
|
-
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: '
|
|
17277
|
+
(this.current === this.totalPages && this.processedPageLinks)) || this.disabled, class: "duet-date-dialog-next", "accessible-label": this.accessibleLabels.next_page, title: this.accessibleLabels.next_page, onClick: e => this.onMouseHandler(e, 1), "icon-name": "action-move-to-next", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.current] : undefined })), (this.variation === "compact" || this.matchesCompactBreakpoint) && (hAsync("li", { key: 'be6cef233eeac10ca4964c07a8875832e5e8c5dd', class: {
|
|
17249
17278
|
"duet-pagination-page-button": true,
|
|
17250
17279
|
"duet-pagination-button-last": true,
|
|
17251
|
-
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '
|
|
17280
|
+
}, role: "menuitem", part: "navigation-arrow" }, hAsync("duet-action-button", { key: '10c56fa0387027938a2778de48741e89c7186bd8', disabled: (this.current === this.totalPages &&
|
|
17252
17281
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
17253
17282
|
this.disabled, accessibleLabel: this.accessibleLabels.last_page, title: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e), "icon-name": "action-move-to-last", theme: this.theme, url: this.processedPageLinks ? this.processedPageLinks[this.totalPages - 1] : undefined })))))));
|
|
17254
17283
|
}
|
|
@@ -17321,14 +17350,14 @@ class DuetPanel {
|
|
|
17321
17350
|
inheritGlobalTheme(this);
|
|
17322
17351
|
}
|
|
17323
17352
|
render() {
|
|
17324
|
-
return (hAsync(Host, { key: '
|
|
17353
|
+
return (hAsync(Host, { key: 'f0f19f168e9dc722234dfe71c45e696a0d6cf917', class: { "duet-m-0": this.margin === "none" } }, hAsync("section", { key: '2701d432c58239047f7564d14da3ea552313299f', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, "aria-describedby": this.accessibleDescribedBy, class: {
|
|
17325
17354
|
"duet-panel": true,
|
|
17326
17355
|
"duet-theme-turva": this.theme === "turva",
|
|
17327
17356
|
[this.variation.split("-")[0]]: true,
|
|
17328
17357
|
[this.variation.split("-")[1]]: true,
|
|
17329
17358
|
[`padding-${this.padding}`]: true,
|
|
17330
17359
|
border: this.border,
|
|
17331
|
-
} }, hAsync("slot", { key: '
|
|
17360
|
+
} }, hAsync("slot", { key: '4a02d9373b2c07f0d9f8e6a08e41c0ec5a7894f7' }))));
|
|
17332
17361
|
}
|
|
17333
17362
|
get element() { return getElement(this); }
|
|
17334
17363
|
static get style() { return duetPanelCss; }
|
|
@@ -17401,7 +17430,7 @@ class DuetParagraph {
|
|
|
17401
17430
|
const color = getColorByName(this.color);
|
|
17402
17431
|
// aria-describedby is to fix accessibility issue in Chrome where duet-paragraphs
|
|
17403
17432
|
// are not announced when placed inside duet-modal
|
|
17404
|
-
return (hAsync(Host, { key: '
|
|
17433
|
+
return (hAsync(Host, { key: 'b685bc9743cf7835c8b3c42219d01776f68b36d8', "aria-describedby": this.id }, hAsync("p", { key: 'fab064d13421d92311b516ce3658c09f82a8e6a8', id: this.id, class: {
|
|
17405
17434
|
"duet-paragraph": true,
|
|
17406
17435
|
"duet-paragraph-small": this.size === "small",
|
|
17407
17436
|
"duet-paragraph-semi-bold": this.weight === "semi-bold",
|
|
@@ -17410,7 +17439,7 @@ class DuetParagraph {
|
|
|
17410
17439
|
[this.variation]: true,
|
|
17411
17440
|
"duet-theme-turva": this.theme === "turva",
|
|
17412
17441
|
"duet-inherit-color": !this.color && this.inheritingParents.some(p => this.element.closest(p)),
|
|
17413
|
-
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: '
|
|
17442
|
+
}, style: { color }, part: "duet-paragraph" }, hAsync("slot", { key: '32a2fb093a12ade4b27b94047a87614645f2a128' }))));
|
|
17414
17443
|
}
|
|
17415
17444
|
get element() { return getElement(this); }
|
|
17416
17445
|
static get style() { return duetParagraphCss; }
|
|
@@ -21248,17 +21277,17 @@ class DuetPopupMenu {
|
|
|
21248
21277
|
overflowY: "auto",
|
|
21249
21278
|
height: this.popupMenuStyleHeight,
|
|
21250
21279
|
};
|
|
21251
|
-
return (hAsync(Host, { key: '
|
|
21280
|
+
return (hAsync(Host, { key: '38d773eb5b1edc25cd44868b2dbd1266c91a89ed', role: this.accessibleRole === "menu" ? "application" : null }, hAsync("div", { key: '91ceb69caae39a31363ad719d005dccd3b1c8ee2', ref: element => {
|
|
21252
21281
|
this.menuElement = element;
|
|
21253
21282
|
}, style: styles, class: {
|
|
21254
21283
|
open: this.open,
|
|
21255
21284
|
"duet-popup-menu-list": true,
|
|
21256
21285
|
"duet-theme-turva": this.theme === "turva",
|
|
21257
21286
|
"scroll-visible": this.scrollLimit < this.itemElements.length,
|
|
21258
|
-
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (hAsync("div", { key: '
|
|
21287
|
+
}, role: this.accessibleRole, "aria-label": this.accessibleLabel }, this.showFilterInput && (hAsync("div", { key: '8d88b2ea6b9530a3447e4a453e8bb8b7309db2da' }, hAsync("duet-input", { key: '254c2fe75f20cfa1af4154f31091f547ba034971', ref: el => (this.filterInput = el), label: this.filterLabel[this.language], "label-hidden": true, expand: true, margin: "none", type: "search", onDuetInput: this.filterItems, onKeyDown: this.handleKeyDownOnFilter }), hAsync("duet-visually-hidden", { key: 'cf6b107594e63b231df20558506b2a3b024b4731' }, hAsync("span", { key: 'b4f212123e9d319d2dfcf7b8d57e5f6e63d92e64', role: "status" }, `
|
|
21259
21288
|
${this.filterResultCount}/${this.itemElements.length}
|
|
21260
21289
|
${this.filterResultCountLabel[this.language]}
|
|
21261
|
-
`)), hAsync("duet-spacer", { key: '
|
|
21290
|
+
`)), hAsync("duet-spacer", { key: 'e123ca800b6c0ecd7f64099afde69f76ba837235', size: "xx-small" }))), hAsync("slot", { key: '5fe85d5c618f5256a29d3d46155b2ea23e00525d' }))));
|
|
21262
21291
|
}
|
|
21263
21292
|
get element() { return getElement(this); }
|
|
21264
21293
|
static get watchers() { return {
|
|
@@ -21403,11 +21432,11 @@ class DuetPopupMenuItem {
|
|
|
21403
21432
|
};
|
|
21404
21433
|
// Without the role ternary Safari/iPhone wouldn't announce the label for role menuitem.
|
|
21405
21434
|
// This is a tradeoff and now Safari announces these items as buttons and links with the label.
|
|
21406
|
-
return (hAsync(Host, { key: '
|
|
21435
|
+
return (hAsync(Host, { key: 'db95c4e9fb0aa71e489935fd47c3f7ac2ff56a19', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, hAsync(TagName, { key: '7a082c08242605aa154211c91f25932d33478543', ref: element => (this.itemElement = element), tabIndex: this.accessibleRole === "listitem" ? 0 : -1, onFocus: this.onFocus, onBlur: this.onBlur, role: `${TagName === "a" ? "link" : "button"}`, "aria-label": this.accessibleLabel, class: classes, value: this.value, href: this.url, target: this.external ? "_blank" : undefined, rel: this.external ? "noopener" : undefined, lang: TagName === "button" ? undefined : this.targetLanguage, hreflang: TagName === "button" ? undefined : this.targetLanguage }, this.leadingIcon && (hAsync("duet-icon", { key: 'b3a98a07f252dfe67ce170caebca0f42ab683571', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), hAsync("span", { key: 'bda00beb4a4dc78a60830870a639a01dc99fcf5f', class: "duet-popup-menu-item-label" }, hAsync("slot", { key: '7c23f4c1c0b3ef2ff6d3cc555a0dedbbd8ffcfad' })), (this.trailingIcon || this.active || (this.url && this.external)) && (hAsync("duet-icon", { key: 'dca34adebe0f4c93d78b00fa32796a139a3a86b7', name: this.url && this.external
|
|
21407
21436
|
? newWindowIcon.title
|
|
21408
21437
|
: this.active
|
|
21409
21438
|
? "messaging-checked-small"
|
|
21410
|
-
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && hAsync("span", { key: '
|
|
21439
|
+
: this.trailingIcon, size: (this.url && this.external) || this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && hAsync("span", { key: 'c6fc39d5f1aacf715990e749d2f559761d51344f', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
21411
21440
|
}
|
|
21412
21441
|
get element() { return getElement(this); }
|
|
21413
21442
|
static get style() { return duetPopupMenuItemCss; }
|
|
@@ -21599,12 +21628,12 @@ class DuetPromoCard {
|
|
|
21599
21628
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
21600
21629
|
};
|
|
21601
21630
|
const TagName = this.url ? "a" : "div";
|
|
21602
|
-
return (hAsync(Host, { key: '
|
|
21631
|
+
return (hAsync(Host, { key: '56be16710912a7b098e4c1bd75ece4275deda02e', class: { "duet-m-0": this.margin === "none" } }, hAsync("aside", { key: '8520123e09db6f31e9c0f5a5833318203a03f437', class: {
|
|
21603
21632
|
"duet-promo-card": true,
|
|
21604
21633
|
"duet-theme-turva": this.theme === "turva",
|
|
21605
21634
|
"no-bg-color": !this.backgroundColor,
|
|
21606
21635
|
"duet-promo-card-link": !!this.url,
|
|
21607
|
-
}, style: bannerStyles }, hAsync(TagName, { key: '
|
|
21636
|
+
}, style: bannerStyles }, hAsync(TagName, { key: 'ce219857ea16f66413f0ffe066a42e2f6c7de2b7', href: this.url, class: { "content-wrapper": true, "duet-theme-turva": this.theme === "turva" }, ref: element => (this.aOrDivElement = element) }, hAsync("img", { key: 'b8fd35ff9576c1c84b78a1c35fa26f0d8a7bdd83', class: "image", src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" }), hAsync("div", { key: 'e488f6860798e150634d0bd7355bfcfdd0639099', class: "content" }, this.hasPreHeadingSlot && (hAsync("div", { key: '50defa4cebf48f12beb6a6e25bb3b058bd4ab108', class: "pre-heading" }, hAsync("slot", { key: '3fe0e93d82863d84d9f95b09e301ba409d959def', name: "pre-heading" }))), this.hasHeadingSlot && (hAsync("div", { key: '4e7e6c68a1aca92f52e6e109216735f73d801174', class: "heading" }, hAsync("duet-heading", { key: '2ac242af4113cff2e0aecdc7d08a5a5c576e0a83', theme: this.theme, level: this.headingLevel, "visual-level": "h3", margin: "none", color: postfixTheme(this.textColor, this.theme) }, hAsync("span", { key: '9c9c3ea67f05664c74d029b1692fc861492ae803' }, hAsync("slot", { key: '6e0d8069fdcd49bea6a9f090e195234de7ebb30f', name: "heading" }))))), this.hasDescriptionSlot && (hAsync("div", { key: 'ed90f9561b935ca29e72a2be7610815ddf7cb6f6', class: "description" }, hAsync("duet-paragraph", { key: '50725ca77dd7bdfc626d0a04c9a312bbc26f7695', theme: this.theme, margin: "none", color: postfixTheme(this.textColor, this.theme) }, hAsync("span", { key: 'ab9901ea88b885a28027b12af72bf8080126407d' }, hAsync("slot", { key: '0029e88a6d769cc0084b90c7be3035cda0a9a3b1', name: "description" }))))), this.hasActionSlot && (hAsync("div", { key: '595080e76cbb790f9bf2cdbfcaaadd23966c596e', class: "action" }, hAsync("slot", { key: '59d7aceeb4f3fe3e72a49a3e2bd405ab5dc043f8', name: "action" }))))))));
|
|
21608
21637
|
}
|
|
21609
21638
|
get element() { return getElement(this); }
|
|
21610
21639
|
static get style() { return duetPromoCardCss; }
|
|
@@ -21811,16 +21840,16 @@ class DuetRadio {
|
|
|
21811
21840
|
* Always the last one in the class.
|
|
21812
21841
|
*/
|
|
21813
21842
|
render() {
|
|
21814
|
-
return (hAsync(Host, { key: '
|
|
21843
|
+
return (hAsync(Host, { key: '69aaca2996b0d03551927a1d506a506a64cbc513', onClick: this.onClick, class: {
|
|
21815
21844
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
21816
21845
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
21817
21846
|
"duet-m-0": this.margin === "none",
|
|
21818
|
-
} }, hAsync("div", { key: '
|
|
21847
|
+
} }, hAsync("div", { key: '66ea6a60a14b7f41d420ea8c55d0a1a72b829eb3', class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("slot", { key: 'f0984e840d5d981d22380562c3e62aee9c39e3e3', name: "input" }), hAsync("label", { key: '64131c520a668b265a4e6269824578c93f435b51', inert: true, ref: element => (this.labelElement = element), class: {
|
|
21819
21848
|
"duet-label": true,
|
|
21820
21849
|
checked: this.checked,
|
|
21821
21850
|
focus: this.focus,
|
|
21822
21851
|
disabled: this.disabled || this.groupDisabled,
|
|
21823
|
-
} }, hAsync("div", { key: '
|
|
21852
|
+
} }, hAsync("div", { key: '46ede7327f4250759b61d19bb423aafedaf2f0db', class: "duet-label-content" }, this.hasLabel ? hAsync("slot", { name: "label" }) : this.label)))));
|
|
21824
21853
|
}
|
|
21825
21854
|
get element() { return getElement(this); }
|
|
21826
21855
|
static get style() { return duetRadioCss; }
|
|
@@ -22015,7 +22044,7 @@ class DuetRadioGroup {
|
|
|
22015
22044
|
* Always the last one in the class.
|
|
22016
22045
|
*/
|
|
22017
22046
|
render() {
|
|
22018
|
-
return (hAsync(Host, { key: '
|
|
22047
|
+
return (hAsync(Host, { key: '0a4e9b973fe28ae1e8a9a583fb28df4322600d1a', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, hAsync("duet-fieldset", { key: 'e362931e7a2570013431301f59116bef1165067e', label: this.label, labelHidden: this.labelHidden, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (hAsync("duet-tooltip", { key: '6c13847fc62ab32eb381e64614b1a99529d61c62', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: '0a29afddf81e1e9509d4dcac854a4796bc890ae0', name: "tooltip" }), hAsync("div", { key: 'f11622cd32c24f83dbfd9be9d28495d78d54aa34', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, hAsync("slot", { key: '5073cea332c31cc9e80b7b48297926f598b9b87b' })))));
|
|
22019
22048
|
}
|
|
22020
22049
|
get element() { return getElement(this); }
|
|
22021
22050
|
static get watchers() { return {
|
|
@@ -22203,13 +22232,13 @@ class DuetRangeSlider {
|
|
|
22203
22232
|
const rangeStyles = {
|
|
22204
22233
|
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
22205
22234
|
};
|
|
22206
|
-
return (hAsync(Host, { key: '
|
|
22235
|
+
return (hAsync(Host, { key: '551b6e7bcaec7d8e8603a2c969a2e5a8737d4700', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, hAsync("div", { key: 'a1c6b7d2b74d4643785d438612a744a645276ff9', class: {
|
|
22207
22236
|
"duet-range-container": true,
|
|
22208
22237
|
"duet-label-hidden": this.labelHidden,
|
|
22209
22238
|
"duet-theme-turva": this.theme === "turva",
|
|
22210
22239
|
"duet-ie": isInternetExplorer(),
|
|
22211
22240
|
"duet-range-disabled": this.disabled,
|
|
22212
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
22241
|
+
} }, hAsync(DuetInternalLabel, { key: 'ca4fc1236dfddc9c45432b6cf2943eacbb7b5d6f', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), hAsync("output", { key: '9f9b4fdede2ee464a1cce6a7ff2f70dc6c4b851d', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), hAsync("input", { key: 'c3867b976f6eefe2529e9f70f5f2c3f47ef05f0c', onInput: this.onInput, onChange: this.onChange, ref: input => (this.nativeInput = input), type: "range", min: this.min, max: this.max, step: this.step, value: this.value, style: rangeStyles, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} ${this.unit}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, id: identifier, name: this.name, disabled: this.disabled, required: this.required, class: "duet-range" }))));
|
|
22213
22242
|
}
|
|
22214
22243
|
get element() { return getElement(this); }
|
|
22215
22244
|
static get style() { return duetRangeSliderCss; }
|
|
@@ -22438,10 +22467,10 @@ class DuetRangeStepper {
|
|
|
22438
22467
|
* Always the last one in the class.
|
|
22439
22468
|
*/
|
|
22440
22469
|
render() {
|
|
22441
|
-
return (hAsync("div", { key: '
|
|
22470
|
+
return (hAsync("div", { key: 'a52fee857c27100782330372c560cab649bef9da', class: {
|
|
22442
22471
|
"duet-range-stepper": true,
|
|
22443
22472
|
"duet-theme-turva": this.theme === "turva",
|
|
22444
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: '
|
|
22473
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, hAsync("span", { key: '38bb481d87ac4683a737ef36c3e44dac29e53f17', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), hAsync("duet-action-button", { key: 'b990414c671f5f557677aef504e3964b45004ac2', disabled: this.disabled || this.buttonLeftDisabled, class: "duet-range-step-button duet-range-step-minus", onClick: e => this.handleClick(e, -1), id: this.leftBn, "accessible-label": `${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`, ref: el => (this.leftBnRef = el), part: "navigation-arrow", iconName: "action-arrow-left-small", title: "" }), hAsync("duet-action-button", { key: '8fc098c8d1bc03b20cc887327638d60bc6f25ca7', disabled: this.disabled || this.buttonRightDisabled, class: "duet-range-step-button duet-range-step-plus", onClick: e => this.handleClick(e, 1), "accessible-label": `${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow", iconName: "action-arrow-right-small", title: "" })));
|
|
22445
22474
|
}
|
|
22446
22475
|
get element() { return getElement(this); }
|
|
22447
22476
|
static get watchers() { return {
|
|
@@ -22752,18 +22781,18 @@ class DuetScrollable {
|
|
|
22752
22781
|
* Always the last one in the class.
|
|
22753
22782
|
*/
|
|
22754
22783
|
render() {
|
|
22755
|
-
return (hAsync(Host, { key: '
|
|
22784
|
+
return (hAsync(Host, { key: 'fd00a29320acf14495b6cc383e0ceac6bb267a0e', class: {
|
|
22756
22785
|
"duet-theme-turva": this.theme === "turva",
|
|
22757
22786
|
"duet-theme-default": this.theme === "default",
|
|
22758
|
-
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: '
|
|
22787
|
+
} }, this.hasCollapseButtonLabelSlot && (hAsync("div", { key: '8a3d00551da83c08794cafd75727e6f682600d19', class: {
|
|
22759
22788
|
collapse: true,
|
|
22760
22789
|
hide: !this.needsScrolling && !this.collapsed,
|
|
22761
|
-
} }, hAsync("duet-button", { key: '
|
|
22790
|
+
} }, hAsync("duet-button", { key: '691a9be72f9c971c8f5e2b9c1a1d6a22a6febb88', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, hAsync("slot", { key: '68d9e51dc211956f2c10d3734141b322203e2ca7', name: "collapse-button-label" })))), hAsync("div", { key: 'e1768395848d8ea4bf20b2c628cc00aeca6646a2', class: {
|
|
22762
22791
|
"duet-scrollable-items": true,
|
|
22763
22792
|
buttons: this.buttons,
|
|
22764
22793
|
center: this.center,
|
|
22765
22794
|
"duet-theme-turva": this.theme === "turva",
|
|
22766
|
-
} }, this.buttons && this.renderButton("left"), hAsync("div", { key: '
|
|
22795
|
+
} }, this.buttons && this.renderButton("left"), hAsync("div", { key: 'a50c86bb57036bb9eab884d9244956e5816e234c', class: {
|
|
22767
22796
|
"duet-scrollable-list": true,
|
|
22768
22797
|
[`duet-scrollable-list--${this.buttonPosition}`]: true,
|
|
22769
22798
|
[`gap-${this.gap}`]: true,
|
|
@@ -22771,7 +22800,7 @@ class DuetScrollable {
|
|
|
22771
22800
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
22772
22801
|
[`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
|
|
22773
22802
|
"duet-scrollable-stretch": this.stretch,
|
|
22774
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: '
|
|
22803
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, hAsync("slot", { key: 'b99ed10afd59b8ef4ffea3951ca0d335ed52c310' })), this.buttons && this.renderButton("right"))));
|
|
22775
22804
|
}
|
|
22776
22805
|
get element() { return getElement(this); }
|
|
22777
22806
|
static get watchers() { return {
|
|
@@ -22831,13 +22860,13 @@ class DuetSectionLayout {
|
|
|
22831
22860
|
* Always the last one in the class.
|
|
22832
22861
|
*/
|
|
22833
22862
|
render() {
|
|
22834
|
-
return (hAsync(Host, { key: '
|
|
22863
|
+
return (hAsync(Host, { key: '9b2ea75aa797ae1badc733580e0f8ad0d3db6010', class: {
|
|
22835
22864
|
"duet-middle": this.middle,
|
|
22836
22865
|
"duet-ie": isInternetExplorer(),
|
|
22837
|
-
} }, hAsync("div", { key: '
|
|
22866
|
+
} }, hAsync("div", { key: 'bc1417fc0201040e305cc32b699694c69f36087a', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, hAsync("div", { key: '49cf06846048f0f226bb74554237a6354b5b4ad9', class: {
|
|
22838
22867
|
"duet-layout": true,
|
|
22839
22868
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
22840
|
-
} }, hAsync("section", { key: '
|
|
22869
|
+
} }, hAsync("section", { key: '1fe3edda6be4885c2f3ce77653be77a93eab99e9', class: "duet-main" }, hAsync("slot", { key: '700992a648447722a971e96771b19cfb85d97802' }))))));
|
|
22841
22870
|
}
|
|
22842
22871
|
get element() { return getElement(this); }
|
|
22843
22872
|
static get style() { return duetSectionLayoutCss; }
|
|
@@ -23050,23 +23079,23 @@ class DuetSelect {
|
|
|
23050
23079
|
*/
|
|
23051
23080
|
render() {
|
|
23052
23081
|
const identifier = this.identifier || this.selectId;
|
|
23053
|
-
return (hAsync(Host, { key: '
|
|
23082
|
+
return (hAsync(Host, { key: 'd4455f68cbe21a6307b6c31fc5d1861e9b709308', class: {
|
|
23054
23083
|
"duet-m-0": this.margin === "none",
|
|
23055
23084
|
"duet-expand": this.expand,
|
|
23056
23085
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23057
|
-
} }, hAsync("div", { key: '
|
|
23086
|
+
} }, hAsync("div", { key: '40ddd5f7ed270fd9bbee28fe22f73087956bf129', class: {
|
|
23058
23087
|
"duet-select-container": true,
|
|
23059
23088
|
"duet-label-hidden": this.labelHidden,
|
|
23060
23089
|
"duet-theme-turva": this.theme === "turva",
|
|
23061
23090
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23062
23091
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
23063
23092
|
"has-error": !!this.error,
|
|
23064
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
23093
|
+
} }, hAsync(DuetInternalLabel, { key: 'e4e51bfc77281cf1fc4f160ecd4853ecbed2d8f4', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: '775a1132a55071285222eb159dab2cad6c53ed23', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), hAsync("slot", { key: 'c9f5f7f6cba8f1ab8fe8b97d9bc0f477b0c0c35d', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: '730da616b797488390632e9736282d318d18573b', id: this.topCaptionId, size: "medium" }, this.caption)), hAsync("div", { key: '869eef60d494256461d86930a200bce7a1f5b6a6', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: '4606845937218a919ab4b8aa8ca7d5c03cdb7b53', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), hAsync("slot", { key: '595fe0d02b48772d88098c21cc0d4d9f67e40eee' }), hAsync("select", { key: 'ac4a661cb6210673febb02da37f5c0f4310874db', ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, required: this.required }, this.placeholder && (hAsync("option", { key: '4d043e787efa622f3e396a2103439339fd2a73b8', disabled: true, selected: true, value: "" }, this.placeholder)), !this.processedItems ? (hAsync("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
|
|
23065
23094
|
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
23066
|
-
}))), hAsync("div", { key: '
|
|
23095
|
+
}))), hAsync("div", { key: 'c49def1bb08120461f4f4dc48ca9d2bfc3db1dba', class: {
|
|
23067
23096
|
"duet-select": true,
|
|
23068
23097
|
[`duet-select-variation-${this.variation}`]: true,
|
|
23069
|
-
}, "aria-hidden": "true" }, hAsync("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (hAsync("svg", { key: '
|
|
23098
|
+
}, "aria-hidden": "true" }, hAsync("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (hAsync("svg", { key: 'fea29d4166e04f520240f5d61eed6dc2a007a3b0', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '39476404793f72829c0b759d9ac21e6436e56dde', d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" })))) || (hAsync("duet-icon", { key: '9101a0f62cdb9392fb1c291919a9db1a951ce8fb', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), hAsync("span", { key: 'd9cd1eba5ce25f3a5d62a1cf5a91a34dde31e551', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), hAsync("span", { key: 'bdcb742b9b81e76d4767210a505d388b11b8a9ca', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: '4b60b8d44ad7e984a2a97fdcc82383edce1efbc4', class: "duet-select-error" }, this.error)))));
|
|
23070
23099
|
}
|
|
23071
23100
|
get element() { return getElement(this); }
|
|
23072
23101
|
static get watchers() { return {
|
|
@@ -23146,9 +23175,9 @@ class DuetShapedImage {
|
|
|
23146
23175
|
const style = {
|
|
23147
23176
|
"--rotation": `${this.rotation}deg`,
|
|
23148
23177
|
};
|
|
23149
|
-
return (hAsync(Host, { key: '
|
|
23178
|
+
return (hAsync(Host, { key: '30bd1e8a895453ef9ba0ef177efb3d0e7dcf6e51', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, hAsync("span", { key: '41ad8a12f4f501eeedbf68d8826fb03418d79167', class: {
|
|
23150
23179
|
"shaped-image": true,
|
|
23151
|
-
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: '
|
|
23180
|
+
}, role: "img", "aria-label": this.accessibleLabel, style: style }, hAsync("span", { key: 'bf49040fd93cb6b26f9af4b4182b734d6f38fd1e', class: "shaped-image-mask", role: "presentation" }, hAsync("span", { key: 'bdb6b17ad7c5f5d599d5a26d0eee16cafaf478a2', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
|
|
23152
23181
|
}
|
|
23153
23182
|
static get style() { return duetShapedImageCss; }
|
|
23154
23183
|
static get cmpMeta() { return {
|
|
@@ -23218,12 +23247,12 @@ class DuetShareChart {
|
|
|
23218
23247
|
this.itemsTotalValue = this.items.reduce((total, { value }) => total + value, 0);
|
|
23219
23248
|
}
|
|
23220
23249
|
render() {
|
|
23221
|
-
return (hAsync(Host, { key: '
|
|
23250
|
+
return (hAsync(Host, { key: 'a8331a4750680d3263cbb297663da80b23a61474' }, hAsync("div", { key: '776a72d2c016b76c0020a0336379f6f50c767108', class: "duet-share-chart-horizontal-bar", role: "presentation" }, this.items
|
|
23222
23251
|
.filter(i => !!i.value)
|
|
23223
23252
|
.map(item => (hAsync("span", { class: "duet-share-chart-share", style: {
|
|
23224
23253
|
width: `${(item.value / this.itemsTotalValue) * 100}%`,
|
|
23225
23254
|
backgroundColor: getColorByName(item.color, this.theme),
|
|
23226
|
-
} })))), hAsync("ul", { key: '
|
|
23255
|
+
} })))), hAsync("ul", { key: '56ea054fcb62eb2b444f8359abb3bfd322f2f7e2', class: "duet-share-chart-item-list" }, this.items.map(item => (hAsync("li", { class: { "duet-theme-turva": this.theme === "turva" } }, hAsync("span", { class: "duet-share-chart-item-color", style: { background: getColorByName(item.color, this.theme) } }), hAsync("span", { class: "duet-share-chart-item-text" }, item.text, ":"), hAsync("span", { class: "duet-share-chart-item-value" }, "\u00A0", formatNumber(item.value), "\u00A0", this.unit), this.unit !== "%" && (hAsync("duet-visually-hidden", null, `${formatNumber((item.value / this.itemsTotalValue) * 100, 0)} %`)))))), hAsync("slot", { key: '38276b55daac849b429a9ec4e963c2d308a66267' })));
|
|
23227
23256
|
}
|
|
23228
23257
|
get element() { return getElement(this); }
|
|
23229
23258
|
static get style() { return duetShareChartCss; }
|
|
@@ -23250,7 +23279,7 @@ class DuetShareChartItem {
|
|
|
23250
23279
|
this.value = 0;
|
|
23251
23280
|
}
|
|
23252
23281
|
render() {
|
|
23253
|
-
return (hAsync(Host, { key: '
|
|
23282
|
+
return (hAsync(Host, { key: 'd35a290305ffe6ec034caf3d8f5d21e4c85ed7b5' }, hAsync("div", { key: '885469b4f2ea9629da7f0baed471c5034eb9e979', hidden: true }, hAsync("slot", { key: 'b4ecc6c43546845aaffb210b38a35cdafd88b403' }))));
|
|
23254
23283
|
}
|
|
23255
23284
|
get element() { return getElement(this); }
|
|
23256
23285
|
static get cmpMeta() { return {
|
|
@@ -23400,12 +23429,12 @@ class DuetShowMore {
|
|
|
23400
23429
|
* Always the last one of the class.
|
|
23401
23430
|
*/
|
|
23402
23431
|
render() {
|
|
23403
|
-
return (hAsync(Host, { key: '
|
|
23432
|
+
return (hAsync(Host, { key: '9b7b230463671d2192e210969a461b48251cae0e' }, hAsync("div", { key: '241c4328ff06cb3582ccef14dc4798dfdfa79f9e', class: {
|
|
23404
23433
|
"duet-show-more": true,
|
|
23405
23434
|
"duet-theme-turva": this.theme === "turva",
|
|
23406
23435
|
"duet-m-0": this.margin === "none",
|
|
23407
23436
|
open: this.open,
|
|
23408
|
-
} }, hAsync("div", { key: '
|
|
23437
|
+
} }, hAsync("div", { key: 'ec5a0385c4fa9014a0d218ff6e9219be7412b0dd', ref: ref => (this.contentElement = ref), class: { content: true, "duet-theme-turva": this.theme === "turva" }, id: this.contentId, tabindex: this.open ? "-1" : "" }, hAsync("div", { key: '55832cd10199162f413b2d99a4a1d2053ac4e665', class: { "slotted-content": true } }, hAsync("slot", { key: 'c6b5fdd8c48f8ace2e8bf1bba830c21a9e2a1bb1' }))), hAsync("duet-button", { key: '7357d2b3e0aad58f27e4809cf8b727bee905f1e0', id: this.buttonId, variation: "plain", "accessible-label": this.buttonAriaOpen ? this.showLessAccessibleLabel : this.showMoreAccessibleLabel, "accessible-expanded": this.buttonAriaOpen ? "true" : "false", "accessible-controls": this.contentId, accessiblePressed: this.isSafariBrowser ? this.open : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "icon-right": true, icon: this.open ? "action-arrow-up-small" : "action-arrow-down-small", "icon-size": "medium-small", size: "small", margin: this.buttonMargin, padding: this.buttonPadding, theme: this.theme === "turva" ? "turva" : "default" }, hAsync("span", { key: '762004e8bd6923114c75c638e6987f40e9bbf96d' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
|
|
23409
23438
|
}
|
|
23410
23439
|
get element() { return getElement(this); }
|
|
23411
23440
|
static get style() { return duetShowMoreCss; }
|
|
@@ -23931,17 +23960,17 @@ class DuetSlideout {
|
|
|
23931
23960
|
};
|
|
23932
23961
|
const topLevelOpenMenuBarTranslation = getLocaleString(this.topLevelOpenMenuBarLangObject);
|
|
23933
23962
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
23934
|
-
return (hAsync(Host, { key: '
|
|
23963
|
+
return (hAsync(Host, { key: 'caa2d4aaf502159fc88254ad81019fdc23d03077' }, hAsync("div", { key: 'd8608bf34db74e3ac3e652024f689db40af9284d', class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, this.modal && hAsync("duet-overlay", { key: '10f8e7f301624b2fcad5ce710cd75e6febcba1bd', visible: this.open, zIndex: "600" }), hAsync("div", { key: '5e841060cbb940a91266cb5e42d12a16bda8097b', ref: element => (this.dialog = element), tabindex: "-1", role: "dialog", id: "dialog", "aria-labelledby": "button", "aria-modal": this.isSafariBrowser ? false : true, "aria-flowto": "slot-container", class: {
|
|
23935
23964
|
dialog: true,
|
|
23936
23965
|
hidden: !this.open,
|
|
23937
23966
|
modal: this.modal,
|
|
23938
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
23967
|
+
}, style: styles }, hAsync(FocusGuard, { key: '72270e11e6c5fcbb6f8c55456975c88adb9ba213', moveFocusTo: this.closeButton }), hAsync("div", { key: 'f88bb02a237361ab0bde75663eb99b659c1c6471', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: 'ad57422ab4f6f14528a487c4a7bf98568fa2ca35', class: "top" }, hAsync("button", { key: '23ff1871ebc24e6ee03e3bbeb4593c2099b545d6', ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", "aria-label": `${exitTranslation}`, type: "button", class: {
|
|
23939
23968
|
"slideout-close": true,
|
|
23940
23969
|
active: this.open,
|
|
23941
23970
|
"duet-theme-turva": this.theme === "turva",
|
|
23942
|
-
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: '
|
|
23971
|
+
}, onClick: this.onClick, inert: this.openPanel }, hAsync("duet-icon", { key: '15cfafb84a258a1005eac6d28f49b838b7c1ed9f', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: '32b724d54613edd0646672ed0fc79c1ae414f4c1', class: "sticky-header" }, hAsync("slot", { key: 'e6750058c55d427d89eeecb7c99a0327ad3c72c2', name: "sticky-header" }))), hAsync("div", { key: 'ed3a11356f224d5d0305f13ed63db838d7ca6e00', id: "slot-container", role: this.accessibleRole, "aria-label": this.openPanel ? topLevelOpenMenuBarTranslation : null, class: {
|
|
23943
23972
|
items: true,
|
|
23944
|
-
} }, hAsync("slot", { key: '
|
|
23973
|
+
} }, hAsync("slot", { key: '3255a6c639d8c8c13044f72cd55fa3132ea99545' })), hAsync(FocusGuard, { key: '461421f76f88fd46a741033acb090e753aef8f1c', moveFocusTo: this.closeButton })))));
|
|
23945
23974
|
}
|
|
23946
23975
|
get element() { return getElement(this); }
|
|
23947
23976
|
static get watchers() { return {
|
|
@@ -24011,7 +24040,7 @@ class DuetSlideoutLang {
|
|
|
24011
24040
|
*/
|
|
24012
24041
|
render() {
|
|
24013
24042
|
const langTranslation = getLocaleString(this.chooseLangObject);
|
|
24014
|
-
return (hAsync(Host, { key: '
|
|
24043
|
+
return (hAsync(Host, { key: '2c744c1b9d32b518b879daf12ffafe26ba74c43b' }, hAsync("div", { key: 'ddb19f0b54c8a3f8680e76c8b3e565ff9c114e3b', class: "duet-slideout-lang", role: "group", "aria-label": langTranslation }, hAsync("duet-icon", { key: '09e40a1777dc671deffa188ccecfc9ce78089ecb', name: "navigation-language", margin: "none", color: "secondary", size: "small" }), hAsync("slot", { key: '6e35a0b19bab97a7810f90ddd99f399a60e9f3dc' }))));
|
|
24015
24044
|
}
|
|
24016
24045
|
get element() { return getElement(this); }
|
|
24017
24046
|
static get style() { return duetSlideoutLangCss; }
|
|
@@ -24101,12 +24130,12 @@ class DuetSlideoutLink {
|
|
|
24101
24130
|
* Always the last one in the class.
|
|
24102
24131
|
*/
|
|
24103
24132
|
render() {
|
|
24104
|
-
return (hAsync(Host, { key: '
|
|
24133
|
+
return (hAsync(Host, { key: 'ddd58c7a2dd10eb703260af1101339c6294f9d3a' }, hAsync("a", { key: 'e2be40572ff1c774d51cb6f8170c2e73b72948cf', target: !this.href ? null : this.external ? "_blank" : "_self", class: {
|
|
24105
24134
|
"duet-slideout-link": true,
|
|
24106
24135
|
"duet-theme-turva": this.theme === "turva",
|
|
24107
24136
|
active: this.active,
|
|
24108
24137
|
[this.size]: true,
|
|
24109
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": (this.href && getAccessibleLinkLabel(this)) || this.accessibleLabel, rel: this.external ? "noopener" : undefined }, this.icon && (hAsync("duet-icon", { key: '
|
|
24138
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": (this.href && getAccessibleLinkLabel(this)) || this.accessibleLabel, rel: this.external ? "noopener" : undefined }, this.icon && (hAsync("duet-icon", { key: 'c1f75fd56387b7811d990bc9bba9f7114f960fd5', name: this.icon, color: "secondary", size: this.menuItem ? "x-small" : "small", margin: "none" })), hAsync("div", { key: '6794b7cfe9a5e985e9123a1896b9b71292955930', class: "label" }, hAsync("span", { key: '02eef0aae26c07d79209c083769c83096aaaddf5' }, hAsync("span", { key: '869ba809178272b72d91830a2d0544e601bcc1f8', class: "label-container" }, hAsync("span", { key: '432f855593996fb8a470b68982662beb6cce16fd', class: "label-content" }, hAsync("slot", { key: '8be35ac79ca5ef94119a05b9f712c24e5c6760ab' })), this.external && (hAsync("duet-icon", { key: 'c80f5df7d3c816a6235150c3a89e9b685e3a1205', class: "external-icon", theme: this.theme, name: newWindowIcon.title, margin: "none", size: "auto", color: "currentColor" }))), hAsync("slot", { key: 'b685c8cc67e5e780536c46d949951516cdea46d1', name: "description" })), this.caret && (hAsync("duet-icon", { key: 'c53c92133453d2421b92f8ab7ae7741c71a686e5', name: "action-arrow-right", color: "secondary", size: "x-small", margin: "none" }))))));
|
|
24110
24139
|
}
|
|
24111
24140
|
get element() { return getElement(this); }
|
|
24112
24141
|
static get style() { return duetSlideoutLinkCss; }
|
|
@@ -24283,25 +24312,25 @@ class DuetSlideoutPanel {
|
|
|
24283
24312
|
};
|
|
24284
24313
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
24285
24314
|
const backTranslation = getLocaleString(this.backLangObject);
|
|
24286
|
-
return (hAsync(Host, { key: '
|
|
24315
|
+
return (hAsync(Host, { key: '8136756acde9cd9a5038e49c14049295ef2a50ee' }, hAsync("div", { key: 'bd5e9a275c149b6a52172d9349fefb6aef42282e', class: {
|
|
24287
24316
|
"duet-slideout-panel": true,
|
|
24288
24317
|
"duet-theme-turva": this.theme === "turva",
|
|
24289
24318
|
active: this.open,
|
|
24290
|
-
} }, this.badge && hAsync("duet-indicator", { key: '
|
|
24319
|
+
} }, this.badge && hAsync("duet-indicator", { key: '240033e4afa0a5e32dc708eceee5cd3c35fad16f', variation: "change" }), hAsync("button", { key: '2fcac219bc058445a3f744e99beb1ce8d1be7c27', ref: element => (this.openButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
24291
24320
|
link: true,
|
|
24292
24321
|
active: this.active,
|
|
24293
24322
|
"duet-theme-turva": this.theme === "turva",
|
|
24294
|
-
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '
|
|
24323
|
+
}, onClick: this.onClick, inert: this.open }, this.icon && (hAsync("div", { key: '9a7ea3d7682510b7a94c7e7bfff417dabfd833b0', class: "duet-slideout-icon" }, hAsync("duet-icon", { key: '29e67edcad14dd8f20f1a0a319bdbe3bba7d0495', name: this.icon, size: "small", margin: "none", color: "secondary" }))), hAsync("span", { key: '02d2e2107083535c6bf1d2b89c92681ed0ff5257', class: "label" }, hAsync("span", { key: 'ce6a1f30ee04677c584d98a228d0302f0b02c0f8', class: { "label-text": true, [this.labelSize]: true } }, hAsync("slot", { key: 'd7c645fa7153a803b3e63b3614ec65ff1cb775dd', name: "label" })), hAsync("duet-icon", { key: 'fc24304d004fc06d1f44d6611555af3aa57b91f0', class: "caret", name: "action-arrow-right", margin: "none", size: "x-small", color: "secondary" }))), hAsync("div", { key: '893f838b0476b45a35c5c5df009ea25be382748f', ref: element => (this.dialog = element), class: {
|
|
24295
24324
|
dialog: true,
|
|
24296
24325
|
hidden: !this.open,
|
|
24297
|
-
}, style: styles }, hAsync(FocusGuard, { key: '
|
|
24326
|
+
}, style: styles }, hAsync(FocusGuard, { key: '75cd1ca13074e4edf114d7e016b30e77503f6766', moveFocusTo: this.closeButton }), hAsync("div", { key: '53f51c39c3e701be9b0fc9f402507a1315669820', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, hAsync("div", { key: '08f9a0174b2a902a46f6f8a722783740e2c03f01', class: "top" }, hAsync("button", { key: '70ec35736850d5740cf7940e1195202266ba64b3', ref: element => (this.closeButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-label": `${backTranslation}`, type: "button", class: {
|
|
24298
24327
|
back: true,
|
|
24299
24328
|
"duet-theme-turva": this.theme === "turva",
|
|
24300
|
-
}, onClick: this.onClick }, hAsync("duet-icon", { key: '
|
|
24329
|
+
}, onClick: this.onClick }, hAsync("duet-icon", { key: '8fd080b3ddde0fcc9edc8e3b65c71f038e9a641b', class: "caret", name: "action-arrow-left", margin: "none", size: "small", color: "secondary" })), hAsync("span", { key: '6c5bf9eee61b85d3b334a3b76f8568a91f3ede8a' }, this.label.innerHTML), hAsync("button", { key: '3de010c98fc4a25b160f0bb321652db95372b529', class: { close: true, "duet-theme-turva": this.theme === "turva" }, type: "button", onClick: this.onCloseClick, "aria-label": `${exitTranslation}` }, hAsync("duet-icon", { key: '3d98d30425ce462e8d14ffa07cb631c452bdbf36', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), hAsync("div", { key: '9714f189c3e45aa70201006fee01f0daab33acc8', class: "sticky-header" }, hAsync("slot", { key: 'bda41ebde4391bdce90a2d9c3c9c2b3f59a484b1', name: "sticky-header" }))), hAsync("div", { key: '7c97e9932da1cfbca0d045f7744d64a697c6849e', tabindex: "-1", role: "menu",
|
|
24301
24330
|
//TODO: slideout menu fades out, needs to be instant
|
|
24302
24331
|
id: "menu", "aria-labelledby": "button", class: {
|
|
24303
24332
|
items: true,
|
|
24304
|
-
} }, hAsync("slot", { key: '
|
|
24333
|
+
} }, hAsync("slot", { key: '760f770c9b134fddb61954aa9bda6d2f7c1ec3d5' })), hAsync(FocusGuard, { key: '0f423c9da48756f6e1f7be813e8a9e948e650293', moveFocusTo: this.closeButton })))));
|
|
24305
24334
|
}
|
|
24306
24335
|
get element() { return getElement(this); }
|
|
24307
24336
|
static get watchers() { return {
|
|
@@ -24382,18 +24411,18 @@ class DuetSlideoutPanelDropdown {
|
|
|
24382
24411
|
* Always the last one in the class.
|
|
24383
24412
|
*/
|
|
24384
24413
|
render() {
|
|
24385
|
-
return (hAsync(Host, { key: '
|
|
24414
|
+
return (hAsync(Host, { key: 'c07d09acdc3ae629d1ade84a8f38ba5a4400c93c' }, hAsync("div", { key: '5c460268ab843fd63034f39baaabb0217610742e', class: {
|
|
24386
24415
|
"duet-slideout-panel-dropdown": true,
|
|
24387
24416
|
"duet-theme-turva": this.theme === "turva",
|
|
24388
24417
|
active: this.open,
|
|
24389
|
-
} }, hAsync("button", { key: '
|
|
24418
|
+
} }, hAsync("button", { key: 'fda35d3ebe560638a7684ff895a1a07fae2795dc', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
24390
24419
|
active: this.active,
|
|
24391
24420
|
"duet-theme-turva": this.theme === "turva",
|
|
24392
|
-
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: '
|
|
24421
|
+
}, onClick: this.onClick }, this.icon && hAsync("duet-icon", { key: 'adbef98fc7e1c01c4db93fc890adca55a968c3ed', name: this.icon, size: "small", margin: "none", color: "secondary" }), hAsync("span", { key: '9a9e035c35cfc2bd40ca504dfb755db6598072ab', class: "label" }, hAsync("slot", { key: '69b970d13d166d320f423480e93e721a8ca0791a', name: "label" }), hAsync("duet-icon", { key: '48e456eb714c1f276c30d1830c4335a2c78b7674', class: "caret", name: "action-arrow-down-small", margin: "none", size: "xx-small", color: "secondary" }))), hAsync("div", { key: 'bb3730e96c82aab35530c476c78880b73ac4c2c2', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
24393
24422
|
items: true,
|
|
24394
24423
|
hidden: !this.open,
|
|
24395
24424
|
"duet-theme-turva": this.theme === "turva",
|
|
24396
|
-
} }, hAsync("slot", { key: '
|
|
24425
|
+
} }, hAsync("slot", { key: '206ff67b3dab6d9e5b35814a26e572bca137b925' })))));
|
|
24397
24426
|
}
|
|
24398
24427
|
get element() { return getElement(this); }
|
|
24399
24428
|
static get style() { return duetSlideoutPanelDropdownCss; }
|
|
@@ -24437,7 +24466,7 @@ class DuetSpacer {
|
|
|
24437
24466
|
* Always the last one in the class.
|
|
24438
24467
|
*/
|
|
24439
24468
|
render() {
|
|
24440
|
-
return (hAsync(Host, { key: '
|
|
24469
|
+
return (hAsync(Host, { key: '7fc6e73749913f00710655bd9f3245417e7ea2d4', class: {
|
|
24441
24470
|
"duet-spacer": true,
|
|
24442
24471
|
"duet-spacer-xx-small": this.breakpoint === "xx-small",
|
|
24443
24472
|
"duet-spacer-x-small": this.breakpoint === "x-small",
|
|
@@ -24492,7 +24521,7 @@ class DuetSpinner {
|
|
|
24492
24521
|
*/
|
|
24493
24522
|
render() {
|
|
24494
24523
|
const color = !!this.color && this.color === "currentColor" ? "currentColor" : getColorByName(this.color, this.theme);
|
|
24495
|
-
return (hAsync(Host, { key: '
|
|
24524
|
+
return (hAsync(Host, { key: '8c58d59273d8cdf92c3e9bceea4cbdff5a5a4c59' }, hAsync("div", { key: 'f98223ba97758e4c0dbdb41aa0ad61100135e634', class: {
|
|
24496
24525
|
"duet-spinner": true,
|
|
24497
24526
|
[this.size]: true,
|
|
24498
24527
|
"duet-theme-turva": this.theme === "turva",
|
|
@@ -24598,10 +24627,10 @@ class DuetStatusIcon {
|
|
|
24598
24627
|
}
|
|
24599
24628
|
}
|
|
24600
24629
|
render() {
|
|
24601
|
-
return (hAsync(Host, { key: '
|
|
24630
|
+
return (hAsync(Host, { key: 'c53538070bb94c61a824cce9bf5065ce69ea989a', class: {
|
|
24602
24631
|
[`duet-status-icon-${this.getVariation()}`]: true,
|
|
24603
24632
|
"duet-strong-bg": this.strong,
|
|
24604
|
-
} }, hAsync("duet-icon", { key: '
|
|
24633
|
+
} }, hAsync("duet-icon", { key: 'ebd3f5b5c3ef995cb598ee4f9072891594e8c069', icon: this.getIcon(), size: this.size, margin: this.margin })));
|
|
24605
24634
|
}
|
|
24606
24635
|
static get cmpMeta() { return {
|
|
24607
24636
|
"$flags$": 265,
|
|
@@ -24722,13 +24751,13 @@ class DuetStep {
|
|
|
24722
24751
|
* Always the last one in the class.
|
|
24723
24752
|
*/
|
|
24724
24753
|
render() {
|
|
24725
|
-
return (hAsync("div", { key: '
|
|
24754
|
+
return (hAsync("div", { key: '05fe55382b606ac6290eac4c1d367be79867e1c0', class: {
|
|
24726
24755
|
"duet-step": true,
|
|
24727
24756
|
[`is-${this.state}`]: true,
|
|
24728
24757
|
"rounded-top": this.roundedTop,
|
|
24729
24758
|
"rounded-bottom": this.roundedBottom,
|
|
24730
24759
|
"duet-theme-turva": this.theme === "turva",
|
|
24731
|
-
} }, hAsync("div", { key: '
|
|
24760
|
+
} }, hAsync("div", { key: 'd91175b1d04f510980579ab816591f4fbe06443a', class: "duet-step-heading", id: this.buttonId, role: this.state !== "current" ? "button" : "region", "aria-current": this.state === "current" ? "step" : undefined, tabindex: this.state !== "current" ? "0" : undefined, "aria-disabled": this.isClickDisabled().toString(), "aria-expanded": (this.state === "current").toString(), "aria-controls": this.contentId, "aria-selected": (this.state === "current").toString(), onClick: this.handleClick, onKeyDown: this.handleKeyDown, ref: element => (this.buttonElement = element) }, hAsync("div", { key: '36fa6274fd3778ffdf06930c3e2bfec351f98deb', "aria-hidden": "true" }, hAsync("div", { key: '466172a0a1a89a812a3662dba416b698525bf90d', class: "duet-step-counter" }, this.renderStepCounter())), hAsync("duet-spacer", { key: '32c65b333bf51ecbfc5f07111ed48dcc42d38fcc', direction: "horizontal", size: "large", breakpoint: "small" }), hAsync("duet-spacer", { key: 'af1fcbed9aaf4ae897bbdb1bb5922539136ef824', direction: "horizontal", size: "medium", breakpoint: "x-small" }), hAsync("div", { key: '17f37ca23ca6d1f693a69e5ba6dfb1825278dca3' }, hAsync("duet-heading", { key: 'af962b921e329b246fb520dce97bf598584fc984', theme: this.theme, level: this.headingLevel, visualLevel: "h4", color: this.headingColor(), margin: "none" }, this.heading)), hAsync("duet-spacer", { key: 'f5b5926af5fc39dc2c4b9bf556ce4de203ad4a26', direction: "horizontal", size: "large" }), hAsync("div", { key: 'c61808d6e02af405b0d33d5c026bb75118031ada', class: "duet-step-heading-slot" }, hAsync("slot", { key: 'fcd25f6d9fdfd9791eb947942099fb1fbab6e2bc', name: "heading-content" }))), hAsync("div", { key: '15725f6b9d35795e4ab8cf7d1f1fd317983a5eed', class: "duet-step-content-wrapper" }, hAsync("div", { key: 'ddef3d8cb491c9712bd6be806e7d16059e2ae8e3', class: "duet-step-content", role: "region", "aria-labelledby": this.buttonId, id: this.contentId }, hAsync("slot", { key: 'b773ce9a9b621ada546d3bc6af85cd3b6271e662' })))));
|
|
24732
24761
|
}
|
|
24733
24762
|
get element() { return getElement(this); }
|
|
24734
24763
|
static get style() { return duetStepCss; }
|
|
@@ -24875,7 +24904,7 @@ class DuetStepper {
|
|
|
24875
24904
|
* Always the last one in the class.
|
|
24876
24905
|
*/
|
|
24877
24906
|
render() {
|
|
24878
|
-
return (hAsync(Host, { key: '
|
|
24907
|
+
return (hAsync(Host, { key: '84ea9dd11aea73c62494d4002383477935446fca', class: { "duet-m-0": this.margin === "none" } }, hAsync("div", { key: 'b86ccce71eb2f2ebda8642834800e4c2396c1e12', class: { "duet-stepper": true, "duet-theme-turva": this.theme === "turva" } }, hAsync("duet-visually-hidden", { key: 'a50b805e73ee6d83464b8b14e6facaa48b2f50bf', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement()), hAsync("slot", { key: 'bc720b6fd6ba51b646f3e8222a5572017472bd5c' }))));
|
|
24879
24908
|
}
|
|
24880
24909
|
get element() { return getElement(this); }
|
|
24881
24910
|
static get watchers() { return {
|
|
@@ -25029,19 +25058,19 @@ class DuetSubmenuBar {
|
|
|
25029
25058
|
* Always the last one in the class.
|
|
25030
25059
|
*/
|
|
25031
25060
|
render() {
|
|
25032
|
-
return (hAsync(Host, { key: '
|
|
25061
|
+
return (hAsync(Host, { key: '5a7dfd7977d5260ecaa751065ffd668bccf7f734' }, hAsync("nav", { key: '8d374c6513e8ec3bb63948dffac4cd9b65eab3d9', class: {
|
|
25033
25062
|
"duet-submenu-bar": true,
|
|
25034
25063
|
"duet-theme-turva": this.theme === "turva",
|
|
25035
25064
|
hidden: this.hidden,
|
|
25036
|
-
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: '
|
|
25065
|
+
}, "aria-label": this.accessibleLabel }, this.hasItems && (hAsync("button", { key: 'd72fd8118d008647c0fc1bafc797d7d7e9670676', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
25037
25066
|
active: this.open,
|
|
25038
|
-
}, onClick: this.onClick }, hAsync("span", { key: '
|
|
25067
|
+
}, onClick: this.onClick }, hAsync("span", { key: '7dbd3343077f3e63a20b441f0e6015358da502b4', class: "label" }, hAsync("slot", { key: 'a0a0ae66d22fd5737949ad3094661f172b6c0391', name: "label" }), hAsync("duet-icon", { key: '47c4c4e42e0a8ebd3565627cd0e1982457104ca3', theme: this.theme, class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" })))), hAsync("div", { key: '5986a2c225e9f40da81943d5daefc079756f2370', class: {
|
|
25039
25068
|
"menu-container": true,
|
|
25040
25069
|
hidden: !this.open,
|
|
25041
|
-
}, role: "presentation" }, hAsync("div", { key: '
|
|
25070
|
+
}, role: "presentation" }, hAsync("div", { key: 'd8afab7eb5149ac0bebeff39ab93d36d15c499fe', role: this.mobile ? "menu" : null, id: "menu", "aria-labelledby": this.mobile ? "button" : null, "aria-expanded": this.mobile ? (this.open ? "true" : "false") : null, class: {
|
|
25042
25071
|
items: true,
|
|
25043
25072
|
hidden: !this.open,
|
|
25044
|
-
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '
|
|
25073
|
+
}, ref: element => (this.itemsContainer = element) }, hAsync("div", { key: '83ca8fda96f8d9b05fb0ea84d0aa52dbb4183063', class: "list", role: this.mobile ? "presentation" : "list" }, hAsync("slot", { key: 'a71c59db97c47144dc7366c1adbd416d2ac6aae9' }), hAsync("div", { key: '026076d8b73e6af5d46a7f7367de6d4395e34519', class: "list-padding" }))), hAsync("duet-overlay", { key: 'd09747b12a70aefae2789f86380646779a1cc605', "keep-stacking-context": true, visible: this.open, "display-device": "not-large", transition: "immediate" })))));
|
|
25045
25074
|
}
|
|
25046
25075
|
get element() { return getElement(this); }
|
|
25047
25076
|
static get watchers() { return {
|
|
@@ -25173,18 +25202,18 @@ class DuetSubmenuBarDropdown {
|
|
|
25173
25202
|
* Always the last one in the class.
|
|
25174
25203
|
*/
|
|
25175
25204
|
render() {
|
|
25176
|
-
return (hAsync(Host, { key: '
|
|
25205
|
+
return (hAsync(Host, { key: 'cc7d79d1a2e5e6de18bd62fb408ec474400eff7b', role: "listitem" }, hAsync("div", { key: 'db0d71f4aa6a38e0e130bf2f069ac58c08d09055', class: {
|
|
25177
25206
|
"duet-submenu-bar-dropdown": true,
|
|
25178
25207
|
"duet-theme-turva": this.theme === "turva",
|
|
25179
25208
|
open: this.open,
|
|
25180
25209
|
active: this.active,
|
|
25181
|
-
} }, hAsync("button", { key: '
|
|
25210
|
+
} }, hAsync("button", { key: '8ba0bded589cc4040510538e86b311879ab78cf8', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
25182
25211
|
open: this.open,
|
|
25183
25212
|
active: this.active,
|
|
25184
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
25213
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '479134abefc9407012dc7d960da64a2a00849859', class: "submenu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: '5d7eabf7611e552d4b0a4b4f45af47528f45ae6f', class: "label" }, hAsync("span", { key: '1067624e6d8997fe6d70ba84e2020160d547c98f', class: "label-text" }, hAsync("slot", { key: 'd1c5e91511f07355f95cdf0908476bb208e8356e', name: "label" })), hAsync("duet-icon", { key: 'ea41a4b8f9cd0e5307e74b517bf264b65eaf4a0f', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '7090489ee9527a38506ae8623fcd48b337ddd7a8', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
25185
25214
|
items: true,
|
|
25186
25215
|
hidden: !this.open,
|
|
25187
|
-
} }, hAsync("slot", { key: '
|
|
25216
|
+
} }, hAsync("slot", { key: '2d0d943f66b0238ed10f3c1ebcea5ab6bbceb301' })))));
|
|
25188
25217
|
}
|
|
25189
25218
|
get element() { return getElement(this); }
|
|
25190
25219
|
static get style() { return duetSubmenuBarDropdownCss; }
|
|
@@ -25253,12 +25282,12 @@ class DuetSubmenuBarDropdownLink {
|
|
|
25253
25282
|
* Always the last one in the class.
|
|
25254
25283
|
*/
|
|
25255
25284
|
render() {
|
|
25256
|
-
return (hAsync(Host, { key: '
|
|
25285
|
+
return (hAsync(Host, { key: '661c76d380b6989bfee3c31e1a0858cda9a873ce' }, hAsync("a", { key: '02cadfcabf30ae87b3d2c038841280afd52b763f', class: {
|
|
25257
25286
|
"duet-submenu-bar-dropdown-link": true,
|
|
25258
25287
|
"duet-theme-turva": this.theme === "turva",
|
|
25259
25288
|
highlight: this.highlight,
|
|
25260
25289
|
active: this.active,
|
|
25261
|
-
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '
|
|
25290
|
+
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '653820943c52d861da92a41cc0bed59e78969b80', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), hAsync("span", { key: '9e622d1fbbb2d0649da74a2a4945582eb9d72eb1', class: "label-container" }, hAsync("span", { key: '78634234c76e9d17e61ed0e7ad88c1035b340dc4', class: "label" }, hAsync("slot", { key: 'e8eec7289cffbb54eae6ddbebdb4d2a2ce6a634d' })), this.caret && hAsync("duet-icon", { key: 'c0d7df05f2f827dea7bf50ee93b49c6fca66c1e9', name: "action-arrow-right-small", size: "xxx-small", margin: "none" })), this.active && (hAsync("duet-icon", { key: '572888355bf490d4a5ddf095592e116e9d1c05ae', class: "active-check", name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
25262
25291
|
}
|
|
25263
25292
|
get element() { return getElement(this); }
|
|
25264
25293
|
static get style() { return duetSubmenuBarDropdownLinkCss; }
|
|
@@ -25354,7 +25383,7 @@ class DuetSubmenuBarItem {
|
|
|
25354
25383
|
render() {
|
|
25355
25384
|
const TagName = this.url ? "a" : "button";
|
|
25356
25385
|
const role = this.url ? "link" : "button";
|
|
25357
|
-
return (hAsync(Host, { key: '
|
|
25386
|
+
return (hAsync(Host, { key: '7ee97d49c78004d4ae845e940fb03e6e1ee75bd7', role: "listitem" }, hAsync(TagName, { key: 'dcc4541376b094f3eec8ce84465cdd2c77978bf8', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: { "duet-submenu-bar-item": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.url, onKeyUp: e => this.handleEscape(e), "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, role: role, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("duet-icon", { key: '74e7c4f39e27a8c9030d02bf33f50ded7220f588', class: "leading-icon", theme: this.theme, name: this.leadingIcon, size: "auto", margin: "none", color: "currentColor" })), hAsync("div", { key: 'ab00e171bc83993c2580c25bbdfa3b77ea58ee89', class: "label" }, hAsync("span", { key: '0cb9766ca34e699f99c1ec699ce0a7d9be8fb0ad', class: "label-text" }, hAsync("slot", { key: '1e7f21511c1dbfb21780b7828397ddb3564c96e5' })), (this.trailingIcon || this.external) && (hAsync("duet-icon", { key: '698c894c3987de2c8c645234e25f600ecf33d8c2', class: {
|
|
25358
25387
|
"trailing-icon": !!this.trailingIcon,
|
|
25359
25388
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
25360
25389
|
"external-icon": !!this.external,
|
|
@@ -25426,7 +25455,7 @@ class DuetSubmenuBarLink {
|
|
|
25426
25455
|
* Always the last one in the class.
|
|
25427
25456
|
*/
|
|
25428
25457
|
render() {
|
|
25429
|
-
return (hAsync(Host, { key: '
|
|
25458
|
+
return (hAsync(Host, { key: 'fb8760077be9d8402a747e67fa3f5589c35b1586', role: "listitem" }, hAsync("a", { key: '5b77c9c31a719059b2df6183dd09f0fbb174dde4', class: { "duet-submenu-bar-link": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.href, onKeyUp: e => this.handleEscape(e), "aria-current": this.active ? "true" : "false" }, this.icon && (hAsync("duet-icon", { key: 'd47cacb2b609f6fb89d4955932aa460a13a70e0e', class: "submenu-bar-link-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), hAsync("span", { key: '962bab30d15d749df6d2823daafba59488fc92df', class: "label" }, hAsync("slot", { key: '57541fbb4f923bbb1fdd6efbe05cddb72f63a147' })))));
|
|
25430
25459
|
}
|
|
25431
25460
|
get element() { return getElement(this); }
|
|
25432
25461
|
static get style() { return duetSubmenuBarLinkCss; }
|
|
@@ -25552,7 +25581,7 @@ class DuetTab {
|
|
|
25552
25581
|
* Always the last one in the class.
|
|
25553
25582
|
*/
|
|
25554
25583
|
render() {
|
|
25555
|
-
return (hAsync("div", { key: '
|
|
25584
|
+
return (hAsync("div", { key: '414606a9161016ce42050bb4d736547d611db39b', ref: element => {
|
|
25556
25585
|
if (!this.contentId) {
|
|
25557
25586
|
this.tabpanelElement = element;
|
|
25558
25587
|
}
|
|
@@ -25561,7 +25590,7 @@ class DuetTab {
|
|
|
25561
25590
|
"duet-tab": true,
|
|
25562
25591
|
selected: this.selected,
|
|
25563
25592
|
"has-content-id": !!this.contentId,
|
|
25564
|
-
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, hAsync("slot", { key: '
|
|
25593
|
+
}, "aria-description": this.accessibleDescription, "aria-labelledby": this.accessibleLabelledBy, tabindex: "-1" }, hAsync("slot", { key: '743f5b9f0b1487dd9a7abbf01fb41b5bd9f0782c' })));
|
|
25565
25594
|
}
|
|
25566
25595
|
get element() { return getElement(this); }
|
|
25567
25596
|
static get watchers() { return {
|
|
@@ -25872,13 +25901,13 @@ class DuetTabGroup {
|
|
|
25872
25901
|
[largeBreakpoint]: ["default", "plain", "plain-scrolling"].includes(this.variation) ? true : false,
|
|
25873
25902
|
"duet-theme-turva": this.theme === "turva",
|
|
25874
25903
|
}, onClick: () => this.onTabSelect(index), onKeyDown: ev => this.handleKeyDown(ev) }, this.variation === "checked" ? (hAsync("div", { class: { "checked-tab-content": true, "stackable-checked-tab-content": this.tabs.length <= 3 } }, hAsync("div", { class: { "checked-tab-description": true, "stackable-description": this.tabs.length <= 3 } }, hAsync("p", null, element.label), hAsync("p", { class: { "tab-caption": true, selected: element.selected } }, element.caption)), hAsync("div", { class: { "stackable-checkmark": this.tabs.length <= 3 } }, hAsync("duet-checkmark", { theme: this.theme, checked: element.selected, type: "radio", "presentation-only": true, center: true })))) : (element.label), element.indicator && (hAsync("duet-indicator", { variation: element.indicator, "accessible-label": element.indicatorAccessibleLabel })))));
|
|
25875
|
-
return (hAsync("div", { key: '
|
|
25904
|
+
return (hAsync("div", { key: '45490c3fc4912de77e292ed0ed18c7146e7606d6', class: {
|
|
25876
25905
|
"duet-tab-group": true,
|
|
25877
25906
|
"duet-theme-turva": this.theme === "turva",
|
|
25878
25907
|
[variationClass]: true,
|
|
25879
25908
|
"duet-tab-plain-scrolling": this.variation === "plain-scrolling",
|
|
25880
25909
|
"duet-tab-group-scrolls": true,
|
|
25881
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
25910
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '46800b3d5e1faf4252a9f2eca77e5a35361c61b9', role: "tablist", class: {
|
|
25882
25911
|
"duet-m-0": this.margin === "none" || this.variation === "checked",
|
|
25883
25912
|
"duet-tab-group-tabs": true,
|
|
25884
25913
|
"duet-tab-group-hidden": this.tabs.length > 3 && !isSwipeScrollable,
|
|
@@ -25889,11 +25918,11 @@ class DuetTabGroup {
|
|
|
25889
25918
|
} }, this.variation === "checked" ? (buttons) : (hAsync("div", { class: {
|
|
25890
25919
|
"duet-tab-group-scrollable-wrapper": true,
|
|
25891
25920
|
"duet-tab-group-fill-space-wrapper": this.fillSpace && this.variation === "default",
|
|
25892
|
-
} }, this.fillSpace && !this.stretch && this.variation === "default" && (hAsync("div", { class: "duet-scrollable-stretch-overlay" }, hAsync("div", { class: "background" }), hAsync("div", { class: "border" }))), hAsync("duet-scrollable", { selected: this.selected, identifier: this.identifier, gap: ["default", "plain", "plain-scrolling"].includes(this.variation) ? "none" : "large", buttonPosition: this.variation === "default" ? "absolute" : "relative", center: this.isCentered() ? this.isCentered() : this.element.style.textAlign == "center", theme: this.theme, stretch: this.stretch }, buttons)))), hAsync("div", { key: '
|
|
25921
|
+
} }, this.fillSpace && !this.stretch && this.variation === "default" && (hAsync("div", { class: "duet-scrollable-stretch-overlay" }, hAsync("div", { class: "background" }), hAsync("div", { class: "border" }))), hAsync("duet-scrollable", { selected: this.selected, identifier: this.identifier, gap: ["default", "plain", "plain-scrolling"].includes(this.variation) ? "none" : "large", buttonPosition: this.variation === "default" ? "absolute" : "relative", center: this.isCentered() ? this.isCentered() : this.element.style.textAlign == "center", theme: this.theme, stretch: this.stretch }, buttons)))), hAsync("div", { key: 'f2b527640c52f4217c8dfd7c0b64849068b7eb8d', class: {
|
|
25893
25922
|
"duet-tab-group-content": true,
|
|
25894
25923
|
"duet-m-0": this.margin === "none",
|
|
25895
25924
|
"checked-group-content": this.variation === "checked",
|
|
25896
|
-
} }, hAsync("slot", { key: '
|
|
25925
|
+
} }, hAsync("slot", { key: '0949201345b7070db4ccf011171183115e518707' }))));
|
|
25897
25926
|
}
|
|
25898
25927
|
get element() { return getElement(this); }
|
|
25899
25928
|
static get style() { return duetTabGroupCss; }
|
|
@@ -26587,7 +26616,7 @@ class DuetTable {
|
|
|
26587
26616
|
}
|
|
26588
26617
|
}
|
|
26589
26618
|
render() {
|
|
26590
|
-
return (hAsync(Host, { key: '
|
|
26619
|
+
return (hAsync(Host, { key: 'fda81d8548a6180298f6e227832f9c7105a68736', class: {
|
|
26591
26620
|
[`duet-table-${this.variation}`]: true,
|
|
26592
26621
|
"duet-table-flattened": !this.matchesBreakpoint,
|
|
26593
26622
|
// sticky only valid when in regular table layout
|
|
@@ -26596,7 +26625,7 @@ class DuetTable {
|
|
|
26596
26625
|
"duet-m-0": this.margin === "none",
|
|
26597
26626
|
"duet-theme-turva": this.theme === "turva",
|
|
26598
26627
|
"duet-table-hide-head-visually": this.hideHeadVisually,
|
|
26599
|
-
} }, hAsync("slot", { key: '
|
|
26628
|
+
} }, hAsync("slot", { key: 'ac3ae69d0a1141e1feacd1bdf8fb3ba9e9e89080' })));
|
|
26600
26629
|
}
|
|
26601
26630
|
get element() { return getElement(this); }
|
|
26602
26631
|
static get watchers() { return {
|
|
@@ -26866,17 +26895,17 @@ class DuetTextarea {
|
|
|
26866
26895
|
*/
|
|
26867
26896
|
render() {
|
|
26868
26897
|
const identifier = this.identifier || this.textareaId;
|
|
26869
|
-
return (hAsync(Host, { key: '
|
|
26898
|
+
return (hAsync(Host, { key: '48030acc05f6f8415df8753151991eb3c83ae370', class: {
|
|
26870
26899
|
"duet-m-0": this.margin === "none",
|
|
26871
26900
|
"duet-has-counter": this.counter && !this.error,
|
|
26872
26901
|
"duet-expand": this.expand,
|
|
26873
|
-
} }, hAsync("div", { key: '
|
|
26902
|
+
} }, hAsync("div", { key: 'e8cac00d84bfbef67bb1f30037bb986905fc2d94', class: {
|
|
26874
26903
|
"duet-textarea-container": true,
|
|
26875
26904
|
"duet-theme-turva": this.theme === "turva",
|
|
26876
26905
|
"duet-label-hidden": this.labelHidden,
|
|
26877
26906
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
26878
26907
|
"has-error": !!this.error,
|
|
26879
|
-
} }, hAsync(DuetInternalLabel, { key: '
|
|
26908
|
+
} }, hAsync(DuetInternalLabel, { key: '2f25117dc9dfce852022a09efb8a1b0c2117bb0c', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (hAsync("duet-tooltip", { key: 'b5c614194a8699068a2b9c9156cc2a1955d8ae8c', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), hAsync("slot", { key: '0a72de201a51d22df2604f3fa1a5fba77f9de897', name: "tooltip" }), this.caption && (hAsync("duet-caption", { key: 'fc1baf023f9c4b81131de5244bfb73c925ab265d', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), hAsync("div", { key: '3395893df5eacc499f082eade175e6bb0ce0512c', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (hAsync("duet-caption", { key: '6a71fad928ba647c069c05439e86a5e6eefd4e40', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), hAsync("textarea", { key: '28c7559a63890bb80d6503e3028ea430f24c739a', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, rows: this.rows, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), hAsync("duet-grid", { key: '66ddcb0507cf754111843d5aa871c80ae8d7207e', alignment: "stretch" }, hAsync("duet-grid-item", { key: '79edd18dd19f6500b2c471e960c5fefc1b9492be', margin: "none", fill: true }, hAsync("div", { key: '38d0f75afeefcd4ba8afb2f87802a64885fbc0ea', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && hAsync("span", { key: 'a03fdd80d3a82221abbdeeff8c368d8208efd2b1' }, this.error))), hAsync("duet-grid-item", { key: 'deb6e76efba3354828dd21acd8a362c91c3d2e4f', margin: "none", class: "duet-character-count-caption" }, this.counter && hAsync(CharacterCount, { key: '282fe11b68a1bdd7c63b8071cfd37a3e33086bbc', theme: this.theme, value: this.value, maxlength: this.maxlength }))), this.counter && this.maxlength && (hAsync("duet-visually-hidden", { key: '06b481e31a4dad73a6538a943274f898410be541', id: this.characterCountId, class: "visually-hidden-counter" }, this.visuallyHiddenCounterText)))));
|
|
26880
26909
|
}
|
|
26881
26910
|
get element() { return getElement(this); }
|
|
26882
26911
|
static get watchers() { return {
|
|
@@ -26933,7 +26962,7 @@ class DuetTextarea {
|
|
|
26933
26962
|
}; }
|
|
26934
26963
|
}
|
|
26935
26964
|
|
|
26936
|
-
const duetToggleCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:8px !important;margin-bottom:12px !important;-webkit-user-select:none;user-select:none;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-m-0){margin:0 !important}duet-
|
|
26965
|
+
const duetToggleCss = ".duet-internal-label{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:8px !important;margin-bottom:12px !important;-webkit-user-select:none;user-select:none;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent;cursor:pointer}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-m-0){margin:0 !important}:host(.duet-toggle-is-disabled){cursor:not-allowed}:host(.duet-toggle-is-loading){cursor:wait}.duet-side-label{display:flex;gap:12px;align-items:center}.duet-reverse-label{flex-direction:row-reverse}.duet-switch{position:relative;display:block;width:48px;height:28px}.duet-switch input{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important}.duet-switch input:checked+.duet-slider{background-color:rgb(0, 119, 179);box-shadow:none}.duet-theme-turva .duet-switch input:checked+.duet-slider{background-color:rgb(198, 12, 48)}.duet-switch input:checked+.duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #004467;transform:translateX(20px)}.duet-theme-turva .duet-switch input:checked+.duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #660619}.duet-switch input:disabled+.duet-slider::before{box-shadow:none}.duet-theme-turva .duet-switch input:disabled+.duet-slider::before{box-shadow:none}.duet-switch input:disabled:not(:checked)+.duet-slider{background:#bfcbd2}.duet-switch input:disabled:not(:checked)+.duet-slider::before{background:rgb(255, 255, 255);box-shadow:none}.duet-theme-turva .duet-switch input:disabled:not(:checked)+.duet-slider{background:#c7c9cf}.duet-theme-turva .duet-switch input:disabled:not(:checked)+.duet-slider::before{background:rgb(255, 255, 255)}.duet-switch input:disabled:checked+.duet-slider{background:#80bbd9}.duet-theme-turva .duet-switch input:disabled:checked+.duet-slider{background:#e38698}:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-switch input:focus+.duet-slider,:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-switch input:focus+.duet-slider,:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-slider{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:rgb(127, 150, 165);border-radius:24px;transition:background-color 300ms ease}.duet-slider::before{position:absolute;bottom:2px;left:2px;width:24px;height:24px;content:\"\";background-color:rgb(255, 255, 255);border-radius:50%;box-shadow:1px 0 2px 0 #5d6266;transition:300ms ease}.duet-toggle-is-loading .duet-slider::before{transform:translateX(10px) !important}.duet-toggle-is-loading .duet-slider{cursor:wait}.duet-toggle-is-disabled .duet-slider{cursor:not-allowed}.duet-theme-turva .duet-slider{background-color:rgb(143, 147, 158)}.duet-theme-turva .duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:1px 0 2px 0 #00334d}duet-spinner{margin:2px;cursor:wait;transform:translate(-2px, -2px) scale(80%)}.duet-label-hidden .duet-internal-label{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important}:host(.duet-theme-turva2) .duet-switch input:checked+.duet-slider{background-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-switch input:checked+.duet-slider::before{box-shadow:-1px 0 2px #890e26;transform:translateX(20px)}:host(.duet-theme-turva2) .duet-switch input:disabled:checked+.duet-slider{background:#f38ba0}";
|
|
26937
26966
|
|
|
26938
26967
|
class DuetToggle {
|
|
26939
26968
|
constructor(hostRef) {
|
|
@@ -26964,6 +26993,10 @@ class DuetToggle {
|
|
|
26964
26993
|
* Aria description the button
|
|
26965
26994
|
*/
|
|
26966
26995
|
this.accessibleDescription = undefined;
|
|
26996
|
+
/**
|
|
26997
|
+
* Loading state of the toggle
|
|
26998
|
+
*/
|
|
26999
|
+
this.loading = false;
|
|
26967
27000
|
/**
|
|
26968
27001
|
* Label for the toggle.
|
|
26969
27002
|
*/
|
|
@@ -26996,11 +27029,15 @@ class DuetToggle {
|
|
|
26996
27029
|
* Component event handling.
|
|
26997
27030
|
*/
|
|
26998
27031
|
this.onClick = (ev) => {
|
|
27032
|
+
console.log("click");
|
|
26999
27033
|
ev.preventDefault();
|
|
27000
27034
|
this.setFocus();
|
|
27001
27035
|
this.checked = !this.checked;
|
|
27002
27036
|
};
|
|
27003
27037
|
}
|
|
27038
|
+
setLoadingState() {
|
|
27039
|
+
this.loadingComplete = !this.loading;
|
|
27040
|
+
}
|
|
27004
27041
|
checkedChanged(isChecked) {
|
|
27005
27042
|
this.duetChange.emit({
|
|
27006
27043
|
checked: isChecked,
|
|
@@ -27038,16 +27075,23 @@ class DuetToggle {
|
|
|
27038
27075
|
*/
|
|
27039
27076
|
render() {
|
|
27040
27077
|
const identifier = this.identifier || this.toggleId;
|
|
27041
|
-
return (hAsync(Host, { key: '
|
|
27078
|
+
return (hAsync(Host, { key: '512f0afaafc2cd0bb097f52be094a57d35933d8f', onClick: this.disabled || this.loading ? undefined : this.onClick, class: {
|
|
27079
|
+
"duet-m-0": this.margin === "none",
|
|
27080
|
+
"duet-toggle-is-disabled": this.disabled,
|
|
27081
|
+
"duet-toggle-is-loading": this.loading,
|
|
27082
|
+
} }, hAsync("div", { key: '11a884ca254f910c8e066e28d623ee7f074a75cb', class: {
|
|
27042
27083
|
"duet-toggle": true,
|
|
27043
27084
|
"duet-theme-turva": this.theme === "turva",
|
|
27044
27085
|
"duet-side-label": this.labelPosition !== "top",
|
|
27045
27086
|
"duet-reverse-label": this.labelPosition === "right",
|
|
27046
27087
|
"duet-label-hidden": this.labelHidden,
|
|
27047
|
-
|
|
27088
|
+
"duet-toggle-is-disabled": this.disabled,
|
|
27089
|
+
"duet-toggle-is-loading": this.loading,
|
|
27090
|
+
} }, hAsync(DuetInternalLabel, { key: '51c6fbc61a7322024ad75091c2b2c855738afffa', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), hAsync("label", { key: '0657f6a2d4314dbc196a906495c22f94d7d3e551', class: "duet-switch" }, hAsync("input", { key: '0f84f9f1ca13523adf2b4d86b5f9f4186016996a', 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: '1a6c06cb5c314e5f7431ecbca9b59615dd0ac040', class: "duet-slider" }), this.loading && hAsync("duet-spinner", { key: '94d364fd5f11a06f81b9a0160ab3630ba8bae2c0', color: "primary" }))), this.loading && (hAsync("duet-visually-hidden", { key: '2171c862cedb3bb2eeaee72f9f6b1e9d02eac3e0', "aria-live": "polite" }, this.accessibleLabelLoading || DuetStringsLoadingDefaults[getLanguage()])), this.loadingComplete && (hAsync("duet-visually-hidden", { key: '8671fbb46feeeb3d651cb55f0a9243c77c97ab2c', "aria-live": "polite" }, this.accessibleLabelComplete || DuetStringsCompleteDefaults[getLanguage()]))));
|
|
27048
27091
|
}
|
|
27049
27092
|
get element() { return getElement(this); }
|
|
27050
27093
|
static get watchers() { return {
|
|
27094
|
+
"loading": ["setLoadingState"],
|
|
27051
27095
|
"checked": ["checkedChanged"]
|
|
27052
27096
|
}; }
|
|
27053
27097
|
static get style() { return duetToggleCss; }
|
|
@@ -27064,6 +27108,9 @@ class DuetToggle {
|
|
|
27064
27108
|
"accessibleDetails": [1, "accessible-details"],
|
|
27065
27109
|
"accessibleLabelledBy": [1, "accessible-labelled-by"],
|
|
27066
27110
|
"accessibleDescription": [1, "accessible-description"],
|
|
27111
|
+
"accessibleLabelLoading": [1, "accessible-label-loading"],
|
|
27112
|
+
"accessibleLabelComplete": [1, "accessible-label-complete"],
|
|
27113
|
+
"loading": [4],
|
|
27067
27114
|
"label": [1],
|
|
27068
27115
|
"labelHidden": [4, "label-hidden"],
|
|
27069
27116
|
"labelColor": [1025, "label-color"],
|
|
@@ -27076,6 +27123,7 @@ class DuetToggle {
|
|
|
27076
27123
|
"identifier": [1],
|
|
27077
27124
|
"name": [1],
|
|
27078
27125
|
"role": [1],
|
|
27126
|
+
"loadingComplete": [32],
|
|
27079
27127
|
"setFocus": [64]
|
|
27080
27128
|
},
|
|
27081
27129
|
"$listeners$": undefined,
|
|
@@ -27120,11 +27168,11 @@ class DuetToolbar {
|
|
|
27120
27168
|
: this.variation === "secondary"
|
|
27121
27169
|
? "secondary"
|
|
27122
27170
|
: "default";
|
|
27123
|
-
return (hAsync(Host, { key: '
|
|
27171
|
+
return (hAsync(Host, { key: 'c860be4ffbc7d94876629c2039b767516ae67069' }, hAsync("nav", { key: '93355e73bf35ed26d242a3e08140140f09d4cbcf', class: {
|
|
27124
27172
|
"duet-toolbar": true,
|
|
27125
27173
|
"duet-theme-turva": this.theme === "turva",
|
|
27126
27174
|
[variation]: true,
|
|
27127
|
-
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: '
|
|
27175
|
+
}, "aria-label": this.accessibleLabel }, hAsync("div", { key: 'a50a6a5ec9b49d85edcbc10a275264e95a6ad93b', class: "container" }, hAsync("div", { key: 'd3187fa520b84678f46876238269b9e3f48aced4', class: "list", role: "list" }, hAsync("slot", { key: 'd0a092e1c45ac428b73d549b94ac932e3f4e871e', name: "left" })), hAsync("div", { key: '90c02bddb8937b6e48648a2b758211ab88ae4b00', class: "list", role: "list" }, hAsync("slot", { key: '8d66429a3b7a5d4ca4c3a570677c5fca14915108', name: "right" }))))));
|
|
27128
27176
|
}
|
|
27129
27177
|
get element() { return getElement(this); }
|
|
27130
27178
|
static get style() { return duetToolbarCss; }
|
|
@@ -27205,18 +27253,18 @@ class DuetToolbarDropdown {
|
|
|
27205
27253
|
itemsAlign = this.element.parentElement.getAttribute("slot") === "left" ? "right" : "left";
|
|
27206
27254
|
}
|
|
27207
27255
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
27208
|
-
return (hAsync(Host, { key: '
|
|
27256
|
+
return (hAsync(Host, { key: '22441fcb5b8138475d82dab2645eb4be7acc7683', role: "listitem" }, hAsync("div", { key: 'ddda27f016e058d656ebef316dbe040559949c88', class: {
|
|
27209
27257
|
"duet-toolbar-dropdown": true,
|
|
27210
27258
|
"duet-theme-turva": this.theme === "turva",
|
|
27211
27259
|
[itemsAlign]: true,
|
|
27212
27260
|
[variation]: true,
|
|
27213
|
-
} }, hAsync("button", { key: '
|
|
27261
|
+
} }, hAsync("button", { key: 'ecdfa65704fb809858dd451e2cabd81eb6362def', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, id: "button", type: "button", class: {
|
|
27214
27262
|
active: this.active,
|
|
27215
27263
|
open: this.open,
|
|
27216
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '
|
|
27264
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (hAsync("duet-icon", { key: '094d722d70d59a46406f1e0eef3b23a2d2bfa58f', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), hAsync("span", { key: '574c62534b8ee3098ed1bcd1a68bb8ac21712a1e', class: "label" }, hAsync("slot", { key: '702645793ce1d7acc23ab3d81ca340c34d68f05c', name: "label" }), hAsync("duet-icon", { key: '26e38570a74cd2d6997029053bb462449e4542e3', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), hAsync("div", { key: '5e778fe7b21fea29300f437f18970c419fc312e5', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
27217
27265
|
items: true,
|
|
27218
27266
|
hidden: !this.open,
|
|
27219
|
-
} }, hAsync("slot", { key: '
|
|
27267
|
+
} }, hAsync("slot", { key: 'a8694deb60b5d8fb5b9131cec991471ef0020a83' })))));
|
|
27220
27268
|
}
|
|
27221
27269
|
get element() { return getElement(this); }
|
|
27222
27270
|
static get style() { return duetToolbarDropdownCss; }
|
|
@@ -27282,11 +27330,11 @@ class DuetToolbarDropdownLink {
|
|
|
27282
27330
|
* Always the last one in the class.
|
|
27283
27331
|
*/
|
|
27284
27332
|
render() {
|
|
27285
|
-
return (hAsync(Host, { key: '
|
|
27333
|
+
return (hAsync(Host, { key: '8e41d151e3313b5891dff17b78353776a85a8f07' }, hAsync("a", { key: '1dbfa3d41901af78023b0121f0b5d4699c88a190', class: {
|
|
27286
27334
|
"duet-toolbar-dropdown-link": true,
|
|
27287
27335
|
"duet-theme-turva": this.theme === "turva",
|
|
27288
27336
|
active: this.active,
|
|
27289
|
-
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: '
|
|
27337
|
+
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && hAsync("duet-icon", { key: 'e33514dc4358840cbc8520514b16e519a56458ea', name: this.icon, size: "x-small", margin: "none" }), hAsync("span", { key: '3c1420a627929ed17d384db1762e55918ca055f6', class: "label" }, hAsync("slot", { key: '73cd382bf5e2f19e5d1c6e2e64d0322021f19635' })), this.active && (hAsync("duet-icon", { key: '22214495161d78c4f620a84a03089f018d377400', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
|
|
27290
27338
|
}
|
|
27291
27339
|
get element() { return getElement(this); }
|
|
27292
27340
|
static get style() { return duetToolbarDropdownLinkCss; }
|
|
@@ -27389,17 +27437,17 @@ class DuetToolbarItem {
|
|
|
27389
27437
|
: this.variation === "secondary"
|
|
27390
27438
|
? "secondary"
|
|
27391
27439
|
: "default";
|
|
27392
|
-
return (hAsync(Host, { key: '
|
|
27440
|
+
return (hAsync(Host, { key: '82a17ce8483bcaa16bdef27b50238898b81a7549', role: "listitem" }, this.badge && hAsync("duet-indicator", { key: 'd1a27a07f28a95232cde24a20f05a0a2d7f61745', variation: "change" }), hAsync(TagName, { key: 'c2192a7a73d5f09fc1acf9d13c7f2f2d26af7def', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
27393
27441
|
"duet-toolbar-item": true,
|
|
27394
27442
|
"duet-theme-turva": this.theme === "turva",
|
|
27395
27443
|
active: this.active,
|
|
27396
27444
|
[variation]: true,
|
|
27397
|
-
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("div", { key: '
|
|
27445
|
+
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (hAsync("div", { key: '00b85b5398cc6a21478840d79a11fa91270d74c0', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: '73ffe104fcc9af56100dbc8f863e207efb93a2aa', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && hAsync("div", { key: '4d185a66ab6fdf842f0d8c967fcb621fcd30e4d8', class: "duet-toolbar-badge" }))), hAsync("slot", { key: '9fc239303a5fdb7931d47ecbb57649f0650c2fa4' }), (this.trailingIcon || (this.url && this.external)) && (hAsync("div", { key: '4643254add55b63662d8c133c4c235110f82f2d7', class: "duet-toolbar-icon" }, hAsync("duet-icon", { key: 'af3c48ea2d30ddb9f7569626d49df896e6be8206', class: {
|
|
27398
27446
|
"trailing-icon": !!this.trailingIcon,
|
|
27399
27447
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
27400
27448
|
"external-icon": !!(this.url && this.external),
|
|
27401
27449
|
rotate: this.trailingIcon === "action-arrow-down-small" && this.accessibleExpanded,
|
|
27402
|
-
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && hAsync("div", { key: '
|
|
27450
|
+
}, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && hAsync("div", { key: '9b26ddf0fce82536ea49fec8fcfa2973ae732e84', class: "duet-toolbar-badge" }))))));
|
|
27403
27451
|
}
|
|
27404
27452
|
get element() { return getElement(this); }
|
|
27405
27453
|
static get style() { return duetToolbarItemCss; }
|
|
@@ -27466,12 +27514,12 @@ class DuetToolbarLink {
|
|
|
27466
27514
|
*/
|
|
27467
27515
|
render() {
|
|
27468
27516
|
const variation = this.variation === "negative" ? "negative" : "white";
|
|
27469
|
-
return (hAsync(Host, { key: '
|
|
27517
|
+
return (hAsync(Host, { key: '82d0a3759f48e1d3770e078ace177b7024958e6b', role: "listitem" }, hAsync("a", { key: '3865f0bcb98452a4b3f68e0242ceb7f0927dd4ad', class: {
|
|
27470
27518
|
"duet-toolbar-link": true,
|
|
27471
27519
|
"duet-theme-turva": this.theme === "turva",
|
|
27472
27520
|
active: this.active,
|
|
27473
27521
|
[variation]: true,
|
|
27474
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '
|
|
27522
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (hAsync("duet-icon", { key: '09e4f28e3bca743b155330a0df9400bf47c51f9c', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), hAsync("slot", { key: '68c25000344101d59cd7102c51b072636137fd62' }))));
|
|
27475
27523
|
}
|
|
27476
27524
|
get element() { return getElement(this); }
|
|
27477
27525
|
static get style() { return duetToolbarLinkCss; }
|
|
@@ -27793,13 +27841,13 @@ class DuetTooltipButton {
|
|
|
27793
27841
|
* Always the last one in the class.
|
|
27794
27842
|
*/
|
|
27795
27843
|
render() {
|
|
27796
|
-
const visuallyHidden = hAsync("duet-visually-hidden", { key: '
|
|
27797
|
-
return (hAsync(Host, { key: '
|
|
27844
|
+
const visuallyHidden = hAsync("duet-visually-hidden", { key: 'f839514d25ea6f0be10ff17007bc5598c0674f61' }, this.accessibleLabel);
|
|
27845
|
+
return (hAsync(Host, { key: '1184ee05def105c059edfaabbb51f19a0ff25ad0' }, hAsync("button", { key: 'b31a9e19755ee98f2504e9aa6345f3e96cd2672e', ref: el => (this.buttonElement = el), "aria-controls": this.tooltipId, "aria-expanded": this.active ? "true" : "false", type: "button", class: {
|
|
27798
27846
|
"duet-tooltip-button": true,
|
|
27799
27847
|
"duet-tooltip-button-has-label": !!this.label,
|
|
27800
27848
|
"duet-theme-turva": this.theme === "turva",
|
|
27801
27849
|
"duet-tooltip-button-negative": this.negative,
|
|
27802
|
-
} }, hAsync("svg", { key: '
|
|
27850
|
+
} }, hAsync("svg", { key: '28d46d3d9005cc1a147a740f84ff0fba3b250b34', "aria-hidden": "true", role: "img", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '742e3a51a9b20bedea4334e3fcc1e2a3517e8342', d: "m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z" }), hAsync("circle", { key: '5af82ccdef41b720dbf5fbf75c63793a6d15bc2b', cx: "11.625", cy: "7.125", r: "1.125" }), hAsync("path", { key: '30aec776b7b26838c552073174643773da4db6b8', d: "m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z" })), this.label ? (hAsync("span", { class: "duet-tooltip-label" }, this.label, visuallyHidden)) : (visuallyHidden))));
|
|
27803
27851
|
}
|
|
27804
27852
|
get element() { return getElement(this); }
|
|
27805
27853
|
static get style() { return duetTooltipButtonCss; }
|
|
@@ -27864,14 +27912,14 @@ class DuetTooltipPopup {
|
|
|
27864
27912
|
this.contentEl.focus();
|
|
27865
27913
|
}
|
|
27866
27914
|
render() {
|
|
27867
|
-
return (hAsync(Host, { key: '
|
|
27915
|
+
return (hAsync(Host, { key: '3c8d28cef7325f7f9a37c42323e2703197a46b4c' }, hAsync("div", { key: '758460093b178a0bf27b146f95b079f25da46279', class: {
|
|
27868
27916
|
"duet-tooltip": true,
|
|
27869
27917
|
"duet-theme-turva": this.theme === "turva",
|
|
27870
27918
|
"duet-tooltip-active": this.active === true,
|
|
27871
|
-
} }, hAsync(FocusGuard, { key: '
|
|
27919
|
+
} }, hAsync(FocusGuard, { key: 'a380f2eae0bbaa67867cbaa7851e8fdb91e725e3', moveFocusTo: this.buttonEl }), hAsync("div", { key: '93547c2941da1e4bf5f11d4e927ab0a898faadb8', ref: element => (this.contentEl = element), class: {
|
|
27872
27920
|
"duet-tooltip-content-area": true,
|
|
27873
27921
|
"duet-theme-turva": this.theme === "turva",
|
|
27874
|
-
}, tabindex: -1, id: this.tooltipId }, hAsync("slot", { key: '
|
|
27922
|
+
}, tabindex: -1, id: this.tooltipId }, hAsync("slot", { key: 'e7d05bdad7849e242c18429e7694606d034931f5' })), hAsync("div", { key: 'b41cf5f06f034fad1455f5dd20cf40828be2535c', ref: element => (this.arrowEl = element), class: { arrow: true, [this.placement]: true }, style: this.arrowStyles }, hAsync("div", { key: '67b9bd2303a7c04a44d12c110b8a675b8c55f526', class: { "arrow-container": true, [this.placement]: true } })), hAsync("button", { key: '140b64666484c9cd541f10b4aa8a3c786dc0e13f', type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick, ref: el => (this.buttonEl = el) }, hAsync("duet-icon", { key: '7cdb146d795acaa65561d690e3286ce03e932684', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), hAsync("duet-visually-hidden", { key: 'bb523f67e60aa14b2f404a6e9ae8d6079360adf4' }, this.accessibleCloseLabel)), hAsync(FocusGuard, { key: 'c7dfc301f8b422a6722ceb11e1978306227bce52', moveFocusTo: this.contentEl }))));
|
|
27875
27923
|
}
|
|
27876
27924
|
get element() { return getElement(this); }
|
|
27877
27925
|
static get style() { return duetTooltipPopupCss; }
|
|
@@ -28020,14 +28068,14 @@ class DuetTray {
|
|
|
28020
28068
|
* Always the last one in the class.
|
|
28021
28069
|
*/
|
|
28022
28070
|
render() {
|
|
28023
|
-
return (hAsync("div", { key: '
|
|
28071
|
+
return (hAsync("div", { key: '9d5fc8800023764518de215eb610e8d45ab86e2b', class: {
|
|
28024
28072
|
"duet-tray": true,
|
|
28025
28073
|
"duet-tray-is-active": this.active,
|
|
28026
28074
|
"duet-tray-is-hidden": this.hiddenState,
|
|
28027
28075
|
"duet-tray-is-responsive": this.responsive,
|
|
28028
28076
|
"duet-theme-turva": this.theme === "turva",
|
|
28029
28077
|
"duet-tray-is-expandable": this.hasAdditionalContent,
|
|
28030
|
-
} }, hAsync("div", { key: '
|
|
28078
|
+
} }, hAsync("div", { key: 'd52a0e2f9d54d671a5840ac8039e6f7197021de6', class: "duet-tray-default-content", role: "status" }, hAsync("slot", { key: 'aae51b2629d00e82ff54d429dfa65d922391c017' })), this.hasAdditionalContent && (hAsync(Fragment, { key: 'f039ce601fc5bba7cc18da4b74ddae8531839c33' }, hAsync("button", { key: 'c9c444d39b541b567efdd63c629a39d891a83dda', "aria-expanded": this.expanded ? "true" : "false", "aria-controls": this.expandableId, onClick: ev => this.toggleExpandable(ev), class: { "duet-tray-button": true, "duet-tray-is-expanded": this.expanded } }, hAsync("duet-icon", { key: '3311dd9edddb29cd4eff813b50e7d9998934f6d5', name: "action-arrow-down", size: "small", color: "currentColor", margin: "none" }), hAsync("duet-visually-hidden", { key: '8758967c602734c8843f9a3bb31e4847a64d6257' }, this.expanded ? this.accessibleCloseLabel : this.accessibleOpenLabel)), hAsync("div", { key: '82a72aaa64ba7459397290078267177fff26d2be', id: this.expandableId, class: { "duet-tray-expandable": true, active: this.expanded } }, hAsync("div", { key: 'b7a7af3aeeeb43966f018fdd457388b0571ade0a', class: "duet-tray-expandable-content" }, hAsync("slot", { key: '527312ba646745f4a4deaad914cf9a1df640a9f2', name: "additional" })))))));
|
|
28031
28079
|
}
|
|
28032
28080
|
get element() { return getElement(this); }
|
|
28033
28081
|
static get style() { return duetTrayCss; }
|
|
@@ -29342,10 +29390,10 @@ class DuetUpload {
|
|
|
29342
29390
|
this.externalUploadButton.accessibleLabel = `${this.externalUploadButton.innerText}. ${caption}`;
|
|
29343
29391
|
}
|
|
29344
29392
|
// @ts-ignore
|
|
29345
|
-
return (hAsync(Host, { key: '
|
|
29393
|
+
return (hAsync(Host, { key: '027dcff01c8c5aef8445a0ed996aa5ad3e854b5e', class: { "duet-m-0": this.margin === "none" } }, hAsync("duet-fieldset", { key: '47ed56bd728ba7c100e5d68dd71f727b6e6b2a4d', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, hAsync("slot", { key: '63328b6f03549224f711b858cbb5e95665bbdef9', name: "header" }), !this.files.size && (hAsync("duet-empty-state", { key: '88492085957485c18c6ba40b767b87c89ff89fd2', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, hAsync("duet-paragraph", { key: '2cbe2581b60800f93dafe93e63c67d9ac826737c', margin: "none" }, this.fileListEmpty))), !!this.files.size && hAsync("slot", { key: '2bf2901abf2934c09cfeca8514ddfec09f48e82a', name: "fileheader" }), !!this.files.size && (hAsync("duet-upload-aria-status", { key: '2ac21565dbd47cfbf9954b03e4404c018871c85c', invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && hAsync("slot", { key: '7eb58ca2a63237ee9d22f4ce8136c7bf4bd90f41', name: "filefooter" }), hAsync("slot", { key: '36bc35eb74e40102333469dadda4ac75a77ebd90', name: "uploadfooter" }), this.captionOnBottom && (hAsync("duet-caption", { key: 'c6465f63ef97ab6cb78af308da6c4c2528b911e0', margin: "none", size: "small" }, hAsync("div", { key: 'd189b328248cf862a920d1e542a18546b0b76b94', class: "upload-bottom-caption" }, caption))), hAsync("slot", { key: '87c92c6cac9b662315a12218e848a54b74094cec', name: "afterfooter" }), !this.hideButton && (hAsync(Fragment, { key: '89ba989869f8286e58f01704ef5339ab23106761' }, hAsync("duet-spacer", { key: '5c4dc126f197421e5c62edf556f9ef967df4cf89', size: "large" }), hAsync("duet-button", { key: '67c4e90266831664dbd7aae7fb1792460013cee3', id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel || `${this.buttonLabel}. ${caption}`, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel))), (this.fileMaxReached ||
|
|
29346
29394
|
this.bytesMaxReached ||
|
|
29347
29395
|
this.filesToUploadExceedsLimit ||
|
|
29348
|
-
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: '
|
|
29396
|
+
this.filesToUploadTotalSizeIsAboveMax) && (hAsync(Fragment, { key: '2984ff475257e2ed17b964aa6113e6592809996a' }, hAsync("duet-spacer", { key: '3400a7c832dceb6f04c6a1efc9f69bc764004cc7', size: "medium" }), hAsync("duet-alert", { key: '22bb6896cec80f0468dd34bb2ff29d20ccb474a9', part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && getI18nError("duet-upload-202", this.errorCodes), this.filesToUploadExceedsLimit && getI18nError("duet-upload-302", this.errorCodes), this.filesToUploadTotalSizeIsAboveMax && getI18nError("duet-upload-203", this.errorCodes)))), hAsync("duet-visually-hidden", { key: 'f6871858e8e2e13839f9898cf340951616c81595', "aria-hidden": "true" }, hAsync("input", { key: 'faa902cc6425f28c15c89a0f95c1c7ce69ec8b6b', ref: input => {
|
|
29349
29397
|
this.nativeInput = input;
|
|
29350
29398
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
29351
29399
|
"duet-upload": true,
|
|
@@ -29687,7 +29735,7 @@ class DuetUploadAriaStatus {
|
|
|
29687
29735
|
* Always the last one in the class.
|
|
29688
29736
|
*/
|
|
29689
29737
|
render() {
|
|
29690
|
-
return (hAsync(Host, { key: '
|
|
29738
|
+
return (hAsync(Host, { key: '5cf7965d65a20a104085bde4788a4b7a044b7eed', role: "status", "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, hAsync("duet-visually-hidden", { key: 'fe28885c561bd1884856c733ae6f34f2b84873c7' }, this.statusMessage)));
|
|
29691
29739
|
}
|
|
29692
29740
|
get element() { return getElement(this); }
|
|
29693
29741
|
static get watchers() { return {
|
|
@@ -29763,7 +29811,7 @@ let DuetUploadItem$1 = class DuetUploadItem {
|
|
|
29763
29811
|
inheritGlobalTheme(this);
|
|
29764
29812
|
}
|
|
29765
29813
|
render() {
|
|
29766
|
-
return (hAsync(Host, { key: '
|
|
29814
|
+
return (hAsync(Host, { key: '70aa98d57c2361a70abfd51e859679df65f68027' }, hAsync("duet-visually-hidden", { key: '1c4899794b06709d24d5ff412141bf0e3714a8cb', "aria-hidden": "true" }, hAsync("input", { key: 'ec3827c684ffbb3a4299720ef07f4c8590d0d6ed', ref: input => {
|
|
29767
29815
|
this.nativeInput = input;
|
|
29768
29816
|
}, type: "file", class: {
|
|
29769
29817
|
"duet-upload": true,
|
|
@@ -29867,9 +29915,9 @@ class DuetUploadItem {
|
|
|
29867
29915
|
const { uid, meta, item } = this.data;
|
|
29868
29916
|
const Badges = meta && meta.badges ? (hAsync("span", null, meta.badges.map(badgeText => (hAsync("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
29869
29917
|
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${item.name}`;
|
|
29870
|
-
return (hAsync("div", { key: '
|
|
29918
|
+
return (hAsync("div", { key: '77bb336f85e5157b02e275554ec058cd783a6f58', class: {
|
|
29871
29919
|
"upload-item-row": true,
|
|
29872
|
-
} }, this.showCategory && (hAsync("div", { key: '
|
|
29920
|
+
} }, this.showCategory && (hAsync("div", { key: '1511526cfa7a8a3c7ffa039c761f0518c2de8f07', class: "item-categories" }, hAsync("duet-heading", { key: '8190b64ad02a4cf3ad5d50fba2dd29175c91f2cb', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.categoryLabel)), Badges)), hAsync("div", { key: '9a72d26ea9b6ac13f9f1edca9faab7c4ddd86474', class: { "item-name": true, "no-category": !this.showCategory } }, !!this.label && (hAsync("duet-heading", { key: '463a1611352d71956e7a4264ca9bd238333a71f9', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.label))), this.getFileNameLine()), hAsync("div", { key: 'cb864f51d8d622526be69d3a34c32ee0b8722312', class: "item-actions" }, this.actions.map(actionItem => {
|
|
29873
29921
|
return (hAsync("duet-action-button", { actionMeta: Object.assign({}, meta || {}), actionId: uid || null, actionName: actionItem.name, theme: this.theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${actionDescription} ${getLocaleString(actionItem.label)} `, accessibleTitle: this.getActionButtonTitle(actionItem), ref: button => (this.actionButton = button) }));
|
|
29874
29922
|
}))));
|
|
29875
29923
|
}
|
|
@@ -29909,7 +29957,7 @@ class DuetVisuallyHidden {
|
|
|
29909
29957
|
* Always the last one in the class.
|
|
29910
29958
|
*/
|
|
29911
29959
|
render() {
|
|
29912
|
-
return (hAsync(Host, { key: '
|
|
29960
|
+
return (hAsync(Host, { key: '24d3d4f9d5f7c38bb5f173d6fcb4ed6eb9c74510', class: "duet-visually-hidden" }, hAsync("slot", { key: 'f6acbedb718f5416d46b82450ff03d8a3416ffc5' })));
|
|
29913
29961
|
}
|
|
29914
29962
|
get element() { return getElement(this); }
|
|
29915
29963
|
static get style() { return duetVisuallyHiddenCss; }
|