@db-ux/wc-core-components 4.4.2 → 4.5.0
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 +20 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +11 -6
- package/dist/cjs/db-accordion.cjs.entry.js +12 -8
- package/dist/cjs/db-badge.cjs.entry.js +11 -7
- package/dist/cjs/db-brand.cjs.entry.js +11 -7
- package/dist/cjs/db-button.cjs.entry.js +11 -7
- package/dist/cjs/db-card.cjs.entry.js +11 -6
- package/dist/cjs/db-checkbox.cjs.entry.js +59 -36
- package/dist/cjs/db-custom-button.cjs.entry.js +57 -0
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +89 -47
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +11 -6
- package/dist/cjs/db-custom-select.cjs.entry.js +133 -110
- package/dist/cjs/db-divider.cjs.entry.js +11 -6
- package/dist/cjs/db-drawer.cjs.entry.js +12 -8
- package/dist/cjs/db-header.cjs.entry.js +13 -9
- package/dist/cjs/db-icon.cjs.entry.js +11 -6
- package/dist/cjs/db-infotext.cjs.entry.js +11 -7
- package/dist/cjs/db-link.cjs.entry.js +11 -7
- package/dist/cjs/db-navigation-item.cjs.entry.js +13 -9
- package/dist/cjs/db-navigation.cjs.entry.js +11 -6
- package/dist/cjs/db-notification.cjs.entry.js +12 -8
- package/dist/cjs/db-page.cjs.entry.js +11 -6
- package/dist/cjs/db-popover.cjs.entry.js +14 -10
- package/dist/cjs/db-radio.cjs.entry.js +39 -16
- package/dist/cjs/db-section.cjs.entry.js +11 -6
- package/dist/cjs/db-select.cjs.entry.js +54 -31
- package/dist/cjs/db-stack.cjs.entry.js +11 -6
- package/dist/cjs/db-switch.cjs.entry.js +64 -24
- package/dist/cjs/db-tab-item_3.cjs.entry.js +29 -15
- package/dist/cjs/db-tabs.cjs.entry.js +12 -8
- package/dist/cjs/db-textarea.cjs.entry.js +52 -29
- package/dist/cjs/db-tooltip.cjs.entry.js +25 -12
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/{document-click-listener-Bb3Tinb8.js → document-click-listener-B2-xKJv3.js} +1 -1
- package/dist/cjs/{document-scroll-listener-unypEU42.js → document-scroll-listener-ChQ7XZRk.js} +1 -1
- package/dist/cjs/{floating-components-ogUqz72V.js → floating-components-pYaTeNhp.js} +65 -15
- package/dist/cjs/{form-components-LsqVohyb.js → form-components-_ncB_U2D.js} +1 -1
- package/dist/cjs/{index-CsHqnQII.js → index-2_9ESkQu.js} +6 -7
- package/dist/cjs/{index-CEqZnn9s.js → index-CSMPhlzz.js} +2 -2
- package/dist/cjs/index.cjs.js +5 -5
- 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 +2 -1
- package/dist/collection/components/accordion/accordion.js +34 -6
- package/dist/collection/components/accordion-item/accordion-item.js +33 -4
- package/dist/collection/components/badge/badge.js +60 -6
- package/dist/collection/components/brand/brand.js +33 -5
- package/dist/collection/components/button/button.js +59 -5
- package/dist/collection/components/card/card.js +33 -4
- package/dist/collection/components/checkbox/checkbox.js +87 -40
- package/dist/collection/components/custom-button/custom-button.js +394 -0
- package/dist/collection/components/custom-button/index.js +2 -0
- package/dist/collection/components/custom-button/model.js +1 -0
- package/dist/collection/components/custom-select/custom-select.js +157 -110
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +33 -4
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +33 -4
- package/dist/collection/components/custom-select-list/custom-select-list.js +33 -4
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +33 -4
- package/dist/collection/components/divider/divider.js +33 -4
- package/dist/collection/components/drawer/drawer.js +34 -6
- package/dist/collection/components/header/header.js +33 -5
- package/dist/collection/components/icon/icon.js +33 -4
- package/dist/collection/components/infotext/infotext.js +59 -5
- package/dist/collection/components/input/input.js +80 -33
- package/dist/collection/components/link/link.js +33 -5
- package/dist/collection/components/navigation/navigation.js +33 -4
- package/dist/collection/components/navigation-item/navigation-item.js +33 -5
- package/dist/collection/components/notification/notification.js +34 -6
- package/dist/collection/components/page/page.js +33 -4
- package/dist/collection/components/popover/popover.js +34 -6
- package/dist/collection/components/radio/radio.js +60 -13
- package/dist/collection/components/section/section.js +33 -4
- package/dist/collection/components/select/select.js +81 -34
- package/dist/collection/components/stack/stack.js +33 -4
- package/dist/collection/components/switch/switch.js +118 -50
- package/dist/collection/components/tab-item/tab-item.js +33 -5
- package/dist/collection/components/tab-list/tab-list.js +33 -4
- package/dist/collection/components/tab-panel/tab-panel.js +33 -4
- package/dist/collection/components/tabs/tabs.js +34 -6
- package/dist/collection/components/tag/tag.js +33 -5
- package/dist/collection/components/textarea/textarea.js +79 -32
- package/dist/collection/components/tooltip/tooltip.js +71 -8
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/floating-components.js +65 -15
- package/dist/collection/utils/index.js +6 -7
- package/dist/custom-elements.json +19735 -1796
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/p-00df7d53.entry.js +1 -0
- package/dist/db-ux/p-064ddad6.entry.js +1 -0
- package/dist/db-ux/p-0ff173fb.entry.js +1 -0
- package/dist/db-ux/p-1519dbbb.entry.js +1 -0
- package/dist/db-ux/p-16281dcb.entry.js +1 -0
- package/dist/db-ux/p-27eb6e88.entry.js +1 -0
- package/dist/db-ux/p-2898ebe6.entry.js +1 -0
- package/dist/db-ux/p-2e940d2e.entry.js +1 -0
- package/dist/db-ux/p-309259be.entry.js +1 -0
- package/dist/db-ux/p-4183b8e1.entry.js +1 -0
- package/dist/db-ux/p-4284c37f.entry.js +1 -0
- package/dist/db-ux/p-432ceb90.entry.js +1 -0
- package/dist/db-ux/p-503d5103.entry.js +1 -0
- package/dist/db-ux/p-6794144b.entry.js +1 -0
- package/dist/db-ux/p-6cb4232d.entry.js +1 -0
- package/dist/db-ux/p-6da70f61.entry.js +1 -0
- package/dist/db-ux/p-766057ea.entry.js +1 -0
- package/dist/db-ux/p-7a146dee.entry.js +1 -0
- package/dist/db-ux/p-7e274359.entry.js +1 -0
- package/dist/db-ux/p-Bs7RfNRP.js +2 -0
- package/dist/db-ux/p-CHLgQ9vn.js +1 -0
- package/dist/db-ux/{p-CAEpg8tJ.js → p-D5mInaY7.js} +1 -1
- package/dist/db-ux/p-D_roHmuC.js +1 -0
- package/dist/db-ux/p-DfYL98sI.js +1 -0
- package/dist/db-ux/p-aad9c604.entry.js +1 -0
- package/dist/db-ux/p-ad3d2cff.entry.js +1 -0
- package/dist/db-ux/p-b218b08b.entry.js +1 -0
- package/dist/db-ux/p-bfe27311.entry.js +1 -0
- package/dist/db-ux/p-c1cf7ea4.entry.js +1 -0
- package/dist/db-ux/{p-sP2NlPcu.js → p-cNk4ImpW.js} +1 -1
- package/dist/db-ux/p-cd8557dd.entry.js +1 -0
- package/dist/db-ux/p-d2674cff.entry.js +1 -0
- package/dist/db-ux/p-d4e79c33.entry.js +1 -0
- package/dist/db-ux/p-e19f2640.entry.js +1 -0
- package/dist/db-ux/p-e3def528.entry.js +1 -0
- package/dist/db-ux/p-e6b17374.entry.js +1 -0
- package/dist/db-ux/p-ea7219af.entry.js +1 -0
- package/dist/db-ux/p-xkoBSP8R.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +11 -6
- package/dist/esm/db-accordion.entry.js +12 -8
- package/dist/esm/db-badge.entry.js +11 -7
- package/dist/esm/db-brand.entry.js +11 -7
- package/dist/esm/db-button.entry.js +11 -7
- package/dist/esm/db-card.entry.js +11 -6
- package/dist/esm/db-checkbox.entry.js +60 -37
- package/dist/esm/db-custom-button.entry.js +55 -0
- package/dist/esm/db-custom-select-dropdown_5.entry.js +90 -48
- package/dist/esm/db-custom-select-form-field.entry.js +11 -6
- package/dist/esm/db-custom-select.entry.js +134 -111
- package/dist/esm/db-divider.entry.js +11 -6
- package/dist/esm/db-drawer.entry.js +12 -8
- package/dist/esm/db-header.entry.js +13 -9
- package/dist/esm/db-icon.entry.js +11 -6
- package/dist/esm/db-infotext.entry.js +11 -7
- package/dist/esm/db-link.entry.js +11 -7
- package/dist/esm/db-navigation-item.entry.js +13 -9
- package/dist/esm/db-navigation.entry.js +11 -6
- package/dist/esm/db-notification.entry.js +12 -8
- package/dist/esm/db-page.entry.js +11 -6
- package/dist/esm/db-popover.entry.js +14 -10
- package/dist/esm/db-radio.entry.js +39 -16
- package/dist/esm/db-section.entry.js +11 -6
- package/dist/esm/db-select.entry.js +55 -32
- package/dist/esm/db-stack.entry.js +11 -6
- package/dist/esm/db-switch.entry.js +64 -24
- package/dist/esm/db-tab-item_3.entry.js +29 -15
- package/dist/esm/db-tabs.entry.js +12 -8
- package/dist/esm/db-textarea.entry.js +53 -30
- package/dist/esm/db-tooltip.entry.js +25 -12
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/{document-click-listener-CmYoXpGE.js → document-click-listener-D7W_VE5O.js} +1 -1
- package/dist/esm/{document-scroll-listener-65bHuFAN.js → document-scroll-listener-DOBe3Oa9.js} +1 -1
- package/dist/esm/{floating-components-G-TursYV.js → floating-components-DfYL98sI.js} +65 -15
- package/dist/esm/{form-components-BLsiOrPI.js → form-components-D6LQfJvq.js} +1 -1
- package/dist/esm/{index-BrThqi62.js → index-Bs7RfNRP.js} +2 -2
- package/dist/esm/{index-C4x0SOcx.js → index-xkoBSP8R.js} +6 -7
- package/dist/esm/index.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{navigation--UdC9CzO.js → navigation-DgsMCdfn.js} +1 -1
- package/dist/types/components/accordion/accordion.d.ts +1 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/badge/badge.d.ts +2 -0
- package/dist/types/components/badge/model.d.ts +2 -2
- package/dist/types/components/brand/brand.d.ts +1 -0
- package/dist/types/components/button/button.d.ts +2 -0
- package/dist/types/components/button/model.d.ts +8 -10
- package/dist/types/components/card/card.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +5 -1
- package/dist/types/components/custom-button/custom-button.d.ts +29 -0
- package/dist/types/components/custom-button/index.d.ts +2 -0
- package/dist/types/components/custom-button/model.d.ts +6 -0
- package/dist/types/components/custom-select/custom-select.d.ts +5 -1
- package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -0
- package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +1 -0
- package/dist/types/components/custom-select-list/custom-select-list.d.ts +1 -0
- package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -0
- package/dist/types/components/divider/divider.d.ts +1 -0
- package/dist/types/components/drawer/drawer.d.ts +1 -0
- package/dist/types/components/header/header.d.ts +1 -0
- package/dist/types/components/icon/icon.d.ts +1 -0
- package/dist/types/components/infotext/infotext.d.ts +2 -0
- package/dist/types/components/infotext/model.d.ts +2 -2
- package/dist/types/components/input/input.d.ts +5 -1
- package/dist/types/components/link/link.d.ts +1 -0
- package/dist/types/components/navigation/navigation.d.ts +1 -0
- package/dist/types/components/navigation-item/navigation-item.d.ts +1 -0
- package/dist/types/components/notification/model.d.ts +2 -2
- package/dist/types/components/notification/notification.d.ts +1 -0
- package/dist/types/components/page/page.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +1 -0
- package/dist/types/components/radio/radio.d.ts +4 -0
- package/dist/types/components/section/section.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +5 -1
- package/dist/types/components/stack/stack.d.ts +1 -0
- package/dist/types/components/switch/model.d.ts +1 -1
- package/dist/types/components/switch/switch.d.ts +7 -1
- package/dist/types/components/tab-item/tab-item.d.ts +1 -0
- package/dist/types/components/tab-list/tab-list.d.ts +1 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +1 -0
- package/dist/types/components/tabs/tabs.d.ts +1 -0
- package/dist/types/components/tag/model.d.ts +2 -6
- package/dist/types/components/tag/tag.d.ts +1 -0
- package/dist/types/components/textarea/textarea.d.ts +5 -1
- package/dist/types/components/tooltip/model.d.ts +3 -3
- package/dist/types/components/tooltip/tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +146 -6
- package/dist/types/index.d.ts +2 -0
- package/dist/types/shared/model.d.ts +17 -3
- package/dist/types/stencil-public-runtime.d.ts +3 -1
- package/dist/vscode.html-custom-data.json +1981 -245
- package/dist/web-types.json +3299 -648
- 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-BhXdfCpU.js +0 -1
- package/dist/db-ux/p-BrThqi62.js +0 -2
- package/dist/db-ux/p-C4x0SOcx.js +0 -1
- package/dist/db-ux/p-G-TursYV.js +0 -1
- package/dist/db-ux/p-RHqkTr-_.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBIcon = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -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,9 +47,10 @@ const DBIcon = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-icon");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return (index.h("span", { key: '4e41afd86be65137a69847bb0c154e4af951581d', class: index$1.cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
47
52
|
this._ref = el;
|
|
48
|
-
}, 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)));
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : index.h("slot", null)));
|
|
49
54
|
}
|
|
50
55
|
};
|
|
51
56
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBInfotext = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -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");
|
|
@@ -43,10 +47,10 @@ const DBInfotext = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-infotext");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
var _a;
|
|
47
|
-
return (index.h("span", { key: '
|
|
50
|
+
var _a, _b, _c;
|
|
51
|
+
return (index.h("span", { key: '8251add62131b09f6e32c20c50619c5e725e5b8e', class: index$1.cls("db-infotext", this.className), ref: (el) => {
|
|
48
52
|
this._ref = el;
|
|
49
|
-
}, id: this.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-show-icon-leading": index$1.getBooleanAsString((
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": index$1.getBooleanAsString(this.wrap), "data-show-icon-leading": index$1.getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : index.h("slot", null)));
|
|
50
54
|
}
|
|
51
55
|
};
|
|
52
56
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBLink = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -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");
|
|
@@ -43,10 +47,10 @@ const DBLink = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-link");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
var _a, _b;
|
|
47
|
-
return (index.h("a", { key: '
|
|
50
|
+
var _a, _b, _c, _d;
|
|
51
|
+
return (index.h("a", { key: '72f9513afa3d072f106c34e42b794a63b7930166', class: index$1.cls("db-link", this.className), ref: (el) => {
|
|
48
52
|
this._ref = el;
|
|
49
|
-
}, id: this.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_c = this.referrerpolicy) !== null && _c !== void 0 ? _c : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": index$1.getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": index$1.getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": index$1.getBooleanAsString(this.wrap) }, this.text ? this.text : index.h("slot", null)));
|
|
50
54
|
}
|
|
51
55
|
};
|
|
52
56
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
var navigation = require('./navigation-
|
|
7
|
-
require('./floating-components-
|
|
5
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
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");
|
|
@@ -106,10 +110,10 @@ const DBNavigationItem = class {
|
|
|
106
110
|
this.watch1Fn();
|
|
107
111
|
}
|
|
108
112
|
render() {
|
|
109
|
-
var _a;
|
|
110
|
-
return (index.h("li", { key: '
|
|
113
|
+
var _a, _b, _c;
|
|
114
|
+
return (index.h("li", { key: '9e00c0e7d146b0e8472b0aa356846ae40f78b142', class: index$1.cls("db-navigation-item", this.className), ref: (el) => {
|
|
111
115
|
this._ref = el;
|
|
112
|
-
}, 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) }, (
|
|
116
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": index$1.getBooleanAsString(this.wrap), "aria-disabled": index$1.getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : index.h("slot", null) : null, this.hasSubNavigation ? (index.h(index.Fragment, null, index.h("button", { class: "db-navigation-item-expand-button", "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) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : constants.DEFAULT_BACK))) : null, index.h("slot", { name: "subNavigation" })))) : null));
|
|
113
117
|
}
|
|
114
118
|
static get watchers() { return {
|
|
115
119
|
"subNavigationExpanded": [{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBNavigation = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -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,10 @@ const DBNavigation = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-navigation");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return (index.h("nav", { key: '890635e7c9c420f33510667329902249f7abd8ec', class: index$1.cls("db-navigation", this.className), ref: (el) => {
|
|
47
52
|
this._ref = el;
|
|
48
|
-
}, id: this.id }, index.h("menu", { key: '
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("menu", { key: '109ec2b85caaba110f70658cd7260a0b9e48f4ee' }, index.h("slot", { key: '0a5ba73ca5e1059eeaf339a1fec250c2e6a682e9' }))));
|
|
49
54
|
}
|
|
50
55
|
};
|
|
51
56
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
5
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
|
|
7
7
|
const DBNotification = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -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");
|
|
@@ -53,14 +57,14 @@ const DBNotification = class {
|
|
|
53
57
|
this.enableAttributePassing(this._ref, "db-notification");
|
|
54
58
|
}
|
|
55
59
|
render() {
|
|
56
|
-
var _a;
|
|
57
|
-
return (index.h("div", { key: '
|
|
60
|
+
var _a, _b, _c;
|
|
61
|
+
return (index.h("div", { key: 'ea7d2bd4cbb5c10ad84e69fc5edeceb3ba306664', class: index$1.cls("db-notification", this.className), ref: (el) => {
|
|
58
62
|
this._ref = el;
|
|
59
|
-
}, id: this.id, role: index$1.getNotificationRole({
|
|
63
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: index$1.getNotificationRole({
|
|
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: 'f360080fb6f0841ce53af3c124c590069a9a63a1', name: "image" }), index$1.stringPropVisible(this.headline, this.showHeadline) ? (index.h("header", null, this.headline)) : null, index.h("p", { key: '956e359ac2cca3054222856efb770fb3fa465fe9' }, 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: '834aba00e04c685c7f3524068c2f74daa3f3e75b', name: "link" }), index$1.getBoolean(this.closeable, "closeable") ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : constants.DEFAULT_CLOSE_BUTTON)) : null));
|
|
64
68
|
}
|
|
65
69
|
};
|
|
66
70
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBPage = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -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,10 @@ const DBPage = class {
|
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
66
|
render() {
|
|
63
|
-
|
|
67
|
+
var _a, _b;
|
|
68
|
+
return (index.h("div", { key: 'c08b2ad9b8e77fb1f11664ee52dcbb1d09bd9481', class: index$1.cls("db-page", this.className), ref: (el) => {
|
|
64
69
|
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: '
|
|
70
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": index$1.getBooleanAsString(this.fadeIn), "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded) }, index.h("slot", { key: '86fa25b9544b850ffa82b6ddff06699992671b7d', name: "header" }), index.h("main", { key: '7f5c1cd1c87d9cbc5cd8d905098c92adaf8370ab', class: index$1.cls("db-main", this.mainClass) }, index.h("slot", { key: '07186f253bb25d9d56707074a6d1ebe03fb27554' })), index.h("slot", { key: '549079cb855687037a0f3b241d23784430419bd6', name: "footer" })));
|
|
66
71
|
}
|
|
67
72
|
};
|
|
68
73
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
5
|
-
var documentScrollListener = require('./document-scroll-listener-
|
|
6
|
-
var floatingComponents = require('./floating-components-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
|
+
var documentScrollListener = require('./document-scroll-listener-ChQ7XZRk.js');
|
|
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");
|
|
@@ -165,10 +169,10 @@ const DBPopover = class {
|
|
|
165
169
|
this.watch1Fn();
|
|
166
170
|
}
|
|
167
171
|
render() {
|
|
168
|
-
var _a;
|
|
169
|
-
return (index.h("div", { key: '
|
|
172
|
+
var _a, _b, _c;
|
|
173
|
+
return (index.h("div", { key: 'aa9250091fc55d09bb5db9f6ca82af793999160c', 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: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: 'aab79e27b5ce47cb859342d448c4efc0933fc523', name: "trigger" }), index.h("article", { key: '4f8ba04305cf074b94d50c0c5121c89bd4251434', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": index$1.getBooleanAsString(this.gap), "data-animation": index$1.getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": index$1.getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, index.h("slot", { key: '3ce3cca432122ee2b52d7df9cd0016d4c6b81da1' }))));
|
|
172
176
|
}
|
|
173
177
|
static get watchers() { return {
|
|
174
178
|
"_ref": [{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
5
|
-
var formComponents = require('./form-components-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
|
+
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
6
6
|
|
|
7
7
|
const DBRadio = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -35,6 +35,10 @@ const DBRadio = class {
|
|
|
35
35
|
this.focus.emit(event);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
resetIds() {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
this._id = (_c = (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : `radio-${index$1.uuid()}`;
|
|
41
|
+
}
|
|
38
42
|
/**
|
|
39
43
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
40
44
|
* @param element the ref for the component
|
|
@@ -46,12 +50,16 @@ const DBRadio = class {
|
|
|
46
50
|
const attributes = parent.attributes;
|
|
47
51
|
for (let i = 0; i < attributes.length; i++) {
|
|
48
52
|
const attr = attributes.item(i);
|
|
49
|
-
if (attr &&
|
|
53
|
+
if (attr && attr.name !== 'data-density' &&
|
|
50
54
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
51
55
|
element.setAttribute(attr.name, attr.value);
|
|
52
56
|
parent.removeAttribute(attr.name);
|
|
53
57
|
}
|
|
54
|
-
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") {
|
|
55
63
|
const isWebComponent = attr.value.includes("hydrated");
|
|
56
64
|
const value = attr.value.replace("hydrated", "").trim();
|
|
57
65
|
const currentClass = element.getAttribute("class");
|
|
@@ -68,14 +76,23 @@ const DBRadio = class {
|
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
78
|
watch0Fn() {
|
|
71
|
-
|
|
72
|
-
|
|
79
|
+
var _a, _b;
|
|
80
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
81
|
+
this.resetIds();
|
|
73
82
|
}
|
|
74
83
|
}
|
|
75
84
|
watch0() {
|
|
76
85
|
this.watch0Fn();
|
|
77
86
|
}
|
|
78
87
|
watch1Fn() {
|
|
88
|
+
if (this.checked && this.initialized && this._ref) {
|
|
89
|
+
this._ref.checked = true;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
watch1() {
|
|
93
|
+
this.watch1Fn();
|
|
94
|
+
}
|
|
95
|
+
watch2Fn() {
|
|
79
96
|
if (this._ref) {
|
|
80
97
|
let controller = this.abortController;
|
|
81
98
|
if (!controller) {
|
|
@@ -94,37 +111,43 @@ const DBRadio = class {
|
|
|
94
111
|
}, controller.signal);
|
|
95
112
|
}
|
|
96
113
|
}
|
|
97
|
-
|
|
98
|
-
this.
|
|
114
|
+
watch2() {
|
|
115
|
+
this.watch2Fn();
|
|
99
116
|
}
|
|
100
117
|
componentDidLoad() {
|
|
101
|
-
var _a;
|
|
102
118
|
this.enableAttributePassing(this._ref, "db-radio");
|
|
103
119
|
this.initialized = true;
|
|
104
|
-
this.
|
|
120
|
+
this.resetIds();
|
|
105
121
|
this.watch0Fn();
|
|
106
122
|
this.watch1Fn();
|
|
123
|
+
this.watch2Fn();
|
|
107
124
|
}
|
|
108
125
|
disconnectedCallback() {
|
|
109
126
|
var _a;
|
|
110
127
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
111
128
|
}
|
|
112
129
|
render() {
|
|
113
|
-
return (index.h("label", { key: '
|
|
130
|
+
return (index.h("label", { key: '9c3f8305d05457c20250793e18a9d18c8c036f7c', 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: 'f65b487ea3dcd26eb348d7b7e18461d29fc6e0af', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
114
131
|
this._ref = el;
|
|
115
132
|
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : index.h("slot", null)));
|
|
116
133
|
}
|
|
117
134
|
static get watchers() { return {
|
|
118
|
-
"
|
|
135
|
+
"id": [{
|
|
119
136
|
"watch0": 0
|
|
120
137
|
}],
|
|
121
|
-
"
|
|
138
|
+
"propOverrides?.id": [{
|
|
122
139
|
"watch0": 0
|
|
123
|
-
},
|
|
140
|
+
}],
|
|
141
|
+
"initialized": [{
|
|
124
142
|
"watch1": 0
|
|
125
143
|
}],
|
|
144
|
+
"_ref": [{
|
|
145
|
+
"watch1": 0
|
|
146
|
+
}, {
|
|
147
|
+
"watch2": 0
|
|
148
|
+
}],
|
|
126
149
|
"checked": [{
|
|
127
|
-
"
|
|
150
|
+
"watch1": 0
|
|
128
151
|
}]
|
|
129
152
|
}; }
|
|
130
153
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBSection = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -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,10 @@ const DBSection = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-section");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return (index.h("section", { key: '433827caeacf2a63ea928bd6178f66dad7112d6d', class: index$1.cls("db-section", this.className), ref: (el) => {
|
|
47
52
|
this._ref = el;
|
|
48
|
-
}, id: this.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: 'b815cad646a0d81b749b215a02299b290f765f09' })));
|
|
49
54
|
}
|
|
50
55
|
};
|
|
51
56
|
|