@db-ux/wc-core-components 4.9.1 → 4.10.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 +11 -1
- package/README.md +114 -25
- package/bundle/db-accordion-item.d.ts +11 -0
- package/bundle/db-accordion-item.js +1 -0
- package/bundle/db-accordion.d.ts +11 -0
- package/bundle/db-accordion.js +1 -0
- package/bundle/db-badge.d.ts +11 -0
- package/bundle/db-badge.js +1 -0
- package/bundle/db-brand.d.ts +11 -0
- package/bundle/db-brand.js +1 -0
- package/bundle/db-button.d.ts +11 -0
- package/bundle/db-button.js +1 -0
- package/bundle/db-card.d.ts +11 -0
- package/bundle/db-card.js +1 -0
- package/bundle/db-checkbox.d.ts +11 -0
- package/bundle/db-checkbox.js +1 -0
- package/bundle/db-custom-button.d.ts +11 -0
- package/bundle/db-custom-button.js +1 -0
- package/bundle/db-custom-select-dropdown.d.ts +11 -0
- package/bundle/db-custom-select-dropdown.js +1 -0
- package/bundle/db-custom-select-form-field.d.ts +11 -0
- package/bundle/db-custom-select-form-field.js +1 -0
- package/bundle/db-custom-select-list-item.d.ts +11 -0
- package/bundle/db-custom-select-list-item.js +1 -0
- package/bundle/db-custom-select-list.d.ts +11 -0
- package/bundle/db-custom-select-list.js +1 -0
- package/bundle/db-custom-select.d.ts +11 -0
- package/bundle/db-custom-select.js +1 -0
- package/bundle/db-divider.d.ts +11 -0
- package/bundle/db-divider.js +1 -0
- package/bundle/db-drawer.d.ts +11 -0
- package/bundle/db-drawer.js +1 -0
- package/bundle/db-header.d.ts +11 -0
- package/bundle/db-header.js +1 -0
- package/bundle/db-icon.d.ts +11 -0
- package/bundle/db-icon.js +1 -0
- package/bundle/db-infotext.d.ts +11 -0
- package/bundle/db-infotext.js +1 -0
- package/bundle/db-input.d.ts +11 -0
- package/bundle/db-input.js +1 -0
- package/bundle/db-link.d.ts +11 -0
- package/bundle/db-link.js +1 -0
- package/bundle/db-navigation-item.d.ts +11 -0
- package/bundle/db-navigation-item.js +1 -0
- package/bundle/db-navigation.d.ts +11 -0
- package/bundle/db-navigation.js +1 -0
- package/bundle/db-notification.d.ts +11 -0
- package/bundle/db-notification.js +1 -0
- package/bundle/db-page.d.ts +11 -0
- package/bundle/db-page.js +1 -0
- package/bundle/db-popover.d.ts +11 -0
- package/bundle/db-popover.js +1 -0
- package/bundle/db-radio.d.ts +11 -0
- package/bundle/db-radio.js +1 -0
- package/bundle/db-section.d.ts +11 -0
- package/bundle/db-section.js +1 -0
- package/bundle/db-select.d.ts +11 -0
- package/bundle/db-select.js +1 -0
- package/bundle/db-stack.d.ts +11 -0
- package/bundle/db-stack.js +1 -0
- package/bundle/db-switch.d.ts +11 -0
- package/bundle/db-switch.js +1 -0
- package/bundle/db-tab-item.d.ts +11 -0
- package/bundle/db-tab-item.js +1 -0
- package/bundle/db-tab-list.d.ts +11 -0
- package/bundle/db-tab-list.js +1 -0
- package/bundle/db-tab-panel.d.ts +11 -0
- package/bundle/db-tab-panel.js +1 -0
- package/bundle/db-tabs.d.ts +11 -0
- package/bundle/db-tabs.js +1 -0
- package/bundle/db-tag.d.ts +11 -0
- package/bundle/db-tag.js +1 -0
- package/bundle/db-textarea.d.ts +11 -0
- package/bundle/db-textarea.js +1 -0
- package/bundle/db-tooltip.d.ts +11 -0
- package/bundle/db-tooltip.js +1 -0
- package/bundle/index.d.ts +47 -0
- package/bundle/index.js +1 -0
- package/bundle/p-4TaCoruo.js +1 -0
- package/bundle/p-4nwUOzw7.js +1 -0
- package/bundle/p-BJJFATCC.js +1 -0
- package/bundle/p-BdL-nI5y.js +1 -0
- package/bundle/p-BuBrj57D.js +1 -0
- package/bundle/p-CCbaTFJ9.js +1 -0
- package/bundle/p-CEiQBevg.js +1 -0
- package/bundle/p-CV8l9qaA.js +1 -0
- package/bundle/p-CmqAwQNR.js +1 -0
- package/bundle/p-D4Ym01qf.js +1 -0
- package/bundle/p-DE_eDJiD.js +1 -0
- package/bundle/p-DOPXnIzL.js +1 -0
- package/bundle/p-DS39nEhJ.js +1 -0
- package/bundle/p-DVYa1bHg.js +1 -0
- package/bundle/p-DwwxAylo.js +1 -0
- package/bundle/p-QNp8H1KD.js +1 -0
- package/bundle/p-_2t1bnPD.js +1 -0
- package/bundle/p-bzxfqhtq.js +1 -0
- package/bundle/p-e18AQLns.js +1 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +26 -4
- package/dist/cjs/db-accordion.cjs.entry.js +10 -3
- package/dist/cjs/db-badge.cjs.entry.js +10 -3
- package/dist/cjs/db-brand.cjs.entry.js +10 -3
- package/dist/cjs/db-button.cjs.entry.js +10 -3
- package/dist/cjs/db-card.cjs.entry.js +10 -3
- package/dist/cjs/db-checkbox.cjs.entry.js +10 -3
- package/dist/cjs/db-custom-button.cjs.entry.js +10 -3
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +45 -10
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +10 -3
- package/dist/cjs/db-custom-select.cjs.entry.js +13 -6
- package/dist/cjs/db-divider.cjs.entry.js +9 -2
- package/dist/cjs/db-drawer.cjs.entry.js +14 -7
- package/dist/cjs/db-header.cjs.entry.js +10 -3
- package/dist/cjs/db-icon.cjs.entry.js +10 -3
- package/dist/cjs/db-infotext.cjs.entry.js +10 -3
- package/dist/cjs/db-link.cjs.entry.js +10 -3
- package/dist/cjs/db-navigation-item.cjs.entry.js +11 -3
- package/dist/cjs/db-navigation.cjs.entry.js +10 -3
- package/dist/cjs/db-notification.cjs.entry.js +10 -3
- package/dist/cjs/db-page.cjs.entry.js +10 -3
- package/dist/cjs/db-popover.cjs.entry.js +10 -3
- package/dist/cjs/db-radio.cjs.entry.js +10 -3
- package/dist/cjs/db-section.cjs.entry.js +10 -3
- package/dist/cjs/db-select.cjs.entry.js +10 -3
- package/dist/cjs/db-stack.cjs.entry.js +10 -3
- package/dist/cjs/db-switch.cjs.entry.js +10 -3
- package/dist/cjs/db-tab-item_3.cjs.entry.js +28 -7
- package/dist/cjs/db-tabs.cjs.entry.js +10 -3
- package/dist/cjs/db-textarea.cjs.entry.js +10 -3
- package/dist/cjs/db-tooltip.cjs.entry.js +10 -3
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/{index-BoC-BWt4.js → index-DLuhzJ0p.js} +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/accordion/accordion.js +9 -2
- package/dist/collection/components/accordion-item/accordion-item.js +53 -5
- package/dist/collection/components/badge/badge.js +9 -2
- package/dist/collection/components/brand/brand.js +9 -2
- package/dist/collection/components/button/button.js +10 -3
- package/dist/collection/components/card/card.js +10 -3
- package/dist/collection/components/checkbox/checkbox.js +10 -3
- package/dist/collection/components/custom-button/custom-button.js +9 -2
- package/dist/collection/components/custom-select/custom-select.js +13 -6
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +9 -2
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +9 -2
- package/dist/collection/components/custom-select-list/custom-select-list.js +9 -2
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +9 -2
- package/dist/collection/components/divider/divider.js +8 -1
- package/dist/collection/components/drawer/drawer.js +15 -8
- package/dist/collection/components/header/header.js +20 -13
- package/dist/collection/components/icon/icon.js +9 -2
- package/dist/collection/components/infotext/infotext.js +9 -2
- package/dist/collection/components/input/input.js +10 -3
- package/dist/collection/components/link/link.js +9 -2
- package/dist/collection/components/navigation/navigation.js +9 -2
- package/dist/collection/components/navigation-item/navigation-item.js +37 -3
- package/dist/collection/components/notification/notification.js +10 -3
- package/dist/collection/components/page/page.js +9 -2
- package/dist/collection/components/popover/popover.js +9 -2
- package/dist/collection/components/radio/radio.js +10 -3
- package/dist/collection/components/section/section.js +9 -2
- package/dist/collection/components/select/select.js +10 -3
- package/dist/collection/components/stack/stack.js +9 -2
- package/dist/collection/components/switch/switch.js +10 -3
- package/dist/collection/components/tab-item/tab-item.js +10 -3
- package/dist/collection/components/tab-list/tab-list.js +9 -2
- package/dist/collection/components/tab-panel/tab-panel.js +9 -2
- package/dist/collection/components/tabs/tabs.js +10 -3
- package/dist/collection/components/tag/tag.js +10 -3
- package/dist/collection/components/textarea/textarea.js +10 -3
- package/dist/collection/components/tooltip/tooltip.js +9 -2
- package/dist/custom-elements.json +2276 -36
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/p-0ae85978.entry.js +1 -0
- package/dist/db-ux/p-13afb969.entry.js +1 -0
- package/dist/db-ux/p-174d2486.entry.js +1 -0
- package/dist/db-ux/p-28c257d5.entry.js +1 -0
- package/dist/db-ux/p-293510ca.entry.js +1 -0
- package/dist/db-ux/p-331ad11c.entry.js +1 -0
- package/dist/db-ux/p-339a6ca0.entry.js +1 -0
- package/dist/db-ux/p-34e21986.entry.js +1 -0
- package/dist/db-ux/p-368d25ab.entry.js +1 -0
- package/dist/db-ux/p-4580938f.entry.js +1 -0
- package/dist/db-ux/p-47910fdc.entry.js +1 -0
- package/dist/db-ux/p-5d2e2a8d.entry.js +1 -0
- package/dist/db-ux/p-691ae341.entry.js +1 -0
- package/dist/db-ux/p-7c58337d.entry.js +1 -0
- package/dist/db-ux/p-7f4d00df.entry.js +1 -0
- package/dist/db-ux/p-9712c9c9.entry.js +1 -0
- package/dist/db-ux/p-9b907b56.entry.js +1 -0
- package/dist/db-ux/p-9c3ff50e.entry.js +1 -0
- package/dist/db-ux/p-Cr2cgn5B.js +2 -0
- package/dist/db-ux/p-a56886ea.entry.js +1 -0
- package/dist/db-ux/p-a617da42.entry.js +1 -0
- package/dist/db-ux/p-aad0c4ef.entry.js +1 -0
- package/dist/db-ux/p-ae3183f0.entry.js +1 -0
- package/dist/db-ux/p-ae457f95.entry.js +1 -0
- package/dist/db-ux/p-b1e7ba0f.entry.js +1 -0
- package/dist/db-ux/p-cac5b161.entry.js +1 -0
- package/dist/db-ux/p-dcf02351.entry.js +1 -0
- package/dist/db-ux/p-e46dc907.entry.js +1 -0
- package/dist/db-ux/p-f27c6655.entry.js +1 -0
- package/dist/db-ux/p-f583f756.entry.js +1 -0
- package/dist/db-ux/p-f65e1db8.entry.js +1 -0
- package/dist/db-ux/p-fe5d3eb6.entry.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +27 -5
- package/dist/esm/db-accordion.entry.js +10 -3
- package/dist/esm/db-badge.entry.js +10 -3
- package/dist/esm/db-brand.entry.js +10 -3
- package/dist/esm/db-button.entry.js +10 -3
- package/dist/esm/db-card.entry.js +10 -3
- package/dist/esm/db-checkbox.entry.js +10 -3
- package/dist/esm/db-custom-button.entry.js +10 -3
- package/dist/esm/db-custom-select-dropdown_5.entry.js +45 -10
- package/dist/esm/db-custom-select-form-field.entry.js +10 -3
- package/dist/esm/db-custom-select.entry.js +13 -6
- package/dist/esm/db-divider.entry.js +9 -2
- package/dist/esm/db-drawer.entry.js +15 -8
- package/dist/esm/db-header.entry.js +10 -3
- package/dist/esm/db-icon.entry.js +10 -3
- package/dist/esm/db-infotext.entry.js +10 -3
- package/dist/esm/db-link.entry.js +10 -3
- package/dist/esm/db-navigation-item.entry.js +11 -3
- package/dist/esm/db-navigation.entry.js +10 -3
- package/dist/esm/db-notification.entry.js +10 -3
- package/dist/esm/db-page.entry.js +10 -3
- package/dist/esm/db-popover.entry.js +10 -3
- package/dist/esm/db-radio.entry.js +10 -3
- package/dist/esm/db-section.entry.js +10 -3
- package/dist/esm/db-select.entry.js +10 -3
- package/dist/esm/db-stack.entry.js +10 -3
- package/dist/esm/db-switch.entry.js +10 -3
- package/dist/esm/db-tab-item_3.entry.js +28 -7
- package/dist/esm/db-tabs.entry.js +10 -3
- package/dist/esm/db-textarea.entry.js +10 -3
- package/dist/esm/db-tooltip.entry.js +10 -3
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/{index-K4o-AcjZ.js → index-Cr2cgn5B.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/accordion/accordion.d.ts +1 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +4 -0
- package/dist/types/components/accordion-item/model.d.ts +4 -0
- package/dist/types/components/badge/badge.d.ts +1 -0
- package/dist/types/components/brand/brand.d.ts +1 -0
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/card/card.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +1 -0
- package/dist/types/components/custom-button/custom-button.d.ts +1 -0
- package/dist/types/components/custom-select/custom-select.d.ts +1 -0
- package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -0
- package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +1 -0
- package/dist/types/components/custom-select-list/custom-select-list.d.ts +1 -0
- package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -0
- package/dist/types/components/divider/divider.d.ts +1 -0
- package/dist/types/components/drawer/drawer.d.ts +1 -0
- package/dist/types/components/header/header.d.ts +3 -2
- package/dist/types/components/icon/icon.d.ts +1 -0
- package/dist/types/components/infotext/infotext.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +1 -0
- package/dist/types/components/link/link.d.ts +1 -0
- package/dist/types/components/navigation/navigation.d.ts +1 -0
- package/dist/types/components/navigation-item/model.d.ts +4 -0
- package/dist/types/components/navigation-item/navigation-item.d.ts +2 -0
- package/dist/types/components/notification/notification.d.ts +1 -0
- package/dist/types/components/page/page.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +1 -0
- package/dist/types/components/radio/radio.d.ts +1 -0
- package/dist/types/components/section/section.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +1 -0
- package/dist/types/components/stack/stack.d.ts +1 -0
- package/dist/types/components/switch/switch.d.ts +1 -0
- package/dist/types/components/tab-item/tab-item.d.ts +1 -0
- package/dist/types/components/tab-list/tab-list.d.ts +1 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +1 -0
- package/dist/types/components/tabs/tabs.d.ts +1 -0
- package/dist/types/components/tag/tag.d.ts +1 -0
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +1 -0
- package/dist/types/components.d.ts +7 -1
- package/dist/types/shared/figma.d.ts +12 -6
- package/dist/vscode.html-custom-data.json +16 -6
- package/dist/web-types.json +1032 -248
- package/package.json +15 -9
- package/dist/db-ux/p-1b5d76a8.entry.js +0 -1
- package/dist/db-ux/p-296f989b.entry.js +0 -1
- package/dist/db-ux/p-3ae13ff1.entry.js +0 -1
- package/dist/db-ux/p-43f94079.entry.js +0 -1
- package/dist/db-ux/p-54508bad.entry.js +0 -1
- package/dist/db-ux/p-55e8b0b4.entry.js +0 -1
- package/dist/db-ux/p-69a59559.entry.js +0 -1
- package/dist/db-ux/p-6e7126c6.entry.js +0 -1
- package/dist/db-ux/p-7bed4611.entry.js +0 -1
- package/dist/db-ux/p-8ce816c0.entry.js +0 -1
- package/dist/db-ux/p-8e080864.entry.js +0 -1
- package/dist/db-ux/p-K4o-AcjZ.js +0 -2
- package/dist/db-ux/p-a0eccc08.entry.js +0 -1
- package/dist/db-ux/p-a7c6ec23.entry.js +0 -1
- package/dist/db-ux/p-a82c9875.entry.js +0 -1
- package/dist/db-ux/p-ae445d5d.entry.js +0 -1
- package/dist/db-ux/p-b33abf8d.entry.js +0 -1
- package/dist/db-ux/p-b8ab2bd4.entry.js +0 -1
- package/dist/db-ux/p-bb7c59d2.entry.js +0 -1
- package/dist/db-ux/p-bc510135.entry.js +0 -1
- package/dist/db-ux/p-c85d4be6.entry.js +0 -1
- package/dist/db-ux/p-d206ac6f.entry.js +0 -1
- package/dist/db-ux/p-e22b3725.entry.js +0 -1
- package/dist/db-ux/p-e432c81f.entry.js +0 -1
- package/dist/db-ux/p-e64606e2.entry.js +0 -1
- package/dist/db-ux/p-e8ee154f.entry.js +0 -1
- package/dist/db-ux/p-efb9d9bc.entry.js +0 -1
- package/dist/db-ux/p-f35229a1.entry.js +0 -1
- package/dist/db-ux/p-f582c886.entry.js +0 -1
- package/dist/db-ux/p-f6be9a48.entry.js +0 -1
- package/dist/db-ux/p-fb39506f.entry.js +0 -1
- package/dist/db-ux/p-fb9500ba.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-Cr2cgn5B.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
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, m as getSearchInput, u as uuid, g as getBooleanAsString, e as getBoolean, l as getHideProp, c as cls } from './index-xkoBSP8R.js';
|
|
4
4
|
import { D as DocumentClickListener } from './document-click-listener-D7W_VE5O.js';
|
|
@@ -753,6 +753,12 @@ const DBCustomSelect = class {
|
|
|
753
753
|
this.watch18Fn();
|
|
754
754
|
}
|
|
755
755
|
componentDidLoad() {
|
|
756
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
757
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
758
|
+
if (connectedElement) {
|
|
759
|
+
connectedElement.remove();
|
|
760
|
+
}
|
|
761
|
+
}
|
|
756
762
|
this.enableAttributePassing(this._ref, "db-custom-select");
|
|
757
763
|
this.resetIds();
|
|
758
764
|
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
@@ -792,19 +798,19 @@ const DBCustomSelect = class {
|
|
|
792
798
|
}
|
|
793
799
|
render() {
|
|
794
800
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
795
|
-
return (h("div", { key: '
|
|
801
|
+
return (h("div", { key: '09c22c7eef838650142ba6cf5a9f7a5c04e45d53', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
796
802
|
this._ref = el;
|
|
797
803
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
798
804
|
this.selectedType === "tag" &&
|
|
799
805
|
this.multiple
|
|
800
806
|
? "above"
|
|
801
|
-
: 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), "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: '377317d94a5689926923ee92eb0399a6e0085177', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '016dc1cebfeb8e92a08286e445d2da2989e630d7', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
802
808
|
this.selectRef = el;
|
|
803
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)
|
|
804
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))))
|
|
805
|
-
: null)), h("details", { key: '
|
|
811
|
+
: null)), h("details", { key: 'eb36c96b7c443289a1464a4d25a7f189c852b7ab', ref: (el) => {
|
|
806
812
|
this.detailsRef = el;
|
|
807
|
-
}, 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: '2ce1371b5683aa1162167a7e9dd9950e075920cf' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.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"), 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) => {
|
|
808
814
|
this.searchInputRef = el;
|
|
809
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
|
|
810
816
|
? this._infoTextId
|
|
@@ -814,8 +820,9 @@ const DBCustomSelect = class {
|
|
|
814
820
|
this.selectAllRef = el;
|
|
815
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
|
|
816
822
|
? this.getOptionLabel(option)
|
|
817
|
-
: 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: 'ab092f47ad6734f696000a852fc8e3a825a6d054', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(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: 'c134d746d6e06109551880446ff27e791fc482b1', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'b5b1291d952eaea52a176a3b8c9d9ea7a0b57e34', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
818
824
|
}
|
|
825
|
+
get rootElement() { return getElement(this); }
|
|
819
826
|
static get watchers() { return {
|
|
820
827
|
"id": [{
|
|
821
828
|
"watch0": 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBDivider = class {
|
|
@@ -42,14 +42,21 @@ const DBDivider = class {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
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
|
+
}
|
|
45
51
|
this.enableAttributePassing(this._ref, "db-divider");
|
|
46
52
|
}
|
|
47
53
|
render() {
|
|
48
54
|
var _a, _b;
|
|
49
|
-
return (h("div", { key: '
|
|
55
|
+
return (h("div", { key: 'fff7e6137a97f6cc76eed42c2a5225348d0f78a0', class: cls("db-divider", this.className), ref: (el) => {
|
|
50
56
|
this._ref = el;
|
|
51
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 }));
|
|
52
58
|
}
|
|
59
|
+
get rootElement() { return getElement(this); }
|
|
53
60
|
};
|
|
54
61
|
|
|
55
62
|
export { DBDivider as db_divider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-Cr2cgn5B.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 } from './index-xkoBSP8R.js';
|
|
3
|
+
import { o as isKeyboardEvent, d as delay, g as getBooleanAsString, c as cls, e as getBoolean } from './index-xkoBSP8R.js';
|
|
4
4
|
|
|
5
5
|
const DBDrawer = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -38,8 +38,8 @@ const DBDrawer = class {
|
|
|
38
38
|
}
|
|
39
39
|
handleDialogOpen() {
|
|
40
40
|
if (this._ref) {
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
41
|
+
const dialogOpen = getBoolean(this.open, "open");
|
|
42
|
+
if (dialogOpen && !this._ref.open) {
|
|
43
43
|
if (this.dialogContainerRef) {
|
|
44
44
|
this.dialogContainerRef.removeAttribute("data-transition");
|
|
45
45
|
}
|
|
@@ -58,7 +58,7 @@ const DBDrawer = class {
|
|
|
58
58
|
}
|
|
59
59
|
}, 1);
|
|
60
60
|
}
|
|
61
|
-
if (!
|
|
61
|
+
if (!dialogOpen && this._ref.open) {
|
|
62
62
|
if (this.dialogContainerRef) {
|
|
63
63
|
this.dialogContainerRef.dataset["transition"] =
|
|
64
64
|
"close";
|
|
@@ -125,6 +125,12 @@ const DBDrawer = class {
|
|
|
125
125
|
this.watch1Fn();
|
|
126
126
|
}
|
|
127
127
|
componentDidLoad() {
|
|
128
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
129
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
130
|
+
if (connectedElement) {
|
|
131
|
+
connectedElement.remove();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
128
134
|
this.enableAttributePassing(this._ref, "db-drawer");
|
|
129
135
|
this.handleDialogOpen();
|
|
130
136
|
this.initialized = true;
|
|
@@ -133,12 +139,13 @@ const DBDrawer = class {
|
|
|
133
139
|
}
|
|
134
140
|
render() {
|
|
135
141
|
var _a, _b, _c;
|
|
136
|
-
return (h("dialog", { key: '
|
|
142
|
+
return (h("dialog", { key: 'a09369527805c993297bc3d27cf1f03c5e06f232', 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) => {
|
|
137
143
|
this._ref = el;
|
|
138
|
-
}, 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: 'cb35fccd92fcf6bab4d6027c29fc2ba0bb25e9ac', class: cls("db-drawer-container", this.className), ref: (el) => {
|
|
139
145
|
this.dialogContainerRef = el;
|
|
140
|
-
}, "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) }, h("header", { key: '20a175ba0707e3cc207e1e57dd925b8234b86877', class: "db-drawer-header" }, h("div", { key: 'd317b29ff0d704aa50b3fbd0a8c86b94f7ab1dfa', class: "db-drawer-header-text" }, h("slot", { key: '1456a65346ebd9d52dafe48022cc0b343216cc09', name: "drawerHeader" })), h("db-button", { key: '6741766807bb56a24ed7bb385240093a3a1e5f7f', 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: 'dea536d8bd27dccdb7edd476defc68beed65254f', class: "db-drawer-content" }, h("slot", { key: 'bcb4ed27199eb79f9d6c13da82d7be87d2f5e54b' })))));
|
|
141
147
|
}
|
|
148
|
+
get rootElement() { return getElement(this); }
|
|
142
149
|
static get watchers() { return {
|
|
143
150
|
"open": [{
|
|
144
151
|
"watch0": 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { p as DEFAULT_BURGER_MENU } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { a as addAttributeToChildren, e as getBoolean, c as cls } from './index-xkoBSP8R.js';
|
|
4
4
|
import { i as isEventTargetNavigationItem } from './navigation-Jh6m0eMk.js';
|
|
@@ -76,16 +76,23 @@ const DBHeader = class {
|
|
|
76
76
|
this.watch0Fn();
|
|
77
77
|
}
|
|
78
78
|
componentDidLoad() {
|
|
79
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
80
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
81
|
+
if (connectedElement) {
|
|
82
|
+
connectedElement.remove();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
79
85
|
this.enableAttributePassing(this._ref, "db-header");
|
|
80
86
|
this.initialized = true;
|
|
81
87
|
this.watch0Fn();
|
|
82
88
|
}
|
|
83
89
|
render() {
|
|
84
90
|
var _a, _b, _c;
|
|
85
|
-
return (h("header", { key: '
|
|
91
|
+
return (h("header", { key: 'e7aec08f10ae9d575b3f845be29ee19505df9216', class: cls("db-header", this.className), ref: (el) => {
|
|
86
92
|
this._ref = el;
|
|
87
|
-
}, 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("
|
|
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: 'bdd8c85393260628938c33bfa1e8573d55a6d730', class: "db-header-meta-navigation" }, h("slot", { key: '42854d3f106c63bbc300458bdcd1cee48a7209be', name: "metaNavigation" })), h("div", { key: '7ef93a1cb414b44657aaed9d7e4779690ca09cf5', class: "db-header-navigation-bar" }, h("div", { key: '1e59f2987b83fe87cd22ae6bc95ac855c061869d', class: "db-header-brand-container" }, h("slot", { key: 'a610bb49cd670896fa1b980ffcdcbd40c2918b4e', name: "brand" })), h("div", { key: '1b94bf4ad2ae622875b7192812f9940e2a87c1e3', class: "db-header-navigation-container" }, h("div", { key: 'f57aac0c4268bf285de0c07bab40a736f0ca42a4', class: "db-header-navigation" }, h("slot", { key: '45d426690fb2dcb6da32f6f646f6b1a932670cd2' })), h("div", { key: 'e60bbd749efc91d9a00a54e3cbc6680e60f6e598', class: "db-header-primary-action" }, h("slot", { key: 'a41128047bc8063c45c14ff3ec58d83b7edd8361', name: "primaryAction" }))), h("div", { key: '82e9141ac1ad7f3a33c9bf0c15ccf969ccd5983f', class: "db-header-action-container" }, h("div", { key: '3f3a5c503ecd11a0aff43623921bb185c59c1802', class: "db-header-burger-menu-container" }, h("db-button", { key: '6547cf5982c0739960b9aa4363ddb71f1423a55b', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : DEFAULT_BURGER_MENU)), h("div", { key: 'd2c691eb6980e0eeffa512ade5074400bd7973b8', class: "db-header-secondary-action" }, h("slot", { key: '6cc84b46d137ac21aa90c3f84a873febc6fa0dba', name: "secondaryAction" })))), h("db-drawer", { key: '0dc5a353f9365bd76df967cdb3fee20be89c9525', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: '3a28d35593fe006aa6269077466bd91f33d5f2e4', class: "db-header-drawer-navigation" }, h("div", { key: 'c42fff25d31fe234d841542b108805b0aa85e05c', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '0de07dfbb68d8b6fcec8cf11e6398566fcd45ae2' })), h("div", { key: '062baf6f3e503751017a3715142e1622c27423bf', class: "db-header-meta-navigation" }, h("slot", { key: '2e703195477c67270e9bfee04335321c52b9de4f', name: "metaNavigation" }))), h("div", { key: '028079c3fae38bc282d8b064e4515ab1c27aa45e', class: "db-header-secondary-action" }, h("slot", { key: '879378953f36c55b5489a157a81e62f188ab5fca', name: "secondaryAction" })))));
|
|
88
94
|
}
|
|
95
|
+
get rootElement() { return getElement(this); }
|
|
89
96
|
static get watchers() { return {
|
|
90
97
|
"initialized": [{
|
|
91
98
|
"watch0": 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBIcon = class {
|
|
@@ -42,14 +42,21 @@ const DBIcon = class {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
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
|
+
}
|
|
45
51
|
this.enableAttributePassing(this._ref, "db-icon");
|
|
46
52
|
}
|
|
47
53
|
render() {
|
|
48
54
|
var _a, _b;
|
|
49
|
-
return (h("span", { key: '
|
|
55
|
+
return (h("span", { key: '004fb7b91cd27bc452f4777dfd68183bd4bfeaab', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
50
56
|
this._ref = el;
|
|
51
|
-
}, 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: 'e9b5fbdefc6cf80abff634c60966ad719985e2be' })));
|
|
52
58
|
}
|
|
59
|
+
get rootElement() { return getElement(this); }
|
|
53
60
|
};
|
|
54
61
|
|
|
55
62
|
export { DBIcon as db_icon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBInfotext = class {
|
|
@@ -42,14 +42,21 @@ const DBInfotext = class {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
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
|
+
}
|
|
45
51
|
this.enableAttributePassing(this._ref, "db-infotext");
|
|
46
52
|
}
|
|
47
53
|
render() {
|
|
48
54
|
var _a, _b, _c;
|
|
49
|
-
return (h("span", { key: '
|
|
55
|
+
return (h("span", { key: '8336d336c2ea90300646a83257cab6f34dfe862a', class: cls("db-infotext", this.className), ref: (el) => {
|
|
50
56
|
this._ref = el;
|
|
51
|
-
}, 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), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : null, h("slot", { key: '1dd519913408aa16cce587ddaee31d3c3bae05b6' })));
|
|
52
58
|
}
|
|
59
|
+
get rootElement() { return getElement(this); }
|
|
53
60
|
};
|
|
54
61
|
|
|
55
62
|
export { DBInfotext as db_infotext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBLink = class {
|
|
@@ -42,14 +42,21 @@ const DBLink = class {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
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
|
+
}
|
|
45
51
|
this.enableAttributePassing(this._ref, "db-link");
|
|
46
52
|
}
|
|
47
53
|
render() {
|
|
48
54
|
var _a, _b, _c, _d;
|
|
49
|
-
return (h("a", { key: '
|
|
55
|
+
return (h("a", { key: '5dd3f3df5614e0e717feadc833d8fe2fe8825479', class: cls("db-link", this.className), ref: (el) => {
|
|
50
56
|
this._ref = el;
|
|
51
|
-
}, 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), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, 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, 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), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : null, h("slot", { key: 'c5dae4b61e3829e803a2ff89cfd0942cc4d6577d' })));
|
|
52
58
|
}
|
|
59
|
+
get rootElement() { return getElement(this); }
|
|
53
60
|
};
|
|
54
61
|
|
|
55
62
|
export { DBLink as db_link };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { n as DEFAULT_BACK } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { d as delay, e as getBoolean, u as uuid, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
4
4
|
import { N as NavigationItemSafeTriangle } from './navigation-Jh6m0eMk.js';
|
|
@@ -105,6 +105,12 @@ const DBNavigationItem = class {
|
|
|
105
105
|
}
|
|
106
106
|
componentDidLoad() {
|
|
107
107
|
var _a;
|
|
108
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
109
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
110
|
+
if (connectedElement) {
|
|
111
|
+
connectedElement.remove();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
108
114
|
this.enableAttributePassing(this._ref, "db-navigation-item");
|
|
109
115
|
this.initialized = true;
|
|
110
116
|
const subNavId = `sub-nav-${(_a = this.id) !== null && _a !== void 0 ? _a : uuid()}`;
|
|
@@ -115,10 +121,12 @@ const DBNavigationItem = class {
|
|
|
115
121
|
}
|
|
116
122
|
render() {
|
|
117
123
|
var _a, _b, _c;
|
|
118
|
-
return (h("li", { key: '
|
|
124
|
+
return (h("li", { key: '555c0472fdd1d6888dc4a0b699fc85bb21e73199', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
119
125
|
this._ref = el;
|
|
120
|
-
}, 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) }, !
|
|
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") &&
|
|
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))));
|
|
121
128
|
}
|
|
129
|
+
get rootElement() { return getElement(this); }
|
|
122
130
|
static get watchers() { return {
|
|
123
131
|
"subNavigationExpanded": [{
|
|
124
132
|
"watch0": 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBNavigation = class {
|
|
@@ -42,14 +42,21 @@ const DBNavigation = class {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
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
|
+
}
|
|
45
51
|
this.enableAttributePassing(this._ref, "db-navigation");
|
|
46
52
|
}
|
|
47
53
|
render() {
|
|
48
54
|
var _a, _b;
|
|
49
|
-
return (h("nav", { key: '
|
|
55
|
+
return (h("nav", { key: '33d5425a509a5d224245fcde89b66bb129d3fb57', class: cls("db-navigation", this.className), ref: (el) => {
|
|
50
56
|
this._ref = el;
|
|
51
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: '
|
|
57
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: '796fbbd89657a52bbd7e932efe96ff62726bf5ea' }, h("slot", { key: 'df8847f6522250c540acc1154201d1c6bfbbce07' }))));
|
|
52
58
|
}
|
|
59
|
+
get rootElement() { return getElement(this); }
|
|
53
60
|
};
|
|
54
61
|
|
|
55
62
|
export { DBNavigation as db_navigation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-xkoBSP8R.js';
|
|
4
4
|
|
|
@@ -52,18 +52,25 @@ const DBNotification = class {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
componentDidLoad() {
|
|
55
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
56
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
57
|
+
if (connectedElement) {
|
|
58
|
+
connectedElement.remove();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
55
61
|
this.enableAttributePassing(this._ref, "db-notification");
|
|
56
62
|
}
|
|
57
63
|
render() {
|
|
58
64
|
var _a, _b, _c;
|
|
59
|
-
return (h("div", { key: '
|
|
65
|
+
return (h("div", { key: '80b4682644b5cae7f09842e8683a9445f782055b', class: cls("db-notification", this.className), ref: (el) => {
|
|
60
66
|
this._ref = el;
|
|
61
67
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: getNotificationRole({
|
|
62
68
|
semantic: this.semantic,
|
|
63
69
|
role: this.role,
|
|
64
70
|
ariaLive: this.ariaLive,
|
|
65
|
-
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '
|
|
71
|
+
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '4fc52fd9fff6357307c4bdc102c03082688b44cf', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", { "data-area": "head" }, this.headline)) : null, h("div", { key: '6d61a4b4966795950a3da5dba130734bd0bbb2d9', "data-area": "content" }, this.text ? this.text : null, h("slot", { key: 'f4ca4c620e00a203da07c3d0ce2974ade705f489' })), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("time", { "data-area": "timestamp", dateTime: this.timestampDatetime }, this.timestamp)) : null, h("slot", { key: 'e1509dd146ff4288f96062e6286b47b495b388dc', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)) : null));
|
|
66
72
|
}
|
|
73
|
+
get rootElement() { return getElement(this); }
|
|
67
74
|
};
|
|
68
75
|
|
|
69
76
|
export { DBNotification as db_notification };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { c as cls, g as getBooleanAsString } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBPage = class {
|
|
@@ -43,6 +43,12 @@ const DBPage = class {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
componentDidLoad() {
|
|
46
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
47
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
48
|
+
if (connectedElement) {
|
|
49
|
+
connectedElement.remove();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
46
52
|
this.enableAttributePassing(this._ref, "db-page");
|
|
47
53
|
this.fontsLoaded = !this.fadeIn;
|
|
48
54
|
if (document && this.fadeIn) {
|
|
@@ -63,10 +69,11 @@ const DBPage = class {
|
|
|
63
69
|
}
|
|
64
70
|
render() {
|
|
65
71
|
var _a, _b;
|
|
66
|
-
return (h("div", { key: '
|
|
72
|
+
return (h("div", { key: 'ff82686603b48757d15136f99ffee2e8261a0868', class: cls("db-page", this.className), ref: (el) => {
|
|
67
73
|
this._ref = el;
|
|
68
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '
|
|
74
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: 'b545b6a529c6502b6d9acaf4349056f9b191b47f', name: "header" }), h("main", { key: '67fe344765eb3dabbb1e6882e653142522ba7e20', class: cls("db-main", this.mainClass) }, h("slot", { key: '5ab992699f2db9d811124d9ad0955e94c816896a' })), h("slot", { key: '2c0e00536dcac7decddc76aacc13b58989b02464', name: "footer" })));
|
|
69
75
|
}
|
|
76
|
+
get rootElement() { return getElement(this); }
|
|
70
77
|
};
|
|
71
78
|
|
|
72
79
|
export { DBPage as db_page };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { d as delay, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
import { D as DocumentScrollListener } from './document-scroll-listener-DOBe3Oa9.js';
|
|
4
4
|
import { b as handleFixedPopover } from './floating-components-DOPXnIzL.js';
|
|
@@ -161,6 +161,12 @@ const DBPopover = class {
|
|
|
161
161
|
this.watch1Fn();
|
|
162
162
|
}
|
|
163
163
|
componentDidLoad() {
|
|
164
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
165
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
166
|
+
if (connectedElement) {
|
|
167
|
+
connectedElement.remove();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
164
170
|
this.enableAttributePassing(this._ref, "db-popover");
|
|
165
171
|
this.initialized = true;
|
|
166
172
|
this.watch0Fn();
|
|
@@ -168,10 +174,11 @@ const DBPopover = class {
|
|
|
168
174
|
}
|
|
169
175
|
render() {
|
|
170
176
|
var _a, _b, _c;
|
|
171
|
-
return (h("div", { key: '
|
|
177
|
+
return (h("div", { key: '5695f78c16f768ca34b16c05167518c2a2e26c35', class: cls("db-popover", this.className), ref: (el) => {
|
|
172
178
|
this._ref = el;
|
|
173
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '
|
|
179
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'e765f506df650f9105ff6efb79c2d6fe36a48b91', name: "trigger" }), h("article", { key: '072c8716f82a49d319794e521f467d494fe4b313', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '3317509fd5cfbc56f9e0921f91e34520d9f93c87' }))));
|
|
174
180
|
}
|
|
181
|
+
get rootElement() { return getElement(this); }
|
|
175
182
|
static get watchers() { return {
|
|
176
183
|
"_ref": [{
|
|
177
184
|
"watch0": 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { u as uuid, e as getBoolean, l as getHideProp, c as cls, d as delay } from './index-xkoBSP8R.js';
|
|
3
3
|
import { b as addResetEventListener } from './form-components-D6LQfJvq.js';
|
|
4
4
|
|
|
@@ -113,6 +113,12 @@ const DBRadio = class {
|
|
|
113
113
|
this.watch2Fn();
|
|
114
114
|
}
|
|
115
115
|
componentDidLoad() {
|
|
116
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
117
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
118
|
+
if (connectedElement) {
|
|
119
|
+
connectedElement.remove();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
116
122
|
this.enableAttributePassing(this._ref, "db-radio");
|
|
117
123
|
this.initialized = true;
|
|
118
124
|
this.resetIds();
|
|
@@ -125,10 +131,11 @@ const DBRadio = class {
|
|
|
125
131
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
126
132
|
}
|
|
127
133
|
render() {
|
|
128
|
-
return (h("label", { key: '
|
|
134
|
+
return (h("label", { key: '1ff5543af917149d3d1f51a2c67c7686b55f8d11', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: '3409b94c081b36bd60ba84f8e6a4064e43e2ad50', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
129
135
|
this._ref = el;
|
|
130
|
-
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, h("slot", { key: '
|
|
136
|
+
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, h("slot", { key: 'c9850bcf9efb2e272e6ae8cc83ab92d62e095094' })));
|
|
131
137
|
}
|
|
138
|
+
get rootElement() { return getElement(this); }
|
|
132
139
|
static get watchers() { return {
|
|
133
140
|
"id": [{
|
|
134
141
|
"watch0": 0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBSection = class {
|
|
@@ -42,14 +42,21 @@ const DBSection = class {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
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
|
+
}
|
|
45
51
|
this.enableAttributePassing(this._ref, "db-section");
|
|
46
52
|
}
|
|
47
53
|
render() {
|
|
48
54
|
var _a, _b;
|
|
49
|
-
return (h("section", { key: '
|
|
55
|
+
return (h("section", { key: '03d6f7ed2eea5b1374d0f5be00d77e59897033ea', class: cls("db-section", this.className), ref: (el) => {
|
|
50
56
|
this._ref = el;
|
|
51
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, 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-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: '55c388d7e65e9bd27dd229f01a3c162719b90df2' })));
|
|
52
58
|
}
|
|
59
|
+
get rootElement() { return getElement(this); }
|
|
53
60
|
};
|
|
54
61
|
|
|
55
62
|
export { DBSection as db_section };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-Cr2cgn5B.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, a as DEFAULT_LABEL } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, g as getBooleanAsString, l as getHideProp, c as cls } from './index-xkoBSP8R.js';
|
|
4
4
|
import { c as addValueResetEventListener } from './form-components-D6LQfJvq.js';
|
|
@@ -220,6 +220,12 @@ const DBSelect = class {
|
|
|
220
220
|
this.watch4Fn();
|
|
221
221
|
}
|
|
222
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
|
+
}
|
|
223
229
|
this.enableAttributePassing(this._ref, "db-select");
|
|
224
230
|
this.initialized = true;
|
|
225
231
|
this.resetIds();
|
|
@@ -236,15 +242,16 @@ const DBSelect = class {
|
|
|
236
242
|
}
|
|
237
243
|
render() {
|
|
238
244
|
var _a, _b, _c, _d, _e, _f;
|
|
239
|
-
return (h("div", { key: '
|
|
245
|
+
return (h("div", { key: '3dd83828aaa06217389cf635687da0070ae88f56', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '8fe580a4172003361a5c16551c4965882dbb3ce0', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: '2f0ba052dafae5d44c27442eb4c27fa117c6ba76', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
240
246
|
this._ref = el;
|
|
241
247
|
}, required: getBoolean(this.required, "required"), disabled: getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
242
248
|
/* @ts-ignore */
|
|
243
249
|
value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
|
|
244
250
|
var _a;
|
|
245
251
|
return (h(Fragment, null, option.options ? (h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
|
|
246
|
-
})) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, 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: '
|
|
252
|
+
})) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, 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: '34ca1d025c67dc018375d56651a7f0ae1d2e245f', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '6f64314bcf457ddd86b3695e314125cca14d10d1', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
247
253
|
}
|
|
254
|
+
get rootElement() { return getElement(this); }
|
|
248
255
|
static get watchers() { return {
|
|
249
256
|
"id": [{
|
|
250
257
|
"watch0": 0
|