@db-ux/wc-core-components 4.10.1 → 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 +16 -0
- package/README.md +1 -1
- 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-DS39nEhJ.js → p-B5ANMEnQ.js} +1 -1
- package/bundle/p-BJwvv-yT.js +1 -0
- package/bundle/{p-DE_eDJiD.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-bzxfqhtq.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-e18AQLns.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 +3 -3
- 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-DLuhzJ0p.js → index-C313bRqJ.js} +22 -1
- 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 +9 -1
- 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-f65e1db8.entry.js → p-08271c80.entry.js} +1 -1
- package/dist/db-ux/{p-368d25ab.entry.js → p-105ffa74.entry.js} +1 -1
- package/dist/db-ux/p-15adca91.entry.js +1 -0
- package/dist/db-ux/{p-47910fdc.entry.js → p-1a322a0c.entry.js} +1 -1
- package/dist/db-ux/p-1f7232c0.entry.js +1 -0
- 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-28c257d5.entry.js → p-365e6edf.entry.js} +1 -1
- package/dist/db-ux/{p-4580938f.entry.js → p-42516007.entry.js} +1 -1
- package/dist/db-ux/p-5045182c.entry.js +1 -0
- package/dist/db-ux/{p-aad0c4ef.entry.js → p-5e1d42e5.entry.js} +1 -1
- package/dist/db-ux/{p-f27c6655.entry.js → p-61b28212.entry.js} +1 -1
- package/dist/db-ux/{p-9712c9c9.entry.js → p-6850a53c.entry.js} +1 -1
- 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-4nwUOzw7.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-f583f756.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-b1e7ba0f.entry.js → p-dd9cedbe.entry.js} +1 -1
- package/dist/db-ux/{p-331ad11c.entry.js → p-e3f705fd.entry.js} +1 -1
- package/dist/db-ux/{p-0ae85978.entry.js → p-e4cddc9f.entry.js} +1 -1
- package/dist/db-ux/p-e7a8612c.entry.js +1 -0
- package/dist/db-ux/{p-cac5b161.entry.js → p-ee8c3243.entry.js} +1 -1
- package/dist/db-ux/p-f0d0acfc.entry.js +1 -0
- package/dist/db-ux/{p-13afb969.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 +4 -4
- 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-Cr2cgn5B.js → index-BlbKvvUv.js} +22 -1
- 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/stencil-public-runtime.d.ts +1 -0
- 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 +6 -6
- package/bundle/p-4TaCoruo.js +0 -1
- package/bundle/p-BJJFATCC.js +0 -1
- package/bundle/p-CCbaTFJ9.js +0 -1
- package/bundle/p-CEiQBevg.js +0 -1
- package/bundle/p-CV8l9qaA.js +0 -1
- package/bundle/p-CmqAwQNR.js +0 -1
- package/bundle/p-D4Ym01qf.js +0 -1
- package/bundle/p-DVYa1bHg.js +0 -1
- package/bundle/p-DwwxAylo.js +0 -1
- package/bundle/p-QNp8H1KD.js +0 -1
- package/bundle/p-_2t1bnPD.js +0 -1
- package/dist/db-ux/p-174d2486.entry.js +0 -1
- package/dist/db-ux/p-293510ca.entry.js +0 -1
- package/dist/db-ux/p-339a6ca0.entry.js +0 -1
- package/dist/db-ux/p-34e21986.entry.js +0 -1
- package/dist/db-ux/p-5d2e2a8d.entry.js +0 -1
- package/dist/db-ux/p-691ae341.entry.js +0 -1
- package/dist/db-ux/p-7c58337d.entry.js +0 -1
- package/dist/db-ux/p-7f4d00df.entry.js +0 -1
- package/dist/db-ux/p-9b907b56.entry.js +0 -1
- package/dist/db-ux/p-9c3ff50e.entry.js +0 -1
- package/dist/db-ux/p-CHLgQ9vn.js +0 -1
- package/dist/db-ux/p-Cr2cgn5B.js +0 -2
- package/dist/db-ux/p-D_roHmuC.js +0 -1
- package/dist/db-ux/p-a56886ea.entry.js +0 -1
- package/dist/db-ux/p-a617da42.entry.js +0 -1
- package/dist/db-ux/p-ae3183f0.entry.js +0 -1
- package/dist/db-ux/p-ae457f95.entry.js +0 -1
- package/dist/db-ux/p-dcf02351.entry.js +0 -1
- package/dist/db-ux/p-e46dc907.entry.js +0 -1
- package/dist/db-ux/p-fe5d3eb6.entry.js +0 -1
- package/dist/db-ux/p-xkoBSP8R.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement, c as createEvent } from './index-
|
|
2
|
-
import { c as cls, e as getBoolean, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, u as uuid, k as getInputValue, f as getNumber, j as getStep, b as isIOSSafari, l as getHideProp } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement, c as createEvent } from './index-BlbKvvUv.js';
|
|
2
|
+
import { c as cls, e as getBoolean, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, u as uuid, k as getInputValue, f as getNumber, j as getStep, b as isIOSSafari, l as getHideProp } from './index-fumiz06Y.js';
|
|
3
3
|
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, j as DEFAULT_DATALIST_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, b as DEFAULT_PLACEHOLDER, a as DEFAULT_LABEL, m as DEFAULT_REMOVE } from './constants-BdL-nI5y.js';
|
|
4
|
-
import { c as addValueResetEventListener } from './form-components-
|
|
4
|
+
import { c as addValueResetEventListener } from './form-components-ZV7IN0oG.js';
|
|
5
5
|
|
|
6
6
|
const DBCustomSelectDropdown = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -55,9 +55,9 @@ const DBCustomSelectDropdown = class {
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
var _a, _b;
|
|
58
|
-
return (h("article", { key: '
|
|
58
|
+
return (h("article", { key: '13b37b76ab0d131cf2af06244ed304c8c408c9d8', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
|
|
59
59
|
this._ref = el;
|
|
60
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: '
|
|
60
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: '517f62713be2bd021d767e7e2a2eb3817a96856b' })));
|
|
61
61
|
}
|
|
62
62
|
get rootElement() { return getElement(this); }
|
|
63
63
|
};
|
|
@@ -113,9 +113,9 @@ const DBCustomSelectList = class {
|
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
115
|
var _a, _b;
|
|
116
|
-
return (h("div", { key: '
|
|
116
|
+
return (h("div", { key: 'd15aae83f167178e808513fd0ba9d35209db0b10', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
117
117
|
this._ref = el;
|
|
118
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '
|
|
118
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: 'c3ec4c14ca8c857a690c4d51d89654d0e1f49a4f' }, h("slot", { key: '663e6a50f1e117b7981a05946fc86f04b5892bb0' }))));
|
|
119
119
|
}
|
|
120
120
|
get rootElement() { return getElement(this); }
|
|
121
121
|
};
|
|
@@ -192,12 +192,12 @@ const DBCustomSelectListItem = class {
|
|
|
192
192
|
}
|
|
193
193
|
render() {
|
|
194
194
|
var _a, _b;
|
|
195
|
-
return (h("li", { key: '
|
|
195
|
+
return (h("li", { key: '059526061cdd0b2c8d9e135d0594338e6a5f9579', class: cls("db-custom-select-list-item", this.className, {
|
|
196
196
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
197
197
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
198
198
|
}), ref: (el) => {
|
|
199
199
|
this._ref = el;
|
|
200
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", null))) : (h("span", null, this.groupTitle))));
|
|
200
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": getBooleanAsString(this.hasDivider, "hasDivider") }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", null))) : (h("span", null, this.groupTitle))));
|
|
201
201
|
}
|
|
202
202
|
get rootElement() { return getElement(this); }
|
|
203
203
|
static get watchers() { return {
|
|
@@ -425,20 +425,21 @@ const DBInput = class {
|
|
|
425
425
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
426
426
|
}
|
|
427
427
|
render() {
|
|
428
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
429
|
-
return (h("div", { key: '
|
|
428
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
429
|
+
return (h("div", { key: '64a07c04f43170bf1595b0081713388a216d5fc7', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString(this.showIconLeading, "showIconLeading") ||
|
|
430
|
+
getBooleanAsString(this.showIcon, "showIcon"), "data-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing, "showIconTrailing") }, h("label", { key: '7a8d23a161226ed00f450b27a761230c29b12594', htmlFor: this._id }, (_b = this.label) !== null && _b !== void 0 ? _b : DEFAULT_LABEL), h("input", { key: '1564ed32f96a2b74bdcf3caf559cf2d2d10ec0b9', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
430
431
|
this._ref = el;
|
|
431
|
-
}, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (
|
|
432
|
-
getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (
|
|
432
|
+
}, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_c = this.placeholder) !== null && _c !== void 0 ? _c : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_e = (_d = this.value) !== null && _d !== void 0 ? _d : this._value) !== null && _e !== void 0 ? _e : "", maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
|
|
433
|
+
getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_f = this.ariaDescribedBy) !== null && _f !== void 0 ? _f : this._descByIds, role: [
|
|
433
434
|
"datetime-local",
|
|
434
435
|
"date",
|
|
435
436
|
"time",
|
|
436
437
|
"week",
|
|
437
438
|
"month",
|
|
438
439
|
"color",
|
|
439
|
-
].includes((
|
|
440
|
+
].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && isIOSSafari()
|
|
440
441
|
? "textbox"
|
|
441
|
-
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (
|
|
442
|
+
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: '8af26ede51b91478695480eb1d2b2e2f1da92200' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '752867b52a5abc2bcd4355af5c339e255d1bd36a', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '49df2802f19e930d5900d9fa639cfc1c5be584de', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
442
443
|
}
|
|
443
444
|
get rootElement() { return getElement(this); }
|
|
444
445
|
static get watchers() { return {
|
|
@@ -532,9 +533,9 @@ const DBTag = class {
|
|
|
532
533
|
}
|
|
533
534
|
render() {
|
|
534
535
|
var _a, _b, _c;
|
|
535
|
-
return (h("div", { key: '
|
|
536
|
+
return (h("div", { key: '107c28ac3b48e7802773283ed706536b3448f7fd', class: cls("db-tag", this.className), ref: (el) => {
|
|
536
537
|
this._ref = el;
|
|
537
|
-
}, 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: '
|
|
538
|
+
}, 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));
|
|
538
539
|
}
|
|
539
540
|
get rootElement() { return getElement(this); }
|
|
540
541
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { c as cls } from './index-fumiz06Y.js';
|
|
3
3
|
|
|
4
4
|
const DBCustomSelectFormField = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -52,9 +52,9 @@ const DBCustomSelectFormField = class {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
var _a, _b;
|
|
55
|
-
return (h("summary", { key: '
|
|
55
|
+
return (h("summary", { key: '29aec52d355ed2fd7f032cc70cb7fbda8e22f3ad', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
56
56
|
this._ref = el;
|
|
57
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '
|
|
57
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '797ccea7210fbfe800a3c3c08e37b0d73690e419' })));
|
|
58
58
|
}
|
|
59
59
|
get rootElement() { return getElement(this); }
|
|
60
60
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-BlbKvvUv.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, a as DEFAULT_LABEL, m as DEFAULT_REMOVE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, e as DEFAULT_SELECT_ID_SUFFIX, d as DEFAULT_LABEL_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, o as DEFAULT_SELECTED, k as DEFAULT_VALID_MESSAGE, c as DEFAULT_MESSAGE, s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { h as hasVoiceOver, d as delay, s as stringPropVisible, m as getSearchInput, u as uuid,
|
|
4
|
-
import { D as DocumentClickListener } from './document-click-listener-
|
|
5
|
-
import { D as DocumentScrollListener } from './document-scroll-listener-
|
|
3
|
+
import { h as hasVoiceOver, d as delay, s as stringPropVisible, m as getSearchInput, u as uuid, e as getBoolean, g as getBooleanAsString, l as getHideProp, c as cls } from './index-fumiz06Y.js';
|
|
4
|
+
import { D as DocumentClickListener } from './document-click-listener-9wJfRcvz.js';
|
|
5
|
+
import { D as DocumentScrollListener } from './document-scroll-listener-4F0ZAg9p.js';
|
|
6
6
|
import { a as handleFixedDropdown } from './floating-components-DOPXnIzL.js';
|
|
7
|
-
import { b as addResetEventListener } from './form-components-
|
|
7
|
+
import { b as addResetEventListener } from './form-components-ZV7IN0oG.js';
|
|
8
8
|
|
|
9
9
|
const DBCustomSelect = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -798,19 +798,19 @@ const DBCustomSelect = class {
|
|
|
798
798
|
}
|
|
799
799
|
render() {
|
|
800
800
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
801
|
-
return (h("div", { key: '
|
|
801
|
+
return (h("div", { key: '23fbdff16d9ced63948418aa8a8bf40284fb098b', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
802
802
|
this._ref = el;
|
|
803
803
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
804
804
|
this.selectedType === "tag" &&
|
|
805
805
|
this.multiple
|
|
806
806
|
? "above"
|
|
807
|
-
: this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '
|
|
807
|
+
: this.variant, "data-required": getBooleanAsString(this.required, "required"), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon") }, h("label", { key: '8ad75d1e949eba11cca0cc8d6c6e6bbcef26f66b', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: 'baa3747700f7b3c68b6278fc867e381193380bbc', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
808
808
|
this.selectRef = el;
|
|
809
809
|
}, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
|
|
810
810
|
? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
|
|
811
|
-
: null)), h("details", { key: '
|
|
811
|
+
: null)), h("details", { key: 'dcb70261b5b4400566104e60611ab2f25face4e4', ref: (el) => {
|
|
812
812
|
this.detailsRef = el;
|
|
813
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '
|
|
813
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '9eeb9bd1d98bd9caa0542c8ab6343f39f7c18418' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled, "disabled"), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag", "selectedType"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
|
|
814
814
|
this.searchInputRef = el;
|
|
815
815
|
}, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
|
|
816
816
|
? this._infoTextId
|
|
@@ -820,7 +820,7 @@ const DBCustomSelect = class {
|
|
|
820
820
|
this.selectAllRef = el;
|
|
821
821
|
}, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
|
|
822
822
|
? this.getOptionLabel(option)
|
|
823
|
-
: null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '
|
|
823
|
+
: null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '9629df613b269cc393dc90d13fb9272652ecf300', class: "db-custom-select-placeholder", "aria-hidden": "true", id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), 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: '682b3bf735bc32853f9a5aabc2a37e88575c5b1f', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'dee40917af4cd6d663fe0f7e42110390605f982f', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
824
824
|
}
|
|
825
825
|
get rootElement() { return getElement(this); }
|
|
826
826
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { c as cls } from './index-fumiz06Y.js';
|
|
3
3
|
|
|
4
4
|
const DBDivider = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -52,7 +52,7 @@ const DBDivider = class {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
var _a, _b;
|
|
55
|
-
return (h("div", { key: '
|
|
55
|
+
return (h("div", { key: 'b0abc4940417f6bf2ec60d4dce76f50a6639ffec', class: cls("db-divider", this.className), ref: (el) => {
|
|
56
56
|
this._ref = el;
|
|
57
57
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
58
58
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { o as isKeyboardEvent, d as delay, g as getBooleanAsString, c as cls
|
|
3
|
+
import { o as isKeyboardEvent, e as getBoolean, d as delay, g as getBooleanAsString, c as cls } from './index-fumiz06Y.js';
|
|
4
4
|
|
|
5
5
|
const DBDrawer = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -139,11 +139,11 @@ const DBDrawer = class {
|
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
141
|
var _a, _b, _c;
|
|
142
|
-
return (h("dialog", { key: '
|
|
142
|
+
return (h("dialog", { key: '225a5dbee78c590dff66140a494f8eb241fa6330', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
|
|
143
143
|
this._ref = el;
|
|
144
|
-
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: '
|
|
144
|
+
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: 'adfb6025f81f3a0f22ae824ae288135acc0abf38', class: cls("db-drawer-container", this.className), ref: (el) => {
|
|
145
145
|
this.dialogContainerRef = el;
|
|
146
|
-
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: '
|
|
146
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded, "rounded") }, h("header", { key: '1304ee6c2e71ea296a47a3f6b3f3b4986b9250cb', class: "db-drawer-header" }, h("div", { key: '58ac80d422901b140b2bf635eeafec45a8f07df5', class: "db-drawer-header-text" }, h("slot", { key: '7f9ecdebdbcb50b176989b50671b370ea29a9eb1', name: "drawerHeader" })), h("db-button", { key: '6b265a6e92f9d9ca4949dc40721700c2e9bd0390', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)), h("div", { key: 'a740f736da9467544753fc8eecbc11c49dbff568', class: "db-drawer-content" }, h("slot", { key: 'e71354fd4dd8d9bde10226b918e6e6ff2c69fe03' })))));
|
|
147
147
|
}
|
|
148
148
|
get rootElement() { return getElement(this); }
|
|
149
149
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
2
|
import { p as DEFAULT_BURGER_MENU } from './constants-BdL-nI5y.js';
|
|
3
|
-
import {
|
|
3
|
+
import { e as getBoolean, a as addAttributeToChildren, c as cls } from './index-fumiz06Y.js';
|
|
4
4
|
import { i as isEventTargetNavigationItem } from './navigation-Jh6m0eMk.js';
|
|
5
5
|
import './floating-components-DOPXnIzL.js';
|
|
6
6
|
|
|
@@ -88,9 +88,9 @@ const DBHeader = class {
|
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
90
|
var _a, _b, _c;
|
|
91
|
-
return (h("header", { key: '
|
|
91
|
+
return (h("header", { key: '9e4e437f3e1f465a86e279c4062455c8398e1fca', class: cls("db-header", this.className), ref: (el) => {
|
|
92
92
|
this._ref = el;
|
|
93
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("div", { key: '
|
|
93
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("div", { key: '008214cb908cacd9c0d836c5513391ced9889de0', class: "db-header-meta-navigation" }, h("slot", { key: '77b7c0dd3867fa0625ade6b94886d8635cb9e9d0', name: "metaNavigation" })), h("div", { key: 'c8b29a92b9fc2e02101b69514af7abbd0e6c3f53', class: "db-header-navigation-bar" }, h("div", { key: '004aa45ef611647fd083a7605607bfd139d525e1', class: "db-header-brand-container" }, h("slot", { key: '117eb0bf2810766c34dc0fc5809ef29b88ee38b8', name: "brand" })), h("div", { key: '5f08b698cdaf172905f862eea220bf08114f84ae', class: "db-header-navigation-container" }, h("div", { key: 'dbd332f8fbcef5b4097ae1e912b8c82e1cf308e7', class: "db-header-navigation" }, h("slot", { key: '1add1d46f5591bb31a871f61308b9d2d4d9cc2fd' })), h("div", { key: 'a6f002f461afc2055f5e045d486e883dc0ffbd26', class: "db-header-primary-action" }, h("slot", { key: '5a9934b2b8b6242a0c893c5b669c52e20c60d28a', name: "primaryAction" }))), h("div", { key: 'db912777f19f979e01edeef604eb97909e62c341', class: "db-header-action-container" }, h("div", { key: '784e8f6fb73711b578d2b9105646878016a5cbde', class: "db-header-burger-menu-container" }, h("db-button", { key: '06865f340c10c9da96b1ce632fe41fd8291cc051', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : DEFAULT_BURGER_MENU)), h("div", { key: '9b215d86d1f9a90bf94e7590cb62e131e16826df', class: "db-header-secondary-action" }, h("slot", { key: '4568dfae1a86614dd3eeb0b708890fa429146488', name: "secondaryAction" })))), h("db-drawer", { key: 'b3f5173536dbd5a567f10f69da2b6067c07687c9', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'd6e881f20c0aa9f96a32be21ca4da94dc1a62dfc', class: "db-header-drawer-navigation" }, h("div", { key: '76b8fdfcd35fc7a544740c38ec24bfead9460232', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '692234dca1ca4c54edd757dddb7a8ea0742347e3' })), h("div", { key: 'b28eebcc6e14458ee5f059ffff24df8d0a740bbf', class: "db-header-meta-navigation" }, h("slot", { key: 'ad47d6ab3247db70a8cba9447ba7d8c3247b5110', name: "metaNavigation" }))), h("div", { key: '21415bf3aa1572acd48c6a6dfe226a66d0b7f219', class: "db-header-secondary-action" }, h("slot", { key: 'ba1f8f44f97b54a6a4037df031131041ff0ca6d7', name: "secondaryAction" })))));
|
|
94
94
|
}
|
|
95
95
|
get rootElement() { return getElement(this); }
|
|
96
96
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { c as cls } from './index-fumiz06Y.js';
|
|
3
3
|
|
|
4
4
|
const DBIcon = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -52,9 +52,9 @@ const DBIcon = class {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
var _a, _b;
|
|
55
|
-
return (h("span", { key: '
|
|
55
|
+
return (h("span", { key: 'f525692a77464f4dfa854e5ede76ad6ddd7050a9', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
56
56
|
this._ref = el;
|
|
57
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : null, h("slot", { key: '
|
|
57
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : null, h("slot", { key: '89e010681206c29c706d38800937af2046a39b5c' })));
|
|
58
58
|
}
|
|
59
59
|
get rootElement() { return getElement(this); }
|
|
60
60
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
2
|
-
import { g as getBooleanAsString, c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { g as getBooleanAsString, c as cls } from './index-fumiz06Y.js';
|
|
3
3
|
|
|
4
4
|
const DBInfotext = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -52,9 +52,9 @@ const DBInfotext = class {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
var _a, _b, _c;
|
|
55
|
-
return (h("span", { key: '
|
|
55
|
+
return (h("span", { key: '982cd72ca8f9c42855a6aa704216bd21ebac6bb8', class: cls("db-infotext", this.className), ref: (el) => {
|
|
56
56
|
this._ref = el;
|
|
57
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": getBooleanAsString(this.wrap), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : null, h("slot", { key: '
|
|
57
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true, "showIcon") }, this.text ? this.text : null, h("slot", { key: 'cee3af0341d217dcd43068e5a5759b0964b132bd' })));
|
|
58
58
|
}
|
|
59
59
|
get rootElement() { return getElement(this); }
|
|
60
60
|
};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
|
|
2
|
+
import { g as getBooleanAsString, c as cls, f as getNumber, u as uuid } from './index-fumiz06Y.js';
|
|
3
|
+
|
|
4
|
+
const DBLink = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
10
|
+
* @param element the ref for the component
|
|
11
|
+
* @param customElementSelector the custom element like `my-component`
|
|
12
|
+
*/
|
|
13
|
+
enableAttributePassing(element, customElementSelector) {
|
|
14
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
15
|
+
if (element && parent) {
|
|
16
|
+
const attributes = parent.attributes;
|
|
17
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
18
|
+
const attr = attributes.item(i);
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
|
+
element.setAttribute(attr.name, attr.value);
|
|
22
|
+
parent.removeAttribute(attr.name);
|
|
23
|
+
}
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
29
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
30
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
31
|
+
const currentClass = element.getAttribute("class");
|
|
32
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
33
|
+
if (isWebComponent) {
|
|
34
|
+
// Stencil is using this class for lazy loading component
|
|
35
|
+
parent.setAttribute("class", "hydrated");
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
parent.removeAttribute(attr.name);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
componentDidLoad() {
|
|
45
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
46
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
47
|
+
if (connectedElement) {
|
|
48
|
+
connectedElement.remove();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
this.enableAttributePassing(this._ref, "db-link");
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
var _a, _b, _c, _d;
|
|
55
|
+
return (h("a", { key: '1c032471cbf6facd4f851aaf0ebab4e2697432a2', class: cls("db-link", this.className), ref: (el) => {
|
|
56
|
+
this._ref = el;
|
|
57
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_c = this.referrerpolicy) !== null && _c !== void 0 ? _c : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": getBooleanAsString(this.disabled, "disabled"), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true, "showIcon"), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap, "wrap") }, this.text ? this.text : null, h("slot", { key: '5045a3ef849265f0719db1d8bbe5e141bb415eef' })));
|
|
58
|
+
}
|
|
59
|
+
get rootElement() { return getElement(this); }
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const DBTableDataCell = class {
|
|
63
|
+
constructor(hostRef) {
|
|
64
|
+
registerInstance(this, hostRef);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
68
|
+
* @param element the ref for the component
|
|
69
|
+
* @param customElementSelector the custom element like `my-component`
|
|
70
|
+
*/
|
|
71
|
+
enableAttributePassing(element, customElementSelector) {
|
|
72
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
73
|
+
if (element && parent) {
|
|
74
|
+
const attributes = parent.attributes;
|
|
75
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
76
|
+
const attr = attributes.item(i);
|
|
77
|
+
if (attr && attr.name !== 'data-density' &&
|
|
78
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
79
|
+
element.setAttribute(attr.name, attr.value);
|
|
80
|
+
parent.removeAttribute(attr.name);
|
|
81
|
+
}
|
|
82
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
83
|
+
element.setAttribute(attr.name, attr.value);
|
|
84
|
+
parent.removeAttribute(attr.name);
|
|
85
|
+
}
|
|
86
|
+
else if (attr && attr.name === "class") {
|
|
87
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
88
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
89
|
+
const currentClass = element.getAttribute("class");
|
|
90
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
91
|
+
if (isWebComponent) {
|
|
92
|
+
// Stencil is using this class for lazy loading component
|
|
93
|
+
parent.setAttribute("class", "hydrated");
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
parent.removeAttribute(attr.name);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
componentDidLoad() {
|
|
103
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
104
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
105
|
+
if (connectedElement) {
|
|
106
|
+
connectedElement.remove();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
this.enableAttributePassing(this._ref, "db-table-data-cell");
|
|
110
|
+
}
|
|
111
|
+
render() {
|
|
112
|
+
return (h("td", { key: '9f67b2926bd9e418572aa855b1dba754bddd8297', class: cls("db-table-data-cell", this.className), ref: (el) => {
|
|
113
|
+
this._ref = el;
|
|
114
|
+
}, id: this.id, "data-horizontal-alignment": this.horizontalAlignment, "data-vertical-alignment": this.verticalAlignment, colSpan: getNumber(this.colSpan, this.colspan), rowSpan: getNumber(this.rowSpan, this.rowspan), headers: this.headers }, h("slot", { key: '73553f85f1a5ccb0d8b59b06760fd19318a2e19c' })));
|
|
115
|
+
}
|
|
116
|
+
get rootElement() { return getElement(this); }
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const DBTableHeaderCell = class {
|
|
120
|
+
constructor(hostRef) {
|
|
121
|
+
registerInstance(this, hostRef);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
125
|
+
* @param element the ref for the component
|
|
126
|
+
* @param customElementSelector the custom element like `my-component`
|
|
127
|
+
*/
|
|
128
|
+
enableAttributePassing(element, customElementSelector) {
|
|
129
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
130
|
+
if (element && parent) {
|
|
131
|
+
const attributes = parent.attributes;
|
|
132
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
133
|
+
const attr = attributes.item(i);
|
|
134
|
+
if (attr && attr.name !== 'data-density' &&
|
|
135
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
136
|
+
element.setAttribute(attr.name, attr.value);
|
|
137
|
+
parent.removeAttribute(attr.name);
|
|
138
|
+
}
|
|
139
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
140
|
+
element.setAttribute(attr.name, attr.value);
|
|
141
|
+
parent.removeAttribute(attr.name);
|
|
142
|
+
}
|
|
143
|
+
else if (attr && attr.name === "class") {
|
|
144
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
145
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
146
|
+
const currentClass = element.getAttribute("class");
|
|
147
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
148
|
+
if (isWebComponent) {
|
|
149
|
+
// Stencil is using this class for lazy loading component
|
|
150
|
+
parent.setAttribute("class", "hydrated");
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
parent.removeAttribute(attr.name);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
componentDidLoad() {
|
|
160
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
161
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
162
|
+
if (connectedElement) {
|
|
163
|
+
connectedElement.remove();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
this.enableAttributePassing(this._ref, "db-table-header-cell");
|
|
167
|
+
}
|
|
168
|
+
render() {
|
|
169
|
+
return (h("th", { key: '422fa622eecd8ffb509c415c6bfdd1ed31f3ecc8', class: cls("db-table-header-cell", this.className), ref: (el) => {
|
|
170
|
+
this._ref = el;
|
|
171
|
+
}, id: this.id, "data-horizontal-alignment": this.horizontalAlignment, "data-vertical-alignment": this.verticalAlignment, "data-no-text": getBooleanAsString(this.noText), scope: this.scope, colSpan: getNumber(this.colSpan, this.colspan), rowSpan: getNumber(this.rowSpan, this.rowspan), headers: this.headers, abbr: this.abbr }, h("slot", { key: '7fc0e393fa95a6ea5c0e927fa971da7d825c7736' })));
|
|
172
|
+
}
|
|
173
|
+
get rootElement() { return getElement(this); }
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
const DBTableRow = class {
|
|
177
|
+
constructor(hostRef) {
|
|
178
|
+
registerInstance(this, hostRef);
|
|
179
|
+
}
|
|
180
|
+
getHeaderCell(cell) {
|
|
181
|
+
if (cell.headerCell) {
|
|
182
|
+
return cell;
|
|
183
|
+
}
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
188
|
+
* @param element the ref for the component
|
|
189
|
+
* @param customElementSelector the custom element like `my-component`
|
|
190
|
+
*/
|
|
191
|
+
enableAttributePassing(element, customElementSelector) {
|
|
192
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
193
|
+
if (element && parent) {
|
|
194
|
+
const attributes = parent.attributes;
|
|
195
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
196
|
+
const attr = attributes.item(i);
|
|
197
|
+
if (attr && attr.name !== 'data-density' &&
|
|
198
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
199
|
+
element.setAttribute(attr.name, attr.value);
|
|
200
|
+
parent.removeAttribute(attr.name);
|
|
201
|
+
}
|
|
202
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
203
|
+
element.setAttribute(attr.name, attr.value);
|
|
204
|
+
parent.removeAttribute(attr.name);
|
|
205
|
+
}
|
|
206
|
+
else if (attr && attr.name === "class") {
|
|
207
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
208
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
209
|
+
const currentClass = element.getAttribute("class");
|
|
210
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
211
|
+
if (isWebComponent) {
|
|
212
|
+
// Stencil is using this class for lazy loading component
|
|
213
|
+
parent.setAttribute("class", "hydrated");
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
parent.removeAttribute(attr.name);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
componentDidLoad() {
|
|
223
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
224
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
225
|
+
if (connectedElement) {
|
|
226
|
+
connectedElement.remove();
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
this.enableAttributePassing(this._ref, "db-table-row");
|
|
230
|
+
}
|
|
231
|
+
render() {
|
|
232
|
+
var _a;
|
|
233
|
+
return (h("tr", { key: '41fb15318069880e679a929ee5d4fcf59c7c1b63', class: cls("db-table-row", this.className), ref: (el) => {
|
|
234
|
+
this._ref = el;
|
|
235
|
+
}, 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) => {
|
|
236
|
+
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;
|
|
237
|
+
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)));
|
|
238
|
+
})) : (h("slot", null))));
|
|
239
|
+
}
|
|
240
|
+
get rootElement() { return getElement(this); }
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
export { DBLink as db_link, DBTableDataCell as db_table_data_cell, DBTableHeaderCell as db_table_header_cell, DBTableRow as db_table_row };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-BlbKvvUv.js';
|
|
2
2
|
import { n as DEFAULT_BACK } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { d as delay, e as getBoolean, u as uuid, g as getBooleanAsString, c as cls } from './index-
|
|
3
|
+
import { d as delay, e as getBoolean, u as uuid, g as getBooleanAsString, c as cls } from './index-fumiz06Y.js';
|
|
4
4
|
import { N as NavigationItemSafeTriangle } from './navigation-Jh6m0eMk.js';
|
|
5
5
|
import './floating-components-DOPXnIzL.js';
|
|
6
6
|
|
|
@@ -121,9 +121,9 @@ const DBNavigationItem = class {
|
|
|
121
121
|
}
|
|
122
122
|
render() {
|
|
123
123
|
var _a, _b, _c;
|
|
124
|
-
return (h("li", { key: '
|
|
124
|
+
return (h("li", { key: '3260e2400d47c705ac8438ecb762ee1a28fad47d', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
125
125
|
this._ref = el;
|
|
126
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !getBoolean(this.hideSubNavigation, "hideSubNavigation") &&
|
|
126
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "aria-disabled": getBooleanAsString(this.disabled, "disabled") }, !getBoolean(this.hideSubNavigation, "hideSubNavigation") &&
|
|
127
127
|
this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", id: this.subNavigationToggleId, "aria-haspopup": this.hasAreaPopup ? "true" : undefined, "aria-expanded": this.isSubNavigationExpanded, "aria-controls": this.subNavigationId, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", { name: "expandButton" })), h("menu", { class: "db-sub-navigation", id: this.subNavigationId, "aria-labelledby": this.subNavigationToggleId, "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : this.text ? (this.text) : (h("slot", null))));
|
|
128
128
|
}
|
|
129
129
|
get rootElement() { return getElement(this); }
|