@db-ux/wc-core-components 4.2.5 → 4.2.7-consolidation2-66e78e5
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/CHANGELOG.md +6 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -3
- package/dist/cjs/{constants-CTtyzyuo.js → constants-bMY2_d8A.js} +4 -3
- package/dist/cjs/db-accordion-item.cjs.entry.js +12 -7
- package/dist/cjs/db-accordion.cjs.entry.js +29 -12
- package/dist/cjs/db-badge.cjs.entry.js +9 -6
- package/dist/cjs/db-brand.cjs.entry.js +3 -4
- package/dist/cjs/db-button.cjs.entry.js +2 -3
- package/dist/cjs/db-card.cjs.entry.js +2 -3
- package/dist/cjs/db-checkbox.cjs.entry.js +30 -11
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +27 -14
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +2 -3
- package/dist/cjs/db-custom-select.cjs.entry.js +101 -36
- package/dist/cjs/db-divider.cjs.entry.js +2 -3
- package/dist/cjs/db-drawer.cjs.entry.js +15 -8
- package/dist/cjs/db-header.cjs.entry.js +9 -6
- package/dist/cjs/db-icon.cjs.entry.js +2 -3
- package/dist/cjs/db-infotext.cjs.entry.js +2 -3
- package/dist/cjs/db-link.cjs.entry.js +5 -6
- package/dist/cjs/db-navigation-item.cjs.entry.js +12 -7
- package/dist/cjs/db-navigation.cjs.entry.js +3 -4
- package/dist/cjs/db-notification.cjs.entry.js +3 -4
- package/dist/cjs/db-page.cjs.entry.js +2 -3
- package/dist/cjs/db-popover.cjs.entry.js +14 -7
- package/dist/cjs/db-radio.cjs.entry.js +14 -7
- package/dist/cjs/db-section.cjs.entry.js +2 -3
- package/dist/cjs/db-select.cjs.entry.js +21 -10
- package/dist/cjs/db-stack.cjs.entry.js +2 -3
- package/dist/cjs/db-switch.cjs.entry.js +28 -13
- package/dist/cjs/db-tab-item_3.cjs.entry.js +15 -8
- package/dist/cjs/db-tabs.cjs.entry.js +8 -5
- package/dist/cjs/db-textarea.cjs.entry.js +18 -9
- package/dist/cjs/db-tooltip.cjs.entry.js +10 -7
- package/dist/cjs/db-ux.cjs.js +3 -4
- package/dist/cjs/{document-click-listener-DGna8oDJ.js → document-click-listener-B2Xzqbvs.js} +1 -4
- package/dist/cjs/{document-scroll-listener-BBXRu9dN.js → document-scroll-listener-C_v46oIg.js} +1 -4
- package/dist/cjs/floating-components-ogUqz72V.js +0 -3
- package/dist/cjs/{form-components-CPqbzZwG.js → form-components-BrtqMwX0.js} +1 -4
- package/dist/cjs/{index-Bm2Cw2rz.js → index-CW5aVEyQ.js} +19 -3
- package/dist/cjs/{index-Db5RdCbB.js → index-Mi8dWSSD.js} +190 -142
- package/dist/cjs/index.cjs.js +7 -6
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/navigation-DauGE-qj.js +0 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.js +14 -8
- package/dist/collection/components/accordion/index.js +0 -1
- package/dist/collection/components/accordion/model.js +0 -1
- package/dist/collection/components/accordion-item/accordion-item.js +14 -8
- package/dist/collection/components/accordion-item/index.js +0 -1
- package/dist/collection/components/accordion-item/model.js +0 -1
- package/dist/collection/components/badge/badge.js +16 -9
- package/dist/collection/components/badge/index.js +0 -1
- package/dist/collection/components/badge/model.js +0 -1
- package/dist/collection/components/brand/brand.js +13 -8
- package/dist/collection/components/brand/index.js +0 -1
- package/dist/collection/components/brand/model.js +0 -1
- package/dist/collection/components/button/button.js +39 -22
- package/dist/collection/components/button/index.js +0 -1
- package/dist/collection/components/button/model.js +0 -1
- package/dist/collection/components/card/card.js +10 -6
- package/dist/collection/components/card/index.js +0 -1
- package/dist/collection/components/card/model.js +0 -1
- package/dist/collection/components/checkbox/checkbox.js +39 -21
- package/dist/collection/components/checkbox/index.js +0 -1
- package/dist/collection/components/checkbox/model.js +0 -1
- package/dist/collection/components/custom-select/custom-select.js +103 -56
- package/dist/collection/components/custom-select/index.js +0 -1
- package/dist/collection/components/custom-select/model.js +0 -1
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +6 -4
- package/dist/collection/components/custom-select-dropdown/index.js +0 -1
- package/dist/collection/components/custom-select-dropdown/model.js +0 -1
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +4 -3
- package/dist/collection/components/custom-select-form-field/index.js +0 -1
- package/dist/collection/components/custom-select-form-field/model.js +0 -1
- package/dist/collection/components/custom-select-list/custom-select-list.js +8 -5
- package/dist/collection/components/custom-select-list/index.js +0 -1
- package/dist/collection/components/custom-select-list/model.js +0 -1
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +27 -15
- package/dist/collection/components/custom-select-list-item/index.js +0 -1
- package/dist/collection/components/custom-select-list-item/model.js +0 -1
- package/dist/collection/components/divider/divider.js +12 -7
- package/dist/collection/components/divider/index.js +0 -1
- package/dist/collection/components/divider/model.js +0 -1
- package/dist/collection/components/drawer/drawer.js +24 -13
- package/dist/collection/components/drawer/index.js +0 -1
- package/dist/collection/components/drawer/model.js +0 -1
- package/dist/collection/components/header/header.js +16 -9
- package/dist/collection/components/header/index.js +0 -1
- package/dist/collection/components/header/model.js +0 -1
- package/dist/collection/components/icon/icon.js +13 -8
- package/dist/collection/components/icon/index.js +0 -1
- package/dist/collection/components/icon/model.js +0 -1
- package/dist/collection/components/infotext/index.js +0 -1
- package/dist/collection/components/infotext/infotext.js +15 -9
- package/dist/collection/components/infotext/model.js +0 -1
- package/dist/collection/components/input/index.js +0 -1
- package/dist/collection/components/input/input.js +104 -57
- package/dist/collection/components/input/model.js +0 -1
- package/dist/collection/components/link/index.js +0 -1
- package/dist/collection/components/link/link.js +83 -18
- package/dist/collection/components/link/model.js +0 -1
- package/dist/collection/components/navigation/index.js +0 -1
- package/dist/collection/components/navigation/model.js +0 -1
- package/dist/collection/components/navigation/navigation.js +4 -3
- package/dist/collection/components/navigation-item/index.js +0 -1
- package/dist/collection/components/navigation-item/model.js +0 -1
- package/dist/collection/components/navigation-item/navigation-item.js +25 -14
- package/dist/collection/components/notification/index.js +0 -1
- package/dist/collection/components/notification/model.js +0 -1
- package/dist/collection/components/notification/notification.js +33 -18
- package/dist/collection/components/page/index.js +0 -1
- package/dist/collection/components/page/model.js +0 -1
- package/dist/collection/components/page/page.js +12 -7
- package/dist/collection/components/popover/index.js +0 -1
- package/dist/collection/components/popover/model.js +0 -1
- package/dist/collection/components/popover/popover.js +18 -10
- package/dist/collection/components/radio/index.js +0 -1
- package/dist/collection/components/radio/model.js +0 -1
- package/dist/collection/components/radio/radio.js +24 -13
- package/dist/collection/components/section/index.js +0 -1
- package/dist/collection/components/section/model.js +0 -1
- package/dist/collection/components/section/section.js +8 -5
- package/dist/collection/components/select/index.js +0 -1
- package/dist/collection/components/select/model.js +0 -1
- package/dist/collection/components/select/select.js +50 -27
- package/dist/collection/components/stack/index.js +0 -1
- package/dist/collection/components/stack/model.js +0 -1
- package/dist/collection/components/stack/stack.js +16 -9
- package/dist/collection/components/switch/index.js +0 -1
- package/dist/collection/components/switch/model.js +0 -1
- package/dist/collection/components/switch/switch.js +48 -27
- package/dist/collection/components/tab-item/index.js +0 -1
- package/dist/collection/components/tab-item/model.js +0 -1
- package/dist/collection/components/tab-item/tab-item.js +31 -18
- package/dist/collection/components/tab-list/index.js +0 -1
- package/dist/collection/components/tab-list/model.js +0 -1
- package/dist/collection/components/tab-list/tab-list.js +4 -3
- package/dist/collection/components/tab-panel/index.js +0 -1
- package/dist/collection/components/tab-panel/model.js +0 -1
- package/dist/collection/components/tab-panel/tab-panel.js +6 -4
- package/dist/collection/components/tabs/index.js +0 -1
- package/dist/collection/components/tabs/model.js +0 -1
- package/dist/collection/components/tabs/tabs.js +22 -12
- package/dist/collection/components/tag/index.js +0 -1
- package/dist/collection/components/tag/model.js +0 -1
- package/dist/collection/components/tag/tag.js +25 -14
- package/dist/collection/components/textarea/index.js +0 -1
- package/dist/collection/components/textarea/model.js +0 -1
- package/dist/collection/components/textarea/textarea.js +67 -35
- package/dist/collection/components/tooltip/index.js +0 -1
- package/dist/collection/components/tooltip/model.js +0 -1
- package/dist/collection/components/tooltip/tooltip.js +18 -10
- package/dist/collection/index.js +0 -1
- package/dist/collection/shared/constants.js +2 -1
- package/dist/collection/shared/examples/index.js +4 -0
- package/dist/collection/shared/model.js +0 -1
- package/dist/collection/utils/document-click-listener.js +0 -1
- package/dist/collection/utils/document-scroll-listener.js +0 -1
- package/dist/collection/utils/floating-components.js +0 -1
- package/dist/collection/utils/form-components.js +0 -1
- package/dist/collection/utils/index.js +18 -1
- package/dist/collection/utils/navigation.js +0 -1
- package/dist/collection/utils/react.js +0 -1
- package/dist/custom-elements.json +1063 -1
- package/dist/db-ux/db-ux.esm.js +1 -2
- package/dist/db-ux/index.esm.js +1 -2
- package/dist/db-ux/p-027fb90a.entry.js +1 -0
- package/dist/db-ux/p-13dd39f1.entry.js +1 -0
- package/dist/db-ux/p-15241486.entry.js +1 -0
- package/dist/db-ux/p-197f90e4.entry.js +1 -0
- package/dist/db-ux/p-2069117e.entry.js +1 -0
- package/dist/db-ux/p-23834011.entry.js +1 -0
- package/dist/db-ux/p-26fa6bc1.entry.js +1 -0
- package/dist/db-ux/p-286f83f4.entry.js +1 -0
- package/dist/db-ux/p-29d3070a.entry.js +1 -0
- package/dist/db-ux/p-29efc51e.entry.js +1 -0
- package/dist/db-ux/p-2baf9c08.entry.js +1 -0
- package/dist/db-ux/p-3622f7e7.entry.js +1 -0
- package/dist/db-ux/p-40ce182c.entry.js +1 -0
- package/dist/db-ux/p-5426dbd3.entry.js +1 -0
- package/dist/db-ux/p-58611dcc.entry.js +1 -0
- package/dist/db-ux/p-5bca6d35.entry.js +1 -0
- package/dist/db-ux/p-623a6b59.entry.js +1 -0
- package/dist/db-ux/p-78f6b72a.entry.js +1 -0
- package/dist/db-ux/p-86414acd.entry.js +1 -0
- package/dist/db-ux/p-9a543d5a.entry.js +1 -0
- package/dist/db-ux/p-9d5365f7.entry.js +1 -0
- package/dist/db-ux/p-9pYJFapZ.js +2 -0
- package/dist/db-ux/p-BdL-nI5y.js +1 -0
- package/dist/db-ux/p-BwBkekqp.js +1 -0
- package/dist/db-ux/p-Cb-k135w.js +1 -0
- package/dist/db-ux/p-DQuL1Twl.js +1 -2
- package/dist/db-ux/p-EqlW5Wqf.js +1 -0
- package/dist/db-ux/p-G-TursYV.js +1 -2
- package/dist/db-ux/p-a1e66a3d.entry.js +1 -0
- package/dist/db-ux/p-a232eea2.entry.js +1 -0
- package/dist/db-ux/p-a7463ead.entry.js +1 -0
- package/dist/db-ux/p-a98bde77.entry.js +1 -0
- package/dist/db-ux/p-af0e61d0.entry.js +1 -0
- package/dist/db-ux/p-b6538eed.entry.js +1 -0
- package/dist/db-ux/p-bde7ff5f.entry.js +1 -0
- package/dist/db-ux/p-c9d514e5.entry.js +1 -0
- package/dist/db-ux/p-cqrM3KjS.js +1 -0
- package/dist/db-ux/p-e30a4814.entry.js +1 -0
- package/dist/db-ux/p-sP2NlPcu.js +1 -2
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/{constants-DC9V_oNU.js → constants-BdL-nI5y.js} +3 -4
- package/dist/esm/db-accordion-item.entry.js +12 -7
- package/dist/esm/db-accordion.entry.js +29 -12
- package/dist/esm/db-badge.entry.js +9 -6
- package/dist/esm/db-brand.entry.js +3 -4
- package/dist/esm/db-button.entry.js +2 -3
- package/dist/esm/db-card.entry.js +2 -3
- package/dist/esm/db-checkbox.entry.js +30 -11
- package/dist/esm/db-custom-select-dropdown_5.entry.js +27 -14
- package/dist/esm/db-custom-select-form-field.entry.js +2 -3
- package/dist/esm/db-custom-select.entry.js +101 -36
- package/dist/esm/db-divider.entry.js +2 -3
- package/dist/esm/db-drawer.entry.js +15 -8
- package/dist/esm/db-header.entry.js +9 -6
- package/dist/esm/db-icon.entry.js +2 -3
- package/dist/esm/db-infotext.entry.js +2 -3
- package/dist/esm/db-link.entry.js +5 -6
- package/dist/esm/db-navigation-item.entry.js +12 -7
- package/dist/esm/db-navigation.entry.js +3 -4
- package/dist/esm/db-notification.entry.js +3 -4
- package/dist/esm/db-page.entry.js +2 -3
- package/dist/esm/db-popover.entry.js +14 -7
- package/dist/esm/db-radio.entry.js +14 -7
- package/dist/esm/db-section.entry.js +2 -3
- package/dist/esm/db-select.entry.js +21 -10
- package/dist/esm/db-stack.entry.js +2 -3
- package/dist/esm/db-switch.entry.js +28 -13
- package/dist/esm/db-tab-item_3.entry.js +15 -8
- package/dist/esm/db-tabs.entry.js +8 -5
- package/dist/esm/db-textarea.entry.js +18 -9
- package/dist/esm/db-tooltip.entry.js +10 -7
- package/dist/esm/db-ux.js +4 -5
- package/dist/esm/{document-click-listener-D1ZXrKSx.js → document-click-listener-B_LaIr0O.js} +1 -4
- package/dist/esm/{document-scroll-listener-DF6f0ByI.js → document-scroll-listener-dHAsT0Tb.js} +1 -4
- package/dist/esm/floating-components-G-TursYV.js +0 -3
- package/dist/esm/{form-components-DmI6JmyJ.js → form-components-Cl_wgkeJ.js} +1 -4
- package/dist/esm/{index-BMAwJo5Z.js → index-9pYJFapZ.js} +190 -142
- package/dist/esm/{index-DhKljLRG.js → index-BwBkekqp.js} +19 -4
- package/dist/esm/index.js +4 -6
- package/dist/esm/loader.js +3 -4
- package/dist/esm/navigation--UdC9CzO.js +0 -3
- package/dist/types/components/custom-select/custom-select.d.ts +1 -1
- package/dist/types/components/link/link.d.ts +2 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/types/shared/constants.d.ts +2 -0
- package/dist/types/shared/examples/index.d.ts +4 -0
- package/dist/types/shared/model.d.ts +12 -0
- package/dist/types/stencil-public-runtime.d.ts +87 -4
- package/dist/types/utils/index.d.ts +10 -0
- package/dist/vscode.html-custom-data.json +118 -0
- package/dist/web-types.json +177 -1
- package/package.json +10 -9
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/constants-CTtyzyuo.js.map +0 -1
- package/dist/cjs/db-accordion-item.entry.cjs.js.map +0 -1
- package/dist/cjs/db-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/db-badge.entry.cjs.js.map +0 -1
- package/dist/cjs/db-brand.entry.cjs.js.map +0 -1
- package/dist/cjs/db-button.entry.cjs.js.map +0 -1
- package/dist/cjs/db-card.entry.cjs.js.map +0 -1
- package/dist/cjs/db-checkbox.entry.cjs.js.map +0 -1
- package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.cjs.js.map +0 -1
- package/dist/cjs/db-custom-select-form-field.entry.cjs.js.map +0 -1
- package/dist/cjs/db-custom-select.entry.cjs.js.map +0 -1
- package/dist/cjs/db-divider.entry.cjs.js.map +0 -1
- package/dist/cjs/db-drawer.entry.cjs.js.map +0 -1
- package/dist/cjs/db-header.entry.cjs.js.map +0 -1
- package/dist/cjs/db-icon.entry.cjs.js.map +0 -1
- package/dist/cjs/db-infotext.entry.cjs.js.map +0 -1
- package/dist/cjs/db-link.entry.cjs.js.map +0 -1
- package/dist/cjs/db-navigation-item.entry.cjs.js.map +0 -1
- package/dist/cjs/db-navigation.entry.cjs.js.map +0 -1
- package/dist/cjs/db-notification.entry.cjs.js.map +0 -1
- package/dist/cjs/db-page.entry.cjs.js.map +0 -1
- package/dist/cjs/db-popover.entry.cjs.js.map +0 -1
- package/dist/cjs/db-radio.entry.cjs.js.map +0 -1
- package/dist/cjs/db-section.entry.cjs.js.map +0 -1
- package/dist/cjs/db-select.entry.cjs.js.map +0 -1
- package/dist/cjs/db-stack.entry.cjs.js.map +0 -1
- package/dist/cjs/db-switch.entry.cjs.js.map +0 -1
- package/dist/cjs/db-tab-item.db-tab-list.db-tab-panel.entry.cjs.js.map +0 -1
- package/dist/cjs/db-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/db-textarea.entry.cjs.js.map +0 -1
- package/dist/cjs/db-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/db-ux.cjs.js.map +0 -1
- package/dist/cjs/document-click-listener-DGna8oDJ.js.map +0 -1
- package/dist/cjs/document-scroll-listener-BBXRu9dN.js.map +0 -1
- package/dist/cjs/floating-components-ogUqz72V.js.map +0 -1
- package/dist/cjs/form-components-CPqbzZwG.js.map +0 -1
- package/dist/cjs/index-Bm2Cw2rz.js.map +0 -1
- package/dist/cjs/index-Db5RdCbB.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/navigation-DauGE-qj.js.map +0 -1
- package/dist/collection/components/accordion/accordion.js.map +0 -1
- package/dist/collection/components/accordion/index.js.map +0 -1
- package/dist/collection/components/accordion/model.js.map +0 -1
- package/dist/collection/components/accordion-item/accordion-item.js.map +0 -1
- package/dist/collection/components/accordion-item/index.js.map +0 -1
- package/dist/collection/components/accordion-item/model.js.map +0 -1
- package/dist/collection/components/badge/badge.js.map +0 -1
- package/dist/collection/components/badge/index.js.map +0 -1
- package/dist/collection/components/badge/model.js.map +0 -1
- package/dist/collection/components/brand/brand.js.map +0 -1
- package/dist/collection/components/brand/index.js.map +0 -1
- package/dist/collection/components/brand/model.js.map +0 -1
- package/dist/collection/components/button/button.js.map +0 -1
- package/dist/collection/components/button/index.js.map +0 -1
- package/dist/collection/components/button/model.js.map +0 -1
- package/dist/collection/components/card/card.js.map +0 -1
- package/dist/collection/components/card/index.js.map +0 -1
- package/dist/collection/components/card/model.js.map +0 -1
- package/dist/collection/components/checkbox/checkbox.js.map +0 -1
- package/dist/collection/components/checkbox/index.js.map +0 -1
- package/dist/collection/components/checkbox/model.js.map +0 -1
- package/dist/collection/components/custom-select/custom-select.js.map +0 -1
- package/dist/collection/components/custom-select/index.js.map +0 -1
- package/dist/collection/components/custom-select/model.js.map +0 -1
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js.map +0 -1
- package/dist/collection/components/custom-select-dropdown/index.js.map +0 -1
- package/dist/collection/components/custom-select-dropdown/model.js.map +0 -1
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js.map +0 -1
- package/dist/collection/components/custom-select-form-field/index.js.map +0 -1
- package/dist/collection/components/custom-select-form-field/model.js.map +0 -1
- package/dist/collection/components/custom-select-list/custom-select-list.js.map +0 -1
- package/dist/collection/components/custom-select-list/index.js.map +0 -1
- package/dist/collection/components/custom-select-list/model.js.map +0 -1
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js.map +0 -1
- package/dist/collection/components/custom-select-list-item/index.js.map +0 -1
- package/dist/collection/components/custom-select-list-item/model.js.map +0 -1
- package/dist/collection/components/divider/divider.js.map +0 -1
- package/dist/collection/components/divider/index.js.map +0 -1
- package/dist/collection/components/divider/model.js.map +0 -1
- package/dist/collection/components/drawer/drawer.js.map +0 -1
- package/dist/collection/components/drawer/index.js.map +0 -1
- package/dist/collection/components/drawer/model.js.map +0 -1
- package/dist/collection/components/header/header.js.map +0 -1
- package/dist/collection/components/header/index.js.map +0 -1
- package/dist/collection/components/header/model.js.map +0 -1
- package/dist/collection/components/icon/icon.js.map +0 -1
- package/dist/collection/components/icon/index.js.map +0 -1
- package/dist/collection/components/icon/model.js.map +0 -1
- package/dist/collection/components/infotext/index.js.map +0 -1
- package/dist/collection/components/infotext/infotext.js.map +0 -1
- package/dist/collection/components/infotext/model.js.map +0 -1
- package/dist/collection/components/input/index.js.map +0 -1
- package/dist/collection/components/input/input.js.map +0 -1
- package/dist/collection/components/input/model.js.map +0 -1
- package/dist/collection/components/link/index.js.map +0 -1
- package/dist/collection/components/link/link.js.map +0 -1
- package/dist/collection/components/link/model.js.map +0 -1
- package/dist/collection/components/navigation/index.js.map +0 -1
- package/dist/collection/components/navigation/model.js.map +0 -1
- package/dist/collection/components/navigation/navigation.js.map +0 -1
- package/dist/collection/components/navigation-item/index.js.map +0 -1
- package/dist/collection/components/navigation-item/model.js.map +0 -1
- package/dist/collection/components/navigation-item/navigation-item.js.map +0 -1
- package/dist/collection/components/notification/index.js.map +0 -1
- package/dist/collection/components/notification/model.js.map +0 -1
- package/dist/collection/components/notification/notification.js.map +0 -1
- package/dist/collection/components/page/index.js.map +0 -1
- package/dist/collection/components/page/model.js.map +0 -1
- package/dist/collection/components/page/page.js.map +0 -1
- package/dist/collection/components/popover/index.js.map +0 -1
- package/dist/collection/components/popover/model.js.map +0 -1
- package/dist/collection/components/popover/popover.js.map +0 -1
- package/dist/collection/components/radio/index.js.map +0 -1
- package/dist/collection/components/radio/model.js.map +0 -1
- package/dist/collection/components/radio/radio.js.map +0 -1
- package/dist/collection/components/section/index.js.map +0 -1
- package/dist/collection/components/section/model.js.map +0 -1
- package/dist/collection/components/section/section.js.map +0 -1
- package/dist/collection/components/select/index.js.map +0 -1
- package/dist/collection/components/select/model.js.map +0 -1
- package/dist/collection/components/select/select.js.map +0 -1
- package/dist/collection/components/stack/index.js.map +0 -1
- package/dist/collection/components/stack/model.js.map +0 -1
- package/dist/collection/components/stack/stack.js.map +0 -1
- package/dist/collection/components/switch/index.js.map +0 -1
- package/dist/collection/components/switch/model.js.map +0 -1
- package/dist/collection/components/switch/switch.js.map +0 -1
- package/dist/collection/components/tab-item/index.js.map +0 -1
- package/dist/collection/components/tab-item/model.js.map +0 -1
- package/dist/collection/components/tab-item/tab-item.js.map +0 -1
- package/dist/collection/components/tab-list/index.js.map +0 -1
- package/dist/collection/components/tab-list/model.js.map +0 -1
- package/dist/collection/components/tab-list/tab-list.js.map +0 -1
- package/dist/collection/components/tab-panel/index.js.map +0 -1
- package/dist/collection/components/tab-panel/model.js.map +0 -1
- package/dist/collection/components/tab-panel/tab-panel.js.map +0 -1
- package/dist/collection/components/tabs/index.js.map +0 -1
- package/dist/collection/components/tabs/model.js.map +0 -1
- package/dist/collection/components/tabs/tabs.js.map +0 -1
- package/dist/collection/components/tag/index.js.map +0 -1
- package/dist/collection/components/tag/model.js.map +0 -1
- package/dist/collection/components/tag/tag.js.map +0 -1
- package/dist/collection/components/textarea/index.js.map +0 -1
- package/dist/collection/components/textarea/model.js.map +0 -1
- package/dist/collection/components/textarea/textarea.js.map +0 -1
- package/dist/collection/components/tooltip/index.js.map +0 -1
- package/dist/collection/components/tooltip/model.js.map +0 -1
- package/dist/collection/components/tooltip/tooltip.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/shared/constants.js.map +0 -1
- package/dist/collection/shared/model.js.map +0 -1
- package/dist/collection/utils/document-click-listener.js.map +0 -1
- package/dist/collection/utils/document-scroll-listener.js.map +0 -1
- package/dist/collection/utils/floating-components.js.map +0 -1
- package/dist/collection/utils/form-components.js.map +0 -1
- package/dist/collection/utils/index.js.map +0 -1
- package/dist/collection/utils/navigation.js.map +0 -1
- package/dist/collection/utils/react.js.map +0 -1
- package/dist/db-ux/db-accordion-item.entry.esm.js.map +0 -1
- package/dist/db-ux/db-accordion.entry.esm.js.map +0 -1
- package/dist/db-ux/db-badge.entry.esm.js.map +0 -1
- package/dist/db-ux/db-brand.entry.esm.js.map +0 -1
- package/dist/db-ux/db-button.entry.esm.js.map +0 -1
- package/dist/db-ux/db-card.entry.esm.js.map +0 -1
- package/dist/db-ux/db-checkbox.entry.esm.js.map +0 -1
- package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.esm.js.map +0 -1
- package/dist/db-ux/db-custom-select-form-field.entry.esm.js.map +0 -1
- package/dist/db-ux/db-custom-select.entry.esm.js.map +0 -1
- package/dist/db-ux/db-divider.entry.esm.js.map +0 -1
- package/dist/db-ux/db-drawer.entry.esm.js.map +0 -1
- package/dist/db-ux/db-header.entry.esm.js.map +0 -1
- package/dist/db-ux/db-icon.entry.esm.js.map +0 -1
- package/dist/db-ux/db-infotext.entry.esm.js.map +0 -1
- package/dist/db-ux/db-link.entry.esm.js.map +0 -1
- package/dist/db-ux/db-navigation-item.entry.esm.js.map +0 -1
- package/dist/db-ux/db-navigation.entry.esm.js.map +0 -1
- package/dist/db-ux/db-notification.entry.esm.js.map +0 -1
- package/dist/db-ux/db-page.entry.esm.js.map +0 -1
- package/dist/db-ux/db-popover.entry.esm.js.map +0 -1
- package/dist/db-ux/db-radio.entry.esm.js.map +0 -1
- package/dist/db-ux/db-section.entry.esm.js.map +0 -1
- package/dist/db-ux/db-select.entry.esm.js.map +0 -1
- package/dist/db-ux/db-stack.entry.esm.js.map +0 -1
- package/dist/db-ux/db-switch.entry.esm.js.map +0 -1
- package/dist/db-ux/db-tab-item.db-tab-list.db-tab-panel.entry.esm.js.map +0 -1
- package/dist/db-ux/db-tabs.entry.esm.js.map +0 -1
- package/dist/db-ux/db-textarea.entry.esm.js.map +0 -1
- package/dist/db-ux/db-tooltip.entry.esm.js.map +0 -1
- package/dist/db-ux/db-ux.esm.js.map +0 -1
- package/dist/db-ux/index.esm.js.map +0 -1
- package/dist/db-ux/loader.esm.js.map +0 -1
- package/dist/db-ux/p-129cbaa9.entry.js +0 -2
- package/dist/db-ux/p-129cbaa9.entry.js.map +0 -1
- package/dist/db-ux/p-162c989a.entry.js +0 -2
- package/dist/db-ux/p-162c989a.entry.js.map +0 -1
- package/dist/db-ux/p-18f10b76.entry.js +0 -2
- package/dist/db-ux/p-18f10b76.entry.js.map +0 -1
- package/dist/db-ux/p-1dcb2a08.entry.js +0 -2
- package/dist/db-ux/p-1dcb2a08.entry.js.map +0 -1
- package/dist/db-ux/p-2addb72d.entry.js +0 -2
- package/dist/db-ux/p-2addb72d.entry.js.map +0 -1
- package/dist/db-ux/p-2f6afcbc.entry.js +0 -2
- package/dist/db-ux/p-2f6afcbc.entry.js.map +0 -1
- package/dist/db-ux/p-35bb2b0a.entry.js +0 -2
- package/dist/db-ux/p-35bb2b0a.entry.js.map +0 -1
- package/dist/db-ux/p-4318a6c7.entry.js +0 -2
- package/dist/db-ux/p-4318a6c7.entry.js.map +0 -1
- package/dist/db-ux/p-45562afc.entry.js +0 -2
- package/dist/db-ux/p-45562afc.entry.js.map +0 -1
- package/dist/db-ux/p-49b9ab25.entry.js +0 -2
- package/dist/db-ux/p-49b9ab25.entry.js.map +0 -1
- package/dist/db-ux/p-4c944f45.entry.js +0 -2
- package/dist/db-ux/p-4c944f45.entry.js.map +0 -1
- package/dist/db-ux/p-4ff5ddf2.entry.js +0 -2
- package/dist/db-ux/p-4ff5ddf2.entry.js.map +0 -1
- package/dist/db-ux/p-5b15eef1.entry.js +0 -2
- package/dist/db-ux/p-5b15eef1.entry.js.map +0 -1
- package/dist/db-ux/p-68c1dd8d.entry.js +0 -2
- package/dist/db-ux/p-68c1dd8d.entry.js.map +0 -1
- package/dist/db-ux/p-78f062f6.entry.js +0 -2
- package/dist/db-ux/p-78f062f6.entry.js.map +0 -1
- package/dist/db-ux/p-7c0eefb1.entry.js +0 -2
- package/dist/db-ux/p-7c0eefb1.entry.js.map +0 -1
- package/dist/db-ux/p-7c46fd6c.entry.js +0 -2
- package/dist/db-ux/p-7c46fd6c.entry.js.map +0 -1
- package/dist/db-ux/p-7f894c65.entry.js +0 -2
- package/dist/db-ux/p-7f894c65.entry.js.map +0 -1
- package/dist/db-ux/p-84ab3984.entry.js +0 -2
- package/dist/db-ux/p-84ab3984.entry.js.map +0 -1
- package/dist/db-ux/p-89e04100.entry.js +0 -2
- package/dist/db-ux/p-89e04100.entry.js.map +0 -1
- package/dist/db-ux/p-BMAwJo5Z.js +0 -3
- package/dist/db-ux/p-BMAwJo5Z.js.map +0 -1
- package/dist/db-ux/p-BMfF_eQJ.js +0 -2
- package/dist/db-ux/p-BMfF_eQJ.js.map +0 -1
- package/dist/db-ux/p-BX4jNwUm.js +0 -2
- package/dist/db-ux/p-BX4jNwUm.js.map +0 -1
- package/dist/db-ux/p-CdVqfu2Z.js +0 -2
- package/dist/db-ux/p-CdVqfu2Z.js.map +0 -1
- package/dist/db-ux/p-DC9V_oNU.js +0 -2
- package/dist/db-ux/p-DC9V_oNU.js.map +0 -1
- package/dist/db-ux/p-DQuL1Twl.js.map +0 -1
- package/dist/db-ux/p-DhKljLRG.js +0 -2
- package/dist/db-ux/p-DhKljLRG.js.map +0 -1
- package/dist/db-ux/p-G-TursYV.js.map +0 -1
- package/dist/db-ux/p-baeda9f2.entry.js +0 -2
- package/dist/db-ux/p-baeda9f2.entry.js.map +0 -1
- package/dist/db-ux/p-bc6b636e.entry.js +0 -2
- package/dist/db-ux/p-bc6b636e.entry.js.map +0 -1
- package/dist/db-ux/p-c7bb7bea.entry.js +0 -2
- package/dist/db-ux/p-c7bb7bea.entry.js.map +0 -1
- package/dist/db-ux/p-d1b7a69c.entry.js +0 -2
- package/dist/db-ux/p-d1b7a69c.entry.js.map +0 -1
- package/dist/db-ux/p-d2e189a4.entry.js +0 -2
- package/dist/db-ux/p-d2e189a4.entry.js.map +0 -1
- package/dist/db-ux/p-d9c43ba7.entry.js +0 -2
- package/dist/db-ux/p-d9c43ba7.entry.js.map +0 -1
- package/dist/db-ux/p-e46f112c.entry.js +0 -2
- package/dist/db-ux/p-e46f112c.entry.js.map +0 -1
- package/dist/db-ux/p-e470d0a2.entry.js +0 -2
- package/dist/db-ux/p-e470d0a2.entry.js.map +0 -1
- package/dist/db-ux/p-f7c1e940.entry.js +0 -2
- package/dist/db-ux/p-f7c1e940.entry.js.map +0 -1
- package/dist/db-ux/p-fedb9696.entry.js +0 -2
- package/dist/db-ux/p-fedb9696.entry.js.map +0 -1
- package/dist/db-ux/p-sP2NlPcu.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/constants-DC9V_oNU.js.map +0 -1
- package/dist/esm/db-accordion-item.entry.js.map +0 -1
- package/dist/esm/db-accordion.entry.js.map +0 -1
- package/dist/esm/db-badge.entry.js.map +0 -1
- package/dist/esm/db-brand.entry.js.map +0 -1
- package/dist/esm/db-button.entry.js.map +0 -1
- package/dist/esm/db-card.entry.js.map +0 -1
- package/dist/esm/db-checkbox.entry.js.map +0 -1
- package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.js.map +0 -1
- package/dist/esm/db-custom-select-form-field.entry.js.map +0 -1
- package/dist/esm/db-custom-select.entry.js.map +0 -1
- package/dist/esm/db-divider.entry.js.map +0 -1
- package/dist/esm/db-drawer.entry.js.map +0 -1
- package/dist/esm/db-header.entry.js.map +0 -1
- package/dist/esm/db-icon.entry.js.map +0 -1
- package/dist/esm/db-infotext.entry.js.map +0 -1
- package/dist/esm/db-link.entry.js.map +0 -1
- package/dist/esm/db-navigation-item.entry.js.map +0 -1
- package/dist/esm/db-navigation.entry.js.map +0 -1
- package/dist/esm/db-notification.entry.js.map +0 -1
- package/dist/esm/db-page.entry.js.map +0 -1
- package/dist/esm/db-popover.entry.js.map +0 -1
- package/dist/esm/db-radio.entry.js.map +0 -1
- package/dist/esm/db-section.entry.js.map +0 -1
- package/dist/esm/db-select.entry.js.map +0 -1
- package/dist/esm/db-stack.entry.js.map +0 -1
- package/dist/esm/db-switch.entry.js.map +0 -1
- package/dist/esm/db-tab-item.db-tab-list.db-tab-panel.entry.js.map +0 -1
- package/dist/esm/db-tabs.entry.js.map +0 -1
- package/dist/esm/db-textarea.entry.js.map +0 -1
- package/dist/esm/db-tooltip.entry.js.map +0 -1
- package/dist/esm/db-ux.js.map +0 -1
- package/dist/esm/document-click-listener-D1ZXrKSx.js.map +0 -1
- package/dist/esm/document-scroll-listener-DF6f0ByI.js.map +0 -1
- package/dist/esm/floating-components-G-TursYV.js.map +0 -1
- package/dist/esm/form-components-DmI6JmyJ.js.map +0 -1
- package/dist/esm/index-BMAwJo5Z.js.map +0 -1
- package/dist/esm/index-DhKljLRG.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/navigation--UdC9CzO.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["src/components/accordion/model.ts","src/components/badge/model.ts","src/components/button/model.ts","src/components/card/model.ts","src/components/custom-select-dropdown/model.ts","src/components/custom-select-list-item/model.ts","src/components/custom-select/model.ts","src/components/divider/model.ts","src/components/drawer/model.ts","src/components/icon/model.ts","src/components/input/model.ts","src/components/link/model.ts","src/components/notification/model.ts","src/components/page/model.ts","src/components/stack/model.ts","src/components/tabs/model.ts","src/components/tag/model.ts","src/components/textarea/model.ts","src/components/tooltip/model.ts","src/shared/model.ts"],"sourcesContent":["import { GlobalProps, GlobalState, InitializedState } from '../../shared/model';\nimport { DBAccordionItemDefaultProps } from '../accordion-item/model';\nexport const AccordionVariantList = ['divider', 'card'] as const;\nexport type AccordionVariantType = (typeof AccordionVariantList)[number];\nexport const AccordionBehaviorList = ['multiple', 'single'] as const;\nexport type AccordionBehaviorType = (typeof AccordionBehaviorList)[number];\nexport type DBAccordionDefaultProps = {\n /**\n * To allow multiple items open at the same time or only 1 item\n */\n behavior?: AccordionBehaviorType;\n /**\n * The index of items which should be open when loading the accordion\n */\n initOpenIndex?: number[];\n\n /**\n * Alternative to pass in a simple representation of accordion items\n */\n items?: DBAccordionItemDefaultProps[] | string;\n\n /**\n * Set details name for exclusive accordions, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#name\n */\n name?: string;\n\n /**\n * Informs about the changes in the internal state, which item is open\n */\n onChange?: (openAccordionItemIds: string[]) => void;\n\n /**\n * Defines the display of the accordion and the items:\n * \"divider\": with a dividing line between the items\n * \"card\": w/o dividing line, but items are shown in the card variant\n */\n variant?: AccordionVariantType;\n};\nexport type DBAccordionProps = DBAccordionDefaultProps & GlobalProps;\nexport type DBAccordionDefaultState = {\n _initOpenIndexDone: boolean;\n _name?: string;\n convertItems: () => DBAccordionItemDefaultProps[];\n};\nexport type DBAccordionState = DBAccordionDefaultState & GlobalState & InitializedState","import { EmphasisProps, GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TextProps } from '../../shared/model';\nexport const BadgePlacementList = ['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'] as const;\nexport type BadgePlacementType = (typeof BadgePlacementList)[number];\nexport type DBBadgeDefaultProps = {\n /**\n * The `placement` attributes `corner-*` values change the position to absolute and adds a transform based on the placement.\n */\n placement?: BadgePlacementType;\n\n /**\n * Describes the badge for a11y if you use placement attribute with `corner-*`\n */\n label?: string;\n};\nexport type DBBadgeProps = DBBadgeDefaultProps & GlobalProps & SemanticProps & SizeProps & EmphasisProps & TextProps;\nexport type DBBadgeDefaultState = {};\nexport type DBBadgeState = DBBadgeDefaultState & GlobalState & InitializedState","import { ClickEventProps, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, TextProps, WidthProps } from '../../shared/model';\nexport const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'] as const;\nexport type ButtonVariantType = (typeof ButtonVariantList)[number];\nexport const ButtonTypeList = ['button', 'reset', 'submit'] as const;\nexport type ButtonTypeType = (typeof ButtonTypeList)[number];\nexport type DBButtonDefaultProps = {\n /**\n * The disabled attribute can be set to [keep a user from clicking on the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).\n */\n disabled?: boolean | string;\n\n /**\n * \tAssociates the control with a form element\n */\n form?: string;\n\n /**\n * The name attribute specifies a [name attributes value](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name) for the button.\n */\n name?: string;\n\n /**\n * Define the text next to the icon specified via the icon Property to get hidden.\n */\n noText?: boolean | string;\n\n /**\n * The type attribute specifies the [type of button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type).\n */\n type?: ButtonTypeType;\n\n /**\n * The value attribute specifies an initial [value for the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value).\n */\n value?: string;\n\n /**\n * Variant of the button. Use only 1 primary button on a page as CTA otherwise use one of the adaptive buttons.\n */\n variant?: ButtonVariantType | string;\n};\nexport type DBButtonProps = DBButtonDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & SizeProps & ShowIconProps & TextProps & ShowIconLeadingProps & ShowIconTrailingProps & IconLeadingProps & IconTrailingProps;\nexport type DBButtonDefaultState = {\n getButtonType: () => ButtonTypeType;\n};\nexport type DBButtonState = DBButtonDefaultState & GlobalState","import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';\nexport const CardBehaviorList = ['static', 'interactive'] as const;\nexport type CardBehaviorType = (typeof CardBehaviorList)[number];\nexport const CardElevationLevelList = ['1', '2', '3'] as const;\nexport type CardElevationLevelType = (typeof CardElevationLevelList)[number];\nexport type DBCardDefaultProps = {\n /**\n * Makes the card interactive\n */\n behavior?: CardBehaviorType;\n\n /**\n * Changes the elevation of the card which is equal to `basic-background-level`\n */\n elevationLevel?: CardElevationLevelType;\n};\nexport type DBCardProps = DBCardDefaultProps & GlobalProps & ClickEventProps<HTMLElement> & SpacingProps;\nexport type DBCardDefaultState = {};\nexport type DBCardState = DBCardDefaultState & GlobalState & ClickEventState<HTMLElement>","import { GlobalProps, GlobalState } from '../../shared/model';\nexport const CustomSelectDropdownWidthList = ['fixed', 'auto', 'full'] as const;\nexport type CustomSelectDropdownWidthType = (typeof CustomSelectDropdownWidthList)[number];\nexport type DBCustomSelectDropdownDefaultProps = {\n /**\n * Changes the behavior of the dropdown with.\n * Default: fixed 328px\n * Full: Based on the size of the form-field\n * Auto: Based on the size of the largest list item\n */\n width?: CustomSelectDropdownWidthType | string;\n};\nexport type DBCustomSelectDropdownProps = DBCustomSelectDropdownDefaultProps & GlobalProps;\nexport type DBCustomSelectDropdownDefaultState = {};\nexport type DBCustomSelectDropdownState = DBCustomSelectDropdownDefaultState & GlobalState","import { BaseFormProps, ChangeEventProps, ChangeEventState, FormCheckProps, GlobalProps, GlobalState, IconProps, ShowIconProps, ValueProps } from '../../shared/model';\nexport const CustomSelectListItemTypeList = ['checkbox', 'radio'] as const;\nexport type CustomSelectListItemTypeType = (typeof CustomSelectListItemTypeList)[number];\nexport type DBCustomSelectListItemExtraProps = {\n /**\n * If the item is a group title (only text)\n */\n isGroupTitle?: boolean;\n /**\n * Show a divider on the bottom of the list item for visual grouping (don't use it on every item)\n */\n showDivider?: boolean;\n} & IconProps & ShowIconProps;\nexport type DBCustomSelectListItemDefaultProps = {\n /**\n * Set the title of a group of items - disables radio/checkbox behavior\n */\n groupTitle?: string;\n /**\n * Change the behavior of the item single(radio) or multiple(checkbox)\n */\n type?: CustomSelectListItemTypeType;\n};\nexport type DBCustomSelectListItemProps = DBCustomSelectListItemDefaultProps & GlobalProps & BaseFormProps & ValueProps & FormCheckProps & ChangeEventProps<HTMLInputElement> & DBCustomSelectListItemExtraProps;\nexport type DBCustomSelectListItemDefaultState = {\n getIconTrailing: () => string | undefined;\n hasDivider?: boolean;\n};\nexport type DBCustomSelectListItemState = DBCustomSelectListItemDefaultState & ChangeEventState<HTMLInputElement> & GlobalState","import { BaseFormProps, ClickEvent, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GeneralEvent, GlobalProps, GlobalState, IconProps, InputEvent, InteractionEvent, PlacementVerticalType, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthType } from '../../shared/model';\nimport { CustomSelectDropdownWidthType } from '../custom-select-dropdown/model';\nimport { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';\nimport { DBCustomSelectListItemExtraProps } from '../custom-select-list-item/model';\nexport type CustomSelectOptionType = {\n /**\n * Disables this option\n */\n disabled?: boolean;\n\n /**\n * Identifier for option\n */\n id?: string;\n\n /**\n * If the value is different from the label you want to show to the user.\n */\n label?: string;\n\n /**\n * The value for the option\n */\n value?: string;\n} & DBCustomSelectListItemExtraProps;\nexport const SelectedTypeList = ['amount', 'text', 'tag'] as const;\nexport type SelectedTypeType = (typeof SelectedTypeList)[number];\nexport type DBCustomSelectEvents = {\n /**\n * Optional: if select-type=\"amount\" when amount changes\n * @param amount The amount of selected checkboxes\n */\n onAmountChange?: (amount: number) => void;\n\n /**\n * Optional: if select-type=\"amount\" when amount changes\n * @param amount The amount of selected checkboxes\n */\n amountChange?: (amount: number) => void;\n /**\n * Triggers after some option was clicked in dropdown\n * @param values the changed values\n */\n onOptionSelected?: (values: string[]) => void;\n /**\n * Triggers after some option was clicked in dropdown\n * @param values the changed values\n */\n optionSelected?: (values: string[]) => void;\n\n /**\n * Informs the user when dropdown was toggled.\n */\n onDropdownToggle?: (event: GeneralEvent<HTMLDetailsElement>) => void;\n /**\n * Informs the user when dropdown was toggled.\n */\n dropdownToggle?: (event: GeneralEvent<HTMLDetailsElement>) => void;\n\n /**\n * Informs the user when a search was performed.\n */\n onSearch?: (event: InputEvent<HTMLInputElement>) => void;\n /**\n * Informs the user when a search was performed.\n */\n search?: (event: InputEvent<HTMLInputElement>) => void;\n};\nexport type DBCustomSelectDefaultProps = {\n /**\n * Optional: if select-type=\"amount\" change the shown text\n */\n amountText?: string;\n /**\n * Overwrite the default aria-label (props.label) for the custom-select-list\n */\n listLabel?: string;\n\n /**\n * Label for the clear selection button\n */\n clearSelectionText?: string;\n\n /**\n * Changes the behavior of the dropdown with.\n * Default: fixed 328px\n * Auto: Based on the size of the form-field\n */\n dropdownWidth?: CustomSelectDropdownWidthType | string;\n\n /**\n * Width of the component. Auto width based on children size, full width based on parent elements width.\n */\n formFieldWidth?: WidthType | string;\n\n /**\n * Dropdown - hint if data has to be loaded\n */\n loadingText?: string;\n\n /**\n * Change the button text for mobile close\n */\n mobileCloseButtonText?: string;\n\n /**\n * Enables CustomSelect\n */\n\n multiple?: boolean | string;\n /**\n * Dropdown - hint if there are no options\n */\n noResultsText?: string;\n /**\n * Programmatically open the dropdown. May differ if you don't use onDropdownToggle.\n */\n open?: boolean;\n\n /**\n * You should pass in the options as an array.\n */\n options?: CustomSelectOptionType[];\n\n /**\n * The `placement` attributes values change the position to absolute and adds a transform based on the placement.\n */\n placement?: PlacementVerticalType;\n\n /**\n * Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users\n */\n removeTagsTexts?: string[];\n\n /**\n * Optional: Change the filter function for the search input\n */\n searchFilter?: (option: CustomSelectOptionType, filterText: string) => boolean;\n\n /**\n * Search label\n */\n searchLabel?: string;\n\n /**\n * Search placeholder\n */\n searchPlaceholder?: string;\n\n /**\n * Optional: Prefill the value of the search input\n */\n searchValue?: string;\n\n /**\n * Select all checkbox label\n */\n selectAllLabel?: string;\n\n /**\n * Optional: If you want to show a custom label for the selected values.\n * You need to define the empty state as well based on selected options.\n */\n selectedLabels?: string;\n\n /**\n * Optional: Prefix text announced by screen readers before the selection\n * (e.g., \"Ausgewählt\" or \"Selected\").\n */\n selectedPrefix?: string;\n\n /**\n * Change the selected type for values shown in multi select\n */\n selectedType?: SelectedTypeType;\n\n /**\n * Show clear selection button (default:true). Hide it if you have very small inputs e.g. in tables.\n */\n showClearSelection?: boolean;\n\n /**\n * Dropdown - enable loading infotext and spinner\n */\n showLoading?: boolean;\n\n /**\n * Dropdown - enable no options infotext\n */\n showNoResults?: boolean;\n\n /**\n * Forces search in header.\n */\n showSearch?: boolean;\n /**\n * Forces select all checkbox (only for multiple).\n */\n showSelectAll?: boolean;\n\n /**\n * Optional: If you want to show a custom label based on the selected options.\n */\n transformSelectedLabels?: (selectedOptions?: CustomSelectOptionType[]) => string;\n\n /**\n * Initial value for multi select\n */\n values?: string[];\n};\nexport type DBCustomSelectProps = GlobalProps & CustomFormProps & BaseFormProps & RequiredProps & FormMessageProps & DBCustomSelectDefaultProps & DBCustomSelectEvents & DBCustomSelectFormFieldDefaultProps & IconProps & ShowIconProps & ShowLabelProps;\nexport type DBCustomSelectDefaultState = {\n _validity?: ValidationType;\n _values?: string[];\n _options?: CustomSelectOptionType[];\n _selectedOptions?: CustomSelectOptionType[];\n _hasNoOptions: boolean;\n _selectId?: string;\n _labelId?: string;\n _summaryId?: string;\n _placeholderId?: string;\n _selectedLabels?: string;\n _selectedLabelsId?: string;\n _infoTextId?: string;\n _internalChangeTimestamp: number;\n _documentClickListenerCallbackId?: string;\n _searchValue?: string;\n _userInteraction?: boolean;\n getNativeSelectValue: () => string;\n getOptionLabel: (option: CustomSelectOptionType) => string;\n getOptionChecked: (value?: string) => boolean;\n getTagRemoveLabel: (option: CustomSelectOptionType) => string;\n selectAllEnabled: boolean;\n searchEnabled: boolean;\n amountOptions: number;\n setDescById: (descId?: string) => void;\n handleTagRemove: (option: CustomSelectOptionType, event?: ClickEvent<HTMLButtonElement> | void) => void;\n handleSummaryFocus: () => void;\n handleSelect: (value?: string) => void;\n handleSelectAll: (event: any) => void;\n handleClearAll: (event: any) => void;\n handleDropdownToggle: (event: any) => void;\n handleDocumentClose: (event: any) => void;\n handleOpenByKeyboardFocus: () => void;\n handleFocusFirstDropdownCheckbox: (activeElement?: Element) => void;\n handleKeyboardPress: (event: any) => void;\n handleArrowDownUp: (event: any) => void;\n handleSearch: (event: any) => void;\n handleOptionSelected: (_values: string[]) => void;\n getSelectAllLabel: () => string;\n selectAllChecked: boolean;\n selectAllIndeterminate: boolean;\n handleAutoPlacement: () => void;\n};\nexport type DBCustomSelectState = DBCustomSelectDefaultState & GlobalState & FormState & FromValidState & CloseEventState<InteractionEvent<HTMLDetailsElement>> & DocumentScrollState","import { EmphasisProps, GlobalProps, GlobalState, MarginProps, WidthProps } from '../../shared/model';\nexport const DividerMarginList = ['none', '_'] as const;\nexport type DividerMarginType = (typeof DividerMarginList)[number];\nexport const DividerVariantList = ['horizontal', 'vertical'] as const;\nexport type DividerVariantType = (typeof DividerVariantList)[number];\nexport type DBDividerDefaultProps = {\n /**\n * Removes the margin of the divider.\n */\n margin?: DividerMarginType;\n /**\n * Changes the orientation of the divider.\n */\n variant?: DividerVariantType;\n};\nexport type DBDividerProps = DBDividerDefaultProps & GlobalProps & EmphasisProps & MarginProps & WidthProps;\nexport type DBDividerDefaultState = {};\nexport type DBDividerState = DBDividerDefaultState & GlobalState","import { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';\nexport const DrawerBackdropList = ['none', 'strong', 'weak', 'invisible'] as const;\nexport type DrawerBackdropType = (typeof DrawerBackdropList)[number];\nexport const DrawerDirectionList = ['left', 'right', 'up', 'down'] as const;\nexport type DrawerDirectionType = (typeof DrawerDirectionList)[number];\nexport const DrawerVariantList = ['modal', 'inside'] as const;\nexport type DrawerVariantType = (typeof DrawerVariantList)[number];\nexport const DrawerPositionList = ['fixed', 'absolute'] as const;\nexport type DrawerPositionType = (typeof DrawerPositionList)[number];\nexport type DBDrawerDefaultProps = {\n /**\n * The backdrop attribute changes the opacity of the backdrop.\n * The backdrop 'none' will use `dialog.show()` instead of `dialog.showModal()`\n */\n backdrop?: DrawerBackdropType;\n /**\n * The direction attribute changes the position & animation of the drawer.\n * E.g. \"left\" slides from left screen border to the right.\n */\n direction?: DrawerDirectionType;\n\n /**\n * Slot for changing the header of the drawer.\n */\n drawerHeader?: any;\n\n /**\n * The open attribute opens or closes the drawer based on the state.\n */\n open?: boolean | string;\n /**\n * The rounded attribute changes the border radius of the corners on the \"end\" of the drawer.\n * The \"end\" depends on which direction you use.\n */\n rounded?: boolean | string;\n /**\n * Set the variant modal|inside. Defaults to modal.\n */\n variant?: DrawerVariantType;\n /**\n * The position attribute changes the css-position (fixed or absolute) of the drawer.\n *\n * - `fixed` (default): Renders with `showModal()`, creating a true modal with a focus trap.\n * - `absolute`: Renders with `show()`, acting as a simple overlay **without** a focus trap.\n */\n position?: DrawerPositionType;\n};\nexport type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InnerCloseButtonProps & WidthProps & SpacingProps;\nexport type DBDrawerDefaultState = {\n handleDialogOpen: () => void;\n};\nexport type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InitializedState","import { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';\nexport const IconWeightList = ['16', '20', '24', '32', '48', '64'] as const;\nexport type IconWeightType = (typeof IconWeightList)[number];\nexport type DBIconDefaultProps = {\n variant?: string;\n weight?: IconWeightType;\n};\nexport type DBIconProps = DBIconDefaultProps & GlobalProps & IconProps & TextProps;\nexport type DBIconDefaultState = {};\nexport type DBIconState = DBIconDefaultState & GlobalState","import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormSizeProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InputEventProps, InputEventState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeType, ValueLabelType } from '../../shared/model';\nexport const InputTypeList = ['color', 'date', 'datetime-local', 'email', 'file',\n// TODO: move this to own component\n'hidden', 'month', 'number', 'password', 'range',\n// TODO: move this to own component\n'search', 'tel', 'text', 'time', 'url', 'week'] as const;\nexport type InputTypeType = (typeof InputTypeList)[number];\nexport type DBInputDefaultProps = {\n /**\n * Set a [data list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) via attribute instead of children.\n */\n dataList?: string[] | ValueLabelType[];\n /**\n * Add a custom id to [data list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) if you're using `dataList` attribute.\n */\n dataListId?: string;\n /**\n * Allow selecting multiple files. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/file#multiple\n */\n multiple?: boolean | string;\n /**\n * Maximum value\n */\n max?: number | string;\n /**\n * Minimum value\n */\n min?: number | string;\n\n /**\n * Pattern the value must match to be valid\n */\n pattern?: string;\n /**\n * \tType of form control\n */\n type?: InputTypeType | string;\n /**\n * Sets [step value](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step).\n */\n step?: number | string;\n /**\n * Hint for the [enter key behavior](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint) on virtual keyboards.\n */\n enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';\n /**\n * Hint for [virtual keyboard](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode) selection.\n */\n inputmode?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n /**\n * The size of the message infotext. Defaults to \"small\".\n */\n messageSize?: SizeType;\n /**\n * The size of the valid message infotext. Defaults to \"small\".\n */\n validMessageSize?: SizeType;\n /**\n * The size of the invalid message infotext. Defaults to \"small\".\n */\n invalidMessageSize?: SizeType;\n};\nexport type DBInputProps = DBInputDefaultProps & GlobalProps & FormTextProps & InputEventProps<HTMLInputElement> & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & IconProps & IconTrailingProps & FormMessageProps & ShowIconProps & IconLeadingProps & ShowIconLeadingProps & ShowIconTrailingProps & FormSizeProps;\nexport type DBInputDefaultState = {\n _dataListId?: string;\n getDataList: () => ValueLabelType[];\n};\nexport type DBInputState = DBInputDefaultState & GlobalState & InputEventState<HTMLInputElement> & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & FromValidState","import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, LinkProps, ShowIconProps, TextProps, WrapProps } from '../../shared/model';\nexport const LinkVariantList = ['adaptive', 'brand', 'inline'] as const;\nexport type LinkVariantType = (typeof LinkVariantList)[number];\nexport const LinkSizeList = ['medium', 'small'] as const;\nexport type LinkSizeType = (typeof LinkSizeList)[number];\nexport const LinkContentList = ['external', 'internal'] as const;\nexport type LinkContentType = (typeof LinkContentList)[number];\nexport type DBLinkDefaultProps = {\n /**\n * Adds a different arrow after the link to indicate external or internal link\n */\n content?: LinkContentType;\n /**\n * Change the size of the link\n */\n size?: LinkSizeType;\n /**\n * Change the styling of the link. `inline` will remove the arrow. Defaults to adaptive.\n */\n variant?: LinkVariantType;\n};\nexport type DBLinkProps = DBLinkDefaultProps & GlobalProps & ClickEventProps<HTMLAnchorElement> & LinkProps & ShowIconProps & TextProps & WrapProps;\nexport type DBLinkDefaultState = {};\nexport type DBLinkState = DBLinkDefaultState & GlobalState & ClickEventState<HTMLAnchorElement>","import { ClickEvent, CloseEventProps, CloseEventState, GlobalProps, GlobalState, IconProps, InnerCloseButtonProps, PopoverProps, SemanticProps, ShowIconProps, TextProps } from '../../shared/model';\nexport const NotificationVariantList = ['docked', 'standalone', 'overlay'] as const;\nexport type NotificationVariantType = (typeof NotificationVariantList)[number];\nexport const NotificationLinkVariantList = ['block', 'inline'] as const;\nexport type NotificationLinkVariantType = (typeof NotificationLinkVariantList)[number];\nexport const NotificationAriaLiveList = ['assertive', 'polite', 'off'] as const;\nexport type NotificationAriaLiveType = (typeof NotificationAriaLiveList)[number];\nexport type DBNotificationDefaultProps = {\n /**\n * The arialive attribute will lead to that the screenreader interrupts immediately\n * and reads out the notification if set to \"assertive\", while it will wait for the\n * user's idleness when set to \"polite\", compare to [aria-live](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-live)\n */\n ariaLive?: NotificationAriaLiveType;\n\n /**\n * The closeable attribute shows/hides the close button on the top right.\n */\n closeable?: boolean | string;\n\n /**\n * The headline attribute changes the text of the bold headline.\n */\n headline?: string | any;\n\n /**\n * The slotImage can be set instead of an icon.\n */\n image?: any;\n\n /**\n * The slotLink can be set for non overlay-notifications\n */\n link?: any;\n\n /**\n * The linkVariant will be used if slotLink is set.\n */\n linkVariant?: NotificationLinkVariantType;\n\n /**\n * Enables or disables the visibility of the headline.\n */\n showHeadline?: boolean | string;\n\n /**\n * The timestamp attribute can be set for overlay notifications\n */\n timestamp?: string;\n\n /**\n * Enables or disables the visibility of the timestamp.\n */\n showTimestamp?: boolean | string;\n\n /**\n * The variant attribute changes the styling of the notification.\n * - The docked notifications are used e.g. between header and main content to show a global alert.\n * - The standalone notifications are used e.g. inside a form to show an alert for a specific field.\n * - The overlay notifications are used for absolute and floating notifications like snackbars etc.\n */\n variant?: NotificationVariantType;\n};\nexport type DBNotificationProps = DBNotificationDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement>> & IconProps & SemanticProps & InnerCloseButtonProps & PopoverProps & ShowIconProps & TextProps;\nexport type DBNotificationDefaultState = {};\nexport type DBNotificationState = DBNotificationDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement>>","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","import { GapSpacingProps, GlobalProps, GlobalState } from '../../shared/model';\nexport const StackVariantList = ['simple', 'divider'] as const;\nexport type StackVariantType = (typeof StackVariantList)[number];\nexport const StackDirectionList = ['row', 'column'] as const;\nexport type StackDirectionType = (typeof StackDirectionList)[number];\nexport const StackAlignmentList = ['stretch', 'start', 'end', 'center'] as const;\nexport type StackAlignmentType = (typeof StackAlignmentList)[number];\nexport const StackJustifyContentList = ['space-between', 'start', 'end', 'center'] as const;\nexport type StackJustifyContentType = (typeof StackJustifyContentList)[number];\nexport type DBStackDefaultProps = {\n /**\n * Change variant of stack. To use variant=\"divider\" add a DBDivider after each element\n */\n variant?: StackVariantType;\n /**\n * Set the direction of the stack. Defaults to \"column\"\n */\n direction?: StackDirectionType;\n /**\n * If the stack should wrap if parent is too small otherwise you get an overflow\n */\n wrap?: boolean | string;\n /**\n * Represents css align-items\n */\n alignment?: StackAlignmentType;\n /**\n * Represents css justify-content\n */\n justifyContent?: StackJustifyContentType;\n};\nexport type DBStackProps = DBStackDefaultProps & GlobalProps & GapSpacingProps;\nexport type DBStackDefaultState = {};\nexport type DBStackState = DBStackDefaultState & GlobalState","import { AlignmentProps, GlobalProps, GlobalState, InitializedState, InputEvent, OrientationProps, WidthProps } from '../../shared/model';\nimport { DBTabItemProps } from '../tab-item/model';\nimport { DBTabPanelProps } from '../tab-panel/model';\nexport const TabsBehaviorList = ['scrollbar', 'arrows'] as const;\nexport type TabsBehaviorType = (typeof TabsBehaviorList)[number];\nexport const TabsInitialSelectedModeList = ['auto', 'manually'] as const;\nexport type TabsInitialSelectedModeType = (typeof TabsInitialSelectedModeList)[number];\nexport type DBSimpleTabProps = DBTabItemProps & DBTabPanelProps;\nexport type DBTabsDefaultProps = {\n /**\n * Change amount of distance if you click on an arrow, only available with behavior=\"arrows\"\n */\n arrowScrollDistance?: number | string;\n /**\n * Show a scrollbar or buttons with arrows to navigate for horizontal tabs with overflow visible\n */\n behavior?: TabsBehaviorType;\n\n /**\n * Default behavior is auto selecting the first tab, change selected tab by index\n */\n initialSelectedIndex?: number | string;\n\n /**\n * Default behavior is auto selecting the first tab, disable it with 'manually'\n */\n initialSelectedMode?: TabsInitialSelectedModeType;\n\n /**\n * The name of the tab bar, is required for grouping multiple tabs together. Will overwrite names from children.\n */\n name?: string;\n\n /**\n * Provide simple tabs with label + text as content\n */\n tabs?: DBSimpleTabProps[] | string;\n};\nexport type DBTabsEventProps = {\n /**\n * Informs the user if the current tab index has changed.\n */\n indexChange?: (index?: number) => void;\n\n /**\n * Informs the user if the current tab index has changed.\n */\n onIndexChange?: (index?: number) => void;\n /**\n * Informs the user if another tab has been selected.\n */\n onTabSelect?: (event?: InputEvent<HTMLElement>) => void;\n\n /**\n * Informs the user if another tab has been selected.\n */\n tabSelect?: (event?: InputEvent<HTMLElement>) => void;\n};\nexport type DBTabsProps = DBTabsDefaultProps & GlobalProps & OrientationProps & WidthProps & AlignmentProps & DBTabsEventProps;\nexport type DBTabsDefaultState = {\n _name: string;\n scrollContainer?: Element | null;\n scroll: (left?: boolean) => void;\n showScrollLeft?: boolean;\n showScrollRight?: boolean;\n evaluateScrollButtons: (tabList: Element) => void;\n convertTabs: () => DBSimpleTabProps[];\n initTabList: () => void;\n initTabs: (init?: boolean) => void;\n handleChange: (event: InputEvent<HTMLElement>) => void;\n _resizeObserver?: ResizeObserver;\n};\nexport type DBTabsState = DBTabsDefaultState & GlobalState & InitializedState","import { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps, OverflowProps, SemanticProps, ShowIconProps } from '../../shared/model';\nexport const TagBehaviorList = ['static', 'removable'] as const;\nexport type TagBehaviorType = (typeof TagBehaviorList)[number];\nexport type DBTagEventsProps = {\n /**\n * If \"removeButton\" attribute is set this function will be called when user clicks cancel button inside the tag.\n */\n onRemove?: (event?: ClickEvent<HTMLButtonElement> | void) => void;\n /**\n * If \"removeButton\" attribute is set this function will be called when user clicks cancel button inside the tag.\n */\n remove?: (event?: ClickEvent<HTMLButtonElement> | void) => void;\n};\nexport type DBTagDefaultProps = {\n /**\n *\tDefines the behavior of the component:\n *\t- static: default behavior without remove button\n * - removable: add a remove button at the end of the tag\n */\n behavior?: TagBehaviorType | string;\n\n /**\n * Define the text next to the icon specified via the icon Property to get hidden.\n */\n noText?: boolean | string;\n /**\n * The removeButton attribute shows the cancel button.\n */\n removeButton?: string;\n /**\n * Enable/Disable icon for checkbox/radio inside tag.\n */\n showCheckState?: boolean | string;\n /**\n * Alternative for children to set content as property.\n */\n text?: string;\n\n /**\n * If \"interactive\" is set to true, you can pass a value to the underlying checkbox or radio input.\n */\n value?: string;\n};\nexport type DBTagProps = DBTagDefaultProps & GlobalProps & IconProps & SemanticProps & OverflowProps & EmphasisProps & ShowIconProps & ContentSlotProps & DBTagEventsProps;\nexport type DBTagDefaultState = {\n getRemoveButtonText: () => string;\n handleRemove: (event?: ClickEvent<HTMLButtonElement> | void) => void;\n};\nexport type DBTagState = DBTagDefaultState & GlobalState","import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormMessageProps, FormProps, FormState, FormTextProps, FromValidState, GlobalProps, GlobalState, InputEventProps, InputEventState } from '../../shared/model';\nexport const TextareaResizeList = ['none', 'both', 'horizontal', 'vertical'] as const;\nexport type TextareaResizeType = (typeof TextareaResizeList)[number];\nexport const TextareaWrapList = ['hard', 'soft', 'off'] as const;\nexport type TextareaWrapType = (typeof TextareaWrapList)[number];\nexport type DBTextareaDefaultProps = {\n /**\n * The visible width of the text control, in average character widths. If it is specified, it must be a positive integer\n */\n cols?: number | string;\n /**\n * In most browsers, textareas are resizable — you'll notice the drag handle in the right-hand corner, you can control it with this\n */\n resize?: TextareaResizeType;\n\n /**\n * Show/Hides drag handle in the right-hand corner - default: true\n */\n showResizer?: boolean | string;\n\n /**\n * The number of visible text lines for the control. If it is specified, it must be a positive integer\n */\n rows?: number | string;\n /**\n * Specifies whether the textarea is subject to spell checking by the underlying browser/OS\n */\n spellCheck?: boolean;\n\n /**\n * Indicates how the control should wrap the value for form submission.\n */\n wrap?: TextareaWrapType;\n};\nexport type DBTextareaProps = DBTextareaDefaultProps & ChangeEventProps<HTMLTextAreaElement> & InputEventProps<HTMLTextAreaElement> & FocusEventProps<HTMLTextAreaElement> & FormProps & GlobalProps & FormTextProps & FormMessageProps;\nexport type DBTextareaDefaultState = {};\nexport type DBTextareaState = DBTextareaDefaultState & ChangeEventState<HTMLTextAreaElement> & InputEventState<HTMLTextAreaElement> & FocusEventState<HTMLTextAreaElement> & FormState & GlobalState & FromValidState","import { ClickEventState, DocumentScrollState, EmphasisProps, GlobalProps, GlobalState, InitializedState, PlacementProps, PopoverProps, PopoverState } from '../../shared/model';\nexport const TooltipVariantList = ['description', 'label'] as const;\nexport type TooltipVariantType = (typeof TooltipVariantList)[number];\nexport type DBTooltipDefaultProps = {\n /**\n * Show/Hides arrow\n */\n showArrow?: boolean | string;\n /**\n * Change the behavior of the tooltip:\n * - description: Adds `aria-describedby` to parent\n * - label: Adds `aria-labelledby` to parent\n */\n variant?: TooltipVariantType;\n};\nexport type DBTooltipProps = DBTooltipDefaultProps & GlobalProps & EmphasisProps & PlacementProps & PopoverProps;\nexport type DBTooltipDefaultState = {\n getParent: () => HTMLElement;\n};\nexport type DBTooltipState = DBTooltipDefaultState & GlobalState & ClickEventState<HTMLElement> & PopoverState & InitializedState & DocumentScrollState","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { IconTypes } from '@db-ux/core-foundations';\nexport type GlobalProps = {\n /**\n * default slot\n */\n\n children?: any;\n\n /**\n * React specific for adding className to the component.\n */\n className?: string;\n\n /**\n * Workaround for TypeScript using class for all components.\n */\n class?: string | any;\n\n /**\n * [ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.\n */\n id?: string;\n\n /**\n * Before using please check for the [accessibility concerns](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_concerns)\n */\n autofocus?: boolean | string;\n};\nexport type GlobalState = {\n _id?: string;\n};\nexport const SemanticList = ['adaptive', 'neutral', 'critical', 'informational', 'warning', 'successful'] as const;\nexport type SemanticType = (typeof SemanticList)[number];\nexport type SemanticProps = {\n /**\n * The semantic defines the default variants for most components.\n */\n semantic?: SemanticType;\n};\nexport type IconProps = {\n /**\n * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.\n */\n icon?: IconTypes;\n};\nexport type ShowIconProps = {\n /**\n * Enables or disables the visibility of the icon. The default value depends on the component.\n * For many components this property is optional to reflect Figma properties.\n */\n showIcon?: boolean | string;\n};\nexport type ShowIconLeadingProps = {\n /**\n * Enables or disables the visibility of the leading icon.\n * For many components this property is optional to reflect Figma properties.\n */\n showIconLeading?: boolean | string;\n};\nexport type ShowIconTrailingProps = {\n /**\n * Enables or disables the visibility of the trailing icon.\n * For many components this property is optional to reflect Figma properties.\n */\n showIconTrailing?: boolean | string;\n};\nexport type IconLeadingProps = {\n /**\n * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.\n */\n iconLeading?: IconTypes;\n};\nexport type IconTrailingProps = {\n /**\n * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.\n */\n iconTrailing?: IconTypes;\n};\nexport const SpacingList = ['medium', 'small', 'large', 'none'] as const;\nexport type SpacingType = (typeof SpacingList)[number];\nexport type SpacingProps = {\n /**\n * The spacing attribute changes the padding of the component.\n */\n spacing?: SpacingType | string;\n};\nexport const MarginList = ['medium', 'small', 'large', 'none'] as const;\nexport type MarginType = (typeof MarginList)[number];\nexport type MarginProps = {\n /**\n * The margin attribute changes the margin of the component.\n */\n margin?: MarginType;\n};\nexport const PlacementHorizontalList = ['left', 'right', 'left-start', 'left-end', 'right-start', 'right-end'] as const;\nexport type PlacementHorizontalType = (typeof PlacementHorizontalList)[number];\nexport const PlacementVerticalList = ['top', 'bottom', 'top-start', 'top-end', 'bottom-start', 'bottom-end'] as const;\nexport type PlacementVerticalType = (typeof PlacementVerticalList)[number];\nexport const PlacementList = [...PlacementHorizontalList, ...PlacementVerticalList] as const;\nexport type PlacementType = (typeof PlacementList)[number];\nexport type PlacementProps = {\n /**\n * The `placement` attributes values change the position to absolute and adds a transform based on the placement.\n */\n placement?: PlacementType;\n};\nexport type NavigationBehaviorState = {\n handleNavigationItemClick: (event: any) => void;\n};\nexport type GapProps = {\n /**\n * If the absolute element should have a gap between the parent element.\n */\n gap?: boolean | string;\n};\nexport const GapSpacingList = ['none', '3x-large', '2x-large', 'x-large', 'large', 'medium', 'small', 'x-small', '2x-small', '3x-small'] as const;\nexport type GapSpacingType = (typeof GapSpacingList)[number];\nexport type GapSpacingProps = {\n /**\n * Set the gap/spacing between elements\n */\n gap?: GapSpacingType;\n};\nexport type OverflowProps = {\n /**\n * The overflow attribute sets a max-width and longer text will be dotted.\n */\n overflow?: boolean | string;\n};\nexport type WrapProps = {\n /**\n * Determines whether the text should wrap when its parent container is too small, preventing overflow.\n */\n wrap?: boolean | string;\n};\nexport const OrientationList = ['horizontal', 'vertical'] as const;\nexport type OrientationType = (typeof OrientationList)[number];\nexport type OrientationProps = {\n /**\n * Change the orientation. Defaults to horizontal.\n */\n orientation?: OrientationType;\n};\nexport const WidthList = ['full', 'auto'] as const;\nexport type WidthType = (typeof WidthList)[number];\nexport type WidthProps = {\n /**\n * Width of the component. Auto width based on children size, full width based on parent elements width.\n */\n width?: WidthType | string;\n};\nexport const MaxWidthList = ['full', 'medium', 'large', 'small'] as const;\nexport type MaxWidthType = (typeof MaxWidthList)[number];\nexport type ContainerWidthProps = {\n /**\n * Set max width for the component\n */\n width?: MaxWidthType;\n};\nexport const PopoverDelayList = ['none', 'slow', 'fast'] as const;\nexport type PopoverDelayType = (typeof PopoverDelayList)[number];\nexport const PopoverWidthList = ['auto', 'fixed'] as const;\nexport type PopoverWidthType = (typeof PopoverWidthList)[number];\nexport type PopoverProps = {\n /**\n * Add a delay before showing the tooltip\n */\n delay?: PopoverDelayType;\n /**\n * Disable animation\n */\n animation?: boolean | string;\n /**\n * Use fixed with for default max-width\n */\n width?: PopoverWidthType;\n};\nexport type NameProps = {\n /**\n * The name attribute gives the name of the element to group it.\n */\n name?: string;\n};\nexport type NameState = {\n _name?: string;\n handleNameAttribute: () => void;\n};\nexport type ContentSlotProps = {\n /**\n * Default slot which is used to pass in additional content.\n */\n content?: any;\n};\nexport const SizeList = ['small', 'medium'] as const;\nexport type SizeType = (typeof SizeList)[number];\nexport type SizeProps = {\n /**\n * The size attribute changes the font-size and other related sizes of the component.\n */\n size?: SizeType;\n};\nexport const EmphasisList = ['weak', 'strong'] as const;\nexport type EmphasisType = (typeof EmphasisList)[number];\nexport type EmphasisProps = {\n /**\n * The emphasis attribute divides in between a weak or strong importance.\n */\n emphasis?: EmphasisType;\n};\nexport const ValidationList = ['invalid', 'valid', 'no-validation'] as const;\nexport type ValidationType = (typeof ValidationList)[number];\n\n/**\n * Properties to control the required state and its visual annotation for input components.\n */\nexport type RequiredProps = {\n /**\n * When the required attribute specified, the user will be required to fill the form element before submitting the form.\n * The form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).\n */\n required?: boolean | string;\n /**\n * This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\n * It allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\n * By default, its value is `true`, so the asterisk is shown when `required` is set.\n */\n showRequiredAsterisk?: boolean | string;\n};\nexport type ShowLabelProps = {\n /**\n * Enables/disables the visibility of the label\n */\n showLabel?: boolean | string;\n};\nexport type ValueProps = {\n /**\n * The value property is to receive results from the native form element.\n */\n value?: any;\n};\nexport type BaseFormProps = {\n /**\n * The disabled attribute can be set to keep a user from clicking on the form element.\n */\n disabled?: boolean | string;\n /**\n * The label attribute specifies the caption of the form element.\n */\n label?: string;\n\n /**\n * The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.\n */\n name?: string;\n};\nexport type CustomFormProps = {\n /**\n * Overwrites auto handling for aria-describedby.\n */\n ariaDescribedBy?: string;\n /**\n * \tAssociates the control with a form element\n */\n form?: string;\n\n /**\n * Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.\n */\n validation?: ValidationType;\n};\nexport type FormProps = CustomFormProps & BaseFormProps & RequiredProps & ShowLabelProps & ValueProps;\nexport const FieldSizingList = ['fixed', 'content'] as const;\nexport type FieldSizingType = (typeof FieldSizingList)[number];\nexport type FormTextProps = {\n /**\n * Maximum length (number of characters) of value\n */\n maxLength?: number | string;\n /**\n * Minimum length (number of characters) of value\n */\n minLength?: number | string;\n /**\n * Maximum length (number of characters) of value\n */\n maxlength?: number | string;\n /**\n * Minimum length (number of characters) of value\n */\n minlength?: number | string;\n /**\n * The disabled attribute can be set to keep a user from edit on the form element\n */\n readOnly?: boolean | string;\n /**\n * The disabled attribute can be set to keep a user from edit on the form element\n */\n readonly?: boolean | string;\n\n /**\n * Adds shrinkwrap for input and textarea: https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing\n * Note: Only supported in Chromium browsers so far\n */\n fieldSizing?: FieldSizingType;\n};\nexport type FormSizeProps = {\n /**\n * Size of the control\n */\n size?: number;\n};\nexport type FormCheckProps = {\n /**\n * Define the radio or checkbox elements checked state\n */\n checked?: boolean | string;\n};\nexport const LabelVariantList = ['above', 'floating'] as const;\nexport type LabelVariantType = (typeof LabelVariantList)[number];\nexport const LabelVariantHorizontalList = ['leading', 'trailing'] as const;\nexport type LabelVariantHorizontalType = (typeof LabelVariantHorizontalList)[number];\nexport const AutoCompleteList = ['off', 'on', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'shipping', 'billing', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo', 'webauthn'] as const;\nexport type AutoCompleteType = (typeof AutoCompleteList)[number];\nexport type FormMessageProps = {\n /**\n * Change the variant of the label to float or hidden\n */\n variant?: LabelVariantType;\n /**\n * Text that appears in the form control when it has no value set\n */\n placeholder?: string;\n /**\n * Optional helper message for form components\n */\n message?: string;\n\n /**\n * Helper message for valid form components\n */\n validMessage?: string;\n\n /**\n * Helper message for invalid form components\n */\n invalidMessage?: string;\n\n /**\n * Set/overwrite icon for helper message for form components\n */\n messageIcon?: IconTypes;\n\n /**\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete\n */\n autocomplete?: string | AutoCompleteType;\n\n /**\n * Enables or disables the visibility of the message.\n */\n showMessage?: boolean | string;\n};\nexport type FromValidState = {\n hasValidState: () => boolean;\n handleValidation: () => void;\n _invalidMessage?: string;\n};\nexport type FormState = {\n _messageId?: string;\n _validMessageId?: string;\n _invalidMessageId?: string;\n _descByIds?: string;\n _value?: string;\n _invalidMessage?: string;\n /**\n * https://www.davidmacd.com/blog/test-aria-describedby-errormessage-aria-live.html\n * Currently VoiceOver isn't supporting changes from aria-describedby.\n * This is an internal Fallback\n */\n _voiceOverFallback?: string;\n\n /**\n * We use this to remove form event listener\n */\n abortController?: AbortController;\n};\nexport type InitializedState = {\n initialized: boolean;\n};\nexport const LinkTargetList = ['_self', '_blank', '_parent', '_top'] as const;\nexport type LinkTargetType = (typeof LinkTargetList)[number];\nexport const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] as const;\nexport type LinkReferrerPolicyType = (typeof LinkReferrerPolicyList)[number];\nexport type LinkProps = {\n /**\n * Disables the link.\n */\n disabled?: boolean | string;\n /**\n * The [URL that the hyperlink points to](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href).\n */\n href?: string;\n /**\n * Hints for the human [language of the linked page or document](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#hreflang).\n */\n hreflang?: string;\n /**\n * Where to open the linked URL, as the name for a [browsing context](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target).\n */\n target?: LinkTargetType;\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n rel?: string;\n /**\n * Sets aria role based on [`aria-role`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles).\n */\n role?: string;\n /**\n * How much of the referrer to send when following the link.\n */\n referrerpolicy?: LinkReferrerPolicyType;\n};\nexport type TextProps = {\n /**\n * Alternative for default slot/children.\n */\n text?: string;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type GeneralEvent<T> = Event;\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type GeneralKeyboardEvent<T> = KeyboardEvent;\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type ClickEvent<T> = MouseEvent;\nexport type ClickEventProps<T> = {\n /**\n * React specific onClick to pass to forward ref.\n */\n onClick?: (event: ClickEvent<T>) => void;\n};\nexport type ClickEventState<T> = {\n handleClick: (event: ClickEvent<T> | any) => void;\n};\nexport type ToggleEventProps = {\n toggle?: (open: boolean) => void;\n onToggle?: (open: boolean) => void;\n};\nexport type ToggleEventState<T> = {\n handleToggle: (event?: ClickEvent<T> | any) => void;\n};\nexport type CloseEventProps<T> = {\n /**\n * Function to handle button click (close).\n */\n onClose?: (event?: T) => void;\n /**\n * Function to handle button click (close).\n */\n close?: (event?: T) => void;\n};\nexport type CloseEventState<T> = {\n handleClose: (event?: T | void, forceClose?: boolean) => void;\n};\nexport const AlignmentList = ['start', 'center'] as const;\nexport type AlignmentType = (typeof AlignmentList)[number];\nexport type AlignmentProps = {\n /**\n * Define the content alignment in full width\n */\n alignment?: AlignmentType | string;\n};\nexport type ActiveProps = {\n /**\n * If the tab is checked/active.\n */\n active?: boolean | string;\n};\nexport type InputEvent<T> = Event;\nexport type InputEventProps<T> = {\n input?: (event: InputEvent<T>) => void;\n onInput?: (event: InputEvent<T>) => void;\n};\nexport type InputEventState<T> = {\n handleInput: (event: InputEvent<T> | any, reset?: boolean) => void;\n};\nexport type ChangeEvent<T> = Event;\nexport type ChangeEventProps<T> = {\n change?: (event: ChangeEvent<T>) => void;\n onChange?: (event: ChangeEvent<T>) => void;\n};\nexport type ChangeEventState<T> = {\n handleChange: (event: ChangeEvent<T> | any, reset?: boolean) => void;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type InteractionEvent<T> = FocusEvent;\nexport type FocusEventProps<T> = {\n blur?: (event: InteractionEvent<T>) => void;\n onBlur?: (event: InteractionEvent<T>) => void;\n focus?: (event: InteractionEvent<T>) => void;\n onFocus?: (event: InteractionEvent<T>) => void;\n};\nexport type FocusEventState<T> = {\n handleBlur: (event: InteractionEvent<T> | any) => void;\n handleFocus: (event: InteractionEvent<T> | any) => void;\n};\nexport type InnerCloseButtonProps = {\n /**\n * The closeButtonId attribute changes the id inside the close button.\n */\n closeButtonId?: string;\n /**\n * The closeButtonText attribute changes the text inside the close button.\n */\n closeButtonText?: string;\n};\nexport type NavigationBackButtonProps = {\n /**\n * The backButtonId attribute changes the id inside the back button.\n */\n backButtonId?: string;\n /**\n * The backButtonText attribute changes the text inside the back button.\n */\n backButtonText?: string;\n};\nexport type AriaControlsProps = {\n /**\n * Pass `aria-controls` to inner element\n */\n controls?: string;\n};\nexport type ValueLabelType = {\n value: string;\n label?: string;\n};\nexport type DocumentScrollState = {\n _documentScrollListenerCallbackId?: string;\n handleDocumentScroll: (event: any, parent?: HTMLElement) => void;\n _observer?: IntersectionObserver;\n};\nexport type PopoverState = {\n handleEscape: (event: any) => void;\n handleAutoPlacement: (parent?: HTMLElement) => void;\n handleEnter: (parent?: HTMLElement) => void;\n handleLeave: (event?: any) => void;\n} & DocumentScrollState"],"names":[],"mappings":";;;;;;;;;;MAEa,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM;MAEzC,qBAAqB,GAAG,CAAC,UAAU,EAAE,QAAQ;;ACH7C,MAAA,kBAAkB,GAAG,CAAC,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB;;ACArK,MAAM,iBAAiB,GAAG,CAAC,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AE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU;AAoE50B,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM;MAEtD,sBAAsB,GAAG,CAAC,aAAa,EAAE,4BAA4B,EAAE,QAAQ,EAAE,0BAA0B,EAAE,aAAa,EAAE,eAAe,EAAE,iCAAiC,EAAE,YAAY;MA2E5L,aAAa,GAAG,CAAC,OAAO,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.cjs.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":["globalScripts","bootstrapLazy"],"mappings":";;;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAMA,wBAAa,EAAE;AACvB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-DauGE-qj.js","sources":["src/utils/navigation.ts"],"sourcesContent":["import { handleDataOutside } from './floating-components';\nexport type TriangleData = {\n itemRect: DOMRect;\n parentElementWidth: number;\n subNavigationHeight: number;\n padding: number;\n outsideVX: 'left' | 'right' | undefined;\n outsideVY: 'top' | 'bottom' | undefined;\n};\nexport const isEventTargetNavigationItem = (event: unknown): boolean => {\n const {\n target\n } = event as {\n target: HTMLElement;\n };\n return Boolean(!target?.classList?.contains('db-navigation-item-expand-button') && target?.parentElement?.classList.contains('db-navigation-item'));\n};\nexport class NavigationItemSafeTriangle {\n private readonly element: HTMLElement | null;\n private readonly subNavigation: HTMLElement | null;\n private readonly parentSubNavigation: HTMLElement | null = null;\n private triangleData?: TriangleData;\n private initialized: boolean = false;\n private mouseX: number = 0;\n private mouseY: number = 0;\n constructor(element: HTMLElement | null, subNavigation: HTMLElement | null) {\n this.element = element;\n this.subNavigation = subNavigation;\n if (!this.element || !this.subNavigation) {\n return;\n }\n this.parentSubNavigation = this.element?.closest('.db-sub-navigation');\n\n /*\n * only initiate if:\n * 1. item is not at root navigation level\n * 2. item is not in the mobile navigation / within db-drawer\n */\n if (this.parentSubNavigation && !this.element.closest('.db-drawer')) {\n this.init();\n }\n }\n private init() {\n const parentElementWidth = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;\n\n // the triangle has the width of the sub-navigation, current nav-item can be wider.\n // so the width of the triangle must be adapted to a possibly wider nav-item.\n this.element?.style.setProperty('--db-navigation-item-inline-size', `${parentElementWidth}px`);\n this.initialized = true;\n }\n public enableFollow() {\n if (!this.initialized || this.triangleData || !this.element || !this.subNavigation) {\n return;\n }\n const dataOutsidePair = handleDataOutside(this.subNavigation);\n const itemRect = this.element.getBoundingClientRect();\n const parentElementWidth = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;\n this.triangleData = {\n itemRect,\n parentElementWidth,\n subNavigationHeight: this.subNavigation.getBoundingClientRect().height,\n padding: (parentElementWidth - itemRect.width) / 2,\n outsideVX: dataOutsidePair.vx,\n outsideVY: dataOutsidePair.vy\n };\n }\n public disableFollow() {\n this.triangleData = undefined;\n }\n private getTriangleTipX(): number {\n if (!this.triangleData) return 0;\n if (this.triangleData.outsideVX === 'right') {\n // vertical flipped triangle needs an inverted x pos\n return this.triangleData.itemRect.width - this.mouseX;\n }\n\n // triangle stops shrinking from 75% x pos\n return Math.min(this.mouseX, this.triangleData.itemRect.width * 0.75);\n }\n private getTriangleTipY(): number {\n if (!this.triangleData) return 0;\n\n // padding must be added to the y pos of the tip so that the y pos matches the cursor\n const mouseYLimited = Math.max(Math.min(this.mouseY, this.triangleData.itemRect.height), 0) + this.triangleData.padding;\n if (this.triangleData.outsideVY === 'bottom') {\n // add offset to tip y pos to match corrected sub-navigation y pos\n return mouseYLimited + (this.triangleData.subNavigationHeight - this.triangleData.padding * 2 - this.triangleData.itemRect.height);\n }\n return mouseYLimited;\n }\n private hasMouseEnteredSubNavigation(): boolean {\n if (!this.triangleData) {\n return false;\n }\n const isSubNavigationOnLeftSide = this.triangleData.outsideVX === 'right';\n if (isSubNavigationOnLeftSide && this.mouseX < -1 * this.triangleData.padding) {\n return true;\n }\n if (!isSubNavigationOnLeftSide && this.mouseX > this.triangleData.parentElementWidth - this.triangleData.padding) {\n return true;\n }\n return false;\n }\n private getTriangleCoordinates(variant: 'safe-triangle' | 'fill-gap'): undefined | {\n lb: string;\n lt: string;\n rt: string;\n rb: string;\n } {\n if (!this.triangleData) {\n return;\n }\n if (variant === 'fill-gap') {\n const itemHeight = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`;\n const xStart = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;\n return {\n lb: `${xStart} ${itemHeight}`,\n lt: `${xStart} 0`,\n rt: '100% 0',\n rb: `100% ${itemHeight}`\n };\n }\n const tipX = this.getTriangleTipX();\n const tipY = this.getTriangleTipY();\n const lb = `${tipX}px ${tipY}px`;\n const lt = `${tipX}px ${tipY}px`;\n return {\n lb,\n lt,\n rt: '100% 0',\n rb: '100% 100%'\n };\n }\n public followByMouseEvent(event: MouseEvent) {\n if (!this.initialized || !this.triangleData || !this.element || !this.subNavigation) {\n return;\n }\n this.mouseX = event.clientX - this.triangleData.itemRect.left;\n this.mouseY = event.clientY - this.triangleData.itemRect.top;\n const isOverSubNavigation = this.hasMouseEnteredSubNavigation();\n const coordinates = this.getTriangleCoordinates(isOverSubNavigation ? 'fill-gap' : 'safe-triangle');\n if (!coordinates) {\n return;\n }\n this.element.style.setProperty('--db-navigation-item-clip-path', `polygon(${coordinates.lb}, ${coordinates.lt}, ${coordinates.rt}, ${coordinates.rb})`);\n if (isOverSubNavigation) {\n this.triangleData = undefined;\n }\n }\n}\nexport default {\n isEventTargetNavigationItem,\n NavigationItemSafeTriangle\n}"],"names":["handleDataOutside"],"mappings":";;;;AASa,MAAA,2BAA2B,GAAG,CAAC,KAAc,KAAa;;AACrE,IAAA,MAAM,EACJ,MAAM,EACP,GAAG,KAEH;IACD,OAAO,OAAO,CAAC,EAAC,CAAA,EAAA,GAAA,MAAM,KAAN,IAAA,IAAA,MAAM,KAAN,MAAA,GAAA,MAAA,GAAA,MAAM,CAAE,SAAS,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,QAAQ,CAAC,kCAAkC,CAAC,CAAA,KAAI,CAAA,EAAA,GAAA,MAAM,KAAN,IAAA,IAAA,MAAM,KAAN,MAAA,GAAA,MAAA,GAAA,MAAM,CAAE,aAAa,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAA,CAAC;AACrJ;MACa,0BAA0B,CAAA;IAQrC,WAAY,CAAA,OAA2B,EA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;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DEFAULT_ID } from \"../../shared/constants\";\nimport { cls, uuid } from \"../../utils\";\nimport { DBAccordionItem } from \"../accordion-item/accordion-item\";\nimport { DBAccordionItemDefaultProps } from \"../accordion-item/model\";\nimport { DBAccordionProps, DBAccordionState } from \"./model\";\n\nimport { Component, h, Fragment, Watch, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-accordion\",\n})\nexport class DBAccordion {\n private _ref!: HTMLUListElement | any;\n @Prop() id: DBAccordionProps[\"id\"];\n @Prop() name: DBAccordionProps[\"name\"];\n @Prop() behavior: DBAccordionProps[\"behavior\"];\n @Prop() initOpenIndex: DBAccordionProps[\"initOpenIndex\"];\n @Prop() items: DBAccordionProps[\"items\"];\n @Prop({attribute: \"classname\"}) className: DBAccordionProps[\"className\"];\n @Prop() variant: DBAccordionProps[\"variant\"];\n @State() _id = DEFAULT_ID;\n @State() _name = \"\";\n @State() initialized = false;\n @State() _initOpenIndexDone = false;\n\n convertItems() {\n try {\n if (typeof this.items === \"string\") {\n return JSON.parse(this.items as string);\n }\n return this.items as DBAccordionItemDefaultProps[];\n } catch (error) {\n console.error(error);\n }\n return [];\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 we have a single behavior we first check for\n // props.name otherwise for state_id\n if (this.initialized) {\n if (this.behavior === \"single\") {\n if (this.name) {\n if (this._name !== this.name) {\n this._name = this.name;\n }\n } else {\n if (this._name !== this._id && this._id) {\n this._name = this._id;\n }\n }\n } else {\n this._name = \"\";\n }\n }\n }\n\n @Watch(\"initialized\")\n @Watch(\"name\")\n @Watch(\"behavior\")\n @Watch(\"_id\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this._ref) {\n const childDetails = this._ref.getElementsByTagName(\"details\");\n if (childDetails) {\n for (const details of Array.from<HTMLDetailsElement>(childDetails)) {\n if (this._name === \"\") {\n details.removeAttribute(\"name\");\n } else {\n details.name = this._name ?? \"\";\n }\n }\n }\n }\n }\n\n @Watch(\"_ref\")\n @Watch(\"_name\")\n watch1() {\n this.watch1Fn();\n }\n\n watch2Fn() {\n if (this._ref && this._initOpenIndexDone) {\n if (this.initOpenIndex && this.initOpenIndex!.length > 0) {\n const childDetails = this._ref.getElementsByTagName(\"details\");\n if (childDetails) {\n const initOpenIndex =\n this.behavior === \"single\" && this.initOpenIndex!.length > 1\n ? [this.initOpenIndex![0]] // use only one index for behavior=single\n : this.initOpenIndex;\n Array.from<HTMLDetailsElement>(childDetails).forEach(\n (details: HTMLDetailsElement, index: number) => {\n if (initOpenIndex?.includes(index)) {\n details.open = true;\n }\n }\n );\n }\n }\n this._initOpenIndexDone = false;\n }\n }\n\n @Watch(\"_ref\")\n @Watch(\"_initOpenIndexDone\")\n @Watch(\"initOpenIndex\")\n watch2() {\n this.watch2Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-accordion\");\n this._id = this.id || \"accordion-\" + uuid();\n this.initialized = true;\n this._initOpenIndexDone = true;\n this.watch0Fn();\n this.watch1Fn();\n this.watch2Fn();\n }\n\n render() {\n return (\n <ul\n class={cls(\"db-accordion\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-variant={this.variant}\n >\n {!this.items ? <slot></slot> : null}\n {this.items\n ? this.convertItems()?.map((item, index) => (\n <db-accordion-item\n key={`accordion-item-${index}`}\n headlinePlain={item.headlinePlain}\n disabled={item.disabled}\n text={item.text}\n ></db-accordion-item>\n ))\n : null}\n </ul>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAe,WAAW,CAAC","sourcesContent":["import { DBAccordion } from './accordion';\n\nexport default DBAccordion;"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/accordion/model.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM,CAAU,CAAC;AAEjE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAU,CAAC","sourcesContent":["import { GlobalProps, GlobalState, InitializedState } from '../../shared/model';\nimport { DBAccordionItemDefaultProps } from '../accordion-item/model';\nexport const AccordionVariantList = ['divider', 'card'] as const;\nexport type AccordionVariantType = (typeof AccordionVariantList)[number];\nexport const AccordionBehaviorList = ['multiple', 'single'] as const;\nexport type AccordionBehaviorType = (typeof AccordionBehaviorList)[number];\nexport type DBAccordionDefaultProps = {\n /**\n * To allow multiple items open at the same time or only 1 item\n */\n behavior?: AccordionBehaviorType;\n /**\n * The index of items which should be open when loading the accordion\n */\n initOpenIndex?: number[];\n\n /**\n * Alternative to pass in a simple representation of accordion items\n */\n items?: DBAccordionItemDefaultProps[] | string;\n\n /**\n * Set details name for exclusive accordions, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#name\n */\n name?: string;\n\n /**\n * Informs about the changes in the internal state, which item is open\n */\n onChange?: (openAccordionItemIds: string[]) => void;\n\n /**\n * Defines the display of the accordion and the items:\n * \"divider\": with a dividing line between the items\n * \"card\": w/o dividing line, but items are shown in the card variant\n */\n variant?: AccordionVariantType;\n};\nexport type DBAccordionProps = DBAccordionDefaultProps & GlobalProps;\nexport type DBAccordionDefaultState = {\n _initOpenIndexDone: boolean;\n _name?: string;\n convertItems: () => DBAccordionItemDefaultProps[];\n};\nexport type DBAccordionState = DBAccordionDefaultState & GlobalState & InitializedState"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/components/accordion-item/accordion-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAG5D,OAAO,EACL,SAAS,EACT,CAAC,EAED,KAAK,EACL,KAAK,EAEL,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AAIH,MAAM,OAAO,eAAe;IAH3B;QAeU,QAAG,GAAG,UAAU,CAAC;QACjB,UAAK,GAAG,KAAK,CAAC;QACd,UAAK,GAAG,SAAS,CAAC;QAClB,gBAAW,GAAG,KAAK,CAAC;KAoH9B;IAlHC,mBAAmB;QACjB,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;YAC5C,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,CAAC,SAAiB,EAAE,KAAa,EAAE,EAAE;gBAC5D,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DEFAULT_ID } from \"../../shared/constants\";\nimport { ClickEvent } from \"../../shared/model\";\nimport { cls, getBooleanAsString, uuid } from \"../../utils\";\nimport { DBAccordionItemProps, DBAccordionItemState } from \"./model\";\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 * @slot headline - TODO: Add description for slotHeadline\n */\n @Component({\n tag: \"db-accordion-item\",\n})\nexport class DBAccordionItem {\n private _ref!: HTMLDetailsElement | any;\n @Prop() id: DBAccordionItemProps[\"id\"];\n @Prop() defaultOpen: DBAccordionItemProps[\"defaultOpen\"];\n @Prop() name: DBAccordionItemProps[\"name\"];\n @Event() toggle: EventEmitter<\n Parameters<Required<DBAccordionItemProps>[\"onToggle\"]>[number]\n > | void;\n @Prop({attribute: \"classname\"}) className: DBAccordionItemProps[\"className\"];\n @Prop() disabled: DBAccordionItemProps[\"disabled\"];\n @Prop() headlinePlain: DBAccordionItemProps[\"headlinePlain\"];\n @Prop() text: DBAccordionItemProps[\"text\"];\n @State() _id = DEFAULT_ID;\n @State() _open = false;\n @State() _name = undefined;\n @State() initialized = false;\n\n handleNameAttribute() {\n if (this._ref) {\n const setAttribute = this._ref.setAttribute;\n this._ref.setAttribute = (attribute: string, value: string) => {\n setAttribute.call(this._ref, attribute, value);\n if (attribute === \"name\") {\n this._name = value;\n }\n };\n }\n }\n handleToggle(event: ClickEvent<HTMLElement> | any) {\n // We need this for react https://github.com/facebook/react/issues/15486#issuecomment-488028431\n event?.preventDefault();\n const newStateOpen = !this._open;\n if (this.toggle) {\n this.toggle.emit(newStateOpen);\n }\n this._open = newStateOpen;\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 }\n }\n\n @Watch(\"_ref\")\n @Watch(\"initialized\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this.name) {\n this._name = this.name;\n }\n }\n\n @Watch(\"name\")\n watch1() {\n this.watch1Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-accordion-item\");\n this._id = this.id || \"accordion-item-\" + uuid();\n if (this.defaultOpen) {\n this._open = this.defaultOpen;\n }\n this.initialized = true;\n this.watch0Fn();\n this.watch1Fn();\n }\n\n render() {\n return (\n <li class={cls(\"db-accordion-item\", this.className)} id={this._id}>\n <details\n aria-disabled={getBooleanAsString(this.disabled)}\n ref={(el: any) => {\n this._ref = el;\n }}\n name={this._name}\n open={this._open}\n >\n <summary onClick={(event) => this.handleToggle(event)}>\n {this.headlinePlain ? this.headlinePlain : null}\n {!this.headlinePlain ? <slot name=\"headline\"></slot> : null}\n </summary>\n <div>{this.text ? this.text : <slot></slot>}</div>\n </details>\n </li>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/accordion-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,eAAe,eAAe,CAAC","sourcesContent":["import { DBAccordionItem } from './accordion-item';\n\nexport default DBAccordionItem;"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/accordion-item/model.ts"],"names":[],"mappings":"","sourcesContent":["import { GlobalProps, GlobalState, InitializedState, NameProps, NameState, TextProps, ToggleEventProps, ToggleEventState } from '../../shared/model';\nexport type DBAccordionItemDefaultProps = {\n /**\n * Initial state for the accordion item\n */\n defaultOpen?: boolean;\n /**\n * The disabled attribute can be set to keep a user from clicking on the element.\n */\n disabled?: boolean | string;\n /**\n * Title of the accordion-item as slot\n */\n headline?: any;\n /**\n * Title of the accordion-item as plain text\n */\n headlinePlain?: string;\n} & TextProps;\nexport type DBAccordionItemProps = DBAccordionItemDefaultProps & GlobalProps & ToggleEventProps & NameProps;\nexport type DBAccordionItemDefaultState = {\n _open?: boolean;\n};\nexport type DBAccordionItemState = DBAccordionItemDefaultState & GlobalState & ToggleEventState<HTMLElement> & InitializedState & NameState"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAGlC,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3E;;;GAGG;AAIH,MAAM,OAAO,OAAO;IAHnB;QAaU,gBAAW,GAAG,KAAK,CAAC;KAyF9B;IAvFC;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAA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AAS,gBAE5B,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,UAAU,CAAC,QAAQ,CAAC,KAAI,CAAC,MAAA,IAAI,CAAC,KAAK,mCAAI,aAAa,CAAC,IAGtE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,eAAa,CACjC,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DEFAULT_LABEL } from \"../../shared/constants\";\nimport { cls } from \"../../utils\";\nimport { DBBadgeProps, DBBadgeState } from \"./model\";\n\nimport { Component, h, Fragment, Watch, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-badge\",\n})\nexport class DBBadge {\n private _ref!: HTMLSpanElement | any;\n @Prop() placement: DBBadgeProps[\"placement\"];\n @Prop() id: DBBadgeProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBBadgeProps[\"className\"];\n @Prop() semantic: DBBadgeProps[\"semantic\"];\n @Prop() size: DBBadgeProps[\"size\"];\n @Prop() emphasis: DBBadgeProps[\"emphasis\"];\n @Prop() label: DBBadgeProps[\"label\"];\n @Prop() text: DBBadgeProps[\"text\"];\n @State() initialized = 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 watch0Fn() {\n if (this._ref && this.initialized) {\n if (this.placement?.startsWith(\"corner\")) {\n let parent = this._ref.parentElement;\n if (parent && parent.localName.includes(\"badge\")) {\n // Angular workaround\n parent = parent.parentElement;\n }\n if (parent) {\n parent.dataset[\"hasBadge\"] = \"true\";\n }\n }\n }\n }\n\n @Watch(\"_ref\")\n @Watch(\"initialized\")\n watch0() {\n this.watch0Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-badge\");\n this.initialized = true;\n this.watch0Fn();\n }\n\n render() {\n return (\n <span\n class={cls(\"db-badge\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-semantic={this.semantic}\n data-size={this.size}\n data-emphasis={this.emphasis}\n data-placement={this.placement}\n data-label={\n this.placement?.startsWith(\"corner\") && (this.label ?? DEFAULT_LABEL)\n }\n >\n {this.text ? this.text : <slot></slot>}\n </span>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,eAAe,OAAO,CAAC","sourcesContent":["import { DBBadge } from './badge';\n\nexport default DBBadge;"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/badge/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,CAAU,CAAC","sourcesContent":["import { EmphasisProps, GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TextProps } from '../../shared/model';\nexport const BadgePlacementList = ['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'] as const;\nexport type BadgePlacementType = (typeof BadgePlacementList)[number];\nexport type DBBadgeDefaultProps = {\n /**\n * The `placement` attributes `corner-*` values change the position to absolute and adds a transform based on the placement.\n */\n placement?: BadgePlacementType;\n\n /**\n * Describes the badge for a11y if you use placement attribute with `corner-*`\n */\n label?: string;\n};\nexport type DBBadgeProps = DBBadgeDefaultProps & GlobalProps & SemanticProps & SizeProps & EmphasisProps & TextProps;\nexport type DBBadgeDefaultState = {};\nexport type DBBadgeState = DBBadgeDefaultState & GlobalState & InitializedState"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand.js","sourceRoot":"","sources":["../../../src/components/brand/brand.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,IAAI,EAAE,MAAM,eAAe,CAAC;AAG7D;;;GAGG;AAIH,MAAM,OAAO,OAAO;IASlB;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,C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C,IAAI,CAAC,CAAC;oBACpC,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,gBAAgB;QACd,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,MAAM;;QACJ,OAAO,CACL,4DACE,KAAK,EAAE,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,EACtC,GAAG,EAAE,CAAC,EAAO,EAAE,EAAE;gBACf,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;YACjB,CAAC,eACU,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAA,IAAI,CAAC,IAAI,mCAAI,YAAY,oBAC7C,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,EACjD,EAAE,EAAE,IAAI,CAAC,EAAE,IAEV,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,eAAa,CAClC,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DEFAULT_ICON } from \"../../shared/constants\";\nimport { cls, getBooleanAsString } from \"../../utils\";\nimport { DBBrandProps, DBBrandState } from \"./model\";\n\nimport { Component, h, Fragment, Prop } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-brand\",\n})\nexport class DBBrand {\n private _ref!: HTMLDivElement | any;\n @Prop() hideLogo: DBBrandProps[\"hideLogo\"];\n @Prop() icon: DBBrandProps[\"icon\"];\n @Prop() showIcon: DBBrandProps[\"showIcon\"];\n @Prop() id: DBBrandProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBBrandProps[\"className\"];\n @Prop() text: DBBrandProps[\"text\"];\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-brand\");\n }\n\n render() {\n return (\n <div\n class={cls(\"db-brand\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n data-icon={this.hideLogo ? \"none\" : this.icon ?? DEFAULT_ICON}\n data-show-icon={getBooleanAsString(this.showIcon)}\n id={this.id}\n >\n {this.text ? this.text : <slot></slot>}\n </div>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/brand/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,eAAe,OAAO,CAAC","sourcesContent":["import { DBBrand } from './brand';\n\nexport default DBBrand;"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/brand/model.ts"],"names":[],"mappings":"","sourcesContent":["import { GlobalProps, GlobalState, IconProps, ShowIconProps, TextProps } from '../../shared/model';\nexport type DBBrandDefaultProps = {\n /**\n * @deprecated: Disable the default logo svg to pass in a custom `img`\n */\n hideLogo?: boolean;\n};\nexport type DBBrandProps = DBBrandDefaultProps & GlobalProps & IconProps & ShowIconProps & TextProps;\nexport type DBBrandDefaultState = {};\nexport type DBBrandState = DBBrandDefaultState & GlobalState"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGlE,OAAO,EACL,SAAS,EACT,CAAC,EAED,KAAK,EAEL,IAAI,GACL,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AAIH,MAAM,OAAO,QAAQ;IAwBnB,aAAa;QACX,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;aAAM,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACtB,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,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,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { cls, getBoolean, getBooleanAsString } from \"../../utils\";\nimport type { DBButtonProps, DBButtonState } from \"./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\n */\n @Component({\n tag: \"db-button\",\n})\nexport class DBButton {\n private _ref!: HTMLButtonElement | any;\n @Prop() type: DBButtonProps[\"type\"];\n @Event() click: EventEmitter<\n Parameters<Required<DBButtonProps>[\"onClick\"]>[number]\n > | void;\n @Prop() id: DBButtonProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBButtonProps[\"className\"];\n @Prop() disabled: DBButtonProps[\"disabled\"];\n @Prop() iconLeading: DBButtonProps[\"iconLeading\"];\n @Prop() icon: DBButtonProps[\"icon\"];\n @Prop() showIconLeading: DBButtonProps[\"showIconLeading\"];\n @Prop() showIcon: DBButtonProps[\"showIcon\"];\n @Prop() iconTrailing: DBButtonProps[\"iconTrailing\"];\n @Prop() showIconTrailing: DBButtonProps[\"showIconTrailing\"];\n @Prop() size: DBButtonProps[\"size\"];\n @Prop() width: DBButtonProps[\"width\"];\n @Prop() variant: DBButtonProps[\"variant\"];\n @Prop() noText: DBButtonProps[\"noText\"];\n @Prop() name: DBButtonProps[\"name\"];\n @Prop() form: DBButtonProps[\"form\"];\n @Prop() value: DBButtonProps[\"value\"];\n @Prop() text: DBButtonProps[\"text\"];\n\n getButtonType() {\n if (this.type) {\n return this.type;\n } else if (this.click) {\n return \"button\";\n }\n return \"submit\";\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-button\");\n }\n\n render() {\n return (\n <button\n class={cls(\"db-button\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n type={this.getButtonType()}\n disabled={getBoolean(this.disabled, \"disabled\")}\n data-icon={this.iconLeading ?? this.icon}\n data-show-icon={getBooleanAsString(\n this.showIconLeading ?? this.showIcon\n )}\n data-icon-trailing={this.iconTrailing}\n data-show-icon-trailing={getBooleanAsString(this.showIconTrailing)}\n data-size={this.size}\n data-width={this.width}\n data-variant={this.variant}\n data-no-text={getBooleanAsString(this.noText)}\n name={this.name}\n form={this.form}\n value={this.value}\n >\n {this.text ? this.text : <slot></slot>}\n </button>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,eAAe,QAAQ,CAAC","sourcesContent":["import { DBButton } from './button';\n\nexport default DBButton;"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/button/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAEnF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC","sourcesContent":["import { ClickEventProps, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps, SizeProps, TextProps, WidthProps } from '../../shared/model';\nexport const ButtonVariantList = ['outlined', 'brand', 'filled', 'ghost'] as const;\nexport type ButtonVariantType = (typeof ButtonVariantList)[number];\nexport const ButtonTypeList = ['button', 'reset', 'submit'] as const;\nexport type ButtonTypeType = (typeof ButtonTypeList)[number];\nexport type DBButtonDefaultProps = {\n /**\n * The disabled attribute can be set to [keep a user from clicking on the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#disabled).\n */\n disabled?: boolean | string;\n\n /**\n * \tAssociates the control with a form element\n */\n form?: string;\n\n /**\n * The name attribute specifies a [name attributes value](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#name) for the button.\n */\n name?: string;\n\n /**\n * Define the text next to the icon specified via the icon Property to get hidden.\n */\n noText?: boolean | string;\n\n /**\n * The type attribute specifies the [type of button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type).\n */\n type?: ButtonTypeType;\n\n /**\n * The value attribute specifies an initial [value for the button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#value).\n */\n value?: string;\n\n /**\n * Variant of the button. Use only 1 primary button on a page as CTA otherwise use one of the adaptive buttons.\n */\n variant?: ButtonVariantType | string;\n};\nexport type DBButtonProps = DBButtonDefaultProps & GlobalProps & ClickEventProps<HTMLButtonElement> & IconProps & WidthProps & SizeProps & ShowIconProps & TextProps & ShowIconLeadingProps & ShowIconTrailingProps & IconLeadingProps & IconTrailingProps;\nexport type DBButtonDefaultState = {\n getButtonType: () => ButtonTypeType;\n};\nexport type DBButtonState = DBButtonDefaultState & GlobalState"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/card/card.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAGlC,OAAO,EACL,SAAS,EACT,CAAC,EAED,KAAK,EAEL,IAAI,GACL,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AAIH,MAAM,OAAO,MAAM;IAWjB,WAAW,CAAC,KAA8B;QACxC,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,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAChE,CAAC;oBACD,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC5C,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;g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E3C,8DAAa,CACT,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { ClickEvent } from \"../../shared/model\";\nimport { cls } from \"../../utils\";\nimport type { DBCardProps, DBCardState } from \"./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\n */\n @Component({\n tag: \"db-card\",\n})\nexport class DBCard {\n private _ref!: HTMLDivElement | any;\n @Event() click: EventEmitter<\n Parameters<Required<DBCardProps>[\"onClick\"]>[number]\n > | void;\n @Prop() id: DBCardProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBCardProps[\"className\"];\n @Prop() behavior: DBCardProps[\"behavior\"];\n @Prop() elevationLevel: DBCardProps[\"elevationLevel\"];\n @Prop() spacing: DBCardProps[\"spacing\"];\n\n handleClick(event: ClickEvent<HTMLElement>) {\n if (this.click) {\n this.click.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-card\");\n }\n\n render() {\n return (\n <div\n class={cls(\"db-card\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-behavior={this.behavior}\n data-elevation-level={this.elevationLevel}\n data-spacing={this.spacing}\n onClick={(event) => this.handleClick(event)}\n >\n <slot></slot>\n </div>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAe,MAAM,CAAC","sourcesContent":["import { DBCard } from './card';\n\nexport default DBCard;"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/card/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAU,CAAC;AAEnE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAU,CAAC","sourcesContent":["import { ClickEventProps, ClickEventState, GlobalProps, GlobalState, SpacingProps } from '../../shared/model';\nexport const CardBehaviorList = ['static', 'interactive'] as const;\nexport type CardBehaviorType = (typeof CardBehaviorList)[number];\nexport const CardElevationLevelList = ['1', '2', '3'] as const;\nexport type CardElevationLevelType = (typeof CardElevationLevelList)[number];\nexport type DBCardDefaultProps = {\n /**\n * Makes the card interactive\n */\n behavior?: CardBehaviorType;\n\n /**\n * Changes the elevation of the card which is equal to `basic-background-level`\n */\n elevationLevel?: CardElevationLevelType;\n};\nexport type DBCardProps = DBCardDefaultProps & GlobalProps & ClickEventProps<HTMLElement> & SpacingProps;\nexport type DBCardDefaultState = {};\nexport type DBCardState = DBCardDefaultState & GlobalState & ClickEventState<HTMLElement>"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EACjC,yBAAyB,EACzB,qBAAqB,EACrB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,GAAG,EACH,KAAK,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,IAAI,GACL,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,4BAA4B,GAG7B,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACL,SAAS,EACT,CAAC,EAED,KAAK,EACL,KAAK,EAEL,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AAIH,MAAM,OAAO,UAAU;IAHtB;QAiCU,gBAAW,GAAG,KAAK,CAAC;QACpB,QAAG,GAAG,SAAS,CAAC;QAChB,eAAU,GAAG,SAAS,CAAC;QACvB,oBAAe,GAAG,SAAS,CAAC;QAC5B,sBAAiB,GAAG,SAAS,CAAC;QAC9B,oBAAe,GAAG,SAAS,CAAC;QAC5B,eAAU,GAAG,SAAS,CAAC;QACvB,uBAAkB,GAAG,EAAE,CAAC;QACxB,oBAAe,GAAG,SAAS,CAAC;KAqQtC;IAnQC,aAAa;;QACX,OAAO,CAAC,CAAC,CAAC,MAAA,IAAI,CAAC,YAAY,mCAAI,IAAI,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC;IAC9D,CAAC;IACD,gBAAgB;;QACd,2EAA2E;QAC3E,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAC,KAAK,CAAA,IAAI,IAAI,CAAC,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/constants\";\nimport { ChangeEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n cls,\n delay,\n getBoolean,\n getHideProp,\n hasVoiceOver,\n stringPropVisible,\n uuid,\n} from \"../../utils\";\nimport {\n addCheckedResetEventListener,\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\nimport { DBInfotext } from \"../infotext/infotext\";\nimport { DBCheckboxProps, DBCheckboxState } from \"./model\";\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-checkbox\",\n})\nexport class DBCheckbox {\n private _ref!: HTMLInputElement | any;\n @Prop() id: DBCheckboxProps[\"id\"];\n @Prop() invalidMessage: DBCheckboxProps[\"invalidMessage\"];\n @Prop() message: DBCheckboxProps[\"message\"];\n @Prop() showMessage: DBCheckboxProps[\"showMessage\"];\n @Prop() indeterminate: DBCheckboxProps[\"indeterminate\"];\n @Prop() checked: DBCheckboxProps[\"checked\"];\n @Prop() validMessage: DBCheckboxProps[\"validMessage\"];\n @Prop() validation: DBCheckboxProps[\"validation\"];\n @Prop() required: DBCheckboxProps[\"required\"];\n @Event() change: EventEmitter<\n Parameters<Required<DBCheckboxProps>[\"onChange\"]>[number]\n > | void;\n @Event() blur: EventEmitter<\n Parameters<Required<DBCheckboxProps>[\"onBlur\"]>[number]\n > | void;\n @Event() focus: EventEmitter<\n Parameters<Required<DBCheckboxProps>[\"onFocus\"]>[number]\n > | void;\n @Prop({attribute: \"classname\"}) className: DBCheckboxProps[\"className\"];\n @Prop() size: DBCheckboxProps[\"size\"];\n @Prop() showRequiredAsterisk: DBCheckboxProps[\"showRequiredAsterisk\"];\n @Prop() showLabel: DBCheckboxProps[\"showLabel\"];\n @Prop() name: DBCheckboxProps[\"name\"];\n @Prop() disabled: DBCheckboxProps[\"disabled\"];\n @Prop() value: DBCheckboxProps[\"value\"];\n @Prop() ariaDescribedBy: DBCheckboxProps[\"ariaDescribedBy\"];\n @Prop() label: DBCheckboxProps[\"label\"];\n @Prop() messageIcon: DBCheckboxProps[\"messageIcon\"];\n @State() initialized = false;\n @State() _id = undefined;\n @State() _messageId = undefined;\n @State() _validMessageId = undefined;\n @State() _invalidMessageId = undefined;\n @State() _invalidMessage = undefined;\n @State() _descByIds = undefined;\n @State() _voiceOverFallback = \"\";\n @State() abortController = undefined;\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 checkbox */\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\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 = undefined;\n }\n }\n handleChange(event: ChangeEvent<HTMLInputElement>, reset?: boolean) {\n if (this.change) {\n this.change.emit(event);\n }\n this.handleValidation();\n }\n handleBlur(event: InteractionEvent<HTMLInputElement> | any) {\n if (this.blur) {\n this.blur.emit(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLInputElement> | any) {\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: HTMLInputElement | 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 this.handleValidation();\n }\n }\n\n @Watch(\"_id\")\n watch1() {\n this.watch1Fn();\n }\n\n watch2Fn() {\n if (this._ref) {\n if (this.indeterminate !== undefined) {\n // When indeterminate is set, the value of the checked prop only impacts the form submitted values.\n // It has no accessibility or UX implications. (https://mui.com/material-ui/react-checkbox/)\n this._ref.indeterminate = !!getBoolean(this.indeterminate);\n }\n }\n }\n\n @Watch(\"initialized\")\n @Watch(\"_ref\")\n @Watch(\"indeterminate\")\n watch2() {\n this.watch2Fn();\n }\n\n watch3Fn() {\n if (this.initialized && this._ref) {\n // in angular this must be set via native element\n if (this.checked != undefined) {\n this._ref.checked = !!getBoolean(this.checked);\n }\n this.initialized = false;\n }\n }\n\n @Watch(\"initialized\")\n @Watch(\"_ref\")\n @Watch(\"checked\")\n watch3() {\n this.watch3Fn();\n }\n\n watch4Fn() {\n if (this._ref) {\n const defaultChecked = undefined;\n let controller = this.abortController;\n if (!controller) {\n controller = new AbortController();\n this.abortController = controller;\n }\n addCheckedResetEventListener(\n this._ref,\n {\n checked: this.checked,\n defaultChecked,\n },\n (event) => {\n this.handleChange(event, true);\n },\n controller.signal\n );\n }\n }\n\n @Watch(\"_ref\")\n watch4() {\n this.watch4Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-checkbox\");\n this.initialized = true;\n const mId = this.id ?? `checkbox-${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 this.watch3Fn();\n this.watch4Fn();\n }\n disconnectedCallback() {\n this.abortController?.abort();\n }\n\n render() {\n return (\n <div\n class={cls(\"db-checkbox\", this.className)}\n data-size={this.size}\n data-hide-asterisk={getHideProp(this.showRequiredAsterisk)}\n data-hide-label={getHideProp(this.showLabel)}\n >\n <label htmlFor={this._id}>\n <input\n type=\"checkbox\"\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 name={this.name}\n checked={getBoolean(this.checked, \"checked\")}\n disabled={getBoolean(this.disabled, \"disabled\")}\n value={this.value}\n required={getBoolean(this.required, \"required\")}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n aria-describedby={this.ariaDescribedBy ?? this._descByIds}\n />\n {this.label ? this.label : <slot></slot>}\n </label>\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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,eAAe,UAAU,CAAC","sourcesContent":["import { DBCheckbox } from './checkbox';\n\nexport default DBCheckbox;"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/checkbox/model.ts"],"names":[],"mappings":"","sourcesContent":["import { ChangeEventProps, ChangeEventState, FocusEventProps, FocusEventState, FormCheckProps, FormMessageProps, FormProps, FormState, FromValidState, GlobalProps, GlobalState, InitializedState, SizeProps } from '../../shared/model';\nexport type DBCheckboxDefaultProps = {\n /**\n * Define an [indeterminate](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#indeterminate) state of a checkbox\n */\n indeterminate?: boolean | string;\n};\nexport type DBCheckboxProps = DBCheckboxDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & FormMessageProps & SizeProps;\nexport type DBCheckboxDefaultState = {};\nexport type DBCheckboxState = DBCheckboxDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState & InitializedState & FromValidState"]}
|