@db-ux/wc-core-components 4.6.1 → 4.7.0-tabs-34782eb
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 +8 -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 +133 -67
- package/dist/cjs/db-tabs.cjs.entry.js +373 -123
- package/dist/cjs/db-textarea.cjs.entry.js +2 -2
- package/dist/cjs/db-tooltip.cjs.entry.js +3 -4
- 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 +198 -129
- package/dist/collection/components/tab-list/tab-list.js +74 -12
- package/dist/collection/components/tab-panel/tab-panel.js +80 -2
- package/dist/collection/components/tabs/tabs.js +504 -167
- 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 +3 -4
- package/dist/collection/shared/model.js +1 -1
- package/dist/custom-elements.json +4021 -3053
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-2355324e.entry.js → p-01c278b9.entry.js} +1 -1
- package/dist/db-ux/{p-5f5eb78d.entry.js → p-071ae423.entry.js} +1 -1
- package/dist/db-ux/{p-abb0885d.entry.js → p-07c7ecc9.entry.js} +1 -1
- package/dist/db-ux/p-10869bfa.entry.js +1 -0
- package/dist/db-ux/p-1427bb15.entry.js +1 -0
- package/dist/db-ux/{p-70823b80.entry.js → p-328faf6b.entry.js} +1 -1
- package/dist/db-ux/p-397bc590.entry.js +1 -0
- package/dist/db-ux/{p-d85b1c15.entry.js → p-43a9623f.entry.js} +1 -1
- package/dist/db-ux/{p-67d59d5b.entry.js → p-44a0407b.entry.js} +1 -1
- package/dist/db-ux/{p-12a2c502.entry.js → p-61784f7a.entry.js} +1 -1
- package/dist/db-ux/p-68835a75.entry.js +1 -0
- package/dist/db-ux/p-68a995df.entry.js +1 -0
- package/dist/db-ux/{p-a65d0d23.entry.js → p-6c26b0ba.entry.js} +1 -1
- package/dist/db-ux/p-6e898a58.entry.js +1 -0
- package/dist/db-ux/{p-761c9ddf.entry.js → p-70e6d32f.entry.js} +1 -1
- package/dist/db-ux/p-71868bb5.entry.js +1 -0
- package/dist/db-ux/{p-bed8d029.entry.js → p-74a45768.entry.js} +1 -1
- package/dist/db-ux/{p-ba8464d2.entry.js → p-9a895c18.entry.js} +1 -1
- package/dist/db-ux/p-9b4d0c18.entry.js +1 -0
- package/dist/db-ux/{p-0e0c3c72.entry.js → p-9b518eb4.entry.js} +1 -1
- package/dist/db-ux/p-a927fe88.entry.js +1 -0
- package/dist/db-ux/p-a93ca690.entry.js +1 -0
- package/dist/db-ux/{p-212bde1e.entry.js → p-b06fe221.entry.js} +1 -1
- package/dist/db-ux/{p-13157b54.entry.js → p-b7087f0b.entry.js} +1 -1
- package/dist/db-ux/{p-d8b38722.entry.js → p-d93b9d58.entry.js} +1 -1
- package/dist/db-ux/p-d97c0787.entry.js +1 -0
- package/dist/db-ux/{p-c76089f6.entry.js → p-ee43015b.entry.js} +1 -1
- package/dist/db-ux/p-efde1b6e.entry.js +1 -0
- package/dist/db-ux/{p-5cb74480.entry.js → p-f08b14d9.entry.js} +1 -1
- package/dist/db-ux/p-f92cbbae.entry.js +1 -0
- package/dist/db-ux/{p-980a6afe.entry.js → p-ffe614c8.entry.js} +1 -1
- 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 +134 -68
- package/dist/esm/db-tabs.entry.js +373 -123
- package/dist/esm/db-textarea.entry.js +2 -2
- package/dist/esm/db-tooltip.entry.js +4 -5
- 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 +28 -11
- package/dist/types/components/tab-item/tab-item.d.ts +22 -20
- package/dist/types/components/tab-list/model.d.ts +15 -5
- package/dist/types/components/tab-list/tab-list.d.ts +4 -1
- package/dist/types/components/tab-panel/model.d.ts +13 -3
- package/dist/types/components/tab-panel/tab-panel.d.ts +3 -0
- package/dist/types/components/tabs/model.d.ts +51 -17
- package/dist/types/components/tabs/tabs.d.ts +35 -16
- package/dist/types/components.d.ts +80 -30
- package/dist/types/shared/model.d.ts +5 -5
- package/dist/vscode.html-custom-data.json +153 -59
- package/dist/web-types.json +297 -135
- package/package.json +3 -3
- package/dist/db-ux/p-202323c2.entry.js +0 -1
- package/dist/db-ux/p-21068628.entry.js +0 -1
- package/dist/db-ux/p-377987d0.entry.js +0 -1
- package/dist/db-ux/p-3d5d49ff.entry.js +0 -1
- package/dist/db-ux/p-452a8b6b.entry.js +0 -1
- package/dist/db-ux/p-4de2c697.entry.js +0 -1
- package/dist/db-ux/p-605013f0.entry.js +0 -1
- package/dist/db-ux/p-6f9e146e.entry.js +0 -1
- package/dist/db-ux/p-7fa91164.entry.js +0 -1
- package/dist/db-ux/p-8e84712d.entry.js +0 -1
- package/dist/db-ux/p-a9efbb0b.entry.js +0 -1
- package/dist/db-ux/p-bd66d144.entry.js +0 -1
- package/dist/db-ux/p-dd08f6e4.entry.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @db-ux/wc-core-components
|
|
2
2
|
|
|
3
|
+
## 4.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- DBSelect: correctly hiding empty `option` element for _placeholder_ or _floating label_ components with property `showEmptyOption=false` - [see commit ec01b5c](https://github.com/db-ux-design-system/core-web/commit/ec01b5cb56e1fc05911d33cbff0fc8f385644628)
|
|
8
|
+
|
|
9
|
+
- refactor(notification): not enforcing a paragraph for it's contents anymore. You could set any block level elements now as children. - [see commit 3170b3a](https://github.com/db-ux-design-system/core-web/commit/3170b3a6ef57bb73fa32b3176b7b8cf651a38641) and [commit 2ebe315](https://github.com/db-ux-design-system/core-web/commit/2ebe3156cd45e3702cf4acdc4224cd34da31d907)
|
|
10
|
+
|
|
3
11
|
## 4.6.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
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>Tab 1</db-tab-item>
|
|
11
|
-
<db-tab-item>Tab 2</db-tab-item>
|
|
12
|
-
<db-tab-item>Tab 3</db-tab-item>
|
|
10
|
+
<db-tab-item>Def Tab 1</db-tab-item>
|
|
11
|
+
<db-tab-item>Def Tab 2</db-tab-item>
|
|
12
|
+
<db-tab-item>Def 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>Def Panel 1</db-tab-panel>
|
|
15
|
+
<db-tab-panel>Def Panel 2</db-tab-panel>
|
|
16
|
+
<db-tab-panel>Def 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>Tab 1</db-tab-item>
|
|
22
|
-
<db-tab-item>Tab 2</db-tab-item>
|
|
23
|
-
<db-tab-item>Tab 3</db-tab-item>
|
|
21
|
+
<db-tab-item>Scroll Tab 1</db-tab-item>
|
|
22
|
+
<db-tab-item>Scroll Tab 2</db-tab-item>
|
|
23
|
+
<db-tab-item>Scroll 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>Scroll Panel 1</db-tab-panel>
|
|
26
|
+
<db-tab-panel>Scroll Panel 2</db-tab-panel>
|
|
27
|
+
<db-tab-panel>Scroll Panel 3</db-tab-panel>
|
|
28
28
|
</db-tabs>
|
|
29
29
|
<db-tabs behavior="arrows">
|
|
30
30
|
<db-tab-list>
|
|
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>
|
|
31
|
+
<db-tab-item>Arrow Tab 1</db-tab-item>
|
|
32
|
+
<db-tab-item>Arrow Tab 2</db-tab-item>
|
|
33
|
+
<db-tab-item>Arrow 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>Arrow Panel 1</db-tab-panel>
|
|
36
|
+
<db-tab-panel>Arrow Panel 2</db-tab-panel>
|
|
37
|
+
<db-tab-panel>Arrow 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>Tab 1</db-tab-item>
|
|
43
|
-
<db-tab-item>Tab 2</db-tab-item>
|
|
44
|
-
<db-tab-item>Tab 3</db-tab-item>
|
|
42
|
+
<db-tab-item>InitIdx Tab 1</db-tab-item>
|
|
43
|
+
<db-tab-item>InitIdx Tab 2</db-tab-item>
|
|
44
|
+
<db-tab-item>InitIdx 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>InitIdx Panel 1</db-tab-panel>
|
|
47
|
+
<db-tab-panel>InitIdx Panel 2</db-tab-panel>
|
|
48
|
+
<db-tab-panel>InitIdx 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>Tab 1</db-tab-item>
|
|
54
|
-
<db-tab-item>Tab 2</db-tab-item>
|
|
55
|
-
<db-tab-item>Tab 3</db-tab-item>
|
|
53
|
+
<db-tab-item>Manually Tab 1</db-tab-item>
|
|
54
|
+
<db-tab-item>Manually Tab 2</db-tab-item>
|
|
55
|
+
<db-tab-item>Manually 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>Manually Panel 1</db-tab-panel>
|
|
58
|
+
<db-tab-panel>Manually Panel 2</db-tab-panel>
|
|
59
|
+
<db-tab-panel>Manually 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: '37313149dbb34624302188bd983b9932457f076f', 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: 'b3e3ff977d50beaac0fd9494b299c4350051efde', "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: 'f5ba8731107cec6502f3e6428d570902d1cde500', onClick: (event) => this.handleToggle(event) }, this.headlinePlain ? this.headlinePlain : null, !this.headlinePlain ? index.h("slot", { name: "headline" }) : null), index.h("div", { key: 'bc360ea7abba4c097948ad189098aed9af02f5e6' }, 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: '8164d39268a49f21eef416e8d654360cc79f4c33', 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: '4a5cd6564dbd1664d3c3f0a573b3fc6d3d8a74c4', 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: '460aeec1f8fa37791fcbe7257359acb1dd5517cb', 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: 'c4186fdd782849f2a8cb35f252f748b5db975eee', 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: '3c58b4510721a7c6b8bd5250a248376c2a92c980', 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: 'e2d63fe761ada56274a5854dda1fa457aff6933c' })));
|
|
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: '086f192b0edf3d55b182e0e5b344c880bf26ce70', 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: '05b81d3e48bf645507647fe2c496fff6f311df8c', htmlFor: this._id }, index.h("input", { key: '3ead0f7307b874b5e86c19f25e26e0eaa9100f73', 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: 'e4de39f7423cd40b5f7007d36a35c1f696177445', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '4a304d5c3c30852100cb8cee089470df84e29973', "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: 'cf5f5cca402398107d3d54c67bcf031c3e5d8958', 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: '14ac67bcd2415cd449605ad413be1aa7985a9f2b' })));
|
|
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: '625d4e6552b4e578d69e752964a8ff5e8f9beac4', 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: '998fddb455e0c9be05ebc9436d0ec585d9c336be' })));
|
|
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: 'd4f56f29ffc19a5fd5c4017bf60da2b84629a3cb', 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: '94211bc6ef2548695f7c373e47583476f609d2e3' }, index.h("slot", { key: '9fc30009e8eca4f3d47889859b9d746ca6ea1118' }))));
|
|
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: 'a2e057b64e5f73c9d6cb64b2b07afd5226858453', 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: '73b3cb05e018833a4d0904da71c2a65fc5614415', 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: '6032dd2d9e002ab97b5d507816735491fcc9d987', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL), index.h("input", { key: 'da74f699db5ef2aa13c470d616f9c6566c7cee63', "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: '1f106ac73098292312f9ec4f581c5dd8429e282b' }), 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: '9c7fab3b45bccccbeafa8d56b5772c4cc69cb9f8', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), index.h("span", { key: '8a65d32462252587f672d2c54f7a275a7913b3e1', "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: '6e87ea98743b6973817e5c8ab5100b369e3c577a', 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: 'd36b9c086d8f01f4a5dfbcb1bd8af0e2e2879c38', name: "content" }), index.h("slot", { key: '3f00e92338335abc36f74e0ba33c8e6bd20a2998' }), 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: '1edca678b33ebc2e238f479fd303b155fd5f34ba', 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: '646cf76bb6376af8ac5be736ffb33b7b83fc2406' })));
|
|
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: '1eb32ad2f5badccbc6b84ef451b3627d1a4439f5', 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: 'e6803b081d3bc122a21257833ba64741820467b9', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '5c3d8165e1183b06f632e6da64621e30840e22d2', 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: 'd3a47c7e456138026a77228e3bd39814309c8ab2', 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: 'fc7e14327dd7f731e69fee985b537bfb5df4ebf7' }), 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: '09e3a2a61b2be1027da1218b5115aaef6b9cdf2c', 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: '68092f98cf584db276b56a27edfb1c2890ff6c92', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '701dedd77ceb37f3f02d04cec198540357683bcf', "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: '229834e66fd365d36a7076ee50375f2d648016f2', 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: 'a77c684f5435ebc90ca6df7eea30a4c1d6e8756e', 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: '1c9046caa25e030eabdf3fd28d753b9dad127e65', 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: 'c1a8e4bf257692043ec2aa945d989e086eccc06f', class: "db-drawer-header" }, index.h("div", { key: 'b8f5bdf217dae13886ba01a40709b9c30f69cc90', class: "db-drawer-header-text" }, index.h("slot", { key: '21399153c1199194f36647762e9f9d5b2e9a7df7', name: "drawerHeader" })), index.h("db-button", { key: 'a2e1db9ad80a3bd8693f548328aaa9d8ab6295e6', 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: '1d674c4475959d95494badd902d6f0e379adc521', class: "db-drawer-content" }, index.h("slot", { key: '2f387f354572ce09ae5f73117d2930f8a682fc8e' })))));
|
|
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: '6b7542f09be273019e4a2db38194482a90d7860a', 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: '831aaf817b0fa513ec5e5dc4c330c2fa716897af', 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: '271d421742eae32a41d8a7768e29f01f1b9c952f', class: "db-header-drawer-navigation" }, index.h("div", { key: 'ac6d9af5ff4b2e294760695a776f248d9d5bf756', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '148922ebf9d852a8c240de740cca790191f8f81e' })), index.h("div", { key: '482b32d7e04547960ef2478f4b10f304cc246b20', class: "db-header-meta-navigation" }, index.h("slot", { key: 'a6feae39c0714770d5a9fb9d25260df1fb10effc', name: "metaNavigation" }))), index.h("div", { key: 'de0e67d3d547e4d0ea82de788e5a253436a67949', class: "db-header-secondary-action" }, index.h("slot", { key: '989d9cab2d33fc445ab5c7988b3e851f3452c452', name: "secondaryAction" }))), index.h("div", { key: 'e518b5045d99fa7a171ff330914bf915ca87b7e6', class: "db-header-meta-navigation" }, index.h("slot", { key: 'aa1077eacd48bef3e16a8b31635c89b9e31addf9', name: "metaNavigation" })), index.h("div", { key: '028358578a614b11aee56905b791f1fdf0e44c65', class: "db-header-navigation-bar" }, index.h("div", { key: 'c48f6905f52fe8b387f671802d5d1f4f0598be07', class: "db-header-brand-container" }, index.h("slot", { key: '37aae0fdf18ee4747bd685a223b1d9b205336042', name: "brand" })), index.h("div", { key: 'e2155e4f546d91c75733290d0a8c73b507b628aa', class: "db-header-navigation-container" }, index.h("div", { key: '07e19faa67fa4920872ff1f8426b4fb89118e9de', class: "db-header-navigation" }, index.h("slot", { key: 'ba4358bc0b459092feb524a02240bd465be5f1be' })), index.h("div", { key: 'b85a9d1dab7ea4b8e1d8f0bb9156c575511ea88f', class: "db-header-primary-action" }, index.h("slot", { key: 'f76003fd65f01088b9dfd7e4966895a8b893b675', name: "primaryAction" }))), index.h("div", { key: '0b9c26a05325fad02c4f1076d67a88de05b1f739', class: "db-header-action-container" }, index.h("div", { key: '5cd34e7a341e041508134c5cae16448fde09251b', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '6ac1cf00982f515ee86c978afef7788ad6a7eb81', 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: 'f25c7681051a6b8763c48630f3f23f9946cd68ea', class: "db-header-secondary-action" }, index.h("slot", { key: '76806c54a2558ffcd3498934e183bcba7fc2ef94', 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: 'f0c3320ea041e2c56869d0540d8deaed00fd570a', 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: '1a8d9f9db5b32a884f90a41cb124d54f32a7f4c0', 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: 'e5663911fcd4d3c7089f915aa842a28f09a4cafa', 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: '71431f09ac02e0d1093f40403597016a7d1aca53', 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: 'ca94fff30f495b5c5e4ff9ac7c7149fb371171d5', 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: '73f90a492f154a67253f02ca5b6b6d0ef0845df0' }, index.h("slot", { key: 'd70091bcc15c09d90086f2e04a0ad990b161f5ae' }))));
|
|
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: 'c352f22f011516ad6375434f95b689e05d08f354', 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: '997c558994530fdd2adb1f2f159ae3990c0f8950', name: "image" }), index$1.stringPropVisible(this.headline, this.showHeadline) ? (index.h("header", null, this.headline)) : null, index.h("div", { key: 'e2363b4e7d1e7ceb47ac3b992924d3a28099e11a', "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: '848011c47a131dd734ce241f0fecd0b4e12c85fd', 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: '3f5bc66c9df8cf413d9c2680e7684b0744e3a2c2', 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: 'e5295cb7977501b139dff99336deff500aae7574', name: "header" }), index.h("main", { key: 'f97e398d7355f1968fe70274df213e50c86e7ec2', class: index$1.cls("db-main", this.mainClass) }, index.h("slot", { key: '983a96b186d56daeccb13e16b4b0d985e1436178' })), index.h("slot", { key: 'd081d3a29bb55a627ced239b9d88681698f6425d', 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: '421d455f7991553a839b74e0911286ae9c02cff4', 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: 'f84d068f415c002eda648d07dbbf0d150922693f', name: "trigger" }), index.h("article", { key: 'd63682e3b821dd2d566ccfec3703b740146d7a7a', 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: '74a46121e0a9c5ae62e0d2e35299ff8de0939242' }))));
|
|
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: '2e30a82188ac83cc3c7bd7a396b1c5b46cc0a79a', 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: '74aad9996cffe5ed928bdacb63f82e860a603cb7', 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: 'fcfbe66bb695b60a923d394858d92627bf1f86d5', 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: '626b974f5e58ee2c14a29e6ceff7d312aaef4f1f' })));
|
|
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: 'ceb8838f81622fd92216cfdb965b6221b12ea7a7', 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: '8889e667cff25a524532e9e32f61418c14fa0163', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL), index.h("select", { key: '4ca3dbeeaba0c3bc95b2a8a3945a13060d816d87', "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: '0ea5b9c2d0ecfe76e15b7ecf1f39721ab80d5e31', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '1f817d1e72c71d581857ffd06101cd42839c25dc', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
249
249
|
}
|
|
250
250
|
static get watchers() { return {
|
|
251
251
|
"id": [{
|