@duetds/components 6.9.3 → 6.9.5
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 +39 -9
- package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- package/lib/cjs/duet-combobox.cjs.entry.js +24 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +3 -2
- package/lib/cjs/duet-footer.cjs.entry.js +1 -1
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-input_2.cjs.entry.js +3 -2
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +3 -2
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +4 -3
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-textarea.cjs.entry.js +3 -2
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
- package/lib/cjs/duet-tray.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-05197b44.js → focus-utils-8edb1dd0.js} +1 -1
- package/lib/cjs/{index-eee9d583.js → index-81121cf7.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/collection/components/duet-combobox/duet-combobox.css +2 -1
- package/lib/collection/components/duet-combobox/duet-combobox.js +26 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +20 -1
- package/lib/collection/components/duet-input/duet-input.js +20 -1
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +20 -1
- package/lib/collection/components/duet-select/duet-select.css +3 -0
- package/lib/collection/components/duet-select/duet-select.js +20 -1
- package/lib/collection/components/duet-textarea/duet-textarea.js +20 -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-breadcrumb.js +2 -2
- 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-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +3 -3
- 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-choice-group.js +6 -6
- package/lib/dist-custom-elements/duet-choice.js +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- package/lib/dist-custom-elements/duet-combobox.js +25 -5
- 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 +10 -10
- 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-footer.js +4 -4
- 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 +8 -8
- 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-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-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-modal.js +7 -7
- package/lib/dist-custom-elements/duet-multiselect.js +11 -9
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +2 -2
- package/lib/dist-custom-elements/duet-number-input.js +9 -9
- package/lib/dist-custom-elements/duet-page-heading.js +2 -2
- package/lib/dist-custom-elements/duet-pagination.js +7 -7
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-radio-group.js +6 -6
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- 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-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 +2 -2
- package/lib/dist-custom-elements/duet-slideout.js +2 -2
- 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-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 +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-tab-group.js +9 -9
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +11 -9
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- 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-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +3 -3
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +17 -17
- 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-deb13767.js → p-00622251.js} +3 -3
- package/lib/dist-custom-elements/{p-95748e22.js → p-0acc5ed6.js} +1 -1
- package/lib/dist-custom-elements/{p-11726aff.js → p-111c553d.js} +2 -2
- package/lib/dist-custom-elements/{p-b36e239a.js → p-20c82fbd.js} +1 -1
- package/lib/dist-custom-elements/{p-3a3c90d4.js → p-27efb5f6.js} +1 -1
- package/lib/dist-custom-elements/{p-9b058d94.js → p-27f66954.js} +1 -1
- package/lib/dist-custom-elements/{p-be5f6a1d.js → p-2ea5174d.js} +1 -1
- package/lib/dist-custom-elements/{p-1fc0569f.js → p-2ff017a8.js} +1 -1
- package/lib/dist-custom-elements/{p-abcc88a0.js → p-4b87207e.js} +10 -8
- package/lib/dist-custom-elements/{p-220ddc4d.js → p-4c1f4126.js} +1 -1
- package/lib/dist-custom-elements/{p-d8b913a2.js → p-57b9edb8.js} +5 -5
- package/lib/dist-custom-elements/{p-c4537db0.js → p-5808a711.js} +1 -1
- package/lib/dist-custom-elements/{p-486f5398.js → p-7ccd5f61.js} +1 -1
- package/lib/dist-custom-elements/{p-08f56203.js → p-82cb614b.js} +1 -1
- package/lib/dist-custom-elements/{p-9a4e8a6c.js → p-95f8531c.js} +1 -1
- package/lib/dist-custom-elements/{p-47633ac9.js → p-98983cf5.js} +11 -9
- package/lib/dist-custom-elements/{p-8ac11c5c.js → p-a4a81077.js} +2 -2
- package/lib/dist-custom-elements/{p-6a4b0b8a.js → p-a6f793fc.js} +1 -1
- package/lib/dist-custom-elements/{p-1b58a33e.js → p-a7109746.js} +2 -2
- package/lib/dist-custom-elements/{p-f48f6476.js → p-a81b913d.js} +4 -4
- package/lib/dist-custom-elements/{p-fc615ca3.js → p-aacb3b95.js} +1 -1
- package/lib/dist-custom-elements/{p-98adfbc0.js → p-b385a866.js} +1 -1
- package/lib/dist-custom-elements/{p-084bbc37.js → p-bd0dd4e8.js} +1 -1
- package/lib/dist-custom-elements/{p-aa927ce0.js → p-ca210b87.js} +3 -3
- package/lib/dist-custom-elements/{p-2379a67f.js → p-d2e453e5.js} +5 -3
- package/lib/dist-custom-elements/{p-743407d6.js → p-d6aa9453.js} +3 -3
- package/lib/dist-custom-elements/{p-05d02fd2.js → p-de83b878.js} +1 -1
- package/lib/dist-custom-elements/{p-dbbd6cd5.js → p-e051482f.js} +1 -1
- package/lib/dist-custom-elements/{p-3332f673.js → p-e873b671.js} +1 -1
- package/lib/dist-custom-elements/{p-070a067c.js → p-eb0f0871.js} +1 -1
- package/lib/dist-custom-elements/{p-48eb0804.js → p-f8646bdd.js} +2 -2
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-894225c9.system.entry.js → p-01470001.system.entry.js} +1 -1
- package/lib/duet/{p-3c41107f.system.entry.js → p-03a69a82.system.entry.js} +1 -1
- package/lib/duet/{p-1eab9ea5.system.entry.js → p-07b5abec.system.entry.js} +1 -1
- package/lib/duet/{p-259d5d84.system.js → p-0cd46f36.system.js} +1 -1
- package/lib/duet/{p-48449639.entry.js → p-0d21f532.entry.js} +1 -1
- package/lib/duet/{p-fb400276.entry.js → p-0d8f3f8b.entry.js} +1 -1
- package/lib/duet/{p-21381440.system.entry.js → p-0dd90f16.system.entry.js} +1 -1
- package/lib/duet/{p-9a7822e3.system.entry.js → p-0ee30eab.system.entry.js} +1 -1
- package/lib/duet/{p-a99957df.system.entry.js → p-11c9648d.system.entry.js} +1 -1
- package/lib/duet/p-12fd0273.js +4 -0
- package/lib/duet/{p-c307f048.system.entry.js → p-152af7a3.system.entry.js} +1 -1
- package/lib/duet/{p-f4b9cbc6.system.entry.js → p-19bb927c.system.entry.js} +1 -1
- package/lib/duet/{p-a224fc1a.entry.js → p-1acbcfe5.entry.js} +1 -1
- package/lib/duet/{p-cc67de6a.system.entry.js → p-1b2cc0ed.system.entry.js} +1 -1
- package/lib/duet/{p-724367a5.system.entry.js → p-1c1a784e.system.entry.js} +1 -1
- package/lib/duet/{p-910a0043.entry.js → p-1c667631.entry.js} +1 -1
- package/lib/duet/{p-6cf4109e.system.entry.js → p-21241efd.system.entry.js} +1 -1
- package/lib/duet/{p-abc29e21.entry.js → p-230e5380.entry.js} +1 -1
- package/lib/duet/{p-2e931fc4.system.entry.js → p-248a1e70.system.entry.js} +1 -1
- package/lib/duet/{p-36481d15.system.entry.js → p-258e74a2.system.entry.js} +1 -1
- package/lib/duet/{p-11ef8af0.system.entry.js → p-26e5f323.system.entry.js} +1 -1
- package/lib/duet/{p-2a22b73f.system.entry.js → p-2743b8e3.system.entry.js} +1 -1
- package/lib/duet/{p-4ce9c319.system.entry.js → p-277d8df3.system.entry.js} +1 -1
- package/lib/duet/{p-8f98f017.system.entry.js → p-28f4474e.system.entry.js} +1 -1
- package/lib/duet/{p-2f389915.system.entry.js → p-29864af5.system.entry.js} +1 -1
- package/lib/duet/{p-cabe3f7c.system.entry.js → p-2bed99fa.system.entry.js} +1 -1
- package/lib/duet/{p-414a631b.system.entry.js → p-2c0520ca.system.entry.js} +1 -1
- package/lib/duet/{p-e13f59e4.system.entry.js → p-2fd74d57.system.entry.js} +1 -1
- package/lib/duet/{p-95a3f764.entry.js → p-33196e22.entry.js} +1 -1
- package/lib/duet/{p-7ef9de3e.entry.js → p-354090fc.entry.js} +1 -1
- package/lib/duet/{p-997df7b3.entry.js → p-35872d73.entry.js} +1 -1
- package/lib/duet/{p-9f207355.system.entry.js → p-3791056c.system.entry.js} +1 -1
- package/lib/duet/{p-fd2a5cac.entry.js → p-37aa45f3.entry.js} +1 -1
- package/lib/duet/{p-878386d9.entry.js → p-398cb719.entry.js} +1 -1
- package/lib/duet/{p-4e8ffea9.system.entry.js → p-3bffc1ba.system.entry.js} +1 -1
- package/lib/duet/{p-c955c3c0.system.entry.js → p-413a3ebd.system.entry.js} +1 -1
- package/lib/duet/{p-d1a0472a.system.entry.js → p-450469cd.system.entry.js} +1 -1
- package/lib/duet/{p-f5e31079.entry.js → p-4e75e28e.entry.js} +1 -1
- package/lib/duet/{p-7e9ebcb2.entry.js → p-50495b74.entry.js} +1 -1
- package/lib/duet/{p-e6b7aee0.entry.js → p-50dad157.entry.js} +1 -1
- package/lib/duet/{p-db400c06.entry.js → p-53ec70ad.entry.js} +1 -1
- package/lib/duet/{p-57efae9d.js → p-540a243d.js} +1 -1
- package/lib/duet/{p-1ce8948f.entry.js → p-5632e848.entry.js} +1 -1
- package/lib/duet/{p-155652e9.entry.js → p-576caf16.entry.js} +1 -1
- package/lib/duet/{p-dd32b730.entry.js → p-58fb7a22.entry.js} +1 -1
- package/lib/duet/{p-8a8425cb.entry.js → p-59187969.entry.js} +1 -1
- package/lib/duet/{p-442c8063.system.entry.js → p-59efa9e0.system.entry.js} +1 -1
- package/lib/duet/{p-25f897af.system.entry.js → p-5ab222b7.system.entry.js} +1 -1
- package/lib/duet/p-5b93cff5.entry.js +4 -0
- package/lib/duet/{p-e4f8292f.entry.js → p-5df2cedc.entry.js} +1 -1
- package/lib/duet/{p-e71f044b.system.entry.js → p-5e68175c.system.entry.js} +1 -1
- package/lib/duet/{p-ddb0e72b.system.entry.js → p-5e97f333.system.entry.js} +1 -1
- package/lib/duet/{p-ac42a831.entry.js → p-5ee88d22.entry.js} +1 -1
- package/lib/duet/{p-28a49e7e.system.entry.js → p-6020bc32.system.entry.js} +1 -1
- package/lib/duet/{p-92a84fa7.system.entry.js → p-663247df.system.entry.js} +1 -1
- package/lib/duet/{p-407f6a22.entry.js → p-66ab4869.entry.js} +1 -1
- package/lib/duet/{p-83a1e8a9.system.entry.js → p-676730a8.system.entry.js} +1 -1
- package/lib/duet/{p-964a54d2.entry.js → p-68750bf4.entry.js} +1 -1
- package/lib/duet/{p-a71e810d.entry.js → p-6d204f7f.entry.js} +1 -1
- package/lib/duet/{p-cc86b267.entry.js → p-6da60c3a.entry.js} +1 -1
- package/lib/duet/p-7286fe0a.system.entry.js +4 -0
- package/lib/duet/{p-d66220a1.system.entry.js → p-7454a974.system.entry.js} +1 -1
- package/lib/duet/p-756f81d6.system.js +4 -0
- package/lib/duet/{p-349331d9.system.entry.js → p-76ac794f.system.entry.js} +1 -1
- package/lib/duet/{p-6b43c686.entry.js → p-76c6eef8.entry.js} +1 -1
- package/lib/duet/{p-d9499685.system.entry.js → p-76d453ec.system.entry.js} +1 -1
- package/lib/duet/{p-3847ef6d.entry.js → p-7caf9f8c.entry.js} +1 -1
- package/lib/duet/{p-da0eeef6.entry.js → p-7df39ae6.entry.js} +1 -1
- package/lib/duet/p-7e401d44.entry.js +4 -0
- package/lib/duet/{p-396a1d2a.system.entry.js → p-7f8e1e3e.system.entry.js} +1 -1
- package/lib/duet/{p-b71fca88.system.entry.js → p-8151dad5.system.entry.js} +1 -1
- package/lib/duet/{p-24fea307.system.js → p-81e5dfca.system.js} +1 -1
- package/lib/duet/{p-5bfdb0c0.system.entry.js → p-82e72de8.system.entry.js} +1 -1
- package/lib/duet/{p-3014636c.entry.js → p-8442ce22.entry.js} +1 -1
- package/lib/duet/{p-9b874e31.entry.js → p-84abe886.entry.js} +1 -1
- package/lib/duet/{p-68f54c0a.system.entry.js → p-8acfaf91.system.entry.js} +1 -1
- package/lib/duet/{p-aad61eac.entry.js → p-8bd0fbf8.entry.js} +1 -1
- package/lib/duet/{p-b1d50c67.entry.js → p-8c9438d3.entry.js} +1 -1
- package/lib/duet/p-920d58da.entry.js +4 -0
- package/lib/duet/{p-e2a2e011.entry.js → p-92a86be1.entry.js} +1 -1
- package/lib/duet/{p-17f84373.entry.js → p-94c122ea.entry.js} +1 -1
- package/lib/duet/{p-e5294139.system.entry.js → p-95c7021f.system.entry.js} +1 -1
- package/lib/duet/{p-0a7ba5c7.entry.js → p-9711aa31.entry.js} +1 -1
- package/lib/duet/{p-8bd1ef85.entry.js → p-984e12ad.entry.js} +1 -1
- package/lib/duet/{p-11758911.system.entry.js → p-9a5d8dc8.system.entry.js} +1 -1
- package/lib/duet/{p-7f39a8a5.system.entry.js → p-9a784d29.system.entry.js} +1 -1
- package/lib/duet/{p-74152c5e.entry.js → p-9b4096ae.entry.js} +1 -1
- package/lib/duet/{p-bca173de.entry.js → p-a35708d9.entry.js} +1 -1
- package/lib/duet/{p-da0d4641.system.entry.js → p-a38015bf.system.entry.js} +1 -1
- package/lib/duet/{p-4add9927.system.entry.js → p-a3b02dfe.system.entry.js} +1 -1
- package/lib/duet/{p-661af5a7.system.entry.js → p-a57d2cd7.system.entry.js} +1 -1
- package/lib/duet/{p-173ed9e7.entry.js → p-a5f307cc.entry.js} +1 -1
- package/lib/duet/p-ac7ea81a.entry.js +4 -0
- package/lib/duet/{p-e7bfb225.system.entry.js → p-ad18ed23.system.entry.js} +1 -1
- package/lib/duet/p-afc5adae.entry.js +4 -0
- package/lib/duet/{p-59ca36c2.entry.js → p-b323c9dd.entry.js} +1 -1
- package/lib/duet/{p-9664ebdc.entry.js → p-b32b8786.entry.js} +1 -1
- package/lib/duet/{p-59d60527.system.entry.js → p-b3693e82.system.entry.js} +1 -1
- package/lib/duet/{p-34f27b50.system.entry.js → p-b5813a0f.system.entry.js} +1 -1
- package/lib/duet/{p-11358fff.system.entry.js → p-b5bc42d3.system.entry.js} +1 -1
- package/lib/duet/{p-4e6acc63.system.entry.js → p-b5e831ad.system.entry.js} +1 -1
- package/lib/duet/{p-2c89239c.entry.js → p-b6ba60c4.entry.js} +1 -1
- package/lib/duet/{p-800dbb26.system.entry.js → p-b6e15be0.system.entry.js} +1 -1
- package/lib/duet/{p-2cc41c08.entry.js → p-bbcb7a1d.entry.js} +1 -1
- package/lib/duet/{p-dfdd58b9.entry.js → p-bd29e941.entry.js} +1 -1
- package/lib/duet/{p-cd7bf69f.entry.js → p-bd426f15.entry.js} +1 -1
- package/lib/duet/{p-1b423f25.entry.js → p-c76d7cab.entry.js} +1 -1
- package/lib/duet/{p-e56a2b7e.entry.js → p-c820689f.entry.js} +1 -1
- package/lib/duet/{p-3712296a.entry.js → p-c85acd95.entry.js} +1 -1
- package/lib/duet/{p-edc52faf.system.entry.js → p-c86e5e36.system.entry.js} +1 -1
- package/lib/duet/{p-357cc693.system.entry.js → p-cce99a1d.system.entry.js} +1 -1
- package/lib/duet/{p-8c8357ad.entry.js → p-ce6e2909.entry.js} +1 -1
- package/lib/duet/{p-7b092de5.system.entry.js → p-cee25077.system.entry.js} +1 -1
- package/lib/duet/{p-395d05bb.system.entry.js → p-d08acf37.system.entry.js} +1 -1
- package/lib/duet/{p-653a0453.entry.js → p-d119935f.entry.js} +1 -1
- package/lib/duet/{p-68102093.system.entry.js → p-d38eb818.system.entry.js} +1 -1
- package/lib/duet/{p-9910f982.entry.js → p-d398189d.entry.js} +1 -1
- package/lib/duet/{p-d9667ce7.system.entry.js → p-d54e170f.system.entry.js} +2 -2
- package/lib/duet/{p-be6da1bf.entry.js → p-d5a9a127.entry.js} +1 -1
- package/lib/duet/{p-4d4f0b19.system.entry.js → p-d6280581.system.entry.js} +1 -1
- package/lib/duet/{p-23361048.entry.js → p-da91528a.entry.js} +1 -1
- package/lib/duet/{p-2b68991e.system.entry.js → p-dbc4a1f6.system.entry.js} +1 -1
- package/lib/duet/p-ddd374b4.system.entry.js +4 -0
- package/lib/duet/{p-4faeaadc.system.entry.js → p-dee6ebe6.system.entry.js} +1 -1
- package/lib/duet/{p-aae6309d.entry.js → p-dfa1a8cd.entry.js} +1 -1
- package/lib/duet/{p-aaf572b3.entry.js → p-e016d27b.entry.js} +1 -1
- package/lib/duet/{p-48556df8.entry.js → p-e483eaf7.entry.js} +1 -1
- package/lib/duet/{p-1a98ab00.system.entry.js → p-e4e8671a.system.entry.js} +1 -1
- package/lib/duet/{p-672928d4.entry.js → p-e76b6f2f.entry.js} +1 -1
- package/lib/duet/{p-1c533863.entry.js → p-e98fe1b4.entry.js} +1 -1
- package/lib/duet/{p-8bef9998.entry.js → p-e9c70c19.entry.js} +1 -1
- package/lib/duet/{p-402b0ebf.system.entry.js → p-f31f949c.system.entry.js} +1 -1
- package/lib/duet/{p-96281e8b.system.entry.js → p-f3221a0e.system.entry.js} +1 -1
- package/lib/duet/{p-f461ac1c.entry.js → p-f3fa09d1.entry.js} +1 -1
- package/lib/duet/{p-d43a06e6.system.entry.js → p-f6adb078.system.entry.js} +1 -1
- package/lib/duet/{p-b3fcc7af.entry.js → p-f7c3b41f.entry.js} +1 -1
- package/lib/duet/p-fe039b5e.entry.js +4 -0
- package/lib/esm/duet-action-button.entry.js +1 -1
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +1 -1
- package/lib/esm/duet-caption_4.entry.js +1 -1
- package/lib/esm/duet-card.entry.js +1 -1
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +1 -1
- package/lib/esm/duet-combobox.entry.js +24 -4
- package/lib/esm/duet-contact-card.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +1 -1
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +3 -2
- package/lib/esm/duet-footer.entry.js +1 -1
- package/lib/esm/duet-grid_2.entry.js +1 -1
- package/lib/esm/duet-header_2.entry.js +1 -1
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +1 -1
- package/lib/esm/duet-input_2.entry.js +3 -2
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +3 -2
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +4 -3
- package/lib/esm/duet-slideout-lang.entry.js +1 -1
- package/lib/esm/duet-slideout-link.entry.js +1 -1
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm/duet-slideout-panel.entry.js +2 -2
- package/lib/esm/duet-slideout.entry.js +2 -2
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +1 -1
- package/lib/esm/duet-textarea.entry.js +3 -2
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +1 -1
- package/lib/esm/duet-tray.entry.js +1 -1
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/esm/{focus-utils-babfdd77.js → focus-utils-21faee80.js} +1 -1
- package/lib/esm/{index-1f0abe67.js → index-ccc5c541.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm-es5/duet-action-button.entry.js +2 -2
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.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-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-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-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- 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-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-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 +1 -1
- package/lib/esm-es5/duet-number-input.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-progress.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-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-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-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- 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-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.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-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/focus-utils-21faee80.js +4 -0
- package/lib/esm-es5/{index-1f0abe67.js → index-ccc5c541.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +3 -1
- package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +7 -0
- package/lib/types/components/duet-input/duet-input.d.ts +7 -0
- package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +7 -0
- package/lib/types/components/duet-select/duet-select.d.ts +7 -0
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +7 -0
- package/lib/types/components.d.ts +42 -2
- package/package.json +5 -5
- package/lib/duet/p-0b3515f3.entry.js +0 -4
- package/lib/duet/p-1d54c498.system.entry.js +0 -4
- package/lib/duet/p-1ebda85b.entry.js +0 -4
- package/lib/duet/p-34429ce9.entry.js +0 -4
- package/lib/duet/p-3d47e55b.entry.js +0 -4
- package/lib/duet/p-4b9ca577.system.js +0 -4
- package/lib/duet/p-5f68a158.entry.js +0 -4
- package/lib/duet/p-7ea72ed8.entry.js +0 -4
- package/lib/duet/p-b78516ae.system.entry.js +0 -4
- package/lib/duet/p-f1572d2f.js +0 -4
- package/lib/esm-es5/focus-utils-babfdd77.js +0 -4
|
@@ -79,6 +79,16 @@ export class DuetCombobox {
|
|
|
79
79
|
async formatItem(item) {
|
|
80
80
|
return this.formatter(item);
|
|
81
81
|
}
|
|
82
|
+
async processItems() {
|
|
83
|
+
this.items = this.processedItems = parsePossibleJSON(this.items);
|
|
84
|
+
await this.updateInputText();
|
|
85
|
+
}
|
|
86
|
+
async processValue() {
|
|
87
|
+
if (this.value) {
|
|
88
|
+
const selectedItem = this.items.find(item => item.value === this.value);
|
|
89
|
+
this.updateSelectedItems(selectedItem.id);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
82
92
|
/**
|
|
83
93
|
* Component lifecycle events.
|
|
84
94
|
*/
|
|
@@ -125,6 +135,7 @@ export class DuetCombobox {
|
|
|
125
135
|
this.listElement.addEventListener("click", e => {
|
|
126
136
|
e.stopPropagation();
|
|
127
137
|
});
|
|
138
|
+
this.processValue();
|
|
128
139
|
}
|
|
129
140
|
/**
|
|
130
141
|
* Updates the input text based on the selected/clicked items.
|
|
@@ -183,12 +194,19 @@ export class DuetCombobox {
|
|
|
183
194
|
*/
|
|
184
195
|
async updateInputText(isBlurred = false) {
|
|
185
196
|
const item = this.selectedItems.size === 0 ? [] : this.items.filter(item => this.selectedItems.has(item.id));
|
|
197
|
+
//if items changed and given id no longer exists
|
|
198
|
+
if (item.length === 0 && this.selectedItems.size > 0) {
|
|
199
|
+
this.selectedItems.clear();
|
|
200
|
+
this.input.value = "";
|
|
201
|
+
this.value = undefined;
|
|
202
|
+
this.activeItem = undefined;
|
|
203
|
+
}
|
|
186
204
|
if (this.selectedItems.size === 1) {
|
|
187
205
|
this.input.value = ""; // set value to empty so that cursor position follows accordingly
|
|
188
206
|
this.input.value = await this.formatItem(item[0]);
|
|
189
207
|
this.input.scrollLeft = this.input.scrollWidth;
|
|
190
208
|
this.activeItem = undefined;
|
|
191
|
-
this.value =
|
|
209
|
+
this.value = item[0].value;
|
|
192
210
|
this.duetChange.emit({
|
|
193
211
|
value: item[0].value,
|
|
194
212
|
item: item[0],
|
|
@@ -507,7 +525,7 @@ export class DuetCombobox {
|
|
|
507
525
|
"optional": false,
|
|
508
526
|
"docs": {
|
|
509
527
|
"tags": [],
|
|
510
|
-
"text": "
|
|
528
|
+
"text": "Value of selected item/s"
|
|
511
529
|
},
|
|
512
530
|
"attribute": "value",
|
|
513
531
|
"reflect": true
|
|
@@ -644,6 +662,12 @@ export class DuetCombobox {
|
|
|
644
662
|
}, {
|
|
645
663
|
"propName": "language",
|
|
646
664
|
"methodName": "watchLanguageStateHandler"
|
|
665
|
+
}, {
|
|
666
|
+
"propName": "items",
|
|
667
|
+
"methodName": "processItems"
|
|
668
|
+
}, {
|
|
669
|
+
"propName": "value",
|
|
670
|
+
"methodName": "processValue"
|
|
647
671
|
}];
|
|
648
672
|
}
|
|
649
673
|
static get listeners() {
|
|
@@ -21,6 +21,7 @@ export class DuetFieldset {
|
|
|
21
21
|
this.caption = undefined;
|
|
22
22
|
this.label = undefined;
|
|
23
23
|
this.error = undefined;
|
|
24
|
+
this.accessibleLiveError = "polite";
|
|
24
25
|
this.labelHidden = false;
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
@@ -47,7 +48,7 @@ export class DuetFieldset {
|
|
|
47
48
|
"duet-legend-has-caption": !!this.caption,
|
|
48
49
|
"duet-legend-has-tooltip": this.hasTooltip,
|
|
49
50
|
"duet-legend-hidden": this.labelHidden,
|
|
50
|
-
} }, h("div", { class: "duet-fieldset-label" }, h("span", { "aria-hidden": "true" }, this.label), h("slot", { onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (h("div", { class: "duet-fieldset-caption", "aria-hidden": "true" }, h("duet-caption", { margin: "none" }, this.caption)))), h("slot", null), h("span", { class: "duet-fieldset-help", id: this.errorId, "aria-atomic": "true", "aria-live":
|
|
51
|
+
} }, h("div", { class: "duet-fieldset-label" }, h("span", { "aria-hidden": "true" }, this.label), h("slot", { onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (h("div", { class: "duet-fieldset-caption", "aria-hidden": "true" }, h("duet-caption", { margin: "none" }, this.caption)))), h("slot", null), h("span", { class: "duet-fieldset-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
|
|
51
52
|
}
|
|
52
53
|
static get is() { return "duet-fieldset"; }
|
|
53
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -160,6 +161,24 @@ export class DuetFieldset {
|
|
|
160
161
|
"attribute": "error",
|
|
161
162
|
"reflect": false
|
|
162
163
|
},
|
|
164
|
+
"accessibleLiveError": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"mutable": false,
|
|
167
|
+
"complexType": {
|
|
168
|
+
"original": "\"off\" | \"polite\" | \"assertive\"",
|
|
169
|
+
"resolved": "\"assertive\" | \"off\" | \"polite\"",
|
|
170
|
+
"references": {}
|
|
171
|
+
},
|
|
172
|
+
"required": false,
|
|
173
|
+
"optional": false,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": "The aria-live attribute for the error message. When the input is validated on blur, use \"off\", as using \"polite\" or \"assertive\"\nmakes the screen reader read the error message twice. When the input is validated on submit, use \"polite\", as \"off\" would leave\nthe messages unread by screen readers. Use \"assertive\" only in those rare cases when \"polite\" would leave the error message\nunread by screen readers."
|
|
177
|
+
},
|
|
178
|
+
"attribute": "accessible-live-error",
|
|
179
|
+
"reflect": false,
|
|
180
|
+
"defaultValue": "\"polite\""
|
|
181
|
+
},
|
|
163
182
|
"labelHidden": {
|
|
164
183
|
"type": "boolean",
|
|
165
184
|
"mutable": false,
|
|
@@ -156,6 +156,7 @@ export class DuetInput {
|
|
|
156
156
|
this.accessibleDetails = undefined;
|
|
157
157
|
this.accessibleLabelledBy = undefined;
|
|
158
158
|
this.accessibleDescription = undefined;
|
|
159
|
+
this.accessibleLiveError = "polite";
|
|
159
160
|
this.debounce = 0;
|
|
160
161
|
this.clear = false;
|
|
161
162
|
this.caption = undefined;
|
|
@@ -323,7 +324,7 @@ export class DuetInput {
|
|
|
323
324
|
? this.hidePasswordLabel[this.language]
|
|
324
325
|
: this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (h("duet-visually-hidden", null, h("span", { "aria-live": "polite" }, this.isPasswordRevealed
|
|
325
326
|
? this.passwordShownAriaAnnouncement[this.language]
|
|
326
|
-
: this.passwordHiddenAriaAnnouncement[this.language]))), h("slot", null)), h("span", { class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live":
|
|
327
|
+
: this.passwordHiddenAriaAnnouncement[this.language]))), h("slot", null)), h("span", { class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { class: "duet-input-error" }, this.error)))));
|
|
327
328
|
}
|
|
328
329
|
static get is() { return "duet-input"; }
|
|
329
330
|
static get encapsulation() { return "scoped"; }
|
|
@@ -514,6 +515,24 @@ export class DuetInput {
|
|
|
514
515
|
"reflect": false,
|
|
515
516
|
"defaultValue": "undefined"
|
|
516
517
|
},
|
|
518
|
+
"accessibleLiveError": {
|
|
519
|
+
"type": "string",
|
|
520
|
+
"mutable": false,
|
|
521
|
+
"complexType": {
|
|
522
|
+
"original": "\"off\" | \"polite\" | \"assertive\"",
|
|
523
|
+
"resolved": "\"assertive\" | \"off\" | \"polite\"",
|
|
524
|
+
"references": {}
|
|
525
|
+
},
|
|
526
|
+
"required": false,
|
|
527
|
+
"optional": false,
|
|
528
|
+
"docs": {
|
|
529
|
+
"tags": [],
|
|
530
|
+
"text": "The aria-live attribute for the error message. When the input is validated on blur, use \"off\", as using \"polite\" or \"assertive\"\nmakes the screen reader read the error message twice. When the input is validated on submit, use \"polite\", as \"off\" would leave\nthe messages unread by screen readers. Use \"assertive\" only in those rare cases when \"polite\" would leave the error message\nunread by screen readers."
|
|
531
|
+
},
|
|
532
|
+
"attribute": "accessible-live-error",
|
|
533
|
+
"reflect": false,
|
|
534
|
+
"defaultValue": "\"polite\""
|
|
535
|
+
},
|
|
517
536
|
"debounce": {
|
|
518
537
|
"type": "number",
|
|
519
538
|
"mutable": false,
|
|
@@ -113,6 +113,7 @@ export class DuetMultiselect {
|
|
|
113
113
|
this.language = getLanguage();
|
|
114
114
|
this.margin = "auto";
|
|
115
115
|
this.error = "";
|
|
116
|
+
this.accessibleLiveError = "polite";
|
|
116
117
|
this.expand = false;
|
|
117
118
|
this.value = [];
|
|
118
119
|
this.theme = "";
|
|
@@ -183,7 +184,7 @@ export class DuetMultiselect {
|
|
|
183
184
|
this.processedItems.map((item, key) => {
|
|
184
185
|
var _a, _b;
|
|
185
186
|
return (h("duet-checkbox", { identifier: this.getOptionIdentifier(key), role: "option", label: item.label, value: item.value, key: item.value, checked: (_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(item), "accessible-selected": ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(item)) ? "true" : undefined, disabled: !this.checkboxesVisible || item.disabled, onDuetChange: e => this.toggleCheckbox(e, item), onKeyDown: (e) => this.onCheckboxKeyDown(e, key), theme: this.theme }));
|
|
186
|
-
}))), h("span", { class: "duet-multiselect-help", id: this.errorId, "aria-
|
|
187
|
+
}))), h("span", { class: "duet-multiselect-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
|
|
187
188
|
}
|
|
188
189
|
static get is() { return "duet-multiselect"; }
|
|
189
190
|
static get encapsulation() { return "shadow"; }
|
|
@@ -240,6 +241,24 @@ export class DuetMultiselect {
|
|
|
240
241
|
"reflect": false,
|
|
241
242
|
"defaultValue": "\"\""
|
|
242
243
|
},
|
|
244
|
+
"accessibleLiveError": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"mutable": false,
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "\"off\" | \"polite\" | \"assertive\"",
|
|
249
|
+
"resolved": "\"assertive\" | \"off\" | \"polite\"",
|
|
250
|
+
"references": {}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": false,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": "The aria-live attribute for the error message. When the input is validated on blur, use \"off\", as using \"polite\" or \"assertive\"\nmakes the screen reader read the error message twice. When the input is validated on submit, use \"polite\", as \"off\" would leave\nthe messages unread by screen readers. Use \"assertive\" only in those rare cases when \"polite\" would leave the error message\nunread by screen readers."
|
|
257
|
+
},
|
|
258
|
+
"attribute": "accessible-live-error",
|
|
259
|
+
"reflect": false,
|
|
260
|
+
"defaultValue": "\"polite\""
|
|
261
|
+
},
|
|
243
262
|
"expand": {
|
|
244
263
|
"type": "boolean",
|
|
245
264
|
"mutable": false,
|
|
@@ -177,6 +177,9 @@ duet-tooltip {
|
|
|
177
177
|
border-color: rgb(245, 245, 247) !important;
|
|
178
178
|
-webkit-text-fill-color: rgb(23, 28, 58) !important;
|
|
179
179
|
}
|
|
180
|
+
.duet-select-wrapper span.duet-keep-container-height {
|
|
181
|
+
opacity: 0;
|
|
182
|
+
}
|
|
180
183
|
|
|
181
184
|
.duet-select {
|
|
182
185
|
position: absolute;
|
|
@@ -77,6 +77,7 @@ export class DuetSelect {
|
|
|
77
77
|
this.accessibleControls = undefined;
|
|
78
78
|
this.accessibleOwns = undefined;
|
|
79
79
|
this.error = "";
|
|
80
|
+
this.accessibleLiveError = "polite";
|
|
80
81
|
this.expand = false;
|
|
81
82
|
this.value = undefined;
|
|
82
83
|
this.theme = "";
|
|
@@ -158,7 +159,7 @@ export class DuetSelect {
|
|
|
158
159
|
}))), h("div", { class: {
|
|
159
160
|
"duet-select": true,
|
|
160
161
|
"duet-select-variation-tiny": this.variation === "tiny",
|
|
161
|
-
}, "aria-hidden": "true" }, h("span", { key: this.value }, this.getSelectedItemLabel()), this.variation !== "tiny" && (h("svg", { role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), this.variation === "tiny" && (h("duet-icon", { name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xx-small" }))), h("span", { class: "keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), h("span", { class: "duet-select-help", id: this.errorId, "aria-live":
|
|
162
|
+
}, "aria-hidden": "true" }, h("span", { key: this.value }, this.getSelectedItemLabel()), this.variation !== "tiny" && (h("svg", { role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), this.variation === "tiny" && (h("duet-icon", { name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xx-small" }))), h("span", { class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), h("span", { class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
|
|
162
163
|
}
|
|
163
164
|
static get is() { return "duet-select"; }
|
|
164
165
|
static get encapsulation() { return "scoped"; }
|
|
@@ -306,6 +307,24 @@ export class DuetSelect {
|
|
|
306
307
|
"reflect": false,
|
|
307
308
|
"defaultValue": "\"\""
|
|
308
309
|
},
|
|
310
|
+
"accessibleLiveError": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"mutable": false,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "\"off\" | \"polite\" | \"assertive\"",
|
|
315
|
+
"resolved": "\"assertive\" | \"off\" | \"polite\"",
|
|
316
|
+
"references": {}
|
|
317
|
+
},
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": false,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [],
|
|
322
|
+
"text": "The aria-live attribute for the error message. When the input is validated on blur, use \"off\", as using \"polite\" or \"assertive\"\nmakes the screen reader read the error message twice. When the input is validated on submit, use \"polite\", as \"off\" would leave\nthe messages unread by screen readers. Use \"assertive\" only in those rare cases when \"polite\" would leave the error message\nunread by screen readers."
|
|
323
|
+
},
|
|
324
|
+
"attribute": "accessible-live-error",
|
|
325
|
+
"reflect": false,
|
|
326
|
+
"defaultValue": "\"polite\""
|
|
327
|
+
},
|
|
309
328
|
"expand": {
|
|
310
329
|
"type": "boolean",
|
|
311
330
|
"mutable": false,
|
|
@@ -89,6 +89,7 @@ export class DuetTextarea {
|
|
|
89
89
|
this.accessibleDetails = undefined;
|
|
90
90
|
this.accessibleLabelledBy = undefined;
|
|
91
91
|
this.accessibleDescription = undefined;
|
|
92
|
+
this.accessibleLiveError = "polite";
|
|
92
93
|
this.accessibleOwns = undefined;
|
|
93
94
|
this.accessibleDescribedBy = undefined;
|
|
94
95
|
this.theme = "";
|
|
@@ -156,7 +157,7 @@ export class DuetTextarea {
|
|
|
156
157
|
"duet-label-hidden": this.labelHidden,
|
|
157
158
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
158
159
|
"has-error": !!this.error,
|
|
159
|
-
} }, h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), h("div", { class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), h("textarea", { onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), h("duet-grid", { alignment: "stretch" }, h("duet-grid-item", { margin: "none", fill: true }, h("div", { class: "duet-textarea-help", id: this.errorId, "aria-atomic": "true", "aria-live":
|
|
160
|
+
} }, h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), h("div", { class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), h("textarea", { onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), h("duet-grid", { alignment: "stretch" }, h("duet-grid-item", { margin: "none", fill: true }, h("div", { class: "duet-textarea-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", null, this.error))), h("duet-grid-item", { margin: "none", class: "duet-character-count-caption" }, this.counter && (h(CharacterCount, { theme: this.theme, value: this.value, maxlength: this.maxlength, label: this.counterLabel })))), this.counter && (h("duet-visually-hidden", { class: "duet-visually-hidden", id: this.characterCountId, ref: el => {
|
|
160
161
|
this.hiddenCounterLabel = el;
|
|
161
162
|
} })))));
|
|
162
163
|
}
|
|
@@ -302,6 +303,24 @@ export class DuetTextarea {
|
|
|
302
303
|
"reflect": false,
|
|
303
304
|
"defaultValue": "undefined"
|
|
304
305
|
},
|
|
306
|
+
"accessibleLiveError": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "\"off\" | \"polite\" | \"assertive\"",
|
|
311
|
+
"resolved": "\"assertive\" | \"off\" | \"polite\"",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": false,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "The aria-live attribute for the error message. When the input is validated on blur, use \"off\", as using \"polite\" or \"assertive\"\nmakes the screen reader read the error message twice. When the input is validated on submit, use \"polite\", as \"off\" would leave\nthe messages unread by screen readers. Use \"assertive\" only in those rare cases when \"polite\" would leave the error message\nunread by screen readers."
|
|
319
|
+
},
|
|
320
|
+
"attribute": "accessible-live-error",
|
|
321
|
+
"reflect": false,
|
|
322
|
+
"defaultValue": "\"polite\""
|
|
323
|
+
},
|
|
305
324
|
"accessibleOwns": {
|
|
306
325
|
"type": "string",
|
|
307
326
|
"mutable": false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-00622251.js';
|
|
5
5
|
|
|
6
6
|
const DuetActionButton = DuetActionButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-57b9edb8.js';
|
|
5
5
|
|
|
6
6
|
const DuetAlert = DuetAlert$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-b385a866.js';
|
|
5
5
|
|
|
6
6
|
const DuetBadge = DuetBadge$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-2ff017a8.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-a6f793fc.js';
|
|
7
7
|
|
|
8
8
|
const duetBreadcrumbCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;font-weight:inherit;color:inherit;text-decoration:none}.duet-breadcrumb:focus{outline:0}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}";
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, F as Fragment, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, F as Fragment, d as Host } from './p-2ff017a8.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { a as getLocaleString } from './p-076452be.js';
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-a6f793fc.js';
|
|
8
8
|
|
|
9
9
|
var actionArrowRightSmall={"title":"action-arrow-right-small","tags":"action arrow right small caret","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z\"/></svg>"};
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-a81b913d.js';
|
|
5
5
|
|
|
6
6
|
const DuetButton = DuetButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-aacb3b95.js';
|
|
5
5
|
|
|
6
6
|
const DuetCaption = DuetCaption$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-2ff017a8.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { c as createID } from './p-c1325e35.js';
|
|
7
7
|
import { i as isKeyboardClick } from './p-d8549efe.js';
|
|
8
8
|
import { s as sanitizeString } from './p-5a9d75e1.js';
|
|
9
9
|
import { g as getColorByName } from './p-68024252.js';
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-a6f793fc.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-27efb5f6.js';
|
|
12
12
|
|
|
13
13
|
const duetHeadingLevels = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
14
14
|
const duetBlock = "div";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCheckbox$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCheckbox$1, d as defineCustomElement$1 } from './p-7ccd5f61.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckbox = DuetCheckbox$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCheckmark$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCheckmark$1, d as defineCustomElement$1 } from './p-95f8531c.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckmark = DuetCheckmark$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-2ff017a8.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { f as findCheckedOption, w as watchForOptions } from './p-12721178.js';
|
|
7
|
-
import { d as defineCustomElement$6 } from './p-
|
|
8
|
-
import { d as defineCustomElement$5 } from './p-
|
|
9
|
-
import { d as defineCustomElement$4 } from './p-
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$6 } from './p-aacb3b95.js';
|
|
8
|
+
import { d as defineCustomElement$5 } from './p-d2e453e5.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './p-a6f793fc.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-d6aa9453.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-5808a711.js';
|
|
12
12
|
|
|
13
13
|
const duetChoiceGroupCss = "*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block;margin-bottom:-12px}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{margin-bottom:0}}@media (max-width: 35.9375em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex}}.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}@media (max-width: 22.5em){.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}}.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 36em){.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 48em){.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 62em){.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 64.0625em){.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.duet-choice-group.sc-duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";
|
|
14
14
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-2ff017a8.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './p-76f00bd5.js';
|
|
7
7
|
import { c as createID } from './p-c1325e35.js';
|
|
8
8
|
import { F as FocusGuard } from './p-efaad71c.js';
|
|
9
9
|
import { i as isKeyboardClick, a as isQuestionKey, b as isEscapeKey } from './p-d8549efe.js';
|
|
10
10
|
import { g as getLanguage, a as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './p-076452be.js';
|
|
11
|
-
import { d as defineCustomElement$5 } from './p-
|
|
12
|
-
import { d as defineCustomElement$4 } from './p-
|
|
13
|
-
import { d as defineCustomElement$3 } from './p-
|
|
14
|
-
import { d as defineCustomElement$2 } from './p-
|
|
11
|
+
import { d as defineCustomElement$5 } from './p-aacb3b95.js';
|
|
12
|
+
import { d as defineCustomElement$4 } from './p-a6f793fc.js';
|
|
13
|
+
import { d as defineCustomElement$3 } from './p-27efb5f6.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './p-5808a711.js';
|
|
15
15
|
|
|
16
16
|
var messagingInfo={"title":"messaging-info","tags":"messaging info information circle","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z\"/><circle cx=\"11.625\" cy=\"7.125\" r=\"1.125\"/><path d=\"M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z\"/></svg>"};
|
|
17
17
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-2ff017a8.js';
|
|
5
5
|
import { a as actionArrowDownSmall } from './p-115c79b6.js';
|
|
6
6
|
import { f as font_size_medium, t as tokens } from './p-c4d8cad0.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
8
8
|
import { c as createID } from './p-c1325e35.js';
|
|
9
9
|
import { i as isKeyboardClick } from './p-d8549efe.js';
|
|
10
10
|
import { s as sanitizeString } from './p-5a9d75e1.js';
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-a6f793fc.js';
|
|
12
12
|
|
|
13
13
|
const duetCollapsibleCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;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:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){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)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;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;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{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)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;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.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{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-collapsible-heading .duet-collapsible-heading-content{flex:0 auto;min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{flex:1 0 auto;margin-left:16px}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing.duet-theme-turva) .duet-collapsible-heading:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}";
|
|
14
14
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h as h$1, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h as h$1, d as Host } from './p-2ff017a8.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { d as debounce } from './p-0b3f675e.js';
|
|
7
7
|
import { c as isEnterKey, b as isEscapeKey, d as isTabKey, e as isArrowUpKey, f as isArrowDownKey } from './p-d8549efe.js';
|
|
8
8
|
import { g as getLanguage, a as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './p-076452be.js';
|
|
9
9
|
import { p as parsePossibleJSON } from './p-5a9d75e1.js';
|
|
10
10
|
import { h, F as Fragment } from './p-152ee893.js';
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-a6f793fc.js';
|
|
12
12
|
|
|
13
13
|
const SelectSingle = ({ item, search = "", selected }) => {
|
|
14
14
|
const regEx = search !== "" ? new RegExp("(" + search.split(" ").join("|") + ")", "gi") : undefined;
|
|
@@ -34,7 +34,7 @@ const DuetComboBoxSelect = ({ item, active, total, selected, label = undefined,
|
|
|
34
34
|
h(SelectSingle, { item: item, search: search, selected: selected }))));
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
const duetComboboxCss = ".sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:
|
|
37
|
+
const duetComboboxCss = ".sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(0, 41, 77)}.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(0, 41, 77);transition:none}.duet-theme-turva.sc-duet-combobox-h{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-turva.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(23, 28, 58)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.selected.sc-duet-combobox{background:rgb(244, 207, 214)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:rgb(255, 255, 255);background:rgb(198, 12, 48)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-combobox-list.sc-duet-combobox{position:absolute;top:calc(100% - 12px);height:0;overflow:hidden;background:rgb(255, 255, 255);border-radius:0 4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.1);opacity:0}.duet-combobox-list.open.sc-duet-combobox{z-index:700;display:block;height:auto;opacity:1}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox{max-height:200px;padding:0.75rem 0;margin:0;overflow-y:scroll;font-weight:600;list-style:none;cursor:pointer;scroll-behavior:smooth}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox{padding:4px 0}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected){padding-left:16px}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected) .highlight.sc-duet-combobox{text-decoration:underline}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{float:right;padding-right:0.875rem;font-weight:400;color:rgb(144, 149, 153)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.sc-duet-combobox{padding-left:0;background:rgb(205, 229, 241)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-icon.sc-duet-combobox{padding:0 8px 0 8px}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:rgb(144, 149, 153)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:rgb(255, 255, 255)}";
|
|
38
38
|
|
|
39
39
|
const DuetCombobox$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
40
40
|
constructor() {
|
|
@@ -110,6 +110,16 @@ const DuetCombobox$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
110
110
|
async formatItem(item) {
|
|
111
111
|
return this.formatter(item);
|
|
112
112
|
}
|
|
113
|
+
async processItems() {
|
|
114
|
+
this.items = this.processedItems = parsePossibleJSON(this.items);
|
|
115
|
+
await this.updateInputText();
|
|
116
|
+
}
|
|
117
|
+
async processValue() {
|
|
118
|
+
if (this.value) {
|
|
119
|
+
const selectedItem = this.items.find(item => item.value === this.value);
|
|
120
|
+
this.updateSelectedItems(selectedItem.id);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
113
123
|
/**
|
|
114
124
|
* Component lifecycle events.
|
|
115
125
|
*/
|
|
@@ -150,6 +160,7 @@ const DuetCombobox$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
150
160
|
this.listElement.addEventListener("click", e => {
|
|
151
161
|
e.stopPropagation();
|
|
152
162
|
});
|
|
163
|
+
this.processValue();
|
|
153
164
|
}
|
|
154
165
|
/**
|
|
155
166
|
* Updates the input text based on the selected/clicked items.
|
|
@@ -208,12 +219,19 @@ const DuetCombobox$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
208
219
|
*/
|
|
209
220
|
async updateInputText(isBlurred = false) {
|
|
210
221
|
const item = this.selectedItems.size === 0 ? [] : this.items.filter(item => this.selectedItems.has(item.id));
|
|
222
|
+
//if items changed and given id no longer exists
|
|
223
|
+
if (item.length === 0 && this.selectedItems.size > 0) {
|
|
224
|
+
this.selectedItems.clear();
|
|
225
|
+
this.input.value = "";
|
|
226
|
+
this.value = undefined;
|
|
227
|
+
this.activeItem = undefined;
|
|
228
|
+
}
|
|
211
229
|
if (this.selectedItems.size === 1) {
|
|
212
230
|
this.input.value = ""; // set value to empty so that cursor position follows accordingly
|
|
213
231
|
this.input.value = await this.formatItem(item[0]);
|
|
214
232
|
this.input.scrollLeft = this.input.scrollWidth;
|
|
215
233
|
this.activeItem = undefined;
|
|
216
|
-
this.value =
|
|
234
|
+
this.value = item[0].value;
|
|
217
235
|
this.duetChange.emit({
|
|
218
236
|
value: item[0].value,
|
|
219
237
|
item: item[0],
|
|
@@ -375,7 +393,9 @@ const DuetCombobox$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
375
393
|
get element() { return this; }
|
|
376
394
|
static get watchers() { return {
|
|
377
395
|
"activeItem": ["activeItemHandler"],
|
|
378
|
-
"language": ["watchLanguageStateHandler"]
|
|
396
|
+
"language": ["watchLanguageStateHandler"],
|
|
397
|
+
"items": ["processItems"],
|
|
398
|
+
"value": ["processValue"]
|
|
379
399
|
}; }
|
|
380
400
|
static get style() { return duetComboboxCss; }
|
|
381
401
|
}, [6, "duet-combobox", {
|