@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,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 DBInfotext = 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-infotext");
|
|
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-infotext");
|
|
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 DBInfotext = 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 DBInfotext = 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 DBInfotext = class {
|
|
|
51
77
|
}
|
|
52
78
|
}
|
|
53
79
|
this.enableAttributePassing(this._ref, "db-infotext");
|
|
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, _c;
|
|
57
|
-
return (index.h("span", { key: '
|
|
88
|
+
return (index.h("span", { key: 'e1a06bb9c2d0f88953a7281cdda505b392db609c', class: index$1.cls("db-infotext", 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-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": index$1.getBooleanAsString(this.wrap), "data-show-icon-leading": index$1.getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : null, 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-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": index$1.getBooleanAsString(this.wrap, "wrap"), "data-show-icon-leading": index$1.getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true, "showIcon") }, this.text ? this.text : null, index.h("slot", { key: '68b5e9bc974cf49e25470cba30b142495e06c72f' })));
|
|
60
91
|
}
|
|
61
92
|
get rootElement() { return index.getElement(this); }
|
|
62
93
|
};
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
|
+
|
|
6
|
+
const DBLink = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
index.registerInstance(this, hostRef);
|
|
9
|
+
this.observer = undefined;
|
|
10
|
+
}
|
|
11
|
+
setupObserver(element) {
|
|
12
|
+
if (!element)
|
|
13
|
+
return;
|
|
14
|
+
const parent = element.closest("db-link");
|
|
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-link");
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
this.observer.observe(parent, {
|
|
27
|
+
attributes: true,
|
|
28
|
+
attributeOldValue: true,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
33
|
+
* @param element the ref for the component
|
|
34
|
+
* @param customElementSelector the custom element like `my-component`
|
|
35
|
+
*/
|
|
36
|
+
enableAttributePassing(element, customElementSelector) {
|
|
37
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
38
|
+
if (element && parent) {
|
|
39
|
+
const attributes = parent.attributes;
|
|
40
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
41
|
+
const attr = attributes.item(i);
|
|
42
|
+
if (attr && attr.name !== 'data-density' &&
|
|
43
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
44
|
+
if (attr.value) {
|
|
45
|
+
element.setAttribute(attr.name, attr.value);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
element.removeAttribute(attr.name);
|
|
49
|
+
}
|
|
50
|
+
parent.removeAttribute(attr.name);
|
|
51
|
+
}
|
|
52
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
53
|
+
element.setAttribute(attr.name, attr.value);
|
|
54
|
+
parent.removeAttribute(attr.name);
|
|
55
|
+
}
|
|
56
|
+
else if (attr && attr.name === "class") {
|
|
57
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
58
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
59
|
+
const currentClass = element.getAttribute("class");
|
|
60
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
61
|
+
if (isWebComponent) {
|
|
62
|
+
// Stencil is using this class for lazy loading component
|
|
63
|
+
parent.setAttribute("class", "hydrated");
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
parent.removeAttribute(attr.name);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
componentDidLoad() {
|
|
73
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
74
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
75
|
+
if (connectedElement) {
|
|
76
|
+
connectedElement.remove();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
this.enableAttributePassing(this._ref, "db-link");
|
|
80
|
+
this.setupObserver(this._ref);
|
|
81
|
+
}
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
var _a, _b, _c, _d;
|
|
88
|
+
return (index.h("a", { key: 'a5c2e75c4243fa0d64c60b974c522347469e75b3', class: index$1.cls("db-link", this.className), ref: (el) => {
|
|
89
|
+
this._ref = el;
|
|
90
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_c = this.referrerpolicy) !== null && _c !== void 0 ? _c : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": index$1.getBooleanAsString(this.disabled, "disabled"), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": index$1.getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true, "showIcon"), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": index$1.getBooleanAsString(this.wrap, "wrap") }, this.text ? this.text : null, index.h("slot", { key: '7cac380bf21256a51a3815e922687ddf4ad7b425' })));
|
|
91
|
+
}
|
|
92
|
+
get rootElement() { return index.getElement(this); }
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const DBTableDataCell = class {
|
|
96
|
+
constructor(hostRef) {
|
|
97
|
+
index.registerInstance(this, hostRef);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
101
|
+
* @param element the ref for the component
|
|
102
|
+
* @param customElementSelector the custom element like `my-component`
|
|
103
|
+
*/
|
|
104
|
+
enableAttributePassing(element, customElementSelector) {
|
|
105
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
106
|
+
if (element && parent) {
|
|
107
|
+
const attributes = parent.attributes;
|
|
108
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
109
|
+
const attr = attributes.item(i);
|
|
110
|
+
if (attr && attr.name !== 'data-density' &&
|
|
111
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
112
|
+
if (attr.value) {
|
|
113
|
+
element.setAttribute(attr.name, attr.value);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
element.removeAttribute(attr.name);
|
|
117
|
+
}
|
|
118
|
+
parent.removeAttribute(attr.name);
|
|
119
|
+
}
|
|
120
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
121
|
+
element.setAttribute(attr.name, attr.value);
|
|
122
|
+
parent.removeAttribute(attr.name);
|
|
123
|
+
}
|
|
124
|
+
else if (attr && attr.name === "class") {
|
|
125
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
126
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
127
|
+
const currentClass = element.getAttribute("class");
|
|
128
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
129
|
+
if (isWebComponent) {
|
|
130
|
+
// Stencil is using this class for lazy loading component
|
|
131
|
+
parent.setAttribute("class", "hydrated");
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
parent.removeAttribute(attr.name);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
componentDidLoad() {
|
|
141
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
142
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
143
|
+
if (connectedElement) {
|
|
144
|
+
connectedElement.remove();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
this.enableAttributePassing(this._ref, "db-table-data-cell");
|
|
148
|
+
}
|
|
149
|
+
render() {
|
|
150
|
+
return (index.h("td", { key: 'e6614ac09ac484540ad119f807bea075521419cd', class: index$1.cls("db-table-data-cell", this.className), ref: (el) => {
|
|
151
|
+
this._ref = el;
|
|
152
|
+
}, id: this.id, "data-horizontal-alignment": this.horizontalAlignment, "data-vertical-alignment": this.verticalAlignment, colSpan: index$1.getNumber(this.colSpan, this.colspan), rowSpan: index$1.getNumber(this.rowSpan, this.rowspan), headers: this.headers }, index.h("slot", { key: 'bd353375cc862b5d5adea84545a5b5a63f1517e1' })));
|
|
153
|
+
}
|
|
154
|
+
get rootElement() { return index.getElement(this); }
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const DBTableHeaderCell = class {
|
|
158
|
+
constructor(hostRef) {
|
|
159
|
+
index.registerInstance(this, hostRef);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
163
|
+
* @param element the ref for the component
|
|
164
|
+
* @param customElementSelector the custom element like `my-component`
|
|
165
|
+
*/
|
|
166
|
+
enableAttributePassing(element, customElementSelector) {
|
|
167
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
168
|
+
if (element && parent) {
|
|
169
|
+
const attributes = parent.attributes;
|
|
170
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
171
|
+
const attr = attributes.item(i);
|
|
172
|
+
if (attr && attr.name !== 'data-density' &&
|
|
173
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
174
|
+
if (attr.value) {
|
|
175
|
+
element.setAttribute(attr.name, attr.value);
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
element.removeAttribute(attr.name);
|
|
179
|
+
}
|
|
180
|
+
parent.removeAttribute(attr.name);
|
|
181
|
+
}
|
|
182
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
183
|
+
element.setAttribute(attr.name, attr.value);
|
|
184
|
+
parent.removeAttribute(attr.name);
|
|
185
|
+
}
|
|
186
|
+
else if (attr && attr.name === "class") {
|
|
187
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
188
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
189
|
+
const currentClass = element.getAttribute("class");
|
|
190
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
191
|
+
if (isWebComponent) {
|
|
192
|
+
// Stencil is using this class for lazy loading component
|
|
193
|
+
parent.setAttribute("class", "hydrated");
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
parent.removeAttribute(attr.name);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
componentDidLoad() {
|
|
203
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
204
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
205
|
+
if (connectedElement) {
|
|
206
|
+
connectedElement.remove();
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
this.enableAttributePassing(this._ref, "db-table-header-cell");
|
|
210
|
+
}
|
|
211
|
+
render() {
|
|
212
|
+
return (index.h("th", { key: 'b459f2e2ea9b4dda6909d1c8f02e1cd22b16a712', class: index$1.cls("db-table-header-cell", this.className), ref: (el) => {
|
|
213
|
+
this._ref = el;
|
|
214
|
+
}, id: this.id, "data-horizontal-alignment": this.horizontalAlignment, "data-vertical-alignment": this.verticalAlignment, "data-no-text": index$1.getBooleanAsString(this.noText), scope: this.scope, colSpan: index$1.getNumber(this.colSpan, this.colspan), rowSpan: index$1.getNumber(this.rowSpan, this.rowspan), headers: this.headers, abbr: this.abbr }, index.h("slot", { key: 'ec650ba68a8623b9729985f27822d94087327d74' })));
|
|
215
|
+
}
|
|
216
|
+
get rootElement() { return index.getElement(this); }
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
const DBTableRow = class {
|
|
220
|
+
constructor(hostRef) {
|
|
221
|
+
index.registerInstance(this, hostRef);
|
|
222
|
+
}
|
|
223
|
+
getHeaderCell(cell) {
|
|
224
|
+
if (cell.headerCell) {
|
|
225
|
+
return cell;
|
|
226
|
+
}
|
|
227
|
+
return undefined;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
231
|
+
* @param element the ref for the component
|
|
232
|
+
* @param customElementSelector the custom element like `my-component`
|
|
233
|
+
*/
|
|
234
|
+
enableAttributePassing(element, customElementSelector) {
|
|
235
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
236
|
+
if (element && parent) {
|
|
237
|
+
const attributes = parent.attributes;
|
|
238
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
239
|
+
const attr = attributes.item(i);
|
|
240
|
+
if (attr && attr.name !== 'data-density' &&
|
|
241
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
242
|
+
if (attr.value) {
|
|
243
|
+
element.setAttribute(attr.name, attr.value);
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
element.removeAttribute(attr.name);
|
|
247
|
+
}
|
|
248
|
+
parent.removeAttribute(attr.name);
|
|
249
|
+
}
|
|
250
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
251
|
+
element.setAttribute(attr.name, attr.value);
|
|
252
|
+
parent.removeAttribute(attr.name);
|
|
253
|
+
}
|
|
254
|
+
else if (attr && attr.name === "class") {
|
|
255
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
256
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
257
|
+
const currentClass = element.getAttribute("class");
|
|
258
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
259
|
+
if (isWebComponent) {
|
|
260
|
+
// Stencil is using this class for lazy loading component
|
|
261
|
+
parent.setAttribute("class", "hydrated");
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
parent.removeAttribute(attr.name);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
componentDidLoad() {
|
|
271
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
272
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
273
|
+
if (connectedElement) {
|
|
274
|
+
connectedElement.remove();
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
this.enableAttributePassing(this._ref, "db-table-row");
|
|
278
|
+
}
|
|
279
|
+
render() {
|
|
280
|
+
var _a;
|
|
281
|
+
return (index.h("tr", { key: 'd9ca9f14117c8cf3974110eb1a36cb7352c06c24', class: index$1.cls("db-table-row", this.className), ref: (el) => {
|
|
282
|
+
this._ref = el;
|
|
283
|
+
}, id: this.id, "data-interactive": index$1.getBooleanAsString(this.interactive), "data-sub-header-emphasis": this.subHeaderEmphasis }, this.cells ? ((_a = this.cells) === null || _a === void 0 ? void 0 : _a.map((cell, index$2) => {
|
|
284
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22;
|
|
285
|
+
return cell.headerCell ? (index.h("db-table-header-cell", { class: (_a = cell.className) !== null && _a !== void 0 ? _a : cell.class, key: `${(_c = (_b = cell.id) !== null && _b !== void 0 ? _b : this.id) !== null && _c !== void 0 ? _c : index$1.uuid()}-table-row-header-cell-${index$2}`, id: cell.id, abbr: (_d = this.getHeaderCell(cell)) === null || _d === void 0 ? void 0 : _d.abbr, scope: (_e = this.getHeaderCell(cell)) === null || _e === void 0 ? void 0 : _e.scope, noText: (_f = this.getHeaderCell(cell)) === null || _f === void 0 ? void 0 : _f.noText, horizontalAlignment: cell.horizontalAlignment, verticalAlignment: cell.verticalAlignment, headers: cell.headers, colSpan: cell.colSpan, colspan: cell.colspan, rowSpan: cell.rowSpan, rowspan: cell.rowspan }, cell.link ? (index.h("db-link", { class: (_h = (_g = cell.link) === null || _g === void 0 ? void 0 : _g.className) !== null && _h !== void 0 ? _h : (_j = cell.link) === null || _j === void 0 ? void 0 : _j.class, content: (_k = cell.link) === null || _k === void 0 ? void 0 : _k.content, size: (_l = cell.link) === null || _l === void 0 ? void 0 : _l.size, variant: (_m = cell.link) === null || _m === void 0 ? void 0 : _m.variant, id: (_o = cell.link) === null || _o === void 0 ? void 0 : _o.id, autofocus: (_p = cell.link) === null || _p === void 0 ? void 0 : _p.autofocus, disabled: (_q = cell.link) === null || _q === void 0 ? void 0 : _q.disabled, href: (_r = cell.link) === null || _r === void 0 ? void 0 : _r.href, hreflang: (_s = cell.link) === null || _s === void 0 ? void 0 : _s.hreflang, target: (_t = cell.link) === null || _t === void 0 ? void 0 : _t.target, rel: (_u = cell.link) === null || _u === void 0 ? void 0 : _u.rel, referrerPolicy: (_v = cell.link) === null || _v === void 0 ? void 0 : _v.referrerPolicy, role: (_w = cell.link) === null || _w === void 0 ? void 0 : _w.role, showIcon: (_x = cell.link) === null || _x === void 0 ? void 0 : _x.showIcon, text: (_y = cell.link) === null || _y === void 0 ? void 0 : _y.text, wrap: (_z = cell.link) === null || _z === void 0 ? void 0 : _z.wrap }, (_0 = cell.link) === null || _0 === void 0 ? void 0 : _0.children)) : (cell.content))) : (index.h("db-table-data-cell", { class: (_1 = cell.className) !== null && _1 !== void 0 ? _1 : cell.class, key: `${(_3 = (_2 = cell.id) !== null && _2 !== void 0 ? _2 : this.id) !== null && _3 !== void 0 ? _3 : index$1.uuid()}-table-row-data-cell-${index$2}`, id: cell.id, horizontalAlignment: cell.horizontalAlignment, verticalAlignment: cell.verticalAlignment, headers: cell.headers, colSpan: cell.colSpan, colspan: cell.colspan, rowSpan: cell.rowSpan, rowspan: cell.rowspan }, cell.link ? (index.h("db-link", { class: (_5 = (_4 = cell.link) === null || _4 === void 0 ? void 0 : _4.className) !== null && _5 !== void 0 ? _5 : (_6 = cell.link) === null || _6 === void 0 ? void 0 : _6.class, content: (_7 = cell.link) === null || _7 === void 0 ? void 0 : _7.content, size: (_8 = cell.link) === null || _8 === void 0 ? void 0 : _8.size, variant: (_9 = cell.link) === null || _9 === void 0 ? void 0 : _9.variant, id: (_10 = cell.link) === null || _10 === void 0 ? void 0 : _10.id, autofocus: (_11 = cell.link) === null || _11 === void 0 ? void 0 : _11.autofocus, disabled: (_12 = cell.link) === null || _12 === void 0 ? void 0 : _12.disabled, href: (_13 = cell.link) === null || _13 === void 0 ? void 0 : _13.href, hreflang: (_14 = cell.link) === null || _14 === void 0 ? void 0 : _14.hreflang, target: (_15 = cell.link) === null || _15 === void 0 ? void 0 : _15.target, rel: (_16 = cell.link) === null || _16 === void 0 ? void 0 : _16.rel, referrerPolicy: (_17 = cell.link) === null || _17 === void 0 ? void 0 : _17.referrerPolicy, role: (_18 = cell.link) === null || _18 === void 0 ? void 0 : _18.role, showIcon: (_19 = cell.link) === null || _19 === void 0 ? void 0 : _19.showIcon, text: (_20 = cell.link) === null || _20 === void 0 ? void 0 : _20.text, wrap: (_21 = cell.link) === null || _21 === void 0 ? void 0 : _21.wrap }, (_22 = cell.link) === null || _22 === void 0 ? void 0 : _22.children)) : (cell.content)));
|
|
286
|
+
})) : (index.h("slot", null))));
|
|
287
|
+
}
|
|
288
|
+
get rootElement() { return index.getElement(this); }
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
exports.db_link = DBLink;
|
|
292
|
+
exports.db_table_data_cell = DBTableDataCell;
|
|
293
|
+
exports.db_table_header_cell = DBTableHeaderCell;
|
|
294
|
+
exports.db_table_row = DBTableRow;
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
var navigation = require('./navigation-Bah882nU.js');
|
|
7
7
|
require('./floating-components-DlstoCKH.js');
|
|
8
8
|
|
|
@@ -18,6 +18,7 @@ const DBNavigationItem = class {
|
|
|
18
18
|
this.navigationItemSafeTriangle = undefined;
|
|
19
19
|
this.subNavigationId = undefined;
|
|
20
20
|
this.subNavigationToggleId = undefined;
|
|
21
|
+
this.observer = undefined;
|
|
21
22
|
}
|
|
22
23
|
handleNavigationItemClick(event) {
|
|
23
24
|
var _a;
|
|
@@ -41,6 +42,26 @@ const DBNavigationItem = class {
|
|
|
41
42
|
event.stopPropagation();
|
|
42
43
|
this.isSubNavigationExpanded = false;
|
|
43
44
|
}
|
|
45
|
+
setupObserver(element) {
|
|
46
|
+
if (!element)
|
|
47
|
+
return;
|
|
48
|
+
const parent = element.closest("db-navigation-item");
|
|
49
|
+
if (!parent || this.observer)
|
|
50
|
+
return;
|
|
51
|
+
this.observer = new MutationObserver((mutations) => {
|
|
52
|
+
if (mutations.some((mutation) => {
|
|
53
|
+
var _a;
|
|
54
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
55
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
56
|
+
})) {
|
|
57
|
+
this.enableAttributePassing(element, "db-navigation-item");
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
this.observer.observe(parent, {
|
|
61
|
+
attributes: true,
|
|
62
|
+
attributeOldValue: true,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
44
65
|
/**
|
|
45
66
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
46
67
|
* @param element the ref for the component
|
|
@@ -54,10 +75,15 @@ const DBNavigationItem = class {
|
|
|
54
75
|
const attr = attributes.item(i);
|
|
55
76
|
if (attr && attr.name !== 'data-density' &&
|
|
56
77
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
57
|
-
|
|
78
|
+
if (attr.value) {
|
|
79
|
+
element.setAttribute(attr.name, attr.value);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
element.removeAttribute(attr.name);
|
|
83
|
+
}
|
|
58
84
|
parent.removeAttribute(attr.name);
|
|
59
85
|
}
|
|
60
|
-
else if (attr &&
|
|
86
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
61
87
|
element.setAttribute(attr.name, attr.value);
|
|
62
88
|
parent.removeAttribute(attr.name);
|
|
63
89
|
}
|
|
@@ -65,7 +91,7 @@ const DBNavigationItem = class {
|
|
|
65
91
|
const isWebComponent = attr.value.includes("hydrated");
|
|
66
92
|
const value = attr.value.replace("hydrated", "").trim();
|
|
67
93
|
const currentClass = element.getAttribute("class");
|
|
68
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
94
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
69
95
|
if (isWebComponent) {
|
|
70
96
|
// Stencil is using this class for lazy loading component
|
|
71
97
|
parent.setAttribute("class", "hydrated");
|
|
@@ -106,7 +132,6 @@ const DBNavigationItem = class {
|
|
|
106
132
|
this.watch1Fn();
|
|
107
133
|
}
|
|
108
134
|
componentDidLoad() {
|
|
109
|
-
var _a;
|
|
110
135
|
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
111
136
|
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
112
137
|
if (connectedElement) {
|
|
@@ -114,18 +139,30 @@ const DBNavigationItem = class {
|
|
|
114
139
|
}
|
|
115
140
|
}
|
|
116
141
|
this.enableAttributePassing(this._ref, "db-navigation-item");
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
142
|
+
const onMountHook_0 = () => {
|
|
143
|
+
var _a;
|
|
144
|
+
this.initialized = true;
|
|
145
|
+
const subNavId = `sub-nav-${(_a = this.id) !== null && _a !== void 0 ? _a : index$1.uuid()}`;
|
|
146
|
+
this.subNavigationId = subNavId;
|
|
147
|
+
this.subNavigationToggleId = `${subNavId}-toggle`;
|
|
148
|
+
};
|
|
149
|
+
onMountHook_0();
|
|
150
|
+
const onMountHook_1 = () => {
|
|
151
|
+
this.setupObserver(this._ref);
|
|
152
|
+
};
|
|
153
|
+
onMountHook_1();
|
|
121
154
|
this.watch0Fn();
|
|
122
155
|
this.watch1Fn();
|
|
123
156
|
}
|
|
157
|
+
disconnectedCallback() {
|
|
158
|
+
var _a;
|
|
159
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
160
|
+
}
|
|
124
161
|
render() {
|
|
125
162
|
var _a, _b, _c;
|
|
126
|
-
return (index.h("li", { key: '
|
|
163
|
+
return (index.h("li", { key: '0c375eaa62e5b989c6c891d46e5a66fa8c11eed3', class: index$1.cls("db-navigation-item", this.className), ref: (el) => {
|
|
127
164
|
this._ref = el;
|
|
128
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": index$1.getBooleanAsString(this.wrap), "aria-disabled": index$1.getBooleanAsString(this.disabled) }, !index$1.getBoolean(this.hideSubNavigation, "hideSubNavigation") &&
|
|
165
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-active": this.active, "data-wrap": index$1.getBooleanAsString(this.wrap, "wrap"), "aria-disabled": index$1.getBooleanAsString(this.disabled, "disabled") }, !index$1.getBoolean(this.hideSubNavigation, "hideSubNavigation") &&
|
|
129
166
|
this.hasSubNavigation ? (index.h(index.Fragment, null, index.h("button", { class: "db-navigation-item-expand-button", id: this.subNavigationToggleId, "aria-haspopup": this.hasAreaPopup ? "true" : undefined, "aria-expanded": this.isSubNavigationExpanded, "aria-controls": this.subNavigationId, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : index.h("slot", { name: "expandButton" })), index.h("menu", { class: "db-sub-navigation", id: this.subNavigationId, "aria-labelledby": this.subNavigationToggleId, "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (index.h("div", { class: "db-mobile-navigation-back" }, index.h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : constants.DEFAULT_BACK))) : null, index.h("slot", { name: "subNavigation" })))) : this.text ? (this.text) : (index.h("slot", null))));
|
|
130
167
|
}
|
|
131
168
|
get rootElement() { return index.getElement(this); }
|
|
@@ -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 DBNavigation = 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-navigation");
|
|
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-navigation");
|
|
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 DBNavigation = 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 DBNavigation = 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 DBNavigation = class {
|
|
|
51
77
|
}
|
|
52
78
|
}
|
|
53
79
|
this.enableAttributePassing(this._ref, "db-navigation");
|
|
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("nav", { key: '
|
|
88
|
+
return (index.h("nav", { key: '9ab5982a120092e6df3de4b17d1750950d2e1667', class: index$1.cls("db-navigation", 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 }, index.h("menu", { key: '
|
|
90
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("menu", { key: 'c23027e91896d0cce880bb7527dcf576ba58b513' }, index.h("slot", { key: '0f7aa08fca229cbceae8bb4c1e91ab4fc5608242' }))));
|
|
60
91
|
}
|
|
61
92
|
get rootElement() { return index.getElement(this); }
|
|
62
93
|
};
|