@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
|
@@ -13,6 +13,11 @@ export class DBTooltip {
|
|
|
13
13
|
this.initialized = false;
|
|
14
14
|
this._documentScrollListenerCallbackId = undefined;
|
|
15
15
|
this._observer = undefined;
|
|
16
|
+
this._attachedParent = undefined;
|
|
17
|
+
this._attachedId = undefined;
|
|
18
|
+
this._activeTriggerCount = 0;
|
|
19
|
+
this._boundListeners = [];
|
|
20
|
+
this.observer = undefined;
|
|
16
21
|
}
|
|
17
22
|
handleClick(event) {
|
|
18
23
|
event.stopPropagation();
|
|
@@ -53,23 +58,93 @@ export class DBTooltip {
|
|
|
53
58
|
}
|
|
54
59
|
}
|
|
55
60
|
handleLeave() {
|
|
56
|
-
var _a;
|
|
61
|
+
var _a, _b, _c;
|
|
62
|
+
// Multiple triggers (hover + focus) can be active at once. Only tear
|
|
63
|
+
// down the shared scroll callback/observer once the last one leaves.
|
|
64
|
+
this._activeTriggerCount = Math.max(((_a = this._activeTriggerCount) !== null && _a !== void 0 ? _a : 0) - 1, 0);
|
|
65
|
+
if (((_b = this._activeTriggerCount) !== null && _b !== void 0 ? _b : 0) > 0) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
57
68
|
if (this._documentScrollListenerCallbackId) {
|
|
58
69
|
new DocumentScrollListener().removeCallback(this._documentScrollListenerCallbackId);
|
|
70
|
+
this._documentScrollListenerCallbackId = undefined;
|
|
59
71
|
}
|
|
60
|
-
(
|
|
72
|
+
(_c = this._observer) === null || _c === void 0 ? void 0 : _c.unobserve(this.getParent());
|
|
61
73
|
}
|
|
62
74
|
handleEnter(parent) {
|
|
63
|
-
var _a;
|
|
64
|
-
|
|
65
|
-
|
|
75
|
+
var _a, _b;
|
|
76
|
+
// Register the shared scroll callback only for the first active
|
|
77
|
+
// trigger; a second enter (e.g. focusin after mouseenter) must not
|
|
78
|
+
// orphan the first callback.
|
|
79
|
+
this._activeTriggerCount = ((_a = this._activeTriggerCount) !== null && _a !== void 0 ? _a : 0) + 1;
|
|
80
|
+
if (this._activeTriggerCount === 1) {
|
|
81
|
+
this._documentScrollListenerCallbackId =
|
|
82
|
+
new DocumentScrollListener().addCallback((event) => this.handleDocumentScroll(event, parent));
|
|
83
|
+
(_b = this._observer) === null || _b === void 0 ? void 0 : _b.observe(this.getParent());
|
|
84
|
+
}
|
|
66
85
|
this.handleAutoPlacement(parent);
|
|
67
|
-
(_a = this._observer) === null || _a === void 0 ? void 0 : _a.observe(this.getParent());
|
|
68
86
|
}
|
|
69
87
|
resetIds() {
|
|
70
88
|
var _a, _b, _c;
|
|
71
89
|
this._id = (_c = (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : "tooltip-" + uuid();
|
|
72
90
|
}
|
|
91
|
+
_detachListeners() {
|
|
92
|
+
var _a, _b, _c;
|
|
93
|
+
const callbackId = this._documentScrollListenerCallbackId;
|
|
94
|
+
if (callbackId) {
|
|
95
|
+
new DocumentScrollListener().removeCallback(callbackId);
|
|
96
|
+
this._documentScrollListenerCallbackId = undefined;
|
|
97
|
+
}
|
|
98
|
+
(_a = this._observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
99
|
+
this._observer = undefined;
|
|
100
|
+
this._activeTriggerCount = 0;
|
|
101
|
+
const bound = (_b = this._boundListeners) !== null && _b !== void 0 ? _b : [];
|
|
102
|
+
bound.forEach((entry) => {
|
|
103
|
+
entry.parent.removeEventListener(entry.type, entry.fn);
|
|
104
|
+
});
|
|
105
|
+
this._boundListeners = [];
|
|
106
|
+
// Remove attributes this tooltip set on its parent, but only while
|
|
107
|
+
// they still belong to this tooltip (avoid clobbering another one).
|
|
108
|
+
const parent = this._attachedParent;
|
|
109
|
+
if (parent) {
|
|
110
|
+
const attachedId = (_c = this._attachedId) !== null && _c !== void 0 ? _c : this._id;
|
|
111
|
+
// Only remove data-has-tooltip when no other .db-tooltip
|
|
112
|
+
// siblings remain inside the same parent.
|
|
113
|
+
const remainingTooltips = parent.querySelectorAll(".db-tooltip");
|
|
114
|
+
const otherTooltipsExist = Array.from(remainingTooltips).some((el) => el !== this._ref);
|
|
115
|
+
if (parent.dataset["hasTooltip"] === "true" && !otherTooltipsExist) {
|
|
116
|
+
delete parent.dataset["hasTooltip"];
|
|
117
|
+
}
|
|
118
|
+
if (parent.getAttribute("aria-labelledby") === attachedId) {
|
|
119
|
+
parent.removeAttribute("aria-labelledby");
|
|
120
|
+
}
|
|
121
|
+
if (parent.getAttribute("aria-describedby") === attachedId) {
|
|
122
|
+
parent.removeAttribute("aria-describedby");
|
|
123
|
+
}
|
|
124
|
+
this._attachedParent = undefined;
|
|
125
|
+
this._attachedId = undefined;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
setupObserver(element) {
|
|
129
|
+
if (!element)
|
|
130
|
+
return;
|
|
131
|
+
const parent = element.closest("db-tooltip");
|
|
132
|
+
if (!parent || this.observer)
|
|
133
|
+
return;
|
|
134
|
+
this.observer = new MutationObserver((mutations) => {
|
|
135
|
+
if (mutations.some((mutation) => {
|
|
136
|
+
var _a;
|
|
137
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
138
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
139
|
+
})) {
|
|
140
|
+
this.enableAttributePassing(element, "db-tooltip");
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
this.observer.observe(parent, {
|
|
144
|
+
attributes: true,
|
|
145
|
+
attributeOldValue: true,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
73
148
|
/**
|
|
74
149
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
75
150
|
* @param element the ref for the component
|
|
@@ -83,10 +158,15 @@ export class DBTooltip {
|
|
|
83
158
|
const attr = attributes.item(i);
|
|
84
159
|
if (attr && attr.name !== 'data-density' &&
|
|
85
160
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
86
|
-
|
|
161
|
+
if (attr.value) {
|
|
162
|
+
element.setAttribute(attr.name, attr.value);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
element.removeAttribute(attr.name);
|
|
166
|
+
}
|
|
87
167
|
parent.removeAttribute(attr.name);
|
|
88
168
|
}
|
|
89
|
-
else if (attr &&
|
|
169
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
90
170
|
element.setAttribute(attr.name, attr.value);
|
|
91
171
|
parent.removeAttribute(attr.name);
|
|
92
172
|
}
|
|
@@ -94,7 +174,7 @@ export class DBTooltip {
|
|
|
94
174
|
const isWebComponent = attr.value.includes("hydrated");
|
|
95
175
|
const value = attr.value.replace("hydrated", "").trim();
|
|
96
176
|
const currentClass = element.getAttribute("class");
|
|
97
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
177
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
98
178
|
if (isWebComponent) {
|
|
99
179
|
// Stencil is using this class for lazy loading component
|
|
100
180
|
parent.setAttribute("class", "hydrated");
|
|
@@ -116,17 +196,47 @@ export class DBTooltip {
|
|
|
116
196
|
this.watch0Fn();
|
|
117
197
|
}
|
|
118
198
|
watch1Fn() {
|
|
199
|
+
var _a;
|
|
119
200
|
if (this._ref && this.initialized && this._id) {
|
|
120
201
|
const parent = this.getParent();
|
|
121
202
|
if (parent) {
|
|
122
203
|
this.handleAutoPlacement(parent);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
parent.addEventListener("
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
204
|
+
const enterListener = () => this.handleEnter(parent);
|
|
205
|
+
const leaveListener = () => this.handleLeave();
|
|
206
|
+
const keyDownListener = (event) => this.handleEscape(event);
|
|
207
|
+
parent.addEventListener("mouseenter", enterListener);
|
|
208
|
+
parent.addEventListener("focusin", enterListener);
|
|
209
|
+
parent.addEventListener("keydown", keyDownListener);
|
|
210
|
+
parent.addEventListener("mouseleave", leaveListener);
|
|
211
|
+
parent.addEventListener("focusout", leaveListener);
|
|
212
|
+
this._boundListeners = [
|
|
213
|
+
...((_a = this._boundListeners) !== null && _a !== void 0 ? _a : []),
|
|
214
|
+
{
|
|
215
|
+
parent,
|
|
216
|
+
type: "mouseenter",
|
|
217
|
+
fn: enterListener,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
parent,
|
|
221
|
+
type: "focusin",
|
|
222
|
+
fn: enterListener,
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
parent,
|
|
226
|
+
type: "keydown",
|
|
227
|
+
fn: keyDownListener,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
parent,
|
|
231
|
+
type: "mouseleave",
|
|
232
|
+
fn: leaveListener,
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
parent,
|
|
236
|
+
type: "focusout",
|
|
237
|
+
fn: leaveListener,
|
|
238
|
+
},
|
|
239
|
+
];
|
|
130
240
|
parent.dataset["hasTooltip"] = "true";
|
|
131
241
|
if (this.variant === "label") {
|
|
132
242
|
parent.setAttribute("aria-labelledby", this._id);
|
|
@@ -134,6 +244,8 @@ export class DBTooltip {
|
|
|
134
244
|
else {
|
|
135
245
|
parent.setAttribute("aria-describedby", this._id);
|
|
136
246
|
}
|
|
247
|
+
this._attachedParent = parent;
|
|
248
|
+
this._attachedId = this._id;
|
|
137
249
|
}
|
|
138
250
|
if (typeof window !== "undefined" && "IntersectionObserver" in window) {
|
|
139
251
|
this._observer = new IntersectionObserver((payload) => {
|
|
@@ -157,16 +269,28 @@ export class DBTooltip {
|
|
|
157
269
|
}
|
|
158
270
|
}
|
|
159
271
|
this.enableAttributePassing(this._ref, "db-tooltip");
|
|
160
|
-
|
|
161
|
-
|
|
272
|
+
const onMountHook_0 = () => {
|
|
273
|
+
this.resetIds();
|
|
274
|
+
this.initialized = true;
|
|
275
|
+
};
|
|
276
|
+
onMountHook_0();
|
|
277
|
+
const onMountHook_1 = () => {
|
|
278
|
+
this.setupObserver(this._ref);
|
|
279
|
+
};
|
|
280
|
+
onMountHook_1();
|
|
162
281
|
this.watch0Fn();
|
|
163
282
|
this.watch1Fn();
|
|
164
283
|
}
|
|
284
|
+
disconnectedCallback() {
|
|
285
|
+
var _a;
|
|
286
|
+
this._detachListeners();
|
|
287
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
288
|
+
}
|
|
165
289
|
render() {
|
|
166
290
|
var _a, _b;
|
|
167
|
-
return (h("i", { key: '
|
|
291
|
+
return (h("i", { key: '8b8269b2bf4c0708c437a33101537999ab9035b5', class: cls("db-tooltip", this.className), role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: (el) => {
|
|
168
292
|
this._ref = el;
|
|
169
|
-
}, id: this._id, "data-emphasis": this.emphasis, "data-wrap": getBooleanAsString(this.wrap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, this.text ? this.text : null, h("slot", { key: '
|
|
293
|
+
}, id: this._id, "data-emphasis": this.emphasis, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true, "animation"), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true, "showArrow"), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, this.text ? this.text : null, h("slot", { key: '54c19cf96a0e2ce8be7b345f149d484a6498c3a1' })));
|
|
170
294
|
}
|
|
171
295
|
static get is() { return "db-tooltip"; }
|
|
172
296
|
static get properties() {
|
|
@@ -488,7 +612,12 @@ export class DBTooltip {
|
|
|
488
612
|
"_id": {},
|
|
489
613
|
"initialized": {},
|
|
490
614
|
"_documentScrollListenerCallbackId": {},
|
|
491
|
-
"_observer": {}
|
|
615
|
+
"_observer": {},
|
|
616
|
+
"_attachedParent": {},
|
|
617
|
+
"_attachedId": {},
|
|
618
|
+
"_activeTriggerCount": {},
|
|
619
|
+
"_boundListeners": {},
|
|
620
|
+
"observer": {}
|
|
492
621
|
};
|
|
493
622
|
}
|
|
494
623
|
static get elementRef() { return "rootElement"; }
|
package/dist/collection/index.js
CHANGED
|
@@ -64,6 +64,22 @@ export * from './components/tab-list';
|
|
|
64
64
|
export * from './components/tab-list/model';
|
|
65
65
|
export * from './components/tab-panel';
|
|
66
66
|
export * from './components/tab-panel/model';
|
|
67
|
+
export * from './components/table';
|
|
68
|
+
export * from './components/table-body';
|
|
69
|
+
export * from './components/table-body/model';
|
|
70
|
+
export * from './components/table-caption';
|
|
71
|
+
export * from './components/table-caption/model';
|
|
72
|
+
export * from './components/table-data-cell';
|
|
73
|
+
export * from './components/table-data-cell/model';
|
|
74
|
+
export * from './components/table-footer';
|
|
75
|
+
export * from './components/table-footer/model';
|
|
76
|
+
export * from './components/table-head';
|
|
77
|
+
export * from './components/table-head/model';
|
|
78
|
+
export * from './components/table-header-cell';
|
|
79
|
+
export * from './components/table-header-cell/model';
|
|
80
|
+
export * from './components/table-row';
|
|
81
|
+
export * from './components/table-row/model';
|
|
82
|
+
export * from './components/table/model';
|
|
67
83
|
export * from './components/tabs';
|
|
68
84
|
export * from './components/tabs/model';
|
|
69
85
|
export * from './components/tag';
|
|
@@ -20,4 +20,4 @@ export const LabelVariantHorizontalList = ['leading', 'trailing'];
|
|
|
20
20
|
export const AutoCompleteList = ['off', 'on', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'shipping', 'billing', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo', 'webauthn'];
|
|
21
21
|
export const LinkTargetList = ['_self', '_blank', '_parent', '_top'];
|
|
22
22
|
export const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'];
|
|
23
|
-
export const AlignmentList = ['start', 'center'];
|
|
23
|
+
export const AlignmentList = ['start', 'center', 'end'];
|
|
@@ -61,16 +61,21 @@ export const isIOSSafari = () => {
|
|
|
61
61
|
};
|
|
62
62
|
export const delay = (fn, ms) => new Promise(() => setTimeout(fn, ms));
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* Converts boolean-like inputs to "true" or "false" strings.
|
|
65
|
+
* Handles HTML-style boolean attributes where an empty string or the
|
|
66
|
+
* attribute's own name as value (e.g. noText="noText") should be treated as true.
|
|
67
|
+
* Some frameworks like Stencil do not add "true" as value for a prop
|
|
68
|
+
* if it is used in a framework like Angular e.g.: [disabled]="myDisabledProp"
|
|
69
|
+
* @param originBool Boolean or string value to convert
|
|
70
|
+
* @param propertyName The prop/attribute name — when originBool is a string equal
|
|
71
|
+
* to this name (case-insensitive), it is treated as true
|
|
67
72
|
*/
|
|
68
73
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
|
-
export const getBooleanAsString = (originBool) => {
|
|
74
|
+
export const getBooleanAsString = (originBool, propertyName) => {
|
|
70
75
|
if (originBool === undefined || originBool === null)
|
|
71
76
|
return;
|
|
72
77
|
if (typeof originBool === 'string') {
|
|
73
|
-
return String(originBool === 'true');
|
|
78
|
+
return String(originBool === '' || originBool === 'true' || (propertyName === null || propertyName === void 0 ? void 0 : propertyName.toLowerCase()) === originBool.toLowerCase());
|
|
74
79
|
}
|
|
75
80
|
return String(originBool);
|
|
76
81
|
};
|
|
@@ -78,7 +83,7 @@ export const getBoolean = (originBool, propertyName) => {
|
|
|
78
83
|
if (originBool === undefined || originBool === null)
|
|
79
84
|
return;
|
|
80
85
|
if (typeof originBool === 'string') {
|
|
81
|
-
return Boolean(
|
|
86
|
+
return Boolean(originBool === '' || originBool === 'true' || (propertyName === null || propertyName === void 0 ? void 0 : propertyName.toLowerCase()) === originBool.toLowerCase());
|
|
82
87
|
}
|
|
83
88
|
return Boolean(originBool);
|
|
84
89
|
};
|
|
@@ -119,13 +124,13 @@ export const getStep = (step) => {
|
|
|
119
124
|
export const getInputValue = (value, inputType) => {
|
|
120
125
|
return inputType && ['number', 'range'].includes(inputType) ? getNumber(value) : value;
|
|
121
126
|
};
|
|
122
|
-
const toBool = (value) => typeof value === 'string' ? value
|
|
127
|
+
const toBool = (value) => typeof value === 'string' ? value !== 'false' : value;
|
|
123
128
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
129
|
export const getHideProp = (show) => {
|
|
125
130
|
if (show === undefined || show === null) {
|
|
126
131
|
return undefined;
|
|
127
132
|
}
|
|
128
|
-
return getBooleanAsString(!toBool(show));
|
|
133
|
+
return getBooleanAsString(!toBool(show), 'show');
|
|
129
134
|
};
|
|
130
135
|
export const stringPropVisible = (givenString, showString) => {
|
|
131
136
|
if (showString === undefined) {
|