@db-ux/wc-core-components 4.9.0-stencil-bundle-ad37ca4 → 4.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -1
- package/README.md +0 -20
- package/dist/cjs/db-accordion-item.cjs.entry.js +4 -25
- package/dist/cjs/db-accordion.cjs.entry.js +3 -10
- package/dist/cjs/db-badge.cjs.entry.js +3 -10
- package/dist/cjs/db-brand.cjs.entry.js +3 -10
- package/dist/cjs/db-button.cjs.entry.js +3 -10
- package/dist/cjs/db-card.cjs.entry.js +3 -10
- package/dist/cjs/db-checkbox.cjs.entry.js +3 -10
- package/dist/cjs/db-custom-button.cjs.entry.js +3 -10
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +10 -45
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -10
- package/dist/cjs/db-custom-select.cjs.entry.js +6 -13
- package/dist/cjs/db-divider.cjs.entry.js +2 -9
- package/dist/cjs/db-drawer.cjs.entry.js +7 -14
- package/dist/cjs/db-header.cjs.entry.js +3 -10
- package/dist/cjs/db-icon.cjs.entry.js +3 -10
- package/dist/cjs/db-infotext.cjs.entry.js +3 -10
- package/dist/cjs/db-link.cjs.entry.js +3 -10
- package/dist/cjs/db-navigation-item.cjs.entry.js +3 -11
- package/dist/cjs/db-navigation.cjs.entry.js +3 -10
- package/dist/cjs/db-notification.cjs.entry.js +3 -10
- package/dist/cjs/db-page.cjs.entry.js +3 -10
- package/dist/cjs/db-popover.cjs.entry.js +3 -10
- package/dist/cjs/db-radio.cjs.entry.js +3 -10
- package/dist/cjs/db-section.cjs.entry.js +3 -10
- package/dist/cjs/db-select.cjs.entry.js +3 -10
- package/dist/cjs/db-stack.cjs.entry.js +3 -10
- package/dist/cjs/db-switch.cjs.entry.js +3 -10
- package/dist/cjs/db-tab-item_3.cjs.entry.js +7 -28
- package/dist/cjs/db-tabs.cjs.entry.js +3 -10
- package/dist/cjs/db-textarea.cjs.entry.js +3 -10
- package/dist/cjs/db-tooltip.cjs.entry.js +3 -10
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/{index-DLuhzJ0p.js → index-BoC-BWt4.js} +0 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/accordion/accordion.js +2 -9
- package/dist/collection/components/accordion-item/accordion-item.js +4 -51
- package/dist/collection/components/badge/badge.js +2 -9
- package/dist/collection/components/brand/brand.js +2 -9
- package/dist/collection/components/button/button.js +3 -10
- package/dist/collection/components/card/card.js +3 -10
- package/dist/collection/components/checkbox/checkbox.js +3 -10
- package/dist/collection/components/custom-button/custom-button.js +2 -9
- package/dist/collection/components/custom-select/custom-select.js +6 -13
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -9
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -9
- package/dist/collection/components/custom-select-list/custom-select-list.js +2 -9
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +2 -9
- package/dist/collection/components/divider/divider.js +1 -8
- package/dist/collection/components/drawer/drawer.js +8 -15
- package/dist/collection/components/header/header.js +13 -20
- package/dist/collection/components/icon/icon.js +2 -9
- package/dist/collection/components/infotext/infotext.js +2 -9
- package/dist/collection/components/input/input.js +3 -10
- package/dist/collection/components/link/link.js +2 -9
- package/dist/collection/components/navigation/navigation.js +2 -9
- package/dist/collection/components/navigation-item/navigation-item.js +3 -37
- package/dist/collection/components/notification/notification.js +3 -10
- package/dist/collection/components/page/page.js +2 -9
- package/dist/collection/components/popover/popover.js +2 -9
- package/dist/collection/components/radio/radio.js +3 -10
- package/dist/collection/components/section/section.js +2 -9
- package/dist/collection/components/select/select.js +3 -10
- package/dist/collection/components/stack/stack.js +2 -9
- package/dist/collection/components/switch/switch.js +3 -10
- package/dist/collection/components/tab-item/tab-item.js +3 -10
- package/dist/collection/components/tab-list/tab-list.js +2 -9
- package/dist/collection/components/tab-panel/tab-panel.js +2 -9
- package/dist/collection/components/tabs/tabs.js +3 -10
- package/dist/collection/components/tag/tag.js +3 -10
- package/dist/collection/components/textarea/textarea.js +3 -10
- package/dist/collection/components/tooltip/tooltip.js +2 -9
- package/dist/custom-elements.json +36 -2252
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/p-1b5d76a8.entry.js +1 -0
- package/dist/db-ux/p-296f989b.entry.js +1 -0
- package/dist/db-ux/p-3ae13ff1.entry.js +1 -0
- package/dist/db-ux/p-43f94079.entry.js +1 -0
- package/dist/db-ux/p-54508bad.entry.js +1 -0
- package/dist/db-ux/p-55e8b0b4.entry.js +1 -0
- package/dist/db-ux/p-69a59559.entry.js +1 -0
- package/dist/db-ux/p-6e7126c6.entry.js +1 -0
- package/dist/db-ux/p-7bed4611.entry.js +1 -0
- package/dist/db-ux/p-8ce816c0.entry.js +1 -0
- package/dist/db-ux/p-8e080864.entry.js +1 -0
- package/dist/db-ux/p-K4o-AcjZ.js +2 -0
- package/dist/db-ux/p-a0eccc08.entry.js +1 -0
- package/dist/db-ux/p-a7c6ec23.entry.js +1 -0
- package/dist/db-ux/p-a82c9875.entry.js +1 -0
- package/dist/db-ux/p-ae445d5d.entry.js +1 -0
- package/dist/db-ux/p-b33abf8d.entry.js +1 -0
- package/dist/db-ux/p-b8ab2bd4.entry.js +1 -0
- package/dist/db-ux/p-bb7c59d2.entry.js +1 -0
- package/dist/db-ux/p-bc510135.entry.js +1 -0
- package/dist/db-ux/p-c85d4be6.entry.js +1 -0
- package/dist/db-ux/p-d206ac6f.entry.js +1 -0
- package/dist/db-ux/p-e22b3725.entry.js +1 -0
- package/dist/db-ux/p-e432c81f.entry.js +1 -0
- package/dist/db-ux/p-e64606e2.entry.js +1 -0
- package/dist/db-ux/p-e8ee154f.entry.js +1 -0
- package/dist/db-ux/p-efb9d9bc.entry.js +1 -0
- package/dist/db-ux/p-f35229a1.entry.js +1 -0
- package/dist/db-ux/p-f582c886.entry.js +1 -0
- package/dist/db-ux/p-f6be9a48.entry.js +1 -0
- package/dist/db-ux/p-fb39506f.entry.js +1 -0
- package/dist/db-ux/p-fb9500ba.entry.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +4 -25
- package/dist/esm/db-accordion.entry.js +3 -10
- package/dist/esm/db-badge.entry.js +3 -10
- package/dist/esm/db-brand.entry.js +3 -10
- package/dist/esm/db-button.entry.js +3 -10
- package/dist/esm/db-card.entry.js +3 -10
- package/dist/esm/db-checkbox.entry.js +3 -10
- package/dist/esm/db-custom-button.entry.js +3 -10
- package/dist/esm/db-custom-select-dropdown_5.entry.js +10 -45
- package/dist/esm/db-custom-select-form-field.entry.js +3 -10
- package/dist/esm/db-custom-select.entry.js +6 -13
- package/dist/esm/db-divider.entry.js +2 -9
- package/dist/esm/db-drawer.entry.js +8 -15
- package/dist/esm/db-header.entry.js +3 -10
- package/dist/esm/db-icon.entry.js +3 -10
- package/dist/esm/db-infotext.entry.js +3 -10
- package/dist/esm/db-link.entry.js +3 -10
- package/dist/esm/db-navigation-item.entry.js +3 -11
- package/dist/esm/db-navigation.entry.js +3 -10
- package/dist/esm/db-notification.entry.js +3 -10
- package/dist/esm/db-page.entry.js +3 -10
- package/dist/esm/db-popover.entry.js +3 -10
- package/dist/esm/db-radio.entry.js +3 -10
- package/dist/esm/db-section.entry.js +3 -10
- package/dist/esm/db-select.entry.js +3 -10
- package/dist/esm/db-stack.entry.js +3 -10
- package/dist/esm/db-switch.entry.js +3 -10
- package/dist/esm/db-tab-item_3.entry.js +7 -28
- package/dist/esm/db-tabs.entry.js +3 -10
- package/dist/esm/db-textarea.entry.js +3 -10
- package/dist/esm/db-tooltip.entry.js +3 -10
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/{index-Cr2cgn5B.js → index-K4o-AcjZ.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/accordion/accordion.d.ts +0 -1
- package/dist/types/components/accordion/model.d.ts +2 -2
- package/dist/types/components/accordion-item/accordion-item.d.ts +0 -4
- package/dist/types/components/accordion-item/model.d.ts +1 -5
- package/dist/types/components/badge/badge.d.ts +0 -1
- package/dist/types/components/badge/model.d.ts +1 -1
- package/dist/types/components/brand/brand.d.ts +0 -1
- package/dist/types/components/brand/model.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +0 -1
- package/dist/types/components/button/model.d.ts +1 -1
- package/dist/types/components/card/card.d.ts +0 -1
- package/dist/types/components/card/model.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +0 -1
- package/dist/types/components/checkbox/model.d.ts +1 -1
- package/dist/types/components/custom-button/custom-button.d.ts +0 -1
- package/dist/types/components/custom-button/model.d.ts +2 -2
- package/dist/types/components/custom-select/custom-select.d.ts +0 -1
- package/dist/types/components/custom-select/model.d.ts +4 -4
- package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +0 -1
- package/dist/types/components/custom-select-dropdown/model.d.ts +1 -1
- package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +0 -1
- package/dist/types/components/custom-select-form-field/model.d.ts +1 -1
- package/dist/types/components/custom-select-list/custom-select-list.d.ts +0 -1
- package/dist/types/components/custom-select-list/model.d.ts +1 -1
- package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +0 -1
- package/dist/types/components/custom-select-list-item/model.d.ts +1 -1
- package/dist/types/components/divider/divider.d.ts +0 -1
- package/dist/types/components/divider/model.d.ts +1 -1
- package/dist/types/components/drawer/drawer.d.ts +0 -1
- package/dist/types/components/drawer/model.d.ts +1 -1
- package/dist/types/components/header/header.d.ts +2 -3
- package/dist/types/components/header/model.d.ts +1 -1
- package/dist/types/components/icon/icon.d.ts +0 -1
- package/dist/types/components/icon/model.d.ts +1 -1
- package/dist/types/components/infotext/infotext.d.ts +0 -1
- package/dist/types/components/infotext/model.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +0 -1
- package/dist/types/components/input/model.d.ts +1 -1
- package/dist/types/components/link/link.d.ts +0 -1
- package/dist/types/components/link/model.d.ts +1 -1
- package/dist/types/components/navigation/model.d.ts +1 -1
- package/dist/types/components/navigation/navigation.d.ts +0 -1
- package/dist/types/components/navigation-item/model.d.ts +2 -6
- package/dist/types/components/navigation-item/navigation-item.d.ts +0 -2
- package/dist/types/components/notification/model.d.ts +1 -1
- package/dist/types/components/notification/notification.d.ts +0 -1
- package/dist/types/components/page/model.d.ts +1 -1
- package/dist/types/components/page/page.d.ts +0 -1
- package/dist/types/components/popover/model.d.ts +1 -1
- package/dist/types/components/popover/popover.d.ts +0 -1
- package/dist/types/components/radio/model.d.ts +1 -1
- package/dist/types/components/radio/radio.d.ts +0 -1
- package/dist/types/components/section/model.d.ts +1 -1
- package/dist/types/components/section/section.d.ts +0 -1
- package/dist/types/components/select/model.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +0 -1
- package/dist/types/components/stack/model.d.ts +1 -1
- package/dist/types/components/stack/stack.d.ts +0 -1
- package/dist/types/components/switch/model.d.ts +1 -1
- package/dist/types/components/switch/switch.d.ts +0 -1
- package/dist/types/components/tab-item/model.d.ts +1 -1
- package/dist/types/components/tab-item/tab-item.d.ts +0 -1
- package/dist/types/components/tab-list/model.d.ts +1 -1
- package/dist/types/components/tab-list/tab-list.d.ts +0 -1
- package/dist/types/components/tab-panel/model.d.ts +1 -1
- package/dist/types/components/tab-panel/tab-panel.d.ts +0 -1
- package/dist/types/components/tabs/model.d.ts +3 -3
- package/dist/types/components/tabs/tabs.d.ts +0 -1
- package/dist/types/components/tag/model.d.ts +1 -1
- package/dist/types/components/tag/tag.d.ts +0 -1
- package/dist/types/components/textarea/model.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +0 -1
- package/dist/types/components/tooltip/model.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +0 -1
- package/dist/types/components.d.ts +1 -7
- package/dist/vscode.html-custom-data.json +6 -16
- package/dist/web-types.json +248 -1032
- package/package.json +7 -13
- package/bundle/db-accordion-item.d.ts +0 -11
- package/bundle/db-accordion-item.js +0 -1
- package/bundle/db-accordion.d.ts +0 -11
- package/bundle/db-accordion.js +0 -1
- package/bundle/db-badge.d.ts +0 -11
- package/bundle/db-badge.js +0 -1
- package/bundle/db-brand.d.ts +0 -11
- package/bundle/db-brand.js +0 -1
- package/bundle/db-button.d.ts +0 -11
- package/bundle/db-button.js +0 -1
- package/bundle/db-card.d.ts +0 -11
- package/bundle/db-card.js +0 -1
- package/bundle/db-checkbox.d.ts +0 -11
- package/bundle/db-checkbox.js +0 -1
- package/bundle/db-custom-button.d.ts +0 -11
- package/bundle/db-custom-button.js +0 -1
- package/bundle/db-custom-select-dropdown.d.ts +0 -11
- package/bundle/db-custom-select-dropdown.js +0 -1
- package/bundle/db-custom-select-form-field.d.ts +0 -11
- package/bundle/db-custom-select-form-field.js +0 -1
- package/bundle/db-custom-select-list-item.d.ts +0 -11
- package/bundle/db-custom-select-list-item.js +0 -1
- package/bundle/db-custom-select-list.d.ts +0 -11
- package/bundle/db-custom-select-list.js +0 -1
- package/bundle/db-custom-select.d.ts +0 -11
- package/bundle/db-custom-select.js +0 -1
- package/bundle/db-divider.d.ts +0 -11
- package/bundle/db-divider.js +0 -1
- package/bundle/db-drawer.d.ts +0 -11
- package/bundle/db-drawer.js +0 -1
- package/bundle/db-header.d.ts +0 -11
- package/bundle/db-header.js +0 -1
- package/bundle/db-icon.d.ts +0 -11
- package/bundle/db-icon.js +0 -1
- package/bundle/db-infotext.d.ts +0 -11
- package/bundle/db-infotext.js +0 -1
- package/bundle/db-input.d.ts +0 -11
- package/bundle/db-input.js +0 -1
- package/bundle/db-link.d.ts +0 -11
- package/bundle/db-link.js +0 -1
- package/bundle/db-navigation-item.d.ts +0 -11
- package/bundle/db-navigation-item.js +0 -1
- package/bundle/db-navigation.d.ts +0 -11
- package/bundle/db-navigation.js +0 -1
- package/bundle/db-notification.d.ts +0 -11
- package/bundle/db-notification.js +0 -1
- package/bundle/db-page.d.ts +0 -11
- package/bundle/db-page.js +0 -1
- package/bundle/db-popover.d.ts +0 -11
- package/bundle/db-popover.js +0 -1
- package/bundle/db-radio.d.ts +0 -11
- package/bundle/db-radio.js +0 -1
- package/bundle/db-section.d.ts +0 -11
- package/bundle/db-section.js +0 -1
- package/bundle/db-select.d.ts +0 -11
- package/bundle/db-select.js +0 -1
- package/bundle/db-stack.d.ts +0 -11
- package/bundle/db-stack.js +0 -1
- package/bundle/db-switch.d.ts +0 -11
- package/bundle/db-switch.js +0 -1
- package/bundle/db-tab-item.d.ts +0 -11
- package/bundle/db-tab-item.js +0 -1
- package/bundle/db-tab-list.d.ts +0 -11
- package/bundle/db-tab-list.js +0 -1
- package/bundle/db-tab-panel.d.ts +0 -11
- package/bundle/db-tab-panel.js +0 -1
- package/bundle/db-tabs.d.ts +0 -11
- package/bundle/db-tabs.js +0 -1
- package/bundle/db-tag.d.ts +0 -11
- package/bundle/db-tag.js +0 -1
- package/bundle/db-textarea.d.ts +0 -11
- package/bundle/db-textarea.js +0 -1
- package/bundle/db-tooltip.d.ts +0 -11
- package/bundle/db-tooltip.js +0 -1
- package/bundle/index.d.ts +0 -47
- package/bundle/index.js +0 -1
- package/bundle/p-4nwUOzw7.js +0 -1
- package/bundle/p-6tgjpFiy.js +0 -1
- package/bundle/p-B8jmHdeH.js +0 -1
- package/bundle/p-BNhyPF1P.js +0 -1
- package/bundle/p-BPzP5Ag7.js +0 -1
- package/bundle/p-BdL-nI5y.js +0 -1
- package/bundle/p-BuBrj57D.js +0 -1
- package/bundle/p-BwS8XkPq.js +0 -1
- package/bundle/p-C0grS8Im.js +0 -1
- package/bundle/p-CCbaTFJ9.js +0 -1
- package/bundle/p-CSPKOJ_Q.js +0 -1
- package/bundle/p-C_uuq4ru.js +0 -1
- package/bundle/p-CeC-MQcb.js +0 -1
- package/bundle/p-Cp42j14z.js +0 -1
- package/bundle/p-D4Ym01qf.js +0 -1
- package/bundle/p-DOPXnIzL.js +0 -1
- package/bundle/p-DaaF73NV.js +0 -1
- package/bundle/p-DegvpGo6.js +0 -1
- package/bundle/p-yTv_0IMq.js +0 -1
- package/dist/db-ux/p-00ea76cf.entry.js +0 -1
- package/dist/db-ux/p-047341c9.entry.js +0 -1
- package/dist/db-ux/p-066fa23a.entry.js +0 -1
- package/dist/db-ux/p-0f8989b4.entry.js +0 -1
- package/dist/db-ux/p-25b715ae.entry.js +0 -1
- package/dist/db-ux/p-2df1300b.entry.js +0 -1
- package/dist/db-ux/p-3327169e.entry.js +0 -1
- package/dist/db-ux/p-419f8c38.entry.js +0 -1
- package/dist/db-ux/p-4249b49a.entry.js +0 -1
- package/dist/db-ux/p-44043bdb.entry.js +0 -1
- package/dist/db-ux/p-45e3b8c6.entry.js +0 -1
- package/dist/db-ux/p-47b8ce97.entry.js +0 -1
- package/dist/db-ux/p-692c892c.entry.js +0 -1
- package/dist/db-ux/p-6ca6258f.entry.js +0 -1
- package/dist/db-ux/p-6e2b82d0.entry.js +0 -1
- package/dist/db-ux/p-74a2dd1a.entry.js +0 -1
- package/dist/db-ux/p-78a2617f.entry.js +0 -1
- package/dist/db-ux/p-820c2ca9.entry.js +0 -1
- package/dist/db-ux/p-8894c1da.entry.js +0 -1
- package/dist/db-ux/p-8c7085d4.entry.js +0 -1
- package/dist/db-ux/p-9afcb916.entry.js +0 -1
- package/dist/db-ux/p-9e61d181.entry.js +0 -1
- package/dist/db-ux/p-Cr2cgn5B.js +0 -2
- package/dist/db-ux/p-a15fbd28.entry.js +0 -1
- package/dist/db-ux/p-cd1f41e9.entry.js +0 -1
- package/dist/db-ux/p-cd990388.entry.js +0 -1
- package/dist/db-ux/p-d1d119b6.entry.js +0 -1
- package/dist/db-ux/p-d5bc9beb.entry.js +0 -1
- package/dist/db-ux/p-e57bd4f0.entry.js +0 -1
- package/dist/db-ux/p-e9dd1674.entry.js +0 -1
- package/dist/db-ux/p-f904f3a1.entry.js +0 -1
- package/dist/db-ux/p-fb69c11a.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @db-ux/wc-core-components
|
|
2
2
|
|
|
3
|
+
## 4.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(switch): use `2lh` unit and add `min-inline-size` to prevent track from shrinking - [see commit 78c9fde](https://github.com/db-ux-design-system/core-web/commit/78c9fde67d9677f61eaa41761a088b9c1a9773a1)
|
|
8
|
+
|
|
9
|
+
- fix(notification): remove empty grid gap when icon is hidden - [see commit 96f94c6](https://github.com/db-ux-design-system/core-web/commit/96f94c651391f014e2d073402c2700b524ccbf5e)
|
|
10
|
+
|
|
11
|
+
## 4.9.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- refactor: allow text and children to be used together in components - [see commit cecb833](https://github.com/db-ux-design-system/core-web/commit/cecb833e2d2b2d15b47f9ac1ed57ccf1040374f0):
|
|
16
|
+
- feat: add `text` property to components that previously only supported children for their label, like e.g. `DBTooltip`.
|
|
17
|
+
- refactor: allow `text` property and components children to be used in parallel in components. Previously, `text` and children were mutually exclusive.
|
|
18
|
+
- refactor(`DBRadio`, `DBCheckbox`, `DBSwitch`): `label` and `children` can now be used together. Previously they were mutually exclusive.
|
|
19
|
+
- fix(`DBTag`): changed render order of `children` and `text` to align with design (children rendered before text).
|
|
20
|
+
|
|
3
21
|
## 4.8.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -189,7 +207,7 @@ _version bump_
|
|
|
189
207
|
|
|
190
208
|
- fix: set DBTabItem internal state `_selected` correctly - [see commit f7625cb](https://github.com/db-ux-design-system/core-web/commit/f7625cbd9d64513527e826c9d2c1ef42b2734a4b):
|
|
191
209
|
|
|
192
|
-
|
|
210
|
+
- Now also sets aria-selected=true|false correctly which improves screen reader behaviour
|
|
193
211
|
|
|
194
212
|
## 4.2.1
|
|
195
213
|
|
package/README.md
CHANGED
|
@@ -86,32 +86,12 @@ In case that you're building a website or application for Deutsche Bahn, you'll
|
|
|
86
86
|
|
|
87
87
|
## Usage
|
|
88
88
|
|
|
89
|
-
This package provides two output variants:
|
|
90
|
-
|
|
91
|
-
### Default (requires `@stencil/core` as peer dependency)
|
|
92
|
-
|
|
93
|
-
The default entry point uses Stencil's lazy-loading loader. `@stencil/core` must be installed separately.
|
|
94
|
-
|
|
95
|
-
```shell
|
|
96
|
-
npm i @stencil/core
|
|
97
|
-
```
|
|
98
|
-
|
|
99
89
|
```js
|
|
100
90
|
// main.js
|
|
101
91
|
import { defineCustomElements } from "@db-ux/wc-core-components";
|
|
102
92
|
defineCustomElements();
|
|
103
93
|
```
|
|
104
94
|
|
|
105
|
-
### Bundle (no external dependencies)
|
|
106
|
-
|
|
107
|
-
The bundle entry point is fully self-contained — `@stencil/core` is bundled in and does not need to be installed separately.
|
|
108
|
-
|
|
109
|
-
```js
|
|
110
|
-
// main.js
|
|
111
|
-
import { defineCustomElements } from "@db-ux/wc-core-components/bundle";
|
|
112
|
-
defineCustomElements();
|
|
113
|
-
```
|
|
114
|
-
|
|
115
95
|
```html
|
|
116
96
|
...
|
|
117
97
|
<db-button icon="x_placeholder">Test</db-button>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBAccordionItem = class {
|
|
@@ -29,9 +29,7 @@ const DBAccordionItem = class {
|
|
|
29
29
|
if (this.toggle) {
|
|
30
30
|
this.toggle.emit(newStateOpen);
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
this._open = newStateOpen;
|
|
34
|
-
}
|
|
32
|
+
this._open = newStateOpen;
|
|
35
33
|
}
|
|
36
34
|
/**
|
|
37
35
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -82,21 +80,7 @@ const DBAccordionItem = class {
|
|
|
82
80
|
watch1() {
|
|
83
81
|
this.watch1Fn();
|
|
84
82
|
}
|
|
85
|
-
watch2Fn() {
|
|
86
|
-
if (this.open !== undefined) {
|
|
87
|
-
this._open = this.open;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
watch2() {
|
|
91
|
-
this.watch2Fn();
|
|
92
|
-
}
|
|
93
83
|
componentDidLoad() {
|
|
94
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
95
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
96
|
-
if (connectedElement) {
|
|
97
|
-
connectedElement.remove();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
84
|
this.enableAttributePassing(this._ref, "db-accordion-item");
|
|
101
85
|
if (this.defaultOpen) {
|
|
102
86
|
this._open = this.defaultOpen;
|
|
@@ -104,15 +88,13 @@ const DBAccordionItem = class {
|
|
|
104
88
|
this.initialized = true;
|
|
105
89
|
this.watch0Fn();
|
|
106
90
|
this.watch1Fn();
|
|
107
|
-
this.watch2Fn();
|
|
108
91
|
}
|
|
109
92
|
render() {
|
|
110
93
|
var _a, _b;
|
|
111
|
-
return (index.h("li", { key: '
|
|
94
|
+
return (index.h("li", { key: '0d59b9b4e2e9992d832429171c725c0f776b46b4', class: index$1.cls("db-accordion-item", this.className), id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("details", { key: '8068249ac8266fea66da265c105309de3d98ac06', "aria-disabled": index$1.getBooleanAsString(this.disabled), ref: (el) => {
|
|
112
95
|
this._ref = el;
|
|
113
|
-
}, name: this._name, open: this._open }, index.h("summary", { key: '
|
|
96
|
+
}, name: this._name, open: this._open }, index.h("summary", { key: '338504ea06903b316e707bc10036d27000445c85', onClick: (event) => this.handleToggle(event) }, this.headlinePlain ? this.headlinePlain : null, !this.headlinePlain ? index.h("slot", { name: "headline" }) : null), index.h("div", { key: '97982ad7bc98e8e47ad2a5ce157fda13d2aa82ce' }, this.text ? this.text : null, index.h("slot", { key: '23c9b8d8b3b4d32362820be097c8474fa7e12609' })))));
|
|
114
97
|
}
|
|
115
|
-
get rootElement() { return index.getElement(this); }
|
|
116
98
|
static get watchers() { return {
|
|
117
99
|
"_ref": [{
|
|
118
100
|
"watch0": 0
|
|
@@ -122,9 +104,6 @@ const DBAccordionItem = class {
|
|
|
122
104
|
}],
|
|
123
105
|
"name": [{
|
|
124
106
|
"watch1": 0
|
|
125
|
-
}],
|
|
126
|
-
"open": [{
|
|
127
|
-
"watch2": 0
|
|
128
107
|
}]
|
|
129
108
|
}; }
|
|
130
109
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBAccordion = class {
|
|
@@ -61,7 +61,7 @@ const DBAccordion = class {
|
|
|
61
61
|
watch0Fn() {
|
|
62
62
|
// If we have a single behavior we first check for
|
|
63
63
|
// props.name otherwise for state_id
|
|
64
|
-
if (this.initialized
|
|
64
|
+
if (this.initialized) {
|
|
65
65
|
if (this.behavior === "single") {
|
|
66
66
|
if (this.name) {
|
|
67
67
|
if (this._name !== this.name) {
|
|
@@ -121,12 +121,6 @@ const DBAccordion = class {
|
|
|
121
121
|
this.watch2Fn();
|
|
122
122
|
}
|
|
123
123
|
componentDidLoad() {
|
|
124
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
125
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
126
|
-
if (connectedElement) {
|
|
127
|
-
connectedElement.remove();
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
124
|
this.enableAttributePassing(this._ref, "db-accordion");
|
|
131
125
|
this.initialized = true;
|
|
132
126
|
this._initOpenIndexDone = true;
|
|
@@ -136,13 +130,12 @@ const DBAccordion = class {
|
|
|
136
130
|
}
|
|
137
131
|
render() {
|
|
138
132
|
var _a, _b, _c;
|
|
139
|
-
return (index.h("ul", { key: '
|
|
133
|
+
return (index.h("ul", { key: '3a4a71d409be0f76abbb067e1698f7e0ab64b6c6', class: index$1.cls("db-accordion", this.className), ref: (el) => {
|
|
140
134
|
this._ref = el;
|
|
141
135
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant }, !this.items ? index.h("slot", null) : null, this.items
|
|
142
136
|
? (_c = this.convertItems()) === null || _c === void 0 ? void 0 : _c.map((item, index$1) => (index.h("db-accordion-item", { key: `accordion-item-${index$1}`, headlinePlain: item.headlinePlain, disabled: item.disabled, text: item.text })))
|
|
143
137
|
: null));
|
|
144
138
|
}
|
|
145
|
-
get rootElement() { return index.getElement(this); }
|
|
146
139
|
static get watchers() { return {
|
|
147
140
|
"initialized": [{
|
|
148
141
|
"watch0": 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
|
|
@@ -64,23 +64,16 @@ const DBBadge = class {
|
|
|
64
64
|
this.watch0Fn();
|
|
65
65
|
}
|
|
66
66
|
componentDidLoad() {
|
|
67
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
68
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
69
|
-
if (connectedElement) {
|
|
70
|
-
connectedElement.remove();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
67
|
this.enableAttributePassing(this._ref, "db-badge");
|
|
74
68
|
this.initialized = true;
|
|
75
69
|
this.watch0Fn();
|
|
76
70
|
}
|
|
77
71
|
render() {
|
|
78
72
|
var _a, _b, _c, _d;
|
|
79
|
-
return (index.h("span", { key: '
|
|
73
|
+
return (index.h("span", { key: '1a986f2667f67029493e606478d1d7928471acf8', class: index$1.cls("db-badge", this.className), ref: (el) => {
|
|
80
74
|
this._ref = el;
|
|
81
|
-
}, 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-size": this.size, "data-emphasis": this.emphasis, "data-placement": this.placement, "data-wrap": index$1.getBooleanAsString(this.wrap), "data-label": ((_c = this.placement) === null || _c === void 0 ? void 0 : _c.startsWith("corner")) && ((_d = this.label) !== null && _d !== void 0 ? _d : constants.DEFAULT_LABEL) }, this.text ? this.text : null, index.h("slot", { key: '
|
|
75
|
+
}, 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-size": this.size, "data-emphasis": this.emphasis, "data-placement": this.placement, "data-wrap": index$1.getBooleanAsString(this.wrap), "data-label": ((_c = this.placement) === null || _c === void 0 ? void 0 : _c.startsWith("corner")) && ((_d = this.label) !== null && _d !== void 0 ? _d : constants.DEFAULT_LABEL) }, this.text ? this.text : null, index.h("slot", { key: 'f6865ef905b1e12937c3f2d684a21e889c191608' })));
|
|
82
76
|
}
|
|
83
|
-
get rootElement() { return index.getElement(this); }
|
|
84
77
|
static get watchers() { return {
|
|
85
78
|
"_ref": [{
|
|
86
79
|
"watch0": 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
|
|
@@ -45,21 +45,14 @@ const DBBrand = class {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
componentDidLoad() {
|
|
48
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
49
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
50
|
-
if (connectedElement) {
|
|
51
|
-
connectedElement.remove();
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
48
|
this.enableAttributePassing(this._ref, "db-brand");
|
|
55
49
|
}
|
|
56
50
|
render() {
|
|
57
51
|
var _a, _b, _c;
|
|
58
|
-
return (index.h("div", { key: '
|
|
52
|
+
return (index.h("div", { key: '679731d67b498b68650b1f3c5fb6ac1f8578b29f', class: index$1.cls("db-brand", this.className), ref: (el) => {
|
|
59
53
|
this._ref = el;
|
|
60
|
-
}, "data-icon": this.hideLogo ? "none" : (_a = this.icon) !== null && _a !== void 0 ? _a : constants.DEFAULT_ICON, "data-show-icon": index$1.getBooleanAsString(this.showIcon), id: (_b = this.id) !== null && _b !== void 0 ? _b : (_c = this.propOverrides) === null || _c === void 0 ? void 0 : _c.id }, index.h("slot", { key: '
|
|
54
|
+
}, "data-icon": this.hideLogo ? "none" : (_a = this.icon) !== null && _a !== void 0 ? _a : constants.DEFAULT_ICON, "data-show-icon": index$1.getBooleanAsString(this.showIcon), id: (_b = this.id) !== null && _b !== void 0 ? _b : (_c = this.propOverrides) === null || _c === void 0 ? void 0 : _c.id }, index.h("slot", { key: 'bac6503b5fd5b16c138a513bae0749ecd67f2dc8' }), this.text ? this.text : null));
|
|
61
55
|
}
|
|
62
|
-
get rootElement() { return index.getElement(this); }
|
|
63
56
|
};
|
|
64
57
|
|
|
65
58
|
exports.db_brand = DBBrand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBButton = class {
|
|
@@ -54,21 +54,14 @@ const DBButton = class {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
componentDidLoad() {
|
|
57
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
58
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
59
|
-
if (connectedElement) {
|
|
60
|
-
connectedElement.remove();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
57
|
this.enableAttributePassing(this._ref, "db-button");
|
|
64
58
|
}
|
|
65
59
|
render() {
|
|
66
60
|
var _a, _b, _c, _d;
|
|
67
|
-
return (index.h("button", { key: '
|
|
61
|
+
return (index.h("button", { key: '884fb14651c53c3646098488d59aec90bc7c8234', class: index$1.cls("db-button", this.className), ref: (el) => {
|
|
68
62
|
this._ref = el;
|
|
69
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, type: this.getButtonType(), disabled: index$1.getBoolean(this.disabled, "disabled"), "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": index$1.getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-wrap": index$1.getBooleanAsString(this.wrap), "data-no-text": index$1.getBooleanAsString(this.noText), name: this.name, form: this.form, value: this.value }, this.text ? this.text : null, index.h("slot", { key: '
|
|
63
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, type: this.getButtonType(), disabled: index$1.getBoolean(this.disabled, "disabled"), "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": index$1.getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-wrap": index$1.getBooleanAsString(this.wrap), "data-no-text": index$1.getBooleanAsString(this.noText), name: this.name, form: this.form, value: this.value }, this.text ? this.text : null, index.h("slot", { key: 'd5c5efe19be364dca26feb751f76229b9aa71612' })));
|
|
70
64
|
}
|
|
71
|
-
get rootElement() { return index.getElement(this); }
|
|
72
65
|
};
|
|
73
66
|
|
|
74
67
|
exports.db_button = DBButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBCard = class {
|
|
@@ -50,21 +50,14 @@ const DBCard = class {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
componentDidLoad() {
|
|
53
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
54
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
55
|
-
if (connectedElement) {
|
|
56
|
-
connectedElement.remove();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
53
|
this.enableAttributePassing(this._ref, "db-card");
|
|
60
54
|
}
|
|
61
55
|
render() {
|
|
62
56
|
var _a, _b;
|
|
63
|
-
return (index.h("div", { key: '
|
|
57
|
+
return (index.h("div", { key: '2e81240f66c3d0652a35fca19fbdeac10b3188c3', class: index$1.cls("db-card", this.className), ref: (el) => {
|
|
64
58
|
this._ref = el;
|
|
65
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, index.h("slot", { key: '
|
|
59
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, index.h("slot", { key: 'c4a94fea2bffbd1a548e93c09fb643535dfef360' })));
|
|
66
60
|
}
|
|
67
|
-
get rootElement() { return index.getElement(this); }
|
|
68
61
|
};
|
|
69
62
|
|
|
70
63
|
exports.db_card = DBCard;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
@@ -193,12 +193,6 @@ const DBCheckbox = class {
|
|
|
193
193
|
this.watch5Fn();
|
|
194
194
|
}
|
|
195
195
|
componentDidLoad() {
|
|
196
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
197
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
198
|
-
if (connectedElement) {
|
|
199
|
-
connectedElement.remove();
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
196
|
this.enableAttributePassing(this._ref, "db-checkbox");
|
|
203
197
|
this.initialized = true;
|
|
204
198
|
this.resetIds();
|
|
@@ -216,11 +210,10 @@ const DBCheckbox = class {
|
|
|
216
210
|
}
|
|
217
211
|
render() {
|
|
218
212
|
var _a;
|
|
219
|
-
return (index.h("div", { key: '
|
|
213
|
+
return (index.h("div", { key: '4307b61065bb09633a48978283bfe5534126acea', class: index$1.cls("db-checkbox", this.className), "data-size": this.size, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-hide-label": index$1.getHideProp(this.showLabel) }, index.h("label", { key: '0aa7c1cb0b896790de944dabc35e10cd517806b5', htmlFor: this._id }, index.h("input", { key: '6bca474ad52dc47253c8cc0016aa6f3cff223ad8', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
220
214
|
this._ref = el;
|
|
221
|
-
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : null, index.h("slot", { key: '
|
|
215
|
+
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : null, index.h("slot", { key: '12de0b3395173a0ce9f15cf1f8ed49007a721422' })), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'af7347edcc4b3eeb57bdd87fe25cc1ca38a1779f', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '13ec5ad3bd9534eac4ea7d1310edc1e47fa5d382', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
222
216
|
}
|
|
223
|
-
get rootElement() { return index.getElement(this); }
|
|
224
217
|
static get watchers() { return {
|
|
225
218
|
"id": [{
|
|
226
219
|
"watch0": 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBCustomButton = class {
|
|
@@ -44,21 +44,14 @@ const DBCustomButton = class {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
componentDidLoad() {
|
|
47
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
48
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
49
|
-
if (connectedElement) {
|
|
50
|
-
connectedElement.remove();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
47
|
this.enableAttributePassing(this._ref, "db-custom-button");
|
|
54
48
|
}
|
|
55
49
|
render() {
|
|
56
50
|
var _a, _b, _c, _d;
|
|
57
|
-
return (index.h("div", { key: '
|
|
51
|
+
return (index.h("div", { key: 'a7c717751195403b664b07491a8301dc531779bd', class: index$1.cls("db-custom-button", this.className), ref: (el) => {
|
|
58
52
|
this._ref = el;
|
|
59
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": index$1.getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-no-text": index$1.getBooleanAsString(this.noText) }, index.h("slot", { key: '
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": index$1.getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-no-text": index$1.getBooleanAsString(this.noText) }, index.h("slot", { key: '7d181ecb68722367d526634fe52afe164117894a' })));
|
|
60
54
|
}
|
|
61
|
-
get rootElement() { return index.getElement(this); }
|
|
62
55
|
};
|
|
63
56
|
|
|
64
57
|
exports.db_custom_button = DBCustomButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
var constants = require('./constants-bMY2_d8A.js');
|
|
6
6
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
@@ -47,21 +47,14 @@ const DBCustomSelectDropdown = class {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
componentDidLoad() {
|
|
50
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
51
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
52
|
-
if (connectedElement) {
|
|
53
|
-
connectedElement.remove();
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
50
|
this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
|
|
57
51
|
}
|
|
58
52
|
render() {
|
|
59
53
|
var _a, _b;
|
|
60
|
-
return (index.h("article", { key: '
|
|
54
|
+
return (index.h("article", { key: '666781dcaef33e70aeb2378c19dccf9e0502be81', class: index$1.cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
|
|
61
55
|
this._ref = el;
|
|
62
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, index.h("slot", { key: '
|
|
56
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, index.h("slot", { key: '2587222810ae1534d3c8070f1003820a22429ae9' })));
|
|
63
57
|
}
|
|
64
|
-
get rootElement() { return index.getElement(this); }
|
|
65
58
|
};
|
|
66
59
|
|
|
67
60
|
const DBCustomSelectList = class {
|
|
@@ -105,21 +98,14 @@ const DBCustomSelectList = class {
|
|
|
105
98
|
}
|
|
106
99
|
}
|
|
107
100
|
componentDidLoad() {
|
|
108
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
109
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
110
|
-
if (connectedElement) {
|
|
111
|
-
connectedElement.remove();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
101
|
this.enableAttributePassing(this._ref, "db-custom-select-list");
|
|
115
102
|
}
|
|
116
103
|
render() {
|
|
117
104
|
var _a, _b;
|
|
118
|
-
return (index.h("div", { key: '
|
|
105
|
+
return (index.h("div", { key: 'dbfa17aa3707db35d7b3c4b8bac3a4a8e45ea352', class: index$1.cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
119
106
|
this._ref = el;
|
|
120
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '
|
|
107
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '241c4d3e9169ba9de06492c1e9bad11df103260a' }, index.h("slot", { key: 'dd407c533d531e58f4eed08895591898f1ec7621' }))));
|
|
121
108
|
}
|
|
122
|
-
get rootElement() { return index.getElement(this); }
|
|
123
109
|
};
|
|
124
110
|
|
|
125
111
|
const DBCustomSelectListItem = class {
|
|
@@ -183,25 +169,18 @@ const DBCustomSelectListItem = class {
|
|
|
183
169
|
this.watch0Fn();
|
|
184
170
|
}
|
|
185
171
|
componentDidLoad() {
|
|
186
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
187
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
188
|
-
if (connectedElement) {
|
|
189
|
-
connectedElement.remove();
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
172
|
this.enableAttributePassing(this._ref, "db-custom-select-list-item");
|
|
193
173
|
this.watch0Fn();
|
|
194
174
|
}
|
|
195
175
|
render() {
|
|
196
176
|
var _a, _b;
|
|
197
|
-
return (index.h("li", { key: '
|
|
177
|
+
return (index.h("li", { key: '6b727336eecb62e312f2cf7afc18686d1e590b61', class: index$1.cls("db-custom-select-list-item", this.className, {
|
|
198
178
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
199
179
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
200
180
|
}), ref: (el) => {
|
|
201
181
|
this._ref = el;
|
|
202
182
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": index$1.getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (index.h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, index.h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : null, index.h("slot", null))) : (index.h("span", null, this.groupTitle))));
|
|
203
183
|
}
|
|
204
|
-
get rootElement() { return index.getElement(this); }
|
|
205
184
|
static get watchers() { return {
|
|
206
185
|
"isGroupTitle": [{
|
|
207
186
|
"watch0": 0
|
|
@@ -407,12 +386,6 @@ const DBInput = class {
|
|
|
407
386
|
this.watch4Fn();
|
|
408
387
|
}
|
|
409
388
|
componentDidLoad() {
|
|
410
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
411
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
412
|
-
if (connectedElement) {
|
|
413
|
-
connectedElement.remove();
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
389
|
this.enableAttributePassing(this._ref, "db-input");
|
|
417
390
|
this.resetIds();
|
|
418
391
|
this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
|
|
@@ -428,7 +401,7 @@ const DBInput = class {
|
|
|
428
401
|
}
|
|
429
402
|
render() {
|
|
430
403
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
431
|
-
return (index.h("div", { key: '
|
|
404
|
+
return (index.h("div", { key: 'b2b30122374389f0ce7cd686adeebd544d739866', class: index$1.cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-show-icon": index$1.getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing) }, index.h("label", { key: 'b7194b6d956d72f498443792b34f08e9c7c4f9f5', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL), index.h("input", { key: '73e36e11d4634eda85bfe9abe646f9e9f95e6cef', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
432
405
|
this._ref = el;
|
|
433
406
|
}, id: this._id, name: this.name, type: this.type || "text", multiple: index$1.getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : constants.DEFAULT_PLACEHOLDER, disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), step: index$1.getStep(this.step), value: (_f = (_e = this.value) !== null && _e !== void 0 ? _e : this._value) !== null && _f !== void 0 ? _f : "", maxLength: index$1.getNumber(this.maxLength, this.maxlength), minLength: index$1.getNumber(this.minLength, this.minlength), max: index$1.getInputValue(this.max, this.type), min: index$1.getInputValue(this.min, this.type), readOnly: index$1.getBoolean(this.readOnly, "readOnly") ||
|
|
434
407
|
index$1.getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: index$1.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": (_g = this.ariaDescribedBy) !== null && _g !== void 0 ? _g : this._descByIds, role: [
|
|
@@ -440,9 +413,8 @@ const DBInput = class {
|
|
|
440
413
|
"color",
|
|
441
414
|
].includes((_h = this.type) !== null && _h !== void 0 ? _h : "") && index$1.isIOSSafari()
|
|
442
415
|
? "textbox"
|
|
443
|
-
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_j = this.getDataList()) === null || _j === void 0 ? void 0 : _j.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: '
|
|
416
|
+
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_j = this.getDataList()) === null || _j === void 0 ? void 0 : _j.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: 'a699c5b648a73eb17f0836def1b1c2a005bf7943' }), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '60d2b6b280bfb6258c1a76601123dbb0aa041547', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), index.h("span", { key: '044819a1c744e3d31308e771eeff1c0adc674024', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
444
417
|
}
|
|
445
|
-
get rootElement() { return index.getElement(this); }
|
|
446
418
|
static get watchers() { return {
|
|
447
419
|
"id": [{
|
|
448
420
|
"watch0": 0
|
|
@@ -524,21 +496,14 @@ const DBTag = class {
|
|
|
524
496
|
}
|
|
525
497
|
}
|
|
526
498
|
componentDidLoad() {
|
|
527
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
528
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
529
|
-
if (connectedElement) {
|
|
530
|
-
connectedElement.remove();
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
499
|
this.enableAttributePassing(this._ref, "db-tag");
|
|
534
500
|
}
|
|
535
501
|
render() {
|
|
536
502
|
var _a, _b, _c;
|
|
537
|
-
return (index.h("div", { key: '
|
|
503
|
+
return (index.h("div", { key: '0f44c340afdd993c4f583c23087bf008cb64bb04', class: index$1.cls("db-tag", this.className), ref: (el) => {
|
|
538
504
|
this._ref = el;
|
|
539
|
-
}, 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": index$1.getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-no-text": index$1.getBooleanAsString(this.noText), "data-overflow": index$1.getBooleanAsString(this.overflow) }, index.h("slot", { key: '
|
|
505
|
+
}, 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": index$1.getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-no-text": index$1.getBooleanAsString(this.noText), "data-overflow": index$1.getBooleanAsString(this.overflow) }, index.h("slot", { key: '9e4388656037b233763783ba6e771d30f8302f5c', name: "content" }), this.text ? this.text : null, index.h("slot", { key: 'e53a5fc3a2f9d5193a73f6c6256aac900df60c74' }), this.behavior === "removable" ? (index.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) }, index.h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
|
|
540
506
|
}
|
|
541
|
-
get rootElement() { return index.getElement(this); }
|
|
542
507
|
};
|
|
543
508
|
|
|
544
509
|
exports.db_custom_select_dropdown = DBCustomSelectDropdown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BoC-BWt4.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBCustomSelectFormField = class {
|
|
@@ -44,21 +44,14 @@ const DBCustomSelectFormField = class {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
componentDidLoad() {
|
|
47
|
-
if (document && this.rootElement && this.rootElement.dataset.connect) {
|
|
48
|
-
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
49
|
-
if (connectedElement) {
|
|
50
|
-
connectedElement.remove();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
47
|
this.enableAttributePassing(this._ref, "db-custom-select-form-field");
|
|
54
48
|
}
|
|
55
49
|
render() {
|
|
56
50
|
var _a, _b;
|
|
57
|
-
return (index.h("summary", { key: '
|
|
51
|
+
return (index.h("summary", { key: '6e319e52a2daf3966edf7d8ebc3febb10c8a8857', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
58
52
|
this._ref = el;
|
|
59
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: '
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: '05a393b0ff51cc37aff8d237b0a8101f4b352261' })));
|
|
60
54
|
}
|
|
61
|
-
get rootElement() { return index.getElement(this); }
|
|
62
55
|
};
|
|
63
56
|
|
|
64
57
|
exports.db_custom_select_form_field = DBCustomSelectFormField;
|