@duetds/components 10.5.0 → 10.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +501 -263
- package/hydrate/index.mjs +501 -263
- package/lib/cjs/{a11y-utils-DaAO4N9d.js → a11y-utils-CgWjS7yq.js} +1 -1
- package/lib/cjs/{app-globals-CHNvdfQj.js → app-globals-D68ciWsb.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +6 -6
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +7 -7
- package/lib/cjs/duet-banner.cjs.entry.js +15 -16
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
- package/lib/cjs/duet-button_2.cjs.entry.js +8 -8
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +11 -11
- package/lib/cjs/duet-card.cjs.entry.js +21 -10
- package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +28 -12
- package/lib/cjs/duet-choice_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +6 -6
- package/lib/cjs/duet-contact-card.cjs.entry.js +17 -7
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +127 -14
- package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +15 -15
- 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 +5 -5
- package/lib/cjs/duet-grid_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-hero.cjs.entry.js +22 -21
- package/lib/cjs/duet-icon.cjs.entry.js +7 -7
- package/lib/cjs/duet-indicator.cjs.entry.js +5 -5
- package/lib/cjs/duet-input_2.cjs.entry.js +70 -18
- 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 +5 -5
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +7 -7
- 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 +6 -6
- package/lib/cjs/duet-modal.cjs.entry.js +15 -15
- package/lib/cjs/duet-multiselect.cjs.entry.js +11 -11
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +10 -10
- package/lib/cjs/duet-number-input.cjs.entry.js +9 -9
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +6 -6
- package/lib/cjs/duet-pagination_2.cjs.entry.js +19 -19
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +11 -6
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +10 -10
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +20 -8
- package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-range-slider.cjs.entry.js +8 -8
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +18 -18
- 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 +8 -8
- package/lib/cjs/duet-show-more.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
- package/lib/cjs/duet-slideout.cjs.entry.js +20 -14
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- package/lib/cjs/duet-toggle.cjs.entry.js +9 -9
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +10 -10
- package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
- package/lib/cjs/duet-tray.cjs.entry.js +7 -7
- 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-Dkf_MfrJ.js → errorcodes.utils-C0tQ3k6Z.js} +1 -1
- package/lib/cjs/{focus-utils-BuGg0Oha.js → focus-utils-tCoGOO7d.js} +1 -1
- package/lib/cjs/{index-ZxE6MB5V.js → index-BeiMjjVl.js} +9 -9
- package/lib/cjs/{keyboard-utils-D9UlHbik.js → keyboard-utils-DibQafwg.js} +2 -0
- package/lib/cjs/{label-CpPOBfjS.js → label-Cu4DNShe.js} +1 -1
- package/lib/cjs/{language-utils-C7Z0KYg-.js → language-utils-B3NubUDr.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/picture-utils-D_HVgfq5.js +15 -0
- package/lib/cjs/{slot-utils-BXdHT3A1.js → slot-utils-Dny6EJ_G.js} +1 -1
- package/lib/cjs/{themeable-component-CIDaln0Z.js → themeable-component-Csdvrnsd.js} +1 -1
- package/lib/cjs/{token-utils-DY3-olMV.js → token-utils-ZISdNshf.js} +1 -1
- package/lib/cjs/{tokens.module-CTbvyezn.js → tokens.module-CGRpZaa1.js} +2 -1
- package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.css +12 -0
- package/lib/collection/components/duet-banner/duet-banner.js +30 -5
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.js +8 -8
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.css +3 -0
- package/lib/collection/components/duet-card/duet-card.js +43 -7
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +53 -17
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +3 -0
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +38 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/date-picker-month.js +4 -2
- package/lib/collection/components/duet-date-picker/date-utils.js +7 -0
- package/lib/collection/components/duet-date-picker/disallowed-days.js +23 -0
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +100 -10
- package/lib/collection/components/duet-date-picker/finnish-bank-holidays.js +66 -0
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +3 -3
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +7 -7
- package/lib/collection/components/duet-grid/duet-grid.js +3 -3
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.css +92 -14
- package/lib/collection/components/duet-hero/duet-hero.js +47 -21
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-indicator/duet-indicator.js +3 -3
- package/lib/collection/components/duet-input/duet-input.js +73 -20
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.js +6 -6
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list/duet-list.js +4 -4
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +2 -2
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +4 -4
- 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 +11 -11
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +11 -11
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +4 -4
- package/lib/collection/components/duet-number-input/duet-number-input.js +8 -8
- package/lib/collection/components/duet-overlay/duet-overlay.js +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +3 -3
- package/lib/collection/components/duet-pagination/duet-pagination.js +13 -13
- package/lib/collection/components/duet-panel/duet-panel.js +3 -3
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +5 -5
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +30 -5
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +4 -4
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +4 -0
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +39 -2
- package/lib/collection/components/duet-radio/duet-radio.js +6 -6
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +4 -4
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +3 -3
- 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 +10 -10
- 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 +3 -3
- package/lib/collection/components/duet-slideout/duet-slideout.js +12 -6
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +3 -3
- 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 +4 -4
- package/lib/collection/components/duet-stepper/duet-stepper.js +2 -2
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +9 -9
- package/lib/collection/components/duet-table/duet-table-styles.js +5 -5
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +7 -7
- package/lib/collection/components/duet-toggle/duet-toggle.js +4 -4
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +16 -16
- 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 +4 -4
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/keyboard-utils.js +1 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/p-054c334d.entry.js +4 -0
- package/lib/duet/{p-3277233e.entry.js → p-0e10e36b.entry.js} +1 -1
- package/lib/duet/{p-9ae7aaef.entry.js → p-12d7fdf6.entry.js} +1 -1
- package/lib/duet/{p-3f7afd87.entry.js → p-1579bdf5.entry.js} +1 -1
- package/lib/duet/{p-7eea47d5.entry.js → p-174935bc.entry.js} +1 -1
- package/lib/duet/{p-42ec7305.entry.js → p-1d7a9425.entry.js} +1 -1
- package/lib/duet/{p-317e81f3.entry.js → p-20066df8.entry.js} +1 -1
- package/lib/duet/{p-3690576a.entry.js → p-20c8226c.entry.js} +1 -1
- package/lib/duet/{p-19863cdf.entry.js → p-210bc161.entry.js} +1 -1
- package/lib/duet/{p-b747f6e9.entry.js → p-244bfbf9.entry.js} +1 -1
- package/lib/duet/{p-38973524.entry.js → p-264688ae.entry.js} +1 -1
- package/lib/duet/{p-93ff8fe4.entry.js → p-2bf78fe4.entry.js} +1 -1
- package/lib/duet/{p-9e1a59d1.entry.js → p-2e44c6b8.entry.js} +1 -1
- package/lib/duet/{p-c1afac0d.entry.js → p-304a9a55.entry.js} +1 -1
- package/lib/duet/{p-516397ba.entry.js → p-30d8a1e4.entry.js} +1 -1
- package/lib/duet/p-3445529c.entry.js +4 -0
- package/lib/duet/{p-2f8a47e2.entry.js → p-3533d6ee.entry.js} +1 -1
- package/lib/duet/{p-fe829b53.entry.js → p-374b48f6.entry.js} +1 -1
- package/lib/duet/{p-7353ee4c.entry.js → p-3b9d7f6a.entry.js} +1 -1
- package/lib/duet/{p-5f5f72d4.entry.js → p-3def9480.entry.js} +1 -1
- package/lib/duet/p-3fbe466a.entry.js +4 -0
- package/lib/duet/{p-d3b5c997.entry.js → p-407d4e5a.entry.js} +1 -1
- package/lib/duet/p-41230630.entry.js +4 -0
- package/lib/duet/p-44e53564.entry.js +4 -0
- package/lib/duet/p-46287d85.entry.js +4 -0
- package/lib/duet/p-48e77341.entry.js +4 -0
- package/lib/duet/{p-a8876b3d.entry.js → p-4a041c60.entry.js} +1 -1
- package/lib/duet/{p-efa4eecc.entry.js → p-4a251661.entry.js} +1 -1
- package/lib/duet/{p-407f7f03.entry.js → p-4a4e5bb5.entry.js} +1 -1
- package/lib/duet/{p-b1326cbb.entry.js → p-4acdc586.entry.js} +1 -1
- package/lib/duet/{p-8ace1eb4.entry.js → p-4b07ce36.entry.js} +1 -1
- package/lib/duet/{p-e7f2359a.entry.js → p-4cee693b.entry.js} +1 -1
- package/lib/duet/{p-3f35fce3.entry.js → p-4e1c2676.entry.js} +1 -1
- package/lib/duet/{p-40fa7371.entry.js → p-4e5532c8.entry.js} +1 -1
- package/lib/duet/{p-7fd39204.entry.js → p-512d18c8.entry.js} +1 -1
- package/lib/duet/{p-6ef683d5.entry.js → p-555e0c78.entry.js} +1 -1
- package/lib/duet/{p-cb6c4158.entry.js → p-5b322a86.entry.js} +1 -1
- package/lib/duet/p-5f72134e.entry.js +4 -0
- package/lib/duet/{p-dedf6a32.entry.js → p-61abccd4.entry.js} +1 -1
- package/lib/duet/{p-443af533.entry.js → p-6a11ba26.entry.js} +1 -1
- package/lib/duet/{p-f040706c.entry.js → p-6bd78205.entry.js} +1 -1
- package/lib/duet/p-6c239923.entry.js +4 -0
- package/lib/duet/{p-bdbf0fae.entry.js → p-6ce82324.entry.js} +1 -1
- package/lib/duet/{p-268b3066.entry.js → p-6d1d1199.entry.js} +1 -1
- package/lib/duet/p-81c5d3e3.entry.js +4 -0
- package/lib/duet/p-829bccb7.entry.js +4 -0
- package/lib/duet/{p-c2026c6b.entry.js → p-83dcbb64.entry.js} +1 -1
- package/lib/duet/{p-461d4089.entry.js → p-84f8bee8.entry.js} +1 -1
- package/lib/duet/{p-d6f0afa5.entry.js → p-8927ccc1.entry.js} +1 -1
- package/lib/duet/{p-3b2fba0f.entry.js → p-8bdcfd1f.entry.js} +1 -1
- package/lib/duet/{p-833802f9.entry.js → p-8fbcea55.entry.js} +1 -1
- package/lib/duet/{p-20a8ef81.entry.js → p-914ee7ac.entry.js} +1 -1
- package/lib/duet/{p-d3baa815.entry.js → p-95bb2a8d.entry.js} +1 -1
- package/lib/duet/{p-cbcee3e2.entry.js → p-985213bb.entry.js} +1 -1
- package/lib/duet/{p-52beb436.entry.js → p-9889218e.entry.js} +1 -1
- package/lib/duet/{p-30108edc.entry.js → p-9b2731b9.entry.js} +1 -1
- package/lib/duet/{p-829db926.entry.js → p-9b448008.entry.js} +1 -1
- package/lib/duet/p-9c41f1d5.entry.js +4 -0
- package/lib/duet/p-BDgGHTHh.js +4 -0
- package/lib/duet/p-BZev46O8.js +4 -0
- package/lib/duet/p-BaefVzkx.js +4 -0
- package/lib/duet/p-CcoGR9T9.js +4 -0
- package/lib/duet/{p-R3pTP2Oy.js → p-CyfEm8iD.js} +1 -1
- package/lib/duet/p-D3450NfA.js +5 -0
- package/lib/duet/{p-CFqvB5PA.js → p-D9N9LBeD.js} +1 -1
- package/lib/duet/{p-C5Yfx2kd.js → p-DI7IXBXp.js} +1 -1
- package/lib/duet/{p-D2ly4TZR.js → p-DYmL1tSl.js} +1 -1
- package/lib/duet/p-Dk60lC7n.js +4 -0
- package/lib/duet/p-JFwTD5kM.js +4 -0
- package/lib/duet/{p-BzYmwX5_.js → p-KbNgo0QF.js} +1 -1
- package/lib/duet/{p-110c7572.entry.js → p-a01f3141.entry.js} +1 -1
- package/lib/duet/{p-43e076b5.entry.js → p-a49b5d93.entry.js} +1 -1
- package/lib/duet/p-a6dbe893.entry.js +4 -0
- package/lib/duet/{p-1da7703d.entry.js → p-aa1256f9.entry.js} +1 -1
- package/lib/duet/{p-a068c086.entry.js → p-aa7e4c81.entry.js} +1 -1
- package/lib/duet/{p-70612314.entry.js → p-ac4fc44c.entry.js} +1 -1
- package/lib/duet/{p-61ec0e1c.entry.js → p-ae382e2e.entry.js} +1 -1
- package/lib/duet/{p-a483117e.entry.js → p-bc41d13d.entry.js} +1 -1
- package/lib/duet/{p-734249e0.entry.js → p-c54ecb23.entry.js} +1 -1
- package/lib/duet/{p-70961edb.entry.js → p-d72dee5d.entry.js} +1 -1
- package/lib/duet/p-d7abb7fa.entry.js +4 -0
- package/lib/duet/{p-8b0dfbd7.entry.js → p-dbb9e1d4.entry.js} +1 -1
- package/lib/duet/{p-317a1fc0.entry.js → p-e40d9c21.entry.js} +1 -1
- package/lib/duet/{p-06297bd8.entry.js → p-e43df9c2.entry.js} +1 -1
- package/lib/duet/{p-02d8e844.entry.js → p-e442943d.entry.js} +1 -1
- package/lib/duet/p-eb7bc989.entry.js +4 -0
- package/lib/duet/{p-a9104184.entry.js → p-ec1d2e0a.entry.js} +1 -1
- package/lib/duet/p-edcdf0b7.entry.js +4 -0
- package/lib/duet/{p-e08dce92.entry.js → p-ee369233.entry.js} +1 -1
- package/lib/duet/{p-8012c7bc.entry.js → p-f297f8f2.entry.js} +1 -1
- package/lib/duet/{p-c54be349.entry.js → p-f30c3cfe.entry.js} +1 -1
- package/lib/duet/{p-a5177d32.entry.js → p-f4538e9d.entry.js} +1 -1
- package/lib/duet/{p-c216e746.entry.js → p-f4de7ac0.entry.js} +1 -1
- package/lib/duet/{p-4b7f1244.entry.js → p-f8d640ba.entry.js} +1 -1
- package/lib/duet/{p-2dd7d75e.entry.js → p-f9db8670.entry.js} +1 -1
- package/lib/duet/p-fc1a18f8.entry.js +4 -0
- package/lib/duet/{p-d779fe42.entry.js → p-fc2be136.entry.js} +1 -1
- package/lib/duet/p-fdc4a97c.entry.js +4 -0
- package/lib/duet/p-kkZE1C6Z.js +4 -0
- package/lib/esm/{a11y-utils-ChN5Nhxh.js → a11y-utils--wwGTL0T.js} +1 -1
- package/lib/esm/{app-globals-4kCk2rkO.js → app-globals-Diuuep9d.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +6 -6
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +7 -7
- package/lib/esm/duet-banner.entry.js +15 -16
- package/lib/esm/duet-breadcrumb.entry.js +7 -7
- package/lib/esm/duet-breadcrumbs.entry.js +7 -7
- package/lib/esm/duet-button_2.entry.js +8 -8
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +11 -11
- package/lib/esm/duet-card.entry.js +22 -11
- package/lib/esm/duet-checkbox.entry.js +3 -3
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +28 -12
- package/lib/esm/duet-choice_2.entry.js +7 -7
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +6 -6
- package/lib/esm/duet-contact-card.entry.js +17 -7
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +127 -14
- package/lib/esm/duet-divider_2.entry.js +5 -5
- package/lib/esm/duet-editable-table_3.entry.js +15 -15
- 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 +5 -5
- package/lib/esm/duet-grid_2.entry.js +4 -4
- package/lib/esm/duet-header_2.entry.js +7 -7
- package/lib/esm/duet-hero.entry.js +22 -21
- package/lib/esm/duet-icon.entry.js +7 -7
- package/lib/esm/duet-indicator.entry.js +5 -5
- package/lib/esm/duet-input_2.entry.js +70 -18
- 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 +5 -5
- package/lib/esm/duet-menu-bar-dropdown.entry.js +7 -7
- 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 +6 -6
- package/lib/esm/duet-modal.entry.js +15 -15
- package/lib/esm/duet-multiselect.entry.js +11 -11
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +10 -10
- package/lib/esm/duet-number-input.entry.js +9 -9
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +6 -6
- package/lib/esm/duet-pagination_2.entry.js +19 -19
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +11 -6
- package/lib/esm/duet-popup-menu_2.entry.js +10 -10
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +20 -8
- package/lib/esm/duet-radio_2.entry.js +7 -7
- package/lib/esm/duet-range-slider.entry.js +8 -8
- package/lib/esm/duet-scrollable_3.entry.js +18 -18
- 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 +8 -8
- package/lib/esm/duet-show-more.entry.js +6 -6
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +7 -7
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +13 -13
- package/lib/esm/duet-slideout.entry.js +20 -14
- package/lib/esm/duet-status-icon.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar.entry.js +7 -7
- package/lib/esm/duet-textarea.entry.js +8 -8
- package/lib/esm/duet-toggle.entry.js +9 -9
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-toolbar-dropdown.entry.js +7 -7
- package/lib/esm/duet-toolbar-item.entry.js +8 -8
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +10 -10
- package/lib/esm/duet-tooltip.entry.js +5 -5
- package/lib/esm/duet-tray.entry.js +7 -7
- 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-DuFCu_27.js → errorcodes.utils-S_WrUPeV.js} +1 -1
- package/lib/esm/{focus-utils-CFswdkeD.js → focus-utils-C4oaajGr.js} +1 -1
- package/lib/esm/{index-B2cboDWM.js → index-D3450NfA.js} +9 -9
- package/lib/esm/{keyboard-utils-Db8rvjPI.js → keyboard-utils-BaefVzkx.js} +2 -1
- package/lib/esm/{label-CJxIWUOT.js → label-C1HF2o4Y.js} +1 -1
- package/lib/esm/{language-utils-C4M4ASkT.js → language-utils-D4WVl8Ph.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/picture-utils-MSeJTkDk.js +13 -0
- package/lib/esm/{slot-utils--sNK1DNn.js → slot-utils-Dxcjtmp3.js} +1 -1
- package/lib/esm/{themeable-component-BBi3552X.js → themeable-component-QHdUfcat.js} +1 -1
- package/lib/esm/{token-utils-B0KAgyj_.js → token-utils-BILzD7LX.js} +1 -1
- package/lib/esm/{tokens.module-DEzE2U5T.js → tokens.module-kkZE1C6Z.js} +1 -1
- package/lib/types/components/duet-banner/duet-banner.d.ts +5 -1
- package/lib/types/components/duet-button/duet-button.d.ts +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +5 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +15 -8
- package/lib/types/components/duet-contact-card/duet-contact-card.d.ts +5 -0
- package/lib/types/components/duet-date-picker/date-picker-month.d.ts +3 -0
- package/lib/types/components/duet-date-picker/date-utils.d.ts +4 -0
- package/lib/types/components/duet-date-picker/disallowed-days.d.ts +9 -0
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +14 -0
- package/lib/types/components/duet-date-picker/finnish-bank-holidays.d.ts +11 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +5 -0
- package/lib/types/components/duet-input/duet-input.d.ts +11 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +5 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +6 -0
- package/lib/types/components.d.ts +104 -12
- package/lib/types/utils/keyboard-utils.d.ts +1 -0
- package/package.json +5 -5
- package/lib/duet/p-0c04f9f5.entry.js +0 -4
- package/lib/duet/p-18a8ea12.entry.js +0 -4
- package/lib/duet/p-1bca9931.entry.js +0 -4
- package/lib/duet/p-3f3c6e64.entry.js +0 -4
- package/lib/duet/p-4af6a8ed.entry.js +0 -4
- package/lib/duet/p-5284c707.entry.js +0 -4
- package/lib/duet/p-5c9f443c.entry.js +0 -4
- package/lib/duet/p-5lFzA17H.js +0 -4
- package/lib/duet/p-6b469225.entry.js +0 -4
- package/lib/duet/p-7294c37d.entry.js +0 -4
- package/lib/duet/p-72b504ef.entry.js +0 -4
- package/lib/duet/p-74aac967.entry.js +0 -4
- package/lib/duet/p-7c08fd87.entry.js +0 -4
- package/lib/duet/p-83238bf3.entry.js +0 -4
- package/lib/duet/p-86ffd3cb.entry.js +0 -4
- package/lib/duet/p-871620d3.entry.js +0 -4
- package/lib/duet/p-9c9811ba.entry.js +0 -4
- package/lib/duet/p-B2cboDWM.js +0 -5
- package/lib/duet/p-B8-N_qjs.js +0 -4
- package/lib/duet/p-Cg4m_WHe.js +0 -4
- package/lib/duet/p-DEzE2U5T.js +0 -4
- package/lib/duet/p-Db8rvjPI.js +0 -4
- package/lib/duet/p-d5f90dbc.entry.js +0 -4
- package/lib/duet/p-fa13ffe9.entry.js +0 -4
- package/lib/duet/p-s8EL6NG5.js +0 -4
|
@@ -144,11 +144,11 @@ export class DuetIcon {
|
|
|
144
144
|
: {};
|
|
145
145
|
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
146
146
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
147
|
-
return (h(Host, { key: '
|
|
147
|
+
return (h(Host, { key: 'ac454937867acd98e1552f998f09cecb7b6db6f6', class: {
|
|
148
148
|
"duet-m-0": this.margin === "none",
|
|
149
149
|
"duet-icon-has-outline": !!this.outline,
|
|
150
150
|
"duet-icon-has-background": !!this.background,
|
|
151
|
-
} }, h("span", { key: '
|
|
151
|
+
} }, h("span", { key: '61bd9c9b857bd54bfa18b71035af646ddfc8b490', "aria-hidden": "true", style: styles, class: {
|
|
152
152
|
"duet-icon": true,
|
|
153
153
|
"duet-theme-turva": this.theme === "turva",
|
|
154
154
|
"duet-theme-default": this.theme === "default",
|
|
@@ -157,7 +157,7 @@ export class DuetIcon {
|
|
|
157
157
|
[shapeStyle]: true,
|
|
158
158
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
159
159
|
"duet-icon-not-responsive": !this.responsive,
|
|
160
|
-
} }, h("span", { key: '
|
|
160
|
+
} }, h("span", { key: '513e30e9f69a6661e54b5f2a0989eaf14887f533', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
|
|
161
161
|
}
|
|
162
162
|
static get is() { return "duet-icon"; }
|
|
163
163
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,11 +45,11 @@ export class DuetIndicator {
|
|
|
45
45
|
inheritGlobalTheme(this);
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '329e985ec026dde828ee0e4f896bbbf68054a4ce' }, h("span", { key: '688c53ea00e20e7c2aa612ed6cdaede9a83655f9', class: {
|
|
49
49
|
"duet-indicator": true,
|
|
50
50
|
[`duet-indicator-${this.variation}`]: true,
|
|
51
51
|
"duet-theme-turva": this.theme === "turva",
|
|
52
|
-
} }), h("duet-visually-hidden", { key: '
|
|
52
|
+
} }), h("duet-visually-hidden", { key: '37a42c32af9d6d46946d30239592a4794e16de93' }, this.getAccessibleLabel())));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "duet-indicator"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -75,7 +75,7 @@ export class DuetIndicator {
|
|
|
75
75
|
"references": {
|
|
76
76
|
"IndicatorVariation": {
|
|
77
77
|
"location": "local",
|
|
78
|
-
"path": "/Users/
|
|
78
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-indicator/duet-indicator.tsx",
|
|
79
79
|
"id": "src/components/duet-indicator/duet-indicator.tsx::IndicatorVariation"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -8,7 +8,7 @@ import { inheritGlobalTheme } from "../../common";
|
|
|
8
8
|
import { DuetInternalLabel } from "../../common/label";
|
|
9
9
|
import { createID } from "../../utils/create-id";
|
|
10
10
|
import { cleanValue, resetCursor } from "../../utils/input-utils";
|
|
11
|
-
import { isArrowLeftKey, isArrowRightKey, isBackspaceKey, isEnterKey, isEscapeKey } from "../../utils/keyboard-utils";
|
|
11
|
+
import { isArrowLeftKey, isArrowRightKey, isBackspaceKey, isCharacterInsertKey, isEnterKey, isEscapeKey, } from "../../utils/keyboard-utils";
|
|
12
12
|
import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
|
|
13
13
|
import { checkNamedSlotElement, proxyInputToSlot } from "../../utils/slot-utils";
|
|
14
14
|
const icons = {
|
|
@@ -33,6 +33,7 @@ export class DuetInput {
|
|
|
33
33
|
this.topCaptionPlaceholderId = createID("DuetCaptionPlaceholderTop");
|
|
34
34
|
this.chipCountId = createID("DuetInputChipCount");
|
|
35
35
|
this.errorId = createID("DuetError");
|
|
36
|
+
this.maxlengthAnnouncementKey = 0;
|
|
36
37
|
this.disallowPatternRegex = null;
|
|
37
38
|
this.clearLabel = {
|
|
38
39
|
en: "Clear",
|
|
@@ -69,6 +70,11 @@ export class DuetInput {
|
|
|
69
70
|
fi: "valittu",
|
|
70
71
|
sv: "valt",
|
|
71
72
|
};
|
|
73
|
+
this.maxlengthReachedLabel = {
|
|
74
|
+
en: "This field has a maximum length of {max} characters. Limit reached.",
|
|
75
|
+
fi: "Tämän kentän enimmäispituus on {max} merkkiä. Raja on saavutettu.",
|
|
76
|
+
sv: "Det här fältet har en maximal längd på {max} tecken. Gränsen är nådd.",
|
|
77
|
+
};
|
|
72
78
|
/**
|
|
73
79
|
* State() variables
|
|
74
80
|
*/
|
|
@@ -78,6 +84,10 @@ export class DuetInput {
|
|
|
78
84
|
*/
|
|
79
85
|
this.isFocused = false;
|
|
80
86
|
this._accessiblePopup = undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Text announced to screen readers when the maxlength limit is reached.
|
|
89
|
+
*/
|
|
90
|
+
this.maxlengthAnnouncement = "";
|
|
81
91
|
/**
|
|
82
92
|
* Indicates the id or a string of space seperated ids of a component(s) that describes the input.
|
|
83
93
|
*/
|
|
@@ -208,9 +218,22 @@ export class DuetInput {
|
|
|
208
218
|
* Component event handling.
|
|
209
219
|
*/
|
|
210
220
|
this.onInput = (ev) => {
|
|
211
|
-
|
|
221
|
+
var _a;
|
|
222
|
+
// In addition to input event, maxlength handling uses also keyDown and paste events as input event may not be
|
|
223
|
+
// triggered when entry is truncated by the browser.
|
|
224
|
+
if (this.maxlength) {
|
|
225
|
+
const wasAtMaxlength = (((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0) >= this.maxlength;
|
|
226
|
+
const nativeLength = this.nativeInput.value.length;
|
|
212
227
|
// Android doesn't honor maxlength
|
|
213
|
-
|
|
228
|
+
const inputOverflow = nativeLength > this.maxlength;
|
|
229
|
+
if (inputOverflow) {
|
|
230
|
+
this.nativeInput.value = this.nativeInput.value.slice(0, this.maxlength);
|
|
231
|
+
}
|
|
232
|
+
const limitJustReached = !wasAtMaxlength && nativeLength === this.maxlength;
|
|
233
|
+
const limitExceededWhileFull = wasAtMaxlength && inputOverflow;
|
|
234
|
+
if (limitJustReached || limitExceededWhileFull) {
|
|
235
|
+
this.handleMaxlengthLimitReached();
|
|
236
|
+
}
|
|
214
237
|
}
|
|
215
238
|
if (this.disallowPatternRegex) {
|
|
216
239
|
cleanValue(this.nativeInput, this.disallowPatternRegex);
|
|
@@ -256,6 +279,30 @@ export class DuetInput {
|
|
|
256
279
|
component: "duet-input",
|
|
257
280
|
});
|
|
258
281
|
};
|
|
282
|
+
this.onInputKeyDown = (ev) => {
|
|
283
|
+
if (this.maxlength && isCharacterInsertKey(ev) && this.isAtMaxlengthWithoutSelection()) {
|
|
284
|
+
this.handleMaxlengthLimitReached();
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
this.onInputPaste = () => {
|
|
288
|
+
if (this.maxlength && this.isAtMaxlengthWithoutSelection()) {
|
|
289
|
+
this.handleMaxlengthLimitReached();
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
this.isAtMaxlengthWithoutSelection = () => {
|
|
293
|
+
const input = this.nativeInput;
|
|
294
|
+
const inputIsWithoutSelection = input.selectionStart === input.selectionEnd;
|
|
295
|
+
const inputIsAtMaxlength = input.value.length >= this.maxlength;
|
|
296
|
+
return inputIsWithoutSelection && inputIsAtMaxlength;
|
|
297
|
+
};
|
|
298
|
+
this.handleMaxlengthLimitReached = () => {
|
|
299
|
+
clearTimeout(this.maxlengthAnnouncementTimeoutId);
|
|
300
|
+
this.maxlengthAnnouncement = "";
|
|
301
|
+
this.maxlengthAnnouncementTimeoutId = setTimeout(() => {
|
|
302
|
+
this.maxlengthAnnouncementKey++;
|
|
303
|
+
this.maxlengthAnnouncement = this.maxlengthReachedLabel[this.language].replace("{max}", String(this.maxlength));
|
|
304
|
+
}, 300);
|
|
305
|
+
};
|
|
259
306
|
/**
|
|
260
307
|
* Private functions
|
|
261
308
|
*/
|
|
@@ -536,10 +583,15 @@ export class DuetInput {
|
|
|
536
583
|
if (this.type === "password") {
|
|
537
584
|
return "off";
|
|
538
585
|
}
|
|
586
|
+
const tokens = this.autoComplete.split(/\s+/);
|
|
539
587
|
// If attribute includes "email", e.g. "work email", don't overwrite it
|
|
540
|
-
if (this.type === "email" && this.autoComplete !== "off" && !
|
|
588
|
+
if (this.type === "email" && this.autoComplete !== "off" && !tokens.includes("email")) {
|
|
541
589
|
return "email";
|
|
542
590
|
}
|
|
591
|
+
// If attribute includes "tel", e.g. "mobile tel", don't overwrite it
|
|
592
|
+
if (this.type === "tel" && this.autoComplete !== "off" && !tokens.includes("tel")) {
|
|
593
|
+
return "tel";
|
|
594
|
+
}
|
|
543
595
|
return this.autoComplete;
|
|
544
596
|
}
|
|
545
597
|
/**
|
|
@@ -606,7 +658,7 @@ export class DuetInput {
|
|
|
606
658
|
this.type !== "password" &&
|
|
607
659
|
this.type !== "time" &&
|
|
608
660
|
this.variation !== "button";
|
|
609
|
-
return (h(Host, { key: '
|
|
661
|
+
return (h(Host, { key: '1119e8e51f3a490e34665e77ce32ec21f7bc70c7', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" }, onKeyUp: e => this.keyHandler(e) }, this.type === "time" && (h("duet-visually-hidden", { key: '31afa65dcb1b161f8c5a87c65953a26a552066b8', "aria-live": "polite", "aria-atomic": "true" }, selectedTime ? `${this.timeAnnouncement[this.language]} ${selectedTime.toLocaleTimeString()}` : "")), h("div", { key: '5574afef8c592593193cbf0c99eaf8eaa84dbf11', class: {
|
|
610
662
|
"duet-input-container": true,
|
|
611
663
|
"duet-theme-turva": this.theme === "turva",
|
|
612
664
|
[`duet-input-variation-${this.variation}`]: true,
|
|
@@ -623,11 +675,11 @@ export class DuetInput {
|
|
|
623
675
|
"has-prefix": !!this.fieldPrefix,
|
|
624
676
|
"has-suffix": !!this.fieldSuffix,
|
|
625
677
|
disabled: this.disabled,
|
|
626
|
-
} }, h("div", { key: '
|
|
678
|
+
} }, h("div", { key: 'cd0dfb4e8ef821c84d342fff017da9b3e6938134', class: "duet-input-label-container" }, h(DuetInternalLabel, { key: '7ef9a4e3ccbc5b7ac030ca66912eb0471103ed10', theme: this.theme === "turva" ? "turva" : "default", margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: 'f263424aa51a59f4252cad4b4a1347b5986869ae', class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), h("slot", { key: 'b4afd5ae65bbc03083b81996965cb354d6fd2a35', name: "tooltip" })), this.caption && (h("duet-caption", { key: '1d126824ee2ef4b7a4dae8650363e9da0b58c288', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: 'adb5b8fa3b3de37c96d74fd1b888de75689a3ce0', class: {
|
|
627
679
|
"duet-input-relative": true,
|
|
628
680
|
"duet-theme-turva": this.theme === "turva",
|
|
629
681
|
"has-error": !!this.error,
|
|
630
|
-
} }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (h("duet-caption", { key: '
|
|
682
|
+
} }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (h("duet-caption", { key: 'fcadd06bf9e0dc4115c0bd004de23fa5692b03fc', id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), this.chips && (h("duet-visually-hidden", { key: '84a8a1feed5a0895936f5e1d5ee310c6282f1678', id: this.chipCountId }, ", ", `${this.getAllChips().length} ${getLocaleString(this.chipsSelectedDesriptionLabel)}`, ",")), this.variation === "button-left" && h("slot", { key: '90533c1b234e2644eb97317f903abbf04fee8138', name: "button-left" }), this.fieldPrefix && (h("span", { key: '151fd6757766b8c7e86ded73639d87bb32814089', class: "input-adornment prefix", id: this.prefixId }, this.fieldPrefix)), h("input", Object.assign({ key: '06811722717032661d4ba5e3bfa9c2b6196cf082', ref: input => (this.nativeInput = input), onInput: this.onInput, onKeyDown: this.onInputKeyDown, onPaste: this.onInputPaste, onBlur: this.onBlur, onFocus: this.onFocus, type: this.getInputType(), class: {
|
|
631
683
|
"duet-input": true,
|
|
632
684
|
disabled: this.disabled,
|
|
633
685
|
"is-number": this.component === "number",
|
|
@@ -635,17 +687,17 @@ export class DuetInput {
|
|
|
635
687
|
"after-chip": this.getAllChips().length > 0,
|
|
636
688
|
"align-right": this.inputAlign === "right",
|
|
637
689
|
[`input-padding-${this.inputPadding}`]: true,
|
|
638
|
-
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.getAriaLabelledBy(), "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.getAutocomplete(), required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), this.fieldSuffix && (h("span", { key: '
|
|
690
|
+
}, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.getAriaLabelledBy(), "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.getAutocomplete(), required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), this.maxlength && (h("duet-visually-hidden", { key: `maxlength-announcement-${this.maxlengthAnnouncementKey}`, "aria-live": "polite", "aria-atomic": "true" }, this.maxlengthAnnouncement)), this.fieldSuffix && (h("span", { key: 'b2d284fc05798f7dab08555f524cabf4f94f0e19', class: "input-adornment suffix", id: this.suffixId }, this.fieldSuffix)), !this.value && hasInputIcon && (h("div", { key: '8364a8a7687b6e37279585edf55da9005673f4df', class: "duet-input-icon" }, h("duet-icon", { key: '1b420da3e76241f1e105ce5ef8b9f40e6490424d', margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && (h("div", { key: 'c67978258fbf64a22563a8e139b7a7de012bb4ca', class: {
|
|
639
691
|
"duet-input-clear-icon": true,
|
|
640
692
|
"duet-input-clear-icon-single": !hasInputIcon,
|
|
641
693
|
"duet-input-clear-icon-double": !!this.icon,
|
|
642
694
|
"duet-input-clear-icon-button": this.variation === "button",
|
|
643
695
|
[`input-padding-${this.inputPadding}`]: true,
|
|
644
|
-
} }, h("button", { key: '
|
|
696
|
+
} }, h("button", { key: 'b243244d6d5184c42a9afb93483479a0b07bad7d', onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel[this.language], "aria-keyshortcuts": "Escape" }, h("duet-icon", { key: '2ff21863005e55dc7a4dc1a16e2e2e40ad7f85cf', margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (h("div", { key: '7732892f159a6c7c9ad7c89b0031052b1ed45502', class: "duet-input-icon" }, h("duet-icon", { key: '97de6dc8ff0c506db494dc36edc6d0107792c2b9', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && h("slot", { key: '5c940caf605e2eaff4db2a36c63548db78f36f41', name: "button" }), this.variation === "revealable" && (h("duet-button", { key: 'caf0a7c8bec4a620e2ca5f897eaabc1814f32c5d', ref: button => (this.togglePasswordRevealedButton = button), onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.togglePasswordRevealed, icon: this.isPasswordRevealed ? "action-hide" : "action-show", accessibleLabel: this.isPasswordRevealed
|
|
645
697
|
? this.hidePasswordLabel[this.language]
|
|
646
|
-
: this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (h("duet-visually-hidden", { key: '
|
|
698
|
+
: this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (h("duet-visually-hidden", { key: 'cc394dbd7d28fc9e1cf0a864c67e7e7a6a835d1a' }, h("span", { key: '20033ed28c86634d6faf03180e53cff84def1329', "aria-live": "polite" }, this.isPasswordRevealed
|
|
647
699
|
? this.passwordShownAriaAnnouncement[this.language]
|
|
648
|
-
: this.passwordHiddenAriaAnnouncement[this.language]))), h("slot", { key: '
|
|
700
|
+
: this.passwordHiddenAriaAnnouncement[this.language]))), h("slot", { key: 'b72c50503fa80fd1ba6764b7b3348bc5d7b2813c' })), h("span", { key: '25790e8c5147bb271fefa6cbce2343287b57c816', class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: 'c62d261a03ebec492aed9c65a836525e47660cfc', class: "duet-input-error" }, this.error)))));
|
|
649
701
|
}
|
|
650
702
|
static get is() { return "duet-input"; }
|
|
651
703
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1165,7 +1217,7 @@ export class DuetInput {
|
|
|
1165
1217
|
"references": {
|
|
1166
1218
|
"DuetInputType": {
|
|
1167
1219
|
"location": "local",
|
|
1168
|
-
"path": "/Users/
|
|
1220
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
|
|
1169
1221
|
"id": "src/components/duet-input/duet-input.tsx::DuetInputType"
|
|
1170
1222
|
}
|
|
1171
1223
|
}
|
|
@@ -1191,7 +1243,7 @@ export class DuetInput {
|
|
|
1191
1243
|
"references": {
|
|
1192
1244
|
"DuetVariationType": {
|
|
1193
1245
|
"location": "local",
|
|
1194
|
-
"path": "/Users/
|
|
1246
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
|
|
1195
1247
|
"id": "src/components/duet-input/duet-input.tsx::DuetVariationType"
|
|
1196
1248
|
}
|
|
1197
1249
|
}
|
|
@@ -1532,7 +1584,7 @@ export class DuetInput {
|
|
|
1532
1584
|
"references": {
|
|
1533
1585
|
"DuetInputComponentType": {
|
|
1534
1586
|
"location": "local",
|
|
1535
|
-
"path": "/Users/
|
|
1587
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
|
|
1536
1588
|
"id": "src/components/duet-input/duet-input.tsx::DuetInputComponentType"
|
|
1537
1589
|
}
|
|
1538
1590
|
}
|
|
@@ -1756,7 +1808,8 @@ export class DuetInput {
|
|
|
1756
1808
|
"language": {},
|
|
1757
1809
|
"isPasswordRevealed": {},
|
|
1758
1810
|
"isFocused": {},
|
|
1759
|
-
"_accessiblePopup": {}
|
|
1811
|
+
"_accessiblePopup": {},
|
|
1812
|
+
"maxlengthAnnouncement": {}
|
|
1760
1813
|
};
|
|
1761
1814
|
}
|
|
1762
1815
|
static get events() {
|
|
@@ -1776,7 +1829,7 @@ export class DuetInput {
|
|
|
1776
1829
|
"references": {
|
|
1777
1830
|
"DuetInputEvent": {
|
|
1778
1831
|
"location": "local",
|
|
1779
|
-
"path": "/Users/
|
|
1832
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
|
|
1780
1833
|
"id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
|
|
1781
1834
|
}
|
|
1782
1835
|
}
|
|
@@ -1797,7 +1850,7 @@ export class DuetInput {
|
|
|
1797
1850
|
"references": {
|
|
1798
1851
|
"DuetInputEvent": {
|
|
1799
1852
|
"location": "local",
|
|
1800
|
-
"path": "/Users/
|
|
1853
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
|
|
1801
1854
|
"id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
|
|
1802
1855
|
}
|
|
1803
1856
|
}
|
|
@@ -1818,7 +1871,7 @@ export class DuetInput {
|
|
|
1818
1871
|
"references": {
|
|
1819
1872
|
"DuetInputEvent": {
|
|
1820
1873
|
"location": "local",
|
|
1821
|
-
"path": "/Users/
|
|
1874
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
|
|
1822
1875
|
"id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
|
|
1823
1876
|
}
|
|
1824
1877
|
}
|
|
@@ -1839,7 +1892,7 @@ export class DuetInput {
|
|
|
1839
1892
|
"references": {
|
|
1840
1893
|
"DuetInputEvent": {
|
|
1841
1894
|
"location": "local",
|
|
1842
|
-
"path": "/Users/
|
|
1895
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
|
|
1843
1896
|
"id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
|
|
1844
1897
|
}
|
|
1845
1898
|
}
|
|
@@ -1860,7 +1913,7 @@ export class DuetInput {
|
|
|
1860
1913
|
"references": {
|
|
1861
1914
|
"DuetInputEvent": {
|
|
1862
1915
|
"location": "local",
|
|
1863
|
-
"path": "/Users/
|
|
1916
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
|
|
1864
1917
|
"id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
|
|
1865
1918
|
}
|
|
1866
1919
|
}
|
|
@@ -121,7 +121,7 @@ export class DuetLabel {
|
|
|
121
121
|
"references": {
|
|
122
122
|
"DuetLabelMargin": {
|
|
123
123
|
"location": "local",
|
|
124
|
-
"path": "/Users/
|
|
124
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-label/duet-label.tsx",
|
|
125
125
|
"id": "src/components/duet-label/duet-label.tsx::DuetLabelMargin"
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -147,7 +147,7 @@ export class DuetLabel {
|
|
|
147
147
|
"references": {
|
|
148
148
|
"DuetLabelSize": {
|
|
149
149
|
"location": "local",
|
|
150
|
-
"path": "/Users/
|
|
150
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-label/duet-label.tsx",
|
|
151
151
|
"id": "src/components/duet-label/duet-label.tsx::DuetLabelSize"
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -66,24 +66,24 @@ export class DuetLayout {
|
|
|
66
66
|
* Always the last one in the class.
|
|
67
67
|
*/
|
|
68
68
|
render() {
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: 'c3ba619c0c3088257b425ba8f5022ebef33c1100', class: {
|
|
70
70
|
center: this.center,
|
|
71
71
|
"duet-middle": this.middle,
|
|
72
72
|
"duet-ie": isInternetExplorer(),
|
|
73
|
-
} }, h("div", { key: '
|
|
73
|
+
} }, h("div", { key: 'd627f63579dfb957bf3abe17191e8a8e943f0aae', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, this.hasTop && (h("div", { key: '4586ff77f2ef4209020a2401eef63273527a2e27', class: {
|
|
74
74
|
"duet-layout-top": true,
|
|
75
75
|
"duet-center": this.center,
|
|
76
|
-
} }, h("div", { key: '
|
|
76
|
+
} }, h("div", { key: 'daebb47e73054b59bb0459dc3327e0e60b17ebbe', class: "duet-layout-top-wrapper" }, h("slot", { key: '339fac00b53c0b4f532cfc77d5743217b5f72057', name: "top" })))), h("div", { key: 'bbf287d1f0aa701c40553a426b7a77b0a1c24c17', class: {
|
|
77
77
|
"duet-layout": true,
|
|
78
78
|
"has-sidebar": this.hasSidebar,
|
|
79
79
|
"duet-center": this.center,
|
|
80
80
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
81
|
-
} }, h("main", { key: '
|
|
81
|
+
} }, h("main", { key: '0d75aa9aeb65fa61f8e0ff114cee467abe49f1cd', class: "duet-main" }, this.hasPageHeading && h("slot", { key: 'fd0ed7464c54122f1cfbbfbfc40f78d8c9ab41c7', name: "page-heading" }), h("slot", { key: '1004e4007a1d82e22147ddf3a883e8ddc9c7b0dc', name: "main" })), this.hasSidebar && (h("aside", { key: '167c6d2495c8bbc7cd0275f723e0810b9fc311b6', class: "duet-sidebar" }, h("div", { key: 'f0bbcbeb756bf18ba1b678c405c3890fb00ad857', class: {
|
|
82
82
|
"duet-sidebar-container": true,
|
|
83
83
|
"has-tabs": this.tabs,
|
|
84
84
|
sticky: this.sticky,
|
|
85
85
|
[this.stickyDistance]: this.sticky,
|
|
86
|
-
} }, h("slot", { key: '
|
|
86
|
+
} }, h("slot", { key: 'b8b30e8b29bb87ea6a0c0891ca5f841d0921f72b', name: "sidebar" }))))))));
|
|
87
87
|
}
|
|
88
88
|
static get is() { return "duet-layout"; }
|
|
89
89
|
static get encapsulation() { return "shadow"; }
|
|
@@ -155,7 +155,7 @@ export class DuetLayout {
|
|
|
155
155
|
"references": {
|
|
156
156
|
"DuetLayoutStickyDistance": {
|
|
157
157
|
"location": "local",
|
|
158
|
-
"path": "/Users/
|
|
158
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-layout/duet-layout.tsx",
|
|
159
159
|
"id": "src/components/duet-layout/duet-layout.tsx::DuetLayoutStickyDistance"
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -187,10 +187,10 @@ export class DuetLink {
|
|
|
187
187
|
const Tag = !this.url && this.variation !== "default" ? "button" : "a";
|
|
188
188
|
const role = !this.url && this.variation === "default" ? "button" : null;
|
|
189
189
|
const isButton = Tag === "button";
|
|
190
|
-
return (h(Host, { key: '
|
|
190
|
+
return (h(Host, { key: '07cf184d2f321700e665e358f8a0cb988e798da8', class: {
|
|
191
191
|
[`duet-link-${this.variation}`]: true,
|
|
192
192
|
"duet-m-0": this.margin === "none",
|
|
193
|
-
} }, h(Tag, { key: '
|
|
193
|
+
} }, h(Tag, { key: 'bb416240f5adc73c8eeacbd4ca0524619326a954', href: this.url, class: {
|
|
194
194
|
"duet-link": true,
|
|
195
195
|
"duet-link-is-external": this.external,
|
|
196
196
|
"duet-link-is-download": !!this.download,
|
|
@@ -101,7 +101,7 @@ export class DuetList {
|
|
|
101
101
|
* Always the last one in the class.
|
|
102
102
|
*/
|
|
103
103
|
render() {
|
|
104
|
-
return (h("dl", { key: '
|
|
104
|
+
return (h("dl", { key: 'c83e43f3d82e32198e0a5d45a0812b8358f6be07', class: { "duet-list-component": true, "duet-m-0": this.margin === "none" } }, h("slot", { key: '7a65328f555edf10f4da02166eebcfcf8b8f68f7' })));
|
|
105
105
|
}
|
|
106
106
|
static get is() { return "duet-list"; }
|
|
107
107
|
static get encapsulation() { return "shadow"; }
|
|
@@ -205,7 +205,7 @@ export class DuetList {
|
|
|
205
205
|
"references": {
|
|
206
206
|
"DuetListMobileAlignment": {
|
|
207
207
|
"location": "local",
|
|
208
|
-
"path": "/Users/
|
|
208
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-list/duet-list.tsx",
|
|
209
209
|
"id": "src/components/duet-list/duet-list.tsx::DuetListMobileAlignment"
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -257,7 +257,7 @@ export class DuetList {
|
|
|
257
257
|
"references": {
|
|
258
258
|
"DuetListVariation": {
|
|
259
259
|
"location": "local",
|
|
260
|
-
"path": "/Users/
|
|
260
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-list/duet-list.tsx",
|
|
261
261
|
"id": "src/components/duet-list/duet-list.tsx::DuetListVariation"
|
|
262
262
|
}
|
|
263
263
|
}
|
|
@@ -283,7 +283,7 @@ export class DuetList {
|
|
|
283
283
|
"references": {
|
|
284
284
|
"DuetListLabelWidth": {
|
|
285
285
|
"location": "local",
|
|
286
|
-
"path": "/Users/
|
|
286
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-list/duet-list.tsx",
|
|
287
287
|
"id": "src/components/duet-list/duet-list.tsx::DuetListLabelWidth"
|
|
288
288
|
}
|
|
289
289
|
}
|
|
@@ -34,7 +34,7 @@ export class DuetListItem {
|
|
|
34
34
|
* Always the last one in the class.
|
|
35
35
|
*/
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '83029afa5ebc666926eb1572b8ad9a311bdbfcf1', class: {
|
|
38
38
|
"duet-theme-turva": this.theme === "turva",
|
|
39
39
|
"duet-no-stacking": !this.responsive,
|
|
40
40
|
"duet-list-item-breakpoint-x-small": this.breakpoint === "x-small",
|
|
@@ -42,7 +42,7 @@ export class DuetListItem {
|
|
|
42
42
|
"duet-list-item-breakpoint-medium": this.breakpoint === "medium",
|
|
43
43
|
"duet-list-item-breakpoint-large": this.breakpoint === "large",
|
|
44
44
|
"duet-list-item-breakpoint-x-large": this.breakpoint === "x-large",
|
|
45
|
-
} }, h("dt", { key: '
|
|
45
|
+
} }, h("dt", { key: '884936458d12b95cd553cd4dc4d8a237cd8e5830' }, h("slot", { key: 'b17473caf7b410acf49f8c68f9ae53b3071397d7', name: "label" })), h("dd", { key: 'e5c6aa8b8d8998d500d27493896a288f71861df6' }, h("slot", { key: '7a6a3b223c394bb3376d7734791cfd439076d5f7', name: "value" }))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "duet-list-item"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -123,7 +123,7 @@ export class DuetLogo {
|
|
|
123
123
|
*/
|
|
124
124
|
render() {
|
|
125
125
|
const TagName = this.href ? "a" : "div";
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: 'b66ac360589fd13695f735c6c659bc4f94e2375e', class: { "duet-m-0": this.margin === "none" } }, h(TagName, { key: '91a1d72ee9da1ac978938f28eaab541f3dc7a2ce', href: this.href, ref: link => (this.nativeLink = link), "aria-label": this.accessibleLabel, class: {
|
|
127
127
|
"duet-logo": true,
|
|
128
128
|
[this.size]: true,
|
|
129
129
|
"duet-logo-inverse": this.inverse,
|
|
@@ -229,7 +229,7 @@ export class DuetLogo {
|
|
|
229
229
|
"references": {
|
|
230
230
|
"DuetLogoSize": {
|
|
231
231
|
"location": "local",
|
|
232
|
-
"path": "/Users/
|
|
232
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-logo/duet-logo.tsx",
|
|
233
233
|
"id": "src/components/duet-logo/duet-logo.tsx::DuetLogoSize"
|
|
234
234
|
}
|
|
235
235
|
}
|
|
@@ -132,17 +132,17 @@ export class DuetMenuBar {
|
|
|
132
132
|
render() {
|
|
133
133
|
const slideoutAvailable = document.querySelectorAll("duet-slideout").length > 0;
|
|
134
134
|
const isUsedAsAdditionalHorizontalNav = slideoutAvailable && !this.logo;
|
|
135
|
-
return (h(Host, { key: '
|
|
135
|
+
return (h(Host, { key: '8e72a749ab5f9a2b180ea11670931e4a5f1dfc48' }, h("nav", { key: '13aa3dead3343cbd11debfec1c4e4c7b6d58ea41', class: {
|
|
136
136
|
"duet-menu-bar": true,
|
|
137
137
|
"duet-theme-turva": this.theme === "turva",
|
|
138
138
|
"horizontal-nav": isUsedAsAdditionalHorizontalNav,
|
|
139
139
|
"duet-menu-bar-slim": !this.centerSlotUsed,
|
|
140
140
|
hidden: this.hidden && this.hideOnScroll,
|
|
141
141
|
bottom: this.onBottom,
|
|
142
|
-
}, "aria-label": this.accessibleLabel }, h("div", { key: '
|
|
142
|
+
}, "aria-label": this.accessibleLabel }, h("div", { key: 'f6f5066520f23e2f40105c60550f9ca09a3f3ce4', class: "top" }), h("div", { key: '1bc95be8d4b824e14c1ab97ea7b6131bdf80ae84', class: { container: true, "with-info-text": !!this.logoInfoText && !this.centerSlotUsed }, ref: el => (this.container = el), onScroll: () => this.scrollbarCheck() }, this.logo && (h("div", { key: '1126ebdb087ef0879f0a3367a7c230d1b161e14c' }, h("duet-logo", { key: '770ef75946420cf9122526af88eac7afec069ae2', class: "medium", size: "medium", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), h("duet-logo", { key: '400f1b37fe02584a549d7b20e9a8df46ecfdf1b3', class: "large", size: "large", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), h("duet-logo", { key: '91c920bbb82868d57688e80a8cb8ce9e0862d44a', class: "only-symbol", onlySymbol: true, margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), this.logoInfoText && !this.centerSlotUsed && (h("div", { key: 'fffe9b63fe88c88c7513747e8c7c4c6132a09bc3', class: {
|
|
143
143
|
"duet-logo-info-text": true,
|
|
144
144
|
"duet-theme-turva": this.theme === "turva",
|
|
145
|
-
} }, this.logoInfoText)))), h("div", { key: '
|
|
145
|
+
} }, this.logoInfoText)))), h("div", { key: '7f0792cfa41b0056d5cc7cc307664b527d0b5936', class: "list center", role: "list" }, h("div", { key: '0c670a1650d4733e837851a0205225e559bb62ed', class: "more-left", hidden: !this.leftMoreVisible, role: "presentation" }), h("slot", { key: 'ff44edce07857e78676b4dbcf06f078d6974d15b', name: "center" }), h("div", { key: '6b742ff9c5f993a8814689cea374a5befc4c88ec', class: "more-right", hidden: !this.rightMoreVisible, role: "presentation" })), h("div", { key: 'c1fd0a243705d349ff084880a3523c4ebf62d474', class: "list right", role: "list" }, h("slot", { key: '1662a98510c36ad29a273cda970b3b91cc1a48ef', name: "right" }))), h("div", { key: 'baa3b56ef2c6320468a982cc84052b1294638599', class: "bottom" }))));
|
|
146
146
|
}
|
|
147
147
|
static get is() { return "duet-menu-bar"; }
|
|
148
148
|
static get encapsulation() { return "shadow"; }
|
|
@@ -362,7 +362,7 @@ export class DuetMenuBar {
|
|
|
362
362
|
"references": {
|
|
363
363
|
"DuetMenuBarChangeEvent": {
|
|
364
364
|
"location": "local",
|
|
365
|
-
"path": "/Users/
|
|
365
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-menu-bar/duet-menu-bar.tsx",
|
|
366
366
|
"id": "src/components/duet-menu-bar/duet-menu-bar.tsx::DuetMenuBarChangeEvent"
|
|
367
367
|
}
|
|
368
368
|
}
|
|
@@ -49,10 +49,10 @@ export class DuetMenuBarButton {
|
|
|
49
49
|
* Always the last one in the class.
|
|
50
50
|
*/
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: 'e826fdb0b0fb223aea52738971ddbc17f6004833', role: "listitem", onfocus: () => this.setFocus() }, h("button", { key: '350dd3a06df24d5f3a3f3dccb4a4a48b4a43e9f7', ref: button => (this.nativeButton = button), class: {
|
|
53
53
|
"duet-menu-bar-button": true,
|
|
54
54
|
"duet-theme-turva": this.theme === "turva",
|
|
55
|
-
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (h("duet-icon", { key: '
|
|
55
|
+
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (h("duet-icon", { key: '96911d1ad50d5b247e27d3e6b5712326434a6354', class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", { key: '004e73cb6a5e6f3126a45d9fa7184f7b424d4f60' }))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "duet-menu-bar-button"; }
|
|
58
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -62,17 +62,17 @@ export class DuetMenuBarDropdown {
|
|
|
62
62
|
* Always the last one in the class.
|
|
63
63
|
*/
|
|
64
64
|
render() {
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: 'a8e5a338b3e99161819aca174ed5d7390adcd508', role: "listitem" }, h("div", { key: '3515f7355c3f564bdebbea9a7d1845754ad9d3ce', class: {
|
|
66
66
|
"duet-menu-bar-dropdown": true,
|
|
67
67
|
"duet-theme-turva": this.theme === "turva",
|
|
68
68
|
active: this.open,
|
|
69
69
|
[`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
|
|
70
|
-
} }, h("button", { key: '
|
|
70
|
+
} }, h("button", { key: '8ae1babb7852048ac222167858eeb10f2ef8a3ee', ref: element => (this.button = element), "aria-label": this.accessibleLabel, "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
71
71
|
active: this.open,
|
|
72
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '
|
|
72
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '2d22eaa31070fc91119b0d15fcae8768764b3038', class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), h("div", { key: 'fa891196c7c3247a4349fc5db8d59e0500754cb9', class: "label" }, h("slot", { key: '59a1658b0e39bae2f94b8583e7ce787118f13221', name: "label" }), h("duet-icon", { key: '31da6e0c50072b0411a7e9c69d79aa810963d0b8', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { key: '9490db9c65cf17be947333aed8562e5a146da13e', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
73
73
|
items: true,
|
|
74
74
|
hidden: !this.open,
|
|
75
|
-
} }, h("slot", { key: '
|
|
75
|
+
} }, h("slot", { key: '31a887188bb39ed4efbe1383940b3b8db7396102' })))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "duet-menu-bar-dropdown"; }
|
|
78
78
|
static get encapsulation() { return "shadow"; }
|
package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js
CHANGED
|
@@ -48,11 +48,11 @@ export class DuetMenuBarDropdownLink {
|
|
|
48
48
|
* Always the last one in the class.
|
|
49
49
|
*/
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '9321ae6f770fbc1b00cde317df160db1d32fc53a' }, h("a", { key: '85ef5b95cffcae577699f0a3453b0c3fd24d50e9', class: {
|
|
52
52
|
"duet-menu-bar-dropdown-link": true,
|
|
53
53
|
[`duet-menu-bar-dropdown-link--slot-${this.getVariant()}`]: true,
|
|
54
54
|
"duet-theme-turva": this.theme === "turva",
|
|
55
|
-
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '
|
|
55
|
+
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '374d983fce34f87bf8c7878ede20b9fae712b8cc', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("slot", { key: '26ababe0542732c2fc589340dda968e3bc574caa' }))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "duet-menu-bar-dropdown-link"; }
|
|
58
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,11 +71,11 @@ export class DuetMenuBarItem {
|
|
|
71
71
|
*/
|
|
72
72
|
render() {
|
|
73
73
|
const TagName = this.url ? "a" : "button";
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '19ec1a0c3d191845df0ae30cdb8f9b83c198b79b', role: "listitem" }, h(TagName, { key: '85786500b66990fe9eee940a466ab9cd08eb2103', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
75
75
|
"duet-menu-bar-item": true,
|
|
76
76
|
"duet-theme-turva": this.theme === "turva",
|
|
77
77
|
active: this.active,
|
|
78
|
-
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("duet-icon", { key: '
|
|
78
|
+
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("duet-icon", { key: 'ba8faece0464d006590733c1ff8437cdd931ca03', class: "leading-icon", size: "auto", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", { key: '80207075bb856dbfecb6a91e0a72b13287751da4' }), (this.trailingIcon || this.external) && (h("duet-icon", { key: '7e04921588a4c306f61b8056c7c0a7b83c2c29f8', class: {
|
|
79
79
|
"trailing-icon": !!this.trailingIcon,
|
|
80
80
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
81
81
|
"external-icon": !!this.external,
|
|
@@ -33,11 +33,11 @@ export class DuetMenuBarLink {
|
|
|
33
33
|
* Always the last one in the class.
|
|
34
34
|
*/
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'ed2a24c6bdd70f91370a4a70bf22804ce698ca49', role: "listitem" }, h("a", { key: 'f957e2da0344bdd58789bb90151c23b341824d93', class: {
|
|
37
37
|
"duet-menu-bar-link": true,
|
|
38
38
|
"duet-theme-turva": this.theme === "turva",
|
|
39
39
|
active: this.active,
|
|
40
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '
|
|
40
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: 'c6f7c0a4fbc065c7ff132dba57ec468036359582', class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", { key: '73100c0c85e3087896e81c526816b1e92d13b9c3' }))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "duet-menu-bar-link"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|