@db-ux/v-core-components 2.2.3 → 2.2.4
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/dist/components/accordion-item/accordion-item.vue.d.ts +1 -1
- package/dist/components/custom-select/custom-select.vue.d.ts +3 -2
- package/dist/components/custom-select/model.d.ts +7 -7
- package/dist/components/drawer/drawer.vue.d.ts +3 -3
- package/dist/components/drawer/model.d.ts +3 -3
- package/dist/components/header/header.vue.d.ts +1 -1
- package/dist/components/notification/model.d.ts +3 -3
- package/dist/components/notification/notification.vue.d.ts +1 -1
- package/dist/components/tabs/model.d.ts +13 -11
- package/dist/components/tabs/tabs.vue.d.ts +6 -5
- package/dist/components/tag/model.d.ts +12 -10
- package/dist/components/tag/tag.vue.d.ts +2 -1
- package/dist/db-ux.es.js +866 -854
- package/dist/db-ux.umd.js +1 -1
- package/dist/shared/model.d.ts +9 -7
- package/dist/utils/index.d.ts +2 -0
- package/package.json +3 -3
package/dist/db-ux.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _a = Object.defineProperty;
|
|
2
2
|
var Ta = (i, a, l) => a in i ? _a(i, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[a] = l;
|
|
3
3
|
var de = (i, a, l) => Ta(i, typeof a != "symbol" ? a + "" : a, l);
|
|
4
|
-
import { defineComponent as P, ref as s, createElementBlock as
|
|
4
|
+
import { defineComponent as P, ref as s, createElementBlock as S, openBlock as m, unref as n, normalizeClass as z, renderSlot as A, Fragment as U, createTextVNode as F, toDisplayString as _, createCommentVNode as V, createElementVNode as T, createBlock as Z, withCtx as G, onMounted as Y, watch as D, createVNode as ae, renderList as be, onUnmounted as Ca } from "vue";
|
|
5
5
|
const Q = () => {
|
|
6
6
|
var i, a;
|
|
7
7
|
if (typeof window < "u") {
|
|
@@ -26,7 +26,7 @@ const Q = () => {
|
|
|
26
26
|
for (const e in l)
|
|
27
27
|
l[e] && (a += `${e} `);
|
|
28
28
|
return a.trim();
|
|
29
|
-
},
|
|
29
|
+
}, Ea = (i) => Array.isArray(i) && i.every((a) => typeof a == "string"), Aa = ["Mac", "iPhone", "iPad", "iPod"], ve = () => typeof window < "u" && Aa.some((i) => window.navigator.userAgent.includes(i)), x = (i, a) => new Promise(() => setTimeout(i, a)), X = (i) => {
|
|
30
30
|
if (i != null)
|
|
31
31
|
return String(typeof i == "string" ? !!i : i);
|
|
32
32
|
}, M = (i, a) => {
|
|
@@ -38,10 +38,10 @@ const Q = () => {
|
|
|
38
38
|
}, Je = (i, a) => a && ["number", "range"].includes(a) ? we(i) : i, K = (i) => {
|
|
39
39
|
if (i != null)
|
|
40
40
|
return X(!i);
|
|
41
|
-
}, ee = (i, a) => (a === void 0 || !!a) && !!i, Qe = (i) => i.querySelector('input[type="search"]'),
|
|
41
|
+
}, ee = (i, a) => (a === void 0 || !!a) && !!i, Qe = (i) => i.querySelector('input[type="search"]'), Ki = (i, a) => {
|
|
42
42
|
const l = i.id ?? i.value ?? Q();
|
|
43
43
|
return `${a}${l}`;
|
|
44
|
-
}, Da = ["id", "type", "disabled", "aria-label", "data-icon", "data-hide-icon", "data-size", "data-state", "data-width", "data-variant", "data-no-text", "name", "form", "value", "aria-describedby", "aria-expanded", "aria-pressed"], Be = /* @__PURE__ */ P({
|
|
44
|
+
}, Da = (i) => i.key !== void 0, Fa = ["id", "type", "disabled", "aria-label", "data-icon", "data-hide-icon", "data-size", "data-state", "data-width", "data-variant", "data-no-text", "name", "form", "value", "aria-describedby", "aria-expanded", "aria-pressed"], Be = /* @__PURE__ */ P({
|
|
45
45
|
__name: "button",
|
|
46
46
|
props: {
|
|
47
47
|
ariaexpanded: { type: Boolean, default: void 0 },
|
|
@@ -73,7 +73,7 @@ const Q = () => {
|
|
|
73
73
|
function e(t) {
|
|
74
74
|
a.onClick && a.onClick(t);
|
|
75
75
|
}
|
|
76
|
-
return (t, p) => (m(),
|
|
76
|
+
return (t, p) => (m(), S("button", {
|
|
77
77
|
ref_key: "_ref",
|
|
78
78
|
ref: l,
|
|
79
79
|
id: t.id,
|
|
@@ -96,34 +96,34 @@ const Q = () => {
|
|
|
96
96
|
"aria-pressed": t.ariapressed,
|
|
97
97
|
onClick: p[0] || (p[0] = async (d) => e(d))
|
|
98
98
|
}, [
|
|
99
|
-
t.text ? (m(),
|
|
100
|
-
|
|
101
|
-
], 64)) :
|
|
102
|
-
], 10,
|
|
99
|
+
t.text ? (m(), S(U, { key: 0 }, [
|
|
100
|
+
F(_(t.text), 1)
|
|
101
|
+
], 64)) : A(t.$slots, "default", { key: 1 })
|
|
102
|
+
], 10, Fa));
|
|
103
103
|
}
|
|
104
|
-
}), Le = "OVERWRITE_DEFAULT_ID", Se = "LABEL SHOULD BE SET", ta = " ",
|
|
104
|
+
}), Le = "OVERWRITE_DEFAULT_ID", Se = "LABEL SHOULD BE SET", ta = " ", Na = "MESSAGE SHOULD BE SET", Ze = "-label", xe = "-select", fe = "-message", pe = "-valid-message", he = "-invalid-message", ze = "-placeholder", ea = "-datalist", me = "TODO: Add a validMessage", ie = "TODO: Add an invalidMessage", ia = "Remove", Ma = "Back", za = "Selected", Ra = "BurgerMenu", Va = "brand", Pa = 4, Ge = "Close", Ji = "density", Qi = "color";
|
|
105
105
|
var la = /* @__PURE__ */ ((i) => (i.FUNCTIONAL = "functional", i.REGULAR = "regular", i.EXPRESSIVE = "expressive", i))(la || {});
|
|
106
|
-
const
|
|
106
|
+
const Zi = Object.entries(la).map(([, i]) => i);
|
|
107
107
|
var oa = /* @__PURE__ */ ((i) => (i.PRIMARY = "primary", i))(oa || {}), da = /* @__PURE__ */ ((i) => (i.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", i.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", i.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", i.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", i.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", i.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", i.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", i.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", i.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", i.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", i.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", i.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", i.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", i.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", i.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", i.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", i.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", i.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", i.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", i.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", i.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", i.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", i.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", i.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", i.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", i.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", i.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", i.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", i.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", i.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", i))(da || {});
|
|
108
|
-
const
|
|
108
|
+
const xi = Object.entries(da).map(([, i]) => i), el = Object.entries(oa).map(([, i]) => i);
|
|
109
109
|
var na = /* @__PURE__ */ ((i) => (i.CRITICAL = "critical", i.INFORMATIONAL = "informational", i.WARNING = "warning", i.SUCCESSFUL = "successful", i))(na || {});
|
|
110
|
-
const
|
|
110
|
+
const al = Object.entries(na).map(([, i]) => i), Ua = {
|
|
111
111
|
width: 390,
|
|
112
112
|
height: 884
|
|
113
|
-
},
|
|
113
|
+
}, qa = {
|
|
114
114
|
width: 1920,
|
|
115
115
|
height: 1280
|
|
116
|
-
},
|
|
116
|
+
}, tl = [{
|
|
117
117
|
name: "desktop",
|
|
118
|
-
...
|
|
118
|
+
...qa
|
|
119
119
|
}, {
|
|
120
120
|
name: "tablet",
|
|
121
121
|
width: 768,
|
|
122
122
|
height: 1024
|
|
123
123
|
}, {
|
|
124
124
|
name: "mobile",
|
|
125
|
-
...
|
|
126
|
-
}],
|
|
125
|
+
...Ua
|
|
126
|
+
}], Ga = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-hide-icon", "data-link-variant"], Wa = { key: 0 }, Oa = { key: 1 }, il = /* @__PURE__ */ P({
|
|
127
127
|
__name: "notification",
|
|
128
128
|
props: {
|
|
129
129
|
ariaLive: { default: void 0 },
|
|
@@ -157,9 +157,9 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
157
157
|
setup(i) {
|
|
158
158
|
const a = i, l = s(null);
|
|
159
159
|
function e(t) {
|
|
160
|
-
t.stopPropagation(), a.onClose && a.onClose(t);
|
|
160
|
+
t && (t.stopPropagation(), a.onClose && a.onClose(t));
|
|
161
161
|
}
|
|
162
|
-
return (t, p) => (m(),
|
|
162
|
+
return (t, p) => (m(), S("article", {
|
|
163
163
|
ref_key: "_ref",
|
|
164
164
|
ref: l,
|
|
165
165
|
id: t.id,
|
|
@@ -171,15 +171,15 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
171
171
|
"data-hide-icon": n(K)(t.showIcon),
|
|
172
172
|
"data-link-variant": t.linkVariant
|
|
173
173
|
}, [
|
|
174
|
-
|
|
175
|
-
n(ee)(t.headline, t.showHeadline) ? (m(),
|
|
174
|
+
A(t.$slots, "image"),
|
|
175
|
+
n(ee)(t.headline, t.showHeadline) ? (m(), S("header", Wa, _(t.headline), 1)) : V("", !0),
|
|
176
176
|
T("p", null, [
|
|
177
|
-
t.text ? (m(),
|
|
178
|
-
|
|
179
|
-
], 64)) :
|
|
177
|
+
t.text ? (m(), S(U, { key: 0 }, [
|
|
178
|
+
F(_(t.text), 1)
|
|
179
|
+
], 64)) : A(t.$slots, "default", { key: 1 })
|
|
180
180
|
]),
|
|
181
|
-
n(ee)(t.timestamp, t.showTimestamp) ? (m(),
|
|
182
|
-
|
|
181
|
+
n(ee)(t.timestamp, t.showTimestamp) ? (m(), S("span", Oa, _(t.timestamp), 1)) : V("", !0),
|
|
182
|
+
A(t.$slots, "link"),
|
|
183
183
|
n(M)(t.closeable, "closeable") ? (m(), Z(Be, {
|
|
184
184
|
key: 2,
|
|
185
185
|
icon: "cross",
|
|
@@ -190,13 +190,13 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
190
190
|
onClick: (d) => e(d)
|
|
191
191
|
}, {
|
|
192
192
|
default: G(() => [
|
|
193
|
-
|
|
193
|
+
F(_(t.closeButtonText ?? n(Ge)), 1)
|
|
194
194
|
]),
|
|
195
195
|
_: 1
|
|
196
196
|
}, 8, ["id", "onClick"])) : V("", !0)
|
|
197
|
-
], 10,
|
|
197
|
+
], 10, Ga));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), Ha = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], ll = /* @__PURE__ */ P({
|
|
200
200
|
__name: "badge",
|
|
201
201
|
props: {
|
|
202
202
|
placement: { default: void 0 },
|
|
@@ -216,7 +216,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
216
216
|
const a = i, l = s(!1), e = s(null);
|
|
217
217
|
return Y(() => {
|
|
218
218
|
l.value = !0;
|
|
219
|
-
}),
|
|
219
|
+
}), D(
|
|
220
220
|
() => [e.value, l.value],
|
|
221
221
|
() => {
|
|
222
222
|
var t;
|
|
@@ -231,7 +231,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
231
231
|
}
|
|
232
232
|
), (t, p) => {
|
|
233
233
|
var d;
|
|
234
|
-
return m(),
|
|
234
|
+
return m(), S("span", {
|
|
235
235
|
ref_key: "_ref",
|
|
236
236
|
ref: e,
|
|
237
237
|
id: t.id,
|
|
@@ -242,13 +242,13 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
242
242
|
"data-placement": t.placement,
|
|
243
243
|
"data-label": ((d = t.placement) == null ? void 0 : d.startsWith("corner")) && (t.label ?? n(Se))
|
|
244
244
|
}, [
|
|
245
|
-
t.text ? (m(),
|
|
246
|
-
|
|
247
|
-
], 64)) :
|
|
248
|
-
], 10,
|
|
245
|
+
t.text ? (m(), S(U, { key: 0 }, [
|
|
246
|
+
F(_(t.text), 1)
|
|
247
|
+
], 64)) : A(t.$slots, "default", { key: 1 })
|
|
248
|
+
], 10, Ha);
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
}),
|
|
251
|
+
}), Xa = ["data-icon", "data-hide-icon", "id"], ol = /* @__PURE__ */ P({
|
|
252
252
|
__name: "brand",
|
|
253
253
|
props: {
|
|
254
254
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -264,20 +264,20 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
264
264
|
},
|
|
265
265
|
setup(i) {
|
|
266
266
|
const a = i, l = s(null);
|
|
267
|
-
return (e, t) => (m(),
|
|
267
|
+
return (e, t) => (m(), S("div", {
|
|
268
268
|
ref_key: "_ref",
|
|
269
269
|
ref: l,
|
|
270
|
-
"data-icon": e.hideLogo ? "none" : e.icon ?? n(
|
|
270
|
+
"data-icon": e.hideLogo ? "none" : e.icon ?? n(Va),
|
|
271
271
|
"data-hide-icon": n(K)(e.showIcon),
|
|
272
272
|
id: e.id,
|
|
273
273
|
class: z(n(R)("db-brand", a.class))
|
|
274
274
|
}, [
|
|
275
|
-
e.text ? (m(),
|
|
276
|
-
|
|
277
|
-
], 64)) :
|
|
278
|
-
], 10,
|
|
275
|
+
e.text ? (m(), S(U, { key: 0 }, [
|
|
276
|
+
F(_(e.text), 1)
|
|
277
|
+
], 64)) : A(e.$slots, "default", { key: 1 })
|
|
278
|
+
], 10, Xa));
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), ja = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], dl = /* @__PURE__ */ P({
|
|
281
281
|
__name: "card",
|
|
282
282
|
props: {
|
|
283
283
|
behavior: { default: void 0 },
|
|
@@ -296,7 +296,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
296
296
|
function e(t) {
|
|
297
297
|
a.onClick && a.onClick(t);
|
|
298
298
|
}
|
|
299
|
-
return (t, p) => (m(),
|
|
299
|
+
return (t, p) => (m(), S("div", {
|
|
300
300
|
ref_key: "_ref",
|
|
301
301
|
ref: l,
|
|
302
302
|
id: t.id,
|
|
@@ -308,12 +308,12 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
308
308
|
tabIndex: t.behavior === "interactive" ? 0 : void 0,
|
|
309
309
|
onClick: p[0] || (p[0] = async (d) => e(d))
|
|
310
310
|
}, [
|
|
311
|
-
|
|
312
|
-
], 10,
|
|
311
|
+
A(t.$slots, "default")
|
|
312
|
+
], 10, ja));
|
|
313
313
|
}
|
|
314
314
|
}), se = (i, a, l = "value") => {
|
|
315
315
|
i(`update:${l}`, a.target[l]);
|
|
316
|
-
},
|
|
316
|
+
}, Ya = ["id", "data-icon", "data-semantic", "data-size", "data-hide-icon-before"], te = /* @__PURE__ */ P({
|
|
317
317
|
__name: "infotext",
|
|
318
318
|
props: {
|
|
319
319
|
children: { default: void 0 },
|
|
@@ -330,7 +330,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
330
330
|
},
|
|
331
331
|
setup(i) {
|
|
332
332
|
const a = i, l = s(null);
|
|
333
|
-
return (e, t) => (m(),
|
|
333
|
+
return (e, t) => (m(), S("span", {
|
|
334
334
|
ref_key: "_ref",
|
|
335
335
|
ref: l,
|
|
336
336
|
id: e.id,
|
|
@@ -340,15 +340,15 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
340
340
|
"data-size": e.size,
|
|
341
341
|
"data-hide-icon-before": n(K)(e.showIcon ?? !0)
|
|
342
342
|
}, [
|
|
343
|
-
e.text ? (m(),
|
|
344
|
-
|
|
345
|
-
], 64)) :
|
|
346
|
-
], 10,
|
|
343
|
+
e.text ? (m(), S(U, { key: 0 }, [
|
|
344
|
+
F(_(e.text), 1)
|
|
345
|
+
], 64)) : A(e.$slots, "default", { key: 1 })
|
|
346
|
+
], 10, Ya));
|
|
347
347
|
}
|
|
348
|
-
}),
|
|
348
|
+
}), Ka = ["data-size", "data-hide-label"], Ja = ["for"], Qa = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Za = {
|
|
349
349
|
"data-visually-hidden": "true",
|
|
350
350
|
role: "status"
|
|
351
|
-
},
|
|
351
|
+
}, nl = /* @__PURE__ */ P({
|
|
352
352
|
__name: "checkbox",
|
|
353
353
|
props: {
|
|
354
354
|
indeterminate: { type: [Boolean, String], default: void 0 },
|
|
@@ -386,12 +386,12 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
386
386
|
},
|
|
387
387
|
emits: ["update:checked"],
|
|
388
388
|
setup(i, { emit: a }) {
|
|
389
|
-
const l = a, e = i, t = s(!1), p = s(void 0), d = s(void 0),
|
|
389
|
+
const l = a, e = i, t = s(!1), p = s(void 0), d = s(void 0), B = s(void 0), r = s(void 0), v = s(void 0), u = s(""), L = s(""), g = s(null);
|
|
390
390
|
Y(() => {
|
|
391
391
|
t.value = !0;
|
|
392
392
|
const b = e.id ?? `checkbox-${Q()}`;
|
|
393
|
-
p.value = b, d.value = b + fe,
|
|
394
|
-
}),
|
|
393
|
+
p.value = b, d.value = b + fe, B.value = b + pe, r.value = b + he, v.value = e.invalidMessage || ie;
|
|
394
|
+
}), D(
|
|
395
395
|
() => [g.value, e.invalidMessage],
|
|
396
396
|
() => {
|
|
397
397
|
var b;
|
|
@@ -401,19 +401,19 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
401
401
|
immediate: !0,
|
|
402
402
|
flush: "post"
|
|
403
403
|
}
|
|
404
|
-
),
|
|
404
|
+
), D(
|
|
405
405
|
() => [p.value],
|
|
406
406
|
() => {
|
|
407
407
|
if (p.value) {
|
|
408
408
|
const b = p.value + fe;
|
|
409
|
-
d.value = b,
|
|
409
|
+
d.value = b, B.value = p.value + pe, r.value = p.value + he, ee(e.message, e.showMessage) && (u.value = b);
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
immediate: !0,
|
|
414
414
|
flush: "post"
|
|
415
415
|
}
|
|
416
|
-
),
|
|
416
|
+
), D(
|
|
417
417
|
() => [t.value, g.value, e.indeterminate],
|
|
418
418
|
() => {
|
|
419
419
|
g.value && e.indeterminate !== void 0 && (g.value.indeterminate = !!M(e.indeterminate));
|
|
@@ -422,7 +422,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
422
422
|
immediate: !0,
|
|
423
423
|
flush: "post"
|
|
424
424
|
}
|
|
425
|
-
),
|
|
425
|
+
), D(
|
|
426
426
|
() => [t.value, g.value, e.checked],
|
|
427
427
|
() => {
|
|
428
428
|
t.value && g.value && (e.checked != null && (g.value.checked = !!M(e.checked)), t.value = !1);
|
|
@@ -436,19 +436,19 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
436
436
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
437
437
|
}
|
|
438
438
|
function f() {
|
|
439
|
-
var b,
|
|
440
|
-
!((b = g.value) != null && b.validity.valid) || e.validation === "invalid" ? (u.value =
|
|
439
|
+
var b, k, W;
|
|
440
|
+
!((b = g.value) != null && b.validity.valid) || e.validation === "invalid" ? (u.value = r.value, v.value = e.invalidMessage || ((k = g.value) == null ? void 0 : k.validationMessage) || ie, ve() && (L.value = v.value, x(() => L.value = "", 1e3))) : h() && ((W = g.value) != null && W.validity.valid) && e.required ? (u.value = B.value, ve() && (L.value = e.validMessage ?? me, x(() => L.value = "", 1e3))) : ee(e.message, e.showMessage) ? u.value = d.value : u.value = "";
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function c(b) {
|
|
443
443
|
e.onChange && e.onChange(b), se(l, b, "checked"), f();
|
|
444
444
|
}
|
|
445
445
|
function I(b) {
|
|
446
446
|
e.onBlur && e.onBlur(b);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function C(b) {
|
|
449
449
|
e.onFocus && e.onFocus(b);
|
|
450
450
|
}
|
|
451
|
-
return (b,
|
|
451
|
+
return (b, k) => (m(), S("div", {
|
|
452
452
|
class: z(n(R)("db-checkbox", e.class)),
|
|
453
453
|
"data-size": b.size,
|
|
454
454
|
"data-hide-label": n(K)(b.showLabel)
|
|
@@ -466,15 +466,15 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
466
466
|
disabled: n(M)(b.disabled, "disabled"),
|
|
467
467
|
value: b.value,
|
|
468
468
|
required: n(M)(b.required, "required"),
|
|
469
|
-
onChange:
|
|
470
|
-
onBlur:
|
|
471
|
-
onFocus:
|
|
469
|
+
onChange: k[0] || (k[0] = async (W) => c(W)),
|
|
470
|
+
onBlur: k[1] || (k[1] = async (W) => I(W)),
|
|
471
|
+
onFocus: k[2] || (k[2] = async (W) => C(W)),
|
|
472
472
|
"aria-describedby": b.ariaDescribedBy ?? u.value
|
|
473
|
-
}, null, 40,
|
|
474
|
-
b.label ? (m(),
|
|
475
|
-
|
|
476
|
-
], 64)) :
|
|
477
|
-
], 8,
|
|
473
|
+
}, null, 40, Qa),
|
|
474
|
+
b.label ? (m(), S(U, { key: 0 }, [
|
|
475
|
+
F(_(b.label), 1)
|
|
476
|
+
], 64)) : A(b.$slots, "default", { key: 1 })
|
|
477
|
+
], 8, Ja),
|
|
478
478
|
n(ee)(b.message, b.showMessage) ? (m(), Z(te, {
|
|
479
479
|
key: 0,
|
|
480
480
|
size: "small",
|
|
@@ -482,7 +482,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
482
482
|
id: d.value
|
|
483
483
|
}, {
|
|
484
484
|
default: G(() => [
|
|
485
|
-
|
|
485
|
+
F(_(b.message), 1)
|
|
486
486
|
]),
|
|
487
487
|
_: 1
|
|
488
488
|
}, 8, ["icon", "id"])) : V("", !0),
|
|
@@ -490,27 +490,27 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
490
490
|
key: 1,
|
|
491
491
|
size: "small",
|
|
492
492
|
semantic: "successful",
|
|
493
|
-
id:
|
|
493
|
+
id: B.value
|
|
494
494
|
}, {
|
|
495
495
|
default: G(() => [
|
|
496
|
-
|
|
496
|
+
F(_(b.validMessage || n(me)), 1)
|
|
497
497
|
]),
|
|
498
498
|
_: 1
|
|
499
499
|
}, 8, ["id"])) : V("", !0),
|
|
500
500
|
ae(te, {
|
|
501
501
|
size: "small",
|
|
502
502
|
semantic: "critical",
|
|
503
|
-
id:
|
|
503
|
+
id: r.value
|
|
504
504
|
}, {
|
|
505
505
|
default: G(() => [
|
|
506
|
-
|
|
506
|
+
F(_(v.value), 1)
|
|
507
507
|
]),
|
|
508
508
|
_: 1
|
|
509
509
|
}, 8, ["id"]),
|
|
510
|
-
T("span",
|
|
511
|
-
], 10,
|
|
510
|
+
T("span", Za, _(L.value), 1)
|
|
511
|
+
], 10, Ka));
|
|
512
512
|
}
|
|
513
|
-
}),
|
|
513
|
+
}), xa = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], sl = /* @__PURE__ */ P({
|
|
514
514
|
__name: "divider",
|
|
515
515
|
props: {
|
|
516
516
|
margin: { default: void 0 },
|
|
@@ -526,7 +526,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
526
526
|
},
|
|
527
527
|
setup(i) {
|
|
528
528
|
const a = i, l = s(null);
|
|
529
|
-
return (e, t) => (m(),
|
|
529
|
+
return (e, t) => (m(), S("div", {
|
|
530
530
|
ref_key: "_ref",
|
|
531
531
|
ref: l,
|
|
532
532
|
id: e.id,
|
|
@@ -535,9 +535,9 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
535
535
|
"data-emphasis": e.emphasis,
|
|
536
536
|
"data-width": e.width,
|
|
537
537
|
class: z(n(R)("db-divider", a.class))
|
|
538
|
-
}, null, 10,
|
|
538
|
+
}, null, 10, xa));
|
|
539
539
|
}
|
|
540
|
-
}),
|
|
540
|
+
}), et = ["id", "data-backdrop", "data-variant"], at = ["data-spacing", "data-width", "data-direction", "data-rounded"], tt = { class: "db-drawer-header" }, it = { class: "db-drawer-header-text" }, lt = { class: "db-drawer-content" }, ot = /* @__PURE__ */ P({
|
|
541
541
|
__name: "drawer",
|
|
542
542
|
props: {
|
|
543
543
|
backdrop: { default: void 0 },
|
|
@@ -563,7 +563,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
563
563
|
const a = i, l = s(null), e = s(null);
|
|
564
564
|
Y(() => {
|
|
565
565
|
p();
|
|
566
|
-
}),
|
|
566
|
+
}), D(
|
|
567
567
|
() => [a.open],
|
|
568
568
|
() => {
|
|
569
569
|
p();
|
|
@@ -573,25 +573,26 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
573
573
|
flush: "post"
|
|
574
574
|
}
|
|
575
575
|
);
|
|
576
|
-
function t(d,
|
|
577
|
-
|
|
576
|
+
function t(d, B) {
|
|
577
|
+
var r;
|
|
578
|
+
d && (Da(d) ? d.key === "Escape" && (d.preventDefault(), a.onClose && a.onClose(d)) : (B && (d.stopPropagation(), a.onClose && a.onClose(d)), ((r = d.target) == null ? void 0 : r.nodeName) === "DIALOG" && d.type === "click" && a.backdrop !== "none" && a.onClose && a.onClose(d)));
|
|
578
579
|
}
|
|
579
580
|
function p() {
|
|
580
581
|
if (l.value) {
|
|
581
582
|
const d = !!a.open;
|
|
582
583
|
d && !l.value.open && (e.value && (e.value.hidden = !1), a.backdrop === "none" || a.variant === "inside" ? l.value.show() : l.value.showModal()), !d && l.value.open && (e.value && (e.value.hidden = !0), x(() => {
|
|
583
|
-
var
|
|
584
|
-
e.value && (e.value.hidden = !1), (
|
|
584
|
+
var B;
|
|
585
|
+
e.value && (e.value.hidden = !1), (B = l.value) == null || B.close();
|
|
585
586
|
}, 401));
|
|
586
587
|
}
|
|
587
588
|
}
|
|
588
|
-
return (d,
|
|
589
|
+
return (d, B) => (m(), S("dialog", {
|
|
589
590
|
class: "db-drawer",
|
|
590
591
|
id: d.id,
|
|
591
592
|
ref_key: "_ref",
|
|
592
593
|
ref: l,
|
|
593
|
-
onClick:
|
|
594
|
-
onKeydown:
|
|
594
|
+
onClick: B[0] || (B[0] = async (r) => t(r)),
|
|
595
|
+
onKeydown: B[1] || (B[1] = async (r) => t(r)),
|
|
595
596
|
"data-backdrop": d.backdrop,
|
|
596
597
|
"data-variant": d.variant
|
|
597
598
|
}, [
|
|
@@ -604,9 +605,9 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
604
605
|
"data-direction": d.direction,
|
|
605
606
|
"data-rounded": n(X)(d.rounded)
|
|
606
607
|
}, [
|
|
607
|
-
T("header",
|
|
608
|
-
T("div",
|
|
609
|
-
|
|
608
|
+
T("header", tt, [
|
|
609
|
+
T("div", it, [
|
|
610
|
+
A(d.$slots, "drawer-header")
|
|
610
611
|
]),
|
|
611
612
|
ae(Be, {
|
|
612
613
|
class: "button-close-drawer",
|
|
@@ -614,21 +615,21 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
614
615
|
variant: "ghost",
|
|
615
616
|
id: d.closeButtonId,
|
|
616
617
|
noText: !0,
|
|
617
|
-
onClick: (
|
|
618
|
+
onClick: (r) => t(r, !0)
|
|
618
619
|
}, {
|
|
619
620
|
default: G(() => [
|
|
620
|
-
|
|
621
|
+
F(_(d.closeButtonText ?? n(Ge)), 1)
|
|
621
622
|
]),
|
|
622
623
|
_: 1
|
|
623
624
|
}, 8, ["id", "onClick"])
|
|
624
625
|
]),
|
|
625
|
-
T("div",
|
|
626
|
-
|
|
626
|
+
T("div", lt, [
|
|
627
|
+
A(d.$slots, "default")
|
|
627
628
|
])
|
|
628
|
-
], 10,
|
|
629
|
-
], 40,
|
|
629
|
+
], 10, at)
|
|
630
|
+
], 40, et));
|
|
630
631
|
}
|
|
631
|
-
}),
|
|
632
|
+
}), dt = (i) => {
|
|
632
633
|
var f;
|
|
633
634
|
const {
|
|
634
635
|
top: a,
|
|
@@ -639,21 +640,21 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
639
640
|
innerHeight: p,
|
|
640
641
|
innerWidth: d
|
|
641
642
|
} = window;
|
|
642
|
-
let
|
|
643
|
+
let B = a < 0, r = l > p, v = e < 0, u = t > d;
|
|
643
644
|
const L = i.dataset.outsideVy, g = i.dataset.outsideVx, h = (f = i == null ? void 0 : i.parentElement) == null ? void 0 : f.getBoundingClientRect();
|
|
644
|
-
return h && (L && (i.dataset.outsideVy === "top" ?
|
|
645
|
-
outTop:
|
|
646
|
-
outBottom:
|
|
645
|
+
return h && (L && (i.dataset.outsideVy === "top" ? B = h.top - (l - h.bottom) < 0 : r = h.bottom + (h.top - a) > p), g && (i.dataset.outsideVx === "left" ? v = h.left - (t - h.right) < 0 : u = h.right + (h.left - e) > d)), {
|
|
646
|
+
outTop: B,
|
|
647
|
+
outBottom: r,
|
|
647
648
|
outLeft: v,
|
|
648
649
|
outRight: u
|
|
649
650
|
};
|
|
650
|
-
},
|
|
651
|
+
}, nt = (i) => {
|
|
651
652
|
const {
|
|
652
653
|
outTop: a,
|
|
653
654
|
outBottom: l,
|
|
654
655
|
outLeft: e,
|
|
655
656
|
outRight: t
|
|
656
|
-
} =
|
|
657
|
+
} = dt(i);
|
|
657
658
|
let p = {};
|
|
658
659
|
return a || l ? (p = {
|
|
659
660
|
vy: a ? "top" : "bottom"
|
|
@@ -661,19 +662,19 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
661
662
|
...p,
|
|
662
663
|
vx: t ? "right" : "left"
|
|
663
664
|
}, i.dataset.outsideVx = p.vx) : delete i.dataset.outsideVx, p;
|
|
664
|
-
},
|
|
665
|
+
}, st = (i, a, l) => {
|
|
665
666
|
if (getComputedStyle(i).zIndex === "9999") return;
|
|
666
667
|
const {
|
|
667
668
|
top: e,
|
|
668
669
|
bottom: t,
|
|
669
670
|
childHeight: p,
|
|
670
671
|
childWidth: d,
|
|
671
|
-
width:
|
|
672
|
-
right:
|
|
672
|
+
width: B,
|
|
673
|
+
right: r,
|
|
673
674
|
left: v,
|
|
674
675
|
correctedPlacement: u
|
|
675
676
|
} = sa(i, a, l);
|
|
676
|
-
i.dataset.width === "full" && (i.style.inlineSize = `${
|
|
677
|
+
i.dataset.width === "full" && (i.style.inlineSize = `${B}px`), u === "top" || u === "bottom" || u === "top-start" || u === "bottom-start" ? i.style.insetInlineStart = `${v}px` : (u === "top-end" || u === "bottom-end") && (i.style.insetInlineStart = `${r - d}px`), u != null && u.startsWith("top") ? i.style.insetBlockStart = `${e - p}px` : u != null && u.startsWith("bottom") && (i.style.insetBlockStart = `${t}px`), i.style.position = "fixed";
|
|
677
678
|
}, sa = (i, a, l) => {
|
|
678
679
|
if (!i || !a)
|
|
679
680
|
return {
|
|
@@ -693,8 +694,8 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
693
694
|
top: t,
|
|
694
695
|
height: p,
|
|
695
696
|
bottom: d,
|
|
696
|
-
right:
|
|
697
|
-
left:
|
|
697
|
+
right: B,
|
|
698
|
+
left: r,
|
|
698
699
|
width: v
|
|
699
700
|
} = a.getBoundingClientRect(), {
|
|
700
701
|
innerHeight: u,
|
|
@@ -702,15 +703,15 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
702
703
|
} = window;
|
|
703
704
|
let g = e.height, h = e.width;
|
|
704
705
|
(l === "bottom" || l === "top") && (h = h / 2), (l === "left" || l === "right") && (g = g / 2);
|
|
705
|
-
const f = d + g > u,
|
|
706
|
+
const f = d + g > u, c = t - g < 0, I = r - h < 0, C = B + h > L;
|
|
706
707
|
let b = l;
|
|
707
|
-
return l.startsWith("bottom") ? f ? (b = l == null ? void 0 : l.replace("bottom", "top"), I &&
|
|
708
|
+
return l.startsWith("bottom") ? f ? (b = l == null ? void 0 : l.replace("bottom", "top"), I && C ? b = "top" : I ? b = "top-start" : C && (b = "top-end")) : I && C ? b = "bottom" : I ? b = "bottom-start" : C && (b = "bottom-end") : l.startsWith("top") ? c ? (b = l == null ? void 0 : l.replace("top", "bottom"), I && C ? b = "bottom" : I ? b = "bottom-start" : C && (b = "bottom-end")) : I && C ? b = "top" : I ? b = "top-start" : C && (b = "top-end") : l.startsWith("left") ? I ? (b = l == null ? void 0 : l.replace("left", "right"), f && c ? b = "right" : f ? b = "right-end" : c && (b = "right-start")) : f && c ? b = "left" : f ? b = "left-end" : c && (b = "left-start") : b.startsWith("right") && (C ? (b = l == null ? void 0 : l.replace("right", "left"), f && c ? b = "left" : f ? b = "left-end" : c && (b = "left-start")) : f && c ? b = "right" : f ? b = "right-end" : c && (b = "right-start")), {
|
|
708
709
|
top: t,
|
|
709
710
|
bottom: d,
|
|
710
|
-
right:
|
|
711
|
+
right: B,
|
|
711
712
|
height: p,
|
|
712
713
|
width: v,
|
|
713
|
-
left:
|
|
714
|
+
left: r,
|
|
714
715
|
childHeight: e.height,
|
|
715
716
|
childWidth: e.width,
|
|
716
717
|
correctedPlacement: b,
|
|
@@ -722,8 +723,8 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
722
723
|
top: t,
|
|
723
724
|
height: p,
|
|
724
725
|
width: d,
|
|
725
|
-
childHeight:
|
|
726
|
-
childWidth:
|
|
726
|
+
childHeight: B,
|
|
727
|
+
childWidth: r,
|
|
727
728
|
right: v,
|
|
728
729
|
left: u,
|
|
729
730
|
bottom: L,
|
|
@@ -731,43 +732,43 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
731
732
|
innerWidth: h,
|
|
732
733
|
innerHeight: f
|
|
733
734
|
} = sa(i, a, l);
|
|
734
|
-
if (
|
|
735
|
-
const
|
|
736
|
-
g.endsWith("start") ? i.style.setProperty("--db-tooltip-arrow-inline-start", `${
|
|
735
|
+
if (r > d && (g.startsWith("bottom") || g.startsWith("top"))) {
|
|
736
|
+
const c = d / 2 / r * 100;
|
|
737
|
+
g.endsWith("start") ? i.style.setProperty("--db-tooltip-arrow-inline-start", `${c}%`) : g.endsWith("end") && i.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - c}%`);
|
|
737
738
|
}
|
|
738
|
-
if (
|
|
739
|
-
const
|
|
740
|
-
g.endsWith("start") ? i.style.setProperty("--db-tooltip-arrow-block-start", `${
|
|
739
|
+
if (B > p && (g.startsWith("left") || g.startsWith("bottom"))) {
|
|
740
|
+
const c = p / 2 / B * 100;
|
|
741
|
+
g.endsWith("start") ? i.style.setProperty("--db-tooltip-arrow-block-start", `${c}%`) : g.endsWith("end") && i.style.setProperty("--db-tooltip-arrow-block-start", `${100 - c}%`);
|
|
741
742
|
}
|
|
742
743
|
if (g === "right" || g === "left")
|
|
743
744
|
i.style.insetBlockStart = `${t + p / 2}px`;
|
|
744
745
|
else if (g === "right-start" || g === "left-start") {
|
|
745
|
-
const
|
|
746
|
-
i.style.insetBlockStart = `${t}px`, i.style.insetBlockEnd = `${
|
|
746
|
+
const c = t + B;
|
|
747
|
+
i.style.insetBlockStart = `${t}px`, i.style.insetBlockEnd = `${c > f ? f : c}px`;
|
|
747
748
|
} else if (g === "right-end" || g === "left-end") {
|
|
748
|
-
const
|
|
749
|
-
i.style.insetBlockStart = `${
|
|
749
|
+
const c = L - B;
|
|
750
|
+
i.style.insetBlockStart = `${c < 0 ? 0 : c}px`, i.style.insetBlockEnd = `${L}px`;
|
|
750
751
|
} else if (g === "top" || g === "bottom")
|
|
751
752
|
i.style.insetInlineStart = `${u + d / 2}px`;
|
|
752
753
|
else if (g === "top-start" || g === "bottom-start") {
|
|
753
|
-
const
|
|
754
|
-
i.style.insetInlineStart = `${u}px`, i.style.insetInlineEnd = `${
|
|
754
|
+
const c = u + r;
|
|
755
|
+
i.style.insetInlineStart = `${u}px`, i.style.insetInlineEnd = `${c > h ? h : c}px`;
|
|
755
756
|
} else if (g === "top-end" || g === "bottom-end") {
|
|
756
|
-
const
|
|
757
|
-
i.style.insetInlineStart = `${v -
|
|
757
|
+
const c = u - r;
|
|
758
|
+
i.style.insetInlineStart = `${v - r}px`, i.style.insetInlineEnd = `${c < 0 ? 0 : c}px`;
|
|
758
759
|
}
|
|
759
760
|
if (g != null && g.startsWith("right")) {
|
|
760
|
-
const
|
|
761
|
-
i.style.insetInlineStart = `calc(${v}px + ${e})`, i.style.insetInlineEnd = `calc(${
|
|
761
|
+
const c = v + r;
|
|
762
|
+
i.style.insetInlineStart = `calc(${v}px + ${e})`, i.style.insetInlineEnd = `calc(${c > h ? h : c}px + ${e})`;
|
|
762
763
|
} else if (g != null && g.startsWith("left")) {
|
|
763
|
-
const
|
|
764
|
-
i.style.insetInlineStart = `calc(${
|
|
764
|
+
const c = u - r;
|
|
765
|
+
i.style.insetInlineStart = `calc(${c < 0 ? 0 : c}px - ${e})`, i.style.insetInlineEnd = `calc(${v}px - ${e})`;
|
|
765
766
|
} else if (g != null && g.startsWith("top")) {
|
|
766
|
-
const
|
|
767
|
-
i.style.insetBlockStart = `calc(${
|
|
767
|
+
const c = t - B;
|
|
768
|
+
i.style.insetBlockStart = `calc(${c < 0 ? 0 : c}px - ${e})`, i.style.insetBlockEnd = `calc(${L}px - ${e})`;
|
|
768
769
|
} else if (g != null && g.startsWith("bottom")) {
|
|
769
|
-
const
|
|
770
|
-
i.style.insetBlockStart = `calc(${L}px + ${e})`, i.style.insetBlockEnd = `calc(${
|
|
770
|
+
const c = L + B;
|
|
771
|
+
i.style.insetBlockStart = `calc(${L}px + ${e})`, i.style.insetBlockEnd = `calc(${c > f ? f : c}px + ${e})`;
|
|
771
772
|
}
|
|
772
773
|
i.style.position = "fixed", i.setAttribute("data-corrected-placement", g);
|
|
773
774
|
}, ra = (i) => {
|
|
@@ -777,7 +778,7 @@ const el = Object.entries(na).map(([, i]) => i), Pa = {
|
|
|
777
778
|
} = i;
|
|
778
779
|
return !!(!((l = a == null ? void 0 : a.classList) != null && l.contains("db-navigation-item-expand-button")) && ((e = a == null ? void 0 : a.parentElement) != null && e.classList.contains("db-navigation-item")));
|
|
779
780
|
};
|
|
780
|
-
class
|
|
781
|
+
class ut {
|
|
781
782
|
constructor(a, l) {
|
|
782
783
|
de(this, "element");
|
|
783
784
|
de(this, "subNavigation");
|
|
@@ -798,7 +799,7 @@ class st {
|
|
|
798
799
|
var t;
|
|
799
800
|
if (!this.initialized || this.triangleData || !this.element || !this.subNavigation)
|
|
800
801
|
return;
|
|
801
|
-
const a =
|
|
802
|
+
const a = nt(this.subNavigation), l = this.element.getBoundingClientRect(), e = ((t = this.parentSubNavigation) == null ? void 0 : t.getBoundingClientRect().width) ?? 0;
|
|
802
803
|
this.triangleData = {
|
|
803
804
|
itemRect: l,
|
|
804
805
|
parentElementWidth: e,
|
|
@@ -829,10 +830,10 @@ class st {
|
|
|
829
830
|
if (!this.triangleData)
|
|
830
831
|
return;
|
|
831
832
|
if (a === "fill-gap") {
|
|
832
|
-
const d = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`,
|
|
833
|
+
const d = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, B = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
|
|
833
834
|
return {
|
|
834
|
-
lb: `${
|
|
835
|
-
lt: `${
|
|
835
|
+
lb: `${B} ${d}`,
|
|
836
|
+
lt: `${B} 0`,
|
|
836
837
|
rt: "100% 0",
|
|
837
838
|
rb: `100% ${d}`
|
|
838
839
|
};
|
|
@@ -853,7 +854,7 @@ class st {
|
|
|
853
854
|
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), l && (this.triangleData = void 0));
|
|
854
855
|
}
|
|
855
856
|
}
|
|
856
|
-
const
|
|
857
|
+
const rt = ["id", "data-width", "data-on-forcing-mobile"], ct = { class: "db-header-drawer-navigation" }, vt = { class: "db-header-meta-navigation" }, ft = { class: "db-header-secondary-action" }, pt = { class: "db-header-meta-navigation" }, ht = { class: "db-header-navigation-bar" }, mt = { class: "db-header-brand-container" }, gt = { class: "db-header-navigation-container" }, bt = { class: "db-header-navigation" }, yt = { class: "db-header-primary-action" }, kt = { class: "db-header-action-container" }, wt = { class: "db-header-burger-menu-container" }, St = { class: "db-header-secondary-action" }, ul = /* @__PURE__ */ P({
|
|
857
858
|
__name: "header",
|
|
858
859
|
props: {
|
|
859
860
|
brand: {},
|
|
@@ -877,14 +878,14 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
877
878
|
const a = i, l = s(Le), e = s(!1), t = s(!1), p = s(null);
|
|
878
879
|
Y(() => {
|
|
879
880
|
e.value = !0, l.value = a.id || "header-" + Q();
|
|
880
|
-
}),
|
|
881
|
+
}), D(
|
|
881
882
|
() => [e.value],
|
|
882
883
|
() => {
|
|
883
884
|
if (e.value && document && l.value && a.forceMobile) {
|
|
884
|
-
const
|
|
885
|
+
const r = document.getElementById(
|
|
885
886
|
l.value ?? ""
|
|
886
887
|
);
|
|
887
|
-
|
|
888
|
+
r && aa(r, {
|
|
888
889
|
key: "data-force-mobile",
|
|
889
890
|
value: "true"
|
|
890
891
|
}), t.value = !0;
|
|
@@ -895,63 +896,63 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
895
896
|
flush: "post"
|
|
896
897
|
}
|
|
897
898
|
);
|
|
898
|
-
function d(
|
|
899
|
+
function d(r) {
|
|
899
900
|
const v = !M(a.drawerOpen, "drawerOpen");
|
|
900
901
|
a.onToggle && a.onToggle(v);
|
|
901
902
|
}
|
|
902
|
-
function
|
|
903
|
-
ra(
|
|
903
|
+
function B(r) {
|
|
904
|
+
ra(r) && d();
|
|
904
905
|
}
|
|
905
|
-
return (
|
|
906
|
+
return (r, v) => (m(), S("header", {
|
|
906
907
|
ref_key: "_ref",
|
|
907
908
|
ref: p,
|
|
908
909
|
class: z(n(R)("db-header", a.class)),
|
|
909
910
|
id: l.value,
|
|
910
|
-
"data-width":
|
|
911
|
-
"data-on-forcing-mobile":
|
|
911
|
+
"data-width": r.width,
|
|
912
|
+
"data-on-forcing-mobile": r.forceMobile && !t.value
|
|
912
913
|
}, [
|
|
913
|
-
ae(
|
|
914
|
+
ae(ot, {
|
|
914
915
|
class: "db-header-drawer",
|
|
915
916
|
spacing: "small",
|
|
916
917
|
rounded: !0,
|
|
917
|
-
open: n(M)(
|
|
918
|
+
open: n(M)(r.drawerOpen),
|
|
918
919
|
onClose: (u) => d()
|
|
919
920
|
}, {
|
|
920
921
|
default: G(() => [
|
|
921
|
-
T("div",
|
|
922
|
+
T("div", ct, [
|
|
922
923
|
T("div", {
|
|
923
924
|
class: "db-header-navigation",
|
|
924
|
-
onClick: v[0] || (v[0] = async (u) =>
|
|
925
|
+
onClick: v[0] || (v[0] = async (u) => B(u))
|
|
925
926
|
}, [
|
|
926
|
-
|
|
927
|
+
A(r.$slots, "default")
|
|
927
928
|
]),
|
|
928
|
-
T("div",
|
|
929
|
-
|
|
929
|
+
T("div", vt, [
|
|
930
|
+
A(r.$slots, "meta-navigation")
|
|
930
931
|
])
|
|
931
932
|
]),
|
|
932
|
-
T("div",
|
|
933
|
-
|
|
933
|
+
T("div", ft, [
|
|
934
|
+
A(r.$slots, "secondary-action")
|
|
934
935
|
])
|
|
935
936
|
]),
|
|
936
937
|
_: 3
|
|
937
938
|
}, 8, ["open", "onClose"]),
|
|
938
|
-
T("div", ft, [
|
|
939
|
-
C(c.$slots, "meta-navigation")
|
|
940
|
-
]),
|
|
941
939
|
T("div", pt, [
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
940
|
+
A(r.$slots, "meta-navigation")
|
|
941
|
+
]),
|
|
942
|
+
T("div", ht, [
|
|
945
943
|
T("div", mt, [
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
944
|
+
A(r.$slots, "brand")
|
|
945
|
+
]),
|
|
946
|
+
T("div", gt, [
|
|
949
947
|
T("div", bt, [
|
|
950
|
-
|
|
948
|
+
A(r.$slots, "default")
|
|
949
|
+
]),
|
|
950
|
+
T("div", yt, [
|
|
951
|
+
A(r.$slots, "primary-action")
|
|
951
952
|
])
|
|
952
953
|
]),
|
|
953
|
-
T("div",
|
|
954
|
-
T("div",
|
|
954
|
+
T("div", kt, [
|
|
955
|
+
T("div", wt, [
|
|
955
956
|
ae(Be, {
|
|
956
957
|
icon: "menu",
|
|
957
958
|
variant: "ghost",
|
|
@@ -960,19 +961,19 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
960
961
|
onClick: (u) => d()
|
|
961
962
|
}, {
|
|
962
963
|
default: G(() => [
|
|
963
|
-
|
|
964
|
+
F(_(r.burgerMenuLabel ?? n(Ra)), 1)
|
|
964
965
|
]),
|
|
965
966
|
_: 1
|
|
966
967
|
}, 8, ["id", "onClick"])
|
|
967
968
|
]),
|
|
968
|
-
T("div",
|
|
969
|
-
|
|
969
|
+
T("div", St, [
|
|
970
|
+
A(r.$slots, "secondary-action")
|
|
970
971
|
])
|
|
971
972
|
])
|
|
972
973
|
])
|
|
973
|
-
], 10,
|
|
974
|
+
], 10, rt));
|
|
974
975
|
}
|
|
975
|
-
}),
|
|
976
|
+
}), Bt = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], rl = /* @__PURE__ */ P({
|
|
976
977
|
__name: "icon",
|
|
977
978
|
props: {
|
|
978
979
|
variant: { default: void 0 },
|
|
@@ -988,7 +989,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
988
989
|
},
|
|
989
990
|
setup(i) {
|
|
990
991
|
const a = i, l = s(null);
|
|
991
|
-
return (e, t) => (m(),
|
|
992
|
+
return (e, t) => (m(), S("span", {
|
|
992
993
|
"aria-hidden": "true",
|
|
993
994
|
ref_key: "_ref",
|
|
994
995
|
ref: l,
|
|
@@ -998,12 +999,12 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
998
999
|
"data-icon-weight": e.weight,
|
|
999
1000
|
"data-icon-variant": e.variant
|
|
1000
1001
|
}, [
|
|
1001
|
-
e.text ? (m(),
|
|
1002
|
-
|
|
1003
|
-
], 64)) :
|
|
1004
|
-
], 10,
|
|
1002
|
+
e.text ? (m(), S(U, { key: 0 }, [
|
|
1003
|
+
F(_(e.text), 1)
|
|
1004
|
+
], 64)) : A(e.$slots, "default", { key: 1 })
|
|
1005
|
+
], 10, Bt));
|
|
1005
1006
|
}
|
|
1006
|
-
}),
|
|
1007
|
+
}), It = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"], $t = ["for"], Lt = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "name", "type", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "size", "autoComplete", "autoFocus", "list", "aria-describedby"], _t = ["id"], Tt = ["value"], Ct = {
|
|
1007
1008
|
"data-visually-hidden": "true",
|
|
1008
1009
|
role: "status"
|
|
1009
1010
|
}, Et = /* @__PURE__ */ P({
|
|
@@ -1061,33 +1062,33 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1061
1062
|
},
|
|
1062
1063
|
emits: ["update:value"],
|
|
1063
1064
|
setup(i, { emit: a }) {
|
|
1064
|
-
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0),
|
|
1065
|
+
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0), B = s(void 0), r = s(void 0), v = s(void 0), u = s(""), L = s(""), g = s(""), h = s(null);
|
|
1065
1066
|
Y(() => {
|
|
1066
1067
|
const y = e.id ?? `input-${Q()}`;
|
|
1067
|
-
t.value = y, p.value = y + fe, d.value = y + pe,
|
|
1068
|
-
}),
|
|
1068
|
+
t.value = y, p.value = y + fe, d.value = y + pe, B.value = y + he, v.value = y + ea, r.value = e.invalidMessage || ie;
|
|
1069
|
+
}), D(
|
|
1069
1070
|
() => [h.value, e.invalidMessage],
|
|
1070
1071
|
() => {
|
|
1071
1072
|
var y;
|
|
1072
|
-
|
|
1073
|
+
r.value = e.invalidMessage || ((y = h.value) == null ? void 0 : y.validationMessage) || ie;
|
|
1073
1074
|
},
|
|
1074
1075
|
{
|
|
1075
1076
|
immediate: !0,
|
|
1076
1077
|
flush: "post"
|
|
1077
1078
|
}
|
|
1078
|
-
),
|
|
1079
|
+
), D(
|
|
1079
1080
|
() => [t.value],
|
|
1080
1081
|
() => {
|
|
1081
1082
|
if (t.value) {
|
|
1082
1083
|
const y = t.value + fe;
|
|
1083
|
-
p.value = y, d.value = t.value + pe,
|
|
1084
|
+
p.value = y, d.value = t.value + pe, B.value = t.value + he, v.value = e.dataListId ?? t.value + ea, ee(e.message, e.showMessage) && (u.value = y);
|
|
1084
1085
|
}
|
|
1085
1086
|
},
|
|
1086
1087
|
{
|
|
1087
1088
|
immediate: !0,
|
|
1088
1089
|
flush: "post"
|
|
1089
1090
|
}
|
|
1090
|
-
),
|
|
1091
|
+
), D(
|
|
1091
1092
|
() => [e.value],
|
|
1092
1093
|
() => {
|
|
1093
1094
|
L.value = e.value;
|
|
@@ -1100,32 +1101,32 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1100
1101
|
function f() {
|
|
1101
1102
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1102
1103
|
}
|
|
1103
|
-
function
|
|
1104
|
-
var y,
|
|
1105
|
-
!((y = h.value) != null && y.validity.valid) || e.validation === "invalid" ? (u.value =
|
|
1104
|
+
function c() {
|
|
1105
|
+
var y, O, w;
|
|
1106
|
+
!((y = h.value) != null && y.validity.valid) || e.validation === "invalid" ? (u.value = B.value, r.value = e.invalidMessage || ((O = h.value) == null ? void 0 : O.validationMessage) || ie, ve() && (g.value = r.value, x(() => g.value = "", 1e3))) : f() && ((w = h.value) != null && w.validity.valid) && (e.required || e.minLength || e.maxLength || e.pattern) ? (u.value = d.value, ve() && (g.value = e.validMessage ?? me, x(() => g.value = "", 1e3))) : ee(e.message, e.showMessage) ? u.value = p.value : u.value = "";
|
|
1106
1107
|
}
|
|
1107
1108
|
function I(y) {
|
|
1108
|
-
e.input && e.input(y), L.value = y.target.value, e.onInput && e.onInput(y), se(l, y),
|
|
1109
|
+
e.input && e.input(y), L.value = y.target.value, e.onInput && e.onInput(y), se(l, y), c();
|
|
1109
1110
|
}
|
|
1110
|
-
function
|
|
1111
|
-
e.onChange && e.onChange(y), se(l, y),
|
|
1111
|
+
function C(y) {
|
|
1112
|
+
e.onChange && e.onChange(y), se(l, y), c();
|
|
1112
1113
|
}
|
|
1113
1114
|
function b(y) {
|
|
1114
1115
|
e.onBlur && e.onBlur(y);
|
|
1115
1116
|
}
|
|
1116
|
-
function
|
|
1117
|
+
function k(y) {
|
|
1117
1118
|
e.onFocus && e.onFocus(y);
|
|
1118
1119
|
}
|
|
1119
|
-
function
|
|
1120
|
+
function W() {
|
|
1120
1121
|
const y = e.dataList;
|
|
1121
1122
|
return Array.from(
|
|
1122
|
-
(
|
|
1123
|
-
value:
|
|
1123
|
+
(Ea(y) ? y == null ? void 0 : y.map((O) => ({
|
|
1124
|
+
value: O,
|
|
1124
1125
|
label: void 0
|
|
1125
1126
|
})) : y) || []
|
|
1126
1127
|
);
|
|
1127
1128
|
}
|
|
1128
|
-
return (y,
|
|
1129
|
+
return (y, O) => (m(), S("div", {
|
|
1129
1130
|
class: z(n(R)("db-input", e.class)),
|
|
1130
1131
|
"data-variant": y.variant,
|
|
1131
1132
|
"data-hide-label": n(K)(y.showLabel),
|
|
@@ -1134,7 +1135,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1134
1135
|
"data-icon-after": y.iconAfter,
|
|
1135
1136
|
"data-hide-icon-after": n(K)(y.showIcon)
|
|
1136
1137
|
}, [
|
|
1137
|
-
T("label", { for: t.value }, _(y.label ?? n(Se)), 9,
|
|
1138
|
+
T("label", { for: t.value }, _(y.label ?? n(Se)), 9, $t),
|
|
1138
1139
|
T("input", {
|
|
1139
1140
|
"aria-invalid": y.validation === "invalid",
|
|
1140
1141
|
"data-custom-validity": y.validation,
|
|
@@ -1159,23 +1160,23 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1159
1160
|
size: y.size,
|
|
1160
1161
|
autoComplete: y.autocomplete,
|
|
1161
1162
|
autoFocus: n(M)(y.autofocus, "autofocus"),
|
|
1162
|
-
onInput:
|
|
1163
|
-
onChange:
|
|
1164
|
-
onBlur:
|
|
1165
|
-
onFocus:
|
|
1163
|
+
onInput: O[0] || (O[0] = async (w) => I(w)),
|
|
1164
|
+
onChange: O[1] || (O[1] = async (w) => C(w)),
|
|
1165
|
+
onBlur: O[2] || (O[2] = async (w) => b(w)),
|
|
1166
|
+
onFocus: O[3] || (O[3] = async (w) => k(w)),
|
|
1166
1167
|
list: y.dataList && v.value,
|
|
1167
1168
|
"aria-describedby": y.ariaDescribedBy ?? u.value
|
|
1168
|
-
}, null, 40,
|
|
1169
|
-
y.dataList ? (m(),
|
|
1169
|
+
}, null, 40, Lt),
|
|
1170
|
+
y.dataList ? (m(), S("datalist", {
|
|
1170
1171
|
key: 0,
|
|
1171
1172
|
id: v.value
|
|
1172
1173
|
}, [
|
|
1173
|
-
(m(!0),
|
|
1174
|
-
key: v.value + "-option-" +
|
|
1175
|
-
value:
|
|
1176
|
-
}, _(
|
|
1177
|
-
], 8,
|
|
1178
|
-
|
|
1174
|
+
(m(!0), S(U, null, be(W(), (w) => (m(), S("option", {
|
|
1175
|
+
key: v.value + "-option-" + w.value,
|
|
1176
|
+
value: w.value
|
|
1177
|
+
}, _(w.label), 9, Tt))), 128))
|
|
1178
|
+
], 8, _t)) : V("", !0),
|
|
1179
|
+
A(y.$slots, "default"),
|
|
1179
1180
|
n(ee)(y.message, y.showMessage) ? (m(), Z(te, {
|
|
1180
1181
|
key: 1,
|
|
1181
1182
|
size: "small",
|
|
@@ -1183,7 +1184,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1183
1184
|
id: p.value
|
|
1184
1185
|
}, {
|
|
1185
1186
|
default: G(() => [
|
|
1186
|
-
|
|
1187
|
+
F(_(y.message), 1)
|
|
1187
1188
|
]),
|
|
1188
1189
|
_: 1
|
|
1189
1190
|
}, 8, ["icon", "id"])) : V("", !0),
|
|
@@ -1194,24 +1195,24 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1194
1195
|
id: d.value
|
|
1195
1196
|
}, {
|
|
1196
1197
|
default: G(() => [
|
|
1197
|
-
|
|
1198
|
+
F(_(y.validMessage || n(me)), 1)
|
|
1198
1199
|
]),
|
|
1199
1200
|
_: 1
|
|
1200
1201
|
}, 8, ["id"])) : V("", !0),
|
|
1201
1202
|
ae(te, {
|
|
1202
1203
|
size: "small",
|
|
1203
1204
|
semantic: "critical",
|
|
1204
|
-
id:
|
|
1205
|
+
id: B.value
|
|
1205
1206
|
}, {
|
|
1206
1207
|
default: G(() => [
|
|
1207
|
-
|
|
1208
|
+
F(_(r.value), 1)
|
|
1208
1209
|
]),
|
|
1209
1210
|
_: 1
|
|
1210
1211
|
}, 8, ["id"]),
|
|
1211
|
-
T("span",
|
|
1212
|
-
], 10,
|
|
1212
|
+
T("span", Ct, _(g.value), 1)
|
|
1213
|
+
], 10, It));
|
|
1213
1214
|
}
|
|
1214
|
-
}),
|
|
1215
|
+
}), At = ["id", "href", "target", "rel", "role", "hrefLang", "aria-disabled", "tabIndex", "aria-selected", "aria-label", "aria-current", "data-size", "data-hide-icon-after", "data-variant", "data-content"], cl = /* @__PURE__ */ P({
|
|
1215
1216
|
__name: "link",
|
|
1216
1217
|
props: {
|
|
1217
1218
|
content: { default: void 0 },
|
|
@@ -1242,7 +1243,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1242
1243
|
function e(t) {
|
|
1243
1244
|
a.onClick && a.onClick(t);
|
|
1244
1245
|
}
|
|
1245
|
-
return (t, p) => (m(),
|
|
1246
|
+
return (t, p) => (m(), S("a", {
|
|
1246
1247
|
ref_key: "_ref",
|
|
1247
1248
|
ref: l,
|
|
1248
1249
|
id: t.id,
|
|
@@ -1263,12 +1264,12 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1263
1264
|
"data-content": t.content || "internal",
|
|
1264
1265
|
onClick: p[0] || (p[0] = async (d) => e(d))
|
|
1265
1266
|
}, [
|
|
1266
|
-
t.text ? (m(),
|
|
1267
|
-
|
|
1268
|
-
], 64)) :
|
|
1269
|
-
], 10,
|
|
1267
|
+
t.text ? (m(), S(U, { key: 0 }, [
|
|
1268
|
+
F(_(t.text), 1)
|
|
1269
|
+
], 64)) : A(t.$slots, "default", { key: 1 })
|
|
1270
|
+
], 10, At));
|
|
1270
1271
|
}
|
|
1271
|
-
}),
|
|
1272
|
+
}), Dt = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], vl = /* @__PURE__ */ P({
|
|
1272
1273
|
__name: "page",
|
|
1273
1274
|
props: {
|
|
1274
1275
|
documentOverflow: { default: void 0 },
|
|
@@ -1290,9 +1291,9 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1290
1291
|
l.value = !a.fadeIn, document && a.fadeIn ? document.fonts.ready.then(() => {
|
|
1291
1292
|
l.value = !0;
|
|
1292
1293
|
}) : l.value = !0;
|
|
1293
|
-
}),
|
|
1294
|
+
}), Ca(() => {
|
|
1294
1295
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
1295
|
-
}), (t, p) => (m(),
|
|
1296
|
+
}), (t, p) => (m(), S("div", {
|
|
1296
1297
|
ref_key: "_ref",
|
|
1297
1298
|
ref: e,
|
|
1298
1299
|
id: t.id,
|
|
@@ -1301,16 +1302,16 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1301
1302
|
"data-fade-in": n(X)(t.fadeIn),
|
|
1302
1303
|
"data-fonts-loaded": n(X)(l.value)
|
|
1303
1304
|
}, [
|
|
1304
|
-
|
|
1305
|
+
A(t.$slots, "header"),
|
|
1305
1306
|
T("main", {
|
|
1306
1307
|
class: z(n(R)("db-main", t.mainClass))
|
|
1307
1308
|
}, [
|
|
1308
|
-
|
|
1309
|
+
A(t.$slots, "default")
|
|
1309
1310
|
], 2),
|
|
1310
|
-
|
|
1311
|
-
], 10,
|
|
1311
|
+
A(t.$slots, "footer")
|
|
1312
|
+
], 10, Dt));
|
|
1312
1313
|
}
|
|
1313
|
-
}),
|
|
1314
|
+
}), Ft = ["data-size", "data-hide-label", "for"], Nt = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "aria-describedby", "value", "required"], fl = /* @__PURE__ */ P({
|
|
1314
1315
|
__name: "radio",
|
|
1315
1316
|
props: {
|
|
1316
1317
|
children: { default: void 0 },
|
|
@@ -1342,7 +1343,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1342
1343
|
const l = a, e = i, t = s(!1), p = s(void 0), d = s(null);
|
|
1343
1344
|
Y(() => {
|
|
1344
1345
|
t.value = !0, p.value = e.id ?? `radio-${Q()}`;
|
|
1345
|
-
}),
|
|
1346
|
+
}), D(
|
|
1346
1347
|
() => [t.value, d.value, e.checked],
|
|
1347
1348
|
() => {
|
|
1348
1349
|
e.checked && t.value && d.value && (d.value.checked = !0);
|
|
@@ -1352,16 +1353,16 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1352
1353
|
flush: "post"
|
|
1353
1354
|
}
|
|
1354
1355
|
);
|
|
1355
|
-
function
|
|
1356
|
+
function B(u) {
|
|
1356
1357
|
e.onChange && e.onChange(u), se(l, u);
|
|
1357
1358
|
}
|
|
1358
|
-
function
|
|
1359
|
+
function r(u) {
|
|
1359
1360
|
e.onBlur && e.onBlur(u);
|
|
1360
1361
|
}
|
|
1361
1362
|
function v(u) {
|
|
1362
1363
|
e.onFocus && e.onFocus(u);
|
|
1363
1364
|
}
|
|
1364
|
-
return (u, L) => (m(),
|
|
1365
|
+
return (u, L) => (m(), S("label", {
|
|
1365
1366
|
"data-size": u.size,
|
|
1366
1367
|
"data-hide-label": n(K)(u.showLabel),
|
|
1367
1368
|
class: z(n(R)("db-radio", e.class)),
|
|
@@ -1380,16 +1381,16 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1380
1381
|
"aria-describedby": u.describedbyid ?? u.ariaDescribedBy,
|
|
1381
1382
|
value: u.value,
|
|
1382
1383
|
required: n(M)(u.required, "required"),
|
|
1383
|
-
onChange: L[0] || (L[0] = async (g) =>
|
|
1384
|
-
onBlur: L[1] || (L[1] = async (g) =>
|
|
1384
|
+
onChange: L[0] || (L[0] = async (g) => B(g)),
|
|
1385
|
+
onBlur: L[1] || (L[1] = async (g) => r(g)),
|
|
1385
1386
|
onFocus: L[2] || (L[2] = async (g) => v(g))
|
|
1386
|
-
}, null, 40,
|
|
1387
|
-
u.label ? (m(),
|
|
1388
|
-
|
|
1389
|
-
], 64)) :
|
|
1390
|
-
], 10,
|
|
1387
|
+
}, null, 40, Nt),
|
|
1388
|
+
u.label ? (m(), S(U, { key: 0 }, [
|
|
1389
|
+
F(_(u.label), 1)
|
|
1390
|
+
], 64)) : A(u.$slots, "default", { key: 1 })
|
|
1391
|
+
], 10, Ft));
|
|
1391
1392
|
}
|
|
1392
|
-
}),
|
|
1393
|
+
}), Mt = ["id", "data-spacing", "data-width"], pl = /* @__PURE__ */ P({
|
|
1393
1394
|
__name: "section",
|
|
1394
1395
|
props: {
|
|
1395
1396
|
children: { default: void 0 },
|
|
@@ -1405,7 +1406,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1405
1406
|
const a = i, l = s(Le), e = s(null);
|
|
1406
1407
|
return Y(() => {
|
|
1407
1408
|
l.value = a.id || "section-" + Q();
|
|
1408
|
-
}), (t, p) => (m(),
|
|
1409
|
+
}), (t, p) => (m(), S("section", {
|
|
1409
1410
|
ref_key: "_ref",
|
|
1410
1411
|
ref: e,
|
|
1411
1412
|
id: l.value,
|
|
@@ -1413,13 +1414,13 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1413
1414
|
"data-spacing": t.spacing || "medium",
|
|
1414
1415
|
"data-width": t.width
|
|
1415
1416
|
}, [
|
|
1416
|
-
|
|
1417
|
-
], 10,
|
|
1417
|
+
A(t.$slots, "default")
|
|
1418
|
+
], 10, Mt));
|
|
1418
1419
|
}
|
|
1419
|
-
}),
|
|
1420
|
+
}), zt = ["data-variant", "data-hide-label", "data-icon", "data-hide-icon"], Rt = ["for"], Vt = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], Pt = ["label"], Ut = ["value", "selected", "disabled"], qt = ["value", "disabled", "selected"], Gt = ["id"], Wt = {
|
|
1420
1421
|
"data-visually-hidden": "true",
|
|
1421
1422
|
role: "status"
|
|
1422
|
-
},
|
|
1423
|
+
}, hl = /* @__PURE__ */ P({
|
|
1423
1424
|
__name: "select",
|
|
1424
1425
|
props: {
|
|
1425
1426
|
children: { default: void 0 },
|
|
@@ -1462,34 +1463,34 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1462
1463
|
},
|
|
1463
1464
|
emits: ["update:value"],
|
|
1464
1465
|
setup(i, { emit: a }) {
|
|
1465
|
-
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0),
|
|
1466
|
+
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0), B = s(void 0), r = s(void 0), v = s(""), u = s(""), L = s(""), g = s(!1), h = s(""), f = s(null);
|
|
1466
1467
|
Y(() => {
|
|
1467
1468
|
g.value = !0;
|
|
1468
|
-
const
|
|
1469
|
-
t.value =
|
|
1470
|
-
}),
|
|
1469
|
+
const w = e.id ?? `select-${Q()}`;
|
|
1470
|
+
t.value = w, p.value = w + fe, d.value = w + pe, B.value = w + he, v.value = w + ze, r.value = e.invalidMessage || ie;
|
|
1471
|
+
}), D(
|
|
1471
1472
|
() => [f.value, e.invalidMessage],
|
|
1472
1473
|
() => {
|
|
1473
|
-
var
|
|
1474
|
-
|
|
1474
|
+
var w;
|
|
1475
|
+
r.value = e.invalidMessage || ((w = f.value) == null ? void 0 : w.validationMessage) || ie;
|
|
1475
1476
|
},
|
|
1476
1477
|
{
|
|
1477
1478
|
immediate: !0,
|
|
1478
1479
|
flush: "post"
|
|
1479
1480
|
}
|
|
1480
|
-
),
|
|
1481
|
+
), D(
|
|
1481
1482
|
() => [t.value, g.value],
|
|
1482
1483
|
() => {
|
|
1483
1484
|
if (t.value && g.value) {
|
|
1484
|
-
const
|
|
1485
|
-
p.value =
|
|
1485
|
+
const w = t.value + fe, H = t.value + ze;
|
|
1486
|
+
p.value = w, d.value = t.value + pe, B.value = t.value + he, v.value = H, ee(e.message, e.showMessage) ? u.value = w : u.value = H, g.value = !1;
|
|
1486
1487
|
}
|
|
1487
1488
|
},
|
|
1488
1489
|
{
|
|
1489
1490
|
immediate: !0,
|
|
1490
1491
|
flush: "post"
|
|
1491
1492
|
}
|
|
1492
|
-
),
|
|
1493
|
+
), D(
|
|
1493
1494
|
() => [e.value],
|
|
1494
1495
|
() => {
|
|
1495
1496
|
L.value = e.value;
|
|
@@ -1499,120 +1500,120 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1499
1500
|
flush: "post"
|
|
1500
1501
|
}
|
|
1501
1502
|
);
|
|
1502
|
-
function
|
|
1503
|
+
function c() {
|
|
1503
1504
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1504
1505
|
}
|
|
1505
1506
|
function I() {
|
|
1506
|
-
var
|
|
1507
|
-
!((
|
|
1507
|
+
var w, H, le;
|
|
1508
|
+
!((w = f.value) != null && w.validity.valid) || e.validation === "invalid" ? (u.value = B.value, r.value = e.invalidMessage || ((H = f.value) == null ? void 0 : H.validationMessage) || ie, ve() && (h.value = r.value, x(() => h.value = "", 1e3))) : c() && ((le = f.value) != null && le.validity.valid) && e.required ? (u.value = d.value, ve() && (h.value = e.validMessage ?? me, x(() => h.value = "", 1e3))) : ee(e.message, e.showMessage) ? u.value = p.value : u.value = v.value;
|
|
1508
1509
|
}
|
|
1509
|
-
function
|
|
1510
|
-
e.onClick && e.onClick(
|
|
1510
|
+
function C(w) {
|
|
1511
|
+
e.onClick && e.onClick(w);
|
|
1511
1512
|
}
|
|
1512
|
-
function b(
|
|
1513
|
-
e.input && e.input(
|
|
1513
|
+
function b(w) {
|
|
1514
|
+
e.input && e.input(w), L.value = w.target.value, e.onInput && e.onInput(w), se(l, w), I();
|
|
1514
1515
|
}
|
|
1515
|
-
function w
|
|
1516
|
-
e.onChange && e.onChange(
|
|
1516
|
+
function k(w) {
|
|
1517
|
+
e.onChange && e.onChange(w), se(l, w), I();
|
|
1517
1518
|
}
|
|
1518
|
-
function
|
|
1519
|
-
e.onBlur && e.onBlur(
|
|
1519
|
+
function W(w) {
|
|
1520
|
+
e.onBlur && e.onBlur(w);
|
|
1520
1521
|
}
|
|
1521
|
-
function y(
|
|
1522
|
-
e.onFocus && e.onFocus(
|
|
1522
|
+
function y(w) {
|
|
1523
|
+
e.onFocus && e.onFocus(w);
|
|
1523
1524
|
}
|
|
1524
|
-
function
|
|
1525
|
+
function O(w) {
|
|
1525
1526
|
var H;
|
|
1526
|
-
return
|
|
1527
|
+
return w.label ?? ((H = w.value) == null ? void 0 : H.toString());
|
|
1527
1528
|
}
|
|
1528
|
-
return (
|
|
1529
|
+
return (w, H) => {
|
|
1529
1530
|
var le;
|
|
1530
|
-
return m(),
|
|
1531
|
+
return m(), S("div", {
|
|
1531
1532
|
class: z(n(R)("db-select", e.class)),
|
|
1532
|
-
"data-variant":
|
|
1533
|
-
"data-hide-label": n(K)(
|
|
1534
|
-
"data-icon":
|
|
1535
|
-
"data-hide-icon": n(K)(
|
|
1533
|
+
"data-variant": w.variant,
|
|
1534
|
+
"data-hide-label": n(K)(w.showLabel),
|
|
1535
|
+
"data-icon": w.icon,
|
|
1536
|
+
"data-hide-icon": n(K)(w.showIcon)
|
|
1536
1537
|
}, [
|
|
1537
|
-
T("label", { for: t.value }, _(
|
|
1538
|
+
T("label", { for: t.value }, _(w.label ?? n(Se)), 9, Rt),
|
|
1538
1539
|
T("select", {
|
|
1539
|
-
"aria-invalid":
|
|
1540
|
-
"data-custom-validity":
|
|
1540
|
+
"aria-invalid": w.validation === "invalid",
|
|
1541
|
+
"data-custom-validity": w.validation,
|
|
1541
1542
|
ref_key: "_ref",
|
|
1542
1543
|
ref: f,
|
|
1543
|
-
required: n(M)(
|
|
1544
|
-
disabled: n(M)(
|
|
1544
|
+
required: n(M)(w.required, "required"),
|
|
1545
|
+
disabled: n(M)(w.disabled, "disabled"),
|
|
1545
1546
|
id: t.value,
|
|
1546
|
-
name:
|
|
1547
|
-
size:
|
|
1548
|
-
value:
|
|
1549
|
-
autocomplete:
|
|
1550
|
-
multiple:
|
|
1547
|
+
name: w.name,
|
|
1548
|
+
size: w.size,
|
|
1549
|
+
value: w.value ?? L.value,
|
|
1550
|
+
autocomplete: w.autocomplete,
|
|
1551
|
+
multiple: w.multiple,
|
|
1551
1552
|
onInput: H[0] || (H[0] = async (J) => b(J)),
|
|
1552
|
-
onClick: H[1] || (H[1] = async (J) =>
|
|
1553
|
-
onChange: H[2] || (H[2] = async (J) =>
|
|
1554
|
-
onBlur: H[3] || (H[3] = async (J) =>
|
|
1553
|
+
onClick: H[1] || (H[1] = async (J) => C(J)),
|
|
1554
|
+
onChange: H[2] || (H[2] = async (J) => k(J)),
|
|
1555
|
+
onBlur: H[3] || (H[3] = async (J) => W(J)),
|
|
1555
1556
|
onFocus: H[4] || (H[4] = async (J) => y(J)),
|
|
1556
|
-
"aria-describedby":
|
|
1557
|
+
"aria-describedby": w.ariaDescribedBy ?? u.value
|
|
1557
1558
|
}, [
|
|
1558
1559
|
H[5] || (H[5] = T("option", { hidden: !0 }, null, -1)),
|
|
1559
|
-
(le =
|
|
1560
|
-
J.options ? (m(),
|
|
1560
|
+
(le = w.options) != null && le.length ? (m(!0), S(U, { key: 0 }, be(w.options, (J, Fe) => (m(), S(U, { key: Fe }, [
|
|
1561
|
+
J.options ? (m(), S("optgroup", {
|
|
1561
1562
|
key: 0,
|
|
1562
|
-
label:
|
|
1563
|
+
label: O(J)
|
|
1563
1564
|
}, [
|
|
1564
|
-
(m(!0),
|
|
1565
|
+
(m(!0), S(U, null, be(J.options, (ye, Te) => (m(), S("option", {
|
|
1565
1566
|
key: Te,
|
|
1566
1567
|
value: ye.value,
|
|
1567
1568
|
selected: ye.selected,
|
|
1568
1569
|
disabled: ye.disabled
|
|
1569
|
-
}, _(
|
|
1570
|
-
], 8,
|
|
1570
|
+
}, _(O(ye)), 9, Ut))), 128))
|
|
1571
|
+
], 8, Pt)) : (m(), S("option", {
|
|
1571
1572
|
key: 1,
|
|
1572
1573
|
value: J.value,
|
|
1573
1574
|
disabled: J.disabled,
|
|
1574
1575
|
selected: J.selected
|
|
1575
|
-
}, _(
|
|
1576
|
-
], 64))), 128)) :
|
|
1577
|
-
], 40,
|
|
1578
|
-
T("span", { id: v.value }, _(
|
|
1579
|
-
n(ee)(
|
|
1576
|
+
}, _(O(J)), 9, qt))
|
|
1577
|
+
], 64))), 128)) : A(w.$slots, "default", { key: 1 })
|
|
1578
|
+
], 40, Vt),
|
|
1579
|
+
T("span", { id: v.value }, _(w.placeholder ?? w.label), 9, Gt),
|
|
1580
|
+
n(ee)(w.message, w.showMessage) ? (m(), Z(te, {
|
|
1580
1581
|
key: 0,
|
|
1581
1582
|
size: "small",
|
|
1582
|
-
icon:
|
|
1583
|
+
icon: w.messageIcon,
|
|
1583
1584
|
id: p.value
|
|
1584
1585
|
}, {
|
|
1585
1586
|
default: G(() => [
|
|
1586
|
-
|
|
1587
|
+
F(_(w.message), 1)
|
|
1587
1588
|
]),
|
|
1588
1589
|
_: 1
|
|
1589
1590
|
}, 8, ["icon", "id"])) : V("", !0),
|
|
1590
|
-
|
|
1591
|
+
c() ? (m(), Z(te, {
|
|
1591
1592
|
key: 1,
|
|
1592
1593
|
size: "small",
|
|
1593
1594
|
semantic: "successful",
|
|
1594
1595
|
id: d.value
|
|
1595
1596
|
}, {
|
|
1596
1597
|
default: G(() => [
|
|
1597
|
-
|
|
1598
|
+
F(_(w.validMessage || n(me)), 1)
|
|
1598
1599
|
]),
|
|
1599
1600
|
_: 1
|
|
1600
1601
|
}, 8, ["id"])) : V("", !0),
|
|
1601
1602
|
ae(te, {
|
|
1602
1603
|
size: "small",
|
|
1603
1604
|
semantic: "critical",
|
|
1604
|
-
id:
|
|
1605
|
+
id: B.value
|
|
1605
1606
|
}, {
|
|
1606
1607
|
default: G(() => [
|
|
1607
|
-
|
|
1608
|
+
F(_(r.value), 1)
|
|
1608
1609
|
]),
|
|
1609
1610
|
_: 1
|
|
1610
1611
|
}, 8, ["id"]),
|
|
1611
|
-
T("span",
|
|
1612
|
-
], 10,
|
|
1612
|
+
T("span", Wt, _(h.value), 1)
|
|
1613
|
+
], 10, zt);
|
|
1613
1614
|
};
|
|
1614
1615
|
}
|
|
1615
|
-
}),
|
|
1616
|
+
}), Ot = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for"], Ht = ["id", "aria-checked", "checked", "value", "disabled", "aria-describedby", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-after"], ml = /* @__PURE__ */ P({
|
|
1616
1617
|
__name: "switch",
|
|
1617
1618
|
props: {
|
|
1618
1619
|
visualAid: { type: [Boolean, String], default: void 0 },
|
|
@@ -1648,7 +1649,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1648
1649
|
const l = a, e = i, t = s(void 0), p = s(!1), d = s(null);
|
|
1649
1650
|
Y(() => {
|
|
1650
1651
|
t.value = e.id ?? `switch-${Q()}`;
|
|
1651
|
-
}),
|
|
1652
|
+
}), D(
|
|
1652
1653
|
() => [e.checked],
|
|
1653
1654
|
() => {
|
|
1654
1655
|
e.checked !== void 0 && e.checked !== null && (p.value = M(e.checked));
|
|
@@ -1658,17 +1659,17 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1658
1659
|
flush: "post"
|
|
1659
1660
|
}
|
|
1660
1661
|
);
|
|
1661
|
-
function
|
|
1662
|
+
function B(u) {
|
|
1662
1663
|
var L;
|
|
1663
1664
|
e.onChange && e.onChange(u), p.value = (L = u.target) == null ? void 0 : L.checked, se(l, u, "checked");
|
|
1664
1665
|
}
|
|
1665
|
-
function
|
|
1666
|
+
function r(u) {
|
|
1666
1667
|
e.onBlur && e.onBlur(u);
|
|
1667
1668
|
}
|
|
1668
1669
|
function v(u) {
|
|
1669
1670
|
e.onFocus && e.onFocus(u);
|
|
1670
1671
|
}
|
|
1671
|
-
return (u, L) => (m(),
|
|
1672
|
+
return (u, L) => (m(), S("label", {
|
|
1672
1673
|
"data-visual-aid": n(X)(u.visualAid),
|
|
1673
1674
|
"data-size": u.size,
|
|
1674
1675
|
"data-hide-label": n(K)(u.showLabel),
|
|
@@ -1693,16 +1694,16 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1693
1694
|
required: n(M)(u.required, "required"),
|
|
1694
1695
|
"data-aid-icon": u.icon,
|
|
1695
1696
|
"data-aid-icon-after": u.iconAfter,
|
|
1696
|
-
onChange: L[0] || (L[0] = async (g) =>
|
|
1697
|
-
onBlur: L[1] || (L[1] = async (g) =>
|
|
1697
|
+
onChange: L[0] || (L[0] = async (g) => B(g)),
|
|
1698
|
+
onBlur: L[1] || (L[1] = async (g) => r(g)),
|
|
1698
1699
|
onFocus: L[2] || (L[2] = async (g) => v(g))
|
|
1699
|
-
}, null, 40,
|
|
1700
|
-
u.label ? (m(),
|
|
1701
|
-
|
|
1702
|
-
], 64)) :
|
|
1703
|
-
], 10,
|
|
1700
|
+
}, null, 40, Ht),
|
|
1701
|
+
u.label ? (m(), S(U, { key: 0 }, [
|
|
1702
|
+
F(_(u.label), 1)
|
|
1703
|
+
], 64)) : A(u.$slots, "default", { key: 1 })
|
|
1704
|
+
], 10, Ot));
|
|
1704
1705
|
}
|
|
1705
|
-
}),
|
|
1706
|
+
}), Xt = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], jt = ["disabled", "aria-selected", "aria-controls", "checked", "name", "id"], Yt = /* @__PURE__ */ P({
|
|
1706
1707
|
__name: "tab-item",
|
|
1707
1708
|
props: {
|
|
1708
1709
|
children: { default: void 0 },
|
|
@@ -1726,19 +1727,19 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1726
1727
|
},
|
|
1727
1728
|
emits: ["update:checked"],
|
|
1728
1729
|
setup(i, { emit: a }) {
|
|
1729
|
-
const l = a, e = i, t = s(!1), p = s(void 0), d = s(!1),
|
|
1730
|
+
const l = a, e = i, t = s(!1), p = s(void 0), d = s(!1), B = s(null);
|
|
1730
1731
|
Y(() => {
|
|
1731
1732
|
d.value = !0;
|
|
1732
|
-
}),
|
|
1733
|
-
() => [
|
|
1733
|
+
}), D(
|
|
1734
|
+
() => [B.value, d.value],
|
|
1734
1735
|
() => {
|
|
1735
|
-
d.value &&
|
|
1736
|
+
d.value && B.value && (e.active && B.value.click(), d.value = !1);
|
|
1736
1737
|
},
|
|
1737
1738
|
{
|
|
1738
1739
|
immediate: !0,
|
|
1739
1740
|
flush: "post"
|
|
1740
1741
|
}
|
|
1741
|
-
),
|
|
1742
|
+
), D(
|
|
1742
1743
|
() => [e.name],
|
|
1743
1744
|
() => {
|
|
1744
1745
|
e.name && (p.value = e.name);
|
|
@@ -1748,11 +1749,11 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1748
1749
|
flush: "post"
|
|
1749
1750
|
}
|
|
1750
1751
|
);
|
|
1751
|
-
function
|
|
1752
|
+
function r(v) {
|
|
1752
1753
|
var u;
|
|
1753
1754
|
v.stopPropagation(), e.onChange && e.onChange(v), t.value = (u = v.target) == null ? void 0 : u.checked, se(l, v, "checked");
|
|
1754
1755
|
}
|
|
1755
|
-
return (v, u) => (m(),
|
|
1756
|
+
return (v, u) => (m(), S("li", {
|
|
1756
1757
|
role: "none",
|
|
1757
1758
|
class: z(n(R)("db-tab-item", e.class))
|
|
1758
1759
|
}, [
|
|
@@ -1772,16 +1773,16 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1772
1773
|
"aria-controls": v.controls,
|
|
1773
1774
|
checked: n(M)(v.checked, "checked"),
|
|
1774
1775
|
ref_key: "_ref",
|
|
1775
|
-
ref:
|
|
1776
|
+
ref: B,
|
|
1776
1777
|
name: p.value,
|
|
1777
1778
|
id: v.id,
|
|
1778
|
-
onInput: u[0] || (u[0] = async (L) =>
|
|
1779
|
-
}, null, 40,
|
|
1780
|
-
v.label ? (m(),
|
|
1781
|
-
|
|
1779
|
+
onInput: u[0] || (u[0] = async (L) => r(L))
|
|
1780
|
+
}, null, 40, jt),
|
|
1781
|
+
v.label ? (m(), S(U, { key: 0 }, [
|
|
1782
|
+
F(_(v.label), 1)
|
|
1782
1783
|
], 64)) : V("", !0),
|
|
1783
|
-
|
|
1784
|
-
], 8,
|
|
1784
|
+
A(v.$slots, "default")
|
|
1785
|
+
], 8, Xt)
|
|
1785
1786
|
], 2));
|
|
1786
1787
|
}
|
|
1787
1788
|
}), re = class re {
|
|
@@ -1809,7 +1810,7 @@ const ut = ["id", "data-width", "data-on-forcing-mobile"], rt = { class: "db-hea
|
|
|
1809
1810
|
};
|
|
1810
1811
|
de(re, "callbacks", {}), de(re, "_instance", null);
|
|
1811
1812
|
let Ie = re;
|
|
1812
|
-
const
|
|
1813
|
+
const Kt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], ca = /* @__PURE__ */ P({
|
|
1813
1814
|
__name: "tooltip",
|
|
1814
1815
|
props: {
|
|
1815
1816
|
showArrow: { type: [Boolean, String], default: void 0 },
|
|
@@ -1830,18 +1831,18 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1830
1831
|
const a = i, l = s(Le), e = s(!1), t = s(void 0), p = s(void 0), d = s(null);
|
|
1831
1832
|
Y(() => {
|
|
1832
1833
|
l.value = a.id || "tooltip-" + Q(), e.value = !0;
|
|
1833
|
-
}),
|
|
1834
|
+
}), D(
|
|
1834
1835
|
() => [d.value, e.value],
|
|
1835
1836
|
() => {
|
|
1836
1837
|
if (d.value && e.value && l.value) {
|
|
1837
1838
|
const f = v();
|
|
1838
|
-
f && (["mouseenter", "focusin"].forEach((
|
|
1839
|
-
f.addEventListener(
|
|
1840
|
-
}), f.addEventListener("keydown", (
|
|
1841
|
-
f.addEventListener(
|
|
1842
|
-
}), f.setAttribute("data-has-tooltip", "true"), a.variant === "label" ? f.setAttribute("aria-labelledby", l.value) : f.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (p.value = new IntersectionObserver((
|
|
1843
|
-
const I =
|
|
1844
|
-
I && !I.isIntersecting &&
|
|
1839
|
+
f && (["mouseenter", "focusin"].forEach((c) => {
|
|
1840
|
+
f.addEventListener(c, () => h(f));
|
|
1841
|
+
}), f.addEventListener("keydown", (c) => r(c)), ["mouseleave", "focusout"].forEach((c) => {
|
|
1842
|
+
f.addEventListener(c, () => g());
|
|
1843
|
+
}), f.setAttribute("data-has-tooltip", "true"), a.variant === "label" ? f.setAttribute("aria-labelledby", l.value) : f.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (p.value = new IntersectionObserver((c) => {
|
|
1844
|
+
const I = c.find(({ target: C }) => C === v());
|
|
1845
|
+
I && !I.isIntersecting && r(!1);
|
|
1845
1846
|
})), e.value = !1;
|
|
1846
1847
|
}
|
|
1847
1848
|
},
|
|
@@ -1850,10 +1851,10 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1850
1851
|
flush: "post"
|
|
1851
1852
|
}
|
|
1852
1853
|
);
|
|
1853
|
-
function
|
|
1854
|
+
function B(f) {
|
|
1854
1855
|
f.stopPropagation();
|
|
1855
1856
|
}
|
|
1856
|
-
function
|
|
1857
|
+
function r(f) {
|
|
1857
1858
|
(!f || f.key === "Escape") && d.value && getComputedStyle(d.value).visibility === "visible" && v().blur();
|
|
1858
1859
|
}
|
|
1859
1860
|
function v() {
|
|
@@ -1869,9 +1870,9 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1869
1870
|
);
|
|
1870
1871
|
}, 1);
|
|
1871
1872
|
}
|
|
1872
|
-
function L(f,
|
|
1873
|
-
var I,
|
|
1874
|
-
(I = f == null ? void 0 : f.target) != null && I.contains && ((
|
|
1873
|
+
function L(f, c) {
|
|
1874
|
+
var I, C;
|
|
1875
|
+
(I = f == null ? void 0 : f.target) != null && I.contains && ((C = f == null ? void 0 : f.target) != null && C.contains(d.value)) && u(c);
|
|
1875
1876
|
}
|
|
1876
1877
|
function g() {
|
|
1877
1878
|
var f;
|
|
@@ -1880,12 +1881,12 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1880
1881
|
), (f = p.value) == null || f.unobserve(v());
|
|
1881
1882
|
}
|
|
1882
1883
|
function h(f) {
|
|
1883
|
-
var
|
|
1884
|
+
var c;
|
|
1884
1885
|
t.value = new Ie().addCallback(
|
|
1885
1886
|
(I) => L(I, f)
|
|
1886
|
-
), u(f), (
|
|
1887
|
+
), u(f), (c = p.value) == null || c.observe(v());
|
|
1887
1888
|
}
|
|
1888
|
-
return (f,
|
|
1889
|
+
return (f, c) => (m(), S("i", {
|
|
1889
1890
|
role: "tooltip",
|
|
1890
1891
|
"aria-hidden": "true",
|
|
1891
1892
|
"data-gap": "true",
|
|
@@ -1899,19 +1900,17 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1899
1900
|
"data-width": f.width,
|
|
1900
1901
|
"data-show-arrow": n(X)(f.showArrow ?? !0),
|
|
1901
1902
|
"data-placement": f.placement,
|
|
1902
|
-
onClick:
|
|
1903
|
+
onClick: c[0] || (c[0] = async (I) => B(I))
|
|
1903
1904
|
}, [
|
|
1904
|
-
|
|
1905
|
-
], 10,
|
|
1905
|
+
A(f.$slots, "default")
|
|
1906
|
+
], 10, Kt));
|
|
1906
1907
|
}
|
|
1907
|
-
}),
|
|
1908
|
+
}), Jt = ["id", "data-disabled", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-hide-icon", "data-no-text", "data-overflow"], Qt = /* @__PURE__ */ P({
|
|
1908
1909
|
__name: "tag",
|
|
1909
1910
|
props: {
|
|
1910
1911
|
behavior: { default: void 0 },
|
|
1911
1912
|
disabled: { type: [Boolean, String], default: void 0 },
|
|
1912
1913
|
noText: { type: [Boolean, String], default: void 0 },
|
|
1913
|
-
onRemove: { type: Function, default: void 0 },
|
|
1914
|
-
remove: {},
|
|
1915
1914
|
removeButton: { default: void 0 },
|
|
1916
1915
|
showCheckState: { type: [Boolean, String], default: void 0 },
|
|
1917
1916
|
text: { default: void 0 },
|
|
@@ -1927,19 +1926,21 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1927
1926
|
overflow: { type: [Boolean, String], default: void 0 },
|
|
1928
1927
|
emphasis: { default: void 0 },
|
|
1929
1928
|
showIcon: { type: [Boolean, String], default: void 0 },
|
|
1930
|
-
content: {}
|
|
1929
|
+
content: {},
|
|
1930
|
+
onRemove: { type: Function, default: void 0 },
|
|
1931
|
+
remove: {}
|
|
1931
1932
|
},
|
|
1932
1933
|
setup(i) {
|
|
1933
1934
|
const a = i, l = s(!1), e = s(null);
|
|
1934
|
-
l.value = !0,
|
|
1935
|
+
l.value = !0, D(
|
|
1935
1936
|
() => [l.value, a.disabled, e.value],
|
|
1936
1937
|
() => {
|
|
1937
|
-
var d,
|
|
1938
|
+
var d, B;
|
|
1938
1939
|
if (l.value && e.value && a.disabled !== void 0) {
|
|
1939
|
-
const
|
|
1940
|
+
const r = (d = e.value) == null ? void 0 : d.querySelector(
|
|
1940
1941
|
"button:not(.db-tab-remove-button)"
|
|
1941
|
-
), v = (
|
|
1942
|
-
for (const u of [
|
|
1942
|
+
), v = (B = e.value) == null ? void 0 : B.querySelector("input");
|
|
1943
|
+
for (const u of [r, v])
|
|
1943
1944
|
u && (u.disabled = !!a.disabled);
|
|
1944
1945
|
}
|
|
1945
1946
|
},
|
|
@@ -1949,12 +1950,12 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1949
1950
|
}
|
|
1950
1951
|
);
|
|
1951
1952
|
function t(d) {
|
|
1952
|
-
d
|
|
1953
|
+
d && (d.stopPropagation(), a.onRemove && a.onRemove(d));
|
|
1953
1954
|
}
|
|
1954
1955
|
function p() {
|
|
1955
1956
|
return a.removeButton ? a.removeButton : ia;
|
|
1956
1957
|
}
|
|
1957
|
-
return (d,
|
|
1958
|
+
return (d, B) => (m(), S("div", {
|
|
1958
1959
|
ref_key: "_ref",
|
|
1959
1960
|
ref: e,
|
|
1960
1961
|
id: d.id,
|
|
@@ -1968,12 +1969,12 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1968
1969
|
"data-no-text": n(X)(d.noText),
|
|
1969
1970
|
"data-overflow": n(X)(d.overflow)
|
|
1970
1971
|
}, [
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
d.text ? (m(),
|
|
1974
|
-
|
|
1972
|
+
A(d.$slots, "content"),
|
|
1973
|
+
A(d.$slots, "default"),
|
|
1974
|
+
d.text ? (m(), S(U, { key: 0 }, [
|
|
1975
|
+
F(_(d.text), 1)
|
|
1975
1976
|
], 64)) : V("", !0),
|
|
1976
|
-
d.behavior === "removable" ? (m(),
|
|
1977
|
+
d.behavior === "removable" ? (m(), S("button", {
|
|
1977
1978
|
key: 1,
|
|
1978
1979
|
class: "db-button db-tab-remove-button",
|
|
1979
1980
|
"data-icon": "cross",
|
|
@@ -1981,21 +1982,21 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
1981
1982
|
"data-no-text": "true",
|
|
1982
1983
|
"data-variant": "ghost",
|
|
1983
1984
|
type: "button",
|
|
1984
|
-
onClick:
|
|
1985
|
+
onClick: B[0] || (B[0] = async (r) => t(r))
|
|
1985
1986
|
}, [
|
|
1986
1987
|
ae(ca, { variant: "label" }, {
|
|
1987
1988
|
default: G(() => [
|
|
1988
|
-
|
|
1989
|
+
F(_(p()), 1)
|
|
1989
1990
|
]),
|
|
1990
1991
|
_: 1
|
|
1991
1992
|
})
|
|
1992
1993
|
])) : V("", !0)
|
|
1993
|
-
], 10,
|
|
1994
|
+
], 10, Jt));
|
|
1994
1995
|
}
|
|
1995
|
-
}),
|
|
1996
|
+
}), Zt = ["data-variant", "data-hide-label"], xt = ["for"], ei = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "data-resize", "data-hide-resizer", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], ai = {
|
|
1996
1997
|
"data-visually-hidden": "true",
|
|
1997
1998
|
role: "status"
|
|
1998
|
-
},
|
|
1999
|
+
}, gl = /* @__PURE__ */ P({
|
|
1999
2000
|
__name: "textarea",
|
|
2000
2001
|
props: {
|
|
2001
2002
|
cols: { default: void 0 },
|
|
@@ -2045,33 +2046,33 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2045
2046
|
},
|
|
2046
2047
|
emits: ["update:value"],
|
|
2047
2048
|
setup(i, { emit: a }) {
|
|
2048
|
-
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0),
|
|
2049
|
+
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0), B = s(void 0), r = s(void 0), v = s(""), u = s(""), L = s(""), g = s(null);
|
|
2049
2050
|
Y(() => {
|
|
2050
|
-
const
|
|
2051
|
-
t.value =
|
|
2052
|
-
}),
|
|
2051
|
+
const k = e.id ?? `textarea-${Q()}`;
|
|
2052
|
+
t.value = k, p.value = k + fe, d.value = k + pe, B.value = k + he, r.value = e.invalidMessage || ie;
|
|
2053
|
+
}), D(
|
|
2053
2054
|
() => [g.value, e.invalidMessage],
|
|
2054
2055
|
() => {
|
|
2055
|
-
var
|
|
2056
|
-
|
|
2056
|
+
var k;
|
|
2057
|
+
r.value = e.invalidMessage || ((k = g.value) == null ? void 0 : k.validationMessage) || ie;
|
|
2057
2058
|
},
|
|
2058
2059
|
{
|
|
2059
2060
|
immediate: !0,
|
|
2060
2061
|
flush: "post"
|
|
2061
2062
|
}
|
|
2062
|
-
),
|
|
2063
|
+
), D(
|
|
2063
2064
|
() => [t.value],
|
|
2064
2065
|
() => {
|
|
2065
2066
|
if (t.value) {
|
|
2066
|
-
const
|
|
2067
|
-
p.value =
|
|
2067
|
+
const k = t.value + fe;
|
|
2068
|
+
p.value = k, d.value = t.value + pe, B.value = t.value + he, ee(e.message, e.showMessage) && (v.value = k);
|
|
2068
2069
|
}
|
|
2069
2070
|
},
|
|
2070
2071
|
{
|
|
2071
2072
|
immediate: !0,
|
|
2072
2073
|
flush: "post"
|
|
2073
2074
|
}
|
|
2074
|
-
),
|
|
2075
|
+
), D(
|
|
2075
2076
|
() => [e.value],
|
|
2076
2077
|
() => {
|
|
2077
2078
|
u.value = e.value;
|
|
@@ -2085,64 +2086,64 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2085
2086
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
2086
2087
|
}
|
|
2087
2088
|
function f() {
|
|
2088
|
-
var
|
|
2089
|
-
!((
|
|
2089
|
+
var k, W, y;
|
|
2090
|
+
!((k = g.value) != null && k.validity.valid) || e.validation === "invalid" ? (v.value = B.value, r.value = e.invalidMessage || ((W = g.value) == null ? void 0 : W.validationMessage) || ie, ve() && (L.value = r.value, x(() => L.value = "", 1e3))) : h() && ((y = g.value) != null && y.validity.valid) && (e.required || e.minLength || e.maxLength) ? (v.value = d.value, ve() && (L.value = e.validMessage ?? me, x(() => L.value = "", 1e3))) : ee(e.message, e.showMessage) ? v.value = p.value : v.value = "";
|
|
2090
2091
|
}
|
|
2091
|
-
function
|
|
2092
|
-
e.input && e.input(
|
|
2092
|
+
function c(k) {
|
|
2093
|
+
e.input && e.input(k), u.value = k.target.value, e.onInput && e.onInput(k), se(l, k), f();
|
|
2093
2094
|
}
|
|
2094
|
-
function I(
|
|
2095
|
-
e.onChange && e.onChange(
|
|
2095
|
+
function I(k) {
|
|
2096
|
+
e.onChange && e.onChange(k), se(l, k), f();
|
|
2096
2097
|
}
|
|
2097
|
-
function
|
|
2098
|
-
e.onBlur && e.onBlur(
|
|
2098
|
+
function C(k) {
|
|
2099
|
+
e.onBlur && e.onBlur(k);
|
|
2099
2100
|
}
|
|
2100
|
-
function b(
|
|
2101
|
-
e.onFocus && e.onFocus(
|
|
2101
|
+
function b(k) {
|
|
2102
|
+
e.onFocus && e.onFocus(k);
|
|
2102
2103
|
}
|
|
2103
|
-
return (
|
|
2104
|
+
return (k, W) => (m(), S("div", {
|
|
2104
2105
|
class: z(n(R)("db-textarea", e.class)),
|
|
2105
|
-
"data-variant":
|
|
2106
|
-
"data-hide-label": n(K)(
|
|
2106
|
+
"data-variant": k.variant,
|
|
2107
|
+
"data-hide-label": n(K)(k.showLabel)
|
|
2107
2108
|
}, [
|
|
2108
|
-
T("label", { for: t.value }, _(
|
|
2109
|
+
T("label", { for: t.value }, _(k.label ?? n(Se)), 9, xt),
|
|
2109
2110
|
T("textarea", {
|
|
2110
|
-
"aria-invalid":
|
|
2111
|
-
"data-custom-validity":
|
|
2112
|
-
"data-field-sizing":
|
|
2111
|
+
"aria-invalid": k.validation === "invalid",
|
|
2112
|
+
"data-custom-validity": k.validation,
|
|
2113
|
+
"data-field-sizing": k.fieldSizing,
|
|
2113
2114
|
ref_key: "_ref",
|
|
2114
2115
|
ref: g,
|
|
2115
2116
|
id: t.value,
|
|
2116
|
-
"data-resize":
|
|
2117
|
-
"data-hide-resizer": n(K)(
|
|
2118
|
-
disabled: n(M)(
|
|
2119
|
-
required: n(M)(
|
|
2120
|
-
readOnly: n(M)(
|
|
2121
|
-
form:
|
|
2122
|
-
maxLength: n(we)(
|
|
2123
|
-
minLength: n(we)(
|
|
2124
|
-
name:
|
|
2125
|
-
wrap:
|
|
2126
|
-
spellcheck:
|
|
2127
|
-
autocomplete:
|
|
2128
|
-
onInput:
|
|
2129
|
-
onChange:
|
|
2130
|
-
onBlur:
|
|
2131
|
-
onFocus:
|
|
2132
|
-
value:
|
|
2133
|
-
"aria-describedby":
|
|
2134
|
-
placeholder:
|
|
2135
|
-
rows: n(we)(
|
|
2136
|
-
cols: n(we)(
|
|
2137
|
-
}, null, 40,
|
|
2138
|
-
n(ee)(
|
|
2117
|
+
"data-resize": k.resize,
|
|
2118
|
+
"data-hide-resizer": n(K)(k.showResizer ?? !0),
|
|
2119
|
+
disabled: n(M)(k.disabled, "disabled"),
|
|
2120
|
+
required: n(M)(k.required, "required"),
|
|
2121
|
+
readOnly: n(M)(k.readOnly, "readOnly") || n(M)(k.readonly, "readonly"),
|
|
2122
|
+
form: k.form,
|
|
2123
|
+
maxLength: n(we)(k.maxLength, k.maxlength),
|
|
2124
|
+
minLength: n(we)(k.minLength, k.minlength),
|
|
2125
|
+
name: k.name,
|
|
2126
|
+
wrap: k.wrap,
|
|
2127
|
+
spellcheck: k.spellCheck,
|
|
2128
|
+
autocomplete: k.autocomplete,
|
|
2129
|
+
onInput: W[0] || (W[0] = async (y) => c(y)),
|
|
2130
|
+
onChange: W[1] || (W[1] = async (y) => I(y)),
|
|
2131
|
+
onBlur: W[2] || (W[2] = async (y) => C(y)),
|
|
2132
|
+
onFocus: W[3] || (W[3] = async (y) => b(y)),
|
|
2133
|
+
value: k.value ?? u.value,
|
|
2134
|
+
"aria-describedby": k.ariaDescribedBy ?? v.value,
|
|
2135
|
+
placeholder: k.placeholder ?? n(ta),
|
|
2136
|
+
rows: n(we)(k.rows, n(Pa)),
|
|
2137
|
+
cols: n(we)(k.cols)
|
|
2138
|
+
}, null, 40, ei),
|
|
2139
|
+
n(ee)(k.message, k.showMessage) ? (m(), Z(te, {
|
|
2139
2140
|
key: 0,
|
|
2140
2141
|
size: "small",
|
|
2141
|
-
icon:
|
|
2142
|
+
icon: k.messageIcon,
|
|
2142
2143
|
id: p.value
|
|
2143
2144
|
}, {
|
|
2144
2145
|
default: G(() => [
|
|
2145
|
-
|
|
2146
|
+
F(_(k.message), 1)
|
|
2146
2147
|
]),
|
|
2147
2148
|
_: 1
|
|
2148
2149
|
}, 8, ["icon", "id"])) : V("", !0),
|
|
@@ -2153,27 +2154,27 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2153
2154
|
id: d.value
|
|
2154
2155
|
}, {
|
|
2155
2156
|
default: G(() => [
|
|
2156
|
-
|
|
2157
|
+
F(_(k.validMessage || n(me)), 1)
|
|
2157
2158
|
]),
|
|
2158
2159
|
_: 1
|
|
2159
2160
|
}, 8, ["id"])) : V("", !0),
|
|
2160
2161
|
ae(te, {
|
|
2161
2162
|
size: "small",
|
|
2162
2163
|
semantic: "critical",
|
|
2163
|
-
id:
|
|
2164
|
+
id: B.value
|
|
2164
2165
|
}, {
|
|
2165
2166
|
default: G(() => [
|
|
2166
|
-
|
|
2167
|
+
F(_(r.value), 1)
|
|
2167
2168
|
]),
|
|
2168
2169
|
_: 1
|
|
2169
2170
|
}, 8, ["id"]),
|
|
2170
|
-
T("span",
|
|
2171
|
-
], 10,
|
|
2171
|
+
T("span", ai, _(L.value), 1)
|
|
2172
|
+
], 10, Zt));
|
|
2172
2173
|
}
|
|
2173
|
-
}),
|
|
2174
|
+
}), ti = ["id", "data-width", "data-icon", "data-hide-icon", "data-active", "data-wrap", "aria-disabled"], ii = ["aria-haspopup", "aria-expanded", "disabled"], li = ["data-auto-close", "id"], oi = {
|
|
2174
2175
|
key: 0,
|
|
2175
2176
|
class: "db-mobile-navigation-back"
|
|
2176
|
-
},
|
|
2177
|
+
}, bl = /* @__PURE__ */ P({
|
|
2177
2178
|
__name: "navigation-item",
|
|
2178
2179
|
props: {
|
|
2179
2180
|
active: { type: Boolean, default: void 0 },
|
|
@@ -2196,12 +2197,12 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2196
2197
|
text: { default: void 0 }
|
|
2197
2198
|
},
|
|
2198
2199
|
setup(i) {
|
|
2199
|
-
const a = i, l = s(!1), e = s(!1), t = s(!0), p = s(!1), d = s(!1),
|
|
2200
|
+
const a = i, l = s(!1), e = s(!1), t = s(!0), p = s(!1), d = s(!1), B = s(
|
|
2200
2201
|
"sub-navigation-" + Q()
|
|
2201
|
-
),
|
|
2202
|
+
), r = s(void 0), v = s(null);
|
|
2202
2203
|
Y(() => {
|
|
2203
2204
|
l.value = !0;
|
|
2204
|
-
}),
|
|
2205
|
+
}), D(
|
|
2205
2206
|
() => [a.subNavigationExpanded],
|
|
2206
2207
|
() => {
|
|
2207
2208
|
a.subNavigationExpanded !== void 0 && (p.value = !!M(
|
|
@@ -2213,13 +2214,13 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2213
2214
|
immediate: !0,
|
|
2214
2215
|
flush: "post"
|
|
2215
2216
|
}
|
|
2216
|
-
),
|
|
2217
|
+
), D(
|
|
2217
2218
|
() => [l.value, v.value],
|
|
2218
2219
|
() => {
|
|
2219
2220
|
var h;
|
|
2220
2221
|
if (l.value && v.value) {
|
|
2221
2222
|
const f = v.value.querySelector("menu");
|
|
2222
|
-
f && (((h = f.children) == null ? void 0 : h.length) > 0 ? (e.value = !0,
|
|
2223
|
+
f && (((h = f.children) == null ? void 0 : h.length) > 0 ? (e.value = !0, r.value || (r.value = new ut(
|
|
2223
2224
|
v.value,
|
|
2224
2225
|
f
|
|
2225
2226
|
))) : t.value = !1);
|
|
@@ -2241,21 +2242,21 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2241
2242
|
function g(h) {
|
|
2242
2243
|
h.stopPropagation(), p.value = !1;
|
|
2243
2244
|
}
|
|
2244
|
-
return (h, f) => (m(),
|
|
2245
|
+
return (h, f) => (m(), S("li", {
|
|
2245
2246
|
ref_key: "_ref",
|
|
2246
2247
|
ref: v,
|
|
2247
2248
|
id: h.id,
|
|
2248
|
-
onMouseover: f[2] || (f[2] = async (
|
|
2249
|
+
onMouseover: f[2] || (f[2] = async (c) => {
|
|
2249
2250
|
var I;
|
|
2250
|
-
return (I =
|
|
2251
|
+
return (I = r.value) == null ? void 0 : I.enableFollow();
|
|
2251
2252
|
}),
|
|
2252
|
-
onMouseleave: f[3] || (f[3] = async (
|
|
2253
|
+
onMouseleave: f[3] || (f[3] = async (c) => {
|
|
2253
2254
|
var I;
|
|
2254
|
-
return (I =
|
|
2255
|
+
return (I = r.value) == null ? void 0 : I.disableFollow();
|
|
2255
2256
|
}),
|
|
2256
|
-
onMousemove: f[4] || (f[4] = async (
|
|
2257
|
+
onMousemove: f[4] || (f[4] = async (c) => {
|
|
2257
2258
|
var I;
|
|
2258
|
-
return (I =
|
|
2259
|
+
return (I = r.value) == null ? void 0 : I.followByMouseEvent(c);
|
|
2259
2260
|
}),
|
|
2260
2261
|
class: z(n(R)("db-navigation-item", a.class)),
|
|
2261
2262
|
"data-width": h.width,
|
|
@@ -2265,48 +2266,48 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2265
2266
|
"data-wrap": n(X)(h.wrap),
|
|
2266
2267
|
"aria-disabled": n(X)(h.disabled)
|
|
2267
2268
|
}, [
|
|
2268
|
-
t.value ? V("", !0) : (m(),
|
|
2269
|
-
h.text ? (m(),
|
|
2270
|
-
|
|
2271
|
-
], 64)) :
|
|
2269
|
+
t.value ? V("", !0) : (m(), S(U, { key: 0 }, [
|
|
2270
|
+
h.text ? (m(), S(U, { key: 0 }, [
|
|
2271
|
+
F(_(h.text), 1)
|
|
2272
|
+
], 64)) : A(h.$slots, "default", { key: 1 })
|
|
2272
2273
|
], 64)),
|
|
2273
|
-
t.value ? (m(),
|
|
2274
|
+
t.value ? (m(), S(U, { key: 1 }, [
|
|
2274
2275
|
T("button", {
|
|
2275
2276
|
class: "db-navigation-item-expand-button",
|
|
2276
2277
|
"aria-haspopup": e.value,
|
|
2277
2278
|
"aria-expanded": p.value,
|
|
2278
2279
|
disabled: n(M)(h.disabled, "disabled"),
|
|
2279
|
-
onClick: f[0] || (f[0] = async (
|
|
2280
|
+
onClick: f[0] || (f[0] = async (c) => L(c))
|
|
2280
2281
|
}, [
|
|
2281
|
-
h.text ? (m(),
|
|
2282
|
-
|
|
2283
|
-
], 64)) :
|
|
2284
|
-
], 8,
|
|
2282
|
+
h.text ? (m(), S(U, { key: 0 }, [
|
|
2283
|
+
F(_(h.text), 1)
|
|
2284
|
+
], 64)) : A(h.$slots, "default", { key: 1 })
|
|
2285
|
+
], 8, ii),
|
|
2285
2286
|
T("menu", {
|
|
2286
2287
|
class: "db-sub-navigation",
|
|
2287
2288
|
"data-auto-close": d.value,
|
|
2288
|
-
id:
|
|
2289
|
-
onClick: f[1] || (f[1] = async (
|
|
2289
|
+
id: B.value,
|
|
2290
|
+
onClick: f[1] || (f[1] = async (c) => u(c))
|
|
2290
2291
|
}, [
|
|
2291
|
-
e.value ? (m(),
|
|
2292
|
+
e.value ? (m(), S("div", oi, [
|
|
2292
2293
|
ae(Be, {
|
|
2293
2294
|
icon: "arrow_left",
|
|
2294
2295
|
variant: "ghost",
|
|
2295
2296
|
id: h.backButtonId,
|
|
2296
|
-
onClick: (
|
|
2297
|
+
onClick: (c) => g(c)
|
|
2297
2298
|
}, {
|
|
2298
2299
|
default: G(() => [
|
|
2299
|
-
|
|
2300
|
+
F(_(h.backButtonText ?? n(Ma)), 1)
|
|
2300
2301
|
]),
|
|
2301
2302
|
_: 1
|
|
2302
2303
|
}, 8, ["id", "onClick"])
|
|
2303
2304
|
])) : V("", !0),
|
|
2304
|
-
|
|
2305
|
-
], 8,
|
|
2305
|
+
A(h.$slots, "sub-navigation")
|
|
2306
|
+
], 8, li)
|
|
2306
2307
|
], 64)) : V("", !0)
|
|
2307
|
-
], 42,
|
|
2308
|
+
], 42, ti));
|
|
2308
2309
|
}
|
|
2309
|
-
}),
|
|
2310
|
+
}), di = ["id"], ni = ["aria-disabled", "name", "open"], si = /* @__PURE__ */ P({
|
|
2310
2311
|
__name: "accordion-item",
|
|
2311
2312
|
props: {
|
|
2312
2313
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
@@ -2328,7 +2329,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2328
2329
|
const a = i, l = s(Le), e = s(!1), t = s(void 0), p = s(!1), d = s(null);
|
|
2329
2330
|
Y(() => {
|
|
2330
2331
|
l.value = a.id || "accordion-item-" + Q(), a.defaultOpen && (e.value = a.defaultOpen), p.value = !0;
|
|
2331
|
-
}),
|
|
2332
|
+
}), D(
|
|
2332
2333
|
() => [d.value, p.value],
|
|
2333
2334
|
() => {
|
|
2334
2335
|
d.value && p.value;
|
|
@@ -2337,7 +2338,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2337
2338
|
immediate: !0,
|
|
2338
2339
|
flush: "post"
|
|
2339
2340
|
}
|
|
2340
|
-
),
|
|
2341
|
+
), D(
|
|
2341
2342
|
() => [a.name],
|
|
2342
2343
|
() => {
|
|
2343
2344
|
a.name && (t.value = a.name);
|
|
@@ -2347,39 +2348,39 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2347
2348
|
flush: "post"
|
|
2348
2349
|
}
|
|
2349
2350
|
);
|
|
2350
|
-
function
|
|
2351
|
-
|
|
2351
|
+
function B(r) {
|
|
2352
|
+
r == null || r.preventDefault();
|
|
2352
2353
|
const v = !e.value;
|
|
2353
2354
|
a.onToggle && a.onToggle(v), e.value = v;
|
|
2354
2355
|
}
|
|
2355
|
-
return (
|
|
2356
|
+
return (r, v) => (m(), S("li", {
|
|
2356
2357
|
id: l.value,
|
|
2357
2358
|
class: z(n(R)("db-accordion-item", a.class))
|
|
2358
2359
|
}, [
|
|
2359
2360
|
T("details", {
|
|
2360
|
-
"aria-disabled": n(X)(
|
|
2361
|
+
"aria-disabled": n(X)(r.disabled),
|
|
2361
2362
|
ref_key: "_ref",
|
|
2362
2363
|
ref: d,
|
|
2363
2364
|
name: t.value,
|
|
2364
2365
|
open: e.value
|
|
2365
2366
|
}, [
|
|
2366
2367
|
T("summary", {
|
|
2367
|
-
onClick: v[0] || (v[0] = async (u) =>
|
|
2368
|
+
onClick: v[0] || (v[0] = async (u) => B(u))
|
|
2368
2369
|
}, [
|
|
2369
|
-
|
|
2370
|
-
|
|
2370
|
+
r.headlinePlain ? (m(), S(U, { key: 0 }, [
|
|
2371
|
+
F(_(r.headlinePlain), 1)
|
|
2371
2372
|
], 64)) : V("", !0),
|
|
2372
|
-
|
|
2373
|
+
r.headlinePlain ? V("", !0) : A(r.$slots, "headline", { key: 1 })
|
|
2373
2374
|
]),
|
|
2374
2375
|
T("div", null, [
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
], 64)) :
|
|
2376
|
+
r.text ? (m(), S(U, { key: 0 }, [
|
|
2377
|
+
F(_(r.text), 1)
|
|
2378
|
+
], 64)) : A(r.$slots, "default", { key: 1 })
|
|
2378
2379
|
])
|
|
2379
|
-
], 8,
|
|
2380
|
-
], 10,
|
|
2380
|
+
], 8, ni)
|
|
2381
|
+
], 10, di));
|
|
2381
2382
|
}
|
|
2382
|
-
}),
|
|
2383
|
+
}), ui = ["id", "data-variant"], yl = /* @__PURE__ */ P({
|
|
2383
2384
|
__name: "accordion",
|
|
2384
2385
|
props: {
|
|
2385
2386
|
behavior: { default: void 0 },
|
|
@@ -2399,7 +2400,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2399
2400
|
const a = i, l = s(Le), e = s(""), t = s(!1), p = s(!1), d = s(null);
|
|
2400
2401
|
Y(() => {
|
|
2401
2402
|
l.value = a.id || "accordion-" + Q(), t.value = !0, p.value = !0;
|
|
2402
|
-
}),
|
|
2403
|
+
}), D(
|
|
2403
2404
|
() => [t.value, a.name, a.behavior, l.value],
|
|
2404
2405
|
() => {
|
|
2405
2406
|
t.value && (a.behavior === "single" ? a.name ? e.value !== a.name && (e.value = a.name) : e.value !== l.value && l.value && (e.value = l.value) : e.value = "");
|
|
@@ -2408,13 +2409,13 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2408
2409
|
immediate: !0,
|
|
2409
2410
|
flush: "post"
|
|
2410
2411
|
}
|
|
2411
|
-
),
|
|
2412
|
+
), D(
|
|
2412
2413
|
() => [d.value, e.value],
|
|
2413
2414
|
() => {
|
|
2414
2415
|
if (d.value) {
|
|
2415
|
-
const
|
|
2416
|
-
if (
|
|
2417
|
-
for (const v of Array.from(
|
|
2416
|
+
const r = d.value.getElementsByTagName("details");
|
|
2417
|
+
if (r)
|
|
2418
|
+
for (const v of Array.from(r))
|
|
2418
2419
|
e.value === "" ? v.removeAttribute("name") : v.name = e.value ?? "";
|
|
2419
2420
|
}
|
|
2420
2421
|
},
|
|
@@ -2422,15 +2423,15 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2422
2423
|
immediate: !0,
|
|
2423
2424
|
flush: "post"
|
|
2424
2425
|
}
|
|
2425
|
-
),
|
|
2426
|
+
), D(
|
|
2426
2427
|
() => [d.value, p.value, a.initOpenIndex],
|
|
2427
2428
|
() => {
|
|
2428
2429
|
if (d.value && p.value) {
|
|
2429
2430
|
if (a.initOpenIndex && a.initOpenIndex.length > 0) {
|
|
2430
|
-
const
|
|
2431
|
-
if (
|
|
2431
|
+
const r = d.value.getElementsByTagName("details");
|
|
2432
|
+
if (r) {
|
|
2432
2433
|
const v = a.behavior === "single" && a.initOpenIndex.length > 1 ? [a.initOpenIndex[0]] : a.initOpenIndex;
|
|
2433
|
-
Array.from(
|
|
2434
|
+
Array.from(r).forEach(
|
|
2434
2435
|
(u, L) => {
|
|
2435
2436
|
v != null && v.includes(L) && (u.open = !0);
|
|
2436
2437
|
}
|
|
@@ -2445,31 +2446,31 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2445
2446
|
flush: "post"
|
|
2446
2447
|
}
|
|
2447
2448
|
);
|
|
2448
|
-
function
|
|
2449
|
+
function B() {
|
|
2449
2450
|
try {
|
|
2450
2451
|
return typeof a.items == "string" ? JSON.parse(a.items) : a.items;
|
|
2451
|
-
} catch (
|
|
2452
|
-
console.error(
|
|
2452
|
+
} catch (r) {
|
|
2453
|
+
console.error(r);
|
|
2453
2454
|
}
|
|
2454
2455
|
return [];
|
|
2455
2456
|
}
|
|
2456
|
-
return (
|
|
2457
|
+
return (r, v) => (m(), S("ul", {
|
|
2457
2458
|
ref_key: "_ref",
|
|
2458
2459
|
ref: d,
|
|
2459
2460
|
id: l.value,
|
|
2460
2461
|
class: z(n(R)("db-accordion", a.class)),
|
|
2461
|
-
"data-variant":
|
|
2462
|
+
"data-variant": r.variant
|
|
2462
2463
|
}, [
|
|
2463
|
-
|
|
2464
|
-
|
|
2464
|
+
r.items ? V("", !0) : A(r.$slots, "default", { key: 0 }),
|
|
2465
|
+
r.items ? (m(!0), S(U, { key: 1 }, be(B(), (u, L) => (m(), Z(si, {
|
|
2465
2466
|
key: `accordion-item-${L}`,
|
|
2466
2467
|
headlinePlain: u.headlinePlain,
|
|
2467
2468
|
disabled: u.disabled,
|
|
2468
2469
|
text: u.text
|
|
2469
2470
|
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : V("", !0)
|
|
2470
|
-
], 10,
|
|
2471
|
+
], 10, ui));
|
|
2471
2472
|
}
|
|
2472
|
-
}),
|
|
2473
|
+
}), ri = ["id", "aria-labelledby"], kl = /* @__PURE__ */ P({
|
|
2473
2474
|
__name: "navigation",
|
|
2474
2475
|
props: {
|
|
2475
2476
|
children: { default: void 0 },
|
|
@@ -2484,7 +2485,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2484
2485
|
const a = i, l = s(Le), e = s(null);
|
|
2485
2486
|
return Y(() => {
|
|
2486
2487
|
l.value = a.id || "navigation-" + Q();
|
|
2487
|
-
}), (t, p) => (m(),
|
|
2488
|
+
}), (t, p) => (m(), S("nav", {
|
|
2488
2489
|
ref_key: "_ref",
|
|
2489
2490
|
ref: e,
|
|
2490
2491
|
id: l.value,
|
|
@@ -2492,11 +2493,11 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2492
2493
|
class: z(n(R)("db-navigation", a.class))
|
|
2493
2494
|
}, [
|
|
2494
2495
|
T("menu", null, [
|
|
2495
|
-
|
|
2496
|
+
A(t.$slots, "default")
|
|
2496
2497
|
])
|
|
2497
|
-
], 10,
|
|
2498
|
+
], 10, ri));
|
|
2498
2499
|
}
|
|
2499
|
-
}),
|
|
2500
|
+
}), ci = ["id"], vi = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], wl = /* @__PURE__ */ P({
|
|
2500
2501
|
__name: "popover",
|
|
2501
2502
|
props: {
|
|
2502
2503
|
open: { type: [Boolean, String], default: void 0 },
|
|
@@ -2518,22 +2519,22 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2518
2519
|
const a = i, l = s(!1), e = s(!1), t = s(void 0), p = s(void 0), d = s(null);
|
|
2519
2520
|
Y(() => {
|
|
2520
2521
|
l.value = !0;
|
|
2521
|
-
}),
|
|
2522
|
+
}), D(
|
|
2522
2523
|
() => [d.value, l.value],
|
|
2523
2524
|
() => {
|
|
2524
2525
|
if (d.value && l.value) {
|
|
2525
2526
|
l.value = !1;
|
|
2526
2527
|
const h = g();
|
|
2527
|
-
h && (h.ariaHasPopup = "true"),
|
|
2528
|
+
h && (h.ariaHasPopup = "true"), r(), d.value.addEventListener(
|
|
2528
2529
|
"keydown",
|
|
2529
|
-
(f) =>
|
|
2530
|
+
(f) => B(f)
|
|
2530
2531
|
), ["mouseenter", "focusin"].forEach((f) => {
|
|
2531
2532
|
d.value.addEventListener(f, () => u());
|
|
2532
2533
|
}), ["mouseleave", "focusout"].forEach((f) => {
|
|
2533
2534
|
d.value.addEventListener(f, () => L());
|
|
2534
2535
|
}), typeof window < "u" && "IntersectionObserver" in window && (p.value = new IntersectionObserver((f) => {
|
|
2535
|
-
const
|
|
2536
|
-
|
|
2536
|
+
const c = f.find(({ target: I }) => I === g());
|
|
2537
|
+
c && !c.isIntersecting && B(!1);
|
|
2537
2538
|
}));
|
|
2538
2539
|
}
|
|
2539
2540
|
},
|
|
@@ -2541,7 +2542,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2541
2542
|
immediate: !0,
|
|
2542
2543
|
flush: "post"
|
|
2543
2544
|
}
|
|
2544
|
-
),
|
|
2545
|
+
), D(
|
|
2545
2546
|
() => [d.value, e.value],
|
|
2546
2547
|
() => {
|
|
2547
2548
|
if (d.value) {
|
|
@@ -2554,12 +2555,12 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2554
2555
|
flush: "post"
|
|
2555
2556
|
}
|
|
2556
2557
|
);
|
|
2557
|
-
function
|
|
2558
|
+
function B(h) {
|
|
2558
2559
|
if (!h || h.key === "Escape")
|
|
2559
2560
|
for (const f of Array.from(d.value.children))
|
|
2560
2561
|
f.blur();
|
|
2561
2562
|
}
|
|
2562
|
-
function
|
|
2563
|
+
function r() {
|
|
2563
2564
|
if (!d.value) return;
|
|
2564
2565
|
const h = d.value.querySelector("article");
|
|
2565
2566
|
h && x(() => {
|
|
@@ -2571,14 +2572,14 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2571
2572
|
}, 1);
|
|
2572
2573
|
}
|
|
2573
2574
|
function v(h) {
|
|
2574
|
-
var f,
|
|
2575
|
-
(f = h == null ? void 0 : h.target) != null && f.contains && ((
|
|
2575
|
+
var f, c;
|
|
2576
|
+
(f = h == null ? void 0 : h.target) != null && f.contains && ((c = h == null ? void 0 : h.target) != null && c.contains(d.value)) && r();
|
|
2576
2577
|
}
|
|
2577
2578
|
function u() {
|
|
2578
2579
|
var f;
|
|
2579
2580
|
e.value = !0, t.value = new Ie().addCallback(
|
|
2580
|
-
(
|
|
2581
|
-
),
|
|
2581
|
+
(c) => v(c)
|
|
2582
|
+
), r();
|
|
2582
2583
|
const h = g();
|
|
2583
2584
|
h && ((f = p.value) == null || f.observe(h));
|
|
2584
2585
|
}
|
|
@@ -2588,8 +2589,8 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2588
2589
|
e.value = !1, t.value && new Ie().removeCallback(
|
|
2589
2590
|
t.value
|
|
2590
2591
|
);
|
|
2591
|
-
const
|
|
2592
|
-
|
|
2592
|
+
const c = g();
|
|
2593
|
+
c && ((f = p.value) == null || f.unobserve(c));
|
|
2593
2594
|
}
|
|
2594
2595
|
}
|
|
2595
2596
|
function g() {
|
|
@@ -2597,19 +2598,19 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2597
2598
|
if (d.value) {
|
|
2598
2599
|
const f = Array.from(d.value.children);
|
|
2599
2600
|
if (f.length >= 2) {
|
|
2600
|
-
const
|
|
2601
|
-
return
|
|
2601
|
+
const c = f[0];
|
|
2602
|
+
return c.tagName.includes("-") ? ((h = c.children) == null ? void 0 : h.length) > 0 ? c.children[0] : null : c;
|
|
2602
2603
|
}
|
|
2603
2604
|
}
|
|
2604
2605
|
return null;
|
|
2605
2606
|
}
|
|
2606
|
-
return (h, f) => (m(),
|
|
2607
|
+
return (h, f) => (m(), S("div", {
|
|
2607
2608
|
ref_key: "_ref",
|
|
2608
2609
|
ref: d,
|
|
2609
2610
|
id: h.id,
|
|
2610
2611
|
class: z(n(R)("db-popover", a.class))
|
|
2611
2612
|
}, [
|
|
2612
|
-
|
|
2613
|
+
A(h.$slots, "trigger"),
|
|
2613
2614
|
T("article", {
|
|
2614
2615
|
class: "db-popover-content",
|
|
2615
2616
|
"data-spacing": h.spacing,
|
|
@@ -2620,11 +2621,11 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2620
2621
|
"data-width": h.width,
|
|
2621
2622
|
"data-placement": h.placement
|
|
2622
2623
|
}, [
|
|
2623
|
-
|
|
2624
|
-
], 8,
|
|
2625
|
-
], 10,
|
|
2624
|
+
A(h.$slots, "default")
|
|
2625
|
+
], 8, vi)
|
|
2626
|
+
], 10, ci));
|
|
2626
2627
|
}
|
|
2627
|
-
}),
|
|
2628
|
+
}), fi = ["id"], pi = { role: "tablist" }, hi = /* @__PURE__ */ P({
|
|
2628
2629
|
__name: "tab-list",
|
|
2629
2630
|
props: {
|
|
2630
2631
|
children: { default: void 0 },
|
|
@@ -2638,18 +2639,18 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2638
2639
|
const a = i, l = s(Le), e = s(null);
|
|
2639
2640
|
return Y(() => {
|
|
2640
2641
|
l.value = a.id || "tab-list-" + Q();
|
|
2641
|
-
}), (t, p) => (m(),
|
|
2642
|
+
}), (t, p) => (m(), S("div", {
|
|
2642
2643
|
ref_key: "_ref",
|
|
2643
2644
|
ref: e,
|
|
2644
2645
|
id: l.value,
|
|
2645
2646
|
class: z(n(R)("db-tab-list", a.class))
|
|
2646
2647
|
}, [
|
|
2647
|
-
T("ul",
|
|
2648
|
-
|
|
2648
|
+
T("ul", pi, [
|
|
2649
|
+
A(t.$slots, "default")
|
|
2649
2650
|
])
|
|
2650
|
-
], 10,
|
|
2651
|
+
], 10, fi));
|
|
2651
2652
|
}
|
|
2652
|
-
}),
|
|
2653
|
+
}), mi = ["id", "aria-labelledby"], gi = /* @__PURE__ */ P({
|
|
2653
2654
|
__name: "tab-panel",
|
|
2654
2655
|
props: {
|
|
2655
2656
|
content: { default: void 0 },
|
|
@@ -2664,7 +2665,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2664
2665
|
setup(i) {
|
|
2665
2666
|
const a = i, l = s(null);
|
|
2666
2667
|
return Y(() => {
|
|
2667
|
-
}), (e, t) => (m(),
|
|
2668
|
+
}), (e, t) => (m(), S("section", {
|
|
2668
2669
|
role: "tabpanel",
|
|
2669
2670
|
ref_key: "_ref",
|
|
2670
2671
|
ref: l,
|
|
@@ -2672,13 +2673,13 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2672
2673
|
id: e.id,
|
|
2673
2674
|
"aria-labelledby": e.labelledBy
|
|
2674
2675
|
}, [
|
|
2675
|
-
e.content ? (m(),
|
|
2676
|
-
|
|
2676
|
+
e.content ? (m(), S(U, { key: 0 }, [
|
|
2677
|
+
F(_(e.content), 1)
|
|
2677
2678
|
], 64)) : V("", !0),
|
|
2678
|
-
|
|
2679
|
-
], 10,
|
|
2679
|
+
A(e.$slots, "default")
|
|
2680
|
+
], 10, mi));
|
|
2680
2681
|
}
|
|
2681
|
-
}),
|
|
2682
|
+
}), bi = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], Sl = /* @__PURE__ */ P({
|
|
2682
2683
|
__name: "tabs",
|
|
2683
2684
|
props: {
|
|
2684
2685
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -2686,10 +2687,6 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2686
2687
|
initialSelectedIndex: { default: void 0 },
|
|
2687
2688
|
initialSelectedMode: { default: void 0 },
|
|
2688
2689
|
name: { default: void 0 },
|
|
2689
|
-
onIndexChange: { type: Function, default: void 0 },
|
|
2690
|
-
onTabSelect: { type: Function, default: void 0 },
|
|
2691
|
-
indexChange: {},
|
|
2692
|
-
tabSelect: {},
|
|
2693
2690
|
tabs: { default: void 0 },
|
|
2694
2691
|
children: { default: void 0 },
|
|
2695
2692
|
className: { default: void 0 },
|
|
@@ -2699,23 +2696,27 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2699
2696
|
autofocus: { type: [Boolean, String] },
|
|
2700
2697
|
orientation: { default: void 0 },
|
|
2701
2698
|
width: { default: void 0 },
|
|
2702
|
-
alignment: { default: void 0 }
|
|
2699
|
+
alignment: { default: void 0 },
|
|
2700
|
+
indexChange: {},
|
|
2701
|
+
onIndexChange: { type: Function, default: void 0 },
|
|
2702
|
+
onTabSelect: { type: Function, default: void 0 },
|
|
2703
|
+
tabSelect: {}
|
|
2703
2704
|
},
|
|
2704
2705
|
setup(i) {
|
|
2705
|
-
const a = i, l = s("tabs-" + Q()), e = s(""), t = s(!1), p = s(!1), d = s(!1),
|
|
2706
|
+
const a = i, l = s("tabs-" + Q()), e = s(""), t = s(!1), p = s(!1), d = s(!1), B = s(null), r = s(null);
|
|
2706
2707
|
Y(() => {
|
|
2707
2708
|
l.value = a.id || l.value, e.value = `tabs-${a.name || Q()}`, t.value = !0;
|
|
2708
|
-
}),
|
|
2709
|
-
() => [
|
|
2709
|
+
}), D(
|
|
2710
|
+
() => [r.value, t.value],
|
|
2710
2711
|
() => {
|
|
2711
|
-
if (
|
|
2712
|
+
if (r.value && t.value) {
|
|
2712
2713
|
g(), h(!0);
|
|
2713
|
-
const
|
|
2714
|
-
|
|
2715
|
-
|
|
2714
|
+
const c = r.value.querySelector(".db-tab-list");
|
|
2715
|
+
c && new MutationObserver((C) => {
|
|
2716
|
+
C.forEach((b) => {
|
|
2716
2717
|
(b.removedNodes.length || b.addedNodes.length) && (g(), h());
|
|
2717
2718
|
});
|
|
2718
|
-
}).observe(
|
|
2719
|
+
}).observe(c, {
|
|
2719
2720
|
childList: !0,
|
|
2720
2721
|
subtree: !0
|
|
2721
2722
|
}), t.value = !1;
|
|
@@ -2729,93 +2730,95 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2729
2730
|
function v() {
|
|
2730
2731
|
try {
|
|
2731
2732
|
return typeof a.tabs == "string" ? JSON.parse(a.tabs) : a.tabs;
|
|
2732
|
-
} catch (
|
|
2733
|
-
console.error(
|
|
2733
|
+
} catch (c) {
|
|
2734
|
+
console.error(c);
|
|
2734
2735
|
}
|
|
2735
2736
|
return [];
|
|
2736
2737
|
}
|
|
2737
|
-
function u(
|
|
2738
|
-
const I =
|
|
2739
|
-
p.value = I &&
|
|
2738
|
+
function u(c) {
|
|
2739
|
+
const I = c.scrollWidth > c.clientWidth;
|
|
2740
|
+
p.value = I && c.scrollLeft > 1, d.value = I && c.scrollLeft < c.scrollWidth - c.clientWidth;
|
|
2740
2741
|
}
|
|
2741
|
-
function L(
|
|
2742
|
-
var
|
|
2742
|
+
function L(c) {
|
|
2743
|
+
var C;
|
|
2743
2744
|
let I = Number(a.arrowScrollDistance) || 100;
|
|
2744
|
-
|
|
2745
|
+
c && (I *= -1), (C = B.value) == null || C.scrollBy({
|
|
2745
2746
|
top: 0,
|
|
2746
2747
|
left: I,
|
|
2747
2748
|
behavior: "smooth"
|
|
2748
2749
|
});
|
|
2749
2750
|
}
|
|
2750
2751
|
function g() {
|
|
2751
|
-
if (
|
|
2752
|
-
const
|
|
2753
|
-
if (
|
|
2754
|
-
const I =
|
|
2752
|
+
if (r.value) {
|
|
2753
|
+
const c = r.value.querySelector(".db-tab-list");
|
|
2754
|
+
if (c) {
|
|
2755
|
+
const I = c.querySelector('[role="tablist"]');
|
|
2755
2756
|
I && (I.setAttribute(
|
|
2756
2757
|
"aria-orientation",
|
|
2757
2758
|
a.orientation || "horizontal"
|
|
2758
|
-
), a.behavior === "arrows" && (
|
|
2759
|
+
), a.behavior === "arrows" && (B.value = I, u(I), I.addEventListener("scroll", () => {
|
|
2759
2760
|
u(I);
|
|
2760
2761
|
})));
|
|
2761
2762
|
}
|
|
2762
2763
|
}
|
|
2763
2764
|
}
|
|
2764
|
-
function h(
|
|
2765
|
-
if (
|
|
2765
|
+
function h(c) {
|
|
2766
|
+
if (r.value) {
|
|
2766
2767
|
const I = Array.from(
|
|
2767
|
-
|
|
2768
|
-
),
|
|
2769
|
-
|
|
2768
|
+
r.value.getElementsByClassName("db-tab-item")
|
|
2769
|
+
), C = Array.from(
|
|
2770
|
+
r.value.querySelectorAll(
|
|
2770
2771
|
":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"
|
|
2771
2772
|
)
|
|
2772
2773
|
);
|
|
2773
2774
|
for (const b of I) {
|
|
2774
|
-
const
|
|
2775
|
-
if (y &&
|
|
2775
|
+
const k = I.indexOf(b), W = b.querySelector("label"), y = b.querySelector("input");
|
|
2776
|
+
if (y && W) {
|
|
2776
2777
|
if (!y.id) {
|
|
2777
|
-
const
|
|
2778
|
-
|
|
2778
|
+
const O = `${e.value}-tab-${k}`;
|
|
2779
|
+
W.setAttribute("for", O), y.id = O, y.setAttribute("name", e.value), C.length > k && y.setAttribute(
|
|
2779
2780
|
"aria-controls",
|
|
2780
|
-
`${e.value}-tab-panel-${
|
|
2781
|
+
`${e.value}-tab-panel-${k}`
|
|
2781
2782
|
);
|
|
2782
2783
|
}
|
|
2783
|
-
if (
|
|
2784
|
-
const
|
|
2785
|
-
|
|
2784
|
+
if (c) {
|
|
2785
|
+
const O = !a.initialSelectedMode || a.initialSelectedMode === "auto", w = a.initialSelectedIndex == null && k === 0 || Number(a.initialSelectedIndex) === k;
|
|
2786
|
+
O && w && y.click();
|
|
2786
2787
|
}
|
|
2787
2788
|
}
|
|
2788
2789
|
}
|
|
2789
|
-
for (const b of
|
|
2790
|
+
for (const b of C) {
|
|
2790
2791
|
if (b.id) continue;
|
|
2791
|
-
const
|
|
2792
|
-
b.id = `${e.value}-tab-panel-${
|
|
2792
|
+
const k = C.indexOf(b);
|
|
2793
|
+
b.id = `${e.value}-tab-panel-${k}`, b.setAttribute("aria-labelledby", `${e.value}-tab-${k}`);
|
|
2793
2794
|
}
|
|
2794
2795
|
}
|
|
2795
2796
|
}
|
|
2796
|
-
function f(
|
|
2797
|
-
var
|
|
2798
|
-
|
|
2799
|
-
const I = (
|
|
2797
|
+
function f(c) {
|
|
2798
|
+
var k;
|
|
2799
|
+
c.stopPropagation();
|
|
2800
|
+
const I = (k = c.target) == null ? void 0 : k.closest;
|
|
2801
|
+
if (!I) return;
|
|
2802
|
+
const C = I("ul"), b = (
|
|
2800
2803
|
// db-tab-item for angular and stencil wrapping elements
|
|
2801
|
-
|
|
2804
|
+
I("db-tab-item") ?? I("li")
|
|
2802
2805
|
);
|
|
2803
|
-
if (
|
|
2804
|
-
const
|
|
2805
|
-
a.onIndexChange && a.onIndexChange(
|
|
2806
|
+
if (C !== null && b !== null) {
|
|
2807
|
+
const W = Array.from(C.childNodes).indexOf(b);
|
|
2808
|
+
a.onIndexChange && a.onIndexChange(W);
|
|
2806
2809
|
}
|
|
2807
|
-
a.onTabSelect && a.onTabSelect(
|
|
2810
|
+
a.onTabSelect && a.onTabSelect(c);
|
|
2808
2811
|
}
|
|
2809
|
-
return (
|
|
2812
|
+
return (c, I) => (m(), S("div", {
|
|
2810
2813
|
ref_key: "_ref",
|
|
2811
|
-
ref:
|
|
2814
|
+
ref: r,
|
|
2812
2815
|
id: l.value,
|
|
2813
2816
|
class: z(n(R)("db-tabs", a.class)),
|
|
2814
|
-
"data-orientation":
|
|
2815
|
-
"data-scroll-behavior":
|
|
2816
|
-
"data-alignment":
|
|
2817
|
-
"data-width":
|
|
2818
|
-
onInput: I[0] || (I[0] = async (
|
|
2817
|
+
"data-orientation": c.orientation,
|
|
2818
|
+
"data-scroll-behavior": c.behavior,
|
|
2819
|
+
"data-alignment": c.alignment ?? "start",
|
|
2820
|
+
"data-width": c.width ?? "auto",
|
|
2821
|
+
onInput: I[0] || (I[0] = async (C) => f(C))
|
|
2819
2822
|
}, [
|
|
2820
2823
|
p.value ? (m(), Z(Be, {
|
|
2821
2824
|
key: 0,
|
|
@@ -2824,34 +2827,34 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2824
2827
|
icon: "chevron_left",
|
|
2825
2828
|
type: "button",
|
|
2826
2829
|
noText: !0,
|
|
2827
|
-
onClick: (
|
|
2830
|
+
onClick: (C) => L(!0)
|
|
2828
2831
|
}, {
|
|
2829
2832
|
default: G(() => I[1] || (I[1] = [
|
|
2830
|
-
|
|
2833
|
+
F(" Scroll left ")
|
|
2831
2834
|
])),
|
|
2832
2835
|
_: 1,
|
|
2833
2836
|
__: [1]
|
|
2834
2837
|
}, 8, ["onClick"])) : V("", !0),
|
|
2835
|
-
|
|
2836
|
-
ae(
|
|
2838
|
+
c.tabs ? (m(), S(U, { key: 1 }, [
|
|
2839
|
+
ae(hi, null, {
|
|
2837
2840
|
default: G(() => [
|
|
2838
|
-
(m(!0),
|
|
2839
|
-
key:
|
|
2840
|
-
active:
|
|
2841
|
-
label:
|
|
2842
|
-
iconAfter:
|
|
2843
|
-
icon:
|
|
2844
|
-
noText:
|
|
2841
|
+
(m(!0), S(U, null, be(v(), (C, b) => (m(), Z(Yt, {
|
|
2842
|
+
key: c.name + "tab-item" + b,
|
|
2843
|
+
active: C.active,
|
|
2844
|
+
label: C.label,
|
|
2845
|
+
iconAfter: C.iconAfter,
|
|
2846
|
+
icon: C.icon,
|
|
2847
|
+
noText: C.noText
|
|
2845
2848
|
}, null, 8, ["active", "label", "iconAfter", "icon", "noText"]))), 128))
|
|
2846
2849
|
]),
|
|
2847
2850
|
_: 1
|
|
2848
2851
|
}),
|
|
2849
|
-
(m(!0),
|
|
2850
|
-
key:
|
|
2851
|
-
content:
|
|
2852
|
+
(m(!0), S(U, null, be(v(), (C, b) => (m(), Z(gi, {
|
|
2853
|
+
key: c.name + "tab-panel" + b,
|
|
2854
|
+
content: C.content
|
|
2852
2855
|
}, {
|
|
2853
2856
|
default: G(() => [
|
|
2854
|
-
|
|
2857
|
+
F(_(C.children), 1)
|
|
2855
2858
|
]),
|
|
2856
2859
|
_: 2
|
|
2857
2860
|
}, 1032, ["content"]))), 128))
|
|
@@ -2863,18 +2866,18 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2863
2866
|
icon: "chevron_right",
|
|
2864
2867
|
type: "button",
|
|
2865
2868
|
noText: !0,
|
|
2866
|
-
onClick: (
|
|
2869
|
+
onClick: (C) => L()
|
|
2867
2870
|
}, {
|
|
2868
2871
|
default: G(() => I[2] || (I[2] = [
|
|
2869
|
-
|
|
2872
|
+
F(" Scroll right ")
|
|
2870
2873
|
])),
|
|
2871
2874
|
_: 1,
|
|
2872
2875
|
__: [2]
|
|
2873
2876
|
}, 8, ["onClick"])) : V("", !0),
|
|
2874
|
-
|
|
2875
|
-
], 42,
|
|
2877
|
+
A(c.$slots, "default")
|
|
2878
|
+
], 42, bi));
|
|
2876
2879
|
}
|
|
2877
|
-
}),
|
|
2880
|
+
}), Bl = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], Il = ["medium", "small", "large", "none"], $l = ["medium", "small", "large", "none"], yi = ["left", "right", "left-start", "left-end", "right-start", "right-end"], ki = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], Ll = [...yi, ...ki], _l = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], Tl = ["horizontal", "vertical"], Cl = ["full", "auto"], El = ["full", "medium", "large", "small"], Al = ["none", "slow", "fast"], Dl = ["auto", "fixed"], Fl = ["small", "medium"], Nl = ["weak", "strong"], Ml = ["invalid", "valid", "no-validation"], zl = ["fixed", "content"], Rl = ["above", "floating"], Vl = ["off", "on", "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "shipping", "billing", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", "impp", "url", "photo", "webauthn"], Pl = ["time", "true", "false", "date", "page", "step", "location"], Ul = ["_self", "_blank", "_parent", "_top"], ql = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], Gl = ["start", "center"], wi = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Wl = /* @__PURE__ */ P({
|
|
2878
2881
|
__name: "stack",
|
|
2879
2882
|
props: {
|
|
2880
2883
|
variant: { default: void 0 },
|
|
@@ -2892,7 +2895,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2892
2895
|
},
|
|
2893
2896
|
setup(i) {
|
|
2894
2897
|
const a = i, l = s(null);
|
|
2895
|
-
return (e, t) => (m(),
|
|
2898
|
+
return (e, t) => (m(), S("div", {
|
|
2896
2899
|
ref_key: "_ref",
|
|
2897
2900
|
ref: l,
|
|
2898
2901
|
id: e.id,
|
|
@@ -2904,10 +2907,10 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2904
2907
|
"data-justify-content": e.justifyContent,
|
|
2905
2908
|
"data-wrap": n(X)(e.wrap)
|
|
2906
2909
|
}, [
|
|
2907
|
-
|
|
2908
|
-
], 10,
|
|
2910
|
+
A(e.$slots, "default")
|
|
2911
|
+
], 10, wi));
|
|
2909
2912
|
}
|
|
2910
|
-
}),
|
|
2913
|
+
}), Si = ["role", "aria-label", "id"], Bi = /* @__PURE__ */ P({
|
|
2911
2914
|
__name: "custom-select-list",
|
|
2912
2915
|
props: {
|
|
2913
2916
|
label: { default: void 0 },
|
|
@@ -2921,7 +2924,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2921
2924
|
},
|
|
2922
2925
|
setup(i) {
|
|
2923
2926
|
const a = i, l = s(null);
|
|
2924
|
-
return (e, t) => (m(),
|
|
2927
|
+
return (e, t) => (m(), S("div", {
|
|
2925
2928
|
role: e.multiple ? "group" : "radiogroup",
|
|
2926
2929
|
"aria-label": e.label,
|
|
2927
2930
|
ref_key: "_ref",
|
|
@@ -2930,11 +2933,11 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2930
2933
|
class: z(n(R)("db-custom-select-list", a.class))
|
|
2931
2934
|
}, [
|
|
2932
2935
|
T("ul", null, [
|
|
2933
|
-
|
|
2936
|
+
A(e.$slots, "default")
|
|
2934
2937
|
])
|
|
2935
|
-
], 10,
|
|
2938
|
+
], 10, Si));
|
|
2936
2939
|
}
|
|
2937
|
-
}),
|
|
2940
|
+
}), Ii = ["id", "data-divider"], $i = ["data-icon", "data-hide-icon", "data-icon-after"], Li = ["type", "name", "form", "checked", "disabled", "value"], _i = { key: 1 }, Ti = /* @__PURE__ */ P({
|
|
2938
2941
|
__name: "custom-select-list-item",
|
|
2939
2942
|
props: {
|
|
2940
2943
|
groupTitle: { default: void 0 },
|
|
@@ -2962,7 +2965,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2962
2965
|
const l = a, e = i, t = s(void 0), p = s(!1), d = s(null);
|
|
2963
2966
|
Y(() => {
|
|
2964
2967
|
t.value = e.id ?? `custom-select-list-item-${Q()}`;
|
|
2965
|
-
}),
|
|
2968
|
+
}), D(
|
|
2966
2969
|
() => [e.isGroupTitle, e.showDivider],
|
|
2967
2970
|
() => {
|
|
2968
2971
|
p.value = !!(e.isGroupTitle || e.showDivider);
|
|
@@ -2972,14 +2975,14 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2972
2975
|
flush: "post"
|
|
2973
2976
|
}
|
|
2974
2977
|
);
|
|
2975
|
-
function
|
|
2978
|
+
function B(v) {
|
|
2976
2979
|
v.stopPropagation(), e.onChange && e.onChange(v), se(l, v, "checked");
|
|
2977
2980
|
}
|
|
2978
|
-
function
|
|
2981
|
+
function r() {
|
|
2979
2982
|
if (!(e.isGroupTitle || e.type === "checkbox"))
|
|
2980
2983
|
return M(e.checked, "checked") ? "check" : "x_placeholder";
|
|
2981
2984
|
}
|
|
2982
|
-
return (v, u) => (m(),
|
|
2985
|
+
return (v, u) => (m(), S("li", {
|
|
2983
2986
|
ref_key: "_ref",
|
|
2984
2987
|
ref: d,
|
|
2985
2988
|
id: t.value,
|
|
@@ -2991,11 +2994,11 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
2991
2994
|
),
|
|
2992
2995
|
"data-divider": n(X)(p.value)
|
|
2993
2996
|
}, [
|
|
2994
|
-
v.isGroupTitle ? (m(),
|
|
2997
|
+
v.isGroupTitle ? (m(), S("span", _i, _(v.groupTitle), 1)) : (m(), S("label", {
|
|
2995
2998
|
key: 0,
|
|
2996
2999
|
"data-icon": v.type !== "checkbox" && v.icon ? v.icon : void 0,
|
|
2997
3000
|
"data-hide-icon": n(K)(v.showIcon),
|
|
2998
|
-
"data-icon-after":
|
|
3001
|
+
"data-icon-after": r()
|
|
2999
3002
|
}, [
|
|
3000
3003
|
T("input", {
|
|
3001
3004
|
class: "db-custom-select-list-item-checkbox",
|
|
@@ -3006,15 +3009,15 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
3006
3009
|
checked: n(M)(v.checked, "checked"),
|
|
3007
3010
|
disabled: n(M)(v.disabled, "disabled"),
|
|
3008
3011
|
value: v.value,
|
|
3009
|
-
onChange: u[0] || (u[0] = async (L) =>
|
|
3010
|
-
}, null, 40,
|
|
3011
|
-
v.label ? (m(),
|
|
3012
|
-
|
|
3013
|
-
], 64)) :
|
|
3014
|
-
], 8,
|
|
3015
|
-
], 10,
|
|
3012
|
+
onChange: u[0] || (u[0] = async (L) => B(L))
|
|
3013
|
+
}, null, 40, Li),
|
|
3014
|
+
v.label ? (m(), S(U, { key: 0 }, [
|
|
3015
|
+
F(_(v.label), 1)
|
|
3016
|
+
], 64)) : A(v.$slots, "default", { key: 1 })
|
|
3017
|
+
], 8, $i))
|
|
3018
|
+
], 10, Ii));
|
|
3016
3019
|
}
|
|
3017
|
-
}),
|
|
3020
|
+
}), Ci = ["id", "data-width"], Ei = /* @__PURE__ */ P({
|
|
3018
3021
|
__name: "custom-select-dropdown",
|
|
3019
3022
|
props: {
|
|
3020
3023
|
width: { default: "fixed" },
|
|
@@ -3027,7 +3030,7 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
3027
3030
|
},
|
|
3028
3031
|
setup(i) {
|
|
3029
3032
|
const a = i, l = s(null);
|
|
3030
|
-
return (e, t) => (m(),
|
|
3033
|
+
return (e, t) => (m(), S("article", {
|
|
3031
3034
|
"data-spacing": "none",
|
|
3032
3035
|
ref_key: "_ref",
|
|
3033
3036
|
ref: l,
|
|
@@ -3035,8 +3038,8 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
3035
3038
|
class: z(n(R)("db-custom-select-dropdown db-card", a.class)),
|
|
3036
3039
|
"data-width": e.width
|
|
3037
3040
|
}, [
|
|
3038
|
-
|
|
3039
|
-
], 10,
|
|
3041
|
+
A(e.$slots, "default")
|
|
3042
|
+
], 10, Ci));
|
|
3040
3043
|
}
|
|
3041
3044
|
}), ce = class ce {
|
|
3042
3045
|
static runCallbacks(a) {
|
|
@@ -3058,10 +3061,10 @@ const Yt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width",
|
|
|
3058
3061
|
};
|
|
3059
3062
|
de(ce, "callbacks", {}), de(ce, "_instance", null);
|
|
3060
3063
|
let Re = ce;
|
|
3061
|
-
const
|
|
3064
|
+
const Ai = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-variant", "data-required", "data-placement", "data-selected-type", "data-hide-label", "data-icon", "data-hide-icon"], Di = ["id"], Fi = ["id", "form", "name", "multiple", "disabled", "required"], Ni = ["disabled", "value"], Mi = ["open"], zi = ["id", "aria-disabled", "aria-labelledby"], Ri = ["data-visually-hidden", "id"], Vi = { key: 1 }, Pi = { key: 0 }, Ui = { key: 0 }, qi = { class: "db-checkbox db-custom-select-list-item" }, Gi = ["form", "checked"], Wi = ["aria-hidden", "id"], Oi = {
|
|
3062
3065
|
"data-visually-hidden": "true",
|
|
3063
3066
|
role: "status"
|
|
3064
|
-
},
|
|
3067
|
+
}, Ol = /* @__PURE__ */ P({
|
|
3065
3068
|
__name: "custom-select",
|
|
3066
3069
|
props: {
|
|
3067
3070
|
children: { default: void 0 },
|
|
@@ -3126,47 +3129,47 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3126
3129
|
},
|
|
3127
3130
|
emits: ["update:values"],
|
|
3128
3131
|
setup(i, { emit: a }) {
|
|
3129
|
-
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0),
|
|
3132
|
+
const l = a, e = i, t = s(void 0), p = s(void 0), d = s(void 0), B = s(void 0), r = s(void 0), v = s(void 0), u = s(void 0), L = s(void 0), g = s(void 0), h = s(void 0), f = s("no-validation"), c = s(""), I = s(""), C = s(void 0), b = s(""), k = s([]), W = s(!1), y = s(!1), O = s(0), w = s([]), H = s([]), le = s(!1), J = s(void 0), Fe = s(0), ye = s(void 0), Te = s(void 0), Ve = s(void 0), Pe = s(!1), Ce = s(!1), va = s(null), N = s(null), ke = s(null), Ne = s(null), Ue = s(null);
|
|
3130
3133
|
Y(() => {
|
|
3131
3134
|
const o = e.id ?? `custom-select-${Q()}`;
|
|
3132
|
-
t.value = o, p.value = o + fe, d.value = o + pe,
|
|
3135
|
+
t.value = o, p.value = o + fe, d.value = o + pe, B.value = o + he, v.value = o + xe, u.value = o + Ze, L.value = o + "-summary", g.value = o + ze, C.value = o + "-selected-labels", h.value = o + "-info", r.value = e.invalidMessage || ie, typeof window < "u" && "IntersectionObserver" in window && (Te.value = new IntersectionObserver(($) => {
|
|
3133
3136
|
if (N.value) {
|
|
3134
|
-
const
|
|
3135
|
-
|
|
3137
|
+
const E = $.find(({ target: j }) => j === N.value);
|
|
3138
|
+
E && !E.isIntersecting && N.value.open && (N.value.open = !1);
|
|
3136
3139
|
}
|
|
3137
3140
|
}));
|
|
3138
|
-
}),
|
|
3141
|
+
}), D(
|
|
3139
3142
|
() => [N.value],
|
|
3140
3143
|
() => {
|
|
3141
3144
|
N.value && N.value.addEventListener(
|
|
3142
3145
|
"focusout",
|
|
3143
|
-
(o) =>
|
|
3146
|
+
(o) => Ee(o)
|
|
3144
3147
|
);
|
|
3145
3148
|
},
|
|
3146
3149
|
{
|
|
3147
3150
|
immediate: !0,
|
|
3148
3151
|
flush: "post"
|
|
3149
3152
|
}
|
|
3150
|
-
),
|
|
3153
|
+
), D(
|
|
3151
3154
|
() => [t.value],
|
|
3152
3155
|
() => {
|
|
3153
3156
|
if (t.value) {
|
|
3154
3157
|
const o = t.value + fe;
|
|
3155
|
-
u.value = t.value + Ze, v.value = t.value + xe, d.value = t.value + pe,
|
|
3158
|
+
u.value = t.value + Ze, v.value = t.value + xe, d.value = t.value + pe, B.value = t.value + he, g.value = t.value + ze, ee(e.message, e.showMessage) ? Oe(o) : Oe();
|
|
3156
3159
|
}
|
|
3157
3160
|
},
|
|
3158
3161
|
{
|
|
3159
3162
|
immediate: !0,
|
|
3160
3163
|
flush: "post"
|
|
3161
3164
|
}
|
|
3162
|
-
),
|
|
3163
|
-
() => [N.value,
|
|
3165
|
+
), D(
|
|
3166
|
+
() => [N.value, c.value],
|
|
3164
3167
|
() => {
|
|
3165
3168
|
if (N.value) {
|
|
3166
3169
|
const o = N.value.querySelector("summary");
|
|
3167
3170
|
o && o.setAttribute(
|
|
3168
3171
|
"aria-describedby",
|
|
3169
|
-
e.ariaDescribedBy ?? (
|
|
3172
|
+
e.ariaDescribedBy ?? (c.value || "")
|
|
3170
3173
|
);
|
|
3171
3174
|
}
|
|
3172
3175
|
},
|
|
@@ -3174,7 +3177,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3174
3177
|
immediate: !0,
|
|
3175
3178
|
flush: "post"
|
|
3176
3179
|
}
|
|
3177
|
-
),
|
|
3180
|
+
), D(
|
|
3178
3181
|
() => [e.showNoResults, H.value],
|
|
3179
3182
|
() => {
|
|
3180
3183
|
e.showNoResults !== void 0 ? le.value = e.showNoResults : H.value && (le.value = H.value.length === 0);
|
|
@@ -3183,35 +3186,35 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3183
3186
|
immediate: !0,
|
|
3184
3187
|
flush: "post"
|
|
3185
3188
|
}
|
|
3186
|
-
),
|
|
3187
|
-
() => [e.showSelectAll,
|
|
3189
|
+
), D(
|
|
3190
|
+
() => [e.showSelectAll, O.value, e.multiple],
|
|
3188
3191
|
() => {
|
|
3189
|
-
|
|
3192
|
+
W.value = !!(e.multiple && (e.showSelectAll ?? O.value > 5));
|
|
3190
3193
|
},
|
|
3191
3194
|
{
|
|
3192
3195
|
immediate: !0,
|
|
3193
3196
|
flush: "post"
|
|
3194
3197
|
}
|
|
3195
|
-
),
|
|
3196
|
-
() => [e.showSearch,
|
|
3198
|
+
), D(
|
|
3199
|
+
() => [e.showSearch, O.value],
|
|
3197
3200
|
() => {
|
|
3198
|
-
y.value = e.showSearch ??
|
|
3201
|
+
y.value = e.showSearch ?? O.value > 9;
|
|
3199
3202
|
},
|
|
3200
3203
|
{
|
|
3201
3204
|
immediate: !0,
|
|
3202
3205
|
flush: "post"
|
|
3203
3206
|
}
|
|
3204
|
-
),
|
|
3207
|
+
), D(
|
|
3205
3208
|
() => [e.values],
|
|
3206
3209
|
() => {
|
|
3207
|
-
e.values && Array.isArray(e.values) && e.values !==
|
|
3210
|
+
e.values && Array.isArray(e.values) && e.values !== w.value && (w.value = e.values ?? []);
|
|
3208
3211
|
},
|
|
3209
3212
|
{
|
|
3210
3213
|
immediate: !0,
|
|
3211
3214
|
flush: "post"
|
|
3212
3215
|
}
|
|
3213
|
-
),
|
|
3214
|
-
() => [
|
|
3216
|
+
), D(
|
|
3217
|
+
() => [w.value],
|
|
3215
3218
|
() => {
|
|
3216
3219
|
pa();
|
|
3217
3220
|
},
|
|
@@ -3219,7 +3222,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3219
3222
|
immediate: !0,
|
|
3220
3223
|
flush: "post"
|
|
3221
3224
|
}
|
|
3222
|
-
),
|
|
3225
|
+
), D(
|
|
3223
3226
|
() => [e.validation],
|
|
3224
3227
|
() => {
|
|
3225
3228
|
f.value = e.validation;
|
|
@@ -3228,27 +3231,27 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3228
3231
|
immediate: !0,
|
|
3229
3232
|
flush: "post"
|
|
3230
3233
|
}
|
|
3231
|
-
),
|
|
3232
|
-
() => [
|
|
3234
|
+
), D(
|
|
3235
|
+
() => [w.value, O.value],
|
|
3233
3236
|
() => {
|
|
3234
3237
|
var o, $;
|
|
3235
|
-
((o =
|
|
3238
|
+
((o = w.value) == null ? void 0 : o.length) === 0 ? (Pe.value = !1, Ce.value = !1) : (($ = w.value) == null ? void 0 : $.length) === O.value ? (Ce.value = !1, Pe.value = !0) : w.value && (Ce.value = !0);
|
|
3236
3239
|
},
|
|
3237
3240
|
{
|
|
3238
3241
|
immediate: !0,
|
|
3239
3242
|
flush: "post"
|
|
3240
3243
|
}
|
|
3241
|
-
),
|
|
3244
|
+
), D(
|
|
3242
3245
|
() => [e.options],
|
|
3243
3246
|
() => {
|
|
3244
3247
|
var o;
|
|
3245
|
-
H.value = e.options,
|
|
3248
|
+
H.value = e.options, O.value = ((o = e.options) == null ? void 0 : o.filter(($) => !$.isGroupTitle).length) ?? 0;
|
|
3246
3249
|
},
|
|
3247
3250
|
{
|
|
3248
3251
|
immediate: !0,
|
|
3249
3252
|
flush: "post"
|
|
3250
3253
|
}
|
|
3251
|
-
),
|
|
3254
|
+
), D(
|
|
3252
3255
|
() => [e.searchValue],
|
|
3253
3256
|
() => {
|
|
3254
3257
|
if (Ve.value = e.searchValue, e.searchValue) {
|
|
@@ -3260,14 +3263,14 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3260
3263
|
immediate: !0,
|
|
3261
3264
|
flush: "post"
|
|
3262
3265
|
}
|
|
3263
|
-
),
|
|
3264
|
-
() => [e.options,
|
|
3266
|
+
), D(
|
|
3267
|
+
() => [e.options, w.value],
|
|
3265
3268
|
() => {
|
|
3266
3269
|
var o, $;
|
|
3267
|
-
(o = e.options) != null && o.length && (
|
|
3268
|
-
(
|
|
3270
|
+
(o = e.options) != null && o.length && (k.value = ($ = e.options) == null ? void 0 : $.filter(
|
|
3271
|
+
(E) => {
|
|
3269
3272
|
var j, oe;
|
|
3270
|
-
return !
|
|
3273
|
+
return !E.value || !((j = w.value) != null && j.includes) ? !1 : !E.isGroupTitle && ((oe = w.value) == null ? void 0 : oe.includes(E.value));
|
|
3271
3274
|
}
|
|
3272
3275
|
));
|
|
3273
3276
|
},
|
|
@@ -3275,27 +3278,27 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3275
3278
|
immediate: !0,
|
|
3276
3279
|
flush: "post"
|
|
3277
3280
|
}
|
|
3278
|
-
),
|
|
3281
|
+
), D(
|
|
3279
3282
|
() => [
|
|
3280
|
-
|
|
3283
|
+
k.value,
|
|
3281
3284
|
e.selectedType,
|
|
3282
3285
|
e.amountText,
|
|
3283
3286
|
e.selectedLabels,
|
|
3284
3287
|
e.transformSelectedLabels
|
|
3285
3288
|
],
|
|
3286
3289
|
() => {
|
|
3287
|
-
var o, $,
|
|
3290
|
+
var o, $, E;
|
|
3288
3291
|
if (e.selectedLabels) {
|
|
3289
3292
|
I.value = e.selectedLabels;
|
|
3290
3293
|
return;
|
|
3291
3294
|
}
|
|
3292
|
-
if ((o =
|
|
3295
|
+
if ((o = k.value) != null && o.length) {
|
|
3293
3296
|
if (e.transformSelectedLabels) {
|
|
3294
|
-
const j =
|
|
3297
|
+
const j = k.value, oe = e.transformSelectedLabels;
|
|
3295
3298
|
I.value = oe(j);
|
|
3296
3299
|
return;
|
|
3297
3300
|
}
|
|
3298
|
-
e.selectedType === "amount" ? I.value = e.amountText ? e.amountText : `${($ =
|
|
3301
|
+
e.selectedType === "amount" ? I.value = e.amountText ? e.amountText : `${($ = k.value) == null ? void 0 : $.length} ${za}` : I.value = (E = k.value) == null ? void 0 : E.map((j) => $e(j)).join(", ");
|
|
3299
3302
|
} else
|
|
3300
3303
|
I.value = "";
|
|
3301
3304
|
},
|
|
@@ -3303,30 +3306,30 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3303
3306
|
immediate: !0,
|
|
3304
3307
|
flush: "post"
|
|
3305
3308
|
}
|
|
3306
|
-
),
|
|
3307
|
-
() => [
|
|
3309
|
+
), D(
|
|
3310
|
+
() => [k.value],
|
|
3308
3311
|
() => {
|
|
3309
3312
|
var o;
|
|
3310
|
-
e.onAmountChange && e.onAmountChange(((o =
|
|
3313
|
+
e.onAmountChange && e.onAmountChange(((o = k.value) == null ? void 0 : o.length) ?? 0);
|
|
3311
3314
|
},
|
|
3312
3315
|
{
|
|
3313
3316
|
immediate: !0,
|
|
3314
3317
|
flush: "post"
|
|
3315
3318
|
}
|
|
3316
|
-
),
|
|
3317
|
-
() => [
|
|
3319
|
+
), D(
|
|
3320
|
+
() => [Ce.value, Ne.value],
|
|
3318
3321
|
() => {
|
|
3319
|
-
Ne.value && (Ne.value.indeterminate = !!
|
|
3322
|
+
Ne.value && (Ne.value.indeterminate = !!Ce.value);
|
|
3320
3323
|
},
|
|
3321
3324
|
{
|
|
3322
3325
|
immediate: !0,
|
|
3323
3326
|
flush: "post"
|
|
3324
3327
|
}
|
|
3325
|
-
),
|
|
3328
|
+
), D(
|
|
3326
3329
|
() => [ke.value, e.invalidMessage],
|
|
3327
3330
|
() => {
|
|
3328
3331
|
var o;
|
|
3329
|
-
|
|
3332
|
+
r.value = e.invalidMessage || ((o = ke.value) == null ? void 0 : o.validationMessage) || ie;
|
|
3330
3333
|
},
|
|
3331
3334
|
{
|
|
3332
3335
|
immediate: !0,
|
|
@@ -3334,19 +3337,19 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3334
3337
|
}
|
|
3335
3338
|
);
|
|
3336
3339
|
function fa(o) {
|
|
3337
|
-
var $,
|
|
3338
|
-
($ = o == null ? void 0 : o.target) != null && $.contains && ((
|
|
3340
|
+
var $, E;
|
|
3341
|
+
($ = o == null ? void 0 : o.target) != null && $.contains && ((E = o == null ? void 0 : o.target) != null && E.contains(N.value)) && qe();
|
|
3339
3342
|
}
|
|
3340
3343
|
function We() {
|
|
3341
3344
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3342
3345
|
}
|
|
3343
3346
|
function pa() {
|
|
3344
|
-
var o, $,
|
|
3345
|
-
ke.value && (ke.value.value = ma()), !((o = ke.value) != null && o.validity.valid) || e.validation === "invalid" ? (
|
|
3347
|
+
var o, $, E;
|
|
3348
|
+
ke.value && (ke.value.value = ma()), !((o = ke.value) != null && o.validity.valid) || e.validation === "invalid" ? (c.value = B.value, r.value = e.invalidMessage || (($ = ke.value) == null ? void 0 : $.validationMessage) || ie, ve() && (b.value = r.value, x(() => b.value = "", 1e3)), f.value = e.validation ?? "invalid") : We() && ((E = ke.value) != null && E.validity.valid) && e.required ? (c.value = d.value, ve() && (b.value = e.validMessage ?? me, x(() => b.value = "", 1e3)), f.value = e.validation ?? "valid") : ee(e.message, e.showMessage) ? (c.value = p.value, f.value = e.validation ?? "no-validation") : (c.value = g.value, f.value = e.validation ?? "no-validation");
|
|
3346
3349
|
}
|
|
3347
3350
|
function ha(o) {
|
|
3348
|
-
var $,
|
|
3349
|
-
e.onDropdownToggle && (o.stopPropagation(), e.onDropdownToggle(o)), o.target.open ? (J.value = new Re().addCallback(
|
|
3351
|
+
var $, E;
|
|
3352
|
+
e.onDropdownToggle && (o.stopPropagation(), e.onDropdownToggle(o)), o.target instanceof HTMLDetailsElement && o.target.open ? (J.value = new Re().addCallback(
|
|
3350
3353
|
(j) => Ba(j)
|
|
3351
3354
|
), ye.value = new Ie().addCallback(
|
|
3352
3355
|
(j) => fa(j)
|
|
@@ -3354,16 +3357,16 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3354
3357
|
J.value
|
|
3355
3358
|
), ye.value && new Ie().removeCallback(
|
|
3356
3359
|
ye.value
|
|
3357
|
-
), (
|
|
3360
|
+
), (E = Te.value) == null || E.unobserve(N.value));
|
|
3358
3361
|
}
|
|
3359
3362
|
function ma() {
|
|
3360
3363
|
var o;
|
|
3361
|
-
return (o =
|
|
3364
|
+
return (o = w.value) != null && o.length ? w.value.at(0) ?? "" : "";
|
|
3362
3365
|
}
|
|
3363
3366
|
function Oe(o) {
|
|
3364
|
-
var
|
|
3367
|
+
var E;
|
|
3365
3368
|
const $ = [];
|
|
3366
|
-
o && $.push(o),
|
|
3369
|
+
o && $.push(o), C.value && ((E = I.value) != null && E.length) && $.push(C.value), c.value = $.join(" ");
|
|
3367
3370
|
}
|
|
3368
3371
|
function ga() {
|
|
3369
3372
|
return e.selectAllLabel ?? Se;
|
|
@@ -3373,20 +3376,20 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3373
3376
|
return o.label ?? (($ = o.value) == null ? void 0 : $.toString()) ?? "";
|
|
3374
3377
|
}
|
|
3375
3378
|
function ba(o) {
|
|
3376
|
-
var $,
|
|
3377
|
-
return o && (($ =
|
|
3379
|
+
var $, E;
|
|
3380
|
+
return o && (($ = w.value) != null && $.includes) ? (E = w.value) == null ? void 0 : E.includes(o) : !1;
|
|
3378
3381
|
}
|
|
3379
3382
|
function ya(o) {
|
|
3380
|
-
return e.removeTagsTexts && e.removeTagsTexts.length > o ? e.removeTagsTexts.at(o) : `${ia} ${
|
|
3383
|
+
return e.removeTagsTexts && e.removeTagsTexts.length > o ? e.removeTagsTexts.at(o) : `${ia} ${k.value ? $e(k.value[o]) : ""}`;
|
|
3381
3384
|
}
|
|
3382
3385
|
function ka(o, $) {
|
|
3383
|
-
$.stopPropagation(), He(o.value), Ae();
|
|
3386
|
+
$ && $.stopPropagation(), He(o.value), Ae();
|
|
3384
3387
|
}
|
|
3385
3388
|
function qe() {
|
|
3386
3389
|
if (N.value) {
|
|
3387
3390
|
const o = N.value.querySelector("article");
|
|
3388
3391
|
o && x(() => {
|
|
3389
|
-
|
|
3392
|
+
st(
|
|
3390
3393
|
o,
|
|
3391
3394
|
N.value,
|
|
3392
3395
|
e.placement ?? "bottom"
|
|
@@ -3395,7 +3398,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3395
3398
|
}
|
|
3396
3399
|
}
|
|
3397
3400
|
function wa(o) {
|
|
3398
|
-
var $,
|
|
3401
|
+
var $, E, j, oe, q, ge, De;
|
|
3399
3402
|
if (($ = N.value) != null && $.open) {
|
|
3400
3403
|
if (self.document) {
|
|
3401
3404
|
const ue = self.document.activeElement;
|
|
@@ -3403,7 +3406,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3403
3406
|
if (ue.getAttribute("type") === "checkbox" || ue.getAttribute("type") === "radio") {
|
|
3404
3407
|
const ne = ue == null ? void 0 : ue.closest("li");
|
|
3405
3408
|
if (o.key === "ArrowDown" || o.key === "ArrowRight")
|
|
3406
|
-
ne != null && ne.nextElementSibling ? (j = (
|
|
3409
|
+
ne != null && ne.nextElementSibling ? (j = (E = ne == null ? void 0 : ne.nextElementSibling) == null ? void 0 : E.querySelector("input")) == null || j.focus() : Me(ue);
|
|
3407
3410
|
else if (ne != null && ne.previousElementSibling)
|
|
3408
3411
|
(q = (oe = ne == null ? void 0 : ne.previousElementSibling) == null ? void 0 : oe.querySelector("input")) == null || q.focus();
|
|
3409
3412
|
else if (N.value.querySelector('input[type="checkbox"]') !== ue)
|
|
@@ -3424,34 +3427,34 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3424
3427
|
}
|
|
3425
3428
|
}
|
|
3426
3429
|
} else
|
|
3427
|
-
ue.getAttribute("type") === "search" && (o.key === "ArrowUp" || o.key === "ArrowLeft") ? (
|
|
3430
|
+
ue.getAttribute("type") === "search" && (o.key === "ArrowUp" || o.key === "ArrowLeft") ? (Ee(void 0, !0), Ae()) : Me(ue);
|
|
3428
3431
|
}
|
|
3429
3432
|
} else (o.key === "ArrowDown" || o.key === "ArrowRight") && (qe(), N.value && (N.value.open = !0), Xe());
|
|
3430
3433
|
o.stopPropagation(), o.preventDefault();
|
|
3431
3434
|
}
|
|
3432
3435
|
function Sa(o) {
|
|
3433
3436
|
var $;
|
|
3434
|
-
o.stopPropagation(), o.key === "Escape" && (($ = N.value) != null && $.open) ? (
|
|
3437
|
+
o.stopPropagation(), o.key === "Escape" && (($ = N.value) != null && $.open) ? (Ee(void 0, !0), Ae()) : (o.key === "ArrowDown" || o.key === "ArrowUp" || o.key === "ArrowLeft" || o.key === "ArrowRight") && wa(o);
|
|
3435
3438
|
}
|
|
3436
|
-
function
|
|
3439
|
+
function Ee(o, $) {
|
|
3437
3440
|
if (N.value) {
|
|
3438
|
-
if (
|
|
3441
|
+
if ($)
|
|
3439
3442
|
N.value.open = !1, Ae();
|
|
3440
|
-
else if (N.value.open &&
|
|
3441
|
-
const
|
|
3442
|
-
N.value.contains(
|
|
3443
|
+
else if (N.value.open && o && o.relatedTarget) {
|
|
3444
|
+
const E = o.relatedTarget;
|
|
3445
|
+
N.value.contains(E) || x(() => N.value.open = !1, 1);
|
|
3443
3446
|
}
|
|
3444
3447
|
}
|
|
3445
3448
|
}
|
|
3446
3449
|
function Ba(o) {
|
|
3447
3450
|
var $;
|
|
3448
3451
|
if (o) {
|
|
3449
|
-
const
|
|
3450
|
-
($ = N.value) != null && $.open && !N.value.contains(
|
|
3452
|
+
const E = o.target;
|
|
3453
|
+
($ = N.value) != null && $.open && !N.value.contains(E) && (N.value.open = !1);
|
|
3451
3454
|
}
|
|
3452
3455
|
}
|
|
3453
3456
|
function _e(o) {
|
|
3454
|
-
(/* @__PURE__ */ new Date()).getTime() - Fe.value < 200 || (
|
|
3457
|
+
(/* @__PURE__ */ new Date()).getTime() - Fe.value < 200 || (w.value = o, e.onOptionSelected && e.onOptionSelected(o ?? []), se(
|
|
3455
3458
|
l,
|
|
3456
3459
|
{
|
|
3457
3460
|
target: {
|
|
@@ -3463,19 +3466,19 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3463
3466
|
}
|
|
3464
3467
|
function He(o) {
|
|
3465
3468
|
var $;
|
|
3466
|
-
o && (e.multiple ? ($ =
|
|
3469
|
+
o && (e.multiple ? ($ = w.value) != null && $.includes(o) ? _e(w.value.filter((E) => E !== o)) : _e([...w.value || [], o]) : (_e([o]), Ee(void 0, !0)));
|
|
3467
3470
|
}
|
|
3468
3471
|
function Ia(o) {
|
|
3469
3472
|
var $;
|
|
3470
|
-
if (o.stopPropagation(), (($ =
|
|
3473
|
+
if (o.stopPropagation(), (($ = w.value) == null ? void 0 : $.length) === O.value)
|
|
3471
3474
|
_e([]);
|
|
3472
3475
|
else {
|
|
3473
|
-
const
|
|
3476
|
+
const E = y.value && Ue.value ? Ue.value.value : void 0;
|
|
3474
3477
|
_e(
|
|
3475
3478
|
e.options ? e.options.filter(
|
|
3476
3479
|
(j) => {
|
|
3477
3480
|
var oe;
|
|
3478
|
-
return !j.isGroupTitle && (!
|
|
3481
|
+
return !j.isGroupTitle && (!E || ((oe = j.value) == null ? void 0 : oe.toLowerCase().includes(E.toLowerCase())));
|
|
3479
3482
|
}
|
|
3480
3483
|
).map((j) => j.value ?? "") : []
|
|
3481
3484
|
);
|
|
@@ -3489,7 +3492,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3489
3492
|
)
|
|
3490
3493
|
);
|
|
3491
3494
|
if ($.length) {
|
|
3492
|
-
const
|
|
3495
|
+
const E = $.at(0), j = E === o && $.length > 1 ? $.at(1) : E;
|
|
3493
3496
|
j && x(() => {
|
|
3494
3497
|
j.focus();
|
|
3495
3498
|
}, 1);
|
|
@@ -3505,11 +3508,19 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3505
3508
|
}
|
|
3506
3509
|
}
|
|
3507
3510
|
function je(o) {
|
|
3511
|
+
if (o === void 0)
|
|
3512
|
+
return;
|
|
3508
3513
|
let $;
|
|
3509
|
-
typeof o == "string"
|
|
3510
|
-
|
|
3514
|
+
if (typeof o == "string")
|
|
3515
|
+
$ = o;
|
|
3516
|
+
else {
|
|
3517
|
+
const E = o;
|
|
3518
|
+
E.stopPropagation(), e.onSearch && e.onSearch(E), $ = E.target.value, Ve.value = $;
|
|
3519
|
+
}
|
|
3520
|
+
!e.options || !$ || $.length === 0 ? H.value = e.options : e.searchFilter ? H.value = e.options.filter(
|
|
3521
|
+
(E) => e.searchFilter(E, $)
|
|
3511
3522
|
) : H.value = e.options.filter(
|
|
3512
|
-
(
|
|
3523
|
+
(E) => !E.isGroupTitle && $e(E).toLowerCase().includes($.toLowerCase())
|
|
3513
3524
|
);
|
|
3514
3525
|
}
|
|
3515
3526
|
function $a(o) {
|
|
@@ -3523,8 +3534,8 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3523
3534
|
o.stopPropagation();
|
|
3524
3535
|
}
|
|
3525
3536
|
return (o, $) => {
|
|
3526
|
-
var
|
|
3527
|
-
return m(),
|
|
3537
|
+
var E, j, oe;
|
|
3538
|
+
return m(), S("div", {
|
|
3528
3539
|
id: t.value,
|
|
3529
3540
|
ref_key: "_ref",
|
|
3530
3541
|
ref: va,
|
|
@@ -3541,7 +3552,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3541
3552
|
"data-hide-icon": n(K)(o.showIcon)
|
|
3542
3553
|
}, [
|
|
3543
3554
|
T("label", { id: u.value }, [
|
|
3544
|
-
|
|
3555
|
+
F(_(o.label ?? n(Se)), 1),
|
|
3545
3556
|
T("select", {
|
|
3546
3557
|
role: "none",
|
|
3547
3558
|
hidden: !0,
|
|
@@ -3556,13 +3567,13 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3556
3567
|
required: n(M)(o.required, "required"),
|
|
3557
3568
|
onChange: $[0] || ($[0] = async (q) => La(q))
|
|
3558
3569
|
}, [
|
|
3559
|
-
(
|
|
3570
|
+
(E = o.options) != null && E.length ? (m(!0), S(U, { key: 0 }, be(o.options, (q, ge) => (m(), S("option", {
|
|
3560
3571
|
key: ge,
|
|
3561
3572
|
disabled: q.disabled,
|
|
3562
3573
|
value: q.value
|
|
3563
|
-
}, _($e(q)), 9,
|
|
3564
|
-
], 40,
|
|
3565
|
-
], 8,
|
|
3574
|
+
}, _($e(q)), 9, Ni))), 128)) : V("", !0)
|
|
3575
|
+
], 40, Fi)
|
|
3576
|
+
], 8, Di),
|
|
3566
3577
|
T("details", {
|
|
3567
3578
|
ref_key: "detailsRef",
|
|
3568
3579
|
ref: N,
|
|
@@ -3570,21 +3581,21 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3570
3581
|
onToggle: $[2] || ($[2] = async (q) => ha(q)),
|
|
3571
3582
|
onKeydown: $[3] || ($[3] = async (q) => Sa(q))
|
|
3572
3583
|
}, [
|
|
3573
|
-
|
|
3574
|
-
o.options ? (m(),
|
|
3584
|
+
A(o.$slots, "default"),
|
|
3585
|
+
o.options ? (m(), S(U, { key: 0 }, [
|
|
3575
3586
|
T("summary", {
|
|
3576
3587
|
class: "db-custom-select-form-field",
|
|
3577
3588
|
id: L.value,
|
|
3578
3589
|
"aria-disabled": n(X)(o.disabled),
|
|
3579
3590
|
"aria-labelledby": u.value
|
|
3580
3591
|
}, [
|
|
3581
|
-
(j = I.value) != null && j.length ? (m(),
|
|
3592
|
+
(j = I.value) != null && j.length ? (m(), S("span", {
|
|
3582
3593
|
key: 0,
|
|
3583
3594
|
"data-visually-hidden": n(X)(o.selectedType === "tag"),
|
|
3584
|
-
id:
|
|
3585
|
-
}, _(I.value), 9,
|
|
3586
|
-
o.selectedType === "tag" ? (m(),
|
|
3587
|
-
(m(!0),
|
|
3595
|
+
id: C.value
|
|
3596
|
+
}, _(I.value), 9, Ri)) : V("", !0),
|
|
3597
|
+
o.selectedType === "tag" ? (m(), S("div", Vi, [
|
|
3598
|
+
(m(!0), S(U, null, be(k.value, (q, ge) => (m(), Z(Qt, {
|
|
3588
3599
|
key: ge,
|
|
3589
3600
|
emphasis: "strong",
|
|
3590
3601
|
behavior: "removable",
|
|
@@ -3592,15 +3603,15 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3592
3603
|
onRemove: (De) => ka(q, De)
|
|
3593
3604
|
}, {
|
|
3594
3605
|
default: G(() => [
|
|
3595
|
-
|
|
3606
|
+
F(_($e(q)), 1)
|
|
3596
3607
|
]),
|
|
3597
3608
|
_: 2
|
|
3598
3609
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
3599
3610
|
])) : V("", !0)
|
|
3600
|
-
], 8,
|
|
3611
|
+
], 8, zi),
|
|
3601
3612
|
ae(Ei, { width: o.dropdownWidth }, {
|
|
3602
3613
|
default: G(() => [
|
|
3603
|
-
y.value ? (m(),
|
|
3614
|
+
y.value ? (m(), S("div", Pi, [
|
|
3604
3615
|
ae(Et, {
|
|
3605
3616
|
type: "search",
|
|
3606
3617
|
ref_key: "searchInputRef",
|
|
@@ -3622,12 +3633,12 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3622
3633
|
semantic: le.value ? "warning" : "informational"
|
|
3623
3634
|
}, {
|
|
3624
3635
|
default: G(() => [
|
|
3625
|
-
|
|
3636
|
+
F(_((le.value ? o.noResultsText : o.loadingText) ?? n(Na)), 1)
|
|
3626
3637
|
]),
|
|
3627
3638
|
_: 1
|
|
3628
|
-
}, 8, ["id", "icon", "semantic"])) : (m(),
|
|
3629
|
-
|
|
3630
|
-
T("div",
|
|
3639
|
+
}, 8, ["id", "icon", "semantic"])) : (m(), S(U, { key: 2 }, [
|
|
3640
|
+
W.value ? (m(), S("div", Ui, [
|
|
3641
|
+
T("div", qi, [
|
|
3631
3642
|
T("label", null, [
|
|
3632
3643
|
T("input", {
|
|
3633
3644
|
type: "checkbox",
|
|
@@ -3637,17 +3648,17 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3637
3648
|
form: t.value,
|
|
3638
3649
|
checked: Pe.value,
|
|
3639
3650
|
onChange: $[1] || ($[1] = async (q) => Ia(q))
|
|
3640
|
-
}, null, 40,
|
|
3641
|
-
|
|
3651
|
+
}, null, 40, Gi),
|
|
3652
|
+
F(_(ga()), 1)
|
|
3642
3653
|
])
|
|
3643
3654
|
])
|
|
3644
3655
|
])) : V("", !0),
|
|
3645
|
-
ae(
|
|
3656
|
+
ae(Bi, {
|
|
3646
3657
|
multiple: n(M)(o.multiple, "multiple"),
|
|
3647
3658
|
label: o.ariaListLabel ?? o.label ?? n(Se)
|
|
3648
3659
|
}, {
|
|
3649
3660
|
default: G(() => [
|
|
3650
|
-
(m(!0),
|
|
3661
|
+
(m(!0), S(U, null, be(H.value, (q, ge) => (m(), Z(Ti, {
|
|
3651
3662
|
key: ge,
|
|
3652
3663
|
type: o.multiple ? "checkbox" : "radio",
|
|
3653
3664
|
showDivider: q.showDivider,
|
|
@@ -3661,8 +3672,8 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3661
3672
|
onChange: (De) => He(q.value)
|
|
3662
3673
|
}, {
|
|
3663
3674
|
default: G(() => [
|
|
3664
|
-
q.isGroupTitle ? V("", !0) : (m(),
|
|
3665
|
-
|
|
3675
|
+
q.isGroupTitle ? V("", !0) : (m(), S(U, { key: 0 }, [
|
|
3676
|
+
F(_($e(q)), 1)
|
|
3666
3677
|
], 64))
|
|
3667
3678
|
]),
|
|
3668
3679
|
_: 2
|
|
@@ -3679,10 +3690,10 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3679
3690
|
size: "small",
|
|
3680
3691
|
name: t.value,
|
|
3681
3692
|
form: t.value,
|
|
3682
|
-
onClick: (q) =>
|
|
3693
|
+
onClick: (q) => Ee(void 0, !0)
|
|
3683
3694
|
}, {
|
|
3684
3695
|
default: G(() => [
|
|
3685
|
-
|
|
3696
|
+
F(_(o.mobileCloseButtonText ?? n(Ge)), 1)
|
|
3686
3697
|
]),
|
|
3687
3698
|
_: 1
|
|
3688
3699
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -3691,8 +3702,8 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3691
3702
|
_: 1
|
|
3692
3703
|
}, 8, ["width"])
|
|
3693
3704
|
], 64)) : V("", !0)
|
|
3694
|
-
], 40,
|
|
3695
|
-
(o.showClearSelection ?? !0) && ((oe =
|
|
3705
|
+
], 40, Mi),
|
|
3706
|
+
(o.showClearSelection ?? !0) && ((oe = w.value) != null && oe.length) ? (m(), Z(Be, {
|
|
3696
3707
|
key: 0,
|
|
3697
3708
|
icon: "cross",
|
|
3698
3709
|
variant: "ghost",
|
|
@@ -3703,10 +3714,10 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3703
3714
|
onClick: (q) => $a(q)
|
|
3704
3715
|
}, {
|
|
3705
3716
|
default: G(() => [
|
|
3706
|
-
|
|
3717
|
+
F(_(o.clearSelectionText), 1),
|
|
3707
3718
|
ae(ca, { placement: "top" }, {
|
|
3708
3719
|
default: G(() => [
|
|
3709
|
-
|
|
3720
|
+
F(_(o.clearSelectionText), 1)
|
|
3710
3721
|
]),
|
|
3711
3722
|
_: 1
|
|
3712
3723
|
})
|
|
@@ -3716,7 +3727,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3716
3727
|
T("span", {
|
|
3717
3728
|
"aria-hidden": n(X)(!0),
|
|
3718
3729
|
id: g.value
|
|
3719
|
-
}, _(o.placeholder ?? o.label), 9,
|
|
3730
|
+
}, _(o.placeholder ?? o.label), 9, Wi),
|
|
3720
3731
|
n(ee)(o.message, o.showMessage) ? (m(), Z(te, {
|
|
3721
3732
|
key: 1,
|
|
3722
3733
|
size: "small",
|
|
@@ -3724,7 +3735,7 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3724
3735
|
id: p.value
|
|
3725
3736
|
}, {
|
|
3726
3737
|
default: G(() => [
|
|
3727
|
-
|
|
3738
|
+
F(_(o.message), 1)
|
|
3728
3739
|
]),
|
|
3729
3740
|
_: 1
|
|
3730
3741
|
}, 8, ["icon", "id"])) : V("", !0),
|
|
@@ -3735,25 +3746,25 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3735
3746
|
id: d.value
|
|
3736
3747
|
}, {
|
|
3737
3748
|
default: G(() => [
|
|
3738
|
-
|
|
3749
|
+
F(_(o.validMessage || n(me)), 1)
|
|
3739
3750
|
]),
|
|
3740
3751
|
_: 1
|
|
3741
3752
|
}, 8, ["id"])) : V("", !0),
|
|
3742
3753
|
ae(te, {
|
|
3743
3754
|
size: "small",
|
|
3744
3755
|
semantic: "critical",
|
|
3745
|
-
id:
|
|
3756
|
+
id: B.value
|
|
3746
3757
|
}, {
|
|
3747
3758
|
default: G(() => [
|
|
3748
|
-
|
|
3759
|
+
F(_(r.value), 1)
|
|
3749
3760
|
]),
|
|
3750
3761
|
_: 1
|
|
3751
3762
|
}, 8, ["id"]),
|
|
3752
|
-
T("span",
|
|
3753
|
-
], 10,
|
|
3763
|
+
T("span", Oi, _(b.value), 1)
|
|
3764
|
+
], 10, Ai);
|
|
3754
3765
|
};
|
|
3755
3766
|
}
|
|
3756
|
-
}),
|
|
3767
|
+
}), Hi = ["id"], Hl = /* @__PURE__ */ P({
|
|
3757
3768
|
__name: "custom-select-form-field",
|
|
3758
3769
|
props: {
|
|
3759
3770
|
children: { default: void 0 },
|
|
@@ -3765,109 +3776,109 @@ const Ci = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3765
3776
|
},
|
|
3766
3777
|
setup(i) {
|
|
3767
3778
|
const a = i, l = s(null);
|
|
3768
|
-
return (e, t) => (m(),
|
|
3779
|
+
return (e, t) => (m(), S("summary", {
|
|
3769
3780
|
ref_key: "_ref",
|
|
3770
3781
|
ref: l,
|
|
3771
3782
|
id: e.id,
|
|
3772
3783
|
class: z(n(R)("db-custom-select-form-field", a.class))
|
|
3773
3784
|
}, [
|
|
3774
|
-
|
|
3775
|
-
], 10,
|
|
3785
|
+
A(e.$slots, "default")
|
|
3786
|
+
], 10, Hi));
|
|
3776
3787
|
}
|
|
3777
3788
|
});
|
|
3778
3789
|
export {
|
|
3779
|
-
|
|
3780
|
-
|
|
3790
|
+
Gl as AlignmentList,
|
|
3791
|
+
Vl as AutoCompleteList,
|
|
3781
3792
|
da as COLOR,
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3793
|
+
xi as COLORS,
|
|
3794
|
+
el as COLORS_SIMPLE,
|
|
3795
|
+
Qi as COLOR_CONST,
|
|
3785
3796
|
oa as COLOR_SIMPLE,
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3797
|
+
yl as DBAccordion,
|
|
3798
|
+
si as DBAccordionItem,
|
|
3799
|
+
ll as DBBadge,
|
|
3800
|
+
ol as DBBrand,
|
|
3790
3801
|
Be as DBButton,
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3802
|
+
dl as DBCard,
|
|
3803
|
+
nl as DBCheckbox,
|
|
3804
|
+
Ol as DBCustomSelect,
|
|
3794
3805
|
Ei as DBCustomSelectDropdown,
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3806
|
+
Hl as DBCustomSelectFormField,
|
|
3807
|
+
Bi as DBCustomSelectList,
|
|
3808
|
+
Ti as DBCustomSelectListItem,
|
|
3809
|
+
sl as DBDivider,
|
|
3810
|
+
ot as DBDrawer,
|
|
3811
|
+
ul as DBHeader,
|
|
3812
|
+
rl as DBIcon,
|
|
3802
3813
|
te as DBInfotext,
|
|
3803
3814
|
Et as DBInput,
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3815
|
+
cl as DBLink,
|
|
3816
|
+
kl as DBNavigation,
|
|
3817
|
+
bl as DBNavigationItem,
|
|
3818
|
+
il as DBNotification,
|
|
3819
|
+
vl as DBPage,
|
|
3820
|
+
wl as DBPopover,
|
|
3821
|
+
fl as DBRadio,
|
|
3822
|
+
pl as DBSection,
|
|
3823
|
+
hl as DBSelect,
|
|
3824
|
+
Wl as DBStack,
|
|
3825
|
+
ml as DBSwitch,
|
|
3826
|
+
Yt as DBTabItem,
|
|
3827
|
+
hi as DBTabList,
|
|
3828
|
+
gi as DBTabPanel,
|
|
3829
|
+
Sl as DBTabs,
|
|
3830
|
+
Qt as DBTag,
|
|
3831
|
+
gl as DBTextarea,
|
|
3821
3832
|
ca as DBTooltip,
|
|
3822
|
-
|
|
3823
|
-
|
|
3833
|
+
Ma as DEFAULT_BACK,
|
|
3834
|
+
Ra as DEFAULT_BURGER_MENU,
|
|
3824
3835
|
Ge as DEFAULT_CLOSE_BUTTON,
|
|
3825
3836
|
ea as DEFAULT_DATALIST_ID_SUFFIX,
|
|
3826
|
-
|
|
3837
|
+
Va as DEFAULT_ICON,
|
|
3827
3838
|
Le as DEFAULT_ID,
|
|
3828
3839
|
ie as DEFAULT_INVALID_MESSAGE,
|
|
3829
3840
|
he as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
3830
3841
|
Se as DEFAULT_LABEL,
|
|
3831
3842
|
Ze as DEFAULT_LABEL_ID_SUFFIX,
|
|
3832
|
-
|
|
3843
|
+
Na as DEFAULT_MESSAGE,
|
|
3833
3844
|
fe as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
3834
3845
|
ta as DEFAULT_PLACEHOLDER,
|
|
3835
3846
|
ze as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
3836
3847
|
ia as DEFAULT_REMOVE,
|
|
3837
|
-
|
|
3838
|
-
|
|
3848
|
+
Pa as DEFAULT_ROWS,
|
|
3849
|
+
za as DEFAULT_SELECTED,
|
|
3839
3850
|
xe as DEFAULT_SELECT_ID_SUFFIX,
|
|
3840
3851
|
me as DEFAULT_VALID_MESSAGE,
|
|
3841
3852
|
pe as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
3842
|
-
|
|
3843
|
-
|
|
3853
|
+
Ua as DEFAULT_VIEWPORT,
|
|
3854
|
+
Zi as DENSITIES,
|
|
3844
3855
|
la as DENSITY,
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3856
|
+
Ji as DENSITY_CONST,
|
|
3857
|
+
qa as DESKTOP_VIEWPORT,
|
|
3858
|
+
Nl as EmphasisList,
|
|
3859
|
+
zl as FieldSizingList,
|
|
3860
|
+
_l as GapSpacingList,
|
|
3861
|
+
Rl as LabelVariantList,
|
|
3862
|
+
Pl as LinkCurrentList,
|
|
3863
|
+
ql as LinkReferrerPolicyList,
|
|
3864
|
+
Ul as LinkTargetList,
|
|
3865
|
+
$l as MarginList,
|
|
3855
3866
|
El as MaxWidthList,
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3867
|
+
ut as NavigationItemSafeTriangle,
|
|
3868
|
+
Tl as OrientationList,
|
|
3869
|
+
yi as PlacementHorizontalList,
|
|
3870
|
+
Ll as PlacementList,
|
|
3871
|
+
ki as PlacementVerticalList,
|
|
3872
|
+
Al as PopoverDelayList,
|
|
3873
|
+
Dl as PopoverWidthList,
|
|
3863
3874
|
na as SEMANTIC,
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3875
|
+
al as SEMANTICS,
|
|
3876
|
+
Bl as SemanticList,
|
|
3877
|
+
Fl as SizeList,
|
|
3878
|
+
Il as SpacingList,
|
|
3879
|
+
tl as TESTING_VIEWPORTS,
|
|
3880
|
+
Ml as ValidationList,
|
|
3881
|
+
Cl as WidthList,
|
|
3871
3882
|
aa as addAttributeToChildren,
|
|
3872
3883
|
R as cls,
|
|
3873
3884
|
x as delay,
|
|
@@ -3876,11 +3887,12 @@ export {
|
|
|
3876
3887
|
K as getHideProp,
|
|
3877
3888
|
Je as getInputValue,
|
|
3878
3889
|
we as getNumber,
|
|
3879
|
-
|
|
3890
|
+
Ki as getOptionKey,
|
|
3880
3891
|
Qe as getSearchInput,
|
|
3881
3892
|
ve as hasVoiceOver,
|
|
3882
|
-
|
|
3893
|
+
Ea as isArrayOfStrings,
|
|
3883
3894
|
ra as isEventTargetNavigationItem,
|
|
3895
|
+
Da as isKeyboardEvent,
|
|
3884
3896
|
ee as stringPropVisible,
|
|
3885
3897
|
Q as uuid
|
|
3886
3898
|
};
|