@db-ux/v-core-components 2.0.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/custom-select/custom-select.vue.d.ts +6 -1
- package/dist/components/custom-select/model.d.ts +30 -4
- package/dist/components/icon/icon.vue.d.ts +1 -1
- package/dist/components/icon/model.d.ts +1 -3
- package/dist/components/select/model.d.ts +2 -1
- package/dist/components/tooltip/model.d.ts +11 -0
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -0
- package/dist/db-ux.es.js +709 -663
- package/dist/db-ux.umd.js +1 -1
- package/package.json +3 -3
package/dist/db-ux.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ue = (i, t, o) =>
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
const
|
|
1
|
+
var Ba = Object.defineProperty;
|
|
2
|
+
var Sa = (i, t, o) => t in i ? Ba(i, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[t] = o;
|
|
3
|
+
var ue = (i, t, o) => Sa(i, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import { defineComponent as z, ref as n, createElementBlock as b, openBlock as v, unref as d, normalizeClass as F, renderSlot as $, Fragment as V, createTextVNode as C, toDisplayString as B, createCommentVNode as D, createElementVNode as I, createBlock as Q, withCtx as U, onMounted as Y, watch as A, createVNode as ae, renderList as he, onUnmounted as wa } from "vue";
|
|
5
|
+
const Z = () => {
|
|
6
6
|
var i, t;
|
|
7
7
|
if (typeof window < "u") {
|
|
8
8
|
if ((i = window.crypto) != null && i.randomUUID)
|
|
@@ -11,10 +11,10 @@ const Q = () => {
|
|
|
11
11
|
return window.crypto.getRandomValues(new Uint32Array(3)).join("-");
|
|
12
12
|
}
|
|
13
13
|
return Math.random().toString().substring(2);
|
|
14
|
-
},
|
|
14
|
+
}, Ze = (i, t) => {
|
|
15
15
|
const o = i.children;
|
|
16
16
|
Object.values(o).forEach((e) => {
|
|
17
|
-
e.setAttribute(t.key, t.value), e.children.length > 0 &&
|
|
17
|
+
e.setAttribute(t.key, t.value), e.children.length > 0 && Ze(e, t);
|
|
18
18
|
});
|
|
19
19
|
}, M = (...i) => {
|
|
20
20
|
let t = "";
|
|
@@ -26,7 +26,7 @@ const Q = () => {
|
|
|
26
26
|
for (const e in o)
|
|
27
27
|
o[e] && (t += `${e} `);
|
|
28
28
|
return t.trim();
|
|
29
|
-
},
|
|
29
|
+
}, qi = (i) => {
|
|
30
30
|
const {
|
|
31
31
|
left: t,
|
|
32
32
|
right: o
|
|
@@ -34,7 +34,7 @@ const Q = () => {
|
|
|
34
34
|
innerWidth: e
|
|
35
35
|
} = window;
|
|
36
36
|
return t >= 0 && o <= e;
|
|
37
|
-
},
|
|
37
|
+
}, Ui = (i) => {
|
|
38
38
|
const {
|
|
39
39
|
top: t,
|
|
40
40
|
bottom: o
|
|
@@ -42,7 +42,7 @@ const Q = () => {
|
|
|
42
42
|
innerHeight: e
|
|
43
43
|
} = window;
|
|
44
44
|
return t >= 0 && o <= e;
|
|
45
|
-
},
|
|
45
|
+
}, Ia = (i) => {
|
|
46
46
|
var E;
|
|
47
47
|
const {
|
|
48
48
|
top: t,
|
|
@@ -54,8 +54,8 @@ const Q = () => {
|
|
|
54
54
|
innerWidth: u
|
|
55
55
|
} = window;
|
|
56
56
|
let g = t < 0, s = o > f, c = e < 0, r = a > u;
|
|
57
|
-
const _ = i.hasAttribute("data-outside-vy"), L = i.hasAttribute("data-outside-vx"),
|
|
58
|
-
return
|
|
57
|
+
const _ = i.hasAttribute("data-outside-vy"), L = i.hasAttribute("data-outside-vx"), S = (E = i == null ? void 0 : i.parentElement) == null ? void 0 : E.getBoundingClientRect();
|
|
58
|
+
return S && (_ && (i.getAttribute("data-outside-vy") === "top" ? g = S.top - (o - S.bottom) < 0 : s = S.bottom + (S.top - t) > f), L && (i.getAttribute("data-outside-vx") === "left" ? c = S.left - (a - S.right) < 0 : r = S.right + (S.left - e) > u)), {
|
|
59
59
|
outTop: g,
|
|
60
60
|
outBottom: s,
|
|
61
61
|
outLeft: c,
|
|
@@ -67,7 +67,7 @@ const Q = () => {
|
|
|
67
67
|
outBottom: o,
|
|
68
68
|
outLeft: e,
|
|
69
69
|
outRight: a
|
|
70
|
-
} =
|
|
70
|
+
} = Ia(i);
|
|
71
71
|
let f = {};
|
|
72
72
|
return t || o ? (f = {
|
|
73
73
|
vy: t ? "top" : "bottom"
|
|
@@ -75,7 +75,7 @@ const Q = () => {
|
|
|
75
75
|
...f,
|
|
76
76
|
vx: a ? "right" : "left"
|
|
77
77
|
}, i.setAttribute("data-outside-vx", f.vx)) : i.removeAttribute("data-outside-vx"), f;
|
|
78
|
-
},
|
|
78
|
+
}, _a = (i) => Array.isArray(i) && i.every((t) => typeof t == "string"), La = ["Mac", "iPhone", "iPad", "iPod"], re = () => typeof window < "u" && La.some((i) => window.navigator.userAgent.includes(i)), x = (i, t) => new Promise(() => setTimeout(i, t)), j = (i) => {
|
|
79
79
|
if (i != null)
|
|
80
80
|
return String(typeof i == "string" ? !!i : i);
|
|
81
81
|
}, N = (i, t) => {
|
|
@@ -84,10 +84,10 @@ const Q = () => {
|
|
|
84
84
|
}, ye = (i, t) => {
|
|
85
85
|
if (!(i == null && t == null))
|
|
86
86
|
return Number(i ?? t);
|
|
87
|
-
},
|
|
87
|
+
}, je = (i, t) => t && ["number", "range"].includes(t) ? ye(i) : i, K = (i) => {
|
|
88
88
|
if (i != null)
|
|
89
89
|
return j(!i);
|
|
90
|
-
}, ee = (i, t) => (t === void 0 || !!t) && !!i,
|
|
90
|
+
}, ee = (i, t) => (t === void 0 || !!t) && !!i, Ye = (i) => i.querySelector('input[type="search"]'), Ta = ["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__ */ z({
|
|
91
91
|
__name: "button",
|
|
92
92
|
props: {
|
|
93
93
|
ariaexpanded: { type: Boolean, default: void 0 },
|
|
@@ -142,34 +142,34 @@ const Q = () => {
|
|
|
142
142
|
"aria-pressed": a.ariapressed,
|
|
143
143
|
onClick: f[0] || (f[0] = async (u) => e(u))
|
|
144
144
|
}, [
|
|
145
|
-
a.text ? (v(), b(
|
|
146
|
-
C(
|
|
145
|
+
a.text ? (v(), b(V, { key: 0 }, [
|
|
146
|
+
C(B(a.text), 1)
|
|
147
147
|
], 64)) : $(a.$slots, "default", { key: 1 })
|
|
148
|
-
], 10,
|
|
148
|
+
], 10, Ta));
|
|
149
149
|
}
|
|
150
|
-
}), we = "OVERWRITE_DEFAULT_ID", ke = "LABEL SHOULD BE SET",
|
|
151
|
-
var
|
|
152
|
-
const Wi = Object.entries(
|
|
153
|
-
var
|
|
154
|
-
const Xi = Object.entries(
|
|
155
|
-
var
|
|
156
|
-
const ji = Object.entries(
|
|
150
|
+
}), we = "OVERWRITE_DEFAULT_ID", ke = "LABEL SHOULD BE SET", xe = " ", $a = "MESSAGE SHOULD BE SET", Ke = "-label", Je = "-select", ce = "-message", ve = "-valid-message", fe = "-invalid-message", Ne = "-placeholder", Qe = "-datalist", pe = "TODO: Add a validMessage", ie = "TODO: Add an invalidMessage", ea = "Remove", Aa = "Back", Ca = "Selected", Ea = "BurgerMenu", Da = "brand", Na = 4, ze = "Close", Gi = "density", Oi = "color";
|
|
151
|
+
var aa = /* @__PURE__ */ ((i) => (i.FUNCTIONAL = "functional", i.REGULAR = "regular", i.EXPRESSIVE = "expressive", i))(aa || {});
|
|
152
|
+
const Wi = Object.entries(aa).map(([, i]) => i);
|
|
153
|
+
var ta = /* @__PURE__ */ ((i) => (i.PRIMARY = "primary", i))(ta || {}), ia = /* @__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))(ia || {});
|
|
154
|
+
const Xi = Object.entries(ia).map(([, i]) => i), Hi = Object.entries(ta).map(([, i]) => i);
|
|
155
|
+
var la = /* @__PURE__ */ ((i) => (i.CRITICAL = "critical", i.INFORMATIONAL = "informational", i.WARNING = "warning", i.SUCCESSFUL = "successful", i))(la || {});
|
|
156
|
+
const ji = Object.entries(la).map(([, i]) => i), Fa = {
|
|
157
157
|
width: 390,
|
|
158
158
|
height: 884
|
|
159
|
-
},
|
|
159
|
+
}, Ma = {
|
|
160
160
|
width: 1920,
|
|
161
161
|
height: 1280
|
|
162
162
|
}, Yi = [{
|
|
163
163
|
name: "desktop",
|
|
164
|
-
...
|
|
164
|
+
...Ma
|
|
165
165
|
}, {
|
|
166
166
|
name: "tablet",
|
|
167
167
|
width: 768,
|
|
168
168
|
height: 1024
|
|
169
169
|
}, {
|
|
170
170
|
name: "mobile",
|
|
171
|
-
...
|
|
172
|
-
}],
|
|
171
|
+
...Fa
|
|
172
|
+
}], Pa = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-hide-icon", "data-link-variant"], Ra = { key: 0 }, za = { key: 1 }, Ki = /* @__PURE__ */ z({
|
|
173
173
|
__name: "notification",
|
|
174
174
|
props: {
|
|
175
175
|
ariaLive: { default: void 0 },
|
|
@@ -218,15 +218,15 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
218
218
|
"data-link-variant": a.linkVariant
|
|
219
219
|
}, [
|
|
220
220
|
$(a.$slots, "image"),
|
|
221
|
-
d(ee)(a.headline, a.showHeadline) ? (v(), b("header",
|
|
221
|
+
d(ee)(a.headline, a.showHeadline) ? (v(), b("header", Ra, B(a.headline), 1)) : D("", !0),
|
|
222
222
|
I("p", null, [
|
|
223
|
-
a.text ? (v(), b(
|
|
224
|
-
C(
|
|
223
|
+
a.text ? (v(), b(V, { key: 0 }, [
|
|
224
|
+
C(B(a.text), 1)
|
|
225
225
|
], 64)) : $(a.$slots, "default", { key: 1 })
|
|
226
226
|
]),
|
|
227
|
-
d(ee)(a.timestamp, a.showTimestamp) ? (v(), b("span",
|
|
227
|
+
d(ee)(a.timestamp, a.showTimestamp) ? (v(), b("span", za, B(a.timestamp), 1)) : D("", !0),
|
|
228
228
|
$(a.$slots, "link"),
|
|
229
|
-
d(N)(a.closeable, "closeable") ? (v(),
|
|
229
|
+
d(N)(a.closeable, "closeable") ? (v(), Q(Be, {
|
|
230
230
|
key: 2,
|
|
231
231
|
icon: "cross",
|
|
232
232
|
variant: "ghost",
|
|
@@ -235,14 +235,14 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
235
235
|
noText: !0,
|
|
236
236
|
onClick: (u) => e(u)
|
|
237
237
|
}, {
|
|
238
|
-
default:
|
|
239
|
-
C(
|
|
238
|
+
default: U(() => [
|
|
239
|
+
C(B(a.closeButtonText ?? d(ze)), 1)
|
|
240
240
|
]),
|
|
241
241
|
_: 1
|
|
242
242
|
}, 8, ["id", "onClick"])) : D("", !0)
|
|
243
|
-
], 10,
|
|
243
|
+
], 10, Pa));
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), Va = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], Ji = /* @__PURE__ */ z({
|
|
246
246
|
__name: "badge",
|
|
247
247
|
props: {
|
|
248
248
|
placement: { default: void 0 },
|
|
@@ -288,13 +288,13 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
288
288
|
"data-placement": a.placement,
|
|
289
289
|
"data-label": ((u = a.placement) == null ? void 0 : u.startsWith("corner")) && (a.label ?? d(ke))
|
|
290
290
|
}, [
|
|
291
|
-
a.text ? (v(), b(
|
|
292
|
-
C(
|
|
291
|
+
a.text ? (v(), b(V, { key: 0 }, [
|
|
292
|
+
C(B(a.text), 1)
|
|
293
293
|
], 64)) : $(a.$slots, "default", { key: 1 })
|
|
294
|
-
], 10,
|
|
294
|
+
], 10, Va);
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
}),
|
|
297
|
+
}), qa = ["data-icon", "data-hide-icon", "id"], Qi = /* @__PURE__ */ z({
|
|
298
298
|
__name: "brand",
|
|
299
299
|
props: {
|
|
300
300
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -313,17 +313,17 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
313
313
|
return (e, a) => (v(), b("div", {
|
|
314
314
|
ref_key: "_ref",
|
|
315
315
|
ref: o,
|
|
316
|
-
"data-icon": e.hideLogo ? "none" : e.icon ?? d(
|
|
316
|
+
"data-icon": e.hideLogo ? "none" : e.icon ?? d(Da),
|
|
317
317
|
"data-hide-icon": d(K)(e.showIcon),
|
|
318
318
|
id: e.id,
|
|
319
319
|
class: F(d(M)("db-brand", t.class))
|
|
320
320
|
}, [
|
|
321
|
-
e.text ? (v(), b(
|
|
322
|
-
C(
|
|
321
|
+
e.text ? (v(), b(V, { key: 0 }, [
|
|
322
|
+
C(B(e.text), 1)
|
|
323
323
|
], 64)) : $(e.$slots, "default", { key: 1 })
|
|
324
|
-
], 10,
|
|
324
|
+
], 10, qa));
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
326
|
+
}), Ua = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], Zi = /* @__PURE__ */ z({
|
|
327
327
|
__name: "card",
|
|
328
328
|
props: {
|
|
329
329
|
behavior: { default: void 0 },
|
|
@@ -355,11 +355,11 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
355
355
|
onClick: f[0] || (f[0] = async (u) => e(u))
|
|
356
356
|
}, [
|
|
357
357
|
$(a.$slots, "default")
|
|
358
|
-
], 10,
|
|
358
|
+
], 10, Ua));
|
|
359
359
|
}
|
|
360
|
-
}),
|
|
360
|
+
}), de = (i, t, o = "value") => {
|
|
361
361
|
i(`update:${o}`, t.target[o]);
|
|
362
|
-
},
|
|
362
|
+
}, Ga = ["id", "data-icon", "data-semantic", "data-size", "data-hide-icon-before"], te = /* @__PURE__ */ z({
|
|
363
363
|
__name: "infotext",
|
|
364
364
|
props: {
|
|
365
365
|
children: { default: void 0 },
|
|
@@ -386,15 +386,15 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
386
386
|
"data-size": e.size,
|
|
387
387
|
"data-hide-icon-before": d(K)(e.showIcon ?? !0)
|
|
388
388
|
}, [
|
|
389
|
-
e.text ? (v(), b(
|
|
390
|
-
C(
|
|
389
|
+
e.text ? (v(), b(V, { key: 0 }, [
|
|
390
|
+
C(B(e.text), 1)
|
|
391
391
|
], 64)) : $(e.$slots, "default", { key: 1 })
|
|
392
|
-
], 10,
|
|
392
|
+
], 10, Ga));
|
|
393
393
|
}
|
|
394
|
-
}),
|
|
394
|
+
}), Oa = ["data-size", "data-hide-label"], Wa = ["for"], Xa = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Ha = {
|
|
395
395
|
"data-visually-hidden": "true",
|
|
396
396
|
role: "status"
|
|
397
|
-
}, xi = /* @__PURE__ */
|
|
397
|
+
}, xi = /* @__PURE__ */ z({
|
|
398
398
|
__name: "checkbox",
|
|
399
399
|
props: {
|
|
400
400
|
indeterminate: { type: [Boolean, String], default: void 0 },
|
|
@@ -435,7 +435,7 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
435
435
|
const o = t, e = i, a = n(!1), f = n(void 0), u = n(void 0), g = n(void 0), s = n(void 0), c = n(void 0), r = n(""), _ = n(""), L = n(null);
|
|
436
436
|
Y(() => {
|
|
437
437
|
a.value = !0;
|
|
438
|
-
const y = e.id ?? `checkbox-${
|
|
438
|
+
const y = e.id ?? `checkbox-${Z()}`;
|
|
439
439
|
f.value = y, u.value = y + ce, g.value = y + ve, s.value = y + fe, c.value = e.invalidMessage || ie;
|
|
440
440
|
}), A(
|
|
441
441
|
() => [L.value, e.invalidMessage],
|
|
@@ -478,15 +478,15 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
478
478
|
flush: "post"
|
|
479
479
|
}
|
|
480
480
|
);
|
|
481
|
-
function
|
|
481
|
+
function S() {
|
|
482
482
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
483
483
|
}
|
|
484
484
|
function E() {
|
|
485
485
|
var y, h, O;
|
|
486
|
-
!((y = L.value) != null && y.validity.valid) || e.validation === "invalid" ? (r.value = s.value, c.value = e.invalidMessage || ((h = L.value) == null ? void 0 : h.validationMessage) || ie, re() && (_.value = c.value, x(() => _.value = "", 1e3))) :
|
|
486
|
+
!((y = L.value) != null && y.validity.valid) || e.validation === "invalid" ? (r.value = s.value, c.value = e.invalidMessage || ((h = L.value) == null ? void 0 : h.validationMessage) || ie, re() && (_.value = c.value, x(() => _.value = "", 1e3))) : S() && ((O = L.value) != null && O.validity.valid) && e.required ? (r.value = g.value, re() && (_.value = e.validMessage ?? pe, x(() => _.value = "", 1e3))) : ee(e.message, e.showMessage) ? r.value = u.value : r.value = "";
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
y.stopPropagation(), e.onChange && e.onChange(y),
|
|
488
|
+
function w(y) {
|
|
489
|
+
y.stopPropagation(), e.onChange && e.onChange(y), de(o, y, "checked"), E();
|
|
490
490
|
}
|
|
491
491
|
function T(y) {
|
|
492
492
|
y.stopPropagation(), e.onBlur && e.onBlur(y);
|
|
@@ -512,51 +512,51 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
512
512
|
disabled: d(N)(y.disabled, "disabled"),
|
|
513
513
|
value: y.value,
|
|
514
514
|
required: d(N)(y.required, "required"),
|
|
515
|
-
onChange: h[0] || (h[0] = async (O) =>
|
|
515
|
+
onChange: h[0] || (h[0] = async (O) => w(O)),
|
|
516
516
|
onBlur: h[1] || (h[1] = async (O) => T(O)),
|
|
517
517
|
onFocus: h[2] || (h[2] = async (O) => P(O)),
|
|
518
518
|
"aria-describedby": y.ariaDescribedBy ?? r.value
|
|
519
|
-
}, null, 40,
|
|
520
|
-
y.label ? (v(), b(
|
|
521
|
-
C(
|
|
519
|
+
}, null, 40, Xa),
|
|
520
|
+
y.label ? (v(), b(V, { key: 0 }, [
|
|
521
|
+
C(B(y.label), 1)
|
|
522
522
|
], 64)) : $(y.$slots, "default", { key: 1 })
|
|
523
|
-
], 8,
|
|
524
|
-
d(ee)(y.message, y.showMessage) ? (v(),
|
|
523
|
+
], 8, Wa),
|
|
524
|
+
d(ee)(y.message, y.showMessage) ? (v(), Q(te, {
|
|
525
525
|
key: 0,
|
|
526
526
|
size: "small",
|
|
527
527
|
icon: y.messageIcon,
|
|
528
528
|
id: u.value
|
|
529
529
|
}, {
|
|
530
|
-
default:
|
|
531
|
-
C(
|
|
530
|
+
default: U(() => [
|
|
531
|
+
C(B(y.message), 1)
|
|
532
532
|
]),
|
|
533
533
|
_: 1
|
|
534
534
|
}, 8, ["icon", "id"])) : D("", !0),
|
|
535
|
-
|
|
535
|
+
S() ? (v(), Q(te, {
|
|
536
536
|
key: 1,
|
|
537
537
|
size: "small",
|
|
538
538
|
semantic: "successful",
|
|
539
539
|
id: g.value
|
|
540
540
|
}, {
|
|
541
|
-
default:
|
|
542
|
-
C(
|
|
541
|
+
default: U(() => [
|
|
542
|
+
C(B(y.validMessage || d(pe)), 1)
|
|
543
543
|
]),
|
|
544
544
|
_: 1
|
|
545
545
|
}, 8, ["id"])) : D("", !0),
|
|
546
|
-
te
|
|
546
|
+
ae(te, {
|
|
547
547
|
size: "small",
|
|
548
548
|
semantic: "critical",
|
|
549
549
|
id: s.value
|
|
550
550
|
}, {
|
|
551
|
-
default:
|
|
552
|
-
C(
|
|
551
|
+
default: U(() => [
|
|
552
|
+
C(B(c.value), 1)
|
|
553
553
|
]),
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["id"]),
|
|
556
|
-
I("span",
|
|
557
|
-
], 10,
|
|
556
|
+
I("span", Ha, B(_.value), 1)
|
|
557
|
+
], 10, Oa));
|
|
558
558
|
}
|
|
559
|
-
}),
|
|
559
|
+
}), ja = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], el = /* @__PURE__ */ z({
|
|
560
560
|
__name: "divider",
|
|
561
561
|
props: {
|
|
562
562
|
margin: { default: void 0 },
|
|
@@ -581,9 +581,9 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
581
581
|
"data-emphasis": e.emphasis,
|
|
582
582
|
"data-width": e.width,
|
|
583
583
|
class: F(d(M)("db-divider", t.class))
|
|
584
|
-
}, null, 10,
|
|
584
|
+
}, null, 10, ja));
|
|
585
585
|
}
|
|
586
|
-
}),
|
|
586
|
+
}), Ya = ["id", "data-backdrop", "data-variant"], Ka = ["data-spacing", "data-width", "data-direction", "data-rounded"], Ja = { class: "db-drawer-header" }, Qa = { class: "db-drawer-header-text" }, Za = { class: "db-drawer-content" }, xa = /* @__PURE__ */ z({
|
|
587
587
|
__name: "drawer",
|
|
588
588
|
props: {
|
|
589
589
|
backdrop: { default: void 0 },
|
|
@@ -650,11 +650,11 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
650
650
|
"data-direction": u.direction,
|
|
651
651
|
"data-rounded": d(j)(u.rounded)
|
|
652
652
|
}, [
|
|
653
|
-
I("header",
|
|
654
|
-
I("div",
|
|
653
|
+
I("header", Ja, [
|
|
654
|
+
I("div", Qa, [
|
|
655
655
|
$(u.$slots, "drawer-header")
|
|
656
656
|
]),
|
|
657
|
-
|
|
657
|
+
ae(Be, {
|
|
658
658
|
class: "button-close-drawer",
|
|
659
659
|
icon: "cross",
|
|
660
660
|
variant: "ghost",
|
|
@@ -662,26 +662,26 @@ const ji = Object.entries(ta).map(([, i]) => i), Da = {
|
|
|
662
662
|
noText: !0,
|
|
663
663
|
onClick: (s) => a("close")
|
|
664
664
|
}, {
|
|
665
|
-
default:
|
|
666
|
-
C(
|
|
665
|
+
default: U(() => [
|
|
666
|
+
C(B(u.closeButtonText ?? d(ze)), 1)
|
|
667
667
|
]),
|
|
668
668
|
_: 1
|
|
669
669
|
}, 8, ["id", "onClick"])
|
|
670
670
|
]),
|
|
671
|
-
I("div",
|
|
671
|
+
I("div", Za, [
|
|
672
672
|
$(u.$slots, "default")
|
|
673
673
|
])
|
|
674
|
-
], 10,
|
|
675
|
-
], 40,
|
|
674
|
+
], 10, Ka)
|
|
675
|
+
], 40, Ya));
|
|
676
676
|
}
|
|
677
|
-
}),
|
|
677
|
+
}), oa = (i) => {
|
|
678
678
|
var o, e;
|
|
679
679
|
const {
|
|
680
680
|
target: t
|
|
681
681
|
} = i;
|
|
682
682
|
return !!(!((o = t == null ? void 0 : t.classList) != null && o.contains("db-navigation-item-expand-button")) && ((e = t == null ? void 0 : t.parentElement) != null && e.classList.contains("db-navigation-item")));
|
|
683
683
|
};
|
|
684
|
-
class
|
|
684
|
+
class et {
|
|
685
685
|
constructor(t, o) {
|
|
686
686
|
ue(this, "element");
|
|
687
687
|
ue(this, "subNavigation");
|
|
@@ -757,7 +757,7 @@ class Za {
|
|
|
757
757
|
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), o && (this.triangleData = void 0));
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
const
|
|
760
|
+
const at = ["id", "data-width", "data-on-forcing-mobile"], tt = { class: "db-header-drawer-navigation" }, it = { class: "db-header-meta-navigation" }, lt = { class: "db-header-secondary-action" }, ot = { class: "db-header-meta-navigation" }, dt = { class: "db-header-navigation-bar" }, nt = { class: "db-header-brand-container" }, st = { class: "db-header-navigation-container" }, ut = { class: "db-header-navigation" }, rt = { class: "db-header-primary-action" }, ct = { class: "db-header-action-container" }, vt = { class: "db-header-burger-menu-container" }, ft = { class: "db-header-secondary-action" }, al = /* @__PURE__ */ z({
|
|
761
761
|
__name: "header",
|
|
762
762
|
props: {
|
|
763
763
|
brand: {},
|
|
@@ -780,7 +780,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
780
780
|
setup(i) {
|
|
781
781
|
const t = i, o = n(we), e = n(!1), a = n(!1), f = n(null);
|
|
782
782
|
Y(() => {
|
|
783
|
-
e.value = !0, o.value = t.id || "header-" +
|
|
783
|
+
e.value = !0, o.value = t.id || "header-" + Z();
|
|
784
784
|
}), A(
|
|
785
785
|
() => [e.value],
|
|
786
786
|
() => {
|
|
@@ -788,7 +788,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
788
788
|
const s = document.getElementById(
|
|
789
789
|
o.value ?? ""
|
|
790
790
|
);
|
|
791
|
-
s &&
|
|
791
|
+
s && Ze(s, {
|
|
792
792
|
key: "data-force-mobile",
|
|
793
793
|
value: "true"
|
|
794
794
|
}), a.value = !0;
|
|
@@ -804,7 +804,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
804
804
|
t.onToggle && t.onToggle(s);
|
|
805
805
|
}
|
|
806
806
|
function g(s) {
|
|
807
|
-
|
|
807
|
+
oa(s) && u();
|
|
808
808
|
}
|
|
809
809
|
return (s, c) => (v(), b("header", {
|
|
810
810
|
ref_key: "_ref",
|
|
@@ -814,69 +814,69 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
814
814
|
"data-width": s.width,
|
|
815
815
|
"data-on-forcing-mobile": s.forceMobile && !a.value
|
|
816
816
|
}, [
|
|
817
|
-
|
|
817
|
+
ae(xa, {
|
|
818
818
|
class: "db-header-drawer",
|
|
819
819
|
spacing: "small",
|
|
820
820
|
rounded: !0,
|
|
821
821
|
open: d(N)(s.drawerOpen),
|
|
822
822
|
onClose: (r) => u()
|
|
823
823
|
}, {
|
|
824
|
-
default:
|
|
825
|
-
I("div",
|
|
824
|
+
default: U(() => [
|
|
825
|
+
I("div", tt, [
|
|
826
826
|
I("div", {
|
|
827
827
|
class: "db-header-navigation",
|
|
828
828
|
onClick: c[0] || (c[0] = async (r) => g(r))
|
|
829
829
|
}, [
|
|
830
830
|
$(s.$slots, "default")
|
|
831
831
|
]),
|
|
832
|
-
I("div",
|
|
832
|
+
I("div", it, [
|
|
833
833
|
$(s.$slots, "meta-navigation")
|
|
834
834
|
])
|
|
835
835
|
]),
|
|
836
|
-
I("div",
|
|
836
|
+
I("div", lt, [
|
|
837
837
|
$(s.$slots, "secondary-action")
|
|
838
838
|
])
|
|
839
839
|
]),
|
|
840
840
|
_: 3
|
|
841
841
|
}, 8, ["open", "onClose"]),
|
|
842
|
-
I("div",
|
|
842
|
+
I("div", ot, [
|
|
843
843
|
$(s.$slots, "meta-navigation")
|
|
844
844
|
]),
|
|
845
|
-
I("div",
|
|
846
|
-
I("div",
|
|
845
|
+
I("div", dt, [
|
|
846
|
+
I("div", nt, [
|
|
847
847
|
$(s.$slots, "brand")
|
|
848
848
|
]),
|
|
849
|
-
I("div",
|
|
850
|
-
I("div",
|
|
849
|
+
I("div", st, [
|
|
850
|
+
I("div", ut, [
|
|
851
851
|
$(s.$slots, "default")
|
|
852
852
|
]),
|
|
853
|
-
I("div",
|
|
853
|
+
I("div", rt, [
|
|
854
854
|
$(s.$slots, "primary-action")
|
|
855
855
|
])
|
|
856
856
|
]),
|
|
857
|
-
I("div",
|
|
858
|
-
I("div",
|
|
859
|
-
|
|
857
|
+
I("div", ct, [
|
|
858
|
+
I("div", vt, [
|
|
859
|
+
ae(Be, {
|
|
860
860
|
icon: "menu",
|
|
861
861
|
variant: "ghost",
|
|
862
862
|
id: o.value + "-burger-menu",
|
|
863
863
|
noText: !0,
|
|
864
864
|
onClick: (r) => u()
|
|
865
865
|
}, {
|
|
866
|
-
default:
|
|
867
|
-
C(
|
|
866
|
+
default: U(() => [
|
|
867
|
+
C(B(s.burgerMenuLabel ?? d(Ea)), 1)
|
|
868
868
|
]),
|
|
869
869
|
_: 1
|
|
870
870
|
}, 8, ["id", "onClick"])
|
|
871
871
|
]),
|
|
872
|
-
I("div",
|
|
872
|
+
I("div", ft, [
|
|
873
873
|
$(s.$slots, "secondary-action")
|
|
874
874
|
])
|
|
875
875
|
])
|
|
876
876
|
])
|
|
877
|
-
], 10,
|
|
877
|
+
], 10, at));
|
|
878
878
|
}
|
|
879
|
-
}),
|
|
879
|
+
}), pt = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], tl = /* @__PURE__ */ z({
|
|
880
880
|
__name: "icon",
|
|
881
881
|
props: {
|
|
882
882
|
variant: { default: void 0 },
|
|
@@ -902,15 +902,15 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
902
902
|
"data-icon-weight": e.weight,
|
|
903
903
|
"data-icon-variant": e.variant
|
|
904
904
|
}, [
|
|
905
|
-
e.text ? (v(), b(
|
|
906
|
-
C(
|
|
905
|
+
e.text ? (v(), b(V, { key: 0 }, [
|
|
906
|
+
C(B(e.text), 1)
|
|
907
907
|
], 64)) : $(e.$slots, "default", { key: 1 })
|
|
908
|
-
], 10,
|
|
908
|
+
], 10, pt));
|
|
909
909
|
}
|
|
910
|
-
}),
|
|
910
|
+
}), mt = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"], ht = ["for"], gt = ["aria-invalid", "data-custom-validity", "id", "name", "type", "placeholder", "disabled", "required", "step", "value", "maxLength", "minLength", "max", "min", "readOnly", "form", "pattern", "size", "autoComplete", "autoFocus", "list", "aria-describedby"], bt = ["id"], yt = ["value"], kt = {
|
|
911
911
|
"data-visually-hidden": "true",
|
|
912
912
|
role: "status"
|
|
913
|
-
},
|
|
913
|
+
}, Bt = /* @__PURE__ */ z({
|
|
914
914
|
__name: "input",
|
|
915
915
|
props: {
|
|
916
916
|
dataList: { default: void 0 },
|
|
@@ -964,15 +964,15 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
964
964
|
},
|
|
965
965
|
emits: ["update:value"],
|
|
966
966
|
setup(i, { emit: t }) {
|
|
967
|
-
const o = t, e = i, a = n(void 0), f = n(void 0), u = n(void 0), g = n(void 0), s = n(void 0), c = n(void 0), r = n(""), _ = n(""), L = n(""),
|
|
967
|
+
const o = t, e = i, a = n(void 0), f = n(void 0), u = n(void 0), g = n(void 0), s = n(void 0), c = n(void 0), r = n(""), _ = n(""), L = n(""), S = n(null);
|
|
968
968
|
Y(() => {
|
|
969
|
-
const p = e.id ?? `input-${
|
|
970
|
-
a.value = p, f.value = p + ce, u.value = p + ve, g.value = p + fe, c.value = p +
|
|
969
|
+
const p = e.id ?? `input-${Z()}`;
|
|
970
|
+
a.value = p, f.value = p + ce, u.value = p + ve, g.value = p + fe, c.value = p + Qe, s.value = e.invalidMessage || ie;
|
|
971
971
|
}), A(
|
|
972
|
-
() => [
|
|
972
|
+
() => [S.value, e.invalidMessage],
|
|
973
973
|
() => {
|
|
974
974
|
var p;
|
|
975
|
-
s.value = e.invalidMessage || ((p =
|
|
975
|
+
s.value = e.invalidMessage || ((p = S.value) == null ? void 0 : p.validationMessage) || ie;
|
|
976
976
|
},
|
|
977
977
|
{
|
|
978
978
|
immediate: !0,
|
|
@@ -983,7 +983,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
983
983
|
() => {
|
|
984
984
|
if (a.value) {
|
|
985
985
|
const p = a.value + ce;
|
|
986
|
-
f.value = p, u.value = a.value + ve, g.value = a.value + fe, c.value = e.dataListId ?? a.value +
|
|
986
|
+
f.value = p, u.value = a.value + ve, g.value = a.value + fe, c.value = e.dataListId ?? a.value + Qe, ee(e.message, e.showMessage) && (r.value = p);
|
|
987
987
|
}
|
|
988
988
|
},
|
|
989
989
|
{
|
|
@@ -1003,15 +1003,15 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1003
1003
|
function E() {
|
|
1004
1004
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1007
|
-
var p,
|
|
1008
|
-
!((p =
|
|
1006
|
+
function w() {
|
|
1007
|
+
var p, G, m;
|
|
1008
|
+
!((p = S.value) != null && p.validity.valid) || e.validation === "invalid" ? (r.value = g.value, s.value = e.invalidMessage || ((G = S.value) == null ? void 0 : G.validationMessage) || ie, re() && (L.value = s.value, x(() => L.value = "", 1e3))) : E() && ((m = S.value) != null && m.validity.valid) && (e.required || e.minLength || e.maxLength || e.pattern) ? (r.value = u.value, re() && (L.value = e.validMessage ?? pe, x(() => L.value = "", 1e3))) : ee(e.message, e.showMessage) ? r.value = f.value : r.value = "";
|
|
1009
1009
|
}
|
|
1010
1010
|
function T(p) {
|
|
1011
|
-
p.stopPropagation(), e.input && e.input(p), _.value = p.target.value, e.onInput && e.onInput(p),
|
|
1011
|
+
p.stopPropagation(), e.input && e.input(p), _.value = p.target.value, e.onInput && e.onInput(p), de(o, p), w();
|
|
1012
1012
|
}
|
|
1013
1013
|
function P(p) {
|
|
1014
|
-
p.stopPropagation(), e.onChange && e.onChange(p),
|
|
1014
|
+
p.stopPropagation(), e.onChange && e.onChange(p), de(o, p), w();
|
|
1015
1015
|
}
|
|
1016
1016
|
function y(p) {
|
|
1017
1017
|
p.stopPropagation(), e.onBlur && e.onBlur(p);
|
|
@@ -1022,13 +1022,13 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1022
1022
|
function O() {
|
|
1023
1023
|
const p = e.dataList;
|
|
1024
1024
|
return Array.from(
|
|
1025
|
-
(
|
|
1026
|
-
value:
|
|
1025
|
+
(_a(p) ? p == null ? void 0 : p.map((G) => ({
|
|
1026
|
+
value: G,
|
|
1027
1027
|
label: void 0
|
|
1028
1028
|
})) : p) || []
|
|
1029
1029
|
);
|
|
1030
1030
|
}
|
|
1031
|
-
return (p,
|
|
1031
|
+
return (p, G) => (v(), b("div", {
|
|
1032
1032
|
class: F(d(M)("db-input", e.class)),
|
|
1033
1033
|
"data-variant": p.variant,
|
|
1034
1034
|
"data-hide-label": d(K)(p.showLabel),
|
|
@@ -1037,83 +1037,83 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1037
1037
|
"data-icon-after": p.iconAfter,
|
|
1038
1038
|
"data-hide-icon-after": d(K)(p.showIcon)
|
|
1039
1039
|
}, [
|
|
1040
|
-
I("label", { for: a.value },
|
|
1040
|
+
I("label", { for: a.value }, B(p.label ?? d(ke)), 9, ht),
|
|
1041
1041
|
I("input", {
|
|
1042
1042
|
"aria-invalid": p.validation === "invalid",
|
|
1043
1043
|
"data-custom-validity": p.validation,
|
|
1044
1044
|
ref_key: "_ref",
|
|
1045
|
-
ref:
|
|
1045
|
+
ref: S,
|
|
1046
1046
|
id: a.value,
|
|
1047
1047
|
name: p.name,
|
|
1048
1048
|
type: p.type || "text",
|
|
1049
|
-
placeholder: p.placeholder ?? d(
|
|
1049
|
+
placeholder: p.placeholder ?? d(xe),
|
|
1050
1050
|
disabled: d(N)(p.disabled, "disabled"),
|
|
1051
1051
|
required: d(N)(p.required, "required"),
|
|
1052
1052
|
step: d(ye)(p.step),
|
|
1053
1053
|
value: p.value ?? _.value,
|
|
1054
1054
|
maxLength: d(ye)(p.maxLength, p.maxlength),
|
|
1055
1055
|
minLength: d(ye)(p.minLength, p.minlength),
|
|
1056
|
-
max: d(
|
|
1057
|
-
min: d(
|
|
1056
|
+
max: d(je)(p.max, p.type),
|
|
1057
|
+
min: d(je)(p.min, p.type),
|
|
1058
1058
|
readOnly: d(N)(p.readOnly, "readOnly") || d(N)(p.readonly, "readonly"),
|
|
1059
1059
|
form: p.form,
|
|
1060
1060
|
pattern: p.pattern,
|
|
1061
1061
|
size: p.size,
|
|
1062
1062
|
autoComplete: p.autocomplete,
|
|
1063
1063
|
autoFocus: d(N)(p.autofocus, "autofocus"),
|
|
1064
|
-
onInput:
|
|
1065
|
-
onChange:
|
|
1066
|
-
onBlur:
|
|
1067
|
-
onFocus:
|
|
1064
|
+
onInput: G[0] || (G[0] = async (m) => T(m)),
|
|
1065
|
+
onChange: G[1] || (G[1] = async (m) => P(m)),
|
|
1066
|
+
onBlur: G[2] || (G[2] = async (m) => y(m)),
|
|
1067
|
+
onFocus: G[3] || (G[3] = async (m) => h(m)),
|
|
1068
1068
|
list: p.dataList && c.value,
|
|
1069
1069
|
"aria-describedby": p.ariaDescribedBy ?? r.value
|
|
1070
|
-
}, null, 40,
|
|
1070
|
+
}, null, 40, gt),
|
|
1071
1071
|
p.dataList ? (v(), b("datalist", {
|
|
1072
1072
|
key: 0,
|
|
1073
1073
|
id: c.value
|
|
1074
1074
|
}, [
|
|
1075
|
-
(v(!0), b(
|
|
1075
|
+
(v(!0), b(V, null, he(O(), (m) => (v(), b("option", {
|
|
1076
1076
|
key: c.value + "-option-" + m.value,
|
|
1077
1077
|
value: m.value
|
|
1078
|
-
},
|
|
1079
|
-
], 8,
|
|
1078
|
+
}, B(m.label), 9, yt))), 128))
|
|
1079
|
+
], 8, bt)) : D("", !0),
|
|
1080
1080
|
$(p.$slots, "default"),
|
|
1081
|
-
d(ee)(p.message, p.showMessage) ? (v(),
|
|
1081
|
+
d(ee)(p.message, p.showMessage) ? (v(), Q(te, {
|
|
1082
1082
|
key: 1,
|
|
1083
1083
|
size: "small",
|
|
1084
1084
|
icon: p.messageIcon,
|
|
1085
1085
|
id: f.value
|
|
1086
1086
|
}, {
|
|
1087
|
-
default:
|
|
1088
|
-
C(
|
|
1087
|
+
default: U(() => [
|
|
1088
|
+
C(B(p.message), 1)
|
|
1089
1089
|
]),
|
|
1090
1090
|
_: 1
|
|
1091
1091
|
}, 8, ["icon", "id"])) : D("", !0),
|
|
1092
|
-
E() ? (v(),
|
|
1092
|
+
E() ? (v(), Q(te, {
|
|
1093
1093
|
key: 2,
|
|
1094
1094
|
size: "small",
|
|
1095
1095
|
semantic: "successful",
|
|
1096
1096
|
id: u.value
|
|
1097
1097
|
}, {
|
|
1098
|
-
default:
|
|
1099
|
-
C(
|
|
1098
|
+
default: U(() => [
|
|
1099
|
+
C(B(p.validMessage || d(pe)), 1)
|
|
1100
1100
|
]),
|
|
1101
1101
|
_: 1
|
|
1102
1102
|
}, 8, ["id"])) : D("", !0),
|
|
1103
|
-
te
|
|
1103
|
+
ae(te, {
|
|
1104
1104
|
size: "small",
|
|
1105
1105
|
semantic: "critical",
|
|
1106
1106
|
id: g.value
|
|
1107
1107
|
}, {
|
|
1108
|
-
default:
|
|
1109
|
-
C(
|
|
1108
|
+
default: U(() => [
|
|
1109
|
+
C(B(s.value), 1)
|
|
1110
1110
|
]),
|
|
1111
1111
|
_: 1
|
|
1112
1112
|
}, 8, ["id"]),
|
|
1113
|
-
I("span",
|
|
1114
|
-
], 10,
|
|
1113
|
+
I("span", kt, B(L.value), 1)
|
|
1114
|
+
], 10, mt));
|
|
1115
1115
|
}
|
|
1116
|
-
}),
|
|
1116
|
+
}), St = ["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"], il = /* @__PURE__ */ z({
|
|
1117
1117
|
__name: "link",
|
|
1118
1118
|
props: {
|
|
1119
1119
|
content: { default: void 0 },
|
|
@@ -1165,12 +1165,12 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1165
1165
|
"data-content": a.content || "internal",
|
|
1166
1166
|
onClick: f[0] || (f[0] = async (u) => e(u))
|
|
1167
1167
|
}, [
|
|
1168
|
-
a.text ? (v(), b(
|
|
1169
|
-
C(
|
|
1168
|
+
a.text ? (v(), b(V, { key: 0 }, [
|
|
1169
|
+
C(B(a.text), 1)
|
|
1170
1170
|
], 64)) : $(a.$slots, "default", { key: 1 })
|
|
1171
|
-
], 10,
|
|
1171
|
+
], 10, St));
|
|
1172
1172
|
}
|
|
1173
|
-
}),
|
|
1173
|
+
}), wt = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], ll = /* @__PURE__ */ z({
|
|
1174
1174
|
__name: "page",
|
|
1175
1175
|
props: {
|
|
1176
1176
|
documentOverflow: { default: void 0 },
|
|
@@ -1192,7 +1192,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1192
1192
|
o.value = !t.fadeIn, document && t.fadeIn ? document.fonts.ready.then(() => {
|
|
1193
1193
|
o.value = !0;
|
|
1194
1194
|
}) : o.value = !0;
|
|
1195
|
-
}),
|
|
1195
|
+
}), wa(() => {
|
|
1196
1196
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
1197
1197
|
}), (a, f) => (v(), b("div", {
|
|
1198
1198
|
ref_key: "_ref",
|
|
@@ -1210,9 +1210,9 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1210
1210
|
$(a.$slots, "default")
|
|
1211
1211
|
], 2),
|
|
1212
1212
|
$(a.$slots, "footer")
|
|
1213
|
-
], 10,
|
|
1213
|
+
], 10, wt));
|
|
1214
1214
|
}
|
|
1215
|
-
}),
|
|
1215
|
+
}), It = ["data-size", "data-hide-label", "for"], _t = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "aria-describedby", "value", "required"], ol = /* @__PURE__ */ z({
|
|
1216
1216
|
__name: "radio",
|
|
1217
1217
|
props: {
|
|
1218
1218
|
children: { default: void 0 },
|
|
@@ -1243,7 +1243,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1243
1243
|
setup(i, { emit: t }) {
|
|
1244
1244
|
const o = t, e = i, a = n(!1), f = n(void 0), u = n(null);
|
|
1245
1245
|
Y(() => {
|
|
1246
|
-
a.value = !0, f.value = e.id ?? `radio-${
|
|
1246
|
+
a.value = !0, f.value = e.id ?? `radio-${Z()}`;
|
|
1247
1247
|
}), A(
|
|
1248
1248
|
() => [a.value, u.value, e.checked],
|
|
1249
1249
|
() => {
|
|
@@ -1255,7 +1255,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1255
1255
|
}
|
|
1256
1256
|
);
|
|
1257
1257
|
function g(r) {
|
|
1258
|
-
r.stopPropagation(), e.onChange && e.onChange(r),
|
|
1258
|
+
r.stopPropagation(), e.onChange && e.onChange(r), de(o, r);
|
|
1259
1259
|
}
|
|
1260
1260
|
function s(r) {
|
|
1261
1261
|
r.stopPropagation(), e.onBlur && e.onBlur(r);
|
|
@@ -1285,13 +1285,13 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1285
1285
|
onChange: _[0] || (_[0] = async (L) => g(L)),
|
|
1286
1286
|
onBlur: _[1] || (_[1] = async (L) => s(L)),
|
|
1287
1287
|
onFocus: _[2] || (_[2] = async (L) => c(L))
|
|
1288
|
-
}, null, 40,
|
|
1289
|
-
r.label ? (v(), b(
|
|
1290
|
-
C(
|
|
1288
|
+
}, null, 40, _t),
|
|
1289
|
+
r.label ? (v(), b(V, { key: 0 }, [
|
|
1290
|
+
C(B(r.label), 1)
|
|
1291
1291
|
], 64)) : $(r.$slots, "default", { key: 1 })
|
|
1292
|
-
], 10,
|
|
1292
|
+
], 10, It));
|
|
1293
1293
|
}
|
|
1294
|
-
}),
|
|
1294
|
+
}), Lt = ["id", "data-spacing", "data-width"], dl = /* @__PURE__ */ z({
|
|
1295
1295
|
__name: "section",
|
|
1296
1296
|
props: {
|
|
1297
1297
|
children: { default: void 0 },
|
|
@@ -1306,7 +1306,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1306
1306
|
setup(i) {
|
|
1307
1307
|
const t = i, o = n(we), e = n(null);
|
|
1308
1308
|
return Y(() => {
|
|
1309
|
-
o.value = t.id || "section-" +
|
|
1309
|
+
o.value = t.id || "section-" + Z();
|
|
1310
1310
|
}), (a, f) => (v(), b("section", {
|
|
1311
1311
|
ref_key: "_ref",
|
|
1312
1312
|
ref: e,
|
|
@@ -1316,12 +1316,12 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1316
1316
|
"data-width": a.width
|
|
1317
1317
|
}, [
|
|
1318
1318
|
$(a.$slots, "default")
|
|
1319
|
-
], 10,
|
|
1319
|
+
], 10, Lt));
|
|
1320
1320
|
}
|
|
1321
|
-
}),
|
|
1321
|
+
}), Tt = ["data-variant", "data-hide-label", "data-icon", "data-hide-icon"], $t = ["for"], At = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], Ct = ["label"], Et = ["value", "selected", "disabled"], Dt = ["value", "disabled", "selected"], Nt = ["id"], Ft = {
|
|
1322
1322
|
"data-visually-hidden": "true",
|
|
1323
1323
|
role: "status"
|
|
1324
|
-
}, nl = /* @__PURE__ */
|
|
1324
|
+
}, nl = /* @__PURE__ */ z({
|
|
1325
1325
|
__name: "select",
|
|
1326
1326
|
props: {
|
|
1327
1327
|
children: { default: void 0 },
|
|
@@ -1364,10 +1364,10 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1364
1364
|
},
|
|
1365
1365
|
emits: ["update:value"],
|
|
1366
1366
|
setup(i, { emit: t }) {
|
|
1367
|
-
const o = t, e = i, a = n(void 0), f = n(void 0), u = n(void 0), g = n(void 0), s = n(void 0), c = n(""), r = n(""), _ = n(""), L = n(!1),
|
|
1367
|
+
const o = t, e = i, a = n(void 0), f = n(void 0), u = n(void 0), g = n(void 0), s = n(void 0), c = n(""), r = n(""), _ = n(""), L = n(!1), S = n(""), E = n(null);
|
|
1368
1368
|
Y(() => {
|
|
1369
1369
|
L.value = !0;
|
|
1370
|
-
const m = e.id ?? `select-${
|
|
1370
|
+
const m = e.id ?? `select-${Z()}`;
|
|
1371
1371
|
a.value = m, f.value = m + ce, u.value = m + ve, g.value = m + fe, c.value = m + Ne, s.value = e.invalidMessage || ie;
|
|
1372
1372
|
}), A(
|
|
1373
1373
|
() => [E.value, e.invalidMessage],
|
|
@@ -1383,8 +1383,8 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1383
1383
|
() => [a.value, L.value],
|
|
1384
1384
|
() => {
|
|
1385
1385
|
if (a.value && L.value) {
|
|
1386
|
-
const m = a.value + ce,
|
|
1387
|
-
f.value = m, u.value = a.value + ve, g.value = a.value + fe, c.value =
|
|
1386
|
+
const m = a.value + ce, W = a.value + Ne;
|
|
1387
|
+
f.value = m, u.value = a.value + ve, g.value = a.value + fe, c.value = W, ee(e.message, e.showMessage) ? r.value = m : r.value = W, L.value = !1;
|
|
1388
1388
|
}
|
|
1389
1389
|
},
|
|
1390
1390
|
{
|
|
@@ -1401,21 +1401,21 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1401
1401
|
flush: "post"
|
|
1402
1402
|
}
|
|
1403
1403
|
);
|
|
1404
|
-
function
|
|
1404
|
+
function w() {
|
|
1405
1405
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1406
1406
|
}
|
|
1407
1407
|
function T() {
|
|
1408
|
-
var m,
|
|
1409
|
-
!((m = E.value) != null && m.validity.valid) || e.validation === "invalid" ? (r.value = g.value, s.value = e.invalidMessage || ((
|
|
1408
|
+
var m, W, H;
|
|
1409
|
+
!((m = E.value) != null && m.validity.valid) || e.validation === "invalid" ? (r.value = g.value, s.value = e.invalidMessage || ((W = E.value) == null ? void 0 : W.validationMessage) || ie, re() && (S.value = s.value, x(() => S.value = "", 1e3))) : w() && ((H = E.value) != null && H.validity.valid) && e.required ? (r.value = u.value, re() && (S.value = e.validMessage ?? pe, x(() => S.value = "", 1e3))) : ee(e.message, e.showMessage) ? r.value = f.value : r.value = c.value;
|
|
1410
1410
|
}
|
|
1411
1411
|
function P(m) {
|
|
1412
1412
|
e.onClick && (m.stopPropagation(), e.onClick(m));
|
|
1413
1413
|
}
|
|
1414
1414
|
function y(m) {
|
|
1415
|
-
m.stopPropagation(), e.input && e.input(m), _.value = m.target.value, e.onInput && e.onInput(m),
|
|
1415
|
+
m.stopPropagation(), e.input && e.input(m), _.value = m.target.value, e.onInput && e.onInput(m), de(o, m), T();
|
|
1416
1416
|
}
|
|
1417
1417
|
function h(m) {
|
|
1418
|
-
m.stopPropagation(), e.onChange && e.onChange(m),
|
|
1418
|
+
m.stopPropagation(), e.onChange && e.onChange(m), de(o, m), T();
|
|
1419
1419
|
}
|
|
1420
1420
|
function O(m) {
|
|
1421
1421
|
m.stopPropagation(), e.onBlur && e.onBlur(m);
|
|
@@ -1423,18 +1423,18 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1423
1423
|
function p(m) {
|
|
1424
1424
|
m.stopPropagation(), e.onFocus && e.onFocus(m);
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1427
|
-
var
|
|
1428
|
-
return m.label ?? ((
|
|
1426
|
+
function G(m) {
|
|
1427
|
+
var W;
|
|
1428
|
+
return m.label ?? ((W = m.value) == null ? void 0 : W.toString());
|
|
1429
1429
|
}
|
|
1430
|
-
return (m,
|
|
1430
|
+
return (m, W) => (v(), b("div", {
|
|
1431
1431
|
class: F(d(M)("db-select", e.class)),
|
|
1432
1432
|
"data-variant": m.variant,
|
|
1433
1433
|
"data-hide-label": d(K)(m.showLabel),
|
|
1434
1434
|
"data-icon": m.icon,
|
|
1435
1435
|
"data-hide-icon": d(K)(m.showIcon)
|
|
1436
1436
|
}, [
|
|
1437
|
-
I("label", { for: a.value },
|
|
1437
|
+
I("label", { for: a.value }, B(m.label ?? d(ke)), 9, $t),
|
|
1438
1438
|
I("select", {
|
|
1439
1439
|
"aria-invalid": m.validation === "invalid",
|
|
1440
1440
|
"data-custom-validity": m.validation,
|
|
@@ -1448,71 +1448,71 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1448
1448
|
value: m.value ?? _.value,
|
|
1449
1449
|
autocomplete: m.autocomplete,
|
|
1450
1450
|
multiple: m.multiple,
|
|
1451
|
-
onInput:
|
|
1452
|
-
onClick:
|
|
1453
|
-
onChange:
|
|
1454
|
-
onBlur:
|
|
1455
|
-
onFocus:
|
|
1451
|
+
onInput: W[0] || (W[0] = async (H) => y(H)),
|
|
1452
|
+
onClick: W[1] || (W[1] = async (H) => P(H)),
|
|
1453
|
+
onChange: W[2] || (W[2] = async (H) => h(H)),
|
|
1454
|
+
onBlur: W[3] || (W[3] = async (H) => O(H)),
|
|
1455
|
+
onFocus: W[4] || (W[4] = async (H) => p(H)),
|
|
1456
1456
|
"aria-describedby": m.ariaDescribedBy ?? r.value
|
|
1457
1457
|
}, [
|
|
1458
|
-
|
|
1459
|
-
m.options ? (v(!0), b(
|
|
1458
|
+
W[5] || (W[5] = I("option", { hidden: !0 }, null, -1)),
|
|
1459
|
+
m.options ? (v(!0), b(V, { key: 0 }, he(m.options, (H, _e) => (v(), b(V, { key: _e }, [
|
|
1460
1460
|
H.options ? (v(), b("optgroup", {
|
|
1461
1461
|
key: 0,
|
|
1462
|
-
label:
|
|
1462
|
+
label: G(H)
|
|
1463
1463
|
}, [
|
|
1464
|
-
(v(!0), b(
|
|
1464
|
+
(v(!0), b(V, null, he(H.options, (ge, Ce) => (v(), b("option", {
|
|
1465
1465
|
key: ge.value.toString(),
|
|
1466
1466
|
value: ge.value,
|
|
1467
1467
|
selected: ge.selected,
|
|
1468
1468
|
disabled: ge.disabled
|
|
1469
|
-
},
|
|
1470
|
-
], 8,
|
|
1469
|
+
}, B(G(ge)), 9, Et))), 128))
|
|
1470
|
+
], 8, Ct)) : D("", !0),
|
|
1471
1471
|
H.options ? D("", !0) : (v(), b("option", {
|
|
1472
1472
|
key: 1,
|
|
1473
1473
|
value: H.value,
|
|
1474
1474
|
disabled: H.disabled,
|
|
1475
1475
|
selected: H.selected
|
|
1476
|
-
},
|
|
1476
|
+
}, B(G(H)), 9, Dt))
|
|
1477
1477
|
], 64))), 128)) : $(m.$slots, "default", { key: 1 })
|
|
1478
|
-
], 40,
|
|
1479
|
-
I("span", { id: c.value },
|
|
1480
|
-
d(ee)(m.message, m.showMessage) ? (v(),
|
|
1478
|
+
], 40, At),
|
|
1479
|
+
I("span", { id: c.value }, B(m.placeholder ?? m.label), 9, Nt),
|
|
1480
|
+
d(ee)(m.message, m.showMessage) ? (v(), Q(te, {
|
|
1481
1481
|
key: 0,
|
|
1482
1482
|
size: "small",
|
|
1483
1483
|
icon: m.messageIcon,
|
|
1484
1484
|
id: f.value
|
|
1485
1485
|
}, {
|
|
1486
|
-
default:
|
|
1487
|
-
C(
|
|
1486
|
+
default: U(() => [
|
|
1487
|
+
C(B(m.message), 1)
|
|
1488
1488
|
]),
|
|
1489
1489
|
_: 1
|
|
1490
1490
|
}, 8, ["icon", "id"])) : D("", !0),
|
|
1491
|
-
|
|
1491
|
+
w() ? (v(), Q(te, {
|
|
1492
1492
|
key: 1,
|
|
1493
1493
|
size: "small",
|
|
1494
1494
|
semantic: "successful",
|
|
1495
1495
|
id: u.value
|
|
1496
1496
|
}, {
|
|
1497
|
-
default:
|
|
1498
|
-
C(
|
|
1497
|
+
default: U(() => [
|
|
1498
|
+
C(B(m.validMessage || d(pe)), 1)
|
|
1499
1499
|
]),
|
|
1500
1500
|
_: 1
|
|
1501
1501
|
}, 8, ["id"])) : D("", !0),
|
|
1502
|
-
te
|
|
1502
|
+
ae(te, {
|
|
1503
1503
|
size: "small",
|
|
1504
1504
|
semantic: "critical",
|
|
1505
1505
|
id: g.value
|
|
1506
1506
|
}, {
|
|
1507
|
-
default:
|
|
1508
|
-
C(
|
|
1507
|
+
default: U(() => [
|
|
1508
|
+
C(B(s.value), 1)
|
|
1509
1509
|
]),
|
|
1510
1510
|
_: 1
|
|
1511
1511
|
}, 8, ["id"]),
|
|
1512
|
-
I("span",
|
|
1513
|
-
], 10,
|
|
1512
|
+
I("span", Ft, B(S.value), 1)
|
|
1513
|
+
], 10, Tt));
|
|
1514
1514
|
}
|
|
1515
|
-
}),
|
|
1515
|
+
}), Mt = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for"], Pt = ["id", "aria-checked", "checked", "value", "disabled", "aria-describedby", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-after"], sl = /* @__PURE__ */ z({
|
|
1516
1516
|
__name: "switch",
|
|
1517
1517
|
props: {
|
|
1518
1518
|
visualAid: { type: [Boolean, String], default: void 0 },
|
|
@@ -1547,7 +1547,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1547
1547
|
setup(i, { emit: t }) {
|
|
1548
1548
|
const o = t, e = i, a = n(void 0), f = n(!1), u = n(null);
|
|
1549
1549
|
Y(() => {
|
|
1550
|
-
a.value = e.id ?? `switch-${
|
|
1550
|
+
a.value = e.id ?? `switch-${Z()}`;
|
|
1551
1551
|
}), A(
|
|
1552
1552
|
() => [e.checked],
|
|
1553
1553
|
() => {
|
|
@@ -1560,7 +1560,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1560
1560
|
);
|
|
1561
1561
|
function g(r) {
|
|
1562
1562
|
var _;
|
|
1563
|
-
r.stopPropagation(), e.onChange && e.onChange(r), f.value = (_ = r.target) == null ? void 0 : _.checked,
|
|
1563
|
+
r.stopPropagation(), e.onChange && e.onChange(r), f.value = (_ = r.target) == null ? void 0 : _.checked, de(o, r, "checked");
|
|
1564
1564
|
}
|
|
1565
1565
|
function s(r) {
|
|
1566
1566
|
r.stopPropagation(), e.onBlur && e.onBlur(r);
|
|
@@ -1596,13 +1596,13 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1596
1596
|
onChange: _[0] || (_[0] = async (L) => g(L)),
|
|
1597
1597
|
onBlur: _[1] || (_[1] = async (L) => s(L)),
|
|
1598
1598
|
onFocus: _[2] || (_[2] = async (L) => c(L))
|
|
1599
|
-
}, null, 40,
|
|
1600
|
-
r.label ? (v(), b(
|
|
1601
|
-
C(
|
|
1599
|
+
}, null, 40, Pt),
|
|
1600
|
+
r.label ? (v(), b(V, { key: 0 }, [
|
|
1601
|
+
C(B(r.label), 1)
|
|
1602
1602
|
], 64)) : $(r.$slots, "default", { key: 1 })
|
|
1603
|
-
], 10,
|
|
1603
|
+
], 10, Mt));
|
|
1604
1604
|
}
|
|
1605
|
-
}),
|
|
1605
|
+
}), Rt = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], zt = ["disabled", "aria-selected", "aria-controls", "checked", "name", "id"], Vt = /* @__PURE__ */ z({
|
|
1606
1606
|
__name: "tab-item",
|
|
1607
1607
|
props: {
|
|
1608
1608
|
children: { default: void 0 },
|
|
@@ -1650,7 +1650,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1650
1650
|
);
|
|
1651
1651
|
function s(c) {
|
|
1652
1652
|
var r;
|
|
1653
|
-
c.stopPropagation(), e.onChange && e.onChange(c), a.value = (r = c.target) == null ? void 0 : r.checked,
|
|
1653
|
+
c.stopPropagation(), e.onChange && e.onChange(c), a.value = (r = c.target) == null ? void 0 : r.checked, de(o, c, "checked");
|
|
1654
1654
|
}
|
|
1655
1655
|
return (c, r) => (v(), b("li", {
|
|
1656
1656
|
role: "none",
|
|
@@ -1676,15 +1676,76 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1676
1676
|
name: f.value,
|
|
1677
1677
|
id: c.id,
|
|
1678
1678
|
onInput: r[0] || (r[0] = async (_) => s(_))
|
|
1679
|
-
}, null, 40,
|
|
1680
|
-
c.label ? (v(), b(
|
|
1681
|
-
C(
|
|
1679
|
+
}, null, 40, zt),
|
|
1680
|
+
c.label ? (v(), b(V, { key: 0 }, [
|
|
1681
|
+
C(B(c.label), 1)
|
|
1682
1682
|
], 64)) : D("", !0),
|
|
1683
1683
|
$(c.$slots, "default")
|
|
1684
|
-
], 8,
|
|
1684
|
+
], 8, Rt)
|
|
1685
1685
|
], 2));
|
|
1686
1686
|
}
|
|
1687
|
-
}),
|
|
1687
|
+
}), qt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], da = /* @__PURE__ */ z({
|
|
1688
|
+
__name: "tooltip",
|
|
1689
|
+
props: {
|
|
1690
|
+
showArrow: { type: [Boolean, String], default: void 0 },
|
|
1691
|
+
variant: { default: void 0 },
|
|
1692
|
+
children: { default: void 0 },
|
|
1693
|
+
className: { default: void 0 },
|
|
1694
|
+
class: {},
|
|
1695
|
+
describedbyid: {},
|
|
1696
|
+
id: { default: void 0 },
|
|
1697
|
+
autofocus: { type: [Boolean, String] },
|
|
1698
|
+
emphasis: { default: void 0 },
|
|
1699
|
+
placement: { default: void 0 },
|
|
1700
|
+
delay: { default: void 0 },
|
|
1701
|
+
animation: { type: [Boolean, String], default: void 0 },
|
|
1702
|
+
width: { default: void 0 }
|
|
1703
|
+
},
|
|
1704
|
+
setup(i) {
|
|
1705
|
+
const t = i, o = n(we), e = n(!1), a = n(null);
|
|
1706
|
+
Y(() => {
|
|
1707
|
+
o.value = t.id || "tooltip-" + Z(), e.value = !0;
|
|
1708
|
+
}), A(
|
|
1709
|
+
() => [a.value, e.value],
|
|
1710
|
+
() => {
|
|
1711
|
+
if (a.value && e.value && o.value) {
|
|
1712
|
+
let g = a.value.parentElement;
|
|
1713
|
+
g && g.localName.includes("tooltip") && (g = g.parentElement), g && (["mouseenter", "focus"].forEach((s) => {
|
|
1714
|
+
g.addEventListener(s, () => u());
|
|
1715
|
+
}), g.setAttribute("data-has-tooltip", "true"), t.variant === "label" ? g.setAttribute("aria-labelledby", o.value) : g.setAttribute("aria-describedby", o.value)), e.value = !1;
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
immediate: !0,
|
|
1720
|
+
flush: "post"
|
|
1721
|
+
}
|
|
1722
|
+
);
|
|
1723
|
+
function f(g) {
|
|
1724
|
+
g.stopPropagation();
|
|
1725
|
+
}
|
|
1726
|
+
function u() {
|
|
1727
|
+
a.value && Me(a.value);
|
|
1728
|
+
}
|
|
1729
|
+
return (g, s) => (v(), b("i", {
|
|
1730
|
+
role: "tooltip",
|
|
1731
|
+
"aria-hidden": "true",
|
|
1732
|
+
"data-gap": "true",
|
|
1733
|
+
ref_key: "_ref",
|
|
1734
|
+
ref: a,
|
|
1735
|
+
class: F(d(M)("db-tooltip", t.class)),
|
|
1736
|
+
id: o.value,
|
|
1737
|
+
"data-emphasis": g.emphasis,
|
|
1738
|
+
"data-animation": d(j)(g.animation ?? !0),
|
|
1739
|
+
"data-delay": g.delay,
|
|
1740
|
+
"data-width": g.width,
|
|
1741
|
+
"data-show-arrow": d(j)(g.showArrow ?? !0),
|
|
1742
|
+
"data-placement": g.placement,
|
|
1743
|
+
onClick: s[0] || (s[0] = async (c) => f(c))
|
|
1744
|
+
}, [
|
|
1745
|
+
$(g.$slots, "default")
|
|
1746
|
+
], 10, qt));
|
|
1747
|
+
}
|
|
1748
|
+
}), Ut = ["id", "data-disabled", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-hide-icon", "data-no-text", "data-overflow"], Gt = /* @__PURE__ */ z({
|
|
1688
1749
|
__name: "tag",
|
|
1689
1750
|
props: {
|
|
1690
1751
|
behavior: { default: void 0 },
|
|
@@ -1732,7 +1793,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1732
1793
|
u == null || u.stopPropagation(), t.onRemove && t.onRemove(u);
|
|
1733
1794
|
}
|
|
1734
1795
|
function f() {
|
|
1735
|
-
return t.removeButton ? t.removeButton :
|
|
1796
|
+
return t.removeButton ? t.removeButton : ea;
|
|
1736
1797
|
}
|
|
1737
1798
|
return (u, g) => (v(), b("div", {
|
|
1738
1799
|
ref_key: "_ref",
|
|
@@ -1750,8 +1811,8 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1750
1811
|
}, [
|
|
1751
1812
|
$(u.$slots, "content"),
|
|
1752
1813
|
$(u.$slots, "default"),
|
|
1753
|
-
u.text ? (v(), b(
|
|
1754
|
-
C(
|
|
1814
|
+
u.text ? (v(), b(V, { key: 0 }, [
|
|
1815
|
+
C(B(u.text), 1)
|
|
1755
1816
|
], 64)) : D("", !0),
|
|
1756
1817
|
u.behavior === "removable" ? (v(), b("button", {
|
|
1757
1818
|
key: 1,
|
|
@@ -1760,15 +1821,22 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1760
1821
|
"data-size": "small",
|
|
1761
1822
|
"data-no-text": "true",
|
|
1762
1823
|
"data-variant": "ghost",
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
},
|
|
1766
|
-
|
|
1824
|
+
type: "button",
|
|
1825
|
+
onClick: g[0] || (g[0] = async (s) => a(s))
|
|
1826
|
+
}, [
|
|
1827
|
+
ae(da, { variant: "label" }, {
|
|
1828
|
+
default: U(() => [
|
|
1829
|
+
C(B(f()), 1)
|
|
1830
|
+
]),
|
|
1831
|
+
_: 1
|
|
1832
|
+
})
|
|
1833
|
+
])) : D("", !0)
|
|
1834
|
+
], 10, Ut));
|
|
1767
1835
|
}
|
|
1768
|
-
}),
|
|
1836
|
+
}), Ot = ["data-variant", "data-hide-label"], Wt = ["for"], Xt = ["aria-invalid", "data-custom-validity", "id", "data-resize", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Ht = {
|
|
1769
1837
|
"data-visually-hidden": "true",
|
|
1770
1838
|
role: "status"
|
|
1771
|
-
}, ul = /* @__PURE__ */
|
|
1839
|
+
}, ul = /* @__PURE__ */ z({
|
|
1772
1840
|
__name: "textarea",
|
|
1773
1841
|
props: {
|
|
1774
1842
|
cols: { default: void 0 },
|
|
@@ -1818,7 +1886,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1818
1886
|
setup(i, { emit: t }) {
|
|
1819
1887
|
const o = t, e = i, a = n(void 0), f = n(void 0), u = n(void 0), g = n(void 0), s = n(void 0), c = n(""), r = n(""), _ = n(""), L = n(null);
|
|
1820
1888
|
Y(() => {
|
|
1821
|
-
const h = e.id ?? `textarea-${
|
|
1889
|
+
const h = e.id ?? `textarea-${Z()}`;
|
|
1822
1890
|
a.value = h, f.value = h + ce, u.value = h + ve, g.value = h + fe, s.value = e.invalidMessage || ie;
|
|
1823
1891
|
}), A(
|
|
1824
1892
|
() => [L.value, e.invalidMessage],
|
|
@@ -1852,18 +1920,18 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1852
1920
|
flush: "post"
|
|
1853
1921
|
}
|
|
1854
1922
|
);
|
|
1855
|
-
function
|
|
1923
|
+
function S() {
|
|
1856
1924
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1857
1925
|
}
|
|
1858
1926
|
function E() {
|
|
1859
1927
|
var h, O, p;
|
|
1860
|
-
!((h = L.value) != null && h.validity.valid) || e.validation === "invalid" ? (c.value = g.value, s.value = e.invalidMessage || ((O = L.value) == null ? void 0 : O.validationMessage) || ie, re() && (_.value = s.value, x(() => _.value = "", 1e3))) :
|
|
1928
|
+
!((h = L.value) != null && h.validity.valid) || e.validation === "invalid" ? (c.value = g.value, s.value = e.invalidMessage || ((O = L.value) == null ? void 0 : O.validationMessage) || ie, re() && (_.value = s.value, x(() => _.value = "", 1e3))) : S() && ((p = L.value) != null && p.validity.valid) && (e.required || e.minLength || e.maxLength) ? (c.value = u.value, re() && (_.value = e.validMessage ?? pe, x(() => _.value = "", 1e3))) : ee(e.message, e.showMessage) ? c.value = f.value : c.value = "";
|
|
1861
1929
|
}
|
|
1862
|
-
function
|
|
1863
|
-
h.stopPropagation(), e.input && e.input(h), r.value = h.target.value, e.onInput && e.onInput(h),
|
|
1930
|
+
function w(h) {
|
|
1931
|
+
h.stopPropagation(), e.input && e.input(h), r.value = h.target.value, e.onInput && e.onInput(h), de(o, h), E();
|
|
1864
1932
|
}
|
|
1865
1933
|
function T(h) {
|
|
1866
|
-
h.stopPropagation(), e.onChange && e.onChange(h),
|
|
1934
|
+
h.stopPropagation(), e.onChange && e.onChange(h), de(o, h), E();
|
|
1867
1935
|
}
|
|
1868
1936
|
function P(h) {
|
|
1869
1937
|
h.stopPropagation(), e.onBlur && e.onBlur(h);
|
|
@@ -1876,7 +1944,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1876
1944
|
"data-variant": h.variant,
|
|
1877
1945
|
"data-hide-label": d(K)(h.showLabel)
|
|
1878
1946
|
}, [
|
|
1879
|
-
I("label", { for: a.value },
|
|
1947
|
+
I("label", { for: a.value }, B(h.label ?? d(ke)), 9, Wt),
|
|
1880
1948
|
I("textarea", {
|
|
1881
1949
|
"aria-invalid": h.validation === "invalid",
|
|
1882
1950
|
"data-custom-validity": h.validation,
|
|
@@ -1894,55 +1962,55 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1894
1962
|
wrap: h.wrap,
|
|
1895
1963
|
spellcheck: h.spellCheck,
|
|
1896
1964
|
autocomplete: h.autocomplete,
|
|
1897
|
-
onInput: O[0] || (O[0] = async (p) =>
|
|
1965
|
+
onInput: O[0] || (O[0] = async (p) => w(p)),
|
|
1898
1966
|
onChange: O[1] || (O[1] = async (p) => T(p)),
|
|
1899
1967
|
onBlur: O[2] || (O[2] = async (p) => P(p)),
|
|
1900
1968
|
onFocus: O[3] || (O[3] = async (p) => y(p)),
|
|
1901
1969
|
value: h.value ?? r.value,
|
|
1902
1970
|
"aria-describedby": h.ariaDescribedBy ?? c.value,
|
|
1903
|
-
placeholder: h.placeholder ?? d(
|
|
1904
|
-
rows: d(ye)(h.rows, d(
|
|
1971
|
+
placeholder: h.placeholder ?? d(xe),
|
|
1972
|
+
rows: d(ye)(h.rows, d(Na)),
|
|
1905
1973
|
cols: d(ye)(h.cols)
|
|
1906
|
-
}, null, 40,
|
|
1907
|
-
d(ee)(h.message, h.showMessage) ? (v(),
|
|
1974
|
+
}, null, 40, Xt),
|
|
1975
|
+
d(ee)(h.message, h.showMessage) ? (v(), Q(te, {
|
|
1908
1976
|
key: 0,
|
|
1909
1977
|
size: "small",
|
|
1910
1978
|
icon: h.messageIcon,
|
|
1911
1979
|
id: f.value
|
|
1912
1980
|
}, {
|
|
1913
|
-
default:
|
|
1914
|
-
C(
|
|
1981
|
+
default: U(() => [
|
|
1982
|
+
C(B(h.message), 1)
|
|
1915
1983
|
]),
|
|
1916
1984
|
_: 1
|
|
1917
1985
|
}, 8, ["icon", "id"])) : D("", !0),
|
|
1918
|
-
|
|
1986
|
+
S() ? (v(), Q(te, {
|
|
1919
1987
|
key: 1,
|
|
1920
1988
|
size: "small",
|
|
1921
1989
|
semantic: "successful",
|
|
1922
1990
|
id: u.value
|
|
1923
1991
|
}, {
|
|
1924
|
-
default:
|
|
1925
|
-
C(
|
|
1992
|
+
default: U(() => [
|
|
1993
|
+
C(B(h.validMessage || d(pe)), 1)
|
|
1926
1994
|
]),
|
|
1927
1995
|
_: 1
|
|
1928
1996
|
}, 8, ["id"])) : D("", !0),
|
|
1929
|
-
te
|
|
1997
|
+
ae(te, {
|
|
1930
1998
|
size: "small",
|
|
1931
1999
|
semantic: "critical",
|
|
1932
2000
|
id: g.value
|
|
1933
2001
|
}, {
|
|
1934
|
-
default:
|
|
1935
|
-
C(
|
|
2002
|
+
default: U(() => [
|
|
2003
|
+
C(B(s.value), 1)
|
|
1936
2004
|
]),
|
|
1937
2005
|
_: 1
|
|
1938
2006
|
}, 8, ["id"]),
|
|
1939
|
-
I("span",
|
|
1940
|
-
], 10,
|
|
2007
|
+
I("span", Ht, B(_.value), 1)
|
|
2008
|
+
], 10, Ot));
|
|
1941
2009
|
}
|
|
1942
|
-
}),
|
|
2010
|
+
}), jt = ["id", "data-width", "data-icon", "data-hide-icon", "data-active", "data-wrap", "aria-disabled"], Yt = ["aria-haspopup", "aria-expanded", "disabled"], Kt = ["data-auto-close", "id"], Jt = {
|
|
1943
2011
|
key: 0,
|
|
1944
2012
|
class: "db-mobile-navigation-back"
|
|
1945
|
-
}, rl = /* @__PURE__ */
|
|
2013
|
+
}, rl = /* @__PURE__ */ z({
|
|
1946
2014
|
__name: "navigation-item",
|
|
1947
2015
|
props: {
|
|
1948
2016
|
active: { type: Boolean, default: void 0 },
|
|
@@ -1966,7 +2034,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1966
2034
|
},
|
|
1967
2035
|
setup(i) {
|
|
1968
2036
|
const t = i, o = n(!1), e = n(!1), a = n(!0), f = n(!1), u = n(!1), g = n(
|
|
1969
|
-
"sub-navigation-" +
|
|
2037
|
+
"sub-navigation-" + Z()
|
|
1970
2038
|
), s = n(void 0), c = n(null);
|
|
1971
2039
|
Y(() => {
|
|
1972
2040
|
o.value = !0;
|
|
@@ -1985,10 +2053,10 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1985
2053
|
), A(
|
|
1986
2054
|
() => [o.value, c.value],
|
|
1987
2055
|
() => {
|
|
1988
|
-
var
|
|
2056
|
+
var S;
|
|
1989
2057
|
if (o.value && c.value) {
|
|
1990
2058
|
const E = c.value.querySelector("menu");
|
|
1991
|
-
E && (((
|
|
2059
|
+
E && (((S = E.children) == null ? void 0 : S.length) > 0 ? (e.value = !0, s.value || (s.value = new et(
|
|
1992
2060
|
c.value,
|
|
1993
2061
|
E
|
|
1994
2062
|
))) : a.value = !1);
|
|
@@ -1999,83 +2067,83 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
1999
2067
|
flush: "post"
|
|
2000
2068
|
}
|
|
2001
2069
|
);
|
|
2002
|
-
function r(
|
|
2003
|
-
|
|
2070
|
+
function r(S) {
|
|
2071
|
+
oa(S) && (u.value = !0, x(() => {
|
|
2004
2072
|
u.value = !1;
|
|
2005
2073
|
}, 300));
|
|
2006
2074
|
}
|
|
2007
|
-
function _(
|
|
2008
|
-
t.onClick && (
|
|
2075
|
+
function _(S) {
|
|
2076
|
+
t.onClick && (S.stopPropagation(), t.onClick(S)), e.value && (f.value = !0);
|
|
2009
2077
|
}
|
|
2010
|
-
function L(
|
|
2011
|
-
|
|
2078
|
+
function L(S) {
|
|
2079
|
+
S.stopPropagation(), f.value = !1;
|
|
2012
2080
|
}
|
|
2013
|
-
return (
|
|
2081
|
+
return (S, E) => (v(), b("li", {
|
|
2014
2082
|
ref_key: "_ref",
|
|
2015
2083
|
ref: c,
|
|
2016
|
-
id:
|
|
2017
|
-
onMouseover: E[2] || (E[2] = async (
|
|
2084
|
+
id: S.id,
|
|
2085
|
+
onMouseover: E[2] || (E[2] = async (w) => {
|
|
2018
2086
|
var T;
|
|
2019
2087
|
return (T = s.value) == null ? void 0 : T.enableFollow();
|
|
2020
2088
|
}),
|
|
2021
|
-
onMouseleave: E[3] || (E[3] = async (
|
|
2089
|
+
onMouseleave: E[3] || (E[3] = async (w) => {
|
|
2022
2090
|
var T;
|
|
2023
2091
|
return (T = s.value) == null ? void 0 : T.disableFollow();
|
|
2024
2092
|
}),
|
|
2025
|
-
onMousemove: E[4] || (E[4] = async (
|
|
2093
|
+
onMousemove: E[4] || (E[4] = async (w) => {
|
|
2026
2094
|
var T;
|
|
2027
|
-
return (T = s.value) == null ? void 0 : T.followByMouseEvent(
|
|
2095
|
+
return (T = s.value) == null ? void 0 : T.followByMouseEvent(w);
|
|
2028
2096
|
}),
|
|
2029
2097
|
class: F(d(M)("db-navigation-item", t.class)),
|
|
2030
|
-
"data-width":
|
|
2031
|
-
"data-icon":
|
|
2032
|
-
"data-hide-icon": d(K)(
|
|
2033
|
-
"data-active":
|
|
2034
|
-
"data-wrap": d(j)(
|
|
2035
|
-
"aria-disabled": d(j)(
|
|
2098
|
+
"data-width": S.width,
|
|
2099
|
+
"data-icon": S.icon,
|
|
2100
|
+
"data-hide-icon": d(K)(S.showIcon),
|
|
2101
|
+
"data-active": S.active,
|
|
2102
|
+
"data-wrap": d(j)(S.wrap),
|
|
2103
|
+
"aria-disabled": d(j)(S.disabled)
|
|
2036
2104
|
}, [
|
|
2037
|
-
a.value ? D("", !0) : (v(), b(
|
|
2038
|
-
|
|
2039
|
-
C(
|
|
2040
|
-
], 64)) : $(
|
|
2105
|
+
a.value ? D("", !0) : (v(), b(V, { key: 0 }, [
|
|
2106
|
+
S.text ? (v(), b(V, { key: 0 }, [
|
|
2107
|
+
C(B(S.text), 1)
|
|
2108
|
+
], 64)) : $(S.$slots, "default", { key: 1 })
|
|
2041
2109
|
], 64)),
|
|
2042
|
-
a.value ? (v(), b(
|
|
2110
|
+
a.value ? (v(), b(V, { key: 1 }, [
|
|
2043
2111
|
I("button", {
|
|
2044
2112
|
class: "db-navigation-item-expand-button",
|
|
2045
2113
|
"aria-haspopup": e.value,
|
|
2046
2114
|
"aria-expanded": f.value,
|
|
2047
|
-
disabled: d(N)(
|
|
2048
|
-
onClick: E[0] || (E[0] = async (
|
|
2115
|
+
disabled: d(N)(S.disabled, "disabled"),
|
|
2116
|
+
onClick: E[0] || (E[0] = async (w) => _(w))
|
|
2049
2117
|
}, [
|
|
2050
|
-
|
|
2051
|
-
C(
|
|
2052
|
-
], 64)) : $(
|
|
2053
|
-
], 8,
|
|
2118
|
+
S.text ? (v(), b(V, { key: 0 }, [
|
|
2119
|
+
C(B(S.text), 1)
|
|
2120
|
+
], 64)) : $(S.$slots, "default", { key: 1 })
|
|
2121
|
+
], 8, Yt),
|
|
2054
2122
|
I("menu", {
|
|
2055
2123
|
class: "db-sub-navigation",
|
|
2056
2124
|
"data-auto-close": u.value,
|
|
2057
2125
|
id: g.value,
|
|
2058
|
-
onClick: E[1] || (E[1] = async (
|
|
2126
|
+
onClick: E[1] || (E[1] = async (w) => r(w))
|
|
2059
2127
|
}, [
|
|
2060
|
-
e.value ? (v(), b("div",
|
|
2061
|
-
|
|
2128
|
+
e.value ? (v(), b("div", Jt, [
|
|
2129
|
+
ae(Be, {
|
|
2062
2130
|
icon: "arrow_left",
|
|
2063
2131
|
variant: "ghost",
|
|
2064
|
-
id:
|
|
2065
|
-
onClick: (
|
|
2132
|
+
id: S.backButtonId,
|
|
2133
|
+
onClick: (w) => L(w)
|
|
2066
2134
|
}, {
|
|
2067
|
-
default:
|
|
2068
|
-
C(
|
|
2135
|
+
default: U(() => [
|
|
2136
|
+
C(B(S.backButtonText ?? d(Aa)), 1)
|
|
2069
2137
|
]),
|
|
2070
2138
|
_: 1
|
|
2071
2139
|
}, 8, ["id", "onClick"])
|
|
2072
2140
|
])) : D("", !0),
|
|
2073
|
-
$(
|
|
2074
|
-
], 8,
|
|
2141
|
+
$(S.$slots, "sub-navigation")
|
|
2142
|
+
], 8, Kt)
|
|
2075
2143
|
], 64)) : D("", !0)
|
|
2076
|
-
], 42,
|
|
2144
|
+
], 42, jt));
|
|
2077
2145
|
}
|
|
2078
|
-
}),
|
|
2146
|
+
}), Qt = ["id"], Zt = ["aria-disabled", "name", "open"], xt = /* @__PURE__ */ z({
|
|
2079
2147
|
__name: "accordion-item",
|
|
2080
2148
|
props: {
|
|
2081
2149
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
@@ -2096,7 +2164,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2096
2164
|
setup(i) {
|
|
2097
2165
|
const t = i, o = n(we), e = n(!1), a = n(void 0), f = n(!1), u = n(null);
|
|
2098
2166
|
Y(() => {
|
|
2099
|
-
o.value = t.id || "accordion-item-" +
|
|
2167
|
+
o.value = t.id || "accordion-item-" + Z(), t.defaultOpen && (e.value = t.defaultOpen), f.value = !0;
|
|
2100
2168
|
}), A(
|
|
2101
2169
|
() => [u.value, f.value],
|
|
2102
2170
|
() => {
|
|
@@ -2135,20 +2203,20 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2135
2203
|
I("summary", {
|
|
2136
2204
|
onClick: c[0] || (c[0] = async (r) => g(r))
|
|
2137
2205
|
}, [
|
|
2138
|
-
s.headlinePlain ? (v(), b(
|
|
2139
|
-
C(
|
|
2206
|
+
s.headlinePlain ? (v(), b(V, { key: 0 }, [
|
|
2207
|
+
C(B(s.headlinePlain), 1)
|
|
2140
2208
|
], 64)) : D("", !0),
|
|
2141
2209
|
s.headlinePlain ? D("", !0) : $(s.$slots, "headline", { key: 1 })
|
|
2142
2210
|
]),
|
|
2143
2211
|
I("div", null, [
|
|
2144
|
-
s.text ? (v(), b(
|
|
2145
|
-
C(
|
|
2212
|
+
s.text ? (v(), b(V, { key: 0 }, [
|
|
2213
|
+
C(B(s.text), 1)
|
|
2146
2214
|
], 64)) : $(s.$slots, "default", { key: 1 })
|
|
2147
2215
|
])
|
|
2148
|
-
], 8,
|
|
2149
|
-
], 10,
|
|
2216
|
+
], 8, Zt)
|
|
2217
|
+
], 10, Qt));
|
|
2150
2218
|
}
|
|
2151
|
-
}),
|
|
2219
|
+
}), ei = ["id", "data-variant"], cl = /* @__PURE__ */ z({
|
|
2152
2220
|
__name: "accordion",
|
|
2153
2221
|
props: {
|
|
2154
2222
|
behavior: { default: void 0 },
|
|
@@ -2167,7 +2235,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2167
2235
|
setup(i) {
|
|
2168
2236
|
const t = i, o = n(we), e = n(""), a = n(!1), f = n(!1), u = n(null);
|
|
2169
2237
|
Y(() => {
|
|
2170
|
-
o.value = t.id || "accordion-" +
|
|
2238
|
+
o.value = t.id || "accordion-" + Z(), a.value = !0, f.value = !0;
|
|
2171
2239
|
}), A(
|
|
2172
2240
|
() => [a.value, t.name, t.behavior, o.value],
|
|
2173
2241
|
() => {
|
|
@@ -2230,15 +2298,15 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2230
2298
|
"data-variant": s.variant
|
|
2231
2299
|
}, [
|
|
2232
2300
|
s.items ? D("", !0) : $(s.$slots, "default", { key: 0 }),
|
|
2233
|
-
s.items ? (v(!0), b(
|
|
2301
|
+
s.items ? (v(!0), b(V, { key: 1 }, he(g(), (r, _) => (v(), Q(xt, {
|
|
2234
2302
|
key: `accordion-item-${_}`,
|
|
2235
2303
|
headlinePlain: r.headlinePlain,
|
|
2236
2304
|
disabled: r.disabled,
|
|
2237
2305
|
text: r.text
|
|
2238
2306
|
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : D("", !0)
|
|
2239
|
-
], 10,
|
|
2307
|
+
], 10, ei));
|
|
2240
2308
|
}
|
|
2241
|
-
}),
|
|
2309
|
+
}), ai = ["id", "aria-labelledby"], vl = /* @__PURE__ */ z({
|
|
2242
2310
|
__name: "navigation",
|
|
2243
2311
|
props: {
|
|
2244
2312
|
children: { default: void 0 },
|
|
@@ -2252,7 +2320,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2252
2320
|
setup(i) {
|
|
2253
2321
|
const t = i, o = n(we), e = n(null);
|
|
2254
2322
|
return Y(() => {
|
|
2255
|
-
o.value = t.id || "navigation-" +
|
|
2323
|
+
o.value = t.id || "navigation-" + Z();
|
|
2256
2324
|
}), (a, f) => (v(), b("nav", {
|
|
2257
2325
|
ref_key: "_ref",
|
|
2258
2326
|
ref: e,
|
|
@@ -2263,9 +2331,9 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2263
2331
|
I("menu", null, [
|
|
2264
2332
|
$(a.$slots, "default")
|
|
2265
2333
|
])
|
|
2266
|
-
], 10,
|
|
2334
|
+
], 10, ai));
|
|
2267
2335
|
}
|
|
2268
|
-
}),
|
|
2336
|
+
}), ti = ["id"], ii = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], fl = /* @__PURE__ */ z({
|
|
2269
2337
|
__name: "popover",
|
|
2270
2338
|
props: {
|
|
2271
2339
|
open: { type: [Boolean, String], default: void 0 },
|
|
@@ -2354,70 +2422,10 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2354
2422
|
"data-placement": s.placement
|
|
2355
2423
|
}, [
|
|
2356
2424
|
$(s.$slots, "default")
|
|
2357
|
-
], 8,
|
|
2358
|
-
], 42,
|
|
2425
|
+
], 8, ii)
|
|
2426
|
+
], 42, ti));
|
|
2359
2427
|
}
|
|
2360
|
-
}),
|
|
2361
|
-
__name: "tooltip",
|
|
2362
|
-
props: {
|
|
2363
|
-
showArrow: { type: [Boolean, String], default: void 0 },
|
|
2364
|
-
children: { default: void 0 },
|
|
2365
|
-
className: { default: void 0 },
|
|
2366
|
-
class: {},
|
|
2367
|
-
describedbyid: {},
|
|
2368
|
-
id: { default: void 0 },
|
|
2369
|
-
autofocus: { type: [Boolean, String] },
|
|
2370
|
-
emphasis: { default: void 0 },
|
|
2371
|
-
placement: { default: void 0 },
|
|
2372
|
-
delay: { default: void 0 },
|
|
2373
|
-
animation: { type: [Boolean, String], default: void 0 },
|
|
2374
|
-
width: { default: void 0 }
|
|
2375
|
-
},
|
|
2376
|
-
setup(i) {
|
|
2377
|
-
const t = i, o = n(we), e = n(!1), a = n(null);
|
|
2378
|
-
Y(() => {
|
|
2379
|
-
o.value = t.id || "tooltip-" + Q(), e.value = !0;
|
|
2380
|
-
}), A(
|
|
2381
|
-
() => [a.value, e.value],
|
|
2382
|
-
() => {
|
|
2383
|
-
if (a.value && e.value && o.value) {
|
|
2384
|
-
let g = a.value.parentElement;
|
|
2385
|
-
g && g.localName.includes("tooltip") && (g = g.parentElement), g && (["mouseenter", "focus"].forEach((s) => {
|
|
2386
|
-
g.addEventListener(s, () => u());
|
|
2387
|
-
}), g.setAttribute("data-has-tooltip", "true"), g.setAttribute("aria-describedby", o.value)), e.value = !1;
|
|
2388
|
-
}
|
|
2389
|
-
},
|
|
2390
|
-
{
|
|
2391
|
-
immediate: !0,
|
|
2392
|
-
flush: "post"
|
|
2393
|
-
}
|
|
2394
|
-
);
|
|
2395
|
-
function f(g) {
|
|
2396
|
-
g.stopPropagation();
|
|
2397
|
-
}
|
|
2398
|
-
function u() {
|
|
2399
|
-
a.value && Me(a.value);
|
|
2400
|
-
}
|
|
2401
|
-
return (g, s) => (v(), b("i", {
|
|
2402
|
-
role: "tooltip",
|
|
2403
|
-
"aria-hidden": "true",
|
|
2404
|
-
"data-gap": "true",
|
|
2405
|
-
ref_key: "_ref",
|
|
2406
|
-
ref: a,
|
|
2407
|
-
class: F(d(M)("db-tooltip", t.class)),
|
|
2408
|
-
id: o.value,
|
|
2409
|
-
"data-emphasis": g.emphasis,
|
|
2410
|
-
"data-animation": d(j)(g.animation ?? !0),
|
|
2411
|
-
"data-delay": g.delay,
|
|
2412
|
-
"data-width": g.width,
|
|
2413
|
-
"data-show-arrow": d(j)(g.showArrow ?? !0),
|
|
2414
|
-
"data-placement": g.placement,
|
|
2415
|
-
onClick: s[0] || (s[0] = async (c) => f(c))
|
|
2416
|
-
}, [
|
|
2417
|
-
$(g.$slots, "default")
|
|
2418
|
-
], 10, ti));
|
|
2419
|
-
}
|
|
2420
|
-
}), li = ["id"], oi = { role: "tablist" }, di = /* @__PURE__ */ R({
|
|
2428
|
+
}), li = ["id"], oi = { role: "tablist" }, di = /* @__PURE__ */ z({
|
|
2421
2429
|
__name: "tab-list",
|
|
2422
2430
|
props: {
|
|
2423
2431
|
children: { default: void 0 },
|
|
@@ -2430,7 +2438,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2430
2438
|
setup(i) {
|
|
2431
2439
|
const t = i, o = n(we), e = n(null);
|
|
2432
2440
|
return Y(() => {
|
|
2433
|
-
o.value = t.id || "tab-list-" +
|
|
2441
|
+
o.value = t.id || "tab-list-" + Z();
|
|
2434
2442
|
}), (a, f) => (v(), b("div", {
|
|
2435
2443
|
ref_key: "_ref",
|
|
2436
2444
|
ref: e,
|
|
@@ -2442,7 +2450,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2442
2450
|
])
|
|
2443
2451
|
], 10, li));
|
|
2444
2452
|
}
|
|
2445
|
-
}), ni = ["id", "aria-labelledby"], si = /* @__PURE__ */
|
|
2453
|
+
}), ni = ["id", "aria-labelledby"], si = /* @__PURE__ */ z({
|
|
2446
2454
|
__name: "tab-panel",
|
|
2447
2455
|
props: {
|
|
2448
2456
|
content: { default: void 0 },
|
|
@@ -2465,13 +2473,13 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2465
2473
|
id: e.id,
|
|
2466
2474
|
"aria-labelledby": e.labelledBy
|
|
2467
2475
|
}, [
|
|
2468
|
-
e.content ? (v(), b(
|
|
2469
|
-
C(
|
|
2476
|
+
e.content ? (v(), b(V, { key: 0 }, [
|
|
2477
|
+
C(B(e.content), 1)
|
|
2470
2478
|
], 64)) : D("", !0),
|
|
2471
2479
|
$(e.$slots, "default")
|
|
2472
2480
|
], 10, ni));
|
|
2473
2481
|
}
|
|
2474
|
-
}), ui = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], pl = /* @__PURE__ */
|
|
2482
|
+
}), ui = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], pl = /* @__PURE__ */ z({
|
|
2475
2483
|
__name: "tabs",
|
|
2476
2484
|
props: {
|
|
2477
2485
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -2495,20 +2503,20 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2495
2503
|
alignment: { default: void 0 }
|
|
2496
2504
|
},
|
|
2497
2505
|
setup(i) {
|
|
2498
|
-
const t = i, o = n("tabs-" +
|
|
2506
|
+
const t = i, o = n("tabs-" + Z()), e = n(""), a = n(!1), f = n(!1), u = n(!1), g = n(null), s = n(null);
|
|
2499
2507
|
Y(() => {
|
|
2500
|
-
o.value = t.id || o.value, e.value = `tabs-${t.name ||
|
|
2508
|
+
o.value = t.id || o.value, e.value = `tabs-${t.name || Z()}`, a.value = !0;
|
|
2501
2509
|
}), A(
|
|
2502
2510
|
() => [s.value, a.value],
|
|
2503
2511
|
() => {
|
|
2504
2512
|
if (s.value && a.value) {
|
|
2505
|
-
L(),
|
|
2506
|
-
const
|
|
2507
|
-
|
|
2513
|
+
L(), S(!0);
|
|
2514
|
+
const w = s.value.querySelector(".db-tab-list");
|
|
2515
|
+
w && new MutationObserver((P) => {
|
|
2508
2516
|
P.forEach((y) => {
|
|
2509
|
-
(y.removedNodes.length || y.addedNodes.length) && (L(),
|
|
2517
|
+
(y.removedNodes.length || y.addedNodes.length) && (L(), S());
|
|
2510
2518
|
});
|
|
2511
|
-
}).observe(
|
|
2519
|
+
}).observe(w, {
|
|
2512
2520
|
childList: !0,
|
|
2513
2521
|
subtree: !0
|
|
2514
2522
|
}), a.value = !1;
|
|
@@ -2522,19 +2530,19 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2522
2530
|
function c() {
|
|
2523
2531
|
try {
|
|
2524
2532
|
return typeof t.tabs == "string" ? JSON.parse(t.tabs) : t.tabs;
|
|
2525
|
-
} catch (
|
|
2526
|
-
console.error(
|
|
2533
|
+
} catch (w) {
|
|
2534
|
+
console.error(w);
|
|
2527
2535
|
}
|
|
2528
2536
|
return [];
|
|
2529
2537
|
}
|
|
2530
|
-
function r(
|
|
2531
|
-
const T =
|
|
2532
|
-
f.value = T &&
|
|
2538
|
+
function r(w) {
|
|
2539
|
+
const T = w.scrollWidth > w.clientWidth;
|
|
2540
|
+
f.value = T && w.scrollLeft > 1, u.value = T && w.scrollLeft < w.scrollWidth - w.clientWidth;
|
|
2533
2541
|
}
|
|
2534
|
-
function _(
|
|
2542
|
+
function _(w) {
|
|
2535
2543
|
var P;
|
|
2536
2544
|
let T = Number(t.arrowScrollDistance) || 100;
|
|
2537
|
-
|
|
2545
|
+
w && (T *= -1), (P = g.value) == null || P.scrollBy({
|
|
2538
2546
|
top: 0,
|
|
2539
2547
|
left: T,
|
|
2540
2548
|
behavior: "smooth"
|
|
@@ -2542,9 +2550,9 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2542
2550
|
}
|
|
2543
2551
|
function L() {
|
|
2544
2552
|
if (s.value) {
|
|
2545
|
-
const
|
|
2546
|
-
if (
|
|
2547
|
-
const T =
|
|
2553
|
+
const w = s.value.querySelector(".db-tab-list");
|
|
2554
|
+
if (w) {
|
|
2555
|
+
const T = w.querySelector('[role="tablist"]');
|
|
2548
2556
|
T && (T.setAttribute(
|
|
2549
2557
|
"aria-orientation",
|
|
2550
2558
|
t.orientation || "horizontal"
|
|
@@ -2554,7 +2562,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2554
2562
|
}
|
|
2555
2563
|
}
|
|
2556
2564
|
}
|
|
2557
|
-
function
|
|
2565
|
+
function S(w) {
|
|
2558
2566
|
if (s.value) {
|
|
2559
2567
|
const T = Array.from(
|
|
2560
2568
|
s.value.getElementsByClassName("db-tab-item")
|
|
@@ -2563,15 +2571,15 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2563
2571
|
const h = T.indexOf(y), O = y.querySelector("label"), p = y.querySelector("input");
|
|
2564
2572
|
if (p && O) {
|
|
2565
2573
|
if (!p.id) {
|
|
2566
|
-
const
|
|
2567
|
-
O.setAttribute("for",
|
|
2574
|
+
const G = `${e.value}-tab-${h}`;
|
|
2575
|
+
O.setAttribute("for", G), p.setAttribute(
|
|
2568
2576
|
"aria-controls",
|
|
2569
2577
|
`${e.value}-tab-panel-${h}`
|
|
2570
|
-
), p.id =
|
|
2578
|
+
), p.id = G, p.setAttribute("name", e.value);
|
|
2571
2579
|
}
|
|
2572
|
-
if (
|
|
2573
|
-
const
|
|
2574
|
-
|
|
2580
|
+
if (w) {
|
|
2581
|
+
const G = !t.initialSelectedMode || t.initialSelectedMode === "auto", m = t.initialSelectedIndex == null && h === 0 || Number(t.initialSelectedIndex) === h;
|
|
2582
|
+
G && m && p.click();
|
|
2575
2583
|
}
|
|
2576
2584
|
}
|
|
2577
2585
|
}
|
|
@@ -2587,31 +2595,31 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2587
2595
|
}
|
|
2588
2596
|
}
|
|
2589
2597
|
}
|
|
2590
|
-
function E(
|
|
2598
|
+
function E(w) {
|
|
2591
2599
|
var y;
|
|
2592
|
-
|
|
2593
|
-
const T = (y =
|
|
2600
|
+
w.stopPropagation();
|
|
2601
|
+
const T = (y = w.target) == null ? void 0 : y.closest("ul"), P = (
|
|
2594
2602
|
// db-tab-item for angular and stencil wrapping elements
|
|
2595
|
-
|
|
2603
|
+
w.target.closest("db-tab-item") ?? w.target.closest("li")
|
|
2596
2604
|
);
|
|
2597
2605
|
if (T !== null && P !== null) {
|
|
2598
2606
|
const h = Array.from(T.childNodes).indexOf(P);
|
|
2599
2607
|
t.onIndexChange && t.onIndexChange(h);
|
|
2600
2608
|
}
|
|
2601
|
-
t.onTabSelect && t.onTabSelect(
|
|
2609
|
+
t.onTabSelect && t.onTabSelect(w);
|
|
2602
2610
|
}
|
|
2603
|
-
return (
|
|
2611
|
+
return (w, T) => (v(), b("div", {
|
|
2604
2612
|
ref_key: "_ref",
|
|
2605
2613
|
ref: s,
|
|
2606
2614
|
id: o.value,
|
|
2607
2615
|
class: F(d(M)("db-tabs", t.class)),
|
|
2608
|
-
"data-orientation":
|
|
2609
|
-
"data-scroll-behavior":
|
|
2610
|
-
"data-alignment":
|
|
2611
|
-
"data-width":
|
|
2616
|
+
"data-orientation": w.orientation,
|
|
2617
|
+
"data-scroll-behavior": w.behavior,
|
|
2618
|
+
"data-alignment": w.alignment ?? "start",
|
|
2619
|
+
"data-width": w.width ?? "auto",
|
|
2612
2620
|
onInput: T[0] || (T[0] = async (P) => E(P))
|
|
2613
2621
|
}, [
|
|
2614
|
-
f.value ? (v(),
|
|
2622
|
+
f.value ? (v(), Q(Be, {
|
|
2615
2623
|
key: 0,
|
|
2616
2624
|
class: "tabs-scroll-left",
|
|
2617
2625
|
variant: "ghost",
|
|
@@ -2620,17 +2628,17 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2620
2628
|
noText: !0,
|
|
2621
2629
|
onClick: (P) => _(!0)
|
|
2622
2630
|
}, {
|
|
2623
|
-
default:
|
|
2631
|
+
default: U(() => T[1] || (T[1] = [
|
|
2624
2632
|
C(" Scroll left ")
|
|
2625
2633
|
])),
|
|
2626
2634
|
_: 1,
|
|
2627
2635
|
__: [1]
|
|
2628
2636
|
}, 8, ["onClick"])) : D("", !0),
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
default:
|
|
2632
|
-
(v(!0), b(
|
|
2633
|
-
key:
|
|
2637
|
+
w.tabs ? (v(), b(V, { key: 1 }, [
|
|
2638
|
+
ae(di, null, {
|
|
2639
|
+
default: U(() => [
|
|
2640
|
+
(v(!0), b(V, null, he(c(), (P, y) => (v(), Q(Vt, {
|
|
2641
|
+
key: w.name + "tab-item" + y,
|
|
2634
2642
|
active: P.active,
|
|
2635
2643
|
label: P.label,
|
|
2636
2644
|
iconAfter: P.iconAfter,
|
|
@@ -2640,17 +2648,17 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2640
2648
|
]),
|
|
2641
2649
|
_: 1
|
|
2642
2650
|
}),
|
|
2643
|
-
(v(!0), b(
|
|
2644
|
-
key:
|
|
2651
|
+
(v(!0), b(V, null, he(c(), (P, y) => (v(), Q(si, {
|
|
2652
|
+
key: w.name + "tab-panel" + y,
|
|
2645
2653
|
content: P.content
|
|
2646
2654
|
}, {
|
|
2647
|
-
default:
|
|
2648
|
-
C(
|
|
2655
|
+
default: U(() => [
|
|
2656
|
+
C(B(P.children), 1)
|
|
2649
2657
|
]),
|
|
2650
2658
|
_: 2
|
|
2651
2659
|
}, 1032, ["content"]))), 128))
|
|
2652
2660
|
], 64)) : D("", !0),
|
|
2653
|
-
u.value ? (v(),
|
|
2661
|
+
u.value ? (v(), Q(Be, {
|
|
2654
2662
|
key: 2,
|
|
2655
2663
|
class: "tabs-scroll-right",
|
|
2656
2664
|
variant: "ghost",
|
|
@@ -2659,16 +2667,16 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2659
2667
|
noText: !0,
|
|
2660
2668
|
onClick: (P) => _()
|
|
2661
2669
|
}, {
|
|
2662
|
-
default:
|
|
2670
|
+
default: U(() => T[2] || (T[2] = [
|
|
2663
2671
|
C(" Scroll right ")
|
|
2664
2672
|
])),
|
|
2665
2673
|
_: 1,
|
|
2666
2674
|
__: [2]
|
|
2667
2675
|
}, 8, ["onClick"])) : D("", !0),
|
|
2668
|
-
$(
|
|
2676
|
+
$(w.$slots, "default")
|
|
2669
2677
|
], 42, ui));
|
|
2670
2678
|
}
|
|
2671
|
-
}), ml = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], hl = ["medium", "small", "large", "none"], gl = ["medium", "small", "large", "none"], ri = ["left", "right", "left-start", "left-end", "right-start", "right-end"], ci = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], bl = [...ri, ...ci], yl = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], kl = ["horizontal", "vertical"], Bl = ["full", "auto"], Sl = ["full", "medium", "large", "small"], wl = ["none", "slow", "fast"], Il = ["auto", "fixed"], _l = ["small", "medium"], Ll = ["weak", "strong"], Tl = ["invalid", "valid", "no-validation"], $l = ["above", "floating"], Al = ["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"], Cl = ["time", "true", "false", "date", "page", "step", "location"], El = ["_self", "_blank", "_parent", "_top"], Dl = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], Nl = ["start", "center"], vi = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Fl = /* @__PURE__ */
|
|
2679
|
+
}), ml = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], hl = ["medium", "small", "large", "none"], gl = ["medium", "small", "large", "none"], ri = ["left", "right", "left-start", "left-end", "right-start", "right-end"], ci = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], bl = [...ri, ...ci], yl = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], kl = ["horizontal", "vertical"], Bl = ["full", "auto"], Sl = ["full", "medium", "large", "small"], wl = ["none", "slow", "fast"], Il = ["auto", "fixed"], _l = ["small", "medium"], Ll = ["weak", "strong"], Tl = ["invalid", "valid", "no-validation"], $l = ["above", "floating"], Al = ["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"], Cl = ["time", "true", "false", "date", "page", "step", "location"], El = ["_self", "_blank", "_parent", "_top"], Dl = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], Nl = ["start", "center"], vi = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Fl = /* @__PURE__ */ z({
|
|
2672
2680
|
__name: "stack",
|
|
2673
2681
|
props: {
|
|
2674
2682
|
variant: { default: void 0 },
|
|
@@ -2701,7 +2709,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2701
2709
|
$(e.$slots, "default")
|
|
2702
2710
|
], 10, vi));
|
|
2703
2711
|
}
|
|
2704
|
-
}), fi = ["role", "aria-label", "id"], pi = /* @__PURE__ */
|
|
2712
|
+
}), fi = ["role", "aria-label", "id"], pi = /* @__PURE__ */ z({
|
|
2705
2713
|
__name: "custom-select-list",
|
|
2706
2714
|
props: {
|
|
2707
2715
|
label: { default: void 0 },
|
|
@@ -2728,7 +2736,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2728
2736
|
])
|
|
2729
2737
|
], 10, fi));
|
|
2730
2738
|
}
|
|
2731
|
-
}), mi = ["id", "data-divider"], hi = ["data-icon", "data-hide-icon", "data-icon-after"], gi = ["type", "name", "form", "checked", "disabled", "value"], bi = { key: 1 }, yi = /* @__PURE__ */
|
|
2739
|
+
}), mi = ["id", "data-divider"], hi = ["data-icon", "data-hide-icon", "data-icon-after"], gi = ["type", "name", "form", "checked", "disabled", "value"], bi = { key: 1 }, yi = /* @__PURE__ */ z({
|
|
2732
2740
|
__name: "custom-select-list-item",
|
|
2733
2741
|
props: {
|
|
2734
2742
|
groupTitle: { default: void 0 },
|
|
@@ -2755,7 +2763,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2755
2763
|
setup(i, { emit: t }) {
|
|
2756
2764
|
const o = t, e = i, a = n(void 0), f = n(!1), u = n(null);
|
|
2757
2765
|
Y(() => {
|
|
2758
|
-
a.value = e.id ?? `custom-select-list-item-${
|
|
2766
|
+
a.value = e.id ?? `custom-select-list-item-${Z()}`;
|
|
2759
2767
|
}), A(
|
|
2760
2768
|
() => [e.isGroupTitle, e.showDivider],
|
|
2761
2769
|
() => {
|
|
@@ -2767,7 +2775,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2767
2775
|
}
|
|
2768
2776
|
);
|
|
2769
2777
|
function g(c) {
|
|
2770
|
-
c.stopPropagation(), e.onChange && e.onChange(c),
|
|
2778
|
+
c.stopPropagation(), e.onChange && e.onChange(c), de(o, c, "checked");
|
|
2771
2779
|
}
|
|
2772
2780
|
function s() {
|
|
2773
2781
|
if (!(e.isGroupTitle || e.type === "checkbox"))
|
|
@@ -2785,7 +2793,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2785
2793
|
),
|
|
2786
2794
|
"data-divider": d(j)(f.value)
|
|
2787
2795
|
}, [
|
|
2788
|
-
c.isGroupTitle ? (v(), b("span", bi,
|
|
2796
|
+
c.isGroupTitle ? (v(), b("span", bi, B(c.groupTitle), 1)) : (v(), b("label", {
|
|
2789
2797
|
key: 0,
|
|
2790
2798
|
"data-icon": c.type !== "checkbox" && c.icon ? c.icon : void 0,
|
|
2791
2799
|
"data-hide-icon": d(K)(c.showIcon),
|
|
@@ -2802,13 +2810,13 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2802
2810
|
value: c.value,
|
|
2803
2811
|
onChange: r[0] || (r[0] = async (_) => g(_))
|
|
2804
2812
|
}, null, 40, gi),
|
|
2805
|
-
c.label ? (v(), b(
|
|
2806
|
-
C(
|
|
2813
|
+
c.label ? (v(), b(V, { key: 0 }, [
|
|
2814
|
+
C(B(c.label), 1)
|
|
2807
2815
|
], 64)) : $(c.$slots, "default", { key: 1 })
|
|
2808
2816
|
], 8, hi))
|
|
2809
2817
|
], 10, mi));
|
|
2810
2818
|
}
|
|
2811
|
-
}), ki = ["id", "data-width"], Bi = /* @__PURE__ */
|
|
2819
|
+
}), ki = ["id", "data-width"], Bi = /* @__PURE__ */ z({
|
|
2812
2820
|
__name: "custom-select-dropdown",
|
|
2813
2821
|
props: {
|
|
2814
2822
|
width: { default: "fixed" },
|
|
@@ -2843,7 +2851,7 @@ const xa = ["id", "data-width", "data-on-forcing-mobile"], et = { class: "db-hea
|
|
|
2843
2851
|
se._instance = this, self.document && self.document.addEventListener("click", (t) => se.runCallbacks(t));
|
|
2844
2852
|
}
|
|
2845
2853
|
addCallback(t) {
|
|
2846
|
-
const o =
|
|
2854
|
+
const o = Z();
|
|
2847
2855
|
return se.callbacks[o] = t, o;
|
|
2848
2856
|
}
|
|
2849
2857
|
removeCallback(t) {
|
|
@@ -2855,7 +2863,7 @@ let Fe = se;
|
|
|
2855
2863
|
const Si = ["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"], wi = ["id"], Ii = ["id", "form", "name", "multiple", "disabled", "required"], _i = ["disabled", "value"], Li = ["open"], Ti = ["id", "aria-disabled", "aria-labelledby"], $i = ["data-visually-hidden", "id"], Ai = { key: 1 }, Ci = { key: 0 }, Ei = { key: 0 }, Di = { class: "db-checkbox db-custom-select-list-item" }, Ni = ["form", "checked"], Fi = ["aria-hidden", "id"], Mi = {
|
|
2856
2864
|
"data-visually-hidden": "true",
|
|
2857
2865
|
role: "status"
|
|
2858
|
-
}, Ml = /* @__PURE__ */
|
|
2866
|
+
}, Ml = /* @__PURE__ */ z({
|
|
2859
2867
|
__name: "custom-select",
|
|
2860
2868
|
props: {
|
|
2861
2869
|
children: { default: void 0 },
|
|
@@ -2879,8 +2887,8 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2879
2887
|
messageIcon: { default: void 0 },
|
|
2880
2888
|
autocomplete: {},
|
|
2881
2889
|
showMessage: { type: [Boolean, String], default: void 0 },
|
|
2882
|
-
ariaListLabel: { default: void 0 },
|
|
2883
2890
|
amountText: { default: void 0 },
|
|
2891
|
+
ariaListLabel: { default: void 0 },
|
|
2884
2892
|
clearSelectionText: { default: "Clear selection" },
|
|
2885
2893
|
dropdownWidth: { default: void 0 },
|
|
2886
2894
|
formFieldWidth: { default: void 0 },
|
|
@@ -2892,15 +2900,19 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2892
2900
|
options: { default: void 0 },
|
|
2893
2901
|
placement: { default: void 0 },
|
|
2894
2902
|
removeTagsTexts: { default: void 0 },
|
|
2903
|
+
searchFilter: { type: Function, default: void 0 },
|
|
2895
2904
|
searchLabel: { default: void 0 },
|
|
2896
2905
|
searchPlaceholder: { default: void 0 },
|
|
2906
|
+
searchValue: { default: void 0 },
|
|
2897
2907
|
selectAllLabel: { default: void 0 },
|
|
2908
|
+
selectedLabels: { default: void 0 },
|
|
2898
2909
|
selectedType: { default: void 0 },
|
|
2899
2910
|
showClearSelection: { type: Boolean, default: !0 },
|
|
2900
2911
|
showLoading: { type: Boolean, default: void 0 },
|
|
2901
2912
|
showNoResults: { type: Boolean, default: void 0 },
|
|
2902
2913
|
showSearch: { type: Boolean, default: void 0 },
|
|
2903
2914
|
showSelectAll: { type: Boolean, default: void 0 },
|
|
2915
|
+
transformSelectedLabels: { type: Function, default: void 0 },
|
|
2904
2916
|
values: { default: void 0 },
|
|
2905
2917
|
onAmountChange: { type: Function, default: void 0 },
|
|
2906
2918
|
amountChange: {},
|
|
@@ -2908,20 +2920,22 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2908
2920
|
optionSelected: {},
|
|
2909
2921
|
onDropdownToggle: { type: Function, default: void 0 },
|
|
2910
2922
|
dropdownToggle: {},
|
|
2923
|
+
onSearch: { type: Function, default: void 0 },
|
|
2924
|
+
search: {},
|
|
2911
2925
|
icon: { default: void 0 },
|
|
2912
2926
|
showIcon: { type: [Boolean, String], default: void 0 },
|
|
2913
2927
|
showLabel: { type: [Boolean, String], default: void 0 }
|
|
2914
2928
|
},
|
|
2915
2929
|
emits: ["update:values"],
|
|
2916
2930
|
setup(i, { emit: t }) {
|
|
2917
|
-
const o = t, e = i, a = n(void 0), f = n(void 0), u = n(void 0), g = n(void 0), s = n(void 0), c = n(void 0), r = n(void 0), _ = n(void 0), L = n(void 0),
|
|
2931
|
+
const o = t, e = i, a = n(void 0), f = n(void 0), u = n(void 0), g = n(void 0), s = n(void 0), c = n(void 0), r = n(void 0), _ = n(void 0), L = n(void 0), S = n(void 0), E = n("no-validation"), w = n(""), T = n(""), P = n(void 0), y = n(""), h = n([]), O = n(!1), p = n(!1), G = n(0), m = n([]), W = n([]), H = n(!1), _e = n(void 0), ge = n(0), Ce = n(void 0), Pe = n(!1), Le = n(!1), na = n(null), X = n(null), be = n(null), Ee = n(null), Re = n(null);
|
|
2918
2932
|
Y(() => {
|
|
2919
|
-
const l = e.id ?? `custom-select-${
|
|
2920
|
-
a.value = l, f.value = l + ce, u.value = l + ve, g.value = l + fe, c.value = l +
|
|
2933
|
+
const l = e.id ?? `custom-select-${Z()}`;
|
|
2934
|
+
a.value = l, f.value = l + ce, u.value = l + ve, g.value = l + fe, c.value = l + Je, r.value = l + Ke, _.value = l + "-summary", L.value = l + Ne, P.value = l + "-selected-labels", S.value = l + "-info", s.value = e.invalidMessage || ie;
|
|
2921
2935
|
}), A(
|
|
2922
|
-
() => [
|
|
2936
|
+
() => [X.value],
|
|
2923
2937
|
() => {
|
|
2924
|
-
|
|
2938
|
+
X.value && X.value.addEventListener(
|
|
2925
2939
|
"focusout",
|
|
2926
2940
|
(l) => Te(l)
|
|
2927
2941
|
);
|
|
@@ -2935,7 +2949,7 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2935
2949
|
() => {
|
|
2936
2950
|
if (a.value) {
|
|
2937
2951
|
const l = a.value + ce;
|
|
2938
|
-
r.value = a.value +
|
|
2952
|
+
r.value = a.value + Ke, c.value = a.value + Je, u.value = a.value + ve, g.value = a.value + fe, L.value = a.value + Ne, ee(e.message, e.showMessage) ? qe(l) : qe();
|
|
2939
2953
|
}
|
|
2940
2954
|
},
|
|
2941
2955
|
{
|
|
@@ -2943,13 +2957,13 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2943
2957
|
flush: "post"
|
|
2944
2958
|
}
|
|
2945
2959
|
), A(
|
|
2946
|
-
() => [
|
|
2960
|
+
() => [X.value, w.value],
|
|
2947
2961
|
() => {
|
|
2948
|
-
if (
|
|
2949
|
-
const l =
|
|
2962
|
+
if (X.value) {
|
|
2963
|
+
const l = X.value.querySelector("summary");
|
|
2950
2964
|
l && l.setAttribute(
|
|
2951
2965
|
"aria-describedby",
|
|
2952
|
-
e.ariaDescribedBy ?? (
|
|
2966
|
+
e.ariaDescribedBy ?? (w.value || "")
|
|
2953
2967
|
);
|
|
2954
2968
|
}
|
|
2955
2969
|
},
|
|
@@ -2958,27 +2972,27 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2958
2972
|
flush: "post"
|
|
2959
2973
|
}
|
|
2960
2974
|
), A(
|
|
2961
|
-
() => [e.showNoResults,
|
|
2975
|
+
() => [e.showNoResults, W.value],
|
|
2962
2976
|
() => {
|
|
2963
|
-
e.showNoResults !== void 0 ? H.value = e.showNoResults :
|
|
2977
|
+
e.showNoResults !== void 0 ? H.value = e.showNoResults : W.value && (H.value = W.value.length === 0);
|
|
2964
2978
|
},
|
|
2965
2979
|
{
|
|
2966
2980
|
immediate: !0,
|
|
2967
2981
|
flush: "post"
|
|
2968
2982
|
}
|
|
2969
2983
|
), A(
|
|
2970
|
-
() => [e.showSelectAll,
|
|
2984
|
+
() => [e.showSelectAll, G.value, e.multiple],
|
|
2971
2985
|
() => {
|
|
2972
|
-
O.value = !!(e.multiple && (e.showSelectAll ??
|
|
2986
|
+
O.value = !!(e.multiple && (e.showSelectAll ?? G.value > 5));
|
|
2973
2987
|
},
|
|
2974
2988
|
{
|
|
2975
2989
|
immediate: !0,
|
|
2976
2990
|
flush: "post"
|
|
2977
2991
|
}
|
|
2978
2992
|
), A(
|
|
2979
|
-
() => [e.showSearch,
|
|
2993
|
+
() => [e.showSearch, G.value],
|
|
2980
2994
|
() => {
|
|
2981
|
-
p.value = e.showSearch ??
|
|
2995
|
+
p.value = e.showSearch ?? G.value > 9;
|
|
2982
2996
|
},
|
|
2983
2997
|
{
|
|
2984
2998
|
immediate: !0,
|
|
@@ -2996,7 +3010,7 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2996
3010
|
), A(
|
|
2997
3011
|
() => [m.value],
|
|
2998
3012
|
() => {
|
|
2999
|
-
|
|
3013
|
+
sa();
|
|
3000
3014
|
},
|
|
3001
3015
|
{
|
|
3002
3016
|
immediate: !0,
|
|
@@ -3012,10 +3026,10 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3012
3026
|
flush: "post"
|
|
3013
3027
|
}
|
|
3014
3028
|
), A(
|
|
3015
|
-
() => [m.value,
|
|
3029
|
+
() => [m.value, G.value],
|
|
3016
3030
|
() => {
|
|
3017
|
-
var l,
|
|
3018
|
-
((l = m.value) == null ? void 0 : l.length) === 0 ? (
|
|
3031
|
+
var l, k;
|
|
3032
|
+
((l = m.value) == null ? void 0 : l.length) === 0 ? (Pe.value = !1, Le.value = !1) : ((k = m.value) == null ? void 0 : k.length) === G.value ? (Le.value = !1, Pe.value = !0) : m.value && (Le.value = !0);
|
|
3019
3033
|
},
|
|
3020
3034
|
{
|
|
3021
3035
|
immediate: !0,
|
|
@@ -3025,7 +3039,19 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3025
3039
|
() => [e.options],
|
|
3026
3040
|
() => {
|
|
3027
3041
|
var l;
|
|
3028
|
-
|
|
3042
|
+
W.value = e.options, G.value = ((l = e.options) == null ? void 0 : l.filter((k) => !k.isGroupTitle).length) ?? 0;
|
|
3043
|
+
},
|
|
3044
|
+
{
|
|
3045
|
+
immediate: !0,
|
|
3046
|
+
flush: "post"
|
|
3047
|
+
}
|
|
3048
|
+
), A(
|
|
3049
|
+
() => [e.searchValue],
|
|
3050
|
+
() => {
|
|
3051
|
+
if (Ce.value = e.searchValue, e.searchValue) {
|
|
3052
|
+
const l = e.searchValue;
|
|
3053
|
+
We(l);
|
|
3054
|
+
}
|
|
3029
3055
|
},
|
|
3030
3056
|
{
|
|
3031
3057
|
immediate: !0,
|
|
@@ -3034,11 +3060,11 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3034
3060
|
), A(
|
|
3035
3061
|
() => [e.options, m.value],
|
|
3036
3062
|
() => {
|
|
3037
|
-
var l,
|
|
3038
|
-
(l = e.options) != null && l.length && (h.value = (
|
|
3039
|
-
(
|
|
3040
|
-
var
|
|
3041
|
-
return !
|
|
3063
|
+
var l, k;
|
|
3064
|
+
(l = e.options) != null && l.length && (h.value = (k = e.options) == null ? void 0 : k.filter(
|
|
3065
|
+
(R) => {
|
|
3066
|
+
var J, le;
|
|
3067
|
+
return !R.value || !((J = m.value) != null && J.includes) ? !1 : !R.isGroupTitle && ((le = m.value) == null ? void 0 : le.includes(R.value));
|
|
3042
3068
|
}
|
|
3043
3069
|
));
|
|
3044
3070
|
},
|
|
@@ -3047,10 +3073,28 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3047
3073
|
flush: "post"
|
|
3048
3074
|
}
|
|
3049
3075
|
), A(
|
|
3050
|
-
() => [
|
|
3076
|
+
() => [
|
|
3077
|
+
h.value,
|
|
3078
|
+
e.selectedType,
|
|
3079
|
+
e.amountText,
|
|
3080
|
+
e.selectedLabels,
|
|
3081
|
+
e.transformSelectedLabels
|
|
3082
|
+
],
|
|
3051
3083
|
() => {
|
|
3052
|
-
var l,
|
|
3053
|
-
(
|
|
3084
|
+
var l, k, R;
|
|
3085
|
+
if (e.selectedLabels) {
|
|
3086
|
+
T.value = e.selectedLabels;
|
|
3087
|
+
return;
|
|
3088
|
+
}
|
|
3089
|
+
if ((l = h.value) != null && l.length) {
|
|
3090
|
+
if (e.transformSelectedLabels) {
|
|
3091
|
+
const J = h.value, le = e.transformSelectedLabels;
|
|
3092
|
+
T.value = le(J);
|
|
3093
|
+
return;
|
|
3094
|
+
}
|
|
3095
|
+
e.selectedType === "amount" ? T.value = e.amountText ? e.amountText : `${(k = h.value) == null ? void 0 : k.length} ${Ca}` : T.value = (R = h.value) == null ? void 0 : R.map((J) => Se(J)).join(", ");
|
|
3096
|
+
} else
|
|
3097
|
+
T.value = "";
|
|
3054
3098
|
},
|
|
3055
3099
|
{
|
|
3056
3100
|
immediate: !0,
|
|
@@ -3086,112 +3130,112 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3086
3130
|
flush: "post"
|
|
3087
3131
|
}
|
|
3088
3132
|
);
|
|
3089
|
-
function
|
|
3133
|
+
function Ve() {
|
|
3090
3134
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
3091
3135
|
}
|
|
3092
|
-
function
|
|
3093
|
-
var l,
|
|
3094
|
-
be.value && (be.value.value =
|
|
3136
|
+
function sa() {
|
|
3137
|
+
var l, k, R;
|
|
3138
|
+
be.value && (be.value.value = ra()), !((l = be.value) != null && l.validity.valid) || e.validation === "invalid" ? (w.value = g.value, s.value = e.invalidMessage || ((k = be.value) == null ? void 0 : k.validationMessage) || ie, re() && (y.value = s.value, x(() => y.value = "", 1e3)), E.value = e.validation ?? "invalid") : Ve() && ((R = be.value) != null && R.validity.valid) && e.required ? (w.value = u.value, re() && (y.value = e.validMessage ?? pe, x(() => y.value = "", 1e3)), E.value = e.validation ?? "valid") : ee(e.message, e.showMessage) ? (w.value = f.value, E.value = e.validation ?? "no-validation") : (w.value = L.value, E.value = e.validation ?? "no-validation");
|
|
3095
3139
|
}
|
|
3096
|
-
function
|
|
3140
|
+
function ua(l) {
|
|
3097
3141
|
e.onDropdownToggle && (l.stopPropagation(), e.onDropdownToggle(l)), l.target.open ? (_e.value = new Fe().addCallback(
|
|
3098
|
-
(
|
|
3099
|
-
), Ue(), l.target.dataset.test ||
|
|
3142
|
+
(k) => ga(k)
|
|
3143
|
+
), Ue(), l.target.dataset.test || Oe()) : _e.value && new Fe().removeCallback(
|
|
3100
3144
|
_e.value
|
|
3101
3145
|
);
|
|
3102
3146
|
}
|
|
3103
|
-
function
|
|
3147
|
+
function ra() {
|
|
3104
3148
|
var l;
|
|
3105
3149
|
return (l = m.value) != null && l.length ? m.value.at(0) ?? "" : "";
|
|
3106
3150
|
}
|
|
3107
3151
|
function qe(l) {
|
|
3108
|
-
var
|
|
3109
|
-
const
|
|
3110
|
-
l &&
|
|
3152
|
+
var R;
|
|
3153
|
+
const k = [];
|
|
3154
|
+
l && k.push(l), P.value && ((R = T.value) != null && R.length) && k.push(P.value), w.value = k.join(" ");
|
|
3111
3155
|
}
|
|
3112
|
-
function
|
|
3156
|
+
function ca() {
|
|
3113
3157
|
return e.selectAllLabel ?? ke;
|
|
3114
3158
|
}
|
|
3115
3159
|
function Se(l) {
|
|
3116
|
-
var
|
|
3117
|
-
return l.label ?? ((
|
|
3160
|
+
var k;
|
|
3161
|
+
return l.label ?? ((k = l.value) == null ? void 0 : k.toString()) ?? "";
|
|
3118
3162
|
}
|
|
3119
|
-
function
|
|
3120
|
-
var
|
|
3121
|
-
return l && ((
|
|
3163
|
+
function va(l) {
|
|
3164
|
+
var k, R;
|
|
3165
|
+
return l && ((k = m.value) != null && k.includes) ? (R = m.value) == null ? void 0 : R.includes(l) : !1;
|
|
3122
3166
|
}
|
|
3123
|
-
function
|
|
3124
|
-
return e.removeTagsTexts && e.removeTagsTexts.length > l ? e.removeTagsTexts.at(l) : `${
|
|
3167
|
+
function fa(l) {
|
|
3168
|
+
return e.removeTagsTexts && e.removeTagsTexts.length > l ? e.removeTagsTexts.at(l) : `${ea} ${h.value ? Se(h.value[l]) : ""}`;
|
|
3125
3169
|
}
|
|
3126
|
-
function
|
|
3127
|
-
|
|
3170
|
+
function pa(l, k) {
|
|
3171
|
+
k.stopPropagation(), Ge(l.value), $e();
|
|
3128
3172
|
}
|
|
3129
3173
|
function Ue() {
|
|
3130
|
-
if (
|
|
3131
|
-
const l =
|
|
3174
|
+
if (X.value) {
|
|
3175
|
+
const l = X.value.querySelector("article");
|
|
3132
3176
|
l && x(() => {
|
|
3133
3177
|
Me(l);
|
|
3134
3178
|
}, 1);
|
|
3135
3179
|
}
|
|
3136
3180
|
}
|
|
3137
|
-
function
|
|
3138
|
-
var
|
|
3139
|
-
if ((
|
|
3181
|
+
function ma(l) {
|
|
3182
|
+
var k, R, J, le, q, me, Ae;
|
|
3183
|
+
if ((k = X.value) != null && k.open) {
|
|
3140
3184
|
if (self.document) {
|
|
3141
3185
|
const ne = self.document.activeElement;
|
|
3142
3186
|
if (ne)
|
|
3143
3187
|
if (ne.getAttribute("type") === "checkbox" || ne.getAttribute("type") === "radio") {
|
|
3144
|
-
const
|
|
3188
|
+
const oe = ne == null ? void 0 : ne.closest("li");
|
|
3145
3189
|
if (l.key === "ArrowDown" || l.key === "ArrowRight")
|
|
3146
|
-
|
|
3147
|
-
else if (
|
|
3148
|
-
(
|
|
3149
|
-
else if (
|
|
3190
|
+
oe != null && oe.nextElementSibling ? (J = (R = oe == null ? void 0 : oe.nextElementSibling) == null ? void 0 : R.querySelector("input")) == null || J.focus() : De(ne);
|
|
3191
|
+
else if (oe != null && oe.previousElementSibling)
|
|
3192
|
+
(q = (le = oe == null ? void 0 : oe.previousElementSibling) == null ? void 0 : le.querySelector("input")) == null || q.focus();
|
|
3193
|
+
else if (X.value.querySelector('input[type="checkbox"]') !== ne)
|
|
3150
3194
|
De(ne);
|
|
3151
3195
|
else {
|
|
3152
|
-
const
|
|
3153
|
-
if (
|
|
3196
|
+
const Xe = Ye(X.value);
|
|
3197
|
+
if (Xe)
|
|
3154
3198
|
x(() => {
|
|
3155
|
-
|
|
3199
|
+
Xe.focus();
|
|
3156
3200
|
}, 100);
|
|
3157
3201
|
else {
|
|
3158
|
-
const
|
|
3159
|
-
(me =
|
|
3202
|
+
const He = Array.from(
|
|
3203
|
+
(me = X.value) == null ? void 0 : me.querySelectorAll(
|
|
3160
3204
|
'input[type="checkbox"],input[type="radio"]'
|
|
3161
3205
|
)
|
|
3162
3206
|
);
|
|
3163
|
-
|
|
3207
|
+
He.length && ((Ae = He.at(-1)) == null || Ae.focus());
|
|
3164
3208
|
}
|
|
3165
3209
|
}
|
|
3166
3210
|
} else
|
|
3167
3211
|
ne.getAttribute("type") === "search" && (l.key === "ArrowUp" || l.key === "ArrowLeft") ? (Te("close"), $e()) : De(ne);
|
|
3168
3212
|
}
|
|
3169
|
-
} else (l.key === "ArrowDown" || l.key === "ArrowRight") && (Ue(),
|
|
3213
|
+
} else (l.key === "ArrowDown" || l.key === "ArrowRight") && (Ue(), X.value && (X.value.open = !0), Oe());
|
|
3170
3214
|
l.stopPropagation(), l.preventDefault();
|
|
3171
3215
|
}
|
|
3172
|
-
function
|
|
3173
|
-
var
|
|
3174
|
-
l.stopPropagation(), l.key === "Escape" && ((
|
|
3216
|
+
function ha(l) {
|
|
3217
|
+
var k;
|
|
3218
|
+
l.stopPropagation(), l.key === "Escape" && ((k = X.value) != null && k.open) ? (Te("close"), $e()) : (l.key === "ArrowDown" || l.key === "ArrowUp" || l.key === "ArrowLeft" || l.key === "ArrowRight") && ma(l);
|
|
3175
3219
|
}
|
|
3176
3220
|
function Te(l) {
|
|
3177
|
-
if (
|
|
3221
|
+
if (X.value) {
|
|
3178
3222
|
if (l === "close")
|
|
3179
|
-
|
|
3180
|
-
else if (
|
|
3181
|
-
const
|
|
3182
|
-
|
|
3223
|
+
X.value.open = !1, $e();
|
|
3224
|
+
else if (X.value.open && (l != null && l.relatedTarget)) {
|
|
3225
|
+
const k = l.relatedTarget;
|
|
3226
|
+
X.value.contains(k) || x(() => X.value.open = !1, 1);
|
|
3183
3227
|
}
|
|
3184
3228
|
}
|
|
3185
3229
|
}
|
|
3186
|
-
function
|
|
3187
|
-
var
|
|
3230
|
+
function ga(l) {
|
|
3231
|
+
var k;
|
|
3188
3232
|
if (l) {
|
|
3189
|
-
const
|
|
3190
|
-
(
|
|
3233
|
+
const R = l.target;
|
|
3234
|
+
(k = X.value) != null && k.open && !X.value.contains(R) && (X.value.open = !1);
|
|
3191
3235
|
}
|
|
3192
3236
|
}
|
|
3193
3237
|
function Ie(l) {
|
|
3194
|
-
(/* @__PURE__ */ new Date()).getTime() - ge.value < 200 || (m.value = l, e.onOptionSelected && e.onOptionSelected(l ?? []),
|
|
3238
|
+
(/* @__PURE__ */ new Date()).getTime() - ge.value < 200 || (m.value = l, e.onOptionSelected && e.onOptionSelected(l ?? []), de(
|
|
3195
3239
|
o,
|
|
3196
3240
|
{
|
|
3197
3241
|
target: {
|
|
@@ -3202,71 +3246,72 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3202
3246
|
), ge.value = (/* @__PURE__ */ new Date()).getTime());
|
|
3203
3247
|
}
|
|
3204
3248
|
function Ge(l) {
|
|
3205
|
-
var
|
|
3206
|
-
l && (e.multiple ? (
|
|
3249
|
+
var k;
|
|
3250
|
+
l && (e.multiple ? (k = m.value) != null && k.includes(l) ? Ie(m.value.filter((R) => R !== l)) : Ie([...m.value || [], l]) : (Ie([l]), Te("close")));
|
|
3207
3251
|
}
|
|
3208
|
-
function
|
|
3209
|
-
var
|
|
3210
|
-
if (l.stopPropagation(), ((
|
|
3252
|
+
function ba(l) {
|
|
3253
|
+
var k;
|
|
3254
|
+
if (l.stopPropagation(), ((k = m.value) == null ? void 0 : k.length) === G.value)
|
|
3211
3255
|
Ie([]);
|
|
3212
3256
|
else {
|
|
3213
|
-
const
|
|
3257
|
+
const R = p.value && Re.value ? Re.value.value : void 0;
|
|
3214
3258
|
Ie(
|
|
3215
3259
|
e.options ? e.options.filter(
|
|
3216
|
-
(
|
|
3217
|
-
var
|
|
3218
|
-
return !
|
|
3260
|
+
(J) => {
|
|
3261
|
+
var le;
|
|
3262
|
+
return !J.isGroupTitle && (!R || ((le = J.value) == null ? void 0 : le.toLowerCase().includes(R.toLowerCase())));
|
|
3219
3263
|
}
|
|
3220
|
-
).map((
|
|
3264
|
+
).map((J) => J.value ?? "") : []
|
|
3221
3265
|
);
|
|
3222
3266
|
}
|
|
3223
3267
|
}
|
|
3224
3268
|
function De(l) {
|
|
3225
|
-
if (
|
|
3226
|
-
const
|
|
3227
|
-
|
|
3269
|
+
if (X.value) {
|
|
3270
|
+
const k = Array.from(
|
|
3271
|
+
X.value.querySelectorAll(
|
|
3228
3272
|
'input[type="checkbox"],input[type="radio"]'
|
|
3229
3273
|
)
|
|
3230
3274
|
);
|
|
3231
|
-
if (
|
|
3232
|
-
const
|
|
3233
|
-
|
|
3234
|
-
|
|
3275
|
+
if (k.length) {
|
|
3276
|
+
const R = k.at(0), J = R === l && k.length > 1 ? k.at(1) : R;
|
|
3277
|
+
J && x(() => {
|
|
3278
|
+
J.focus();
|
|
3235
3279
|
}, 1);
|
|
3236
3280
|
}
|
|
3237
3281
|
}
|
|
3238
3282
|
}
|
|
3239
|
-
function
|
|
3240
|
-
if (
|
|
3241
|
-
const l =
|
|
3283
|
+
function Oe() {
|
|
3284
|
+
if (X.value) {
|
|
3285
|
+
const l = Ye(X.value);
|
|
3242
3286
|
l ? x(() => {
|
|
3243
3287
|
l.focus();
|
|
3244
3288
|
}, 1) : De();
|
|
3245
3289
|
}
|
|
3246
3290
|
}
|
|
3247
|
-
function
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3291
|
+
function We(l) {
|
|
3292
|
+
let k;
|
|
3293
|
+
typeof l == "string" ? k = l : (l.stopPropagation(), e.onSearch && e.onSearch(l), k = l.target.value, Ce.value = k), !e.options || !k || k.length === 0 ? W.value = e.options : e.searchFilter ? W.value = e.options.filter(
|
|
3294
|
+
(R) => e.searchFilter(R, k)
|
|
3295
|
+
) : W.value = e.options.filter(
|
|
3296
|
+
(R) => !R.isGroupTitle && Se(R).toLowerCase().includes(k.toLowerCase())
|
|
3252
3297
|
);
|
|
3253
3298
|
}
|
|
3254
|
-
function
|
|
3299
|
+
function ya(l) {
|
|
3255
3300
|
l.stopPropagation(), Ie([]), $e();
|
|
3256
3301
|
}
|
|
3257
3302
|
function $e() {
|
|
3258
3303
|
var l;
|
|
3259
|
-
|
|
3304
|
+
X.value && ((l = X.value.querySelector("summary")) == null || l.focus());
|
|
3260
3305
|
}
|
|
3261
|
-
function
|
|
3306
|
+
function ka(l) {
|
|
3262
3307
|
l.stopPropagation();
|
|
3263
3308
|
}
|
|
3264
|
-
return (l,
|
|
3265
|
-
var
|
|
3309
|
+
return (l, k) => {
|
|
3310
|
+
var R, J, le;
|
|
3266
3311
|
return v(), b("div", {
|
|
3267
3312
|
id: a.value,
|
|
3268
3313
|
ref_key: "_ref",
|
|
3269
|
-
ref:
|
|
3314
|
+
ref: na,
|
|
3270
3315
|
class: F(d(M)("db-custom-select", e.class)),
|
|
3271
3316
|
"aria-invalid": E.value === "invalid",
|
|
3272
3317
|
"data-custom-validity": E.value,
|
|
@@ -3280,7 +3325,7 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3280
3325
|
"data-hide-icon": d(K)(l.showIcon)
|
|
3281
3326
|
}, [
|
|
3282
3327
|
I("label", { id: r.value }, [
|
|
3283
|
-
C(
|
|
3328
|
+
C(B(l.label ?? d(ke)), 1),
|
|
3284
3329
|
I("select", {
|
|
3285
3330
|
role: "none",
|
|
3286
3331
|
hidden: !0,
|
|
@@ -3293,77 +3338,78 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3293
3338
|
multiple: d(N)(l.multiple, "multiple"),
|
|
3294
3339
|
disabled: d(N)(l.disabled, "disabled"),
|
|
3295
3340
|
required: d(N)(l.required, "required"),
|
|
3296
|
-
onChange:
|
|
3341
|
+
onChange: k[0] || (k[0] = async (q) => ka(q))
|
|
3297
3342
|
}, [
|
|
3298
|
-
(
|
|
3343
|
+
(R = l.options) != null && R.length ? (v(!0), b(V, { key: 0 }, he(l.options, (q, me) => (v(), b("option", {
|
|
3299
3344
|
key: me,
|
|
3300
|
-
disabled:
|
|
3301
|
-
value:
|
|
3302
|
-
},
|
|
3345
|
+
disabled: q.disabled,
|
|
3346
|
+
value: q.value
|
|
3347
|
+
}, B(Se(q)), 9, _i))), 128)) : D("", !0)
|
|
3303
3348
|
], 40, Ii)
|
|
3304
3349
|
], 8, wi),
|
|
3305
3350
|
I("details", {
|
|
3306
3351
|
ref_key: "detailsRef",
|
|
3307
|
-
ref:
|
|
3352
|
+
ref: X,
|
|
3308
3353
|
open: l.open,
|
|
3309
|
-
onToggle:
|
|
3310
|
-
onKeydown:
|
|
3354
|
+
onToggle: k[2] || (k[2] = async (q) => ua(q)),
|
|
3355
|
+
onKeydown: k[3] || (k[3] = async (q) => ha(q))
|
|
3311
3356
|
}, [
|
|
3312
3357
|
$(l.$slots, "default"),
|
|
3313
|
-
l.options ? (v(), b(
|
|
3358
|
+
l.options ? (v(), b(V, { key: 0 }, [
|
|
3314
3359
|
I("summary", {
|
|
3315
3360
|
class: "db-custom-select-form-field",
|
|
3316
3361
|
id: _.value,
|
|
3317
3362
|
"aria-disabled": d(j)(l.disabled),
|
|
3318
3363
|
"aria-labelledby": r.value
|
|
3319
3364
|
}, [
|
|
3320
|
-
(
|
|
3365
|
+
(J = T.value) != null && J.length ? (v(), b("span", {
|
|
3321
3366
|
key: 0,
|
|
3322
3367
|
"data-visually-hidden": d(j)(l.selectedType === "tag"),
|
|
3323
3368
|
id: P.value
|
|
3324
|
-
},
|
|
3369
|
+
}, B(T.value), 9, $i)) : D("", !0),
|
|
3325
3370
|
l.selectedType === "tag" ? (v(), b("div", Ai, [
|
|
3326
|
-
(v(!0), b(
|
|
3371
|
+
(v(!0), b(V, null, he(h.value, (q, me) => (v(), Q(Gt, {
|
|
3327
3372
|
key: me,
|
|
3328
3373
|
emphasis: "strong",
|
|
3329
3374
|
behavior: "removable",
|
|
3330
|
-
removeButton:
|
|
3331
|
-
onRemove: (Ae) =>
|
|
3375
|
+
removeButton: fa(me),
|
|
3376
|
+
onRemove: (Ae) => pa(q, Ae)
|
|
3332
3377
|
}, {
|
|
3333
|
-
default:
|
|
3334
|
-
C(
|
|
3378
|
+
default: U(() => [
|
|
3379
|
+
C(B(Se(q)), 1)
|
|
3335
3380
|
]),
|
|
3336
3381
|
_: 2
|
|
3337
3382
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
3338
3383
|
])) : D("", !0)
|
|
3339
3384
|
], 8, Ti),
|
|
3340
|
-
|
|
3341
|
-
default:
|
|
3385
|
+
ae(Bi, { width: l.dropdownWidth }, {
|
|
3386
|
+
default: U(() => [
|
|
3342
3387
|
p.value ? (v(), b("div", Ci, [
|
|
3343
|
-
|
|
3388
|
+
ae(Bt, {
|
|
3344
3389
|
type: "search",
|
|
3345
3390
|
ref_key: "searchInputRef",
|
|
3346
|
-
ref:
|
|
3391
|
+
ref: Re,
|
|
3347
3392
|
name: a.value,
|
|
3348
3393
|
form: a.value,
|
|
3349
3394
|
showLabel: !1,
|
|
3395
|
+
value: Ce.value,
|
|
3350
3396
|
label: l.searchLabel ?? d(ke),
|
|
3351
3397
|
placeholder: l.searchPlaceholder ?? l.searchLabel,
|
|
3352
|
-
ariaDescribedBy: H.value || l.showLoading ?
|
|
3353
|
-
onInput: (
|
|
3354
|
-
}, null, 8, ["name", "form", "label", "placeholder", "ariaDescribedBy", "onInput"])
|
|
3398
|
+
ariaDescribedBy: H.value || l.showLoading ? S.value : void 0,
|
|
3399
|
+
onInput: (q) => We(q)
|
|
3400
|
+
}, null, 8, ["name", "form", "value", "label", "placeholder", "ariaDescribedBy", "onInput"])
|
|
3355
3401
|
])) : D("", !0),
|
|
3356
|
-
H.value || l.showLoading ? (v(),
|
|
3402
|
+
H.value || l.showLoading ? (v(), Q(te, {
|
|
3357
3403
|
key: 1,
|
|
3358
|
-
id:
|
|
3404
|
+
id: S.value,
|
|
3359
3405
|
icon: H.value ? void 0 : "circular_arrows",
|
|
3360
3406
|
semantic: H.value ? "warning" : "informational"
|
|
3361
3407
|
}, {
|
|
3362
|
-
default:
|
|
3363
|
-
C(
|
|
3408
|
+
default: U(() => [
|
|
3409
|
+
C(B((H.value ? l.noResultsText : l.loadingText) ?? d($a)), 1)
|
|
3364
3410
|
]),
|
|
3365
3411
|
_: 1
|
|
3366
|
-
}, 8, ["id", "icon", "semantic"])) : (v(), b(
|
|
3412
|
+
}, 8, ["id", "icon", "semantic"])) : (v(), b(V, { key: 2 }, [
|
|
3367
3413
|
O.value ? (v(), b("div", Ei, [
|
|
3368
3414
|
I("div", Di, [
|
|
3369
3415
|
I("label", null, [
|
|
@@ -3373,34 +3419,34 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3373
3419
|
ref_key: "selectAllRef",
|
|
3374
3420
|
ref: Ee,
|
|
3375
3421
|
form: a.value,
|
|
3376
|
-
checked:
|
|
3377
|
-
onChange:
|
|
3422
|
+
checked: Pe.value,
|
|
3423
|
+
onChange: k[1] || (k[1] = async (q) => ba(q))
|
|
3378
3424
|
}, null, 40, Ni),
|
|
3379
|
-
C(
|
|
3425
|
+
C(B(ca()), 1)
|
|
3380
3426
|
])
|
|
3381
3427
|
])
|
|
3382
3428
|
])) : D("", !0),
|
|
3383
|
-
|
|
3429
|
+
ae(pi, {
|
|
3384
3430
|
multiple: d(N)(l.multiple, "multiple"),
|
|
3385
3431
|
label: l.ariaListLabel ?? l.label ?? d(ke)
|
|
3386
3432
|
}, {
|
|
3387
|
-
default:
|
|
3388
|
-
(v(!0), b(
|
|
3433
|
+
default: U(() => [
|
|
3434
|
+
(v(!0), b(V, null, he(W.value, (q, me) => (v(), Q(yi, {
|
|
3389
3435
|
key: me,
|
|
3390
3436
|
type: l.multiple ? "checkbox" : "radio",
|
|
3391
|
-
showDivider:
|
|
3392
|
-
icon:
|
|
3393
|
-
isGroupTitle:
|
|
3394
|
-
groupTitle: Se(
|
|
3437
|
+
showDivider: q.showDivider,
|
|
3438
|
+
icon: q.icon,
|
|
3439
|
+
isGroupTitle: q.isGroupTitle,
|
|
3440
|
+
groupTitle: Se(q),
|
|
3395
3441
|
name: a.value,
|
|
3396
|
-
checked:
|
|
3397
|
-
disabled:
|
|
3398
|
-
value:
|
|
3399
|
-
onChange: (Ae) => Ge(
|
|
3442
|
+
checked: va(q.value),
|
|
3443
|
+
disabled: q.disabled,
|
|
3444
|
+
value: q.value,
|
|
3445
|
+
onChange: (Ae) => Ge(q.value)
|
|
3400
3446
|
}, {
|
|
3401
|
-
default:
|
|
3402
|
-
|
|
3403
|
-
C(
|
|
3447
|
+
default: U(() => [
|
|
3448
|
+
q.isGroupTitle ? D("", !0) : (v(), b(V, { key: 0 }, [
|
|
3449
|
+
C(B(Se(q)), 1)
|
|
3404
3450
|
], 64))
|
|
3405
3451
|
]),
|
|
3406
3452
|
_: 2
|
|
@@ -3410,17 +3456,17 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3410
3456
|
}, 8, ["multiple", "label"])
|
|
3411
3457
|
], 64)),
|
|
3412
3458
|
I("div", null, [
|
|
3413
|
-
|
|
3459
|
+
ae(Be, {
|
|
3414
3460
|
variant: "ghost",
|
|
3415
3461
|
width: "full",
|
|
3416
3462
|
icon: "cross",
|
|
3417
3463
|
size: "small",
|
|
3418
3464
|
name: a.value,
|
|
3419
3465
|
form: a.value,
|
|
3420
|
-
onClick: (
|
|
3466
|
+
onClick: (q) => Te("close")
|
|
3421
3467
|
}, {
|
|
3422
|
-
default:
|
|
3423
|
-
C(
|
|
3468
|
+
default: U(() => [
|
|
3469
|
+
C(B(l.mobileCloseButtonText ?? d(ze)), 1)
|
|
3424
3470
|
]),
|
|
3425
3471
|
_: 1
|
|
3426
3472
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -3430,7 +3476,7 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3430
3476
|
}, 8, ["width"])
|
|
3431
3477
|
], 64)) : D("", !0)
|
|
3432
3478
|
], 40, Li),
|
|
3433
|
-
(l.showClearSelection ?? !0) && ((
|
|
3479
|
+
(l.showClearSelection ?? !0) && ((le = m.value) != null && le.length) ? (v(), Q(Be, {
|
|
3434
3480
|
key: 0,
|
|
3435
3481
|
icon: "cross",
|
|
3436
3482
|
variant: "ghost",
|
|
@@ -3438,13 +3484,13 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3438
3484
|
noText: !0,
|
|
3439
3485
|
name: a.value,
|
|
3440
3486
|
form: a.value,
|
|
3441
|
-
onClick: (
|
|
3487
|
+
onClick: (q) => ya(q)
|
|
3442
3488
|
}, {
|
|
3443
|
-
default:
|
|
3444
|
-
C(
|
|
3445
|
-
|
|
3446
|
-
default:
|
|
3447
|
-
C(
|
|
3489
|
+
default: U(() => [
|
|
3490
|
+
C(B(l.clearSelectionText), 1),
|
|
3491
|
+
ae(da, { placement: "top" }, {
|
|
3492
|
+
default: U(() => [
|
|
3493
|
+
C(B(l.clearSelectionText), 1)
|
|
3448
3494
|
]),
|
|
3449
3495
|
_: 1
|
|
3450
3496
|
})
|
|
@@ -3454,44 +3500,44 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3454
3500
|
I("span", {
|
|
3455
3501
|
"aria-hidden": d(j)(!0),
|
|
3456
3502
|
id: L.value
|
|
3457
|
-
},
|
|
3458
|
-
d(ee)(l.message, l.showMessage) ? (v(),
|
|
3503
|
+
}, B(l.placeholder ?? l.label), 9, Fi),
|
|
3504
|
+
d(ee)(l.message, l.showMessage) ? (v(), Q(te, {
|
|
3459
3505
|
key: 1,
|
|
3460
3506
|
size: "small",
|
|
3461
3507
|
icon: l.messageIcon,
|
|
3462
3508
|
id: f.value
|
|
3463
3509
|
}, {
|
|
3464
|
-
default:
|
|
3465
|
-
C(
|
|
3510
|
+
default: U(() => [
|
|
3511
|
+
C(B(l.message), 1)
|
|
3466
3512
|
]),
|
|
3467
3513
|
_: 1
|
|
3468
3514
|
}, 8, ["icon", "id"])) : D("", !0),
|
|
3469
|
-
|
|
3515
|
+
Ve() ? (v(), Q(te, {
|
|
3470
3516
|
key: 2,
|
|
3471
3517
|
size: "small",
|
|
3472
3518
|
semantic: "successful",
|
|
3473
3519
|
id: u.value
|
|
3474
3520
|
}, {
|
|
3475
|
-
default:
|
|
3476
|
-
C(
|
|
3521
|
+
default: U(() => [
|
|
3522
|
+
C(B(l.validMessage || d(pe)), 1)
|
|
3477
3523
|
]),
|
|
3478
3524
|
_: 1
|
|
3479
3525
|
}, 8, ["id"])) : D("", !0),
|
|
3480
|
-
te
|
|
3526
|
+
ae(te, {
|
|
3481
3527
|
size: "small",
|
|
3482
3528
|
semantic: "critical",
|
|
3483
3529
|
id: g.value
|
|
3484
3530
|
}, {
|
|
3485
|
-
default:
|
|
3486
|
-
C(
|
|
3531
|
+
default: U(() => [
|
|
3532
|
+
C(B(s.value), 1)
|
|
3487
3533
|
]),
|
|
3488
3534
|
_: 1
|
|
3489
3535
|
}, 8, ["id"]),
|
|
3490
|
-
I("span", Mi,
|
|
3536
|
+
I("span", Mi, B(y.value), 1)
|
|
3491
3537
|
], 10, Si);
|
|
3492
3538
|
};
|
|
3493
3539
|
}
|
|
3494
|
-
}), Pi = ["id"], Pl = /* @__PURE__ */
|
|
3540
|
+
}), Pi = ["id"], Pl = /* @__PURE__ */ z({
|
|
3495
3541
|
__name: "custom-select-form-field",
|
|
3496
3542
|
props: {
|
|
3497
3543
|
children: { default: void 0 },
|
|
@@ -3516,13 +3562,13 @@ const Si = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3516
3562
|
export {
|
|
3517
3563
|
Nl as AlignmentList,
|
|
3518
3564
|
Al as AutoCompleteList,
|
|
3519
|
-
|
|
3565
|
+
ia as COLOR,
|
|
3520
3566
|
Xi as COLORS,
|
|
3521
3567
|
Hi as COLORS_SIMPLE,
|
|
3522
3568
|
Oi as COLOR_CONST,
|
|
3523
|
-
|
|
3569
|
+
ta as COLOR_SIMPLE,
|
|
3524
3570
|
cl as DBAccordion,
|
|
3525
|
-
|
|
3571
|
+
xt as DBAccordionItem,
|
|
3526
3572
|
Ji as DBBadge,
|
|
3527
3573
|
Qi as DBBrand,
|
|
3528
3574
|
Be as DBButton,
|
|
@@ -3534,11 +3580,11 @@ export {
|
|
|
3534
3580
|
pi as DBCustomSelectList,
|
|
3535
3581
|
yi as DBCustomSelectListItem,
|
|
3536
3582
|
el as DBDivider,
|
|
3537
|
-
|
|
3583
|
+
xa as DBDrawer,
|
|
3538
3584
|
al as DBHeader,
|
|
3539
3585
|
tl as DBIcon,
|
|
3540
|
-
|
|
3541
|
-
|
|
3586
|
+
te as DBInfotext,
|
|
3587
|
+
Bt as DBInput,
|
|
3542
3588
|
il as DBLink,
|
|
3543
3589
|
vl as DBNavigation,
|
|
3544
3590
|
rl as DBNavigationItem,
|
|
@@ -3550,38 +3596,38 @@ export {
|
|
|
3550
3596
|
nl as DBSelect,
|
|
3551
3597
|
Fl as DBStack,
|
|
3552
3598
|
sl as DBSwitch,
|
|
3553
|
-
|
|
3599
|
+
Vt as DBTabItem,
|
|
3554
3600
|
di as DBTabList,
|
|
3555
3601
|
si as DBTabPanel,
|
|
3556
3602
|
pl as DBTabs,
|
|
3557
|
-
|
|
3603
|
+
Gt as DBTag,
|
|
3558
3604
|
ul as DBTextarea,
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3605
|
+
da as DBTooltip,
|
|
3606
|
+
Aa as DEFAULT_BACK,
|
|
3607
|
+
Ea as DEFAULT_BURGER_MENU,
|
|
3608
|
+
ze as DEFAULT_CLOSE_BUTTON,
|
|
3609
|
+
Qe as DEFAULT_DATALIST_ID_SUFFIX,
|
|
3610
|
+
Da as DEFAULT_ICON,
|
|
3565
3611
|
we as DEFAULT_ID,
|
|
3566
3612
|
ie as DEFAULT_INVALID_MESSAGE,
|
|
3567
3613
|
fe as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
3568
3614
|
ke as DEFAULT_LABEL,
|
|
3569
|
-
|
|
3570
|
-
|
|
3615
|
+
Ke as DEFAULT_LABEL_ID_SUFFIX,
|
|
3616
|
+
$a as DEFAULT_MESSAGE,
|
|
3571
3617
|
ce as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
3572
|
-
|
|
3618
|
+
xe as DEFAULT_PLACEHOLDER,
|
|
3573
3619
|
Ne as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3620
|
+
ea as DEFAULT_REMOVE,
|
|
3621
|
+
Na as DEFAULT_ROWS,
|
|
3622
|
+
Ca as DEFAULT_SELECTED,
|
|
3623
|
+
Je as DEFAULT_SELECT_ID_SUFFIX,
|
|
3578
3624
|
pe as DEFAULT_VALID_MESSAGE,
|
|
3579
3625
|
ve as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
3580
|
-
|
|
3626
|
+
Fa as DEFAULT_VIEWPORT,
|
|
3581
3627
|
Wi as DENSITIES,
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3628
|
+
aa as DENSITY,
|
|
3629
|
+
Gi as DENSITY_CONST,
|
|
3630
|
+
Ma as DESKTOP_VIEWPORT,
|
|
3585
3631
|
Ll as EmphasisList,
|
|
3586
3632
|
yl as GapSpacingList,
|
|
3587
3633
|
$l as LabelVariantList,
|
|
@@ -3590,14 +3636,14 @@ export {
|
|
|
3590
3636
|
El as LinkTargetList,
|
|
3591
3637
|
gl as MarginList,
|
|
3592
3638
|
Sl as MaxWidthList,
|
|
3593
|
-
|
|
3639
|
+
et as NavigationItemSafeTriangle,
|
|
3594
3640
|
kl as OrientationList,
|
|
3595
3641
|
ri as PlacementHorizontalList,
|
|
3596
3642
|
bl as PlacementList,
|
|
3597
3643
|
ci as PlacementVerticalList,
|
|
3598
3644
|
wl as PopoverDelayList,
|
|
3599
3645
|
Il as PopoverWidthList,
|
|
3600
|
-
|
|
3646
|
+
la as SEMANTIC,
|
|
3601
3647
|
ji as SEMANTICS,
|
|
3602
3648
|
ml as SemanticList,
|
|
3603
3649
|
_l as SizeList,
|
|
@@ -3605,22 +3651,22 @@ export {
|
|
|
3605
3651
|
Yi as TESTING_VIEWPORTS,
|
|
3606
3652
|
Tl as ValidationList,
|
|
3607
3653
|
Bl as WidthList,
|
|
3608
|
-
|
|
3654
|
+
Ze as addAttributeToChildren,
|
|
3609
3655
|
M as cls,
|
|
3610
3656
|
x as delay,
|
|
3611
3657
|
N as getBoolean,
|
|
3612
3658
|
j as getBooleanAsString,
|
|
3613
3659
|
K as getHideProp,
|
|
3614
|
-
|
|
3660
|
+
je as getInputValue,
|
|
3615
3661
|
ye as getNumber,
|
|
3616
|
-
|
|
3662
|
+
Ye as getSearchInput,
|
|
3617
3663
|
Me as handleDataOutside,
|
|
3618
3664
|
re as hasVoiceOver,
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3665
|
+
_a as isArrayOfStrings,
|
|
3666
|
+
oa as isEventTargetNavigationItem,
|
|
3667
|
+
Ia as isInView,
|
|
3622
3668
|
ee as stringPropVisible,
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3669
|
+
Z as uuid,
|
|
3670
|
+
qi as visibleInVX,
|
|
3671
|
+
Ui as visibleInVY
|
|
3626
3672
|
};
|