@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
|
@@ -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 DBDivider = class {
|
|
@@ -18,12 +18,16 @@ const DBDivider = 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,7 +47,7 @@ const DBDivider = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-divider");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
return (index.h("div", { key: '
|
|
50
|
+
return (index.h("div", { key: '85afebbf444ffecdfbc4701e36c94c9a48080fc1', class: index$1.cls("db-divider", this.className), ref: (el) => {
|
|
47
51
|
this._ref = el;
|
|
48
52
|
}, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
49
53
|
}
|
|
@@ -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
|
|
|
@@ -83,12 +83,16 @@ const DBDrawer = class {
|
|
|
83
83
|
const attributes = parent.attributes;
|
|
84
84
|
for (let i = 0; i < attributes.length; i++) {
|
|
85
85
|
const attr = attributes.item(i);
|
|
86
|
-
if (attr &&
|
|
86
|
+
if (attr && attr.name !== 'data-density' &&
|
|
87
87
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
88
88
|
element.setAttribute(attr.name, attr.value);
|
|
89
89
|
parent.removeAttribute(attr.name);
|
|
90
90
|
}
|
|
91
|
-
if (attr && attr.name
|
|
91
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
92
|
+
element.setAttribute(attr.name, attr.value);
|
|
93
|
+
parent.removeAttribute(attr.name);
|
|
94
|
+
}
|
|
95
|
+
else if (attr && attr.name === "class") {
|
|
92
96
|
const isWebComponent = attr.value.includes("hydrated");
|
|
93
97
|
const value = attr.value.replace("hydrated", "").trim();
|
|
94
98
|
const currentClass = element.getAttribute("class");
|
|
@@ -131,11 +135,11 @@ const DBDrawer = class {
|
|
|
131
135
|
}
|
|
132
136
|
render() {
|
|
133
137
|
var _a;
|
|
134
|
-
return (index.h("dialog", { key: '
|
|
138
|
+
return (index.h("dialog", { key: '571d8c77113ad08a76865dec43c20069cc558290', class: "db-drawer", id: this.id, ref: (el) => {
|
|
135
139
|
this._ref = el;
|
|
136
|
-
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, index.h("article", { key: '
|
|
140
|
+
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, index.h("article", { key: '6116282c0fb97d5c34a216c899b53c405116c326', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
|
|
137
141
|
this.dialogContainerRef = el;
|
|
138
|
-
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: '
|
|
142
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: '4e2300a258a0cea3141b8cca846fa5163c911caa', class: "db-drawer-header" }, index.h("div", { key: '659656f5fed1e68d21c44c9eaed5d91f634cf58f', class: "db-drawer-header-text" }, index.h("slot", { key: '51b540fa08c43a570e7a4cc49306a0a20af9c3be', name: "drawerHeader" })), index.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 : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: '439a1f0615d190b737d758d60cba5488ea72811b', class: "db-drawer-content" }, index.h("slot", { key: '80c97bcc8cfb09aa2ec65dae1285d5a48c242eea' })))));
|
|
139
143
|
}
|
|
140
144
|
static get watchers() { return {
|
|
141
145
|
"open": [{
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
var navigation = require('./navigation-
|
|
7
|
-
require('./floating-components-
|
|
6
|
+
var navigation = require('./navigation-BztJmEHf.js');
|
|
7
|
+
require('./floating-components-pYaTeNhp.js');
|
|
8
8
|
|
|
9
9
|
const DBHeader = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -38,12 +38,16 @@ const DBHeader = class {
|
|
|
38
38
|
const attributes = parent.attributes;
|
|
39
39
|
for (let i = 0; i < attributes.length; i++) {
|
|
40
40
|
const attr = attributes.item(i);
|
|
41
|
-
if (attr &&
|
|
41
|
+
if (attr && attr.name !== 'data-density' &&
|
|
42
42
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
43
43
|
element.setAttribute(attr.name, attr.value);
|
|
44
44
|
parent.removeAttribute(attr.name);
|
|
45
45
|
}
|
|
46
|
-
if (attr && attr.name
|
|
46
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
47
|
+
element.setAttribute(attr.name, attr.value);
|
|
48
|
+
parent.removeAttribute(attr.name);
|
|
49
|
+
}
|
|
50
|
+
else if (attr && attr.name === "class") {
|
|
47
51
|
const isWebComponent = attr.value.includes("hydrated");
|
|
48
52
|
const value = attr.value.replace("hydrated", "").trim();
|
|
49
53
|
const currentClass = element.getAttribute("class");
|
|
@@ -80,9 +84,9 @@ const DBHeader = class {
|
|
|
80
84
|
}
|
|
81
85
|
render() {
|
|
82
86
|
var _a;
|
|
83
|
-
return (index.h("header", { key: '
|
|
87
|
+
return (index.h("header", { key: '3ce812cf839f1f8c29b9bc05c6a840b58b13b51e', class: index$1.cls("db-header", this.className), ref: (el) => {
|
|
84
88
|
this._ref = el;
|
|
85
|
-
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: '
|
|
89
|
+
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: 'ad1ef3ed622f466d53e854f52df140580d8dcaf9', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: index$1.getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, index.h("div", { key: 'f15469dcbca82a805c94e8e775f4903bff148f0c', class: "db-header-drawer-navigation" }, index.h("div", { key: '4d661aa075944eb2d147cde8131b3da9bfcc1a71', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '0867fadfd79434481679fd1e29d369b0da1f4f70' })), index.h("div", { key: '8135e33f5209b7eeff4f78ece25836fc03905113', class: "db-header-meta-navigation" }, index.h("slot", { key: '272b6fb534de9ebaf11ce0c15d9573f137bf9257', name: "metaNavigation" }))), index.h("div", { key: 'ff5e1b82535825b07721f0478b0c315dfb2064db', class: "db-header-secondary-action" }, index.h("slot", { key: '41f5a0bec2da7eb0a7072a48268e1252e7a6e04b', name: "secondaryAction" }))), index.h("div", { key: '2dc424731844cc853759d229860ca85bc8343005', class: "db-header-meta-navigation" }, index.h("slot", { key: '254003d7ef0b53d1a1bf4ff6c91ffaad40db23ae', name: "metaNavigation" })), index.h("div", { key: 'cc66337e4fa59e3ba2f8150bba581e830348c21b', class: "db-header-navigation-bar" }, index.h("div", { key: 'f3b2f219dff06c4e64803cee6843fce892a08710', class: "db-header-brand-container" }, index.h("slot", { key: '5d2b3eeb421c4954a102dfc2a98feec2eec88e9b', name: "brand" })), index.h("div", { key: 'ffd377f496e03febd719e8caa103aad4a70d7d09', class: "db-header-navigation-container" }, index.h("div", { key: 'dd144a78a278178cfbb49ca99aa6ad2c8e060c26', class: "db-header-navigation" }, index.h("slot", { key: '24f29087236b2f885f76fcec167c17523d7cb4cf' })), index.h("div", { key: '30d6926a2cc679e2a0b89321dd5573c82c52413a', class: "db-header-primary-action" }, index.h("slot", { key: '6e8351b6a7236d6f79b221cd78f1c19e32984a64', name: "primaryAction" }))), index.h("div", { key: '918bcd534073735daae1b6f366f514e9a913bcf0', class: "db-header-action-container" }, index.h("div", { key: 'a003b166c56c021029deb61294b1360e24c68233', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '0a62ee629bd0b9b768a7ae33dd854c620ad8c60e', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_BURGER_MENU)), index.h("div", { key: '70d919437f722df576cfd1f01f829da1af071352', class: "db-header-secondary-action" }, index.h("slot", { key: '7b2c7c2a575787fe652a47c5e570964c3715b968', name: "secondaryAction" }))))));
|
|
86
90
|
}
|
|
87
91
|
static get watchers() { return {
|
|
88
92
|
"initialized": [{
|
|
@@ -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 DBIcon = class {
|
|
@@ -18,12 +18,16 @@ const DBIcon = 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,7 +47,7 @@ const DBIcon = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-icon");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
return (index.h("span", { key: '
|
|
50
|
+
return (index.h("span", { key: '98575a7f351cb2f3bb8d716d7e8ef07f10e403ad', class: index$1.cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
47
51
|
this._ref = el;
|
|
48
52
|
}, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : index.h("slot", null)));
|
|
49
53
|
}
|
|
@@ -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 DBInfotext = class {
|
|
@@ -18,12 +18,16 @@ const DBInfotext = 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");
|
|
@@ -44,7 +48,7 @@ const DBInfotext = class {
|
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
50
|
var _a;
|
|
47
|
-
return (index.h("span", { key: '
|
|
51
|
+
return (index.h("span", { key: '1d72ab4201a2886684b736cc9909ffc2df914999', class: index$1.cls("db-infotext", this.className), ref: (el) => {
|
|
48
52
|
this._ref = el;
|
|
49
53
|
}, id: this.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-show-icon-leading": index$1.getBooleanAsString((_a = this.showIcon) !== null && _a !== void 0 ? _a : true) }, this.text ? this.text : index.h("slot", null)));
|
|
50
54
|
}
|
|
@@ -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 DBLink = class {
|
|
@@ -18,12 +18,16 @@ const DBLink = 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");
|
|
@@ -44,7 +48,7 @@ const DBLink = class {
|
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
50
|
var _a, _b;
|
|
47
|
-
return (index.h("a", { key: '
|
|
51
|
+
return (index.h("a", { key: 'edcb3906d31ba5f0387137f96343d61559f553aa', class: index$1.cls("db-link", this.className), ref: (el) => {
|
|
48
52
|
this._ref = el;
|
|
49
53
|
}, 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": index$1.getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": index$1.getBooleanAsString((_b = this.showIcon) !== null && _b !== void 0 ? _b : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": index$1.getBooleanAsString(this.wrap) }, this.text ? this.text : index.h("slot", null)));
|
|
50
54
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
var navigation = require('./navigation-
|
|
7
|
-
require('./floating-components-
|
|
6
|
+
var navigation = require('./navigation-BztJmEHf.js');
|
|
7
|
+
require('./floating-components-pYaTeNhp.js');
|
|
8
8
|
|
|
9
9
|
const DBNavigationItem = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -50,12 +50,16 @@ const DBNavigationItem = class {
|
|
|
50
50
|
const attributes = parent.attributes;
|
|
51
51
|
for (let i = 0; i < attributes.length; i++) {
|
|
52
52
|
const attr = attributes.item(i);
|
|
53
|
-
if (attr &&
|
|
53
|
+
if (attr && attr.name !== 'data-density' &&
|
|
54
54
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
55
55
|
element.setAttribute(attr.name, attr.value);
|
|
56
56
|
parent.removeAttribute(attr.name);
|
|
57
57
|
}
|
|
58
|
-
if (attr && attr.name
|
|
58
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
59
|
+
element.setAttribute(attr.name, attr.value);
|
|
60
|
+
parent.removeAttribute(attr.name);
|
|
61
|
+
}
|
|
62
|
+
else if (attr && attr.name === "class") {
|
|
59
63
|
const isWebComponent = attr.value.includes("hydrated");
|
|
60
64
|
const value = attr.value.replace("hydrated", "").trim();
|
|
61
65
|
const currentClass = element.getAttribute("class");
|
|
@@ -107,7 +111,7 @@ const DBNavigationItem = class {
|
|
|
107
111
|
}
|
|
108
112
|
render() {
|
|
109
113
|
var _a;
|
|
110
|
-
return (index.h("li", { key: '
|
|
114
|
+
return (index.h("li", { key: '3b363559d7b1b52c67f722164d7f5932f98d7d69', class: index$1.cls("db-navigation-item", this.className), ref: (el) => {
|
|
111
115
|
this._ref = el;
|
|
112
116
|
}, 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": index$1.getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": index$1.getBooleanAsString(this.wrap), "aria-disabled": index$1.getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : index.h("slot", null) : null, this.hasSubNavigation ? (index.h(index.Fragment, null, index.h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : index.h("slot", null)), index.h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (index.h("div", { class: "db-mobile-navigation-back" }, index.h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_a = this.backButtonText) !== null && _a !== void 0 ? _a : constants.DEFAULT_BACK))) : null, index.h("slot", { name: "subNavigation" })))) : null));
|
|
113
117
|
}
|
|
@@ -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 DBNavigation = class {
|
|
@@ -18,12 +18,16 @@ const DBNavigation = 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 DBNavigation = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-navigation");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
return (index.h("nav", { key: '
|
|
50
|
+
return (index.h("nav", { key: 'ed23071c4f127474f38f663cd5c0536c94cfe526', class: index$1.cls("db-navigation", this.className), ref: (el) => {
|
|
47
51
|
this._ref = el;
|
|
48
|
-
}, id: this.id }, index.h("menu", { key: '
|
|
52
|
+
}, id: this.id }, index.h("menu", { key: 'a54c6a1a1a7e5624287c0f5f7a93bc66bcb1a2f2' }, index.h("slot", { key: '7fa106c1c7f1feae5ba622d89a4a4063ea5a8d93' }))));
|
|
49
53
|
}
|
|
50
54
|
};
|
|
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 constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
@@ -28,12 +28,16 @@ const DBNotification = 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,13 +58,13 @@ const DBNotification = class {
|
|
|
54
58
|
}
|
|
55
59
|
render() {
|
|
56
60
|
var _a;
|
|
57
|
-
return (index.h("div", { key: '
|
|
61
|
+
return (index.h("div", { key: '7bfffb9a6ef900927dc92872a653c2483bba9c13', class: index$1.cls("db-notification", this.className), ref: (el) => {
|
|
58
62
|
this._ref = el;
|
|
59
63
|
}, id: this.id, role: index$1.getNotificationRole({
|
|
60
64
|
semantic: this.semantic,
|
|
61
65
|
role: this.role,
|
|
62
66
|
ariaLive: this.ariaLive,
|
|
63
|
-
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": index$1.getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, index.h("slot", { key: '
|
|
67
|
+
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": index$1.getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, index.h("slot", { key: '3dcc061adf7ad8fc7aed91bcecee48458a57c257', name: "image" }), index$1.stringPropVisible(this.headline, this.showHeadline) ? (index.h("header", null, this.headline)) : null, index.h("p", { key: '76d017fda09e1cfb0feec4045c03e40c50f5c290' }, this.text ? this.text : index.h("slot", null)), index$1.stringPropVisible(this.timestamp, this.showTimestamp) ? (index.h("span", null, this.timestamp)) : null, index.h("slot", { key: '70f4c22660f7a9ae655002fc3947ad00d5b52f3f', name: "link" }), index$1.getBoolean(this.closeable, "closeable") ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : constants.DEFAULT_CLOSE_BUTTON)) : null));
|
|
64
68
|
}
|
|
65
69
|
};
|
|
66
70
|
|
|
@@ -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 DBPage = class {
|
|
@@ -19,12 +19,16 @@ const DBPage = 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");
|
|
@@ -60,9 +64,9 @@ const DBPage = class {
|
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
66
|
render() {
|
|
63
|
-
return (index.h("div", { key: '
|
|
67
|
+
return (index.h("div", { key: 'a3bc28485521260f3b6666160df090d1f6855642', class: index$1.cls("db-page", this.className), ref: (el) => {
|
|
64
68
|
this._ref = el;
|
|
65
|
-
}, id: this.id, "data-variant": this.variant, "data-fade-in": index$1.getBooleanAsString(this.fadeIn), "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded) }, index.h("slot", { key: '
|
|
69
|
+
}, id: this.id, "data-variant": this.variant, "data-fade-in": index$1.getBooleanAsString(this.fadeIn), "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded) }, index.h("slot", { key: '767ea462a8f8a08a84bf553f69304dab64d4cf41', name: "header" }), index.h("main", { key: '1d9e4af6efd26bb2d66ea7e1792e70c984e4ebee', class: index$1.cls("db-main", this.mainClass) }, index.h("slot", { key: '370197e945c6582919418e80ad29e10d991b83d0' })), index.h("slot", { key: 'cdade48d4fbd8f4ef472679d8fc345413335cc93', name: "footer" })));
|
|
66
70
|
}
|
|
67
71
|
};
|
|
68
72
|
|
|
@@ -1,9 +1,9 @@
|
|
|
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 documentScrollListener = require('./document-scroll-listener-unypEU42.js');
|
|
6
|
-
var floatingComponents = require('./floating-components-
|
|
6
|
+
var floatingComponents = require('./floating-components-pYaTeNhp.js');
|
|
7
7
|
|
|
8
8
|
const DBPopover = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -27,7 +27,7 @@ const DBPopover = class {
|
|
|
27
27
|
const article = this._ref.querySelector("article");
|
|
28
28
|
if (article) {
|
|
29
29
|
// This is a workaround for angular
|
|
30
|
-
index$1.delay(() => {
|
|
30
|
+
void index$1.delay(() => {
|
|
31
31
|
var _a;
|
|
32
32
|
floatingComponents.handleFixedPopover(article, this._ref, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
|
|
33
33
|
}, 1);
|
|
@@ -98,12 +98,16 @@ const DBPopover = class {
|
|
|
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 @@ const DBPopover = class {
|
|
|
166
170
|
}
|
|
167
171
|
render() {
|
|
168
172
|
var _a;
|
|
169
|
-
return (index.h("div", { key: '
|
|
173
|
+
return (index.h("div", { key: '6b6c1e8a1b308dde8bae73df452abe94b0b4962d', class: index$1.cls("db-popover", this.className), ref: (el) => {
|
|
170
174
|
this._ref = el;
|
|
171
|
-
}, id: this.id }, index.h("slot", { key: '
|
|
175
|
+
}, id: this.id }, index.h("slot", { key: '8276f71a50b4a588dfe8a9b8007338c895433835', name: "trigger" }), index.h("article", { key: '2931d9365bf99c8c539dc45ec8450fbe54e47cf2', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": index$1.getBooleanAsString(this.gap), "data-animation": index$1.getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-open": index$1.getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, index.h("slot", { key: '49dbdd7f45e2ea48cc66b0463af29f0964ff7109' }))));
|
|
172
176
|
}
|
|
173
177
|
static get watchers() { return {
|
|
174
178
|
"_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 formComponents = require('./form-components-LsqVohyb.js');
|
|
6
6
|
|
|
@@ -46,12 +46,16 @@ const DBRadio = class {
|
|
|
46
46
|
const attributes = parent.attributes;
|
|
47
47
|
for (let i = 0; i < attributes.length; i++) {
|
|
48
48
|
const attr = attributes.item(i);
|
|
49
|
-
if (attr &&
|
|
49
|
+
if (attr && attr.name !== 'data-density' &&
|
|
50
50
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
51
51
|
element.setAttribute(attr.name, attr.value);
|
|
52
52
|
parent.removeAttribute(attr.name);
|
|
53
53
|
}
|
|
54
|
-
if (attr && attr.name
|
|
54
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
55
|
+
element.setAttribute(attr.name, attr.value);
|
|
56
|
+
parent.removeAttribute(attr.name);
|
|
57
|
+
}
|
|
58
|
+
else if (attr && attr.name === "class") {
|
|
55
59
|
const isWebComponent = attr.value.includes("hydrated");
|
|
56
60
|
const value = attr.value.replace("hydrated", "").trim();
|
|
57
61
|
const currentClass = element.getAttribute("class");
|
|
@@ -110,7 +114,7 @@ const DBRadio = class {
|
|
|
110
114
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
111
115
|
}
|
|
112
116
|
render() {
|
|
113
|
-
return (index.h("label", { key: '
|
|
117
|
+
return (index.h("label", { key: '998fcc7e72f405047969e91d70e4093c4fb7a923', class: index$1.cls("db-radio", this.className), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, index.h("input", { key: 'fc200290758670942c7aa3b584c9cc49cc9faa37', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
114
118
|
this._ref = el;
|
|
115
119
|
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : index.h("slot", null)));
|
|
116
120
|
}
|
|
@@ -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 DBSection = class {
|
|
@@ -18,12 +18,16 @@ const DBSection = 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 DBSection = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-section");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
return (index.h("section", { key: '
|
|
50
|
+
return (index.h("section", { key: 'be6ea106507603acde69e5020d97318002075614', class: index$1.cls("db-section", this.className), ref: (el) => {
|
|
47
51
|
this._ref = el;
|
|
48
|
-
}, id: this.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '
|
|
52
|
+
}, id: this.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '339c00c1fca3117ad6e148474f8fefbecb6c28f6' })));
|
|
49
53
|
}
|
|
50
54
|
};
|
|
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 constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
var formComponents = require('./form-components-LsqVohyb.js');
|
|
@@ -115,12 +115,16 @@ const DBSelect = class {
|
|
|
115
115
|
const attributes = parent.attributes;
|
|
116
116
|
for (let i = 0; i < attributes.length; i++) {
|
|
117
117
|
const attr = attributes.item(i);
|
|
118
|
-
if (attr &&
|
|
118
|
+
if (attr && attr.name !== 'data-density' &&
|
|
119
119
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
120
120
|
element.setAttribute(attr.name, attr.value);
|
|
121
121
|
parent.removeAttribute(attr.name);
|
|
122
122
|
}
|
|
123
|
-
if (attr && attr.name
|
|
123
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
124
|
+
element.setAttribute(attr.name, attr.value);
|
|
125
|
+
parent.removeAttribute(attr.name);
|
|
126
|
+
}
|
|
127
|
+
else if (attr && attr.name === "class") {
|
|
124
128
|
const isWebComponent = attr.value.includes("hydrated");
|
|
125
129
|
const value = attr.value.replace("hydrated", "").trim();
|
|
126
130
|
const currentClass = element.getAttribute("class");
|
|
@@ -221,14 +225,14 @@ const DBSelect = class {
|
|
|
221
225
|
}
|
|
222
226
|
render() {
|
|
223
227
|
var _a, _b, _c, _d, _e;
|
|
224
|
-
return (index.h("div", { key: '
|
|
228
|
+
return (index.h("div", { key: 'fa85d886e937a4df9260c6c7afe3482054707a37', class: index$1.cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: '8641dd7e53e841c2b14c953e6f515bc019714a02', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL), index.h("select", { key: '98086f761e1c7353e9c9be5a2b25ee6ad1539116', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
225
229
|
this._ref = el;
|
|
226
230
|
}, required: index$1.getBoolean(this.required, "required"), disabled: index$1.getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
227
231
|
/* @ts-ignore */
|
|
228
232
|
value: (_b = this.value) !== null && _b !== void 0 ? _b : this._value, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_c = this.ariaDescribedBy) !== null && _c !== void 0 ? _c : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (index.h("option", { class: "placeholder", value: "", "data-show-empty-option": index$1.getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_d = this.options) === null || _d === void 0 ? void 0 : _d.length) ? ((_e = this.options) === null || _e === void 0 ? void 0 : _e.map((option) => {
|
|
229
233
|
var _a;
|
|
230
234
|
return (index.h(index.Fragment, null, option.options ? (index.h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (index.h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (index.h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
|
|
231
|
-
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '
|
|
235
|
+
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'ef8708b7b5c72f4755b057387877a631eea7efe4', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '7ce062862b7f38d673833d45ab59539c71758dcc', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
232
236
|
}
|
|
233
237
|
static get watchers() { return {
|
|
234
238
|
"_ref": [{
|