@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
|
@@ -84,6 +84,15 @@ export class DBInput {
|
|
|
84
84
|
}))
|
|
85
85
|
: _list) || []);
|
|
86
86
|
}
|
|
87
|
+
resetIds() {
|
|
88
|
+
var _a, _b, _c;
|
|
89
|
+
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-${uuid()}`;
|
|
90
|
+
this._id = mId;
|
|
91
|
+
this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
92
|
+
this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
93
|
+
this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
94
|
+
this._dataListId = mId + DEFAULT_DATALIST_ID_SUFFIX;
|
|
95
|
+
}
|
|
87
96
|
/**
|
|
88
97
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
89
98
|
* @param element the ref for the component
|
|
@@ -95,12 +104,16 @@ export class DBInput {
|
|
|
95
104
|
const attributes = parent.attributes;
|
|
96
105
|
for (let i = 0; i < attributes.length; i++) {
|
|
97
106
|
const attr = attributes.item(i);
|
|
98
|
-
if (attr &&
|
|
107
|
+
if (attr && attr.name !== 'data-density' &&
|
|
99
108
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
100
109
|
element.setAttribute(attr.name, attr.value);
|
|
101
110
|
parent.removeAttribute(attr.name);
|
|
102
111
|
}
|
|
103
|
-
if (attr && attr.name
|
|
112
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
113
|
+
element.setAttribute(attr.name, attr.value);
|
|
114
|
+
parent.removeAttribute(attr.name);
|
|
115
|
+
}
|
|
116
|
+
else if (attr && attr.name === "class") {
|
|
104
117
|
const isWebComponent = attr.value.includes("hydrated");
|
|
105
118
|
const value = attr.value.replace("hydrated", "").trim();
|
|
106
119
|
const currentClass = element.getAttribute("class");
|
|
@@ -117,16 +130,25 @@ export class DBInput {
|
|
|
117
130
|
}
|
|
118
131
|
}
|
|
119
132
|
watch0Fn() {
|
|
133
|
+
var _a, _b;
|
|
134
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
135
|
+
this.resetIds();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
watch0() {
|
|
139
|
+
this.watch0Fn();
|
|
140
|
+
}
|
|
141
|
+
watch1Fn() {
|
|
120
142
|
var _a;
|
|
121
143
|
this._invalidMessage =
|
|
122
144
|
this.invalidMessage ||
|
|
123
145
|
((_a = this._ref) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
124
146
|
DEFAULT_INVALID_MESSAGE;
|
|
125
147
|
}
|
|
126
|
-
|
|
127
|
-
this.
|
|
148
|
+
watch1() {
|
|
149
|
+
this.watch1Fn();
|
|
128
150
|
}
|
|
129
|
-
|
|
151
|
+
watch2Fn() {
|
|
130
152
|
var _a;
|
|
131
153
|
if (this._id) {
|
|
132
154
|
const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
@@ -141,18 +163,18 @@ export class DBInput {
|
|
|
141
163
|
this.handleValidation();
|
|
142
164
|
}
|
|
143
165
|
}
|
|
144
|
-
|
|
145
|
-
this.
|
|
166
|
+
watch2() {
|
|
167
|
+
this.watch2Fn();
|
|
146
168
|
}
|
|
147
|
-
|
|
169
|
+
watch3Fn() {
|
|
148
170
|
if (this.value !== undefined) {
|
|
149
171
|
this._value = this.value;
|
|
150
172
|
}
|
|
151
173
|
}
|
|
152
|
-
|
|
153
|
-
this.
|
|
174
|
+
watch3() {
|
|
175
|
+
this.watch3Fn();
|
|
154
176
|
}
|
|
155
|
-
|
|
177
|
+
watch4Fn() {
|
|
156
178
|
// If angular uses ngModel value and _value are null
|
|
157
179
|
// then the value will be set afterward and the _ref will be refreshed
|
|
158
180
|
const addResetListener = true;
|
|
@@ -172,23 +194,18 @@ export class DBInput {
|
|
|
172
194
|
}, controller.signal);
|
|
173
195
|
}
|
|
174
196
|
}
|
|
175
|
-
|
|
176
|
-
this.
|
|
197
|
+
watch4() {
|
|
198
|
+
this.watch4Fn();
|
|
177
199
|
}
|
|
178
200
|
componentDidLoad() {
|
|
179
|
-
var _a;
|
|
180
201
|
this.enableAttributePassing(this._ref, "db-input");
|
|
181
|
-
|
|
182
|
-
this._id = mId;
|
|
183
|
-
this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
184
|
-
this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
185
|
-
this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
186
|
-
this._dataListId = mId + DEFAULT_DATALIST_ID_SUFFIX;
|
|
202
|
+
this.resetIds();
|
|
187
203
|
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
188
204
|
this.watch0Fn();
|
|
189
205
|
this.watch1Fn();
|
|
190
206
|
this.watch2Fn();
|
|
191
207
|
this.watch3Fn();
|
|
208
|
+
this.watch4Fn();
|
|
192
209
|
}
|
|
193
210
|
disconnectedCallback() {
|
|
194
211
|
var _a;
|
|
@@ -196,7 +213,7 @@ export class DBInput {
|
|
|
196
213
|
}
|
|
197
214
|
render() {
|
|
198
215
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
199
|
-
return (h("div", { key: '
|
|
216
|
+
return (h("div", { key: 'cd3b45e50318203965c74406dfe058b5c667520a', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: '07a3c4f58cd6531ce8891e18603a6f534d2df1a5', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: 'b90a93ed9454972000e4e3f37cb839a3d14ab3ec', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
200
217
|
this._ref = el;
|
|
201
218
|
}, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
|
|
202
219
|
getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_f = this.ariaDescribedBy) !== null && _f !== void 0 ? _f : this._descByIds, role: [
|
|
@@ -208,16 +225,16 @@ export class DBInput {
|
|
|
208
225
|
"color",
|
|
209
226
|
].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && isIOSSafari()
|
|
210
227
|
? "textbox"
|
|
211
|
-
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: '
|
|
228
|
+
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: '1333f33d378f1d888146fba5143867051b697a2d' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'bac739c900da2b312dbfd253f845f59fdf177f8d', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '46779c27b49d4fd389ac446e4e8c097fae65f51b', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
212
229
|
}
|
|
213
230
|
static get is() { return "db-input"; }
|
|
214
231
|
static get properties() {
|
|
215
232
|
return {
|
|
216
|
-
"
|
|
233
|
+
"invalidMessage": {
|
|
217
234
|
"type": "string",
|
|
218
235
|
"mutable": false,
|
|
219
236
|
"complexType": {
|
|
220
|
-
"original": "DBInputProps[\"
|
|
237
|
+
"original": "DBInputProps[\"invalidMessage\"]",
|
|
221
238
|
"resolved": "string",
|
|
222
239
|
"references": {
|
|
223
240
|
"DBInputProps": {
|
|
@@ -237,13 +254,13 @@ export class DBInput {
|
|
|
237
254
|
"getter": false,
|
|
238
255
|
"setter": false,
|
|
239
256
|
"reflect": false,
|
|
240
|
-
"attribute": "
|
|
257
|
+
"attribute": "invalid-message"
|
|
241
258
|
},
|
|
242
|
-
"
|
|
259
|
+
"id": {
|
|
243
260
|
"type": "string",
|
|
244
261
|
"mutable": false,
|
|
245
262
|
"complexType": {
|
|
246
|
-
"original": "DBInputProps[\"
|
|
263
|
+
"original": "DBInputProps[\"id\"]",
|
|
247
264
|
"resolved": "string",
|
|
248
265
|
"references": {
|
|
249
266
|
"DBInputProps": {
|
|
@@ -263,7 +280,31 @@ export class DBInput {
|
|
|
263
280
|
"getter": false,
|
|
264
281
|
"setter": false,
|
|
265
282
|
"reflect": false,
|
|
266
|
-
"attribute": "
|
|
283
|
+
"attribute": "id"
|
|
284
|
+
},
|
|
285
|
+
"propOverrides": {
|
|
286
|
+
"type": "unknown",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "DBInputProps[\"propOverrides\"]",
|
|
290
|
+
"resolved": "{ id?: string; }",
|
|
291
|
+
"references": {
|
|
292
|
+
"DBInputProps": {
|
|
293
|
+
"location": "import",
|
|
294
|
+
"path": "./model",
|
|
295
|
+
"id": "src/components/input/model.ts::DBInputProps",
|
|
296
|
+
"referenceLocation": "DBInputProps"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": false,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": ""
|
|
305
|
+
},
|
|
306
|
+
"getter": false,
|
|
307
|
+
"setter": false
|
|
267
308
|
},
|
|
268
309
|
"dataListId": {
|
|
269
310
|
"type": "string",
|
|
@@ -1566,20 +1607,26 @@ export class DBInput {
|
|
|
1566
1607
|
}
|
|
1567
1608
|
static get watchers() {
|
|
1568
1609
|
return [{
|
|
1569
|
-
"propName": "
|
|
1610
|
+
"propName": "id",
|
|
1570
1611
|
"methodName": "watch0"
|
|
1571
1612
|
}, {
|
|
1572
|
-
"propName": "
|
|
1613
|
+
"propName": "propOverrides?.id",
|
|
1573
1614
|
"methodName": "watch0"
|
|
1574
1615
|
}, {
|
|
1575
|
-
"propName": "
|
|
1616
|
+
"propName": "_ref",
|
|
1576
1617
|
"methodName": "watch1"
|
|
1577
1618
|
}, {
|
|
1578
|
-
"propName": "
|
|
1619
|
+
"propName": "invalidMessage",
|
|
1620
|
+
"methodName": "watch1"
|
|
1621
|
+
}, {
|
|
1622
|
+
"propName": "_id",
|
|
1579
1623
|
"methodName": "watch2"
|
|
1580
1624
|
}, {
|
|
1581
|
-
"propName": "
|
|
1625
|
+
"propName": "value",
|
|
1582
1626
|
"methodName": "watch3"
|
|
1627
|
+
}, {
|
|
1628
|
+
"propName": "_ref",
|
|
1629
|
+
"methodName": "watch4"
|
|
1583
1630
|
}];
|
|
1584
1631
|
}
|
|
1585
1632
|
}
|
|
@@ -16,12 +16,16 @@ export class DBLink {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,10 +45,10 @@ export class DBLink {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-link");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
var _a, _b;
|
|
45
|
-
return (h("a", { key: '
|
|
48
|
+
var _a, _b, _c, _d;
|
|
49
|
+
return (h("a", { key: '72f9513afa3d072f106c34e42b794a63b7930166', class: cls("db-link", this.className), ref: (el) => {
|
|
46
50
|
this._ref = el;
|
|
47
|
-
}, id: this.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (
|
|
51
|
+
}, 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": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : h("slot", null)));
|
|
48
52
|
}
|
|
49
53
|
static get is() { return "db-link"; }
|
|
50
54
|
static get properties() {
|
|
@@ -75,6 +79,30 @@ export class DBLink {
|
|
|
75
79
|
"reflect": false,
|
|
76
80
|
"attribute": "id"
|
|
77
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBLinkProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBLinkProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/link/model.ts::DBLinkProps",
|
|
93
|
+
"referenceLocation": "DBLinkProps"
|
|
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,
|
|
@@ -16,12 +16,16 @@ export class DBNavigation {
|
|
|
16
16
|
const attributes = parent.attributes;
|
|
17
17
|
for (let i = 0; i < attributes.length; i++) {
|
|
18
18
|
const attr = attributes.item(i);
|
|
19
|
-
if (attr &&
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
20
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
21
|
element.setAttribute(attr.name, attr.value);
|
|
22
22
|
parent.removeAttribute(attr.name);
|
|
23
23
|
}
|
|
24
|
-
if (attr && attr.name
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
25
29
|
const isWebComponent = attr.value.includes("hydrated");
|
|
26
30
|
const value = attr.value.replace("hydrated", "").trim();
|
|
27
31
|
const currentClass = element.getAttribute("class");
|
|
@@ -41,9 +45,10 @@ export class DBNavigation {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-navigation");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("nav", { key: '890635e7c9c420f33510667329902249f7abd8ec', class: cls("db-navigation", this.className), ref: (el) => {
|
|
45
50
|
this._ref = el;
|
|
46
|
-
}, id: this.id }, h("menu", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: '109ec2b85caaba110f70658cd7260a0b9e48f4ee' }, h("slot", { key: '0a5ba73ca5e1059eeaf339a1fec250c2e6a682e9' }))));
|
|
47
52
|
}
|
|
48
53
|
static get is() { return "db-navigation"; }
|
|
49
54
|
static get properties() {
|
|
@@ -74,6 +79,30 @@ export class DBNavigation {
|
|
|
74
79
|
"reflect": false,
|
|
75
80
|
"attribute": "id"
|
|
76
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBNavigationProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBNavigationProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/navigation/model.ts::DBNavigationProps",
|
|
93
|
+
"referenceLocation": "DBNavigationProps"
|
|
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,
|
|
@@ -48,12 +48,16 @@ export class DBNavigationItem {
|
|
|
48
48
|
const attributes = parent.attributes;
|
|
49
49
|
for (let i = 0; i < attributes.length; i++) {
|
|
50
50
|
const attr = attributes.item(i);
|
|
51
|
-
if (attr &&
|
|
51
|
+
if (attr && attr.name !== 'data-density' &&
|
|
52
52
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
53
53
|
element.setAttribute(attr.name, attr.value);
|
|
54
54
|
parent.removeAttribute(attr.name);
|
|
55
55
|
}
|
|
56
|
-
if (attr && attr.name
|
|
56
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
57
|
+
element.setAttribute(attr.name, attr.value);
|
|
58
|
+
parent.removeAttribute(attr.name);
|
|
59
|
+
}
|
|
60
|
+
else if (attr && attr.name === "class") {
|
|
57
61
|
const isWebComponent = attr.value.includes("hydrated");
|
|
58
62
|
const value = attr.value.replace("hydrated", "").trim();
|
|
59
63
|
const currentClass = element.getAttribute("class");
|
|
@@ -104,10 +108,10 @@ export class DBNavigationItem {
|
|
|
104
108
|
this.watch1Fn();
|
|
105
109
|
}
|
|
106
110
|
render() {
|
|
107
|
-
var _a;
|
|
108
|
-
return (h("li", { key: '
|
|
111
|
+
var _a, _b, _c;
|
|
112
|
+
return (h("li", { key: '9e00c0e7d146b0e8472b0aa356846ae40f78b142', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
109
113
|
this._ref = el;
|
|
110
|
-
}, id: this.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (
|
|
114
|
+
}, 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": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
|
|
111
115
|
}
|
|
112
116
|
static get is() { return "db-navigation-item"; }
|
|
113
117
|
static get properties() {
|
|
@@ -164,6 +168,30 @@ export class DBNavigationItem {
|
|
|
164
168
|
"reflect": false,
|
|
165
169
|
"attribute": "id"
|
|
166
170
|
},
|
|
171
|
+
"propOverrides": {
|
|
172
|
+
"type": "unknown",
|
|
173
|
+
"mutable": false,
|
|
174
|
+
"complexType": {
|
|
175
|
+
"original": "DBNavigationItemProps[\"propOverrides\"]",
|
|
176
|
+
"resolved": "{ id?: string; }",
|
|
177
|
+
"references": {
|
|
178
|
+
"DBNavigationItemProps": {
|
|
179
|
+
"location": "import",
|
|
180
|
+
"path": "./model",
|
|
181
|
+
"id": "src/components/navigation-item/model.ts::DBNavigationItemProps",
|
|
182
|
+
"referenceLocation": "DBNavigationItemProps"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": ""
|
|
191
|
+
},
|
|
192
|
+
"getter": false,
|
|
193
|
+
"setter": false
|
|
194
|
+
},
|
|
167
195
|
"className": {
|
|
168
196
|
"type": "string",
|
|
169
197
|
"mutable": false,
|
|
@@ -26,12 +26,16 @@ export class DBNotification {
|
|
|
26
26
|
const attributes = parent.attributes;
|
|
27
27
|
for (let i = 0; i < attributes.length; i++) {
|
|
28
28
|
const attr = attributes.item(i);
|
|
29
|
-
if (attr &&
|
|
29
|
+
if (attr && attr.name !== 'data-density' &&
|
|
30
30
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
31
31
|
element.setAttribute(attr.name, attr.value);
|
|
32
32
|
parent.removeAttribute(attr.name);
|
|
33
33
|
}
|
|
34
|
-
if (attr && attr.name
|
|
34
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
35
|
+
element.setAttribute(attr.name, attr.value);
|
|
36
|
+
parent.removeAttribute(attr.name);
|
|
37
|
+
}
|
|
38
|
+
else if (attr && attr.name === "class") {
|
|
35
39
|
const isWebComponent = attr.value.includes("hydrated");
|
|
36
40
|
const value = attr.value.replace("hydrated", "").trim();
|
|
37
41
|
const currentClass = element.getAttribute("class");
|
|
@@ -51,14 +55,14 @@ export class DBNotification {
|
|
|
51
55
|
this.enableAttributePassing(this._ref, "db-notification");
|
|
52
56
|
}
|
|
53
57
|
render() {
|
|
54
|
-
var _a;
|
|
55
|
-
return (h("div", { key: '
|
|
58
|
+
var _a, _b, _c;
|
|
59
|
+
return (h("div", { key: 'ea7d2bd4cbb5c10ad84e69fc5edeceb3ba306664', class: cls("db-notification", this.className), ref: (el) => {
|
|
56
60
|
this._ref = el;
|
|
57
|
-
}, id: this.id, role: getNotificationRole({
|
|
61
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: getNotificationRole({
|
|
58
62
|
semantic: this.semantic,
|
|
59
63
|
role: this.role,
|
|
60
64
|
ariaLive: this.ariaLive,
|
|
61
|
-
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '
|
|
65
|
+
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: 'f360080fb6f0841ce53af3c124c590069a9a63a1', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: '956e359ac2cca3054222856efb770fb3fa465fe9' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: '834aba00e04c685c7f3524068c2f74daa3f3e75b', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)) : null));
|
|
62
66
|
}
|
|
63
67
|
static get is() { return "db-notification"; }
|
|
64
68
|
static get properties() {
|
|
@@ -89,6 +93,30 @@ export class DBNotification {
|
|
|
89
93
|
"reflect": false,
|
|
90
94
|
"attribute": "id"
|
|
91
95
|
},
|
|
96
|
+
"propOverrides": {
|
|
97
|
+
"type": "unknown",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "DBNotificationProps[\"propOverrides\"]",
|
|
101
|
+
"resolved": "{ id?: string; }",
|
|
102
|
+
"references": {
|
|
103
|
+
"DBNotificationProps": {
|
|
104
|
+
"location": "import",
|
|
105
|
+
"path": "./model",
|
|
106
|
+
"id": "src/components/notification/model.ts::DBNotificationProps",
|
|
107
|
+
"referenceLocation": "DBNotificationProps"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": false,
|
|
112
|
+
"optional": false,
|
|
113
|
+
"docs": {
|
|
114
|
+
"tags": [],
|
|
115
|
+
"text": ""
|
|
116
|
+
},
|
|
117
|
+
"getter": false,
|
|
118
|
+
"setter": false
|
|
119
|
+
},
|
|
92
120
|
"className": {
|
|
93
121
|
"type": "string",
|
|
94
122
|
"mutable": false,
|
|
@@ -20,12 +20,16 @@ export class DBPage {
|
|
|
20
20
|
const attributes = parent.attributes;
|
|
21
21
|
for (let i = 0; i < attributes.length; i++) {
|
|
22
22
|
const attr = attributes.item(i);
|
|
23
|
-
if (attr &&
|
|
23
|
+
if (attr && attr.name !== 'data-density' &&
|
|
24
24
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
25
25
|
element.setAttribute(attr.name, attr.value);
|
|
26
26
|
parent.removeAttribute(attr.name);
|
|
27
27
|
}
|
|
28
|
-
if (attr && attr.name
|
|
28
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
29
|
+
element.setAttribute(attr.name, attr.value);
|
|
30
|
+
parent.removeAttribute(attr.name);
|
|
31
|
+
}
|
|
32
|
+
else if (attr && attr.name === "class") {
|
|
29
33
|
const isWebComponent = attr.value.includes("hydrated");
|
|
30
34
|
const value = attr.value.replace("hydrated", "").trim();
|
|
31
35
|
const currentClass = element.getAttribute("class");
|
|
@@ -61,9 +65,10 @@ export class DBPage {
|
|
|
61
65
|
}
|
|
62
66
|
}
|
|
63
67
|
render() {
|
|
64
|
-
|
|
68
|
+
var _a, _b;
|
|
69
|
+
return (h("div", { key: 'c08b2ad9b8e77fb1f11664ee52dcbb1d09bd9481', class: cls("db-page", this.className), ref: (el) => {
|
|
65
70
|
this._ref = el;
|
|
66
|
-
}, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '
|
|
71
|
+
}, 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": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '86fa25b9544b850ffa82b6ddff06699992671b7d', name: "header" }), h("main", { key: '7f5c1cd1c87d9cbc5cd8d905098c92adaf8370ab', class: cls("db-main", this.mainClass) }, h("slot", { key: '07186f253bb25d9d56707074a6d1ebe03fb27554' })), h("slot", { key: '549079cb855687037a0f3b241d23784430419bd6', name: "footer" })));
|
|
67
72
|
}
|
|
68
73
|
static get is() { return "db-page"; }
|
|
69
74
|
static get properties() {
|
|
@@ -172,6 +177,30 @@ export class DBPage {
|
|
|
172
177
|
"reflect": false,
|
|
173
178
|
"attribute": "id"
|
|
174
179
|
},
|
|
180
|
+
"propOverrides": {
|
|
181
|
+
"type": "unknown",
|
|
182
|
+
"mutable": false,
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "DBPageProps[\"propOverrides\"]",
|
|
185
|
+
"resolved": "{ id?: string; }",
|
|
186
|
+
"references": {
|
|
187
|
+
"DBPageProps": {
|
|
188
|
+
"location": "import",
|
|
189
|
+
"path": "./model",
|
|
190
|
+
"id": "src/components/page/model.ts::DBPageProps",
|
|
191
|
+
"referenceLocation": "DBPageProps"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": ""
|
|
200
|
+
},
|
|
201
|
+
"getter": false,
|
|
202
|
+
"setter": false
|
|
203
|
+
},
|
|
175
204
|
"className": {
|
|
176
205
|
"type": "string",
|
|
177
206
|
"mutable": false,
|
|
@@ -27,7 +27,7 @@ export class DBPopover {
|
|
|
27
27
|
const article = this._ref.querySelector("article");
|
|
28
28
|
if (article) {
|
|
29
29
|
// This is a workaround for angular
|
|
30
|
-
utilsDelay(() => {
|
|
30
|
+
void utilsDelay(() => {
|
|
31
31
|
var _a;
|
|
32
32
|
handleFixedPopover(article, this._ref, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
|
|
33
33
|
}, 1);
|
|
@@ -98,12 +98,16 @@ export class DBPopover {
|
|
|
98
98
|
const attributes = parent.attributes;
|
|
99
99
|
for (let i = 0; i < attributes.length; i++) {
|
|
100
100
|
const attr = attributes.item(i);
|
|
101
|
-
if (attr &&
|
|
101
|
+
if (attr && attr.name !== 'data-density' &&
|
|
102
102
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
103
103
|
element.setAttribute(attr.name, attr.value);
|
|
104
104
|
parent.removeAttribute(attr.name);
|
|
105
105
|
}
|
|
106
|
-
if (attr && attr.name
|
|
106
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
107
|
+
element.setAttribute(attr.name, attr.value);
|
|
108
|
+
parent.removeAttribute(attr.name);
|
|
109
|
+
}
|
|
110
|
+
else if (attr && attr.name === "class") {
|
|
107
111
|
const isWebComponent = attr.value.includes("hydrated");
|
|
108
112
|
const value = attr.value.replace("hydrated", "").trim();
|
|
109
113
|
const currentClass = element.getAttribute("class");
|
|
@@ -165,10 +169,10 @@ export class DBPopover {
|
|
|
165
169
|
this.watch1Fn();
|
|
166
170
|
}
|
|
167
171
|
render() {
|
|
168
|
-
var _a;
|
|
169
|
-
return (h("div", { key: '
|
|
172
|
+
var _a, _b, _c;
|
|
173
|
+
return (h("div", { key: 'aa9250091fc55d09bb5db9f6ca82af793999160c', class: cls("db-popover", this.className), ref: (el) => {
|
|
170
174
|
this._ref = el;
|
|
171
|
-
}, id: this.id }, h("slot", { key: '
|
|
175
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'aab79e27b5ce47cb859342d448c4efc0933fc523', name: "trigger" }), h("article", { key: '4f8ba04305cf074b94d50c0c5121c89bd4251434', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '3ce3cca432122ee2b52d7df9cd0016d4c6b81da1' }))));
|
|
172
176
|
}
|
|
173
177
|
static get is() { return "db-popover"; }
|
|
174
178
|
static get properties() {
|
|
@@ -225,6 +229,30 @@ export class DBPopover {
|
|
|
225
229
|
"reflect": false,
|
|
226
230
|
"attribute": "id"
|
|
227
231
|
},
|
|
232
|
+
"propOverrides": {
|
|
233
|
+
"type": "unknown",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "DBPopoverProps[\"propOverrides\"]",
|
|
237
|
+
"resolved": "{ id?: string; }",
|
|
238
|
+
"references": {
|
|
239
|
+
"DBPopoverProps": {
|
|
240
|
+
"location": "import",
|
|
241
|
+
"path": "./model",
|
|
242
|
+
"id": "src/components/popover/model.ts::DBPopoverProps",
|
|
243
|
+
"referenceLocation": "DBPopoverProps"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": false,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [],
|
|
251
|
+
"text": ""
|
|
252
|
+
},
|
|
253
|
+
"getter": false,
|
|
254
|
+
"setter": false
|
|
255
|
+
},
|
|
228
256
|
"className": {
|
|
229
257
|
"type": "string",
|
|
230
258
|
"mutable": false,
|