@duetds/components 10.0.0-alpha.30 → 10.0.0-alpha.31
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 +110 -90
- package/hydrate/index.mjs +110 -90
- package/lib/cjs/{a11y-utils-D2e4DE4A.js → a11y-utils-DDfmTUFZ.js} +1 -1
- package/lib/cjs/{app-globals-P2FPiN9v.js → app-globals-BUWupN9p.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +4 -4
- package/lib/cjs/duet-banner.cjs.entry.js +14 -8
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +3 -3
- package/lib/cjs/duet-button_2.cjs.entry.js +13 -24
- package/lib/cjs/duet-callout.cjs.entry.js +3 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +6 -6
- package/lib/cjs/duet-card.cjs.entry.js +7 -7
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
- package/lib/cjs/duet-chip.cjs.entry.js +4 -4
- package/lib/cjs/duet-choice_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
- package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +4 -4
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +3 -3
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +5 -5
- package/lib/cjs/duet-grid_2.cjs.entry.js +7 -6
- package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-hero.cjs.entry.js +15 -9
- package/lib/cjs/duet-icon.cjs.entry.js +2 -2
- package/lib/cjs/duet-indicator.cjs.entry.js +12 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +5 -5
- 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 +3 -3
- package/lib/cjs/duet-modal.cjs.entry.js +7 -7
- package/lib/cjs/duet-multiselect.cjs.entry.js +6 -6
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +13 -6
- package/lib/cjs/duet-number-input.cjs.entry.js +5 -5
- package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +2 -2
- package/lib/cjs/duet-pagination_2.cjs.entry.js +14 -14
- package/lib/cjs/duet-panel.cjs.entry.js +2 -2
- package/lib/cjs/duet-phone-input.cjs.entry.js +5 -5
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
- package/lib/cjs/duet-radio_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-range-slider.cjs.entry.js +5 -5
- 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 +5 -5
- 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 +4 -4
- 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 +7 -7
- 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 +2 -2
- package/lib/cjs/duet-textarea.cjs.entry.js +6 -6
- package/lib/cjs/duet-toggle.cjs.entry.js +5 -5
- 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 +8 -8
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- 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-B_Hqvx-5.js → errorcodes.utils-HU_3reMl.js} +1 -1
- package/lib/cjs/{focus-utils-B7QfRXd-.js → focus-utils-DHGNKs9U.js} +1 -1
- package/lib/cjs/{index-B1t_Yumd.js → index-CKsfMbRW.js} +1 -1
- package/lib/cjs/{label-e--2ISFA.js → label-DbnS5tex.js} +1 -1
- package/lib/cjs/{language-utils-Ce6b_uA3.js → language-utils-CYOjMfnd.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-C8k-6Rvc.js → slot-utils-D4QyzHw3.js} +1 -1
- package/lib/cjs/{themeable-component-DmPMm0Cz.js → themeable-component-BuC0WY98.js} +1 -1
- package/lib/collection/components/duet-badge/duet-badge.css +3 -0
- package/lib/collection/components/duet-banner/duet-banner.css +24 -4
- package/lib/collection/components/duet-banner/duet-banner.js +29 -4
- package/lib/collection/components/duet-button/duet-button.css +19 -2
- package/lib/collection/components/duet-card/duet-card.css +4 -1
- package/lib/collection/components/duet-card/duet-card.js +22 -3
- package/lib/collection/components/duet-chip/duet-chip.css +3 -0
- package/lib/collection/components/duet-choice/duet-choice.css +9 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +3 -0
- package/lib/collection/components/duet-footer/duet-footer.js +1 -1
- package/lib/collection/components/duet-grid/duet-grid.js +6 -5
- package/lib/collection/components/duet-hero/duet-hero.js +30 -5
- package/lib/collection/components/duet-indicator/duet-indicator.css +4 -0
- package/lib/collection/components/duet-indicator/duet-indicator.js +35 -1
- package/lib/collection/components/duet-link/duet-link.css +3 -0
- package/lib/collection/components/duet-logo/duet-logo.css +3 -0
- package/lib/collection/components/duet-modal/duet-modal.js +2 -2
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +3 -0
- package/lib/collection/components/duet-notification/duet-notification.css +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +9 -2
- package/lib/collection/components/duet-number-input/duet-number-input.css +3 -0
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-phone-input/duet-phone-input.css +3 -0
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +3 -0
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +21 -2
- package/lib/collection/components/duet-radio/duet-radio.css +6 -0
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +3 -0
- package/lib/collection/components/duet-select/duet-select.css +3 -0
- package/lib/collection/components/duet-slideout/duet-slideout.css +9 -12
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +2 -2
- package/lib/collection/components/duet-spinner/duet-spinner.css +5 -14
- package/lib/collection/components/duet-spinner/duet-spinner.js +13 -26
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +1 -15
- package/lib/collection/components/duet-textarea/duet-textarea.css +3 -0
- package/lib/collection/components/duet-toggle/duet-toggle.css +3 -0
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-963f5510.entry.js → p-06db096d.entry.js} +1 -1
- package/lib/duet/{p-3f932150.entry.js → p-0d373228.entry.js} +1 -1
- package/lib/duet/p-15d39d1f.entry.js +4 -0
- package/lib/duet/p-16caa5b6.entry.js +4 -0
- package/lib/duet/{p-67cbf570.entry.js → p-18c37a64.entry.js} +1 -1
- package/lib/duet/p-1e78e2c1.entry.js +4 -0
- package/lib/duet/{p-11dc2ca3.entry.js → p-1ff6c95a.entry.js} +1 -1
- package/lib/duet/{p-5c4687b0.entry.js → p-208c5266.entry.js} +1 -1
- package/lib/duet/{p-2f34aa4c.entry.js → p-22297e2c.entry.js} +1 -1
- package/lib/duet/{p-39e7cc4b.entry.js → p-23ab5f9a.entry.js} +1 -1
- package/lib/duet/p-26948251.entry.js +4 -0
- package/lib/duet/{p-64db9820.entry.js → p-28568a2e.entry.js} +1 -1
- package/lib/duet/p-2892dd48.entry.js +4 -0
- package/lib/duet/{p-da90aae6.entry.js → p-2a1cbe32.entry.js} +1 -1
- package/lib/duet/{p-ba0fc0f3.entry.js → p-309afd7a.entry.js} +1 -1
- package/lib/duet/{p-dceb943b.entry.js → p-3555559c.entry.js} +1 -1
- package/lib/duet/p-391d7483.entry.js +4 -0
- package/lib/duet/{p-52bb0826.entry.js → p-3aecdd96.entry.js} +1 -1
- package/lib/duet/{p-b8e1621d.entry.js → p-3d6a1cbd.entry.js} +1 -1
- package/lib/duet/{p-df64aa65.entry.js → p-4266fbf1.entry.js} +1 -1
- package/lib/duet/{p-ae22406a.entry.js → p-49cec27c.entry.js} +1 -1
- package/lib/duet/p-4a54f0ec.entry.js +4 -0
- package/lib/duet/{p-9fe9aaec.entry.js → p-4a6a79ac.entry.js} +1 -1
- package/lib/duet/p-4b6399eb.entry.js +4 -0
- package/lib/duet/{p-4efa7172.entry.js → p-4e05a8a2.entry.js} +1 -1
- package/lib/duet/{p-3c5f5035.entry.js → p-509d502b.entry.js} +1 -1
- package/lib/duet/{p-835532a3.entry.js → p-534e3e7e.entry.js} +1 -1
- package/lib/duet/{p-9fd3fbde.entry.js → p-53eddd20.entry.js} +1 -1
- package/lib/duet/{p-11303551.entry.js → p-5470d3ee.entry.js} +1 -1
- package/lib/duet/{p-89119c58.entry.js → p-5540e106.entry.js} +1 -1
- package/lib/duet/{p-625bf656.entry.js → p-581bd1e2.entry.js} +1 -1
- package/lib/duet/{p-ac7bf279.entry.js → p-594e10ea.entry.js} +1 -1
- package/lib/duet/{p-c74cd476.entry.js → p-5c0847ed.entry.js} +1 -1
- package/lib/duet/{p-e057762a.entry.js → p-5eaf6c14.entry.js} +1 -1
- package/lib/duet/p-60102fbf.entry.js +4 -0
- package/lib/duet/{p-2f0a1808.entry.js → p-6952b6c4.entry.js} +1 -1
- package/lib/duet/{p-cf054af5.entry.js → p-69fcd700.entry.js} +1 -1
- package/lib/duet/{p-4457a9cc.entry.js → p-7159567b.entry.js} +1 -1
- package/lib/duet/{p-7d8ba1c8.entry.js → p-72c34073.entry.js} +1 -1
- package/lib/duet/{p-52f52f3f.entry.js → p-7587023c.entry.js} +1 -1
- package/lib/duet/{p-9278d908.entry.js → p-75a6c4ea.entry.js} +1 -1
- package/lib/duet/{p-0cf754a3.entry.js → p-76906326.entry.js} +1 -1
- package/lib/duet/{p-0c4bde0e.entry.js → p-7d8a853a.entry.js} +1 -1
- package/lib/duet/{p-9c452a9d.entry.js → p-7def72b6.entry.js} +1 -1
- package/lib/duet/{p-513683f8.entry.js → p-7e14f2af.entry.js} +1 -1
- package/lib/duet/p-82a8d1b8.entry.js +4 -0
- package/lib/duet/{p-d49e4c1a.entry.js → p-83471afa.entry.js} +1 -1
- package/lib/duet/{p-52e64670.entry.js → p-83ea7a2c.entry.js} +1 -1
- package/lib/duet/{p-ea09620e.entry.js → p-8c4cf422.entry.js} +1 -1
- package/lib/duet/{p-c2afba51.entry.js → p-8fc3ee0c.entry.js} +1 -1
- package/lib/duet/{p-d27678ec.entry.js → p-91f53c07.entry.js} +1 -1
- package/lib/duet/{p-653a4f52.entry.js → p-93e08345.entry.js} +1 -1
- package/lib/duet/{p-19c8adaa.entry.js → p-94e4dcc5.entry.js} +1 -1
- package/lib/duet/{p-ec601f3c.entry.js → p-987f395f.entry.js} +1 -1
- package/lib/duet/{p-17b2fad7.entry.js → p-9e0e21eb.entry.js} +1 -1
- package/lib/duet/{p-a22b9c52.entry.js → p-9f038082.entry.js} +1 -1
- package/lib/duet/{p-CZ7vOBA_.js → p-B0SZpElh.js} +1 -1
- package/lib/duet/{p-Bt_DCuTi.js → p-BO8h6fkS.js} +1 -1
- package/lib/duet/p-BVAkfiYN.js +5 -0
- package/lib/duet/p-Bpx9VxA7.js +4 -0
- package/lib/duet/{p-DmZj36y3.js → p-CSVmZZ1n.js} +1 -1
- package/lib/duet/p-D8ISRP9m.js +4 -0
- package/lib/duet/p-J96UYMqg.js +4 -0
- package/lib/duet/{p-64482bf0.entry.js → p-b171fbba.entry.js} +1 -1
- package/lib/duet/{p-14b9af85.entry.js → p-b95c5ccf.entry.js} +1 -1
- package/lib/duet/{p-492d90a6.entry.js → p-b9869df2.entry.js} +1 -1
- package/lib/duet/p-c05e4dae.entry.js +4 -0
- package/lib/duet/{p-ec7bdfaf.entry.js → p-c0942782.entry.js} +1 -1
- package/lib/duet/p-c2ca49c2.entry.js +4 -0
- package/lib/duet/{p-bba12747.entry.js → p-c392eb8d.entry.js} +1 -1
- package/lib/duet/{p-87d63c67.entry.js → p-c6b031aa.entry.js} +1 -1
- package/lib/duet/p-c9000a76.entry.js +4 -0
- package/lib/duet/{p-7ab7b977.entry.js → p-cbc310dc.entry.js} +1 -1
- package/lib/duet/{p-4b4d9bdc.entry.js → p-d3812b9c.entry.js} +1 -1
- package/lib/duet/p-d3edd251.entry.js +4 -0
- package/lib/duet/p-d618c7d5.entry.js +4 -0
- package/lib/duet/p-ddcc5283.entry.js +4 -0
- package/lib/duet/{p-3e08bd06.entry.js → p-e05b9e89.entry.js} +1 -1
- package/lib/duet/{p-6d0a6cef.entry.js → p-e16141aa.entry.js} +1 -1
- package/lib/duet/p-e2a75d7e.entry.js +4 -0
- package/lib/duet/p-e59a56b9.entry.js +4 -0
- package/lib/duet/{p-25bfc839.entry.js → p-e6f0473b.entry.js} +1 -1
- package/lib/duet/{p-9ff0f670.entry.js → p-e71cd888.entry.js} +1 -1
- package/lib/duet/{p-93d1d4cb.entry.js → p-e832a646.entry.js} +1 -1
- package/lib/duet/p-e9a32cd5.entry.js +4 -0
- package/lib/duet/{p-414f4b06.entry.js → p-ea010c0c.entry.js} +1 -1
- package/lib/duet/{p-05b44a92.entry.js → p-ea333ff9.entry.js} +1 -1
- package/lib/duet/{p-4d4f7a6e.entry.js → p-eadd1f00.entry.js} +1 -1
- package/lib/duet/{p-bf4c10ea.entry.js → p-f1e8ef6c.entry.js} +1 -1
- package/lib/duet/{p-4a743428.entry.js → p-f9010948.entry.js} +1 -1
- package/lib/duet/{p-ca8ad275.entry.js → p-fcd416b7.entry.js} +1 -1
- package/lib/duet/{p-81fdf21e.entry.js → p-fe5f6bf5.entry.js} +1 -1
- package/lib/duet/{p-9bdedc1c.entry.js → p-ff8f848e.entry.js} +1 -1
- package/lib/duet/p-s4mQ--kV.js +4 -0
- package/lib/duet/{p-CcCc0HYj.js → p-zqnwKSPV.js} +1 -1
- package/lib/esm/{a11y-utils-CfJGGdQJ.js → a11y-utils-Cm7NmtQF.js} +1 -1
- package/lib/esm/{app-globals-DGW8k4EA.js → app-globals-BfoWvhn6.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +4 -4
- package/lib/esm/duet-banner.entry.js +14 -8
- package/lib/esm/duet-breadcrumb.entry.js +2 -2
- package/lib/esm/duet-breadcrumbs.entry.js +3 -3
- package/lib/esm/duet-button_2.entry.js +13 -24
- package/lib/esm/duet-callout.entry.js +3 -3
- package/lib/esm/duet-caption_4.entry.js +6 -6
- package/lib/esm/duet-card.entry.js +7 -7
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-checkmark.entry.js +2 -2
- package/lib/esm/duet-chip.entry.js +4 -4
- package/lib/esm/duet-choice_2.entry.js +5 -5
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +4 -4
- package/lib/esm/duet-contact-card.entry.js +3 -3
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +6 -6
- package/lib/esm/duet-divider_2.entry.js +2 -2
- package/lib/esm/duet-editable-table_3.entry.js +4 -4
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +3 -3
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +5 -5
- package/lib/esm/duet-grid_2.entry.js +7 -6
- package/lib/esm/duet-header_2.entry.js +4 -4
- package/lib/esm/duet-hero.entry.js +15 -9
- package/lib/esm/duet-icon.entry.js +2 -2
- package/lib/esm/duet-indicator.entry.js +12 -4
- package/lib/esm/duet-input_2.entry.js +5 -5
- 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 +3 -3
- package/lib/esm/duet-modal.entry.js +7 -7
- package/lib/esm/duet-multiselect.entry.js +6 -6
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +13 -6
- package/lib/esm/duet-number-input.entry.js +5 -5
- package/lib/esm/duet-overlay.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +2 -2
- package/lib/esm/duet-pagination_2.entry.js +14 -14
- package/lib/esm/duet-panel.entry.js +2 -2
- package/lib/esm/duet-phone-input.entry.js +5 -5
- package/lib/esm/duet-popup-menu_2.entry.js +6 -6
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +6 -6
- package/lib/esm/duet-radio_2.entry.js +4 -4
- package/lib/esm/duet-range-slider.entry.js +5 -5
- 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 +5 -5
- 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 +4 -4
- 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 +7 -7
- 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 +2 -2
- package/lib/esm/duet-textarea.entry.js +6 -6
- package/lib/esm/duet-toggle.entry.js +5 -5
- 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 +8 -8
- package/lib/esm/duet-toolbar-link.entry.js +2 -2
- package/lib/esm/duet-toolbar.entry.js +4 -4
- 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-qEQnnnLR.js → errorcodes.utils-DCSMydPz.js} +1 -1
- package/lib/esm/{focus-utils-D7bOJ91T.js → focus-utils-C8cj1ygp.js} +1 -1
- package/lib/esm/{index-CjRTMlgs.js → index-BVAkfiYN.js} +1 -1
- package/lib/esm/{label-DI1u_MFQ.js → label-Cqxj4RVo.js} +1 -1
- package/lib/esm/{language-utils-DMUadJDW.js → language-utils-uFQZRSPE.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-DmMljwEF.js → slot-utils-D8NnYUf2.js} +1 -1
- package/lib/esm/{themeable-component-CULFNCJP.js → themeable-component-B8TGOi99.js} +1 -1
- package/lib/types/components/duet-banner/duet-banner.d.ts +4 -0
- package/lib/types/components/duet-card/duet-card.d.ts +4 -0
- package/lib/types/components/duet-grid/duet-grid.d.ts +1 -1
- package/lib/types/components/duet-hero/duet-hero.d.ts +4 -0
- package/lib/types/components/duet-indicator/duet-indicator.d.ts +8 -1
- package/lib/types/components/duet-notification/duet-notification.d.ts +1 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +4 -0
- package/lib/types/components/duet-spinner/duet-spinner.d.ts +5 -3
- package/lib/types/components.d.ts +46 -8
- package/package.json +4 -4
- package/lib/duet/p-1UeoYjt6.js +0 -4
- package/lib/duet/p-2690a420.entry.js +0 -4
- package/lib/duet/p-37bdc3b9.entry.js +0 -4
- package/lib/duet/p-450983a5.entry.js +0 -4
- package/lib/duet/p-51e85e15.entry.js +0 -4
- package/lib/duet/p-559a54d1.entry.js +0 -4
- package/lib/duet/p-56331c29.entry.js +0 -4
- package/lib/duet/p-5f2507ee.entry.js +0 -4
- package/lib/duet/p-638d143f.entry.js +0 -4
- package/lib/duet/p-63d75040.entry.js +0 -4
- package/lib/duet/p-80157aab.entry.js +0 -4
- package/lib/duet/p-88b2a4ab.entry.js +0 -4
- package/lib/duet/p-8a22e0f7.entry.js +0 -4
- package/lib/duet/p-BW-c05c3.js +0 -4
- package/lib/duet/p-CjRTMlgs.js +0 -5
- package/lib/duet/p-DzEPksgg.js +0 -4
- package/lib/duet/p-a39af7a5.entry.js +0 -4
- package/lib/duet/p-a49e7633.entry.js +0 -4
- package/lib/duet/p-a5ebee52.entry.js +0 -4
- package/lib/duet/p-b17749b1.entry.js +0 -4
- package/lib/duet/p-c8c7616a.entry.js +0 -4
- package/lib/duet/p-e04410c6.entry.js +0 -4
- package/lib/duet/p-ebd27669.entry.js +0 -4
- package/lib/duet/p-qH1epSqB.js +0 -4
|
@@ -151,10 +151,10 @@ export class DuetCard {
|
|
|
151
151
|
const styles = {
|
|
152
152
|
backgroundColor: getColorByName(this.background),
|
|
153
153
|
};
|
|
154
|
-
return (h(Host, { key: '
|
|
154
|
+
return (h(Host, { key: 'd92cd6fb922f1165e1d341221ac3f5433252606c', class: {
|
|
155
155
|
"duet-m-0": this.margin === "none",
|
|
156
156
|
"duet-card-info": this.variation === "info",
|
|
157
|
-
} }, h(TagName, { key: '
|
|
157
|
+
} }, h(TagName, { key: '7f870fc5061cd48c3464bd19ecd780fbb33f3e78', href: this.url, style: styles, ref: card => (this.nativeCard = card), "aria-label": this.accessibleLabel, class: {
|
|
158
158
|
"duet-card": true,
|
|
159
159
|
[this.padding]: true,
|
|
160
160
|
[this.variation]: true,
|
|
@@ -164,7 +164,7 @@ export class DuetCard {
|
|
|
164
164
|
"duet-card-has-bg": this.background !== "gray-lightest",
|
|
165
165
|
"duet-card-has-icon": !!this.icon,
|
|
166
166
|
"duet-card-collapsed": this.collapsible && !this.open,
|
|
167
|
-
} }, this.image && (h("div", { key: '
|
|
167
|
+
} }, this.image && (h("div", { key: 'fd6822d5747d2882842c9c2392b28d8b7a2693f2', class: "duet-card-image-mask" }, h("img", { key: 'a1952cf1f82a4f8593130d9990ef27a2a982e5d8', src: this.image, class: "duet-card-image", loading: "lazy", alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" }))), (this.heading || this.hasHeadingSlot) && this.renderHeading(), h("div", { key: 'a11237f14582fad87aaab15e4dccad5c6ffd7b0b', class: "duet-card-content", id: this.cardId }, h("slot", { key: '80d250aa9dbb0f39a7683c6d2a1e1cdaca75cdd8' }), this.hasFooter && (h("div", { key: '87b27d7c69e3d5f3ab7bdb75cc76a1a11900ef0f', class: "duet-card-footer" }, h("slot", { key: '1212e0d9a33349cf68c7b667069077e02ee30197', name: "footer" })))))));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "duet-card"; }
|
|
170
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -426,6 +426,25 @@ export class DuetCard {
|
|
|
426
426
|
"setter": false,
|
|
427
427
|
"reflect": false
|
|
428
428
|
},
|
|
429
|
+
"imageAlt": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"attribute": "image-alt",
|
|
432
|
+
"mutable": false,
|
|
433
|
+
"complexType": {
|
|
434
|
+
"original": "string",
|
|
435
|
+
"resolved": "string",
|
|
436
|
+
"references": {}
|
|
437
|
+
},
|
|
438
|
+
"required": false,
|
|
439
|
+
"optional": false,
|
|
440
|
+
"docs": {
|
|
441
|
+
"tags": [],
|
|
442
|
+
"text": "Alt attribute text for the image. If not provided, image is assigned presentation role."
|
|
443
|
+
},
|
|
444
|
+
"getter": false,
|
|
445
|
+
"setter": false,
|
|
446
|
+
"reflect": false
|
|
447
|
+
},
|
|
429
448
|
"background": {
|
|
430
449
|
"type": "string",
|
|
431
450
|
"attribute": "background",
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
:host:last-child, :host:last-of-type {
|
|
33
33
|
margin-right: 0 !important;
|
|
34
34
|
}
|
|
35
|
+
[alignment=form-distribute] > :host:last-of-type {
|
|
36
|
+
margin-right: 16px !important;
|
|
37
|
+
}
|
|
35
38
|
@media (max-width: 35.9375em) {
|
|
36
39
|
:host {
|
|
37
40
|
width: 100%;
|
|
@@ -68,6 +71,9 @@
|
|
|
68
71
|
:host(.horizontal-responsive):last-child, :host(.horizontal-responsive):last-of-type {
|
|
69
72
|
margin-right: 0 !important;
|
|
70
73
|
}
|
|
74
|
+
[alignment=form-distribute] > :host(.horizontal-responsive):last-of-type {
|
|
75
|
+
margin-right: 16px !important;
|
|
76
|
+
}
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
:host(:last-child:not(:only-child)) {
|
|
@@ -552,7 +558,7 @@ label.disabled .duet-checkmark-container {
|
|
|
552
558
|
border-color: rgb(178, 194, 205);
|
|
553
559
|
}
|
|
554
560
|
:host(.duet-theme-turva2) .duet-theme-turva .checked > .duet-choice-label {
|
|
555
|
-
background: rgb(
|
|
561
|
+
background: rgb(245, 246, 247);
|
|
556
562
|
border-color: rgb(23, 42, 59) !important;
|
|
557
563
|
}
|
|
558
564
|
:host(.duet-theme-turva2) .duet-theme-turva .checked > .duet-choice-label .duet-checkmark-container {
|
|
@@ -573,7 +579,7 @@ label.disabled .duet-checkmark-container {
|
|
|
573
579
|
border-color: rgb(23, 42, 59);
|
|
574
580
|
}
|
|
575
581
|
:host(.duet-theme-turva2) .duet-theme-turva.duet-choice-card-info {
|
|
576
|
-
background: rgb(
|
|
582
|
+
background: rgb(245, 246, 247);
|
|
577
583
|
border-color: rgb(178, 194, 205);
|
|
578
584
|
}
|
|
579
585
|
:host(.duet-theme-turva2) .duet-theme-turva .duet-checkmark-container {
|
|
@@ -583,7 +589,7 @@ label.disabled .duet-checkmark-container {
|
|
|
583
589
|
border-color: rgb(178, 194, 205);
|
|
584
590
|
}
|
|
585
591
|
:host(.duet-theme-turva2) .duet-theme-turva.duet-choice-info-toggle[aria-expanded=true] {
|
|
586
|
-
background: rgb(
|
|
592
|
+
background: rgb(245, 246, 247);
|
|
587
593
|
border-bottom-color: transparent;
|
|
588
594
|
}
|
|
589
595
|
|
|
@@ -154,6 +154,9 @@
|
|
|
154
154
|
.duet-collapsible-heading-icon:last-child, .duet-collapsible-heading-icon:last-of-type {
|
|
155
155
|
margin-right: 0 !important;
|
|
156
156
|
}
|
|
157
|
+
[alignment=form-distribute] > .duet-collapsible-heading-icon:last-of-type {
|
|
158
|
+
margin-right: 8px !important;
|
|
159
|
+
}
|
|
157
160
|
[aria-expanded=true] .duet-collapsible-heading-icon {
|
|
158
161
|
transform: rotate(180deg);
|
|
159
162
|
}
|
|
@@ -162,7 +162,7 @@ export class DuetFooter {
|
|
|
162
162
|
: "navigation-arrow-right", "icon-right": !((_c = item.href) === null || _c === void 0 ? void 0 : _c.startsWith("tel:")) && !((_d = item.href) === null || _d === void 0 ? void 0 : _d.startsWith("mailto:")), "icon-size": ((_e = item.href) === null || _e === void 0 ? void 0 : _e.startsWith("tel:")) || ((_f = item.href) === null || _f === void 0 ? void 0 : _f.startsWith("mailto:"))
|
|
163
163
|
? "medium"
|
|
164
164
|
: "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)));
|
|
165
|
-
}))))), h("slot", { key: '
|
|
165
|
+
}))))), h("slot", { key: '361a7bcbb2822507495f9ce3d2cba71c5787ad60', name: "extra" }), h("p", { key: 'd550a699008989e92c8ccb0f856f730a0f0d408a', class: "duet-footer-menu", part: "menu" }, h("span", { key: 'd0382fd0c48916c77ae76340f1797b35edb62863', class: "duet-footer-copyright" }, `${copyrightLabel} ${new Date().getFullYear()}`), h("span", { key: '085136a2a21443c434ef94fd8917616c07f764e9', class: "duet-footer-menu-links" }, this.processedMenu && (h(Fragment, { key: 'df5f48b86ef46c1bfb03cf75e55ef2e402af1479' }, this.processedMenu.map(item => (h("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 && (h(Fragment, null, h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), h("span", { class: "duet-footer-external" }, h("duet-icon", { icon: newWindowIconSmall.svg, size: "xx-small", margin: "none", color: "currentColor" })))), h("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")))))))), h("p", { key: '475e550d7b43e8a0ddd78b4ea001c78452b783e1', class: "duet-footer-copyright duet-footer-copyright-mobile" }, `${copyrightLabel} ${new Date().getFullYear()}`))));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "duet-footer"; }
|
|
168
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,8 +45,8 @@ export class DuetGrid {
|
|
|
45
45
|
*/
|
|
46
46
|
this.gridTemplate = null;
|
|
47
47
|
}
|
|
48
|
-
validateAlignment(
|
|
49
|
-
if (
|
|
48
|
+
validateAlignment() {
|
|
49
|
+
if (this.alignment === "form_distribute") {
|
|
50
50
|
console.warn(`DuetGrid alignment value "form_distribute" is deprecated, replace with "form-distribute"`);
|
|
51
51
|
this.alignment = "form-distribute";
|
|
52
52
|
}
|
|
@@ -77,6 +77,7 @@ export class DuetGrid {
|
|
|
77
77
|
this.childObserver = new MutationObserver(this.updateGridItems.bind(this));
|
|
78
78
|
this.childObserver.observe(this.element, { childList: true });
|
|
79
79
|
}
|
|
80
|
+
this.validateAlignment();
|
|
80
81
|
// the next two functions are used to watch for changes in the grid items, and are process intensive - so only run when needed
|
|
81
82
|
if (this.alignment === "form-distribute") {
|
|
82
83
|
if (!Build.isServer) {
|
|
@@ -197,7 +198,7 @@ export class DuetGrid {
|
|
|
197
198
|
* Always the last one in the class.
|
|
198
199
|
*/
|
|
199
200
|
render() {
|
|
200
|
-
return (h(Host, { key: '
|
|
201
|
+
return (h(Host, { key: 'bc25c7c22f88bade50b1241086cbc3fccd94db28', class: {
|
|
201
202
|
"duet-grid": true,
|
|
202
203
|
"duet-no-stacking": !this.responsive,
|
|
203
204
|
"duet-grid-align-top": this.alignment === "top", // flex-start
|
|
@@ -224,7 +225,7 @@ export class DuetGrid {
|
|
|
224
225
|
"duet-grid-row-reverse": this.rowReverse,
|
|
225
226
|
[`duet-grid-variation-${this.gridTemplate ? "grid" : "flex"}`]: true,
|
|
226
227
|
[`duet-grid-template-${this.gridTemplate}`]: true,
|
|
227
|
-
} }, h("slot", { key: '
|
|
228
|
+
} }, h("slot", { key: 'de127117a8189fccfa81ff58be25f057afb45729' })));
|
|
228
229
|
}
|
|
229
230
|
static get is() { return "duet-grid"; }
|
|
230
231
|
static get encapsulation() { return "shadow"; }
|
|
@@ -355,7 +356,7 @@ export class DuetGrid {
|
|
|
355
356
|
},
|
|
356
357
|
"getter": false,
|
|
357
358
|
"setter": false,
|
|
358
|
-
"reflect":
|
|
359
|
+
"reflect": false,
|
|
359
360
|
"defaultValue": "\"top\""
|
|
360
361
|
},
|
|
361
362
|
"distribution": {
|
|
@@ -241,6 +241,12 @@ export class DuetHero {
|
|
|
241
241
|
backgroundSize: imageSizeIsCover ? "cover" : null,
|
|
242
242
|
backgroundPosition: imagePositionIsCenter ? "center" : null,
|
|
243
243
|
};
|
|
244
|
+
const bgImgA11yAttrs = this.image && this.imageAlt
|
|
245
|
+
? {
|
|
246
|
+
role: "img",
|
|
247
|
+
["aria-label"]: this.imageAlt,
|
|
248
|
+
}
|
|
249
|
+
: {};
|
|
244
250
|
const buttonStyles = {
|
|
245
251
|
transform: "translateX(-8px)",
|
|
246
252
|
};
|
|
@@ -277,7 +283,7 @@ export class DuetHero {
|
|
|
277
283
|
outlineColor = "color-primary-turva";
|
|
278
284
|
}
|
|
279
285
|
}
|
|
280
|
-
return (h("div", { key: '
|
|
286
|
+
return (h("div", { key: 'a872538e09667dd29910e010ec8ccc159fc15193', role: "region", class: {
|
|
281
287
|
"duet-hero": true,
|
|
282
288
|
"duet-theme-turva": this.theme === "turva",
|
|
283
289
|
"duet-has-category-icon": !!this.categoryIcon,
|
|
@@ -295,17 +301,17 @@ export class DuetHero {
|
|
|
295
301
|
"duet-hero-text-center": (this.textCenter && !this.leftAlign) || campaignOrSection,
|
|
296
302
|
"duet-hero-left-align": this.leftAlign && !campaignOrSection,
|
|
297
303
|
"duet-hero-narrow": this.layout === "narrow",
|
|
298
|
-
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: '
|
|
299
|
-
this.processedBack && (h("div", { key: '
|
|
304
|
+
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: '5fce1acae0804c6aa76b81868cac88f4de370591', class: "background-area" }, h("div", { key: '26bc63e00bbe21bc2529a0a6b74b73df20d529c0', class: "background-container" }, h("div", { key: '89f29c709d599b57c3b3897291587bd4a572042a', class: "background" }, h("img", { key: '6b18c9f0c48c5ce6f552a8d10e587587872307c9', class: `${imageSizeIsCover ? "cover" : ""} ${imagePositionIsCenter ? "center" : ""}`, src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" })), h("div", { key: 'caaa93907f9d4a2f49f7b3f16b61dbbdbcd61c7c', class: "brand-shape" })))), this.variation === "product" && this.image && (h("div", { key: '763eaabf43c0bf0d6a18c070e393a03dca0d4238', class: { "background-area": true, [this.layout]: true } }, h("div", { key: '9e62908d2cbff9a8ce2bd5434b07baf8828a9214', class: { "background-container": true, [this.layout]: true } }, h("div", { key: '68716ca1d4bbb642c486676fa44b089e03c3426c', class: { background: true, [this.layout]: true } }, h("div", { key: '36e338bcd659d3fc9a2a326f9352f24956c43256', class: { "background-mask": true, [this.layout]: true } }), this.theme !== "turva" && h("div", { key: '0dc480d5857ee243dc06ce057cc781529bcdb973', class: { "brand-shape": true, [this.layout]: true } }), h("div", { key: '2d7de37e7d6f03f9e6c0d87dbe74a809531341bf', class: { "brand-shaped-image": true, [this.layout]: true } }, h("div", { key: 'a80f4df7139b1dc0c164a6533aa742ee4a1df05e', class: { "brand-shaped-image-wrapper": true, [this.layout]: true } }, h("div", Object.assign({ key: '8507b8c3105846c34aebf25805475ceb753186e0', class: { "brand-shaped-image-bg": true, [this.layout]: true }, style: styles }, bgImgA11yAttrs)))), this.categoryIcon && (h("div", { key: '890b16f5971cfa309d72560f7e74f8d9fc319f66', class: { "brand-shaped-icon": true, [this.layout]: true } }, h("duet-icon", { key: 'b0f2677fe1a4b696c44cbe9d3439ff62f2cbce4b', class: { [this.layout]: true }, background: "none", name: this.categoryIcon, margin: "none", size: "auto", responsive: false }))))))), this.variation === "content" && this.image && (h("div", { key: '1e6981b9b8e33f2074418ccd073b295e6089e9ed', class: "background-area" }, h("div", { key: '5d80662daab0e2a82fe04cef22fd6810efcf8546', class: "background" }, h("div", { key: 'c1900e8ff166fda36b996ddbc3f440c629e9f035', class: "background-mask" }), this.theme !== "turva" && h("div", { key: '138a86337de478e6349b92624f09e7a54cb0e931', class: "brand-shape" }), h("div", { key: '2bb8747411e19ad3dd8b3ac634dd0726e4183e0d', class: "brand-shaped-image" }, h("div", { key: '5e6c1579f9e9662a700d602582d3034a818b3693', class: "brand-shaped-image-wrapper" }, h("div", Object.assign({ key: 'd7209ba3a4242b87c9d447c73a2879dfbc7d9d06', class: "brand-shaped-image-bg", style: styles }, bgImgA11yAttrs))))))), h("div", { key: '21e9a6acecfc916399a76bf19e00835d28fe7c0a', class: { "duet-hero-wrapper": true, [this.layout]: true } }, this.image && this.variation === "image" && (h("div", { key: 'da6ce766831a1d2a717fe419ec433aa1f91b03de', class: "duet-hero-image-mask" }, h("div", { key: '7cf7a7dc580dc783f9f5f50bcbf72d41b15eb378', class: "duet-hero-image-wrapper" }, h("div", Object.assign({ key: 'd4ae32f29a59ee2f6430d31a34b8958f467155d4', class: "duet-hero-image", style: styles }, bgImgA11yAttrs))))), (this.variation === "gray" || this.variation === "light" || this.variation === "minimal") &&
|
|
305
|
+
this.processedBack && (h("div", { key: '6863cbe7678662d81cf79c318cb3b75de005f314', class: "duet-hero-back" }, h("duet-button", { key: '55e2dc9e3964c7dde235ddff6a95443997c99305', 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, {
|
|
300
306
|
label: this.processedBack.label,
|
|
301
307
|
href: this.processedBack.href,
|
|
302
308
|
id: this.processedBack.id,
|
|
303
309
|
analyticsId: this.processedBack.analyticsId,
|
|
304
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: '
|
|
310
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: '5f76b32e9c37115a665dba180113bfaf8d706e1b', class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), h("div", { key: '3c5b2a7062ef0a22c8c78fc2bb5c4a0f4d5e351e', class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (h("duet-paragraph", { key: 'ffb0037467d7a1f483b3bd21fc274ec83e790f1a', margin: "none", class: "duet-hero-pre", size: this.variation === "content" ? "small" : "medium", "aria-hidden": "true" }, this.preHeading ? (this.preHeading) : (h("span", null, h("slot", { name: "pre-heading" }))))), h("slot", { key: 'ccd809ffdd2d4fc7ac48632759b604b647add40e', name: "badge" }), (this.heading || this.hasHeadingSlot) && (h("duet-heading", { key: 'bc6c130c314bf164c42fc8cb87fda199967c9237', 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 : h("slot", { name: "heading" }))), campaignOrSection && this.hasSubHeadingSlot && (h("duet-heading", { key: '963c8438ec6323eef745e2405dba51c660bf3437', theme: this.theme, level: this.hasSubHeadingSlotNative ? "div" : this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, h("slot", { key: 'c3de01174e3976af162c9cd8610bc5028bf94a2a', name: "subheading" }))), this.description && (h("duet-paragraph", { key: '356d3bdf54e70df94df7588bddd1b11d4b506826', theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (h("duet-list", { key: '7368b837749d30ef0f82ab3c896bbbfc5407f797', theme: this.theme, "label-width": "30", breakpoint: "large", mobile: this.leftAlign ? undefined : "center" }, this.processedListItems.map(item => (h("duet-list-item", null, h("span", { slot: "label" }, item.label), h("span", { slot: "value" }, item.value)))))), this.buttonLabel && (h("duet-button", { key: '9995622873298d66e258e9de20e03d7eed3ace16', 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)), h("slot", { key: '595b3c8c2b34fe4ce259d69876c3da3a1ef0e826' })), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (h("div", { key: '9b5bc347f7ae36979655a300f74943ac226f6516', class: "duet-hero-links" }, this.processedActions.map(item => (h("a", { class: "duet-hero-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleClick(event, item) }, h("div", { class: "duet-hero-action-icon" }, h("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor", outline: outlineColor })), h("span", null, item.label), item.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), item.external && (h("div", { class: "duet-hero-action-arrow" }, h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
305
311
|
this.variation !== "image" &&
|
|
306
312
|
!campaignOrSection &&
|
|
307
313
|
this.variation !== "product" &&
|
|
308
|
-
this.variation !== "content" && h("div", { key: '
|
|
314
|
+
this.variation !== "content" && h("div", Object.assign({ key: '19a6e4b9ec23150728f38a1ddca45980bbf9deb0', class: "duet-hero-image", style: styles }, bgImgA11yAttrs)), h("slot", { key: 'df6fbc1b019210185ffefc3df52dcb8c197de8f3', name: "bottom" }))));
|
|
309
315
|
}
|
|
310
316
|
static get is() { return "duet-hero"; }
|
|
311
317
|
static get encapsulation() { return "shadow"; }
|
|
@@ -851,6 +857,25 @@ export class DuetHero {
|
|
|
851
857
|
"reflect": false,
|
|
852
858
|
"defaultValue": "\"auto\""
|
|
853
859
|
},
|
|
860
|
+
"imageAlt": {
|
|
861
|
+
"type": "string",
|
|
862
|
+
"attribute": "image-alt",
|
|
863
|
+
"mutable": false,
|
|
864
|
+
"complexType": {
|
|
865
|
+
"original": "string",
|
|
866
|
+
"resolved": "string",
|
|
867
|
+
"references": {}
|
|
868
|
+
},
|
|
869
|
+
"required": false,
|
|
870
|
+
"optional": false,
|
|
871
|
+
"docs": {
|
|
872
|
+
"tags": [],
|
|
873
|
+
"text": "Alt attribute text for the image. If not provided, image is assigned presentation role."
|
|
874
|
+
},
|
|
875
|
+
"getter": false,
|
|
876
|
+
"setter": false,
|
|
877
|
+
"reflect": false
|
|
878
|
+
},
|
|
854
879
|
"variation": {
|
|
855
880
|
"type": "string",
|
|
856
881
|
"attribute": "variation",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { h, Host } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
5
6
|
import { getLocaleString } from "../../utils/language-utils";
|
|
6
7
|
export class DuetIndicator {
|
|
7
8
|
constructor() {
|
|
@@ -32,12 +33,19 @@ export class DuetIndicator {
|
|
|
32
33
|
* only in special cases, as errors and succeses normally require a more prominent message.
|
|
33
34
|
*/
|
|
34
35
|
this.variation = "change";
|
|
36
|
+
/**
|
|
37
|
+
* Theme of the component
|
|
38
|
+
*/
|
|
39
|
+
this.theme = "";
|
|
35
40
|
this.getAccessibleLabel = () => {
|
|
36
41
|
return this.accessibleLabel || getLocaleString(this.defaultLabels[this.variation]);
|
|
37
42
|
};
|
|
38
43
|
}
|
|
44
|
+
componentWillLoad() {
|
|
45
|
+
inheritGlobalTheme(this);
|
|
46
|
+
}
|
|
39
47
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'b2f09b35f7fbb61445756df5e6df2f75bb0246ff', class: { [this.theme]: true } }, h("span", { key: '81de43cc175005dc2001d65e7e34813c1afbefca', class: { "duet-indicator": true, [`duet-indicator-${this.variation}`]: true } }), h("duet-visually-hidden", { key: 'cebd5630b42f0c4bca8497db1b2caa5326822ef5' }, this.getAccessibleLabel())));
|
|
41
49
|
}
|
|
42
50
|
static get is() { return "duet-indicator"; }
|
|
43
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -97,6 +105,32 @@ export class DuetIndicator {
|
|
|
97
105
|
"getter": false,
|
|
98
106
|
"setter": false,
|
|
99
107
|
"reflect": false
|
|
108
|
+
},
|
|
109
|
+
"theme": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"attribute": "theme",
|
|
112
|
+
"mutable": true,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "DuetTheme",
|
|
115
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
116
|
+
"references": {
|
|
117
|
+
"DuetTheme": {
|
|
118
|
+
"location": "import",
|
|
119
|
+
"path": "../../common-types",
|
|
120
|
+
"id": "src/common-types.d.ts::DuetTheme"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": false,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": "Theme of the component"
|
|
129
|
+
},
|
|
130
|
+
"getter": false,
|
|
131
|
+
"setter": false,
|
|
132
|
+
"reflect": false,
|
|
133
|
+
"defaultValue": "\"\""
|
|
100
134
|
}
|
|
101
135
|
};
|
|
102
136
|
}
|
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
:host(.duet-link-button):last-child, :host(.duet-link-button):last-of-type {
|
|
37
37
|
margin-right: 0 !important;
|
|
38
38
|
}
|
|
39
|
+
[alignment=form-distribute] > :host(.duet-link-button):last-of-type {
|
|
40
|
+
margin-right: 8px !important;
|
|
41
|
+
}
|
|
39
42
|
|
|
40
43
|
:host(.duet-m-0) {
|
|
41
44
|
margin: 0 !important;
|
|
@@ -367,11 +367,11 @@ export class DuetModal {
|
|
|
367
367
|
"duet-modal-gutter-small": this.gutterSize === "small",
|
|
368
368
|
"duet-modal-gutter-medium": this.gutterSize === "medium",
|
|
369
369
|
"duet-modal-gutter-large": this.gutterSize === "large",
|
|
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: '
|
|
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: 'f667634f35e5048df2ea536709e76beca9cb3a49', "aria-live": this.variation === "loader"
|
|
371
371
|
? "assertive"
|
|
372
372
|
: this.accessibleAnnounceChanges === "body"
|
|
373
373
|
? "polite"
|
|
374
|
-
: 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: 'c8523317779ddc6acd2de899022ea31535612291' })))))));
|
|
375
375
|
}
|
|
376
376
|
static get is() { return "duet-modal"; }
|
|
377
377
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,6 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
import { subscribeTabbingChange, unsubscribeTabbingChange } from "../../utils/keyboard-utils";
|
|
7
7
|
import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
|
|
8
|
+
import { getElementsFromDefaultSlot } from "../../utils/slot-utils";
|
|
8
9
|
export class DuetNotification {
|
|
9
10
|
constructor() {
|
|
10
11
|
/**
|
|
@@ -71,12 +72,18 @@ export class DuetNotification {
|
|
|
71
72
|
async setFocus(options) {
|
|
72
73
|
this.linkElement.focus(options);
|
|
73
74
|
}
|
|
75
|
+
getAriaLabelText() {
|
|
76
|
+
const slottedElements = getElementsFromDefaultSlot(this.element);
|
|
77
|
+
const slottedText = slottedElements.map(e => e.textContent.trim()).join(". ");
|
|
78
|
+
const indicatorText = this.highlight ? `${this.accessibleLabelUnread}. ` : "";
|
|
79
|
+
return `${indicatorText}${slottedText}${slottedText.endsWith(".") ? "" : "."} ${this.date}`;
|
|
80
|
+
}
|
|
74
81
|
render() {
|
|
75
|
-
return (h("div", { key: '
|
|
82
|
+
return (h("div", { key: '8497858acf685b75adce100af83521ea62dad249', role: "listitem", class: {
|
|
76
83
|
"duet-notification": true,
|
|
77
84
|
"duet-notification-highlight": this.highlight,
|
|
78
85
|
"duet-theme-turva": this.theme === "turva",
|
|
79
|
-
} }, h("a", { key: '
|
|
86
|
+
} }, h("a", { key: 'd055bb5cebbf8d33eb35d193d1bb1fa106c5ec49', ref: element => (this.linkElement = element), href: this.url, target: this.external ? "_blank" : "_self", "aria-label": this.getAriaLabelText() }, h("div", { key: '37b18aada4bbdcc07fbae2fb2a379e4ce499d1a2', class: "duet-notification-container" }, h("div", { key: 'd82a6a30c51dcbe9fa55d184f9475ee52824c960', class: "duet-indicator-container" }, this.highlight && (h("duet-indicator", { key: 'ba8cf675f5f79738b621bb60be60e955648f72fb', variation: "new", "accessible-label": this.accessibleLabelUnread }))), h("div", { key: '7616f1c0b61f842cb19959f8a26d972740d4983c', class: "duet-notification-content" }, h("slot", { key: '3d15bf405f3f7e6bb7b699835882720db81c60ac' })), h("div", { key: '479850eacc300888b148101759908b962db1d24a', class: "duet-notification-date" }, this.date)))));
|
|
80
87
|
}
|
|
81
88
|
static get is() { return "duet-notification"; }
|
|
82
89
|
static get encapsulation() { return "shadow"; }
|
|
@@ -394,32 +394,32 @@ export class DuetPagination {
|
|
|
394
394
|
* Always the last one in the class.
|
|
395
395
|
*/
|
|
396
396
|
render() {
|
|
397
|
-
return (h(Host, { key: '
|
|
397
|
+
return (h(Host, { key: '52e784473ef29848499981e51ce1306b85a6982e', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, h("nav", { key: 'c6bb124db6d838e10370f48544b86a9f7619b0e9', 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: {
|
|
398
398
|
"duet-pagination-nav": true,
|
|
399
399
|
[`duet-pagination-variation-${this.variation}`]: true,
|
|
400
|
-
} }, this.numbersStore !== "" && (h("div", { key: '
|
|
400
|
+
} }, this.numbersStore !== "" && (h("div", { key: '5796a23be63400e02cdcda3547ba16b5095efb2d', "aria-live": "assertive", "aria-relevant": "text", class: "duet-pagination-overlay", "aria-label": `${this.accessibleLabels.jump_to} ${this.numbersStore}`, part: "navigation-overlay" }, h("duet-badge", { key: 'ae244394fde7f973460ad58c73b0188c2a4fac47', theme: this.theme }, "jump to page : ", this.numbersStore))), h("ol", { key: '8d0eb963238e39d216193a48562142b3be082cbb', id: this.listId, class: {
|
|
401
401
|
"duet-pagination": true,
|
|
402
402
|
"duet-pagination-is-dimmed": this.numbersStore !== "",
|
|
403
|
-
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (h("li", { key: '
|
|
403
|
+
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, (this.variation === "compact" || this.matchesCompactBreakpoint) && (h("li", { key: 'd7e1fda8280ef37a4e6a9a035651faa3812dd609', class: {
|
|
404
404
|
"duet-pagination-page-button": true,
|
|
405
405
|
"duet-pagination-button-first": true,
|
|
406
|
-
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '
|
|
406
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '286dda612fa7b6f2149f75dc57124d5eb6decdb2', 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 }))), h("li", { key: '7dda62b7807922dcef3cd2d16f0bc66bfe134ea4', class: {
|
|
407
407
|
"duet-pagination-page-button": true,
|
|
408
408
|
"duet-pagination-button-first": true,
|
|
409
|
-
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '
|
|
409
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: 'e2274296bc1bee4ccc388c0db9bb0d93d24c835b', disabled: !!((this.internalSectionIndex === 0 && this.current <= 1) ||
|
|
410
410
|
(this.current <= 1 && this.processedPageLinks) ||
|
|
411
|
-
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() && (h(Fragment, { key: '
|
|
412
|
-
this.shouldDisplayNavigation() && (h(Fragment, { key: '
|
|
411
|
+
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() && (h(Fragment, { key: '3f9b85167c0a76403aa15f29f1c1f1288ad0e4d0' }, h("li", { key: 'e64af2416ffc7613778f7da6cb788d4a72f4eef0', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { key: 'ed827f262c1d9672d8a0da1209d214cf0201c14c', 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 }, h("div", { key: '123675ff6455a2af26041f5887226e4c0ae2e92d', class: "duet-pagination-page-number" }, "1"))), h("li", { key: '937ef0dd5be48ea9cc25e0d76183cf871435fae1', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { key: 'b943f95c41d2325cbc8f4ee8654feb079f0bde26', 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 }, h("div", { key: '0abefda80e80fd7299d0e6b1a6d474f5f0a004ab', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026"))))), (this.shouldDisplayNavigation() && this.renderPageNumbers()) || this.renderSelect(), (this.internalSectionIndex + 1) * this.visibleItems < this.totalPages &&
|
|
412
|
+
this.shouldDisplayNavigation() && (h(Fragment, { key: '20184dc0cfdf26f29d63dcfbfe1ae2c4837a56bc' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (h("li", { key: '6bb0d7a4742be774e7b453dd091b8ec9bc4ddb68', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { key: '5a6c286824409fc75f08fcb2c5144bbeb19d95d5', 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 }, h("div", { key: '8b8bb2c2b47d687d20e556840d5960dab27c90b6', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), h("li", { key: '762f4434753385d3599f159d62ca921def9a18a2', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { key: '5dd3404fa6a43253b611c8c35045041136a9241e', 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
|
|
413
413
|
? this.processedPageLinks[this.processedPageLinks.length - 1]
|
|
414
|
-
: undefined }, h("div", { key: '
|
|
414
|
+
: undefined }, h("div", { key: '8e3876cbbbf37cd2f2e2e3cc527b5553479b3e18', class: "duet-pagination-page-number" }, this.totalPages))))), h("li", { key: '68e1f7e8c908396d2564d1fb30880d726dea24cd', class: {
|
|
415
415
|
"duet-pagination-page-button": true,
|
|
416
416
|
"duet-pagination-button-last": true,
|
|
417
|
-
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '
|
|
417
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: 'edfe5c34fbdd5406dcb10355ef7027da35279af2', disabled: !!((this.current === this.totalPages &&
|
|
418
418
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
419
|
-
(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) && (h("li", { key: '
|
|
419
|
+
(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) && (h("li", { key: '69ace8f9afc0c82112a6ac194d7fc5ef5041f179', class: {
|
|
420
420
|
"duet-pagination-page-button": true,
|
|
421
421
|
"duet-pagination-button-last": true,
|
|
422
|
-
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '
|
|
422
|
+
}, role: "menuitem", part: "navigation-arrow" }, h("duet-action-button", { key: '8ff4d39efec69737f39608581d72bfafc174a513', disabled: (this.current === this.totalPages &&
|
|
423
423
|
this.internalSectionIndex === Math.ceil(this.totalPages / this.visibleItems) - 1) ||
|
|
424
424
|
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 })))))));
|
|
425
425
|
}
|
|
@@ -40,6 +40,9 @@ span.flag-container {
|
|
|
40
40
|
:host:last-child, :host:last-of-type {
|
|
41
41
|
margin-right: 0 !important;
|
|
42
42
|
}
|
|
43
|
+
[alignment=form-distribute] > :host:last-of-type {
|
|
44
|
+
margin-right: 16px !important;
|
|
45
|
+
}
|
|
43
46
|
@media (min-width: 36em) {
|
|
44
47
|
:host {
|
|
45
48
|
width: calc(50% - 16px - 3px);
|
|
@@ -101,11 +101,11 @@ export class DuetPopupMenuItem {
|
|
|
101
101
|
};
|
|
102
102
|
// Without the role ternary Safari/iPhone wouldn't announce the label for role menuitem.
|
|
103
103
|
// This is a tradeoff and now Safari announces these items as buttons and links with the label.
|
|
104
|
-
return (h(Host, { key: '69c44a1d58780969eb4ac52879cd12d91f138a54', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, h(TagName, { key: 'b4a7e9fc9c862bd2ef7e82abde09d9454e9b1585', 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 && (h("duet-icon", { key: '8a4412f1d2aa25c099780b3441d4ed06699fe987', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), h("span", { key: 'a08f5aef8339a1c96e16c05f87cf60bf0fda3a0e', class: "duet-popup-menu-item-label" }, h("slot", { key: '1ccdab3f89ce6fc1ce8222e7219c6d68f99ab61e' })), (this.trailingIcon || this.active || (this.url && this.external)) && (h("duet-icon", { key: '
|
|
104
|
+
return (h(Host, { key: '69c44a1d58780969eb4ac52879cd12d91f138a54', role: this.accessibleRole === "menuitem" && this.isSafariBrowser ? null : this.accessibleRole }, h(TagName, { key: 'b4a7e9fc9c862bd2ef7e82abde09d9454e9b1585', 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 && (h("duet-icon", { key: '8a4412f1d2aa25c099780b3441d4ed06699fe987', name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), h("span", { key: 'a08f5aef8339a1c96e16c05f87cf60bf0fda3a0e', class: "duet-popup-menu-item-label" }, h("slot", { key: '1ccdab3f89ce6fc1ce8222e7219c6d68f99ab61e' })), (this.trailingIcon || this.active || (this.url && this.external)) && (h("duet-icon", { key: 'bd891c106163c5bc13ae83420199b2ec6108c1c4', name: this.url && this.external
|
|
105
105
|
? newWindowIcon.title
|
|
106
106
|
: this.active
|
|
107
107
|
? "messaging-checked-small"
|
|
108
|
-
: 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 && h("span", { key: '
|
|
108
|
+
: 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 && h("span", { key: '4c88625e8599b8ef038cf37236e8be4c06aaf3e7', class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
109
109
|
}
|
|
110
110
|
static get is() { return "duet-popup-menu-item"; }
|
|
111
111
|
static get encapsulation() { return "shadow"; }
|