@duetds/components 9.19.0 → 9.19.1
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 +71 -48
- package/lib/cjs/{a11y-utils-27715462.js → a11y-utils-f8e4367b.js} +1 -1
- package/lib/cjs/{app-globals-a6c4e8f5.js → app-globals-2b37fc0d.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +5 -5
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +4 -4
- package/lib/cjs/duet-banner.cjs.entry.js +6 -6
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
- package/lib/cjs/duet-button_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-callout.cjs.entry.js +3 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +11 -11
- package/lib/cjs/duet-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
- package/lib/cjs/duet-chip.cjs.entry.js +4 -4
- package/lib/cjs/duet-choice_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-collapsible.cjs.entry.js +5 -5
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
- package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +11 -8
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +3 -3
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-hero.cjs.entry.js +4 -4
- package/lib/cjs/duet-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-indicator.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-layout.cjs.entry.js +2 -2
- package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
- package/lib/cjs/duet-modal.cjs.entry.js +7 -7
- package/lib/cjs/duet-multiselect.cjs.entry.js +5 -5
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-number-input.cjs.entry.js +5 -5
- package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +2 -2
- package/lib/cjs/duet-pagination_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-panel.cjs.entry.js +2 -2
- package/lib/cjs/duet-phone-input.cjs.entry.js +5 -5
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
- package/lib/cjs/duet-radio_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-range-slider.cjs.entry.js +4 -4
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +6 -6
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +4 -4
- package/lib/cjs/duet-shaped-image.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-share-chart.cjs.entry.js +6 -6
- package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +7 -7
- package/lib/cjs/duet-slideout.cjs.entry.js +7 -7
- package/lib/cjs/duet-status-icon.cjs.entry.js +2 -2
- package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +3 -3
- package/lib/cjs/duet-textarea.cjs.entry.js +47 -29
- package/lib/cjs/duet-toggle.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar.cjs.entry.js +2 -2
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
- package/lib/cjs/duet-tray.cjs.entry.js +4 -4
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-7e221216.js → errorcodes.utils-1866faa9.js} +1 -1
- package/lib/cjs/{focus-utils-6d8d093e.js → focus-utils-3a78068c.js} +1 -1
- package/lib/cjs/{index-1044eab0.js → index-8689e0f0.js} +1 -1
- package/lib/cjs/{language-utils-b3314f13.js → language-utils-82c441a5.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-0ce4686e.js → slot-utils-6f9e2d2b.js} +1 -1
- package/lib/cjs/{themeable-component-3f7d616d.js → themeable-component-b663d703.js} +1 -1
- package/lib/cjs/{token-utils-955dd258.js → token-utils-3cc1c517.js} +1 -1
- package/lib/cjs/{tokens-bdaa8818.js → tokens-62c31e5d.js} +3 -3
- package/lib/cjs/{tokens.module-2358195b.js → tokens.module-db9df617.js} +3 -3
- package/lib/collection/components/duet-badge/duet-badge.css +1 -1
- package/lib/collection/components/duet-banner/duet-banner.css +1 -1
- package/lib/collection/components/duet-button/duet-button.css +7 -7
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +1 -1
- package/lib/collection/components/duet-chip/duet-chip.css +1 -1
- package/lib/collection/components/duet-choice/duet-choice.css +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +1 -1
- package/lib/collection/components/duet-input/duet-input.css +1 -1
- package/lib/collection/components/duet-link/duet-link.css +27 -13
- package/lib/collection/components/duet-link/duet-link.js +3 -3
- package/lib/collection/components/duet-logo/duet-logo.css +1 -1
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.css +1 -1
- package/lib/collection/components/duet-phone-input/duet-phone-input.css +1 -1
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +1 -1
- package/lib/collection/components/duet-radio/duet-radio.css +2 -2
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +1 -1
- package/lib/collection/components/duet-select/duet-select.css +1 -1
- package/lib/collection/components/duet-table/duet-table.js +3 -3
- package/lib/collection/components/duet-textarea/duet-textarea.css +1 -1
- package/lib/collection/components/duet-textarea/duet-textarea.js +55 -29
- package/lib/collection/components/duet-toggle/duet-toggle.css +1 -1
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-banner.js +5 -5
- package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
- package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +2 -2
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +4 -4
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +8 -8
- package/lib/dist-custom-elements/duet-choice.js +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +5 -5
- package/lib/dist-custom-elements/duet-combobox.js +15 -15
- package/lib/dist-custom-elements/duet-contact-card.js +8 -8
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +14 -14
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +7 -7
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
- package/lib/dist-custom-elements/duet-footer.js +7 -7
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +10 -10
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +9 -9
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-indicator.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-item.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-modal.js +9 -9
- package/lib/dist-custom-elements/duet-multiselect.js +10 -10
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
- package/lib/dist-custom-elements/duet-notification.js +3 -3
- package/lib/dist-custom-elements/duet-number-input.js +12 -12
- package/lib/dist-custom-elements/duet-overlay.js +1 -1
- package/lib/dist-custom-elements/duet-page-heading.js +3 -3
- package/lib/dist-custom-elements/duet-pagination.js +14 -14
- package/lib/dist-custom-elements/duet-panel.js +1 -1
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-phone-input.js +17 -17
- package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +5 -5
- package/lib/dist-custom-elements/duet-radio-group.js +8 -8
- package/lib/dist-custom-elements/duet-radio.js +2 -2
- package/lib/dist-custom-elements/duet-range-slider.js +4 -4
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
- package/lib/dist-custom-elements/duet-share-chart-item.js +1 -1
- package/lib/dist-custom-elements/duet-share-chart.js +3 -3
- package/lib/dist-custom-elements/duet-show-more.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel.js +5 -5
- package/lib/dist-custom-elements/duet-slideout.js +4 -4
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-status-icon.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +4 -4
- package/lib/dist-custom-elements/duet-tab-group.js +8 -8
- package/lib/dist-custom-elements/duet-tab.js +2 -2
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +57 -36
- package/lib/dist-custom-elements/duet-toggle.js +3 -3
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-item.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +4 -4
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload-item.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +20 -20
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-d62457b3.js → p-039d4ba6.js} +2 -2
- package/lib/dist-custom-elements/{p-da422056.js → p-0defe821.js} +2 -2
- package/lib/dist-custom-elements/{p-36daddcc.js → p-0ec15ba7.js} +9 -9
- package/lib/dist-custom-elements/{p-388d3f27.js → p-0eec21d3.js} +2 -2
- package/lib/dist-custom-elements/{p-0ba28ed9.js → p-1385415a.js} +4 -4
- package/lib/dist-custom-elements/{p-6b642a0f.js → p-25acb470.js} +2 -2
- package/lib/dist-custom-elements/{p-822a3658.js → p-2967d610.js} +7 -7
- package/lib/dist-custom-elements/{p-0c92061d.js → p-2b66b8d4.js} +2 -2
- package/lib/dist-custom-elements/{p-73cfbf89.js → p-30456bad.js} +3 -3
- package/lib/dist-custom-elements/{p-9ee646c7.js → p-32d33753.js} +1 -1
- package/lib/dist-custom-elements/{p-e14bb6cb.js → p-3caafb9d.js} +2 -2
- package/lib/dist-custom-elements/{p-a10e2105.js → p-48cbe41a.js} +2 -2
- package/lib/dist-custom-elements/{p-ed52e0d3.js → p-4b13a990.js} +2 -2
- package/lib/dist-custom-elements/{p-6cc7b04f.js → p-4c473784.js} +1 -1
- package/lib/dist-custom-elements/{p-586d4e77.js → p-5b72a3b0.js} +1 -1
- package/lib/dist-custom-elements/{p-27b0790d.js → p-620ac0f8.js} +1 -1
- package/lib/dist-custom-elements/{p-318f7157.js → p-6237da28.js} +7 -7
- package/lib/dist-custom-elements/{p-a5acdbd1.js → p-6327d4e2.js} +8 -5
- package/lib/dist-custom-elements/{p-b3c2ecbc.js → p-656cb1fd.js} +2 -2
- package/lib/dist-custom-elements/{p-6b2617d7.js → p-745a4e07.js} +1 -1
- package/lib/dist-custom-elements/{p-6ca748e5.js → p-77cd5d74.js} +2 -2
- package/lib/dist-custom-elements/{p-c972a96e.js → p-7ac368f3.js} +3 -3
- package/lib/dist-custom-elements/{p-0b65a85b.js → p-7bed73a7.js} +11 -11
- package/lib/dist-custom-elements/{p-c224f527.js → p-856c21c2.js} +1 -1
- package/lib/dist-custom-elements/{p-c936343b.js → p-87838af5.js} +3 -3
- package/lib/dist-custom-elements/{p-4d81562b.js → p-884ae25a.js} +6 -6
- package/lib/dist-custom-elements/{p-4e7c6547.js → p-8b2e0122.js} +3 -3
- package/lib/dist-custom-elements/{p-71176ae5.js → p-9dd5b1ab.js} +2 -2
- package/lib/dist-custom-elements/{p-6611bb3c.js → p-a6205f48.js} +5 -5
- package/lib/dist-custom-elements/{p-59668efb.js → p-b978a5e4.js} +2 -2
- package/lib/dist-custom-elements/{p-1f32b9fd.js → p-be9c3f20.js} +3 -3
- package/lib/dist-custom-elements/{p-e3318f50.js → p-c4b6f5d6.js} +3 -3
- package/lib/dist-custom-elements/{p-bc5d9435.js → p-c97f4a6a.js} +13 -13
- package/lib/dist-custom-elements/{p-67617261.js → p-cb129f84.js} +3 -3
- package/lib/dist-custom-elements/{p-bebe4e35.js → p-ce458f25.js} +1 -1
- package/lib/dist-custom-elements/{p-58dd40d8.js → p-cee4b98f.js} +1 -1
- package/lib/dist-custom-elements/{p-de31461b.js → p-d0d1c5a0.js} +10 -10
- package/lib/dist-custom-elements/{p-6e61da36.js → p-d3180cfc.js} +2 -2
- package/lib/dist-custom-elements/{p-caaa84e9.js → p-df469213.js} +2 -2
- package/lib/dist-custom-elements/{p-f407268e.js → p-e29db94f.js} +5 -5
- package/lib/dist-custom-elements/{p-738df69f.js → p-f1b9fb2c.js} +1 -1
- package/lib/dist-custom-elements/{p-6bde0f88.js → p-f3726f3b.js} +1 -1
- package/lib/dist-custom-elements/{p-370b0653.js → p-f5035d0a.js} +1 -1
- package/lib/dist-custom-elements/p-f7d27c78.js +318 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-d647ee04.system.entry.js → p-0024a14a.system.entry.js} +1 -1
- package/lib/duet/{p-a081ba40.system.entry.js → p-034e1b79.system.entry.js} +1 -1
- package/lib/duet/{p-f744061c.system.entry.js → p-093a5aaa.system.entry.js} +1 -1
- package/lib/duet/{p-04608f57.system.entry.js → p-0c25b7a5.system.entry.js} +1 -1
- package/lib/duet/{p-d51bbbc5.entry.js → p-0c9e9925.entry.js} +1 -1
- package/lib/duet/p-12899787.system.entry.js +4 -0
- package/lib/duet/{p-8f63f345.entry.js → p-1399801a.entry.js} +1 -1
- package/lib/duet/{p-5b3f7cac.system.entry.js → p-15c9f74e.system.entry.js} +1 -1
- package/lib/duet/{p-9d6c1403.system.js → p-15f1493c.system.js} +1 -1
- package/lib/duet/{p-c45a6eb5.entry.js → p-18076536.entry.js} +1 -1
- package/lib/duet/{p-27e23edc.system.entry.js → p-19e02960.system.entry.js} +1 -1
- package/lib/duet/{p-ef3c6cfe.system.entry.js → p-1a70c103.system.entry.js} +1 -1
- package/lib/duet/{p-396f0210.system.entry.js → p-1af82a3a.system.entry.js} +1 -1
- package/lib/duet/p-1bd0222c.entry.js +4 -0
- package/lib/duet/{p-d20c3b70.entry.js → p-1bdc5408.entry.js} +1 -1
- package/lib/duet/{p-5d338cf8.entry.js → p-1c2890e1.entry.js} +1 -1
- package/lib/duet/{p-dc52f8b3.entry.js → p-1c28fbe6.entry.js} +1 -1
- package/lib/duet/{p-31492c23.system.entry.js → p-1dc59447.system.entry.js} +1 -1
- package/lib/duet/{p-fc8f1bed.system.entry.js → p-1dd85611.system.entry.js} +1 -1
- package/lib/duet/{p-b259aa2e.entry.js → p-1e126580.entry.js} +1 -1
- package/lib/duet/{p-3b2e4c1d.js → p-1f01bee2.js} +1 -1
- package/lib/duet/{p-4f10a6a2.entry.js → p-1fe8dc67.entry.js} +1 -1
- package/lib/duet/p-23878f2f.system.entry.js +4 -0
- package/lib/duet/{p-5e747ef8.system.entry.js → p-292150a9.system.entry.js} +1 -1
- package/lib/duet/{p-f8ca9352.entry.js → p-2f8ee1a5.entry.js} +1 -1
- package/lib/duet/{p-e59c5a32.system.js → p-30c4c974.system.js} +1 -1
- package/lib/duet/p-329da927.js +4 -0
- package/lib/duet/{p-20da5e5e.entry.js → p-3469aaaf.entry.js} +1 -1
- package/lib/duet/{p-cd94ea4d.entry.js → p-36478f3d.entry.js} +1 -1
- package/lib/duet/{p-94421fff.entry.js → p-3679fdf8.entry.js} +1 -1
- package/lib/duet/{p-47387024.system.entry.js → p-3704f63a.system.entry.js} +1 -1
- package/lib/duet/{p-3815b0dd.system.entry.js → p-37136593.system.entry.js} +1 -1
- package/lib/duet/p-3833ae7b.system.entry.js +4 -0
- package/lib/duet/{p-f9051bab.js → p-3a0756e2.js} +1 -1
- package/lib/duet/{p-ff1d5ca4.system.entry.js → p-3a2a2ec5.system.entry.js} +1 -1
- package/lib/duet/{p-00fdc8a5.entry.js → p-3a793df8.entry.js} +1 -1
- package/lib/duet/{p-44a37072.entry.js → p-3af12511.entry.js} +1 -1
- package/lib/duet/{p-36678b00.entry.js → p-3c583c14.entry.js} +1 -1
- package/lib/duet/{p-b70a5218.system.entry.js → p-40ec37e0.system.entry.js} +1 -1
- package/lib/duet/p-41ffd369.entry.js +4 -0
- package/lib/duet/p-427293b9.system.entry.js +4 -0
- package/lib/duet/{p-22a0d711.entry.js → p-4275cecd.entry.js} +1 -1
- package/lib/duet/p-453db857.system.js +4 -0
- package/lib/duet/{p-f428124a.entry.js → p-45664da0.entry.js} +1 -1
- package/lib/duet/{p-0db56130.system.js → p-46e3ea75.system.js} +1 -1
- package/lib/duet/{p-7a2bb47e.system.entry.js → p-4787b506.system.entry.js} +1 -1
- package/lib/duet/p-485e347b.system.entry.js +4 -0
- package/lib/duet/p-488db8d3.system.entry.js +4 -0
- package/lib/duet/{p-e6f0be75.entry.js → p-49eb852a.entry.js} +1 -1
- package/lib/duet/{p-9309d30f.system.entry.js → p-4c164015.system.entry.js} +1 -1
- package/lib/duet/p-4cfffc05.system.js +4 -0
- package/lib/duet/p-4ff5a3ed.system.js +4 -0
- package/lib/duet/p-50dd94b8.system.js +4 -0
- package/lib/duet/{p-3ebd766d.entry.js → p-5186598c.entry.js} +1 -1
- package/lib/duet/{p-3fbd1e41.entry.js → p-51e4be9b.entry.js} +1 -1
- package/lib/duet/{p-74a07533.system.entry.js → p-526c13d3.system.entry.js} +1 -1
- package/lib/duet/{p-4af8fdc9.entry.js → p-545d740f.entry.js} +1 -1
- package/lib/duet/p-56cc31e0.entry.js +4 -0
- package/lib/duet/{p-d9a48ce2.system.entry.js → p-570ec400.system.entry.js} +1 -1
- package/lib/duet/{p-d0799d89.entry.js → p-5866fd3c.entry.js} +1 -1
- package/lib/duet/{p-f0a6103e.js → p-58cb1e7b.js} +1 -1
- package/lib/duet/{p-8e1def15.system.js → p-5a34eb53.system.js} +1 -1
- package/lib/duet/{p-8e150d9e.entry.js → p-5a973232.entry.js} +1 -1
- package/lib/duet/{p-ae0f818b.entry.js → p-5e7bfe5a.entry.js} +1 -1
- package/lib/duet/{p-567e98c3.system.entry.js → p-5eacc131.system.entry.js} +1 -1
- package/lib/duet/{p-6ec70ae7.system.entry.js → p-5f34fc36.system.entry.js} +1 -1
- package/lib/duet/{p-ab5a725f.system.entry.js → p-6000271f.system.entry.js} +1 -1
- package/lib/duet/p-61f93b06.js +4 -0
- package/lib/duet/{p-b8789b13.system.entry.js → p-629ca254.system.entry.js} +1 -1
- package/lib/duet/{p-33c2b5bc.system.entry.js → p-63347221.system.entry.js} +1 -1
- package/lib/duet/{p-f8a583d7.system.entry.js → p-6455d4e2.system.entry.js} +1 -1
- package/lib/duet/{p-e919fa07.entry.js → p-6484efcc.entry.js} +1 -1
- package/lib/duet/p-679272b4.entry.js +4 -0
- package/lib/duet/p-687b20eb.system.entry.js +4 -0
- package/lib/duet/{p-d838a9ab.system.entry.js → p-6dae863c.system.entry.js} +1 -1
- package/lib/duet/{p-9b7e8ab5.system.entry.js → p-71699fd9.system.entry.js} +1 -1
- package/lib/duet/{p-78fd95ce.system.entry.js → p-74ffcc62.system.entry.js} +1 -1
- package/lib/duet/p-75030665.entry.js +4 -0
- package/lib/duet/{p-da0d4e53.system.entry.js → p-7609e7e5.system.entry.js} +1 -1
- package/lib/duet/{p-1853a8d1.system.entry.js → p-77984d20.system.entry.js} +1 -1
- package/lib/duet/p-79570700.system.entry.js +4 -0
- package/lib/duet/p-7ac368f3.js +4 -0
- package/lib/duet/{p-c311a973.entry.js → p-7b87a422.entry.js} +1 -1
- package/lib/duet/{p-7a9b2555.system.entry.js → p-7caeb4e4.system.entry.js} +1 -1
- package/lib/duet/p-7f286bc3.entry.js +4 -0
- package/lib/duet/{p-30528008.system.entry.js → p-8016efed.system.entry.js} +1 -1
- package/lib/duet/{p-1aabfaed.entry.js → p-80694bcb.entry.js} +1 -1
- package/lib/duet/{p-cbe272ff.system.entry.js → p-81136f12.system.entry.js} +1 -1
- package/lib/duet/{p-e42f6025.system.entry.js → p-854d1f8e.system.entry.js} +1 -1
- package/lib/duet/{p-9718c106.js → p-8b34b6a1.js} +1 -1
- package/lib/duet/{p-614797cd.system.entry.js → p-8b744c14.system.entry.js} +1 -1
- package/lib/duet/{p-3164c809.system.entry.js → p-8ce9049d.system.entry.js} +1 -1
- package/lib/duet/{p-975a3215.system.entry.js → p-8d6f3089.system.entry.js} +1 -1
- package/lib/duet/{p-36f85144.entry.js → p-8df7c962.entry.js} +1 -1
- package/lib/duet/{p-9fe69b29.js → p-8ee40bae.js} +1 -1
- package/lib/duet/{p-0932bf00.system.entry.js → p-8f5bbc88.system.entry.js} +1 -1
- package/lib/duet/{p-db94518e.entry.js → p-90e6b35a.entry.js} +1 -1
- package/lib/duet/{p-343ed54b.system.entry.js → p-923aa342.system.entry.js} +1 -1
- package/lib/duet/{p-5f1353eb.system.entry.js → p-94379df1.system.entry.js} +1 -1
- package/lib/duet/{p-542e6df7.system.entry.js → p-944f5ee9.system.entry.js} +1 -1
- package/lib/duet/{p-d5fca58a.entry.js → p-94593336.entry.js} +1 -1
- package/lib/duet/p-9481e189.js +4 -0
- package/lib/duet/p-95933d17.system.entry.js +4 -0
- package/lib/duet/{p-087cfec4.system.entry.js → p-95c12be6.system.entry.js} +1 -1
- package/lib/duet/{p-e4695812.entry.js → p-96bf7e64.entry.js} +1 -1
- package/lib/duet/{p-5a366583.entry.js → p-976353c6.entry.js} +1 -1
- package/lib/duet/{p-a44bb8ed.system.entry.js → p-99915f28.system.entry.js} +1 -1
- package/lib/duet/{p-074c91c7.entry.js → p-9c4b48e8.entry.js} +1 -1
- package/lib/duet/p-9e37e183.system.entry.js +4 -0
- package/lib/duet/{p-73c92818.system.entry.js → p-9eb323ce.system.entry.js} +1 -1
- package/lib/duet/{p-df475aba.entry.js → p-9f82677f.entry.js} +1 -1
- package/lib/duet/{p-3c312b08.entry.js → p-a0893754.entry.js} +1 -1
- package/lib/duet/{p-de665458.entry.js → p-a1a46dc8.entry.js} +1 -1
- package/lib/duet/{p-1122796e.entry.js → p-a1e4a928.entry.js} +1 -1
- package/lib/duet/{p-457b0314.entry.js → p-a34a7a64.entry.js} +1 -1
- package/lib/duet/p-a48e2a76.system.entry.js +4 -0
- package/lib/duet/{p-e4819f63.entry.js → p-a53b0c61.entry.js} +1 -1
- package/lib/duet/{p-a8e575f2.entry.js → p-a54076ef.entry.js} +1 -1
- package/lib/duet/p-a543a9f0.entry.js +4 -0
- package/lib/duet/{p-c6b3efe7.system.entry.js → p-a5757e21.system.entry.js} +1 -1
- package/lib/duet/{p-0dda51a5.system.entry.js → p-a60ba7fb.system.entry.js} +1 -1
- package/lib/duet/{p-f1cd0117.entry.js → p-a65da7a4.entry.js} +1 -1
- package/lib/duet/{p-0407196d.system.entry.js → p-a7cb778c.system.entry.js} +1 -1
- package/lib/duet/{p-55bbe82e.system.entry.js → p-ac6e2668.system.entry.js} +1 -1
- package/lib/duet/{p-654d2c52.entry.js → p-ae8b02f9.entry.js} +1 -1
- package/lib/duet/{p-dbe544da.system.entry.js → p-b023c816.system.entry.js} +1 -1
- package/lib/duet/p-b0af0dbc.js +4 -0
- package/lib/duet/p-b11ec474.system.entry.js +4 -0
- package/lib/duet/{p-42fc2f19.entry.js → p-b17f976c.entry.js} +1 -1
- package/lib/duet/{p-22b9e7b9.system.js → p-b3abe719.system.js} +1 -1
- package/lib/duet/{p-fa878282.entry.js → p-b54d5edb.entry.js} +1 -1
- package/lib/duet/{p-31dc3df9.entry.js → p-b5a24ec4.entry.js} +1 -1
- package/lib/duet/p-b7bbc0ac.entry.js +4 -0
- package/lib/duet/{p-0834979e.entry.js → p-b7e41270.entry.js} +1 -1
- package/lib/duet/{p-0eff2032.system.entry.js → p-b8427cfa.system.entry.js} +1 -1
- package/lib/duet/{p-ba9b82ac.entry.js → p-b9133310.entry.js} +1 -1
- package/lib/duet/{p-f051365a.system.entry.js → p-b93a8d60.system.entry.js} +1 -1
- package/lib/duet/{p-b2121bec.entry.js → p-ba05fe4e.entry.js} +1 -1
- package/lib/duet/{p-5bdebddc.system.entry.js → p-ba1170fc.system.entry.js} +1 -1
- package/lib/duet/{p-696e260a.system.entry.js → p-babcf111.system.entry.js} +1 -1
- package/lib/duet/{p-8f38dd1f.entry.js → p-bc2dfc8f.entry.js} +1 -1
- package/lib/duet/{p-ac04269e.entry.js → p-bc9888d4.entry.js} +1 -1
- package/lib/duet/{p-b786f573.entry.js → p-bd0152ae.entry.js} +1 -1
- package/lib/duet/{p-47853cbb.entry.js → p-bed81853.entry.js} +1 -1
- package/lib/duet/p-bf0218de.entry.js +4 -0
- package/lib/duet/{p-454d2e52.entry.js → p-bf901d0f.entry.js} +1 -1
- package/lib/duet/{p-d40c555f.system.entry.js → p-bfed7d1f.system.entry.js} +1 -1
- package/lib/duet/p-c155c203.entry.js +4 -0
- package/lib/duet/{p-a723ed36.entry.js → p-c3755b07.entry.js} +1 -1
- package/lib/duet/{p-0738c052.system.entry.js → p-c3f5f64f.system.entry.js} +1 -1
- package/lib/duet/{p-1a8ef4df.system.entry.js → p-c54c650f.system.entry.js} +1 -1
- package/lib/duet/p-c7f65120.js +4 -0
- package/lib/duet/{p-f67270bc.entry.js → p-c8859716.entry.js} +1 -1
- package/lib/duet/{p-522ea2bc.system.entry.js → p-c9063437.system.entry.js} +1 -1
- package/lib/duet/{p-370d2601.system.entry.js → p-c99709d4.system.entry.js} +1 -1
- package/lib/duet/{p-10190357.entry.js → p-cc5d55c9.entry.js} +1 -1
- package/lib/duet/{p-544af526.entry.js → p-ceb8f2cd.entry.js} +1 -1
- package/lib/duet/p-cebe051e.system.entry.js +4 -0
- package/lib/duet/p-cee2f369.system.entry.js +4 -0
- package/lib/duet/{p-52ea64b7.entry.js → p-cfe7483c.entry.js} +1 -1
- package/lib/duet/{p-1f5071fd.system.js → p-d04f0720.system.js} +1 -1
- package/lib/duet/p-d06624f9.system.entry.js +4 -0
- package/lib/duet/p-d0d1667e.entry.js +4 -0
- package/lib/duet/{p-0353b07b.entry.js → p-d0f03726.entry.js} +1 -1
- package/lib/duet/p-d2a1b1fd.entry.js +4 -0
- package/lib/duet/{p-3f85b6e1.system.entry.js → p-d3b6137d.system.entry.js} +1 -1
- package/lib/duet/{p-083738b6.system.js → p-d72625ca.system.js} +1 -1
- package/lib/duet/{p-568074aa.system.entry.js → p-d72ec8fd.system.entry.js} +1 -1
- package/lib/duet/p-da039779.entry.js +4 -0
- package/lib/duet/{p-5173ee52.system.entry.js → p-e1bd6791.system.entry.js} +1 -1
- package/lib/duet/p-e33b7b4f.system.entry.js +4 -0
- package/lib/duet/{p-342c967e.system.entry.js → p-e36e78ea.system.entry.js} +1 -1
- package/lib/duet/{p-3c009b49.entry.js → p-e5dfecab.entry.js} +1 -1
- package/lib/duet/p-e61fdd1f.system.entry.js +4 -0
- package/lib/duet/{p-451c3aab.system.entry.js → p-e9454352.system.entry.js} +1 -1
- package/lib/duet/{p-62065bae.entry.js → p-eacf7ed7.entry.js} +1 -1
- package/lib/duet/{p-6a74bdc7.entry.js → p-ec88c131.entry.js} +1 -1
- package/lib/duet/{p-912d1e35.entry.js → p-ec919d45.entry.js} +1 -1
- package/lib/duet/{p-fe1ac373.entry.js → p-ed24b370.entry.js} +1 -1
- package/lib/duet/{p-3a134c72.entry.js → p-ed39c72b.entry.js} +1 -1
- package/lib/duet/{p-94f50cf0.system.entry.js → p-eeb02f96.system.entry.js} +1 -1
- package/lib/duet/{p-8fe4c3f3.entry.js → p-eedacfa7.entry.js} +1 -1
- package/lib/duet/p-f240daa0.entry.js +4 -0
- package/lib/duet/{p-5fc75c92.entry.js → p-f25d359d.entry.js} +1 -1
- package/lib/duet/{p-67acb8a1.entry.js → p-f5fc750d.entry.js} +1 -1
- package/lib/duet/{p-96c0a423.system.entry.js → p-f6abc74d.system.entry.js} +2 -2
- package/lib/duet/{p-43bbba35.system.js → p-f6e20b20.system.js} +1 -1
- package/lib/duet/{p-6b3b79fe.system.entry.js → p-f71d7b6d.system.entry.js} +1 -1
- package/lib/duet/{p-14ac8312.entry.js → p-f86398eb.entry.js} +1 -1
- package/lib/duet/{p-858e5593.entry.js → p-f9e9a571.entry.js} +1 -1
- package/lib/duet/{p-ff5f3e09.system.entry.js → p-faa08662.system.entry.js} +1 -1
- package/lib/duet/{p-9f79df76.system.entry.js → p-fc8ac479.system.entry.js} +1 -1
- package/lib/duet/{p-ebb705ea.entry.js → p-fcad9137.entry.js} +1 -1
- package/lib/duet/{p-f8a8bf99.system.entry.js → p-fde30afe.system.entry.js} +2 -2
- package/lib/duet/{p-e7ee0ec6.entry.js → p-fdedb49b.entry.js} +1 -1
- package/lib/esm/{a11y-utils-35c2f182.js → a11y-utils-ac6ae502.js} +1 -1
- package/lib/esm/{app-globals-143619f5.js → app-globals-2222efbc.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +5 -5
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +4 -4
- package/lib/esm/duet-banner.entry.js +6 -6
- package/lib/esm/duet-breadcrumb.entry.js +2 -2
- package/lib/esm/duet-breadcrumbs.entry.js +5 -5
- package/lib/esm/duet-button_2.entry.js +6 -6
- package/lib/esm/duet-callout.entry.js +3 -3
- package/lib/esm/duet-caption_4.entry.js +11 -11
- package/lib/esm/duet-card.entry.js +5 -5
- package/lib/esm/duet-checkbox.entry.js +3 -3
- package/lib/esm/duet-checkmark.entry.js +2 -2
- package/lib/esm/duet-chip.entry.js +4 -4
- package/lib/esm/duet-choice_2.entry.js +5 -5
- package/lib/esm/duet-collapsible.entry.js +5 -5
- package/lib/esm/duet-combobox.entry.js +4 -4
- package/lib/esm/duet-contact-card.entry.js +3 -3
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +6 -6
- package/lib/esm/duet-divider_2.entry.js +4 -4
- package/lib/esm/duet-editable-table_3.entry.js +11 -8
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +3 -3
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +2 -2
- package/lib/esm/duet-header_2.entry.js +7 -7
- package/lib/esm/duet-hero.entry.js +4 -4
- package/lib/esm/duet-icon.entry.js +4 -4
- package/lib/esm/duet-indicator.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +7 -7
- package/lib/esm/duet-layout.entry.js +2 -2
- package/lib/esm/duet-list_2.entry.js +2 -2
- package/lib/esm/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-menu-bar-item.entry.js +5 -5
- package/lib/esm/duet-menu-bar-link.entry.js +2 -2
- package/lib/esm/duet-menu-bar.entry.js +3 -3
- package/lib/esm/duet-modal.entry.js +7 -7
- package/lib/esm/duet-multiselect.entry.js +5 -5
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +4 -4
- package/lib/esm/duet-number-input.entry.js +5 -5
- package/lib/esm/duet-overlay.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +2 -2
- package/lib/esm/duet-pagination_2.entry.js +5 -5
- package/lib/esm/duet-panel.entry.js +2 -2
- package/lib/esm/duet-phone-input.entry.js +5 -5
- package/lib/esm/duet-popup-menu_2.entry.js +5 -5
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +6 -6
- package/lib/esm/duet-radio_2.entry.js +4 -4
- package/lib/esm/duet-range-slider.entry.js +4 -4
- package/lib/esm/duet-scrollable_3.entry.js +6 -6
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +4 -4
- package/lib/esm/duet-shaped-image.entry.js +2 -2
- package/lib/esm/duet-share-chart-item.entry.js +1 -1
- package/lib/esm/duet-share-chart.entry.js +6 -6
- package/lib/esm/duet-show-more.entry.js +3 -3
- package/lib/esm/duet-slideout-lang.entry.js +3 -3
- package/lib/esm/duet-slideout-link.entry.js +5 -5
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +2 -2
- package/lib/esm/duet-slideout-panel.entry.js +7 -7
- package/lib/esm/duet-slideout.entry.js +7 -7
- package/lib/esm/duet-status-icon.entry.js +2 -2
- package/lib/esm/duet-step_2.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +3 -3
- package/lib/esm/duet-textarea.entry.js +47 -29
- package/lib/esm/duet-toggle.entry.js +3 -3
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-toolbar-dropdown.entry.js +2 -2
- package/lib/esm/duet-toolbar-item.entry.js +5 -5
- package/lib/esm/duet-toolbar-link.entry.js +2 -2
- package/lib/esm/duet-toolbar.entry.js +2 -2
- package/lib/esm/duet-tooltip-button_2.entry.js +3 -3
- package/lib/esm/duet-tooltip.entry.js +4 -4
- package/lib/esm/duet-tray.entry.js +4 -4
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-upload-item.entry.js +4 -4
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-1e9af184.js → errorcodes.utils-454fa730.js} +1 -1
- package/lib/esm/{focus-utils-d80e0fff.js → focus-utils-7af43257.js} +1 -1
- package/lib/esm/{index-8edff080.js → index-ddbf3a7a.js} +1 -1
- package/lib/esm/{language-utils-da0a98a7.js → language-utils-1387fba1.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-86873bd2.js → slot-utils-53835bd7.js} +1 -1
- package/lib/esm/{themeable-component-19d01405.js → themeable-component-ae3def9c.js} +1 -1
- package/lib/esm/{token-utils-d02c20ff.js → token-utils-0d5e28a7.js} +1 -1
- package/lib/esm/{tokens-1fd83076.js → tokens-1702323a.js} +3 -3
- package/lib/esm/{tokens.module-7b07911f.js → tokens.module-7ae22e26.js} +3 -3
- package/lib/esm-es5/{a11y-utils-35c2f182.js → a11y-utils-ac6ae502.js} +1 -1
- package/lib/esm-es5/{app-globals-143619f5.js → app-globals-2222efbc.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +2 -2
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-chip.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-indicator.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +2 -2
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +2 -2
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-overlay.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-panel.entry.js +1 -1
- package/lib/esm-es5/duet-phone-input.entry.js +1 -1
- package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
- package/lib/esm-es5/duet-share-chart.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +1 -1
- package/lib/esm-es5/duet-status-icon.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +2 -2
- package/lib/esm-es5/duet-toggle.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-upload-item.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{errorcodes.utils-1e9af184.js → errorcodes.utils-454fa730.js} +1 -1
- package/lib/esm-es5/focus-utils-7af43257.js +4 -0
- package/lib/esm-es5/{index-8edff080.js → index-ddbf3a7a.js} +1 -1
- package/lib/esm-es5/{language-utils-da0a98a7.js → language-utils-1387fba1.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{slot-utils-86873bd2.js → slot-utils-53835bd7.js} +1 -1
- package/lib/esm-es5/{themeable-component-19d01405.js → themeable-component-ae3def9c.js} +1 -1
- package/lib/esm-es5/{token-utils-d02c20ff.js → token-utils-0d5e28a7.js} +1 -1
- package/lib/esm-es5/tokens-1702323a.js +4 -0
- package/lib/esm-es5/tokens.module-7ae22e26.js +4 -0
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +13 -7
- package/lib/types/components.d.ts +2 -4
- package/package.json +5 -5
- package/lib/dist-custom-elements/p-e89676de.js +0 -318
- package/lib/duet/p-06317021.system.entry.js +0 -4
- package/lib/duet/p-0fb9f963.system.entry.js +0 -4
- package/lib/duet/p-0fd2949d.entry.js +0 -4
- package/lib/duet/p-117a0379.system.entry.js +0 -4
- package/lib/duet/p-23a14a5a.system.entry.js +0 -4
- package/lib/duet/p-2a2a7f85.js +0 -4
- package/lib/duet/p-2e209e01.system.entry.js +0 -4
- package/lib/duet/p-38fb1743.entry.js +0 -4
- package/lib/duet/p-3c8067bd.entry.js +0 -4
- package/lib/duet/p-403c3143.system.entry.js +0 -4
- package/lib/duet/p-4d6d92ad.system.entry.js +0 -4
- package/lib/duet/p-5162f6cd.entry.js +0 -4
- package/lib/duet/p-52a20f17.entry.js +0 -4
- package/lib/duet/p-5a8d14bf.system.entry.js +0 -4
- package/lib/duet/p-64766118.js +0 -4
- package/lib/duet/p-6daf8a1b.js +0 -4
- package/lib/duet/p-799ca114.entry.js +0 -4
- package/lib/duet/p-801de8a1.js +0 -4
- package/lib/duet/p-8693fac0.system.entry.js +0 -4
- package/lib/duet/p-9148808e.entry.js +0 -4
- package/lib/duet/p-9461adf1.system.entry.js +0 -4
- package/lib/duet/p-987df55c.system.entry.js +0 -4
- package/lib/duet/p-9d8ac94e.entry.js +0 -4
- package/lib/duet/p-9d9457bf.js +0 -4
- package/lib/duet/p-9e34f749.system.entry.js +0 -4
- package/lib/duet/p-a4a80b80.system.entry.js +0 -4
- package/lib/duet/p-ae0fd651.entry.js +0 -4
- package/lib/duet/p-b111d93d.system.entry.js +0 -4
- package/lib/duet/p-b81ac5ae.system.js +0 -4
- package/lib/duet/p-b8688298.entry.js +0 -4
- package/lib/duet/p-bb6c5d9b.entry.js +0 -4
- package/lib/duet/p-c88bd45b.system.js +0 -4
- package/lib/duet/p-c972a96e.js +0 -4
- package/lib/duet/p-cc300171.system.entry.js +0 -4
- package/lib/duet/p-d0dbbd18.entry.js +0 -4
- package/lib/duet/p-d21f9230.system.js +0 -4
- package/lib/duet/p-db0ba7b6.system.js +0 -4
- package/lib/duet/p-ebfbee15.system.entry.js +0 -4
- package/lib/duet/p-f856fc6d.system.entry.js +0 -4
- package/lib/duet/p-fc9aafe5.entry.js +0 -4
- package/lib/duet/p-fd34a664.entry.js +0 -4
- package/lib/esm-es5/focus-utils-d80e0fff.js +0 -4
- package/lib/esm-es5/tokens-1fd83076.js +0 -4
- package/lib/esm-es5/tokens.module-7b07911f.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { A11yComponent, InputComponent, ThemeableComponent } from "../../common";
|
|
3
|
-
import { DuetMargin, DuetTextFontWeight, DuetTheme, DuetTooltipDirection } from "../../common-types";
|
|
3
|
+
import { DuetLanguage, DuetMargin, DuetTextFontWeight, DuetTheme, DuetTooltipDirection } from "../../common-types";
|
|
4
4
|
export type DuetTextareaEvent = {
|
|
5
5
|
originalEvent?: Event;
|
|
6
6
|
component: "duet-textarea";
|
|
@@ -19,11 +19,13 @@ export declare class DuetTextarea implements ThemeableComponent, InputComponent,
|
|
|
19
19
|
private labelId;
|
|
20
20
|
private errorId;
|
|
21
21
|
private characterCountId;
|
|
22
|
+
private visuallyHiddenCounterDebounceMS;
|
|
22
23
|
private nativeInput;
|
|
23
|
-
private hiddenCounterLabel;
|
|
24
24
|
private isCaptionVisible;
|
|
25
25
|
private disallowPatternRegex;
|
|
26
|
-
private
|
|
26
|
+
private charactersRemainingLabel;
|
|
27
|
+
language: DuetLanguage;
|
|
28
|
+
visuallyHiddenCounterText: string;
|
|
27
29
|
/**
|
|
28
30
|
* Reference to host HTML element.
|
|
29
31
|
*/
|
|
@@ -163,6 +165,7 @@ export declare class DuetTextarea implements ThemeableComponent, InputComponent,
|
|
|
163
165
|
* Value of the textarea.
|
|
164
166
|
*/
|
|
165
167
|
value: string;
|
|
168
|
+
valueChange(newValue: string, oldValue: string): void;
|
|
166
169
|
/**
|
|
167
170
|
* A regular expression that matches any characters which should be *disallowed*.
|
|
168
171
|
* This differs from `pattern`, as it actively prevents users entering any characters which match the regular expression.
|
|
@@ -175,8 +178,7 @@ export declare class DuetTextarea implements ThemeableComponent, InputComponent,
|
|
|
175
178
|
*/
|
|
176
179
|
counter: boolean;
|
|
177
180
|
/**
|
|
178
|
-
*
|
|
179
|
-
* @default fi: "merkkiä jäljellä", en: "characters remaining", sv: "tecken kvar"
|
|
181
|
+
* @deprecated, the visually hidden counter label is no longer changeable
|
|
180
182
|
*/
|
|
181
183
|
counterLabel: string;
|
|
182
184
|
/**
|
|
@@ -199,8 +201,7 @@ export declare class DuetTextarea implements ThemeableComponent, InputComponent,
|
|
|
199
201
|
* Component lifecycle events.
|
|
200
202
|
*/
|
|
201
203
|
componentWillLoad(): void;
|
|
202
|
-
|
|
203
|
-
disconnectedCallback(): void;
|
|
204
|
+
private updateVisuallyHiddenCounterText;
|
|
204
205
|
/**
|
|
205
206
|
* Component event handling.
|
|
206
207
|
*/
|
|
@@ -208,6 +209,11 @@ export declare class DuetTextarea implements ThemeableComponent, InputComponent,
|
|
|
208
209
|
private handleChange;
|
|
209
210
|
private handleBlur;
|
|
210
211
|
private handleFocus;
|
|
212
|
+
/**
|
|
213
|
+
* When the character limit has been reached and key is pressed, switch the
|
|
214
|
+
* visually hidden label temprorily to empty so it is re-read.
|
|
215
|
+
*/
|
|
216
|
+
private handleKeyDown;
|
|
211
217
|
private getDescribedBy;
|
|
212
218
|
/**
|
|
213
219
|
* Sets focus on the specified `duet-textarea`. Use this method instead of the global
|
|
@@ -4724,8 +4724,7 @@ export namespace Components {
|
|
|
4724
4724
|
*/
|
|
4725
4725
|
"counter": boolean;
|
|
4726
4726
|
/**
|
|
4727
|
-
*
|
|
4728
|
-
* @default fi: "merkkiä jäljellä", en: "characters remaining", sv: "tecken kvar"
|
|
4727
|
+
* @deprecated , the visually hidden counter label is no longer changeable
|
|
4729
4728
|
*/
|
|
4730
4729
|
"counterLabel": string;
|
|
4731
4730
|
/**
|
|
@@ -11536,8 +11535,7 @@ declare namespace LocalJSX {
|
|
|
11536
11535
|
*/
|
|
11537
11536
|
"counter"?: boolean;
|
|
11538
11537
|
/**
|
|
11539
|
-
*
|
|
11540
|
-
* @default fi: "merkkiä jäljellä", en: "characters remaining", sv: "tecken kvar"
|
|
11538
|
+
* @deprecated , the visually hidden counter label is no longer changeable
|
|
11541
11539
|
*/
|
|
11542
11540
|
"counterLabel"?: string;
|
|
11543
11541
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/components",
|
|
3
|
-
"version": "9.19.
|
|
3
|
+
"version": "9.19.1",
|
|
4
4
|
"description": "This package includes Duet Design System Web Components and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"body-scroll-lock": "3.1.5"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@duetds/fonts": "3.0.
|
|
48
|
-
"@duetds/icons": "4.2.
|
|
49
|
-
"@duetds/tokens": "4.1.
|
|
47
|
+
"@duetds/fonts": "3.0.54",
|
|
48
|
+
"@duetds/icons": "4.2.11",
|
|
49
|
+
"@duetds/tokens": "4.1.2",
|
|
50
50
|
"@percy/cli": "1.30.1",
|
|
51
51
|
"@rollup/plugin-replace": "5.0.2",
|
|
52
52
|
"@stencil/core": "4.23.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"collection": "lib/collection/collection-manifest.json",
|
|
78
78
|
"es2015": "lib/esm/index.js",
|
|
79
79
|
"es2017": "lib/esm/index.js",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "5273ead3d960248c9455812e9dc012cf8d15fc6f"
|
|
81
81
|
}
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-370b0653.js';
|
|
5
|
-
import { i as inheritGlobalTheme } from './p-3757c660.js';
|
|
6
|
-
import { a as DuetStringsExternalDefaults, b as DuetStringsLoadingDefaults } from './p-b7a93f1c.js';
|
|
7
|
-
import { a as getLanguage, g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './p-d9b2e80e.js';
|
|
8
|
-
import { g as getColorByName } from './p-c224f527.js';
|
|
9
|
-
import { d as defineCustomElement$3 } from './p-71176ae5.js';
|
|
10
|
-
import { d as defineCustomElement$2 } from './p-0c92061d.js';
|
|
11
|
-
import { d as defineCustomElement$1 } from './p-9ee646c7.js';
|
|
12
|
-
|
|
13
|
-
const duetButtonCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:8px !important;margin-bottom:12px !important;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;font-size:0;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type{margin-right:8px !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.square){margin-right:12px !important}:host(.square):last-child,:host(.square):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square):last-of-type{margin-right:12px !important}:host(.input-button){z-index:250}:host(.duet-small),:host(.duet-x-small){margin-right:4px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type,:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-small):last-of-type,[alignment=form-distribute]>:host(.duet-x-small):last-of-type{margin-right:4px !important}@media (max-width: 35.9375em){:host(.duet-small),:host(.duet-x-small){width:auto}}:host(.duet-x-small){margin-right:2px !important}:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-x-small):last-of-type{margin-right:2px !important}:host(.square.duet-small),:host(.square.duet-x-small){margin-right:8px !important}:host(.square.duet-small):last-child,:host(.square.duet-small):last-of-type,:host(.square.duet-x-small):last-child,:host(.square.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square.duet-small):last-of-type,[alignment=form-distribute]>:host(.square.duet-x-small):last-of-type{margin-right:8px !important}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;display:block;width:100%}.duet-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;align-items:center;width:100%;min-width:8rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.1;color:rgb(0, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:1px;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, padding 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-button:focus,.duet-button:focus.duet-theme-turva,.duet-theme-turva2 .duet-button:focus,.duet-button:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-button.duet-button-size-medium{height:50px;padding-right:30px;padding-left:30px;font-size:1rem;border-radius:25px}.duet-theme-turva .duet-button.duet-button-size-medium{padding-right:24px;padding-left:24px;border-radius:12.5px}.duet-button.duet-button-size-medium.square{border-radius:12.5px}.duet-button.duet-button-size-medium.icon-left{padding-left:24px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-left{padding-left:18px}.duet-button.duet-button-size-medium.icon-right{padding-right:24px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-right{padding-right:18px}.duet-button.duet-button-size-small{height:40px;padding-right:20px;padding-left:20px;font-size:0.875rem;border-radius:20px}.duet-theme-turva .duet-button.duet-button-size-small{padding-right:18px;padding-left:18px;border-radius:10px}.duet-button.duet-button-size-small.square{border-radius:10px}.duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-left{padding-left:14px}.duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-right{padding-right:14px}.duet-button.duet-button-size-x-small{height:32px;padding-right:12px;padding-left:12px;font-size:0.75rem;border-radius:8px}.duet-button.duet-button-size-x-small.icon-left{padding-left:10px}.duet-button.duet-button-size-x-small.icon-right{padding-right:10px}.duet-button.plain.duet-p-0{height:auto}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){min-width:48px}.duet-button.duet-button-is-small:not(.duet-button-icon-only).plain{padding-right:0 !important;padding-left:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).duet-p-0{padding:0 !important}.duet-theme-turva .duet-button{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(198, 12, 48) !important}.duet-button .duet-button-contents{position:relative;display:flex;gap:10px;align-items:center;margin:0 auto;pointer-events:none}.duet-button .duet-button-contents.icon-right{flex-direction:row-reverse}.duet-button .duet-button-contents .duet-button-contents-slot{position:relative;top:0}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{display:flex;align-items:center}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{background:rgb(255, 255, 255);border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-button.default{color:rgb(198, 12, 48) !important;border-color:rgb(222, 224, 228)}.duet-button.default:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.default:hover{outline-color:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(222, 224, 228) !important}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.primary,.duet-button.input-button-primary,.duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary,.duet-theme-turva .duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-button.primary:hover,.duet-button.input-button-primary:hover,.duet-button.input-button-left-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover,.duet-theme-turva .duet-button.input-button-left-primary:hover{background:rgb(126, 2, 35);border-color:rgb(126, 2, 35)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-left-secondary,.duet-button.input-button-embedded{color:rgb(8, 42, 77) !important;background:transparent;border-color:rgb(8, 42, 77)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-left-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 28, 58) !important;border-color:rgb(23, 28, 58)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-left-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179);outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva .duet-button.secondary:hover,.duet-button.secondary:hover.duet-theme-turva,.duet-theme-turva2 .duet-button.secondary:hover,.duet-button.secondary:hover.duet-theme-turva2,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-button.input-button-secondary:hover.duet-theme-turva,.duet-theme-turva2 .duet-button.input-button-secondary:hover,.duet-button.input-button-secondary:hover.duet-theme-turva2,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-button.input-button-left-secondary:hover.duet-theme-turva,.duet-theme-turva2 .duet-button.input-button-left-secondary:hover,.duet-button.input-button-left-secondary:hover.duet-theme-turva2,.duet-theme-turva .duet-button.input-button-embedded:hover,.duet-button.input-button-embedded:hover.duet-theme-turva,.duet-theme-turva2 .duet-button.input-button-embedded:hover,.duet-button.input-button-embedded:hover.duet-theme-turva2{outline-color:rgb(120, 145, 164)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-left-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(212, 223, 229) !important;border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(222, 224, 228) !important}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.input-button{height:auto}.duet-button.negative{color:rgb(8, 42, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.negative{color:rgb(23, 28, 58) !important}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-button.destructive-primary:hover{background:#ab1642;border-color:#ab1642;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#ab1642}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-theme-turva .duet-button.plain{color:rgb(198, 12, 48) !important;background:transparent;border-color:transparent}.duet-button.plain.duet-p-0 .duet-button-contents{height:auto}.duet-button.plain[disabled],.duet-button.plain[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-theme-turva .duet-button.plain[disabled],.duet-theme-turva .duet-button.plain[disabled]:hover{color:rgb(113, 118, 132) !important;cursor:not-allowed;background:transparent !important;border-color:rgb(222, 224, 228) !important}.duet-button.plain:hover{color:rgb(0, 75, 129) !important;background:transparent !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(126, 2, 35) !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-button.plain.duet-button-negative:hover{color:rgba(255, 255, 255, 0.8) !important}.duet-button.plain.duet-button-icon-only:focus{outline-offset:1px}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded,.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents,.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-secondary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-embedded .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-secondary .duet-button-contents.icon-right{padding:0 16px}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{border-top-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px}.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.square{width:52px;min-width:auto !important;padding:0 !important;font-size:1rem;border-color:rgb(181, 198, 208);border-width:1px}.duet-button.square.duet-button-size-small{width:42px;font-size:0.875rem}.duet-button.square.duet-button-size-x-small{width:34px;font-size:0.875rem}.duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-theme-turva .duet-button.square{border-color:rgb(222, 224, 228)}.duet-button.square:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.square:hover{outline-color:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-button.square .duet-button-contents{gap:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;outline:none !important;outline-color:rgb(212, 223, 229) !important;outline-color:rgb(212, 223, 229) !important;background:rgb(212, 223, 229) !important;border-color:rgb(212, 223, 229) !important;box-shadow:none !important}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(143, 147, 158) !important;cursor:not-allowed;outline-color:rgb(222, 224, 228) !important;background:rgb(222, 224, 228) !important;border-color:rgb(222, 224, 228) !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading.default.duet-theme-turva{color:rgb(198, 12, 48)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-button{border-radius:8px}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default{color:rgb(230, 23, 64) !important;border-color:rgb(212, 221, 226)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(251, 225, 209) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.primary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-primary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-primary{background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.secondary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-secondary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-secondary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 42, 59) !important;border-color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.secondary:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-secondary:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-secondary:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.secondary.duet-button-negative,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(251, 225, 209) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.secondary.duet-button-negative:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.duet-button.input-button-primary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.duet-button.input-button-secondary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-bottom-left-radius:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.duet-button.input-button-left-primary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-top-right-radius:0;border-bottom-right-radius:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.negative{color:rgb(23, 42, 59) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.negative:hover{color:rgb(255, 255, 255) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain{color:rgb(230, 23, 64) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain:hover{color:rgb(140, 0, 30) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain[disabled],:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain[disabled]:hover{color:rgb(95, 122, 143) !important;background:transparent !important;border-color:rgb(251, 225, 209) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.square{border-color:rgb(212, 221, 226)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.square.duet-button-negative{background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.square:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-theme-turva .duet-button[disabled],:host(.duet-theme-turva2) .duet-theme-turva .duet-button[disabled]:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.duet-button-negative [disabled],:host(.duet-theme-turva2) .duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(120, 145, 164) !important;cursor:not-allowed;outline-color:rgb(212, 221, 226) !important;background:rgb(212, 221, 226) !important;border-color:rgb(212, 221, 226) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button-is-loading.default{color:rgb(230, 23, 64)}";
|
|
14
|
-
const DuetButtonStyle0 = duetButtonCss;
|
|
15
|
-
|
|
16
|
-
const DuetButton = /*@__PURE__*/ proxyCustomElement(class DuetButton extends H {
|
|
17
|
-
constructor() {
|
|
18
|
-
super();
|
|
19
|
-
this.__registerHost();
|
|
20
|
-
this.__attachShadow();
|
|
21
|
-
this.duetFocus = createEvent(this, "duetFocus", 7);
|
|
22
|
-
this.duetBlur = createEvent(this, "duetBlur", 7);
|
|
23
|
-
this.proxyButtonSetUp = () => {
|
|
24
|
-
const slottedElement = this.element.querySelector("button[slot=proxybutton]");
|
|
25
|
-
const button = slottedElement || document.createElement("button");
|
|
26
|
-
if (this.url) {
|
|
27
|
-
if (slottedElement) {
|
|
28
|
-
slottedElement.remove();
|
|
29
|
-
}
|
|
30
|
-
this.proxyButton = null;
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
button.setAttribute("slot", "proxybutton");
|
|
34
|
-
button.style.display = "none";
|
|
35
|
-
button.type = this.getButtonType();
|
|
36
|
-
button.disabled = this.disabled;
|
|
37
|
-
button.setAttribute("form", this.form);
|
|
38
|
-
if (!this.form) {
|
|
39
|
-
button.removeAttribute("form");
|
|
40
|
-
}
|
|
41
|
-
// attributes should be removed in cases where name/value is not set
|
|
42
|
-
if (this.name != null) {
|
|
43
|
-
button.name = this.name;
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
button.removeAttribute("name");
|
|
47
|
-
}
|
|
48
|
-
if (this.value != null) {
|
|
49
|
-
button.value = this.value;
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
button.removeAttribute("value");
|
|
53
|
-
}
|
|
54
|
-
if (!slottedElement) {
|
|
55
|
-
this.element.appendChild(button);
|
|
56
|
-
}
|
|
57
|
-
this.proxyButton = button;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Component event handling.
|
|
61
|
-
*/
|
|
62
|
-
this.handleClick = (ev) => {
|
|
63
|
-
// If this button wants to specifically submit a form
|
|
64
|
-
// climb up the dom to see if we're in a <form>
|
|
65
|
-
// and if so, then use JS to submit it.
|
|
66
|
-
// To understand better, see: https://www.hjorthhansen.dev/shadow-dom-form-participation/
|
|
67
|
-
if (this.submit && !this.url && (this.element.closest("form") || this.form)) {
|
|
68
|
-
ev.stopPropagation();
|
|
69
|
-
ev.preventDefault();
|
|
70
|
-
this.proxyButton.click();
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
this.onFocus = () => {
|
|
74
|
-
this.duetFocus.emit();
|
|
75
|
-
};
|
|
76
|
-
this.onBlur = () => {
|
|
77
|
-
this.duetBlur.emit();
|
|
78
|
-
};
|
|
79
|
-
this.accessibleLabel = undefined;
|
|
80
|
-
this.accessibleControls = undefined;
|
|
81
|
-
this.accessiblePopup = "false";
|
|
82
|
-
this.accessibleActiveDescendant = undefined;
|
|
83
|
-
this.accessibleOwns = undefined;
|
|
84
|
-
this.accessibleDescribedBy = undefined;
|
|
85
|
-
this.accessibleDetails = undefined;
|
|
86
|
-
this.accessibleLabelledBy = undefined;
|
|
87
|
-
this.accessibleDescription = undefined;
|
|
88
|
-
this.accessibleExpanded = undefined;
|
|
89
|
-
this.accessiblePressed = undefined;
|
|
90
|
-
this.loading = false;
|
|
91
|
-
this.variation = "default";
|
|
92
|
-
this.negative = false;
|
|
93
|
-
this.theme = "";
|
|
94
|
-
this.margin = "auto";
|
|
95
|
-
this.form = undefined;
|
|
96
|
-
this.padding = "auto";
|
|
97
|
-
this.centerText = false;
|
|
98
|
-
this.wrapping = "auto";
|
|
99
|
-
this.expand = false;
|
|
100
|
-
this.fixed = false;
|
|
101
|
-
this.disabled = false;
|
|
102
|
-
this.name = undefined;
|
|
103
|
-
this.value = undefined;
|
|
104
|
-
this.identifier = undefined;
|
|
105
|
-
this.submit = false;
|
|
106
|
-
this.external = false;
|
|
107
|
-
this.language = getLanguage();
|
|
108
|
-
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
109
|
-
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
110
|
-
this.accessibleLabelLoadingDefaults = DuetStringsLoadingDefaults;
|
|
111
|
-
this.accessibleLabelLoading = getLocaleString(this.accessibleLabelLoadingDefaults);
|
|
112
|
-
this.icon = "";
|
|
113
|
-
this.color = "";
|
|
114
|
-
this.iconRight = false;
|
|
115
|
-
this.iconSize = "medium";
|
|
116
|
-
this.size = "medium";
|
|
117
|
-
this.iconOnly = false;
|
|
118
|
-
this.url = undefined;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Component lifecycle events.
|
|
122
|
-
*/
|
|
123
|
-
componentWillLoad() {
|
|
124
|
-
inheritGlobalTheme(this);
|
|
125
|
-
if (this.url && this.external && this.icon) {
|
|
126
|
-
console.warn("[DUET]: Button used as an external link will override any icon that is set");
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
connectedCallback() {
|
|
130
|
-
connectLanguageChangeObserver(this, [
|
|
131
|
-
{
|
|
132
|
-
prop: "accessibleLabelExternal",
|
|
133
|
-
defaults: "accessibleLabelExternalDefaults",
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
prop: "accessibleLabelLoading",
|
|
137
|
-
defaults: "accessibleLabelLoadingDefaults",
|
|
138
|
-
},
|
|
139
|
-
]);
|
|
140
|
-
}
|
|
141
|
-
disconnectedCallback() {
|
|
142
|
-
disconnectLanguageChangeObserver(this);
|
|
143
|
-
}
|
|
144
|
-
componentDidRender() {
|
|
145
|
-
if (this.disabled === false) {
|
|
146
|
-
this.element.removeAttribute("disabled");
|
|
147
|
-
}
|
|
148
|
-
if (this.submit) {
|
|
149
|
-
this.proxyButtonSetUp();
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
getButtonType() {
|
|
153
|
-
return this.submit ? "submit" : "button";
|
|
154
|
-
}
|
|
155
|
-
getButtonIconSize() {
|
|
156
|
-
switch (this.iconSize) {
|
|
157
|
-
case "small":
|
|
158
|
-
return "small";
|
|
159
|
-
case "medium-small":
|
|
160
|
-
return "medium-small";
|
|
161
|
-
case "medium":
|
|
162
|
-
return "medium";
|
|
163
|
-
case "large":
|
|
164
|
-
return "large";
|
|
165
|
-
default:
|
|
166
|
-
return "medium";
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Sets focus on the specified `duet-button`. Use this method instead of the global
|
|
171
|
-
* `button.focus()`.
|
|
172
|
-
*/
|
|
173
|
-
async setFocus(options) {
|
|
174
|
-
if (this.nativeButton) {
|
|
175
|
-
this.nativeButton.focus(options);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* render() function.
|
|
180
|
-
* Always the last one in the class.
|
|
181
|
-
*/
|
|
182
|
-
render() {
|
|
183
|
-
var _a, _b;
|
|
184
|
-
const isExternalLink = this.external && this.url;
|
|
185
|
-
// enforce consistency for external links
|
|
186
|
-
const icon = isExternalLink ? "action-new-window" : this.icon;
|
|
187
|
-
const iconRight = isExternalLink ? true : this.iconRight;
|
|
188
|
-
const commonChildren = (h("span", { key: '4b6618222c037ec329c118f7ad247b9fd514e878', class: { "duet-button-contents": true, "icon-right": iconRight }, style: { color: getColorByName(this.color, this.theme) } }, icon && (h("span", { key: '67492c9b50231879ba232f7c6bcdadcb2d219875', "aria-hidden": "true", class: {
|
|
189
|
-
"duet-button-icon": true,
|
|
190
|
-
left: !iconRight,
|
|
191
|
-
right: iconRight,
|
|
192
|
-
[this.getButtonIconSize()]: true,
|
|
193
|
-
} }, h("duet-icon", { key: 'fce0630d78df187c2a7f3946ff3d262c43e5ce95', size: "auto", margin: "none", name: icon, color: "currentColor" }))), h("span", { key: '34d608211bac6921c4aec51f71a9b33e2ac2b7b0', class: "duet-button-contents-slot" }, h("slot", { key: 'b2478d851993c148be6a83a76f9f725469bc9944' }))));
|
|
194
|
-
const size = this.size == "medium" || this.size == "small" || this.size == "x-small" ? this.size : "medium";
|
|
195
|
-
const commonProps = {
|
|
196
|
-
onFocus: this.onFocus,
|
|
197
|
-
onBlur: this.onBlur,
|
|
198
|
-
ref: button => (this.nativeButton = button),
|
|
199
|
-
id: this.identifier,
|
|
200
|
-
class: {
|
|
201
|
-
"duet-m-0": this.margin === "none",
|
|
202
|
-
"duet-p-0": this.padding === "none",
|
|
203
|
-
"duet-no-wrap": this.wrapping === "none",
|
|
204
|
-
"duet-button": true,
|
|
205
|
-
"duet-button-is-small": this.size === "small",
|
|
206
|
-
[`duet-button-size-${size}`]: true,
|
|
207
|
-
"duet-button-icon-only": this.iconOnly,
|
|
208
|
-
"duet-button-text-center": this.centerText,
|
|
209
|
-
"duet-button-negative": this.negative || this.variation === "negative",
|
|
210
|
-
[this.variation]: true,
|
|
211
|
-
"input-button": (_a = this.variation) === null || _a === void 0 ? void 0 : _a.startsWith("input-button"),
|
|
212
|
-
disabled: this.disabled,
|
|
213
|
-
icon: !!icon,
|
|
214
|
-
"icon-right": iconRight,
|
|
215
|
-
"icon-left": !!icon && !iconRight,
|
|
216
|
-
[this.getButtonIconSize()]: true,
|
|
217
|
-
},
|
|
218
|
-
"aria-controls": this.accessibleControls,
|
|
219
|
-
"aria-label": this.accessibleLabel,
|
|
220
|
-
"aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined,
|
|
221
|
-
"aria-activedescendant": this.accessibleActiveDescendant,
|
|
222
|
-
"aria-owns": this.accessibleOwns,
|
|
223
|
-
"aria-describedby": this.accessibleDescribedBy,
|
|
224
|
-
"aria-labelledby": this.accessibleLabelledBy,
|
|
225
|
-
"aria-details": this.accessibleDetails,
|
|
226
|
-
"aria-description": this.accessibleDescription,
|
|
227
|
-
};
|
|
228
|
-
return (h(Host, { key: 'c70e2d9cbe884c7b6cc3012721f01ce6d54b4555', class: {
|
|
229
|
-
"duet-m-0": this.margin === "none",
|
|
230
|
-
"duet-small": this.size === "small",
|
|
231
|
-
"duet-x-small": this.size === "x-small",
|
|
232
|
-
"duet-fixed": this.fixed,
|
|
233
|
-
"duet-expand": this.expand,
|
|
234
|
-
[this.variation]: true,
|
|
235
|
-
"input-button": (_b = this.variation) === null || _b === void 0 ? void 0 : _b.startsWith("input-button"),
|
|
236
|
-
} }, h("span", { key: 'c8be7792d2ae572befbfbe921a3ec453c073637d', onClick: this.handleClick, class: {
|
|
237
|
-
"duet-button-container": true,
|
|
238
|
-
"duet-button-is-loading": this.loading,
|
|
239
|
-
"duet-theme-turva": this.theme === "turva",
|
|
240
|
-
"duet-button-negative": this.negative || this.variation === "negative",
|
|
241
|
-
[this.variation]: true,
|
|
242
|
-
} }, this.url ? (h("a", Object.assign({}, commonProps, { href: this.url, target: this.external ? "_blank" : "_self", rel: this.external ? "noopener" : undefined }), commonChildren, this.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal))) : (h("button", Object.assign({}, commonProps, { type: this.getButtonType(), disabled: this.disabled, name: this.name, value: this.value, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, "aria-disabled": this.disabled }), commonChildren, this.loading && h("duet-visually-hidden", null, " ", this.accessibleLabelLoading, " "))), this.loading && h("duet-spinner", { key: 'da956cda627d2afc5084ee69629b54ffabcb672b', color: "currentColor" })), h("slot", { key: '0ead01a475d6242c0049a259f9b9c725830d4b80', name: "proxybutton" })));
|
|
243
|
-
}
|
|
244
|
-
get element() { return this; }
|
|
245
|
-
static get style() { return DuetButtonStyle0; }
|
|
246
|
-
}, [1, "duet-button", {
|
|
247
|
-
"accessibleLabel": [1, "accessible-label"],
|
|
248
|
-
"accessibleControls": [1, "accessible-controls"],
|
|
249
|
-
"accessiblePopup": [1, "accessible-popup"],
|
|
250
|
-
"accessibleActiveDescendant": [1, "accessible-active-descendant"],
|
|
251
|
-
"accessibleOwns": [1, "accessible-owns"],
|
|
252
|
-
"accessibleDescribedBy": [1, "accessible-described-by"],
|
|
253
|
-
"accessibleDetails": [1, "accessible-details"],
|
|
254
|
-
"accessibleLabelledBy": [1, "accessible-labelled-by"],
|
|
255
|
-
"accessibleDescription": [1, "accessible-description"],
|
|
256
|
-
"accessibleExpanded": [4, "accessible-expanded"],
|
|
257
|
-
"accessiblePressed": [4, "accessible-pressed"],
|
|
258
|
-
"loading": [4],
|
|
259
|
-
"variation": [1],
|
|
260
|
-
"negative": [4],
|
|
261
|
-
"theme": [1025],
|
|
262
|
-
"margin": [1],
|
|
263
|
-
"form": [1],
|
|
264
|
-
"padding": [1],
|
|
265
|
-
"centerText": [4, "center-text"],
|
|
266
|
-
"wrapping": [1],
|
|
267
|
-
"expand": [4],
|
|
268
|
-
"fixed": [4],
|
|
269
|
-
"disabled": [516],
|
|
270
|
-
"name": [1],
|
|
271
|
-
"value": [1],
|
|
272
|
-
"identifier": [1],
|
|
273
|
-
"submit": [516],
|
|
274
|
-
"external": [4],
|
|
275
|
-
"language": [1537],
|
|
276
|
-
"accessibleLabelExternalDefaults": [1, "accessible-label-external-default"],
|
|
277
|
-
"accessibleLabelExternal": [1025, "accessible-label-external"],
|
|
278
|
-
"accessibleLabelLoadingDefaults": [1, "accessible-label-loading-default"],
|
|
279
|
-
"accessibleLabelLoading": [1025, "accessible-label-loading"],
|
|
280
|
-
"icon": [1],
|
|
281
|
-
"color": [1],
|
|
282
|
-
"iconRight": [4, "icon-right"],
|
|
283
|
-
"iconSize": [1, "icon-size"],
|
|
284
|
-
"size": [1],
|
|
285
|
-
"iconOnly": [4, "icon-only"],
|
|
286
|
-
"url": [513],
|
|
287
|
-
"setFocus": [64]
|
|
288
|
-
}]);
|
|
289
|
-
function defineCustomElement() {
|
|
290
|
-
if (typeof customElements === "undefined") {
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
const components = ["duet-button", "duet-icon", "duet-spinner", "duet-visually-hidden"];
|
|
294
|
-
components.forEach(tagName => { switch (tagName) {
|
|
295
|
-
case "duet-button":
|
|
296
|
-
if (!customElements.get(tagName)) {
|
|
297
|
-
customElements.define(tagName, DuetButton);
|
|
298
|
-
}
|
|
299
|
-
break;
|
|
300
|
-
case "duet-icon":
|
|
301
|
-
if (!customElements.get(tagName)) {
|
|
302
|
-
defineCustomElement$3();
|
|
303
|
-
}
|
|
304
|
-
break;
|
|
305
|
-
case "duet-spinner":
|
|
306
|
-
if (!customElements.get(tagName)) {
|
|
307
|
-
defineCustomElement$2();
|
|
308
|
-
}
|
|
309
|
-
break;
|
|
310
|
-
case "duet-visually-hidden":
|
|
311
|
-
if (!customElements.get(tagName)) {
|
|
312
|
-
defineCustomElement$1();
|
|
313
|
-
}
|
|
314
|
-
break;
|
|
315
|
-
} });
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export { DuetButton as D, defineCustomElement as d };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,u){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{s(u.next(t))}catch(t){r(t)}}function a(t){try{s(u["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):n(t.value).then(o,a)}s((u=u.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},u,n,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return s([t,e])}}function s(a){if(u)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(u=1,n&&(r=a[0]&2?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;if(n=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];n=0}finally{u=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-1f5071fd.system.js","./p-8f477bd6.system.js","./p-9d6c1403.system.js","./p-e6b5a1c7.system.js","./p-e12066c8.system.js","./p-752fa0fc.system.js","./p-8e1def15.system.js","./p-e59c5a32.system.js","./p-43bbba35.system.js","./p-98636086.system.js","./p-db0ba7b6.system.js"],(function(t){"use strict";var e,i,u,n,r,o,a,s,d,p,c,l,h,b,m,f,v,g,x,w,y;return{setters:[function(t){e=t.r;i=t.c;u=t.h;n=t.H;r=t.g},function(t){o=t.f},function(t){a=t.i},function(t){s=t.c},function(t){d=t.c;p=t.r},function(t){c=t.f;l=t.j;h=t.e;b=t.d;m=t.a},function(t){f=t.a;v=t.c;g=t.d;x=t.g},function(t){w=t.c},function(t){y=t.g},function(){},function(){}],execute:function(){var k={title:"form-email",tags:"form email",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 23.999c-3.205 0-6.218-1.248-8.484-3.514S.001 15.206.001 12.001s1.248-6.218 3.514-8.485C5.782 1.25 8.795.001 12 .001s6.218 1.248 8.485 3.514A11.92 11.92 0 0 1 24 12v2.25A3.754 3.754 0 0 1 20.25 18a3.77 3.77 0 0 1-3.48-2.365A6.009 6.009 0 0 1 12 18c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6v2.25c0 1.241 1.009 2.25 2.25 2.25s2.25-1.009 2.25-2.25V12c0-2.804-1.092-5.441-3.075-7.424A10.433 10.433 0 0 0 12 1.501c-2.804 0-5.441 1.092-7.424 3.075S1.501 9.196 1.501 12c0 2.805 1.092 5.441 3.075 7.424s4.619 3.074 7.423 3.074c2.257 0 4.494-.746 6.299-2.1a.749.749 0 1 1 .9 1.199A12.049 12.049 0 0 1 12 23.999zM12 7.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z"/></svg>'};var S='*.sc-duet-input,*.sc-duet-input::after,*.sc-duet-input::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.sc-duet-input-h{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;vertical-align:bottom;text-align:left}.sc-duet-input-h:last-child,.sc-duet-input-h:last-of-type{margin-right:0 !important}[alignment=form-distribute]>.sc-duet-input-h:last-of-type{margin-right:16px !important}@media (min-width: 36em){.sc-duet-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-input-h{width:100% !important}.duet-m-0.sc-duet-input-h{margin:0 !important}input[type=search].sc-duet-input::-webkit-search-cancel-button{-webkit-appearance:none}input[type=time].sc-duet-input::-webkit-datetime-edit-fields-wrapper{padding:0}input[type=time].sc-duet-input::-webkit-calendar-picker-indicator{display:none}duet-tooltip.sc-duet-input,.sc-duet-input-s>duet-tooltip{position:relative;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-input,.sc-duet-input-s>duet-tooltip{right:auto}}duet-caption.sc-duet-input:not(:last-of-type){margin-bottom:0}.duet-input-placeholder.sc-duet-input{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-input-icon.sc-duet-input{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;font-size:0;line-height:normal;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva.sc-duet-input .duet-input-icon.sc-duet-input{color:rgb(23, 28, 58)}.duet-input-container.sc-duet-input{position:relative;width:100%;height:100%}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input{position:relative;z-index:250}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input{position:absolute;top:-24px;right:-24px;min-width:48px;min-height:48px;color:rgb(0, 75, 129)}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva.sc-duet-input .duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus,.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus.duet-theme-turva,.duet-theme-turva2.sc-duet-input .duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus,.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:active{opacity:0.75;transition:none}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.input-padding-xx-small.sc-duet-input button.sc-duet-input{top:-12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.input-padding-x-small.sc-duet-input button.sc-duet-input{top:-16px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.input-padding-small.sc-duet-input button.sc-duet-input{top:-20px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.sc-duet-input button.sc-duet-input{top:-48px;right:0}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-xx-small.sc-duet-input button.sc-duet-input{top:-36px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-x-small.sc-duet-input button.sc-duet-input{top:-40px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-small.sc-duet-input button.sc-duet-input{top:-44px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.sc-duet-input button.sc-duet-input{top:-24px;right:12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-xx-small.sc-duet-input button.sc-duet-input{top:-12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-x-small.sc-duet-input button.sc-duet-input{top:-16px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-small.sc-duet-input button.sc-duet-input{top:-20px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-button.sc-duet-input button.sc-duet-input{top:-24px;right:0}.duet-input-container.has-clear.has-icon.sc-duet-input .duet-input-clear-icon.sc-duet-input{top:-24px;right:24px}.duet-input-container.duet-theme-turva.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input{color:rgb(8, 42, 77)}.duet-input-label-container.sc-duet-input{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}@media (min-width: 48em){.duet-input-label-container.sc-duet-input{justify-content:flex-start}}.duet-input.sc-duet-input{position:relative;z-index:100;display:block !important;width:100% !important;min-width:8rem;max-width:initial !important;height:auto !important;padding:12px 14px !important;margin:initial !important;margin-bottom:initial !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400 !important;font-variant-numeric:tabular-nums;line-height:1.5 !important;color:rgb(8, 42, 77) !important;cursor:initial !important;outline-color:initial !important;background:rgb(255, 255, 255) !important;background-clip:initial !important;border:1px solid rgb(127, 150, 165) !important;border-radius:4px !important;transition:border 150ms ease !important}.duet-input.input-padding-small.sc-duet-input{padding:8px 10px !important}.duet-input.input-padding-x-small.sc-duet-input{padding:4px 6px !important}.duet-input.input-padding-xx-small.sc-duet-input{padding:0px 2px !important}.duet-input.is-number.sc-duet-input{padding-right:112px !important}.duet-input.is-date.sc-duet-input{padding-right:64px !important}.duet-input.after-chip.sc-duet-input{padding-left:8px !important}.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:rgb(214, 28, 82) !important}.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:rgb(214, 28, 82) !important}.has-icon.sc-duet-input .duet-input.sc-duet-input{padding-right:48px !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58) !important;border-color:rgb(143, 147, 158) !important}.duet-input.align-right.sc-duet-input{text-align:right}.duet-input.sc-duet-input::-ms-clear{display:none}.duet-input.sc-duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input.sc-duet-input::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-input.sc-duet-input::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-moz-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-input.sc-duet-input:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-input[disabled].sc-duet-input{color:rgb(8, 42, 77) !important;cursor:not-allowed !important;outline:none !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva.sc-duet-input .duet-input[disabled].sc-duet-input{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-input.sc-duet-input:hover:not(:disabled){outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled),.duet-input.sc-duet-input:hover:not(:disabled).duet-theme-turva,.duet-theme-turva2.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled),.duet-input.sc-duet-input:hover:not(:disabled).duet-theme-turva2{outline-color:rgb(120, 145, 164)}.has-error.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-input.sc-duet-input:focus{border-color:rgb(0, 119, 179) !important;transition:none}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus{border-color:rgb(23, 28, 58) !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(23, 28, 58)}.has-error.sc-duet-input .duet-input.sc-duet-input:focus{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(0, 119, 179)}.duet-input[type=search].sc-duet-input:not(:placeholder-shown):focus+.duet-input-icon.sc-duet-input{display:none}.duet-input.sc-duet-input:not(:focus):not(:hover):invalid{outline:none !important}.duet-input[type=number].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=number].sc-duet-input::-webkit-outer-spin-button,.duet-input[type=time].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=time].sc-duet-input::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input.sc-duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help.sc-duet-input{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-input-help.sc-duet-input span.sc-duet-input{display:block;margin-top:8px}.duet-theme-turva.sc-duet-input .duet-input-help.sc-duet-input{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-input duet-label.sc-duet-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-input-relative.sc-duet-input{position:relative;width:100%}.duet-input-variation-button.sc-duet-input,.duet-input-variation-button-left.sc-duet-input{position:relative;width:100%}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input,.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input,.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input{z-index:250;margin-bottom:0}.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input{border-radius:4px}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-right-width:0 !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-left-width:0 !important;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.duet-input-variation-revealable.sc-duet-input{position:relative;width:100%}.duet-input-variation-revealable.sc-duet-input .sc-duet-input::-ms-reveal{display:none}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;outline:initial;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 150ms ease}.duet-theme-turva.sc-duet-input .duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(143, 147, 158)}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input{z-index:250;margin-bottom:0}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-width:0 !important}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:hover{outline:none !important;border-width:0 !important}.duet-input-variation-revealable.disabled.sc-duet-input .duet-input-relative.sc-duet-input{outline:none;background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.duet-input-variation-revealable.has-error.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.duet-theme-turva.has-error.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{outline:2px solid;outline-offset:-1px;outline-color:rgb(62, 84, 102);border-color:rgb(0, 119, 179)}.duet-input-variation-revealable.duet-theme-turva.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{outline:2px solid;outline-offset:-1px;outline-color:rgb(53, 79, 101);border-color:rgb(23, 28, 58)}.duet-input-variation-revealable.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva.sc-duet-input .duet-input-variation-revealable.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input,.duet-input-variation-revealable.sc-duet-input:hover:not(.disabled) .duet-input-relative.duet-theme-turva.sc-duet-input,.duet-theme-turva2.sc-duet-input .duet-input-variation-revealable.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input,.duet-input-variation-revealable.sc-duet-input:hover:not(.disabled) .duet-input-relative.duet-theme-turva2.sc-duet-input{outline-color:rgb(120, 145, 164)}.duet-input-variation-revealable.has-error.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-input-container.has-chips.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{outline:2px solid;outline-offset:-1px;outline-color:rgb(62, 84, 102)}.duet-theme-turva.sc-duet-input .duet-input-container.has-chips.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{outline:2px solid;outline-offset:2px;outline-color:rgb(53, 79, 101)}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 150ms ease}.duet-theme-turva.sc-duet-input .duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(143, 147, 158)}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{flex-grow:1;flex-basis:4rem;padding-left:0 !important;margin-left:12px !important;border-width:0 !important}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:hover{outline:none !important;border-width:0 !important}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input-icon.sc-duet-input{color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input{color:rgb(23, 42, 59) !important}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-webkit-input-placeholder{color:rgb(120, 145, 164)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:-moz-placeholder{color:rgb(120, 145, 164)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:-ms-input-placeholder{color:rgb(120, 145, 164)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(241, 202, 178)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input[disabled].sc-duet-input{color:rgb(23, 42, 59) !important;background:rgb(245, 246, 247) !important;border-color:rgb(245, 246, 247) !important;-webkit-text-fill-color:rgb(23, 42, 59) !important}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus{border-color:rgb(23, 42, 59) !important}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input-variation-button-left.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input-variation-revealable.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(23, 42, 59)}';var j=S;var z={search:o,email:k};var _=t("duet_input",function(){function t(t){var u=this;e(this,t);this.duetInput=i(this,"duetInput",7);this.duetChange=i(this,"duetChange",3);this.duetBlur=i(this,"duetBlur",7);this.duetClear=i(this,"duetClear",7);this.duetFocus=i(this,"duetFocus",7);this.inputId=s("DuetInput");this.clearId=s("DuetInputClear");this.labelId=s("DuetLabel");this.topCaptionId=s("DuetCaptionTop");this.topCaptionPlaceholderId=s("DuetCaptionPlaceholderTop");this.chipCountId=s("DuetInputChipCount");this.errorId=s("DuetError");this.disallowPatternRegex=null;this.clearLabel={en:"Clear",fi:"Tyhjennä",sv:"Rensa"};this.timeAnnouncement={en:"Time",fi:"Aika",sv:"Tid"};this.showPasswordLabel={en:"Show password",fi:"Näytä salasana",sv:"Visa lösenord"};this.hidePasswordLabel={en:"Hide password",fi:"Piilota salasana",sv:"Dölj lösenord"};this.passwordShownAriaAnnouncement={en:"Password is shown",fi:"Salasana näytetään",sv:"Lösenordet visas"};this.passwordHiddenAriaAnnouncement={en:"Password is hidden",fi:"Salasana on piilotettu",sv:"Lösenordet är dolt"};this.chipsSelectedDesriptionLabel={en:"selected",fi:"valittu",sv:"valt"};this.onInput=function(t){if(u.disallowPatternRegex){d(u.nativeInput,u.disallowPatternRegex)}if(u.chips){u.clearChipSelection()}u.value=u.nativeInput.value||"";u.duetInput.emit({originalEvent:t,value:u.value,component:"duet-input"})};this.onBlur=function(t){if(t.relatedTarget===u.nativeInput||t.relatedTarget===u.togglePasswordRevealedButton){return}if(u.variation==="revealable"&&u.isPasswordRevealed){u.isPasswordRevealed=false}u.isFocused=false;u.duetBlur.emit({originalEvent:t,value:u.value,component:"duet-input"})};this.onFocus=function(t){u.clearChipSelection();u.isFocused=true;u.duetFocus.emit({originalEvent:t,value:u.value,component:"duet-input"})};this.onClear=function(t){u.duetClear.emit({originalEvent:t,value:u.value,component:"duet-input"})};this.getAriaDescribedBy=function(){var t=[];if(u.isCaptionVisible&&u.topCaptionId){t.push(u.topCaptionId)}if(u.accessibleDescribedBy){t.push(u.accessibleDescribedBy)}if(u.chips){var e=u.getAllChips();if(e.length){t.push(u.chipCountId);e.forEach((function(e){return t.push(e.id)}))}}if(u.error){t.push(u.errorId)}return t.length>0?t.join(" "):null};this.handleClearClick=function(t){var e=u.clearInput();u.onClear(t);return e};this.keyHandler=function(t){if(c(t)&&u.clear){u.handleClearClick(t)}if(l(t)&&u.variation==="revealable"){if(t.target===u.togglePasswordRevealedButton){t.stopPropagation()}else{u.isPasswordRevealed=false}}if(u.chips&&u.nativeInput.value.length===0){if(h(t)){if(u.isChipSelected()){u.getSelectedChip().removeChip();setTimeout((function(){return u.selectLastChip()}))}u.selectLastChip()}if(b(t)){u.selectChipToLeft()}if(m(t)&&u.isChipSelected()){u.selectChipToRight()}}return t};this.togglePasswordRevealed=function(){u.isPasswordRevealed=!u.isPasswordRevealed};this.getInputType=function(){if(u.variation==="revealable"){return u.isPasswordRevealed?"text":"password"}return u.type};this.language=f();this.isPasswordRevealed=undefined;this.isFocused=false;this.accessibleActiveDescendant=undefined;this.accessibleAutocomplete=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleExpanded=undefined;this.accessibleDescribedBy="";this.accessibleHasPopup=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLiveError="polite";this.debounce=0;this.clear=false;this.caption=undefined;this.echoPlaceholder=false;this.theme="";this.expand=false;this.disabled=false;this.identifier=undefined;this.margin="auto";this.inputAlign="left";this.inputPadding="medium";this.required=false;this.type="text";this.variation="default";this.chips=false;this.label="Label";this.labelColor=undefined;this.labelWeight=undefined;this.error="";this.labelHidden=false;this.numericKeyboard=false;this.name=undefined;this.pattern=undefined;this.maxlength=undefined;this.minlength=undefined;this.placeholder=undefined;this.component="input";this.role=undefined;this.icon=undefined;this.autoComplete="on";this.disallowPattern=null;this.value=undefined;this.tooltip="";this.tooltipDirection="auto"}t.prototype.disallowedPatternChange=function(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null};t.prototype.valueChanged=function(){var t=this;if(this.nativeInput&&this.nativeInput.value!==this.value){var e=p(this.nativeInput);this.nativeInput.value=this.value;e()}this.isCaptionVisible=!!this.caption;var i=function(){return t.duetChange.emit({value:t.value,component:"duet-input"})};if(this.debounce===0){i()}else{clearTimeout(this.timeoutId);this.timeoutId=setTimeout(i,this.debounce)}};Object.defineProperty(t.prototype,"validity",{get:function(){return this.nativeInput.validity},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){a(this);this.disallowedPatternChange();this.isCaptionVisible=!!this.caption;w(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.componentDidLoad=function(){var t=this;if(this.variation==="revealable"&&this.nativeInput.form){this.nativeInput.form.addEventListener("submit",(function(){t.isPasswordRevealed=false}))}};t.prototype.connectedCallback=function(){v(this)};t.prototype.disconnectedCallback=function(){g(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.resetCursor=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(this.nativeInput){t=p(this.nativeInput);this.nativeInput.value=this.value;t()}return[2]}))}))};t.prototype.clearInput=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.value="";this.nativeInput.focus();this.value=""}return[2]}))}))};t.prototype.getAllChips=function(){return Array.from(this.element.querySelectorAll(".duet-input-relative duet-chip"))};t.prototype.isChipSelected=function(){return this.getAllChips().some((function(t){return t.selected}))};t.prototype.getSelectedChip=function(){return this.getAllChips().find((function(t){return t.selected}))};t.prototype.clearChipSelection=function(){var t=this.getAllChips();t.forEach((function(t){return t.selected=false}))};t.prototype.selectLastChip=function(){var t=this.getAllChips();if(t.length){t.forEach((function(t){return t.selected=false}));t.at(-1).selected=true}};t.prototype.selectChipToLeft=function(){var t=this.getAllChips();var e=t.findIndex((function(t){return t.selected}));if(t.length){t.forEach((function(t){return t.selected=false}));if(e===-1){t.at(-1).selected=true}else if(e===0){t[0].selected=true}else{t[e-1].selected=true}}};t.prototype.selectChipToRight=function(){var t=this.getAllChips();var e=t.findIndex((function(t){return t.selected}));if(t.length){t.forEach((function(t){return t.selected=false}));if(e>-1&&e<t.length-1){t[e+1].selected=true}}};t.prototype.addChip=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(u){if(!this.chips){console.error("The method addChips requires the property chips to be true");return[2]}e=this.element.querySelector(".duet-input-relative");i=e.querySelector("input:not(duet-chip input)");t.id=s("DuetInputChip");e.insertBefore(t,i);return[2]}))}))};t.prototype.hasChip=function(t){return __awaiter(this,arguments,void 0,(function(t){var e=t.value,i=t.text;return __generator(this,(function(t){return[2,this.getAllChips().some((function(t){return t.value===e&&t.textContent===i}))]}))}))};t.prototype.getChips=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.getAllChips()]}))}))};t.prototype.clearChips=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.getAllChips().forEach((function(t){return t.remove()}));return[2]}))}))};t.prototype.render=function(){var t,e,i;var r=this;var o=this.identifier||this.inputId;var a={};if(this.numericKeyboard){a.inputmode="numeric"}if(this.pattern&&this.type!=="tel"){a.pattern=this.pattern}else if(!this.pattern&&this.type==="tel"){a.pattern="[0-9+ ]+"}var s;if(this.value){s=new Date;try{s.setHours(Number(this.value.slice(0,2)),Number(this.value.slice(3,5)),0,0)}catch(t){s=undefined}}var d=!this.icon&&this.type!=="text"&&this.type!=="tel"&&this.type!=="password"&&this.type!=="time"&&this.variation!=="button";return u(n,{class:{"duet-expand":this.expand,"duet-m-0":this.margin==="none"},onKeyUp:function(t){return r.keyHandler(t)}},this.type==="time"&&u("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true"},s?"".concat(this.timeAnnouncement[this.language]," ").concat(s.toLocaleTimeString()):""),u("div",{class:(t={"duet-input-container":true,"duet-theme-turva":this.theme==="turva"},t["duet-input-variation-".concat(this.variation)]=true,t["duet-label-hidden"]=this.labelHidden,t["duet-input-top-caption-shown"]=this.isCaptionVisible,t["has-icon"]=this.variation!=="button"&&(!!this.icon||this.type!=="text"&&this.type!=="tel"&&this.type!=="password"&&this.type!=="time"),t["has-error"]=!!this.error,t["has-chips"]=this.chips,t["has-clear"]=this.clear,t["has-focus"]=this.isFocused,t.disabled=this.disabled,t)},u("div",{class:"duet-input-label-container"},u("duet-label",{theme:this.theme==="turva"?"turva":"default",margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:o},this.label),this.tooltip&&u("duet-tooltip",{class:"duet-input-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:this.theme==="turva"?"turva":"default"},this.tooltip),u("slot",{name:"tooltip"})),this.caption&&u("duet-caption",{id:this.topCaptionId,size:"medium"},this.caption),u("div",{class:"duet-input-relative"},this.placeholder&&this.echoPlaceholder&&(this.value||this.type==="time")&&u("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-input-placeholder",margin:"none",size:"small"},this.placeholder),this.chips&&u("duet-visually-hidden",{id:this.chipCountId},", ","".concat(this.getAllChips().length," ").concat(x(this.chipsSelectedDesriptionLabel)),","),this.variation==="button-left"&&u("slot",{name:"button-left"}),u("input",Object.assign({ref:function(t){return r.nativeInput=t},onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,type:this.getInputType(),class:(e={"duet-input":true,disabled:this.disabled,"is-number":this.component==="number","is-date":this.component==="date","after-chip":this.getAllChips().length>0,"align-right":this.inputAlign==="right"},e["input-padding-".concat(this.inputPadding)]=true,e),value:this.value,disabled:this.disabled,"aria-invalid":this.error?"true":"false","aria-labelledby":this.accessibleLabelledBy?"".concat(this.labelId," ").concat(this.accessibleLabelledBy):this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-expanded":this.accessibleExpanded,"aria-haspopup":this.accessibleHasPopup,"aria-owns":this.accessibleOwns,"aria-describedby":this.getAriaDescribedBy(),placeholder:this.placeholder,spellcheck:"false",minlength:this.minlength,maxlength:this.maxlength,autocomplete:this.type==="password"?"off":this.autoComplete,required:this.required,role:this.role,name:this.name,id:o},a)),!this.value&&d&&u("div",{class:"duet-input-icon"},u("duet-icon",{margin:"none",size:"small",icon:z[this.type].svg,color:"currentColor"})),this.clear&&this.value&&u("div",{class:(i={"duet-input-clear-icon":true,"duet-input-clear-icon-single":!d,"duet-input-clear-icon-double":!!this.icon,"duet-input-clear-icon-button":this.variation==="button"},i["input-padding-".concat(this.inputPadding)]=true,i)},u("button",{onClick:this.handleClearClick,id:this.clearId,"aria-label":this.clearLabel[this.language],"aria-keyshortcuts":"Escape"},u("duet-icon",{margin:"none",size:"medium",name:"action-clear-input",color:"currentColor"}))),this.icon&&this.variation!=="button"&&u("div",{class:"duet-input-icon"},u("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),this.variation==="button"&&u("slot",{name:"button"}),this.variation==="revealable"&&u("duet-button",{ref:function(t){return r.togglePasswordRevealedButton=t},onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.togglePasswordRevealed,icon:this.isPasswordRevealed?"action-hide":"action-show",accessibleLabel:this.isPasswordRevealed?this.hidePasswordLabel[this.language]:this.showPasswordLabel[this.language],margin:"none",variation:"input-button-embedded",fixed:true,iconOnly:true}),this.variation==="revealable"&&this.isPasswordRevealed!==undefined&&u("duet-visually-hidden",null,u("span",{"aria-live":"polite"},this.isPasswordRevealed?this.passwordShownAriaAnnouncement[this.language]:this.passwordHiddenAriaAnnouncement[this.language])),u("slot",null)),u("span",{class:"duet-input-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&u("span",{class:"duet-input-error"},this.error))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disallowPattern:["disallowedPatternChange"],value:["valueChanged"]}},enumerable:false,configurable:true});return t}());_.style=j;var C='*.sc-duet-label,*.sc-duet-label::after,*.sc-duet-label::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.sc-duet-label-h{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;line-height:1.25;cursor:default}.duet-p-0.sc-duet-label-h{padding:0 !important}.duet-m-0.sc-duet-label-h{margin:0 !important}.duet-m-0.sc-duet-label-h{margin-bottom:0 !important}.duet-small-margin.sc-duet-label-h{margin-top:8px !important;margin-bottom:4px !important}.duet-has-tooltip.sc-duet-label-h{padding-right:48px}@media (min-width: 48em){.duet-has-tooltip.sc-duet-label-h{padding-right:0}}label.sc-duet-label{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word}label.sc-duet-label span.sc-duet-label{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-label-small.sc-duet-label-h label.sc-duet-label{font-size:0.875rem}.duet-label-small.sc-duet-label-h label.sc-duet-label span.sc-duet-label{font-size:0.875rem}.duet-weight-normal.sc-duet-label-h label.sc-duet-label{font-weight:400 !important}.duet-weight-normal.sc-duet-label-h label.sc-duet-label span.sc-duet-label{font-weight:400 !important}.duet-theme-turva.sc-duet-label-h label.sc-duet-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva2.duet-theme-turva.sc-duet-label-h label.sc-duet-label{color:rgb(23, 42, 59)}';var I=C;var E=t("duet_label",function(){function t(t){e(this,t);this.theme="";this.for=undefined;this.margin="auto";this.size="medium";this.weight="semi-bold";this.color=""}t.prototype.componentWillLoad=function(){a(this)};t.prototype.render=function(){var t;var e=y(this.color,this.theme);return u(n,{class:(t={"duet-label":true,"duet-label-small":this.size==="small","duet-theme-turva":this.theme==="turva","duet-small-margin":this.margin==="small","duet-m-0":this.margin==="none"},t["duet-weight-".concat(this.weight)]=true,t)},u("label",{htmlFor:this.for,style:{color:e}},u("span",null,u("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());E.style=I}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,a,r){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,u){function o(t){try{d(r.next(t))}catch(t){u(t)}}function s(t){try{d(r["throw"](t))}catch(t){u(t)}}function d(t){t.done?a(t.value):i(t.value).then(o,s)}d((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return d([t,e])}}function d(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(r=1,i&&(u=s[0]&2?i["return"]:s[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,s[1])).done)return u;if(i=0,u)s=[s[0]&2,u.value];switch(s[0]){case 0:case 1:u=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;i=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(u=a.trys,u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){a.label=s[1];break}if(s[0]===6&&a.label<u[1]){a.label=u[1];u=s;break}if(u&&a.label<u[2]){a.label=u[2];a.ops.push(s);break}if(u[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];i=0}finally{r=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-1f5071fd.system.js","./p-9d6c1403.system.js","./p-e6b5a1c7.system.js","./p-e12066c8.system.js","./p-8e1def15.system.js","./p-e59c5a32.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,a,r,i,u,o,s,d,n,c,l,h,x;return{setters:[function(t){e=t.r;a=t.c;r=t.h;i=t.H;u=t.g},function(t){o=t.i},function(t){s=t.c},function(t){d=t.c},function(t){n=t.f;c=t.g;l=t.c;h=t.d},function(t){x=t.c},function(){}],execute:function(){var p='*.sc-duet-textarea,*.sc-duet-textarea::after,*.sc-duet-textarea::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.sc-duet-textarea-h{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:16px !important;margin-bottom:12px !important;display:block;width:100%;max-width:100%;text-align:left}.sc-duet-textarea-h:last-child,.sc-duet-textarea-h:last-of-type{margin-right:0 !important}[alignment=form-distribute]>.sc-duet-textarea-h:last-of-type{margin-right:16px !important}@media (min-width: 36em){.sc-duet-textarea-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-textarea-h{width:100% !important}}.duet-m-0.sc-duet-textarea-h{margin:0 !important}duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:relative;top:4px;right:auto}}.duet-textarea-container.sc-duet-textarea{position:relative;width:100%;height:100%}.duet-textarea-container.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:none}.duet-textarea-container.duet-input-top-caption-shown.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:flex !important}.duet-textarea-wrapper.sc-duet-textarea{position:relative}.duet-textarea-placeholder.sc-duet-textarea{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea.sc-duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-textarea.sc-duet-textarea:focus{outline:2px solid;outline-offset:0;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus,.duet-textarea.sc-duet-textarea:focus.duet-theme-turva,.duet-theme-turva2.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus,.duet-textarea.sc-duet-textarea:focus.duet-theme-turva2{outline:2px solid;outline-offset:0;outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea[disabled].sc-duet-textarea{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important}.duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(8, 42, 77);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(8, 42, 77);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(8, 42, 77)}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea.sc-duet-textarea:hover:not(:disabled){outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled),.duet-textarea.sc-duet-textarea:hover:not(:disabled).duet-theme-turva,.duet-theme-turva2.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled),.duet-textarea.sc-duet-textarea:hover:not(:disabled).duet-theme-turva2{outline-color:rgb(120, 145, 164)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-textarea.sc-duet-textarea:focus{border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{border-color:rgb(23, 28, 58)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-textarea.sc-duet-textarea:not(:focus):not(:hover):invalid{outline:none}.duet-textarea-help.sc-duet-textarea{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;line-height:1.25}.duet-textarea-help.sc-duet-textarea span.sc-duet-textarea{display:block;margin-top:8px}.duet-theme-turva.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-textarea duet-label.sc-duet-textarea{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-character-count.sc-duet-textarea{display:block;margin:8px 0 0 auto}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea{color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{border-color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea{background:rgb(245, 246, 247) !important;border-color:rgb(245, 246, 247) !important}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:-webkit-input-placeholder{color:rgb(120, 145, 164)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(23, 42, 59)}';var m=p;var f=function(t){var e=t.value,a=t.maxlength,i=t.label,u=t.theme;if(a==null){return}var o=e.length;var s=Math.max(a-o,0);var d=s/a<=.1;return r("div",{class:"duet-character-count"},r("duet-caption",{margin:"none",theme:u,size:"small"},r("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true",class:"duet-textarea-counter-remaining"},d&&"".concat(s," ").concat(i)),r("span",{"aria-hidden":"true"},o,"/",a)))};var b=t("duet_textarea",function(){function t(t){var r=this;e(this,t);this.duetInput=a(this,"duetInput",7);this.duetChange=a(this,"duetChange",7);this.duetBlur=a(this,"duetBlur",7);this.duetFocus=a(this,"duetFocus",7);this.textareaId=s("DuetTextarea");this.topCaptionId=s("DuetCaptionTop");this.topCaptionPlaceholderId=s("DuetCaptionPlaceholderTop");this.labelId=s("DuetLabel");this.errorId=s("DuetError");this.characterCountId=s("DuetCharacterCount");this.disallowPatternRegex=null;this.counterLabelDefaults={fi:"merkkiä jäljellä",en:"characters remaining",sv:"tecken kvar"};this.handleInput=function(t){if(r.disallowPatternRegex){d(r.nativeInput,r.disallowPatternRegex)}r.value=r.nativeInput.value;r.isCaptionVisible=!!r.caption;r.duetInput.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleChange=function(t){r.value=r.nativeInput.value;r.duetChange.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleBlur=function(t){r.duetBlur.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleFocus=function(t){if(r.counter){r.hiddenCounterLabel.textContent="".concat(n(Math.max(r.maxlength-r.value.length,0)),"/").concat(n(r.maxlength)," ").concat(r.counterLabel)}r.duetFocus.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.getDescribedBy=function(){var t=[];if(r.isCaptionVisible&&r.topCaptionId){t.push(r.topCaptionId)}if(r.accessibleDescribedBy){t.push(r.accessibleDescribedBy)}if(r.error){t.push(r.errorId)}if(r.counter){t.push(r.characterCountId)}return t.length>0?t.join(" "):null};this.margin="auto";this.accessibleActiveDescendant=undefined;this.accessibleAutocomplete=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLiveError="polite";this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.expand=false;this.disabled=false;this.identifier=undefined;this.required=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.labelHidden=false;this.name=undefined;this.placeholder=undefined;this.caption=undefined;this.echoPlaceholder=false;this.maxlength=undefined;this.minlength=undefined;this.error="";this.role=undefined;this.tooltip="";this.tooltipDirection="auto";this.value="";this.disallowPattern=null;this.counter=false;this.counterLabel=c(this.counterLabelDefaults)}Object.defineProperty(t.prototype,"validity",{get:function(){return this.nativeInput.validity},enumerable:false,configurable:true});t.prototype.disallowedPatternChange=function(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null};t.prototype.componentWillLoad=function(){o(this);this.disallowedPatternChange();this.isCaptionVisible=!!this.caption;x(this.element,"tooltip","duet-tooltip",1,true);if(this.counter&&this.maxlength==null){console.warn("[DUET WARNING]: counter will only take effect if maxlength is set")}};t.prototype.connectedCallback=function(){l(this,{prop:"counterLabel",defaults:"counterLabelDefaults"})};t.prototype.disconnectedCallback=function(){h(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.nativeInput.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;var e=this.identifier||this.textareaId;return r(i,{class:{"duet-m-0":this.margin==="none","duet-has-counter":this.counter&&!this.error,"duet-expand":this.expand}},r("div",{class:{"duet-textarea-container":true,"duet-theme-turva":this.theme==="turva","duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},r("duet-label",{theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:e},this.label),this.tooltip&&r("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:this.theme==="turva"?"turva":"default"},this.tooltip),r("slot",{name:"tooltip"}),this.caption&&r("duet-caption",{id:this.topCaptionId,size:"medium",theme:this.theme==="turva"?"turva":"default"},this.caption),r("div",{class:"duet-textarea-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&r("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-textarea-placeholder",size:"small"},this.placeholder),r("textarea",{onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:function(e){return t.nativeInput=e},class:{"duet-textarea":true,disabled:this.disabled},value:this.value,disabled:this.disabled,"aria-labelledby":this.accessibleLabelledBy?"".concat(this.labelId," ").concat(this.accessibleLabelledBy):this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,placeholder:this.placeholder,spellcheck:"false",required:this.required,minlength:this.minlength,maxlength:this.maxlength,role:this.role,name:this.name,id:e})),r("duet-grid",{alignment:"stretch"},r("duet-grid-item",{margin:"none",fill:true},r("div",{class:"duet-textarea-help duet-textarea-error",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&r("span",null,this.error))),r("duet-grid-item",{margin:"none",class:"duet-character-count-caption"},this.counter&&r(f,{theme:this.theme,value:this.value,maxlength:this.maxlength,label:this.counterLabel}))),this.counter&&r("duet-visually-hidden",{class:"duet-visually-hidden",id:this.characterCountId,ref:function(e){t.hiddenCounterLabel=e}})))};Object.defineProperty(t.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disallowPattern:["disallowedPatternChange"]}},enumerable:false,configurable:true});return t}());b.style=m}}}));
|