@db-ux/wc-core-components 2.0.0-0-custom-select-16b8cce → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/db-accordion-item.cjs.entry.js +42 -8
- package/dist/cjs/db-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/db-accordion-item.entry.cjs.js.map +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +12 -12
- package/dist/cjs/db-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/db-accordion.entry.cjs.js.map +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +3 -3
- package/dist/cjs/db-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/db-badge.entry.cjs.js.map +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +3 -3
- package/dist/cjs/db-brand.cjs.entry.js.map +1 -1
- package/dist/cjs/db-brand.entry.cjs.js.map +1 -1
- package/dist/cjs/db-button.cjs.entry.js +7 -7
- package/dist/cjs/db-button.cjs.entry.js.map +1 -1
- package/dist/cjs/db-button.entry.cjs.js.map +1 -1
- package/dist/cjs/db-card.cjs.entry.js +7 -7
- package/dist/cjs/db-card.cjs.entry.js.map +1 -1
- package/dist/cjs/db-card.entry.cjs.js.map +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +59 -44
- package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js +78 -64
- package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select-form-field.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +203 -189
- package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +3 -3
- package/dist/cjs/db-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/db-divider.entry.cjs.js.map +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +8 -9
- package/dist/cjs/db-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/db-drawer.entry.cjs.js.map +1 -1
- package/dist/cjs/db-header.cjs.entry.js +13 -11
- package/dist/cjs/db-header.cjs.entry.js.map +1 -1
- package/dist/cjs/db-header.entry.cjs.js.map +1 -1
- package/dist/cjs/db-icon.cjs.entry.js +3 -3
- package/dist/cjs/db-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/db-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +3 -3
- package/dist/cjs/db-infotext.cjs.entry.js.map +1 -1
- package/dist/cjs/db-infotext.entry.cjs.js.map +1 -1
- package/dist/cjs/db-link.cjs.entry.js +7 -7
- package/dist/cjs/db-link.cjs.entry.js.map +1 -1
- package/dist/cjs/db-link.entry.cjs.js.map +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +26 -28
- package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -1
- package/dist/cjs/db-navigation.cjs.entry.js +4 -4
- package/dist/cjs/db-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/db-navigation.entry.cjs.js.map +1 -1
- package/dist/cjs/db-notification.cjs.entry.js +7 -7
- package/dist/cjs/db-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/db-notification.entry.cjs.js.map +1 -1
- package/dist/cjs/db-page.cjs.entry.js +4 -4
- package/dist/cjs/db-page.cjs.entry.js.map +1 -1
- package/dist/cjs/db-page.entry.cjs.js.map +1 -1
- package/dist/cjs/db-popover.cjs.entry.js +4 -4
- package/dist/cjs/db-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/db-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +10 -19
- package/dist/cjs/db-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/db-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/db-section.cjs.entry.js +4 -4
- package/dist/cjs/db-section.cjs.entry.js.map +1 -1
- package/dist/cjs/db-section.entry.cjs.js.map +1 -1
- package/dist/cjs/db-select.cjs.entry.js +70 -57
- package/dist/cjs/db-select.cjs.entry.js.map +1 -1
- package/dist/cjs/db-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-stack.cjs.entry.js +4 -4
- package/dist/cjs/db-stack.cjs.entry.js.map +1 -1
- package/dist/cjs/db-stack.entry.cjs.js.map +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +11 -20
- package/dist/cjs/db-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/db-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/db-tab-item.db-tab-list.db-tab-panel.entry.cjs.js.map +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +38 -17
- package/dist/cjs/db-tab-item_3.cjs.entry.js.map +1 -1
- package/dist/cjs/db-tabs.cjs.entry.js +24 -23
- package/dist/cjs/db-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/db-tabs.entry.cjs.js.map +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +60 -45
- package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/db-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/db-ux.cjs.js.map +1 -1
- package/dist/cjs/document-click-listener-CrbHspH2.js +37 -0
- package/dist/cjs/document-click-listener-CrbHspH2.js.map +1 -0
- package/dist/cjs/{index-DeqKGVDx.js → index-9h8KqOUd.js} +25 -7
- package/dist/cjs/index-9h8KqOUd.js.map +1 -0
- package/dist/cjs/{index-DBEtsnky.js → index-w2CAlvjJ.js} +6 -5
- package/dist/cjs/index-w2CAlvjJ.js.map +1 -0
- package/dist/cjs/index.cjs.js +6 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{navigation-Cfm1OFWB.js → navigation-DjZJIxIq.js} +3 -3
- package/dist/cjs/{navigation-Cfm1OFWB.js.map → navigation-DjZJIxIq.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.js +26 -25
- package/dist/collection/components/accordion/accordion.js.map +1 -1
- package/dist/collection/components/accordion/model.js.map +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +87 -17
- package/dist/collection/components/accordion-item/accordion-item.js.map +1 -1
- package/dist/collection/components/accordion-item/model.js.map +1 -1
- package/dist/collection/components/badge/badge.js +10 -10
- package/dist/collection/components/badge/badge.js.map +1 -1
- package/dist/collection/components/badge/model.js.map +1 -1
- package/dist/collection/components/brand/brand.js +9 -9
- package/dist/collection/components/brand/brand.js.map +1 -1
- package/dist/collection/components/button/button.js +57 -32
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/button/model.js.map +1 -1
- package/dist/collection/components/card/card.js +12 -12
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox.js +118 -166
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/checkbox/model.js.map +1 -1
- package/dist/collection/components/custom-select/custom-select.js +340 -335
- package/dist/collection/components/custom-select/custom-select.js.map +1 -1
- package/dist/collection/components/custom-select/model.js.map +1 -1
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +5 -5
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js.map +1 -1
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +4 -4
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js.map +1 -1
- package/dist/collection/components/custom-select-list/custom-select-list.js +6 -6
- package/dist/collection/components/custom-select-list/custom-select-list.js.map +1 -1
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +27 -52
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js.map +1 -1
- package/dist/collection/components/divider/divider.js +7 -7
- package/dist/collection/components/divider/divider.js.map +1 -1
- package/dist/collection/components/drawer/drawer.js +23 -24
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/model.js.map +1 -1
- package/dist/collection/components/header/header.js +22 -20
- package/dist/collection/components/header/header.js.map +1 -1
- package/dist/collection/components/header/model.js.map +1 -1
- package/dist/collection/components/icon/icon.js +7 -7
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/collection/components/infotext/infotext.js +10 -10
- package/dist/collection/components/infotext/infotext.js.map +1 -1
- package/dist/collection/components/input/input.js +218 -213
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/model.js.map +1 -1
- package/dist/collection/components/link/link.js +29 -29
- package/dist/collection/components/link/link.js.map +1 -1
- package/dist/collection/components/navigation/navigation.js +5 -5
- package/dist/collection/components/navigation/navigation.js.map +1 -1
- package/dist/collection/components/navigation-item/model.js.map +1 -1
- package/dist/collection/components/navigation-item/navigation-item.js +43 -43
- package/dist/collection/components/navigation-item/navigation-item.js.map +1 -1
- package/dist/collection/components/notification/model.js.map +1 -1
- package/dist/collection/components/notification/notification.js +32 -32
- package/dist/collection/components/notification/notification.js.map +1 -1
- package/dist/collection/components/page/model.js.map +1 -1
- package/dist/collection/components/page/page.js +10 -10
- package/dist/collection/components/page/page.js.map +1 -1
- package/dist/collection/components/popover/model.js.map +1 -1
- package/dist/collection/components/popover/popover.js +17 -17
- package/dist/collection/components/popover/popover.js.map +1 -1
- package/dist/collection/components/radio/radio.js +32 -110
- package/dist/collection/components/radio/radio.js.map +1 -1
- package/dist/collection/components/section/section.js +6 -6
- package/dist/collection/components/section/section.js.map +1 -1
- package/dist/collection/components/select/model.js.map +1 -1
- package/dist/collection/components/select/select.js +130 -203
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/stack/model.js.map +1 -1
- package/dist/collection/components/stack/stack.js +12 -12
- package/dist/collection/components/stack/stack.js.map +1 -1
- package/dist/collection/components/switch/model.js.map +1 -1
- package/dist/collection/components/switch/switch.js +39 -117
- package/dist/collection/components/switch/switch.js.map +1 -1
- package/dist/collection/components/tab-item/model.js.map +1 -1
- package/dist/collection/components/tab-item/tab-item.js +66 -40
- package/dist/collection/components/tab-item/tab-item.js.map +1 -1
- package/dist/collection/components/tab-list/tab-list.js +4 -4
- package/dist/collection/components/tab-list/tab-list.js.map +1 -1
- package/dist/collection/components/tab-panel/tab-panel.js +6 -6
- package/dist/collection/components/tab-panel/tab-panel.js.map +1 -1
- package/dist/collection/components/tabs/model.js.map +1 -1
- package/dist/collection/components/tabs/tabs.js +63 -62
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tag/model.js.map +1 -1
- package/dist/collection/components/tag/tag.js +27 -27
- package/dist/collection/components/tag/tag.js.map +1 -1
- package/dist/collection/components/textarea/model.js.map +1 -1
- package/dist/collection/components/textarea/textarea.js +171 -168
- package/dist/collection/components/textarea/textarea.js.map +1 -1
- package/dist/collection/components/tooltip/model.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +14 -14
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/shared/model.js +0 -1
- package/dist/collection/shared/model.js.map +1 -1
- package/dist/collection/utils/document-click-listener.js +30 -0
- package/dist/collection/utils/document-click-listener.js.map +1 -0
- package/dist/collection/utils/index.js +21 -21
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/custom-elements.json +2629 -1698
- package/dist/db-ux/db-accordion-item.entry.esm.js.map +1 -1
- package/dist/db-ux/db-accordion.entry.esm.js.map +1 -1
- package/dist/db-ux/db-badge.entry.esm.js.map +1 -1
- package/dist/db-ux/db-brand.entry.esm.js.map +1 -1
- package/dist/db-ux/db-button.entry.esm.js.map +1 -1
- package/dist/db-ux/db-card.entry.esm.js.map +1 -1
- package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select-form-field.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-divider.entry.esm.js.map +1 -1
- package/dist/db-ux/db-drawer.entry.esm.js.map +1 -1
- package/dist/db-ux/db-header.entry.esm.js.map +1 -1
- package/dist/db-ux/db-icon.entry.esm.js.map +1 -1
- package/dist/db-ux/db-infotext.entry.esm.js.map +1 -1
- package/dist/db-ux/db-link.entry.esm.js.map +1 -1
- package/dist/db-ux/db-navigation-item.entry.esm.js.map +1 -1
- package/dist/db-ux/db-navigation.entry.esm.js.map +1 -1
- package/dist/db-ux/db-notification.entry.esm.js.map +1 -1
- package/dist/db-ux/db-page.entry.esm.js.map +1 -1
- package/dist/db-ux/db-popover.entry.esm.js.map +1 -1
- package/dist/db-ux/db-radio.entry.esm.js.map +1 -1
- package/dist/db-ux/db-section.entry.esm.js.map +1 -1
- package/dist/db-ux/db-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-stack.entry.esm.js.map +1 -1
- package/dist/db-ux/db-switch.entry.esm.js.map +1 -1
- package/dist/db-ux/db-tab-item.db-tab-list.db-tab-panel.entry.esm.js.map +1 -1
- package/dist/db-ux/db-tabs.entry.esm.js.map +1 -1
- package/dist/db-ux/db-textarea.entry.esm.js.map +1 -1
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/db-ux.esm.js.map +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/index.esm.js.map +1 -1
- package/dist/db-ux/p-0c1b4216.entry.js +2 -0
- package/dist/db-ux/p-0c1b4216.entry.js.map +1 -0
- package/dist/db-ux/p-19ebdb92.entry.js +2 -0
- package/dist/db-ux/p-19ebdb92.entry.js.map +1 -0
- package/dist/db-ux/p-20f2efec.entry.js +2 -0
- package/dist/db-ux/p-20f2efec.entry.js.map +1 -0
- package/dist/db-ux/p-2ea85ed3.entry.js +2 -0
- package/dist/db-ux/p-2ea85ed3.entry.js.map +1 -0
- package/dist/db-ux/p-3d9cfe8d.entry.js +2 -0
- package/dist/db-ux/p-3d9cfe8d.entry.js.map +1 -0
- package/dist/db-ux/p-56fa0857.entry.js +2 -0
- package/dist/db-ux/p-56fa0857.entry.js.map +1 -0
- package/dist/db-ux/p-6f9de31b.entry.js +2 -0
- package/dist/db-ux/p-6f9de31b.entry.js.map +1 -0
- package/dist/db-ux/p-797ccaa9.entry.js +2 -0
- package/dist/db-ux/p-797ccaa9.entry.js.map +1 -0
- package/dist/db-ux/{p-0b9779be.entry.js → p-7bc56311.entry.js} +2 -2
- package/dist/db-ux/p-7bc56311.entry.js.map +1 -0
- package/dist/db-ux/p-828bb611.entry.js +2 -0
- package/dist/db-ux/p-828bb611.entry.js.map +1 -0
- package/dist/db-ux/{p-d10ee6dc.entry.js → p-84136093.entry.js} +2 -2
- package/dist/db-ux/p-84136093.entry.js.map +1 -0
- package/dist/db-ux/p-861c92ee.entry.js +2 -0
- package/dist/db-ux/p-861c92ee.entry.js.map +1 -0
- package/dist/db-ux/{p-0414dab3.entry.js → p-924110bd.entry.js} +2 -2
- package/dist/db-ux/p-924110bd.entry.js.map +1 -0
- package/dist/db-ux/p-96a0c7de.entry.js +2 -0
- package/dist/db-ux/p-96a0c7de.entry.js.map +1 -0
- package/dist/db-ux/p-B_W_wePN.js +2 -0
- package/dist/db-ux/p-B_W_wePN.js.map +1 -0
- package/dist/db-ux/p-BkYjDIed.js +3 -0
- package/dist/db-ux/p-BkYjDIed.js.map +1 -0
- package/dist/db-ux/{p-VkX3SW7K.js → p-Duz60W3r.js} +2 -2
- package/dist/db-ux/{p-VkX3SW7K.js.map → p-Duz60W3r.js.map} +1 -1
- package/dist/db-ux/p-TU0pfK1i.js +2 -0
- package/dist/db-ux/p-TU0pfK1i.js.map +1 -0
- package/dist/db-ux/p-a20f9b38.entry.js +2 -0
- package/dist/db-ux/p-a20f9b38.entry.js.map +1 -0
- package/dist/db-ux/{p-9a3c9ffe.entry.js → p-aad2b065.entry.js} +2 -2
- package/dist/db-ux/p-aad2b065.entry.js.map +1 -0
- package/dist/db-ux/p-abc1afa7.entry.js +2 -0
- package/dist/db-ux/p-abc1afa7.entry.js.map +1 -0
- package/dist/db-ux/p-b074eb7f.entry.js +2 -0
- package/dist/db-ux/p-b074eb7f.entry.js.map +1 -0
- package/dist/db-ux/p-b6821ac2.entry.js +2 -0
- package/dist/db-ux/p-b6821ac2.entry.js.map +1 -0
- package/dist/db-ux/p-b7cd9e31.entry.js +2 -0
- package/dist/db-ux/p-b7cd9e31.entry.js.map +1 -0
- package/dist/db-ux/p-b92bbd61.entry.js +2 -0
- package/dist/db-ux/p-b92bbd61.entry.js.map +1 -0
- package/dist/db-ux/p-bcb3d891.entry.js +2 -0
- package/dist/db-ux/p-bcb3d891.entry.js.map +1 -0
- package/dist/db-ux/{p-65983b83.entry.js → p-be35b5b4.entry.js} +2 -2
- package/dist/db-ux/p-be35b5b4.entry.js.map +1 -0
- package/dist/db-ux/p-d60822ce.entry.js +2 -0
- package/dist/db-ux/p-d60822ce.entry.js.map +1 -0
- package/dist/db-ux/p-dc71d000.entry.js +2 -0
- package/dist/db-ux/p-dc71d000.entry.js.map +1 -0
- package/dist/db-ux/p-e397a44c.entry.js +2 -0
- package/dist/db-ux/p-e397a44c.entry.js.map +1 -0
- package/dist/db-ux/p-e4f73b24.entry.js +2 -0
- package/dist/db-ux/p-e4f73b24.entry.js.map +1 -0
- package/dist/db-ux/p-e72a0bfe.entry.js +2 -0
- package/dist/db-ux/p-e72a0bfe.entry.js.map +1 -0
- package/dist/db-ux/p-fba19a3f.entry.js +2 -0
- package/dist/db-ux/p-fba19a3f.entry.js.map +1 -0
- package/dist/esm/db-accordion-item.entry.js +42 -8
- package/dist/esm/db-accordion-item.entry.js.map +1 -1
- package/dist/esm/db-accordion.entry.js +12 -12
- package/dist/esm/db-accordion.entry.js.map +1 -1
- package/dist/esm/db-badge.entry.js +3 -3
- package/dist/esm/db-badge.entry.js.map +1 -1
- package/dist/esm/db-brand.entry.js +3 -3
- package/dist/esm/db-brand.entry.js.map +1 -1
- package/dist/esm/db-button.entry.js +7 -7
- package/dist/esm/db-button.entry.js.map +1 -1
- package/dist/esm/db-card.entry.js +7 -7
- package/dist/esm/db-card.entry.js.map +1 -1
- package/dist/esm/db-checkbox.entry.js +60 -45
- package/dist/esm/db-checkbox.entry.js.map +1 -1
- package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.js.map +1 -1
- package/dist/esm/db-custom-select-dropdown_6.entry.js +79 -65
- package/dist/esm/db-custom-select-dropdown_6.entry.js.map +1 -1
- package/dist/esm/db-custom-select-form-field.entry.js +4 -4
- package/dist/esm/db-custom-select-form-field.entry.js.map +1 -1
- package/dist/esm/db-custom-select.entry.js +204 -190
- package/dist/esm/db-custom-select.entry.js.map +1 -1
- package/dist/esm/db-divider.entry.js +3 -3
- package/dist/esm/db-divider.entry.js.map +1 -1
- package/dist/esm/db-drawer.entry.js +8 -9
- package/dist/esm/db-drawer.entry.js.map +1 -1
- package/dist/esm/db-header.entry.js +13 -11
- package/dist/esm/db-header.entry.js.map +1 -1
- package/dist/esm/db-icon.entry.js +3 -3
- package/dist/esm/db-icon.entry.js.map +1 -1
- package/dist/esm/db-infotext.entry.js +3 -3
- package/dist/esm/db-infotext.entry.js.map +1 -1
- package/dist/esm/db-link.entry.js +7 -7
- package/dist/esm/db-link.entry.js.map +1 -1
- package/dist/esm/db-navigation-item.entry.js +26 -28
- package/dist/esm/db-navigation-item.entry.js.map +1 -1
- package/dist/esm/db-navigation.entry.js +4 -4
- package/dist/esm/db-navigation.entry.js.map +1 -1
- package/dist/esm/db-notification.entry.js +7 -7
- package/dist/esm/db-notification.entry.js.map +1 -1
- package/dist/esm/db-page.entry.js +4 -4
- package/dist/esm/db-page.entry.js.map +1 -1
- package/dist/esm/db-popover.entry.js +4 -4
- package/dist/esm/db-popover.entry.js.map +1 -1
- package/dist/esm/db-radio.entry.js +10 -19
- package/dist/esm/db-radio.entry.js.map +1 -1
- package/dist/esm/db-section.entry.js +4 -4
- package/dist/esm/db-section.entry.js.map +1 -1
- package/dist/esm/db-select.entry.js +71 -58
- package/dist/esm/db-select.entry.js.map +1 -1
- package/dist/esm/db-stack.entry.js +4 -4
- package/dist/esm/db-stack.entry.js.map +1 -1
- package/dist/esm/db-switch.entry.js +11 -20
- package/dist/esm/db-switch.entry.js.map +1 -1
- package/dist/esm/db-tab-item.db-tab-list.db-tab-panel.entry.js.map +1 -1
- package/dist/esm/db-tab-item_3.entry.js +38 -17
- package/dist/esm/db-tab-item_3.entry.js.map +1 -1
- package/dist/esm/db-tabs.entry.js +24 -23
- package/dist/esm/db-tabs.entry.js.map +1 -1
- package/dist/esm/db-textarea.entry.js +61 -46
- package/dist/esm/db-textarea.entry.js.map +1 -1
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/db-ux.js.map +1 -1
- package/dist/esm/document-click-listener-B2jDrCt8.js +35 -0
- package/dist/esm/document-click-listener-B2jDrCt8.js.map +1 -0
- package/dist/esm/{index-D-D8lQAG.js → index-BkYjDIed.js} +6 -5
- package/dist/esm/index-BkYjDIed.js.map +1 -0
- package/dist/esm/{index-fw8E73KY.js → index-TU0pfK1i.js} +24 -8
- package/dist/esm/index-TU0pfK1i.js.map +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{navigation-1ba3zvi0.js → navigation-BjeAmWrQ.js} +3 -3
- package/dist/esm/{navigation-1ba3zvi0.js.map → navigation-BjeAmWrQ.js.map} +1 -1
- package/dist/types/components/accordion/accordion.d.ts +2 -2
- package/dist/types/components/accordion/model.d.ts +2 -2
- package/dist/types/components/accordion-item/accordion-item.d.ts +11 -2
- package/dist/types/components/accordion-item/model.d.ts +5 -5
- package/dist/types/components/badge/model.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +3 -1
- package/dist/types/components/button/model.d.ts +11 -7
- package/dist/types/components/card/card.d.ts +2 -1
- package/dist/types/components/checkbox/checkbox.d.ts +13 -10
- package/dist/types/components/checkbox/model.d.ts +3 -3
- package/dist/types/components/custom-select/custom-select.d.ts +18 -15
- package/dist/types/components/custom-select/model.d.ts +49 -29
- package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +2 -2
- package/dist/types/components/drawer/drawer.d.ts +2 -1
- package/dist/types/components/drawer/model.d.ts +2 -2
- package/dist/types/components/header/header.d.ts +3 -2
- package/dist/types/components/header/model.d.ts +2 -2
- package/dist/types/components/input/input.d.ts +19 -14
- package/dist/types/components/input/model.d.ts +3 -3
- package/dist/types/components/link/link.d.ts +2 -1
- package/dist/types/components/navigation-item/model.d.ts +2 -3
- package/dist/types/components/navigation-item/navigation-item.d.ts +4 -4
- package/dist/types/components/notification/model.d.ts +3 -3
- package/dist/types/components/notification/notification.d.ts +3 -2
- package/dist/types/components/page/model.d.ts +1 -1
- package/dist/types/components/popover/model.d.ts +1 -1
- package/dist/types/components/radio/radio.d.ts +7 -9
- package/dist/types/components/select/model.d.ts +2 -2
- package/dist/types/components/select/select.d.ts +18 -16
- package/dist/types/components/stack/model.d.ts +1 -1
- package/dist/types/components/switch/model.d.ts +2 -2
- package/dist/types/components/switch/switch.d.ts +4 -6
- package/dist/types/components/tab-item/model.d.ts +6 -6
- package/dist/types/components/tab-item/tab-item.d.ts +8 -3
- package/dist/types/components/tabs/model.d.ts +11 -3
- package/dist/types/components/tabs/tabs.d.ts +5 -4
- package/dist/types/components/tag/model.d.ts +9 -5
- package/dist/types/components/tag/tag.d.ts +2 -1
- package/dist/types/components/textarea/model.d.ts +4 -4
- package/dist/types/components/textarea/textarea.d.ts +17 -12
- package/dist/types/components/tooltip/model.d.ts +1 -1
- package/dist/types/components.d.ts +96 -124
- package/dist/types/shared/model.d.ts +56 -31
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/dist/types/utils/document-click-listener.d.ts +8 -0
- package/dist/types/utils/index.d.ts +5 -28
- package/dist/vscode.html-custom-data.json +143 -122
- package/dist/web-types.json +803 -475
- package/package.json +4 -4
- package/dist/cjs/index-DBEtsnky.js.map +0 -1
- package/dist/cjs/index-DeqKGVDx.js.map +0 -1
- package/dist/db-ux/p-0414dab3.entry.js.map +0 -1
- package/dist/db-ux/p-05505797.entry.js +0 -2
- package/dist/db-ux/p-05505797.entry.js.map +0 -1
- package/dist/db-ux/p-0b9779be.entry.js.map +0 -1
- package/dist/db-ux/p-1799c085.entry.js +0 -2
- package/dist/db-ux/p-1799c085.entry.js.map +0 -1
- package/dist/db-ux/p-30261cf0.entry.js +0 -2
- package/dist/db-ux/p-30261cf0.entry.js.map +0 -1
- package/dist/db-ux/p-43f2df95.entry.js +0 -2
- package/dist/db-ux/p-43f2df95.entry.js.map +0 -1
- package/dist/db-ux/p-463c100b.entry.js +0 -2
- package/dist/db-ux/p-463c100b.entry.js.map +0 -1
- package/dist/db-ux/p-4cf2c595.entry.js +0 -2
- package/dist/db-ux/p-4cf2c595.entry.js.map +0 -1
- package/dist/db-ux/p-56a39c64.entry.js +0 -2
- package/dist/db-ux/p-56a39c64.entry.js.map +0 -1
- package/dist/db-ux/p-5ceb34d7.entry.js +0 -2
- package/dist/db-ux/p-5ceb34d7.entry.js.map +0 -1
- package/dist/db-ux/p-65983b83.entry.js.map +0 -1
- package/dist/db-ux/p-6e1aa320.entry.js +0 -2
- package/dist/db-ux/p-6e1aa320.entry.js.map +0 -1
- package/dist/db-ux/p-70b6a633.entry.js +0 -2
- package/dist/db-ux/p-70b6a633.entry.js.map +0 -1
- package/dist/db-ux/p-72cbf9ff.entry.js +0 -2
- package/dist/db-ux/p-72cbf9ff.entry.js.map +0 -1
- package/dist/db-ux/p-7346f78f.entry.js +0 -2
- package/dist/db-ux/p-7346f78f.entry.js.map +0 -1
- package/dist/db-ux/p-7b3689ea.entry.js +0 -2
- package/dist/db-ux/p-7b3689ea.entry.js.map +0 -1
- package/dist/db-ux/p-93ee59f3.entry.js +0 -2
- package/dist/db-ux/p-93ee59f3.entry.js.map +0 -1
- package/dist/db-ux/p-969ce4ec.entry.js +0 -2
- package/dist/db-ux/p-969ce4ec.entry.js.map +0 -1
- package/dist/db-ux/p-97cfc836.entry.js +0 -2
- package/dist/db-ux/p-97cfc836.entry.js.map +0 -1
- package/dist/db-ux/p-9a3c9ffe.entry.js.map +0 -1
- package/dist/db-ux/p-D-D8lQAG.js +0 -3
- package/dist/db-ux/p-D-D8lQAG.js.map +0 -1
- package/dist/db-ux/p-a2f461ee.entry.js +0 -2
- package/dist/db-ux/p-a2f461ee.entry.js.map +0 -1
- package/dist/db-ux/p-acca879a.entry.js +0 -2
- package/dist/db-ux/p-acca879a.entry.js.map +0 -1
- package/dist/db-ux/p-b09d7817.entry.js +0 -2
- package/dist/db-ux/p-b09d7817.entry.js.map +0 -1
- package/dist/db-ux/p-b858ced9.entry.js +0 -2
- package/dist/db-ux/p-b858ced9.entry.js.map +0 -1
- package/dist/db-ux/p-bb06aac0.entry.js +0 -2
- package/dist/db-ux/p-bb06aac0.entry.js.map +0 -1
- package/dist/db-ux/p-d10ee6dc.entry.js.map +0 -1
- package/dist/db-ux/p-d4d01646.entry.js +0 -2
- package/dist/db-ux/p-d4d01646.entry.js.map +0 -1
- package/dist/db-ux/p-e393938c.entry.js +0 -2
- package/dist/db-ux/p-e393938c.entry.js.map +0 -1
- package/dist/db-ux/p-ea7da771.entry.js +0 -2
- package/dist/db-ux/p-ea7da771.entry.js.map +0 -1
- package/dist/db-ux/p-fw8E73KY.js +0 -2
- package/dist/db-ux/p-fw8E73KY.js.map +0 -1
- package/dist/esm/index-D-D8lQAG.js.map +0 -1
- package/dist/esm/index-fw8E73KY.js.map +0 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-w2CAlvjJ.js');
|
|
4
|
+
var index$1 = require('./index-9h8KqOUd.js');
|
|
5
5
|
var constants = require('./constants-CTtyzyuo.js');
|
|
6
|
+
var documentClickListener = require('./document-click-listener-CrbHspH2.js');
|
|
6
7
|
|
|
7
8
|
const DBCustomSelect = class {
|
|
8
9
|
constructor(hostRef) {
|
|
9
10
|
index.registerInstance(this, hostRef);
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
11
|
+
this.amountChange = index.createEvent(this, "amountChange");
|
|
12
|
+
this.dropdownToggle = index.createEvent(this, "dropdownToggle");
|
|
13
|
+
this.optionSelected = index.createEvent(this, "optionSelected");
|
|
13
14
|
this.showClearSelection = true;
|
|
14
|
-
this.
|
|
15
|
-
this._name = undefined;
|
|
15
|
+
this.clearSelectionText = "Clear selection";
|
|
16
16
|
this._id = undefined;
|
|
17
17
|
this._messageId = undefined;
|
|
18
18
|
this._validMessageId = undefined;
|
|
19
19
|
this._invalidMessageId = undefined;
|
|
20
|
+
this._invalidMessage = undefined;
|
|
20
21
|
this._selectId = undefined;
|
|
21
22
|
this._labelId = undefined;
|
|
22
23
|
this._summaryId = undefined;
|
|
@@ -34,14 +35,67 @@ const DBCustomSelect = class {
|
|
|
34
35
|
this._values = [];
|
|
35
36
|
this._options = [];
|
|
36
37
|
this._hasNoOptions = false;
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
38
|
+
this._documentClickListenerCallbackId = undefined;
|
|
39
|
+
this._internalChangeTimestamp = 0;
|
|
39
40
|
this.selectAllChecked = false;
|
|
40
41
|
this.selectAllIndeterminate = false;
|
|
42
|
+
this.satisfyReact = function satisfyReact() {
|
|
43
|
+
// This is an empty function to satisfy React
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
hasValidState() {
|
|
47
|
+
var _a;
|
|
48
|
+
return !!((_a = this.validMessage) !== null && _a !== void 0 ? _a : this.validation === "valid");
|
|
49
|
+
}
|
|
50
|
+
handleValidation() {
|
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
52
|
+
if (this.selectRef) {
|
|
53
|
+
this.selectRef.value = this.getNativeSelectValue();
|
|
54
|
+
}
|
|
55
|
+
/* For a11y reasons we need to map the correct message with the select */
|
|
56
|
+
if (!((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validity.valid) || this.validation === "invalid") {
|
|
57
|
+
this._descByIds = this._invalidMessageId;
|
|
58
|
+
this._invalidMessage =
|
|
59
|
+
this.invalidMessage ||
|
|
60
|
+
((_b = this.selectRef) === null || _b === void 0 ? void 0 : _b.validationMessage) ||
|
|
61
|
+
constants.DEFAULT_INVALID_MESSAGE;
|
|
62
|
+
if (index$1.hasVoiceOver()) {
|
|
63
|
+
this._voiceOverFallback = this._invalidMessage;
|
|
64
|
+
index$1.delay(() => (this._voiceOverFallback = ""), 1000);
|
|
65
|
+
}
|
|
66
|
+
this._validity = (_c = this.validation) !== null && _c !== void 0 ? _c : "invalid";
|
|
67
|
+
}
|
|
68
|
+
else if (this.hasValidState() &&
|
|
69
|
+
((_d = this.selectRef) === null || _d === void 0 ? void 0 : _d.validity.valid) &&
|
|
70
|
+
this.required) {
|
|
71
|
+
this._descByIds = this._validMessageId;
|
|
72
|
+
if (index$1.hasVoiceOver()) {
|
|
73
|
+
this._voiceOverFallback = (_e = this.validMessage) !== null && _e !== void 0 ? _e : constants.DEFAULT_VALID_MESSAGE;
|
|
74
|
+
index$1.delay(() => (this._voiceOverFallback = ""), 1000);
|
|
75
|
+
}
|
|
76
|
+
this._validity = (_f = this.validation) !== null && _f !== void 0 ? _f : "valid";
|
|
77
|
+
}
|
|
78
|
+
else if (index$1.stringPropVisible(this.message, this.showMessage)) {
|
|
79
|
+
this._descByIds = this._messageId;
|
|
80
|
+
this._validity = (_g = this.validation) !== null && _g !== void 0 ? _g : "no-validation";
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
this._descByIds = this._placeholderId;
|
|
84
|
+
this._validity = (_h = this.validation) !== null && _h !== void 0 ? _h : "no-validation";
|
|
85
|
+
}
|
|
41
86
|
}
|
|
42
87
|
handleDropdownToggle(event) {
|
|
43
|
-
if (this.
|
|
44
|
-
this.
|
|
88
|
+
if (this.dropdownToggle) {
|
|
89
|
+
this.dropdownToggle.emit(event);
|
|
90
|
+
}
|
|
91
|
+
if (event.target.open) {
|
|
92
|
+
this._documentClickListenerCallbackId =
|
|
93
|
+
new documentClickListener.DocumentClickListener().addCallback((event) => this.handleDocumentClose(event));
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
if (this._documentClickListenerCallbackId) {
|
|
97
|
+
new documentClickListener.DocumentClickListener().removeCallback(this._documentClickListenerCallbackId);
|
|
98
|
+
}
|
|
45
99
|
}
|
|
46
100
|
}
|
|
47
101
|
getNativeSelectValue() {
|
|
@@ -63,24 +117,17 @@ const DBCustomSelect = class {
|
|
|
63
117
|
this._descByIds = descByIds.join(" ");
|
|
64
118
|
}
|
|
65
119
|
getSelectAllLabel() {
|
|
66
|
-
var _a
|
|
67
|
-
|
|
68
|
-
return (_a = this.selectAllLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL;
|
|
69
|
-
if (this.selectAllRef.indeterminate || !this.selectAllChecked) {
|
|
70
|
-
return (_b = this.selectAllLabel) !== null && _b !== void 0 ? _b : constants.DEFAULT_LABEL;
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return (_c = this.deSelectAllLabel) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL;
|
|
74
|
-
}
|
|
120
|
+
var _a;
|
|
121
|
+
return (_a = this.selectAllLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL;
|
|
75
122
|
}
|
|
76
123
|
getOptionLabel(option) {
|
|
77
124
|
var _a, _b, _c;
|
|
78
125
|
return (_c = (_a = option.label) !== null && _a !== void 0 ? _a : (_b = option.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "";
|
|
79
126
|
}
|
|
80
127
|
getOptionChecked(value) {
|
|
81
|
-
var _a;
|
|
82
|
-
if (value && this._values
|
|
83
|
-
return (
|
|
128
|
+
var _a, _b;
|
|
129
|
+
if (value && ((_a = this._values) === null || _a === void 0 ? void 0 : _a.includes)) {
|
|
130
|
+
return (_b = this._values) === null || _b === void 0 ? void 0 : _b.includes(value);
|
|
84
131
|
}
|
|
85
132
|
return false;
|
|
86
133
|
}
|
|
@@ -111,7 +158,7 @@ const DBCustomSelect = class {
|
|
|
111
158
|
}
|
|
112
159
|
}
|
|
113
160
|
handleArrowDownUp(event) {
|
|
114
|
-
var _a, _b, _c, _d, _e;
|
|
161
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
115
162
|
if ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) {
|
|
116
163
|
if (document) {
|
|
117
164
|
const activeElement = document.activeElement;
|
|
@@ -123,7 +170,7 @@ const DBCustomSelect = class {
|
|
|
123
170
|
const listElement = activeElement === null || activeElement === void 0 ? void 0 : activeElement.closest("li");
|
|
124
171
|
if (event.key === "ArrowDown" || event.key === "ArrowRight") {
|
|
125
172
|
if (listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling) {
|
|
126
|
-
(_b = listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling.querySelector("input")) === null ||
|
|
173
|
+
(_c = (_b = listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling) === null || _b === void 0 ? void 0 : _b.querySelector("input")) === null || _c === void 0 ? void 0 : _c.focus();
|
|
127
174
|
}
|
|
128
175
|
else {
|
|
129
176
|
// We are on the last checkbox we move to the top checkbox
|
|
@@ -132,7 +179,7 @@ const DBCustomSelect = class {
|
|
|
132
179
|
}
|
|
133
180
|
else {
|
|
134
181
|
if (listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling) {
|
|
135
|
-
(
|
|
182
|
+
(_e = (_d = listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling) === null || _d === void 0 ? void 0 : _d.querySelector("input")) === null || _e === void 0 ? void 0 : _e.focus();
|
|
136
183
|
}
|
|
137
184
|
else if (this.detailsRef.querySelector(`input[type="checkbox"]`) !==
|
|
138
185
|
activeElement) {
|
|
@@ -149,9 +196,9 @@ const DBCustomSelect = class {
|
|
|
149
196
|
}, 100);
|
|
150
197
|
}
|
|
151
198
|
else {
|
|
152
|
-
const checkboxList = Array.from((
|
|
199
|
+
const checkboxList = Array.from((_f = this.detailsRef) === null || _f === void 0 ? void 0 : _f.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));
|
|
153
200
|
if (checkboxList.length) {
|
|
154
|
-
(
|
|
201
|
+
(_g = checkboxList.at(-1)) === null || _g === void 0 ? void 0 : _g.focus();
|
|
155
202
|
}
|
|
156
203
|
}
|
|
157
204
|
}
|
|
@@ -214,41 +261,57 @@ const DBCustomSelect = class {
|
|
|
214
261
|
}
|
|
215
262
|
handleDocumentClose(event) {
|
|
216
263
|
var _a;
|
|
217
|
-
|
|
264
|
+
// stencil is sending a custom event which wraps the pointer event into details
|
|
265
|
+
const target = typeof event.detail === "number" ? event.target : event.detail.target;
|
|
266
|
+
if (((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) && !this.detailsRef.contains(target)) {
|
|
218
267
|
this.detailsRef.open = false;
|
|
219
268
|
}
|
|
220
269
|
}
|
|
270
|
+
handleOptionSelected(values) {
|
|
271
|
+
const skip = new Date().getTime() - this._internalChangeTimestamp < 200;
|
|
272
|
+
if (skip)
|
|
273
|
+
return;
|
|
274
|
+
if (this.optionSelected) {
|
|
275
|
+
this._values = values;
|
|
276
|
+
this.optionSelected.emit(values !== null && values !== void 0 ? values : []);
|
|
277
|
+
}
|
|
278
|
+
this._internalChangeTimestamp = new Date().getTime();
|
|
279
|
+
}
|
|
221
280
|
handleSelect(value) {
|
|
222
|
-
var _a
|
|
281
|
+
var _a;
|
|
223
282
|
if (value) {
|
|
224
283
|
if (this.multiple) {
|
|
225
284
|
if ((_a = this._values) === null || _a === void 0 ? void 0 : _a.includes(value)) {
|
|
226
|
-
this.
|
|
285
|
+
this.handleOptionSelected(this._values.filter((v) => v !== value));
|
|
227
286
|
}
|
|
228
287
|
else {
|
|
229
|
-
this.
|
|
288
|
+
this.handleOptionSelected([...(this._values || []), value]);
|
|
230
289
|
}
|
|
231
290
|
}
|
|
232
291
|
else {
|
|
233
|
-
this.
|
|
292
|
+
this.handleOptionSelected([value]);
|
|
234
293
|
this.handleClose("close");
|
|
235
294
|
}
|
|
236
|
-
this._internalChangeTimestamp = new Date().getTime();
|
|
237
295
|
}
|
|
238
296
|
}
|
|
239
297
|
handleSelectAll() {
|
|
240
298
|
var _a;
|
|
241
299
|
if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === this.amountOptions) {
|
|
242
|
-
this.
|
|
300
|
+
this.handleOptionSelected([]);
|
|
243
301
|
}
|
|
244
302
|
else {
|
|
245
|
-
this.
|
|
246
|
-
? this.
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
303
|
+
const searchValue = this.searchEnabled && this.searchInputRef
|
|
304
|
+
? this.searchInputRef.value
|
|
305
|
+
: undefined;
|
|
306
|
+
this.handleOptionSelected(this.options
|
|
307
|
+
? this.options.filter((option) => {
|
|
308
|
+
var _a;
|
|
309
|
+
return !option.isGroupTitle &&
|
|
310
|
+
(!searchValue ||
|
|
311
|
+
((_a = option.value) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchValue.toLowerCase())));
|
|
312
|
+
}).map((option) => { var _a; return (_a = option.value) !== null && _a !== void 0 ? _a : ""; })
|
|
313
|
+
: []);
|
|
250
314
|
}
|
|
251
|
-
this._internalChangeTimestamp = new Date().getTime();
|
|
252
315
|
}
|
|
253
316
|
handleFocusFirstDropdownCheckbox(activeElement) {
|
|
254
317
|
if (this.detailsRef) {
|
|
@@ -284,6 +347,7 @@ const DBCustomSelect = class {
|
|
|
284
347
|
}
|
|
285
348
|
}
|
|
286
349
|
handleSearch(event) {
|
|
350
|
+
event.stopPropagation();
|
|
287
351
|
const filterText = event.target.value;
|
|
288
352
|
this._options =
|
|
289
353
|
!this.options || !filterText || filterText.length === 0
|
|
@@ -294,7 +358,7 @@ const DBCustomSelect = class {
|
|
|
294
358
|
.includes(filterText.toLowerCase()));
|
|
295
359
|
}
|
|
296
360
|
handleClearAll() {
|
|
297
|
-
this.
|
|
361
|
+
this.handleOptionSelected([]);
|
|
298
362
|
this.handleSummaryFocus();
|
|
299
363
|
}
|
|
300
364
|
handleSummaryFocus() {
|
|
@@ -334,8 +398,22 @@ const DBCustomSelect = class {
|
|
|
334
398
|
}
|
|
335
399
|
}
|
|
336
400
|
watch0Fn() {
|
|
337
|
-
|
|
338
|
-
|
|
401
|
+
if (this.detailsRef) {
|
|
402
|
+
const summary = this.detailsRef.querySelector("summary");
|
|
403
|
+
if (summary) {
|
|
404
|
+
summary.addEventListener("click", () => {
|
|
405
|
+
this.handleAutoPlacement();
|
|
406
|
+
this.handleOpenByKeyboardFocus(true);
|
|
407
|
+
});
|
|
408
|
+
summary.addEventListener("keydown", (event) => {
|
|
409
|
+
var _a;
|
|
410
|
+
if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
|
|
411
|
+
this.handleOpenByKeyboardFocus();
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
|
|
416
|
+
}
|
|
339
417
|
}
|
|
340
418
|
watch0() {
|
|
341
419
|
this.watch0Fn();
|
|
@@ -371,27 +449,6 @@ const DBCustomSelect = class {
|
|
|
371
449
|
this.watch2Fn();
|
|
372
450
|
}
|
|
373
451
|
watch3Fn() {
|
|
374
|
-
if (this.detailsRef) {
|
|
375
|
-
const summary = this.detailsRef.querySelector("summary");
|
|
376
|
-
if (summary) {
|
|
377
|
-
summary.addEventListener("click", () => {
|
|
378
|
-
this.handleAutoPlacement();
|
|
379
|
-
this.handleOpenByKeyboardFocus(true);
|
|
380
|
-
});
|
|
381
|
-
summary.addEventListener("keydown", (event) => {
|
|
382
|
-
var _a;
|
|
383
|
-
if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
|
|
384
|
-
this.handleOpenByKeyboardFocus();
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
watch3() {
|
|
392
|
-
this.watch3Fn();
|
|
393
|
-
}
|
|
394
|
-
watch4Fn() {
|
|
395
452
|
if (this.showNoResults !== undefined) {
|
|
396
453
|
this._hasNoOptions = this.showNoResults;
|
|
397
454
|
}
|
|
@@ -399,90 +456,45 @@ const DBCustomSelect = class {
|
|
|
399
456
|
this._hasNoOptions = this._options.length === 0;
|
|
400
457
|
}
|
|
401
458
|
}
|
|
459
|
+
watch3() {
|
|
460
|
+
this.watch3Fn();
|
|
461
|
+
}
|
|
462
|
+
watch4Fn() {
|
|
463
|
+
this.selectAllEnabled = Boolean(this.multiple && (this.showSelectAll || this.amountOptions > 5));
|
|
464
|
+
}
|
|
402
465
|
watch4() {
|
|
403
466
|
this.watch4Fn();
|
|
404
467
|
}
|
|
405
468
|
watch5Fn() {
|
|
406
|
-
this.
|
|
469
|
+
this.searchEnabled = this.showSearch || this.amountOptions > 9;
|
|
407
470
|
}
|
|
408
471
|
watch5() {
|
|
409
472
|
this.watch5Fn();
|
|
410
473
|
}
|
|
411
474
|
watch6Fn() {
|
|
412
|
-
|
|
475
|
+
var _a;
|
|
476
|
+
if (this.values &&
|
|
477
|
+
Array.isArray(this.values) &&
|
|
478
|
+
this.values !== this._values) {
|
|
479
|
+
this._values = (_a = this.values) !== null && _a !== void 0 ? _a : [];
|
|
480
|
+
}
|
|
413
481
|
}
|
|
414
482
|
watch6() {
|
|
415
483
|
this.watch6Fn();
|
|
416
484
|
}
|
|
417
485
|
watch7Fn() {
|
|
418
|
-
|
|
419
|
-
if (this.onSelect &&
|
|
420
|
-
(this._externalChangeTimestamp || this._internalChangeTimestamp)) {
|
|
421
|
-
const onlyInternalChange = this._internalChangeTimestamp && !this._externalChangeTimestamp;
|
|
422
|
-
const bothChangeButInternalNew = this._internalChangeTimestamp &&
|
|
423
|
-
this._externalChangeTimestamp &&
|
|
424
|
-
this._internalChangeTimestamp > this._externalChangeTimestamp;
|
|
425
|
-
if (onlyInternalChange || bothChangeButInternalNew) {
|
|
426
|
-
this.onSelect.emit((_a = this._values) !== null && _a !== void 0 ? _a : []);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
486
|
+
this.handleValidation();
|
|
429
487
|
}
|
|
430
488
|
watch7() {
|
|
431
489
|
this.watch7Fn();
|
|
432
490
|
}
|
|
433
491
|
watch8Fn() {
|
|
434
|
-
|
|
435
|
-
if (this.values && Array.isArray(this.values)) {
|
|
436
|
-
this._values = (_a = this.values) !== null && _a !== void 0 ? _a : [];
|
|
437
|
-
this._externalChangeTimestamp = new Date().getTime();
|
|
438
|
-
}
|
|
492
|
+
this._validity = this.validation;
|
|
439
493
|
}
|
|
440
494
|
watch8() {
|
|
441
495
|
this.watch8Fn();
|
|
442
496
|
}
|
|
443
497
|
watch9Fn() {
|
|
444
|
-
var _a, _b, _c, _d, _e, _f;
|
|
445
|
-
if (this.selectRef) {
|
|
446
|
-
this.selectRef.value = this.getNativeSelectValue();
|
|
447
|
-
}
|
|
448
|
-
/* For a11y reasons we need to map the correct message with the select */
|
|
449
|
-
if (!((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validity.valid) || this.validation === "invalid") {
|
|
450
|
-
this._validity = "invalid";
|
|
451
|
-
this.setDescById(this._invalidMessageId);
|
|
452
|
-
if (index$1.hasVoiceOver()) {
|
|
453
|
-
this._voiceOverFallback =
|
|
454
|
-
(_d = (_b = this.invalidMessage) !== null && _b !== void 0 ? _b : (_c = this.selectRef) === null || _c === void 0 ? void 0 : _c.validationMessage) !== null && _d !== void 0 ? _d : constants.DEFAULT_INVALID_MESSAGE;
|
|
455
|
-
index$1.delay(() => (this._voiceOverFallback = ""), 1000);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
else if (this.validation === "valid" ||
|
|
459
|
-
(((_e = this.selectRef) === null || _e === void 0 ? void 0 : _e.validity.valid) && this.required)) {
|
|
460
|
-
this._validity = "valid";
|
|
461
|
-
this.setDescById(this._validMessageId);
|
|
462
|
-
if (index$1.hasVoiceOver()) {
|
|
463
|
-
this._voiceOverFallback = (_f = this.validMessage) !== null && _f !== void 0 ? _f : constants.DEFAULT_VALID_MESSAGE;
|
|
464
|
-
index$1.delay(() => (this._voiceOverFallback = ""), 1000);
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
else if (this.message) {
|
|
468
|
-
this._validity = "no-validation";
|
|
469
|
-
this.setDescById(this._messageId);
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
this._validity = "no-validation";
|
|
473
|
-
this.setDescById(this._placeholderId);
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
watch9() {
|
|
477
|
-
this.watch9Fn();
|
|
478
|
-
}
|
|
479
|
-
watch10Fn() {
|
|
480
|
-
this._validity = this.validation;
|
|
481
|
-
}
|
|
482
|
-
watch10() {
|
|
483
|
-
this.watch10Fn();
|
|
484
|
-
}
|
|
485
|
-
watch11Fn() {
|
|
486
498
|
var _a, _b;
|
|
487
499
|
if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
488
500
|
this.selectAllChecked = false;
|
|
@@ -496,19 +508,19 @@ const DBCustomSelect = class {
|
|
|
496
508
|
this.selectAllIndeterminate = true;
|
|
497
509
|
}
|
|
498
510
|
}
|
|
499
|
-
|
|
500
|
-
this.
|
|
511
|
+
watch9() {
|
|
512
|
+
this.watch9Fn();
|
|
501
513
|
}
|
|
502
|
-
|
|
514
|
+
watch10Fn() {
|
|
503
515
|
var _a, _b;
|
|
504
516
|
this._options = this.options;
|
|
505
517
|
this.amountOptions =
|
|
506
518
|
(_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
|
|
507
519
|
}
|
|
508
|
-
|
|
509
|
-
this.
|
|
520
|
+
watch10() {
|
|
521
|
+
this.watch10Fn();
|
|
510
522
|
}
|
|
511
|
-
|
|
523
|
+
watch11Fn() {
|
|
512
524
|
var _a, _b;
|
|
513
525
|
if ((_a = this._options) === null || _a === void 0 ? void 0 : _a.length) {
|
|
514
526
|
this._selectedOptions = (_b = this._options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
|
|
@@ -520,10 +532,10 @@ const DBCustomSelect = class {
|
|
|
520
532
|
});
|
|
521
533
|
}
|
|
522
534
|
}
|
|
523
|
-
|
|
524
|
-
this.
|
|
535
|
+
watch11() {
|
|
536
|
+
this.watch11Fn();
|
|
525
537
|
}
|
|
526
|
-
|
|
538
|
+
watch12Fn() {
|
|
527
539
|
var _a, _b, _c;
|
|
528
540
|
if ((_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
529
541
|
if (this.selectedType === "amount") {
|
|
@@ -539,25 +551,35 @@ const DBCustomSelect = class {
|
|
|
539
551
|
this._selectedLabels = "";
|
|
540
552
|
}
|
|
541
553
|
}
|
|
542
|
-
|
|
543
|
-
this.
|
|
554
|
+
watch12() {
|
|
555
|
+
this.watch12Fn();
|
|
544
556
|
}
|
|
545
|
-
|
|
557
|
+
watch13Fn() {
|
|
546
558
|
var _a, _b;
|
|
547
|
-
if (this.
|
|
548
|
-
this.
|
|
559
|
+
if (this.amountChange) {
|
|
560
|
+
this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
|
|
549
561
|
}
|
|
550
562
|
}
|
|
551
|
-
|
|
552
|
-
this.
|
|
563
|
+
watch13() {
|
|
564
|
+
this.watch13Fn();
|
|
553
565
|
}
|
|
554
|
-
|
|
566
|
+
watch14Fn() {
|
|
555
567
|
if (this.selectAllRef) {
|
|
556
568
|
this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
|
|
557
569
|
}
|
|
558
570
|
}
|
|
559
|
-
|
|
560
|
-
this.
|
|
571
|
+
watch14() {
|
|
572
|
+
this.watch14Fn();
|
|
573
|
+
}
|
|
574
|
+
watch15Fn() {
|
|
575
|
+
var _a;
|
|
576
|
+
this._invalidMessage =
|
|
577
|
+
this.invalidMessage ||
|
|
578
|
+
((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
579
|
+
constants.DEFAULT_INVALID_MESSAGE;
|
|
580
|
+
}
|
|
581
|
+
watch15() {
|
|
582
|
+
this.watch15Fn();
|
|
561
583
|
}
|
|
562
584
|
componentDidLoad() {
|
|
563
585
|
var _a;
|
|
@@ -573,9 +595,7 @@ const DBCustomSelect = class {
|
|
|
573
595
|
this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
574
596
|
this._selectedLabelsId = mId + "-selected-labels";
|
|
575
597
|
this._infoTextId = mId + "-info";
|
|
576
|
-
|
|
577
|
-
document.addEventListener("click", this.handleDocumentClose);
|
|
578
|
-
}
|
|
598
|
+
this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
|
|
579
599
|
this.watch0Fn();
|
|
580
600
|
this.watch1Fn();
|
|
581
601
|
this.watch2Fn();
|
|
@@ -592,60 +612,54 @@ const DBCustomSelect = class {
|
|
|
592
612
|
this.watch13Fn();
|
|
593
613
|
this.watch14Fn();
|
|
594
614
|
this.watch15Fn();
|
|
595
|
-
this.watch16Fn();
|
|
596
|
-
}
|
|
597
|
-
disconnectedCallback() {
|
|
598
|
-
if (document) {
|
|
599
|
-
document.removeEventListener("click", this.handleDocumentClose);
|
|
600
|
-
}
|
|
601
615
|
}
|
|
602
616
|
render() {
|
|
603
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
604
|
-
return (index.h("div", { key: '
|
|
617
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
618
|
+
return (index.h("div", { key: 'ba168e109d3b2e75b46145033a88119ac46cf3f7', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
605
619
|
this._ref = el;
|
|
606
|
-
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.
|
|
620
|
+
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
621
|
+
this.selectedType === "tag" &&
|
|
622
|
+
this.multiple
|
|
623
|
+
? "above"
|
|
624
|
+
: this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-hide-icon": index$1.getHideProp(this.showIcon) }, index.h("label", { key: 'a92ba45f913e2c7a78140da705da166af94484b5', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '093c76705744d56d0d3c2c33f108a74b088381a5', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
607
625
|
this.selectRef = el;
|
|
608
|
-
}, form: this.form,
|
|
626
|
+
}, form: this.form, name: this.name, multiple: index$1.getBoolean(this.multiple, "multiple"), disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), onChange: () => this.satisfyReact() }, ((_b = this._options) === null || _b === void 0 ? void 0 : _b.length)
|
|
627
|
+
? (_c = this._options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
|
|
628
|
+
: null)), index.h("details", { key: '64c5745a0fc32954f792b7fb81c8b26f11304565', ref: (el) => {
|
|
609
629
|
this.detailsRef = el;
|
|
610
|
-
}, open: this.open,
|
|
611
|
-
this.
|
|
612
|
-
},
|
|
630
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '1b1683fa3e54c249efd67e1ca960d61accd125c3' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": index$1.getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index$1) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(index$1), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", ref: (el) => {
|
|
631
|
+
this.searchInputRef = el;
|
|
632
|
+
}, name: this._id, form: this._id, showLabel: false, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : constants.DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
|
|
613
633
|
? this._infoTextId
|
|
614
|
-
: undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (index.h("db-infotext", { id: this._infoTextId, icon: this._hasNoOptions ? undefined : "circular_arrows", semantic: this._hasNoOptions ? "warning" : "informational" }, (
|
|
634
|
+
: undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (index.h("db-infotext", { id: this._infoTextId, icon: this._hasNoOptions ? undefined : "circular_arrows", semantic: this._hasNoOptions ? "warning" : "informational" }, (_h = (this._hasNoOptions
|
|
615
635
|
? this.noResultsText
|
|
616
|
-
: this.loadingText)) !== null &&
|
|
636
|
+
: this.loadingText)) !== null && _h !== void 0 ? _h : constants.DEFAULT_MESSAGE)) : (index.h(index.Fragment, null, this.selectAllEnabled ? (index.h("div", null, index.h("div", { class: "db-checkbox db-custom-select-list-item" }, index.h("label", null, index.h("input", { type: "checkbox", value: "select-all", ref: (el) => {
|
|
617
637
|
this.selectAllRef = el;
|
|
618
|
-
}, form: this._id, checked: this.selectAllChecked, onChange: () => this.handleSelectAll() }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: this.multiple, label: (
|
|
619
|
-
this.handleSelect(option.value);
|
|
620
|
-
}, key: undefined }, !option.isGroupTitle
|
|
638
|
+
}, form: this._id, checked: this.selectAllChecked, onChange: () => this.handleSelectAll() }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: index$1.getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.ariaListLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : constants.DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (index.h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
|
|
621
639
|
? this.getOptionLabel(option)
|
|
622
|
-
: null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", onClick: () => {
|
|
623
|
-
this.handleClose("close");
|
|
624
|
-
} }, (_k = this.mobileCloseButtonText) !== null && _k !== void 0 ? _k : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_l = this.showClearSelection) !== null && _l !== void 0 ? _l : true) && ((_m = this._values) === null || _m === void 0 ? void 0 : _m.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, onClick: () => this.handleClearAll() }, this.clearSelectionLabel, index.h("db-tooltip", { placement: "top" }, this.clearSelectionLabel))) : null, index.h("span", { key: '4d15f0a5d709cb329a3c18b907b5e9cf952a6252', "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_o = this.placeholder) !== null && _o !== void 0 ? _o : this.label), this.message ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, index.h("db-infotext", { key: '8e63397ef220c396c55d7d228fbc7e0ee7664688', size: "small", semantic: "successful", id: this._validMessageId }, (_p = this.validMessage) !== null && _p !== void 0 ? _p : constants.DEFAULT_VALID_MESSAGE), index.h("db-infotext", { key: 'a8bc6cbd7a61e70f9956b1c47b175fd4b5d25004', size: "small", semantic: "critical", id: this._invalidMessageId }, (_q = this.invalidMessage) !== null && _q !== void 0 ? _q : (((_r = this.selectRef) === null || _r === void 0 ? void 0 : _r.validationMessage) || constants.DEFAULT_INVALID_MESSAGE)), index.h("span", { key: '28db5cbc1feca0e5738148bb87e0df78d596e975', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
640
|
+
: null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose("close") }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: () => this.handleClearAll() }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '309d5096cdbdfee24bd9a8a1941241586b60b3a4', "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '8f0fe04ea553fbffd86a7e30baa9cab7be708fd6', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: 'c106041467983c90b5a56ee4a6a56f8653dccaab', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
625
641
|
}
|
|
626
642
|
static get watchers() { return {
|
|
627
|
-
"
|
|
628
|
-
"_id": ["
|
|
629
|
-
"detailsRef": ["watch2", "watch3"],
|
|
643
|
+
"detailsRef": ["watch0", "watch2"],
|
|
644
|
+
"_id": ["watch1"],
|
|
630
645
|
"_descByIds": ["watch2"],
|
|
631
|
-
"showNoResults": ["
|
|
632
|
-
"_options": ["
|
|
633
|
-
"showSelectAll": ["
|
|
634
|
-
"amountOptions": ["
|
|
635
|
-
"multiple": ["
|
|
636
|
-
"showSearch": ["
|
|
637
|
-
"
|
|
638
|
-
"
|
|
639
|
-
"
|
|
640
|
-
"
|
|
641
|
-
"
|
|
642
|
-
"
|
|
643
|
-
"
|
|
644
|
-
"
|
|
645
|
-
"
|
|
646
|
-
"
|
|
647
|
-
"
|
|
648
|
-
"selectAllRef": ["watch16"]
|
|
646
|
+
"showNoResults": ["watch3"],
|
|
647
|
+
"_options": ["watch3", "watch11"],
|
|
648
|
+
"showSelectAll": ["watch4"],
|
|
649
|
+
"amountOptions": ["watch4", "watch5", "watch9"],
|
|
650
|
+
"multiple": ["watch4"],
|
|
651
|
+
"showSearch": ["watch5"],
|
|
652
|
+
"values": ["watch6"],
|
|
653
|
+
"_values": ["watch7", "watch9", "watch11"],
|
|
654
|
+
"validation": ["watch8"],
|
|
655
|
+
"options": ["watch10"],
|
|
656
|
+
"_selectedOptions": ["watch12", "watch13"],
|
|
657
|
+
"selectedType": ["watch12"],
|
|
658
|
+
"amountText": ["watch12"],
|
|
659
|
+
"selectAllIndeterminate": ["watch14"],
|
|
660
|
+
"selectAllRef": ["watch14"],
|
|
661
|
+
"selectRef": ["watch15"],
|
|
662
|
+
"invalidMessage": ["watch15"]
|
|
649
663
|
}; }
|
|
650
664
|
};
|
|
651
665
|
|