@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
|
@@ -19,12 +19,16 @@ export class DBCustomSelectDropdown {
|
|
|
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");
|
|
@@ -44,9 +48,9 @@ export class DBCustomSelectDropdown {
|
|
|
44
48
|
this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
|
|
45
49
|
}
|
|
46
50
|
render() {
|
|
47
|
-
return (h("article", { key: '
|
|
51
|
+
return (h("article", { key: 'ac22786c8688e2f979e626155cb8dea54a5380b7', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
|
|
48
52
|
this._ref = el;
|
|
49
|
-
}, id: this.id, "data-width": this.width }, h("slot", { key: '
|
|
53
|
+
}, id: this.id, "data-width": this.width }, h("slot", { key: '2257275bfc7a9f75e944d61e8afc7493770478b5' })));
|
|
50
54
|
}
|
|
51
55
|
static get is() { return "db-custom-select-dropdown"; }
|
|
52
56
|
static get properties() {
|
|
@@ -16,12 +16,16 @@ export class DBCustomSelectFormField {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,9 +45,9 @@ export class DBCustomSelectFormField {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-custom-select-form-field");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
return (h("summary", { key: '
|
|
48
|
+
return (h("summary", { key: '4ade22e5e7d664747ba44a25cea8778ee76de2c0', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
45
49
|
this._ref = el;
|
|
46
|
-
}, id: this.id }, h("slot", { key: '
|
|
50
|
+
}, id: this.id }, h("slot", { key: '457f965d451fcd6e03199b4273a2e0ebb6b85bb1' })));
|
|
47
51
|
}
|
|
48
52
|
static get is() { return "db-custom-select-form-field"; }
|
|
49
53
|
static get properties() {
|
|
@@ -16,12 +16,16 @@ export class DBCustomSelectList {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,9 +45,9 @@ export class DBCustomSelectList {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-custom-select-list");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: '5f26917a02c72091c5d2c0a21a04b2f45b983b35', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
45
49
|
this._ref = el;
|
|
46
|
-
}, id: this.id }, h("ul", { key: '
|
|
50
|
+
}, id: this.id }, h("ul", { key: '5eaa90fa614daa186d2b10064066e2cc030da8eb' }, h("slot", { key: '15289fd4ac602d6f182fb112f66e716e56f79101' }))));
|
|
47
51
|
}
|
|
48
52
|
static get is() { return "db-custom-select-list"; }
|
|
49
53
|
static get properties() {
|
|
@@ -31,12 +31,16 @@ export class DBCustomSelectListItem {
|
|
|
31
31
|
const attributes = parent.attributes;
|
|
32
32
|
for (let i = 0; i < attributes.length; i++) {
|
|
33
33
|
const attr = attributes.item(i);
|
|
34
|
-
if (attr &&
|
|
34
|
+
if (attr && attr.name !== 'data-density' &&
|
|
35
35
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
36
36
|
element.setAttribute(attr.name, attr.value);
|
|
37
37
|
parent.removeAttribute(attr.name);
|
|
38
38
|
}
|
|
39
|
-
if (attr && attr.name
|
|
39
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
40
|
+
element.setAttribute(attr.name, attr.value);
|
|
41
|
+
parent.removeAttribute(attr.name);
|
|
42
|
+
}
|
|
43
|
+
else if (attr && attr.name === "class") {
|
|
40
44
|
const isWebComponent = attr.value.includes("hydrated");
|
|
41
45
|
const value = attr.value.replace("hydrated", "").trim();
|
|
42
46
|
const currentClass = element.getAttribute("class");
|
|
@@ -63,7 +67,7 @@ export class DBCustomSelectListItem {
|
|
|
63
67
|
this.watch0Fn();
|
|
64
68
|
}
|
|
65
69
|
render() {
|
|
66
|
-
return (h("li", { key: '
|
|
70
|
+
return (h("li", { key: 'fd25b48f61d95cc1c81526edf9413aef628f7472', class: cls("db-custom-select-list-item", this.className, {
|
|
67
71
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
68
72
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
69
73
|
}), ref: (el) => {
|
|
@@ -16,12 +16,16 @@ export class DBDivider {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,7 +45,7 @@ export class DBDivider {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-divider");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: '85afebbf444ffecdfbc4701e36c94c9a48080fc1', class: cls("db-divider", this.className), ref: (el) => {
|
|
45
49
|
this._ref = el;
|
|
46
50
|
}, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
47
51
|
}
|
|
@@ -82,12 +82,16 @@ export class DBDrawer {
|
|
|
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");
|
|
@@ -130,11 +134,11 @@ export class DBDrawer {
|
|
|
130
134
|
}
|
|
131
135
|
render() {
|
|
132
136
|
var _a;
|
|
133
|
-
return (h("dialog", { key: '
|
|
137
|
+
return (h("dialog", { key: '571d8c77113ad08a76865dec43c20069cc558290', class: "db-drawer", id: this.id, ref: (el) => {
|
|
134
138
|
this._ref = el;
|
|
135
|
-
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: '
|
|
139
|
+
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: '6116282c0fb97d5c34a216c899b53c405116c326', class: cls("db-drawer-container", this.className), ref: (el) => {
|
|
136
140
|
this.dialogContainerRef = el;
|
|
137
|
-
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: '
|
|
141
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: '4e2300a258a0cea3141b8cca846fa5163c911caa', class: "db-drawer-header" }, h("div", { key: '659656f5fed1e68d21c44c9eaed5d91f634cf58f', class: "db-drawer-header-text" }, h("slot", { key: '51b540fa08c43a570e7a4cc49306a0a20af9c3be', name: "drawerHeader" })), h("db-button", { key: '88facb314b62e021c678b4298dfcd4daa20d58ed', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : DEFAULT_CLOSE_BUTTON)), h("div", { key: '439a1f0615d190b737d758d60cba5488ea72811b', class: "db-drawer-content" }, h("slot", { key: '80c97bcc8cfb09aa2ec65dae1285d5a48c242eea' })))));
|
|
138
142
|
}
|
|
139
143
|
static get is() { return "db-drawer"; }
|
|
140
144
|
static get properties() {
|
|
@@ -39,12 +39,16 @@ export class DBHeader {
|
|
|
39
39
|
const attributes = parent.attributes;
|
|
40
40
|
for (let i = 0; i < attributes.length; i++) {
|
|
41
41
|
const attr = attributes.item(i);
|
|
42
|
-
if (attr &&
|
|
42
|
+
if (attr && attr.name !== 'data-density' &&
|
|
43
43
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
44
44
|
element.setAttribute(attr.name, attr.value);
|
|
45
45
|
parent.removeAttribute(attr.name);
|
|
46
46
|
}
|
|
47
|
-
if (attr && attr.name
|
|
47
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
48
|
+
element.setAttribute(attr.name, attr.value);
|
|
49
|
+
parent.removeAttribute(attr.name);
|
|
50
|
+
}
|
|
51
|
+
else if (attr && attr.name === "class") {
|
|
48
52
|
const isWebComponent = attr.value.includes("hydrated");
|
|
49
53
|
const value = attr.value.replace("hydrated", "").trim();
|
|
50
54
|
const currentClass = element.getAttribute("class");
|
|
@@ -81,9 +85,9 @@ export class DBHeader {
|
|
|
81
85
|
}
|
|
82
86
|
render() {
|
|
83
87
|
var _a;
|
|
84
|
-
return (h("header", { key: '
|
|
88
|
+
return (h("header", { key: '3ce812cf839f1f8c29b9bc05c6a840b58b13b51e', class: cls("db-header", this.className), ref: (el) => {
|
|
85
89
|
this._ref = el;
|
|
86
|
-
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '
|
|
90
|
+
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: 'ad1ef3ed622f466d53e854f52df140580d8dcaf9', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'f15469dcbca82a805c94e8e775f4903bff148f0c', class: "db-header-drawer-navigation" }, h("div", { key: '4d661aa075944eb2d147cde8131b3da9bfcc1a71', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '0867fadfd79434481679fd1e29d369b0da1f4f70' })), h("div", { key: '8135e33f5209b7eeff4f78ece25836fc03905113', class: "db-header-meta-navigation" }, h("slot", { key: '272b6fb534de9ebaf11ce0c15d9573f137bf9257', name: "metaNavigation" }))), h("div", { key: 'ff5e1b82535825b07721f0478b0c315dfb2064db', class: "db-header-secondary-action" }, h("slot", { key: '41f5a0bec2da7eb0a7072a48268e1252e7a6e04b', name: "secondaryAction" }))), h("div", { key: '2dc424731844cc853759d229860ca85bc8343005', class: "db-header-meta-navigation" }, h("slot", { key: '254003d7ef0b53d1a1bf4ff6c91ffaad40db23ae', name: "metaNavigation" })), h("div", { key: 'cc66337e4fa59e3ba2f8150bba581e830348c21b', class: "db-header-navigation-bar" }, h("div", { key: 'f3b2f219dff06c4e64803cee6843fce892a08710', class: "db-header-brand-container" }, h("slot", { key: '5d2b3eeb421c4954a102dfc2a98feec2eec88e9b', name: "brand" })), h("div", { key: 'ffd377f496e03febd719e8caa103aad4a70d7d09', class: "db-header-navigation-container" }, h("div", { key: 'dd144a78a278178cfbb49ca99aa6ad2c8e060c26', class: "db-header-navigation" }, h("slot", { key: '24f29087236b2f885f76fcec167c17523d7cb4cf' })), h("div", { key: '30d6926a2cc679e2a0b89321dd5573c82c52413a', class: "db-header-primary-action" }, h("slot", { key: '6e8351b6a7236d6f79b221cd78f1c19e32984a64', name: "primaryAction" }))), h("div", { key: '918bcd534073735daae1b6f366f514e9a913bcf0', class: "db-header-action-container" }, h("div", { key: 'a003b166c56c021029deb61294b1360e24c68233', class: "db-header-burger-menu-container" }, h("db-button", { key: '0a62ee629bd0b9b768a7ae33dd854c620ad8c60e', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : DEFAULT_BURGER_MENU)), h("div", { key: '70d919437f722df576cfd1f01f829da1af071352', class: "db-header-secondary-action" }, h("slot", { key: '7b2c7c2a575787fe652a47c5e570964c3715b968', name: "secondaryAction" }))))));
|
|
87
91
|
}
|
|
88
92
|
static get is() { return "db-header"; }
|
|
89
93
|
static get properties() {
|
|
@@ -16,12 +16,16 @@ export class DBIcon {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,7 +45,7 @@ export class DBIcon {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-icon");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
return (h("span", { key: '
|
|
48
|
+
return (h("span", { key: '98575a7f351cb2f3bb8d716d7e8ef07f10e403ad', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
45
49
|
this._ref = el;
|
|
46
50
|
}, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
|
|
47
51
|
}
|
|
@@ -16,12 +16,16 @@ export class DBInfotext {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -42,7 +46,7 @@ export class DBInfotext {
|
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
48
|
var _a;
|
|
45
|
-
return (h("span", { key: '
|
|
49
|
+
return (h("span", { key: '1d72ab4201a2886684b736cc9909ffc2df914999', class: cls("db-infotext", this.className), ref: (el) => {
|
|
46
50
|
this._ref = el;
|
|
47
51
|
}, id: this.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-show-icon-leading": getBooleanAsString((_a = this.showIcon) !== null && _a !== void 0 ? _a : true) }, this.text ? this.text : h("slot", null)));
|
|
48
52
|
}
|
|
@@ -95,12 +95,16 @@ export class DBInput {
|
|
|
95
95
|
const attributes = parent.attributes;
|
|
96
96
|
for (let i = 0; i < attributes.length; i++) {
|
|
97
97
|
const attr = attributes.item(i);
|
|
98
|
-
if (attr &&
|
|
98
|
+
if (attr && attr.name !== 'data-density' &&
|
|
99
99
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
100
100
|
element.setAttribute(attr.name, attr.value);
|
|
101
101
|
parent.removeAttribute(attr.name);
|
|
102
102
|
}
|
|
103
|
-
if (attr && attr.name
|
|
103
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
104
|
+
element.setAttribute(attr.name, attr.value);
|
|
105
|
+
parent.removeAttribute(attr.name);
|
|
106
|
+
}
|
|
107
|
+
else if (attr && attr.name === "class") {
|
|
104
108
|
const isWebComponent = attr.value.includes("hydrated");
|
|
105
109
|
const value = attr.value.replace("hydrated", "").trim();
|
|
106
110
|
const currentClass = element.getAttribute("class");
|
|
@@ -196,7 +200,7 @@ export class DBInput {
|
|
|
196
200
|
}
|
|
197
201
|
render() {
|
|
198
202
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
199
|
-
return (h("div", { key: '
|
|
203
|
+
return (h("div", { key: '394d66670226d01b6f790d13bdbc8eb00fb376ca', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": 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": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: '981344e97a91cb8c369587870e532af85fcb29c3', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: 'e7536b30d16211cc3842e7dd6e74bffe5749685f', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
200
204
|
this._ref = el;
|
|
201
205
|
}, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
|
|
202
206
|
getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: 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: [
|
|
@@ -208,7 +212,7 @@ export class DBInput {
|
|
|
208
212
|
"color",
|
|
209
213
|
].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && isIOSSafari()
|
|
210
214
|
? "textbox"
|
|
211
|
-
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: '
|
|
215
|
+
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'f5e0e8f70ab5b9ad772f38fdc8d4124e0a77faeb' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'ffb47610dff1d37759eda1f9a5022bbabbe2a7a4', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '102226d02f55e79a6e3af37899544545da43a98b', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
212
216
|
}
|
|
213
217
|
static get is() { return "db-input"; }
|
|
214
218
|
static get properties() {
|
|
@@ -16,12 +16,16 @@ export class DBLink {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -42,7 +46,7 @@ export class DBLink {
|
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
48
|
var _a, _b;
|
|
45
|
-
return (h("a", { key: '
|
|
49
|
+
return (h("a", { key: 'edcb3906d31ba5f0387137f96343d61559f553aa', class: cls("db-link", this.className), ref: (el) => {
|
|
46
50
|
this._ref = el;
|
|
47
51
|
}, id: this.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_a = this.referrerpolicy) !== null && _a !== void 0 ? _a : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_b = this.showIcon) !== null && _b !== void 0 ? _b : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : h("slot", null)));
|
|
48
52
|
}
|
|
@@ -16,12 +16,16 @@ export class DBNavigation {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,9 +45,9 @@ export class DBNavigation {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-navigation");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
return (h("nav", { key: '
|
|
48
|
+
return (h("nav", { key: 'ed23071c4f127474f38f663cd5c0536c94cfe526', class: cls("db-navigation", this.className), ref: (el) => {
|
|
45
49
|
this._ref = el;
|
|
46
|
-
}, id: this.id }, h("menu", { key: '
|
|
50
|
+
}, id: this.id }, h("menu", { key: 'a54c6a1a1a7e5624287c0f5f7a93bc66bcb1a2f2' }, h("slot", { key: '7fa106c1c7f1feae5ba622d89a4a4063ea5a8d93' }))));
|
|
47
51
|
}
|
|
48
52
|
static get is() { return "db-navigation"; }
|
|
49
53
|
static get properties() {
|
|
@@ -48,12 +48,16 @@ export class DBNavigationItem {
|
|
|
48
48
|
const attributes = parent.attributes;
|
|
49
49
|
for (let i = 0; i < attributes.length; i++) {
|
|
50
50
|
const attr = attributes.item(i);
|
|
51
|
-
if (attr &&
|
|
51
|
+
if (attr && attr.name !== 'data-density' &&
|
|
52
52
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
53
53
|
element.setAttribute(attr.name, attr.value);
|
|
54
54
|
parent.removeAttribute(attr.name);
|
|
55
55
|
}
|
|
56
|
-
if (attr && attr.name
|
|
56
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
57
|
+
element.setAttribute(attr.name, attr.value);
|
|
58
|
+
parent.removeAttribute(attr.name);
|
|
59
|
+
}
|
|
60
|
+
else if (attr && attr.name === "class") {
|
|
57
61
|
const isWebComponent = attr.value.includes("hydrated");
|
|
58
62
|
const value = attr.value.replace("hydrated", "").trim();
|
|
59
63
|
const currentClass = element.getAttribute("class");
|
|
@@ -105,7 +109,7 @@ export class DBNavigationItem {
|
|
|
105
109
|
}
|
|
106
110
|
render() {
|
|
107
111
|
var _a;
|
|
108
|
-
return (h("li", { key: '
|
|
112
|
+
return (h("li", { key: '3b363559d7b1b52c67f722164d7f5932f98d7d69', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
109
113
|
this._ref = el;
|
|
110
114
|
}, id: this.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_a = this.backButtonText) !== null && _a !== void 0 ? _a : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
|
|
111
115
|
}
|
|
@@ -26,12 +26,16 @@ export class DBNotification {
|
|
|
26
26
|
const attributes = parent.attributes;
|
|
27
27
|
for (let i = 0; i < attributes.length; i++) {
|
|
28
28
|
const attr = attributes.item(i);
|
|
29
|
-
if (attr &&
|
|
29
|
+
if (attr && attr.name !== 'data-density' &&
|
|
30
30
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
31
31
|
element.setAttribute(attr.name, attr.value);
|
|
32
32
|
parent.removeAttribute(attr.name);
|
|
33
33
|
}
|
|
34
|
-
if (attr && attr.name
|
|
34
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
35
|
+
element.setAttribute(attr.name, attr.value);
|
|
36
|
+
parent.removeAttribute(attr.name);
|
|
37
|
+
}
|
|
38
|
+
else if (attr && attr.name === "class") {
|
|
35
39
|
const isWebComponent = attr.value.includes("hydrated");
|
|
36
40
|
const value = attr.value.replace("hydrated", "").trim();
|
|
37
41
|
const currentClass = element.getAttribute("class");
|
|
@@ -52,13 +56,13 @@ export class DBNotification {
|
|
|
52
56
|
}
|
|
53
57
|
render() {
|
|
54
58
|
var _a;
|
|
55
|
-
return (h("div", { key: '
|
|
59
|
+
return (h("div", { key: '7bfffb9a6ef900927dc92872a653c2483bba9c13', class: cls("db-notification", this.className), ref: (el) => {
|
|
56
60
|
this._ref = el;
|
|
57
61
|
}, id: this.id, role: getNotificationRole({
|
|
58
62
|
semantic: this.semantic,
|
|
59
63
|
role: this.role,
|
|
60
64
|
ariaLive: this.ariaLive,
|
|
61
|
-
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '
|
|
65
|
+
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '3dcc061adf7ad8fc7aed91bcecee48458a57c257', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: '76d017fda09e1cfb0feec4045c03e40c50f5c290' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: '70f4c22660f7a9ae655002fc3947ad00d5b52f3f', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : DEFAULT_CLOSE_BUTTON)) : null));
|
|
62
66
|
}
|
|
63
67
|
static get is() { return "db-notification"; }
|
|
64
68
|
static get properties() {
|
|
@@ -20,12 +20,16 @@ export class DBPage {
|
|
|
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");
|
|
@@ -61,9 +65,9 @@ export class DBPage {
|
|
|
61
65
|
}
|
|
62
66
|
}
|
|
63
67
|
render() {
|
|
64
|
-
return (h("div", { key: '
|
|
68
|
+
return (h("div", { key: 'a3bc28485521260f3b6666160df090d1f6855642', class: cls("db-page", this.className), ref: (el) => {
|
|
65
69
|
this._ref = el;
|
|
66
|
-
}, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '
|
|
70
|
+
}, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '767ea462a8f8a08a84bf553f69304dab64d4cf41', name: "header" }), h("main", { key: '1d9e4af6efd26bb2d66ea7e1792e70c984e4ebee', class: cls("db-main", this.mainClass) }, h("slot", { key: '370197e945c6582919418e80ad29e10d991b83d0' })), h("slot", { key: 'cdade48d4fbd8f4ef472679d8fc345413335cc93', name: "footer" })));
|
|
67
71
|
}
|
|
68
72
|
static get is() { return "db-page"; }
|
|
69
73
|
static get properties() {
|
|
@@ -27,7 +27,7 @@ export class DBPopover {
|
|
|
27
27
|
const article = this._ref.querySelector("article");
|
|
28
28
|
if (article) {
|
|
29
29
|
// This is a workaround for angular
|
|
30
|
-
utilsDelay(() => {
|
|
30
|
+
void utilsDelay(() => {
|
|
31
31
|
var _a;
|
|
32
32
|
handleFixedPopover(article, this._ref, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
|
|
33
33
|
}, 1);
|
|
@@ -98,12 +98,16 @@ export class DBPopover {
|
|
|
98
98
|
const attributes = parent.attributes;
|
|
99
99
|
for (let i = 0; i < attributes.length; i++) {
|
|
100
100
|
const attr = attributes.item(i);
|
|
101
|
-
if (attr &&
|
|
101
|
+
if (attr && attr.name !== 'data-density' &&
|
|
102
102
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
103
103
|
element.setAttribute(attr.name, attr.value);
|
|
104
104
|
parent.removeAttribute(attr.name);
|
|
105
105
|
}
|
|
106
|
-
if (attr && attr.name
|
|
106
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
107
|
+
element.setAttribute(attr.name, attr.value);
|
|
108
|
+
parent.removeAttribute(attr.name);
|
|
109
|
+
}
|
|
110
|
+
else if (attr && attr.name === "class") {
|
|
107
111
|
const isWebComponent = attr.value.includes("hydrated");
|
|
108
112
|
const value = attr.value.replace("hydrated", "").trim();
|
|
109
113
|
const currentClass = element.getAttribute("class");
|
|
@@ -166,9 +170,9 @@ export class DBPopover {
|
|
|
166
170
|
}
|
|
167
171
|
render() {
|
|
168
172
|
var _a;
|
|
169
|
-
return (h("div", { key: '
|
|
173
|
+
return (h("div", { key: '6b6c1e8a1b308dde8bae73df452abe94b0b4962d', class: cls("db-popover", this.className), ref: (el) => {
|
|
170
174
|
this._ref = el;
|
|
171
|
-
}, id: this.id }, h("slot", { key: '
|
|
175
|
+
}, id: this.id }, h("slot", { key: '8276f71a50b4a588dfe8a9b8007338c895433835', name: "trigger" }), h("article", { key: '2931d9365bf99c8c539dc45ec8450fbe54e47cf2', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '49dbdd7f45e2ea48cc66b0463af29f0964ff7109' }))));
|
|
172
176
|
}
|
|
173
177
|
static get is() { return "db-popover"; }
|
|
174
178
|
static get properties() {
|
|
@@ -42,12 +42,16 @@ export class DBRadio {
|
|
|
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");
|
|
@@ -109,7 +113,7 @@ export class DBRadio {
|
|
|
109
113
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
110
114
|
}
|
|
111
115
|
render() {
|
|
112
|
-
return (h("label", { key: '
|
|
116
|
+
return (h("label", { key: '998fcc7e72f405047969e91d70e4093c4fb7a923', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: 'fc200290758670942c7aa3b584c9cc49cc9faa37', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
113
117
|
this._ref = el;
|
|
114
118
|
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : h("slot", null)));
|
|
115
119
|
}
|