@db-ux/wc-core-components 4.4.1 → 4.4.2
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 +8 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +3 -6
- package/dist/cjs/db-accordion.cjs.entry.js +4 -12
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +3 -6
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +1 -1
- package/dist/cjs/db-header.cjs.entry.js +1 -1
- package/dist/cjs/db-icon.cjs.entry.js +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +3 -4
- package/dist/cjs/db-navigation.cjs.entry.js +3 -6
- package/dist/cjs/db-notification.cjs.entry.js +1 -1
- package/dist/cjs/db-page.cjs.entry.js +1 -1
- package/dist/cjs/db-popover.cjs.entry.js +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +1 -1
- package/dist/cjs/db-section.cjs.entry.js +1 -1
- package/dist/cjs/db-select.cjs.entry.js +1 -1
- package/dist/cjs/db-stack.cjs.entry.js +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +3 -6
- package/dist/cjs/db-tabs.cjs.entry.js +4 -6
- package/dist/cjs/db-textarea.cjs.entry.js +1 -1
- package/dist/cjs/db-tooltip.cjs.entry.js +22 -7
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/{index-Bi4QN5oK.js → index-CEqZnn9s.js} +85 -58
- package/dist/cjs/index.cjs.js +19 -19
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.js +26 -35
- package/dist/collection/components/accordion-item/accordion-item.js +16 -20
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +26 -30
- package/dist/collection/components/navigation/navigation.js +3 -13
- package/dist/collection/components/navigation-item/navigation-item.js +3 -5
- package/dist/collection/components/tab-list/tab-list.js +3 -13
- package/dist/collection/components/tabs/tabs.js +29 -32
- package/dist/collection/components/tooltip/tooltip.js +21 -6
- package/dist/custom-elements.json +120 -145
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-1ae2420e.entry.js → p-07bf3657.entry.js} +1 -1
- package/dist/db-ux/{p-5e8b2167.entry.js → p-0a89cbcd.entry.js} +1 -1
- package/dist/db-ux/{p-77840cb4.entry.js → p-15539d9d.entry.js} +1 -1
- package/dist/db-ux/p-41cb4673.entry.js +1 -0
- package/dist/db-ux/{p-19c9285e.entry.js → p-460073dd.entry.js} +1 -1
- package/dist/db-ux/{p-93506fdb.entry.js → p-4a9b9909.entry.js} +1 -1
- package/dist/db-ux/{p-ced0df76.entry.js → p-4ec09cf1.entry.js} +1 -1
- package/dist/db-ux/{p-09f188aa.entry.js → p-57205dfd.entry.js} +1 -1
- package/dist/db-ux/p-5775bf7a.entry.js +1 -0
- package/dist/db-ux/{p-d2fd9838.entry.js → p-5bcde39a.entry.js} +1 -1
- package/dist/db-ux/p-6341aaa9.entry.js +1 -0
- package/dist/db-ux/p-64573104.entry.js +1 -0
- package/dist/db-ux/{p-349276ca.entry.js → p-6b63156d.entry.js} +1 -1
- package/dist/db-ux/{p-ba4084e8.entry.js → p-70822a27.entry.js} +1 -1
- package/dist/db-ux/p-710a430d.entry.js +1 -0
- package/dist/db-ux/{p-5549d866.entry.js → p-72d712b0.entry.js} +1 -1
- package/dist/db-ux/{p-cede20c2.entry.js → p-7b7f4d03.entry.js} +1 -1
- package/dist/db-ux/p-7bd4c573.entry.js +1 -0
- package/dist/db-ux/{p-ec270b7d.entry.js → p-819cf20a.entry.js} +1 -1
- package/dist/db-ux/p-87fdbcfb.entry.js +1 -0
- package/dist/db-ux/{p-90380da4.entry.js → p-9051e26c.entry.js} +1 -1
- package/dist/db-ux/{p-e50ff484.entry.js → p-934a708c.entry.js} +1 -1
- package/dist/db-ux/{p-d1974cb0.entry.js → p-9ffa5c48.entry.js} +1 -1
- package/dist/db-ux/p-BrThqi62.js +2 -0
- package/dist/db-ux/p-a9af70eb.entry.js +1 -0
- package/dist/db-ux/p-aa8383a3.entry.js +1 -0
- package/dist/db-ux/p-ba1f69bd.entry.js +1 -0
- package/dist/db-ux/p-d273b998.entry.js +1 -0
- package/dist/db-ux/p-da4ee6ee.entry.js +1 -0
- package/dist/db-ux/{p-32fcf516.entry.js → p-e584e927.entry.js} +1 -1
- package/dist/db-ux/{p-6811aace.entry.js → p-fe185f98.entry.js} +1 -1
- package/dist/esm/db-accordion-item.entry.js +4 -7
- package/dist/esm/db-accordion.entry.js +4 -12
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +1 -1
- package/dist/esm/db-card.entry.js +1 -1
- package/dist/esm/db-checkbox.entry.js +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +4 -7
- package/dist/esm/db-custom-select-form-field.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +1 -1
- package/dist/esm/db-divider.entry.js +1 -1
- package/dist/esm/db-drawer.entry.js +1 -1
- package/dist/esm/db-header.entry.js +1 -1
- package/dist/esm/db-icon.entry.js +1 -1
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +1 -1
- package/dist/esm/db-navigation-item.entry.js +4 -5
- package/dist/esm/db-navigation.entry.js +4 -7
- package/dist/esm/db-notification.entry.js +1 -1
- package/dist/esm/db-page.entry.js +1 -1
- package/dist/esm/db-popover.entry.js +1 -1
- package/dist/esm/db-radio.entry.js +1 -1
- package/dist/esm/db-section.entry.js +1 -1
- package/dist/esm/db-select.entry.js +1 -1
- package/dist/esm/db-stack.entry.js +1 -1
- package/dist/esm/db-switch.entry.js +1 -1
- package/dist/esm/db-tab-item_3.entry.js +4 -7
- package/dist/esm/db-tabs.entry.js +4 -6
- package/dist/esm/db-textarea.entry.js +1 -1
- package/dist/esm/db-tooltip.entry.js +22 -7
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/{index-05XnVETo.js → index-BrThqi62.js} +85 -58
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/accordion/accordion.d.ts +1 -2
- package/dist/types/components/accordion/model.d.ts +2 -2
- package/dist/types/components/accordion-item/accordion-item.d.ts +1 -2
- package/dist/types/components/accordion-item/model.d.ts +2 -2
- package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -2
- package/dist/types/components/custom-select-list-item/model.d.ts +2 -2
- package/dist/types/components/navigation/model.d.ts +2 -2
- package/dist/types/components/navigation/navigation.d.ts +0 -1
- package/dist/types/components/navigation-item/model.d.ts +0 -1
- package/dist/types/components/navigation-item/navigation-item.d.ts +0 -1
- package/dist/types/components/tab-list/model.d.ts +2 -2
- package/dist/types/components/tab-list/tab-list.d.ts +0 -1
- package/dist/types/components/tabs/model.d.ts +2 -2
- package/dist/types/components/tabs/tabs.d.ts +1 -2
- package/dist/types/components/tooltip/tooltip.d.ts +2 -0
- package/dist/types/components.d.ts +4 -4
- package/dist/types/stencil-public-runtime.d.ts +0 -4
- package/dist/vscode.html-custom-data.json +20 -20
- package/dist/web-types.json +43 -50
- package/package.json +4 -4
- package/dist/db-ux/p-05XnVETo.js +0 -2
- package/dist/db-ux/p-08146a65.entry.js +0 -1
- package/dist/db-ux/p-146365b4.entry.js +0 -1
- package/dist/db-ux/p-1975c375.entry.js +0 -1
- package/dist/db-ux/p-1e76ee94.entry.js +0 -1
- package/dist/db-ux/p-2c0bd1d8.entry.js +0 -1
- package/dist/db-ux/p-47b821f7.entry.js +0 -1
- package/dist/db-ux/p-53aed67f.entry.js +0 -1
- package/dist/db-ux/p-5e8d052f.entry.js +0 -1
- package/dist/db-ux/p-8a0ca84b.entry.js +0 -1
- package/dist/db-ux/p-8d37aa19.entry.js +0 -1
- package/dist/db-ux/p-981d05c0.entry.js +0 -1
- package/dist/db-ux/p-d65ecc59.entry.js +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DEFAULT_ID } from "../../shared/constants";
|
|
2
1
|
import { cls, uuid } from "../../utils";
|
|
3
2
|
import { h } from "@stencil/core";
|
|
4
3
|
/**
|
|
@@ -7,7 +6,6 @@ import { h } from "@stencil/core";
|
|
|
7
6
|
*/
|
|
8
7
|
export class DBAccordion {
|
|
9
8
|
constructor() {
|
|
10
|
-
this._id = DEFAULT_ID;
|
|
11
9
|
this._name = "";
|
|
12
10
|
this.initialized = false;
|
|
13
11
|
this._initOpenIndexDone = false;
|
|
@@ -67,9 +65,7 @@ export class DBAccordion {
|
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
else {
|
|
70
|
-
|
|
71
|
-
this._name = this._id;
|
|
72
|
-
}
|
|
68
|
+
this._name = `accordion-${uuid()}`;
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
71
|
else {
|
|
@@ -122,7 +118,6 @@ export class DBAccordion {
|
|
|
122
118
|
}
|
|
123
119
|
componentDidLoad() {
|
|
124
120
|
this.enableAttributePassing(this._ref, "db-accordion");
|
|
125
|
-
this._id = this.id || "accordion-" + uuid();
|
|
126
121
|
this.initialized = true;
|
|
127
122
|
this._initOpenIndexDone = true;
|
|
128
123
|
this.watch0Fn();
|
|
@@ -131,20 +126,20 @@ export class DBAccordion {
|
|
|
131
126
|
}
|
|
132
127
|
render() {
|
|
133
128
|
var _a;
|
|
134
|
-
return (h("ul", { key: '
|
|
129
|
+
return (h("ul", { key: '8b685b2a23ec00359a75ae143121c023d86a5eb5', class: cls("db-accordion", this.className), ref: (el) => {
|
|
135
130
|
this._ref = el;
|
|
136
|
-
}, id: this.
|
|
131
|
+
}, id: this.id, "data-variant": this.variant }, !this.items ? h("slot", null) : null, this.items
|
|
137
132
|
? (_a = this.convertItems()) === null || _a === void 0 ? void 0 : _a.map((item, index) => (h("db-accordion-item", { key: `accordion-item-${index}`, headlinePlain: item.headlinePlain, disabled: item.disabled, text: item.text })))
|
|
138
133
|
: null));
|
|
139
134
|
}
|
|
140
135
|
static get is() { return "db-accordion"; }
|
|
141
136
|
static get properties() {
|
|
142
137
|
return {
|
|
143
|
-
"
|
|
138
|
+
"name": {
|
|
144
139
|
"type": "string",
|
|
145
140
|
"mutable": false,
|
|
146
141
|
"complexType": {
|
|
147
|
-
"original": "DBAccordionProps[\"
|
|
142
|
+
"original": "DBAccordionProps[\"name\"]",
|
|
148
143
|
"resolved": "string",
|
|
149
144
|
"references": {
|
|
150
145
|
"DBAccordionProps": {
|
|
@@ -164,14 +159,14 @@ export class DBAccordion {
|
|
|
164
159
|
"getter": false,
|
|
165
160
|
"setter": false,
|
|
166
161
|
"reflect": false,
|
|
167
|
-
"attribute": "
|
|
162
|
+
"attribute": "name"
|
|
168
163
|
},
|
|
169
|
-
"
|
|
164
|
+
"behavior": {
|
|
170
165
|
"type": "string",
|
|
171
166
|
"mutable": false,
|
|
172
167
|
"complexType": {
|
|
173
|
-
"original": "DBAccordionProps[\"
|
|
174
|
-
"resolved": "
|
|
168
|
+
"original": "DBAccordionProps[\"behavior\"]",
|
|
169
|
+
"resolved": "\"multiple\" | \"single\"",
|
|
175
170
|
"references": {
|
|
176
171
|
"DBAccordionProps": {
|
|
177
172
|
"location": "import",
|
|
@@ -190,14 +185,14 @@ export class DBAccordion {
|
|
|
190
185
|
"getter": false,
|
|
191
186
|
"setter": false,
|
|
192
187
|
"reflect": false,
|
|
193
|
-
"attribute": "
|
|
188
|
+
"attribute": "behavior"
|
|
194
189
|
},
|
|
195
|
-
"
|
|
196
|
-
"type": "
|
|
190
|
+
"initOpenIndex": {
|
|
191
|
+
"type": "unknown",
|
|
197
192
|
"mutable": false,
|
|
198
193
|
"complexType": {
|
|
199
|
-
"original": "DBAccordionProps[\"
|
|
200
|
-
"resolved": "
|
|
194
|
+
"original": "DBAccordionProps[\"initOpenIndex\"]",
|
|
195
|
+
"resolved": "number[]",
|
|
201
196
|
"references": {
|
|
202
197
|
"DBAccordionProps": {
|
|
203
198
|
"location": "import",
|
|
@@ -214,16 +209,14 @@ export class DBAccordion {
|
|
|
214
209
|
"text": ""
|
|
215
210
|
},
|
|
216
211
|
"getter": false,
|
|
217
|
-
"setter": false
|
|
218
|
-
"reflect": false,
|
|
219
|
-
"attribute": "behavior"
|
|
212
|
+
"setter": false
|
|
220
213
|
},
|
|
221
|
-
"
|
|
222
|
-
"type": "
|
|
214
|
+
"items": {
|
|
215
|
+
"type": "string",
|
|
223
216
|
"mutable": false,
|
|
224
217
|
"complexType": {
|
|
225
|
-
"original": "DBAccordionProps[\"
|
|
226
|
-
"resolved": "
|
|
218
|
+
"original": "DBAccordionProps[\"items\"]",
|
|
219
|
+
"resolved": "DBAccordionItemDefaultProps[] | string",
|
|
227
220
|
"references": {
|
|
228
221
|
"DBAccordionProps": {
|
|
229
222
|
"location": "import",
|
|
@@ -240,14 +233,16 @@ export class DBAccordion {
|
|
|
240
233
|
"text": ""
|
|
241
234
|
},
|
|
242
235
|
"getter": false,
|
|
243
|
-
"setter": false
|
|
236
|
+
"setter": false,
|
|
237
|
+
"reflect": false,
|
|
238
|
+
"attribute": "items"
|
|
244
239
|
},
|
|
245
|
-
"
|
|
240
|
+
"id": {
|
|
246
241
|
"type": "string",
|
|
247
242
|
"mutable": false,
|
|
248
243
|
"complexType": {
|
|
249
|
-
"original": "DBAccordionProps[\"
|
|
250
|
-
"resolved": "
|
|
244
|
+
"original": "DBAccordionProps[\"id\"]",
|
|
245
|
+
"resolved": "string",
|
|
251
246
|
"references": {
|
|
252
247
|
"DBAccordionProps": {
|
|
253
248
|
"location": "import",
|
|
@@ -266,7 +261,7 @@ export class DBAccordion {
|
|
|
266
261
|
"getter": false,
|
|
267
262
|
"setter": false,
|
|
268
263
|
"reflect": false,
|
|
269
|
-
"attribute": "
|
|
264
|
+
"attribute": "id"
|
|
270
265
|
},
|
|
271
266
|
"className": {
|
|
272
267
|
"type": "string",
|
|
@@ -324,7 +319,6 @@ export class DBAccordion {
|
|
|
324
319
|
}
|
|
325
320
|
static get states() {
|
|
326
321
|
return {
|
|
327
|
-
"_id": {},
|
|
328
322
|
"_name": {},
|
|
329
323
|
"initialized": {},
|
|
330
324
|
"_initOpenIndexDone": {}
|
|
@@ -340,9 +334,6 @@ export class DBAccordion {
|
|
|
340
334
|
}, {
|
|
341
335
|
"propName": "behavior",
|
|
342
336
|
"methodName": "watch0"
|
|
343
|
-
}, {
|
|
344
|
-
"propName": "_id",
|
|
345
|
-
"methodName": "watch0"
|
|
346
337
|
}, {
|
|
347
338
|
"propName": "_ref",
|
|
348
339
|
"methodName": "watch1"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cls, getBooleanAsString, uuid } from "../../utils";
|
|
1
|
+
import { cls, getBooleanAsString } from "../../utils";
|
|
3
2
|
import { h, } from "@stencil/core";
|
|
4
3
|
/**
|
|
5
4
|
* @slot children - This is a default/unnamed slot
|
|
@@ -7,7 +6,6 @@ import { h, } from "@stencil/core";
|
|
|
7
6
|
*/
|
|
8
7
|
export class DBAccordionItem {
|
|
9
8
|
constructor() {
|
|
10
|
-
this._id = DEFAULT_ID;
|
|
11
9
|
this._open = false;
|
|
12
10
|
this._name = undefined;
|
|
13
11
|
this.initialized = false;
|
|
@@ -81,7 +79,6 @@ export class DBAccordionItem {
|
|
|
81
79
|
}
|
|
82
80
|
componentDidLoad() {
|
|
83
81
|
this.enableAttributePassing(this._ref, "db-accordion-item");
|
|
84
|
-
this._id = this.id || "accordion-item-" + uuid();
|
|
85
82
|
if (this.defaultOpen) {
|
|
86
83
|
this._open = this.defaultOpen;
|
|
87
84
|
}
|
|
@@ -90,19 +87,19 @@ export class DBAccordionItem {
|
|
|
90
87
|
this.watch1Fn();
|
|
91
88
|
}
|
|
92
89
|
render() {
|
|
93
|
-
return (h("li", { key: '
|
|
90
|
+
return (h("li", { key: 'c2a0b702c0e173c96208dca96194f3f36ce5e417', class: cls("db-accordion-item", this.className), id: this.id }, h("details", { key: '7d396568c8cc585f5f05c24857168afbc3d639f7', "aria-disabled": getBooleanAsString(this.disabled), ref: (el) => {
|
|
94
91
|
this._ref = el;
|
|
95
|
-
}, name: this._name, open: this._open }, h("summary", { key: '
|
|
92
|
+
}, name: this._name, open: this._open }, h("summary", { key: 'b4ef438974813de3761dc6f3a59add84bfe63b4c', onClick: (event) => this.handleToggle(event) }, this.headlinePlain ? this.headlinePlain : null, !this.headlinePlain ? h("slot", { name: "headline" }) : null), h("div", { key: '9087f0e04a68ec016e80b793f442ab02fd4316a9' }, this.text ? this.text : h("slot", null)))));
|
|
96
93
|
}
|
|
97
94
|
static get is() { return "db-accordion-item"; }
|
|
98
95
|
static get properties() {
|
|
99
96
|
return {
|
|
100
|
-
"
|
|
101
|
-
"type": "
|
|
97
|
+
"defaultOpen": {
|
|
98
|
+
"type": "boolean",
|
|
102
99
|
"mutable": false,
|
|
103
100
|
"complexType": {
|
|
104
|
-
"original": "DBAccordionItemProps[\"
|
|
105
|
-
"resolved": "
|
|
101
|
+
"original": "DBAccordionItemProps[\"defaultOpen\"]",
|
|
102
|
+
"resolved": "boolean",
|
|
106
103
|
"references": {
|
|
107
104
|
"DBAccordionItemProps": {
|
|
108
105
|
"location": "import",
|
|
@@ -121,14 +118,14 @@ export class DBAccordionItem {
|
|
|
121
118
|
"getter": false,
|
|
122
119
|
"setter": false,
|
|
123
120
|
"reflect": false,
|
|
124
|
-
"attribute": "
|
|
121
|
+
"attribute": "default-open"
|
|
125
122
|
},
|
|
126
|
-
"
|
|
127
|
-
"type": "
|
|
123
|
+
"name": {
|
|
124
|
+
"type": "string",
|
|
128
125
|
"mutable": false,
|
|
129
126
|
"complexType": {
|
|
130
|
-
"original": "DBAccordionItemProps[\"
|
|
131
|
-
"resolved": "
|
|
127
|
+
"original": "DBAccordionItemProps[\"name\"]",
|
|
128
|
+
"resolved": "string",
|
|
132
129
|
"references": {
|
|
133
130
|
"DBAccordionItemProps": {
|
|
134
131
|
"location": "import",
|
|
@@ -147,13 +144,13 @@ export class DBAccordionItem {
|
|
|
147
144
|
"getter": false,
|
|
148
145
|
"setter": false,
|
|
149
146
|
"reflect": false,
|
|
150
|
-
"attribute": "
|
|
147
|
+
"attribute": "name"
|
|
151
148
|
},
|
|
152
|
-
"
|
|
149
|
+
"id": {
|
|
153
150
|
"type": "string",
|
|
154
151
|
"mutable": false,
|
|
155
152
|
"complexType": {
|
|
156
|
-
"original": "DBAccordionItemProps[\"
|
|
153
|
+
"original": "DBAccordionItemProps[\"id\"]",
|
|
157
154
|
"resolved": "string",
|
|
158
155
|
"references": {
|
|
159
156
|
"DBAccordionItemProps": {
|
|
@@ -173,7 +170,7 @@ export class DBAccordionItem {
|
|
|
173
170
|
"getter": false,
|
|
174
171
|
"setter": false,
|
|
175
172
|
"reflect": false,
|
|
176
|
-
"attribute": "
|
|
173
|
+
"attribute": "id"
|
|
177
174
|
},
|
|
178
175
|
"className": {
|
|
179
176
|
"type": "string",
|
|
@@ -283,7 +280,6 @@ export class DBAccordionItem {
|
|
|
283
280
|
}
|
|
284
281
|
static get states() {
|
|
285
282
|
return {
|
|
286
|
-
"_id": {},
|
|
287
283
|
"_open": {},
|
|
288
284
|
"_name": {},
|
|
289
285
|
"initialized": {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cls, getBoolean, getBooleanAsString
|
|
1
|
+
import { cls, getBoolean, getBooleanAsString } from "../../utils";
|
|
2
2
|
import { h, } from "@stencil/core";
|
|
3
3
|
/**
|
|
4
4
|
* @slot children - This is a default/unnamed slot
|
|
@@ -6,7 +6,6 @@ import { h, } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class DBCustomSelectListItem {
|
|
8
8
|
constructor() {
|
|
9
|
-
this._id = undefined;
|
|
10
9
|
this.hasDivider = false;
|
|
11
10
|
}
|
|
12
11
|
handleChange(event) {
|
|
@@ -60,28 +59,26 @@ export class DBCustomSelectListItem {
|
|
|
60
59
|
this.watch0Fn();
|
|
61
60
|
}
|
|
62
61
|
componentDidLoad() {
|
|
63
|
-
var _a;
|
|
64
62
|
this.enableAttributePassing(this._ref, "db-custom-select-list-item");
|
|
65
|
-
this._id = (_a = this.id) !== null && _a !== void 0 ? _a : `custom-select-list-item-${uuid()}`;
|
|
66
63
|
this.watch0Fn();
|
|
67
64
|
}
|
|
68
65
|
render() {
|
|
69
|
-
return (h("li", { key: '
|
|
66
|
+
return (h("li", { key: '1155e389f33c440e04b5e7ca71732d108925e2cd', class: cls("db-custom-select-list-item", this.className, {
|
|
70
67
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
71
68
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
72
69
|
}), ref: (el) => {
|
|
73
70
|
this._ref = el;
|
|
74
|
-
}, id: this.
|
|
71
|
+
}, id: this.id, "data-divider": getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : h("slot", null))) : (h("span", null, this.groupTitle))));
|
|
75
72
|
}
|
|
76
73
|
static get is() { return "db-custom-select-list-item"; }
|
|
77
74
|
static get properties() {
|
|
78
75
|
return {
|
|
79
|
-
"
|
|
80
|
-
"type": "
|
|
76
|
+
"isGroupTitle": {
|
|
77
|
+
"type": "boolean",
|
|
81
78
|
"mutable": false,
|
|
82
79
|
"complexType": {
|
|
83
|
-
"original": "DBCustomSelectListItemProps[\"
|
|
84
|
-
"resolved": "
|
|
80
|
+
"original": "DBCustomSelectListItemProps[\"isGroupTitle\"]",
|
|
81
|
+
"resolved": "boolean",
|
|
85
82
|
"references": {
|
|
86
83
|
"DBCustomSelectListItemProps": {
|
|
87
84
|
"location": "import",
|
|
@@ -100,13 +97,13 @@ export class DBCustomSelectListItem {
|
|
|
100
97
|
"getter": false,
|
|
101
98
|
"setter": false,
|
|
102
99
|
"reflect": false,
|
|
103
|
-
"attribute": "
|
|
100
|
+
"attribute": "is-group-title"
|
|
104
101
|
},
|
|
105
|
-
"
|
|
102
|
+
"showDivider": {
|
|
106
103
|
"type": "boolean",
|
|
107
104
|
"mutable": false,
|
|
108
105
|
"complexType": {
|
|
109
|
-
"original": "DBCustomSelectListItemProps[\"
|
|
106
|
+
"original": "DBCustomSelectListItemProps[\"showDivider\"]",
|
|
110
107
|
"resolved": "boolean",
|
|
111
108
|
"references": {
|
|
112
109
|
"DBCustomSelectListItemProps": {
|
|
@@ -126,14 +123,14 @@ export class DBCustomSelectListItem {
|
|
|
126
123
|
"getter": false,
|
|
127
124
|
"setter": false,
|
|
128
125
|
"reflect": false,
|
|
129
|
-
"attribute": "
|
|
126
|
+
"attribute": "show-divider"
|
|
130
127
|
},
|
|
131
|
-
"
|
|
132
|
-
"type": "
|
|
128
|
+
"type": {
|
|
129
|
+
"type": "string",
|
|
133
130
|
"mutable": false,
|
|
134
131
|
"complexType": {
|
|
135
|
-
"original": "DBCustomSelectListItemProps[\"
|
|
136
|
-
"resolved": "
|
|
132
|
+
"original": "DBCustomSelectListItemProps[\"type\"]",
|
|
133
|
+
"resolved": "\"checkbox\" | \"radio\"",
|
|
137
134
|
"references": {
|
|
138
135
|
"DBCustomSelectListItemProps": {
|
|
139
136
|
"location": "import",
|
|
@@ -152,14 +149,14 @@ export class DBCustomSelectListItem {
|
|
|
152
149
|
"getter": false,
|
|
153
150
|
"setter": false,
|
|
154
151
|
"reflect": false,
|
|
155
|
-
"attribute": "
|
|
152
|
+
"attribute": "type"
|
|
156
153
|
},
|
|
157
|
-
"
|
|
158
|
-
"type": "
|
|
154
|
+
"checked": {
|
|
155
|
+
"type": "any",
|
|
159
156
|
"mutable": false,
|
|
160
157
|
"complexType": {
|
|
161
|
-
"original": "DBCustomSelectListItemProps[\"
|
|
162
|
-
"resolved": "
|
|
158
|
+
"original": "DBCustomSelectListItemProps[\"checked\"]",
|
|
159
|
+
"resolved": "boolean | string",
|
|
163
160
|
"references": {
|
|
164
161
|
"DBCustomSelectListItemProps": {
|
|
165
162
|
"location": "import",
|
|
@@ -178,14 +175,14 @@ export class DBCustomSelectListItem {
|
|
|
178
175
|
"getter": false,
|
|
179
176
|
"setter": false,
|
|
180
177
|
"reflect": false,
|
|
181
|
-
"attribute": "
|
|
178
|
+
"attribute": "checked"
|
|
182
179
|
},
|
|
183
|
-
"
|
|
184
|
-
"type": "
|
|
180
|
+
"id": {
|
|
181
|
+
"type": "string",
|
|
185
182
|
"mutable": false,
|
|
186
183
|
"complexType": {
|
|
187
|
-
"original": "DBCustomSelectListItemProps[\"
|
|
188
|
-
"resolved": "
|
|
184
|
+
"original": "DBCustomSelectListItemProps[\"id\"]",
|
|
185
|
+
"resolved": "string",
|
|
189
186
|
"references": {
|
|
190
187
|
"DBCustomSelectListItemProps": {
|
|
191
188
|
"location": "import",
|
|
@@ -204,7 +201,7 @@ export class DBCustomSelectListItem {
|
|
|
204
201
|
"getter": false,
|
|
205
202
|
"setter": false,
|
|
206
203
|
"reflect": false,
|
|
207
|
-
"attribute": "
|
|
204
|
+
"attribute": "id"
|
|
208
205
|
},
|
|
209
206
|
"className": {
|
|
210
207
|
"type": "string",
|
|
@@ -418,7 +415,6 @@ export class DBCustomSelectListItem {
|
|
|
418
415
|
}
|
|
419
416
|
static get states() {
|
|
420
417
|
return {
|
|
421
|
-
"_id": {},
|
|
422
418
|
"hasDivider": {}
|
|
423
419
|
};
|
|
424
420
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cls, uuid } from "../../utils";
|
|
1
|
+
import { cls } from "../../utils";
|
|
3
2
|
import { h } from "@stencil/core";
|
|
4
3
|
/**
|
|
5
4
|
* @slot children - This is a default/unnamed slot
|
|
6
5
|
|
|
7
6
|
*/
|
|
8
7
|
export class DBNavigation {
|
|
9
|
-
constructor() {
|
|
10
|
-
this._id = DEFAULT_ID;
|
|
11
|
-
}
|
|
12
8
|
/**
|
|
13
9
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
14
10
|
* @param element the ref for the component
|
|
@@ -43,12 +39,11 @@ export class DBNavigation {
|
|
|
43
39
|
}
|
|
44
40
|
componentDidLoad() {
|
|
45
41
|
this.enableAttributePassing(this._ref, "db-navigation");
|
|
46
|
-
this._id = this.id || "navigation-" + uuid();
|
|
47
42
|
}
|
|
48
43
|
render() {
|
|
49
|
-
return (h("nav", { key: '
|
|
44
|
+
return (h("nav", { key: 'de11910f2ac8e29cb5ee23aaf0e0d38cf9b5d4e8', class: cls("db-navigation", this.className), ref: (el) => {
|
|
50
45
|
this._ref = el;
|
|
51
|
-
}, id: this.
|
|
46
|
+
}, id: this.id }, h("menu", { key: '414afdaa58874f959a2ed49aefdaa672894806c3' }, h("slot", { key: '703407fdf69a8dfd133779c864a7016972f1a3e5' }))));
|
|
52
47
|
}
|
|
53
48
|
static get is() { return "db-navigation"; }
|
|
54
49
|
static get properties() {
|
|
@@ -107,9 +102,4 @@ export class DBNavigation {
|
|
|
107
102
|
}
|
|
108
103
|
};
|
|
109
104
|
}
|
|
110
|
-
static get states() {
|
|
111
|
-
return {
|
|
112
|
-
"_id": {}
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
105
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_BACK } from "../../shared/constants";
|
|
2
|
-
import { cls, delay, getBoolean, getBooleanAsString
|
|
2
|
+
import { cls, delay, getBoolean, getBooleanAsString } from "../../utils";
|
|
3
3
|
import { NavigationItemSafeTriangle } from "../../utils/navigation";
|
|
4
4
|
import { h, Fragment, } from "@stencil/core";
|
|
5
5
|
/**
|
|
@@ -13,7 +13,6 @@ export class DBNavigationItem {
|
|
|
13
13
|
this.hasSubNavigation = true;
|
|
14
14
|
this.isSubNavigationExpanded = false;
|
|
15
15
|
this.autoClose = false;
|
|
16
|
-
this.subNavigationId = "sub-navigation-" + uuid();
|
|
17
16
|
this.navigationItemSafeTriangle = undefined;
|
|
18
17
|
}
|
|
19
18
|
handleNavigationItemClick(event) {
|
|
@@ -106,9 +105,9 @@ export class DBNavigationItem {
|
|
|
106
105
|
}
|
|
107
106
|
render() {
|
|
108
107
|
var _a;
|
|
109
|
-
return (h("li", { key: '
|
|
108
|
+
return (h("li", { key: 'd9127a5065dc034116325e95f39c9d2d9844722e', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
110
109
|
this._ref = el;
|
|
111
|
-
}, 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,
|
|
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) }, (_a = this.backButtonText) !== null && _a !== void 0 ? _a : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
|
|
112
111
|
}
|
|
113
112
|
static get is() { return "db-navigation-item"; }
|
|
114
113
|
static get properties() {
|
|
@@ -434,7 +433,6 @@ export class DBNavigationItem {
|
|
|
434
433
|
"hasSubNavigation": {},
|
|
435
434
|
"isSubNavigationExpanded": {},
|
|
436
435
|
"autoClose": {},
|
|
437
|
-
"subNavigationId": {},
|
|
438
436
|
"navigationItemSafeTriangle": {}
|
|
439
437
|
};
|
|
440
438
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cls, uuid } from "../../utils";
|
|
1
|
+
import { cls } from "../../utils";
|
|
3
2
|
import { h } from "@stencil/core";
|
|
4
3
|
/**
|
|
5
4
|
* @slot children - This is a default/unnamed slot
|
|
6
5
|
|
|
7
6
|
*/
|
|
8
7
|
export class DBTabList {
|
|
9
|
-
constructor() {
|
|
10
|
-
this._id = DEFAULT_ID;
|
|
11
|
-
}
|
|
12
8
|
/**
|
|
13
9
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
14
10
|
* @param element the ref for the component
|
|
@@ -43,12 +39,11 @@ export class DBTabList {
|
|
|
43
39
|
}
|
|
44
40
|
componentDidLoad() {
|
|
45
41
|
this.enableAttributePassing(this._ref, "db-tab-list");
|
|
46
|
-
this._id = this.id || "tab-list-" + uuid();
|
|
47
42
|
}
|
|
48
43
|
render() {
|
|
49
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: 'a2d1cf85f398ee76b560e9aa1c7f84871d752432', class: cls("db-tab-list", this.className), ref: (el) => {
|
|
50
45
|
this._ref = el;
|
|
51
|
-
}, id: this.
|
|
46
|
+
}, id: this.id }, h("ul", { key: '03498821ff3ff623e16313782c67384e7708eecf', role: "tablist" }, h("slot", { key: '10eba579352100e449568b7ec38e4cc73efb0463' }))));
|
|
52
47
|
}
|
|
53
48
|
static get is() { return "db-tab-list"; }
|
|
54
49
|
static get properties() {
|
|
@@ -107,9 +102,4 @@ export class DBTabList {
|
|
|
107
102
|
}
|
|
108
103
|
};
|
|
109
104
|
}
|
|
110
|
-
static get states() {
|
|
111
|
-
return {
|
|
112
|
-
"_id": {}
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
105
|
}
|
|
@@ -6,7 +6,6 @@ import { h, Fragment, } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class DBTabs {
|
|
8
8
|
constructor() {
|
|
9
|
-
this._id = "tabs-" + uuid();
|
|
10
9
|
this._name = "";
|
|
11
10
|
this.initialized = false;
|
|
12
11
|
this.showScrollLeft = false;
|
|
@@ -192,7 +191,6 @@ export class DBTabs {
|
|
|
192
191
|
}
|
|
193
192
|
componentDidLoad() {
|
|
194
193
|
this.enableAttributePassing(this._ref, "db-tabs");
|
|
195
|
-
this._id = this.id || this._id;
|
|
196
194
|
this._name = `tabs-${this.name || uuid()}`;
|
|
197
195
|
this.initialized = true;
|
|
198
196
|
this.watch0Fn();
|
|
@@ -204,40 +202,14 @@ export class DBTabs {
|
|
|
204
202
|
}
|
|
205
203
|
render() {
|
|
206
204
|
var _a, _b, _c, _d;
|
|
207
|
-
return (h("div", { key: '
|
|
205
|
+
return (h("div", { key: '0ba78eeed24756c5a55acef3080c4d66db43139b', class: cls("db-tabs", this.className), ref: (el) => {
|
|
208
206
|
this._ref = el;
|
|
209
|
-
}, id: this.
|
|
210
|
-
_d.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: '
|
|
207
|
+
}, id: this.id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (_a = this.alignment) !== null && _a !== void 0 ? _a : "start", "data-width": (_b = this.width) !== null && _b !== void 0 ? _b : "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, (_c = this.convertTabs()) === null || _c === void 0 ? void 0 : _c.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 })))), (_d = this.convertTabs()) === null || _d === void 0 ? void 0 :
|
|
208
|
+
_d.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: '30e17d6cbc5899d97c5f1ffc73e4c09ccbff1dc1' })));
|
|
211
209
|
}
|
|
212
210
|
static get is() { return "db-tabs"; }
|
|
213
211
|
static get properties() {
|
|
214
212
|
return {
|
|
215
|
-
"id": {
|
|
216
|
-
"type": "string",
|
|
217
|
-
"mutable": false,
|
|
218
|
-
"complexType": {
|
|
219
|
-
"original": "DBTabsProps[\"id\"]",
|
|
220
|
-
"resolved": "string",
|
|
221
|
-
"references": {
|
|
222
|
-
"DBTabsProps": {
|
|
223
|
-
"location": "import",
|
|
224
|
-
"path": "./model",
|
|
225
|
-
"id": "src/components/tabs/model.ts::DBTabsProps",
|
|
226
|
-
"referenceLocation": "DBTabsProps"
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
"required": false,
|
|
231
|
-
"optional": false,
|
|
232
|
-
"docs": {
|
|
233
|
-
"tags": [],
|
|
234
|
-
"text": ""
|
|
235
|
-
},
|
|
236
|
-
"getter": false,
|
|
237
|
-
"setter": false,
|
|
238
|
-
"reflect": false,
|
|
239
|
-
"attribute": "id"
|
|
240
|
-
},
|
|
241
213
|
"name": {
|
|
242
214
|
"type": "string",
|
|
243
215
|
"mutable": false,
|
|
@@ -420,6 +392,32 @@ export class DBTabs {
|
|
|
420
392
|
"reflect": false,
|
|
421
393
|
"attribute": "initial-selected-index"
|
|
422
394
|
},
|
|
395
|
+
"id": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"mutable": false,
|
|
398
|
+
"complexType": {
|
|
399
|
+
"original": "DBTabsProps[\"id\"]",
|
|
400
|
+
"resolved": "string",
|
|
401
|
+
"references": {
|
|
402
|
+
"DBTabsProps": {
|
|
403
|
+
"location": "import",
|
|
404
|
+
"path": "./model",
|
|
405
|
+
"id": "src/components/tabs/model.ts::DBTabsProps",
|
|
406
|
+
"referenceLocation": "DBTabsProps"
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"required": false,
|
|
411
|
+
"optional": false,
|
|
412
|
+
"docs": {
|
|
413
|
+
"tags": [],
|
|
414
|
+
"text": ""
|
|
415
|
+
},
|
|
416
|
+
"getter": false,
|
|
417
|
+
"setter": false,
|
|
418
|
+
"reflect": false,
|
|
419
|
+
"attribute": "id"
|
|
420
|
+
},
|
|
423
421
|
"className": {
|
|
424
422
|
"type": "string",
|
|
425
423
|
"mutable": false,
|
|
@@ -502,7 +500,6 @@ export class DBTabs {
|
|
|
502
500
|
}
|
|
503
501
|
static get states() {
|
|
504
502
|
return {
|
|
505
|
-
"_id": {},
|
|
506
503
|
"_name": {},
|
|
507
504
|
"initialized": {},
|
|
508
505
|
"showScrollLeft": {},
|