@db-ux/wc-core-components 4.4.2 → 4.4.3
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 +10 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +9 -5
- package/dist/cjs/db-accordion.cjs.entry.js +8 -4
- package/dist/cjs/db-badge.cjs.entry.js +8 -4
- package/dist/cjs/db-brand.cjs.entry.js +8 -4
- package/dist/cjs/db-button.cjs.entry.js +8 -4
- package/dist/cjs/db-card.cjs.entry.js +9 -5
- package/dist/cjs/db-checkbox.cjs.entry.js +9 -5
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +40 -20
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +9 -5
- package/dist/cjs/db-custom-select.cjs.entry.js +14 -10
- package/dist/cjs/db-divider.cjs.entry.js +8 -4
- package/dist/cjs/db-drawer.cjs.entry.js +10 -6
- package/dist/cjs/db-header.cjs.entry.js +11 -7
- package/dist/cjs/db-icon.cjs.entry.js +8 -4
- package/dist/cjs/db-infotext.cjs.entry.js +8 -4
- package/dist/cjs/db-link.cjs.entry.js +8 -4
- package/dist/cjs/db-navigation-item.cjs.entry.js +10 -6
- package/dist/cjs/db-navigation.cjs.entry.js +9 -5
- package/dist/cjs/db-notification.cjs.entry.js +9 -5
- package/dist/cjs/db-page.cjs.entry.js +9 -5
- package/dist/cjs/db-popover.cjs.entry.js +11 -7
- package/dist/cjs/db-radio.cjs.entry.js +8 -4
- package/dist/cjs/db-section.cjs.entry.js +9 -5
- package/dist/cjs/db-select.cjs.entry.js +9 -5
- package/dist/cjs/db-stack.cjs.entry.js +9 -5
- package/dist/cjs/db-switch.cjs.entry.js +9 -5
- package/dist/cjs/db-tab-item_3.cjs.entry.js +25 -13
- package/dist/cjs/db-tabs.cjs.entry.js +9 -5
- package/dist/cjs/db-textarea.cjs.entry.js +9 -5
- package/dist/cjs/db-tooltip.cjs.entry.js +12 -7
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/{floating-components-ogUqz72V.js → floating-components-pYaTeNhp.js} +65 -15
- package/dist/cjs/{index-CEqZnn9s.js → index-Bh5ovRL2.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{navigation-DauGE-qj.js → navigation-BztJmEHf.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.js +7 -3
- package/dist/collection/components/accordion-item/accordion-item.js +8 -4
- package/dist/collection/components/badge/badge.js +7 -3
- package/dist/collection/components/brand/brand.js +7 -3
- package/dist/collection/components/button/button.js +7 -3
- package/dist/collection/components/card/card.js +8 -4
- package/dist/collection/components/checkbox/checkbox.js +8 -4
- package/dist/collection/components/custom-select/custom-select.js +12 -8
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +8 -4
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +8 -4
- package/dist/collection/components/custom-select-list/custom-select-list.js +8 -4
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +7 -3
- package/dist/collection/components/divider/divider.js +7 -3
- package/dist/collection/components/drawer/drawer.js +9 -5
- package/dist/collection/components/header/header.js +8 -4
- package/dist/collection/components/icon/icon.js +7 -3
- package/dist/collection/components/infotext/infotext.js +7 -3
- package/dist/collection/components/input/input.js +8 -4
- package/dist/collection/components/link/link.js +7 -3
- package/dist/collection/components/navigation/navigation.js +8 -4
- package/dist/collection/components/navigation-item/navigation-item.js +7 -3
- package/dist/collection/components/notification/notification.js +8 -4
- package/dist/collection/components/page/page.js +8 -4
- package/dist/collection/components/popover/popover.js +9 -5
- package/dist/collection/components/radio/radio.js +7 -3
- package/dist/collection/components/section/section.js +8 -4
- package/dist/collection/components/select/select.js +8 -4
- package/dist/collection/components/stack/stack.js +8 -4
- package/dist/collection/components/switch/switch.js +13 -7
- package/dist/collection/components/tab-item/tab-item.js +8 -4
- package/dist/collection/components/tab-list/tab-list.js +8 -4
- package/dist/collection/components/tab-panel/tab-panel.js +8 -4
- package/dist/collection/components/tabs/tabs.js +8 -4
- package/dist/collection/components/tag/tag.js +8 -4
- package/dist/collection/components/textarea/textarea.js +8 -4
- package/dist/collection/components/tooltip/tooltip.js +10 -5
- package/dist/collection/utils/floating-components.js +65 -15
- package/dist/custom-elements.json +17369 -1424
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/p-1a72176e.entry.js +1 -0
- package/dist/db-ux/p-1b7f6a0b.entry.js +1 -0
- package/dist/db-ux/p-1da21066.entry.js +1 -0
- package/dist/db-ux/p-2d15e200.entry.js +1 -0
- package/dist/db-ux/p-312d52da.entry.js +1 -0
- package/dist/db-ux/p-3e6b86d6.entry.js +1 -0
- package/dist/db-ux/p-4aa16916.entry.js +1 -0
- package/dist/db-ux/p-4b69acea.entry.js +1 -0
- package/dist/db-ux/p-4cfff250.entry.js +1 -0
- package/dist/db-ux/p-5237e5d5.entry.js +1 -0
- package/dist/db-ux/p-5b1a0f0f.entry.js +1 -0
- package/dist/db-ux/p-5fa85b19.entry.js +1 -0
- package/dist/db-ux/p-64264628.entry.js +1 -0
- package/dist/db-ux/p-7351b5ab.entry.js +1 -0
- package/dist/db-ux/p-77150a25.entry.js +1 -0
- package/dist/db-ux/p-7c6b7578.entry.js +1 -0
- package/dist/db-ux/p-828a77d8.entry.js +1 -0
- package/dist/db-ux/p-9b47dc80.entry.js +1 -0
- package/dist/db-ux/p-DfYL98sI.js +1 -0
- package/dist/db-ux/p-a3a8ce36.entry.js +1 -0
- package/dist/db-ux/p-aa0f7280.entry.js +1 -0
- package/dist/db-ux/p-b07122c4.entry.js +1 -0
- package/dist/db-ux/p-b1fc0f4c.entry.js +1 -0
- package/dist/db-ux/p-c2624e1b.entry.js +1 -0
- package/dist/db-ux/p-c29d8e32.entry.js +1 -0
- package/dist/db-ux/{p-sP2NlPcu.js → p-cNk4ImpW.js} +1 -1
- package/dist/db-ux/p-cf50169a.entry.js +1 -0
- package/dist/db-ux/p-d4f3cfa2.entry.js +1 -0
- package/dist/db-ux/p-e05fee5a.entry.js +1 -0
- package/dist/db-ux/p-f40d2d61.entry.js +1 -0
- package/dist/db-ux/p-fcf8e274.entry.js +1 -0
- package/dist/db-ux/p-fe06f815.entry.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +9 -5
- package/dist/esm/db-accordion.entry.js +8 -4
- package/dist/esm/db-badge.entry.js +8 -4
- package/dist/esm/db-brand.entry.js +8 -4
- package/dist/esm/db-button.entry.js +8 -4
- package/dist/esm/db-card.entry.js +9 -5
- package/dist/esm/db-checkbox.entry.js +9 -5
- package/dist/esm/db-custom-select-dropdown_5.entry.js +40 -20
- package/dist/esm/db-custom-select-form-field.entry.js +9 -5
- package/dist/esm/db-custom-select.entry.js +14 -10
- package/dist/esm/db-divider.entry.js +8 -4
- package/dist/esm/db-drawer.entry.js +10 -6
- package/dist/esm/db-header.entry.js +11 -7
- package/dist/esm/db-icon.entry.js +8 -4
- package/dist/esm/db-infotext.entry.js +8 -4
- package/dist/esm/db-link.entry.js +8 -4
- package/dist/esm/db-navigation-item.entry.js +10 -6
- package/dist/esm/db-navigation.entry.js +9 -5
- package/dist/esm/db-notification.entry.js +9 -5
- package/dist/esm/db-page.entry.js +9 -5
- package/dist/esm/db-popover.entry.js +11 -7
- package/dist/esm/db-radio.entry.js +8 -4
- package/dist/esm/db-section.entry.js +9 -5
- package/dist/esm/db-select.entry.js +9 -5
- package/dist/esm/db-stack.entry.js +9 -5
- package/dist/esm/db-switch.entry.js +9 -5
- package/dist/esm/db-tab-item_3.entry.js +25 -13
- package/dist/esm/db-tabs.entry.js +9 -5
- package/dist/esm/db-textarea.entry.js +9 -5
- package/dist/esm/db-tooltip.entry.js +12 -7
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/{floating-components-G-TursYV.js → floating-components-DfYL98sI.js} +65 -15
- package/dist/esm/{index-BrThqi62.js → index-Crtu1dn6.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{navigation--UdC9CzO.js → navigation-DgsMCdfn.js} +1 -1
- package/dist/types/components/switch/model.d.ts +1 -1
- package/dist/types/components.d.ts +1 -0
- package/dist/types/shared/model.d.ts +2 -2
- package/dist/vscode.html-custom-data.json +1718 -294
- package/dist/web-types.json +2740 -666
- package/package.json +4 -4
- package/dist/db-ux/p-07bf3657.entry.js +0 -1
- package/dist/db-ux/p-0a89cbcd.entry.js +0 -1
- package/dist/db-ux/p-15539d9d.entry.js +0 -1
- package/dist/db-ux/p-41cb4673.entry.js +0 -1
- package/dist/db-ux/p-460073dd.entry.js +0 -1
- package/dist/db-ux/p-4a9b9909.entry.js +0 -1
- package/dist/db-ux/p-4ec09cf1.entry.js +0 -1
- package/dist/db-ux/p-57205dfd.entry.js +0 -1
- package/dist/db-ux/p-5775bf7a.entry.js +0 -1
- package/dist/db-ux/p-5bcde39a.entry.js +0 -1
- package/dist/db-ux/p-6341aaa9.entry.js +0 -1
- package/dist/db-ux/p-64573104.entry.js +0 -1
- package/dist/db-ux/p-6b63156d.entry.js +0 -1
- package/dist/db-ux/p-70822a27.entry.js +0 -1
- package/dist/db-ux/p-710a430d.entry.js +0 -1
- package/dist/db-ux/p-72d712b0.entry.js +0 -1
- package/dist/db-ux/p-7b7f4d03.entry.js +0 -1
- package/dist/db-ux/p-7bd4c573.entry.js +0 -1
- package/dist/db-ux/p-819cf20a.entry.js +0 -1
- package/dist/db-ux/p-87fdbcfb.entry.js +0 -1
- package/dist/db-ux/p-9051e26c.entry.js +0 -1
- package/dist/db-ux/p-934a708c.entry.js +0 -1
- package/dist/db-ux/p-9ffa5c48.entry.js +0 -1
- package/dist/db-ux/p-G-TursYV.js +0 -1
- package/dist/db-ux/p-a9af70eb.entry.js +0 -1
- package/dist/db-ux/p-aa8383a3.entry.js +0 -1
- package/dist/db-ux/p-ba1f69bd.entry.js +0 -1
- package/dist/db-ux/p-d273b998.entry.js +0 -1
- package/dist/db-ux/p-da4ee6ee.entry.js +0 -1
- package/dist/db-ux/p-e584e927.entry.js +0 -1
- package/dist/db-ux/p-fe185f98.entry.js +0 -1
- /package/dist/db-ux/{p-BrThqi62.js → p-Crtu1dn6.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @db-ux/wc-core-components
|
|
2
2
|
|
|
3
|
+
## 4.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: icon color for DBTag with semantic property set - [see commit 89c4ad7](https://github.com/db-ux-design-system/core-web/commit/89c4ad7274cdadaccc0aedc106d6f2c781e6ce8a)
|
|
8
|
+
|
|
9
|
+
- fix: issue with DBCustomSelect not working properly with customValidity="no-validation" - [see commit 758ecb9](https://github.com/db-ux-design-system/core-web/commit/758ecb90f82a6c3d648728fa92c92474600b9941)
|
|
10
|
+
|
|
11
|
+
- fix: issue with floating-components (tooltip, popover, etc.) inside other absolute or fixed elements - [see commit e6d934f](https://github.com/db-ux-design-system/core-web/commit/e6d934f0c0a4af0b6dd57f81773831a2431b94e1)
|
|
12
|
+
|
|
3
13
|
## 4.4.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBAccordionItem = class {
|
|
@@ -42,12 +42,16 @@ const DBAccordionItem = class {
|
|
|
42
42
|
const attributes = parent.attributes;
|
|
43
43
|
for (let i = 0; i < attributes.length; i++) {
|
|
44
44
|
const attr = attributes.item(i);
|
|
45
|
-
if (attr &&
|
|
45
|
+
if (attr && attr.name !== 'data-density' &&
|
|
46
46
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
47
47
|
element.setAttribute(attr.name, attr.value);
|
|
48
48
|
parent.removeAttribute(attr.name);
|
|
49
49
|
}
|
|
50
|
-
if (attr && attr.name
|
|
50
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
51
|
+
element.setAttribute(attr.name, attr.value);
|
|
52
|
+
parent.removeAttribute(attr.name);
|
|
53
|
+
}
|
|
54
|
+
else if (attr && attr.name === "class") {
|
|
51
55
|
const isWebComponent = attr.value.includes("hydrated");
|
|
52
56
|
const value = attr.value.replace("hydrated", "").trim();
|
|
53
57
|
const currentClass = element.getAttribute("class");
|
|
@@ -86,9 +90,9 @@ const DBAccordionItem = class {
|
|
|
86
90
|
this.watch1Fn();
|
|
87
91
|
}
|
|
88
92
|
render() {
|
|
89
|
-
return (index.h("li", { key: '
|
|
93
|
+
return (index.h("li", { key: '3d451c7de0d3bbc3638c70a2955c450ff014ac9c', class: index$1.cls("db-accordion-item", this.className), id: this.id }, index.h("details", { key: '15e159f6dc3f0e08dce955d088b6cce4b3899125', "aria-disabled": index$1.getBooleanAsString(this.disabled), ref: (el) => {
|
|
90
94
|
this._ref = el;
|
|
91
|
-
}, name: this._name, open: this._open }, index.h("summary", { key: '
|
|
95
|
+
}, name: this._name, open: this._open }, index.h("summary", { key: 'd8338436859a61a032b5ec779c249e4af58689eb', onClick: (event) => this.handleToggle(event) }, this.headlinePlain ? this.headlinePlain : null, !this.headlinePlain ? index.h("slot", { name: "headline" }) : null), index.h("div", { key: 'de1fbd85cf4ccc2e3ee0aa87d0232292f25376cc' }, this.text ? this.text : index.h("slot", null)))));
|
|
92
96
|
}
|
|
93
97
|
static get watchers() { return {
|
|
94
98
|
"_ref": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBAccordion = class {
|
|
@@ -33,12 +33,16 @@ const DBAccordion = class {
|
|
|
33
33
|
const attributes = parent.attributes;
|
|
34
34
|
for (let i = 0; i < attributes.length; i++) {
|
|
35
35
|
const attr = attributes.item(i);
|
|
36
|
-
if (attr &&
|
|
36
|
+
if (attr && attr.name !== 'data-density' &&
|
|
37
37
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
38
38
|
element.setAttribute(attr.name, attr.value);
|
|
39
39
|
parent.removeAttribute(attr.name);
|
|
40
40
|
}
|
|
41
|
-
if (attr && attr.name
|
|
41
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
42
|
+
element.setAttribute(attr.name, attr.value);
|
|
43
|
+
parent.removeAttribute(attr.name);
|
|
44
|
+
}
|
|
45
|
+
else if (attr && attr.name === "class") {
|
|
42
46
|
const isWebComponent = attr.value.includes("hydrated");
|
|
43
47
|
const value = attr.value.replace("hydrated", "").trim();
|
|
44
48
|
const currentClass = element.getAttribute("class");
|
|
@@ -126,7 +130,7 @@ const DBAccordion = class {
|
|
|
126
130
|
}
|
|
127
131
|
render() {
|
|
128
132
|
var _a;
|
|
129
|
-
return (index.h("ul", { key: '
|
|
133
|
+
return (index.h("ul", { key: '7a53323d44434d5996ec63b36c1f3c0f5791c0e1', class: index$1.cls("db-accordion", this.className), ref: (el) => {
|
|
130
134
|
this._ref = el;
|
|
131
135
|
}, id: this.id, "data-variant": this.variant }, !this.items ? index.h("slot", null) : null, this.items
|
|
132
136
|
? (_a = this.convertItems()) === null || _a === void 0 ? void 0 : _a.map((item, index$1) => (index.h("db-accordion-item", { key: `accordion-item-${index$1}`, headlinePlain: item.headlinePlain, disabled: item.disabled, text: item.text })))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
@@ -20,12 +20,16 @@ const DBBadge = class {
|
|
|
20
20
|
const attributes = parent.attributes;
|
|
21
21
|
for (let i = 0; i < attributes.length; i++) {
|
|
22
22
|
const attr = attributes.item(i);
|
|
23
|
-
if (attr &&
|
|
23
|
+
if (attr && attr.name !== 'data-density' &&
|
|
24
24
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
25
25
|
element.setAttribute(attr.name, attr.value);
|
|
26
26
|
parent.removeAttribute(attr.name);
|
|
27
27
|
}
|
|
28
|
-
if (attr && attr.name
|
|
28
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
29
|
+
element.setAttribute(attr.name, attr.value);
|
|
30
|
+
parent.removeAttribute(attr.name);
|
|
31
|
+
}
|
|
32
|
+
else if (attr && attr.name === "class") {
|
|
29
33
|
const isWebComponent = attr.value.includes("hydrated");
|
|
30
34
|
const value = attr.value.replace("hydrated", "").trim();
|
|
31
35
|
const currentClass = element.getAttribute("class");
|
|
@@ -66,7 +70,7 @@ const DBBadge = class {
|
|
|
66
70
|
}
|
|
67
71
|
render() {
|
|
68
72
|
var _a, _b;
|
|
69
|
-
return (index.h("span", { key: '
|
|
73
|
+
return (index.h("span", { key: 'a7f9f4fadf050ee85d7fd4cd0a0d4059b62f4feb', class: index$1.cls("db-badge", this.className), ref: (el) => {
|
|
70
74
|
this._ref = el;
|
|
71
75
|
}, id: this.id, "data-semantic": this.semantic, "data-size": this.size, "data-emphasis": this.emphasis, "data-placement": this.placement, "data-label": ((_a = this.placement) === null || _a === void 0 ? void 0 : _a.startsWith("corner")) && ((_b = this.label) !== null && _b !== void 0 ? _b : constants.DEFAULT_LABEL) }, this.text ? this.text : index.h("slot", null)));
|
|
72
76
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
@@ -19,12 +19,16 @@ const DBBrand = class {
|
|
|
19
19
|
const attributes = parent.attributes;
|
|
20
20
|
for (let i = 0; i < attributes.length; i++) {
|
|
21
21
|
const attr = attributes.item(i);
|
|
22
|
-
if (attr &&
|
|
22
|
+
if (attr && attr.name !== 'data-density' &&
|
|
23
23
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
24
24
|
element.setAttribute(attr.name, attr.value);
|
|
25
25
|
parent.removeAttribute(attr.name);
|
|
26
26
|
}
|
|
27
|
-
if (attr && attr.name
|
|
27
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
28
|
+
element.setAttribute(attr.name, attr.value);
|
|
29
|
+
parent.removeAttribute(attr.name);
|
|
30
|
+
}
|
|
31
|
+
else if (attr && attr.name === "class") {
|
|
28
32
|
const isWebComponent = attr.value.includes("hydrated");
|
|
29
33
|
const value = attr.value.replace("hydrated", "").trim();
|
|
30
34
|
const currentClass = element.getAttribute("class");
|
|
@@ -45,7 +49,7 @@ const DBBrand = class {
|
|
|
45
49
|
}
|
|
46
50
|
render() {
|
|
47
51
|
var _a;
|
|
48
|
-
return (index.h("div", { key: '
|
|
52
|
+
return (index.h("div", { key: '0d5da13b94918698efe2d8bc1adbbe293403ee3b', class: index$1.cls("db-brand", this.className), ref: (el) => {
|
|
49
53
|
this._ref = el;
|
|
50
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: this.id }, this.text ? this.text : index.h("slot", null)));
|
|
51
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBButton = class {
|
|
@@ -28,12 +28,16 @@ const DBButton = class {
|
|
|
28
28
|
const attributes = parent.attributes;
|
|
29
29
|
for (let i = 0; i < attributes.length; i++) {
|
|
30
30
|
const attr = attributes.item(i);
|
|
31
|
-
if (attr &&
|
|
31
|
+
if (attr && attr.name !== 'data-density' &&
|
|
32
32
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
33
33
|
element.setAttribute(attr.name, attr.value);
|
|
34
34
|
parent.removeAttribute(attr.name);
|
|
35
35
|
}
|
|
36
|
-
if (attr && attr.name
|
|
36
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
37
|
+
element.setAttribute(attr.name, attr.value);
|
|
38
|
+
parent.removeAttribute(attr.name);
|
|
39
|
+
}
|
|
40
|
+
else if (attr && attr.name === "class") {
|
|
37
41
|
const isWebComponent = attr.value.includes("hydrated");
|
|
38
42
|
const value = attr.value.replace("hydrated", "").trim();
|
|
39
43
|
const currentClass = element.getAttribute("class");
|
|
@@ -54,7 +58,7 @@ const DBButton = class {
|
|
|
54
58
|
}
|
|
55
59
|
render() {
|
|
56
60
|
var _a, _b;
|
|
57
|
-
return (index.h("button", { key: '
|
|
61
|
+
return (index.h("button", { key: '952146baca92fb27e48b5369b9aed2ca5ef0e057', class: index$1.cls("db-button", this.className), ref: (el) => {
|
|
58
62
|
this._ref = el;
|
|
59
63
|
}, id: this.id, type: this.getButtonType(), disabled: index$1.getBoolean(this.disabled, "disabled"), "data-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-show-icon": index$1.getBooleanAsString((_b = this.showIconLeading) !== null && _b !== void 0 ? _b : 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), name: this.name, form: this.form, value: this.value }, this.text ? this.text : index.h("slot", null)));
|
|
60
64
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBCard = class {
|
|
@@ -24,12 +24,16 @@ const DBCard = class {
|
|
|
24
24
|
const attributes = parent.attributes;
|
|
25
25
|
for (let i = 0; i < attributes.length; i++) {
|
|
26
26
|
const attr = attributes.item(i);
|
|
27
|
-
if (attr &&
|
|
27
|
+
if (attr && attr.name !== 'data-density' &&
|
|
28
28
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
29
29
|
element.setAttribute(attr.name, attr.value);
|
|
30
30
|
parent.removeAttribute(attr.name);
|
|
31
31
|
}
|
|
32
|
-
if (attr && attr.name
|
|
32
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
33
|
+
element.setAttribute(attr.name, attr.value);
|
|
34
|
+
parent.removeAttribute(attr.name);
|
|
35
|
+
}
|
|
36
|
+
else if (attr && attr.name === "class") {
|
|
33
37
|
const isWebComponent = attr.value.includes("hydrated");
|
|
34
38
|
const value = attr.value.replace("hydrated", "").trim();
|
|
35
39
|
const currentClass = element.getAttribute("class");
|
|
@@ -49,9 +53,9 @@ const DBCard = class {
|
|
|
49
53
|
this.enableAttributePassing(this._ref, "db-card");
|
|
50
54
|
}
|
|
51
55
|
render() {
|
|
52
|
-
return (index.h("div", { key: '
|
|
56
|
+
return (index.h("div", { key: 'bd0f8bb8e254da7ac028b05ca73329189111c4a1', class: index$1.cls("db-card", this.className), ref: (el) => {
|
|
53
57
|
this._ref = el;
|
|
54
|
-
}, id: this.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, index.h("slot", { key: '
|
|
58
|
+
}, id: this.id, "data-behavior": this.behavior, "data-elevation-level": this.elevationLevel, "data-spacing": this.spacing, onClick: (event) => this.handleClick(event) }, index.h("slot", { key: '1ccf3a3ec5e169032692bd47443e36ae11592ab4' })));
|
|
55
59
|
}
|
|
56
60
|
};
|
|
57
61
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
var formComponents = require('./form-components-LsqVohyb.js');
|
|
@@ -82,12 +82,16 @@ const DBCheckbox = class {
|
|
|
82
82
|
const attributes = parent.attributes;
|
|
83
83
|
for (let i = 0; i < attributes.length; i++) {
|
|
84
84
|
const attr = attributes.item(i);
|
|
85
|
-
if (attr &&
|
|
85
|
+
if (attr && attr.name !== 'data-density' &&
|
|
86
86
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
87
87
|
element.setAttribute(attr.name, attr.value);
|
|
88
88
|
parent.removeAttribute(attr.name);
|
|
89
89
|
}
|
|
90
|
-
if (attr && attr.name
|
|
90
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
91
|
+
element.setAttribute(attr.name, attr.value);
|
|
92
|
+
parent.removeAttribute(attr.name);
|
|
93
|
+
}
|
|
94
|
+
else if (attr && attr.name === "class") {
|
|
91
95
|
const isWebComponent = attr.value.includes("hydrated");
|
|
92
96
|
const value = attr.value.replace("hydrated", "").trim();
|
|
93
97
|
const currentClass = element.getAttribute("class");
|
|
@@ -193,9 +197,9 @@ const DBCheckbox = class {
|
|
|
193
197
|
}
|
|
194
198
|
render() {
|
|
195
199
|
var _a;
|
|
196
|
-
return (index.h("div", { key: '
|
|
200
|
+
return (index.h("div", { key: '14207f00c5b68441e94201de7569324756b657d7', 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: '577bdb32a38254f72a969d6da16fb220c620e156', htmlFor: this._id }, index.h("input", { key: 'ecbed0f4b8347617f2cc6d017b09a56d495b922d', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
197
201
|
this._ref = el;
|
|
198
|
-
}, 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: '
|
|
202
|
+
}, 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: 'eae86bcaa2fe6e0fe39249fa5f9a7ae13e172f63', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '420c4244393b3ee266c374db1662dacfa43a0bce', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
199
203
|
}
|
|
200
204
|
static get watchers() { return {
|
|
201
205
|
"_ref": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
var constants = require('./constants-bMY2_d8A.js');
|
|
6
6
|
var formComponents = require('./form-components-LsqVohyb.js');
|
|
@@ -21,12 +21,16 @@ const DBCustomSelectDropdown = class {
|
|
|
21
21
|
const attributes = parent.attributes;
|
|
22
22
|
for (let i = 0; i < attributes.length; i++) {
|
|
23
23
|
const attr = attributes.item(i);
|
|
24
|
-
if (attr &&
|
|
24
|
+
if (attr && attr.name !== 'data-density' &&
|
|
25
25
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
26
26
|
element.setAttribute(attr.name, attr.value);
|
|
27
27
|
parent.removeAttribute(attr.name);
|
|
28
28
|
}
|
|
29
|
-
if (attr && attr.name
|
|
29
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
30
|
+
element.setAttribute(attr.name, attr.value);
|
|
31
|
+
parent.removeAttribute(attr.name);
|
|
32
|
+
}
|
|
33
|
+
else if (attr && attr.name === "class") {
|
|
30
34
|
const isWebComponent = attr.value.includes("hydrated");
|
|
31
35
|
const value = attr.value.replace("hydrated", "").trim();
|
|
32
36
|
const currentClass = element.getAttribute("class");
|
|
@@ -46,9 +50,9 @@ const DBCustomSelectDropdown = class {
|
|
|
46
50
|
this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
|
|
47
51
|
}
|
|
48
52
|
render() {
|
|
49
|
-
return (index.h("article", { key: '
|
|
53
|
+
return (index.h("article", { key: 'ac22786c8688e2f979e626155cb8dea54a5380b7', class: index$1.cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
|
|
50
54
|
this._ref = el;
|
|
51
|
-
}, id: this.id, "data-width": this.width }, index.h("slot", { key: '
|
|
55
|
+
}, id: this.id, "data-width": this.width }, index.h("slot", { key: '2257275bfc7a9f75e944d61e8afc7493770478b5' })));
|
|
52
56
|
}
|
|
53
57
|
};
|
|
54
58
|
|
|
@@ -67,12 +71,16 @@ const DBCustomSelectList = class {
|
|
|
67
71
|
const attributes = parent.attributes;
|
|
68
72
|
for (let i = 0; i < attributes.length; i++) {
|
|
69
73
|
const attr = attributes.item(i);
|
|
70
|
-
if (attr &&
|
|
74
|
+
if (attr && attr.name !== 'data-density' &&
|
|
71
75
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
72
76
|
element.setAttribute(attr.name, attr.value);
|
|
73
77
|
parent.removeAttribute(attr.name);
|
|
74
78
|
}
|
|
75
|
-
if (attr && attr.name
|
|
79
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
80
|
+
element.setAttribute(attr.name, attr.value);
|
|
81
|
+
parent.removeAttribute(attr.name);
|
|
82
|
+
}
|
|
83
|
+
else if (attr && attr.name === "class") {
|
|
76
84
|
const isWebComponent = attr.value.includes("hydrated");
|
|
77
85
|
const value = attr.value.replace("hydrated", "").trim();
|
|
78
86
|
const currentClass = element.getAttribute("class");
|
|
@@ -92,9 +100,9 @@ const DBCustomSelectList = class {
|
|
|
92
100
|
this.enableAttributePassing(this._ref, "db-custom-select-list");
|
|
93
101
|
}
|
|
94
102
|
render() {
|
|
95
|
-
return (index.h("div", { key: '
|
|
103
|
+
return (index.h("div", { key: '5f26917a02c72091c5d2c0a21a04b2f45b983b35', class: index$1.cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
96
104
|
this._ref = el;
|
|
97
|
-
}, id: this.id }, index.h("ul", { key: '
|
|
105
|
+
}, id: this.id }, index.h("ul", { key: '5eaa90fa614daa186d2b10064066e2cc030da8eb' }, index.h("slot", { key: '15289fd4ac602d6f182fb112f66e716e56f79101' }))));
|
|
98
106
|
}
|
|
99
107
|
};
|
|
100
108
|
|
|
@@ -127,12 +135,16 @@ const DBCustomSelectListItem = class {
|
|
|
127
135
|
const attributes = parent.attributes;
|
|
128
136
|
for (let i = 0; i < attributes.length; i++) {
|
|
129
137
|
const attr = attributes.item(i);
|
|
130
|
-
if (attr &&
|
|
138
|
+
if (attr && attr.name !== 'data-density' &&
|
|
131
139
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
132
140
|
element.setAttribute(attr.name, attr.value);
|
|
133
141
|
parent.removeAttribute(attr.name);
|
|
134
142
|
}
|
|
135
|
-
if (attr && attr.name
|
|
143
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
144
|
+
element.setAttribute(attr.name, attr.value);
|
|
145
|
+
parent.removeAttribute(attr.name);
|
|
146
|
+
}
|
|
147
|
+
else if (attr && attr.name === "class") {
|
|
136
148
|
const isWebComponent = attr.value.includes("hydrated");
|
|
137
149
|
const value = attr.value.replace("hydrated", "").trim();
|
|
138
150
|
const currentClass = element.getAttribute("class");
|
|
@@ -159,7 +171,7 @@ const DBCustomSelectListItem = class {
|
|
|
159
171
|
this.watch0Fn();
|
|
160
172
|
}
|
|
161
173
|
render() {
|
|
162
|
-
return (index.h("li", { key: '
|
|
174
|
+
return (index.h("li", { key: 'fd25b48f61d95cc1c81526edf9413aef628f7472', class: index$1.cls("db-custom-select-list-item", this.className, {
|
|
163
175
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
164
176
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
165
177
|
}), ref: (el) => {
|
|
@@ -270,12 +282,16 @@ const DBInput = class {
|
|
|
270
282
|
const attributes = parent.attributes;
|
|
271
283
|
for (let i = 0; i < attributes.length; i++) {
|
|
272
284
|
const attr = attributes.item(i);
|
|
273
|
-
if (attr &&
|
|
285
|
+
if (attr && attr.name !== 'data-density' &&
|
|
274
286
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
275
287
|
element.setAttribute(attr.name, attr.value);
|
|
276
288
|
parent.removeAttribute(attr.name);
|
|
277
289
|
}
|
|
278
|
-
if (attr && attr.name
|
|
290
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
291
|
+
element.setAttribute(attr.name, attr.value);
|
|
292
|
+
parent.removeAttribute(attr.name);
|
|
293
|
+
}
|
|
294
|
+
else if (attr && attr.name === "class") {
|
|
279
295
|
const isWebComponent = attr.value.includes("hydrated");
|
|
280
296
|
const value = attr.value.replace("hydrated", "").trim();
|
|
281
297
|
const currentClass = element.getAttribute("class");
|
|
@@ -371,7 +387,7 @@ const DBInput = class {
|
|
|
371
387
|
}
|
|
372
388
|
render() {
|
|
373
389
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
374
|
-
return (index.h("div", { key: '
|
|
390
|
+
return (index.h("div", { key: '394d66670226d01b6f790d13bdbc8eb00fb376ca', 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: '981344e97a91cb8c369587870e532af85fcb29c3', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL), index.h("input", { key: 'e7536b30d16211cc3842e7dd6e74bffe5749685f', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
375
391
|
this._ref = el;
|
|
376
392
|
}, 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: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, 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") ||
|
|
377
393
|
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": (_f = this.ariaDescribedBy) !== null && _f !== void 0 ? _f : this._descByIds, role: [
|
|
@@ -383,7 +399,7 @@ const DBInput = class {
|
|
|
383
399
|
"color",
|
|
384
400
|
].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && index$1.isIOSSafari()
|
|
385
401
|
? "textbox"
|
|
386
|
-
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: '
|
|
402
|
+
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: 'f5e0e8f70ab5b9ad772f38fdc8d4124e0a77faeb' }), 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: 'ffb47610dff1d37759eda1f9a5022bbabbe2a7a4', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), index.h("span", { key: '102226d02f55e79a6e3af37899544545da43a98b', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
387
403
|
}
|
|
388
404
|
static get watchers() { return {
|
|
389
405
|
"_ref": [{
|
|
@@ -434,12 +450,16 @@ const DBTag = class {
|
|
|
434
450
|
const attributes = parent.attributes;
|
|
435
451
|
for (let i = 0; i < attributes.length; i++) {
|
|
436
452
|
const attr = attributes.item(i);
|
|
437
|
-
if (attr &&
|
|
453
|
+
if (attr && attr.name !== 'data-density' &&
|
|
438
454
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
439
455
|
element.setAttribute(attr.name, attr.value);
|
|
440
456
|
parent.removeAttribute(attr.name);
|
|
441
457
|
}
|
|
442
|
-
if (attr && attr.name
|
|
458
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
459
|
+
element.setAttribute(attr.name, attr.value);
|
|
460
|
+
parent.removeAttribute(attr.name);
|
|
461
|
+
}
|
|
462
|
+
else if (attr && attr.name === "class") {
|
|
443
463
|
const isWebComponent = attr.value.includes("hydrated");
|
|
444
464
|
const value = attr.value.replace("hydrated", "").trim();
|
|
445
465
|
const currentClass = element.getAttribute("class");
|
|
@@ -460,9 +480,9 @@ const DBTag = class {
|
|
|
460
480
|
}
|
|
461
481
|
render() {
|
|
462
482
|
var _a;
|
|
463
|
-
return (index.h("div", { key: '
|
|
483
|
+
return (index.h("div", { key: 'c0f6907ce1246c8047c5af115a093ecaa4032a55', class: index$1.cls("db-tag", this.className), ref: (el) => {
|
|
464
484
|
this._ref = el;
|
|
465
|
-
}, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : 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: '
|
|
485
|
+
}, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : 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: 'c5e244aebde8e2fa54bcd61e66d69559a607a952', name: "content" }), index.h("slot", { key: '7356f14f2c11b4180f1f59ef8bd5a4e0dffb9d9c' }), 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));
|
|
466
486
|
}
|
|
467
487
|
};
|
|
468
488
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBCustomSelectFormField = class {
|
|
@@ -18,12 +18,16 @@ const DBCustomSelectFormField = class {
|
|
|
18
18
|
const attributes = parent.attributes;
|
|
19
19
|
for (let i = 0; i < attributes.length; i++) {
|
|
20
20
|
const attr = attributes.item(i);
|
|
21
|
-
if (attr &&
|
|
21
|
+
if (attr && attr.name !== 'data-density' &&
|
|
22
22
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
23
23
|
element.setAttribute(attr.name, attr.value);
|
|
24
24
|
parent.removeAttribute(attr.name);
|
|
25
25
|
}
|
|
26
|
-
if (attr && attr.name
|
|
26
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
27
|
+
element.setAttribute(attr.name, attr.value);
|
|
28
|
+
parent.removeAttribute(attr.name);
|
|
29
|
+
}
|
|
30
|
+
else if (attr && attr.name === "class") {
|
|
27
31
|
const isWebComponent = attr.value.includes("hydrated");
|
|
28
32
|
const value = attr.value.replace("hydrated", "").trim();
|
|
29
33
|
const currentClass = element.getAttribute("class");
|
|
@@ -43,9 +47,9 @@ const DBCustomSelectFormField = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-custom-select-form-field");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
return (index.h("summary", { key: '
|
|
50
|
+
return (index.h("summary", { key: '4ade22e5e7d664747ba44a25cea8778ee76de2c0', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
47
51
|
this._ref = el;
|
|
48
|
-
}, id: this.id }, index.h("slot", { key: '
|
|
52
|
+
}, id: this.id }, index.h("slot", { key: '457f965d451fcd6e03199b4273a2e0ebb6b85bb1' })));
|
|
49
53
|
}
|
|
50
54
|
};
|
|
51
55
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bh5ovRL2.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
var documentClickListener = require('./document-click-listener-Bb3Tinb8.js');
|
|
7
7
|
var documentScrollListener = require('./document-scroll-listener-unypEU42.js');
|
|
8
|
-
var floatingComponents = require('./floating-components-
|
|
8
|
+
var floatingComponents = require('./floating-components-pYaTeNhp.js');
|
|
9
9
|
var formComponents = require('./form-components-LsqVohyb.js');
|
|
10
10
|
|
|
11
11
|
const DBCustomSelect = class {
|
|
@@ -479,12 +479,16 @@ const DBCustomSelect = class {
|
|
|
479
479
|
const attributes = parent.attributes;
|
|
480
480
|
for (let i = 0; i < attributes.length; i++) {
|
|
481
481
|
const attr = attributes.item(i);
|
|
482
|
-
if (attr &&
|
|
482
|
+
if (attr && attr.name !== 'data-density' &&
|
|
483
483
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
484
484
|
element.setAttribute(attr.name, attr.value);
|
|
485
485
|
parent.removeAttribute(attr.name);
|
|
486
486
|
}
|
|
487
|
-
if (attr && attr.name
|
|
487
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
488
|
+
element.setAttribute(attr.name, attr.value);
|
|
489
|
+
parent.removeAttribute(attr.name);
|
|
490
|
+
}
|
|
491
|
+
else if (attr && attr.name === "class") {
|
|
488
492
|
const isWebComponent = attr.value.includes("hydrated");
|
|
489
493
|
const value = attr.value.replace("hydrated", "").trim();
|
|
490
494
|
const currentClass = element.getAttribute("class");
|
|
@@ -773,19 +777,19 @@ const DBCustomSelect = class {
|
|
|
773
777
|
}
|
|
774
778
|
render() {
|
|
775
779
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
776
|
-
return (index.h("div", { key: '
|
|
780
|
+
return (index.h("div", { key: 'bb7f2bd039a1d7f97bca1408e4c462c029963128', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
777
781
|
this._ref = el;
|
|
778
782
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
779
783
|
this.selectedType === "tag" &&
|
|
780
784
|
this.multiple
|
|
781
785
|
? "above"
|
|
782
|
-
: 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: '
|
|
786
|
+
: 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: 'cf9b29fb5c955bd22928803a491d7a76463c1c42', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: 'ab1c6f7adafe07b6d91cb12abb058e41faa27c82', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
783
787
|
this.selectRef = el;
|
|
784
|
-
}, form: this.form, name: this.name, 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)
|
|
788
|
+
}, 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)
|
|
785
789
|
? (_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))))
|
|
786
|
-
: null)), index.h("details", { key: '
|
|
790
|
+
: null)), index.h("details", { key: 'ba829c0fb72fe74896a927f06cb9f8005621524b', ref: (el) => {
|
|
787
791
|
this.detailsRef = el;
|
|
788
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '
|
|
792
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '90e00cda7265025b8299ff92bfac46f2f242c899' }), 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$1) => (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) => {
|
|
789
793
|
this.searchInputRef = el;
|
|
790
794
|
}, 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
|
|
791
795
|
? this._infoTextId
|
|
@@ -795,7 +799,7 @@ const DBCustomSelect = class {
|
|
|
795
799
|
this.selectAllRef = el;
|
|
796
800
|
}, 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
|
|
797
801
|
? this.getOptionLabel(option)
|
|
798
|
-
: 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, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '
|
|
802
|
+
: 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: '5cc4a48735e41b769c36e059d613f8c83b641ba1', 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: 'ac47ebdaff258f7e19f2dbf447054369a919633c', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: 'c568834fa90ab614cad1dcdc4de89daf25df1ffb', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
799
803
|
}
|
|
800
804
|
static get watchers() { return {
|
|
801
805
|
"detailsRef": [{
|