@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,9 +1,30 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { g as getBooleanAsString, c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { g as getBooleanAsString, c as cls } from './index-fumiz06Y.js';
|
|
3
3
|
|
|
4
4
|
const DBStack = 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-stack");
|
|
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-stack");
|
|
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 DBStack = 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 DBStack = 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");
|
|
@@ -49,12 +75,17 @@ const DBStack = class {
|
|
|
49
75
|
}
|
|
50
76
|
}
|
|
51
77
|
this.enableAttributePassing(this._ref, "db-stack");
|
|
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
85
|
var _a, _b;
|
|
55
|
-
return (h("div", { key: '
|
|
86
|
+
return (h("div", { key: '02389c1bd26917e0176c95ce3e38e7ef664813e7', class: cls("db-stack", this.className), ref: (el) => {
|
|
56
87
|
this._ref = el;
|
|
57
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap) }, h("slot", { key: '
|
|
88
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap, "wrap") }, h("slot", { key: '70b94e0558c79bc76096be335af95029ad2cbe5c' })));
|
|
58
89
|
}
|
|
59
90
|
get rootElement() { return getElement(this); }
|
|
60
91
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, l as getHideProp, g as getBooleanAsString, c as cls } from './index-
|
|
4
|
-
import { a as addCheckedResetEventListener } from './form-components-
|
|
3
|
+
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, l as getHideProp, g as getBooleanAsString, c as cls } from './index-fumiz06Y.js';
|
|
4
|
+
import { a as addCheckedResetEventListener } from './form-components-ZV7IN0oG.js';
|
|
5
5
|
|
|
6
6
|
const DBSwitch = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -17,6 +17,7 @@ const DBSwitch = class {
|
|
|
17
17
|
this._descByIds = undefined;
|
|
18
18
|
this._voiceOverFallback = "";
|
|
19
19
|
this.abortController = undefined;
|
|
20
|
+
this.observer = undefined;
|
|
20
21
|
}
|
|
21
22
|
hasValidState() {
|
|
22
23
|
var _a;
|
|
@@ -33,7 +34,7 @@ const DBSwitch = class {
|
|
|
33
34
|
if (hasVoiceOver()) {
|
|
34
35
|
this._voiceOverFallback =
|
|
35
36
|
this._invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
36
|
-
delay(() => {
|
|
37
|
+
void delay(() => {
|
|
37
38
|
this._voiceOverFallback = "";
|
|
38
39
|
}, 1000);
|
|
39
40
|
}
|
|
@@ -43,7 +44,7 @@ const DBSwitch = class {
|
|
|
43
44
|
this._descByIds = this._validMessageId;
|
|
44
45
|
if (hasVoiceOver()) {
|
|
45
46
|
this._voiceOverFallback = (_f = this.validMessage) !== null && _f !== void 0 ? _f : DEFAULT_VALID_MESSAGE;
|
|
46
|
-
delay(() => {
|
|
47
|
+
void delay(() => {
|
|
47
48
|
this._voiceOverFallback = "";
|
|
48
49
|
}, 1000);
|
|
49
50
|
}
|
|
@@ -90,6 +91,26 @@ const DBSwitch = class {
|
|
|
90
91
|
this._validMessageId = `${mId}${DEFAULT_VALID_MESSAGE_ID_SUFFIX}`;
|
|
91
92
|
this._invalidMessageId = `${mId}${DEFAULT_INVALID_MESSAGE_ID_SUFFIX}`;
|
|
92
93
|
}
|
|
94
|
+
setupObserver(element) {
|
|
95
|
+
if (!element)
|
|
96
|
+
return;
|
|
97
|
+
const parent = element.closest("db-switch");
|
|
98
|
+
if (!parent || this.observer)
|
|
99
|
+
return;
|
|
100
|
+
this.observer = new MutationObserver((mutations) => {
|
|
101
|
+
if (mutations.some((mutation) => {
|
|
102
|
+
var _a;
|
|
103
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
104
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
105
|
+
})) {
|
|
106
|
+
this.enableAttributePassing(element, "db-switch");
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
this.observer.observe(parent, {
|
|
110
|
+
attributes: true,
|
|
111
|
+
attributeOldValue: true,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
93
114
|
/**
|
|
94
115
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
95
116
|
* @param element the ref for the component
|
|
@@ -103,10 +124,15 @@ const DBSwitch = class {
|
|
|
103
124
|
const attr = attributes.item(i);
|
|
104
125
|
if (attr && attr.name !== 'data-density' &&
|
|
105
126
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
106
|
-
|
|
127
|
+
if (attr.value) {
|
|
128
|
+
element.setAttribute(attr.name, attr.value);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
element.removeAttribute(attr.name);
|
|
132
|
+
}
|
|
107
133
|
parent.removeAttribute(attr.name);
|
|
108
134
|
}
|
|
109
|
-
else if (attr &&
|
|
135
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
110
136
|
element.setAttribute(attr.name, attr.value);
|
|
111
137
|
parent.removeAttribute(attr.name);
|
|
112
138
|
}
|
|
@@ -114,7 +140,7 @@ const DBSwitch = class {
|
|
|
114
140
|
const isWebComponent = attr.value.includes("hydrated");
|
|
115
141
|
const value = attr.value.replace("hydrated", "").trim();
|
|
116
142
|
const currentClass = element.getAttribute("class");
|
|
117
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
143
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
118
144
|
if (isWebComponent) {
|
|
119
145
|
// Stencil is using this class for lazy loading component
|
|
120
146
|
parent.setAttribute("class", "hydrated");
|
|
@@ -178,23 +204,31 @@ const DBSwitch = class {
|
|
|
178
204
|
}
|
|
179
205
|
}
|
|
180
206
|
this.enableAttributePassing(this._ref, "db-switch");
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
207
|
+
const onMountHook_0 = () => {
|
|
208
|
+
this.resetIds();
|
|
209
|
+
this.handleValidation();
|
|
210
|
+
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
211
|
+
};
|
|
212
|
+
onMountHook_0();
|
|
213
|
+
const onMountHook_1 = () => {
|
|
214
|
+
this.setupObserver(this._ref);
|
|
215
|
+
};
|
|
216
|
+
onMountHook_1();
|
|
184
217
|
this.watch0Fn();
|
|
185
218
|
this.watch1Fn();
|
|
186
219
|
this.watch2Fn();
|
|
187
220
|
this.watch3Fn();
|
|
188
221
|
}
|
|
189
222
|
disconnectedCallback() {
|
|
190
|
-
var _a;
|
|
223
|
+
var _a, _b;
|
|
191
224
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
225
|
+
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
192
226
|
}
|
|
193
227
|
render() {
|
|
194
228
|
var _a, _b;
|
|
195
|
-
return (h("div", { key: '
|
|
229
|
+
return (h("div", { key: 'e95dafb6d580ef8cfbd54b91ee77da4809984862', class: cls("db-switch", this.className), "data-visual-aid": getBooleanAsString(this.visualAid, "visualAid"), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, h("label", { key: '533173f9a522375012848dbff80b0e357f5e1b30', htmlFor: this._id }, h("input", { key: '68e6d40e2b5654508d8ebaf9be66dd56aa39c8f2', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
|
|
196
230
|
this._ref = el;
|
|
197
|
-
}, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : null, h("slot", { key: '
|
|
231
|
+
}, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : null, h("slot", { key: 'a89d78f024905190780c3c8436773ab710115857' })), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'e170d8c368afd61c7c94c10bb2ea13fe4520d692', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'd8a5b8e7a5e0f70f245de5756f7b2d19640b4863', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
198
232
|
}
|
|
199
233
|
get rootElement() { return getElement(this); }
|
|
200
234
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
2
|
-
import { g as getBooleanAsString, e as getBoolean, c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { g as getBooleanAsString, e as getBoolean, c as cls } from './index-fumiz06Y.js';
|
|
3
3
|
|
|
4
4
|
const DBTabItem = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -10,10 +10,11 @@ const DBTabItem = class {
|
|
|
10
10
|
this.initialized = false;
|
|
11
11
|
this._listenerAdded = false;
|
|
12
12
|
this.boundSetSelectedOnChange = undefined;
|
|
13
|
+
this.observer = undefined;
|
|
13
14
|
}
|
|
14
15
|
setSelectedOnChange(event) {
|
|
15
16
|
event.stopPropagation();
|
|
16
|
-
this._selected = getBooleanAsString(event.target === this._ref);
|
|
17
|
+
this._selected = getBooleanAsString(event.target === this._ref, "selected");
|
|
17
18
|
}
|
|
18
19
|
handleNameAttribute() {
|
|
19
20
|
if (this._ref) {
|
|
@@ -31,6 +32,26 @@ const DBTabItem = class {
|
|
|
31
32
|
this.change.emit(event);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
35
|
+
setupObserver(element) {
|
|
36
|
+
if (!element)
|
|
37
|
+
return;
|
|
38
|
+
const parent = element.closest("db-tab-item");
|
|
39
|
+
if (!parent || this.observer)
|
|
40
|
+
return;
|
|
41
|
+
this.observer = new MutationObserver((mutations) => {
|
|
42
|
+
if (mutations.some((mutation) => {
|
|
43
|
+
var _a;
|
|
44
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
45
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
46
|
+
})) {
|
|
47
|
+
this.enableAttributePassing(element, "db-tab-item");
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
this.observer.observe(parent, {
|
|
51
|
+
attributes: true,
|
|
52
|
+
attributeOldValue: true,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
34
55
|
/**
|
|
35
56
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
36
57
|
* @param element the ref for the component
|
|
@@ -44,10 +65,15 @@ const DBTabItem = class {
|
|
|
44
65
|
const attr = attributes.item(i);
|
|
45
66
|
if (attr && attr.name !== 'data-density' &&
|
|
46
67
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
47
|
-
|
|
68
|
+
if (attr.value) {
|
|
69
|
+
element.setAttribute(attr.name, attr.value);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
element.removeAttribute(attr.name);
|
|
73
|
+
}
|
|
48
74
|
parent.removeAttribute(attr.name);
|
|
49
75
|
}
|
|
50
|
-
else if (attr &&
|
|
76
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
51
77
|
element.setAttribute(attr.name, attr.value);
|
|
52
78
|
parent.removeAttribute(attr.name);
|
|
53
79
|
}
|
|
@@ -55,7 +81,7 @@ const DBTabItem = class {
|
|
|
55
81
|
const isWebComponent = attr.value.includes("hydrated");
|
|
56
82
|
const value = attr.value.replace("hydrated", "").trim();
|
|
57
83
|
const currentClass = element.getAttribute("class");
|
|
58
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
84
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
59
85
|
if (isWebComponent) {
|
|
60
86
|
// Stencil is using this class for lazy loading component
|
|
61
87
|
parent.setAttribute("class", "hydrated");
|
|
@@ -79,7 +105,7 @@ const DBTabItem = class {
|
|
|
79
105
|
}
|
|
80
106
|
// Initialize selected state from either active prop (set by parent) or checked attribute
|
|
81
107
|
if (this.active || this._ref.checked) {
|
|
82
|
-
this._selected = getBooleanAsString(true);
|
|
108
|
+
this._selected = getBooleanAsString(true, "selected");
|
|
83
109
|
this._ref.click();
|
|
84
110
|
}
|
|
85
111
|
}
|
|
@@ -103,24 +129,33 @@ const DBTabItem = class {
|
|
|
103
129
|
}
|
|
104
130
|
}
|
|
105
131
|
this.enableAttributePassing(this._ref, "db-tab-item");
|
|
106
|
-
|
|
107
|
-
|
|
132
|
+
const onMountHook_0 = () => {
|
|
133
|
+
this.boundSetSelectedOnChange = this.setSelectedOnChange.bind(this);
|
|
134
|
+
this.initialized = true;
|
|
135
|
+
};
|
|
136
|
+
onMountHook_0();
|
|
137
|
+
const onMountHook_1 = () => {
|
|
138
|
+
this.setupObserver(this._ref);
|
|
139
|
+
};
|
|
140
|
+
onMountHook_1();
|
|
108
141
|
this.watch0Fn();
|
|
109
142
|
this.watch1Fn();
|
|
110
143
|
}
|
|
111
144
|
disconnectedCallback() {
|
|
112
|
-
var _a;
|
|
145
|
+
var _a, _b;
|
|
113
146
|
if (this._listenerAdded && this._ref && this.boundSetSelectedOnChange) {
|
|
114
147
|
(_a = this._ref
|
|
115
148
|
.closest("[role=tablist]")) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.boundSetSelectedOnChange);
|
|
116
149
|
this._listenerAdded = false;
|
|
117
150
|
}
|
|
151
|
+
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
118
152
|
}
|
|
119
153
|
render() {
|
|
120
|
-
var _a, _b, _c, _d, _e
|
|
121
|
-
return (h("li", { key: '
|
|
154
|
+
var _a, _b, _c, _d, _e;
|
|
155
|
+
return (h("li", { key: '003e5b968c65ba01df1b97e8f75592aee31125d9', class: cls("db-tab-item", this.className), role: "none" }, h("label", { key: '682e5a3cf7036abcbbbbbba9f42ce534d7a4145d', htmlFor: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
156
|
+
getBooleanAsString(this.showIcon, "showIcon"), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-no-text": getBooleanAsString(this.noText, "noText") }, h("input", { key: 'ffb91a8e7248a8e5a2a7a05c6828fc6203e1eb37', type: "radio", role: "tab", disabled: getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: getBoolean(this.checked, "checked"), ref: (el) => {
|
|
122
157
|
this._ref = el;
|
|
123
|
-
}, name: this._name, id: (
|
|
158
|
+
}, name: this._name, id: (_d = this.id) !== null && _d !== void 0 ? _d : (_e = this.propOverrides) === null || _e === void 0 ? void 0 : _e.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: '2d079503cd365448cd054e05bfaec608ff476e04' }))));
|
|
124
159
|
}
|
|
125
160
|
get rootElement() { return getElement(this); }
|
|
126
161
|
static get watchers() { return {
|
|
@@ -142,6 +177,27 @@ const DBTabItem = class {
|
|
|
142
177
|
const DBTabList = class {
|
|
143
178
|
constructor(hostRef) {
|
|
144
179
|
registerInstance(this, hostRef);
|
|
180
|
+
this.observer = undefined;
|
|
181
|
+
}
|
|
182
|
+
setupObserver(element) {
|
|
183
|
+
if (!element)
|
|
184
|
+
return;
|
|
185
|
+
const parent = element.closest("db-tab-list");
|
|
186
|
+
if (!parent || this.observer)
|
|
187
|
+
return;
|
|
188
|
+
this.observer = new MutationObserver((mutations) => {
|
|
189
|
+
if (mutations.some((mutation) => {
|
|
190
|
+
var _a;
|
|
191
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
192
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
193
|
+
})) {
|
|
194
|
+
this.enableAttributePassing(element, "db-tab-list");
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
this.observer.observe(parent, {
|
|
198
|
+
attributes: true,
|
|
199
|
+
attributeOldValue: true,
|
|
200
|
+
});
|
|
145
201
|
}
|
|
146
202
|
/**
|
|
147
203
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -156,10 +212,15 @@ const DBTabList = class {
|
|
|
156
212
|
const attr = attributes.item(i);
|
|
157
213
|
if (attr && attr.name !== 'data-density' &&
|
|
158
214
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
159
|
-
|
|
215
|
+
if (attr.value) {
|
|
216
|
+
element.setAttribute(attr.name, attr.value);
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
element.removeAttribute(attr.name);
|
|
220
|
+
}
|
|
160
221
|
parent.removeAttribute(attr.name);
|
|
161
222
|
}
|
|
162
|
-
else if (attr &&
|
|
223
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
163
224
|
element.setAttribute(attr.name, attr.value);
|
|
164
225
|
parent.removeAttribute(attr.name);
|
|
165
226
|
}
|
|
@@ -167,7 +228,7 @@ const DBTabList = class {
|
|
|
167
228
|
const isWebComponent = attr.value.includes("hydrated");
|
|
168
229
|
const value = attr.value.replace("hydrated", "").trim();
|
|
169
230
|
const currentClass = element.getAttribute("class");
|
|
170
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
231
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
171
232
|
if (isWebComponent) {
|
|
172
233
|
// Stencil is using this class for lazy loading component
|
|
173
234
|
parent.setAttribute("class", "hydrated");
|
|
@@ -187,12 +248,17 @@ const DBTabList = class {
|
|
|
187
248
|
}
|
|
188
249
|
}
|
|
189
250
|
this.enableAttributePassing(this._ref, "db-tab-list");
|
|
251
|
+
this.setupObserver(this._ref);
|
|
252
|
+
}
|
|
253
|
+
disconnectedCallback() {
|
|
254
|
+
var _a;
|
|
255
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
190
256
|
}
|
|
191
257
|
render() {
|
|
192
258
|
var _a, _b;
|
|
193
|
-
return (h("div", { key: '
|
|
259
|
+
return (h("div", { key: '2538ba05ecad54c8c29dda93a08acb61faf02309', class: cls("db-tab-list", this.className), ref: (el) => {
|
|
194
260
|
this._ref = el;
|
|
195
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '
|
|
261
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '86824302eb2cc92ca45a61d8bdec0f34cd679db6', role: "tablist" }, h("slot", { key: 'b56406b1e0291a29905b599531c0dccd9c035504' }))));
|
|
196
262
|
}
|
|
197
263
|
get rootElement() { return getElement(this); }
|
|
198
264
|
};
|
|
@@ -200,6 +266,27 @@ const DBTabList = class {
|
|
|
200
266
|
const DBTabPanel = class {
|
|
201
267
|
constructor(hostRef) {
|
|
202
268
|
registerInstance(this, hostRef);
|
|
269
|
+
this.observer = undefined;
|
|
270
|
+
}
|
|
271
|
+
setupObserver(element) {
|
|
272
|
+
if (!element)
|
|
273
|
+
return;
|
|
274
|
+
const parent = element.closest("db-tab-panel");
|
|
275
|
+
if (!parent || this.observer)
|
|
276
|
+
return;
|
|
277
|
+
this.observer = new MutationObserver((mutations) => {
|
|
278
|
+
if (mutations.some((mutation) => {
|
|
279
|
+
var _a;
|
|
280
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
281
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
282
|
+
})) {
|
|
283
|
+
this.enableAttributePassing(element, "db-tab-panel");
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
this.observer.observe(parent, {
|
|
287
|
+
attributes: true,
|
|
288
|
+
attributeOldValue: true,
|
|
289
|
+
});
|
|
203
290
|
}
|
|
204
291
|
/**
|
|
205
292
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -214,10 +301,15 @@ const DBTabPanel = class {
|
|
|
214
301
|
const attr = attributes.item(i);
|
|
215
302
|
if (attr && attr.name !== 'data-density' &&
|
|
216
303
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
217
|
-
|
|
304
|
+
if (attr.value) {
|
|
305
|
+
element.setAttribute(attr.name, attr.value);
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
element.removeAttribute(attr.name);
|
|
309
|
+
}
|
|
218
310
|
parent.removeAttribute(attr.name);
|
|
219
311
|
}
|
|
220
|
-
else if (attr &&
|
|
312
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
221
313
|
element.setAttribute(attr.name, attr.value);
|
|
222
314
|
parent.removeAttribute(attr.name);
|
|
223
315
|
}
|
|
@@ -225,7 +317,7 @@ const DBTabPanel = class {
|
|
|
225
317
|
const isWebComponent = attr.value.includes("hydrated");
|
|
226
318
|
const value = attr.value.replace("hydrated", "").trim();
|
|
227
319
|
const currentClass = element.getAttribute("class");
|
|
228
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
320
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
229
321
|
if (isWebComponent) {
|
|
230
322
|
// Stencil is using this class for lazy loading component
|
|
231
323
|
parent.setAttribute("class", "hydrated");
|
|
@@ -245,12 +337,20 @@ const DBTabPanel = class {
|
|
|
245
337
|
}
|
|
246
338
|
}
|
|
247
339
|
this.enableAttributePassing(this._ref, "db-tab-panel");
|
|
340
|
+
const onMountHook_1 = () => {
|
|
341
|
+
this.setupObserver(this._ref);
|
|
342
|
+
};
|
|
343
|
+
onMountHook_1();
|
|
344
|
+
}
|
|
345
|
+
disconnectedCallback() {
|
|
346
|
+
var _a;
|
|
347
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
248
348
|
}
|
|
249
349
|
render() {
|
|
250
350
|
var _a, _b;
|
|
251
|
-
return (h("section", { key: '
|
|
351
|
+
return (h("section", { key: 'd7179207343d512194f69f6d99a34897c146c00a', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
|
|
252
352
|
this._ref = el;
|
|
253
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, h("slot", { key: '
|
|
353
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, h("slot", { key: 'dc745b430dd17f253cf9403c28f6c2cbd5b59020' })));
|
|
254
354
|
}
|
|
255
355
|
get rootElement() { return getElement(this); }
|
|
256
356
|
};
|