@db-ux/wc-core-components 4.10.2 → 4.11.1
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 +24 -0
- package/bundle/db-accordion-item.js +1 -1
- package/bundle/db-accordion.js +1 -1
- package/bundle/db-badge.js +1 -1
- package/bundle/db-brand.js +1 -1
- package/bundle/db-button.js +1 -1
- package/bundle/db-card.js +1 -1
- package/bundle/db-checkbox.js +1 -1
- package/bundle/db-custom-button.js +1 -1
- package/bundle/db-custom-select-dropdown.js +1 -1
- package/bundle/db-custom-select-form-field.js +1 -1
- package/bundle/db-custom-select-list-item.js +1 -1
- package/bundle/db-custom-select-list.js +1 -1
- package/bundle/db-custom-select.js +1 -1
- package/bundle/db-divider.js +1 -1
- package/bundle/db-drawer.js +1 -1
- package/bundle/db-header.js +1 -1
- package/bundle/db-icon.js +1 -1
- package/bundle/db-infotext.js +1 -1
- package/bundle/db-input.js +1 -1
- package/bundle/db-link.js +1 -1
- package/bundle/db-navigation-item.js +1 -1
- package/bundle/db-navigation.js +1 -1
- package/bundle/db-notification.js +1 -1
- package/bundle/db-page.js +1 -1
- package/bundle/db-popover.js +1 -1
- package/bundle/db-radio.js +1 -1
- package/bundle/db-section.js +1 -1
- package/bundle/db-select.js +1 -1
- package/bundle/db-stack.js +1 -1
- package/bundle/db-switch.js +1 -1
- package/bundle/db-tab-item.js +1 -1
- package/bundle/db-tab-list.js +1 -1
- package/bundle/db-tab-panel.js +1 -1
- package/bundle/db-table-body.d.ts +11 -0
- package/bundle/db-table-body.js +1 -0
- package/bundle/db-table-caption.d.ts +11 -0
- package/bundle/db-table-caption.js +1 -0
- package/bundle/db-table-data-cell.d.ts +11 -0
- package/bundle/db-table-data-cell.js +1 -0
- package/bundle/db-table-footer.d.ts +11 -0
- package/bundle/db-table-footer.js +1 -0
- package/bundle/db-table-head.d.ts +11 -0
- package/bundle/db-table-head.js +1 -0
- package/bundle/db-table-header-cell.d.ts +11 -0
- package/bundle/db-table-header-cell.js +1 -0
- package/bundle/db-table-row.d.ts +11 -0
- package/bundle/db-table-row.js +1 -0
- package/bundle/db-table.d.ts +11 -0
- package/bundle/db-table.js +1 -0
- package/bundle/db-tabs.js +1 -1
- package/bundle/db-tag.js +1 -1
- package/bundle/db-textarea.js +1 -1
- package/bundle/db-tooltip.js +1 -1
- package/bundle/index.js +1 -1
- package/bundle/p-3Da4lo5j.js +1 -0
- package/bundle/p-BEcb3EOO.js +1 -0
- package/bundle/p-BEolc6Da.js +1 -0
- package/bundle/p-BekmqY3B.js +1 -0
- package/bundle/p-BmRO4X-P.js +1 -0
- package/bundle/p-BrQIYm5N.js +1 -0
- package/bundle/p-BxZ0zFXf.js +1 -0
- package/bundle/p-C2viXF7U.js +1 -0
- package/bundle/p-C4iD-won.js +1 -0
- package/bundle/p-CHg_VPD9.js +1 -0
- package/bundle/p-CYYSsu3p.js +1 -0
- package/bundle/p-CZ9SsTOA.js +1 -0
- package/bundle/p-CewqZGHg.js +1 -0
- package/bundle/p-CotiEHZi.js +1 -0
- package/bundle/p-D1orcIJf.js +1 -0
- package/{dist/db-ux/p-D5mInaY7.js → bundle/p-D6L0n3gO.js} +1 -1
- package/bundle/p-D9RSX1St.js +1 -0
- package/bundle/p-DJTpgiBy.js +1 -0
- package/bundle/p-DbgzEek1.js +1 -0
- package/bundle/p-DqNXsduK.js +1 -0
- package/bundle/p-Duacd-NX.js +1 -0
- package/bundle/p-k5Hci0ok.js +1 -0
- package/bundle/p-mk64Fltq.js +1 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +48 -11
- package/dist/cjs/db-accordion.cjs.entry.js +45 -8
- package/dist/cjs/db-badge.cjs.entry.js +45 -8
- package/dist/cjs/db-brand.cjs.entry.js +38 -7
- package/dist/cjs/db-button.cjs.entry.js +40 -8
- package/dist/cjs/db-card.cjs.entry.js +38 -7
- package/dist/cjs/db-checkbox.cjs.entry.js +48 -14
- package/dist/cjs/db-custom-button.cjs.entry.js +40 -8
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +197 -37
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +38 -7
- package/dist/cjs/db-custom-select.cjs.entry.js +65 -31
- package/dist/cjs/db-divider.cjs.entry.js +37 -6
- package/dist/cjs/db-drawer.cjs.entry.js +47 -10
- package/dist/cjs/db-header.cjs.entry.js +45 -8
- package/dist/cjs/db-icon.cjs.entry.js +38 -7
- package/dist/cjs/db-infotext.cjs.entry.js +38 -7
- package/dist/cjs/db-link_4.cjs.entry.js +294 -0
- package/dist/cjs/db-navigation-item.cjs.entry.js +49 -12
- package/dist/cjs/db-navigation.cjs.entry.js +38 -7
- package/dist/cjs/db-notification.cjs.entry.js +38 -7
- package/dist/cjs/db-page.cjs.entry.js +50 -15
- package/dist/cjs/db-popover.cjs.entry.js +46 -9
- package/dist/cjs/db-radio.cjs.entry.js +45 -11
- package/dist/cjs/db-section.cjs.entry.js +38 -7
- package/dist/cjs/db-select.cjs.entry.js +49 -15
- package/dist/cjs/db-stack.cjs.entry.js +38 -7
- package/dist/cjs/db-switch.cjs.entry.js +48 -14
- package/dist/cjs/db-tab-item_3.cjs.entry.js +123 -23
- package/dist/cjs/db-table-body_3.cjs.entry.js +235 -0
- package/dist/cjs/{db-link.cjs.entry.js → db-table-caption.cjs.entry.js} +41 -11
- package/dist/cjs/db-table.cjs.entry.js +189 -0
- package/dist/cjs/db-tabs.cjs.entry.js +44 -10
- package/dist/cjs/db-textarea.cjs.entry.js +48 -13
- package/dist/cjs/db-tooltip.cjs.entry.js +147 -23
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/{document-click-listener-B2-xKJv3.js → document-click-listener-DdNXbErU.js} +1 -1
- package/dist/cjs/{document-scroll-listener-ChQ7XZRk.js → document-scroll-listener-CvAZ6uPr.js} +1 -1
- package/dist/cjs/{form-components-_ncB_U2D.js → form-components-CmQlkARp.js} +1 -1
- package/dist/cjs/{index-HN8AqU2e.js → index-C313bRqJ.js} +21 -0
- package/dist/cjs/{index-2_9ESkQu.js → index-spuu3sXz.js} +13 -8
- package/dist/cjs/index.cjs.js +23 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/accordion/accordion.js +45 -7
- package/dist/collection/components/accordion-item/accordion-item.js +48 -10
- package/dist/collection/components/badge/badge.js +45 -7
- package/dist/collection/components/brand/brand.js +44 -6
- package/dist/collection/components/button/button.js +48 -9
- package/dist/collection/components/card/card.js +43 -5
- package/dist/collection/components/checkbox/checkbox.js +48 -13
- package/dist/collection/components/custom-button/custom-button.js +48 -9
- package/dist/collection/components/custom-select/custom-select.js +64 -29
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +41 -5
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +43 -5
- package/dist/collection/components/custom-select-list/custom-select-list.js +43 -5
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +39 -7
- package/dist/collection/components/divider/divider.js +42 -4
- package/dist/collection/components/drawer/drawer.js +47 -9
- package/dist/collection/components/header/header.js +45 -7
- package/dist/collection/components/icon/icon.js +44 -6
- package/dist/collection/components/infotext/infotext.js +44 -6
- package/dist/collection/components/input/input.js +56 -19
- package/dist/collection/components/link/link.js +43 -5
- package/dist/collection/components/navigation/navigation.js +43 -5
- package/dist/collection/components/navigation-item/navigation-item.js +50 -12
- package/dist/collection/components/notification/notification.js +44 -6
- package/dist/collection/components/page/page.js +50 -14
- package/dist/collection/components/popover/popover.js +45 -7
- package/dist/collection/components/radio/radio.js +44 -9
- package/dist/collection/components/section/section.js +43 -5
- package/dist/collection/components/select/select.js +50 -15
- package/dist/collection/components/stack/stack.js +43 -5
- package/dist/collection/components/switch/switch.js +51 -16
- package/dist/collection/components/tab-item/tab-item.js +51 -15
- package/dist/collection/components/tab-list/tab-list.js +43 -5
- package/dist/collection/components/tab-panel/tab-panel.js +48 -5
- package/dist/collection/components/table/examples/data.js +258 -0
- package/dist/collection/components/table/index.js +2 -0
- package/dist/collection/components/table/model.js +6 -0
- package/dist/collection/components/table/table.js +510 -0
- package/dist/collection/components/table-body/index.js +2 -0
- package/dist/collection/components/table-body/model.js +1 -0
- package/dist/collection/components/table-body/table-body.js +149 -0
- package/dist/collection/components/table-caption/index.js +2 -0
- package/dist/collection/components/table-caption/model.js +1 -0
- package/dist/collection/components/table-caption/table-caption.js +154 -0
- package/dist/collection/components/table-data-cell/index.js +2 -0
- package/dist/collection/components/table-data-cell/model.js +1 -0
- package/dist/collection/components/table-data-cell/table-data-cell.js +303 -0
- package/dist/collection/components/table-footer/index.js +2 -0
- package/dist/collection/components/table-footer/model.js +1 -0
- package/dist/collection/components/table-footer/table-footer.js +149 -0
- package/dist/collection/components/table-head/index.js +2 -0
- package/dist/collection/components/table-head/model.js +1 -0
- package/dist/collection/components/table-head/table-head.js +185 -0
- package/dist/collection/components/table-header-cell/index.js +2 -0
- package/dist/collection/components/table-header-cell/model.js +1 -0
- package/dist/collection/components/table-header-cell/table-header-cell.js +381 -0
- package/dist/collection/components/table-row/index.js +2 -0
- package/dist/collection/components/table-row/model.js +1 -0
- package/dist/collection/components/table-row/table-row.js +207 -0
- package/dist/collection/components/tabs/tabs.js +44 -9
- package/dist/collection/components/tag/tag.js +44 -6
- package/dist/collection/components/textarea/textarea.js +48 -12
- package/dist/collection/components/tooltip/tooltip.js +150 -21
- package/dist/collection/index.js +16 -0
- package/dist/collection/shared/model.js +1 -1
- package/dist/collection/utils/index.js +13 -8
- package/dist/custom-elements.json +8189 -4307
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/p-0123ee1b.entry.js +1 -0
- package/dist/db-ux/p-090b1797.entry.js +1 -0
- package/dist/db-ux/p-0e17c5a0.entry.js +1 -0
- package/dist/db-ux/p-194e851c.entry.js +1 -0
- package/dist/db-ux/p-281f5e3e.entry.js +1 -0
- package/dist/db-ux/p-2ae377e6.entry.js +1 -0
- package/dist/db-ux/p-2cf4345f.entry.js +1 -0
- package/dist/db-ux/p-2e6c8304.entry.js +1 -0
- package/dist/db-ux/p-335391d4.entry.js +1 -0
- package/dist/db-ux/p-34235204.entry.js +1 -0
- package/dist/db-ux/p-3569bb3c.entry.js +1 -0
- package/dist/db-ux/p-398f9165.entry.js +1 -0
- package/dist/db-ux/p-5070470f.entry.js +1 -0
- package/dist/db-ux/p-5e08712d.entry.js +1 -0
- package/dist/db-ux/p-63d98f9d.entry.js +1 -0
- package/dist/db-ux/p-6aa92091.entry.js +1 -0
- package/dist/db-ux/p-78b7e6f6.entry.js +1 -0
- package/dist/db-ux/p-7ca4bc82.entry.js +1 -0
- package/dist/db-ux/p-8f989150.entry.js +1 -0
- package/dist/db-ux/p-8fa7a578.entry.js +1 -0
- package/dist/db-ux/p-91052c75.entry.js +1 -0
- package/dist/db-ux/p-9ccd42b1.entry.js +1 -0
- package/dist/db-ux/p-BihrW11j.js +1 -0
- package/dist/db-ux/p-BlbKvvUv.js +2 -0
- package/{bundle/p-BLyvxOmU.js → dist/db-ux/p-BtImZ8Nt.js} +1 -1
- package/dist/db-ux/p-OOIf-5XP.js +1 -0
- package/dist/db-ux/p-a4d9f6e2.entry.js +1 -0
- package/dist/db-ux/p-af248e57.entry.js +1 -0
- package/dist/db-ux/p-ba82a0b0.entry.js +1 -0
- package/dist/db-ux/p-c2ce6ecd.entry.js +1 -0
- package/dist/db-ux/p-d7b5748d.entry.js +1 -0
- package/dist/db-ux/p-dfbbe502.entry.js +1 -0
- package/dist/db-ux/p-e7a400a2.entry.js +1 -0
- package/dist/db-ux/p-ef1aa878.entry.js +1 -0
- package/dist/db-ux/p-f1daaefa.entry.js +1 -0
- package/dist/db-ux/p-f6312d2c.entry.js +1 -0
- package/dist/db-ux/p-fbf09569.entry.js +1 -0
- package/dist/db-ux/p-ff11c071.entry.js +1 -0
- package/dist/db-ux/p-fumiz06Y.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +48 -11
- package/dist/esm/db-accordion.entry.js +45 -8
- package/dist/esm/db-badge.entry.js +45 -8
- package/dist/esm/db-brand.entry.js +38 -7
- package/dist/esm/db-button.entry.js +40 -8
- package/dist/esm/db-card.entry.js +38 -7
- package/dist/esm/db-checkbox.entry.js +48 -14
- package/dist/esm/db-custom-button.entry.js +40 -8
- package/dist/esm/db-custom-select-dropdown_5.entry.js +197 -37
- package/dist/esm/db-custom-select-form-field.entry.js +38 -7
- package/dist/esm/db-custom-select.entry.js +65 -31
- package/dist/esm/db-divider.entry.js +37 -6
- package/dist/esm/db-drawer.entry.js +47 -10
- package/dist/esm/db-header.entry.js +45 -8
- package/dist/esm/db-icon.entry.js +38 -7
- package/dist/esm/db-infotext.entry.js +38 -7
- package/dist/esm/db-link_4.entry.js +289 -0
- package/dist/esm/db-navigation-item.entry.js +49 -12
- package/dist/esm/db-navigation.entry.js +38 -7
- package/dist/esm/db-notification.entry.js +38 -7
- package/dist/esm/db-page.entry.js +50 -15
- package/dist/esm/db-popover.entry.js +46 -9
- package/dist/esm/db-radio.entry.js +45 -11
- package/dist/esm/db-section.entry.js +38 -7
- package/dist/esm/db-select.entry.js +49 -15
- package/dist/esm/db-stack.entry.js +38 -7
- package/dist/esm/db-switch.entry.js +48 -14
- package/dist/esm/db-tab-item_3.entry.js +123 -23
- package/dist/esm/db-table-body_3.entry.js +231 -0
- package/dist/esm/{db-link.entry.js → db-table-caption.entry.js} +41 -11
- package/dist/esm/db-table.entry.js +187 -0
- package/dist/esm/db-tabs.entry.js +44 -10
- package/dist/esm/db-textarea.entry.js +48 -13
- package/dist/esm/db-tooltip.entry.js +147 -23
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/{document-click-listener-D7W_VE5O.js → document-click-listener-9wJfRcvz.js} +1 -1
- package/dist/esm/{document-scroll-listener-DOBe3Oa9.js → document-scroll-listener-4F0ZAg9p.js} +1 -1
- package/dist/esm/{form-components-D6LQfJvq.js → form-components-ZV7IN0oG.js} +1 -1
- package/dist/esm/{index-BGaQ0Bx8.js → index-BlbKvvUv.js} +21 -0
- package/dist/esm/{index-xkoBSP8R.js → index-fumiz06Y.js} +13 -8
- package/dist/esm/index.js +16 -5
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/accordion/accordion.d.ts +3 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +3 -0
- package/dist/types/components/badge/badge.d.ts +3 -0
- package/dist/types/components/brand/brand.d.ts +3 -0
- package/dist/types/components/button/button.d.ts +3 -0
- package/dist/types/components/card/card.d.ts +3 -0
- package/dist/types/components/checkbox/checkbox.d.ts +2 -0
- package/dist/types/components/custom-button/custom-button.d.ts +3 -0
- package/dist/types/components/custom-select/custom-select.d.ts +2 -0
- package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +3 -0
- package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +3 -0
- package/dist/types/components/custom-select-list/custom-select-list.d.ts +3 -0
- package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +3 -0
- package/dist/types/components/divider/divider.d.ts +3 -0
- package/dist/types/components/drawer/drawer.d.ts +3 -0
- package/dist/types/components/header/header.d.ts +3 -0
- package/dist/types/components/icon/icon.d.ts +3 -0
- package/dist/types/components/infotext/infotext.d.ts +3 -0
- package/dist/types/components/input/input.d.ts +2 -0
- package/dist/types/components/link/link.d.ts +3 -0
- package/dist/types/components/navigation/navigation.d.ts +3 -0
- package/dist/types/components/navigation-item/navigation-item.d.ts +3 -0
- package/dist/types/components/notification/notification.d.ts +3 -0
- package/dist/types/components/page/page.d.ts +2 -0
- package/dist/types/components/popover/popover.d.ts +3 -0
- package/dist/types/components/radio/radio.d.ts +2 -0
- package/dist/types/components/section/section.d.ts +3 -0
- package/dist/types/components/select/select.d.ts +2 -0
- package/dist/types/components/stack/stack.d.ts +3 -0
- package/dist/types/components/switch/switch.d.ts +2 -0
- package/dist/types/components/tab-item/tab-item.d.ts +2 -0
- package/dist/types/components/tab-list/tab-list.d.ts +3 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +3 -0
- package/dist/types/components/table/examples/data.d.ts +9 -0
- package/dist/types/components/table/index.d.ts +2 -0
- package/dist/types/components/table/model.d.ts +74 -0
- package/dist/types/components/table/table.d.ts +41 -0
- package/dist/types/components/table-body/index.d.ts +2 -0
- package/dist/types/components/table-body/model.d.ts +8 -0
- package/dist/types/components/table-body/table-body.d.ts +20 -0
- package/dist/types/components/table-caption/index.d.ts +2 -0
- package/dist/types/components/table-caption/model.d.ts +5 -0
- package/dist/types/components/table-caption/table-caption.d.ts +22 -0
- package/dist/types/components/table-data-cell/index.d.ts +2 -0
- package/dist/types/components/table-data-cell/model.d.ts +5 -0
- package/dist/types/components/table-data-cell/table-data-cell.d.ts +26 -0
- package/dist/types/components/table-footer/index.d.ts +2 -0
- package/dist/types/components/table-footer/model.d.ts +8 -0
- package/dist/types/components/table-footer/table-footer.d.ts +20 -0
- package/dist/types/components/table-head/index.d.ts +2 -0
- package/dist/types/components/table-head/model.d.ts +10 -0
- package/dist/types/components/table-head/table-head.d.ts +62 -0
- package/dist/types/components/table-header-cell/index.d.ts +2 -0
- package/dist/types/components/table-header-cell/model.d.ts +24 -0
- package/dist/types/components/table-header-cell/table-header-cell.d.ts +29 -0
- package/dist/types/components/table-row/index.d.ts +2 -0
- package/dist/types/components/table-row/model.d.ts +30 -0
- package/dist/types/components/table-row/table-row.d.ts +24 -0
- package/dist/types/components/tabs/tabs.d.ts +2 -0
- package/dist/types/components/tag/tag.d.ts +3 -0
- package/dist/types/components/textarea/textarea.d.ts +2 -0
- package/dist/types/components/tooltip/model.d.ts +9 -0
- package/dist/types/components/tooltip/tooltip.d.ts +8 -0
- package/dist/types/components.d.ts +278 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/shared/figma.d.ts +70 -18
- package/dist/types/shared/model.d.ts +44 -2
- package/dist/types/utils/index.d.ts +9 -4
- package/dist/vscode.html-custom-data.json +400 -2
- package/dist/web-types.json +960 -177
- package/package.json +6 -6
- package/bundle/p--qzKkpB9.js +0 -1
- package/bundle/p-9fgrfYbf.js +0 -1
- package/bundle/p-B5E_0kTi.js +0 -1
- package/bundle/p-BChikMGc.js +0 -1
- package/bundle/p-BGVLpaFn.js +0 -1
- package/bundle/p-BPxBqqlc.js +0 -1
- package/bundle/p-C6_y8Tot.js +0 -1
- package/bundle/p-CKfRqzsn.js +0 -1
- package/bundle/p-CnYMRGX1.js +0 -1
- package/bundle/p-CwzdaLE3.js +0 -1
- package/bundle/p-CyxQfbGC.js +0 -1
- package/bundle/p-DisehhY5.js +0 -1
- package/bundle/p-DstwggLZ.js +0 -1
- package/bundle/p-LbPYp2oP.js +0 -1
- package/bundle/p-suxDlmXD.js +0 -1
- package/dist/db-ux/p-0f524f6c.entry.js +0 -1
- package/dist/db-ux/p-11211f1a.entry.js +0 -1
- package/dist/db-ux/p-1a4881de.entry.js +0 -1
- package/dist/db-ux/p-21e5f6d0.entry.js +0 -1
- package/dist/db-ux/p-2461e08a.entry.js +0 -1
- package/dist/db-ux/p-26b7e21f.entry.js +0 -1
- package/dist/db-ux/p-272bdffc.entry.js +0 -1
- package/dist/db-ux/p-32c359a9.entry.js +0 -1
- package/dist/db-ux/p-33606da9.entry.js +0 -1
- package/dist/db-ux/p-44391c06.entry.js +0 -1
- package/dist/db-ux/p-46e3033b.entry.js +0 -1
- package/dist/db-ux/p-4b99f205.entry.js +0 -1
- package/dist/db-ux/p-4c238643.entry.js +0 -1
- package/dist/db-ux/p-4c3a8823.entry.js +0 -1
- package/dist/db-ux/p-4d5201a3.entry.js +0 -1
- package/dist/db-ux/p-5eae34e7.entry.js +0 -1
- package/dist/db-ux/p-652739e4.entry.js +0 -1
- package/dist/db-ux/p-93a6b1ee.entry.js +0 -1
- package/dist/db-ux/p-94de5791.entry.js +0 -1
- package/dist/db-ux/p-9728504d.entry.js +0 -1
- package/dist/db-ux/p-BGaQ0Bx8.js +0 -2
- package/dist/db-ux/p-CHLgQ9vn.js +0 -1
- package/dist/db-ux/p-D_roHmuC.js +0 -1
- package/dist/db-ux/p-a6c3ceaa.entry.js +0 -1
- package/dist/db-ux/p-cd3cfb4e.entry.js +0 -1
- package/dist/db-ux/p-cf045f35.entry.js +0 -1
- package/dist/db-ux/p-d173eace.entry.js +0 -1
- package/dist/db-ux/p-d3ada4cb.entry.js +0 -1
- package/dist/db-ux/p-d858f147.entry.js +0 -1
- package/dist/db-ux/p-db71c251.entry.js +0 -1
- package/dist/db-ux/p-e2740857.entry.js +0 -1
- package/dist/db-ux/p-ed5b3877.entry.js +0 -1
- package/dist/db-ux/p-fd334f14.entry.js +0 -1
- package/dist/db-ux/p-fed0fc42.entry.js +0 -1
- package/dist/db-ux/p-xkoBSP8R.js +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
5
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
6
6
|
|
|
7
7
|
const DBNotification = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
this.close = index.createEvent(this, "close");
|
|
11
|
+
this.observer = undefined;
|
|
11
12
|
}
|
|
12
13
|
handleClose(event) {
|
|
13
14
|
if (!event)
|
|
@@ -17,6 +18,26 @@ const DBNotification = class {
|
|
|
17
18
|
this.close.emit(event);
|
|
18
19
|
}
|
|
19
20
|
}
|
|
21
|
+
setupObserver(element) {
|
|
22
|
+
if (!element)
|
|
23
|
+
return;
|
|
24
|
+
const parent = element.closest("db-notification");
|
|
25
|
+
if (!parent || this.observer)
|
|
26
|
+
return;
|
|
27
|
+
this.observer = new MutationObserver((mutations) => {
|
|
28
|
+
if (mutations.some((mutation) => {
|
|
29
|
+
var _a;
|
|
30
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
31
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
32
|
+
})) {
|
|
33
|
+
this.enableAttributePassing(element, "db-notification");
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
this.observer.observe(parent, {
|
|
37
|
+
attributes: true,
|
|
38
|
+
attributeOldValue: true,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
20
41
|
/**
|
|
21
42
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
22
43
|
* @param element the ref for the component
|
|
@@ -30,10 +51,15 @@ const DBNotification = class {
|
|
|
30
51
|
const attr = attributes.item(i);
|
|
31
52
|
if (attr && attr.name !== 'data-density' &&
|
|
32
53
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
33
|
-
|
|
54
|
+
if (attr.value) {
|
|
55
|
+
element.setAttribute(attr.name, attr.value);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
element.removeAttribute(attr.name);
|
|
59
|
+
}
|
|
34
60
|
parent.removeAttribute(attr.name);
|
|
35
61
|
}
|
|
36
|
-
else if (attr &&
|
|
62
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
37
63
|
element.setAttribute(attr.name, attr.value);
|
|
38
64
|
parent.removeAttribute(attr.name);
|
|
39
65
|
}
|
|
@@ -41,7 +67,7 @@ const DBNotification = class {
|
|
|
41
67
|
const isWebComponent = attr.value.includes("hydrated");
|
|
42
68
|
const value = attr.value.replace("hydrated", "").trim();
|
|
43
69
|
const currentClass = element.getAttribute("class");
|
|
44
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
70
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
45
71
|
if (isWebComponent) {
|
|
46
72
|
// Stencil is using this class for lazy loading component
|
|
47
73
|
parent.setAttribute("class", "hydrated");
|
|
@@ -61,16 +87,21 @@ const DBNotification = class {
|
|
|
61
87
|
}
|
|
62
88
|
}
|
|
63
89
|
this.enableAttributePassing(this._ref, "db-notification");
|
|
90
|
+
this.setupObserver(this._ref);
|
|
91
|
+
}
|
|
92
|
+
disconnectedCallback() {
|
|
93
|
+
var _a;
|
|
94
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
64
95
|
}
|
|
65
96
|
render() {
|
|
66
97
|
var _a, _b, _c;
|
|
67
|
-
return (index.h("div", { key: '
|
|
98
|
+
return (index.h("div", { key: '6700e43e45a2c0c18a0216fb12afd5d31820dcf9', class: index$1.cls("db-notification", this.className), ref: (el) => {
|
|
68
99
|
this._ref = el;
|
|
69
100
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: index$1.getNotificationRole({
|
|
70
101
|
semantic: this.semantic,
|
|
71
102
|
role: this.role,
|
|
72
103
|
ariaLive: this.ariaLive,
|
|
73
|
-
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": index$1.getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, index.h("slot", { key: '
|
|
104
|
+
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": index$1.getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-link-variant": this.linkVariant }, index.h("slot", { key: '9ea4d9427f7e34dbf5fd9b187f4dce5df9b39d34', name: "image" }), index$1.stringPropVisible(this.headline, this.showHeadline) ? (index.h("header", { "data-area": "head" }, this.headline)) : null, index.h("div", { key: '4f9c9a95f7c6bd8f4b5bfb0acf69f02dbc789856', "data-area": "content" }, this.text ? this.text : null, index.h("slot", { key: '2d9007bdc99c163fd6af4b12cc7210b60ab11319' })), index$1.stringPropVisible(this.timestamp, this.showTimestamp) ? (index.h("time", { "data-area": "timestamp", dateTime: this.timestampDatetime }, this.timestamp)) : null, index.h("slot", { key: 'f5505f81bdf36d9dd1aeb825a2af06dcd0214372', name: "link" }), index$1.getBoolean(this.closeable, "closeable") ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : constants.DEFAULT_CLOSE_BUTTON)) : null));
|
|
74
105
|
}
|
|
75
106
|
get rootElement() { return index.getElement(this); }
|
|
76
107
|
};
|
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
5
|
|
|
6
6
|
const DBPage = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
index.registerInstance(this, hostRef);
|
|
9
9
|
this.fontsLoaded = false;
|
|
10
|
+
this.observer = undefined;
|
|
11
|
+
}
|
|
12
|
+
setupObserver(element) {
|
|
13
|
+
if (!element)
|
|
14
|
+
return;
|
|
15
|
+
const parent = element.closest("db-page");
|
|
16
|
+
if (!parent || this.observer)
|
|
17
|
+
return;
|
|
18
|
+
this.observer = new MutationObserver((mutations) => {
|
|
19
|
+
if (mutations.some((mutation) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
22
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
23
|
+
})) {
|
|
24
|
+
this.enableAttributePassing(element, "db-page");
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
this.observer.observe(parent, {
|
|
28
|
+
attributes: true,
|
|
29
|
+
attributeOldValue: true,
|
|
30
|
+
});
|
|
10
31
|
}
|
|
11
32
|
/**
|
|
12
33
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -21,10 +42,15 @@ const DBPage = class {
|
|
|
21
42
|
const attr = attributes.item(i);
|
|
22
43
|
if (attr && attr.name !== 'data-density' &&
|
|
23
44
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
24
|
-
|
|
45
|
+
if (attr.value) {
|
|
46
|
+
element.setAttribute(attr.name, attr.value);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
element.removeAttribute(attr.name);
|
|
50
|
+
}
|
|
25
51
|
parent.removeAttribute(attr.name);
|
|
26
52
|
}
|
|
27
|
-
else if (attr &&
|
|
53
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
28
54
|
element.setAttribute(attr.name, attr.value);
|
|
29
55
|
parent.removeAttribute(attr.name);
|
|
30
56
|
}
|
|
@@ -32,7 +58,7 @@ const DBPage = class {
|
|
|
32
58
|
const isWebComponent = attr.value.includes("hydrated");
|
|
33
59
|
const value = attr.value.replace("hydrated", "").trim();
|
|
34
60
|
const currentClass = element.getAttribute("class");
|
|
35
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
61
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
36
62
|
if (isWebComponent) {
|
|
37
63
|
// Stencil is using this class for lazy loading component
|
|
38
64
|
parent.setAttribute("class", "hydrated");
|
|
@@ -52,28 +78,37 @@ const DBPage = class {
|
|
|
52
78
|
}
|
|
53
79
|
}
|
|
54
80
|
this.enableAttributePassing(this._ref, "db-page");
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
document.
|
|
81
|
+
const onMountHook_0 = () => {
|
|
82
|
+
this.fontsLoaded = !this.fadeIn;
|
|
83
|
+
if (document && this.fadeIn) {
|
|
84
|
+
document.fonts.ready.then(() => {
|
|
85
|
+
this.fontsLoaded = true;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
58
89
|
this.fontsLoaded = true;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
onMountHook_0();
|
|
93
|
+
const onMountHook_1 = () => {
|
|
94
|
+
this.setupObserver(this._ref);
|
|
95
|
+
};
|
|
96
|
+
onMountHook_1();
|
|
64
97
|
}
|
|
65
98
|
disconnectedCallback() {
|
|
99
|
+
var _a;
|
|
66
100
|
if (typeof window !== "undefined" &&
|
|
67
101
|
document.documentElement.classList.contains("db-page-document")) {
|
|
68
102
|
// remove document styles set by this
|
|
69
103
|
document.documentElement.classList.remove("db-page-document");
|
|
70
104
|
}
|
|
105
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
71
106
|
}
|
|
72
107
|
render() {
|
|
73
108
|
var _a, _b;
|
|
74
|
-
return (index.h("div", { key: '
|
|
109
|
+
return (index.h("div", { key: '0d09488c8caa9ca9fbd1fa55e9ba913b10510b2a', class: index$1.cls("db-page", this.className), ref: (el) => {
|
|
75
110
|
this._ref = el;
|
|
76
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": index$1.getBooleanAsString(this.fadeIn), "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded) }, index.h("slot", { key: '
|
|
111
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": index$1.getBooleanAsString(this.fadeIn, "fadeIn"), "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded, "fontsLoaded") }, index.h("slot", { key: '667a0153fca3111a897356f90110aa6d5e068171', name: "header" }), index.h("main", { key: '92184cba49dc26836ed103d2254b5c319df29832', class: index$1.cls("db-main", this.mainClass) }, index.h("slot", { key: '2d4d37de47023d7fc1dfb321f64d92c90c9b80b8' })), index.h("slot", { key: 'fb7fb41cbdfdf8e722aa9dde7080379a8083cf45', name: "footer" })));
|
|
77
112
|
}
|
|
78
113
|
get rootElement() { return index.getElement(this); }
|
|
79
114
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
5
|
-
var documentScrollListener = require('./document-scroll-listener-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
|
+
var documentScrollListener = require('./document-scroll-listener-CvAZ6uPr.js');
|
|
6
6
|
var floatingComponents = require('./floating-components-DlstoCKH.js');
|
|
7
7
|
|
|
8
8
|
const DBPopover = class {
|
|
@@ -12,6 +12,7 @@ const DBPopover = class {
|
|
|
12
12
|
this.isExpanded = false;
|
|
13
13
|
this._documentScrollListenerCallbackId = undefined;
|
|
14
14
|
this._observer = undefined;
|
|
15
|
+
this.observer = undefined;
|
|
15
16
|
}
|
|
16
17
|
handleEscape(event) {
|
|
17
18
|
if (!event || event.key === "Escape") {
|
|
@@ -87,6 +88,26 @@ const DBPopover = class {
|
|
|
87
88
|
}
|
|
88
89
|
return null;
|
|
89
90
|
}
|
|
91
|
+
setupObserver(element) {
|
|
92
|
+
if (!element)
|
|
93
|
+
return;
|
|
94
|
+
const parent = element.closest("db-popover");
|
|
95
|
+
if (!parent || this.observer)
|
|
96
|
+
return;
|
|
97
|
+
this.observer = new MutationObserver((mutations) => {
|
|
98
|
+
if (mutations.some((mutation) => {
|
|
99
|
+
var _a;
|
|
100
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
101
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
102
|
+
})) {
|
|
103
|
+
this.enableAttributePassing(element, "db-popover");
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
this.observer.observe(parent, {
|
|
107
|
+
attributes: true,
|
|
108
|
+
attributeOldValue: true,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
90
111
|
/**
|
|
91
112
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
92
113
|
* @param element the ref for the component
|
|
@@ -100,10 +121,15 @@ const DBPopover = class {
|
|
|
100
121
|
const attr = attributes.item(i);
|
|
101
122
|
if (attr && attr.name !== 'data-density' &&
|
|
102
123
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
103
|
-
|
|
124
|
+
if (attr.value) {
|
|
125
|
+
element.setAttribute(attr.name, attr.value);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
element.removeAttribute(attr.name);
|
|
129
|
+
}
|
|
104
130
|
parent.removeAttribute(attr.name);
|
|
105
131
|
}
|
|
106
|
-
else if (attr &&
|
|
132
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
107
133
|
element.setAttribute(attr.name, attr.value);
|
|
108
134
|
parent.removeAttribute(attr.name);
|
|
109
135
|
}
|
|
@@ -111,7 +137,7 @@ const DBPopover = class {
|
|
|
111
137
|
const isWebComponent = attr.value.includes("hydrated");
|
|
112
138
|
const value = attr.value.replace("hydrated", "").trim();
|
|
113
139
|
const currentClass = element.getAttribute("class");
|
|
114
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
140
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
115
141
|
if (isWebComponent) {
|
|
116
142
|
// Stencil is using this class for lazy loading component
|
|
117
143
|
parent.setAttribute("class", "hydrated");
|
|
@@ -170,15 +196,26 @@ const DBPopover = class {
|
|
|
170
196
|
}
|
|
171
197
|
}
|
|
172
198
|
this.enableAttributePassing(this._ref, "db-popover");
|
|
173
|
-
|
|
199
|
+
const onMountHook_0 = () => {
|
|
200
|
+
this.initialized = true;
|
|
201
|
+
};
|
|
202
|
+
onMountHook_0();
|
|
203
|
+
const onMountHook_1 = () => {
|
|
204
|
+
this.setupObserver(this._ref);
|
|
205
|
+
};
|
|
206
|
+
onMountHook_1();
|
|
174
207
|
this.watch0Fn();
|
|
175
208
|
this.watch1Fn();
|
|
176
209
|
}
|
|
210
|
+
disconnectedCallback() {
|
|
211
|
+
var _a;
|
|
212
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
213
|
+
}
|
|
177
214
|
render() {
|
|
178
215
|
var _a, _b, _c;
|
|
179
|
-
return (index.h("div", { key: '
|
|
216
|
+
return (index.h("div", { key: '09a8f5d4aedc314e07a184c3e41d232073b4ffc9', class: index$1.cls("db-popover", this.className), ref: (el) => {
|
|
180
217
|
this._ref = el;
|
|
181
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: '
|
|
218
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: 'eeee6e2e8d94272e91d275fb6799c7f781f8210a', name: "trigger" }), index.h("article", { key: 'cbbdd13d730291ec06059334c47be4c4bb8ffa71', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": index$1.getBooleanAsString(this.gap, "gap"), "data-animation": index$1.getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true, "animation"), "data-open": index$1.getBooleanAsString(this.open, "open"), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, index.h("slot", { key: '7ae19bc9f8ba3130c107fcf826a8ca9bcf8d9f88' }))));
|
|
182
219
|
}
|
|
183
220
|
get rootElement() { return index.getElement(this); }
|
|
184
221
|
static get watchers() { return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
5
|
-
var formComponents = require('./form-components-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
|
+
var formComponents = require('./form-components-CmQlkARp.js');
|
|
6
6
|
|
|
7
7
|
const DBRadio = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -14,6 +14,7 @@ const DBRadio = class {
|
|
|
14
14
|
this.initialized = false;
|
|
15
15
|
this._id = undefined;
|
|
16
16
|
this.abortController = undefined;
|
|
17
|
+
this.observer = undefined;
|
|
17
18
|
}
|
|
18
19
|
handleInput(event, reset) {
|
|
19
20
|
if (this.input) {
|
|
@@ -39,6 +40,26 @@ const DBRadio = class {
|
|
|
39
40
|
var _a, _b, _c;
|
|
40
41
|
this._id = (_c = (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : `radio-${index$1.uuid()}`;
|
|
41
42
|
}
|
|
43
|
+
setupObserver(element) {
|
|
44
|
+
if (!element)
|
|
45
|
+
return;
|
|
46
|
+
const parent = element.closest("db-radio");
|
|
47
|
+
if (!parent || this.observer)
|
|
48
|
+
return;
|
|
49
|
+
this.observer = new MutationObserver((mutations) => {
|
|
50
|
+
if (mutations.some((mutation) => {
|
|
51
|
+
var _a;
|
|
52
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
53
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
54
|
+
})) {
|
|
55
|
+
this.enableAttributePassing(element, "db-radio");
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
this.observer.observe(parent, {
|
|
59
|
+
attributes: true,
|
|
60
|
+
attributeOldValue: true,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
42
63
|
/**
|
|
43
64
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
44
65
|
* @param element the ref for the component
|
|
@@ -52,10 +73,15 @@ const DBRadio = class {
|
|
|
52
73
|
const attr = attributes.item(i);
|
|
53
74
|
if (attr && attr.name !== 'data-density' &&
|
|
54
75
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
55
|
-
|
|
76
|
+
if (attr.value) {
|
|
77
|
+
element.setAttribute(attr.name, attr.value);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
element.removeAttribute(attr.name);
|
|
81
|
+
}
|
|
56
82
|
parent.removeAttribute(attr.name);
|
|
57
83
|
}
|
|
58
|
-
else if (attr &&
|
|
84
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
59
85
|
element.setAttribute(attr.name, attr.value);
|
|
60
86
|
parent.removeAttribute(attr.name);
|
|
61
87
|
}
|
|
@@ -63,7 +89,7 @@ const DBRadio = class {
|
|
|
63
89
|
const isWebComponent = attr.value.includes("hydrated");
|
|
64
90
|
const value = attr.value.replace("hydrated", "").trim();
|
|
65
91
|
const currentClass = element.getAttribute("class");
|
|
66
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
92
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
67
93
|
if (isWebComponent) {
|
|
68
94
|
// Stencil is using this class for lazy loading component
|
|
69
95
|
parent.setAttribute("class", "hydrated");
|
|
@@ -122,20 +148,28 @@ const DBRadio = class {
|
|
|
122
148
|
}
|
|
123
149
|
}
|
|
124
150
|
this.enableAttributePassing(this._ref, "db-radio");
|
|
125
|
-
|
|
126
|
-
|
|
151
|
+
const onMountHook_0 = () => {
|
|
152
|
+
this.initialized = true;
|
|
153
|
+
this.resetIds();
|
|
154
|
+
};
|
|
155
|
+
onMountHook_0();
|
|
156
|
+
const onMountHook_1 = () => {
|
|
157
|
+
this.setupObserver(this._ref);
|
|
158
|
+
};
|
|
159
|
+
onMountHook_1();
|
|
127
160
|
this.watch0Fn();
|
|
128
161
|
this.watch1Fn();
|
|
129
162
|
this.watch2Fn();
|
|
130
163
|
}
|
|
131
164
|
disconnectedCallback() {
|
|
132
|
-
var _a;
|
|
165
|
+
var _a, _b;
|
|
133
166
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
167
|
+
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
134
168
|
}
|
|
135
169
|
render() {
|
|
136
|
-
return (index.h("label", { key: '
|
|
170
|
+
return (index.h("label", { key: '85734ed463718801789a9dea9c0febcc4c2e8266', class: index$1.cls("db-radio", this.className), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, index.h("input", { key: '7906add8b0074893bbffaaa0963284de1f89836c', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
137
171
|
this._ref = el;
|
|
138
|
-
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, index.h("slot", { key: '
|
|
172
|
+
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, index.h("slot", { key: '7c35400883fd27d67bb2932cd646492fe137ccd9' })));
|
|
139
173
|
}
|
|
140
174
|
get rootElement() { return index.getElement(this); }
|
|
141
175
|
static get watchers() { return {
|
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
5
|
|
|
6
6
|
const DBSection = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
index.registerInstance(this, hostRef);
|
|
9
|
+
this.observer = undefined;
|
|
10
|
+
}
|
|
11
|
+
setupObserver(element) {
|
|
12
|
+
if (!element)
|
|
13
|
+
return;
|
|
14
|
+
const parent = element.closest("db-section");
|
|
15
|
+
if (!parent || this.observer)
|
|
16
|
+
return;
|
|
17
|
+
this.observer = new MutationObserver((mutations) => {
|
|
18
|
+
if (mutations.some((mutation) => {
|
|
19
|
+
var _a;
|
|
20
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
21
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
22
|
+
})) {
|
|
23
|
+
this.enableAttributePassing(element, "db-section");
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
this.observer.observe(parent, {
|
|
27
|
+
attributes: true,
|
|
28
|
+
attributeOldValue: true,
|
|
29
|
+
});
|
|
9
30
|
}
|
|
10
31
|
/**
|
|
11
32
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -20,10 +41,15 @@ const DBSection = class {
|
|
|
20
41
|
const attr = attributes.item(i);
|
|
21
42
|
if (attr && attr.name !== 'data-density' &&
|
|
22
43
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
23
|
-
|
|
44
|
+
if (attr.value) {
|
|
45
|
+
element.setAttribute(attr.name, attr.value);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
element.removeAttribute(attr.name);
|
|
49
|
+
}
|
|
24
50
|
parent.removeAttribute(attr.name);
|
|
25
51
|
}
|
|
26
|
-
else if (attr &&
|
|
52
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
27
53
|
element.setAttribute(attr.name, attr.value);
|
|
28
54
|
parent.removeAttribute(attr.name);
|
|
29
55
|
}
|
|
@@ -31,7 +57,7 @@ const DBSection = class {
|
|
|
31
57
|
const isWebComponent = attr.value.includes("hydrated");
|
|
32
58
|
const value = attr.value.replace("hydrated", "").trim();
|
|
33
59
|
const currentClass = element.getAttribute("class");
|
|
34
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
60
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
35
61
|
if (isWebComponent) {
|
|
36
62
|
// Stencil is using this class for lazy loading component
|
|
37
63
|
parent.setAttribute("class", "hydrated");
|
|
@@ -51,12 +77,17 @@ const DBSection = class {
|
|
|
51
77
|
}
|
|
52
78
|
}
|
|
53
79
|
this.enableAttributePassing(this._ref, "db-section");
|
|
80
|
+
this.setupObserver(this._ref);
|
|
81
|
+
}
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
54
85
|
}
|
|
55
86
|
render() {
|
|
56
87
|
var _a, _b;
|
|
57
|
-
return (index.h("section", { key: '
|
|
88
|
+
return (index.h("section", { key: 'e33119ea38ff1f66b56792cb1a5a57e47d87d370', class: index$1.cls("db-section", this.className), ref: (el) => {
|
|
58
89
|
this._ref = el;
|
|
59
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '
|
|
90
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '0ac9622c130f2a896b334e65025f16365fe50ea5' })));
|
|
60
91
|
}
|
|
61
92
|
get rootElement() { return index.getElement(this); }
|
|
62
93
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
var formComponents = require('./form-components-
|
|
5
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
6
|
+
var formComponents = require('./form-components-CmQlkARp.js');
|
|
7
7
|
|
|
8
8
|
const DBSelect = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -24,6 +24,7 @@ const DBSelect = class {
|
|
|
24
24
|
this.initialized = false;
|
|
25
25
|
this._voiceOverFallback = "";
|
|
26
26
|
this.abortController = undefined;
|
|
27
|
+
this.observer = undefined;
|
|
27
28
|
}
|
|
28
29
|
hasValidState() {
|
|
29
30
|
var _a;
|
|
@@ -40,7 +41,7 @@ const DBSelect = class {
|
|
|
40
41
|
constants.DEFAULT_INVALID_MESSAGE;
|
|
41
42
|
if (index$1.hasVoiceOver()) {
|
|
42
43
|
this._voiceOverFallback = this._invalidMessage;
|
|
43
|
-
index$1.delay(() => (this._voiceOverFallback = ""), 1000);
|
|
44
|
+
void index$1.delay(() => (this._voiceOverFallback = ""), 1000);
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
else if (this.hasValidState() &&
|
|
@@ -49,7 +50,7 @@ const DBSelect = class {
|
|
|
49
50
|
this._descByIds = this._validMessageId;
|
|
50
51
|
if (index$1.hasVoiceOver()) {
|
|
51
52
|
this._voiceOverFallback = (_d = this.validMessage) !== null && _d !== void 0 ? _d : constants.DEFAULT_VALID_MESSAGE;
|
|
52
|
-
index$1.delay(() => (this._voiceOverFallback = ""), 1000);
|
|
53
|
+
void index$1.delay(() => (this._voiceOverFallback = ""), 1000);
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
else if (index$1.stringPropVisible(this.message, this.showMessage)) {
|
|
@@ -113,6 +114,26 @@ const DBSelect = class {
|
|
|
113
114
|
this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
114
115
|
this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
115
116
|
}
|
|
117
|
+
setupObserver(element) {
|
|
118
|
+
if (!element)
|
|
119
|
+
return;
|
|
120
|
+
const parent = element.closest("db-select");
|
|
121
|
+
if (!parent || this.observer)
|
|
122
|
+
return;
|
|
123
|
+
this.observer = new MutationObserver((mutations) => {
|
|
124
|
+
if (mutations.some((mutation) => {
|
|
125
|
+
var _a;
|
|
126
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
127
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
128
|
+
})) {
|
|
129
|
+
this.enableAttributePassing(element, "db-select");
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
this.observer.observe(parent, {
|
|
133
|
+
attributes: true,
|
|
134
|
+
attributeOldValue: true,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
116
137
|
/**
|
|
117
138
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
118
139
|
* @param element the ref for the component
|
|
@@ -126,10 +147,15 @@ const DBSelect = class {
|
|
|
126
147
|
const attr = attributes.item(i);
|
|
127
148
|
if (attr && attr.name !== 'data-density' &&
|
|
128
149
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
129
|
-
|
|
150
|
+
if (attr.value) {
|
|
151
|
+
element.setAttribute(attr.name, attr.value);
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
element.removeAttribute(attr.name);
|
|
155
|
+
}
|
|
130
156
|
parent.removeAttribute(attr.name);
|
|
131
157
|
}
|
|
132
|
-
else if (attr &&
|
|
158
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
133
159
|
element.setAttribute(attr.name, attr.value);
|
|
134
160
|
parent.removeAttribute(attr.name);
|
|
135
161
|
}
|
|
@@ -137,7 +163,7 @@ const DBSelect = class {
|
|
|
137
163
|
const isWebComponent = attr.value.includes("hydrated");
|
|
138
164
|
const value = attr.value.replace("hydrated", "").trim();
|
|
139
165
|
const currentClass = element.getAttribute("class");
|
|
140
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
166
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
141
167
|
if (isWebComponent) {
|
|
142
168
|
// Stencil is using this class for lazy loading component
|
|
143
169
|
parent.setAttribute("class", "hydrated");
|
|
@@ -229,9 +255,16 @@ const DBSelect = class {
|
|
|
229
255
|
}
|
|
230
256
|
}
|
|
231
257
|
this.enableAttributePassing(this._ref, "db-select");
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
258
|
+
const onMountHook_0 = () => {
|
|
259
|
+
this.initialized = true;
|
|
260
|
+
this.resetIds();
|
|
261
|
+
this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
|
|
262
|
+
};
|
|
263
|
+
onMountHook_0();
|
|
264
|
+
const onMountHook_1 = () => {
|
|
265
|
+
this.setupObserver(this._ref);
|
|
266
|
+
};
|
|
267
|
+
onMountHook_1();
|
|
235
268
|
this.watch0Fn();
|
|
236
269
|
this.watch1Fn();
|
|
237
270
|
this.watch2Fn();
|
|
@@ -239,19 +272,20 @@ const DBSelect = class {
|
|
|
239
272
|
this.watch4Fn();
|
|
240
273
|
}
|
|
241
274
|
disconnectedCallback() {
|
|
242
|
-
var _a;
|
|
275
|
+
var _a, _b;
|
|
243
276
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
277
|
+
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
244
278
|
}
|
|
245
279
|
render() {
|
|
246
280
|
var _a, _b, _c, _d, _e, _f;
|
|
247
|
-
return (index.h("div", { key: '
|
|
281
|
+
return (index.h("div", { key: '71200b34c84ae3c90e4990b11e55e8dea4c16e55', class: index$1.cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon, "showIcon") }, index.h("label", { key: '3633f34f827d53ee4b4d15e5b230307984fcbd09', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL), index.h("select", { key: 'ff177d80acfa3519df6467892fb5f97f4ad6872b', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
248
282
|
this._ref = el;
|
|
249
283
|
}, required: index$1.getBoolean(this.required, "required"), disabled: index$1.getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
250
284
|
/* @ts-ignore */
|
|
251
|
-
value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (index.h("option", { class: "placeholder", value: "", "data-show-empty-option": index$1.getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
|
|
285
|
+
value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (index.h("option", { class: "placeholder", value: "", "data-show-empty-option": index$1.getBooleanAsString(this.shouldShowEmptyOption(), "showEmptyOption") })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
|
|
252
286
|
var _a;
|
|
253
287
|
return (index.h(index.Fragment, null, option.options ? (index.h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (index.h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (index.h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
|
|
254
|
-
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '
|
|
288
|
+
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '5baf4a0984f8d71776cda0d0d9c12e62f08f434b', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '2b7c6895a1de8e77daba33de6923a33b7c43bee1', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
255
289
|
}
|
|
256
290
|
get rootElement() { return index.getElement(this); }
|
|
257
291
|
static get watchers() { return {
|