@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
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { cls, getBooleanAsString, uuid } from "../../utils";
|
|
2
|
+
import { h } from "@stencil/core";
|
|
3
|
+
/**
|
|
4
|
+
* @slot children - This is a default/unnamed slot
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
export class DBTableRow {
|
|
8
|
+
getHeaderCell(cell) {
|
|
9
|
+
if (cell.headerCell) {
|
|
10
|
+
return cell;
|
|
11
|
+
}
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
16
|
+
* @param element the ref for the component
|
|
17
|
+
* @param customElementSelector the custom element like `my-component`
|
|
18
|
+
*/
|
|
19
|
+
enableAttributePassing(element, customElementSelector) {
|
|
20
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
21
|
+
if (element && parent) {
|
|
22
|
+
const attributes = parent.attributes;
|
|
23
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
24
|
+
const attr = attributes.item(i);
|
|
25
|
+
if (attr && attr.name !== 'data-density' &&
|
|
26
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
27
|
+
element.setAttribute(attr.name, attr.value);
|
|
28
|
+
parent.removeAttribute(attr.name);
|
|
29
|
+
}
|
|
30
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
31
|
+
element.setAttribute(attr.name, attr.value);
|
|
32
|
+
parent.removeAttribute(attr.name);
|
|
33
|
+
}
|
|
34
|
+
else if (attr && attr.name === "class") {
|
|
35
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
36
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
37
|
+
const currentClass = element.getAttribute("class");
|
|
38
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
39
|
+
if (isWebComponent) {
|
|
40
|
+
// Stencil is using this class for lazy loading component
|
|
41
|
+
parent.setAttribute("class", "hydrated");
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
parent.removeAttribute(attr.name);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
componentDidLoad() {
|
|
51
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
52
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
53
|
+
if (connectedElement) {
|
|
54
|
+
connectedElement.remove();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
this.enableAttributePassing(this._ref, "db-table-row");
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
var _a;
|
|
61
|
+
return (h("tr", { key: '41fb15318069880e679a929ee5d4fcf59c7c1b63', class: cls("db-table-row", this.className), ref: (el) => {
|
|
62
|
+
this._ref = el;
|
|
63
|
+
}, id: this.id, "data-interactive": getBooleanAsString(this.interactive), "data-sub-header-emphasis": this.subHeaderEmphasis }, this.cells ? ((_a = this.cells) === null || _a === void 0 ? void 0 : _a.map((cell, index) => {
|
|
64
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22;
|
|
65
|
+
return cell.headerCell ? (h("db-table-header-cell", { class: (_a = cell.className) !== null && _a !== void 0 ? _a : cell.class, key: `${(_c = (_b = cell.id) !== null && _b !== void 0 ? _b : this.id) !== null && _c !== void 0 ? _c : uuid()}-table-row-header-cell-${index}`, id: cell.id, abbr: (_d = this.getHeaderCell(cell)) === null || _d === void 0 ? void 0 : _d.abbr, scope: (_e = this.getHeaderCell(cell)) === null || _e === void 0 ? void 0 : _e.scope, noText: (_f = this.getHeaderCell(cell)) === null || _f === void 0 ? void 0 : _f.noText, horizontalAlignment: cell.horizontalAlignment, verticalAlignment: cell.verticalAlignment, headers: cell.headers, colSpan: cell.colSpan, colspan: cell.colspan, rowSpan: cell.rowSpan, rowspan: cell.rowspan }, cell.link ? (h("db-link", { class: (_h = (_g = cell.link) === null || _g === void 0 ? void 0 : _g.className) !== null && _h !== void 0 ? _h : (_j = cell.link) === null || _j === void 0 ? void 0 : _j.class, content: (_k = cell.link) === null || _k === void 0 ? void 0 : _k.content, size: (_l = cell.link) === null || _l === void 0 ? void 0 : _l.size, variant: (_m = cell.link) === null || _m === void 0 ? void 0 : _m.variant, id: (_o = cell.link) === null || _o === void 0 ? void 0 : _o.id, autofocus: (_p = cell.link) === null || _p === void 0 ? void 0 : _p.autofocus, disabled: (_q = cell.link) === null || _q === void 0 ? void 0 : _q.disabled, href: (_r = cell.link) === null || _r === void 0 ? void 0 : _r.href, hreflang: (_s = cell.link) === null || _s === void 0 ? void 0 : _s.hreflang, target: (_t = cell.link) === null || _t === void 0 ? void 0 : _t.target, rel: (_u = cell.link) === null || _u === void 0 ? void 0 : _u.rel, referrerPolicy: (_v = cell.link) === null || _v === void 0 ? void 0 : _v.referrerPolicy, role: (_w = cell.link) === null || _w === void 0 ? void 0 : _w.role, showIcon: (_x = cell.link) === null || _x === void 0 ? void 0 : _x.showIcon, text: (_y = cell.link) === null || _y === void 0 ? void 0 : _y.text, wrap: (_z = cell.link) === null || _z === void 0 ? void 0 : _z.wrap }, (_0 = cell.link) === null || _0 === void 0 ? void 0 : _0.children)) : (cell.content))) : (h("db-table-data-cell", { class: (_1 = cell.className) !== null && _1 !== void 0 ? _1 : cell.class, key: `${(_3 = (_2 = cell.id) !== null && _2 !== void 0 ? _2 : this.id) !== null && _3 !== void 0 ? _3 : uuid()}-table-row-data-cell-${index}`, id: cell.id, horizontalAlignment: cell.horizontalAlignment, verticalAlignment: cell.verticalAlignment, headers: cell.headers, colSpan: cell.colSpan, colspan: cell.colspan, rowSpan: cell.rowSpan, rowspan: cell.rowspan }, cell.link ? (h("db-link", { class: (_5 = (_4 = cell.link) === null || _4 === void 0 ? void 0 : _4.className) !== null && _5 !== void 0 ? _5 : (_6 = cell.link) === null || _6 === void 0 ? void 0 : _6.class, content: (_7 = cell.link) === null || _7 === void 0 ? void 0 : _7.content, size: (_8 = cell.link) === null || _8 === void 0 ? void 0 : _8.size, variant: (_9 = cell.link) === null || _9 === void 0 ? void 0 : _9.variant, id: (_10 = cell.link) === null || _10 === void 0 ? void 0 : _10.id, autofocus: (_11 = cell.link) === null || _11 === void 0 ? void 0 : _11.autofocus, disabled: (_12 = cell.link) === null || _12 === void 0 ? void 0 : _12.disabled, href: (_13 = cell.link) === null || _13 === void 0 ? void 0 : _13.href, hreflang: (_14 = cell.link) === null || _14 === void 0 ? void 0 : _14.hreflang, target: (_15 = cell.link) === null || _15 === void 0 ? void 0 : _15.target, rel: (_16 = cell.link) === null || _16 === void 0 ? void 0 : _16.rel, referrerPolicy: (_17 = cell.link) === null || _17 === void 0 ? void 0 : _17.referrerPolicy, role: (_18 = cell.link) === null || _18 === void 0 ? void 0 : _18.role, showIcon: (_19 = cell.link) === null || _19 === void 0 ? void 0 : _19.showIcon, text: (_20 = cell.link) === null || _20 === void 0 ? void 0 : _20.text, wrap: (_21 = cell.link) === null || _21 === void 0 ? void 0 : _21.wrap }, (_22 = cell.link) === null || _22 === void 0 ? void 0 : _22.children)) : (cell.content)));
|
|
66
|
+
})) : (h("slot", null))));
|
|
67
|
+
}
|
|
68
|
+
static get is() { return "db-table-row"; }
|
|
69
|
+
static get properties() {
|
|
70
|
+
return {
|
|
71
|
+
"id": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "DBTableRowProps[\"id\"]",
|
|
76
|
+
"resolved": "string",
|
|
77
|
+
"references": {
|
|
78
|
+
"DBTableRowProps": {
|
|
79
|
+
"location": "import",
|
|
80
|
+
"path": "./model",
|
|
81
|
+
"id": "src/components/table-row/model.ts::DBTableRowProps",
|
|
82
|
+
"referenceLocation": "DBTableRowProps"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": ""
|
|
91
|
+
},
|
|
92
|
+
"getter": false,
|
|
93
|
+
"setter": false,
|
|
94
|
+
"reflect": false,
|
|
95
|
+
"attribute": "id"
|
|
96
|
+
},
|
|
97
|
+
"className": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "DBTableRowProps[\"className\"]",
|
|
102
|
+
"resolved": "string",
|
|
103
|
+
"references": {
|
|
104
|
+
"DBTableRowProps": {
|
|
105
|
+
"location": "import",
|
|
106
|
+
"path": "./model",
|
|
107
|
+
"id": "src/components/table-row/model.ts::DBTableRowProps",
|
|
108
|
+
"referenceLocation": "DBTableRowProps"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": ""
|
|
117
|
+
},
|
|
118
|
+
"getter": false,
|
|
119
|
+
"setter": false,
|
|
120
|
+
"reflect": false,
|
|
121
|
+
"attribute": "classname"
|
|
122
|
+
},
|
|
123
|
+
"interactive": {
|
|
124
|
+
"type": "any",
|
|
125
|
+
"mutable": false,
|
|
126
|
+
"complexType": {
|
|
127
|
+
"original": "DBTableRowProps[\"interactive\"]",
|
|
128
|
+
"resolved": "boolean | string",
|
|
129
|
+
"references": {
|
|
130
|
+
"DBTableRowProps": {
|
|
131
|
+
"location": "import",
|
|
132
|
+
"path": "./model",
|
|
133
|
+
"id": "src/components/table-row/model.ts::DBTableRowProps",
|
|
134
|
+
"referenceLocation": "DBTableRowProps"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": false,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": ""
|
|
143
|
+
},
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
146
|
+
"reflect": false,
|
|
147
|
+
"attribute": "interactive"
|
|
148
|
+
},
|
|
149
|
+
"subHeaderEmphasis": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "DBTableRowProps[\"subHeaderEmphasis\"]",
|
|
154
|
+
"resolved": "\"none\" | \"strong\" | \"weak\"",
|
|
155
|
+
"references": {
|
|
156
|
+
"DBTableRowProps": {
|
|
157
|
+
"location": "import",
|
|
158
|
+
"path": "./model",
|
|
159
|
+
"id": "src/components/table-row/model.ts::DBTableRowProps",
|
|
160
|
+
"referenceLocation": "DBTableRowProps"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": false,
|
|
165
|
+
"optional": false,
|
|
166
|
+
"docs": {
|
|
167
|
+
"tags": [],
|
|
168
|
+
"text": ""
|
|
169
|
+
},
|
|
170
|
+
"getter": false,
|
|
171
|
+
"setter": false,
|
|
172
|
+
"reflect": false,
|
|
173
|
+
"attribute": "sub-header-emphasis"
|
|
174
|
+
},
|
|
175
|
+
"cells": {
|
|
176
|
+
"type": "unknown",
|
|
177
|
+
"mutable": false,
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "DBTableRowProps[\"cells\"]",
|
|
180
|
+
"resolved": "DBTableRowCell[]",
|
|
181
|
+
"references": {
|
|
182
|
+
"DBTableRowProps": {
|
|
183
|
+
"location": "import",
|
|
184
|
+
"path": "./model",
|
|
185
|
+
"id": "src/components/table-row/model.ts::DBTableRowProps",
|
|
186
|
+
"referenceLocation": "DBTableRowProps"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": false,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": ""
|
|
195
|
+
},
|
|
196
|
+
"getter": false,
|
|
197
|
+
"setter": false
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
static get elementRef() { return "rootElement"; }
|
|
202
|
+
}
|
|
@@ -212,10 +212,10 @@ export class DBTabs {
|
|
|
212
212
|
}
|
|
213
213
|
render() {
|
|
214
214
|
var _a, _b, _c, _d, _e, _f;
|
|
215
|
-
return (h("div", { key: '
|
|
215
|
+
return (h("div", { key: '7f8b9180b865394204747aa762291857513af90c', class: cls("db-tabs", this.className), ref: (el) => {
|
|
216
216
|
this._ref = el;
|
|
217
217
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (_c = this.alignment) !== null && _c !== void 0 ? _c : "start", "data-width": (_d = this.width) !== null && _d !== void 0 ? _d : "auto", onInput: (event) => this.handleChange(event), onChange: (event) => this.handleChange(event) }, this.showScrollLeft ? (h("db-button", { class: "tabs-scroll-left", variant: "ghost", icon: "chevron_left", type: "button", noText: true, onClick: () => this.scroll(true) }, "Scroll left")) : null, this.tabs ? (h(Fragment, null, h("db-tab-list", null, (_e = this.convertTabs()) === null || _e === void 0 ? void 0 : _e.map((tab, index) => (h("db-tab-item", { key: this.name + "tab-item" + index, active: tab.active, label: tab.label, iconTrailing: tab.iconTrailing, icon: tab.icon, noText: tab.noText })))), (_f = this.convertTabs()) === null || _f === void 0 ? void 0 :
|
|
218
|
-
_f.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: '
|
|
218
|
+
_f.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: 'a2833021bf993cf6aa130c9295f78b831c8d888e' })));
|
|
219
219
|
}
|
|
220
220
|
static get is() { return "db-tabs"; }
|
|
221
221
|
static get properties() {
|
|
@@ -68,9 +68,9 @@ export class DBTag {
|
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
70
|
var _a, _b, _c;
|
|
71
|
-
return (h("div", { key: '
|
|
71
|
+
return (h("div", { key: '107c28ac3b48e7802773283ed706536b3448f7fd', class: cls("db-tag", this.className), ref: (el) => {
|
|
72
72
|
this._ref = el;
|
|
73
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '
|
|
73
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true, "showCheckState"), "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), "data-no-text": getBooleanAsString(this.noText, "noText"), "data-overflow": getBooleanAsString(this.overflow, "overflow") }, h("slot", { key: '7a552ce39473ee8f5ab9ff0fa26e1c9cb746141a', name: "content" }), this.text ? this.text : null, h("slot", { key: '3ace0ceb3415b63574e959214beb6af40071e1b6' }), this.behavior === "removable" ? (h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "db-tag"; }
|
|
76
76
|
static get properties() {
|
|
@@ -234,7 +234,7 @@ export class DBTag {
|
|
|
234
234
|
"mutable": false,
|
|
235
235
|
"complexType": {
|
|
236
236
|
"original": "DBTagProps[\"icon\"]",
|
|
237
|
-
"resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
|
|
237
|
+
"resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"arrows_vertical\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"more_vertical\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
|
|
238
238
|
"references": {
|
|
239
239
|
"DBTagProps": {
|
|
240
240
|
"location": "import",
|
|
@@ -203,10 +203,10 @@ export class DBTextarea {
|
|
|
203
203
|
}
|
|
204
204
|
render() {
|
|
205
205
|
var _a, _b, _c, _d, _e, _f;
|
|
206
|
-
return (h("div", { key: '
|
|
206
|
+
return (h("div", { key: '54e6cdfacbb2aaf120b485926da7500e11a68177', class: cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '4b4b364ba5c83cf99b3f05ef8a7fdca6ad94aca2', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("textarea", { key: '975252d88460695bac18a6290ffa4175fd6830a4', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
207
207
|
this._ref = el;
|
|
208
208
|
}, id: this._id, "data-resize": this.resize, "data-hide-resizer": getHideProp((_b = this.showResizer) !== null && _b !== void 0 ? _b : true), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), readOnly: getBoolean(this.readOnly, "readOnly") ||
|
|
209
|
-
getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_d = (_c = this.value) !== null && _c !== void 0 ? _c : this._value) !== null && _d !== void 0 ? _d : "", "aria-describedby": (_e = this.ariaDescribedBy) !== null && _e !== void 0 ? _e : this._descByIds, placeholder: (_f = this.placeholder) !== null && _f !== void 0 ? _f : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), 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: '
|
|
209
|
+
getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_d = (_c = this.value) !== null && _c !== void 0 ? _c : this._value) !== null && _d !== void 0 ? _d : "", "aria-describedby": (_e = this.ariaDescribedBy) !== null && _e !== void 0 ? _e : this._descByIds, placeholder: (_f = this.placeholder) !== null && _f !== void 0 ? _f : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), 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: '6991559466d3a62e284ad2fa623b03c6c15e478a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '548f46a7cc2d3489d3022d2e2b5d3a7654ebd372', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
210
210
|
}
|
|
211
211
|
static get is() { return "db-textarea"; }
|
|
212
212
|
static get properties() {
|
|
@@ -1072,7 +1072,7 @@ export class DBTextarea {
|
|
|
1072
1072
|
"mutable": false,
|
|
1073
1073
|
"complexType": {
|
|
1074
1074
|
"original": "DBTextareaProps[\"messageIcon\"]",
|
|
1075
|
-
"resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
|
|
1075
|
+
"resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"arrows_vertical\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"more_vertical\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
|
|
1076
1076
|
"references": {
|
|
1077
1077
|
"DBTextareaProps": {
|
|
1078
1078
|
"location": "import",
|
|
@@ -164,9 +164,9 @@ export class DBTooltip {
|
|
|
164
164
|
}
|
|
165
165
|
render() {
|
|
166
166
|
var _a, _b;
|
|
167
|
-
return (h("i", { key: '
|
|
167
|
+
return (h("i", { key: '2636a6f606a970f585a00c7268542b8bf8f59644', class: cls("db-tooltip", this.className), role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: (el) => {
|
|
168
168
|
this._ref = el;
|
|
169
|
-
}, id: this._id, "data-emphasis": this.emphasis, "data-wrap": getBooleanAsString(this.wrap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, this.text ? this.text : null, h("slot", { key: '
|
|
169
|
+
}, id: this._id, "data-emphasis": this.emphasis, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true, "animation"), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true, "showArrow"), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, this.text ? this.text : null, h("slot", { key: 'cf37293fac4206d6c6b97a0d1b063ba28c3f4d3d' })));
|
|
170
170
|
}
|
|
171
171
|
static get is() { return "db-tooltip"; }
|
|
172
172
|
static get properties() {
|
package/dist/collection/index.js
CHANGED
|
@@ -64,6 +64,22 @@ export * from './components/tab-list';
|
|
|
64
64
|
export * from './components/tab-list/model';
|
|
65
65
|
export * from './components/tab-panel';
|
|
66
66
|
export * from './components/tab-panel/model';
|
|
67
|
+
export * from './components/table';
|
|
68
|
+
export * from './components/table-body';
|
|
69
|
+
export * from './components/table-body/model';
|
|
70
|
+
export * from './components/table-caption';
|
|
71
|
+
export * from './components/table-caption/model';
|
|
72
|
+
export * from './components/table-data-cell';
|
|
73
|
+
export * from './components/table-data-cell/model';
|
|
74
|
+
export * from './components/table-footer';
|
|
75
|
+
export * from './components/table-footer/model';
|
|
76
|
+
export * from './components/table-head';
|
|
77
|
+
export * from './components/table-head/model';
|
|
78
|
+
export * from './components/table-header-cell';
|
|
79
|
+
export * from './components/table-header-cell/model';
|
|
80
|
+
export * from './components/table-row';
|
|
81
|
+
export * from './components/table-row/model';
|
|
82
|
+
export * from './components/table/model';
|
|
67
83
|
export * from './components/tabs';
|
|
68
84
|
export * from './components/tabs/model';
|
|
69
85
|
export * from './components/tag';
|
|
@@ -20,4 +20,4 @@ export const LabelVariantHorizontalList = ['leading', 'trailing'];
|
|
|
20
20
|
export const AutoCompleteList = ['off', 'on', 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'email', 'username', 'new-password', 'current-password', 'one-time-code', 'organization-title', 'organization', 'street-address', 'shipping', 'billing', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-extension', 'impp', 'url', 'photo', 'webauthn'];
|
|
21
21
|
export const LinkTargetList = ['_self', '_blank', '_parent', '_top'];
|
|
22
22
|
export const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'];
|
|
23
|
-
export const AlignmentList = ['start', 'center'];
|
|
23
|
+
export const AlignmentList = ['start', 'center', 'end'];
|
|
@@ -61,16 +61,21 @@ export const isIOSSafari = () => {
|
|
|
61
61
|
};
|
|
62
62
|
export const delay = (fn, ms) => new Promise(() => setTimeout(fn, ms));
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* Converts boolean-like inputs to "true" or "false" strings.
|
|
65
|
+
* Handles HTML-style boolean attributes where an empty string or the
|
|
66
|
+
* attribute's own name as value (e.g. noText="noText") should be treated as true.
|
|
67
|
+
* Some frameworks like Stencil do not add "true" as value for a prop
|
|
68
|
+
* if it is used in a framework like Angular e.g.: [disabled]="myDisabledProp"
|
|
69
|
+
* @param originBool Boolean or string value to convert
|
|
70
|
+
* @param propertyName The prop/attribute name — when originBool is a string equal
|
|
71
|
+
* to this name (case-insensitive), it is treated as true
|
|
67
72
|
*/
|
|
68
73
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
|
-
export const getBooleanAsString = (originBool) => {
|
|
74
|
+
export const getBooleanAsString = (originBool, propertyName) => {
|
|
70
75
|
if (originBool === undefined || originBool === null)
|
|
71
76
|
return;
|
|
72
77
|
if (typeof originBool === 'string') {
|
|
73
|
-
return String(originBool === 'true');
|
|
78
|
+
return String(originBool === '' || originBool === 'true' || (propertyName === null || propertyName === void 0 ? void 0 : propertyName.toLowerCase()) === originBool.toLowerCase());
|
|
74
79
|
}
|
|
75
80
|
return String(originBool);
|
|
76
81
|
};
|
|
@@ -78,7 +83,7 @@ export const getBoolean = (originBool, propertyName) => {
|
|
|
78
83
|
if (originBool === undefined || originBool === null)
|
|
79
84
|
return;
|
|
80
85
|
if (typeof originBool === 'string') {
|
|
81
|
-
return Boolean(
|
|
86
|
+
return Boolean(originBool === '' || originBool === 'true' || (propertyName === null || propertyName === void 0 ? void 0 : propertyName.toLowerCase()) === originBool.toLowerCase());
|
|
82
87
|
}
|
|
83
88
|
return Boolean(originBool);
|
|
84
89
|
};
|
|
@@ -119,13 +124,13 @@ export const getStep = (step) => {
|
|
|
119
124
|
export const getInputValue = (value, inputType) => {
|
|
120
125
|
return inputType && ['number', 'range'].includes(inputType) ? getNumber(value) : value;
|
|
121
126
|
};
|
|
122
|
-
const toBool = (value) => typeof value === 'string' ? value
|
|
127
|
+
const toBool = (value) => typeof value === 'string' ? value !== 'false' : value;
|
|
123
128
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
129
|
export const getHideProp = (show) => {
|
|
125
130
|
if (show === undefined || show === null) {
|
|
126
131
|
return undefined;
|
|
127
132
|
}
|
|
128
|
-
return getBooleanAsString(!toBool(show));
|
|
133
|
+
return getBooleanAsString(!toBool(show), 'show');
|
|
129
134
|
};
|
|
130
135
|
export const stringPropVisible = (givenString, showString) => {
|
|
131
136
|
if (showString === undefined) {
|