@db-ux/wc-core-components 2.0.0-0-custom-select-16b8cce → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/db-accordion-item.cjs.entry.js +42 -8
- package/dist/cjs/db-accordion-item.cjs.entry.js.map +1 -1
- package/dist/cjs/db-accordion-item.entry.cjs.js.map +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +12 -12
- package/dist/cjs/db-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/db-accordion.entry.cjs.js.map +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +3 -3
- package/dist/cjs/db-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/db-badge.entry.cjs.js.map +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +3 -3
- package/dist/cjs/db-brand.cjs.entry.js.map +1 -1
- package/dist/cjs/db-brand.entry.cjs.js.map +1 -1
- package/dist/cjs/db-button.cjs.entry.js +7 -7
- package/dist/cjs/db-button.cjs.entry.js.map +1 -1
- package/dist/cjs/db-button.entry.cjs.js.map +1 -1
- package/dist/cjs/db-card.cjs.entry.js +7 -7
- package/dist/cjs/db-card.cjs.entry.js.map +1 -1
- package/dist/cjs/db-card.entry.cjs.js.map +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +59 -44
- package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js +78 -64
- package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select-form-field.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +203 -189
- package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +3 -3
- package/dist/cjs/db-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/db-divider.entry.cjs.js.map +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +8 -9
- package/dist/cjs/db-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/db-drawer.entry.cjs.js.map +1 -1
- package/dist/cjs/db-header.cjs.entry.js +13 -11
- package/dist/cjs/db-header.cjs.entry.js.map +1 -1
- package/dist/cjs/db-header.entry.cjs.js.map +1 -1
- package/dist/cjs/db-icon.cjs.entry.js +3 -3
- package/dist/cjs/db-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/db-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +3 -3
- package/dist/cjs/db-infotext.cjs.entry.js.map +1 -1
- package/dist/cjs/db-infotext.entry.cjs.js.map +1 -1
- package/dist/cjs/db-link.cjs.entry.js +7 -7
- package/dist/cjs/db-link.cjs.entry.js.map +1 -1
- package/dist/cjs/db-link.entry.cjs.js.map +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +26 -28
- package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -1
- package/dist/cjs/db-navigation.cjs.entry.js +4 -4
- package/dist/cjs/db-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/db-navigation.entry.cjs.js.map +1 -1
- package/dist/cjs/db-notification.cjs.entry.js +7 -7
- package/dist/cjs/db-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/db-notification.entry.cjs.js.map +1 -1
- package/dist/cjs/db-page.cjs.entry.js +4 -4
- package/dist/cjs/db-page.cjs.entry.js.map +1 -1
- package/dist/cjs/db-page.entry.cjs.js.map +1 -1
- package/dist/cjs/db-popover.cjs.entry.js +4 -4
- package/dist/cjs/db-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/db-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +10 -19
- package/dist/cjs/db-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/db-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/db-section.cjs.entry.js +4 -4
- package/dist/cjs/db-section.cjs.entry.js.map +1 -1
- package/dist/cjs/db-section.entry.cjs.js.map +1 -1
- package/dist/cjs/db-select.cjs.entry.js +70 -57
- package/dist/cjs/db-select.cjs.entry.js.map +1 -1
- package/dist/cjs/db-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-stack.cjs.entry.js +4 -4
- package/dist/cjs/db-stack.cjs.entry.js.map +1 -1
- package/dist/cjs/db-stack.entry.cjs.js.map +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +11 -20
- package/dist/cjs/db-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/db-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/db-tab-item.db-tab-list.db-tab-panel.entry.cjs.js.map +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +38 -17
- package/dist/cjs/db-tab-item_3.cjs.entry.js.map +1 -1
- package/dist/cjs/db-tabs.cjs.entry.js +24 -23
- package/dist/cjs/db-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/db-tabs.entry.cjs.js.map +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +60 -45
- package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/db-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/db-ux.cjs.js.map +1 -1
- package/dist/cjs/document-click-listener-CrbHspH2.js +37 -0
- package/dist/cjs/document-click-listener-CrbHspH2.js.map +1 -0
- package/dist/cjs/{index-DeqKGVDx.js → index-9h8KqOUd.js} +25 -7
- package/dist/cjs/index-9h8KqOUd.js.map +1 -0
- package/dist/cjs/{index-DBEtsnky.js → index-w2CAlvjJ.js} +6 -5
- package/dist/cjs/index-w2CAlvjJ.js.map +1 -0
- package/dist/cjs/index.cjs.js +6 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{navigation-Cfm1OFWB.js → navigation-DjZJIxIq.js} +3 -3
- package/dist/cjs/{navigation-Cfm1OFWB.js.map → navigation-DjZJIxIq.js.map} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.js +26 -25
- package/dist/collection/components/accordion/accordion.js.map +1 -1
- package/dist/collection/components/accordion/model.js.map +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +87 -17
- package/dist/collection/components/accordion-item/accordion-item.js.map +1 -1
- package/dist/collection/components/accordion-item/model.js.map +1 -1
- package/dist/collection/components/badge/badge.js +10 -10
- package/dist/collection/components/badge/badge.js.map +1 -1
- package/dist/collection/components/badge/model.js.map +1 -1
- package/dist/collection/components/brand/brand.js +9 -9
- package/dist/collection/components/brand/brand.js.map +1 -1
- package/dist/collection/components/button/button.js +57 -32
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/button/model.js.map +1 -1
- package/dist/collection/components/card/card.js +12 -12
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox.js +118 -166
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/checkbox/model.js.map +1 -1
- package/dist/collection/components/custom-select/custom-select.js +340 -335
- package/dist/collection/components/custom-select/custom-select.js.map +1 -1
- package/dist/collection/components/custom-select/model.js.map +1 -1
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +5 -5
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js.map +1 -1
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +4 -4
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js.map +1 -1
- package/dist/collection/components/custom-select-list/custom-select-list.js +6 -6
- package/dist/collection/components/custom-select-list/custom-select-list.js.map +1 -1
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +27 -52
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js.map +1 -1
- package/dist/collection/components/divider/divider.js +7 -7
- package/dist/collection/components/divider/divider.js.map +1 -1
- package/dist/collection/components/drawer/drawer.js +23 -24
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/model.js.map +1 -1
- package/dist/collection/components/header/header.js +22 -20
- package/dist/collection/components/header/header.js.map +1 -1
- package/dist/collection/components/header/model.js.map +1 -1
- package/dist/collection/components/icon/icon.js +7 -7
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/collection/components/infotext/infotext.js +10 -10
- package/dist/collection/components/infotext/infotext.js.map +1 -1
- package/dist/collection/components/input/input.js +218 -213
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/model.js.map +1 -1
- package/dist/collection/components/link/link.js +29 -29
- package/dist/collection/components/link/link.js.map +1 -1
- package/dist/collection/components/navigation/navigation.js +5 -5
- package/dist/collection/components/navigation/navigation.js.map +1 -1
- package/dist/collection/components/navigation-item/model.js.map +1 -1
- package/dist/collection/components/navigation-item/navigation-item.js +43 -43
- package/dist/collection/components/navigation-item/navigation-item.js.map +1 -1
- package/dist/collection/components/notification/model.js.map +1 -1
- package/dist/collection/components/notification/notification.js +32 -32
- package/dist/collection/components/notification/notification.js.map +1 -1
- package/dist/collection/components/page/model.js.map +1 -1
- package/dist/collection/components/page/page.js +10 -10
- package/dist/collection/components/page/page.js.map +1 -1
- package/dist/collection/components/popover/model.js.map +1 -1
- package/dist/collection/components/popover/popover.js +17 -17
- package/dist/collection/components/popover/popover.js.map +1 -1
- package/dist/collection/components/radio/radio.js +32 -110
- package/dist/collection/components/radio/radio.js.map +1 -1
- package/dist/collection/components/section/section.js +6 -6
- package/dist/collection/components/section/section.js.map +1 -1
- package/dist/collection/components/select/model.js.map +1 -1
- package/dist/collection/components/select/select.js +130 -203
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/stack/model.js.map +1 -1
- package/dist/collection/components/stack/stack.js +12 -12
- package/dist/collection/components/stack/stack.js.map +1 -1
- package/dist/collection/components/switch/model.js.map +1 -1
- package/dist/collection/components/switch/switch.js +39 -117
- package/dist/collection/components/switch/switch.js.map +1 -1
- package/dist/collection/components/tab-item/model.js.map +1 -1
- package/dist/collection/components/tab-item/tab-item.js +66 -40
- package/dist/collection/components/tab-item/tab-item.js.map +1 -1
- package/dist/collection/components/tab-list/tab-list.js +4 -4
- package/dist/collection/components/tab-list/tab-list.js.map +1 -1
- package/dist/collection/components/tab-panel/tab-panel.js +6 -6
- package/dist/collection/components/tab-panel/tab-panel.js.map +1 -1
- package/dist/collection/components/tabs/model.js.map +1 -1
- package/dist/collection/components/tabs/tabs.js +63 -62
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tag/model.js.map +1 -1
- package/dist/collection/components/tag/tag.js +27 -27
- package/dist/collection/components/tag/tag.js.map +1 -1
- package/dist/collection/components/textarea/model.js.map +1 -1
- package/dist/collection/components/textarea/textarea.js +171 -168
- package/dist/collection/components/textarea/textarea.js.map +1 -1
- package/dist/collection/components/tooltip/model.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +14 -14
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/shared/model.js +0 -1
- package/dist/collection/shared/model.js.map +1 -1
- package/dist/collection/utils/document-click-listener.js +30 -0
- package/dist/collection/utils/document-click-listener.js.map +1 -0
- package/dist/collection/utils/index.js +21 -21
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/custom-elements.json +2629 -1698
- package/dist/db-ux/db-accordion-item.entry.esm.js.map +1 -1
- package/dist/db-ux/db-accordion.entry.esm.js.map +1 -1
- package/dist/db-ux/db-badge.entry.esm.js.map +1 -1
- package/dist/db-ux/db-brand.entry.esm.js.map +1 -1
- package/dist/db-ux/db-button.entry.esm.js.map +1 -1
- package/dist/db-ux/db-card.entry.esm.js.map +1 -1
- package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select-form-field.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-divider.entry.esm.js.map +1 -1
- package/dist/db-ux/db-drawer.entry.esm.js.map +1 -1
- package/dist/db-ux/db-header.entry.esm.js.map +1 -1
- package/dist/db-ux/db-icon.entry.esm.js.map +1 -1
- package/dist/db-ux/db-infotext.entry.esm.js.map +1 -1
- package/dist/db-ux/db-link.entry.esm.js.map +1 -1
- package/dist/db-ux/db-navigation-item.entry.esm.js.map +1 -1
- package/dist/db-ux/db-navigation.entry.esm.js.map +1 -1
- package/dist/db-ux/db-notification.entry.esm.js.map +1 -1
- package/dist/db-ux/db-page.entry.esm.js.map +1 -1
- package/dist/db-ux/db-popover.entry.esm.js.map +1 -1
- package/dist/db-ux/db-radio.entry.esm.js.map +1 -1
- package/dist/db-ux/db-section.entry.esm.js.map +1 -1
- package/dist/db-ux/db-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-stack.entry.esm.js.map +1 -1
- package/dist/db-ux/db-switch.entry.esm.js.map +1 -1
- package/dist/db-ux/db-tab-item.db-tab-list.db-tab-panel.entry.esm.js.map +1 -1
- package/dist/db-ux/db-tabs.entry.esm.js.map +1 -1
- package/dist/db-ux/db-textarea.entry.esm.js.map +1 -1
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/db-ux.esm.js.map +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/index.esm.js.map +1 -1
- package/dist/db-ux/p-0c1b4216.entry.js +2 -0
- package/dist/db-ux/p-0c1b4216.entry.js.map +1 -0
- package/dist/db-ux/p-19ebdb92.entry.js +2 -0
- package/dist/db-ux/p-19ebdb92.entry.js.map +1 -0
- package/dist/db-ux/p-20f2efec.entry.js +2 -0
- package/dist/db-ux/p-20f2efec.entry.js.map +1 -0
- package/dist/db-ux/p-2ea85ed3.entry.js +2 -0
- package/dist/db-ux/p-2ea85ed3.entry.js.map +1 -0
- package/dist/db-ux/p-3d9cfe8d.entry.js +2 -0
- package/dist/db-ux/p-3d9cfe8d.entry.js.map +1 -0
- package/dist/db-ux/p-56fa0857.entry.js +2 -0
- package/dist/db-ux/p-56fa0857.entry.js.map +1 -0
- package/dist/db-ux/p-6f9de31b.entry.js +2 -0
- package/dist/db-ux/p-6f9de31b.entry.js.map +1 -0
- package/dist/db-ux/p-797ccaa9.entry.js +2 -0
- package/dist/db-ux/p-797ccaa9.entry.js.map +1 -0
- package/dist/db-ux/{p-0b9779be.entry.js → p-7bc56311.entry.js} +2 -2
- package/dist/db-ux/p-7bc56311.entry.js.map +1 -0
- package/dist/db-ux/p-828bb611.entry.js +2 -0
- package/dist/db-ux/p-828bb611.entry.js.map +1 -0
- package/dist/db-ux/{p-d10ee6dc.entry.js → p-84136093.entry.js} +2 -2
- package/dist/db-ux/p-84136093.entry.js.map +1 -0
- package/dist/db-ux/p-861c92ee.entry.js +2 -0
- package/dist/db-ux/p-861c92ee.entry.js.map +1 -0
- package/dist/db-ux/{p-0414dab3.entry.js → p-924110bd.entry.js} +2 -2
- package/dist/db-ux/p-924110bd.entry.js.map +1 -0
- package/dist/db-ux/p-96a0c7de.entry.js +2 -0
- package/dist/db-ux/p-96a0c7de.entry.js.map +1 -0
- package/dist/db-ux/p-B_W_wePN.js +2 -0
- package/dist/db-ux/p-B_W_wePN.js.map +1 -0
- package/dist/db-ux/p-BkYjDIed.js +3 -0
- package/dist/db-ux/p-BkYjDIed.js.map +1 -0
- package/dist/db-ux/{p-VkX3SW7K.js → p-Duz60W3r.js} +2 -2
- package/dist/db-ux/{p-VkX3SW7K.js.map → p-Duz60W3r.js.map} +1 -1
- package/dist/db-ux/p-TU0pfK1i.js +2 -0
- package/dist/db-ux/p-TU0pfK1i.js.map +1 -0
- package/dist/db-ux/p-a20f9b38.entry.js +2 -0
- package/dist/db-ux/p-a20f9b38.entry.js.map +1 -0
- package/dist/db-ux/{p-9a3c9ffe.entry.js → p-aad2b065.entry.js} +2 -2
- package/dist/db-ux/p-aad2b065.entry.js.map +1 -0
- package/dist/db-ux/p-abc1afa7.entry.js +2 -0
- package/dist/db-ux/p-abc1afa7.entry.js.map +1 -0
- package/dist/db-ux/p-b074eb7f.entry.js +2 -0
- package/dist/db-ux/p-b074eb7f.entry.js.map +1 -0
- package/dist/db-ux/p-b6821ac2.entry.js +2 -0
- package/dist/db-ux/p-b6821ac2.entry.js.map +1 -0
- package/dist/db-ux/p-b7cd9e31.entry.js +2 -0
- package/dist/db-ux/p-b7cd9e31.entry.js.map +1 -0
- package/dist/db-ux/p-b92bbd61.entry.js +2 -0
- package/dist/db-ux/p-b92bbd61.entry.js.map +1 -0
- package/dist/db-ux/p-bcb3d891.entry.js +2 -0
- package/dist/db-ux/p-bcb3d891.entry.js.map +1 -0
- package/dist/db-ux/{p-65983b83.entry.js → p-be35b5b4.entry.js} +2 -2
- package/dist/db-ux/p-be35b5b4.entry.js.map +1 -0
- package/dist/db-ux/p-d60822ce.entry.js +2 -0
- package/dist/db-ux/p-d60822ce.entry.js.map +1 -0
- package/dist/db-ux/p-dc71d000.entry.js +2 -0
- package/dist/db-ux/p-dc71d000.entry.js.map +1 -0
- package/dist/db-ux/p-e397a44c.entry.js +2 -0
- package/dist/db-ux/p-e397a44c.entry.js.map +1 -0
- package/dist/db-ux/p-e4f73b24.entry.js +2 -0
- package/dist/db-ux/p-e4f73b24.entry.js.map +1 -0
- package/dist/db-ux/p-e72a0bfe.entry.js +2 -0
- package/dist/db-ux/p-e72a0bfe.entry.js.map +1 -0
- package/dist/db-ux/p-fba19a3f.entry.js +2 -0
- package/dist/db-ux/p-fba19a3f.entry.js.map +1 -0
- package/dist/esm/db-accordion-item.entry.js +42 -8
- package/dist/esm/db-accordion-item.entry.js.map +1 -1
- package/dist/esm/db-accordion.entry.js +12 -12
- package/dist/esm/db-accordion.entry.js.map +1 -1
- package/dist/esm/db-badge.entry.js +3 -3
- package/dist/esm/db-badge.entry.js.map +1 -1
- package/dist/esm/db-brand.entry.js +3 -3
- package/dist/esm/db-brand.entry.js.map +1 -1
- package/dist/esm/db-button.entry.js +7 -7
- package/dist/esm/db-button.entry.js.map +1 -1
- package/dist/esm/db-card.entry.js +7 -7
- package/dist/esm/db-card.entry.js.map +1 -1
- package/dist/esm/db-checkbox.entry.js +60 -45
- package/dist/esm/db-checkbox.entry.js.map +1 -1
- package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.js.map +1 -1
- package/dist/esm/db-custom-select-dropdown_6.entry.js +79 -65
- package/dist/esm/db-custom-select-dropdown_6.entry.js.map +1 -1
- package/dist/esm/db-custom-select-form-field.entry.js +4 -4
- package/dist/esm/db-custom-select-form-field.entry.js.map +1 -1
- package/dist/esm/db-custom-select.entry.js +204 -190
- package/dist/esm/db-custom-select.entry.js.map +1 -1
- package/dist/esm/db-divider.entry.js +3 -3
- package/dist/esm/db-divider.entry.js.map +1 -1
- package/dist/esm/db-drawer.entry.js +8 -9
- package/dist/esm/db-drawer.entry.js.map +1 -1
- package/dist/esm/db-header.entry.js +13 -11
- package/dist/esm/db-header.entry.js.map +1 -1
- package/dist/esm/db-icon.entry.js +3 -3
- package/dist/esm/db-icon.entry.js.map +1 -1
- package/dist/esm/db-infotext.entry.js +3 -3
- package/dist/esm/db-infotext.entry.js.map +1 -1
- package/dist/esm/db-link.entry.js +7 -7
- package/dist/esm/db-link.entry.js.map +1 -1
- package/dist/esm/db-navigation-item.entry.js +26 -28
- package/dist/esm/db-navigation-item.entry.js.map +1 -1
- package/dist/esm/db-navigation.entry.js +4 -4
- package/dist/esm/db-navigation.entry.js.map +1 -1
- package/dist/esm/db-notification.entry.js +7 -7
- package/dist/esm/db-notification.entry.js.map +1 -1
- package/dist/esm/db-page.entry.js +4 -4
- package/dist/esm/db-page.entry.js.map +1 -1
- package/dist/esm/db-popover.entry.js +4 -4
- package/dist/esm/db-popover.entry.js.map +1 -1
- package/dist/esm/db-radio.entry.js +10 -19
- package/dist/esm/db-radio.entry.js.map +1 -1
- package/dist/esm/db-section.entry.js +4 -4
- package/dist/esm/db-section.entry.js.map +1 -1
- package/dist/esm/db-select.entry.js +71 -58
- package/dist/esm/db-select.entry.js.map +1 -1
- package/dist/esm/db-stack.entry.js +4 -4
- package/dist/esm/db-stack.entry.js.map +1 -1
- package/dist/esm/db-switch.entry.js +11 -20
- package/dist/esm/db-switch.entry.js.map +1 -1
- package/dist/esm/db-tab-item.db-tab-list.db-tab-panel.entry.js.map +1 -1
- package/dist/esm/db-tab-item_3.entry.js +38 -17
- package/dist/esm/db-tab-item_3.entry.js.map +1 -1
- package/dist/esm/db-tabs.entry.js +24 -23
- package/dist/esm/db-tabs.entry.js.map +1 -1
- package/dist/esm/db-textarea.entry.js +61 -46
- package/dist/esm/db-textarea.entry.js.map +1 -1
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/db-ux.js.map +1 -1
- package/dist/esm/document-click-listener-B2jDrCt8.js +35 -0
- package/dist/esm/document-click-listener-B2jDrCt8.js.map +1 -0
- package/dist/esm/{index-D-D8lQAG.js → index-BkYjDIed.js} +6 -5
- package/dist/esm/index-BkYjDIed.js.map +1 -0
- package/dist/esm/{index-fw8E73KY.js → index-TU0pfK1i.js} +24 -8
- package/dist/esm/index-TU0pfK1i.js.map +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{navigation-1ba3zvi0.js → navigation-BjeAmWrQ.js} +3 -3
- package/dist/esm/{navigation-1ba3zvi0.js.map → navigation-BjeAmWrQ.js.map} +1 -1
- package/dist/types/components/accordion/accordion.d.ts +2 -2
- package/dist/types/components/accordion/model.d.ts +2 -2
- package/dist/types/components/accordion-item/accordion-item.d.ts +11 -2
- package/dist/types/components/accordion-item/model.d.ts +5 -5
- package/dist/types/components/badge/model.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +3 -1
- package/dist/types/components/button/model.d.ts +11 -7
- package/dist/types/components/card/card.d.ts +2 -1
- package/dist/types/components/checkbox/checkbox.d.ts +13 -10
- package/dist/types/components/checkbox/model.d.ts +3 -3
- package/dist/types/components/custom-select/custom-select.d.ts +18 -15
- package/dist/types/components/custom-select/model.d.ts +49 -29
- package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +2 -2
- package/dist/types/components/drawer/drawer.d.ts +2 -1
- package/dist/types/components/drawer/model.d.ts +2 -2
- package/dist/types/components/header/header.d.ts +3 -2
- package/dist/types/components/header/model.d.ts +2 -2
- package/dist/types/components/input/input.d.ts +19 -14
- package/dist/types/components/input/model.d.ts +3 -3
- package/dist/types/components/link/link.d.ts +2 -1
- package/dist/types/components/navigation-item/model.d.ts +2 -3
- package/dist/types/components/navigation-item/navigation-item.d.ts +4 -4
- package/dist/types/components/notification/model.d.ts +3 -3
- package/dist/types/components/notification/notification.d.ts +3 -2
- package/dist/types/components/page/model.d.ts +1 -1
- package/dist/types/components/popover/model.d.ts +1 -1
- package/dist/types/components/radio/radio.d.ts +7 -9
- package/dist/types/components/select/model.d.ts +2 -2
- package/dist/types/components/select/select.d.ts +18 -16
- package/dist/types/components/stack/model.d.ts +1 -1
- package/dist/types/components/switch/model.d.ts +2 -2
- package/dist/types/components/switch/switch.d.ts +4 -6
- package/dist/types/components/tab-item/model.d.ts +6 -6
- package/dist/types/components/tab-item/tab-item.d.ts +8 -3
- package/dist/types/components/tabs/model.d.ts +11 -3
- package/dist/types/components/tabs/tabs.d.ts +5 -4
- package/dist/types/components/tag/model.d.ts +9 -5
- package/dist/types/components/tag/tag.d.ts +2 -1
- package/dist/types/components/textarea/model.d.ts +4 -4
- package/dist/types/components/textarea/textarea.d.ts +17 -12
- package/dist/types/components/tooltip/model.d.ts +1 -1
- package/dist/types/components.d.ts +96 -124
- package/dist/types/shared/model.d.ts +56 -31
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/dist/types/utils/document-click-listener.d.ts +8 -0
- package/dist/types/utils/index.d.ts +5 -28
- package/dist/vscode.html-custom-data.json +143 -122
- package/dist/web-types.json +803 -475
- package/package.json +4 -4
- package/dist/cjs/index-DBEtsnky.js.map +0 -1
- package/dist/cjs/index-DeqKGVDx.js.map +0 -1
- package/dist/db-ux/p-0414dab3.entry.js.map +0 -1
- package/dist/db-ux/p-05505797.entry.js +0 -2
- package/dist/db-ux/p-05505797.entry.js.map +0 -1
- package/dist/db-ux/p-0b9779be.entry.js.map +0 -1
- package/dist/db-ux/p-1799c085.entry.js +0 -2
- package/dist/db-ux/p-1799c085.entry.js.map +0 -1
- package/dist/db-ux/p-30261cf0.entry.js +0 -2
- package/dist/db-ux/p-30261cf0.entry.js.map +0 -1
- package/dist/db-ux/p-43f2df95.entry.js +0 -2
- package/dist/db-ux/p-43f2df95.entry.js.map +0 -1
- package/dist/db-ux/p-463c100b.entry.js +0 -2
- package/dist/db-ux/p-463c100b.entry.js.map +0 -1
- package/dist/db-ux/p-4cf2c595.entry.js +0 -2
- package/dist/db-ux/p-4cf2c595.entry.js.map +0 -1
- package/dist/db-ux/p-56a39c64.entry.js +0 -2
- package/dist/db-ux/p-56a39c64.entry.js.map +0 -1
- package/dist/db-ux/p-5ceb34d7.entry.js +0 -2
- package/dist/db-ux/p-5ceb34d7.entry.js.map +0 -1
- package/dist/db-ux/p-65983b83.entry.js.map +0 -1
- package/dist/db-ux/p-6e1aa320.entry.js +0 -2
- package/dist/db-ux/p-6e1aa320.entry.js.map +0 -1
- package/dist/db-ux/p-70b6a633.entry.js +0 -2
- package/dist/db-ux/p-70b6a633.entry.js.map +0 -1
- package/dist/db-ux/p-72cbf9ff.entry.js +0 -2
- package/dist/db-ux/p-72cbf9ff.entry.js.map +0 -1
- package/dist/db-ux/p-7346f78f.entry.js +0 -2
- package/dist/db-ux/p-7346f78f.entry.js.map +0 -1
- package/dist/db-ux/p-7b3689ea.entry.js +0 -2
- package/dist/db-ux/p-7b3689ea.entry.js.map +0 -1
- package/dist/db-ux/p-93ee59f3.entry.js +0 -2
- package/dist/db-ux/p-93ee59f3.entry.js.map +0 -1
- package/dist/db-ux/p-969ce4ec.entry.js +0 -2
- package/dist/db-ux/p-969ce4ec.entry.js.map +0 -1
- package/dist/db-ux/p-97cfc836.entry.js +0 -2
- package/dist/db-ux/p-97cfc836.entry.js.map +0 -1
- package/dist/db-ux/p-9a3c9ffe.entry.js.map +0 -1
- package/dist/db-ux/p-D-D8lQAG.js +0 -3
- package/dist/db-ux/p-D-D8lQAG.js.map +0 -1
- package/dist/db-ux/p-a2f461ee.entry.js +0 -2
- package/dist/db-ux/p-a2f461ee.entry.js.map +0 -1
- package/dist/db-ux/p-acca879a.entry.js +0 -2
- package/dist/db-ux/p-acca879a.entry.js.map +0 -1
- package/dist/db-ux/p-b09d7817.entry.js +0 -2
- package/dist/db-ux/p-b09d7817.entry.js.map +0 -1
- package/dist/db-ux/p-b858ced9.entry.js +0 -2
- package/dist/db-ux/p-b858ced9.entry.js.map +0 -1
- package/dist/db-ux/p-bb06aac0.entry.js +0 -2
- package/dist/db-ux/p-bb06aac0.entry.js.map +0 -1
- package/dist/db-ux/p-d10ee6dc.entry.js.map +0 -1
- package/dist/db-ux/p-d4d01646.entry.js +0 -2
- package/dist/db-ux/p-d4d01646.entry.js.map +0 -1
- package/dist/db-ux/p-e393938c.entry.js +0 -2
- package/dist/db-ux/p-e393938c.entry.js.map +0 -1
- package/dist/db-ux/p-ea7da771.entry.js +0 -2
- package/dist/db-ux/p-ea7da771.entry.js.map +0 -1
- package/dist/db-ux/p-fw8E73KY.js +0 -2
- package/dist/db-ux/p-fw8E73KY.js.map +0 -1
- package/dist/esm/index-D-D8lQAG.js.map +0 -1
- package/dist/esm/index-fw8E73KY.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../src/components/notification/notification.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../src/components/notification/notification.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAG9E,OAAO,EACL,SAAS,EACT,CAAC,EAED,KAAK,EAEL,IAAI,GACL,MAAM,eAAe,CAAC;AAGvB;;;;GAIG;AAIH,MAAM,OAAO,cAAc;IAsBzB,WAAW,CAAC,KAA0C;QACpD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChC,IACE,IAAI;oBACJ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,IAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBNotificationProps, DBNotificationState } from \"./model\";\nimport { DBButton } from \"../button/button\";\nimport { DEFAULT_CLOSE_BUTTON } from \"../../shared/constants\";\nimport { cls, getBoolean, getHideProp, stringPropVisible } from \"../../utils\";\nimport { ClickEvent } from \"../../shared/model\";\n\nimport {\n Component,\n h,\n Fragment,\n Event,\n EventEmitter,\n Prop,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n * @slot image - TODO: Add description for slotImage\n * @slot link - TODO: Add description for slotLink\n */\n @Component({\n tag: \"db-notification\",\n})\nexport class DBNotification {\n private _ref!: HTMLDivElement | any;\n @Event() close: EventEmitter<\n Parameters<Required<DBNotificationProps>[\"onClose\"]>[number]\n > | void;\n @Prop() id: DBNotificationProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBNotificationProps[\"className\"];\n @Prop() ariaLive: DBNotificationProps[\"ariaLive\"];\n @Prop() semantic: DBNotificationProps[\"semantic\"];\n @Prop() variant: DBNotificationProps[\"variant\"];\n @Prop() icon: DBNotificationProps[\"icon\"];\n @Prop() showIcon: DBNotificationProps[\"showIcon\"];\n @Prop() linkVariant: DBNotificationProps[\"linkVariant\"];\n @Prop() headline: DBNotificationProps[\"headline\"];\n @Prop() showHeadline: DBNotificationProps[\"showHeadline\"];\n @Prop() text: DBNotificationProps[\"text\"];\n @Prop() timestamp: DBNotificationProps[\"timestamp\"];\n @Prop() showTimestamp: DBNotificationProps[\"showTimestamp\"];\n @Prop() closeable: DBNotificationProps[\"closeable\"];\n @Prop() closeButtonId: DBNotificationProps[\"closeButtonId\"];\n @Prop() closeButtonText: DBNotificationProps[\"closeButtonText\"];\n\n handleClose(event: ClickEvent<HTMLButtonElement> | any) {\n if (this.close) {\n this.close.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: HTMLElement | 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 componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-notification\");\n }\n\n render() {\n return (\n <article\n class={cls(\"db-notification\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n aria-live={this.ariaLive}\n data-semantic={this.semantic}\n data-variant={this.variant}\n data-icon={this.icon}\n data-hide-icon={getHideProp(this.showIcon)}\n data-link-variant={this.linkVariant}\n >\n <slot name=\"image\"></slot>\n {stringPropVisible(this.headline, this.showHeadline) ? (\n <header>{this.headline}</header>\n ) : null}\n <p>{this.text ? this.text : <slot></slot>}</p>\n {stringPropVisible(this.timestamp, this.showTimestamp) ? (\n <span>{this.timestamp}</span>\n ) : null}\n <slot name=\"link\"></slot>\n {getBoolean(this.closeable, \"closeable\") ? (\n <db-button\n icon=\"cross\"\n variant=\"ghost\"\n size=\"small\"\n id={this.closeButtonId}\n noText={true}\n onClick={(event) => this.handleClose(event)}\n >\n {this.closeButtonText ?? DEFAULT_CLOSE_BUTTON}\n </db-button>\n ) : null}\n </article>\n );\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/page/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AAE1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAU,CAAC","sourcesContent":["import { GlobalProps, GlobalState } from '../../shared/model';\nexport const PageVariantList = ['auto', 'fixed'] as const;\nexport type PageVariantType = (typeof PageVariantList)[number];\nexport const PageDocumentOverflowList = ['hidden', 'auto'] as const;\nexport type PageDocumentOverflowType = (typeof PageDocumentOverflowList)[number];\nexport type DBPageDefaultProps = {\n /**\n * The documentOverflow sets the overflow:hidden/auto to the root document\n */\n documentOverflow?: PageDocumentOverflowType;\n /**\n * Set this to have a transition with opacity to avoid layout-shifts https://simonhearne.com/2021/layout-shifts-webfonts/\n */\n fadeIn?: boolean;\n\n /**\n * The slot can be used for React to set a footer.\n */\n footer?: any;\n /**\n * The slot can be used for React to set a header.\n */\n header?: any;\n\n /**\n * Adds `class` to `<main>` element\n */\n mainClass?: string;\n\n /**\n * The variant=fixed uses flex-box to make header and footer static\n */\n variant?: PageVariantType;\n};\nexport type DBPageProps = DBPageDefaultProps & GlobalProps;\nexport type DBPageDefaultState = {\n fontsLoaded?: boolean;\n};\nexport type DBPageState = DBPageDefaultState & GlobalState"]}
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/page/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AAE1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAU,CAAC","sourcesContent":["import { GlobalProps, GlobalState } from '../../shared/model';\nexport const PageVariantList = ['auto', 'fixed'] as const;\nexport type PageVariantType = (typeof PageVariantList)[number];\nexport const PageDocumentOverflowList = ['hidden', 'auto'] as const;\nexport type PageDocumentOverflowType = (typeof PageDocumentOverflowList)[number];\nexport type DBPageDefaultProps = {\n /**\n * The documentOverflow sets the overflow:hidden/auto to the root document\n */\n documentOverflow?: PageDocumentOverflowType;\n /**\n * Set this to have a transition with opacity to avoid layout-shifts https://simonhearne.com/2021/layout-shifts-webfonts/\n */\n fadeIn?: boolean | string;\n\n /**\n * The slot can be used for React to set a footer.\n */\n footer?: any;\n /**\n * The slot can be used for React to set a header.\n */\n header?: any;\n\n /**\n * Adds `class` to `<main>` element\n */\n mainClass?: string;\n\n /**\n * The variant=fixed uses flex-box to make header and footer static\n */\n variant?: PageVariantType;\n};\nexport type DBPageProps = DBPageDefaultProps & GlobalProps;\nexport type DBPageDefaultState = {\n fontsLoaded?: boolean;\n};\nexport type DBPageState = DBPageDefaultState & GlobalState"]}
|
|
@@ -61,19 +61,20 @@ export class DBPage {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h("div", { key: '
|
|
64
|
+
return (h("div", { key: 'c94b9840013c227ce38cfe21391d287fc0a89f6c', class: cls("db-page", this.className), ref: (el) => {
|
|
65
65
|
this._ref = el;
|
|
66
|
-
}, id: this.id, "data-variant": this.variant, "data-fade-in": this.fadeIn, "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '
|
|
66
|
+
}, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '2f8142be3eb631f6af14ef1ff561699d18facb5e', name: "header" }), h("main", { key: '7cfc82fa914ef92140b93d5ce265a33129f5ed37', class: cls("db-main", this.mainClass) }, h("slot", { key: '1db431f209c21045733755fdac9c1930bad30eb7' })), h("slot", { key: 'da7861f0d5edd4cf76a117b615771b8660d13026', name: "footer" })));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "db-page"; }
|
|
69
69
|
static get properties() {
|
|
70
70
|
return {
|
|
71
71
|
"fadeIn": {
|
|
72
|
-
"type": "
|
|
72
|
+
"type": "any",
|
|
73
|
+
"attribute": "fade-in",
|
|
73
74
|
"mutable": false,
|
|
74
75
|
"complexType": {
|
|
75
76
|
"original": "DBPageProps[\"fadeIn\"]",
|
|
76
|
-
"resolved": "boolean",
|
|
77
|
+
"resolved": "boolean | string",
|
|
77
78
|
"references": {
|
|
78
79
|
"DBPageProps": {
|
|
79
80
|
"location": "import",
|
|
@@ -90,11 +91,11 @@ export class DBPage {
|
|
|
90
91
|
},
|
|
91
92
|
"getter": false,
|
|
92
93
|
"setter": false,
|
|
93
|
-
"attribute": "fade-in",
|
|
94
94
|
"reflect": false
|
|
95
95
|
},
|
|
96
96
|
"documentOverflow": {
|
|
97
97
|
"type": "string",
|
|
98
|
+
"attribute": "document-overflow",
|
|
98
99
|
"mutable": false,
|
|
99
100
|
"complexType": {
|
|
100
101
|
"original": "DBPageProps[\"documentOverflow\"]",
|
|
@@ -115,11 +116,11 @@ export class DBPage {
|
|
|
115
116
|
},
|
|
116
117
|
"getter": false,
|
|
117
118
|
"setter": false,
|
|
118
|
-
"attribute": "document-overflow",
|
|
119
119
|
"reflect": false
|
|
120
120
|
},
|
|
121
121
|
"variant": {
|
|
122
122
|
"type": "string",
|
|
123
|
+
"attribute": "variant",
|
|
123
124
|
"mutable": false,
|
|
124
125
|
"complexType": {
|
|
125
126
|
"original": "DBPageProps[\"variant\"]",
|
|
@@ -140,11 +141,11 @@ export class DBPage {
|
|
|
140
141
|
},
|
|
141
142
|
"getter": false,
|
|
142
143
|
"setter": false,
|
|
143
|
-
"attribute": "variant",
|
|
144
144
|
"reflect": false
|
|
145
145
|
},
|
|
146
146
|
"id": {
|
|
147
147
|
"type": "string",
|
|
148
|
+
"attribute": "id",
|
|
148
149
|
"mutable": false,
|
|
149
150
|
"complexType": {
|
|
150
151
|
"original": "DBPageProps[\"id\"]",
|
|
@@ -165,11 +166,11 @@ export class DBPage {
|
|
|
165
166
|
},
|
|
166
167
|
"getter": false,
|
|
167
168
|
"setter": false,
|
|
168
|
-
"attribute": "id",
|
|
169
169
|
"reflect": false
|
|
170
170
|
},
|
|
171
171
|
"className": {
|
|
172
172
|
"type": "string",
|
|
173
|
+
"attribute": "classname",
|
|
173
174
|
"mutable": false,
|
|
174
175
|
"complexType": {
|
|
175
176
|
"original": "DBPageProps[\"className\"]",
|
|
@@ -190,11 +191,11 @@ export class DBPage {
|
|
|
190
191
|
},
|
|
191
192
|
"getter": false,
|
|
192
193
|
"setter": false,
|
|
193
|
-
"attribute": "classname",
|
|
194
194
|
"reflect": false
|
|
195
195
|
},
|
|
196
196
|
"mainClass": {
|
|
197
197
|
"type": "string",
|
|
198
|
+
"attribute": "main-class",
|
|
198
199
|
"mutable": false,
|
|
199
200
|
"complexType": {
|
|
200
201
|
"original": "DBPageProps[\"mainClass\"]",
|
|
@@ -215,7 +216,6 @@ export class DBPage {
|
|
|
215
216
|
},
|
|
216
217
|
"getter": false,
|
|
217
218
|
"setter": false,
|
|
218
|
-
"attribute": "main-class",
|
|
219
219
|
"reflect": false
|
|
220
220
|
}
|
|
221
221
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../src/components/page/page.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,IAAI,EAAE,KAAK,EAA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M,CAAC,kBAAkB,CAAC,CAAC;QAChE,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DACE,KAAK,EAAE,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,EACrC,GAAG,EAAE,CAAC,EAAO,EAAE,EAAE;gBACf,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;YACjB,CAAC,EACD,EAAE,EAAE,IAAI,CAAC,EAAE,kBACG,IAAI,CAAC,OAAO,kBACZ,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,uBAC1B,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC;YAEvD,6DAAM,IAAI,EAAC,QAAQ,GAAQ;YAC3B,6DAAM,KAAK,EAAE,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;gBACzC,8DAAa,CACR;YACP,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBPageProps, DBPageState } from \"./model\";\nimport { cls, getBooleanAsString } from \"../../utils\";\n\nimport { Component, h, Fragment, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n * @slot header - TODO: Add description for slotHeader\n * @slot footer - TODO: Add description for slotFooter\n */\n @Component({\n tag: \"db-page\",\n})\nexport class DBPage {\n private _ref!: HTMLDivElement | any;\n @Prop() fadeIn: DBPageProps[\"fadeIn\"];\n @Prop() documentOverflow: DBPageProps[\"documentOverflow\"];\n @Prop() variant: DBPageProps[\"variant\"];\n @Prop() id: DBPageProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBPageProps[\"className\"];\n @Prop() mainClass: DBPageProps[\"mainClass\"];\n @State() fontsLoaded = false;\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: HTMLElement | 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 componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-page\");\n this.fontsLoaded = !this.fadeIn;\n if (document && this.fadeIn) {\n document.fonts.ready.then(() => {\n this.fontsLoaded = true;\n });\n } else {\n this.fontsLoaded = true;\n }\n }\n disconnectedCallback() {\n if (\n typeof window !== \"undefined\" &&\n document.documentElement.classList.contains(\"db-page-document\")\n ) {\n // remove document styles set by this\n document.documentElement.classList.remove(\"db-page-document\");\n }\n }\n\n render() {\n return (\n <div\n class={cls(\"db-page\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-variant={this.variant}\n data-fade-in={getBooleanAsString(this.fadeIn)}\n data-fonts-loaded={getBooleanAsString(this.fontsLoaded)}\n >\n <slot name=\"header\"></slot>\n <main class={cls(\"db-main\", this.mainClass)}>\n <slot></slot>\n </main>\n <slot name=\"footer\"></slot>\n </div>\n );\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/popover/model.ts"],"names":[],"mappings":"","sourcesContent":["import { GapProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, SpacingProps } from '../../shared/model';\nexport type DBPopoverDefaultProps = {\n /**\n * Use open to disable the default hover/focus behavior to use it on click or other trigger.\n */\n open?: boolean;\n\n /**\n * The trigger to open the popover e.g. a button\n */\n trigger?: any;\n};\nexport type DBPopoverProps = DBPopoverDefaultProps & GlobalProps & SpacingProps & PlacementProps & GapProps & PopoverProps;\nexport type DBPopoverDefaultState = {\n isExpanded?: boolean;\n getTrigger: () => Element | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n handleLeave: (event: any) => void;\n};\nexport type DBPopoverState = DBPopoverDefaultState & GlobalState & PopoverState & InitializedState"]}
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/popover/model.ts"],"names":[],"mappings":"","sourcesContent":["import { GapProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState, SpacingProps } from '../../shared/model';\nexport type DBPopoverDefaultProps = {\n /**\n * Use open to disable the default hover/focus behavior to use it on click or other trigger.\n */\n open?: boolean | string;\n\n /**\n * The trigger to open the popover e.g. a button\n */\n trigger?: any;\n};\nexport type DBPopoverProps = DBPopoverDefaultProps & GlobalProps & SpacingProps & PlacementProps & GapProps & PopoverProps;\nexport type DBPopoverDefaultState = {\n isExpanded?: boolean;\n getTrigger: () => Element | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n handleLeave: (event: any) => void;\n};\nexport type DBPopoverState = DBPopoverDefaultState & GlobalState & PopoverState & InitializedState"]}
|
|
@@ -110,15 +110,16 @@ export class DBPopover {
|
|
|
110
110
|
}
|
|
111
111
|
render() {
|
|
112
112
|
var _a;
|
|
113
|
-
return (h("div", { key: '
|
|
113
|
+
return (h("div", { key: 'dd9a109cf9822c400063e906005cb7e4a0d77246', class: cls("db-popover", this.className), ref: (el) => {
|
|
114
114
|
this._ref = el;
|
|
115
|
-
}, id: this.id, onFocus: () => this.handleAutoPlacement(), onBlur: (event) => this.handleLeave(event), onMouseEnter: () => this.handleAutoPlacement(), onMouseLeave: (event) => this.handleLeave(event) }, h("slot", { key: '
|
|
115
|
+
}, id: this.id, onFocus: () => this.handleAutoPlacement(), onBlur: (event) => this.handleLeave(event), onMouseEnter: () => this.handleAutoPlacement(), onMouseLeave: (event) => this.handleLeave(event) }, h("slot", { key: '464ed37c74a82835b651477c0037755787d5a589', name: "trigger" }), h("article", { key: '6aaa12138b4a48fa29778beb48394ed32f95b0bf', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: 'c0e8fdce2d08f6f7614a6fefc9372d3b506fe2a4' }))));
|
|
116
116
|
}
|
|
117
117
|
static get is() { return "db-popover"; }
|
|
118
118
|
static get properties() {
|
|
119
119
|
return {
|
|
120
120
|
"id": {
|
|
121
121
|
"type": "string",
|
|
122
|
+
"attribute": "id",
|
|
122
123
|
"mutable": false,
|
|
123
124
|
"complexType": {
|
|
124
125
|
"original": "DBPopoverProps[\"id\"]",
|
|
@@ -139,11 +140,11 @@ export class DBPopover {
|
|
|
139
140
|
},
|
|
140
141
|
"getter": false,
|
|
141
142
|
"setter": false,
|
|
142
|
-
"attribute": "id",
|
|
143
143
|
"reflect": false
|
|
144
144
|
},
|
|
145
145
|
"className": {
|
|
146
146
|
"type": "string",
|
|
147
|
+
"attribute": "classname",
|
|
147
148
|
"mutable": false,
|
|
148
149
|
"complexType": {
|
|
149
150
|
"original": "DBPopoverProps[\"className\"]",
|
|
@@ -164,11 +165,11 @@ export class DBPopover {
|
|
|
164
165
|
},
|
|
165
166
|
"getter": false,
|
|
166
167
|
"setter": false,
|
|
167
|
-
"attribute": "classname",
|
|
168
168
|
"reflect": false
|
|
169
169
|
},
|
|
170
170
|
"spacing": {
|
|
171
171
|
"type": "string",
|
|
172
|
+
"attribute": "spacing",
|
|
172
173
|
"mutable": false,
|
|
173
174
|
"complexType": {
|
|
174
175
|
"original": "DBPopoverProps[\"spacing\"]",
|
|
@@ -189,15 +190,15 @@ export class DBPopover {
|
|
|
189
190
|
},
|
|
190
191
|
"getter": false,
|
|
191
192
|
"setter": false,
|
|
192
|
-
"attribute": "spacing",
|
|
193
193
|
"reflect": false
|
|
194
194
|
},
|
|
195
195
|
"gap": {
|
|
196
|
-
"type": "
|
|
196
|
+
"type": "any",
|
|
197
|
+
"attribute": "gap",
|
|
197
198
|
"mutable": false,
|
|
198
199
|
"complexType": {
|
|
199
200
|
"original": "DBPopoverProps[\"gap\"]",
|
|
200
|
-
"resolved": "boolean",
|
|
201
|
+
"resolved": "boolean | string",
|
|
201
202
|
"references": {
|
|
202
203
|
"DBPopoverProps": {
|
|
203
204
|
"location": "import",
|
|
@@ -214,15 +215,15 @@ export class DBPopover {
|
|
|
214
215
|
},
|
|
215
216
|
"getter": false,
|
|
216
217
|
"setter": false,
|
|
217
|
-
"attribute": "gap",
|
|
218
218
|
"reflect": false
|
|
219
219
|
},
|
|
220
220
|
"animation": {
|
|
221
|
-
"type": "
|
|
221
|
+
"type": "any",
|
|
222
|
+
"attribute": "animation",
|
|
222
223
|
"mutable": false,
|
|
223
224
|
"complexType": {
|
|
224
225
|
"original": "DBPopoverProps[\"animation\"]",
|
|
225
|
-
"resolved": "boolean",
|
|
226
|
+
"resolved": "boolean | string",
|
|
226
227
|
"references": {
|
|
227
228
|
"DBPopoverProps": {
|
|
228
229
|
"location": "import",
|
|
@@ -239,15 +240,15 @@ export class DBPopover {
|
|
|
239
240
|
},
|
|
240
241
|
"getter": false,
|
|
241
242
|
"setter": false,
|
|
242
|
-
"attribute": "animation",
|
|
243
243
|
"reflect": false
|
|
244
244
|
},
|
|
245
245
|
"open": {
|
|
246
|
-
"type": "
|
|
246
|
+
"type": "any",
|
|
247
|
+
"attribute": "open",
|
|
247
248
|
"mutable": false,
|
|
248
249
|
"complexType": {
|
|
249
250
|
"original": "DBPopoverProps[\"open\"]",
|
|
250
|
-
"resolved": "boolean",
|
|
251
|
+
"resolved": "boolean | string",
|
|
251
252
|
"references": {
|
|
252
253
|
"DBPopoverProps": {
|
|
253
254
|
"location": "import",
|
|
@@ -264,11 +265,11 @@ export class DBPopover {
|
|
|
264
265
|
},
|
|
265
266
|
"getter": false,
|
|
266
267
|
"setter": false,
|
|
267
|
-
"attribute": "open",
|
|
268
268
|
"reflect": false
|
|
269
269
|
},
|
|
270
270
|
"delay": {
|
|
271
271
|
"type": "string",
|
|
272
|
+
"attribute": "delay",
|
|
272
273
|
"mutable": false,
|
|
273
274
|
"complexType": {
|
|
274
275
|
"original": "DBPopoverProps[\"delay\"]",
|
|
@@ -289,11 +290,11 @@ export class DBPopover {
|
|
|
289
290
|
},
|
|
290
291
|
"getter": false,
|
|
291
292
|
"setter": false,
|
|
292
|
-
"attribute": "delay",
|
|
293
293
|
"reflect": false
|
|
294
294
|
},
|
|
295
295
|
"width": {
|
|
296
296
|
"type": "string",
|
|
297
|
+
"attribute": "width",
|
|
297
298
|
"mutable": false,
|
|
298
299
|
"complexType": {
|
|
299
300
|
"original": "DBPopoverProps[\"width\"]",
|
|
@@ -314,11 +315,11 @@ export class DBPopover {
|
|
|
314
315
|
},
|
|
315
316
|
"getter": false,
|
|
316
317
|
"setter": false,
|
|
317
|
-
"attribute": "width",
|
|
318
318
|
"reflect": false
|
|
319
319
|
},
|
|
320
320
|
"placement": {
|
|
321
321
|
"type": "string",
|
|
322
|
+
"attribute": "placement",
|
|
322
323
|
"mutable": false,
|
|
323
324
|
"complexType": {
|
|
324
325
|
"original": "DBPopoverProps[\"placement\"]",
|
|
@@ -339,7 +340,6 @@ export class DBPopover {
|
|
|
339
340
|
},
|
|
340
341
|
"getter": false,
|
|
341
342
|
"setter": false,
|
|
342
|
-
"attribute": "placement",
|
|
343
343
|
"reflect": false
|
|
344
344
|
}
|
|
345
345
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3E;;;GAGG;AAIH,MAAM,OAAO,SAAS;IAHrB;
|
|
1
|
+
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3E;;;GAGG;AAIH,MAAM,OAAO,SAAS;IAHrB;QAcU,gBAAW,GAAG,KAAK,CAAC;QACpB,eAAU,GAAG,KAAK,CAAC;KAkJ7B;IAhJC,mBAAmB;QACjB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAO;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO;YAAE,OAAO;QACrB,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IACD,WAAW,CAAC,KAAU;QACpB,MAAM,OAAO,GAAG,KAAK,CAAC,MAAqB,CAAC;QAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;QAClC,IACE,CAAC,MAAM;YACP,CAAC,OAAO,CAAC,U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,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YAEhD,6DAAM,IAAI,EAAC,SAAS,GAAQ;YAC5B,gEACE,KAAK,EAAC,oBAAoB,kBACZ,IAAI,CAAC,OAAO,cAChB,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,oBACtB,kBAAkB,CAAC,MAAA,IAAI,CAAC,SAAS,mCAAI,IAAI,CAAC,eAC/C,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAC5B,IAAI,CAAC,KAAK,gBACV,IAAI,CAAC,KAAK,oBACN,IAAI,CAAC,SAAS;gBAE9B,8DAAa,CACL,CACN,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBPopoverProps, DBPopoverState } from \"./model\";\nimport { cls, getBooleanAsString, handleDataOutside } from \"../../utils\";\n\nimport { Component, h, Fragment, Watch, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n * @slot trigger - TODO: Add description for slotTrigger\n */\n @Component({\n tag: \"db-popover\",\n})\nexport class DBPopover {\n private _ref!: HTMLDivElement | any;\n @Prop() id: DBPopoverProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBPopoverProps[\"className\"];\n @Prop() spacing: DBPopoverProps[\"spacing\"];\n @Prop() gap: DBPopoverProps[\"gap\"];\n @Prop() animation: DBPopoverProps[\"animation\"];\n @Prop() open: DBPopoverProps[\"open\"];\n @Prop() delay: DBPopoverProps[\"delay\"];\n @Prop() width: DBPopoverProps[\"width\"];\n @Prop() placement: DBPopoverProps[\"placement\"];\n @State() initialized = false;\n @State() isExpanded = false;\n\n handleAutoPlacement() {\n this.isExpanded = true;\n if (!this._ref) return;\n const article = this._ref.querySelector(\"article\");\n if (!article) return;\n handleDataOutside(article);\n }\n handleLeave(event: any) {\n const element = event.target as HTMLElement;\n const parent = element.parentNode;\n if (\n !parent ||\n (element.parentNode.querySelector(\":focus\") !== element &&\n element.parentNode.querySelector(\":focus-within\") !== element &&\n element.parentNode.querySelector(\":hover\") !== element)\n ) {\n this.isExpanded = false;\n }\n }\n getTrigger() {\n if (this._ref) {\n const children: Element[] = Array.from(this._ref.children);\n if (children.length >= 2) {\n const firstChild = children[0];\n if (firstChild.tagName.includes(\"-\")) {\n // this is a workaround for custom angular components\n return firstChild.children?.length > 0\n ? firstChild.children[0]\n : null;\n } else {\n return firstChild;\n }\n }\n }\n return null;\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: HTMLElement | 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 if (this._ref && this.initialized) {\n const child = this.getTrigger();\n if (child) {\n child.ariaHasPopup = \"true\";\n }\n this.initialized = false;\n }\n }\n\n @Watch(\"_ref\")\n @Watch(\"initialized\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this._ref) {\n const child = this.getTrigger();\n if (child) {\n child.ariaExpanded = Boolean(this.isExpanded).toString();\n }\n }\n }\n\n @Watch(\"_ref\")\n @Watch(\"isExpanded\")\n watch1() {\n this.watch1Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-popover\");\n this.initialized = true;\n this.watch0Fn();\n this.watch1Fn();\n }\n\n render() {\n return (\n <div\n class={cls(\"db-popover\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n onFocus={() => this.handleAutoPlacement()}\n onBlur={(event) => this.handleLeave(event)}\n onMouseEnter={() => this.handleAutoPlacement()}\n onMouseLeave={(event) => this.handleLeave(event)}\n >\n <slot name=\"trigger\"></slot>\n <article\n class=\"db-popover-content\"\n data-spacing={this.spacing}\n data-gap={getBooleanAsString(this.gap)}\n data-animation={getBooleanAsString(this.animation ?? true)}\n data-open={getBooleanAsString(this.open)}\n data-delay={this.delay}\n data-width={this.width}\n data-placement={this.placement}\n >\n <slot></slot>\n </article>\n </div>\n );\n }\n}\n"]}
|