@db-ux/wc-core-components 2.0.8 → 2.0.10-popover-d7e8b9a
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 +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +3 -3
- 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 +4 -4
- 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 +4 -3
- 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 +65 -13
- 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 +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +104 -67
- 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 +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +1 -1
- package/dist/cjs/db-header.cjs.entry.js +3 -2
- 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 +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +3 -3
- 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 +5 -4
- 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 +1 -1
- package/dist/cjs/db-notification.cjs.entry.js +1 -1
- package/dist/cjs/db-page.cjs.entry.js +1 -1
- package/dist/cjs/db-popover.cjs.entry.js +64 -10
- 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 +4 -3
- 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 +1 -1
- package/dist/cjs/db-select.cjs.entry.js +6 -6
- 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 +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +4 -3
- 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_3.cjs.entry.js +1 -1
- package/dist/cjs/db-tabs.cjs.entry.js +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +4 -4
- 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 +1 -1
- package/dist/cjs/{document-click-listener-BbGE8WyV.js → document-click-listener-BqewuQFB.js} +7 -7
- package/dist/cjs/document-click-listener-BqewuQFB.js.map +1 -0
- package/dist/cjs/document-scroll-listener-DsZwE3e9.js +46 -0
- package/dist/cjs/document-scroll-listener-DsZwE3e9.js.map +1 -0
- package/dist/cjs/floating-components-BNCfdqZJ.js +299 -0
- package/dist/cjs/floating-components-BNCfdqZJ.js.map +1 -0
- package/dist/cjs/{index-7lbP4BU6.js → index-4GRgVEnx.js} +2 -76
- package/dist/cjs/index-4GRgVEnx.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{navigation-BLjJ1vaO.js → navigation-U4SBgT7D.js} +4 -4
- package/dist/cjs/navigation-U4SBgT7D.js.map +1 -0
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/card/card.js +3 -3
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox.js +28 -2
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/custom-select/custom-select.js +144 -80
- 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/icon/icon.js +1 -1
- package/dist/collection/components/icon/model.js +0 -1
- package/dist/collection/components/icon/model.js.map +1 -1
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/link/link.js.map +1 -1
- package/dist/collection/components/navigation-item/navigation-item.js +2 -2
- package/dist/collection/components/navigation-item/navigation-item.js.map +1 -1
- package/dist/collection/components/popover/model.js.map +1 -1
- package/dist/collection/components/popover/popover.js +92 -36
- package/dist/collection/components/popover/popover.js.map +1 -1
- package/dist/collection/components/radio/model.js.map +1 -1
- package/dist/collection/components/radio/radio.js +28 -2
- package/dist/collection/components/radio/radio.js.map +1 -1
- package/dist/collection/components/select/model.js.map +1 -1
- package/dist/collection/components/select/select.js +30 -5
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/switch/switch.js +28 -2
- package/dist/collection/components/switch/switch.js.map +1 -1
- package/dist/collection/components/textarea/textarea.js +28 -3
- 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 +93 -39
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/shared/model.js.map +1 -1
- package/dist/collection/utils/document-click-listener.js +4 -4
- package/dist/collection/utils/document-click-listener.js.map +1 -1
- package/dist/collection/utils/document-scroll-listener.js +39 -0
- package/dist/collection/utils/document-scroll-listener.js.map +1 -0
- package/dist/collection/utils/floating-components.js +291 -0
- package/dist/collection/utils/floating-components.js.map +1 -0
- package/dist/collection/utils/index.js +0 -70
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/collection/utils/navigation.js +1 -1
- package/dist/collection/utils/navigation.js.map +1 -1
- package/dist/custom-elements.json +425 -114
- 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.entry.esm.js.map +1 -1
- package/dist/db-ux/db-header.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-popover.entry.esm.js.map +1 -1
- package/dist/db-ux/db-radio.entry.esm.js.map +1 -1
- package/dist/db-ux/db-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-switch.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/index.esm.js +1 -1
- package/dist/db-ux/index.esm.js.map +1 -1
- package/dist/db-ux/{p-8b7d868b.entry.js → p-00ae6c1c.entry.js} +2 -2
- package/dist/db-ux/{p-50c9112b.entry.js → p-0bf63ec2.entry.js} +2 -2
- package/dist/db-ux/p-0bf63ec2.entry.js.map +1 -0
- package/dist/db-ux/p-166b337e.entry.js +2 -0
- package/dist/db-ux/{p-39d957bb.entry.js.map → p-166b337e.entry.js.map} +1 -1
- package/dist/db-ux/p-16f8a2d5.entry.js +2 -0
- package/dist/db-ux/p-16f8a2d5.entry.js.map +1 -0
- package/dist/db-ux/p-199c8a0f.entry.js +2 -0
- package/dist/db-ux/p-199c8a0f.entry.js.map +1 -0
- package/dist/db-ux/{p-55b02c80.entry.js → p-240497d9.entry.js} +2 -2
- package/dist/db-ux/p-2e0f291f.entry.js +2 -0
- package/dist/db-ux/p-2e0f291f.entry.js.map +1 -0
- package/dist/db-ux/p-3df47dd9.entry.js +2 -0
- package/dist/db-ux/p-3df47dd9.entry.js.map +1 -0
- package/dist/db-ux/p-423bf8f8.entry.js +2 -0
- package/dist/db-ux/p-423bf8f8.entry.js.map +1 -0
- package/dist/db-ux/p-4aa47b47.entry.js +2 -0
- package/dist/db-ux/p-4aa47b47.entry.js.map +1 -0
- package/dist/db-ux/{p-b3148401.entry.js → p-4b52b854.entry.js} +2 -2
- package/dist/db-ux/{p-63f30576.entry.js → p-57c4486c.entry.js} +2 -2
- package/dist/db-ux/p-5fdc8db6.entry.js +2 -0
- package/dist/db-ux/p-5fdc8db6.entry.js.map +1 -0
- package/dist/db-ux/{p-49cc4a11.entry.js → p-63f1d771.entry.js} +2 -2
- package/dist/db-ux/p-75a55c2c.entry.js +2 -0
- package/dist/db-ux/{p-5c2e9373.entry.js.map → p-75a55c2c.entry.js.map} +1 -1
- package/dist/db-ux/{p-d7ccd983.entry.js → p-7636be02.entry.js} +2 -2
- package/dist/db-ux/{p-52e736c3.entry.js → p-769c530c.entry.js} +2 -2
- package/dist/db-ux/p-80f23995.entry.js +2 -0
- package/dist/db-ux/p-80f23995.entry.js.map +1 -0
- package/dist/db-ux/{p-6wgV8aKO.js → p-BDA9dlfd.js} +2 -2
- package/dist/db-ux/p-BDA9dlfd.js.map +1 -0
- package/dist/db-ux/p-C8WY_RwJ.js +2 -0
- package/dist/db-ux/p-C8WY_RwJ.js.map +1 -0
- package/dist/db-ux/p-CQCQcuvr.js +2 -0
- package/dist/db-ux/p-CQCQcuvr.js.map +1 -0
- package/dist/db-ux/p-CqteyeC3.js +2 -0
- package/dist/db-ux/p-CqteyeC3.js.map +1 -0
- package/dist/db-ux/p-DYeQU2bY.js +2 -0
- package/dist/db-ux/p-DYeQU2bY.js.map +1 -0
- package/dist/db-ux/{p-c151750e.entry.js → p-a4d62218.entry.js} +2 -2
- package/dist/db-ux/{p-6b6dbd54.entry.js → p-aae2a35a.entry.js} +2 -2
- package/dist/db-ux/{p-61410d87.entry.js → p-ab7f29be.entry.js} +2 -2
- package/dist/db-ux/p-ab7f29be.entry.js.map +1 -0
- package/dist/db-ux/{p-c5909b40.entry.js → p-b5e12faa.entry.js} +2 -2
- package/dist/db-ux/{p-33aaf986.entry.js → p-c615e5e6.entry.js} +2 -2
- package/dist/db-ux/p-c615e5e6.entry.js.map +1 -0
- package/dist/db-ux/{p-b4bc8f26.entry.js → p-cc6df17e.entry.js} +2 -2
- package/dist/db-ux/{p-4400f077.entry.js → p-d28395c3.entry.js} +2 -2
- package/dist/db-ux/p-d45c03e4.entry.js +2 -0
- package/dist/db-ux/p-d45c03e4.entry.js.map +1 -0
- package/dist/db-ux/{p-5c4d25b8.entry.js → p-d64ea737.entry.js} +2 -2
- package/dist/db-ux/{p-14c44b94.entry.js → p-da2d2518.entry.js} +2 -2
- package/dist/db-ux/p-f17426ab.entry.js +2 -0
- package/dist/db-ux/{p-01112955.entry.js.map → p-f17426ab.entry.js.map} +1 -1
- package/dist/esm/db-accordion-item.entry.js +1 -1
- package/dist/esm/db-accordion.entry.js +1 -1
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +3 -3
- package/dist/esm/db-button.entry.js.map +1 -1
- package/dist/esm/db-card.entry.js +4 -4
- package/dist/esm/db-card.entry.js.map +1 -1
- package/dist/esm/db-checkbox.entry.js +4 -3
- 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 +65 -13
- package/dist/esm/db-custom-select-dropdown_6.entry.js.map +1 -1
- package/dist/esm/db-custom-select-form-field.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +104 -67
- package/dist/esm/db-custom-select.entry.js.map +1 -1
- package/dist/esm/db-divider.entry.js +1 -1
- package/dist/esm/db-drawer.entry.js +1 -1
- package/dist/esm/db-header.entry.js +3 -2
- package/dist/esm/db-header.entry.js.map +1 -1
- package/dist/esm/db-icon.entry.js +1 -1
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +3 -3
- package/dist/esm/db-link.entry.js.map +1 -1
- package/dist/esm/db-navigation-item.entry.js +5 -4
- package/dist/esm/db-navigation-item.entry.js.map +1 -1
- package/dist/esm/db-navigation.entry.js +1 -1
- package/dist/esm/db-notification.entry.js +1 -1
- package/dist/esm/db-page.entry.js +1 -1
- package/dist/esm/db-popover.entry.js +64 -10
- package/dist/esm/db-popover.entry.js.map +1 -1
- package/dist/esm/db-radio.entry.js +4 -3
- package/dist/esm/db-radio.entry.js.map +1 -1
- package/dist/esm/db-section.entry.js +1 -1
- package/dist/esm/db-select.entry.js +6 -6
- package/dist/esm/db-select.entry.js.map +1 -1
- package/dist/esm/db-stack.entry.js +1 -1
- package/dist/esm/db-switch.entry.js +4 -3
- package/dist/esm/db-switch.entry.js.map +1 -1
- package/dist/esm/db-tab-item_3.entry.js +1 -1
- package/dist/esm/db-tabs.entry.js +1 -1
- package/dist/esm/db-textarea.entry.js +4 -4
- package/dist/esm/db-textarea.entry.js.map +1 -1
- package/dist/esm/db-ux.js +1 -1
- package/dist/esm/{document-click-listener-Bn3nIGhA.js → document-click-listener-CsfOzbMG.js} +7 -7
- package/dist/esm/document-click-listener-CsfOzbMG.js.map +1 -0
- package/dist/esm/document-scroll-listener-QnsLRkL2.js +44 -0
- package/dist/esm/document-scroll-listener-QnsLRkL2.js.map +1 -0
- package/dist/esm/floating-components-DYeQU2bY.js +295 -0
- package/dist/esm/floating-components-DYeQU2bY.js.map +1 -0
- package/dist/esm/{index-pglUTSkG.js → index-CQCQcuvr.js} +3 -73
- package/dist/esm/index-CQCQcuvr.js.map +1 -0
- package/dist/esm/index.js +5 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{navigation-C1ssnmpm.js → navigation-CE_2IUA4.js} +3 -3
- package/dist/esm/navigation-CE_2IUA4.js.map +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +1 -0
- package/dist/types/components/custom-select/custom-select.d.ts +10 -6
- package/dist/types/components/custom-select/model.d.ts +6 -5
- package/dist/types/components/icon/model.d.ts +1 -3
- package/dist/types/components/popover/model.d.ts +0 -1
- package/dist/types/components/popover/popover.d.ts +7 -2
- package/dist/types/components/radio/model.d.ts +1 -3
- package/dist/types/components/radio/radio.d.ts +1 -0
- package/dist/types/components/select/model.d.ts +2 -1
- package/dist/types/components/select/select.d.ts +1 -0
- package/dist/types/components/switch/switch.d.ts +1 -0
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/components/tooltip/model.d.ts +5 -3
- package/dist/types/components/tooltip/tooltip.d.ts +9 -2
- package/dist/types/components.d.ts +12 -0
- package/dist/types/shared/model.d.ts +12 -3
- package/dist/types/utils/document-scroll-listener.d.ts +9 -0
- package/dist/types/utils/floating-components.d.ts +7 -0
- package/dist/types/utils/index.d.ts +0 -13
- package/dist/types/utils/navigation.d.ts +1 -1
- package/dist/vscode.html-custom-data.json +52 -41
- package/dist/web-types.json +110 -58
- package/package.json +3 -3
- package/dist/cjs/document-click-listener-BbGE8WyV.js.map +0 -1
- package/dist/cjs/index-7lbP4BU6.js.map +0 -1
- package/dist/cjs/navigation-BLjJ1vaO.js.map +0 -1
- package/dist/db-ux/p-01112955.entry.js +0 -2
- package/dist/db-ux/p-049844c6.entry.js +0 -2
- package/dist/db-ux/p-049844c6.entry.js.map +0 -1
- package/dist/db-ux/p-1d40e8cd.entry.js +0 -2
- package/dist/db-ux/p-1d40e8cd.entry.js.map +0 -1
- package/dist/db-ux/p-33aaf986.entry.js.map +0 -1
- package/dist/db-ux/p-39d957bb.entry.js +0 -2
- package/dist/db-ux/p-44f6404b.entry.js +0 -2
- package/dist/db-ux/p-44f6404b.entry.js.map +0 -1
- package/dist/db-ux/p-50c9112b.entry.js.map +0 -1
- package/dist/db-ux/p-5c2e9373.entry.js +0 -2
- package/dist/db-ux/p-61410d87.entry.js.map +0 -1
- package/dist/db-ux/p-623a9409.entry.js +0 -2
- package/dist/db-ux/p-623a9409.entry.js.map +0 -1
- package/dist/db-ux/p-6wgV8aKO.js.map +0 -1
- package/dist/db-ux/p-DszXleuv.js +0 -2
- package/dist/db-ux/p-DszXleuv.js.map +0 -1
- package/dist/db-ux/p-a1ee66b3.entry.js +0 -2
- package/dist/db-ux/p-a1ee66b3.entry.js.map +0 -1
- package/dist/db-ux/p-b5a8e9c3.entry.js +0 -2
- package/dist/db-ux/p-b5a8e9c3.entry.js.map +0 -1
- package/dist/db-ux/p-c989b5d8.entry.js +0 -2
- package/dist/db-ux/p-c989b5d8.entry.js.map +0 -1
- package/dist/db-ux/p-d9ff0c75.entry.js +0 -2
- package/dist/db-ux/p-d9ff0c75.entry.js.map +0 -1
- package/dist/db-ux/p-f2ef5e71.entry.js +0 -2
- package/dist/db-ux/p-f2ef5e71.entry.js.map +0 -1
- package/dist/db-ux/p-pglUTSkG.js +0 -2
- package/dist/db-ux/p-pglUTSkG.js.map +0 -1
- package/dist/esm/document-click-listener-Bn3nIGhA.js.map +0 -1
- package/dist/esm/index-pglUTSkG.js.map +0 -1
- package/dist/esm/navigation-C1ssnmpm.js.map +0 -1
- /package/dist/db-ux/{p-8b7d868b.entry.js.map → p-00ae6c1c.entry.js.map} +0 -0
- /package/dist/db-ux/{p-55b02c80.entry.js.map → p-240497d9.entry.js.map} +0 -0
- /package/dist/db-ux/{p-b3148401.entry.js.map → p-4b52b854.entry.js.map} +0 -0
- /package/dist/db-ux/{p-63f30576.entry.js.map → p-57c4486c.entry.js.map} +0 -0
- /package/dist/db-ux/{p-49cc4a11.entry.js.map → p-63f1d771.entry.js.map} +0 -0
- /package/dist/db-ux/{p-d7ccd983.entry.js.map → p-7636be02.entry.js.map} +0 -0
- /package/dist/db-ux/{p-52e736c3.entry.js.map → p-769c530c.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c151750e.entry.js.map → p-a4d62218.entry.js.map} +0 -0
- /package/dist/db-ux/{p-6b6dbd54.entry.js.map → p-aae2a35a.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c5909b40.entry.js.map → p-b5e12faa.entry.js.map} +0 -0
- /package/dist/db-ux/{p-b4bc8f26.entry.js.map → p-cc6df17e.entry.js.map} +0 -0
- /package/dist/db-ux/{p-4400f077.entry.js.map → p-d28395c3.entry.js.map} +0 -0
- /package/dist/db-ux/{p-5c4d25b8.entry.js.map → p-d64ea737.entry.js.map} +0 -0
- /package/dist/db-ux/{p-14c44b94.entry.js.map → p-da2d2518.entry.js.map} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-BzLx0HVU.js');
|
|
4
|
-
var index$1 = require('./index-
|
|
4
|
+
var index$1 = require('./index-4GRgVEnx.js');
|
|
5
5
|
var constants = require('./constants-CTtyzyuo.js');
|
|
6
|
-
var documentClickListener = require('./document-click-listener-
|
|
6
|
+
var documentClickListener = require('./document-click-listener-BqewuQFB.js');
|
|
7
|
+
var documentScrollListener = require('./document-scroll-listener-DsZwE3e9.js');
|
|
8
|
+
var floatingComponents = require('./floating-components-BNCfdqZJ.js');
|
|
7
9
|
|
|
8
10
|
const DBCustomSelect = class {
|
|
9
11
|
constructor(hostRef) {
|
|
@@ -37,12 +39,21 @@ const DBCustomSelect = class {
|
|
|
37
39
|
this._hasNoOptions = false;
|
|
38
40
|
this._documentClickListenerCallbackId = undefined;
|
|
39
41
|
this._internalChangeTimestamp = 0;
|
|
42
|
+
this._documentScrollListenerCallbackId = undefined;
|
|
43
|
+
this._observer = undefined;
|
|
40
44
|
this.selectAllChecked = false;
|
|
41
45
|
this.selectAllIndeterminate = false;
|
|
42
|
-
this.satisfyReact = function satisfyReact() {
|
|
43
|
-
// This is
|
|
46
|
+
this.satisfyReact = function satisfyReact(event) {
|
|
47
|
+
// This is a function to satisfy React
|
|
48
|
+
event.stopPropagation();
|
|
44
49
|
};
|
|
45
50
|
}
|
|
51
|
+
handleDocumentScroll(event) {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.contains) && ((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.contains(this.detailsRef))) {
|
|
54
|
+
this.handleAutoPlacement();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
46
57
|
hasValidState() {
|
|
47
58
|
var _a;
|
|
48
59
|
return !!((_a = this.validMessage) !== null && _a !== void 0 ? _a : this.validation === "valid");
|
|
@@ -85,17 +96,31 @@ const DBCustomSelect = class {
|
|
|
85
96
|
}
|
|
86
97
|
}
|
|
87
98
|
handleDropdownToggle(event) {
|
|
99
|
+
var _a, _b;
|
|
88
100
|
if (this.dropdownToggle) {
|
|
101
|
+
event.stopPropagation();
|
|
89
102
|
this.dropdownToggle.emit(event);
|
|
90
103
|
}
|
|
91
104
|
if (event.target.open) {
|
|
92
105
|
this._documentClickListenerCallbackId =
|
|
93
106
|
new documentClickListener.DocumentClickListener().addCallback((event) => this.handleDocumentClose(event));
|
|
107
|
+
this._documentScrollListenerCallbackId =
|
|
108
|
+
new documentScrollListener.DocumentScrollListener().addCallback((event) => this.handleDocumentScroll(event));
|
|
109
|
+
this.handleAutoPlacement();
|
|
110
|
+
(_a = this._observer) === null || _a === void 0 ? void 0 : _a.observe(this.detailsRef);
|
|
111
|
+
if (!event.target.dataset.test) {
|
|
112
|
+
// We need this workaround for snapshot testing
|
|
113
|
+
this.handleOpenByKeyboardFocus();
|
|
114
|
+
}
|
|
94
115
|
}
|
|
95
116
|
else {
|
|
96
117
|
if (this._documentClickListenerCallbackId) {
|
|
97
118
|
new documentClickListener.DocumentClickListener().removeCallback(this._documentClickListenerCallbackId);
|
|
98
119
|
}
|
|
120
|
+
if (this._documentScrollListenerCallbackId) {
|
|
121
|
+
new documentScrollListener.DocumentScrollListener().removeCallback(this._documentScrollListenerCallbackId);
|
|
122
|
+
}
|
|
123
|
+
(_b = this._observer) === null || _b === void 0 ? void 0 : _b.unobserve(this.detailsRef);
|
|
99
124
|
}
|
|
100
125
|
}
|
|
101
126
|
getNativeSelectValue() {
|
|
@@ -136,11 +161,14 @@ const DBCustomSelect = class {
|
|
|
136
161
|
return ((_b = (_a = option.id) !== null && _a !== void 0 ? _a : option.value) !== null && _b !== void 0 ? _b : index$1.uuid()).toString();
|
|
137
162
|
}
|
|
138
163
|
getTagRemoveLabel(index) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
164
|
+
if (this.removeTagsTexts && this.removeTagsTexts.length > index) {
|
|
165
|
+
return this.removeTagsTexts.at(index);
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
return `${constants.DEFAULT_REMOVE} ${this._selectedOptions
|
|
142
169
|
? this.getOptionLabel(this._selectedOptions[index])
|
|
143
170
|
: ""}`;
|
|
171
|
+
}
|
|
144
172
|
}
|
|
145
173
|
handleTagRemove(option, event) {
|
|
146
174
|
event.stopPropagation();
|
|
@@ -151,17 +179,19 @@ const DBCustomSelect = class {
|
|
|
151
179
|
if (this.detailsRef) {
|
|
152
180
|
const dropdown = this.detailsRef.querySelector("article");
|
|
153
181
|
if (dropdown) {
|
|
182
|
+
// This is a workaround for Angular
|
|
154
183
|
index$1.delay(() => {
|
|
155
|
-
|
|
156
|
-
|
|
184
|
+
var _a;
|
|
185
|
+
floatingComponents.handleFixedDropdown(dropdown, this.detailsRef, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
|
|
186
|
+
}, 1);
|
|
157
187
|
}
|
|
158
188
|
}
|
|
159
189
|
}
|
|
160
190
|
handleArrowDownUp(event) {
|
|
161
191
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
162
192
|
if ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) {
|
|
163
|
-
if (document) {
|
|
164
|
-
const activeElement = document.activeElement;
|
|
193
|
+
if (self.document) {
|
|
194
|
+
const activeElement = self.document.activeElement;
|
|
165
195
|
if (activeElement) {
|
|
166
196
|
// 1. we check if we are currently focusing a checkbox in the dropdown
|
|
167
197
|
const isCheckbox = activeElement.getAttribute("type") === "checkbox" ||
|
|
@@ -218,8 +248,6 @@ const DBCustomSelect = class {
|
|
|
218
248
|
}
|
|
219
249
|
}
|
|
220
250
|
}
|
|
221
|
-
event.stopPropagation();
|
|
222
|
-
event.preventDefault();
|
|
223
251
|
}
|
|
224
252
|
else if (event.key === "ArrowDown" || event.key === "ArrowRight") {
|
|
225
253
|
// Open dropdown with arrows see https://www.w3.org/WAI/ARIA/apg/patterns/combobox/#keyboardinteraction
|
|
@@ -228,13 +256,14 @@ const DBCustomSelect = class {
|
|
|
228
256
|
this.detailsRef.open = true;
|
|
229
257
|
}
|
|
230
258
|
this.handleOpenByKeyboardFocus();
|
|
231
|
-
event.stopPropagation();
|
|
232
|
-
event.preventDefault();
|
|
233
259
|
}
|
|
260
|
+
event.stopPropagation();
|
|
261
|
+
event.preventDefault();
|
|
234
262
|
}
|
|
235
263
|
handleKeyboardPress(event) {
|
|
236
264
|
var _a;
|
|
237
|
-
|
|
265
|
+
event.stopPropagation();
|
|
266
|
+
if (event.key === "Escape" && ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
|
|
238
267
|
this.handleClose("close");
|
|
239
268
|
this.handleSummaryFocus();
|
|
240
269
|
}
|
|
@@ -254,25 +283,29 @@ const DBCustomSelect = class {
|
|
|
254
283
|
else if (this.detailsRef.open && (event === null || event === void 0 ? void 0 : event.relatedTarget)) {
|
|
255
284
|
const relatedTarget = event.relatedTarget;
|
|
256
285
|
if (!this.detailsRef.contains(relatedTarget)) {
|
|
257
|
-
|
|
286
|
+
// We need to use delay here because the combination of `contains`
|
|
287
|
+
// and changing the DOM element causes a race condition inside browser
|
|
288
|
+
index$1.delay(() => (this.detailsRef.open = false), 1);
|
|
258
289
|
}
|
|
259
290
|
}
|
|
260
291
|
}
|
|
261
292
|
}
|
|
262
293
|
handleDocumentClose(event) {
|
|
263
|
-
var _a;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
this.detailsRef.open
|
|
294
|
+
var _a, _b;
|
|
295
|
+
if (event) {
|
|
296
|
+
// stencil is sending a custom event which wraps the pointer event into details
|
|
297
|
+
const target = typeof event.detail === "number" ? event.target : (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
|
|
298
|
+
if (((_b = this.detailsRef) === null || _b === void 0 ? void 0 : _b.open) && !this.detailsRef.contains(target)) {
|
|
299
|
+
this.detailsRef.open = false;
|
|
300
|
+
}
|
|
268
301
|
}
|
|
269
302
|
}
|
|
270
303
|
handleOptionSelected(values) {
|
|
271
304
|
const skip = new Date().getTime() - this._internalChangeTimestamp < 200;
|
|
272
305
|
if (skip)
|
|
273
306
|
return;
|
|
307
|
+
this._values = values;
|
|
274
308
|
if (this.optionSelected) {
|
|
275
|
-
this._values = values;
|
|
276
309
|
this.optionSelected.emit(values !== null && values !== void 0 ? values : []);
|
|
277
310
|
}
|
|
278
311
|
this._internalChangeTimestamp = new Date().getTime();
|
|
@@ -294,8 +327,9 @@ const DBCustomSelect = class {
|
|
|
294
327
|
}
|
|
295
328
|
}
|
|
296
329
|
}
|
|
297
|
-
handleSelectAll() {
|
|
330
|
+
handleSelectAll(event) {
|
|
298
331
|
var _a;
|
|
332
|
+
event.stopPropagation();
|
|
299
333
|
if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === this.amountOptions) {
|
|
300
334
|
this.handleOptionSelected([]);
|
|
301
335
|
}
|
|
@@ -325,12 +359,12 @@ const DBCustomSelect = class {
|
|
|
325
359
|
index$1.delay(() => {
|
|
326
360
|
// Takes some time until element can be focused
|
|
327
361
|
checkbox.focus();
|
|
328
|
-
},
|
|
362
|
+
}, 1);
|
|
329
363
|
}
|
|
330
364
|
}
|
|
331
365
|
}
|
|
332
366
|
}
|
|
333
|
-
handleOpenByKeyboardFocus(
|
|
367
|
+
handleOpenByKeyboardFocus() {
|
|
334
368
|
if (this.detailsRef) {
|
|
335
369
|
// Focus search if possible
|
|
336
370
|
const search = index$1.getSearchInput(this.detailsRef);
|
|
@@ -338,9 +372,9 @@ const DBCustomSelect = class {
|
|
|
338
372
|
index$1.delay(() => {
|
|
339
373
|
// Takes some time until element can be focused
|
|
340
374
|
search.focus();
|
|
341
|
-
},
|
|
375
|
+
}, 1);
|
|
342
376
|
}
|
|
343
|
-
else
|
|
377
|
+
else {
|
|
344
378
|
// Focus first checkbox otherwise
|
|
345
379
|
this.handleFocusFirstDropdownCheckbox();
|
|
346
380
|
}
|
|
@@ -349,21 +383,26 @@ const DBCustomSelect = class {
|
|
|
349
383
|
handleSearch(event) {
|
|
350
384
|
event.stopPropagation();
|
|
351
385
|
const filterText = event.target.value;
|
|
352
|
-
this.
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
386
|
+
if (!this.options || !filterText || filterText.length === 0) {
|
|
387
|
+
this._options = this.options;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
this._options = this.options.filter((option) => !option.isGroupTitle &&
|
|
391
|
+
this.getOptionLabel(option)
|
|
392
|
+
.toLowerCase()
|
|
393
|
+
.includes(filterText.toLowerCase()));
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
handleClearAll(event) {
|
|
397
|
+
event.stopPropagation();
|
|
361
398
|
this.handleOptionSelected([]);
|
|
362
399
|
this.handleSummaryFocus();
|
|
363
400
|
}
|
|
364
401
|
handleSummaryFocus() {
|
|
365
|
-
var _a
|
|
366
|
-
|
|
402
|
+
var _a;
|
|
403
|
+
if (this.detailsRef) {
|
|
404
|
+
(_a = this.detailsRef.querySelector("summary")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
405
|
+
}
|
|
367
406
|
}
|
|
368
407
|
/**
|
|
369
408
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -399,19 +438,6 @@ const DBCustomSelect = class {
|
|
|
399
438
|
}
|
|
400
439
|
watch0Fn() {
|
|
401
440
|
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
441
|
this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
|
|
416
442
|
}
|
|
417
443
|
}
|
|
@@ -438,10 +464,11 @@ const DBCustomSelect = class {
|
|
|
438
464
|
this.watch1Fn();
|
|
439
465
|
}
|
|
440
466
|
watch2Fn() {
|
|
467
|
+
var _a;
|
|
441
468
|
if (this.detailsRef) {
|
|
442
469
|
const summary = this.detailsRef.querySelector("summary");
|
|
443
470
|
if (summary) {
|
|
444
|
-
summary.setAttribute("aria-describedby", this._descByIds || "");
|
|
471
|
+
summary.setAttribute("aria-describedby", (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : (this._descByIds || ""));
|
|
445
472
|
}
|
|
446
473
|
}
|
|
447
474
|
}
|
|
@@ -460,13 +487,15 @@ const DBCustomSelect = class {
|
|
|
460
487
|
this.watch3Fn();
|
|
461
488
|
}
|
|
462
489
|
watch4Fn() {
|
|
463
|
-
|
|
490
|
+
var _a;
|
|
491
|
+
this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
|
|
464
492
|
}
|
|
465
493
|
watch4() {
|
|
466
494
|
this.watch4Fn();
|
|
467
495
|
}
|
|
468
496
|
watch5Fn() {
|
|
469
|
-
|
|
497
|
+
var _a;
|
|
498
|
+
this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
|
|
470
499
|
}
|
|
471
500
|
watch5() {
|
|
472
501
|
this.watch5Fn();
|
|
@@ -522,8 +551,8 @@ const DBCustomSelect = class {
|
|
|
522
551
|
}
|
|
523
552
|
watch11Fn() {
|
|
524
553
|
var _a, _b;
|
|
525
|
-
if ((_a = this.
|
|
526
|
-
this._selectedOptions = (_b = this.
|
|
554
|
+
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {
|
|
555
|
+
this._selectedOptions = (_b = this.options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
|
|
527
556
|
var _a, _b;
|
|
528
557
|
if (!option.value || !((_a = this._values) === null || _a === void 0 ? void 0 : _a["includes"])) {
|
|
529
558
|
return false;
|
|
@@ -596,6 +625,14 @@ const DBCustomSelect = class {
|
|
|
596
625
|
this._selectedLabelsId = mId + "-selected-labels";
|
|
597
626
|
this._infoTextId = mId + "-info";
|
|
598
627
|
this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
|
|
628
|
+
this._observer = new IntersectionObserver((payload) => {
|
|
629
|
+
if (this.detailsRef) {
|
|
630
|
+
const entry = payload.find(({ target }) => target === this.detailsRef);
|
|
631
|
+
if (entry && !entry.isIntersecting && this.detailsRef.open) {
|
|
632
|
+
this.detailsRef.open = false;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
});
|
|
599
636
|
this.watch0Fn();
|
|
600
637
|
this.watch1Fn();
|
|
601
638
|
this.watch2Fn();
|
|
@@ -615,19 +652,19 @@ const DBCustomSelect = class {
|
|
|
615
652
|
}
|
|
616
653
|
render() {
|
|
617
654
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
618
|
-
return (index.h("div", { key: '
|
|
655
|
+
return (index.h("div", { key: '7400da8599cc1504f7231b7634d35aa977124cc4', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
619
656
|
this._ref = el;
|
|
620
657
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
621
658
|
this.selectedType === "tag" &&
|
|
622
659
|
this.multiple
|
|
623
660
|
? "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: '
|
|
661
|
+
: 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: 'adbc7c87ddc7ee3c18f968908a6c70237562d677', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '1f6c49037b713f8c86b80706c3d04a835a4b2bc9', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
625
662
|
this.selectRef = el;
|
|
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.
|
|
627
|
-
? (_c = this.
|
|
628
|
-
: null)), index.h("details", { key: '
|
|
663
|
+
}, 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: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
|
|
664
|
+
? (_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))))
|
|
665
|
+
: null)), index.h("details", { key: '446bcf73bf7145aa477230787213d80a9adfac20', ref: (el) => {
|
|
629
666
|
this.detailsRef = el;
|
|
630
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '
|
|
667
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '4683060808c2b7c561e2707f6e6bde5a74170abf' }), 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
668
|
this.searchInputRef = el;
|
|
632
669
|
}, 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
|
|
633
670
|
? this._infoTextId
|
|
@@ -635,16 +672,16 @@ const DBCustomSelect = class {
|
|
|
635
672
|
? this.noResultsText
|
|
636
673
|
: 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) => {
|
|
637
674
|
this.selectAllRef = el;
|
|
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
|
|
675
|
+
}, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), 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
|
|
639
676
|
? this.getOptionLabel(option)
|
|
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: '
|
|
677
|
+
: 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: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '08eba6ae310a5049fb26036984c706da224d1dda', "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: '2ceb092c5680a395d3b8a2ec532bcd38df7a0ab9', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '997e41f87225827a6fd73fb1645f3f6e3a1fe569', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
641
678
|
}
|
|
642
679
|
static get watchers() { return {
|
|
643
680
|
"detailsRef": ["watch0", "watch2"],
|
|
644
681
|
"_id": ["watch1"],
|
|
645
682
|
"_descByIds": ["watch2"],
|
|
646
683
|
"showNoResults": ["watch3"],
|
|
647
|
-
"_options": ["watch3"
|
|
684
|
+
"_options": ["watch3"],
|
|
648
685
|
"showSelectAll": ["watch4"],
|
|
649
686
|
"amountOptions": ["watch4", "watch5", "watch9"],
|
|
650
687
|
"multiple": ["watch4"],
|
|
@@ -652,7 +689,7 @@ const DBCustomSelect = class {
|
|
|
652
689
|
"values": ["watch6"],
|
|
653
690
|
"_values": ["watch7", "watch9", "watch11"],
|
|
654
691
|
"validation": ["watch8"],
|
|
655
|
-
"options": ["watch10"],
|
|
692
|
+
"options": ["watch10", "watch11"],
|
|
656
693
|
"_selectedOptions": ["watch12", "watch13"],
|
|
657
694
|
"selectedType": ["watch12"],
|
|
658
695
|
"amountText": ["watch12"],
|