@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,10 +1,31 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
2
|
import { q as DEFAULT_ICON } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { g as getBooleanAsString, c as cls } from './index-
|
|
3
|
+
import { g as getBooleanAsString, c as cls } from './index-fumiz06Y.js';
|
|
4
4
|
|
|
5
5
|
const DBBrand = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
|
+
this.observer = undefined;
|
|
9
|
+
}
|
|
10
|
+
setupObserver(element) {
|
|
11
|
+
if (!element)
|
|
12
|
+
return;
|
|
13
|
+
const parent = element.closest("db-brand");
|
|
14
|
+
if (!parent || this.observer)
|
|
15
|
+
return;
|
|
16
|
+
this.observer = new MutationObserver((mutations) => {
|
|
17
|
+
if (mutations.some((mutation) => {
|
|
18
|
+
var _a;
|
|
19
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
20
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
21
|
+
})) {
|
|
22
|
+
this.enableAttributePassing(element, "db-brand");
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
this.observer.observe(parent, {
|
|
26
|
+
attributes: true,
|
|
27
|
+
attributeOldValue: true,
|
|
28
|
+
});
|
|
8
29
|
}
|
|
9
30
|
/**
|
|
10
31
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -19,10 +40,15 @@ const DBBrand = class {
|
|
|
19
40
|
const attr = attributes.item(i);
|
|
20
41
|
if (attr && attr.name !== 'data-density' &&
|
|
21
42
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
22
|
-
|
|
43
|
+
if (attr.value) {
|
|
44
|
+
element.setAttribute(attr.name, attr.value);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
element.removeAttribute(attr.name);
|
|
48
|
+
}
|
|
23
49
|
parent.removeAttribute(attr.name);
|
|
24
50
|
}
|
|
25
|
-
else if (attr &&
|
|
51
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
26
52
|
element.setAttribute(attr.name, attr.value);
|
|
27
53
|
parent.removeAttribute(attr.name);
|
|
28
54
|
}
|
|
@@ -30,7 +56,7 @@ const DBBrand = class {
|
|
|
30
56
|
const isWebComponent = attr.value.includes("hydrated");
|
|
31
57
|
const value = attr.value.replace("hydrated", "").trim();
|
|
32
58
|
const currentClass = element.getAttribute("class");
|
|
33
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
59
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
34
60
|
if (isWebComponent) {
|
|
35
61
|
// Stencil is using this class for lazy loading component
|
|
36
62
|
parent.setAttribute("class", "hydrated");
|
|
@@ -50,12 +76,17 @@ const DBBrand = class {
|
|
|
50
76
|
}
|
|
51
77
|
}
|
|
52
78
|
this.enableAttributePassing(this._ref, "db-brand");
|
|
79
|
+
this.setupObserver(this._ref);
|
|
80
|
+
}
|
|
81
|
+
disconnectedCallback() {
|
|
82
|
+
var _a;
|
|
83
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
53
84
|
}
|
|
54
85
|
render() {
|
|
55
86
|
var _a, _b, _c;
|
|
56
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: '1c27a0d77bc0862364161f6eabfb78c81a331fb1', class: cls("db-brand", this.className), ref: (el) => {
|
|
57
88
|
this._ref = el;
|
|
58
|
-
}, "data-icon": this.hideLogo ? "none" : (_a = this.icon) !== null && _a !== void 0 ? _a : DEFAULT_ICON, "data-show-icon": getBooleanAsString(this.showIcon), id: (_b = this.id) !== null && _b !== void 0 ? _b : (_c = this.propOverrides) === null || _c === void 0 ? void 0 : _c.id }, h("slot", { key: '
|
|
89
|
+
}, "data-icon": this.hideLogo ? "none" : (_a = this.icon) !== null && _a !== void 0 ? _a : DEFAULT_ICON, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), id: (_b = this.id) !== null && _b !== void 0 ? _b : (_c = this.propOverrides) === null || _c === void 0 ? void 0 : _c.id }, h("slot", { key: '58d2daa05934dcc42bfe0bdb08b8f60fc204064d' }), this.text ? this.text : null));
|
|
59
90
|
}
|
|
60
91
|
get rootElement() { return getElement(this); }
|
|
61
92
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
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 DBButton = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
7
|
this.click = createEvent(this, "click");
|
|
8
|
+
this.observer = undefined;
|
|
8
9
|
}
|
|
9
10
|
getButtonType() {
|
|
10
11
|
if (this.type) {
|
|
@@ -15,6 +16,26 @@ const DBButton = class {
|
|
|
15
16
|
}
|
|
16
17
|
return "submit";
|
|
17
18
|
}
|
|
19
|
+
setupObserver(element) {
|
|
20
|
+
if (!element)
|
|
21
|
+
return;
|
|
22
|
+
const parent = element.closest("db-button");
|
|
23
|
+
if (!parent || this.observer)
|
|
24
|
+
return;
|
|
25
|
+
this.observer = new MutationObserver((mutations) => {
|
|
26
|
+
if (mutations.some((mutation) => {
|
|
27
|
+
var _a;
|
|
28
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
29
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
30
|
+
})) {
|
|
31
|
+
this.enableAttributePassing(element, "db-button");
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
this.observer.observe(parent, {
|
|
35
|
+
attributes: true,
|
|
36
|
+
attributeOldValue: true,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
18
39
|
/**
|
|
19
40
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
20
41
|
* @param element the ref for the component
|
|
@@ -28,10 +49,15 @@ const DBButton = class {
|
|
|
28
49
|
const attr = attributes.item(i);
|
|
29
50
|
if (attr && attr.name !== 'data-density' &&
|
|
30
51
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
31
|
-
|
|
52
|
+
if (attr.value) {
|
|
53
|
+
element.setAttribute(attr.name, attr.value);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
element.removeAttribute(attr.name);
|
|
57
|
+
}
|
|
32
58
|
parent.removeAttribute(attr.name);
|
|
33
59
|
}
|
|
34
|
-
else if (attr &&
|
|
60
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
35
61
|
element.setAttribute(attr.name, attr.value);
|
|
36
62
|
parent.removeAttribute(attr.name);
|
|
37
63
|
}
|
|
@@ -39,7 +65,7 @@ const DBButton = class {
|
|
|
39
65
|
const isWebComponent = attr.value.includes("hydrated");
|
|
40
66
|
const value = attr.value.replace("hydrated", "").trim();
|
|
41
67
|
const currentClass = element.getAttribute("class");
|
|
42
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
68
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
43
69
|
if (isWebComponent) {
|
|
44
70
|
// Stencil is using this class for lazy loading component
|
|
45
71
|
parent.setAttribute("class", "hydrated");
|
|
@@ -59,12 +85,18 @@ const DBButton = class {
|
|
|
59
85
|
}
|
|
60
86
|
}
|
|
61
87
|
this.enableAttributePassing(this._ref, "db-button");
|
|
88
|
+
this.setupObserver(this._ref);
|
|
89
|
+
}
|
|
90
|
+
disconnectedCallback() {
|
|
91
|
+
var _a;
|
|
92
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
62
93
|
}
|
|
63
94
|
render() {
|
|
64
|
-
var _a, _b, _c
|
|
65
|
-
return (h("button", { key: '
|
|
95
|
+
var _a, _b, _c;
|
|
96
|
+
return (h("button", { key: 'b3c660955f667a8f8c93bb7c83360a44a5af3d1f', class: cls("db-button", this.className), ref: (el) => {
|
|
66
97
|
this._ref = el;
|
|
67
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, type: this.getButtonType(), disabled: getBoolean(this.disabled, "disabled"), "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": getBooleanAsString(
|
|
98
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, type: this.getButtonType(), disabled: getBoolean(this.disabled, "disabled"), "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
99
|
+
getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-no-text": getBooleanAsString(this.noText, "noText"), name: this.name, form: this.form, value: this.value }, this.text ? this.text : null, h("slot", { key: 'eb9c13e9573f61cdb3e61b5614fec0ad656c02b8' })));
|
|
68
100
|
}
|
|
69
101
|
get rootElement() { return getElement(this); }
|
|
70
102
|
};
|
|
@@ -1,16 +1,37 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
2
|
-
import { c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { c as cls } from './index-fumiz06Y.js';
|
|
3
3
|
|
|
4
4
|
const DBCard = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
7
|
this.click = createEvent(this, "click");
|
|
8
|
+
this.observer = undefined;
|
|
8
9
|
}
|
|
9
10
|
handleClick(event) {
|
|
10
11
|
if (this.click) {
|
|
11
12
|
this.click.emit(event);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
setupObserver(element) {
|
|
16
|
+
if (!element)
|
|
17
|
+
return;
|
|
18
|
+
const parent = element.closest("db-card");
|
|
19
|
+
if (!parent || this.observer)
|
|
20
|
+
return;
|
|
21
|
+
this.observer = new MutationObserver((mutations) => {
|
|
22
|
+
if (mutations.some((mutation) => {
|
|
23
|
+
var _a;
|
|
24
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
25
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
26
|
+
})) {
|
|
27
|
+
this.enableAttributePassing(element, "db-card");
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
this.observer.observe(parent, {
|
|
31
|
+
attributes: true,
|
|
32
|
+
attributeOldValue: true,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
14
35
|
/**
|
|
15
36
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
16
37
|
* @param element the ref for the component
|
|
@@ -24,10 +45,15 @@ const DBCard = class {
|
|
|
24
45
|
const attr = attributes.item(i);
|
|
25
46
|
if (attr && attr.name !== 'data-density' &&
|
|
26
47
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
27
|
-
|
|
48
|
+
if (attr.value) {
|
|
49
|
+
element.setAttribute(attr.name, attr.value);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
element.removeAttribute(attr.name);
|
|
53
|
+
}
|
|
28
54
|
parent.removeAttribute(attr.name);
|
|
29
55
|
}
|
|
30
|
-
else if (attr &&
|
|
56
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
31
57
|
element.setAttribute(attr.name, attr.value);
|
|
32
58
|
parent.removeAttribute(attr.name);
|
|
33
59
|
}
|
|
@@ -35,7 +61,7 @@ const DBCard = class {
|
|
|
35
61
|
const isWebComponent = attr.value.includes("hydrated");
|
|
36
62
|
const value = attr.value.replace("hydrated", "").trim();
|
|
37
63
|
const currentClass = element.getAttribute("class");
|
|
38
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
64
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
39
65
|
if (isWebComponent) {
|
|
40
66
|
// Stencil is using this class for lazy loading component
|
|
41
67
|
parent.setAttribute("class", "hydrated");
|
|
@@ -55,12 +81,17 @@ const DBCard = class {
|
|
|
55
81
|
}
|
|
56
82
|
}
|
|
57
83
|
this.enableAttributePassing(this._ref, "db-card");
|
|
84
|
+
this.setupObserver(this._ref);
|
|
85
|
+
}
|
|
86
|
+
disconnectedCallback() {
|
|
87
|
+
var _a;
|
|
88
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
58
89
|
}
|
|
59
90
|
render() {
|
|
60
91
|
var _a, _b;
|
|
61
|
-
return (h("div", { key: '
|
|
92
|
+
return (h("div", { key: '44419819c968f1a3882fc7618f9fa6627706e84d', class: cls("db-card", this.className), ref: (el) => {
|
|
62
93
|
this._ref = el;
|
|
63
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, h("slot", { key: '
|
|
94
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, h("slot", { key: '0854d0bbca92f6dd3bdea08f82872fbfb6567bfa' })));
|
|
64
95
|
}
|
|
65
96
|
get rootElement() { return getElement(this); }
|
|
66
97
|
};
|
|
@@ -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, 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, c as cls } from './index-fumiz06Y.js';
|
|
4
|
+
import { a as addCheckedResetEventListener } from './form-components-ZV7IN0oG.js';
|
|
5
5
|
|
|
6
6
|
const DBCheckbox = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -18,6 +18,7 @@ const DBCheckbox = class {
|
|
|
18
18
|
this._descByIds = undefined;
|
|
19
19
|
this._voiceOverFallback = "";
|
|
20
20
|
this.abortController = undefined;
|
|
21
|
+
this.observer = undefined;
|
|
21
22
|
}
|
|
22
23
|
hasValidState() {
|
|
23
24
|
var _a;
|
|
@@ -34,7 +35,7 @@ const DBCheckbox = class {
|
|
|
34
35
|
DEFAULT_INVALID_MESSAGE;
|
|
35
36
|
if (hasVoiceOver()) {
|
|
36
37
|
this._voiceOverFallback = this._invalidMessage;
|
|
37
|
-
delay(() => (this._voiceOverFallback = ""), 1000);
|
|
38
|
+
void delay(() => (this._voiceOverFallback = ""), 1000);
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
else if (this.hasValidState() &&
|
|
@@ -43,7 +44,7 @@ const DBCheckbox = class {
|
|
|
43
44
|
this._descByIds = this._validMessageId;
|
|
44
45
|
if (hasVoiceOver()) {
|
|
45
46
|
this._voiceOverFallback = (_d = this.validMessage) !== null && _d !== void 0 ? _d : DEFAULT_VALID_MESSAGE;
|
|
46
|
-
delay(() => (this._voiceOverFallback = ""), 1000);
|
|
47
|
+
void delay(() => (this._voiceOverFallback = ""), 1000);
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
else if (stringPropVisible(this.message, this.showMessage)) {
|
|
@@ -77,6 +78,26 @@ const DBCheckbox = class {
|
|
|
77
78
|
this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
78
79
|
this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
79
80
|
}
|
|
81
|
+
setupObserver(element) {
|
|
82
|
+
if (!element)
|
|
83
|
+
return;
|
|
84
|
+
const parent = element.closest("db-checkbox");
|
|
85
|
+
if (!parent || this.observer)
|
|
86
|
+
return;
|
|
87
|
+
this.observer = new MutationObserver((mutations) => {
|
|
88
|
+
if (mutations.some((mutation) => {
|
|
89
|
+
var _a;
|
|
90
|
+
const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
|
|
91
|
+
return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
|
|
92
|
+
})) {
|
|
93
|
+
this.enableAttributePassing(element, "db-checkbox");
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
this.observer.observe(parent, {
|
|
97
|
+
attributes: true,
|
|
98
|
+
attributeOldValue: true,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
80
101
|
/**
|
|
81
102
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
82
103
|
* @param element the ref for the component
|
|
@@ -90,10 +111,15 @@ const DBCheckbox = class {
|
|
|
90
111
|
const attr = attributes.item(i);
|
|
91
112
|
if (attr && attr.name !== 'data-density' &&
|
|
92
113
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
93
|
-
|
|
114
|
+
if (attr.value) {
|
|
115
|
+
element.setAttribute(attr.name, attr.value);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
element.removeAttribute(attr.name);
|
|
119
|
+
}
|
|
94
120
|
parent.removeAttribute(attr.name);
|
|
95
121
|
}
|
|
96
|
-
else if (attr &&
|
|
122
|
+
else if (attr && ["style"].includes(attr.name)) {
|
|
97
123
|
element.setAttribute(attr.name, attr.value);
|
|
98
124
|
parent.removeAttribute(attr.name);
|
|
99
125
|
}
|
|
@@ -101,7 +127,7 @@ const DBCheckbox = class {
|
|
|
101
127
|
const isWebComponent = attr.value.includes("hydrated");
|
|
102
128
|
const value = attr.value.replace("hydrated", "").trim();
|
|
103
129
|
const currentClass = element.getAttribute("class");
|
|
104
|
-
element.setAttribute(attr.name, `${currentClass ?
|
|
130
|
+
element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
|
|
105
131
|
if (isWebComponent) {
|
|
106
132
|
// Stencil is using this class for lazy loading component
|
|
107
133
|
parent.setAttribute("class", "hydrated");
|
|
@@ -198,9 +224,16 @@ const DBCheckbox = class {
|
|
|
198
224
|
}
|
|
199
225
|
}
|
|
200
226
|
this.enableAttributePassing(this._ref, "db-checkbox");
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
227
|
+
const onMountHook_0 = () => {
|
|
228
|
+
this.initialized = true;
|
|
229
|
+
this.resetIds();
|
|
230
|
+
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
231
|
+
};
|
|
232
|
+
onMountHook_0();
|
|
233
|
+
const onMountHook_1 = () => {
|
|
234
|
+
this.setupObserver(this._ref);
|
|
235
|
+
};
|
|
236
|
+
onMountHook_1();
|
|
204
237
|
this.watch0Fn();
|
|
205
238
|
this.watch1Fn();
|
|
206
239
|
this.watch2Fn();
|
|
@@ -209,14 +242,15 @@ const DBCheckbox = class {
|
|
|
209
242
|
this.watch5Fn();
|
|
210
243
|
}
|
|
211
244
|
disconnectedCallback() {
|
|
212
|
-
var _a;
|
|
245
|
+
var _a, _b;
|
|
213
246
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
247
|
+
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
214
248
|
}
|
|
215
249
|
render() {
|
|
216
250
|
var _a;
|
|
217
|
-
return (h("div", { key: '
|
|
251
|
+
return (h("div", { key: '669ca0c9e0f0a21581a88f7d95a2a338f1ac3be3', class: cls("db-checkbox", this.className), "data-size": this.size, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '620ffa05d0288e333ce10b36e21680beeb7956c1', htmlFor: this._id }, h("input", { key: 'a06fd7e2f559940d18c869b02e758d3402e67783', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
218
252
|
this._ref = el;
|
|
219
|
-
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : null, h("slot", { key: '
|
|
253
|
+
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : null, h("slot", { key: '5a02a316cd8a9bd2813ce278e5dfa31f7c8bc57a' })), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '7ec8ff76655cd5d26413cdad76049696453595ab', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'a177359aaca2aa58b9847373bfb197f0a87cf80b', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
220
254
|
}
|
|
221
255
|
get rootElement() { return getElement(this); }
|
|
222
256
|
static get watchers() { return {
|
|
@@ -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 DBCustomButton = 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-custom-button");
|
|
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-custom-button");
|
|
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 DBCustomButton = 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 DBCustomButton = 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,18 @@ const DBCustomButton = class {
|
|
|
49
75
|
}
|
|
50
76
|
}
|
|
51
77
|
this.enableAttributePassing(this._ref, "db-custom-button");
|
|
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
|
-
var _a, _b, _c
|
|
55
|
-
return (h("div", { key: '
|
|
85
|
+
var _a, _b, _c;
|
|
86
|
+
return (h("div", { key: '6ef84eaa8f553eb89c921a9933fe0203df38f776', class: cls("db-custom-button", 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-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": getBooleanAsString(
|
|
88
|
+
}, id: (_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-show-icon": getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
89
|
+
getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-no-text": getBooleanAsString(this.noText, "noText") }, h("slot", { key: 'efb921b78ebebd9b13e33893efedaeb2d0ba5f66' })));
|
|
58
90
|
}
|
|
59
91
|
get rootElement() { return getElement(this); }
|
|
60
92
|
};
|