@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
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { u as uuid, c as cls } from './index-fumiz06Y.js';
|
|
3
|
+
|
|
4
|
+
const DBTableBody = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
10
|
+
* @param element the ref for the component
|
|
11
|
+
* @param customElementSelector the custom element like `my-component`
|
|
12
|
+
*/
|
|
13
|
+
enableAttributePassing(element, customElementSelector) {
|
|
14
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
15
|
+
if (element && parent) {
|
|
16
|
+
const attributes = parent.attributes;
|
|
17
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
18
|
+
const attr = attributes.item(i);
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
|
+
if (attr.value) {
|
|
22
|
+
element.setAttribute(attr.name, attr.value);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
element.removeAttribute(attr.name);
|
|
26
|
+
}
|
|
27
|
+
parent.removeAttribute(attr.name);
|
|
28
|
+
}
|
|
29
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
30
|
+
element.setAttribute(attr.name, attr.value);
|
|
31
|
+
parent.removeAttribute(attr.name);
|
|
32
|
+
}
|
|
33
|
+
else if (attr && attr.name === "class") {
|
|
34
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
35
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
36
|
+
const currentClass = element.getAttribute("class");
|
|
37
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
38
|
+
if (isWebComponent) {
|
|
39
|
+
// Stencil is using this class for lazy loading component
|
|
40
|
+
parent.setAttribute("class", "hydrated");
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
parent.removeAttribute(attr.name);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
componentDidLoad() {
|
|
50
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
51
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
52
|
+
if (connectedElement) {
|
|
53
|
+
connectedElement.remove();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
this.enableAttributePassing(this._ref, "db-table-body");
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
var _a;
|
|
60
|
+
return (h("tbody", { key: 'b6033bbe9cdcdb6bb9d292f68e980a6737fef9fa', class: cls("db-table-body", this.className), ref: (el) => {
|
|
61
|
+
this._ref = el;
|
|
62
|
+
}, id: this.id }, this.rows ? ((_a = this.rows) === null || _a === void 0 ? void 0 : _a.map((row, index) => {
|
|
63
|
+
var _a, _b, _c;
|
|
64
|
+
return (h("db-table-row", { class: (_a = row.className) !== null && _a !== void 0 ? _a : row.class, key: `${(_c = (_b = row.id) !== null && _b !== void 0 ? _b : this.id) !== null && _c !== void 0 ? _c : uuid()}-table-body-row-${index}`, cells: row.cells, interactive: row.interactive, id: row.id }));
|
|
65
|
+
})) : (h("slot", null))));
|
|
66
|
+
}
|
|
67
|
+
get rootElement() { return getElement(this); }
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const DBTableFooter = class {
|
|
71
|
+
constructor(hostRef) {
|
|
72
|
+
registerInstance(this, hostRef);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
76
|
+
* @param element the ref for the component
|
|
77
|
+
* @param customElementSelector the custom element like `my-component`
|
|
78
|
+
*/
|
|
79
|
+
enableAttributePassing(element, customElementSelector) {
|
|
80
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
81
|
+
if (element && parent) {
|
|
82
|
+
const attributes = parent.attributes;
|
|
83
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
84
|
+
const attr = attributes.item(i);
|
|
85
|
+
if (attr && attr.name !== 'data-density' &&
|
|
86
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
87
|
+
if (attr.value) {
|
|
88
|
+
element.setAttribute(attr.name, attr.value);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
element.removeAttribute(attr.name);
|
|
92
|
+
}
|
|
93
|
+
parent.removeAttribute(attr.name);
|
|
94
|
+
}
|
|
95
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
96
|
+
element.setAttribute(attr.name, attr.value);
|
|
97
|
+
parent.removeAttribute(attr.name);
|
|
98
|
+
}
|
|
99
|
+
else if (attr && attr.name === "class") {
|
|
100
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
101
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
102
|
+
const currentClass = element.getAttribute("class");
|
|
103
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
104
|
+
if (isWebComponent) {
|
|
105
|
+
// Stencil is using this class for lazy loading component
|
|
106
|
+
parent.setAttribute("class", "hydrated");
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
parent.removeAttribute(attr.name);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
componentDidLoad() {
|
|
116
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
117
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
118
|
+
if (connectedElement) {
|
|
119
|
+
connectedElement.remove();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
this.enableAttributePassing(this._ref, "db-table-footer");
|
|
123
|
+
}
|
|
124
|
+
render() {
|
|
125
|
+
var _a;
|
|
126
|
+
return (h("tfoot", { key: '735f3ce4c1d6a3305993a8de60c797e9ce2bcd20', class: cls("db-table-footer", this.className), ref: (el) => {
|
|
127
|
+
this._ref = el;
|
|
128
|
+
}, id: this.id }, this.rows ? ((_a = this.rows) === null || _a === void 0 ? void 0 : _a.map((row, index) => {
|
|
129
|
+
var _a, _b, _c;
|
|
130
|
+
return (h("db-table-row", { class: (_a = row.className) !== null && _a !== void 0 ? _a : row.class, key: `${(_c = (_b = row.id) !== null && _b !== void 0 ? _b : this.id) !== null && _c !== void 0 ? _c : uuid()}-table-footer-row-${index}`, cells: row.cells, interactive: row.interactive, id: row.id }));
|
|
131
|
+
})) : (h("slot", null))));
|
|
132
|
+
}
|
|
133
|
+
get rootElement() { return getElement(this); }
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const DBTableHead = class {
|
|
137
|
+
constructor(hostRef) {
|
|
138
|
+
registerInstance(this, hostRef);
|
|
139
|
+
this.observer = undefined;
|
|
140
|
+
}
|
|
141
|
+
getCells(cells) {
|
|
142
|
+
return cells === null || cells === void 0 ? void 0 : cells.map((cell) => (Object.assign(Object.assign({}, cell), { headerCell: true })));
|
|
143
|
+
}
|
|
144
|
+
setupObserver(element) {
|
|
145
|
+
if (!element)
|
|
146
|
+
return;
|
|
147
|
+
const parent = element.closest("db-table-head");
|
|
148
|
+
if (!parent || this.observer)
|
|
149
|
+
return;
|
|
150
|
+
this.observer = new MutationObserver((mutations) => {
|
|
151
|
+
if (mutations.some((mutation) => {
|
|
152
|
+
var _a;
|
|
153
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
154
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
155
|
+
})) {
|
|
156
|
+
this.enableAttributePassing(element, "db-table-head");
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
this.observer.observe(parent, {
|
|
160
|
+
attributes: true,
|
|
161
|
+
attributeOldValue: true,
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
166
|
+
* @param element the ref for the component
|
|
167
|
+
* @param customElementSelector the custom element like `my-component`
|
|
168
|
+
*/
|
|
169
|
+
enableAttributePassing(element, customElementSelector) {
|
|
170
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
171
|
+
if (element && parent) {
|
|
172
|
+
const attributes = parent.attributes;
|
|
173
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
174
|
+
const attr = attributes.item(i);
|
|
175
|
+
if (attr && attr.name !== 'data-density' &&
|
|
176
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
177
|
+
if (attr.value) {
|
|
178
|
+
element.setAttribute(attr.name, attr.value);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
element.removeAttribute(attr.name);
|
|
182
|
+
}
|
|
183
|
+
parent.removeAttribute(attr.name);
|
|
184
|
+
}
|
|
185
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
186
|
+
element.setAttribute(attr.name, attr.value);
|
|
187
|
+
parent.removeAttribute(attr.name);
|
|
188
|
+
}
|
|
189
|
+
else if (attr && attr.name === "class") {
|
|
190
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
191
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
192
|
+
const currentClass = element.getAttribute("class");
|
|
193
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
194
|
+
if (isWebComponent) {
|
|
195
|
+
// Stencil is using this class for lazy loading component
|
|
196
|
+
parent.setAttribute("class", "hydrated");
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
parent.removeAttribute(attr.name);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
componentDidLoad() {
|
|
206
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
207
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
208
|
+
if (connectedElement) {
|
|
209
|
+
connectedElement.remove();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
this.enableAttributePassing(this._ref, "db-table-head");
|
|
213
|
+
this.setupObserver(this._ref);
|
|
214
|
+
}
|
|
215
|
+
disconnectedCallback() {
|
|
216
|
+
var _a;
|
|
217
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
218
|
+
}
|
|
219
|
+
render() {
|
|
220
|
+
var _a;
|
|
221
|
+
return (h("thead", { key: '340673440fd36e5522f70683bef5a4356f73cb69', class: cls("db-table-head", this.className), ref: (el) => {
|
|
222
|
+
this._ref = el;
|
|
223
|
+
}, id: this.id }, this.rows ? ((_a = this.rows) === null || _a === void 0 ? void 0 : _a.map((row, index) => {
|
|
224
|
+
var _a, _b, _c;
|
|
225
|
+
return (h("db-table-row", { class: (_a = row.className) !== null && _a !== void 0 ? _a : row.class, key: `${(_c = (_b = row.id) !== null && _b !== void 0 ? _b : this.id) !== null && _c !== void 0 ? _c : uuid()}-table-head-row-${index}`, cells: this.getCells(row.cells), subHeaderEmphasis: row.subHeaderEmphasis, interactive: row.interactive, id: row.id }));
|
|
226
|
+
})) : (h("slot", null))));
|
|
227
|
+
}
|
|
228
|
+
get rootElement() { return getElement(this); }
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export { DBTableBody as db_table_body, DBTableFooter as db_table_footer, DBTableHead as db_table_head };
|
|
@@ -1,9 +1,30 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { c as cls } from './index-fumiz06Y.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const DBTableCaption = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
|
+
this.observer = undefined;
|
|
8
|
+
}
|
|
9
|
+
setupObserver(element) {
|
|
10
|
+
if (!element)
|
|
11
|
+
return;
|
|
12
|
+
const parent = element.closest("db-table-caption");
|
|
13
|
+
if (!parent || this.observer)
|
|
14
|
+
return;
|
|
15
|
+
this.observer = new MutationObserver((mutations) => {
|
|
16
|
+
if (mutations.some((mutation) => {
|
|
17
|
+
var _a;
|
|
18
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
19
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
20
|
+
})) {
|
|
21
|
+
this.enableAttributePassing(element, "db-table-caption");
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
this.observer.observe(parent, {
|
|
25
|
+
attributes: true,
|
|
26
|
+
attributeOldValue: true,
|
|
27
|
+
});
|
|
7
28
|
}
|
|
8
29
|
/**
|
|
9
30
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -18,10 +39,15 @@ const DBLink = class {
|
|
|
18
39
|
const attr = attributes.item(i);
|
|
19
40
|
if (attr && attr.name !== 'data-density' &&
|
|
20
41
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
|
-
|
|
42
|
+
if (attr.value) {
|
|
43
|
+
element.setAttribute(attr.name, attr.value);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
element.removeAttribute(attr.name);
|
|
47
|
+
}
|
|
22
48
|
parent.removeAttribute(attr.name);
|
|
23
49
|
}
|
|
24
|
-
else if (attr &&
|
|
50
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
25
51
|
element.setAttribute(attr.name, attr.value);
|
|
26
52
|
parent.removeAttribute(attr.name);
|
|
27
53
|
}
|
|
@@ -29,7 +55,7 @@ const DBLink = class {
|
|
|
29
55
|
const isWebComponent = attr.value.includes("hydrated");
|
|
30
56
|
const value = attr.value.replace("hydrated", "").trim();
|
|
31
57
|
const currentClass = element.getAttribute("class");
|
|
32
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
58
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
33
59
|
if (isWebComponent) {
|
|
34
60
|
// Stencil is using this class for lazy loading component
|
|
35
61
|
parent.setAttribute("class", "hydrated");
|
|
@@ -48,15 +74,19 @@ const DBLink = class {
|
|
|
48
74
|
connectedElement.remove();
|
|
49
75
|
}
|
|
50
76
|
}
|
|
51
|
-
this.enableAttributePassing(this._ref, "db-
|
|
77
|
+
this.enableAttributePassing(this._ref, "db-table-caption");
|
|
78
|
+
this.setupObserver(this._ref);
|
|
79
|
+
}
|
|
80
|
+
disconnectedCallback() {
|
|
81
|
+
var _a;
|
|
82
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
52
83
|
}
|
|
53
84
|
render() {
|
|
54
|
-
|
|
55
|
-
return (h("a", { key: '5dd3f3df5614e0e717feadc833d8fe2fe8825479', class: cls("db-link", this.className), ref: (el) => {
|
|
85
|
+
return (h("caption", { key: '5ef3476c6c9879f1fcf8548e11bea82516bd29d1', class: cls("db-table-caption", this.className), ref: (el) => {
|
|
56
86
|
this._ref = el;
|
|
57
|
-
}, id:
|
|
87
|
+
}, id: this.id }, h("slot", { key: 'e20d1d699e7ab50422c0d40bdf058c8863ae4991' })));
|
|
58
88
|
}
|
|
59
89
|
get rootElement() { return getElement(this); }
|
|
60
90
|
};
|
|
61
91
|
|
|
62
|
-
export {
|
|
92
|
+
export { DBTableCaption as db_table_caption };
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { d as delay, g as getBooleanAsString, c as cls } from './index-fumiz06Y.js';
|
|
3
|
+
|
|
4
|
+
const DBTable = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
this._data = undefined;
|
|
8
|
+
this._style = undefined;
|
|
9
|
+
this.observer = undefined;
|
|
10
|
+
}
|
|
11
|
+
convertData() {
|
|
12
|
+
try {
|
|
13
|
+
if (typeof this.data === "string") {
|
|
14
|
+
return JSON.parse(this.data);
|
|
15
|
+
}
|
|
16
|
+
return this.data;
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
console.error(error);
|
|
20
|
+
}
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
23
|
+
setupObserver(element) {
|
|
24
|
+
if (!element)
|
|
25
|
+
return;
|
|
26
|
+
const parent = element.closest("db-table");
|
|
27
|
+
if (!parent || this.observer)
|
|
28
|
+
return;
|
|
29
|
+
this.observer = new MutationObserver((mutations) => {
|
|
30
|
+
if (mutations.some((mutation) => {
|
|
31
|
+
var _a;
|
|
32
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
33
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
34
|
+
})) {
|
|
35
|
+
this.enableAttributePassing(element, "db-table");
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
this.observer.observe(parent, {
|
|
39
|
+
attributes: true,
|
|
40
|
+
attributeOldValue: true,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
45
|
+
* @param element the ref for the component
|
|
46
|
+
* @param customElementSelector the custom element like `my-component`
|
|
47
|
+
*/
|
|
48
|
+
enableAttributePassing(element, customElementSelector) {
|
|
49
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
50
|
+
if (element && parent) {
|
|
51
|
+
const attributes = parent.attributes;
|
|
52
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
53
|
+
const attr = attributes.item(i);
|
|
54
|
+
if (attr && attr.name !== 'data-density' &&
|
|
55
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
56
|
+
if (attr.value) {
|
|
57
|
+
element.setAttribute(attr.name, attr.value);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
element.removeAttribute(attr.name);
|
|
61
|
+
}
|
|
62
|
+
parent.removeAttribute(attr.name);
|
|
63
|
+
}
|
|
64
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
65
|
+
element.setAttribute(attr.name, attr.value);
|
|
66
|
+
parent.removeAttribute(attr.name);
|
|
67
|
+
}
|
|
68
|
+
else if (attr && attr.name === "class") {
|
|
69
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
70
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
71
|
+
const currentClass = element.getAttribute("class");
|
|
72
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
73
|
+
if (isWebComponent) {
|
|
74
|
+
// Stencil is using this class for lazy loading component
|
|
75
|
+
parent.setAttribute("class", "hydrated");
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
parent.removeAttribute(attr.name);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
watch0Fn() {
|
|
85
|
+
if (this.data) {
|
|
86
|
+
this._data = this.convertData();
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
this._data = undefined;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
watch0() {
|
|
93
|
+
this.watch0Fn();
|
|
94
|
+
}
|
|
95
|
+
watch1Fn() {
|
|
96
|
+
if (this._ref && this.mobileVariant === "list") {
|
|
97
|
+
// Delay for angular
|
|
98
|
+
void delay(() => {
|
|
99
|
+
const table = this._ref;
|
|
100
|
+
if (!table)
|
|
101
|
+
return;
|
|
102
|
+
const headerCells = table.querySelectorAll("thead tr th");
|
|
103
|
+
if (headerCells.length) {
|
|
104
|
+
const otherRows = table.querySelectorAll(":is(tbody,tfoot) tr");
|
|
105
|
+
otherRows.forEach((row) => {
|
|
106
|
+
const cells = row.querySelectorAll(":is(td,th)");
|
|
107
|
+
cells.forEach((cell, index) => {
|
|
108
|
+
const headerCell = headerCells[index];
|
|
109
|
+
if (headerCell) {
|
|
110
|
+
// Use only direct text nodes to avoid including text from nested elements (e.g. sort buttons)
|
|
111
|
+
const directText = Array.from(headerCell.childNodes)
|
|
112
|
+
.filter((node) => node.nodeType === Node.TEXT_NODE)
|
|
113
|
+
.map((node) => { var _a; return (_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim(); })
|
|
114
|
+
.filter(Boolean)
|
|
115
|
+
.join(" ");
|
|
116
|
+
if (directText) {
|
|
117
|
+
cell.dataset["header"] = directText;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}, 1);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
watch1() {
|
|
127
|
+
this.watch1Fn();
|
|
128
|
+
}
|
|
129
|
+
watch2Fn() {
|
|
130
|
+
if (this.columnSizes) {
|
|
131
|
+
const columnStyles = {};
|
|
132
|
+
Object.entries(this.columnSizes).forEach(([key, value]) => {
|
|
133
|
+
columnStyles[`--db-table-column-size-${key}`] = value;
|
|
134
|
+
});
|
|
135
|
+
this._style = columnStyles;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
this._style = undefined;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
watch2() {
|
|
142
|
+
this.watch2Fn();
|
|
143
|
+
}
|
|
144
|
+
componentDidLoad() {
|
|
145
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
146
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
147
|
+
if (connectedElement) {
|
|
148
|
+
connectedElement.remove();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
this.enableAttributePassing(this._ref, "db-table");
|
|
152
|
+
this.setupObserver(this._ref);
|
|
153
|
+
this.watch0Fn();
|
|
154
|
+
this.watch1Fn();
|
|
155
|
+
this.watch2Fn();
|
|
156
|
+
}
|
|
157
|
+
disconnectedCallback() {
|
|
158
|
+
var _a;
|
|
159
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
160
|
+
}
|
|
161
|
+
render() {
|
|
162
|
+
var _a, _b, _c, _d, _e, _f;
|
|
163
|
+
return (h("div", { key: '7e6ea12b6cb4b2ddcc12262cd28bfec13baa55c0', class: cls("db-table", this.className), style: this._style, "data-width": this.width, "data-size": this.size, "data-divider": this.divider, "data-variant": this.variant, "data-mobile-variant": this.mobileVariant, "data-show-caption": getBooleanAsString(this.showCaption), "data-sticky-header": this.stickyHeader }, h("table", { key: '99fc11d1bb68297550e973293f519ad21f6953a0', ref: (el) => {
|
|
164
|
+
this._ref = el;
|
|
165
|
+
}, id: this.id }, this.captionPlain ? (h("caption", null, this.captionPlain)) : (h("slot", { name: "caption" })), this._data ? (h(Fragment, null, ((_a = this._data) === null || _a === void 0 ? void 0 : _a.header) ? (h("db-table-head", { rows: (_b = this._data) === null || _b === void 0 ? void 0 : _b.header })) : null, ((_c = this._data) === null || _c === void 0 ? void 0 : _c.body) ? (h("db-table-body", { rows: (_d = this._data) === null || _d === void 0 ? void 0 : _d.body })) : null, ((_e = this._data) === null || _e === void 0 ? void 0 : _e.footer) ? (h("db-table-footer", { rows: (_f = this._data) === null || _f === void 0 ? void 0 : _f.footer })) : null)) : (h("slot", null)))));
|
|
166
|
+
}
|
|
167
|
+
get rootElement() { return getElement(this); }
|
|
168
|
+
static get watchers() { return {
|
|
169
|
+
"data": [{
|
|
170
|
+
"watch0": 0
|
|
171
|
+
}],
|
|
172
|
+
"mobileVariant": [{
|
|
173
|
+
"watch1": 0
|
|
174
|
+
}],
|
|
175
|
+
"_ref": [{
|
|
176
|
+
"watch1": 0
|
|
177
|
+
}],
|
|
178
|
+
"_data": [{
|
|
179
|
+
"watch1": 0
|
|
180
|
+
}],
|
|
181
|
+
"columnSizes": [{
|
|
182
|
+
"watch2": 0
|
|
183
|
+
}]
|
|
184
|
+
}; }
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
export { DBTable as db_table };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { c as cls, u as uuid } from './index-fumiz06Y.js';
|
|
3
3
|
|
|
4
4
|
const DBTabs = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -12,6 +12,7 @@ const DBTabs = class {
|
|
|
12
12
|
this.showScrollRight = false;
|
|
13
13
|
this.scrollContainer = null;
|
|
14
14
|
this._resizeObserver = undefined;
|
|
15
|
+
this.observer = undefined;
|
|
15
16
|
}
|
|
16
17
|
convertTabs() {
|
|
17
18
|
try {
|
|
@@ -132,6 +133,26 @@ const DBTabs = class {
|
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
135
|
}
|
|
136
|
+
setupObserver(element) {
|
|
137
|
+
if (!element)
|
|
138
|
+
return;
|
|
139
|
+
const parent = element.closest("db-tabs");
|
|
140
|
+
if (!parent || this.observer)
|
|
141
|
+
return;
|
|
142
|
+
this.observer = new MutationObserver((mutations) => {
|
|
143
|
+
if (mutations.some((mutation) => {
|
|
144
|
+
var _a;
|
|
145
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
146
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
147
|
+
})) {
|
|
148
|
+
this.enableAttributePassing(element, "db-tabs");
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
this.observer.observe(parent, {
|
|
152
|
+
attributes: true,
|
|
153
|
+
attributeOldValue: true,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
135
156
|
/**
|
|
136
157
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
137
158
|
* @param element the ref for the component
|
|
@@ -145,10 +166,15 @@ const DBTabs = class {
|
|
|
145
166
|
const attr = attributes.item(i);
|
|
146
167
|
if (attr && attr.name !== 'data-density' &&
|
|
147
168
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
148
|
-
|
|
169
|
+
if (attr.value) {
|
|
170
|
+
element.setAttribute(attr.name, attr.value);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
element.removeAttribute(attr.name);
|
|
174
|
+
}
|
|
149
175
|
parent.removeAttribute(attr.name);
|
|
150
176
|
}
|
|
151
|
-
else if (attr &&
|
|
177
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
152
178
|
element.setAttribute(attr.name, attr.value);
|
|
153
179
|
parent.removeAttribute(attr.name);
|
|
154
180
|
}
|
|
@@ -156,7 +182,7 @@ const DBTabs = class {
|
|
|
156
182
|
const isWebComponent = attr.value.includes("hydrated");
|
|
157
183
|
const value = attr.value.replace("hydrated", "").trim();
|
|
158
184
|
const currentClass = element.getAttribute("class");
|
|
159
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
185
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
160
186
|
if (isWebComponent) {
|
|
161
187
|
// Stencil is using this class for lazy loading component
|
|
162
188
|
parent.setAttribute("class", "hydrated");
|
|
@@ -201,21 +227,29 @@ const DBTabs = class {
|
|
|
201
227
|
}
|
|
202
228
|
}
|
|
203
229
|
this.enableAttributePassing(this._ref, "db-tabs");
|
|
204
|
-
|
|
205
|
-
|
|
230
|
+
const onMountHook_0 = () => {
|
|
231
|
+
this._name = `tabs-${this.name || uuid()}`;
|
|
232
|
+
this.initialized = true;
|
|
233
|
+
};
|
|
234
|
+
onMountHook_0();
|
|
235
|
+
const onMountHook_1 = () => {
|
|
236
|
+
this.setupObserver(this._ref);
|
|
237
|
+
};
|
|
238
|
+
onMountHook_1();
|
|
206
239
|
this.watch0Fn();
|
|
207
240
|
}
|
|
208
241
|
disconnectedCallback() {
|
|
209
|
-
var _a;
|
|
242
|
+
var _a, _b;
|
|
210
243
|
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
211
244
|
this._resizeObserver = undefined;
|
|
245
|
+
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
212
246
|
}
|
|
213
247
|
render() {
|
|
214
248
|
var _a, _b, _c, _d, _e, _f;
|
|
215
|
-
return (h("div", { key: '
|
|
249
|
+
return (h("div", { key: 'aca0d156b8d50c5951a982e5ab35d2644b4989e7', class: cls("db-tabs", this.className), ref: (el) => {
|
|
216
250
|
this._ref = el;
|
|
217
251
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (_c = this.alignment) !== null && _c !== void 0 ? _c : "start", "data-width": (_d = this.width) !== null && _d !== void 0 ? _d : "auto", onInput: (event) => this.handleChange(event), onChange: (event) => this.handleChange(event) }, this.showScrollLeft ? (h("db-button", { class: "tabs-scroll-left", variant: "ghost", icon: "chevron_left", type: "button", noText: true, onClick: () => this.scroll(true) }, "Scroll left")) : null, this.tabs ? (h(Fragment, null, h("db-tab-list", null, (_e = this.convertTabs()) === null || _e === void 0 ? void 0 : _e.map((tab, index) => (h("db-tab-item", { key: this.name + "tab-item" + index, active: tab.active, label: tab.label, iconTrailing: tab.iconTrailing, icon: tab.icon, noText: tab.noText })))), (_f = this.convertTabs()) === null || _f === void 0 ? void 0 :
|
|
218
|
-
_f.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: '
|
|
252
|
+
_f.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: 'b05907467917bb82f9ef6b9ce3774e52411fb822' })));
|
|
219
253
|
}
|
|
220
254
|
get rootElement() { return getElement(this); }
|
|
221
255
|
static get watchers() { return {
|