@db-ux/wc-core-components 4.7.0-tabs-34782eb → 4.7.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 +5 -0
- package/agent/Tabs.md +30 -30
- package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +2 -2
- package/dist/cjs/db-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-button.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +9 -9
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-select.cjs.entry.js +5 -5
- package/dist/cjs/db-divider.cjs.entry.js +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +3 -3
- package/dist/cjs/db-header.cjs.entry.js +2 -2
- package/dist/cjs/db-icon.cjs.entry.js +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation.cjs.entry.js +2 -2
- package/dist/cjs/db-notification.cjs.entry.js +2 -2
- package/dist/cjs/db-page.cjs.entry.js +2 -2
- package/dist/cjs/db-popover.cjs.entry.js +2 -2
- package/dist/cjs/db-radio.cjs.entry.js +1 -1
- package/dist/cjs/db-section.cjs.entry.js +2 -2
- package/dist/cjs/db-select.cjs.entry.js +2 -2
- package/dist/cjs/db-stack.cjs.entry.js +2 -2
- package/dist/cjs/db-switch.cjs.entry.js +2 -2
- package/dist/cjs/db-tab-item_3.cjs.entry.js +67 -133
- package/dist/cjs/db-tabs.cjs.entry.js +123 -373
- package/dist/cjs/db-textarea.cjs.entry.js +2 -2
- package/dist/cjs/db-tooltip.cjs.entry.js +4 -3
- package/dist/cjs/db-ux.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +2 -2
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/brand/brand.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/custom-button/custom-button.js +2 -2
- package/dist/collection/components/custom-select/custom-select.js +5 -5
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
- package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +1 -1
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +3 -3
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/infotext/infotext.js +1 -1
- package/dist/collection/components/input/input.js +2 -2
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/navigation/navigation.js +2 -2
- package/dist/collection/components/navigation-item/navigation-item.js +1 -1
- package/dist/collection/components/notification/notification.js +2 -2
- package/dist/collection/components/page/page.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/section/section.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab-item/tab-item.js +129 -198
- package/dist/collection/components/tab-list/tab-list.js +12 -74
- package/dist/collection/components/tab-panel/tab-panel.js +2 -80
- package/dist/collection/components/tabs/tabs.js +167 -504
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +4 -3
- package/dist/collection/shared/model.js +1 -1
- package/dist/custom-elements.json +2998 -3898
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-9b518eb4.entry.js → p-0e0c3c72.entry.js} +1 -1
- package/dist/db-ux/{p-61784f7a.entry.js → p-12a2c502.entry.js} +1 -1
- package/dist/db-ux/{p-b7087f0b.entry.js → p-13157b54.entry.js} +1 -1
- package/dist/db-ux/p-202323c2.entry.js +1 -0
- package/dist/db-ux/p-21068628.entry.js +1 -0
- package/dist/db-ux/{p-b06fe221.entry.js → p-212bde1e.entry.js} +1 -1
- package/dist/db-ux/{p-01c278b9.entry.js → p-2355324e.entry.js} +1 -1
- package/dist/db-ux/p-377987d0.entry.js +1 -0
- package/dist/db-ux/p-3d5d49ff.entry.js +1 -0
- package/dist/db-ux/p-452a8b6b.entry.js +1 -0
- package/dist/db-ux/p-4de2c697.entry.js +1 -0
- package/dist/db-ux/{p-f08b14d9.entry.js → p-5cb74480.entry.js} +1 -1
- package/dist/db-ux/{p-071ae423.entry.js → p-5f5eb78d.entry.js} +1 -1
- package/dist/db-ux/p-605013f0.entry.js +1 -0
- package/dist/db-ux/p-6f9e146e.entry.js +1 -0
- package/dist/db-ux/{p-328faf6b.entry.js → p-70823b80.entry.js} +1 -1
- package/dist/db-ux/{p-70e6d32f.entry.js → p-761c9ddf.entry.js} +1 -1
- package/dist/db-ux/p-7fa91164.entry.js +1 -0
- package/dist/db-ux/p-8e84712d.entry.js +1 -0
- package/dist/db-ux/{p-ffe614c8.entry.js → p-980a6afe.entry.js} +1 -1
- package/dist/db-ux/{p-6c26b0ba.entry.js → p-a65d0d23.entry.js} +1 -1
- package/dist/db-ux/p-a9efbb0b.entry.js +1 -0
- package/dist/db-ux/{p-07c7ecc9.entry.js → p-abb0885d.entry.js} +1 -1
- package/dist/db-ux/{p-9a895c18.entry.js → p-ba8464d2.entry.js} +1 -1
- package/dist/db-ux/p-bd66d144.entry.js +1 -0
- package/dist/db-ux/{p-74a45768.entry.js → p-bed8d029.entry.js} +1 -1
- package/dist/db-ux/{p-ee43015b.entry.js → p-c76089f6.entry.js} +1 -1
- package/dist/db-ux/{p-44a0407b.entry.js → p-c7bf8d05.entry.js} +1 -1
- package/dist/db-ux/{p-43a9623f.entry.js → p-d85b1c15.entry.js} +1 -1
- package/dist/db-ux/{p-d93b9d58.entry.js → p-d8b38722.entry.js} +1 -1
- package/dist/db-ux/p-dd08f6e4.entry.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +2 -2
- package/dist/esm/db-accordion.entry.js +1 -1
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +1 -1
- package/dist/esm/db-card.entry.js +2 -2
- package/dist/esm/db-checkbox.entry.js +2 -2
- package/dist/esm/db-custom-button.entry.js +2 -2
- package/dist/esm/db-custom-select-dropdown_5.entry.js +9 -9
- package/dist/esm/db-custom-select-form-field.entry.js +2 -2
- package/dist/esm/db-custom-select.entry.js +5 -5
- package/dist/esm/db-divider.entry.js +1 -1
- package/dist/esm/db-drawer.entry.js +3 -3
- package/dist/esm/db-header.entry.js +2 -2
- package/dist/esm/db-icon.entry.js +1 -1
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +1 -1
- package/dist/esm/db-navigation-item.entry.js +1 -1
- package/dist/esm/db-navigation.entry.js +2 -2
- package/dist/esm/db-notification.entry.js +2 -2
- package/dist/esm/db-page.entry.js +2 -2
- package/dist/esm/db-popover.entry.js +2 -2
- package/dist/esm/db-radio.entry.js +1 -1
- package/dist/esm/db-section.entry.js +2 -2
- package/dist/esm/db-select.entry.js +2 -2
- package/dist/esm/db-stack.entry.js +2 -2
- package/dist/esm/db-switch.entry.js +2 -2
- package/dist/esm/db-tab-item_3.entry.js +68 -134
- package/dist/esm/db-tabs.entry.js +123 -373
- package/dist/esm/db-textarea.entry.js +2 -2
- package/dist/esm/db-tooltip.entry.js +5 -4
- package/dist/esm/db-ux.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/tab-item/model.d.ts +11 -28
- package/dist/types/components/tab-item/tab-item.d.ts +20 -22
- package/dist/types/components/tab-list/model.d.ts +5 -15
- package/dist/types/components/tab-list/tab-list.d.ts +1 -4
- package/dist/types/components/tab-panel/model.d.ts +3 -13
- package/dist/types/components/tab-panel/tab-panel.d.ts +0 -3
- package/dist/types/components/tabs/model.d.ts +17 -51
- package/dist/types/components/tabs/tabs.d.ts +16 -35
- package/dist/types/components.d.ts +30 -80
- package/dist/types/shared/model.d.ts +5 -5
- package/dist/vscode.html-custom-data.json +59 -147
- package/dist/web-types.json +135 -289
- package/package.json +3 -3
- package/dist/db-ux/p-10869bfa.entry.js +0 -1
- package/dist/db-ux/p-1427bb15.entry.js +0 -1
- package/dist/db-ux/p-397bc590.entry.js +0 -1
- package/dist/db-ux/p-68835a75.entry.js +0 -1
- package/dist/db-ux/p-68a995df.entry.js +0 -1
- package/dist/db-ux/p-6e898a58.entry.js +0 -1
- package/dist/db-ux/p-71868bb5.entry.js +0 -1
- package/dist/db-ux/p-9b4d0c18.entry.js +0 -1
- package/dist/db-ux/p-a927fe88.entry.js +0 -1
- package/dist/db-ux/p-a93ca690.entry.js +0 -1
- package/dist/db-ux/p-d97c0787.entry.js +0 -1
- package/dist/db-ux/p-efde1b6e.entry.js +0 -1
- package/dist/db-ux/p-f92cbbae.entry.js +0 -1
package/CHANGELOG.md
CHANGED
package/agent/Tabs.md
CHANGED
|
@@ -7,55 +7,55 @@
|
|
|
7
7
|
<h2>1. Default Tabs</h2>
|
|
8
8
|
<db-tabs>
|
|
9
9
|
<db-tab-list>
|
|
10
|
-
<db-tab-item>
|
|
11
|
-
<db-tab-item>
|
|
12
|
-
<db-tab-item>
|
|
10
|
+
<db-tab-item>Tab 1</db-tab-item>
|
|
11
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
12
|
+
<db-tab-item>Tab 3</db-tab-item>
|
|
13
13
|
</db-tab-list>
|
|
14
|
-
<db-tab-panel>
|
|
15
|
-
<db-tab-panel>
|
|
16
|
-
<db-tab-panel>
|
|
14
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
15
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
16
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
17
17
|
</db-tabs>
|
|
18
18
|
<h2>2. Behavior Variants</h2>
|
|
19
19
|
<db-tabs behavior="scrollbar">
|
|
20
20
|
<db-tab-list>
|
|
21
|
-
<db-tab-item>
|
|
22
|
-
<db-tab-item>
|
|
23
|
-
<db-tab-item>
|
|
21
|
+
<db-tab-item>Tab 1</db-tab-item>
|
|
22
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
23
|
+
<db-tab-item>Tab 3</db-tab-item>
|
|
24
24
|
</db-tab-list>
|
|
25
|
-
<db-tab-panel>
|
|
26
|
-
<db-tab-panel>
|
|
27
|
-
<db-tab-panel>
|
|
25
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
26
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
27
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
28
28
|
</db-tabs>
|
|
29
29
|
<db-tabs behavior="arrows">
|
|
30
30
|
<db-tab-list>
|
|
31
|
-
<db-tab-item>
|
|
32
|
-
<db-tab-item>
|
|
33
|
-
<db-tab-item>
|
|
31
|
+
<db-tab-item>Tab 1</db-tab-item>
|
|
32
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
33
|
+
<db-tab-item>Tab 3</db-tab-item>
|
|
34
34
|
</db-tab-list>
|
|
35
|
-
<db-tab-panel>
|
|
36
|
-
<db-tab-panel>
|
|
37
|
-
<db-tab-panel>
|
|
35
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
36
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
37
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
38
38
|
</db-tabs>
|
|
39
39
|
<h2>3. Initial Selected Index</h2>
|
|
40
40
|
<db-tabs initialSelectedIndex={1}>
|
|
41
41
|
<db-tab-list>
|
|
42
|
-
<db-tab-item>
|
|
43
|
-
<db-tab-item>
|
|
44
|
-
<db-tab-item>
|
|
42
|
+
<db-tab-item>Tab 1</db-tab-item>
|
|
43
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
44
|
+
<db-tab-item>Tab 3</db-tab-item>
|
|
45
45
|
</db-tab-list>
|
|
46
|
-
<db-tab-panel>
|
|
47
|
-
<db-tab-panel>
|
|
48
|
-
<db-tab-panel>
|
|
46
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
47
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
48
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
49
49
|
</db-tabs>
|
|
50
50
|
<h2>4. Initial Selected Mode</h2>
|
|
51
51
|
<db-tabs initialSelectedMode="manually">
|
|
52
52
|
<db-tab-list>
|
|
53
|
-
<db-tab-item>
|
|
54
|
-
<db-tab-item>
|
|
55
|
-
<db-tab-item>
|
|
53
|
+
<db-tab-item>Tab 1</db-tab-item>
|
|
54
|
+
<db-tab-item>Tab 2</db-tab-item>
|
|
55
|
+
<db-tab-item>Tab 3</db-tab-item>
|
|
56
56
|
</db-tab-list>
|
|
57
|
-
<db-tab-panel>
|
|
58
|
-
<db-tab-panel>
|
|
59
|
-
<db-tab-panel>
|
|
57
|
+
<db-tab-panel>Tab Panel 1</db-tab-panel>
|
|
58
|
+
<db-tab-panel>Tab Panel 2</db-tab-panel>
|
|
59
|
+
<db-tab-panel>Tab Panel 3</db-tab-panel>
|
|
60
60
|
</db-tabs>
|
|
61
61
|
```
|
|
@@ -91,9 +91,9 @@ const DBAccordionItem = class {
|
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
93
|
var _a, _b;
|
|
94
|
-
return (index.h("li", { key: '
|
|
94
|
+
return (index.h("li", { key: '3f7c64593e783768fdfc575b020a6252c5e68393', 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: '6b6e78645d2cdbc59415abedb59c761df5b7af59', "aria-disabled": index$1.getBooleanAsString(this.disabled), ref: (el) => {
|
|
95
95
|
this._ref = el;
|
|
96
|
-
}, name: this._name, open: this._open }, index.h("summary", { key: '
|
|
96
|
+
}, name: this._name, open: this._open }, index.h("summary", { key: 'bedf3e8a9555637cf990886e14e1f78d81c8a733', onClick: (event) => this.handleToggle(event) }, this.headlinePlain ? this.headlinePlain : null, !this.headlinePlain ? index.h("slot", { name: "headline" }) : null), index.h("div", { key: '1679dbd607f9f63af890b1e402e38cb9aa2929af' }, this.text ? this.text : index.h("slot", null)))));
|
|
97
97
|
}
|
|
98
98
|
static get watchers() { return {
|
|
99
99
|
"_ref": [{
|
|
@@ -130,7 +130,7 @@ const DBAccordion = class {
|
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
132
|
var _a, _b, _c;
|
|
133
|
-
return (index.h("ul", { key: '
|
|
133
|
+
return (index.h("ul", { key: 'edef9c59c72278c614826ba8a7b67699080a078a', class: index$1.cls("db-accordion", this.className), ref: (el) => {
|
|
134
134
|
this._ref = el;
|
|
135
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
|
|
136
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 })))
|
|
@@ -70,7 +70,7 @@ const DBBadge = class {
|
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
72
|
var _a, _b, _c, _d;
|
|
73
|
-
return (index.h("span", { key: '
|
|
73
|
+
return (index.h("span", { key: 'c566e49b9d78c51fe2615eb8b55182997485e5bb', class: index$1.cls("db-badge", this.className), ref: (el) => {
|
|
74
74
|
this._ref = el;
|
|
75
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 : index.h("slot", null)));
|
|
76
76
|
}
|
|
@@ -49,7 +49,7 @@ const DBBrand = class {
|
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
51
|
var _a, _b, _c;
|
|
52
|
-
return (index.h("div", { key: '
|
|
52
|
+
return (index.h("div", { key: 'fc41608ac72c69c17542343ce283c584b3e5c3f5', class: index$1.cls("db-brand", this.className), ref: (el) => {
|
|
53
53
|
this._ref = el;
|
|
54
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 }, this.text ? this.text : index.h("slot", null)));
|
|
55
55
|
}
|
|
@@ -58,7 +58,7 @@ const DBButton = class {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
var _a, _b, _c, _d;
|
|
61
|
-
return (index.h("button", { key: '
|
|
61
|
+
return (index.h("button", { key: '61179d6427e5c3245c1cfe539f2a0dce9b22ba1d', class: index$1.cls("db-button", this.className), ref: (el) => {
|
|
62
62
|
this._ref = el;
|
|
63
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 : index.h("slot", null)));
|
|
64
64
|
}
|
|
@@ -54,9 +54,9 @@ const DBCard = class {
|
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
var _a, _b;
|
|
57
|
-
return (index.h("div", { key: '
|
|
57
|
+
return (index.h("div", { key: '252e6e05d1f5fdef212ae943b0d4d4121a52f5d6', class: index$1.cls("db-card", this.className), ref: (el) => {
|
|
58
58
|
this._ref = el;
|
|
59
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-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: '862fd715856bb6ef858c274c9c916bc7f4250051' })));
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
|
|
@@ -210,9 +210,9 @@ const DBCheckbox = class {
|
|
|
210
210
|
}
|
|
211
211
|
render() {
|
|
212
212
|
var _a;
|
|
213
|
-
return (index.h("div", { key: '
|
|
213
|
+
return (index.h("div", { key: '4238fbd4e76d437554f9b6164d007f1039d4de80', 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: '8d8743528e8ef8d117233e5de2957a78e37b0436', htmlFor: this._id }, index.h("input", { key: '631676480151dd94bca3c10cd1ccaf29f307b235', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
214
214
|
this._ref = el;
|
|
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 : index.h("slot", null)), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '
|
|
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 : index.h("slot", null)), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '986898b076efd93c970c6656ff44f9b949a63c1c', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '651eadfb4cbeaa60405335c76aef0c671b02851c', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
216
216
|
}
|
|
217
217
|
static get watchers() { return {
|
|
218
218
|
"id": [{
|
|
@@ -48,9 +48,9 @@ const DBCustomButton = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b, _c, _d;
|
|
51
|
-
return (index.h("div", { key: '
|
|
51
|
+
return (index.h("div", { key: '3360941151b3648c3b03e8d1e231798e751b6445', class: index$1.cls("db-custom-button", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
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: '
|
|
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: '5991018ad35e6c9e04febd57a3affb0d0f81513f' })));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -51,9 +51,9 @@ const DBCustomSelectDropdown = class {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
var _a, _b;
|
|
54
|
-
return (index.h("article", { key: '
|
|
54
|
+
return (index.h("article", { key: '978958659b0f3b0fbdc011abfb079086ca90a6d5', class: index$1.cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
|
|
55
55
|
this._ref = el;
|
|
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: '
|
|
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: '21a6a67f222cb5eaf262ad4f3bd8cde81e4ba5c0' })));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -102,9 +102,9 @@ const DBCustomSelectList = class {
|
|
|
102
102
|
}
|
|
103
103
|
render() {
|
|
104
104
|
var _a, _b;
|
|
105
|
-
return (index.h("div", { key: '
|
|
105
|
+
return (index.h("div", { key: '3c005a8e6605f176226e1eed81c47737498f1d05', class: index$1.cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
106
106
|
this._ref = el;
|
|
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: '
|
|
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: '59887c5fe0d8e6c3b136e88ee4d8f1f26c580f5b' }, index.h("slot", { key: '29916aa86adbc98a874f5cee71cf056c705b5f62' }))));
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
|
|
@@ -174,7 +174,7 @@ const DBCustomSelectListItem = class {
|
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
176
|
var _a, _b;
|
|
177
|
-
return (index.h("li", { key: '
|
|
177
|
+
return (index.h("li", { key: '439f87691065d7cf9e8742c3f5aa1ded7f5ac422', class: index$1.cls("db-custom-select-list-item", this.className, {
|
|
178
178
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
179
179
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
180
180
|
}), ref: (el) => {
|
|
@@ -401,7 +401,7 @@ const DBInput = class {
|
|
|
401
401
|
}
|
|
402
402
|
render() {
|
|
403
403
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
404
|
-
return (index.h("div", { key: '
|
|
404
|
+
return (index.h("div", { key: 'ec887e9cfe4cbbe0783364d6e2f76990273b522e', 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: 'da8836b5b06c992ea7e18aad485254c07ad22e79', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL), index.h("input", { key: '53bfc910e26783193bb881466bb637d67cafa4e7', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
405
405
|
this._ref = el;
|
|
406
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") ||
|
|
407
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: [
|
|
@@ -413,7 +413,7 @@ const DBInput = class {
|
|
|
413
413
|
"color",
|
|
414
414
|
].includes((_h = this.type) !== null && _h !== void 0 ? _h : "") && index$1.isIOSSafari()
|
|
415
415
|
? "textbox"
|
|
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: '
|
|
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: '1d08d96e457929a1d7381b5cb6f6c693865d1104' }), 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: '81adecdd0714f3f16e55a8aa32de42342cab14c6', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), index.h("span", { key: 'f83fc13cc844367810c86739bc5554e6dd212dae', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
417
417
|
}
|
|
418
418
|
static get watchers() { return {
|
|
419
419
|
"id": [{
|
|
@@ -500,9 +500,9 @@ const DBTag = class {
|
|
|
500
500
|
}
|
|
501
501
|
render() {
|
|
502
502
|
var _a, _b, _c;
|
|
503
|
-
return (index.h("div", { key: '
|
|
503
|
+
return (index.h("div", { key: '61faefa2e89ddb597fcca3cb12f7d31c337e556a', class: index$1.cls("db-tag", this.className), ref: (el) => {
|
|
504
504
|
this._ref = el;
|
|
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: '
|
|
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: 'e5650c1151f1e86f51138c5e8b292e780bf7544b', name: "content" }), index.h("slot", { key: 'e4023db11c7b59964b4df105eb3af969ba3d558a' }), this.text ? this.text : null, 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));
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
508
|
|
|
@@ -48,9 +48,9 @@ const DBCustomSelectFormField = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b;
|
|
51
|
-
return (index.h("summary", { key: '
|
|
51
|
+
return (index.h("summary", { key: '960e6eb6b0f7f46884e26a820f3ae38e13d57f33', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
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: '
|
|
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: 'e109b45a0935d878434ae5e330d55fdab7fb438d' })));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -794,19 +794,19 @@ const DBCustomSelect = class {
|
|
|
794
794
|
}
|
|
795
795
|
render() {
|
|
796
796
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
797
|
-
return (index.h("div", { key: '
|
|
797
|
+
return (index.h("div", { key: '04344ea736f4311c09459970f6c743516c0a45ba', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
798
798
|
this._ref = el;
|
|
799
799
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
800
800
|
this.selectedType === "tag" &&
|
|
801
801
|
this.multiple
|
|
802
802
|
? "above"
|
|
803
|
-
: this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: '
|
|
803
|
+
: this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: 'ed856ad29b0f840ebe37c8edf275267efc780f2c', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '093be2cd13041a45a95664e083125f5e4e8c2689', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
804
804
|
this.selectRef = el;
|
|
805
805
|
}, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: index$1.getBoolean(this.multiple, "multiple"), disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
|
|
806
806
|
? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
|
|
807
|
-
: null)), index.h("details", { key: '
|
|
807
|
+
: null)), index.h("details", { key: 'e0617c55fb94a72432719b485d922d87cca58d40', ref: (el) => {
|
|
808
808
|
this.detailsRef = el;
|
|
809
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '
|
|
809
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '4a4754177ce637816734d8e195d1d34b0e4a9707' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": index$1.getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (index.h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", ref: (el) => {
|
|
810
810
|
this.searchInputRef = el;
|
|
811
811
|
}, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : constants.DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
|
|
812
812
|
? this._infoTextId
|
|
@@ -816,7 +816,7 @@ const DBCustomSelect = class {
|
|
|
816
816
|
this.selectAllRef = el;
|
|
817
817
|
}, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: index$1.getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : constants.DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (index.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
|
|
818
818
|
? this.getOptionLabel(option)
|
|
819
|
-
: null)))))), index.h("div", null, index.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 : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '
|
|
819
|
+
: null)))))), index.h("div", null, index.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 : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: 'ea3f5751609a4383f9d381cfbc7947a4b0192880', class: "db-custom-select-placeholder", "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), 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: 'd8733256a74ba4876d4080a27798f01264d6472d', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '4ca046467d7da79ac48f0e1dddf2712ef2a93074', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
820
820
|
}
|
|
821
821
|
static get watchers() { return {
|
|
822
822
|
"id": [{
|
|
@@ -48,7 +48,7 @@ const DBDivider = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b;
|
|
51
|
-
return (index.h("div", { key: '
|
|
51
|
+
return (index.h("div", { key: '5773c14fcdd05f7e4b7b73af32c779133ac1b65b', class: index$1.cls("db-divider", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
53
|
}, 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 }));
|
|
54
54
|
}
|
|
@@ -135,11 +135,11 @@ const DBDrawer = class {
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
var _a, _b, _c;
|
|
138
|
-
return (index.h("dialog", { key: '
|
|
138
|
+
return (index.h("dialog", { key: '5980a60cbe0d46868a4a65d853551a25159523f0', 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) => {
|
|
139
139
|
this._ref = el;
|
|
140
|
-
}, 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 }, index.h("article", { key: '
|
|
140
|
+
}, 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 }, index.h("article", { key: '305ff89261e63e2dbe0640fc9be97b330a4b94cf', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
|
|
141
141
|
this.dialogContainerRef = el;
|
|
142
|
-
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: '
|
|
142
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: 'fe07654ff3c238c6a0eb2f73ff5f8a035ff9232c', class: "db-drawer-header" }, index.h("div", { key: '56eff8cf0d755c027bf72e2319e7897ed3b4b51c', class: "db-drawer-header-text" }, index.h("slot", { key: 'ff8378e26a292c20991899764a927aadd5b35ac8', name: "drawerHeader" })), index.h("db-button", { key: '5300a384462ceb1ac7ac9272bed2ee34f426ccf2', 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 : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: '681bd3593f743539104398e0dbb6628abdd8ae2c', class: "db-drawer-content" }, index.h("slot", { key: 'ad9f204d5f0b6b44fec8bfc49f8aa361cbb155d7' })))));
|
|
143
143
|
}
|
|
144
144
|
static get watchers() { return {
|
|
145
145
|
"open": [{
|
|
@@ -84,9 +84,9 @@ const DBHeader = class {
|
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
var _a, _b, _c;
|
|
87
|
-
return (index.h("header", { key: '
|
|
87
|
+
return (index.h("header", { key: 'b5085e769fbc61e94b0ae0e1cca91db441efc1a5', class: index$1.cls("db-header", this.className), ref: (el) => {
|
|
88
88
|
this._ref = el;
|
|
89
|
-
}, 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 }, index.h("db-drawer", { key: '
|
|
89
|
+
}, 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 }, index.h("db-drawer", { key: 'a47facce9c8108126495c77d37a487cd34fe0ecb', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: index$1.getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, index.h("div", { key: 'cda6c2d0070ce377af2bd5ca4b77459a94350df5', class: "db-header-drawer-navigation" }, index.h("div", { key: '15713a6e12680039ca79f27ec4a1000b120af4fd', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: 'e553fe01864f6a23e12edb336ddfabae78ca4f74' })), index.h("div", { key: '73339268263f22638ce7e7cde00369f58a279d62', class: "db-header-meta-navigation" }, index.h("slot", { key: 'deffe76713c7ad062821f83a34ad1c0530acff6c', name: "metaNavigation" }))), index.h("div", { key: '42f61529aa00d9422cac6c8d5ae2588d0eb4760d', class: "db-header-secondary-action" }, index.h("slot", { key: '3273017c0520401367809b3e39e1d642b92bec50', name: "secondaryAction" }))), index.h("div", { key: '26b07d2244c291b78daa6dd2bc39ce2ee93d8674', class: "db-header-meta-navigation" }, index.h("slot", { key: '4adfd5ac044acbb161a26e9e033a1483991842c6', name: "metaNavigation" })), index.h("div", { key: '6a9709c60965315e7ecffb41ea4aac8caf986086', class: "db-header-navigation-bar" }, index.h("div", { key: '6eca84e588432ec968d4aed685d0dda4053b08a9', class: "db-header-brand-container" }, index.h("slot", { key: 'c034633ed87c6c554621e275b6d98d1d1628265c', name: "brand" })), index.h("div", { key: '04766e92142de2cd49a08711e7ad627b0cef14bd', class: "db-header-navigation-container" }, index.h("div", { key: 'fa4a5f6deab5edf3e1acf6e67d73ce06e638ae02', class: "db-header-navigation" }, index.h("slot", { key: '192fbdd2773ab46f2e4800d919a2ace97c9f5ef2' })), index.h("div", { key: '3bf503b08a862dbca679c198916da4be7228c528', class: "db-header-primary-action" }, index.h("slot", { key: '2ab7194da0568d92c85d47ecbf4e34aa4a734d00', name: "primaryAction" }))), index.h("div", { key: 'f45dbbf3346e8bf533a4af7c82e754fe0a679082', class: "db-header-action-container" }, index.h("div", { key: '7dfcd81988888a0595b94e15ba963abcfb1200ea', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '52e71ba370d564b8739966643adf2ccce5e48bcb', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : constants.DEFAULT_BURGER_MENU)), index.h("div", { key: '54cf3d9d67d7be42f6b06227100abb337deb396d', class: "db-header-secondary-action" }, index.h("slot", { key: 'fc0a9946c1fd478c57e73f4c3b5b6ae0600101b8', name: "secondaryAction" }))))));
|
|
90
90
|
}
|
|
91
91
|
static get watchers() { return {
|
|
92
92
|
"initialized": [{
|
|
@@ -48,7 +48,7 @@ const DBIcon = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b;
|
|
51
|
-
return (index.h("span", { key: '
|
|
51
|
+
return (index.h("span", { key: '3bef98de9ca12c66f7cce8e11eaa5d895a8d6750', class: index$1.cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
53
|
}, 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 : index.h("slot", null)));
|
|
54
54
|
}
|
|
@@ -48,7 +48,7 @@ const DBInfotext = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b, _c;
|
|
51
|
-
return (index.h("span", { key: '
|
|
51
|
+
return (index.h("span", { key: '49219bd5f07042ba66ee28e86aed0536e0f776eb', class: index$1.cls("db-infotext", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
53
|
}, 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": index$1.getBooleanAsString(this.wrap), "data-show-icon-leading": index$1.getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : index.h("slot", null)));
|
|
54
54
|
}
|
|
@@ -48,7 +48,7 @@ const DBLink = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b, _c, _d;
|
|
51
|
-
return (index.h("a", { key: '
|
|
51
|
+
return (index.h("a", { key: '71c5ab28a592fe182048091df4ed2d34f4cafe96', class: index$1.cls("db-link", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
53
|
}, 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": index$1.getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": index$1.getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": index$1.getBooleanAsString(this.wrap) }, this.text ? this.text : index.h("slot", null)));
|
|
54
54
|
}
|
|
@@ -117,7 +117,7 @@ const DBNavigationItem = class {
|
|
|
117
117
|
}
|
|
118
118
|
render() {
|
|
119
119
|
var _a, _b, _c;
|
|
120
|
-
return (index.h("li", { key: '
|
|
120
|
+
return (index.h("li", { key: '58b2c247c8dad65176a6bc037d908c81da83fc58', class: index$1.cls("db-navigation-item", this.className), ref: (el) => {
|
|
121
121
|
this._ref = el;
|
|
122
122
|
}, 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": index$1.getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": index$1.getBooleanAsString(this.wrap), "aria-disabled": index$1.getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : index.h("slot", null) : null, this.hasSubNavigation ? (index.h(index.Fragment, null, index.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: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : index.h("slot", null)), index.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 ? (index.h("div", { class: "db-mobile-navigation-back" }, index.h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : constants.DEFAULT_BACK))) : null, index.h("slot", { name: "subNavigation" })))) : null));
|
|
123
123
|
}
|
|
@@ -48,9 +48,9 @@ const DBNavigation = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b;
|
|
51
|
-
return (index.h("nav", { key: '
|
|
51
|
+
return (index.h("nav", { key: 'd35a0452fce96ed3fa6d692c8022ea4e36802626', class: index$1.cls("db-navigation", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("menu", { key: '
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("menu", { key: '2b1ad0fd739f64003078bbf18535666f83487d1f' }, index.h("slot", { key: '0c82a0f8e78ca1489efe693ec5ba973ada355c97' }))));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -58,13 +58,13 @@ const DBNotification = class {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
var _a, _b, _c;
|
|
61
|
-
return (index.h("div", { key: '
|
|
61
|
+
return (index.h("div", { key: 'b7789fad4794a93805eeec0cf2740b3f592f32fa', class: index$1.cls("db-notification", this.className), ref: (el) => {
|
|
62
62
|
this._ref = el;
|
|
63
63
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: index$1.getNotificationRole({
|
|
64
64
|
semantic: this.semantic,
|
|
65
65
|
role: this.role,
|
|
66
66
|
ariaLive: this.ariaLive,
|
|
67
|
-
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": index$1.getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, index.h("slot", { key: '
|
|
67
|
+
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": index$1.getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, index.h("slot", { key: 'cdf91c6a6cd8dd519ab235046b9ab260007a370e', name: "image" }), index$1.stringPropVisible(this.headline, this.showHeadline) ? (index.h("header", null, this.headline)) : null, index.h("div", { key: '97b39e4f03829ea5d1d29b2b1be3066ff4100ac7', "data-area": "content" }, this.text ? this.text : index.h("slot", null)), index$1.stringPropVisible(this.timestamp, this.showTimestamp) ? (index.h("span", null, this.timestamp)) : null, index.h("slot", { key: '59856484aeb4d35de524dd4fa5a11f773f6f2a84', name: "link" }), index$1.getBoolean(this.closeable, "closeable") ? (index.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 : constants.DEFAULT_CLOSE_BUTTON)) : null));
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
|
|
@@ -65,9 +65,9 @@ const DBPage = class {
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
var _a, _b;
|
|
68
|
-
return (index.h("div", { key: '
|
|
68
|
+
return (index.h("div", { key: '3c52f5947a841db0fcfe81b09e37db5a59f04158', class: index$1.cls("db-page", this.className), ref: (el) => {
|
|
69
69
|
this._ref = el;
|
|
70
|
-
}, 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": index$1.getBooleanAsString(this.fadeIn), "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded) }, index.h("slot", { key: '
|
|
70
|
+
}, 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": index$1.getBooleanAsString(this.fadeIn), "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded) }, index.h("slot", { key: '9b5d03938d5e60f37d807b3acbeb76a1ecb24aab', name: "header" }), index.h("main", { key: '49b72ad7dab4cc675c1af0c684bf211affd3fa36', class: index$1.cls("db-main", this.mainClass) }, index.h("slot", { key: '63915bf376296bbfdd9e7f1c3f3e36331543d15c' })), index.h("slot", { key: 'e94f63187f9347a7377956b040d3c201aa008dd6', name: "footer" })));
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
|
|
@@ -170,9 +170,9 @@ const DBPopover = class {
|
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
172
|
var _a, _b, _c;
|
|
173
|
-
return (index.h("div", { key: '
|
|
173
|
+
return (index.h("div", { key: 'a160c72e468d3f98cf94f76193b31dea016821f5', class: index$1.cls("db-popover", this.className), ref: (el) => {
|
|
174
174
|
this._ref = el;
|
|
175
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: '
|
|
175
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: 'bb80f944827c1a2edb671ce3572546eabdac8fe3', name: "trigger" }), index.h("article", { key: '5286e4c7e53558e4bdff52ab3742acf0b854cb4a', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": index$1.getBooleanAsString(this.gap), "data-animation": index$1.getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": index$1.getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, index.h("slot", { key: '09822daff7336bfe9541418bcd55a8809cdaab08' }))));
|
|
176
176
|
}
|
|
177
177
|
static get watchers() { return {
|
|
178
178
|
"_ref": [{
|
|
@@ -127,7 +127,7 @@ const DBRadio = class {
|
|
|
127
127
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
|
-
return (index.h("label", { key: '
|
|
130
|
+
return (index.h("label", { key: 'b77bbb3335c0b3f3813e11c7ac7228a84a40769a', class: index$1.cls("db-radio", this.className), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, index.h("input", { key: '4fe82a7b57a6dd06e556e26d50df574a541129f9', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
131
131
|
this._ref = el;
|
|
132
132
|
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : index.h("slot", null)));
|
|
133
133
|
}
|
|
@@ -48,9 +48,9 @@ const DBSection = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b;
|
|
51
|
-
return (index.h("section", { key: '
|
|
51
|
+
return (index.h("section", { key: 'd2cb50a43641ef50d901bd488c7d31911e0f5487', class: index$1.cls("db-section", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '90ce1533ea3392317c7e271ad6d2880d0434321e' })));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -238,14 +238,14 @@ const DBSelect = class {
|
|
|
238
238
|
}
|
|
239
239
|
render() {
|
|
240
240
|
var _a, _b, _c, _d, _e, _f;
|
|
241
|
-
return (index.h("div", { key: '
|
|
241
|
+
return (index.h("div", { key: 'e083b3de98c929310348ef084f614b6115cc79cb', class: index$1.cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: 'f2dab8efe5a3c299268da1f5c58d09752b6b8ca5', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL), index.h("select", { key: '610327eb481b3806f99a8d123452bcf8e7e2ca58', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
242
242
|
this._ref = el;
|
|
243
243
|
}, required: index$1.getBoolean(this.required, "required"), disabled: index$1.getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
244
244
|
/* @ts-ignore */
|
|
245
245
|
value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (index.h("option", { class: "placeholder", value: "", "data-show-empty-option": index$1.getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
|
|
246
246
|
var _a;
|
|
247
247
|
return (index.h(index.Fragment, null, option.options ? (index.h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (index.h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (index.h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
|
|
248
|
-
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '
|
|
248
|
+
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '946099b7eaab7da894f46400e1f428de137492ba', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '723768ffcad5add62979635d354280686145ca31', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
249
249
|
}
|
|
250
250
|
static get watchers() { return {
|
|
251
251
|
"id": [{
|