@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
|
@@ -81,6 +81,14 @@ export class DBSwitch {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
resetIds() {
|
|
85
|
+
var _a, _b, _c;
|
|
86
|
+
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 : `switch-${uuid()}`;
|
|
87
|
+
this._id = mId;
|
|
88
|
+
this._messageId = `${mId}${DEFAULT_MESSAGE_ID_SUFFIX}`;
|
|
89
|
+
this._validMessageId = `${mId}${DEFAULT_VALID_MESSAGE_ID_SUFFIX}`;
|
|
90
|
+
this._invalidMessageId = `${mId}${DEFAULT_INVALID_MESSAGE_ID_SUFFIX}`;
|
|
91
|
+
}
|
|
84
92
|
/**
|
|
85
93
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
86
94
|
* @param element the ref for the component
|
|
@@ -92,12 +100,16 @@ export class DBSwitch {
|
|
|
92
100
|
const attributes = parent.attributes;
|
|
93
101
|
for (let i = 0; i < attributes.length; i++) {
|
|
94
102
|
const attr = attributes.item(i);
|
|
95
|
-
if (attr &&
|
|
103
|
+
if (attr && attr.name !== 'data-density' &&
|
|
96
104
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
97
105
|
element.setAttribute(attr.name, attr.value);
|
|
98
106
|
parent.removeAttribute(attr.name);
|
|
99
107
|
}
|
|
100
|
-
if (attr && attr.name
|
|
108
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
109
|
+
element.setAttribute(attr.name, attr.value);
|
|
110
|
+
parent.removeAttribute(attr.name);
|
|
111
|
+
}
|
|
112
|
+
else if (attr && attr.name === "class") {
|
|
101
113
|
const isWebComponent = attr.value.includes("hydrated");
|
|
102
114
|
const value = attr.value.replace("hydrated", "").trim();
|
|
103
115
|
const currentClass = element.getAttribute("class");
|
|
@@ -114,12 +126,31 @@ export class DBSwitch {
|
|
|
114
126
|
}
|
|
115
127
|
}
|
|
116
128
|
watch0Fn() {
|
|
117
|
-
|
|
129
|
+
var _a, _b;
|
|
130
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
131
|
+
this.resetIds();
|
|
132
|
+
}
|
|
118
133
|
}
|
|
119
134
|
watch0() {
|
|
120
135
|
this.watch0Fn();
|
|
121
136
|
}
|
|
122
137
|
watch1Fn() {
|
|
138
|
+
this.handleValidation();
|
|
139
|
+
}
|
|
140
|
+
watch1() {
|
|
141
|
+
this.watch1Fn();
|
|
142
|
+
}
|
|
143
|
+
watch2Fn() {
|
|
144
|
+
var _a;
|
|
145
|
+
this._invalidMessage =
|
|
146
|
+
this.invalidMessage ||
|
|
147
|
+
((_a = this._ref) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
148
|
+
DEFAULT_INVALID_MESSAGE;
|
|
149
|
+
}
|
|
150
|
+
watch2() {
|
|
151
|
+
this.watch2Fn();
|
|
152
|
+
}
|
|
153
|
+
watch3Fn() {
|
|
123
154
|
if (this._ref) {
|
|
124
155
|
const defaultChecked = undefined;
|
|
125
156
|
let controller = this.abortController;
|
|
@@ -135,33 +166,58 @@ export class DBSwitch {
|
|
|
135
166
|
}, controller.signal);
|
|
136
167
|
}
|
|
137
168
|
}
|
|
138
|
-
|
|
139
|
-
this.
|
|
169
|
+
watch3() {
|
|
170
|
+
this.watch3Fn();
|
|
140
171
|
}
|
|
141
172
|
componentDidLoad() {
|
|
142
|
-
var _a;
|
|
143
173
|
this.enableAttributePassing(this._ref, "db-switch");
|
|
144
|
-
this.
|
|
145
|
-
this._messageId = `${this._id}${DEFAULT_MESSAGE_ID_SUFFIX}`;
|
|
146
|
-
this._validMessageId = `${this._id}${DEFAULT_VALID_MESSAGE_ID_SUFFIX}`;
|
|
147
|
-
this._invalidMessageId = `${this._id}${DEFAULT_INVALID_MESSAGE_ID_SUFFIX}`;
|
|
174
|
+
this.resetIds();
|
|
148
175
|
this.handleValidation();
|
|
176
|
+
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
149
177
|
this.watch0Fn();
|
|
150
178
|
this.watch1Fn();
|
|
179
|
+
this.watch2Fn();
|
|
180
|
+
this.watch3Fn();
|
|
151
181
|
}
|
|
152
182
|
disconnectedCallback() {
|
|
153
183
|
var _a;
|
|
154
184
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
155
185
|
}
|
|
156
186
|
render() {
|
|
157
|
-
var _a, _b
|
|
158
|
-
return (h("div", { key: '
|
|
187
|
+
var _a, _b;
|
|
188
|
+
return (h("div", { key: '5d55932625984fa62f0ee9d86f3d89f5b63f9072', class: cls("db-switch", this.className), "data-visual-aid": getBooleanAsString(this.visualAid), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, h("label", { key: '711ab3c882dbd490e19400ecf5d926f5bf80e95e', htmlFor: this._id }, h("input", { key: 'aa50031870b7ee76e1f1e6f9bd5dd14b9013de18', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
|
|
159
189
|
this._ref = el;
|
|
160
|
-
}, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : h("slot", null)), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '
|
|
190
|
+
}, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : h("slot", null)), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '95f846f3de48f29bef0406c3c19d0314a2a0cfc6', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '297a64a0c5b5faf97a3f685ab78eea7145fe700e', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
161
191
|
}
|
|
162
192
|
static get is() { return "db-switch"; }
|
|
163
193
|
static get properties() {
|
|
164
194
|
return {
|
|
195
|
+
"invalidMessage": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"mutable": false,
|
|
198
|
+
"complexType": {
|
|
199
|
+
"original": "DBSwitchProps[\"invalidMessage\"]",
|
|
200
|
+
"resolved": "string",
|
|
201
|
+
"references": {
|
|
202
|
+
"DBSwitchProps": {
|
|
203
|
+
"location": "import",
|
|
204
|
+
"path": "./model",
|
|
205
|
+
"id": "src/components/switch/model.ts::DBSwitchProps",
|
|
206
|
+
"referenceLocation": "DBSwitchProps"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": ""
|
|
215
|
+
},
|
|
216
|
+
"getter": false,
|
|
217
|
+
"setter": false,
|
|
218
|
+
"reflect": false,
|
|
219
|
+
"attribute": "invalid-message"
|
|
220
|
+
},
|
|
165
221
|
"id": {
|
|
166
222
|
"type": "string",
|
|
167
223
|
"mutable": false,
|
|
@@ -188,6 +244,30 @@ export class DBSwitch {
|
|
|
188
244
|
"reflect": false,
|
|
189
245
|
"attribute": "id"
|
|
190
246
|
},
|
|
247
|
+
"propOverrides": {
|
|
248
|
+
"type": "unknown",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "DBSwitchProps[\"propOverrides\"]",
|
|
252
|
+
"resolved": "{ id?: string; }",
|
|
253
|
+
"references": {
|
|
254
|
+
"DBSwitchProps": {
|
|
255
|
+
"location": "import",
|
|
256
|
+
"path": "./model",
|
|
257
|
+
"id": "src/components/switch/model.ts::DBSwitchProps",
|
|
258
|
+
"referenceLocation": "DBSwitchProps"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"required": false,
|
|
263
|
+
"optional": false,
|
|
264
|
+
"docs": {
|
|
265
|
+
"tags": [],
|
|
266
|
+
"text": ""
|
|
267
|
+
},
|
|
268
|
+
"getter": false,
|
|
269
|
+
"setter": false
|
|
270
|
+
},
|
|
191
271
|
"validation": {
|
|
192
272
|
"type": "string",
|
|
193
273
|
"mutable": false,
|
|
@@ -318,32 +398,6 @@ export class DBSwitch {
|
|
|
318
398
|
"reflect": false,
|
|
319
399
|
"attribute": "valid-message"
|
|
320
400
|
},
|
|
321
|
-
"invalidMessage": {
|
|
322
|
-
"type": "string",
|
|
323
|
-
"mutable": false,
|
|
324
|
-
"complexType": {
|
|
325
|
-
"original": "DBSwitchProps[\"invalidMessage\"]",
|
|
326
|
-
"resolved": "string",
|
|
327
|
-
"references": {
|
|
328
|
-
"DBSwitchProps": {
|
|
329
|
-
"location": "import",
|
|
330
|
-
"path": "./model",
|
|
331
|
-
"id": "src/components/switch/model.ts::DBSwitchProps",
|
|
332
|
-
"referenceLocation": "DBSwitchProps"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
"required": false,
|
|
337
|
-
"optional": false,
|
|
338
|
-
"docs": {
|
|
339
|
-
"tags": [],
|
|
340
|
-
"text": ""
|
|
341
|
-
},
|
|
342
|
-
"getter": false,
|
|
343
|
-
"setter": false,
|
|
344
|
-
"reflect": false,
|
|
345
|
-
"attribute": "invalid-message"
|
|
346
|
-
},
|
|
347
401
|
"checked": {
|
|
348
402
|
"type": "any",
|
|
349
403
|
"mutable": false,
|
|
@@ -475,11 +529,11 @@ export class DBSwitch {
|
|
|
475
529
|
"attribute": "show-label"
|
|
476
530
|
},
|
|
477
531
|
"variant": {
|
|
478
|
-
"type": "
|
|
532
|
+
"type": "string",
|
|
479
533
|
"mutable": false,
|
|
480
534
|
"complexType": {
|
|
481
535
|
"original": "DBSwitchProps[\"variant\"]",
|
|
482
|
-
"resolved": "
|
|
536
|
+
"resolved": "\"leading\" | \"trailing\"",
|
|
483
537
|
"references": {
|
|
484
538
|
"DBSwitchProps": {
|
|
485
539
|
"location": "import",
|
|
@@ -496,7 +550,9 @@ export class DBSwitch {
|
|
|
496
550
|
"text": ""
|
|
497
551
|
},
|
|
498
552
|
"getter": false,
|
|
499
|
-
"setter": false
|
|
553
|
+
"setter": false,
|
|
554
|
+
"reflect": false,
|
|
555
|
+
"attribute": "variant"
|
|
500
556
|
},
|
|
501
557
|
"showRequiredAsterisk": {
|
|
502
558
|
"type": "any",
|
|
@@ -796,29 +852,41 @@ export class DBSwitch {
|
|
|
796
852
|
}
|
|
797
853
|
static get watchers() {
|
|
798
854
|
return [{
|
|
799
|
-
"propName": "
|
|
855
|
+
"propName": "id",
|
|
800
856
|
"methodName": "watch0"
|
|
801
857
|
}, {
|
|
802
|
-
"propName": "
|
|
858
|
+
"propName": "propOverrides?.id",
|
|
803
859
|
"methodName": "watch0"
|
|
860
|
+
}, {
|
|
861
|
+
"propName": "validation",
|
|
862
|
+
"methodName": "watch1"
|
|
863
|
+
}, {
|
|
864
|
+
"propName": "required",
|
|
865
|
+
"methodName": "watch1"
|
|
804
866
|
}, {
|
|
805
867
|
"propName": "message",
|
|
806
|
-
"methodName": "
|
|
868
|
+
"methodName": "watch1"
|
|
807
869
|
}, {
|
|
808
870
|
"propName": "showMessage",
|
|
809
|
-
"methodName": "
|
|
871
|
+
"methodName": "watch1"
|
|
810
872
|
}, {
|
|
811
873
|
"propName": "validMessage",
|
|
812
|
-
"methodName": "
|
|
874
|
+
"methodName": "watch1"
|
|
813
875
|
}, {
|
|
814
876
|
"propName": "invalidMessage",
|
|
815
|
-
"methodName": "
|
|
877
|
+
"methodName": "watch1"
|
|
816
878
|
}, {
|
|
817
879
|
"propName": "checked",
|
|
818
|
-
"methodName": "
|
|
880
|
+
"methodName": "watch1"
|
|
819
881
|
}, {
|
|
820
882
|
"propName": "_ref",
|
|
821
|
-
"methodName": "
|
|
883
|
+
"methodName": "watch2"
|
|
884
|
+
}, {
|
|
885
|
+
"propName": "invalidMessage",
|
|
886
|
+
"methodName": "watch2"
|
|
887
|
+
}, {
|
|
888
|
+
"propName": "_ref",
|
|
889
|
+
"methodName": "watch3"
|
|
822
890
|
}];
|
|
823
891
|
}
|
|
824
892
|
}
|
|
@@ -43,12 +43,16 @@ export class DBTabItem {
|
|
|
43
43
|
const attributes = parent.attributes;
|
|
44
44
|
for (let i = 0; i < attributes.length; i++) {
|
|
45
45
|
const attr = attributes.item(i);
|
|
46
|
-
if (attr &&
|
|
46
|
+
if (attr && attr.name !== 'data-density' &&
|
|
47
47
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
48
48
|
element.setAttribute(attr.name, attr.value);
|
|
49
49
|
parent.removeAttribute(attr.name);
|
|
50
50
|
}
|
|
51
|
-
if (attr && attr.name
|
|
51
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
52
|
+
element.setAttribute(attr.name, attr.value);
|
|
53
|
+
parent.removeAttribute(attr.name);
|
|
54
|
+
}
|
|
55
|
+
else if (attr && attr.name === "class") {
|
|
52
56
|
const isWebComponent = attr.value.includes("hydrated");
|
|
53
57
|
const value = attr.value.replace("hydrated", "").trim();
|
|
54
58
|
const currentClass = element.getAttribute("class");
|
|
@@ -108,10 +112,10 @@ export class DBTabItem {
|
|
|
108
112
|
}
|
|
109
113
|
}
|
|
110
114
|
render() {
|
|
111
|
-
var _a, _b;
|
|
112
|
-
return (h("li", { key: '
|
|
115
|
+
var _a, _b, _c, _d, _e, _f;
|
|
116
|
+
return (h("li", { key: 'aa5a73d9a5f1482623ebdb8a79846b478ecf9fd1', class: cls("db-tab-item", this.className), role: "none" }, h("label", { key: 'b6148c23f64ffd2d9153db7e8e3d39a90f009da3', htmlFor: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing), "data-no-text": getBooleanAsString(this.noText) }, h("input", { key: 'c7d167364eaa4f9cee156d9260553b14d60ffb13', type: "radio", role: "tab", disabled: getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: getBoolean(this.checked, "checked"), ref: (el) => {
|
|
113
117
|
this._ref = el;
|
|
114
|
-
}, name: this._name, id: this.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: '
|
|
118
|
+
}, name: this._name, id: (_e = this.id) !== null && _e !== void 0 ? _e : (_f = this.propOverrides) === null || _f === void 0 ? void 0 : _f.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: 'aab78a92118a8ea9b7ffcb446ead8211294a6e6c' }))));
|
|
115
119
|
}
|
|
116
120
|
static get is() { return "db-tab-item"; }
|
|
117
121
|
static get properties() {
|
|
@@ -220,6 +224,30 @@ export class DBTabItem {
|
|
|
220
224
|
"reflect": false,
|
|
221
225
|
"attribute": "id"
|
|
222
226
|
},
|
|
227
|
+
"propOverrides": {
|
|
228
|
+
"type": "unknown",
|
|
229
|
+
"mutable": false,
|
|
230
|
+
"complexType": {
|
|
231
|
+
"original": "DBTabItemProps[\"propOverrides\"]",
|
|
232
|
+
"resolved": "{ id?: string; }",
|
|
233
|
+
"references": {
|
|
234
|
+
"DBTabItemProps": {
|
|
235
|
+
"location": "import",
|
|
236
|
+
"path": "./model",
|
|
237
|
+
"id": "src/components/tab-item/model.ts::DBTabItemProps",
|
|
238
|
+
"referenceLocation": "DBTabItemProps"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": false,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": ""
|
|
247
|
+
},
|
|
248
|
+
"getter": false,
|
|
249
|
+
"setter": false
|
|
250
|
+
},
|
|
223
251
|
"iconLeading": {
|
|
224
252
|
"type": "string",
|
|
225
253
|
"mutable": false,
|
|
@@ -16,12 +16,16 @@ export class DBTabList {
|
|
|
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 DBTabList {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-tab-list");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("div", { key: '9d2121250cb2a12971ea33774d8ff9e79117d18e', class: cls("db-tab-list", this.className), 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: 'db93a3777f11ee39e15633b0b5ae501b0526d73d', role: "tablist" }, h("slot", { key: '14d45a6c1693c5c2bdb2d422397e6ddeb93bf5b3' }))));
|
|
47
52
|
}
|
|
48
53
|
static get is() { return "db-tab-list"; }
|
|
49
54
|
static get properties() {
|
|
@@ -74,6 +79,30 @@ export class DBTabList {
|
|
|
74
79
|
"reflect": false,
|
|
75
80
|
"attribute": "id"
|
|
76
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBTabListProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBTabListProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/tab-list/model.ts::DBTabListProps",
|
|
93
|
+
"referenceLocation": "DBTabListProps"
|
|
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 DBTabPanel {
|
|
|
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 DBTabPanel {
|
|
|
41
45
|
this.enableAttributePassing(this._ref, "db-tab-panel");
|
|
42
46
|
}
|
|
43
47
|
render() {
|
|
44
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("section", { key: '3cae700e240af4818416120b8c85fc91839c7fa1', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
|
|
45
50
|
this._ref = el;
|
|
46
|
-
}, id: this.id }, this.content ? this.content : null, h("slot", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, h("slot", { key: '25595de165921a31119ffd785bd5c569c42fa557' })));
|
|
47
52
|
}
|
|
48
53
|
static get is() { return "db-tab-panel"; }
|
|
49
54
|
static get properties() {
|
|
@@ -100,6 +105,30 @@ export class DBTabPanel {
|
|
|
100
105
|
"reflect": false,
|
|
101
106
|
"attribute": "id"
|
|
102
107
|
},
|
|
108
|
+
"propOverrides": {
|
|
109
|
+
"type": "unknown",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "DBTabPanelProps[\"propOverrides\"]",
|
|
113
|
+
"resolved": "{ id?: string; }",
|
|
114
|
+
"references": {
|
|
115
|
+
"DBTabPanelProps": {
|
|
116
|
+
"location": "import",
|
|
117
|
+
"path": "./model",
|
|
118
|
+
"id": "src/components/tab-panel/model.ts::DBTabPanelProps",
|
|
119
|
+
"referenceLocation": "DBTabPanelProps"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": false,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": ""
|
|
128
|
+
},
|
|
129
|
+
"getter": false,
|
|
130
|
+
"setter": false
|
|
131
|
+
},
|
|
103
132
|
"content": {
|
|
104
133
|
"type": "string",
|
|
105
134
|
"mutable": false,
|
|
@@ -143,12 +143,16 @@ export class DBTabs {
|
|
|
143
143
|
const attributes = parent.attributes;
|
|
144
144
|
for (let i = 0; i < attributes.length; i++) {
|
|
145
145
|
const attr = attributes.item(i);
|
|
146
|
-
if (attr &&
|
|
146
|
+
if (attr && attr.name !== 'data-density' &&
|
|
147
147
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
148
148
|
element.setAttribute(attr.name, attr.value);
|
|
149
149
|
parent.removeAttribute(attr.name);
|
|
150
150
|
}
|
|
151
|
-
if (attr && attr.name
|
|
151
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
152
|
+
element.setAttribute(attr.name, attr.value);
|
|
153
|
+
parent.removeAttribute(attr.name);
|
|
154
|
+
}
|
|
155
|
+
else if (attr && attr.name === "class") {
|
|
152
156
|
const isWebComponent = attr.value.includes("hydrated");
|
|
153
157
|
const value = attr.value.replace("hydrated", "").trim();
|
|
154
158
|
const currentClass = element.getAttribute("class");
|
|
@@ -201,11 +205,11 @@ export class DBTabs {
|
|
|
201
205
|
this._resizeObserver = undefined;
|
|
202
206
|
}
|
|
203
207
|
render() {
|
|
204
|
-
var _a, _b, _c, _d;
|
|
205
|
-
return (h("div", { key: '
|
|
208
|
+
var _a, _b, _c, _d, _e, _f;
|
|
209
|
+
return (h("div", { key: '6d273b967668288248c3853be80261a877d3ae04', class: cls("db-tabs", this.className), ref: (el) => {
|
|
206
210
|
this._ref = el;
|
|
207
|
-
}, id: this.id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (
|
|
208
|
-
|
|
211
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (_c = this.alignment) !== null && _c !== void 0 ? _c : "start", "data-width": (_d = this.width) !== null && _d !== void 0 ? _d : "auto", onInput: (event) => this.handleChange(event), onChange: (event) => this.handleChange(event) }, this.showScrollLeft ? (h("db-button", { class: "tabs-scroll-left", variant: "ghost", icon: "chevron_left", type: "button", noText: true, onClick: () => this.scroll(true) }, "Scroll left")) : null, this.tabs ? (h(Fragment, null, h("db-tab-list", null, (_e = this.convertTabs()) === null || _e === void 0 ? void 0 : _e.map((tab, index) => (h("db-tab-item", { key: this.name + "tab-item" + index, active: tab.active, label: tab.label, iconTrailing: tab.iconTrailing, icon: tab.icon, noText: tab.noText })))), (_f = this.convertTabs()) === null || _f === void 0 ? void 0 :
|
|
212
|
+
_f.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: '04f5d96f32695ae2661ace77827ee783eb0f23d0' })));
|
|
209
213
|
}
|
|
210
214
|
static get is() { return "db-tabs"; }
|
|
211
215
|
static get properties() {
|
|
@@ -418,6 +422,30 @@ export class DBTabs {
|
|
|
418
422
|
"reflect": false,
|
|
419
423
|
"attribute": "id"
|
|
420
424
|
},
|
|
425
|
+
"propOverrides": {
|
|
426
|
+
"type": "unknown",
|
|
427
|
+
"mutable": false,
|
|
428
|
+
"complexType": {
|
|
429
|
+
"original": "DBTabsProps[\"propOverrides\"]",
|
|
430
|
+
"resolved": "{ id?: string; }",
|
|
431
|
+
"references": {
|
|
432
|
+
"DBTabsProps": {
|
|
433
|
+
"location": "import",
|
|
434
|
+
"path": "./model",
|
|
435
|
+
"id": "src/components/tabs/model.ts::DBTabsProps",
|
|
436
|
+
"referenceLocation": "DBTabsProps"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"required": false,
|
|
441
|
+
"optional": false,
|
|
442
|
+
"docs": {
|
|
443
|
+
"tags": [],
|
|
444
|
+
"text": ""
|
|
445
|
+
},
|
|
446
|
+
"getter": false,
|
|
447
|
+
"setter": false
|
|
448
|
+
},
|
|
421
449
|
"className": {
|
|
422
450
|
"type": "string",
|
|
423
451
|
"mutable": false,
|
|
@@ -32,12 +32,16 @@ export class DBTag {
|
|
|
32
32
|
const attributes = parent.attributes;
|
|
33
33
|
for (let i = 0; i < attributes.length; i++) {
|
|
34
34
|
const attr = attributes.item(i);
|
|
35
|
-
if (attr &&
|
|
35
|
+
if (attr && attr.name !== 'data-density' &&
|
|
36
36
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
37
37
|
element.setAttribute(attr.name, attr.value);
|
|
38
38
|
parent.removeAttribute(attr.name);
|
|
39
39
|
}
|
|
40
|
-
if (attr && attr.name
|
|
40
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
41
|
+
element.setAttribute(attr.name, attr.value);
|
|
42
|
+
parent.removeAttribute(attr.name);
|
|
43
|
+
}
|
|
44
|
+
else if (attr && attr.name === "class") {
|
|
41
45
|
const isWebComponent = attr.value.includes("hydrated");
|
|
42
46
|
const value = attr.value.replace("hydrated", "").trim();
|
|
43
47
|
const currentClass = element.getAttribute("class");
|
|
@@ -57,10 +61,10 @@ export class DBTag {
|
|
|
57
61
|
this.enableAttributePassing(this._ref, "db-tag");
|
|
58
62
|
}
|
|
59
63
|
render() {
|
|
60
|
-
var _a;
|
|
61
|
-
return (h("div", { key: '
|
|
64
|
+
var _a, _b, _c;
|
|
65
|
+
return (h("div", { key: 'd84df9f55535db4fbe9befd09fd2eef8125069c4', class: cls("db-tag", this.className), ref: (el) => {
|
|
62
66
|
this._ref = el;
|
|
63
|
-
}, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((
|
|
67
|
+
}, 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": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '9f4d27ce3f4d4d2e1d193167148168a2cb8784dd', name: "content" }), h("slot", { key: '9feecc10d65e9f807709e5d90b90f69be72b8efb' }), this.text ? this.text : null, this.behavior === "removable" ? (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) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
|
|
64
68
|
}
|
|
65
69
|
static get is() { return "db-tag"; }
|
|
66
70
|
static get properties() {
|
|
@@ -117,6 +121,30 @@ export class DBTag {
|
|
|
117
121
|
"reflect": false,
|
|
118
122
|
"attribute": "id"
|
|
119
123
|
},
|
|
124
|
+
"propOverrides": {
|
|
125
|
+
"type": "unknown",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "DBTagProps[\"propOverrides\"]",
|
|
129
|
+
"resolved": "{ id?: string; }",
|
|
130
|
+
"references": {
|
|
131
|
+
"DBTagProps": {
|
|
132
|
+
"location": "import",
|
|
133
|
+
"path": "./model",
|
|
134
|
+
"id": "src/components/tag/model.ts::DBTagProps",
|
|
135
|
+
"referenceLocation": "DBTagProps"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": false,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": ""
|
|
144
|
+
},
|
|
145
|
+
"getter": false,
|
|
146
|
+
"setter": false
|
|
147
|
+
},
|
|
120
148
|
"className": {
|
|
121
149
|
"type": "string",
|
|
122
150
|
"mutable": false,
|