@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
|
@@ -16,12 +16,16 @@ export class DBCustomSelectFormField {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,9 +45,10 @@ export class DBCustomSelectFormField {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-custom-select-form-field");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("summary", { key: '6bd88cd88890b6c4fd6fc231dbce401ae0a1b72e', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
45
50
|
this._ref = el;
|
|
46
|
-
}, id: this.id }, h("slot", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '3cf997efe556cbf62f590adad219b60459549cc8' })));
|
|
47
52
|
}
|
|
48
53
|
static get is() { return "db-custom-select-form-field"; }
|
|
49
54
|
static get properties() {
|
|
@@ -74,6 +79,30 @@ export class DBCustomSelectFormField {
|
|
|
74
79
|
"reflect": false,
|
|
75
80
|
"attribute": "id"
|
|
76
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBCustomSelectFormFieldProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBCustomSelectFormFieldProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/custom-select-form-field/model.ts::DBCustomSelectFormFieldProps",
|
|
93
|
+
"referenceLocation": "DBCustomSelectFormFieldProps"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false
|
|
105
|
+
},
|
|
77
106
|
"className": {
|
|
78
107
|
"type": "string",
|
|
79
108
|
"mutable": false,
|
|
@@ -16,12 +16,16 @@ export class DBCustomSelectList {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,9 +45,10 @@ export class DBCustomSelectList {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-custom-select-list");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("div", { key: '7694da5a9c97c4f603217d79afd88afe63719db8', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
45
50
|
this._ref = el;
|
|
46
|
-
}, id: this.id }, h("ul", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '5c718c452425cfec8a6234d5ae2cf6aef7ed4655' }, h("slot", { key: '93b311c5a750a9ec2b0cb9ab4f7453aa25cc77d8' }))));
|
|
47
52
|
}
|
|
48
53
|
static get is() { return "db-custom-select-list"; }
|
|
49
54
|
static get properties() {
|
|
@@ -126,6 +131,30 @@ export class DBCustomSelectList {
|
|
|
126
131
|
"reflect": false,
|
|
127
132
|
"attribute": "id"
|
|
128
133
|
},
|
|
134
|
+
"propOverrides": {
|
|
135
|
+
"type": "unknown",
|
|
136
|
+
"mutable": false,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "DBCustomSelectListProps[\"propOverrides\"]",
|
|
139
|
+
"resolved": "{ id?: string; }",
|
|
140
|
+
"references": {
|
|
141
|
+
"DBCustomSelectListProps": {
|
|
142
|
+
"location": "import",
|
|
143
|
+
"path": "./model",
|
|
144
|
+
"id": "src/components/custom-select-list/model.ts::DBCustomSelectListProps",
|
|
145
|
+
"referenceLocation": "DBCustomSelectListProps"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": ""
|
|
154
|
+
},
|
|
155
|
+
"getter": false,
|
|
156
|
+
"setter": false
|
|
157
|
+
},
|
|
129
158
|
"className": {
|
|
130
159
|
"type": "string",
|
|
131
160
|
"mutable": false,
|
|
@@ -31,12 +31,16 @@ export class DBCustomSelectListItem {
|
|
|
31
31
|
const attributes = parent.attributes;
|
|
32
32
|
for (let i = 0; i < attributes.length; i++) {
|
|
33
33
|
const attr = attributes.item(i);
|
|
34
|
-
if (attr &&
|
|
34
|
+
if (attr && attr.name !== 'data-density' &&
|
|
35
35
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
36
36
|
element.setAttribute(attr.name, attr.value);
|
|
37
37
|
parent.removeAttribute(attr.name);
|
|
38
38
|
}
|
|
39
|
-
if (attr && attr.name
|
|
39
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
40
|
+
element.setAttribute(attr.name, attr.value);
|
|
41
|
+
parent.removeAttribute(attr.name);
|
|
42
|
+
}
|
|
43
|
+
else if (attr && attr.name === "class") {
|
|
40
44
|
const isWebComponent = attr.value.includes("hydrated");
|
|
41
45
|
const value = attr.value.replace("hydrated", "").trim();
|
|
42
46
|
const currentClass = element.getAttribute("class");
|
|
@@ -63,12 +67,13 @@ export class DBCustomSelectListItem {
|
|
|
63
67
|
this.watch0Fn();
|
|
64
68
|
}
|
|
65
69
|
render() {
|
|
66
|
-
|
|
70
|
+
var _a, _b;
|
|
71
|
+
return (h("li", { key: '40ae5213dd63ce580e2a036e5bf4781065026a30', class: cls("db-custom-select-list-item", this.className, {
|
|
67
72
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
68
73
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
69
74
|
}), ref: (el) => {
|
|
70
75
|
this._ref = el;
|
|
71
|
-
}, id: this.id, "data-divider": getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : h("slot", null))) : (h("span", null, this.groupTitle))));
|
|
76
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : h("slot", null))) : (h("span", null, this.groupTitle))));
|
|
72
77
|
}
|
|
73
78
|
static get is() { return "db-custom-select-list-item"; }
|
|
74
79
|
static get properties() {
|
|
@@ -203,6 +208,30 @@ export class DBCustomSelectListItem {
|
|
|
203
208
|
"reflect": false,
|
|
204
209
|
"attribute": "id"
|
|
205
210
|
},
|
|
211
|
+
"propOverrides": {
|
|
212
|
+
"type": "unknown",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "DBCustomSelectListItemProps[\"propOverrides\"]",
|
|
216
|
+
"resolved": "{ id?: string; }",
|
|
217
|
+
"references": {
|
|
218
|
+
"DBCustomSelectListItemProps": {
|
|
219
|
+
"location": "import",
|
|
220
|
+
"path": "./model",
|
|
221
|
+
"id": "src/components/custom-select-list-item/model.ts::DBCustomSelectListItemProps",
|
|
222
|
+
"referenceLocation": "DBCustomSelectListItemProps"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [],
|
|
230
|
+
"text": ""
|
|
231
|
+
},
|
|
232
|
+
"getter": false,
|
|
233
|
+
"setter": false
|
|
234
|
+
},
|
|
206
235
|
"className": {
|
|
207
236
|
"type": "string",
|
|
208
237
|
"mutable": false,
|
|
@@ -16,12 +16,16 @@ export class DBDivider {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,9 +45,10 @@ export class DBDivider {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-divider");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("div", { key: '6085ef73845be698561795af1a69cee864b31b7d', class: cls("db-divider", this.className), ref: (el) => {
|
|
45
50
|
this._ref = el;
|
|
46
|
-
}, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
47
52
|
}
|
|
48
53
|
static get is() { return "db-divider"; }
|
|
49
54
|
static get properties() {
|
|
@@ -74,6 +79,30 @@ export class DBDivider {
|
|
|
74
79
|
"reflect": false,
|
|
75
80
|
"attribute": "id"
|
|
76
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBDividerProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBDividerProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/divider/model.ts::DBDividerProps",
|
|
93
|
+
"referenceLocation": "DBDividerProps"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false
|
|
105
|
+
},
|
|
77
106
|
"margin": {
|
|
78
107
|
"type": "string",
|
|
79
108
|
"mutable": false,
|
|
@@ -82,12 +82,16 @@ export class DBDrawer {
|
|
|
82
82
|
const attributes = parent.attributes;
|
|
83
83
|
for (let i = 0; i < attributes.length; i++) {
|
|
84
84
|
const attr = attributes.item(i);
|
|
85
|
-
if (attr &&
|
|
85
|
+
if (attr && attr.name !== 'data-density' &&
|
|
86
86
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
87
87
|
element.setAttribute(attr.name, attr.value);
|
|
88
88
|
parent.removeAttribute(attr.name);
|
|
89
89
|
}
|
|
90
|
-
if (attr && attr.name
|
|
90
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
91
|
+
element.setAttribute(attr.name, attr.value);
|
|
92
|
+
parent.removeAttribute(attr.name);
|
|
93
|
+
}
|
|
94
|
+
else if (attr && attr.name === "class") {
|
|
91
95
|
const isWebComponent = attr.value.includes("hydrated");
|
|
92
96
|
const value = attr.value.replace("hydrated", "").trim();
|
|
93
97
|
const currentClass = element.getAttribute("class");
|
|
@@ -129,12 +133,12 @@ export class DBDrawer {
|
|
|
129
133
|
this.watch1Fn();
|
|
130
134
|
}
|
|
131
135
|
render() {
|
|
132
|
-
var _a;
|
|
133
|
-
return (h("dialog", { key: '
|
|
136
|
+
var _a, _b, _c;
|
|
137
|
+
return (h("dialog", { key: '4a002d3faba35e33b0ad6f37eb4c1bc8e1fcbe13', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
|
|
134
138
|
this._ref = el;
|
|
135
|
-
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: '
|
|
139
|
+
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: '644050fdd2392c907e6cc375ace9dcc4205f4b7f', class: cls("db-drawer-container", this.className), ref: (el) => {
|
|
136
140
|
this.dialogContainerRef = el;
|
|
137
|
-
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: '
|
|
141
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: 'f4dc3a298eafc6c45d2bdf459c90a58faf856925', class: "db-drawer-header" }, h("div", { key: '21d808fe191e85f15f7c2a1512ad461199494c6e', class: "db-drawer-header-text" }, h("slot", { key: '4962256732612a5d5f629540916874189bc0f0e0', name: "drawerHeader" })), h("db-button", { key: '494015c896edb8b246f7c734d8906182043cfaf6', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)), h("div", { key: '00ffdb6c782d620e0ac6d7fdb41312c65c68b197', class: "db-drawer-content" }, h("slot", { key: 'edc0a393b10741fd41de513b3572b4ce7ce2cae3' })))));
|
|
138
142
|
}
|
|
139
143
|
static get is() { return "db-drawer"; }
|
|
140
144
|
static get properties() {
|
|
@@ -269,6 +273,30 @@ export class DBDrawer {
|
|
|
269
273
|
"reflect": false,
|
|
270
274
|
"attribute": "id"
|
|
271
275
|
},
|
|
276
|
+
"propOverrides": {
|
|
277
|
+
"type": "unknown",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "DBDrawerProps[\"propOverrides\"]",
|
|
281
|
+
"resolved": "{ id?: string; }",
|
|
282
|
+
"references": {
|
|
283
|
+
"DBDrawerProps": {
|
|
284
|
+
"location": "import",
|
|
285
|
+
"path": "./model",
|
|
286
|
+
"id": "src/components/drawer/model.ts::DBDrawerProps",
|
|
287
|
+
"referenceLocation": "DBDrawerProps"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": false,
|
|
292
|
+
"optional": false,
|
|
293
|
+
"docs": {
|
|
294
|
+
"tags": [],
|
|
295
|
+
"text": ""
|
|
296
|
+
},
|
|
297
|
+
"getter": false,
|
|
298
|
+
"setter": false
|
|
299
|
+
},
|
|
272
300
|
"direction": {
|
|
273
301
|
"type": "string",
|
|
274
302
|
"mutable": false,
|
|
@@ -39,12 +39,16 @@ export class DBHeader {
|
|
|
39
39
|
const attributes = parent.attributes;
|
|
40
40
|
for (let i = 0; i < attributes.length; i++) {
|
|
41
41
|
const attr = attributes.item(i);
|
|
42
|
-
if (attr &&
|
|
42
|
+
if (attr && attr.name !== 'data-density' &&
|
|
43
43
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
44
44
|
element.setAttribute(attr.name, attr.value);
|
|
45
45
|
parent.removeAttribute(attr.name);
|
|
46
46
|
}
|
|
47
|
-
if (attr && attr.name
|
|
47
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
48
|
+
element.setAttribute(attr.name, attr.value);
|
|
49
|
+
parent.removeAttribute(attr.name);
|
|
50
|
+
}
|
|
51
|
+
else if (attr && attr.name === "class") {
|
|
48
52
|
const isWebComponent = attr.value.includes("hydrated");
|
|
49
53
|
const value = attr.value.replace("hydrated", "").trim();
|
|
50
54
|
const currentClass = element.getAttribute("class");
|
|
@@ -80,10 +84,10 @@ export class DBHeader {
|
|
|
80
84
|
this.watch0Fn();
|
|
81
85
|
}
|
|
82
86
|
render() {
|
|
83
|
-
var _a;
|
|
84
|
-
return (h("header", { key: '
|
|
87
|
+
var _a, _b, _c;
|
|
88
|
+
return (h("header", { key: '472c3e72f6651ee5c09bc306cb46256782600379', class: cls("db-header", this.className), ref: (el) => {
|
|
85
89
|
this._ref = el;
|
|
86
|
-
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '
|
|
90
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: 'e43b6fe88c420aafcccbe10c1852b1ad8c640a67', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'cd1d184da10661cc41a32c7b26e352a01d62acb5', class: "db-header-drawer-navigation" }, h("div", { key: 'a7f992b669f4efdc58a05eef1d45d0b279eb652d', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '24fb78c5ba0eff9d594f8b41eb3bc986e7163276' })), h("div", { key: 'e509d62474a96831495428c5becb9fbf07b27b45', class: "db-header-meta-navigation" }, h("slot", { key: '65a8037fc817c20078f4e2e056268d40a973190a', name: "metaNavigation" }))), h("div", { key: 'ccb1c32adfcfcf8c94c1d9683e97140e99c7bc4b', class: "db-header-secondary-action" }, h("slot", { key: 'c1bd838bf97674d7537ad23d74b448f0e6f6b60b', name: "secondaryAction" }))), h("div", { key: '580b1e921589716809c6add27d0ebbd4577c36c5', class: "db-header-meta-navigation" }, h("slot", { key: '38264be6e940feb9b1d5f7c20133036af0db4467', name: "metaNavigation" })), h("div", { key: 'fab3ea7eb1b20b5626eb481e23eed33196e5391e', class: "db-header-navigation-bar" }, h("div", { key: '5c09d40a2d4db6fd3c04406d3f39f4e9a61f9c9c', class: "db-header-brand-container" }, h("slot", { key: '762b7e3669486369d0440af4774358c2be73aa6f', name: "brand" })), h("div", { key: 'a19ea0d8ce9d34a05a041fa489bf9586116296d0', class: "db-header-navigation-container" }, h("div", { key: '1bf7424bcbd9903f52bd55f1459481d73da47769', class: "db-header-navigation" }, h("slot", { key: '928dab58c49293b0ddc6014d491d839b07394832' })), h("div", { key: 'e470c62116f04772d3daac1c6088b69957fc8e22', class: "db-header-primary-action" }, h("slot", { key: '726b5e41a818a50bded6c79df27a697c132e1793', name: "primaryAction" }))), h("div", { key: 'c00bb939d06ab93e7f2979c13713841d48044cf9', class: "db-header-action-container" }, h("div", { key: '52444a5096ccda4b0bf62657aa6ac904ccb93720', class: "db-header-burger-menu-container" }, h("db-button", { key: '22ed7c031d16610ff0cb62badf90e8388867b296', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : DEFAULT_BURGER_MENU)), h("div", { key: '9a6e595cf1d6d14357c8223e422517e0f3753e64', class: "db-header-secondary-action" }, h("slot", { key: 'ed8ac7dbd116208d0a1158335deacb64c7278de8', name: "secondaryAction" }))))));
|
|
87
91
|
}
|
|
88
92
|
static get is() { return "db-header"; }
|
|
89
93
|
static get properties() {
|
|
@@ -192,6 +196,30 @@ export class DBHeader {
|
|
|
192
196
|
"reflect": false,
|
|
193
197
|
"attribute": "id"
|
|
194
198
|
},
|
|
199
|
+
"propOverrides": {
|
|
200
|
+
"type": "unknown",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "DBHeaderProps[\"propOverrides\"]",
|
|
204
|
+
"resolved": "{ id?: string; }",
|
|
205
|
+
"references": {
|
|
206
|
+
"DBHeaderProps": {
|
|
207
|
+
"location": "import",
|
|
208
|
+
"path": "./model",
|
|
209
|
+
"id": "src/components/header/model.ts::DBHeaderProps",
|
|
210
|
+
"referenceLocation": "DBHeaderProps"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": false,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": ""
|
|
219
|
+
},
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false
|
|
222
|
+
},
|
|
195
223
|
"width": {
|
|
196
224
|
"type": "string",
|
|
197
225
|
"mutable": false,
|
|
@@ -16,12 +16,16 @@ export class DBIcon {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,9 +45,10 @@ export class DBIcon {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-icon");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("span", { key: '4e41afd86be65137a69847bb0c154e4af951581d', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
45
50
|
this._ref = el;
|
|
46
|
-
}, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
|
|
51
|
+
}, 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 : h("slot", null)));
|
|
47
52
|
}
|
|
48
53
|
static get is() { return "db-icon"; }
|
|
49
54
|
static get properties() {
|
|
@@ -74,6 +79,30 @@ export class DBIcon {
|
|
|
74
79
|
"reflect": false,
|
|
75
80
|
"attribute": "id"
|
|
76
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBIconProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBIconProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/icon/model.ts::DBIconProps",
|
|
93
|
+
"referenceLocation": "DBIconProps"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false
|
|
105
|
+
},
|
|
77
106
|
"className": {
|
|
78
107
|
"type": "string",
|
|
79
108
|
"mutable": false,
|
|
@@ -16,12 +16,16 @@ export class DBInfotext {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,10 +45,10 @@ export class DBInfotext {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-infotext");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
var _a;
|
|
45
|
-
return (h("span", { key: '
|
|
48
|
+
var _a, _b, _c;
|
|
49
|
+
return (h("span", { key: '8251add62131b09f6e32c20c50619c5e725e5b8e', class: cls("db-infotext", this.className), ref: (el) => {
|
|
46
50
|
this._ref = el;
|
|
47
|
-
}, id: this.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-show-icon-leading": getBooleanAsString((
|
|
51
|
+
}, 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": getBooleanAsString(this.wrap), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : h("slot", null)));
|
|
48
52
|
}
|
|
49
53
|
static get is() { return "db-infotext"; }
|
|
50
54
|
static get properties() {
|
|
@@ -75,6 +79,30 @@ export class DBInfotext {
|
|
|
75
79
|
"reflect": false,
|
|
76
80
|
"attribute": "id"
|
|
77
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBInfotextProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBInfotextProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/infotext/model.ts::DBInfotextProps",
|
|
93
|
+
"referenceLocation": "DBInfotextProps"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false
|
|
105
|
+
},
|
|
78
106
|
"className": {
|
|
79
107
|
"type": "string",
|
|
80
108
|
"mutable": false,
|
|
@@ -179,6 +207,32 @@ export class DBInfotext {
|
|
|
179
207
|
"reflect": false,
|
|
180
208
|
"attribute": "size"
|
|
181
209
|
},
|
|
210
|
+
"wrap": {
|
|
211
|
+
"type": "any",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "DBInfotextProps[\"wrap\"]",
|
|
215
|
+
"resolved": "boolean | string",
|
|
216
|
+
"references": {
|
|
217
|
+
"DBInfotextProps": {
|
|
218
|
+
"location": "import",
|
|
219
|
+
"path": "./model",
|
|
220
|
+
"id": "src/components/infotext/model.ts::DBInfotextProps",
|
|
221
|
+
"referenceLocation": "DBInfotextProps"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": ""
|
|
230
|
+
},
|
|
231
|
+
"getter": false,
|
|
232
|
+
"setter": false,
|
|
233
|
+
"reflect": false,
|
|
234
|
+
"attribute": "wrap"
|
|
235
|
+
},
|
|
182
236
|
"showIcon": {
|
|
183
237
|
"type": "any",
|
|
184
238
|
"mutable": false,
|