@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-textarea.entry.js","sources":["src/components/textarea/textarea.tsx"],"sourcesContent":["import { DBTextareaProps, DBTextareaState } from \"./model\";\nimport { DBInfotext } from \"../infotext/infotext\";\nimport {\n cls,\n delay,\n getBoolean,\n getHideProp,\n getNumber,\n hasVoiceOver,\n stringPropVisible,\n uuid,\n} from \"../../utils\";\nimport {\n DEFAULT_INVALID_MESSAGE,\n DEFAULT_INVALID_MESSAGE_ID_SUFFIX,\n DEFAULT_LABEL,\n DEFAULT_MESSAGE_ID_SUFFIX,\n DEFAULT_PLACEHOLDER,\n DEFAULT_ROWS,\n DEFAULT_VALID_MESSAGE,\n DEFAULT_VALID_MESSAGE_ID_SUFFIX,\n} from \"../../shared/constants\";\nimport { ChangeEvent, InputEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\n\nimport {\n Component,\n h,\n Fragment,\n Watch,\n Event,\n EventEmitter,\n Prop,\n State,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-textarea\",\n})\nexport class DBTextarea {\n private _ref!: HTMLTextAreaElement | any;\n @Prop() id: DBTextareaProps[\"id\"];\n @Prop() invalidMessage: DBTextareaProps[\"invalidMessage\"];\n @Prop() message: DBTextareaProps[\"message\"];\n @Prop() showMessage: DBTextareaProps[\"showMessage\"];\n @Prop() value: DBTextareaProps[\"value\"];\n @Prop() validMessage: DBTextareaProps[\"validMessage\"];\n @Prop() validation: DBTextareaProps[\"validation\"];\n @Prop() required: DBTextareaProps[\"required\"];\n @Prop() minLength: DBTextareaProps[\"minLength\"];\n @Prop() maxLength: DBTextareaProps[\"maxLength\"];\n @Event() input: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onInput\"]>[number]\n > | void;\n @Event() change: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onChange\"]>[number]\n > | void;\n @Event() blur: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onBlur\"]>[number]\n > | void;\n @Event() focus: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onFocus\"]>[number]\n > | void;\n @Prop({attribute: \"classname\"}) className: DBTextareaProps[\"className\"];\n @Prop() variant: DBTextareaProps[\"variant\"];\n @Prop() showLabel: DBTextareaProps[\"showLabel\"];\n @Prop() label: DBTextareaProps[\"label\"];\n @Prop() resize: DBTextareaProps[\"resize\"];\n @Prop() disabled: DBTextareaProps[\"disabled\"];\n @Prop() readOnly: DBTextareaProps[\"readOnly\"];\n @Prop() readonly: DBTextareaProps[\"readonly\"];\n @Prop() form: DBTextareaProps[\"form\"];\n @Prop() maxlength: DBTextareaProps[\"maxlength\"];\n @Prop() minlength: DBTextareaProps[\"minlength\"];\n @Prop() name: DBTextareaProps[\"name\"];\n @Prop() wrap: DBTextareaProps[\"wrap\"];\n @Prop() spellCheck: DBTextareaProps[\"spellCheck\"];\n @Prop() autocomplete: DBTextareaProps[\"autocomplete\"];\n @Prop() placeholder: DBTextareaProps[\"placeholder\"];\n @Prop() rows: DBTextareaProps[\"rows\"];\n @Prop() cols: DBTextareaProps[\"cols\"];\n @Prop() messageIcon: DBTextareaProps[\"messageIcon\"];\n @State() _id = undefined;\n @State() _messageId = undefined;\n @State() _validMessageId = undefined;\n @State() _invalidMessageId = undefined;\n @State() _invalidMessage = undefined;\n @State() _descByIds = \"\";\n @State() _value = \"\";\n @State() _voiceOverFallback = \"\";\n\n hasValidState() {\n return !!(this.validMessage ?? this.validation === \"valid\");\n }\n handleValidation() {\n /* For a11y reasons we need to map the correct message with the textarea */\n if (!this._ref?.validity.valid || this.validation === \"invalid\") {\n this._descByIds = this._invalidMessageId;\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this._invalidMessage;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (\n this.hasValidState() &&\n this._ref?.validity.valid &&\n (this.required || this.minLength || this.maxLength)\n ) {\n this._descByIds = this._validMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this.validMessage ?? DEFAULT_VALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = this._messageId;\n } else {\n this._descByIds = \"\";\n }\n }\n handleInput(event: InputEvent<HTMLTextAreaElement>) {\n event.stopPropagation();\n if (this.input) {\n this.input.emit(event);\n }\n this.handleValidation();\n }\n handleChange(event: ChangeEvent<HTMLTextAreaElement>) {\n event.stopPropagation();\n if (this.change) {\n this.change.emit(event);\n }\n this.handleValidation();\n }\n handleBlur(event: InteractionEvent<HTMLTextAreaElement> | any) {\n event.stopPropagation();\n if (this.blur) {\n this.blur.emit(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLTextAreaElement> | any) {\n event.stopPropagation();\n if (this.focus) {\n this.focus.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLTextAreaElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n }\n\n @Watch(\"_ref\")\n @Watch(\"invalidMessage\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this._id) {\n const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;\n this._messageId = messageId;\n this._validMessageId = this._id + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = this._id + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = messageId;\n }\n }\n }\n\n @Watch(\"_id\")\n watch1() {\n this.watch1Fn();\n }\n\n watch2Fn() {\n this._value = this.value;\n }\n\n @Watch(\"value\")\n watch2() {\n this.watch2Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-textarea\");\n const mId = this.id ?? `textarea-${uuid()}`;\n this._id = mId;\n this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;\n this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;\n this.watch0Fn();\n this.watch1Fn();\n this.watch2Fn();\n }\n\n render() {\n return (\n <div\n class={cls(\"db-textarea\", this.className)}\n data-variant={this.variant}\n data-hide-label={getHideProp(this.showLabel)}\n >\n <label htmlFor={this._id}>{this.label ?? DEFAULT_LABEL}</label>\n <textarea\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-resize={this.resize}\n disabled={getBoolean(this.disabled, \"disabled\")}\n required={getBoolean(this.required, \"required\")}\n readOnly={\n getBoolean(this.readOnly, \"readOnly\") ||\n getBoolean(this.readonly, \"readonly\")\n }\n form={this.form}\n maxLength={getNumber(this.maxLength, this.maxlength)}\n minLength={getNumber(this.minLength, this.minlength)}\n name={this.name}\n wrap={this.wrap}\n spellcheck={this.spellCheck}\n autocomplete={this.autocomplete}\n onInput={(event) => this.handleInput(event)}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n value={this.value ?? this._value}\n aria-describedby={this._descByIds}\n placeholder={this.placeholder ?? DEFAULT_PLACEHOLDER}\n rows={getNumber(this.rows, DEFAULT_ROWS)}\n cols={getNumber(this.cols)}\n ></textarea>\n {stringPropVisible(this.message, this.showMessage) ? (\n <db-infotext\n size=\"small\"\n icon={this.messageIcon}\n id={this._messageId}\n >\n {this.message}\n </db-infotext>\n ) : null}\n {this.hasValidState() ? (\n <db-infotext\n size=\"small\"\n semantic=\"successful\"\n id={this._validMessageId}\n >\n {this.validMessage || DEFAULT_VALID_MESSAGE}\n </db-infotext>\n ) : null}\n <db-infotext\n size=\"small\"\n semantic=\"critical\"\n id={this._invalidMessageId}\n >\n {this._invalidMessage}\n </db-infotext>\n <span data-visually-hidden=\"true\" role=\"status\">\n {this._voiceOverFallback}\n </span>\n </div>\n );\n }\n}\n"],"names":[],"mappings":";;;;MA+Ca,UAAU,GAAA,MAAA;AAHtB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;;AA8CU,QAAA,IAAG,CAAA,GAAA,GAAG,SAAS;AACf,QAAA,IAAU,CAAA,UAAA,GAAG,SAAS;AACtB,QAAA,IAAe,CAAA,eAAA,GAAG,SAAS;AAC3B,QAAA,IAAiB,CAAA,iBAAA,GAAG,SAAS;AAC7B,QAAA,IAAe,CAAA,eAAA,GAAG,SAAS;AAC3B,QAAA,IAAU,CAAA,UAAA,GAAG,EAAE;AACf,QAAA,IAAM,CAAA,MAAA,GAAG,EAAE;AACX,QAAA,IAAkB,CAAA,kBAAA,GAAG,EAAE;AA8NjC;IA5NC,aAAa,GAAA;;AACX,QAAA,OAAO,CAAC,EAAE,CAAA,EAAA,GAAA,IAAI,CAAC,YAAY,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,CAAC,UAAU,KAAK,OAAO,CAAC;;IAE7D,gBAAgB,GAAA;;;AAEd,QAAA,IAAI,EAAC,CAAA,EAAA,GAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAC,KAAK,CAAA,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE;AAC/D,YAAA,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,iBAAiB;AACxC,YAAA,IAAI,CAAC,eAAe;AAClB,gBAAA,IAAI,CAAC,cAAc;qBACnB,CAAA,EAAA,GAAA,IAAI,CAAC,IAAI,MAAA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areaState } from \"./model\";\nimport { DBInfotext } from \"../infotext/infotext\";\nimport {\n cls,\n delay,\n getBoolean,\n getHideProp,\n getNumber,\n hasVoiceOver,\n stringPropVisible,\n uuid,\n} from \"../../utils\";\nimport {\n DEFAULT_INVALID_MESSAGE,\n DEFAULT_INVALID_MESSAGE_ID_SUFFIX,\n DEFAULT_LABEL,\n DEFAULT_MESSAGE_ID_SUFFIX,\n DEFAULT_PLACEHOLDER,\n DEFAULT_ROWS,\n DEFAULT_VALID_MESSAGE,\n DEFAULT_VALID_MESSAGE_ID_SUFFIX,\n} from \"../../shared/constants\";\nimport { ChangeEvent, InputEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\n\nimport {\n Component,\n h,\n Fragment,\n Watch,\n Event,\n EventEmitter,\n Prop,\n State,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-textarea\",\n})\nexport class DBTextarea {\n private _ref!: HTMLTextAreaElement | any;\n @Prop() id: DBTextareaProps[\"id\"];\n @Prop() invalidMessage: DBTextareaProps[\"invalidMessage\"];\n @Prop() message: DBTextareaProps[\"message\"];\n @Prop() showMessage: DBTextareaProps[\"showMessage\"];\n @Prop() value: DBTextareaProps[\"value\"];\n @Prop() validMessage: DBTextareaProps[\"validMessage\"];\n @Prop() validation: DBTextareaProps[\"validation\"];\n @Prop() required: DBTextareaProps[\"required\"];\n @Prop() minLength: DBTextareaProps[\"minLength\"];\n @Prop() maxLength: DBTextareaProps[\"maxLength\"];\n @Event() input: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onInput\"]>[number]\n > | void;\n @Event() change: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onChange\"]>[number]\n > | void;\n @Event() blur: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onBlur\"]>[number]\n > | void;\n @Event() focus: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onFocus\"]>[number]\n > | void;\n @Prop({attribute: \"classname\"}) className: DBTextareaProps[\"className\"];\n @Prop() variant: DBTextareaProps[\"variant\"];\n @Prop() showLabel: DBTextareaProps[\"showLabel\"];\n @Prop() label: DBTextareaProps[\"label\"];\n @Prop() resize: DBTextareaProps[\"resize\"];\n @Prop() disabled: DBTextareaProps[\"disabled\"];\n @Prop() readOnly: DBTextareaProps[\"readOnly\"];\n @Prop() readonly: DBTextareaProps[\"readonly\"];\n @Prop() form: DBTextareaProps[\"form\"];\n @Prop() maxlength: DBTextareaProps[\"maxlength\"];\n @Prop() minlength: DBTextareaProps[\"minlength\"];\n @Prop() name: DBTextareaProps[\"name\"];\n @Prop() wrap: DBTextareaProps[\"wrap\"];\n @Prop() spellCheck: DBTextareaProps[\"spellCheck\"];\n @Prop() autocomplete: DBTextareaProps[\"autocomplete\"];\n @Prop() ariaDescribedBy: DBTextareaProps[\"ariaDescribedBy\"];\n @Prop() placeholder: DBTextareaProps[\"placeholder\"];\n @Prop() rows: DBTextareaProps[\"rows\"];\n @Prop() cols: DBTextareaProps[\"cols\"];\n @Prop() messageIcon: DBTextareaProps[\"messageIcon\"];\n @State() _id = undefined;\n @State() _messageId = undefined;\n @State() _validMessageId = undefined;\n @State() _invalidMessageId = undefined;\n @State() _invalidMessage = undefined;\n @State() _descByIds = \"\";\n @State() _value = \"\";\n @State() _voiceOverFallback = \"\";\n\n hasValidState() {\n return !!(this.validMessage ?? this.validation === \"valid\");\n }\n handleValidation() {\n /* For a11y reasons we need to map the correct message with the textarea */\n if (!this._ref?.validity.valid || this.validation === \"invalid\") {\n this._descByIds = this._invalidMessageId;\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this._invalidMessage;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (\n this.hasValidState() &&\n this._ref?.validity.valid &&\n (this.required || this.minLength || this.maxLength)\n ) {\n this._descByIds = this._validMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this.validMessage ?? DEFAULT_VALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = this._messageId;\n } else {\n this._descByIds = \"\";\n }\n }\n handleInput(event: InputEvent<HTMLTextAreaElement>) {\n event.stopPropagation();\n if (this.input) {\n this.input.emit(event);\n }\n this.handleValidation();\n }\n handleChange(event: ChangeEvent<HTMLTextAreaElement>) {\n event.stopPropagation();\n if (this.change) {\n this.change.emit(event);\n }\n this.handleValidation();\n }\n handleBlur(event: InteractionEvent<HTMLTextAreaElement> | any) {\n event.stopPropagation();\n if (this.blur) {\n this.blur.emit(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLTextAreaElement> | any) {\n event.stopPropagation();\n if (this.focus) {\n this.focus.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLTextAreaElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n }\n\n @Watch(\"_ref\")\n @Watch(\"invalidMessage\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this._id) {\n const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;\n this._messageId = messageId;\n this._validMessageId = this._id + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = this._id + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = messageId;\n }\n }\n }\n\n @Watch(\"_id\")\n watch1() {\n this.watch1Fn();\n }\n\n watch2Fn() {\n this._value = this.value;\n }\n\n @Watch(\"value\")\n watch2() {\n this.watch2Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-textarea\");\n const mId = this.id ?? `textarea-${uuid()}`;\n this._id = mId;\n this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;\n this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;\n this.watch0Fn();\n this.watch1Fn();\n this.watch2Fn();\n }\n\n render() {\n return (\n <div\n class={cls(\"db-textarea\", this.className)}\n data-variant={this.variant}\n data-hide-label={getHideProp(this.showLabel)}\n >\n <label htmlFor={this._id}>{this.label ?? DEFAULT_LABEL}</label>\n <textarea\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-resize={this.resize}\n disabled={getBoolean(this.disabled, \"disabled\")}\n required={getBoolean(this.required, \"required\")}\n readOnly={\n getBoolean(this.readOnly, \"readOnly\") ||\n getBoolean(this.readonly, \"readonly\")\n }\n form={this.form}\n maxLength={getNumber(this.maxLength, this.maxlength)}\n minLength={getNumber(this.minLength, this.minlength)}\n name={this.name}\n wrap={this.wrap}\n spellcheck={this.spellCheck}\n autocomplete={this.autocomplete}\n onInput={(event) => this.handleInput(event)}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n value={this.value ?? this._value}\n aria-describedby={this.ariaDescribedBy ?? this._descByIds}\n placeholder={this.placeholder ?? DEFAULT_PLACEHOLDER}\n rows={getNumber(this.rows, DEFAULT_ROWS)}\n cols={getNumber(this.cols)}\n ></textarea>\n {stringPropVisible(this.message, this.showMessage) ? (\n <db-infotext\n size=\"small\"\n icon={this.messageIcon}\n id={this._messageId}\n >\n {this.message}\n </db-infotext>\n ) : null}\n {this.hasValidState() ? (\n <db-infotext\n size=\"small\"\n semantic=\"successful\"\n id={this._validMessageId}\n >\n {this.validMessage || DEFAULT_VALID_MESSAGE}\n </db-infotext>\n ) : null}\n <db-infotext\n size=\"small\"\n semantic=\"critical\"\n id={this._invalidMessageId}\n >\n {this._invalidMessage}\n </db-infotext>\n <span data-visually-hidden=\"true\" role=\"status\">\n {this._voiceOverFallback}\n </span>\n </div>\n );\n }\n}\n"],"names":[],"mappings":";;;;MA+Ca,UAAU,GAAA,MAAA;AAHtB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;;AA+CU,QAAA,IAAG,CAAA,GAAA,GAAG,SAAS;AACf,QAAA,IAAU,CAAA,UAAA,GAAG,SAAS;AACtB,QAAA,IAAe,CAAA,eAAA,GAAG,SAAS;AAC3B,QAAA,IAAiB,CAAA,iBAAA,GAAG,SAAS;AAC7B,QAAA,IAAe,CAAA,eAAA,GAAG,SAAS;AAC3B,QAAA,IAAU,CAAA,UAAA,GAAG,EAAE;AACf,QAAA,IAAM,CAAA,MAAA,GAAG,EAAE;AACX,QAAA,IAAkB,CAAA,kBAAA,GAAG,EAAE;AA8NjC;IA5NC,aAAa,GAAA;;AACX,QAAA,OAAO,CAAC,EAAE,CAAA,EAAA,GAAA,IAAI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EAAC,OAAO,EACZ,QAAQ,EAAC,YAAY,EACrB,EAAE,EAAE,IAAI,CAAC,eAAe,EAAA,EAEvB,IAAI,CAAC,YAAY,IAAI,qBAAqB,CAC/B,IACZ,IAAI,EACR,CAAA,CAAA,aAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAC,UAAU,EACnB,EAAE,EAAE,IAAI,CAAC,iBAAiB,IAEzB,IAAI,CAAC,eAAe,CACT,EACd,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,sBAAA,EAA2B,MAAM,EAAC,IAAI,EAAC,QAAQ,EAAA,EAC5C,IAAI,CAAC,kBAAkB,CACnB,CACH;;;;;;;;;;;;"}
|
package/dist/esm/db-ux.js
CHANGED
|
@@ -17,7 +17,7 @@ var patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(async (options) => {
|
|
19
19
|
await globalScripts();
|
|
20
|
-
return bootstrapLazy(JSON.parse("[[\"db-custom-select\",[[4,\"db-custom-select\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"showNoResults\":[4,\"show-no-results\"],\"multiple\":[8],\"showSelectAll\":[4,\"show-select-all\"],\"showSearch\":[4,\"show-search\"],\"values\":[16],\"validation\":[1],\"options\":[16],\"selectedType\":[1,\"selected-type\"],\"amountText\":[1,\"amount-text\"],\"validMessage\":[1,\"valid-message\"],\"required\":[8],\"selectAllLabel\":[1,\"select-all-label\"],\"removeTagsTexts\":[16,\"remove-tags-texts\"],\"className\":[1,\"classname\"],\"formFieldWidth\":[1,\"form-field-width\"],\"variant\":[1],\"placement\":[1],\"showLabel\":[8,\"show-label\"],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"label\":[1],\"form\":[1],\"name\":[1],\"disabled\":[8],\"open\":[4],\"dropdownWidth\":[1,\"dropdown-width\"],\"searchLabel\":[1,\"search-label\"],\"searchPlaceholder\":[1,\"search-placeholder\"],\"showLoading\":[4,\"show-loading\"],\"ariaListLabel\":[1,\"aria-list-label\"],\"noResultsText\":[1,\"no-results-text\"],\"loadingText\":[1,\"loading-text\"],\"mobileCloseButtonText\":[1,\"mobile-close-button-text\"],\"showClearSelection\":[4,\"show-clear-selection\"],\"clearSelectionText\":[1,\"clear-selection-text\"],\"placeholder\":[1],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_selectId\":[32],\"_labelId\":[32],\"_summaryId\":[32],\"_placeholderId\":[32],\"_infoTextId\":[32],\"_validity\":[32],\"_descByIds\":[32],\"_selectedLabels\":[32],\"_selectedLabelsId\":[32],\"_voiceOverFallback\":[32],\"_selectedOptions\":[32],\"selectAllEnabled\":[32],\"searchEnabled\":[32],\"amountOptions\":[32],\"_values\":[32],\"_options\":[32],\"_hasNoOptions\":[32],\"_documentClickListenerCallbackId\":[32],\"_internalChangeTimestamp\":[32],\"selectAllChecked\":[32],\"selectAllIndeterminate\":[32]},null,{\"detailsRef\":[\"watch0\",\"watch2\"],\"_id\":[\"watch1\"],\"_descByIds\":[\"watch2\"],\"showNoResults\":[\"watch3\"],\"_options\":[\"watch3\",\"watch11\"],\"showSelectAll\":[\"watch4\"],\"amountOptions\":[\"watch4\",\"watch5\",\"watch9\"],\"multiple\":[\"watch4\"],\"showSearch\":[\"watch5\"],\"values\":[\"watch6\"],\"_values\":[\"watch7\",\"watch9\",\"watch11\"],\"validation\":[\"watch8\"],\"options\":[\"watch10\"],\"_selectedOptions\":[\"watch12\",\"watch13\"],\"selectedType\":[\"watch12\"],\"amountText\":[\"watch12\"],\"selectAllIndeterminate\":[\"watch14\"],\"selectAllRef\":[\"watch14\"],\"selectRef\":[\"watch15\"],\"invalidMessage\":[\"watch15\"]}]]],[\"db-tabs\",[[4,\"db-tabs\",{\"id\":[1],\"name\":[1],\"tabs\":[1],\"arrowScrollDistance\":[8,\"arrow-scroll-distance\"],\"orientation\":[1],\"behavior\":[1],\"initialSelectedMode\":[1,\"initial-selected-mode\"],\"initialSelectedIndex\":[8,\"initial-selected-index\"],\"className\":[1,\"classname\"],\"alignment\":[1],\"width\":[1],\"_id\":[32],\"_name\":[32],\"initialized\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32],\"scrollContainer\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}]]],[\"db-header\",[[4,\"db-header\",{\"id\":[1],\"forceMobile\":[8,\"force-mobile\"],\"drawerOpen\":[8,\"drawer-open\"],\"className\":[1,\"classname\"],\"width\":[1],\"burgerMenuLabel\":[1,\"burger-menu-label\"],\"_id\":[32],\"initialized\":[32],\"forcedToMobile\":[32]},null,{\"initialized\":[\"watch0\"]}]]],[\"db-accordion\",[[4,\"db-accordion\",{\"id\":[1],\"name\":[1],\"behavior\":[1],\"initOpenIndex\":[16,\"init-open-index\"],\"items\":[1],\"className\":[1,\"classname\"],\"variant\":[1],\"_id\":[32],\"_name\":[32],\"initialized\":[32],\"_initOpenIndexDone\":[32]},null,{\"initialized\":[\"watch0\"],\"name\":[\"watch0\"],\"behavior\":[\"watch0\"],\"_id\":[\"watch0\"],\"_ref\":[\"watch1\",\"watch2\"],\"_name\":[\"watch1\"],\"_initOpenIndexDone\":[\"watch2\"],\"initOpenIndex\":[\"watch2\"]}]]],[\"db-checkbox\",[[4,\"db-checkbox\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"indeterminate\":[8],\"checked\":[8],\"validMessage\":[1,\"valid-message\"],\"validation\":[1],\"required\":[8],\"className\":[1,\"classname\"],\"size\":[1],\"showLabel\":[8,\"show-label\"],\"name\":[1],\"disabled\":[8],\"value\":[8],\"label\":[1],\"messageIcon\":[1,\"message-icon\"],\"initialized\":[32],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_descByIds\":[32],\"_voiceOverFallback\":[32]},null,{\"_ref\":[\"watch0\",\"watch2\",\"watch3\"],\"invalidMessage\":[\"watch0\"],\"_id\":[\"watch1\"],\"initialized\":[\"watch2\",\"watch3\"],\"indeterminate\":[\"watch2\"],\"checked\":[\"watch3\"]}]]],[\"db-navigation-item\",[[4,\"db-navigation-item\",{\"subNavigationExpanded\":[8,\"sub-navigation-expanded\"],\"id\":[1],\"className\":[1,\"classname\"],\"width\":[1],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"active\":[4],\"wrap\":[8],\"disabled\":[8],\"text\":[1],\"backButtonId\":[1,\"back-button-id\"],\"backButtonText\":[1,\"back-button-text\"],\"initialized\":[32],\"hasAreaPopup\":[32],\"hasSubNavigation\":[32],\"isSubNavigationExpanded\":[32],\"autoClose\":[32],\"subNavigationId\":[32],\"navigationItemSafeTriangle\":[32]},null,{\"subNavigationExpanded\":[\"watch0\"],\"initialized\":[\"watch1\"],\"_ref\":[\"watch1\"]}]]],[\"db-notification\",[[4,\"db-notification\",{\"id\":[1],\"className\":[1,\"classname\"],\"ariaLive\":[1,\"aria-live\"],\"semantic\":[1],\"variant\":[1],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"linkVariant\":[1,\"link-variant\"],\"headline\":[8],\"showHeadline\":[8,\"show-headline\"],\"text\":[1],\"timestamp\":[1],\"showTimestamp\":[8,\"show-timestamp\"],\"closeable\":[8],\"closeButtonId\":[1,\"close-button-id\"],\"closeButtonText\":[1,\"close-button-text\"]}]]],[\"db-select\",[[4,\"db-select\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"value\":[8],\"validMessage\":[1,\"valid-message\"],\"validation\":[1],\"required\":[8],\"className\":[1,\"classname\"],\"variant\":[1],\"showLabel\":[8,\"show-label\"],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"label\":[1],\"disabled\":[8],\"name\":[1],\"size\":[2],\"autocomplete\":[1],\"multiple\":[4],\"options\":[16],\"placeholder\":[1],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_placeholderId\":[32],\"_descByIds\":[32],\"_value\":[32],\"initialized\":[32],\"_voiceOverFallback\":[32]},null,{\"_ref\":[\"watch0\"],\"invalidMessage\":[\"watch0\"],\"_id\":[\"watch1\"],\"initialized\":[\"watch1\"],\"value\":[\"watch2\"]}]]],[\"db-textarea\",[[0,\"db-textarea\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"value\":[8],\"validMessage\":[1,\"valid-message\"],\"validation\":[1],\"required\":[8],\"minLength\":[8,\"min-length\"],\"maxLength\":[8,\"max-length\"],\"className\":[1,\"classname\"],\"variant\":[1],\"showLabel\":[8,\"show-label\"],\"label\":[1],\"resize\":[1],\"disabled\":[8],\"readOnly\":[8,\"read-only\"],\"readonly\":[8],\"form\":[1],\"maxlength\":[8],\"minlength\":[8],\"name\":[1],\"wrap\":[1],\"spellCheck\":[4,\"spell-check\"],\"autocomplete\":[1],\"placeholder\":[1],\"rows\":[8],\"cols\":[8],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_descByIds\":[32],\"_value\":[32],\"_voiceOverFallback\":[32]},null,{\"_ref\":[\"watch0\"],\"invalidMessage\":[\"watch0\"],\"_id\":[\"watch1\"],\"value\":[\"watch2\"]}]]],[\"db-badge\",[[4,\"db-badge\",{\"placement\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"semantic\":[1],\"size\":[1],\"emphasis\":[1],\"label\":[1],\"text\":[1],\"initialized\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}]]],[\"db-brand\",[[4,\"db-brand\",{\"hideLogo\":[4,\"hide-logo\"],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"id\":[1],\"className\":[1,\"classname\"],\"text\":[1]}]]],[\"db-card\",[[4,\"db-card\",{\"id\":[1],\"className\":[1,\"classname\"],\"behavior\":[1],\"elevationLevel\":[1,\"elevation-level\"],\"spacing\":[1]}]]],[\"db-custom-select-form-field\",[[4,\"db-custom-select-form-field\",{\"id\":[1],\"className\":[1,\"classname\"]}]]],[\"db-divider\",[[0,\"db-divider\",{\"id\":[1],\"margin\":[1],\"variant\":[1],\"emphasis\":[1],\"width\":[1],\"className\":[1,\"classname\"]}]]],[\"db-icon\",[[4,\"db-icon\",{\"id\":[1],\"className\":[1,\"classname\"],\"icon\":[1],\"weight\":[1],\"variant\":[1],\"text\":[1]}]]],[\"db-link\",[[4,\"db-link\",{\"id\":[1],\"className\":[1,\"classname\"],\"href\":[1],\"target\":[1],\"rel\":[1],\"role\":[1],\"hreflang\":[1],\"disabled\":[8],\"selected\":[8],\"label\":[1],\"current\":[8],\"size\":[1],\"showIcon\":[8,\"show-icon\"],\"variant\":[1],\"content\":[1],\"text\":[1]}]]],[\"db-navigation\",[[4,\"db-navigation\",{\"id\":[1],\"labelledBy\":[1,\"labelled-by\"],\"className\":[1,\"classname\"],\"_id\":[32]}]]],[\"db-page\",[[4,\"db-page\",{\"fadeIn\":[8,\"fade-in\"],\"documentOverflow\":[1,\"document-overflow\"],\"variant\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"mainClass\":[1,\"main-class\"],\"fontsLoaded\":[32]}]]],[\"db-popover\",[[4,\"db-popover\",{\"id\":[1],\"className\":[1,\"classname\"],\"spacing\":[1],\"gap\":[8],\"animation\":[8],\"open\":[8],\"delay\":[1],\"width\":[1],\"placement\":[1],\"initialized\":[32],\"isExpanded\":[32]},null,{\"_ref\":[\"watch0\",\"watch1\"],\"initialized\":[\"watch0\"],\"isExpanded\":[\"watch1\"]}]]],[\"db-radio\",[[4,\"db-radio\",{\"id\":[1],\"checked\":[8],\"size\":[1],\"showLabel\":[8,\"show-label\"],\"className\":[1,\"classname\"],\"validation\":[1],\"name\":[1],\"disabled\":[8],\"describedbyid\":[1],\"value\":[8],\"required\":[8],\"label\":[1],\"initialized\":[32],\"_id\":[32]},null,{\"initialized\":[\"watch0\"],\"_ref\":[\"watch0\"],\"checked\":[\"watch0\"]}]]],[\"db-section\",[[4,\"db-section\",{\"id\":[1],\"className\":[1,\"classname\"],\"spacing\":[1],\"width\":[1],\"_id\":[32]}]]],[\"db-stack\",[[4,\"db-stack\",{\"id\":[1],\"className\":[1,\"classname\"],\"gap\":[1],\"variant\":[1],\"direction\":[1],\"alignment\":[1],\"justifyContent\":[1,\"justify-content\"],\"wrap\":[8]}]]],[\"db-switch\",[[4,\"db-switch\",{\"id\":[1],\"checked\":[8],\"visualAid\":[8,\"visual-aid\"],\"size\":[1],\"showLabel\":[8,\"show-label\"],\"emphasis\":[1],\"className\":[1,\"classname\"],\"value\":[8],\"disabled\":[8],\"describedbyid\":[1],\"validation\":[1],\"name\":[1],\"required\":[8],\"icon\":[1],\"iconAfter\":[1,\"icon-after\"],\"label\":[1],\"_id\":[32],\"_checked\":[32]},null,{\"checked\":[\"watch0\"]}]]],[\"db-drawer\",[[4,\"db-drawer\",{\"open\":[8],\"backdrop\":[1],\"variant\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"spacing\":[1],\"width\":[1],\"direction\":[1],\"rounded\":[8],\"closeButtonId\":[1,\"close-button-id\"],\"closeButtonText\":[1,\"close-button-text\"]},null,{\"open\":[\"watch0\"]}]]],[\"db-accordion-item\",[[4,\"db-accordion-item\",{\"id\":[1],\"defaultOpen\":[4,\"default-open\"],\"name\":[1],\"className\":[1,\"classname\"],\"disabled\":[8],\"headlinePlain\":[1,\"headline-plain\"],\"text\":[1],\"_id\":[32],\"_open\":[32],\"_name\":[32],\"initialized\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"],\"name\":[\"watch1\"]}]]],[\"db-tab-item_3\",[[4,\"db-tab-item\",{\"active\":[8],\"name\":[1],\"className\":[1,\"classname\"],\"id\":[1],\"icon\":[1],\"iconAfter\":[1,\"icon-after\"],\"showIcon\":[8,\"show-icon\"],\"noText\":[8,\"no-text\"],\"disabled\":[8],\"controls\":[1],\"checked\":[8],\"label\":[1],\"_selected\":[32],\"_name\":[32],\"initialized\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"],\"name\":[\"watch1\"]}],[4,\"db-tab-list\",{\"id\":[1],\"className\":[1,\"classname\"],\"_id\":[32]}],[4,\"db-tab-panel\",{\"className\":[1,\"classname\"],\"id\":[1],\"labelledBy\":[1,\"labelled-by\"],\"content\":[1]}]]],[\"db-infotext\",[[4,\"db-infotext\",{\"id\":[1],\"className\":[1,\"classname\"],\"icon\":[1],\"semantic\":[1],\"size\":[1],\"showIcon\":[8,\"show-icon\"],\"text\":[1]}]]],[\"db-custom-select-dropdown_6\",[[4,\"db-input\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"dataListId\":[1,\"data-list-id\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"value\":[8],\"validMessage\":[1,\"valid-message\"],\"validation\":[1],\"required\":[8],\"minLength\":[8,\"min-length\"],\"maxLength\":[8,\"max-length\"],\"pattern\":[1],\"dataList\":[16,\"data-list\"],\"className\":[1,\"classname\"],\"variant\":[1],\"showLabel\":[8,\"show-label\"],\"showIcon\":[8,\"show-icon\"],\"icon\":[1],\"iconAfter\":[1,\"icon-after\"],\"label\":[1],\"name\":[1],\"type\":[1],\"placeholder\":[1],\"disabled\":[8],\"step\":[8],\"maxlength\":[8],\"minlength\":[8],\"max\":[8],\"min\":[8],\"readOnly\":[8,\"read-only\"],\"readonly\":[8],\"form\":[1],\"size\":[2],\"autocomplete\":[1],\"autofocus\":[8],\"ariaDescribedBy\":[1,\"aria-described-by\"],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_dataListId\":[32],\"_descByIds\":[32],\"_value\":[32],\"_voiceOverFallback\":[32]},null,{\"_ref\":[\"watch0\"],\"invalidMessage\":[\"watch0\"],\"_id\":[\"watch1\"],\"value\":[\"watch2\"]}],[4,\"db-custom-select-dropdown\",{\"id\":[1],\"className\":[1,\"classname\"],\"width\":[1]}],[4,\"db-custom-select-list\",{\"multiple\":[4],\"label\":[1],\"id\":[1],\"className\":[1,\"classname\"]}],[4,\"db-custom-select-list-item\",{\"id\":[1],\"isGroupTitle\":[4,\"is-group-title\"],\"showDivider\":[4,\"show-divider\"],\"type\":[1],\"checked\":[8],\"className\":[1,\"classname\"],\"groupTitle\":[1,\"group-title\"],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"name\":[1],\"disabled\":[8],\"value\":[8],\"label\":[1],\"_id\":[32],\"hasDivider\":[32]},null,{\"isGroupTitle\":[\"watch0\"],\"showDivider\":[\"watch0\"]}],[4,\"db-tag\",{\"disabled\":[8],\"removeButton\":[1,\"remove-button\"],\"id\":[1],\"className\":[1,\"classname\"],\"semantic\":[1],\"emphasis\":[1],\"icon\":[1],\"showCheckState\":[8,\"show-check-state\"],\"showIcon\":[8,\"show-icon\"],\"noText\":[8,\"no-text\"],\"overflow\":[8],\"text\":[1],\"behavior\":[1],\"initialized\":[32]},null,{\"initialized\":[\"watch0\"],\"disabled\":[\"watch0\"],\"_ref\":[\"watch0\"]}],[4,\"db-tooltip\",{\"id\":[1],\"className\":[1,\"classname\"],\"emphasis\":[1],\"animation\":[8],\"delay\":[1],\"width\":[1],\"showArrow\":[8,\"show-arrow\"],\"placement\":[1],\"_id\":[32],\"initialized\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}]]],[\"db-button\",[[4,\"db-button\",{\"id\":[1],\"className\":[1,\"classname\"],\"type\":[1],\"disabled\":[8],\"label\":[1],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"size\":[1],\"state\":[1],\"width\":[1],\"variant\":[1],\"noText\":[8,\"no-text\"],\"name\":[1],\"form\":[1],\"value\":[1],\"describedbyid\":[1],\"ariaexpanded\":[4],\"ariapressed\":[4],\"text\":[1]}]]]]"), options);
|
|
20
|
+
return bootstrapLazy(JSON.parse("[[\"db-custom-select\",[[4,\"db-custom-select\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"ariaDescribedBy\":[1,\"aria-described-by\"],\"showNoResults\":[4,\"show-no-results\"],\"multiple\":[8],\"showSelectAll\":[4,\"show-select-all\"],\"showSearch\":[4,\"show-search\"],\"values\":[16],\"validation\":[1],\"options\":[16],\"selectedType\":[1,\"selected-type\"],\"amountText\":[1,\"amount-text\"],\"validMessage\":[1,\"valid-message\"],\"required\":[8],\"selectAllLabel\":[1,\"select-all-label\"],\"removeTagsTexts\":[16,\"remove-tags-texts\"],\"placement\":[1],\"className\":[1,\"classname\"],\"formFieldWidth\":[1,\"form-field-width\"],\"variant\":[1],\"showLabel\":[8,\"show-label\"],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"label\":[1],\"form\":[1],\"name\":[1],\"disabled\":[8],\"open\":[4],\"dropdownWidth\":[1,\"dropdown-width\"],\"searchLabel\":[1,\"search-label\"],\"searchPlaceholder\":[1,\"search-placeholder\"],\"showLoading\":[4,\"show-loading\"],\"ariaListLabel\":[1,\"aria-list-label\"],\"noResultsText\":[1,\"no-results-text\"],\"loadingText\":[1,\"loading-text\"],\"mobileCloseButtonText\":[1,\"mobile-close-button-text\"],\"showClearSelection\":[4,\"show-clear-selection\"],\"clearSelectionText\":[1,\"clear-selection-text\"],\"placeholder\":[1],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_selectId\":[32],\"_labelId\":[32],\"_summaryId\":[32],\"_placeholderId\":[32],\"_infoTextId\":[32],\"_validity\":[32],\"_descByIds\":[32],\"_selectedLabels\":[32],\"_selectedLabelsId\":[32],\"_voiceOverFallback\":[32],\"_selectedOptions\":[32],\"selectAllEnabled\":[32],\"searchEnabled\":[32],\"amountOptions\":[32],\"_values\":[32],\"_options\":[32],\"_hasNoOptions\":[32],\"_documentClickListenerCallbackId\":[32],\"_internalChangeTimestamp\":[32],\"_documentScrollListenerCallbackId\":[32],\"_observer\":[32],\"selectAllChecked\":[32],\"selectAllIndeterminate\":[32]},null,{\"detailsRef\":[\"watch0\",\"watch2\"],\"_id\":[\"watch1\"],\"_descByIds\":[\"watch2\"],\"showNoResults\":[\"watch3\"],\"_options\":[\"watch3\"],\"showSelectAll\":[\"watch4\"],\"amountOptions\":[\"watch4\",\"watch5\",\"watch9\"],\"multiple\":[\"watch4\"],\"showSearch\":[\"watch5\"],\"values\":[\"watch6\"],\"_values\":[\"watch7\",\"watch9\",\"watch11\"],\"validation\":[\"watch8\"],\"options\":[\"watch10\",\"watch11\"],\"_selectedOptions\":[\"watch12\",\"watch13\"],\"selectedType\":[\"watch12\"],\"amountText\":[\"watch12\"],\"selectAllIndeterminate\":[\"watch14\"],\"selectAllRef\":[\"watch14\"],\"selectRef\":[\"watch15\"],\"invalidMessage\":[\"watch15\"]}]]],[\"db-tabs\",[[4,\"db-tabs\",{\"id\":[1],\"name\":[1],\"tabs\":[1],\"arrowScrollDistance\":[8,\"arrow-scroll-distance\"],\"orientation\":[1],\"behavior\":[1],\"initialSelectedMode\":[1,\"initial-selected-mode\"],\"initialSelectedIndex\":[8,\"initial-selected-index\"],\"className\":[1,\"classname\"],\"alignment\":[1],\"width\":[1],\"_id\":[32],\"_name\":[32],\"initialized\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32],\"scrollContainer\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}]]],[\"db-header\",[[4,\"db-header\",{\"id\":[1],\"forceMobile\":[8,\"force-mobile\"],\"drawerOpen\":[8,\"drawer-open\"],\"className\":[1,\"classname\"],\"width\":[1],\"burgerMenuLabel\":[1,\"burger-menu-label\"],\"_id\":[32],\"initialized\":[32],\"forcedToMobile\":[32]},null,{\"initialized\":[\"watch0\"]}]]],[\"db-accordion\",[[4,\"db-accordion\",{\"id\":[1],\"name\":[1],\"behavior\":[1],\"initOpenIndex\":[16,\"init-open-index\"],\"items\":[1],\"className\":[1,\"classname\"],\"variant\":[1],\"_id\":[32],\"_name\":[32],\"initialized\":[32],\"_initOpenIndexDone\":[32]},null,{\"initialized\":[\"watch0\"],\"name\":[\"watch0\"],\"behavior\":[\"watch0\"],\"_id\":[\"watch0\"],\"_ref\":[\"watch1\",\"watch2\"],\"_name\":[\"watch1\"],\"_initOpenIndexDone\":[\"watch2\"],\"initOpenIndex\":[\"watch2\"]}]]],[\"db-checkbox\",[[4,\"db-checkbox\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"indeterminate\":[8],\"checked\":[8],\"validMessage\":[1,\"valid-message\"],\"validation\":[1],\"required\":[8],\"className\":[1,\"classname\"],\"size\":[1],\"showLabel\":[8,\"show-label\"],\"name\":[1],\"disabled\":[8],\"value\":[8],\"ariaDescribedBy\":[1,\"aria-described-by\"],\"label\":[1],\"messageIcon\":[1,\"message-icon\"],\"initialized\":[32],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_descByIds\":[32],\"_voiceOverFallback\":[32]},null,{\"_ref\":[\"watch0\",\"watch2\",\"watch3\"],\"invalidMessage\":[\"watch0\"],\"_id\":[\"watch1\"],\"initialized\":[\"watch2\",\"watch3\"],\"indeterminate\":[\"watch2\"],\"checked\":[\"watch3\"]}]]],[\"db-navigation-item\",[[4,\"db-navigation-item\",{\"subNavigationExpanded\":[8,\"sub-navigation-expanded\"],\"id\":[1],\"className\":[1,\"classname\"],\"width\":[1],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"active\":[4],\"wrap\":[8],\"disabled\":[8],\"text\":[1],\"backButtonId\":[1,\"back-button-id\"],\"backButtonText\":[1,\"back-button-text\"],\"initialized\":[32],\"hasAreaPopup\":[32],\"hasSubNavigation\":[32],\"isSubNavigationExpanded\":[32],\"autoClose\":[32],\"subNavigationId\":[32],\"navigationItemSafeTriangle\":[32]},null,{\"subNavigationExpanded\":[\"watch0\"],\"initialized\":[\"watch1\"],\"_ref\":[\"watch1\"]}]]],[\"db-notification\",[[4,\"db-notification\",{\"id\":[1],\"className\":[1,\"classname\"],\"ariaLive\":[1,\"aria-live\"],\"semantic\":[1],\"variant\":[1],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"linkVariant\":[1,\"link-variant\"],\"headline\":[8],\"showHeadline\":[8,\"show-headline\"],\"text\":[1],\"timestamp\":[1],\"showTimestamp\":[8,\"show-timestamp\"],\"closeable\":[8],\"closeButtonId\":[1,\"close-button-id\"],\"closeButtonText\":[1,\"close-button-text\"]}]]],[\"db-select\",[[4,\"db-select\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"value\":[8],\"validMessage\":[1,\"valid-message\"],\"validation\":[1],\"required\":[8],\"className\":[1,\"classname\"],\"variant\":[1],\"showLabel\":[8,\"show-label\"],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"label\":[1],\"disabled\":[8],\"name\":[1],\"size\":[2],\"autocomplete\":[1],\"multiple\":[4],\"ariaDescribedBy\":[1,\"aria-described-by\"],\"options\":[16],\"placeholder\":[1],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_placeholderId\":[32],\"_descByIds\":[32],\"_value\":[32],\"initialized\":[32],\"_voiceOverFallback\":[32]},null,{\"_ref\":[\"watch0\"],\"invalidMessage\":[\"watch0\"],\"_id\":[\"watch1\"],\"initialized\":[\"watch1\"],\"value\":[\"watch2\"]}]]],[\"db-textarea\",[[0,\"db-textarea\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"value\":[8],\"validMessage\":[1,\"valid-message\"],\"validation\":[1],\"required\":[8],\"minLength\":[8,\"min-length\"],\"maxLength\":[8,\"max-length\"],\"className\":[1,\"classname\"],\"variant\":[1],\"showLabel\":[8,\"show-label\"],\"label\":[1],\"resize\":[1],\"disabled\":[8],\"readOnly\":[8,\"read-only\"],\"readonly\":[8],\"form\":[1],\"maxlength\":[8],\"minlength\":[8],\"name\":[1],\"wrap\":[1],\"spellCheck\":[4,\"spell-check\"],\"autocomplete\":[1],\"ariaDescribedBy\":[1,\"aria-described-by\"],\"placeholder\":[1],\"rows\":[8],\"cols\":[8],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_descByIds\":[32],\"_value\":[32],\"_voiceOverFallback\":[32]},null,{\"_ref\":[\"watch0\"],\"invalidMessage\":[\"watch0\"],\"_id\":[\"watch1\"],\"value\":[\"watch2\"]}]]],[\"db-badge\",[[4,\"db-badge\",{\"placement\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"semantic\":[1],\"size\":[1],\"emphasis\":[1],\"label\":[1],\"text\":[1],\"initialized\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}]]],[\"db-brand\",[[4,\"db-brand\",{\"hideLogo\":[4,\"hide-logo\"],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"id\":[1],\"className\":[1,\"classname\"],\"text\":[1]}]]],[\"db-card\",[[4,\"db-card\",{\"id\":[1],\"className\":[1,\"classname\"],\"behavior\":[1],\"elevationLevel\":[1,\"elevation-level\"],\"spacing\":[1]}]]],[\"db-custom-select-form-field\",[[4,\"db-custom-select-form-field\",{\"id\":[1],\"className\":[1,\"classname\"]}]]],[\"db-divider\",[[0,\"db-divider\",{\"id\":[1],\"margin\":[1],\"variant\":[1],\"emphasis\":[1],\"width\":[1],\"className\":[1,\"classname\"]}]]],[\"db-icon\",[[4,\"db-icon\",{\"id\":[1],\"className\":[1,\"classname\"],\"icon\":[1],\"weight\":[1],\"variant\":[1],\"text\":[1]}]]],[\"db-link\",[[4,\"db-link\",{\"id\":[1],\"className\":[1,\"classname\"],\"href\":[1],\"target\":[1],\"rel\":[1],\"role\":[1],\"hreflang\":[1],\"disabled\":[8],\"selected\":[8],\"label\":[1],\"current\":[8],\"size\":[1],\"showIcon\":[8,\"show-icon\"],\"variant\":[1],\"content\":[1],\"text\":[1]}]]],[\"db-navigation\",[[4,\"db-navigation\",{\"id\":[1],\"labelledBy\":[1,\"labelled-by\"],\"className\":[1,\"classname\"],\"_id\":[32]}]]],[\"db-page\",[[4,\"db-page\",{\"fadeIn\":[8,\"fade-in\"],\"documentOverflow\":[1,\"document-overflow\"],\"variant\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"mainClass\":[1,\"main-class\"],\"fontsLoaded\":[32]}]]],[\"db-popover\",[[4,\"db-popover\",{\"placement\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"spacing\":[1],\"gap\":[8],\"animation\":[8],\"open\":[8],\"delay\":[1],\"width\":[1],\"initialized\":[32],\"isExpanded\":[32],\"_documentScrollListenerCallbackId\":[32],\"_observer\":[32]},null,{\"_ref\":[\"watch0\",\"watch1\"],\"initialized\":[\"watch0\"],\"isExpanded\":[\"watch1\"]}]]],[\"db-radio\",[[4,\"db-radio\",{\"id\":[1],\"checked\":[8],\"size\":[1],\"showLabel\":[8,\"show-label\"],\"className\":[1,\"classname\"],\"validation\":[1],\"name\":[1],\"disabled\":[8],\"describedbyid\":[1],\"ariaDescribedBy\":[1,\"aria-described-by\"],\"value\":[8],\"required\":[8],\"label\":[1],\"initialized\":[32],\"_id\":[32]},null,{\"initialized\":[\"watch0\"],\"_ref\":[\"watch0\"],\"checked\":[\"watch0\"]}]]],[\"db-section\",[[4,\"db-section\",{\"id\":[1],\"className\":[1,\"classname\"],\"spacing\":[1],\"width\":[1],\"_id\":[32]}]]],[\"db-stack\",[[4,\"db-stack\",{\"id\":[1],\"className\":[1,\"classname\"],\"gap\":[1],\"variant\":[1],\"direction\":[1],\"alignment\":[1],\"justifyContent\":[1,\"justify-content\"],\"wrap\":[8]}]]],[\"db-switch\",[[4,\"db-switch\",{\"id\":[1],\"checked\":[8],\"visualAid\":[8,\"visual-aid\"],\"size\":[1],\"showLabel\":[8,\"show-label\"],\"emphasis\":[1],\"className\":[1,\"classname\"],\"value\":[8],\"disabled\":[8],\"describedbyid\":[1],\"ariaDescribedBy\":[1,\"aria-described-by\"],\"validation\":[1],\"name\":[1],\"required\":[8],\"icon\":[1],\"iconAfter\":[1,\"icon-after\"],\"label\":[1],\"_id\":[32],\"_checked\":[32]},null,{\"checked\":[\"watch0\"]}]]],[\"db-drawer\",[[4,\"db-drawer\",{\"open\":[8],\"backdrop\":[1],\"variant\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"spacing\":[1],\"width\":[1],\"direction\":[1],\"rounded\":[8],\"closeButtonId\":[1,\"close-button-id\"],\"closeButtonText\":[1,\"close-button-text\"]},null,{\"open\":[\"watch0\"]}]]],[\"db-accordion-item\",[[4,\"db-accordion-item\",{\"id\":[1],\"defaultOpen\":[4,\"default-open\"],\"name\":[1],\"className\":[1,\"classname\"],\"disabled\":[8],\"headlinePlain\":[1,\"headline-plain\"],\"text\":[1],\"_id\":[32],\"_open\":[32],\"_name\":[32],\"initialized\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"],\"name\":[\"watch1\"]}]]],[\"db-tab-item_3\",[[4,\"db-tab-item\",{\"active\":[8],\"name\":[1],\"className\":[1,\"classname\"],\"id\":[1],\"icon\":[1],\"iconAfter\":[1,\"icon-after\"],\"showIcon\":[8,\"show-icon\"],\"noText\":[8,\"no-text\"],\"disabled\":[8],\"controls\":[1],\"checked\":[8],\"label\":[1],\"_selected\":[32],\"_name\":[32],\"initialized\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"],\"name\":[\"watch1\"]}],[4,\"db-tab-list\",{\"id\":[1],\"className\":[1,\"classname\"],\"_id\":[32]}],[4,\"db-tab-panel\",{\"className\":[1,\"classname\"],\"id\":[1],\"labelledBy\":[1,\"labelled-by\"],\"content\":[1]}]]],[\"db-infotext\",[[4,\"db-infotext\",{\"id\":[1],\"className\":[1,\"classname\"],\"icon\":[1],\"semantic\":[1],\"size\":[1],\"showIcon\":[8,\"show-icon\"],\"text\":[1]}]]],[\"db-custom-select-dropdown_6\",[[4,\"db-input\",{\"id\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"dataListId\":[1,\"data-list-id\"],\"message\":[1],\"showMessage\":[8,\"show-message\"],\"value\":[8],\"validMessage\":[1,\"valid-message\"],\"validation\":[1],\"required\":[8],\"minLength\":[8,\"min-length\"],\"maxLength\":[8,\"max-length\"],\"pattern\":[1],\"dataList\":[16,\"data-list\"],\"className\":[1,\"classname\"],\"variant\":[1],\"showLabel\":[8,\"show-label\"],\"showIcon\":[8,\"show-icon\"],\"icon\":[1],\"iconAfter\":[1,\"icon-after\"],\"label\":[1],\"name\":[1],\"type\":[1],\"placeholder\":[1],\"disabled\":[8],\"step\":[8],\"maxlength\":[8],\"minlength\":[8],\"max\":[8],\"min\":[8],\"readOnly\":[8,\"read-only\"],\"readonly\":[8],\"form\":[1],\"size\":[2],\"autocomplete\":[1],\"autofocus\":[8],\"ariaDescribedBy\":[1,\"aria-described-by\"],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_invalidMessage\":[32],\"_dataListId\":[32],\"_descByIds\":[32],\"_value\":[32],\"_voiceOverFallback\":[32]},null,{\"_ref\":[\"watch0\"],\"invalidMessage\":[\"watch0\"],\"_id\":[\"watch1\"],\"value\":[\"watch2\"]}],[4,\"db-custom-select-dropdown\",{\"id\":[1],\"className\":[1,\"classname\"],\"width\":[1]}],[4,\"db-custom-select-list\",{\"multiple\":[4],\"label\":[1],\"id\":[1],\"className\":[1,\"classname\"]}],[4,\"db-custom-select-list-item\",{\"id\":[1],\"isGroupTitle\":[4,\"is-group-title\"],\"showDivider\":[4,\"show-divider\"],\"type\":[1],\"checked\":[8],\"className\":[1,\"classname\"],\"groupTitle\":[1,\"group-title\"],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"name\":[1],\"disabled\":[8],\"value\":[8],\"label\":[1],\"_id\":[32],\"hasDivider\":[32]},null,{\"isGroupTitle\":[\"watch0\"],\"showDivider\":[\"watch0\"]}],[4,\"db-tag\",{\"disabled\":[8],\"removeButton\":[1,\"remove-button\"],\"id\":[1],\"className\":[1,\"classname\"],\"semantic\":[1],\"emphasis\":[1],\"icon\":[1],\"showCheckState\":[8,\"show-check-state\"],\"showIcon\":[8,\"show-icon\"],\"noText\":[8,\"no-text\"],\"overflow\":[8],\"text\":[1],\"behavior\":[1],\"initialized\":[32]},null,{\"initialized\":[\"watch0\"],\"disabled\":[\"watch0\"],\"_ref\":[\"watch0\"]}],[4,\"db-tooltip\",{\"id\":[1],\"placement\":[1],\"className\":[1,\"classname\"],\"emphasis\":[1],\"animation\":[8],\"delay\":[1],\"width\":[1],\"showArrow\":[8,\"show-arrow\"],\"_id\":[32],\"initialized\":[32],\"_documentScrollListenerCallbackId\":[32],\"_observer\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}]]],[\"db-button\",[[4,\"db-button\",{\"id\":[1],\"className\":[1,\"classname\"],\"type\":[1],\"disabled\":[8],\"label\":[1],\"icon\":[1],\"showIcon\":[8,\"show-icon\"],\"size\":[1],\"state\":[1],\"width\":[1],\"variant\":[1],\"noText\":[8,\"no-text\"],\"name\":[1],\"form\":[1],\"value\":[1],\"describedbyid\":[1],\"ariaexpanded\":[4],\"ariapressed\":[4],\"text\":[1]}]]]]"), options);
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=db-ux.js.map
|
|
23
23
|
|
package/dist/esm/{document-click-listener-Bn3nIGhA.js → document-click-listener-CsfOzbMG.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { u as uuid } from './index-
|
|
1
|
+
import { u as uuid } from './index-CQCQcuvr.js';
|
|
2
2
|
|
|
3
3
|
class DocumentClickListener {
|
|
4
4
|
static runCallbacks(event) {
|
|
5
|
-
Object.values(DocumentClickListener.callbacks)
|
|
5
|
+
for (const callback of Object.values(DocumentClickListener.callbacks)) {
|
|
6
6
|
if (typeof callback === 'function') {
|
|
7
7
|
callback(event);
|
|
8
8
|
}
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
10
|
}
|
|
11
11
|
constructor() {
|
|
12
12
|
if (DocumentClickListener._instance) {
|
|
13
13
|
return DocumentClickListener._instance;
|
|
14
14
|
}
|
|
15
15
|
DocumentClickListener._instance = this;
|
|
16
|
-
if (document) {
|
|
17
|
-
document.addEventListener('click', event => DocumentClickListener.runCallbacks(event));
|
|
16
|
+
if (self.document) {
|
|
17
|
+
self.document.addEventListener('click', event => DocumentClickListener.runCallbacks(event));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
addCallback(callback) {
|
|
@@ -30,6 +30,6 @@ DocumentClickListener.callbacks = {};
|
|
|
30
30
|
DocumentClickListener._instance = null;
|
|
31
31
|
|
|
32
32
|
export { DocumentClickListener as D };
|
|
33
|
-
//# sourceMappingURL=document-click-listener-
|
|
33
|
+
//# sourceMappingURL=document-click-listener-CsfOzbMG.js.map
|
|
34
34
|
|
|
35
|
-
//# sourceMappingURL=document-click-listener-
|
|
35
|
+
//# sourceMappingURL=document-click-listener-CsfOzbMG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-click-listener-CsfOzbMG.js","sources":["src/utils/document-click-listener.ts"],"sourcesContent":["import { uuid } from './index';\nexport class DocumentClickListener {\n private static callbacks: Record<string, (event: any) => void> = {};\n private static _instance: DocumentClickListener | null = null;\n private static runCallbacks(event: any) {\n for (const callback of Object.values(DocumentClickListener.callbacks)) {\n if (typeof callback === 'function') {\n callback(event);\n }\n }\n }\n constructor() {\n if (DocumentClickListener._instance) {\n return DocumentClickListener._instance;\n }\n DocumentClickListener._instance = this;\n if (self.document) {\n self.document.addEventListener('click', event => DocumentClickListener.runCallbacks(event));\n }\n }\n public addCallback(callback: (event: any) => void) {\n const callbackID = uuid();\n DocumentClickListener.callbacks[callbackID] = callback;\n return callbackID;\n }\n public removeCallback(id: string) {\n delete DocumentClickListener.callbacks[id];\n }\n}"],"names":[],"mappings":";;MACa,qBAAqB,CAAA;IAGxB,OAAO,YAAY,CAAC,KAAU,EAAA;AACpC,QAAA,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE;AACrE,YAAA,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;gBAClC,QAAQ,CAAC,KAAK,CAAC;;;;AAIrB,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,qBAAqB,CAAC,SAAS,EAAE;YACnC,OAAO,qBAAqB,CAAC,SAAS;;AAExC,QAAA,qBAAqB,CAAC,SAAS,GAAG,IAAI;AACtC,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;AACjB,YAAA,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,IAAI,qBAAqB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;;;AAGxF,IAAA,WAAW,CAAC,QAA8B,EAAA;AAC/C,QAAA,MAAM,UAAU,GAAG,IAAI,EAAE;AACzB,QAAA,qBAAqB,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,QAAQ;AACtD,QAAA,OAAO,UAAU;;AAEZ,IAAA,cAAc,CAAC,EAAU,EAAA;AAC9B,QAAA,OAAO,qBAAqB,CAAC,SAAS,CAAC,EAAE,CAAC;;;AAxB7B,qBAAS,CAAA,SAAA,GAAyC,EAAE;AACpD,qBAAS,CAAA,SAAA,GAAiC,IAAI;;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { u as uuid } from './index-CQCQcuvr.js';
|
|
2
|
+
|
|
3
|
+
class DocumentScrollListener {
|
|
4
|
+
static runCallbacks(event) {
|
|
5
|
+
for (const callback of Object.values(DocumentScrollListener.callbacks)) {
|
|
6
|
+
if (typeof callback === 'function') {
|
|
7
|
+
callback(event);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
constructor() {
|
|
12
|
+
this.ticking = false;
|
|
13
|
+
if (DocumentScrollListener._instance) {
|
|
14
|
+
return DocumentScrollListener._instance;
|
|
15
|
+
}
|
|
16
|
+
DocumentScrollListener._instance = this;
|
|
17
|
+
if (self.document) {
|
|
18
|
+
self.document.addEventListener('scroll', event => {
|
|
19
|
+
if (!this.ticking) {
|
|
20
|
+
window.requestAnimationFrame(() => {
|
|
21
|
+
DocumentScrollListener.runCallbacks(event);
|
|
22
|
+
this.ticking = false;
|
|
23
|
+
});
|
|
24
|
+
this.ticking = true;
|
|
25
|
+
}
|
|
26
|
+
}, true);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
addCallback(callback) {
|
|
30
|
+
const callbackID = uuid();
|
|
31
|
+
DocumentScrollListener.callbacks[callbackID] = callback;
|
|
32
|
+
return callbackID;
|
|
33
|
+
}
|
|
34
|
+
removeCallback(id) {
|
|
35
|
+
delete DocumentScrollListener.callbacks[id];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
DocumentScrollListener.callbacks = {};
|
|
39
|
+
DocumentScrollListener._instance = null;
|
|
40
|
+
|
|
41
|
+
export { DocumentScrollListener as D };
|
|
42
|
+
//# sourceMappingURL=document-scroll-listener-QnsLRkL2.js.map
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=document-scroll-listener-QnsLRkL2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-scroll-listener-QnsLRkL2.js","sources":["src/utils/document-scroll-listener.ts"],"sourcesContent":["import { uuid } from './index';\nexport class DocumentScrollListener {\n private static callbacks: Record<string, (event: any) => void> = {};\n private static _instance: DocumentScrollListener | null = null;\n private static runCallbacks(event: any) {\n for (const callback of Object.values(DocumentScrollListener.callbacks)) {\n if (typeof callback === 'function') {\n callback(event);\n }\n }\n }\n private ticking = false;\n constructor() {\n if (DocumentScrollListener._instance) {\n return DocumentScrollListener._instance;\n }\n DocumentScrollListener._instance = this;\n if (self.document) {\n self.document.addEventListener('scroll', event => {\n if (!this.ticking) {\n window.requestAnimationFrame(() => {\n DocumentScrollListener.runCallbacks(event);\n this.ticking = false;\n });\n this.ticking = true;\n }\n }, true);\n }\n }\n public addCallback(callback: (event: any) => void) {\n const callbackID = uuid();\n DocumentScrollListener.callbacks[callbackID] = callback;\n return callbackID;\n }\n public removeCallback(id: string) {\n delete DocumentScrollListener.callbacks[id];\n }\n}"],"names":[],"mappings":";;MACa,sBAAsB,CAAA;IAGzB,OAAO,YAAY,CAAC,KAAU,EAAA;AACpC,QAAA,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,SAAS,CAAC,EAAE;AACtE,YAAA,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;gBAClC,QAAQ,CAAC,KAAK,CAAC;;;;AAKrB,IAAA,WAAA,GAAA;QADQ,IAAO,CAAA,OAAA,GAAG,KAAK;AAErB,QAAA,IAAI,sBAAsB,CAAC,SAAS,EAAE;YACpC,OAAO,sBAAsB,CAAC,SAAS;;AAEzC,QAAA,sBAAsB,CAAC,SAAS,GAAG,IAAI;AACvC,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,IAAG;AAC/C,gBAAA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;AACjB,oBAAA,MAAM,CAAC,qBAAqB,CAAC,MAAK;AAChC,wBAAA,sBAAsB,CAAC,YAAY,CAAC,KAAK,CAAC;AAC1C,wBAAA,IAAI,CAAC,OAAO,GAAG,KAAK;AACtB,qBAAC,CAAC;AACF,oBAAA,IAAI,CAAC,OAAO,GAAG,IAAI;;aAEtB,EAAE,IAAI,CAAC;;;AAGL,IAAA,WAAW,CAAC,QAA8B,EAAA;AAC/C,QAAA,MAAM,UAAU,GAAG,IAAI,EAAE;AACzB,QAAA,sBAAsB,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,QAAQ;AACvD,QAAA,OAAO,UAAU;;AAEZ,IAAA,cAAc,CAAC,EAAU,EAAA;AAC9B,QAAA,OAAO,sBAAsB,CAAC,SAAS,CAAC,EAAE,CAAC;;;AAjC9B,sBAAS,CAAA,SAAA,GAAyC,EAAzC;AACT,sBAAS,CAAA,SAAA,GAAkC,IAAlC;;;;"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
// TODO: We should reevaluate this as soon as CSS Anchor Positioning is supported in all relevant browsers
|
|
2
|
+
const isInView = (el) => {
|
|
3
|
+
var _a;
|
|
4
|
+
const { top, bottom, left, right } = el.getBoundingClientRect();
|
|
5
|
+
const { innerHeight, innerWidth } = window;
|
|
6
|
+
let outTop = top < 0;
|
|
7
|
+
let outBottom = bottom > innerHeight;
|
|
8
|
+
let outLeft = left < 0;
|
|
9
|
+
let outRight = right > innerWidth;
|
|
10
|
+
// We need to check if it was already outside
|
|
11
|
+
const outsideY = el.dataset['outsideVy'];
|
|
12
|
+
const outsideX = el.dataset['outsideVx'];
|
|
13
|
+
const parentRect = (_a = el === null || el === void 0 ? void 0 : el.parentElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
14
|
+
if (parentRect) {
|
|
15
|
+
if (outsideY) {
|
|
16
|
+
const position = el.dataset['outsideVy'];
|
|
17
|
+
if (position === 'top') {
|
|
18
|
+
outTop = parentRect.top - (bottom - parentRect.bottom) < 0;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
outBottom = parentRect.bottom + (parentRect.top - top) > innerHeight;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (outsideX) {
|
|
25
|
+
const position = el.dataset['outsideVx'];
|
|
26
|
+
if (position === 'left') {
|
|
27
|
+
outLeft = parentRect.left - (right - parentRect.right) < 0;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
outRight = parentRect.right + (parentRect.left - left) > innerWidth;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
outTop,
|
|
36
|
+
outBottom,
|
|
37
|
+
outLeft,
|
|
38
|
+
outRight
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
const handleDataOutside = (el) => {
|
|
42
|
+
const { outTop, outBottom, outLeft, outRight } = isInView(el);
|
|
43
|
+
let dataOutsidePair = {};
|
|
44
|
+
if (outTop || outBottom) {
|
|
45
|
+
dataOutsidePair = {
|
|
46
|
+
vy: outTop ? 'top' : 'bottom'
|
|
47
|
+
};
|
|
48
|
+
el.dataset['outsideVy'] = dataOutsidePair.vy;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
delete el.dataset['outsideVy'];
|
|
52
|
+
}
|
|
53
|
+
if (outLeft || outRight) {
|
|
54
|
+
dataOutsidePair = Object.assign(Object.assign({}, dataOutsidePair), { vx: outRight ? 'right' : 'left' });
|
|
55
|
+
el.dataset['outsideVx'] = dataOutsidePair.vx;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
delete el.dataset['outsideVx'];
|
|
59
|
+
}
|
|
60
|
+
return dataOutsidePair;
|
|
61
|
+
};
|
|
62
|
+
const handleFixedDropdown = (element, parent, placement) => {
|
|
63
|
+
// We skip this if we are in mobile it's already fixed
|
|
64
|
+
if (getComputedStyle(element).zIndex === '9999')
|
|
65
|
+
return;
|
|
66
|
+
const { top, bottom, childHeight, childWidth, width, right, left, correctedPlacement } = getFloatingProps(element, parent, placement);
|
|
67
|
+
const fullWidth = element.dataset['width'] === 'full';
|
|
68
|
+
if (fullWidth) {
|
|
69
|
+
element.style.inlineSize = `${width}px`;
|
|
70
|
+
}
|
|
71
|
+
if (correctedPlacement === 'top' || correctedPlacement === 'bottom' || correctedPlacement === 'top-start' || correctedPlacement === 'bottom-start') {
|
|
72
|
+
element.style.insetInlineStart = `${left}px`;
|
|
73
|
+
}
|
|
74
|
+
else if (correctedPlacement === 'top-end' || correctedPlacement === 'bottom-end') {
|
|
75
|
+
element.style.insetInlineStart = `${right - childWidth}px`;
|
|
76
|
+
}
|
|
77
|
+
if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('top')) {
|
|
78
|
+
element.style.insetBlockStart = `${top - childHeight}px`;
|
|
79
|
+
}
|
|
80
|
+
else if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('bottom')) {
|
|
81
|
+
element.style.insetBlockStart = `${bottom}px`;
|
|
82
|
+
}
|
|
83
|
+
element.style.position = 'fixed';
|
|
84
|
+
};
|
|
85
|
+
const getFloatingProps = (element, parent, placement) => {
|
|
86
|
+
const childRect = element.getBoundingClientRect();
|
|
87
|
+
const { top, height, bottom, right, left, width } = parent.getBoundingClientRect();
|
|
88
|
+
const { innerHeight, innerWidth } = window;
|
|
89
|
+
let childHeight = childRect.height;
|
|
90
|
+
let childWidth = childRect.width;
|
|
91
|
+
if (placement === 'bottom' || placement === 'top') {
|
|
92
|
+
childWidth = childWidth / 2;
|
|
93
|
+
}
|
|
94
|
+
if (placement === 'left' || placement === 'right') {
|
|
95
|
+
childHeight = childHeight / 2;
|
|
96
|
+
}
|
|
97
|
+
const outsideBottom = bottom + childHeight > innerHeight;
|
|
98
|
+
const outsideTop = top - childHeight < 0;
|
|
99
|
+
const outsideLeft = left - childWidth < 0;
|
|
100
|
+
const outsideRight = right + childWidth > innerWidth;
|
|
101
|
+
let correctedPlacement = placement;
|
|
102
|
+
if (placement.startsWith('bottom')) {
|
|
103
|
+
if (outsideBottom) {
|
|
104
|
+
correctedPlacement = placement === null || placement === void 0 ? void 0 : placement.replace('bottom', 'top');
|
|
105
|
+
if (outsideLeft && outsideRight) {
|
|
106
|
+
correctedPlacement = 'top';
|
|
107
|
+
}
|
|
108
|
+
else if (outsideLeft) {
|
|
109
|
+
correctedPlacement = 'top-start';
|
|
110
|
+
}
|
|
111
|
+
else if (outsideRight) {
|
|
112
|
+
correctedPlacement = 'top-end';
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
if (outsideLeft && outsideRight) {
|
|
117
|
+
correctedPlacement = 'bottom';
|
|
118
|
+
}
|
|
119
|
+
else if (outsideLeft) {
|
|
120
|
+
correctedPlacement = 'bottom-start';
|
|
121
|
+
}
|
|
122
|
+
else if (outsideRight) {
|
|
123
|
+
correctedPlacement = 'bottom-end';
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
else if (placement.startsWith('top')) {
|
|
128
|
+
if (outsideTop) {
|
|
129
|
+
correctedPlacement = placement === null || placement === void 0 ? void 0 : placement.replace('top', 'bottom');
|
|
130
|
+
if (outsideLeft && outsideRight) {
|
|
131
|
+
correctedPlacement = 'bottom';
|
|
132
|
+
}
|
|
133
|
+
else if (outsideLeft) {
|
|
134
|
+
correctedPlacement = 'bottom-start';
|
|
135
|
+
}
|
|
136
|
+
else if (outsideRight) {
|
|
137
|
+
correctedPlacement = 'bottom-end';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
if (outsideLeft && outsideRight) {
|
|
142
|
+
correctedPlacement = 'top';
|
|
143
|
+
}
|
|
144
|
+
else if (outsideLeft) {
|
|
145
|
+
correctedPlacement = 'top-start';
|
|
146
|
+
}
|
|
147
|
+
else if (outsideRight) {
|
|
148
|
+
correctedPlacement = 'top-end';
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
else if (placement.startsWith('left')) {
|
|
153
|
+
if (outsideLeft) {
|
|
154
|
+
correctedPlacement = placement === null || placement === void 0 ? void 0 : placement.replace('left', 'right');
|
|
155
|
+
if (outsideBottom && outsideTop) {
|
|
156
|
+
correctedPlacement = 'right';
|
|
157
|
+
}
|
|
158
|
+
else if (outsideBottom) {
|
|
159
|
+
correctedPlacement = 'right-end';
|
|
160
|
+
}
|
|
161
|
+
else if (outsideTop) {
|
|
162
|
+
correctedPlacement = 'right-start';
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
if (outsideBottom && outsideTop) {
|
|
167
|
+
correctedPlacement = 'left';
|
|
168
|
+
}
|
|
169
|
+
else if (outsideBottom) {
|
|
170
|
+
correctedPlacement = 'left-end';
|
|
171
|
+
}
|
|
172
|
+
else if (outsideTop) {
|
|
173
|
+
correctedPlacement = 'left-start';
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
else if (correctedPlacement.startsWith('right')) {
|
|
178
|
+
if (outsideRight) {
|
|
179
|
+
correctedPlacement = placement === null || placement === void 0 ? void 0 : placement.replace('right', 'left');
|
|
180
|
+
if (outsideBottom && outsideTop) {
|
|
181
|
+
correctedPlacement = 'left';
|
|
182
|
+
}
|
|
183
|
+
else if (outsideBottom) {
|
|
184
|
+
correctedPlacement = 'left-end';
|
|
185
|
+
}
|
|
186
|
+
else if (outsideTop) {
|
|
187
|
+
correctedPlacement = 'left-start';
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
if (outsideBottom && outsideTop) {
|
|
192
|
+
correctedPlacement = 'right';
|
|
193
|
+
}
|
|
194
|
+
else if (outsideBottom) {
|
|
195
|
+
correctedPlacement = 'right-end';
|
|
196
|
+
}
|
|
197
|
+
else if (outsideTop) {
|
|
198
|
+
correctedPlacement = 'right-start';
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return {
|
|
203
|
+
top,
|
|
204
|
+
bottom,
|
|
205
|
+
right,
|
|
206
|
+
height,
|
|
207
|
+
width,
|
|
208
|
+
left,
|
|
209
|
+
childHeight: childRect.height,
|
|
210
|
+
childWidth: childRect.width,
|
|
211
|
+
correctedPlacement,
|
|
212
|
+
innerWidth,
|
|
213
|
+
innerHeight
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
const handleFixedPopover = (element, parent, placement) => {
|
|
217
|
+
var _a;
|
|
218
|
+
const distance = (_a = getComputedStyle(element).getPropertyValue('--db-popover-distance')) !== null && _a !== void 0 ? _a : '0px';
|
|
219
|
+
const { top, height, width, childHeight, childWidth, right, left, bottom, correctedPlacement, innerWidth, innerHeight } = getFloatingProps(element, parent, placement);
|
|
220
|
+
// Tooltip arrow position
|
|
221
|
+
if (childWidth > width && (correctedPlacement.startsWith('bottom') || correctedPlacement.startsWith('top'))) {
|
|
222
|
+
const diff = width / 2 / childWidth * 100;
|
|
223
|
+
if (correctedPlacement.endsWith('start')) {
|
|
224
|
+
element.style.setProperty('--db-tooltip-arrow-inline-start', `${diff}%`);
|
|
225
|
+
}
|
|
226
|
+
else if (correctedPlacement.endsWith('end')) {
|
|
227
|
+
element.style.setProperty('--db-tooltip-arrow-inline-start', `${100 - diff}%`);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
if (childHeight > height && (correctedPlacement.startsWith('left') || correctedPlacement.startsWith('bottom'))) {
|
|
231
|
+
const diff = height / 2 / childHeight * 100;
|
|
232
|
+
if (correctedPlacement.endsWith('start')) {
|
|
233
|
+
element.style.setProperty('--db-tooltip-arrow-block-start', `${diff}%`);
|
|
234
|
+
}
|
|
235
|
+
else if (correctedPlacement.endsWith('end')) {
|
|
236
|
+
element.style.setProperty('--db-tooltip-arrow-block-start', `${100 - diff}%`);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
// Popover position
|
|
240
|
+
if (correctedPlacement === 'right' || correctedPlacement === 'left') {
|
|
241
|
+
// center horizontally
|
|
242
|
+
element.style.insetBlockStart = `${top + height / 2}px`;
|
|
243
|
+
}
|
|
244
|
+
else if (correctedPlacement === 'right-start' || correctedPlacement === 'left-start') {
|
|
245
|
+
const end = top + childHeight;
|
|
246
|
+
element.style.insetBlockStart = `${top}px`;
|
|
247
|
+
element.style.insetBlockEnd = `${end > innerHeight ? innerHeight : end}px`;
|
|
248
|
+
}
|
|
249
|
+
else if (correctedPlacement === 'right-end' || correctedPlacement === 'left-end') {
|
|
250
|
+
const start = bottom - childHeight;
|
|
251
|
+
element.style.insetBlockStart = `${start < 0 ? 0 : start}px`;
|
|
252
|
+
element.style.insetBlockEnd = `${bottom}px`;
|
|
253
|
+
}
|
|
254
|
+
else if (correctedPlacement === 'top' || correctedPlacement === 'bottom') {
|
|
255
|
+
// center vertically
|
|
256
|
+
element.style.insetInlineStart = `${left + width / 2}px`;
|
|
257
|
+
}
|
|
258
|
+
else if (correctedPlacement === 'top-start' || correctedPlacement === 'bottom-start') {
|
|
259
|
+
const end = left + childWidth;
|
|
260
|
+
element.style.insetInlineStart = `${left}px`;
|
|
261
|
+
element.style.insetInlineEnd = `${end > innerWidth ? innerWidth : end}px`;
|
|
262
|
+
}
|
|
263
|
+
else if (correctedPlacement === 'top-end' || correctedPlacement === 'bottom-end') {
|
|
264
|
+
const start = left - childWidth;
|
|
265
|
+
element.style.insetInlineStart = `${right - childWidth}px`;
|
|
266
|
+
element.style.insetInlineEnd = `${start < 0 ? 0 : start}px`;
|
|
267
|
+
}
|
|
268
|
+
if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('right')) {
|
|
269
|
+
const end = right + childWidth;
|
|
270
|
+
element.style.insetInlineStart = `calc(${right}px + ${distance})`;
|
|
271
|
+
element.style.insetInlineEnd = `calc(${end > innerWidth ? innerWidth : end}px + ${distance})`;
|
|
272
|
+
}
|
|
273
|
+
else if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('left')) {
|
|
274
|
+
const start = left - childWidth;
|
|
275
|
+
element.style.insetInlineStart = `calc(${start < 0 ? 0 : start}px - ${distance})`;
|
|
276
|
+
element.style.insetInlineEnd = `calc(${right}px - ${distance})`;
|
|
277
|
+
}
|
|
278
|
+
else if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('top')) {
|
|
279
|
+
const start = top - childHeight;
|
|
280
|
+
element.style.insetBlockStart = `calc(${start < 0 ? 0 : start}px - ${distance})`;
|
|
281
|
+
element.style.insetBlockEnd = `calc(${bottom}px - ${distance})`;
|
|
282
|
+
}
|
|
283
|
+
else if (correctedPlacement === null || correctedPlacement === void 0 ? void 0 : correctedPlacement.startsWith('bottom')) {
|
|
284
|
+
const end = bottom + childHeight;
|
|
285
|
+
element.style.insetBlockStart = `calc(${bottom}px + ${distance})`;
|
|
286
|
+
element.style.insetBlockEnd = `calc(${end > innerHeight ? innerHeight : end}px + ${distance})`;
|
|
287
|
+
}
|
|
288
|
+
element.style.position = 'fixed';
|
|
289
|
+
element.setAttribute('data-corrected-placement', correctedPlacement);
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export { handleDataOutside as a, handleFixedPopover as b, handleFixedDropdown as h };
|
|
293
|
+
//# sourceMappingURL=floating-components-DYeQU2bY.js.map
|
|
294
|
+
|
|
295
|
+
//# sourceMappingURL=floating-components-DYeQU2bY.js.map
|