@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,9 +1,9 @@
|
|
|
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
|
var constants = require('./constants-bMY2_d8A.js');
|
|
6
|
-
var formComponents = require('./form-components-
|
|
6
|
+
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
7
7
|
|
|
8
8
|
const DBCustomSelectDropdown = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -21,12 +21,16 @@ const DBCustomSelectDropdown = class {
|
|
|
21
21
|
const attributes = parent.attributes;
|
|
22
22
|
for (let i = 0; i < attributes.length; i++) {
|
|
23
23
|
const attr = attributes.item(i);
|
|
24
|
-
if (attr &&
|
|
24
|
+
if (attr && attr.name !== 'data-density' &&
|
|
25
25
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
26
26
|
element.setAttribute(attr.name, attr.value);
|
|
27
27
|
parent.removeAttribute(attr.name);
|
|
28
28
|
}
|
|
29
|
-
if (attr && attr.name
|
|
29
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
30
|
+
element.setAttribute(attr.name, attr.value);
|
|
31
|
+
parent.removeAttribute(attr.name);
|
|
32
|
+
}
|
|
33
|
+
else if (attr && attr.name === "class") {
|
|
30
34
|
const isWebComponent = attr.value.includes("hydrated");
|
|
31
35
|
const value = attr.value.replace("hydrated", "").trim();
|
|
32
36
|
const currentClass = element.getAttribute("class");
|
|
@@ -46,9 +50,10 @@ const DBCustomSelectDropdown = class {
|
|
|
46
50
|
this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
|
|
47
51
|
}
|
|
48
52
|
render() {
|
|
49
|
-
|
|
53
|
+
var _a, _b;
|
|
54
|
+
return (index.h("article", { key: '18ea31a3993786aed93fbb95fabc349231b455ae', class: index$1.cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
|
|
50
55
|
this._ref = el;
|
|
51
|
-
}, id: this.id, "data-width": this.width }, index.h("slot", { key: '
|
|
56
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, index.h("slot", { key: '14a29534f56e6fe16c6d6e856b26aba549fef8dc' })));
|
|
52
57
|
}
|
|
53
58
|
};
|
|
54
59
|
|
|
@@ -67,12 +72,16 @@ const DBCustomSelectList = class {
|
|
|
67
72
|
const attributes = parent.attributes;
|
|
68
73
|
for (let i = 0; i < attributes.length; i++) {
|
|
69
74
|
const attr = attributes.item(i);
|
|
70
|
-
if (attr &&
|
|
75
|
+
if (attr && attr.name !== 'data-density' &&
|
|
71
76
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
72
77
|
element.setAttribute(attr.name, attr.value);
|
|
73
78
|
parent.removeAttribute(attr.name);
|
|
74
79
|
}
|
|
75
|
-
if (attr && attr.name
|
|
80
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
81
|
+
element.setAttribute(attr.name, attr.value);
|
|
82
|
+
parent.removeAttribute(attr.name);
|
|
83
|
+
}
|
|
84
|
+
else if (attr && attr.name === "class") {
|
|
76
85
|
const isWebComponent = attr.value.includes("hydrated");
|
|
77
86
|
const value = attr.value.replace("hydrated", "").trim();
|
|
78
87
|
const currentClass = element.getAttribute("class");
|
|
@@ -92,9 +101,10 @@ const DBCustomSelectList = class {
|
|
|
92
101
|
this.enableAttributePassing(this._ref, "db-custom-select-list");
|
|
93
102
|
}
|
|
94
103
|
render() {
|
|
95
|
-
|
|
104
|
+
var _a, _b;
|
|
105
|
+
return (index.h("div", { key: '7694da5a9c97c4f603217d79afd88afe63719db8', class: index$1.cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
96
106
|
this._ref = el;
|
|
97
|
-
}, id: this.id }, index.h("ul", { key: '
|
|
107
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '5c718c452425cfec8a6234d5ae2cf6aef7ed4655' }, index.h("slot", { key: '93b311c5a750a9ec2b0cb9ab4f7453aa25cc77d8' }))));
|
|
98
108
|
}
|
|
99
109
|
};
|
|
100
110
|
|
|
@@ -127,12 +137,16 @@ const DBCustomSelectListItem = class {
|
|
|
127
137
|
const attributes = parent.attributes;
|
|
128
138
|
for (let i = 0; i < attributes.length; i++) {
|
|
129
139
|
const attr = attributes.item(i);
|
|
130
|
-
if (attr &&
|
|
140
|
+
if (attr && attr.name !== 'data-density' &&
|
|
131
141
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
132
142
|
element.setAttribute(attr.name, attr.value);
|
|
133
143
|
parent.removeAttribute(attr.name);
|
|
134
144
|
}
|
|
135
|
-
if (attr && attr.name
|
|
145
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
146
|
+
element.setAttribute(attr.name, attr.value);
|
|
147
|
+
parent.removeAttribute(attr.name);
|
|
148
|
+
}
|
|
149
|
+
else if (attr && attr.name === "class") {
|
|
136
150
|
const isWebComponent = attr.value.includes("hydrated");
|
|
137
151
|
const value = attr.value.replace("hydrated", "").trim();
|
|
138
152
|
const currentClass = element.getAttribute("class");
|
|
@@ -159,12 +173,13 @@ const DBCustomSelectListItem = class {
|
|
|
159
173
|
this.watch0Fn();
|
|
160
174
|
}
|
|
161
175
|
render() {
|
|
162
|
-
|
|
176
|
+
var _a, _b;
|
|
177
|
+
return (index.h("li", { key: '40ae5213dd63ce580e2a036e5bf4781065026a30', class: index$1.cls("db-custom-select-list-item", this.className, {
|
|
163
178
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
164
179
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
165
180
|
}), ref: (el) => {
|
|
166
181
|
this._ref = el;
|
|
167
|
-
}, id: this.id, "data-divider": index$1.getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (index.h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, index.h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : index.h("slot", null))) : (index.h("span", null, this.groupTitle))));
|
|
182
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": index$1.getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (index.h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, index.h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : index.h("slot", null))) : (index.h("span", null, this.groupTitle))));
|
|
168
183
|
}
|
|
169
184
|
static get watchers() { return {
|
|
170
185
|
"isGroupTitle": [{
|
|
@@ -259,6 +274,15 @@ const DBInput = class {
|
|
|
259
274
|
}))
|
|
260
275
|
: _list) || []);
|
|
261
276
|
}
|
|
277
|
+
resetIds() {
|
|
278
|
+
var _a, _b, _c;
|
|
279
|
+
const mId = (_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 : `input-${index$1.uuid()}`;
|
|
280
|
+
this._id = mId;
|
|
281
|
+
this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
|
|
282
|
+
this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
283
|
+
this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
284
|
+
this._dataListId = mId + constants.DEFAULT_DATALIST_ID_SUFFIX;
|
|
285
|
+
}
|
|
262
286
|
/**
|
|
263
287
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
264
288
|
* @param element the ref for the component
|
|
@@ -270,12 +294,16 @@ const DBInput = class {
|
|
|
270
294
|
const attributes = parent.attributes;
|
|
271
295
|
for (let i = 0; i < attributes.length; i++) {
|
|
272
296
|
const attr = attributes.item(i);
|
|
273
|
-
if (attr &&
|
|
297
|
+
if (attr && attr.name !== 'data-density' &&
|
|
274
298
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
275
299
|
element.setAttribute(attr.name, attr.value);
|
|
276
300
|
parent.removeAttribute(attr.name);
|
|
277
301
|
}
|
|
278
|
-
if (attr && attr.name
|
|
302
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
303
|
+
element.setAttribute(attr.name, attr.value);
|
|
304
|
+
parent.removeAttribute(attr.name);
|
|
305
|
+
}
|
|
306
|
+
else if (attr && attr.name === "class") {
|
|
279
307
|
const isWebComponent = attr.value.includes("hydrated");
|
|
280
308
|
const value = attr.value.replace("hydrated", "").trim();
|
|
281
309
|
const currentClass = element.getAttribute("class");
|
|
@@ -292,16 +320,25 @@ const DBInput = class {
|
|
|
292
320
|
}
|
|
293
321
|
}
|
|
294
322
|
watch0Fn() {
|
|
323
|
+
var _a, _b;
|
|
324
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
325
|
+
this.resetIds();
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
watch0() {
|
|
329
|
+
this.watch0Fn();
|
|
330
|
+
}
|
|
331
|
+
watch1Fn() {
|
|
295
332
|
var _a;
|
|
296
333
|
this._invalidMessage =
|
|
297
334
|
this.invalidMessage ||
|
|
298
335
|
((_a = this._ref) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
299
336
|
constants.DEFAULT_INVALID_MESSAGE;
|
|
300
337
|
}
|
|
301
|
-
|
|
302
|
-
this.
|
|
338
|
+
watch1() {
|
|
339
|
+
this.watch1Fn();
|
|
303
340
|
}
|
|
304
|
-
|
|
341
|
+
watch2Fn() {
|
|
305
342
|
var _a;
|
|
306
343
|
if (this._id) {
|
|
307
344
|
const messageId = this._id + constants.DEFAULT_MESSAGE_ID_SUFFIX;
|
|
@@ -316,18 +353,18 @@ const DBInput = class {
|
|
|
316
353
|
this.handleValidation();
|
|
317
354
|
}
|
|
318
355
|
}
|
|
319
|
-
|
|
320
|
-
this.
|
|
356
|
+
watch2() {
|
|
357
|
+
this.watch2Fn();
|
|
321
358
|
}
|
|
322
|
-
|
|
359
|
+
watch3Fn() {
|
|
323
360
|
if (this.value !== undefined) {
|
|
324
361
|
this._value = this.value;
|
|
325
362
|
}
|
|
326
363
|
}
|
|
327
|
-
|
|
328
|
-
this.
|
|
364
|
+
watch3() {
|
|
365
|
+
this.watch3Fn();
|
|
329
366
|
}
|
|
330
|
-
|
|
367
|
+
watch4Fn() {
|
|
331
368
|
// If angular uses ngModel value and _value are null
|
|
332
369
|
// then the value will be set afterward and the _ref will be refreshed
|
|
333
370
|
const addResetListener = true;
|
|
@@ -347,23 +384,18 @@ const DBInput = class {
|
|
|
347
384
|
}, controller.signal);
|
|
348
385
|
}
|
|
349
386
|
}
|
|
350
|
-
|
|
351
|
-
this.
|
|
387
|
+
watch4() {
|
|
388
|
+
this.watch4Fn();
|
|
352
389
|
}
|
|
353
390
|
componentDidLoad() {
|
|
354
|
-
var _a;
|
|
355
391
|
this.enableAttributePassing(this._ref, "db-input");
|
|
356
|
-
|
|
357
|
-
this._id = mId;
|
|
358
|
-
this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
|
|
359
|
-
this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
360
|
-
this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
361
|
-
this._dataListId = mId + constants.DEFAULT_DATALIST_ID_SUFFIX;
|
|
392
|
+
this.resetIds();
|
|
362
393
|
this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
|
|
363
394
|
this.watch0Fn();
|
|
364
395
|
this.watch1Fn();
|
|
365
396
|
this.watch2Fn();
|
|
366
397
|
this.watch3Fn();
|
|
398
|
+
this.watch4Fn();
|
|
367
399
|
}
|
|
368
400
|
disconnectedCallback() {
|
|
369
401
|
var _a;
|
|
@@ -371,7 +403,7 @@ const DBInput = class {
|
|
|
371
403
|
}
|
|
372
404
|
render() {
|
|
373
405
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
374
|
-
return (index.h("div", { key: '
|
|
406
|
+
return (index.h("div", { key: 'cd3b45e50318203965c74406dfe058b5c667520a', class: index$1.cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-show-icon": index$1.getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing) }, index.h("label", { key: '07a3c4f58cd6531ce8891e18603a6f534d2df1a5', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL), index.h("input", { key: 'b90a93ed9454972000e4e3f37cb839a3d14ab3ec', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
375
407
|
this._ref = el;
|
|
376
408
|
}, id: this._id, name: this.name, type: this.type || "text", multiple: index$1.getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : constants.DEFAULT_PLACEHOLDER, disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), step: index$1.getStep(this.step), value: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, maxLength: index$1.getNumber(this.maxLength, this.maxlength), minLength: index$1.getNumber(this.minLength, this.minlength), max: index$1.getInputValue(this.max, this.type), min: index$1.getInputValue(this.min, this.type), readOnly: index$1.getBoolean(this.readOnly, "readOnly") ||
|
|
377
409
|
index$1.getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: index$1.getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_f = this.ariaDescribedBy) !== null && _f !== void 0 ? _f : this._descByIds, role: [
|
|
@@ -383,22 +415,28 @@ const DBInput = class {
|
|
|
383
415
|
"color",
|
|
384
416
|
].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && index$1.isIOSSafari()
|
|
385
417
|
? "textbox"
|
|
386
|
-
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: '
|
|
418
|
+
: undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: '1333f33d378f1d888146fba5143867051b697a2d' }), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'bac739c900da2b312dbfd253f845f59fdf177f8d', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), index.h("span", { key: '46779c27b49d4fd389ac446e4e8c097fae65f51b', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
387
419
|
}
|
|
388
420
|
static get watchers() { return {
|
|
389
|
-
"
|
|
421
|
+
"id": [{
|
|
390
422
|
"watch0": 0
|
|
423
|
+
}],
|
|
424
|
+
"propOverrides?.id": [{
|
|
425
|
+
"watch0": 0
|
|
426
|
+
}],
|
|
427
|
+
"_ref": [{
|
|
428
|
+
"watch1": 0
|
|
391
429
|
}, {
|
|
392
|
-
"
|
|
430
|
+
"watch4": 0
|
|
393
431
|
}],
|
|
394
432
|
"invalidMessage": [{
|
|
395
|
-
"
|
|
433
|
+
"watch1": 0
|
|
396
434
|
}],
|
|
397
435
|
"_id": [{
|
|
398
|
-
"
|
|
436
|
+
"watch2": 0
|
|
399
437
|
}],
|
|
400
438
|
"value": [{
|
|
401
|
-
"
|
|
439
|
+
"watch3": 0
|
|
402
440
|
}]
|
|
403
441
|
}; }
|
|
404
442
|
};
|
|
@@ -434,12 +472,16 @@ const DBTag = class {
|
|
|
434
472
|
const attributes = parent.attributes;
|
|
435
473
|
for (let i = 0; i < attributes.length; i++) {
|
|
436
474
|
const attr = attributes.item(i);
|
|
437
|
-
if (attr &&
|
|
475
|
+
if (attr && attr.name !== 'data-density' &&
|
|
438
476
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
439
477
|
element.setAttribute(attr.name, attr.value);
|
|
440
478
|
parent.removeAttribute(attr.name);
|
|
441
479
|
}
|
|
442
|
-
if (attr && attr.name
|
|
480
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
481
|
+
element.setAttribute(attr.name, attr.value);
|
|
482
|
+
parent.removeAttribute(attr.name);
|
|
483
|
+
}
|
|
484
|
+
else if (attr && attr.name === "class") {
|
|
443
485
|
const isWebComponent = attr.value.includes("hydrated");
|
|
444
486
|
const value = attr.value.replace("hydrated", "").trim();
|
|
445
487
|
const currentClass = element.getAttribute("class");
|
|
@@ -459,10 +501,10 @@ const DBTag = class {
|
|
|
459
501
|
this.enableAttributePassing(this._ref, "db-tag");
|
|
460
502
|
}
|
|
461
503
|
render() {
|
|
462
|
-
var _a;
|
|
463
|
-
return (index.h("div", { key: '
|
|
504
|
+
var _a, _b, _c;
|
|
505
|
+
return (index.h("div", { key: 'd84df9f55535db4fbe9befd09fd2eef8125069c4', class: index$1.cls("db-tag", this.className), ref: (el) => {
|
|
464
506
|
this._ref = el;
|
|
465
|
-
}, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((
|
|
507
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-no-text": index$1.getBooleanAsString(this.noText), "data-overflow": index$1.getBooleanAsString(this.overflow) }, index.h("slot", { key: '9f4d27ce3f4d4d2e1d193167148168a2cb8784dd', name: "content" }), index.h("slot", { key: '9feecc10d65e9f807709e5d90b90f69be72b8efb' }), this.text ? this.text : null, this.behavior === "removable" ? (index.h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, index.h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
|
|
466
508
|
}
|
|
467
509
|
};
|
|
468
510
|
|
|
@@ -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 DBCustomSelectFormField = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -18,12 +18,16 @@ const DBCustomSelectFormField = class {
|
|
|
18
18
|
const attributes = parent.attributes;
|
|
19
19
|
for (let i = 0; i < attributes.length; i++) {
|
|
20
20
|
const attr = attributes.item(i);
|
|
21
|
-
if (attr &&
|
|
21
|
+
if (attr && attr.name !== 'data-density' &&
|
|
22
22
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
23
23
|
element.setAttribute(attr.name, attr.value);
|
|
24
24
|
parent.removeAttribute(attr.name);
|
|
25
25
|
}
|
|
26
|
-
if (attr && attr.name
|
|
26
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
27
|
+
element.setAttribute(attr.name, attr.value);
|
|
28
|
+
parent.removeAttribute(attr.name);
|
|
29
|
+
}
|
|
30
|
+
else if (attr && attr.name === "class") {
|
|
27
31
|
const isWebComponent = attr.value.includes("hydrated");
|
|
28
32
|
const value = attr.value.replace("hydrated", "").trim();
|
|
29
33
|
const currentClass = element.getAttribute("class");
|
|
@@ -43,9 +47,10 @@ const DBCustomSelectFormField = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-custom-select-form-field");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return (index.h("summary", { key: '6bd88cd88890b6c4fd6fc231dbce401ae0a1b72e', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
47
52
|
this._ref = el;
|
|
48
|
-
}, id: this.id }, 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 }, index.h("slot", { key: '3cf997efe556cbf62f590adad219b60459549cc8' })));
|
|
49
54
|
}
|
|
50
55
|
};
|
|
51
56
|
|