@db-ux/wc-core-components 4.10.2 → 4.11.0
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 +12 -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-BGVLpaFn.js → p-B5ANMEnQ.js} +1 -1
- package/bundle/p-BJwvv-yT.js +1 -0
- package/bundle/{p-B5E_0kTi.js → p-BNiKxu3y.js} +1 -1
- package/bundle/p-B_bPnncM.js +1 -0
- package/bundle/p-BnLhi6Lz.js +1 -0
- package/bundle/p-BrBlnLrn.js +1 -0
- package/bundle/p-CByFfoSH.js +1 -0
- package/bundle/{p-LbPYp2oP.js → p-CQo0C7QE.js} +1 -1
- package/bundle/p-CR2ZbfYe.js +1 -0
- package/bundle/p-CYYSsu3p.js +1 -0
- package/bundle/p-CeDu282h.js +1 -0
- package/bundle/p-CfLPOLHz.js +1 -0
- package/bundle/p-CoOxyQb2.js +1 -0
- package/bundle/p-CqED0CfD.js +1 -0
- package/bundle/p-Cr_z1Jfi.js +1 -0
- package/bundle/{p-DisehhY5.js → p-D-XzX0R7.js} +1 -1
- package/{dist/db-ux/p-D5mInaY7.js → bundle/p-D6L0n3gO.js} +1 -1
- package/bundle/p-DJTpgiBy.js +1 -0
- package/bundle/p-DMSIvqcA.js +1 -0
- package/bundle/p-DUiroUyR.js +1 -0
- package/bundle/p-DdyMClpj.js +1 -0
- package/bundle/p-DjVjS2Tb.js +1 -0
- package/bundle/p-in4Kv88F.js +1 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +4 -4
- package/dist/cjs/db-accordion.cjs.entry.js +3 -3
- package/dist/cjs/db-badge.cjs.entry.js +4 -4
- package/dist/cjs/db-brand.cjs.entry.js +4 -4
- package/dist/cjs/db-button.cjs.entry.js +6 -5
- package/dist/cjs/db-card.cjs.entry.js +4 -4
- package/dist/cjs/db-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/db-custom-button.cjs.entry.js +6 -5
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +18 -17
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
- package/dist/cjs/db-custom-select.cjs.entry.js +10 -10
- package/dist/cjs/db-divider.cjs.entry.js +3 -3
- package/dist/cjs/db-drawer.cjs.entry.js +5 -5
- package/dist/cjs/db-header.cjs.entry.js +4 -4
- package/dist/cjs/db-icon.cjs.entry.js +4 -4
- package/dist/cjs/db-infotext.cjs.entry.js +4 -4
- package/dist/cjs/db-link_4.cjs.entry.js +248 -0
- package/dist/cjs/db-navigation-item.cjs.entry.js +4 -4
- package/dist/cjs/db-navigation.cjs.entry.js +4 -4
- package/dist/cjs/db-notification.cjs.entry.js +4 -4
- package/dist/cjs/db-page.cjs.entry.js +4 -4
- package/dist/cjs/db-popover.cjs.entry.js +5 -5
- package/dist/cjs/db-radio.cjs.entry.js +5 -5
- package/dist/cjs/db-section.cjs.entry.js +4 -4
- package/dist/cjs/db-select.cjs.entry.js +6 -6
- package/dist/cjs/db-stack.cjs.entry.js +4 -4
- package/dist/cjs/db-switch.cjs.entry.js +5 -5
- package/dist/cjs/db-tab-item_3.cjs.entry.js +12 -11
- package/dist/cjs/db-table-body_3.cjs.entry.js +194 -0
- package/dist/cjs/{db-link.cjs.entry.js → db-table-caption.cjs.entry.js} +7 -8
- package/dist/cjs/db-table.cjs.entry.js +158 -0
- package/dist/cjs/db-tabs.cjs.entry.js +4 -4
- package/dist/cjs/db-textarea.cjs.entry.js +5 -5
- package/dist/cjs/db-tooltip.cjs.entry.js +5 -5
- 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 +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +2 -2
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/brand/brand.js +3 -3
- package/dist/collection/components/button/button.js +7 -6
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/custom-button/custom-button.js +7 -6
- package/dist/collection/components/custom-select/custom-select.js +7 -7
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
- package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +3 -3
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +3 -3
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/icon/icon.js +3 -3
- package/dist/collection/components/infotext/infotext.js +3 -3
- package/dist/collection/components/input/input.js +11 -10
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/navigation/navigation.js +2 -2
- package/dist/collection/components/navigation-item/navigation-item.js +3 -3
- package/dist/collection/components/notification/notification.js +3 -3
- package/dist/collection/components/page/page.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/section/section.js +2 -2
- package/dist/collection/components/select/select.js +5 -5
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +6 -6
- package/dist/collection/components/tab-item/tab-item.js +9 -8
- package/dist/collection/components/tab-list/tab-list.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +2 -2
- 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 +478 -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 +144 -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 +116 -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 +298 -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 +144 -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 +147 -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 +376 -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 +202 -0
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tag/tag.js +3 -3
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- 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 +6998 -3826
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-2461e08a.entry.js → p-08271c80.entry.js} +1 -1
- package/dist/db-ux/{p-0f524f6c.entry.js → p-105ffa74.entry.js} +1 -1
- package/dist/db-ux/p-15adca91.entry.js +1 -0
- package/dist/db-ux/{p-db71c251.entry.js → p-1a322a0c.entry.js} +1 -1
- package/dist/db-ux/{p-46e3033b.entry.js → p-1f7232c0.entry.js} +1 -1
- package/dist/db-ux/p-27e2f6f2.entry.js +1 -0
- package/dist/db-ux/p-2907f214.entry.js +1 -0
- package/dist/db-ux/p-2ff958e4.entry.js +1 -0
- package/dist/db-ux/p-3423b7af.entry.js +1 -0
- package/dist/db-ux/p-365e6edf.entry.js +1 -0
- package/dist/db-ux/{p-fd334f14.entry.js → p-42516007.entry.js} +1 -1
- package/dist/db-ux/p-5045182c.entry.js +1 -0
- package/dist/db-ux/{p-26b7e21f.entry.js → p-5e1d42e5.entry.js} +1 -1
- package/dist/db-ux/{p-94de5791.entry.js → p-61b28212.entry.js} +1 -1
- package/dist/db-ux/p-6850a53c.entry.js +1 -0
- package/dist/db-ux/p-6bff55b4.entry.js +1 -0
- package/dist/db-ux/p-6e7c5e42.entry.js +1 -0
- package/dist/db-ux/p-76adf385.entry.js +1 -0
- package/dist/db-ux/p-78f7b353.entry.js +1 -0
- package/dist/db-ux/p-7fa5d304.entry.js +1 -0
- package/dist/db-ux/p-95b69e71.entry.js +1 -0
- package/dist/db-ux/p-99ebe6ec.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-a5dc355d.entry.js +1 -0
- package/dist/db-ux/{p-4d5201a3.entry.js → p-a6113789.entry.js} +1 -1
- package/dist/db-ux/p-b9c0feaf.entry.js +1 -0
- package/dist/db-ux/p-c14fa91a.entry.js +1 -0
- package/dist/db-ux/p-c65b807e.entry.js +1 -0
- package/dist/db-ux/{p-d173eace.entry.js → p-dd9cedbe.entry.js} +1 -1
- package/dist/db-ux/{p-652739e4.entry.js → p-e3f705fd.entry.js} +1 -1
- package/dist/db-ux/{p-5eae34e7.entry.js → p-e4cddc9f.entry.js} +1 -1
- package/dist/db-ux/p-e7a8612c.entry.js +1 -0
- package/dist/db-ux/{p-4c3a8823.entry.js → p-ee8c3243.entry.js} +1 -1
- package/dist/db-ux/p-f0d0acfc.entry.js +1 -0
- package/dist/db-ux/{p-e2740857.entry.js → p-f15748ea.entry.js} +1 -1
- package/dist/db-ux/p-fumiz06Y.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +4 -4
- package/dist/esm/db-accordion.entry.js +3 -3
- package/dist/esm/db-badge.entry.js +4 -4
- package/dist/esm/db-brand.entry.js +4 -4
- package/dist/esm/db-button.entry.js +6 -5
- package/dist/esm/db-card.entry.js +4 -4
- package/dist/esm/db-checkbox.entry.js +5 -5
- package/dist/esm/db-custom-button.entry.js +6 -5
- package/dist/esm/db-custom-select-dropdown_5.entry.js +18 -17
- package/dist/esm/db-custom-select-form-field.entry.js +4 -4
- package/dist/esm/db-custom-select.entry.js +10 -10
- package/dist/esm/db-divider.entry.js +3 -3
- package/dist/esm/db-drawer.entry.js +5 -5
- package/dist/esm/db-header.entry.js +4 -4
- package/dist/esm/db-icon.entry.js +4 -4
- package/dist/esm/db-infotext.entry.js +4 -4
- package/dist/esm/db-link_4.entry.js +243 -0
- package/dist/esm/db-navigation-item.entry.js +4 -4
- package/dist/esm/db-navigation.entry.js +4 -4
- package/dist/esm/db-notification.entry.js +4 -4
- package/dist/esm/db-page.entry.js +4 -4
- package/dist/esm/db-popover.entry.js +5 -5
- package/dist/esm/db-radio.entry.js +5 -5
- package/dist/esm/db-section.entry.js +4 -4
- package/dist/esm/db-select.entry.js +6 -6
- package/dist/esm/db-stack.entry.js +4 -4
- package/dist/esm/db-switch.entry.js +5 -5
- package/dist/esm/db-tab-item_3.entry.js +12 -11
- package/dist/esm/db-table-body_3.entry.js +190 -0
- package/dist/esm/{db-link.entry.js → db-table-caption.entry.js} +7 -8
- package/dist/esm/db-table.entry.js +156 -0
- package/dist/esm/db-tabs.entry.js +4 -4
- package/dist/esm/db-textarea.entry.js +5 -5
- package/dist/esm/db-tooltip.entry.js +5 -5
- 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/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 +38 -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 +19 -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 +59 -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.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 +744 -5
- package/package.json +4 -4
- package/bundle/p--qzKkpB9.js +0 -1
- package/bundle/p-9fgrfYbf.js +0 -1
- package/bundle/p-BChikMGc.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-DstwggLZ.js +0 -1
- package/bundle/p-suxDlmXD.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-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-4b99f205.entry.js +0 -1
- package/dist/db-ux/p-4c238643.entry.js +0 -1
- package/dist/db-ux/p-93a6b1ee.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-d3ada4cb.entry.js +0 -1
- package/dist/db-ux/p-d858f147.entry.js +0 -1
- package/dist/db-ux/p-ed5b3877.entry.js +0 -1
- package/dist/db-ux/p-fed0fc42.entry.js +0 -1
- package/dist/db-ux/p-xkoBSP8R.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
5
|
-
var formComponents = require('./form-components-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
|
+
var formComponents = require('./form-components-CmQlkARp.js');
|
|
6
6
|
|
|
7
7
|
const DBRadio = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -133,9 +133,9 @@ const DBRadio = class {
|
|
|
133
133
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
|
-
return (index.h("label", { key: '
|
|
136
|
+
return (index.h("label", { key: 'a0c0cd38ac8c6addb0f826294c56ff235d0ea624', class: index$1.cls("db-radio", this.className), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, index.h("input", { key: '1dae5434da230a2e9268e89057d83b92f64b91c6', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
137
137
|
this._ref = el;
|
|
138
|
-
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, index.h("slot", { key: '
|
|
138
|
+
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, index.h("slot", { key: '7e8423038fc180907953fe21a406bc7195dcdaeb' })));
|
|
139
139
|
}
|
|
140
140
|
get rootElement() { return index.getElement(this); }
|
|
141
141
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
5
|
|
|
6
6
|
const DBSection = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -54,9 +54,9 @@ const DBSection = class {
|
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
var _a, _b;
|
|
57
|
-
return (index.h("section", { key: '
|
|
57
|
+
return (index.h("section", { key: '5c139b6a510425291fae249e710d4b3eafdbd0c4', class: index$1.cls("db-section", this.className), ref: (el) => {
|
|
58
58
|
this._ref = el;
|
|
59
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '
|
|
59
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: 'de4549ef8be697b8298962bb254c33b531cbc915' })));
|
|
60
60
|
}
|
|
61
61
|
get rootElement() { return index.getElement(this); }
|
|
62
62
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
var formComponents = require('./form-components-
|
|
5
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
6
|
+
var formComponents = require('./form-components-CmQlkARp.js');
|
|
7
7
|
|
|
8
8
|
const DBSelect = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -244,14 +244,14 @@ const DBSelect = class {
|
|
|
244
244
|
}
|
|
245
245
|
render() {
|
|
246
246
|
var _a, _b, _c, _d, _e, _f;
|
|
247
|
-
return (index.h("div", { key: '
|
|
247
|
+
return (index.h("div", { key: '9a671204460166241b06ea30a76987f89bc44185', class: index$1.cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon, "showIcon") }, index.h("label", { key: '008bd6fffd2fb37d74c1bc347e02789265dc8b1b', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL), index.h("select", { key: '6136d1db041667b7cb9ac8cbb6fe116f3aebe56a', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
248
248
|
this._ref = el;
|
|
249
249
|
}, required: index$1.getBoolean(this.required, "required"), disabled: index$1.getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
250
250
|
/* @ts-ignore */
|
|
251
|
-
value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (index.h("option", { class: "placeholder", value: "", "data-show-empty-option": index$1.getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
|
|
251
|
+
value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (index.h("option", { class: "placeholder", value: "", "data-show-empty-option": index$1.getBooleanAsString(this.shouldShowEmptyOption(), "showEmptyOption") })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
|
|
252
252
|
var _a;
|
|
253
253
|
return (index.h(index.Fragment, null, option.options ? (index.h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (index.h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (index.h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
|
|
254
|
-
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '
|
|
254
|
+
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '2917ae74aeec788b09b7b8d748905f5505742076', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '34c00871d2416959b44f2bb21816696d5ee62ea3', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
255
255
|
}
|
|
256
256
|
get rootElement() { return index.getElement(this); }
|
|
257
257
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
5
|
|
|
6
6
|
const DBStack = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -54,9 +54,9 @@ const DBStack = class {
|
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
var _a, _b;
|
|
57
|
-
return (index.h("div", { key: '
|
|
57
|
+
return (index.h("div", { key: '62cf5c2919a377c7167776fda39248a7ea03ebb2', class: index$1.cls("db-stack", this.className), ref: (el) => {
|
|
58
58
|
this._ref = el;
|
|
59
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": index$1.getBooleanAsString(this.wrap) }, index.h("slot", { key: '
|
|
59
|
+
}, 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": index$1.getBooleanAsString(this.wrap, "wrap") }, index.h("slot", { key: 'af86645752507ed68b97f6b290cd304c6cf48952' })));
|
|
60
60
|
}
|
|
61
61
|
get rootElement() { return index.getElement(this); }
|
|
62
62
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
var formComponents = require('./form-components-
|
|
5
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
6
|
+
var formComponents = require('./form-components-CmQlkARp.js');
|
|
7
7
|
|
|
8
8
|
const DBSwitch = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -194,9 +194,9 @@ const DBSwitch = class {
|
|
|
194
194
|
}
|
|
195
195
|
render() {
|
|
196
196
|
var _a, _b;
|
|
197
|
-
return (index.h("div", { key: '
|
|
197
|
+
return (index.h("div", { key: '4580075ad2dc46cce52be60c2738d0fd1033ae74', class: index$1.cls("db-switch", this.className), "data-visual-aid": index$1.getBooleanAsString(this.visualAid, "visualAid"), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, index.h("label", { key: 'bb3f0961808c94615181dc7e256a0ee35dcf34b7', htmlFor: this._id }, index.h("input", { key: '352257d398c6808c4a643e97b5505edddec9477c', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
|
|
198
198
|
this._ref = el;
|
|
199
|
-
}, checked: index$1.getBoolean(this.checked, "checked"), value: this.value, disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: index$1.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, index.h("slot", { key: '
|
|
199
|
+
}, checked: index$1.getBoolean(this.checked, "checked"), value: this.value, disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: index$1.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, index.h("slot", { key: '72b91ff451105158b600372cf2a338feb417488d' })), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '77aeba89e7998e2e62f47cf578d087da4881bea1', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '470358471b50f36f0faa2fe3107768785f5c256a', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
200
200
|
}
|
|
201
201
|
get rootElement() { return index.getElement(this); }
|
|
202
202
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
5
|
|
|
6
6
|
const DBTabItem = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -15,7 +15,7 @@ const DBTabItem = class {
|
|
|
15
15
|
}
|
|
16
16
|
setSelectedOnChange(event) {
|
|
17
17
|
event.stopPropagation();
|
|
18
|
-
this._selected = index$1.getBooleanAsString(event.target === this._ref);
|
|
18
|
+
this._selected = index$1.getBooleanAsString(event.target === this._ref, "selected");
|
|
19
19
|
}
|
|
20
20
|
handleNameAttribute() {
|
|
21
21
|
if (this._ref) {
|
|
@@ -81,7 +81,7 @@ const DBTabItem = class {
|
|
|
81
81
|
}
|
|
82
82
|
// Initialize selected state from either active prop (set by parent) or checked attribute
|
|
83
83
|
if (this.active || this._ref.checked) {
|
|
84
|
-
this._selected = index$1.getBooleanAsString(true);
|
|
84
|
+
this._selected = index$1.getBooleanAsString(true, "selected");
|
|
85
85
|
this._ref.click();
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -119,10 +119,11 @@ const DBTabItem = class {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
render() {
|
|
122
|
-
var _a, _b, _c, _d, _e
|
|
123
|
-
return (index.h("li", { key: '
|
|
122
|
+
var _a, _b, _c, _d, _e;
|
|
123
|
+
return (index.h("li", { key: '8189c400a6ac975657082338dd31d96a2d0c38d9', class: index$1.cls("db-tab-item", this.className), role: "none" }, index.h("label", { key: '08c6f0760a4cc6f5758d22380c94331858f4823d', 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": index$1.getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
124
|
+
index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-no-text": index$1.getBooleanAsString(this.noText, "noText") }, index.h("input", { key: '6729729ae705d60fa25cb49850cc54166b7f56a0', type: "radio", role: "tab", disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: index$1.getBoolean(this.checked, "checked"), ref: (el) => {
|
|
124
125
|
this._ref = el;
|
|
125
|
-
}, name: this._name, id: (
|
|
126
|
+
}, 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, index.h("slot", { key: 'eb4bc6568c4c6d63706d2f5927ea73fd5d40d6ac' }))));
|
|
126
127
|
}
|
|
127
128
|
get rootElement() { return index.getElement(this); }
|
|
128
129
|
static get watchers() { return {
|
|
@@ -192,9 +193,9 @@ const DBTabList = class {
|
|
|
192
193
|
}
|
|
193
194
|
render() {
|
|
194
195
|
var _a, _b;
|
|
195
|
-
return (index.h("div", { key: '
|
|
196
|
+
return (index.h("div", { key: '9459e474559fa115dc69cb188e4c490a522d035c', class: index$1.cls("db-tab-list", this.className), ref: (el) => {
|
|
196
197
|
this._ref = el;
|
|
197
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '
|
|
198
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '7d2dbddd6ad03047abd8572b6125a53072ff94d0', role: "tablist" }, index.h("slot", { key: '10079c1b3bbc66157a0603e55ea1f5f48aee0faf' }))));
|
|
198
199
|
}
|
|
199
200
|
get rootElement() { return index.getElement(this); }
|
|
200
201
|
};
|
|
@@ -250,9 +251,9 @@ const DBTabPanel = class {
|
|
|
250
251
|
}
|
|
251
252
|
render() {
|
|
252
253
|
var _a, _b;
|
|
253
|
-
return (index.h("section", { key: '
|
|
254
|
+
return (index.h("section", { key: 'c5b52e3d5bce98a32f2dba1956f58d707ae1b89b', class: index$1.cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
|
|
254
255
|
this._ref = el;
|
|
255
|
-
}, 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, index.h("slot", { key: '
|
|
256
|
+
}, 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, index.h("slot", { key: 'd64ba9e9cdbb15198934c7069f7e2390c3c443e8' })));
|
|
256
257
|
}
|
|
257
258
|
get rootElement() { return index.getElement(this); }
|
|
258
259
|
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
|
+
|
|
6
|
+
const DBTableBody = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
index.registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
12
|
+
* @param element the ref for the component
|
|
13
|
+
* @param customElementSelector the custom element like `my-component`
|
|
14
|
+
*/
|
|
15
|
+
enableAttributePassing(element, customElementSelector) {
|
|
16
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
17
|
+
if (element && parent) {
|
|
18
|
+
const attributes = parent.attributes;
|
|
19
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
20
|
+
const attr = attributes.item(i);
|
|
21
|
+
if (attr && attr.name !== 'data-density' &&
|
|
22
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
23
|
+
element.setAttribute(attr.name, attr.value);
|
|
24
|
+
parent.removeAttribute(attr.name);
|
|
25
|
+
}
|
|
26
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
27
|
+
element.setAttribute(attr.name, attr.value);
|
|
28
|
+
parent.removeAttribute(attr.name);
|
|
29
|
+
}
|
|
30
|
+
else if (attr && attr.name === "class") {
|
|
31
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
32
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
33
|
+
const currentClass = element.getAttribute("class");
|
|
34
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
35
|
+
if (isWebComponent) {
|
|
36
|
+
// Stencil is using this class for lazy loading component
|
|
37
|
+
parent.setAttribute("class", "hydrated");
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
parent.removeAttribute(attr.name);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
componentDidLoad() {
|
|
47
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
48
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
49
|
+
if (connectedElement) {
|
|
50
|
+
connectedElement.remove();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
this.enableAttributePassing(this._ref, "db-table-body");
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
var _a;
|
|
57
|
+
return (index.h("tbody", { key: 'c497d5a4be20eda6884e6e04b37ef7c9e211f307', class: index$1.cls("db-table-body", this.className), ref: (el) => {
|
|
58
|
+
this._ref = el;
|
|
59
|
+
}, id: this.id }, this.rows ? ((_a = this.rows) === null || _a === void 0 ? void 0 : _a.map((row, index$2) => {
|
|
60
|
+
var _a, _b, _c;
|
|
61
|
+
return (index.h("db-table-row", { class: (_a = row.className) !== null && _a !== void 0 ? _a : row.class, key: `${(_c = (_b = row.id) !== null && _b !== void 0 ? _b : this.id) !== null && _c !== void 0 ? _c : index$1.uuid()}-table-body-row-${index$2}`, cells: row.cells, interactive: row.interactive, id: row.id }));
|
|
62
|
+
})) : (index.h("slot", null))));
|
|
63
|
+
}
|
|
64
|
+
get rootElement() { return index.getElement(this); }
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const DBTableFooter = class {
|
|
68
|
+
constructor(hostRef) {
|
|
69
|
+
index.registerInstance(this, hostRef);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
73
|
+
* @param element the ref for the component
|
|
74
|
+
* @param customElementSelector the custom element like `my-component`
|
|
75
|
+
*/
|
|
76
|
+
enableAttributePassing(element, customElementSelector) {
|
|
77
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
78
|
+
if (element && parent) {
|
|
79
|
+
const attributes = parent.attributes;
|
|
80
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
81
|
+
const attr = attributes.item(i);
|
|
82
|
+
if (attr && attr.name !== 'data-density' &&
|
|
83
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
84
|
+
element.setAttribute(attr.name, attr.value);
|
|
85
|
+
parent.removeAttribute(attr.name);
|
|
86
|
+
}
|
|
87
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
88
|
+
element.setAttribute(attr.name, attr.value);
|
|
89
|
+
parent.removeAttribute(attr.name);
|
|
90
|
+
}
|
|
91
|
+
else if (attr && attr.name === "class") {
|
|
92
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
93
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
94
|
+
const currentClass = element.getAttribute("class");
|
|
95
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
96
|
+
if (isWebComponent) {
|
|
97
|
+
// Stencil is using this class for lazy loading component
|
|
98
|
+
parent.setAttribute("class", "hydrated");
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
parent.removeAttribute(attr.name);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
componentDidLoad() {
|
|
108
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
109
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
110
|
+
if (connectedElement) {
|
|
111
|
+
connectedElement.remove();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
this.enableAttributePassing(this._ref, "db-table-footer");
|
|
115
|
+
}
|
|
116
|
+
render() {
|
|
117
|
+
var _a;
|
|
118
|
+
return (index.h("tfoot", { key: 'ba1fcacfa32d5746615ba0aaaa5580a6c5c92f99', class: index$1.cls("db-table-footer", this.className), ref: (el) => {
|
|
119
|
+
this._ref = el;
|
|
120
|
+
}, id: this.id }, this.rows ? ((_a = this.rows) === null || _a === void 0 ? void 0 : _a.map((row, index$2) => {
|
|
121
|
+
var _a, _b, _c;
|
|
122
|
+
return (index.h("db-table-row", { class: (_a = row.className) !== null && _a !== void 0 ? _a : row.class, key: `${(_c = (_b = row.id) !== null && _b !== void 0 ? _b : this.id) !== null && _c !== void 0 ? _c : index$1.uuid()}-table-footer-row-${index$2}`, cells: row.cells, interactive: row.interactive, id: row.id }));
|
|
123
|
+
})) : (index.h("slot", null))));
|
|
124
|
+
}
|
|
125
|
+
get rootElement() { return index.getElement(this); }
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const DBTableHead = class {
|
|
129
|
+
constructor(hostRef) {
|
|
130
|
+
index.registerInstance(this, hostRef);
|
|
131
|
+
}
|
|
132
|
+
getCells(cells) {
|
|
133
|
+
return cells === null || cells === void 0 ? void 0 : cells.map((cell) => (Object.assign(Object.assign({}, cell), { headerCell: true })));
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
137
|
+
* @param element the ref for the component
|
|
138
|
+
* @param customElementSelector the custom element like `my-component`
|
|
139
|
+
*/
|
|
140
|
+
enableAttributePassing(element, customElementSelector) {
|
|
141
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
142
|
+
if (element && parent) {
|
|
143
|
+
const attributes = parent.attributes;
|
|
144
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
145
|
+
const attr = attributes.item(i);
|
|
146
|
+
if (attr && attr.name !== 'data-density' &&
|
|
147
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
148
|
+
element.setAttribute(attr.name, attr.value);
|
|
149
|
+
parent.removeAttribute(attr.name);
|
|
150
|
+
}
|
|
151
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
152
|
+
element.setAttribute(attr.name, attr.value);
|
|
153
|
+
parent.removeAttribute(attr.name);
|
|
154
|
+
}
|
|
155
|
+
else if (attr && attr.name === "class") {
|
|
156
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
157
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
158
|
+
const currentClass = element.getAttribute("class");
|
|
159
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
160
|
+
if (isWebComponent) {
|
|
161
|
+
// Stencil is using this class for lazy loading component
|
|
162
|
+
parent.setAttribute("class", "hydrated");
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
parent.removeAttribute(attr.name);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
componentDidLoad() {
|
|
172
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
173
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
174
|
+
if (connectedElement) {
|
|
175
|
+
connectedElement.remove();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
this.enableAttributePassing(this._ref, "db-table-head");
|
|
179
|
+
}
|
|
180
|
+
render() {
|
|
181
|
+
var _a;
|
|
182
|
+
return (index.h("thead", { key: '1f192104b5b30bb15bc16d68f635382bc9d6817a', class: index$1.cls("db-table-head", this.className), ref: (el) => {
|
|
183
|
+
this._ref = el;
|
|
184
|
+
}, id: this.id }, this.rows ? ((_a = this.rows) === null || _a === void 0 ? void 0 : _a.map((row, index$2) => {
|
|
185
|
+
var _a, _b, _c;
|
|
186
|
+
return (index.h("db-table-row", { class: (_a = row.className) !== null && _a !== void 0 ? _a : row.class, key: `${(_c = (_b = row.id) !== null && _b !== void 0 ? _b : this.id) !== null && _c !== void 0 ? _c : index$1.uuid()}-table-head-row-${index$2}`, cells: this.getCells(row.cells), subHeaderEmphasis: row.subHeaderEmphasis, interactive: row.interactive, id: row.id }));
|
|
187
|
+
})) : (index.h("slot", null))));
|
|
188
|
+
}
|
|
189
|
+
get rootElement() { return index.getElement(this); }
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
exports.db_table_body = DBTableBody;
|
|
193
|
+
exports.db_table_footer = DBTableFooter;
|
|
194
|
+
exports.db_table_head = DBTableHead;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const DBTableCaption = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
index.registerInstance(this, hostRef);
|
|
9
9
|
}
|
|
@@ -50,15 +50,14 @@ const DBLink = class {
|
|
|
50
50
|
connectedElement.remove();
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
this.enableAttributePassing(this._ref, "db-
|
|
53
|
+
this.enableAttributePassing(this._ref, "db-table-caption");
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
|
|
57
|
-
return (index.h("a", { key: '5dd3f3df5614e0e717feadc833d8fe2fe8825479', class: index$1.cls("db-link", this.className), ref: (el) => {
|
|
56
|
+
return (index.h("caption", { key: '45129365b814f87e7d337464f8f768fb3d9bd9c8', class: index$1.cls("db-table-caption", this.className), ref: (el) => {
|
|
58
57
|
this._ref = el;
|
|
59
|
-
}, id:
|
|
58
|
+
}, id: this.id }, index.h("slot", { key: '80e7f4789799c755d2a03b55ef8ee7e05939bf96' })));
|
|
60
59
|
}
|
|
61
60
|
get rootElement() { return index.getElement(this); }
|
|
62
61
|
};
|
|
63
62
|
|
|
64
|
-
exports.
|
|
63
|
+
exports.db_table_caption = DBTableCaption;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
|
+
|
|
6
|
+
const DBTable = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
index.registerInstance(this, hostRef);
|
|
9
|
+
this._data = undefined;
|
|
10
|
+
this._style = undefined;
|
|
11
|
+
}
|
|
12
|
+
convertData() {
|
|
13
|
+
try {
|
|
14
|
+
if (typeof this.data === "string") {
|
|
15
|
+
return JSON.parse(this.data);
|
|
16
|
+
}
|
|
17
|
+
return this.data;
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
console.error(error);
|
|
21
|
+
}
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
26
|
+
* @param element the ref for the component
|
|
27
|
+
* @param customElementSelector the custom element like `my-component`
|
|
28
|
+
*/
|
|
29
|
+
enableAttributePassing(element, customElementSelector) {
|
|
30
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
31
|
+
if (element && parent) {
|
|
32
|
+
const attributes = parent.attributes;
|
|
33
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
34
|
+
const attr = attributes.item(i);
|
|
35
|
+
if (attr && attr.name !== 'data-density' &&
|
|
36
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
37
|
+
element.setAttribute(attr.name, attr.value);
|
|
38
|
+
parent.removeAttribute(attr.name);
|
|
39
|
+
}
|
|
40
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
41
|
+
element.setAttribute(attr.name, attr.value);
|
|
42
|
+
parent.removeAttribute(attr.name);
|
|
43
|
+
}
|
|
44
|
+
else if (attr && attr.name === "class") {
|
|
45
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
46
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
47
|
+
const currentClass = element.getAttribute("class");
|
|
48
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
49
|
+
if (isWebComponent) {
|
|
50
|
+
// Stencil is using this class for lazy loading component
|
|
51
|
+
parent.setAttribute("class", "hydrated");
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
parent.removeAttribute(attr.name);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
watch0Fn() {
|
|
61
|
+
if (this.data) {
|
|
62
|
+
this._data = this.convertData();
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this._data = undefined;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
watch0() {
|
|
69
|
+
this.watch0Fn();
|
|
70
|
+
}
|
|
71
|
+
watch1Fn() {
|
|
72
|
+
if (this._ref && this.mobileVariant === "list") {
|
|
73
|
+
// Delay for angular
|
|
74
|
+
void index$1.delay(() => {
|
|
75
|
+
const table = this._ref;
|
|
76
|
+
if (!table)
|
|
77
|
+
return;
|
|
78
|
+
const headerCells = table.querySelectorAll("thead tr th");
|
|
79
|
+
if (headerCells.length) {
|
|
80
|
+
const otherRows = table.querySelectorAll(":is(tbody,tfoot) tr");
|
|
81
|
+
otherRows.forEach((row) => {
|
|
82
|
+
const cells = row.querySelectorAll(":is(td,th)");
|
|
83
|
+
cells.forEach((cell, index) => {
|
|
84
|
+
const headerCell = headerCells[index];
|
|
85
|
+
if (headerCell) {
|
|
86
|
+
// Use only direct text nodes to avoid including text from nested elements (e.g. sort buttons)
|
|
87
|
+
const directText = Array.from(headerCell.childNodes)
|
|
88
|
+
.filter((node) => node.nodeType === Node.TEXT_NODE)
|
|
89
|
+
.map((node) => { var _a; return (_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim(); })
|
|
90
|
+
.filter(Boolean)
|
|
91
|
+
.join(" ");
|
|
92
|
+
if (directText) {
|
|
93
|
+
cell.dataset["header"] = directText;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}, 1);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
watch1() {
|
|
103
|
+
this.watch1Fn();
|
|
104
|
+
}
|
|
105
|
+
watch2Fn() {
|
|
106
|
+
if (this.columnSizes) {
|
|
107
|
+
const columnStyles = {};
|
|
108
|
+
Object.entries(this.columnSizes).forEach(([key, value]) => {
|
|
109
|
+
columnStyles[`--db-table-column-size-${key}`] = value;
|
|
110
|
+
});
|
|
111
|
+
this._style = columnStyles;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
this._style = undefined;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
watch2() {
|
|
118
|
+
this.watch2Fn();
|
|
119
|
+
}
|
|
120
|
+
componentDidLoad() {
|
|
121
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
122
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
123
|
+
if (connectedElement) {
|
|
124
|
+
connectedElement.remove();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
this.enableAttributePassing(this._ref, "db-table");
|
|
128
|
+
this.watch0Fn();
|
|
129
|
+
this.watch1Fn();
|
|
130
|
+
this.watch2Fn();
|
|
131
|
+
}
|
|
132
|
+
render() {
|
|
133
|
+
var _a, _b, _c, _d, _e, _f;
|
|
134
|
+
return (index.h("div", { key: 'd4edb3348e35410ac540499f815e173237e533dc', class: index$1.cls("db-table", this.className), style: this._style, "data-width": this.width, "data-size": this.size, "data-divider": this.divider, "data-variant": this.variant, "data-mobile-variant": this.mobileVariant, "data-show-caption": index$1.getBooleanAsString(this.showCaption), "data-sticky-header": this.stickyHeader }, index.h("table", { key: '2eda8c59f2c86a480691a1a4fae4a1fdaa63a6b1', ref: (el) => {
|
|
135
|
+
this._ref = el;
|
|
136
|
+
}, id: this.id }, this.captionPlain ? (index.h("caption", null, this.captionPlain)) : (index.h("slot", { name: "caption" })), this._data ? (index.h(index.Fragment, null, ((_a = this._data) === null || _a === void 0 ? void 0 : _a.header) ? (index.h("db-table-head", { rows: (_b = this._data) === null || _b === void 0 ? void 0 : _b.header })) : null, ((_c = this._data) === null || _c === void 0 ? void 0 : _c.body) ? (index.h("db-table-body", { rows: (_d = this._data) === null || _d === void 0 ? void 0 : _d.body })) : null, ((_e = this._data) === null || _e === void 0 ? void 0 : _e.footer) ? (index.h("db-table-footer", { rows: (_f = this._data) === null || _f === void 0 ? void 0 : _f.footer })) : null)) : (index.h("slot", null)))));
|
|
137
|
+
}
|
|
138
|
+
get rootElement() { return index.getElement(this); }
|
|
139
|
+
static get watchers() { return {
|
|
140
|
+
"data": [{
|
|
141
|
+
"watch0": 0
|
|
142
|
+
}],
|
|
143
|
+
"mobileVariant": [{
|
|
144
|
+
"watch1": 0
|
|
145
|
+
}],
|
|
146
|
+
"_ref": [{
|
|
147
|
+
"watch1": 0
|
|
148
|
+
}],
|
|
149
|
+
"_data": [{
|
|
150
|
+
"watch1": 0
|
|
151
|
+
}],
|
|
152
|
+
"columnSizes": [{
|
|
153
|
+
"watch2": 0
|
|
154
|
+
}]
|
|
155
|
+
}; }
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
exports.db_table = DBTable;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-C313bRqJ.js');
|
|
4
|
+
var index$1 = require('./index-spuu3sXz.js');
|
|
5
5
|
|
|
6
6
|
const DBTabs = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -214,10 +214,10 @@ const DBTabs = class {
|
|
|
214
214
|
}
|
|
215
215
|
render() {
|
|
216
216
|
var _a, _b, _c, _d, _e, _f;
|
|
217
|
-
return (index.h("div", { key: '
|
|
217
|
+
return (index.h("div", { key: '7f8b9180b865394204747aa762291857513af90c', class: index$1.cls("db-tabs", this.className), ref: (el) => {
|
|
218
218
|
this._ref = el;
|
|
219
219
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (_c = this.alignment) !== null && _c !== void 0 ? _c : "start", "data-width": (_d = this.width) !== null && _d !== void 0 ? _d : "auto", onInput: (event) => this.handleChange(event), onChange: (event) => this.handleChange(event) }, this.showScrollLeft ? (index.h("db-button", { class: "tabs-scroll-left", variant: "ghost", icon: "chevron_left", type: "button", noText: true, onClick: () => this.scroll(true) }, "Scroll left")) : null, this.tabs ? (index.h(index.Fragment, null, index.h("db-tab-list", null, (_e = this.convertTabs()) === null || _e === void 0 ? void 0 : _e.map((tab, index$1) => (index.h("db-tab-item", { key: this.name + "tab-item" + index$1, active: tab.active, label: tab.label, iconTrailing: tab.iconTrailing, icon: tab.icon, noText: tab.noText })))), (_f = this.convertTabs()) === null || _f === void 0 ? void 0 :
|
|
220
|
-
_f.map((tab, index$1) => (index.h("db-tab-panel", { key: this.name + "tab-panel" + index$1, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (index.h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, index.h("slot", { key: '
|
|
220
|
+
_f.map((tab, index$1) => (index.h("db-tab-panel", { key: this.name + "tab-panel" + index$1, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (index.h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, index.h("slot", { key: 'a2833021bf993cf6aa130c9295f78b831c8d888e' })));
|
|
221
221
|
}
|
|
222
222
|
get rootElement() { return index.getElement(this); }
|
|
223
223
|
static get watchers() { return {
|