@duetds/components 10.0.0-alpha.27 → 10.0.0-alpha.29
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 +164 -127
- package/hydrate/index.mjs +164 -127
- package/lib/cjs/{a11y-utils-B33qnv_c.js → a11y-utils-C2urHioz.js} +1 -1
- package/lib/cjs/{app-globals-DxEBgBDv.js → app-globals-CiRzLcdj.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-alert.cjs.entry.js +5 -5
- package/lib/cjs/duet-badge.cjs.entry.js +3 -3
- package/lib/cjs/duet-banner.cjs.entry.js +4 -4
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +11 -20
- 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 +3 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +12 -10
- package/lib/cjs/duet-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-checkbox.cjs.entry.js +4 -4
- package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
- package/lib/cjs/duet-chip.cjs.entry.js +3 -3
- package/lib/cjs/duet-choice_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-collapsible.cjs.entry.js +17 -8
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +8 -8
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +6 -5
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +10 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +23 -10
- package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-hero.cjs.entry.js +18 -11
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-indicator.cjs.entry.js +2 -2
- package/lib/cjs/duet-input_2.cjs.entry.js +22 -23
- package/lib/cjs/duet-layout.cjs.entry.js +2 -2
- package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar.cjs.entry.js +4 -4
- package/lib/cjs/duet-modal.cjs.entry.js +26 -14
- 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 +3 -3
- package/lib/cjs/duet-number-input.cjs.entry.js +6 -6
- package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +3 -3
- package/lib/cjs/duet-pagination_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-panel.cjs.entry.js +3 -3
- package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-radio_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-range-slider.cjs.entry.js +4 -4
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +5 -5
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +9 -9
- package/lib/cjs/duet-shaped-image.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-share-chart.cjs.entry.js +5 -5
- package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout.cjs.entry.js +6 -6
- package/lib/cjs/duet-status-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +3 -3
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- package/lib/cjs/duet-toggle.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar.cjs.entry.js +2 -2
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
- package/lib/cjs/duet-tray.cjs.entry.js +3 -3
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-D9V4NJkh.js → errorcodes.utils-CT287Ycp.js} +1 -1
- package/lib/cjs/{focus-utils-2MQWj2yf.js → focus-utils-DYmtJ1FV.js} +1 -1
- package/lib/cjs/{index-CgbT-GDe.js → index-ULRMHMT6.js} +1 -1
- package/lib/cjs/{label-B2EZulEI.js → label-Cw2Vvd6f.js} +1 -1
- package/lib/cjs/{language-utils-DjVt82-o.js → language-utils-D_noDTNR.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-mZWWDERy.js → slot-utils-CuWfl8gF.js} +1 -1
- package/lib/cjs/{themeable-component-DtTN09xK.js → themeable-component-vXSpPXDS.js} +1 -1
- package/lib/cjs/{token-utils-DsVwGXGM.js → token-utils-b3aW02zZ.js} +7 -4
- package/lib/collection/components/duet-alert/duet-alert.css +1 -0
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +1 -1
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +9 -22
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +3 -3
- package/lib/collection/components/duet-button/duet-button.css +3 -0
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +3 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +15 -6
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +3 -3
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +9 -4
- package/lib/collection/components/duet-grid/duet-grid.js +27 -12
- package/lib/collection/components/duet-hero/duet-hero.css +4 -0
- package/lib/collection/components/duet-hero/duet-hero.js +13 -6
- package/lib/collection/components/duet-input/duet-input.css +7 -0
- package/lib/collection/components/duet-input/duet-input.js +26 -42
- package/lib/collection/components/duet-link/duet-link.css +6 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +4 -0
- package/lib/collection/components/duet-modal/duet-modal.js +20 -8
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +6 -6
- package/lib/collection/components/duet-nav/duet-nav.css +4 -0
- package/lib/collection/components/duet-number-input/duet-number-input.js +3 -3
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +1 -1
- package/lib/collection/components/duet-panel/duet-panel.css +5 -4
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +3 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +4 -2
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +1 -1
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +2 -2
- package/lib/collection/components/duet-select/duet-select.js +6 -6
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +4 -0
- package/lib/collection/components/duet-table/duet-table-styles.js +1 -0
- package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
- package/lib/collection/utils/token-utils.js +3 -3
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-493d938a.entry.js → p-01b28129.entry.js} +1 -1
- package/lib/duet/{p-e439d733.entry.js → p-01bfda23.entry.js} +1 -1
- package/lib/duet/{p-875dd701.entry.js → p-01c80d5a.entry.js} +1 -1
- package/lib/duet/{p-0528f691.entry.js → p-06ca53e7.entry.js} +1 -1
- package/lib/duet/{p-8ff78f91.entry.js → p-098d9160.entry.js} +1 -1
- package/lib/duet/{p-72c7db64.entry.js → p-0a9945d3.entry.js} +1 -1
- package/lib/duet/{p-6fe283f7.entry.js → p-0eb86bf1.entry.js} +1 -1
- package/lib/duet/{p-cd4d12c2.entry.js → p-10640c4f.entry.js} +1 -1
- package/lib/duet/{p-b37b1542.entry.js → p-18674149.entry.js} +1 -1
- package/lib/duet/{p-4107efb5.entry.js → p-1d192423.entry.js} +1 -1
- package/lib/duet/p-1e043a65.entry.js +4 -0
- package/lib/duet/{p-f6b76f66.entry.js → p-218d8d0c.entry.js} +1 -1
- package/lib/duet/{p-9af77c24.entry.js → p-22baa879.entry.js} +1 -1
- package/lib/duet/{p-d11b094d.entry.js → p-22c91ab8.entry.js} +1 -1
- package/lib/duet/{p-c4fe8bae.entry.js → p-23cf09fc.entry.js} +1 -1
- package/lib/duet/{p-7379c2ed.entry.js → p-242e8590.entry.js} +1 -1
- package/lib/duet/p-2defb00a.entry.js +4 -0
- package/lib/duet/p-35d6644f.entry.js +4 -0
- package/lib/duet/p-366f6c75.entry.js +4 -0
- package/lib/duet/{p-a94cc8a6.entry.js → p-368f8b17.entry.js} +1 -1
- package/lib/duet/{p-208fdfe6.entry.js → p-3740d6a3.entry.js} +1 -1
- package/lib/duet/{p-e882bbb5.entry.js → p-38f1f411.entry.js} +1 -1
- package/lib/duet/{p-5efda812.entry.js → p-3a774155.entry.js} +1 -1
- package/lib/duet/{p-1228299f.entry.js → p-40965806.entry.js} +1 -1
- package/lib/duet/{p-fc7d6429.entry.js → p-43417674.entry.js} +1 -1
- package/lib/duet/{p-076d2d0d.entry.js → p-4743f2de.entry.js} +1 -1
- package/lib/duet/{p-2c976b5a.entry.js → p-49bccc83.entry.js} +1 -1
- package/lib/duet/{p-5a8f14cf.entry.js → p-4a0f1cdb.entry.js} +1 -1
- package/lib/duet/{p-c43669b3.entry.js → p-4a4795be.entry.js} +1 -1
- package/lib/duet/{p-b025df86.entry.js → p-4c421d4a.entry.js} +1 -1
- package/lib/duet/{p-91f39296.entry.js → p-5175a2dd.entry.js} +1 -1
- package/lib/duet/{p-5b2527f7.entry.js → p-531ccf9e.entry.js} +1 -1
- package/lib/duet/{p-a582e823.entry.js → p-545fc3f7.entry.js} +1 -1
- package/lib/duet/{p-d65a706f.entry.js → p-55905e75.entry.js} +1 -1
- package/lib/duet/p-5689da45.entry.js +4 -0
- package/lib/duet/{p-4f638a3d.entry.js → p-56fbb9c9.entry.js} +1 -1
- package/lib/duet/{p-bc7d4da0.entry.js → p-5eaf6164.entry.js} +1 -1
- package/lib/duet/{p-4b032feb.entry.js → p-5ef0982d.entry.js} +1 -1
- package/lib/duet/p-6442c2be.entry.js +4 -0
- package/lib/duet/{p-a431d704.entry.js → p-6b5e575b.entry.js} +1 -1
- package/lib/duet/{p-6943a2ef.entry.js → p-6c1a7d2a.entry.js} +1 -1
- package/lib/duet/{p-59cd72fc.entry.js → p-726b706a.entry.js} +1 -1
- package/lib/duet/{p-25ebe6a5.entry.js → p-73041240.entry.js} +1 -1
- package/lib/duet/{p-15d4751c.entry.js → p-7340a148.entry.js} +1 -1
- package/lib/duet/{p-bed6b29f.entry.js → p-78f0104d.entry.js} +1 -1
- package/lib/duet/{p-ba6dc53e.entry.js → p-7c4b51bc.entry.js} +1 -1
- package/lib/duet/p-7d682f0c.entry.js +4 -0
- package/lib/duet/p-7dde6589.entry.js +4 -0
- package/lib/duet/{p-9500f26b.entry.js → p-80c2a22b.entry.js} +1 -1
- package/lib/duet/{p-39087512.entry.js → p-86613005.entry.js} +1 -1
- package/lib/duet/{p-a274b8fd.entry.js → p-866d5fba.entry.js} +1 -1
- package/lib/duet/{p-79c93372.entry.js → p-878e745d.entry.js} +1 -1
- package/lib/duet/{p-7ace4629.entry.js → p-89de527f.entry.js} +1 -1
- package/lib/duet/{p-41dd144f.entry.js → p-8eb11318.entry.js} +1 -1
- package/lib/duet/p-96179df4.entry.js +4 -0
- package/lib/duet/{p-3facac5a.entry.js → p-994e0989.entry.js} +1 -1
- package/lib/duet/{p-931b4437.entry.js → p-9d630f8d.entry.js} +1 -1
- package/lib/duet/{p-Ob09ol4-.js → p-B0lHdUDq.js} +1 -1
- package/lib/duet/{p-BSOF0zb5.js → p-Bq8ssolA.js} +1 -1
- package/lib/duet/p-C-pON5qf.js +4 -0
- package/lib/duet/{p-vt84lkeQ.js → p-Cg-Sy7Qf.js} +1 -1
- package/lib/duet/p-CmVjSa2G.js +4 -0
- package/lib/duet/{p-1s1EpusX.js → p-D8Vx4GZo.js} +1 -1
- package/lib/duet/{p-BXJZKiJg.js → p-DNq3_6qZ.js} +1 -1
- package/lib/duet/p-DhhvHRbK.js +4 -0
- package/lib/duet/p-Do6ugHz0.js +4 -0
- package/lib/duet/{p-fe393084.entry.js → p-a456687d.entry.js} +1 -1
- package/lib/duet/p-a6eed3fb.entry.js +4 -0
- package/lib/duet/p-a954bbc6.entry.js +4 -0
- package/lib/duet/{p-ed5f5c6b.entry.js → p-ac84994d.entry.js} +1 -1
- package/lib/duet/{p-a9094bdc.entry.js → p-ae830c4f.entry.js} +1 -1
- package/lib/duet/{p-55a63695.entry.js → p-b8f14348.entry.js} +1 -1
- package/lib/duet/{p-deb90dc7.entry.js → p-c3e002cb.entry.js} +1 -1
- package/lib/duet/{p-a0e708db.entry.js → p-c6c245d2.entry.js} +1 -1
- package/lib/duet/p-c6c2f1dc.entry.js +4 -0
- package/lib/duet/{p-b6354004.entry.js → p-ca1ac603.entry.js} +1 -1
- package/lib/duet/{p-3389969d.entry.js → p-cb5020b3.entry.js} +1 -1
- package/lib/duet/{p-4289c214.entry.js → p-cc2fe910.entry.js} +1 -1
- package/lib/duet/{p-1995091e.entry.js → p-d0fe1162.entry.js} +1 -1
- package/lib/duet/{p-fe29dee3.entry.js → p-d4c5c776.entry.js} +1 -1
- package/lib/duet/{p-9f9576a2.entry.js → p-d77d51df.entry.js} +1 -1
- package/lib/duet/{p-338667ab.entry.js → p-e03b4d6d.entry.js} +1 -1
- package/lib/duet/{p-75fd0eca.entry.js → p-e18ded3f.entry.js} +1 -1
- package/lib/duet/{p-b001a8a4.entry.js → p-e1997fb2.entry.js} +1 -1
- package/lib/duet/p-e41e1570.entry.js +4 -0
- package/lib/duet/{p-3c7ba14f.entry.js → p-e443cf8a.entry.js} +1 -1
- package/lib/duet/{p-ef821bec.entry.js → p-e6a4707d.entry.js} +1 -1
- package/lib/duet/{p-ab61831a.entry.js → p-e9ff33aa.entry.js} +1 -1
- package/lib/duet/{p-ca2fd9dc.entry.js → p-eb7799de.entry.js} +1 -1
- package/lib/duet/{p-167290f7.entry.js → p-ed4f565e.entry.js} +1 -1
- package/lib/duet/{p-263790e3.entry.js → p-ee8f51c9.entry.js} +1 -1
- package/lib/duet/{p-50afabfb.entry.js → p-f25c9b3a.entry.js} +1 -1
- package/lib/duet/{p-503a290b.entry.js → p-f950ae45.entry.js} +1 -1
- package/lib/duet/{p-c745c02a.entry.js → p-fd19cbeb.entry.js} +1 -1
- package/lib/duet/{p-6a95d722.entry.js → p-ffa644e6.entry.js} +1 -1
- package/lib/duet/p-vLG7vkZg.js +4 -0
- package/lib/esm/{a11y-utils-CROKOfOD.js → a11y-utils-k-txkQIa.js} +1 -1
- package/lib/esm/{app-globals-CahJi_2c.js → app-globals-BL1PM4GK.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +4 -4
- package/lib/esm/duet-alert.entry.js +5 -5
- package/lib/esm/duet-badge.entry.js +3 -3
- package/lib/esm/duet-banner.entry.js +4 -4
- package/lib/esm/duet-breadcrumb.entry.js +11 -20
- 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 +3 -3
- package/lib/esm/duet-caption_4.entry.js +12 -10
- package/lib/esm/duet-card.entry.js +4 -4
- package/lib/esm/duet-checkbox.entry.js +4 -4
- package/lib/esm/duet-checkmark.entry.js +2 -2
- package/lib/esm/duet-chip.entry.js +3 -3
- package/lib/esm/duet-choice_2.entry.js +6 -6
- package/lib/esm/duet-collapsible.entry.js +17 -8
- package/lib/esm/duet-combobox.entry.js +4 -4
- package/lib/esm/duet-contact-card.entry.js +3 -3
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +8 -8
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +6 -5
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +10 -6
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +23 -10
- package/lib/esm/duet-header_2.entry.js +4 -4
- package/lib/esm/duet-hero.entry.js +18 -11
- package/lib/esm/duet-icon.entry.js +3 -3
- package/lib/esm/duet-indicator.entry.js +2 -2
- package/lib/esm/duet-input_2.entry.js +22 -23
- package/lib/esm/duet-layout.entry.js +2 -2
- package/lib/esm/duet-list_2.entry.js +2 -2
- package/lib/esm/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-menu-bar-item.entry.js +5 -5
- package/lib/esm/duet-menu-bar-link.entry.js +2 -2
- package/lib/esm/duet-menu-bar.entry.js +4 -4
- package/lib/esm/duet-modal.entry.js +26 -14
- 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 +3 -3
- package/lib/esm/duet-number-input.entry.js +6 -6
- package/lib/esm/duet-overlay.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +3 -3
- package/lib/esm/duet-pagination_2.entry.js +4 -4
- package/lib/esm/duet-panel.entry.js +3 -3
- package/lib/esm/duet-phone-input.entry.js +4 -4
- package/lib/esm/duet-popup-menu_2.entry.js +4 -4
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +4 -4
- package/lib/esm/duet-radio_2.entry.js +4 -4
- package/lib/esm/duet-range-slider.entry.js +4 -4
- package/lib/esm/duet-scrollable_3.entry.js +5 -5
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +9 -9
- package/lib/esm/duet-shaped-image.entry.js +2 -2
- package/lib/esm/duet-share-chart-item.entry.js +1 -1
- package/lib/esm/duet-share-chart.entry.js +5 -5
- package/lib/esm/duet-show-more.entry.js +3 -3
- package/lib/esm/duet-slideout-lang.entry.js +3 -3
- package/lib/esm/duet-slideout-link.entry.js +5 -5
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +2 -2
- package/lib/esm/duet-slideout-panel.entry.js +6 -6
- package/lib/esm/duet-slideout.entry.js +6 -6
- package/lib/esm/duet-status-icon.entry.js +1 -1
- package/lib/esm/duet-step_2.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +3 -3
- package/lib/esm/duet-textarea.entry.js +8 -8
- package/lib/esm/duet-toggle.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-toolbar-dropdown.entry.js +2 -2
- package/lib/esm/duet-toolbar-item.entry.js +5 -5
- package/lib/esm/duet-toolbar-link.entry.js +2 -2
- package/lib/esm/duet-toolbar.entry.js +2 -2
- package/lib/esm/duet-tooltip-button_2.entry.js +3 -3
- package/lib/esm/duet-tooltip.entry.js +4 -4
- package/lib/esm/duet-tray.entry.js +3 -3
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-upload-item.entry.js +4 -4
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-6V_f8y5q.js → errorcodes.utils-DMBhYFft.js} +1 -1
- package/lib/esm/{focus-utils-CErdQceY.js → focus-utils-CKJz94Qb.js} +1 -1
- package/lib/esm/{index-vt84lkeQ.js → index-Cg-Sy7Qf.js} +1 -1
- package/lib/esm/{label-BosP5JdK.js → label-CiT_iRKt.js} +1 -1
- package/lib/esm/{language-utils-B9dLrWKg.js → language-utils-CQS4gIfI.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-BZXZ33TK.js → slot-utils-BtxgUznn.js} +1 -1
- package/lib/esm/{themeable-component-CsnFpp6R.js → themeable-component-C76K02P9.js} +1 -1
- package/lib/esm/{token-utils-BGFYWQ6j.js → token-utils-C-c-tsXV.js} +7 -4
- package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
- package/lib/types/components/duet-grid/duet-grid.d.ts +5 -3
- package/lib/types/components/duet-hero/duet-hero.d.ts +2 -0
- package/lib/types/components/duet-input/duet-input.d.ts +5 -10
- package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +1 -0
- package/lib/types/components.d.ts +24 -4
- package/package.json +3 -3
- package/lib/duet/p-26146512.entry.js +0 -4
- package/lib/duet/p-3d3aff4c.entry.js +0 -4
- package/lib/duet/p-46eaee49.entry.js +0 -4
- package/lib/duet/p-537d3b11.entry.js +0 -4
- package/lib/duet/p-61105f0d.entry.js +0 -4
- package/lib/duet/p-950c4ec0.entry.js +0 -4
- package/lib/duet/p-Cq7Ixl9a.js +0 -4
- package/lib/duet/p-DejMEymG.js +0 -4
- package/lib/duet/p-Dr2j33H2.js +0 -4
- package/lib/duet/p-G09pKpI-.js +0 -4
- package/lib/duet/p-aWO-HcmJ.js +0 -4
- package/lib/duet/p-b2780442.entry.js +0 -4
- package/lib/duet/p-babbf633.entry.js +0 -4
- package/lib/duet/p-c516bf93.entry.js +0 -4
- package/lib/duet/p-c588fc15.entry.js +0 -4
- package/lib/duet/p-cbedc26b.entry.js +0 -4
- package/lib/duet/p-f46480c6.entry.js +0 -4
- package/lib/duet/p-fd989bd6.entry.js +0 -4
|
@@ -171,7 +171,7 @@ export class DuetModal {
|
|
|
171
171
|
this.duetClose.emit();
|
|
172
172
|
this.teleport.removeInertFromSiblings();
|
|
173
173
|
if (this.focusElementOnClose !== "") {
|
|
174
|
-
setTimeout(() => {
|
|
174
|
+
setTimeout(async () => {
|
|
175
175
|
let focusEl = this.focusedElBeforeOpen;
|
|
176
176
|
if (typeof this.focusElementOnClose === "string") {
|
|
177
177
|
focusEl = document.getElementById(this.focusElementOnClose) || focusEl;
|
|
@@ -179,6 +179,18 @@ export class DuetModal {
|
|
|
179
179
|
else {
|
|
180
180
|
focusEl = this.focusElementOnClose || focusEl;
|
|
181
181
|
}
|
|
182
|
+
if (focusEl.tagName.toLowerCase() === "duet-popup-menu-item") {
|
|
183
|
+
const menu = focusEl.closest("duet-popup-menu");
|
|
184
|
+
const isOpen = await menu.isOpen();
|
|
185
|
+
if (!isOpen && menu.controller) {
|
|
186
|
+
if (typeof menu.controller === "string") {
|
|
187
|
+
focusEl = document.getElementById(menu.controller);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
focusEl = menu.controller;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
182
194
|
focusElement(focusEl);
|
|
183
195
|
}, TRANSITION_MS);
|
|
184
196
|
}
|
|
@@ -326,14 +338,14 @@ export class DuetModal {
|
|
|
326
338
|
var _a, _b;
|
|
327
339
|
const iconColor = postfixTheme("primary", this.theme);
|
|
328
340
|
const closeColor = postfixTheme("secondary", this.theme);
|
|
329
|
-
const closingButton = (h("div", { key: '
|
|
330
|
-
return (h("div", { key: '
|
|
341
|
+
const closingButton = (h("div", { key: 'c025f6cdd3a46f67dabf96a33953cf975a4b7d23', class: "duet-modal-close" }, h("duet-button", { key: '07adb7bd15b71826eea2c5fe8fdd9675c34b10a2', 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 })));
|
|
342
|
+
return (h("div", { key: '34d84de0dff1153e1fa04d8b2d568edd06ed92a1', 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: {
|
|
331
343
|
"duet-modal-container": true,
|
|
332
344
|
"duet-theme-turva": this.theme === "turva",
|
|
333
345
|
"duet-modal-active": this.open,
|
|
334
346
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
335
347
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
336
|
-
} }, h("duet-overlay", { key: '
|
|
348
|
+
} }, h("duet-overlay", { key: '94c016b5e1d57159562e7b7bc75203976d56c133', "z-index": "-1", visible: this.open, variation: this.variation === "loader" ? "white" : "default" }), h("div", { key: 'fb081fde606dbe819fbd9f4dd85928e06b73fc4b', ref: modalInner => (this.modalInnerEl = modalInner), class: {
|
|
337
349
|
"duet-modal-inner": true,
|
|
338
350
|
[this.size]: true,
|
|
339
351
|
"duet-modal-slide-up": this.variation === "slide-up",
|
|
@@ -344,22 +356,22 @@ export class DuetModal {
|
|
|
344
356
|
this.closeModal(e);
|
|
345
357
|
}
|
|
346
358
|
}
|
|
347
|
-
} }, h("div", { key: '
|
|
359
|
+
} }, h("div", { key: '35ff01594b4d85fae78d7ad2dda042d4b6fe3f18', ref: modalContentEl => (this.modalContentEl = modalContentEl), "aria-live": this.accessibleAnnounceChanges === "all" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "all" ? "true" : null, class: {
|
|
348
360
|
"duet-modal": true,
|
|
349
361
|
"duet-modal-has-sticky-header": this.hasStickyHeader,
|
|
350
362
|
[this.size]: true,
|
|
351
363
|
[this.variation]: true,
|
|
352
|
-
} }, this.gutterSize !== "none" && !this.hasStickyHeader && h("duet-spacer", { key: '
|
|
364
|
+
} }, this.gutterSize !== "none" && !this.hasStickyHeader && h("duet-spacer", { key: '79e1b71a87689e6b8509b859836f039c9fef0a76' }), this.hasStickyHeader ? (h("div", { class: "duet-modal-sticky-header" }, closingButton, h("slot", { name: "sticky-header" }))) : (closingButton), h("div", { key: '86c37c55bd8a7738e4a859815f24ee06fefcb53d', class: {
|
|
353
365
|
"duet-modal-body": true,
|
|
354
366
|
"duet-modal-gutter-none": this.gutterSize === "none",
|
|
355
367
|
"duet-modal-gutter-small": this.gutterSize === "small",
|
|
356
368
|
"duet-modal-gutter-medium": this.gutterSize === "medium",
|
|
357
369
|
"duet-modal-gutter-large": this.gutterSize === "large",
|
|
358
|
-
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, h("div", { key: '
|
|
370
|
+
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, h("div", { key: 'eddd353009b508fe5ecd04aa866f076a064626de', class: "duet-modal-header" }, h("span", { key: '696ad960d20a5e5bf68dc9ec9da5d59773accf10', class: "duet-modal-inner-slot-top" }, h("slot", { key: '28f0677621250a3da6899f055ba374dd78a17a35', name: "top" })), this.icon && h("duet-icon", { key: '7b9e797b9f5296effdfc0beaac29be90e0310436', name: this.icon, size: "xx-large", color: this.color || iconColor }), this.heading && (h("duet-heading", { key: 'ba31f51f36989421ecb8f741b285d7d2638f2f7a', "visual-level": (_b = this.headingVisualLevel) !== null && _b !== void 0 ? _b : this.headingLevel, level: this.headingLevel, theme: this.theme }, this.heading))), this.variation === "loader" && (h("div", { key: '2bae6fedd2f1ab7b40264c2d6c3b4f69f9627d2c', class: "duet-modal-spinner" }, h("duet-spinner", { key: 'd5f27b579909233f930b09251b7faa6fd7d35a78', size: "large", color: postfixTheme("primary", this.theme) }))), h("div", { key: '80dc7b4389d406fc348351678e2c234f17c22259', "aria-live": this.variation === "loader"
|
|
359
371
|
? "assertive"
|
|
360
372
|
: this.accessibleAnnounceChanges === "body"
|
|
361
373
|
? "polite"
|
|
362
|
-
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, h("slot", { key: '
|
|
374
|
+
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, h("slot", { key: 'fc0270b2ceb540d2e2015ba9131dcd46f01c702e' })))))));
|
|
363
375
|
}
|
|
364
376
|
static get is() { return "duet-modal"; }
|
|
365
377
|
static get encapsulation() { return "shadow"; }
|
|
@@ -273,23 +273,23 @@ export class DuetMultiselect {
|
|
|
273
273
|
*/
|
|
274
274
|
render() {
|
|
275
275
|
var _a;
|
|
276
|
-
return (h(Host, { key: '
|
|
276
|
+
return (h(Host, { key: '67ddcbeb2bcf7fd5b4c147097c5cabfba3613950', class: {
|
|
277
277
|
"duet-m-0": this.margin === "none",
|
|
278
278
|
"duet-expand": this.expand,
|
|
279
|
-
} }, h("div", { key: '
|
|
279
|
+
} }, h("div", { key: 'a54d376060dfbddff29662ae568673f2aead4a5a', class: {
|
|
280
280
|
"duet-multiselect-container": true,
|
|
281
281
|
"duet-label-hidden": this.labelHidden,
|
|
282
282
|
"duet-theme-turva": this.theme === "turva",
|
|
283
283
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
284
284
|
"has-error": !!this.error,
|
|
285
|
-
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, h(DuetInternalLabel, { key: '
|
|
285
|
+
}, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, h(DuetInternalLabel, { key: '28d4d354951615891335fc0ea72267a95402b2a9', 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 && (h("duet-tooltip", { key: '4abf88e4efcaa7d8ac7d3761389d291fb737bb90', class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: 'd0fbab3c690c4c1049d402425942358644675442', name: "tooltip" }), this.caption && (h("duet-caption", { key: '80c6e3987c3d532129b62b8a101624a9650aa57d', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: 'fd7d501c4304a998f90203a0fef97f69659d5aa6', class: "duet-multiselect-wrapper" }, h("button", { key: 'ab72d3ec292db9a86e2e165db427702697043d23', 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 }, h("span", { key: '541f6bb2d46d313b0820aa608f3e8595e4d9d709', 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 && (h("span", { key: '9de6b81f34e6b79bbe3f6d8cf825378a9cb1b840', class: "duet-multiselect-badge" }, this.value.length, h("duet-visually-hidden", { key: 'c92f7fb9a3d4e14fbb655c1fb87250e9c69d5e01' }, this.selectedLangObject[this.language], ",", " ", Array.isArray(this.value) ? this.value.map(item => item.label).join(", ") : ""))), h("svg", { key: '210050ff44ce316b94dbaa156a7dffc7e4b65f3b', 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" }, h("path", { key: '85ba92d7e5a4130d1bfa809e539132afe34d6d32', 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" }))), h("div", { key: 'b38ee820cc9e9340d0b369d7b52176567d628228', id: `${this.identifier}-checkboxes`, role: "listbox", class: {
|
|
286
286
|
"duet-multiselect-checkboxes": true,
|
|
287
287
|
"duet-multiselect-checkboxes-active": this.checkboxesVisible,
|
|
288
|
-
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (h("div", { key: '
|
|
288
|
+
}, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, ((_a = this.processedItems) === null || _a === void 0 ? void 0 : _a.length) && this.allControls && (h("div", { key: 'cecb7f5fb535c40313928e7dffd071ead9b74d0e', class: "duet-multiselect-all-control-buttons" }, h("button", { key: '34d051c56097c082c42e05c2f699e1f62bd4f238', class: "duet-multiselect-select-all", onClick: this.handleSelectAllClick, id: this.getOptionIdentifier(-2), onKeyDown: (e) => this.onCheckboxKeyDown(e, -2) }, this.selectAllLabel[this.language]), h("button", { key: '3ec52e1f61e9ac1f6fd5c9b0d35d8525c28ffbf4', class: "duet-multiselect-clear-all", onClick: this.handleClearAllClick, id: this.getOptionIdentifier(-1), onKeyDown: (e) => this.onCheckboxKeyDown(e, -1) }, this.clearAllLabel[this.language]))), this.processedItems &&
|
|
289
289
|
this.processedGroups.map(group => (h("fieldset", null, group.label && h("legend", null, group.label), group.items.map((item, key) => {
|
|
290
290
|
var _a, _b;
|
|
291
291
|
return (h("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 }));
|
|
292
|
-
})))))), h("span", { key: '
|
|
292
|
+
})))))), h("span", { key: 'd2d8ae7ca08a4cfd5ea9c2bc5cca2b62ddb13cf9', class: "duet-multiselect-help duet-multiselect-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: '180fb990985b0564ce82c53d3b3901552a529108' }, this.error)))));
|
|
293
293
|
}
|
|
294
294
|
static get is() { return "duet-multiselect"; }
|
|
295
295
|
static get encapsulation() { return "shadow"; }
|
|
@@ -348,7 +348,7 @@ export class DuetMultiselect {
|
|
|
348
348
|
},
|
|
349
349
|
"getter": false,
|
|
350
350
|
"setter": false,
|
|
351
|
-
"reflect":
|
|
351
|
+
"reflect": true,
|
|
352
352
|
"defaultValue": "\"\""
|
|
353
353
|
},
|
|
354
354
|
"accessibleLiveError": {
|
|
@@ -391,11 +391,11 @@ export class DuetNumberInput {
|
|
|
391
391
|
const identifier = this.identifier || this.inputId;
|
|
392
392
|
const maxlength = `${this.localizeValue(this.max)}${this.getUnitString()}`.length;
|
|
393
393
|
const cleanedValue = !!this.value ? SafeParseFloat(this.value, this.locale) : null;
|
|
394
|
-
return (h(Host, { key: '
|
|
394
|
+
return (h(Host, { key: '238b4be322c64eeb2ad779617a1b5cc7b5185bb9', class: {
|
|
395
395
|
"duet-theme-turva": this.theme === "turva",
|
|
396
396
|
"duet-expand": this.expand,
|
|
397
397
|
"duet-m-0": this.margin === "none",
|
|
398
|
-
} }, h("div", { key: '
|
|
398
|
+
} }, h("div", { key: '9226593291fc8c8b5c1d3a9dc58882d960e2d563', class: "duet-number-container" }, h("duet-input", { key: '3946db15d60ce52debcd986b4606d617e263a1b3', 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 }, h("slot", { key: 'c61230be816c479bfe6b18c45f822888c5aa4e70', name: "tooltip" }), h("div", { key: '11440983439e723525666d658db5f4b5ac39980c', class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, h("button", { key: '17ae7a71c8ad6e3d8cb662fb00612abf80c1af77', 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" }, h("duet-visually-hidden", { key: 'f8a8a0a2f886746f73f3bd92a6e6936fd0703cea' }, this.accessibleSubtract, " ", this.step), h("duet-icon", { key: 'fdc8f88ae3a53fa28c1a35d6eea40abdc16059b1', icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), h("button", { key: 'bffe46f71c030e615ffab560100c58ab432ab473', disabled: this.disabled, "aria-disabled": cleanedValue === this.max ? "true" : "false", class: "duet-number-button duet-number-button-add", onClick: this.add, type: "button" }, h("duet-visually-hidden", { key: '836ff349ced5ca5fa0c4559ca429c90603e53ed2' }, this.accessibleAdd, " ", this.step), h("duet-icon", { key: '4468b28ee8bdefaf4b7a02db3996efca23c5870c', icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (h("duet-visually-hidden", { key: '9a0005f7f8713f9dfc54297f2fc5ee4948b7e0c3', "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
|
|
399
399
|
}
|
|
400
400
|
static get is() { return "duet-number-input"; }
|
|
401
401
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1040,7 +1040,7 @@ export class DuetNumberInput {
|
|
|
1040
1040
|
},
|
|
1041
1041
|
"getter": false,
|
|
1042
1042
|
"setter": false,
|
|
1043
|
-
"reflect":
|
|
1043
|
+
"reflect": true,
|
|
1044
1044
|
"defaultValue": "\"\""
|
|
1045
1045
|
},
|
|
1046
1046
|
"tooltip": {
|
|
@@ -48,7 +48,7 @@ export class DuetPageHeading {
|
|
|
48
48
|
"duet-theme-turva": this.theme === "turva",
|
|
49
49
|
"has-icon": !!this.icon,
|
|
50
50
|
[layout]: true,
|
|
51
|
-
} }, h("div", { key: 'b8a5a752d4557b2ac2ac2bfc1c2e65861d4c0521', class: "background" }, this.theme === "turva" && h("div", { key: 'ff9cbab91c325792d84f24d227d67b5bd2f83401', class: "background-mask" }), this.theme !== "turva" && h("div", { key: 'c697b3df64c3300caccb801818e16e0f82be19b4', class: "brand-shape" }), this.theme !== "turva" && h("div", { key: '86bea79fd3c261f4042b7f55129cf5b3e2bbcc20', class: "brand-shape second-shape" }), this.icon && (h("div", { key: 'f95cb3034647398542c7eac251e3a8ee589fde3c', class: "brand-shaped-icon" }, h("duet-icon", { key: '5ea162f55f426e4fb23d062c42b452f9d02dd8db', background: "none", name: this.icon, margin: "none", size: "auto", responsive: false })))), h("div", { key: 'ca049bcfa7903693dcd81e7053f9c8436f5bc972', class: "heading" }, h("slot", { key: '1f11d60c4883d6a083ab58a3549230893373a4b0', name: "heading" }), this.progressCurrentStep && this.progressTotalSteps && (h("div", { key: '
|
|
51
|
+
} }, h("div", { key: 'b8a5a752d4557b2ac2ac2bfc1c2e65861d4c0521', class: "background" }, this.theme === "turva" && h("div", { key: 'ff9cbab91c325792d84f24d227d67b5bd2f83401', class: "background-mask" }), this.theme !== "turva" && h("div", { key: 'c697b3df64c3300caccb801818e16e0f82be19b4', class: "brand-shape" }), this.theme !== "turva" && h("div", { key: '86bea79fd3c261f4042b7f55129cf5b3e2bbcc20', class: "brand-shape second-shape" }), this.icon && (h("div", { key: 'f95cb3034647398542c7eac251e3a8ee589fde3c', class: "brand-shaped-icon" }, h("duet-icon", { key: '5ea162f55f426e4fb23d062c42b452f9d02dd8db', background: "none", name: this.icon, margin: "none", size: "auto", responsive: false })))), h("div", { key: 'ca049bcfa7903693dcd81e7053f9c8436f5bc972', class: "heading" }, h("slot", { key: '1f11d60c4883d6a083ab58a3549230893373a4b0', name: "heading" }), this.progressCurrentStep !== undefined && this.progressTotalSteps > 0 && (h("div", { key: '3d192a48b6d2f852c76bb4cca92a6bd260c89b6d' }, h("duet-spacer", { key: 'ae3a5aa598bca7741ddeefb498ad03a00f01ffa1', size: "large" }), h("div", { key: '145b65c13423049136df5afff6d6f0b75fceeff2', role: "presentation" }, this.progressIndicator()))))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "duet-page-heading"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* stylelint-disable scss/at-rule-no-unknown */
|
|
1
2
|
:host {
|
|
2
3
|
box-sizing: border-box;
|
|
3
4
|
padding: 0;
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
width: 100%;
|
|
13
14
|
margin: 8px 0 20px 0;
|
|
14
15
|
}
|
|
15
|
-
@
|
|
16
|
+
@container (width > 36em) {
|
|
16
17
|
:host {
|
|
17
18
|
margin: 12px 0 28px 0;
|
|
18
19
|
}
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
padding: 16px;
|
|
38
39
|
border-radius: 12px;
|
|
39
40
|
}
|
|
40
|
-
@
|
|
41
|
+
@container (width > 36em) {
|
|
41
42
|
.duet-panel.padding-small {
|
|
42
43
|
padding: 20px;
|
|
43
44
|
}
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
.duet-panel.padding-medium {
|
|
46
47
|
padding: 20px;
|
|
47
48
|
}
|
|
48
|
-
@
|
|
49
|
+
@container (width > 36em) {
|
|
49
50
|
.duet-panel.padding-medium {
|
|
50
51
|
padding: 28px;
|
|
51
52
|
}
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
.duet-panel.padding-large {
|
|
54
55
|
padding: 28px;
|
|
55
56
|
}
|
|
56
|
-
@
|
|
57
|
+
@container (width > 36em) {
|
|
57
58
|
.duet-panel.padding-large {
|
|
58
59
|
padding: 36px;
|
|
59
60
|
}
|
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
50
50
|
color: rgb(23, 28, 58);
|
|
51
51
|
}
|
|
52
|
+
.duet-paragraph.duet-inherit-color {
|
|
53
|
+
color: inherit !important;
|
|
54
|
+
}
|
|
52
55
|
.duet-paragraph.duet-paragraph-small {
|
|
53
56
|
font-size: 0.875rem;
|
|
54
57
|
}
|
|
@@ -11,6 +11,7 @@ import { getColorByName } from "../../utils/token-utils";
|
|
|
11
11
|
export class DuetParagraph {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.id = createID("duet-paragraph");
|
|
14
|
+
this.inheritingParents = ["duet-alert"];
|
|
14
15
|
/**
|
|
15
16
|
* Theme of the paragraph.
|
|
16
17
|
*/
|
|
@@ -51,7 +52,7 @@ export class DuetParagraph {
|
|
|
51
52
|
const color = getColorByName(this.color);
|
|
52
53
|
// aria-describedby is to fix accessibility issue in Chrome where duet-paragraphs
|
|
53
54
|
// are not announced when placed inside duet-modal
|
|
54
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '9ab8938bc5ed0af6161d83fd61c238aedfe72407', "aria-describedby": this.id }, h("p", { key: 'eb5de4278351c95fd0fabac7f94b2e268b788667', id: this.id, class: {
|
|
55
56
|
"duet-paragraph": true,
|
|
56
57
|
"duet-paragraph-small": this.size === "small",
|
|
57
58
|
"duet-paragraph-semi-bold": this.weight === "semi-bold",
|
|
@@ -59,7 +60,8 @@ export class DuetParagraph {
|
|
|
59
60
|
"duet-m-0": this.margin === "none",
|
|
60
61
|
[this.variation]: true,
|
|
61
62
|
"duet-theme-turva": this.theme === "turva",
|
|
62
|
-
|
|
63
|
+
"duet-inherit-color": !this.color && this.inheritingParents.some(p => this.element.closest(p)),
|
|
64
|
+
}, style: { color }, part: "duet-paragraph" }, h("slot", { key: '87b1d333d52ac248b6f9bf534ab98f29b115b25e' }))));
|
|
63
65
|
}
|
|
64
66
|
static get is() { return "duet-paragraph"; }
|
|
65
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -158,7 +158,7 @@ export class DuetRadioGroup {
|
|
|
158
158
|
* Always the last one in the class.
|
|
159
159
|
*/
|
|
160
160
|
render() {
|
|
161
|
-
return (h(Host, { key: '
|
|
161
|
+
return (h(Host, { key: 'c9c42e3d578a64ec328ad0b1aad6e9c3906dcc2b', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, h("duet-fieldset", { key: '6a38b0a95734aea6320ec9bb63cebc7a11279990', 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 && (h("duet-tooltip", { key: '3f9d7aa7e79c08a743cd575d5a22542e3f89b26f', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '2a3125a48b3ebd4bc37cf127719ca0be1604e911', name: "tooltip" }), h("div", { key: 'c81542f71fe22646f761dab6fb2864c7fa269f48', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, h("slot", { key: '5ff585a7895db4ad56916a1a7bc06bdc6915dc0e' })))));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "duet-radio-group"; }
|
|
164
164
|
static get encapsulation() { return "shadow"; }
|
|
@@ -269,7 +269,7 @@ export class DuetRadioGroup {
|
|
|
269
269
|
},
|
|
270
270
|
"getter": false,
|
|
271
271
|
"setter": false,
|
|
272
|
-
"reflect":
|
|
272
|
+
"reflect": true,
|
|
273
273
|
"defaultValue": "\"\""
|
|
274
274
|
},
|
|
275
275
|
"tooltip": {
|
|
@@ -200,23 +200,23 @@ export class DuetSelect {
|
|
|
200
200
|
*/
|
|
201
201
|
render() {
|
|
202
202
|
const identifier = this.identifier || this.selectId;
|
|
203
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: 'a00ff9414c52c0db96b33b3b7fdf059ec86acfe5', onClick: this.onClick, class: {
|
|
204
204
|
"duet-m-0": this.margin === "none",
|
|
205
205
|
"duet-expand": this.expand,
|
|
206
206
|
[`duet-select-variation-${this.variation}`]: true,
|
|
207
|
-
} }, h("div", { key: '
|
|
207
|
+
} }, h("div", { key: 'f35c3ed30822b3ebe4d413f49e1400e20a46712d', class: {
|
|
208
208
|
"duet-select-container": true,
|
|
209
209
|
"duet-label-hidden": this.labelHidden,
|
|
210
210
|
"duet-theme-turva": this.theme === "turva",
|
|
211
211
|
[`duet-select-variation-${this.variation}`]: true,
|
|
212
212
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
213
213
|
"has-error": !!this.error,
|
|
214
|
-
} }, h(DuetInternalLabel, { key: '
|
|
214
|
+
} }, h(DuetInternalLabel, { key: 'fd43aa0091f7da7fac00aadba0acc92be0c5d952', 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 && (h("duet-tooltip", { key: '5b2515db85ff5d701ebff47fd4019d33cf473fd5', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '2e05ecb6a0a98b5bc61e2f376ba5fcbf9118edf9', name: "tooltip" }), this.caption && (h("duet-caption", { key: 'e841d3bccb810f16f78ebbc2b77506ba34ad7c61', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: '2e1b71e200d5cae0811c21ea6c8d1199da2f654c', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: '23c77b3402c8301dfa7ccc9be11a384597bb2ef9', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), h("slot", { key: '09854808d5dfd54f24a19ced9de94ab111e1dd8a' }), h("select", { key: 'a147ce96f44d928041c7e7f382e754b6ab204b29', 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 && (h("option", { key: 'b886953f516a374b6e7078d32e3c221cdbda631b', disabled: true, selected: true, value: "" }, this.placeholder)), !this.processedItems ? (h("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
|
|
215
215
|
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
216
|
-
}))), h("div", { key: '
|
|
216
|
+
}))), h("div", { key: 'd49342461c777cfaddc460472b253a9485f2beac', class: {
|
|
217
217
|
"duet-select": true,
|
|
218
218
|
[`duet-select-variation-${this.variation}`]: true,
|
|
219
|
-
}, "aria-hidden": "true" }, h("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (h("svg", { key: '
|
|
219
|
+
}, "aria-hidden": "true" }, h("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (h("svg", { key: '99b037a310acccad7ece3a7f9e0d2871dc2f7855', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '2729d72292cf8bf37346ff6fa788e97a0e4f048e', 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" })))) || (h("duet-icon", { key: 'de52df34bc3806211ac281a1b99c17eeb57ffb18', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), h("span", { key: 'e51f276c829420868782720aaee2a095c55a2dc7', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), h("span", { key: 'edd762e2bb0316b8b449520c81df47a0e3a65591', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", { key: 'b39b6f71ff3c12cd636226bc882cb38061ee1d93', class: "duet-select-error" }, this.error)))));
|
|
220
220
|
}
|
|
221
221
|
static get is() { return "duet-select"; }
|
|
222
222
|
static get encapsulation() { return "shadow"; }
|
|
@@ -377,7 +377,7 @@ export class DuetSelect {
|
|
|
377
377
|
},
|
|
378
378
|
"getter": false,
|
|
379
379
|
"setter": false,
|
|
380
|
-
"reflect":
|
|
380
|
+
"reflect": true,
|
|
381
381
|
"defaultValue": "\"\""
|
|
382
382
|
},
|
|
383
383
|
"accessibleLiveError": {
|
|
@@ -230,17 +230,17 @@ export class DuetTextarea {
|
|
|
230
230
|
*/
|
|
231
231
|
render() {
|
|
232
232
|
const identifier = this.identifier || this.textareaId;
|
|
233
|
-
return (h(Host, { key: '
|
|
233
|
+
return (h(Host, { key: '624bdcddb58e1530c51ac379e2d274001b816883', class: {
|
|
234
234
|
"duet-m-0": this.margin === "none",
|
|
235
235
|
"duet-has-counter": this.counter && !this.error,
|
|
236
236
|
"duet-expand": this.expand,
|
|
237
|
-
} }, h("div", { key: '
|
|
237
|
+
} }, h("div", { key: '7052a9e19e9394d91343b9c356317706491483e4', class: {
|
|
238
238
|
"duet-textarea-container": true,
|
|
239
239
|
"duet-theme-turva": this.theme === "turva",
|
|
240
240
|
"duet-label-hidden": this.labelHidden,
|
|
241
241
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
242
242
|
"has-error": !!this.error,
|
|
243
|
-
} }, h(DuetInternalLabel, { key: '
|
|
243
|
+
} }, h(DuetInternalLabel, { key: 'f485a02ef392a81b6ce9675943b97589ab104787', 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 && (h("duet-tooltip", { key: '2c6ad7e4e904a8296cd78c10f44b4059766fb6e8', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), h("slot", { key: 'a9574cd2fe26c7aae531900b941b9f599bbf4cbb', name: "tooltip" }), this.caption && (h("duet-caption", { key: '37ff8e38f41f97d150a8ded794acd5134cf396dd', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), h("div", { key: '91d6f9e0aff8fa8cb1eb700cc8e942a761171427', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: 'f11e135d88137d819fefae10d48df76927122d5e', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), h("textarea", { key: '21d58de3abc2c2befac4c05ba19ecc24931ff873', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), h("duet-grid", { key: '5e20d51637a82792cc21934cd1047db4926f16c8', alignment: "stretch" }, h("duet-grid-item", { key: 'd661c25567e85f2371e473d41444e024f8396f3d', margin: "none", fill: true }, h("div", { key: '6953975b58cf0abb73c6577ad7a78ba46e88230b', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: 'a3609f7dfffead70a15375479ab2223f78eb3e50' }, this.error))), h("duet-grid-item", { key: 'c249410eedf7c2f384f9ce32ac03aeb29936a594', margin: "none", class: "duet-character-count-caption" }, this.counter && (h(CharacterCount, { key: 'abd891c68360549dd3c1a9ee0ff3dbeec5104049', theme: this.theme, value: this.value, maxlength: this.maxlength, label: this.counterLabel })))), this.counter && (h("duet-visually-hidden", { key: '45e036b9eb30379561d79b4822902ef31719a26e', class: "duet-visually-hidden", id: this.characterCountId, ref: el => {
|
|
244
244
|
this.hiddenCounterLabel = el;
|
|
245
245
|
} })))));
|
|
246
246
|
}
|
|
@@ -780,7 +780,7 @@ export class DuetTextarea {
|
|
|
780
780
|
},
|
|
781
781
|
"getter": false,
|
|
782
782
|
"setter": false,
|
|
783
|
-
"reflect":
|
|
783
|
+
"reflect": true,
|
|
784
784
|
"defaultValue": "\"\""
|
|
785
785
|
},
|
|
786
786
|
"validity": {
|
|
@@ -87,11 +87,11 @@ export function getColorByName(name, theme = "") {
|
|
|
87
87
|
if ((theme === "turva" || name.endsWith("-turva")) && isTurva2()) {
|
|
88
88
|
switch (name.replace(/-turva$/, "")) {
|
|
89
89
|
case "primary-lightest":
|
|
90
|
-
return turva2ColorTokens["color-
|
|
90
|
+
return turva2ColorTokens["color-turva-nude-00"];
|
|
91
91
|
case "primary-lighter":
|
|
92
|
-
return turva2ColorTokens["color-
|
|
92
|
+
return turva2ColorTokens["color-turva-nude-50"];
|
|
93
93
|
case "primary-light":
|
|
94
|
-
return turva2ColorTokens["color-
|
|
94
|
+
return turva2ColorTokens["color-turva-nude-200"];
|
|
95
95
|
case "primary":
|
|
96
96
|
return turva2ColorTokens["color-turva2-red-600"];
|
|
97
97
|
case "primary-darker":
|