@duetds/components 10.0.0-alpha.26 → 10.0.0-alpha.28
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 +364 -273
- package/hydrate/index.mjs +364 -273
- package/lib/cjs/{a11y-utils-CnLnSK4z.js → a11y-utils-CJbT7JyN.js} +1 -1
- package/lib/cjs/{app-globals-B3iie8Hv.js → app-globals-Bg_Qat6e.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +5 -5
- package/lib/cjs/duet-banner.cjs.entry.js +20 -9
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +11 -20
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
- package/lib/cjs/duet-button_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +10 -10
- package/lib/cjs/duet-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +4 -4
- package/lib/cjs/duet-choice_2.cjs.entry.js +7 -7
- 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 +5 -5
- 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 +4 -4
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +9 -9
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +11 -10
- package/lib/cjs/duet-header_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-hero.cjs.entry.js +15 -11
- package/lib/cjs/duet-icon.cjs.entry.js +6 -6
- package/lib/cjs/duet-indicator.cjs.entry.js +53 -0
- package/lib/cjs/duet-input_2.cjs.entry.js +12 -12
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-modal.cjs.entry.js +13 -13
- package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
- package/lib/cjs/duet-nav.cjs.entry.js +4 -4
- package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-number-input.cjs.entry.js +6 -6
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
- package/lib/cjs/duet-pagination_2.cjs.entry.js +17 -17
- package/lib/cjs/duet-panel.cjs.entry.js +5 -5
- package/lib/cjs/duet-phone-input.cjs.entry.js +22 -7
- 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 +7 -7
- package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +21 -19
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +9 -9
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart.cjs.entry.js +7 -7
- package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +15 -20
- package/lib/cjs/duet-slideout.cjs.entry.js +11 -11
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- package/lib/cjs/duet-toggle.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +8 -8
- package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
- package/lib/cjs/duet-tray.cjs.entry.js +5 -5
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-BgHe-1YU.js → errorcodes.utils-CvAMXZjl.js} +1 -1
- package/lib/cjs/{focus-utils-CT74z9Qb.js → focus-utils-C8MDOQZG.js} +1 -1
- package/lib/cjs/{index-C6D9Bly8.js → index-BkDTP7hm.js} +5 -1
- package/lib/cjs/{label-tyZX3oPG.js → label-DYV9pC59.js} +1 -1
- package/lib/cjs/{language-utils-DcgSN-KH.js → language-utils-BxIeXBGy.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-ByPWwvPp.js → slot-utils-F-Jmx-3a.js} +1 -1
- package/lib/cjs/{themeable-component-Doq36ycm.js → themeable-component-DvX_Xgrg.js} +1 -1
- package/lib/cjs/{token-utils-DsVwGXGM.js → token-utils-b3aW02zZ.js} +7 -4
- package/lib/collection/collection-manifest.json +1 -0
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.css +27 -0
- package/lib/collection/components/duet-banner/duet-banner.js +15 -4
- 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-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.css +3 -0
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-card/duet-card.css +12 -3
- package/lib/collection/components/duet-chip/duet-chip.css +6 -6
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.css +4 -4
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +15 -6
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-grid/duet-grid.js +7 -6
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-hero/duet-hero.css +220 -29
- package/lib/collection/components/duet-hero/duet-hero.js +10 -6
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-indicator/duet-indicator.css +46 -0
- package/lib/collection/components/duet-indicator/duet-indicator.js +104 -0
- package/lib/collection/components/duet-input/duet-input.js +8 -8
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +4 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +7 -7
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-nav/duet-nav.css +4 -0
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.css +4 -15
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +0 -15
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
- package/lib/collection/components/duet-number-input/duet-number-input.js +2 -2
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-panel/duet-panel.css +5 -4
- package/lib/collection/components/duet-panel/duet-panel.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +56 -3
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.css +26 -19
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +2 -2
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +3 -3
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +16 -22
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +9 -14
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +2 -2
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +4 -0
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +53 -3
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +6 -61
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -6
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
- package/lib/collection/components/duet-toggle/duet-toggle.js +2 -2
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +9 -14
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/token-utils.js +3 -3
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-4da25e3d.entry.js → p-01a9a47d.entry.js} +1 -1
- package/lib/duet/{p-534180fa.entry.js → p-09758ca7.entry.js} +1 -1
- package/lib/duet/{p-a745298d.entry.js → p-1206ff96.entry.js} +1 -1
- package/lib/duet/{p-84777c03.entry.js → p-12ac4ff1.entry.js} +1 -1
- package/lib/duet/{p-dd8216e7.entry.js → p-166bc231.entry.js} +1 -1
- package/lib/duet/{p-16f691fd.entry.js → p-16a96348.entry.js} +1 -1
- package/lib/duet/{p-ec72f3a2.entry.js → p-1a8da00c.entry.js} +1 -1
- package/lib/duet/p-20fa2389.entry.js +4 -0
- package/lib/duet/p-22e7cf7d.entry.js +4 -0
- package/lib/duet/p-2cdeebb1.entry.js +4 -0
- package/lib/duet/{p-88216acf.entry.js → p-2f21ed78.entry.js} +1 -1
- package/lib/duet/p-2f8ac3ad.entry.js +4 -0
- package/lib/duet/{p-a64da31d.entry.js → p-30035283.entry.js} +1 -1
- package/lib/duet/{p-0864a12e.entry.js → p-3208daa6.entry.js} +1 -1
- package/lib/duet/{p-f82a2ab7.entry.js → p-34ca9627.entry.js} +1 -1
- package/lib/duet/{p-d05bbd77.entry.js → p-35fdce02.entry.js} +1 -1
- package/lib/duet/{p-4cd019a5.entry.js → p-3a1c718a.entry.js} +1 -1
- package/lib/duet/{p-117970c7.entry.js → p-3a4a486b.entry.js} +1 -1
- package/lib/duet/p-41558cfd.entry.js +4 -0
- package/lib/duet/{p-a704d617.entry.js → p-447520f5.entry.js} +1 -1
- package/lib/duet/p-44e44f11.entry.js +4 -0
- package/lib/duet/{p-2d62148e.entry.js → p-49534af3.entry.js} +1 -1
- package/lib/duet/{p-0fccda7b.entry.js → p-4e6bc806.entry.js} +1 -1
- package/lib/duet/{p-2a563d22.entry.js → p-54dff5d5.entry.js} +1 -1
- package/lib/duet/p-5a2e2e55.entry.js +4 -0
- package/lib/duet/p-5cd78818.entry.js +4 -0
- package/lib/duet/{p-1f9c5d58.entry.js → p-5d626b10.entry.js} +1 -1
- package/lib/duet/p-5da18b67.entry.js +4 -0
- package/lib/duet/{p-806121b1.entry.js → p-631b16b7.entry.js} +1 -1
- package/lib/duet/{p-288da581.entry.js → p-66dc053b.entry.js} +1 -1
- package/lib/duet/{p-829482da.entry.js → p-68b125c1.entry.js} +1 -1
- package/lib/duet/{p-44deeddc.entry.js → p-6b79244a.entry.js} +1 -1
- package/lib/duet/{p-e9886226.entry.js → p-6e1454e9.entry.js} +1 -1
- package/lib/duet/{p-8194b05d.entry.js → p-6f710a62.entry.js} +1 -1
- package/lib/duet/{p-02ba799f.entry.js → p-787b30fc.entry.js} +1 -1
- package/lib/duet/{p-15a7a9be.entry.js → p-78db887a.entry.js} +1 -1
- package/lib/duet/{p-d079278e.entry.js → p-7912bc42.entry.js} +1 -1
- package/lib/duet/{p-4da439ae.entry.js → p-796eec58.entry.js} +1 -1
- package/lib/duet/p-7b718349.entry.js +4 -0
- package/lib/duet/{p-66cb6021.entry.js → p-7c3fcd96.entry.js} +1 -1
- package/lib/duet/{p-9a7382a4.entry.js → p-7e02804f.entry.js} +1 -1
- package/lib/duet/p-8017e834.entry.js +4 -0
- package/lib/duet/{p-ecb4e99d.entry.js → p-81992942.entry.js} +1 -1
- package/lib/duet/{p-f2ae56b2.entry.js → p-8356498a.entry.js} +1 -1
- package/lib/duet/p-87fa61b0.entry.js +4 -0
- package/lib/duet/p-882f0aaf.entry.js +4 -0
- package/lib/duet/{p-92b13088.entry.js → p-88e2e400.entry.js} +1 -1
- package/lib/duet/p-8d3c4a3f.entry.js +4 -0
- package/lib/duet/p-8de6d1e2.entry.js +4 -0
- package/lib/duet/p-97ba0b31.entry.js +4 -0
- package/lib/duet/{p-066f855b.entry.js → p-97bb619b.entry.js} +1 -1
- package/lib/duet/p-9ac2964f.entry.js +4 -0
- package/lib/duet/{p-34706bbb.entry.js → p-9dd85685.entry.js} +1 -1
- package/lib/duet/{p-C-YpEPL-.js → p-BFsh4y5I.js} +1 -1
- package/lib/duet/{p-DoTAjqzf.js → p-BVUumLs-.js} +1 -1
- package/lib/duet/{p-BPFqbaxm.js → p-BfHFKBVa.js} +1 -1
- package/lib/duet/p-D3JjrjH_.js +4 -0
- package/lib/duet/{p-BkHWWyft.js → p-D4WDSjzx.js} +1 -1
- package/lib/duet/p-DEF77zC7.js +4 -0
- package/lib/duet/p-DeH5mj7m.js +4 -0
- package/lib/duet/p-Do6ugHz0.js +4 -0
- package/lib/duet/{p-C2xFZ1pZ.js → p-Yh6R_0l1.js} +1 -1
- package/lib/duet/{p-6fa7de01.entry.js → p-a1442533.entry.js} +1 -1
- package/lib/duet/{p-23475050.entry.js → p-abd2d2e5.entry.js} +1 -1
- package/lib/duet/p-adf33c50.entry.js +4 -0
- package/lib/duet/{p-4c118ad6.entry.js → p-b88c7286.entry.js} +1 -1
- package/lib/duet/{p-148b6203.entry.js → p-b9125a20.entry.js} +1 -1
- package/lib/duet/{p-d71a366e.entry.js → p-b942ee5a.entry.js} +1 -1
- package/lib/duet/{p-8625d3ce.entry.js → p-bd08aba8.entry.js} +1 -1
- package/lib/duet/p-be077745.entry.js +4 -0
- package/lib/duet/{p-433a9f98.entry.js → p-c084c91d.entry.js} +1 -1
- package/lib/duet/{p-ad08429f.entry.js → p-c43dc2fd.entry.js} +1 -1
- package/lib/duet/{p-15859eb3.entry.js → p-c9ef3dfc.entry.js} +1 -1
- package/lib/duet/p-c9fd65ce.entry.js +4 -0
- package/lib/duet/{p-0e15fd30.entry.js → p-caf2cab9.entry.js} +1 -1
- package/lib/duet/{p-babe244b.entry.js → p-cb78347a.entry.js} +1 -1
- package/lib/duet/p-cc343a6c.entry.js +4 -0
- package/lib/duet/p-d0cc1c5b.entry.js +4 -0
- package/lib/duet/{p-e9becc58.entry.js → p-d83d4c83.entry.js} +1 -1
- package/lib/duet/{p-22641f21.entry.js → p-d93c2be4.entry.js} +1 -1
- package/lib/duet/{p-5fdfb13d.entry.js → p-daa8f255.entry.js} +1 -1
- package/lib/duet/{p-4a325ef1.entry.js → p-dd8692cb.entry.js} +1 -1
- package/lib/duet/{p-2f150cd4.entry.js → p-ddbdbe11.entry.js} +1 -1
- package/lib/duet/{p-78a9b684.entry.js → p-ea979f26.entry.js} +1 -1
- package/lib/duet/p-eab48b73.entry.js +4 -0
- package/lib/duet/p-ee38050b.entry.js +4 -0
- package/lib/duet/p-f0076621.entry.js +4 -0
- package/lib/duet/p-f2b7be73.entry.js +4 -0
- package/lib/duet/{p-6b2697ad.entry.js → p-f30823aa.entry.js} +1 -1
- package/lib/duet/p-f78c747f.entry.js +4 -0
- package/lib/duet/p-fc2d3b85.entry.js +4 -0
- package/lib/duet/{p-6dca8f77.entry.js → p-fcc4cd08.entry.js} +1 -1
- package/lib/duet/{p-9440a479.entry.js → p-fdab5c0b.entry.js} +1 -1
- package/lib/duet/{p-5a6fd350.entry.js → p-fec4da8c.entry.js} +1 -1
- package/lib/duet/{p-62df87ea.entry.js → p-ff169773.entry.js} +1 -1
- package/lib/duet/{p-D5MfS1RP.js → p-x84EsPoI.js} +1 -1
- package/lib/esm/{a11y-utils-C6cn5C3e.js → a11y-utils-CRHgvsu9.js} +1 -1
- package/lib/esm/{app-globals-CcxHDwb4.js → app-globals-CYQv_sg4.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +4 -4
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +5 -5
- package/lib/esm/duet-banner.entry.js +20 -9
- package/lib/esm/duet-breadcrumb.entry.js +11 -20
- package/lib/esm/duet-breadcrumbs.entry.js +7 -7
- package/lib/esm/duet-button_2.entry.js +7 -7
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +10 -10
- package/lib/esm/duet-card.entry.js +5 -5
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +4 -4
- package/lib/esm/duet-choice_2.entry.js +7 -7
- 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 +5 -5
- 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 +4 -4
- package/lib/esm/duet-editable-table_3.entry.js +9 -9
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +11 -10
- package/lib/esm/duet-header_2.entry.js +5 -5
- package/lib/esm/duet-hero.entry.js +15 -11
- package/lib/esm/duet-icon.entry.js +6 -6
- package/lib/esm/duet-indicator.entry.js +51 -0
- package/lib/esm/duet-input_2.entry.js +12 -12
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +5 -5
- package/lib/esm/duet-menu-bar-button.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-menu-bar-item.entry.js +7 -7
- package/lib/esm/duet-menu-bar-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar.entry.js +7 -7
- package/lib/esm/duet-modal.entry.js +13 -13
- package/lib/esm/duet-multiselect.entry.js +10 -10
- package/lib/esm/duet-nav.entry.js +4 -4
- package/lib/esm/duet-notification_2.entry.js +9 -9
- package/lib/esm/duet-number-input.entry.js +6 -6
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +4 -4
- package/lib/esm/duet-pagination_2.entry.js +17 -17
- package/lib/esm/duet-panel.entry.js +5 -5
- package/lib/esm/duet-phone-input.entry.js +22 -7
- 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 +7 -7
- package/lib/esm/duet-range-slider.entry.js +6 -6
- package/lib/esm/duet-scrollable_3.entry.js +21 -19
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +9 -9
- package/lib/esm/duet-shaped-image.entry.js +4 -4
- package/lib/esm/duet-share-chart-item.entry.js +2 -2
- package/lib/esm/duet-share-chart.entry.js +7 -7
- package/lib/esm/duet-show-more.entry.js +5 -5
- package/lib/esm/duet-slideout-lang.entry.js +5 -5
- package/lib/esm/duet-slideout-link.entry.js +8 -8
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +7 -7
- package/lib/esm/duet-slideout-panel.entry.js +15 -20
- package/lib/esm/duet-slideout.entry.js +11 -11
- package/lib/esm/duet-status-icon.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +8 -8
- package/lib/esm/duet-textarea.entry.js +8 -8
- package/lib/esm/duet-toggle.entry.js +6 -6
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- package/lib/esm/duet-toolbar-item.entry.js +9 -9
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +8 -8
- package/lib/esm/duet-tooltip.entry.js +4 -4
- package/lib/esm/duet-tray.entry.js +5 -5
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +6 -6
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-CEyBUBSM.js → errorcodes.utils-MZm5Z6Ra.js} +1 -1
- package/lib/esm/{focus-utils-BhO5oz9w.js → focus-utils-CrtNnjPR.js} +1 -1
- package/lib/esm/{index-BPFqbaxm.js → index-BfHFKBVa.js} +5 -1
- package/lib/esm/{label-BGqhM4kx.js → label-BewTofiP.js} +1 -1
- package/lib/esm/{language-utils-CNMTW_pZ.js → language-utils-BvGD3xAJ.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-BABbKvvc.js → slot-utils-QOcACBKy.js} +1 -1
- package/lib/esm/{themeable-component-Csv1RXxf.js → themeable-component-D9rAA2iK.js} +1 -1
- package/lib/esm/{token-utils-BGFYWQ6j.js → token-utils-C-c-tsXV.js} +7 -4
- package/lib/types/components/duet-banner/duet-banner.d.ts +2 -0
- package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
- package/lib/types/components/duet-hero/duet-hero.d.ts +1 -0
- package/lib/types/components/duet-indicator/duet-indicator.d.ts +17 -0
- package/lib/types/components/duet-input/duet-input.d.ts +0 -2
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +14 -0
- package/lib/types/components/duet-tab/duet-tab.d.ts +10 -0
- package/lib/types/components.d.ts +77 -10
- package/package.json +3 -3
- package/lib/duet/p-0964b56d.entry.js +0 -4
- package/lib/duet/p-1ec554c6.entry.js +0 -4
- package/lib/duet/p-4c37165a.entry.js +0 -4
- package/lib/duet/p-4fc62376.entry.js +0 -4
- package/lib/duet/p-57165bf0.entry.js +0 -4
- package/lib/duet/p-5bfa5e5d.entry.js +0 -4
- package/lib/duet/p-6fdb09d1.entry.js +0 -4
- package/lib/duet/p-7b849d35.entry.js +0 -4
- package/lib/duet/p-7c1e8291.entry.js +0 -4
- package/lib/duet/p-7f0aa937.entry.js +0 -4
- package/lib/duet/p-804b326c.entry.js +0 -4
- package/lib/duet/p-98aa7ac5.entry.js +0 -4
- package/lib/duet/p-9c838ec0.entry.js +0 -4
- package/lib/duet/p-B5RO_CRT.js +0 -4
- package/lib/duet/p-CwVyzidG.js +0 -4
- package/lib/duet/p-DixsuovU.js +0 -4
- package/lib/duet/p-Dr2j33H2.js +0 -4
- package/lib/duet/p-ad3d8ac8.entry.js +0 -4
- package/lib/duet/p-b1f362dc.entry.js +0 -4
- package/lib/duet/p-b9acaca1.entry.js +0 -4
- package/lib/duet/p-c35c9198.entry.js +0 -4
- package/lib/duet/p-c62aeb2e.entry.js +0 -4
- package/lib/duet/p-c8a66d4b.entry.js +0 -4
- package/lib/duet/p-cfd5c934.entry.js +0 -4
- package/lib/duet/p-d110954d.entry.js +0 -4
- package/lib/duet/p-d92c5cfa.entry.js +0 -4
- package/lib/duet/p-dbab30ea.entry.js +0 -4
- package/lib/duet/p-e18a1599.entry.js +0 -4
- package/lib/duet/p-e76051c3.entry.js +0 -4
- package/lib/duet/p-f51c072f.entry.js +0 -4
- package/lib/duet/p-f82079f2.entry.js +0 -4
|
@@ -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: '4538c13203031ba738afe31bf944d5e5cf0822d0', onKeyDown: e => this.onKeyboardDown(e), class: { "duet-theme-turva": this.theme === "turva" } }, h("nav", { key: 'f74353d0266706e3e98ba2eb0ffd427e17dd7d32', 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: 'ef1c5623374551a2f397f3af374da758f18d32fc', "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: '952121198f2ef45be88514aadec01a5c96f3533d', theme: this.theme }, "jump to page : ", this.numbersStore))), h("ol", { key: 'a20aba22fa8fb86c7f85d2f53806d1ca4617f7a2', 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: '9a3b326a61e687c37098498586030cb657abfe50', 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: 'd09d305229036887195250ff68758d8ababcba46', 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: 'd894e457eb0d8a85407e2ff58336c515efc36b32', 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: '608048896bdefbda08da9a074e885be4619213a5', 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: 'c61298ec08d9d456084704599138fa6947b90f5a' }, h("li", { key: '353c539572913f5c79da697cbbe5904424b66451', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { key: '3fc0820a55c18784babaa94cc582742d7f7ce81d', 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: 'b4f8be4468d0c1fb1e45eefe35d0d25a8e35cee5', class: "duet-pagination-page-number" }, "1"))), h("li", { key: '3d2bcf407aff2366deac05bdbc9e02162a1634ea', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { key: 'cb9ae00667627845552094b399840bf08a76c63c', 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: '39ef13340bc1908984d40d1f428e0e541a346a38', 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: '3c2d5586ebf42d2c8fd8f651bae865e4bb7a61bf' }, (this.internalSectionIndex + 1) * this.visibleItems !== this.totalPages - 1 && (h("li", { key: '3ff93a876610de4018caa32e8a0836bc93174408', class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, h("duet-button", { key: '6febe996395f01852e2fde2c454f5a296e395141', 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: 'd010e340fc4dd341ca566109f5a1c38a89857411', class: "duet-pagination-page-number", "aria-hidden": "true" }, "\u2026")))), h("li", { key: '984d35d520c9b995ed48c7fbc7a58bfd8c89357d', class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, h("duet-button", { key: '5bb07665b261db54475de478bf2f5fb974ee4047', 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: '559d8dd4a0f63d440523de1ff4879cbcd8bca408', class: "duet-pagination-page-number" }, this.totalPages))))), h("li", { key: '9c986c1207ec4918758a931d009d48708818e736', 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: 'c8f4048dcf9cb28c6bd4d43c1d1945c2da15ce50', 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: 'f605fc50e28b58a780fa938885031353088d1fc5', 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: 'da162ed3e9a0bb469be3670395bccda489aeb97a', 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
|
}
|
|
@@ -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
|
}
|
|
@@ -30,7 +30,7 @@ export class DuetPanel {
|
|
|
30
30
|
inheritGlobalTheme(this);
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'ba9383fe5d683d44e90c7e3d9f3539365dfbe497' }, h("section", { key: '149796219e3ea56f5fdeab2e2aeaa8ddb3d1fb7e', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, "aria-describedby": this.accessibleDescribedBy, class: {
|
|
34
34
|
"duet-panel": true,
|
|
35
35
|
"duet-theme-turva": this.theme === "turva",
|
|
36
36
|
[this.variation.split("-")[0]]: true,
|
|
@@ -38,7 +38,7 @@ export class DuetPanel {
|
|
|
38
38
|
[`padding-${this.padding}`]: true,
|
|
39
39
|
border: this.border,
|
|
40
40
|
"duet-m-0": this.margin === "none",
|
|
41
|
-
} }, h("slot", { key: '
|
|
41
|
+
} }, h("slot", { key: '8291e9635f7795c4e54dfef34239dcda4dbdb33a' }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "duet-panel"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,7 +51,7 @@ export class DuetParagraph {
|
|
|
51
51
|
const color = getColorByName(this.color);
|
|
52
52
|
// aria-describedby is to fix accessibility issue in Chrome where duet-paragraphs
|
|
53
53
|
// are not announced when placed inside duet-modal
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '99168fa787b98f3c65146d539ac5a1c391254a95', "aria-describedby": this.id }, h("p", { key: '9b4fb9eb7525804fd786ca72c13bafdfb4c9dfc8', id: this.id, class: {
|
|
55
55
|
"duet-paragraph": true,
|
|
56
56
|
"duet-paragraph-small": this.size === "small",
|
|
57
57
|
"duet-paragraph-semi-bold": this.weight === "semi-bold",
|
|
@@ -59,7 +59,7 @@ export class DuetParagraph {
|
|
|
59
59
|
"duet-m-0": this.margin === "none",
|
|
60
60
|
[this.variation]: true,
|
|
61
61
|
"duet-theme-turva": this.theme === "turva",
|
|
62
|
-
}, style: { color }, part: "duet-paragraph" }, h("slot", { key: '
|
|
62
|
+
}, style: { color }, part: "duet-paragraph" }, h("slot", { key: '2cc4063866d09f9fc1569bbf3d26661472485147' }))));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "duet-paragraph"; }
|
|
65
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -81,6 +81,11 @@ export class DuetPhoneInput {
|
|
|
81
81
|
* Tooltip to display next to the label of the input.
|
|
82
82
|
*/
|
|
83
83
|
this.tooltip = "";
|
|
84
|
+
/**
|
|
85
|
+
* If the value is set above before the component has rendered, the ref to duetInputElement has not yet been set.
|
|
86
|
+
* In these cases we set the value to this.pendingValue and after the first render pass it on to this.duetInputElement.
|
|
87
|
+
*/
|
|
88
|
+
this.pendingValue = undefined;
|
|
84
89
|
/**
|
|
85
90
|
* Countries to list at the top of the popup-menu, given as an array or comma separated list of ISO 3166-2 codes.
|
|
86
91
|
* @default ["FI", "SE"]
|
|
@@ -189,8 +194,13 @@ export class DuetPhoneInput {
|
|
|
189
194
|
return (_c = (_b = (_a = this.duetInputElement) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.replace(/\s/g, "")) !== null && _c !== void 0 ? _c : "";
|
|
190
195
|
}
|
|
191
196
|
set value(val) {
|
|
192
|
-
this.duetInputElement
|
|
193
|
-
|
|
197
|
+
if (!this.duetInputElement) {
|
|
198
|
+
this.pendingValue = val;
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
this.duetInputElement.value = `${val}`.replace(/[^\d+ ]/g, "");
|
|
202
|
+
this.handleInput();
|
|
203
|
+
}
|
|
194
204
|
}
|
|
195
205
|
/**
|
|
196
206
|
* This is a proxy for the enclosed native inputs validity
|
|
@@ -207,6 +217,11 @@ export class DuetPhoneInput {
|
|
|
207
217
|
checkNamedSlotElement(this.element, "tooltip", "duet-tooltip", 1, true);
|
|
208
218
|
this.setListFirstCountries();
|
|
209
219
|
}
|
|
220
|
+
componentDidLoad() {
|
|
221
|
+
if (this.pendingValue) {
|
|
222
|
+
this.duetInputElement.value = this.pendingValue;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
210
225
|
connectedCallback() {
|
|
211
226
|
connectLanguageChangeObserver(this, { prop: "label", defaults: "labelDefaults" });
|
|
212
227
|
subscribeTabbingChange(this);
|
|
@@ -282,7 +297,7 @@ export class DuetPhoneInput {
|
|
|
282
297
|
"duet-theme-turva": this.theme === "turva",
|
|
283
298
|
"duet-expand": this.expand,
|
|
284
299
|
"duet-m-0": this.margin === "none",
|
|
285
|
-
} }, h("div", { class: "duet-phone-input-container" }, h("duet-popup-menu", { ref: el => (this.countryCodePopup = el), scrollLimit: 10, showFilterInput: true }, this.countriesToList.map(country => country.isoCode === lastListFirstCode ? (h(Fragment, null, h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")"))), h("duet-divider", null))) : (h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")")))))), h("duet-input", { ref: el => (this.duetInputElement = el), onDuetChange: this.handleChange, onDuetFocus: this.handleFocus, onDuetBlur: this.handleBlur, onDuetInput: this.handleInput, label: this.label, caption: this.caption, error: this.error, name: this.name, component: "phone", variation: "button-left", type: "tel", disallowPattern: "[^\\+0-9 ]", required: this.required, disabled: this.disabled, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true }, h("duet-button", { ref: el => (this.countryCodeButton = el), slot: "button-left", variation: "input-button-left-secondary", margin: "none", fixed: true, icon: "action-arrow-down-small", iconSize: "small", iconRight: true, accessibleLabel: this.buttonAriaLabel[this.language], onClick: this.handleCountryCodeSelectorOpen }, h("span", { class: "flag-container" }, this.getFlagForButton())), h("slot", { name: "tooltip" })))));
|
|
300
|
+
} }, h("div", { class: "duet-phone-input-container" }, h("duet-popup-menu", { ref: el => (this.countryCodePopup = el), scrollLimit: 10, showFilterInput: true }, this.countriesToList.map(country => country.isoCode === lastListFirstCode ? (h(Fragment, null, h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")"))), h("duet-divider", null))) : (h("duet-popup-menu-item", { value: country.isoCode, onClick: this.handleCountryCodeSelectorSelect }, h("duet-grid", { alignment: "center" }, this.renderFlag(country.isoCode), h("span", null, country[this.language], " (+", country.telephoneCountryCode, ")")))))), h("duet-input", { ref: el => (this.duetInputElement = el), onDuetChange: this.handleChange, onDuetFocus: this.handleFocus, onDuetBlur: this.handleBlur, onDuetInput: this.handleInput, label: this.label, caption: this.caption, error: this.error, name: this.name, minlength: this.minlength, maxlength: this.maxlength, component: "phone", variation: "button-left", type: "tel", disallowPattern: "[^\\+0-9 ]", required: this.required, disabled: this.disabled, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true }, h("duet-button", { ref: el => (this.countryCodeButton = el), slot: "button-left", variation: "input-button-left-secondary", margin: "none", fixed: true, icon: "action-arrow-down-small", iconSize: "small", iconRight: true, accessibleLabel: this.buttonAriaLabel[this.language], onClick: this.handleCountryCodeSelectorOpen }, h("span", { class: "flag-container" }, this.getFlagForButton())), h("slot", { name: "tooltip" })))));
|
|
286
301
|
}
|
|
287
302
|
static get is() { return "duet-phone-input"; }
|
|
288
303
|
static get encapsulation() { return "shadow"; }
|
|
@@ -684,6 +699,44 @@ export class DuetPhoneInput {
|
|
|
684
699
|
"reflect": false,
|
|
685
700
|
"defaultValue": "\"\""
|
|
686
701
|
},
|
|
702
|
+
"maxlength": {
|
|
703
|
+
"type": "number",
|
|
704
|
+
"attribute": "maxlength",
|
|
705
|
+
"mutable": false,
|
|
706
|
+
"complexType": {
|
|
707
|
+
"original": "number",
|
|
708
|
+
"resolved": "number",
|
|
709
|
+
"references": {}
|
|
710
|
+
},
|
|
711
|
+
"required": false,
|
|
712
|
+
"optional": false,
|
|
713
|
+
"docs": {
|
|
714
|
+
"tags": [],
|
|
715
|
+
"text": "Use maxlength to specify the maximum length of the value that can be entered."
|
|
716
|
+
},
|
|
717
|
+
"getter": false,
|
|
718
|
+
"setter": false,
|
|
719
|
+
"reflect": false
|
|
720
|
+
},
|
|
721
|
+
"minlength": {
|
|
722
|
+
"type": "number",
|
|
723
|
+
"attribute": "minlength",
|
|
724
|
+
"mutable": false,
|
|
725
|
+
"complexType": {
|
|
726
|
+
"original": "number",
|
|
727
|
+
"resolved": "number",
|
|
728
|
+
"references": {}
|
|
729
|
+
},
|
|
730
|
+
"required": false,
|
|
731
|
+
"optional": false,
|
|
732
|
+
"docs": {
|
|
733
|
+
"tags": [],
|
|
734
|
+
"text": "Use minlength to specify the minimum length of the value that can be entered."
|
|
735
|
+
},
|
|
736
|
+
"getter": false,
|
|
737
|
+
"setter": false,
|
|
738
|
+
"reflect": false
|
|
739
|
+
},
|
|
687
740
|
"value": {
|
|
688
741
|
"type": "string",
|
|
689
742
|
"attribute": "value",
|
|
@@ -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: '
|
|
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: '0f2158f8bbbda5ef74e8b559d9c7399c15ec67b2', 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: 'bdce9e7ce0ae1db78450e59113a6a48de13ef306', 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"; }
|
|
@@ -70,12 +70,12 @@ export class DuetPromoCard {
|
|
|
70
70
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
71
71
|
};
|
|
72
72
|
const TagName = this.url ? "a" : "div";
|
|
73
|
-
return (h(Host, { key: '
|
|
73
|
+
return (h(Host, { key: 'dc2cca9861a1e0c15b93ea6f29247986eb98d268', class: { "duet-m-0": this.margin === "none" } }, h("aside", { key: 'b0bf8b66f35c1edc6a61dbea64f18e3617ec2a11', class: {
|
|
74
74
|
"duet-promo-card": true,
|
|
75
75
|
"duet-theme-turva": this.theme === "turva",
|
|
76
76
|
"no-bg-color": !this.backgroundColor,
|
|
77
77
|
"duet-promo-card-link": !!this.url,
|
|
78
|
-
}, style: bannerStyles }, h(TagName, { key: '
|
|
78
|
+
}, style: bannerStyles }, h(TagName, { key: '8e479735705a8fc5cbe67b78dc74d63eb351abb1', href: this.url, class: "content-wrapper", ref: element => (this.aOrDivElement = element) }, h("img", { key: 'ca59fe0d082b54c7fcb3725d7ab17d9bcbdea992', class: "image", src: this.image, alt: "", role: "presentation" }), h("div", { key: 'bb932a867cca710efa77488065fea73293daddab', class: "content" }, this.hasPreHeadingSlot && (h("div", { key: '642577f6fcd203efd73700e4c553502aa2d56733', class: "pre-heading" }, h("slot", { key: '153d63289a49239bc9aecdba096675757d4a1630', name: "pre-heading" }))), this.hasHeadingSlot && (h("div", { key: '6a7cad0fc8841e0e65ddacd5d482d8df246923f6', class: "heading" }, h("duet-heading", { key: '5262b84f2429bc6c7e47876f24bc7139a8f1b46f', theme: this.theme, level: this.headingLevel, "visual-level": "h3", margin: "none", color: postfixTheme(this.textColor, this.theme) }, h("span", { key: '3cf56a75df5349003df143f2aa22cf439847a842' }, h("slot", { key: 'e6879565328b3898ee569cd7a13ad064da0686f7', name: "heading" }))))), this.hasDescriptionSlot && (h("div", { key: '1b6ce64573256914244b57f7a68297915846404c', class: "description" }, h("duet-paragraph", { key: '23e88abdcecce551c435aee9f927d64ec0e9ad61', theme: this.theme, margin: "none", color: postfixTheme(this.textColor, this.theme) }, h("span", { key: 'e4e17be56c742e06ecafce3b10245e4a8fbeac5c' }, h("slot", { key: '87a1787857492630ca860582bd92d967899e6b41', name: "description" }))))), this.hasActionSlot && (h("div", { key: 'd24d4f1279e861f01dd9b36bd8bf6d2a765b9321', class: "action" }, h("slot", { key: '9abdd9f8370819e8d49ae68e7ee944d7bd970bdf', name: "action" }))))))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "duet-promo-card"; }
|
|
81
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -182,16 +182,16 @@ export class DuetRadio {
|
|
|
182
182
|
* Always the last one in the class.
|
|
183
183
|
*/
|
|
184
184
|
render() {
|
|
185
|
-
return (h(Host, { key: '
|
|
185
|
+
return (h(Host, { key: '5b1a38835b8478e9e31e2893f654d4a7da0de880', onClick: this.onClick, class: {
|
|
186
186
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
187
187
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
188
188
|
"duet-m-0": this.margin === "none",
|
|
189
|
-
} }, h("div", { key: '
|
|
189
|
+
} }, h("div", { key: '7397b43b1104dbdc870ec0ad65793bd372062eaf', class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, h("slot", { key: '8daf569056a859f5362236e546a61e958ba4bcaf', name: "input" }), h("label", { key: '3acd012b17207cf38a15085d2cc868b3e4cc8c1c', inert: true, ref: element => (this.labelElement = element), class: {
|
|
190
190
|
"duet-label": true,
|
|
191
191
|
checked: this.checked,
|
|
192
192
|
focus: this.focus,
|
|
193
193
|
disabled: this.disabled || this.groupDisabled,
|
|
194
|
-
} }, h("div", { key: '
|
|
194
|
+
} }, h("div", { key: '5fb433fd2fe57f3e560fdefcabff68999301596a', class: "duet-label-content" }, this.hasLabel ? h("slot", { name: "label" }) : this.label)))));
|
|
195
195
|
}
|
|
196
196
|
static get is() { return "duet-radio"; }
|
|
197
197
|
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: '75281a29a3832c1cb7da47661917bfafc9c62417', onDuetChange: this.onSelect, class: { horizontal: this.direction === "horizontal" } }, h("duet-fieldset", { key: '2901f0bea0d5dfc88cf8294e6327eae318126730', 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: '678ff82e3e50fcce19e728f2de3e6e5afdbab92b', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '9e6ab1dae2009df95255f36f15c81fffcfbf2550', name: "tooltip" }), h("div", { key: 'b5cafc4677568d85eb02dcd9db30a05415beabb7', class: { "duet-radio-group": true, "duet-no-stacking": !this.responsive } }, h("slot", { key: '7f6b9bf1351b7d2133068f7039aea53d8a8d51a3' })))));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "duet-radio-group"; }
|
|
164
164
|
static get encapsulation() { return "shadow"; }
|
|
@@ -156,13 +156,13 @@ export class DuetRangeSlider {
|
|
|
156
156
|
const rangeStyles = {
|
|
157
157
|
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
158
158
|
};
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: 'b314e267c1ad480ad5bde17e9dcee976fd141e43', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, h("div", { key: '87813c3a581e46540a20e21013e121db45cb7f5c', class: {
|
|
160
160
|
"duet-range-container": true,
|
|
161
161
|
"duet-label-hidden": this.labelHidden,
|
|
162
162
|
"duet-theme-turva": this.theme === "turva",
|
|
163
163
|
"duet-ie": isInternetExplorer(),
|
|
164
164
|
"duet-range-disabled": this.disabled,
|
|
165
|
-
} }, h(DuetInternalLabel, { key: '
|
|
165
|
+
} }, h(DuetInternalLabel, { key: 'b5d4bd9d56df7b88df2bdde8c28f1b01009e8821', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), h("output", { key: '6c30c88731245730cfcf47e2d00a823147708e7d', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), h("input", { key: '3e72fea4ee736546b6eee5aa15e70c80d73ee4de', onInput: this.onInput, onChange: this.onChange, ref: input => (this.nativeInput = input), type: "range", min: this.min, max: this.max, step: this.step, value: this.value, style: rangeStyles, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} ${this.unit}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, id: identifier, name: this.name, disabled: this.disabled, required: this.required, class: "duet-range" }))));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "duet-range-slider"; }
|
|
168
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -196,10 +196,10 @@ export class DuetRangeStepper {
|
|
|
196
196
|
* Always the last one in the class.
|
|
197
197
|
*/
|
|
198
198
|
render() {
|
|
199
|
-
return (h("div", { key: '
|
|
199
|
+
return (h("div", { key: '2a89e50996cd8e4042f3346509ddfa57d0bd52f1', class: {
|
|
200
200
|
"duet-range-stepper": true,
|
|
201
201
|
"duet-theme-turva": this.theme === "turva",
|
|
202
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: '
|
|
202
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: 'aaf1114df81cf75124d221b335b34836eab22c02', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), h("duet-action-button", { key: 'b1b61bd073925f8bb4ecbbe04a90ed652f029254', disabled: this.disabled || this.buttonLeftDisabled, class: "duet-range-step-button duet-range-step-minus", onClick: e => this.handleClick(e, -1), id: this.leftBn, "accessible-label": `${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`, ref: el => (this.leftBnRef = el), part: "navigation-arrow", iconName: "action-arrow-left-small", title: "" }), h("duet-action-button", { key: 'de3659fcb369d0501251878bf6a9edaa334893cf', disabled: this.disabled || this.buttonRightDisabled, class: "duet-range-step-button duet-range-step-plus", onClick: e => this.handleClick(e, 1), "accessible-label": `${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow", iconName: "action-arrow-right-small", title: "" })));
|
|
203
203
|
}
|
|
204
204
|
static get is() { return "duet-range-stepper"; }
|
|
205
205
|
static get encapsulation() { return "shadow"; }
|
|
@@ -265,18 +265,18 @@ export class DuetScrollable {
|
|
|
265
265
|
* Always the last one in the class.
|
|
266
266
|
*/
|
|
267
267
|
render() {
|
|
268
|
-
return (h(Host, { key: '
|
|
268
|
+
return (h(Host, { key: '08bd619c649c87a18350a6482f12d1e4f5faa74f', class: {
|
|
269
269
|
"duet-theme-turva": this.theme === "turva",
|
|
270
270
|
"duet-theme-default": this.theme === "default",
|
|
271
|
-
} }, this.hasCollapseButtonLabelSlot && (h("div", { key: '
|
|
271
|
+
} }, this.hasCollapseButtonLabelSlot && (h("div", { key: 'bf374209112d29e4af9efff12abdf32d54b68b7b', class: {
|
|
272
272
|
collapse: true,
|
|
273
273
|
hide: !this.needsScrolling && !this.collapsed,
|
|
274
|
-
} }, h("duet-button", { key: '
|
|
274
|
+
} }, h("duet-button", { key: '436c9918ceb503be3611af38dc0513ab300891af', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, h("slot", { key: '64504fe187f7ce121654dbf25597dd06ef23fbb1', name: "collapse-button-label" })))), h("div", { key: '10852d822fc4164466dfe48b2ccf33904cae5e14', class: {
|
|
275
275
|
"duet-scrollable-items": true,
|
|
276
276
|
buttons: this.buttons,
|
|
277
277
|
center: this.center,
|
|
278
278
|
"duet-theme-turva": this.theme === "turva",
|
|
279
|
-
} }, this.buttons && this.renderButton("left"), h("div", { key: '
|
|
279
|
+
} }, this.buttons && this.renderButton("left"), h("div", { key: '119261686c6a1e4511d4ed3ba74d3c5795f83b34', class: {
|
|
280
280
|
"duet-scrollable-list": true,
|
|
281
281
|
[`duet-scrollable-list--${this.buttonPosition}`]: true,
|
|
282
282
|
[`gap-${this.gap}`]: true,
|
|
@@ -284,7 +284,7 @@ export class DuetScrollable {
|
|
|
284
284
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
285
285
|
[`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
|
|
286
286
|
"duet-scrollable-stretch": this.stretch,
|
|
287
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: '
|
|
287
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: 'dd02f8d349e59303232b4338d115fd192cb31f9b' })), this.buttons && this.renderButton("right"))));
|
|
288
288
|
}
|
|
289
289
|
static get is() { return "duet-scrollable"; }
|
|
290
290
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,13 +24,13 @@ export class DuetSectionLayout {
|
|
|
24
24
|
* Always the last one in the class.
|
|
25
25
|
*/
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '1423181d3efb8f77211a81db6dc7a415457b23f4', class: {
|
|
28
28
|
"duet-middle": this.middle,
|
|
29
29
|
"duet-ie": isInternetExplorer(),
|
|
30
|
-
} }, h("div", { key: '
|
|
30
|
+
} }, h("div", { key: '3b08e02d99ce4d269a90522f896ecfb43608c79f', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, h("div", { key: '1c60dd6abba084bdf4b29b9cb4b6e94d137517e3', class: {
|
|
31
31
|
"duet-layout": true,
|
|
32
32
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
33
|
-
} }, h("section", { key: '
|
|
33
|
+
} }, h("section", { key: 'be58aa5ae79e61f3ba8e2bbadb119d169ab51d59', class: "duet-main" }, h("slot", { key: '43f94baf777b2626fefaa2a85d752f3e4652ed94' }))))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "duet-section-layout"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '12696ad891ed3aac656379150b4fb42ee9b438eb', 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: '48c83de632dfb790e5cde841fd86e518806ab9d0', 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: '58a180baf718e83ccd6afc154b0986098c378041', 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: 'e569b839a9c0c2e02624ec892239f94f84c0d2b5', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: 'd6d7c011dfb11ddadbaf95b5391c124d1e7a76f1', name: "tooltip" }), this.caption && (h("duet-caption", { key: 'eeff5cb9ef75a161020d0c3ed5d7c4bc22cc2f75', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: 'b483936049468a651634c5d5e075c860d1ddbc91', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: 'eb3c277270c2177dfd2a2381d137815d22681d4f', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), h("slot", { key: 'b6a901c14de9ba56540e08e685b1ae4bd95bfde3' }), h("select", { key: '19653ed57dce9ee8ebb05c92530e49940e72dd4c', 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: '61d96c9c682e4789d6ee1c38c7e77683851aea20', 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: 'c54b8f6526bdb4c98ea68c129515f218d0f6d72d', 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: '975172b711f315f369710ab9999b4923e8fd2e6c', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '4ad21d1d0deb94b461d329c447165357d6c3fe41', 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: '69d1a79414b3f6a979f5f949f16c386e79c92014', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), h("span", { key: 'da0790b7bc5ef09391ac1b111b168e0ea4a699e5', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), h("span", { key: 'ff0bd43faa6dee4142d0ae21c780becd40a73e8f', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", { key: '7b5256e5baf684112fc012ac735261731e128bb2', class: "duet-select-error" }, this.error)))));
|
|
220
220
|
}
|
|
221
221
|
static get is() { return "duet-select"; }
|
|
222
222
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,9 +33,9 @@ export class DuetShapedImage {
|
|
|
33
33
|
const style = {
|
|
34
34
|
"--rotation": `${this.rotation}deg`,
|
|
35
35
|
};
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '27f36b3527731cc1d47a65655e150c963b9a23d9', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, h("span", { key: 'b3d7bf5649da0a77e9bee42baab54840e47f9505', class: {
|
|
37
37
|
"shaped-image": true,
|
|
38
|
-
}, role: "img", "aria-label": this.accessibleLabel, style: style }, h("span", { key: '
|
|
38
|
+
}, role: "img", "aria-label": this.accessibleLabel, style: style }, h("span", { key: '84fe60ad6ee4fdcc2544b07c5c07a214cf5efb15', class: "shaped-image-mask", role: "presentation" }, h("span", { key: 'edb1df30260d26bb87ef59a97aa031c97e4dce6d', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "duet-shaped-image"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,12 +63,12 @@ export class DuetShareChart {
|
|
|
63
63
|
this.itemsTotalValue = this.items.reduce((total, { value }) => total + value, 0);
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: 'c22523d7e91ce5ef59f5553ed847309cc45c9499' }, h("div", { key: '9aa4f2e4c117c5f7c30bce27585c7abc4d5568ea', class: "duet-share-chart-horizontal-bar", role: "presentation" }, this.items
|
|
67
67
|
.filter(i => !!i.value)
|
|
68
68
|
.map(item => (h("span", { class: "duet-share-chart-share", style: {
|
|
69
69
|
width: `${(item.value / this.itemsTotalValue) * 100}%`,
|
|
70
70
|
backgroundColor: getColorByName(item.color, this.theme),
|
|
71
|
-
} })))), h("ul", { key: '
|
|
71
|
+
} })))), h("ul", { key: '428d17dde9185b071455325d5d2195618f4a0267', class: "duet-share-chart-item-list" }, this.items.map(item => (h("li", { class: { "duet-theme-turva": this.theme === "turva" } }, h("span", { class: "duet-share-chart-item-color", style: { background: getColorByName(item.color, this.theme) } }), h("span", { class: "duet-share-chart-item-text" }, item.text, ":"), h("span", { class: "duet-share-chart-item-value" }, "\u00A0", formatNumber(item.value), "\u00A0", this.unit), this.unit !== "%" && (h("duet-visually-hidden", null, `${formatNumber((item.value / this.itemsTotalValue) * 100, 0)} %`)))))), h("slot", { key: '2f394e013dfe0a533524bef6f0649f57d1c2d957' })));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "duet-share-chart"; }
|
|
74
74
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class DuetShareChartItem {
|
|
|
10
10
|
this.value = 0;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'fb5eafa552f0f72600a3cec4b325ce891073f5bb' }, h("div", { key: 'b982b99b868fee7e0211a9b0dba7306eb2615874', hidden: true }, h("slot", { key: 'e8501789a378faa695408b024dd6d7c83aa3c1c9' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "duet-share-chart-item"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -136,12 +136,12 @@ export class DuetShowMore {
|
|
|
136
136
|
* Always the last one of the class.
|
|
137
137
|
*/
|
|
138
138
|
render() {
|
|
139
|
-
return (h(Host, { key: '
|
|
139
|
+
return (h(Host, { key: '5a2691671f8db729580e5e163f0a4172065b60a1' }, h("div", { key: 'd00e9ad7eec18c34b53f35be55000cc238e96d41', class: {
|
|
140
140
|
"duet-show-more": true,
|
|
141
141
|
"duet-theme-turva": this.theme === "turva",
|
|
142
142
|
"duet-m-0": this.margin === "none",
|
|
143
143
|
open: this.open,
|
|
144
|
-
} }, h("div", { key: '
|
|
144
|
+
} }, h("div", { key: '4db263318b4e7dd0a0b79d2ce7db9708194246c4', ref: ref => (this.contentElement = ref), class: { content: true }, id: this.contentId, tabindex: this.open ? "-1" : "" }, h("div", { key: 'e3a7ffd7b7acf798ecbcbacd26e721471c48c447', class: { "slotted-content": true } }, h("slot", { key: 'db2dbe58ad4f75648f0e98c80dd00a1909f745f9' }))), h("duet-button", { key: '9ece7898fa0ad9effd08cc728b38d580aad8e906', id: this.buttonId, variation: "plain", "accessible-label": this.buttonAriaOpen ? this.showLessAccessibleLabel : this.showMoreAccessibleLabel, "accessible-expanded": this.buttonAriaOpen ? "true" : "false", "accessible-controls": this.contentId, accessiblePressed: this.isSafariBrowser ? this.open : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "icon-right": true, icon: this.open ? "action-arrow-up-small" : "action-arrow-down-small", "icon-size": "medium-small", size: "small", margin: this.buttonMargin, padding: this.buttonPadding, theme: this.theme === "turva" ? "turva" : "default" }, h("span", { key: '4f697ac0915ece52e0edb022923f05e2c2812cb1' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
|
|
145
145
|
}
|
|
146
146
|
static get is() { return "duet-show-more"; }
|
|
147
147
|
static get encapsulation() { return "shadow"; }
|