@db-ux/v-core-components 2.0.6 → 2.0.7
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/db-ux.es.js +544 -543
- package/dist/db-ux.umd.js +1 -1
- package/dist/utils/index.d.ts +11 -0
- package/package.json +4 -4
package/dist/db-ux.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var se = (l, a, i) =>
|
|
4
|
-
import { defineComponent as q, ref as n, createElementBlock as g, openBlock as
|
|
1
|
+
var ga = Object.defineProperty;
|
|
2
|
+
var ba = (l, a, i) => a in l ? ga(l, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : l[a] = i;
|
|
3
|
+
var se = (l, a, i) => ba(l, typeof a != "symbol" ? a + "" : a, i);
|
|
4
|
+
import { defineComponent as q, ref as n, createElementBlock as g, openBlock as p, unref as d, normalizeClass as P, renderSlot as T, Fragment as U, createTextVNode as C, toDisplayString as S, createCommentVNode as F, createElementVNode as I, createBlock as J, withCtx as V, onMounted as Y, watch as A, createVNode as te, renderList as he, onUnmounted as ya } from "vue";
|
|
5
5
|
const Q = () => {
|
|
6
6
|
var l, a;
|
|
7
7
|
if (typeof window < "u") {
|
|
@@ -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
|
+
}, Ke = (l, a) => {
|
|
15
15
|
const i = l.children;
|
|
16
16
|
Object.values(i).forEach((e) => {
|
|
17
|
-
e.setAttribute(a.key, a.value), e.children.length > 0 &&
|
|
17
|
+
e.setAttribute(a.key, a.value), e.children.length > 0 && Ke(e, a);
|
|
18
18
|
});
|
|
19
19
|
}, z = (...l) => {
|
|
20
20
|
let a = "";
|
|
@@ -26,7 +26,7 @@ const Q = () => {
|
|
|
26
26
|
for (const e in i)
|
|
27
27
|
i[e] && (a += `${e} `);
|
|
28
28
|
return a.trim();
|
|
29
|
-
},
|
|
29
|
+
}, qi = (l) => {
|
|
30
30
|
const {
|
|
31
31
|
left: a,
|
|
32
32
|
right: i
|
|
@@ -34,7 +34,7 @@ const Q = () => {
|
|
|
34
34
|
innerWidth: e
|
|
35
35
|
} = window;
|
|
36
36
|
return a >= 0 && i <= e;
|
|
37
|
-
},
|
|
37
|
+
}, Ui = (l) => {
|
|
38
38
|
const {
|
|
39
39
|
top: a,
|
|
40
40
|
bottom: i
|
|
@@ -42,7 +42,7 @@ const Q = () => {
|
|
|
42
42
|
innerHeight: e
|
|
43
43
|
} = window;
|
|
44
44
|
return a >= 0 && i <= e;
|
|
45
|
-
},
|
|
45
|
+
}, ka = (l) => {
|
|
46
46
|
var N;
|
|
47
47
|
const {
|
|
48
48
|
top: a,
|
|
@@ -54,8 +54,8 @@ const Q = () => {
|
|
|
54
54
|
innerWidth: u
|
|
55
55
|
} = window;
|
|
56
56
|
let h = a < 0, s = i > v, r = e < 0, c = t > u;
|
|
57
|
-
const
|
|
58
|
-
return B && (
|
|
57
|
+
const _ = l.hasAttribute("data-outside-vy"), L = l.hasAttribute("data-outside-vx"), B = (N = l == null ? void 0 : l.parentElement) == null ? void 0 : N.getBoundingClientRect();
|
|
58
|
+
return B && (_ && (l.getAttribute("data-outside-vy") === "top" ? h = B.top - (i - B.bottom) < 0 : s = B.bottom + (B.top - a) > v), L && (l.getAttribute("data-outside-vx") === "left" ? r = B.left - (t - B.right) < 0 : c = B.right + (B.left - e) > u)), {
|
|
59
59
|
outTop: h,
|
|
60
60
|
outBottom: s,
|
|
61
61
|
outLeft: r,
|
|
@@ -67,7 +67,7 @@ const Q = () => {
|
|
|
67
67
|
outBottom: i,
|
|
68
68
|
outLeft: e,
|
|
69
69
|
outRight: t
|
|
70
|
-
} =
|
|
70
|
+
} = ka(l);
|
|
71
71
|
let v = {};
|
|
72
72
|
return a || i ? (v = {
|
|
73
73
|
vy: a ? "top" : "bottom"
|
|
@@ -75,19 +75,19 @@ const Q = () => {
|
|
|
75
75
|
...v,
|
|
76
76
|
vx: t ? "right" : "left"
|
|
77
77
|
}, l.setAttribute("data-outside-vx", v.vx)) : l.removeAttribute("data-outside-vx"), v;
|
|
78
|
-
},
|
|
78
|
+
}, Ba = (l) => Array.isArray(l) && l.every((a) => typeof a == "string"), Sa = ["Mac", "iPhone", "iPad", "iPod"], ue = () => typeof window < "u" && Sa.some((l) => window.navigator.userAgent.includes(l)), ee = (l, a) => new Promise(() => setTimeout(l, a)), H = (l) => {
|
|
79
79
|
if (l != null)
|
|
80
80
|
return String(typeof l == "string" ? !!l : l);
|
|
81
81
|
}, M = (l, a) => {
|
|
82
82
|
if (l != null)
|
|
83
83
|
return typeof l == "string" && a ? !!(a === l || l) : !!l;
|
|
84
|
-
},
|
|
84
|
+
}, ye = (l, a) => {
|
|
85
85
|
if (!(l == null && a == null))
|
|
86
86
|
return Number(l ?? a);
|
|
87
|
-
}, K = (l) => {
|
|
87
|
+
}, We = (l, a) => a && ["number", "range"].includes(a) ? ye(l) : l, K = (l) => {
|
|
88
88
|
if (l != null)
|
|
89
89
|
return H(!l);
|
|
90
|
-
}, Z = (l, a) => (a === void 0 || !!a) && !!l,
|
|
90
|
+
}, Z = (l, a) => (a === void 0 || !!a) && !!l, Xe = (l) => l.querySelector('input[type="search"]'), wa = ["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__ */ q({
|
|
91
91
|
__name: "button",
|
|
92
92
|
props: {
|
|
93
93
|
ariaexpanded: { type: Boolean, default: void 0 },
|
|
@@ -119,7 +119,7 @@ const Q = () => {
|
|
|
119
119
|
function e(t) {
|
|
120
120
|
t.stopPropagation(), a.onClick && a.onClick(t);
|
|
121
121
|
}
|
|
122
|
-
return (t, v) => (
|
|
122
|
+
return (t, v) => (p(), g("button", {
|
|
123
123
|
ref_key: "_ref",
|
|
124
124
|
ref: i,
|
|
125
125
|
id: t.id,
|
|
@@ -142,34 +142,34 @@ const Q = () => {
|
|
|
142
142
|
"aria-pressed": t.ariapressed,
|
|
143
143
|
onClick: v[0] || (v[0] = async (u) => e(u))
|
|
144
144
|
}, [
|
|
145
|
-
t.text ? (
|
|
145
|
+
t.text ? (p(), g(U, { key: 0 }, [
|
|
146
146
|
C(S(t.text), 1)
|
|
147
147
|
], 64)) : T(t.$slots, "default", { key: 1 })
|
|
148
|
-
], 10,
|
|
148
|
+
], 10, wa));
|
|
149
149
|
}
|
|
150
|
-
}), we = "OVERWRITE_DEFAULT_ID", ke = "LABEL SHOULD BE SET",
|
|
151
|
-
var
|
|
152
|
-
const
|
|
153
|
-
var
|
|
154
|
-
const
|
|
155
|
-
var
|
|
156
|
-
const
|
|
150
|
+
}), we = "OVERWRITE_DEFAULT_ID", ke = "LABEL SHOULD BE SET", Je = " ", Ia = "MESSAGE SHOULD BE SET", He = "-label", je = "-select", re = "-message", ce = "-valid-message", ve = "-invalid-message", Ne = "-placeholder", Ye = "-datalist", fe = "TODO: Add a validMessage", ie = "TODO: Add an invalidMessage", Qe = "Remove", _a = "Back", La = "Selected", Ta = "BurgerMenu", $a = "brand", Aa = 4, Pe = "Close", Gi = "density", Vi = "color";
|
|
151
|
+
var Ze = /* @__PURE__ */ ((l) => (l.FUNCTIONAL = "functional", l.REGULAR = "regular", l.EXPRESSIVE = "expressive", l))(Ze || {});
|
|
152
|
+
const Oi = Object.entries(Ze).map(([, l]) => l);
|
|
153
|
+
var xe = /* @__PURE__ */ ((l) => (l.PRIMARY = "primary", l))(xe || {}), ea = /* @__PURE__ */ ((l) => (l.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", l.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", l.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", l.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", l.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", l.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", l.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", l.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", l.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", l.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", l.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", l.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", l.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", l.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", l.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", l.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", l.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", l.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", l.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", l.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", l.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", l.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", l.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", l.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", l.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", l.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", l.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", l.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", l.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", l.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", l))(ea || {});
|
|
154
|
+
const Wi = Object.entries(ea).map(([, l]) => l), Xi = Object.entries(xe).map(([, l]) => l);
|
|
155
|
+
var aa = /* @__PURE__ */ ((l) => (l.CRITICAL = "critical", l.INFORMATIONAL = "informational", l.WARNING = "warning", l.SUCCESSFUL = "successful", l))(aa || {});
|
|
156
|
+
const Hi = Object.entries(aa).map(([, l]) => l), Ca = {
|
|
157
157
|
width: 390,
|
|
158
158
|
height: 884
|
|
159
|
-
},
|
|
159
|
+
}, Ea = {
|
|
160
160
|
width: 1920,
|
|
161
161
|
height: 1280
|
|
162
|
-
},
|
|
162
|
+
}, ji = [{
|
|
163
163
|
name: "desktop",
|
|
164
|
-
...
|
|
164
|
+
...Ea
|
|
165
165
|
}, {
|
|
166
166
|
name: "tablet",
|
|
167
167
|
width: 768,
|
|
168
168
|
height: 1024
|
|
169
169
|
}, {
|
|
170
170
|
name: "mobile",
|
|
171
|
-
...
|
|
172
|
-
}],
|
|
171
|
+
...Ca
|
|
172
|
+
}], Na = ["id", "aria-live", "data-semantic", "data-variant", "data-icon", "data-hide-icon", "data-link-variant"], Da = { key: 0 }, Fa = { key: 1 }, Yi = /* @__PURE__ */ q({
|
|
173
173
|
__name: "notification",
|
|
174
174
|
props: {
|
|
175
175
|
ariaLive: { default: void 0 },
|
|
@@ -205,7 +205,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
205
205
|
function e(t) {
|
|
206
206
|
t.stopPropagation(), a.onClose && a.onClose(t);
|
|
207
207
|
}
|
|
208
|
-
return (t, v) => (
|
|
208
|
+
return (t, v) => (p(), g("article", {
|
|
209
209
|
ref_key: "_ref",
|
|
210
210
|
ref: i,
|
|
211
211
|
id: t.id,
|
|
@@ -218,15 +218,15 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
218
218
|
"data-link-variant": t.linkVariant
|
|
219
219
|
}, [
|
|
220
220
|
T(t.$slots, "image"),
|
|
221
|
-
d(Z)(t.headline, t.showHeadline) ? (
|
|
222
|
-
|
|
223
|
-
t.text ? (
|
|
221
|
+
d(Z)(t.headline, t.showHeadline) ? (p(), g("header", Da, S(t.headline), 1)) : F("", !0),
|
|
222
|
+
I("p", null, [
|
|
223
|
+
t.text ? (p(), g(U, { key: 0 }, [
|
|
224
224
|
C(S(t.text), 1)
|
|
225
225
|
], 64)) : T(t.$slots, "default", { key: 1 })
|
|
226
226
|
]),
|
|
227
|
-
d(Z)(t.timestamp, t.showTimestamp) ? (
|
|
227
|
+
d(Z)(t.timestamp, t.showTimestamp) ? (p(), g("span", Fa, S(t.timestamp), 1)) : F("", !0),
|
|
228
228
|
T(t.$slots, "link"),
|
|
229
|
-
d(M)(t.closeable, "closeable") ? (
|
|
229
|
+
d(M)(t.closeable, "closeable") ? (p(), J(Be, {
|
|
230
230
|
key: 2,
|
|
231
231
|
icon: "cross",
|
|
232
232
|
variant: "ghost",
|
|
@@ -240,9 +240,9 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
240
240
|
]),
|
|
241
241
|
_: 1
|
|
242
242
|
}, 8, ["id", "onClick"])) : F("", !0)
|
|
243
|
-
], 10,
|
|
243
|
+
], 10, Na));
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), Ma = ["id", "data-semantic", "data-size", "data-emphasis", "data-placement", "data-label"], Ki = /* @__PURE__ */ q({
|
|
246
246
|
__name: "badge",
|
|
247
247
|
props: {
|
|
248
248
|
placement: { default: void 0 },
|
|
@@ -277,7 +277,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
277
277
|
}
|
|
278
278
|
), (t, v) => {
|
|
279
279
|
var u;
|
|
280
|
-
return
|
|
280
|
+
return p(), g("span", {
|
|
281
281
|
ref_key: "_ref",
|
|
282
282
|
ref: e,
|
|
283
283
|
id: t.id,
|
|
@@ -288,13 +288,13 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
288
288
|
"data-placement": t.placement,
|
|
289
289
|
"data-label": ((u = t.placement) == null ? void 0 : u.startsWith("corner")) && (t.label ?? d(ke))
|
|
290
290
|
}, [
|
|
291
|
-
t.text ? (
|
|
291
|
+
t.text ? (p(), g(U, { key: 0 }, [
|
|
292
292
|
C(S(t.text), 1)
|
|
293
293
|
], 64)) : T(t.$slots, "default", { key: 1 })
|
|
294
|
-
], 10,
|
|
294
|
+
], 10, Ma);
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
}),
|
|
297
|
+
}), Ra = ["data-icon", "data-hide-icon", "id"], Ji = /* @__PURE__ */ q({
|
|
298
298
|
__name: "brand",
|
|
299
299
|
props: {
|
|
300
300
|
hideLogo: { type: Boolean, default: void 0 },
|
|
@@ -310,20 +310,20 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
310
310
|
},
|
|
311
311
|
setup(l) {
|
|
312
312
|
const a = l, i = n(null);
|
|
313
|
-
return (e, t) => (
|
|
313
|
+
return (e, t) => (p(), g("div", {
|
|
314
314
|
ref_key: "_ref",
|
|
315
315
|
ref: i,
|
|
316
|
-
"data-icon": e.hideLogo ? "none" : e.icon ?? d(
|
|
316
|
+
"data-icon": e.hideLogo ? "none" : e.icon ?? d($a),
|
|
317
317
|
"data-hide-icon": d(K)(e.showIcon),
|
|
318
318
|
id: e.id,
|
|
319
319
|
class: P(d(z)("db-brand", a.class))
|
|
320
320
|
}, [
|
|
321
|
-
e.text ? (
|
|
321
|
+
e.text ? (p(), g(U, { key: 0 }, [
|
|
322
322
|
C(S(e.text), 1)
|
|
323
323
|
], 64)) : T(e.$slots, "default", { key: 1 })
|
|
324
|
-
], 10,
|
|
324
|
+
], 10, Ra));
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
326
|
+
}), Pa = ["id", "data-behavior", "data-elevation-level", "data-spacing", "role", "tabIndex"], Qi = /* @__PURE__ */ q({
|
|
327
327
|
__name: "card",
|
|
328
328
|
props: {
|
|
329
329
|
behavior: { default: void 0 },
|
|
@@ -342,7 +342,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
342
342
|
function e(t) {
|
|
343
343
|
t.stopPropagation(), a.onClick && a.onClick(t);
|
|
344
344
|
}
|
|
345
|
-
return (t, v) => (
|
|
345
|
+
return (t, v) => (p(), g("div", {
|
|
346
346
|
ref_key: "_ref",
|
|
347
347
|
ref: i,
|
|
348
348
|
id: t.id,
|
|
@@ -355,11 +355,11 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
355
355
|
onClick: v[0] || (v[0] = async (u) => e(u))
|
|
356
356
|
}, [
|
|
357
357
|
T(t.$slots, "default")
|
|
358
|
-
], 10,
|
|
358
|
+
], 10, Pa));
|
|
359
359
|
}
|
|
360
360
|
}), oe = (l, a, i = "value") => {
|
|
361
361
|
l(`update:${i}`, a.target[i]);
|
|
362
|
-
},
|
|
362
|
+
}, za = ["id", "data-icon", "data-semantic", "data-size", "data-hide-icon-before"], ae = /* @__PURE__ */ q({
|
|
363
363
|
__name: "infotext",
|
|
364
364
|
props: {
|
|
365
365
|
children: { default: void 0 },
|
|
@@ -376,7 +376,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
376
376
|
},
|
|
377
377
|
setup(l) {
|
|
378
378
|
const a = l, i = n(null);
|
|
379
|
-
return (e, t) => (
|
|
379
|
+
return (e, t) => (p(), g("span", {
|
|
380
380
|
ref_key: "_ref",
|
|
381
381
|
ref: i,
|
|
382
382
|
id: e.id,
|
|
@@ -386,15 +386,15 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
386
386
|
"data-size": e.size,
|
|
387
387
|
"data-hide-icon-before": d(K)(e.showIcon ?? !0)
|
|
388
388
|
}, [
|
|
389
|
-
e.text ? (
|
|
389
|
+
e.text ? (p(), g(U, { key: 0 }, [
|
|
390
390
|
C(S(e.text), 1)
|
|
391
391
|
], 64)) : T(e.$slots, "default", { key: 1 })
|
|
392
|
-
], 10,
|
|
392
|
+
], 10, za));
|
|
393
393
|
}
|
|
394
|
-
}),
|
|
394
|
+
}), qa = ["data-size", "data-hide-label"], Ua = ["for"], Ga = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Va = {
|
|
395
395
|
"data-visually-hidden": "true",
|
|
396
396
|
role: "status"
|
|
397
|
-
},
|
|
397
|
+
}, Zi = /* @__PURE__ */ q({
|
|
398
398
|
__name: "checkbox",
|
|
399
399
|
props: {
|
|
400
400
|
indeterminate: { type: [Boolean, String], default: void 0 },
|
|
@@ -432,7 +432,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
432
432
|
},
|
|
433
433
|
emits: ["update:checked"],
|
|
434
434
|
setup(l, { emit: a }) {
|
|
435
|
-
const i = a, e = l, t = n(!1), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(void 0), c = n(""),
|
|
435
|
+
const i = a, e = l, t = n(!1), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(void 0), c = n(""), _ = n(""), L = n(null);
|
|
436
436
|
Y(() => {
|
|
437
437
|
t.value = !0;
|
|
438
438
|
const y = e.id ?? `checkbox-${Q()}`;
|
|
@@ -483,7 +483,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
483
483
|
}
|
|
484
484
|
function N() {
|
|
485
485
|
var y, b, O;
|
|
486
|
-
!((y = L.value) != null && y.validity.valid) || e.validation === "invalid" ? (c.value = s.value, r.value = e.invalidMessage || ((b = L.value) == null ? void 0 : b.validationMessage) || ie, ue() && (
|
|
486
|
+
!((y = L.value) != null && y.validity.valid) || e.validation === "invalid" ? (c.value = s.value, r.value = e.invalidMessage || ((b = L.value) == null ? void 0 : b.validationMessage) || ie, ue() && (_.value = r.value, ee(() => _.value = "", 1e3))) : B() && ((O = L.value) != null && O.validity.valid) && e.required ? (c.value = h.value, ue() && (_.value = e.validMessage ?? fe, ee(() => _.value = "", 1e3))) : Z(e.message, e.showMessage) ? c.value = u.value : c.value = "";
|
|
487
487
|
}
|
|
488
488
|
function w(y) {
|
|
489
489
|
y.stopPropagation(), e.onChange && e.onChange(y), oe(i, y, "checked"), N();
|
|
@@ -494,13 +494,13 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
494
494
|
function R(y) {
|
|
495
495
|
y.stopPropagation(), e.onFocus && e.onFocus(y);
|
|
496
496
|
}
|
|
497
|
-
return (y, b) => (
|
|
497
|
+
return (y, b) => (p(), g("div", {
|
|
498
498
|
class: P(d(z)("db-checkbox", e.class)),
|
|
499
499
|
"data-size": y.size,
|
|
500
500
|
"data-hide-label": d(K)(y.showLabel)
|
|
501
501
|
}, [
|
|
502
|
-
|
|
503
|
-
|
|
502
|
+
I("label", { for: v.value }, [
|
|
503
|
+
I("input", {
|
|
504
504
|
type: "checkbox",
|
|
505
505
|
"aria-invalid": y.validation === "invalid",
|
|
506
506
|
"data-custom-validity": y.validation,
|
|
@@ -516,12 +516,12 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
516
516
|
onBlur: b[1] || (b[1] = async (O) => $(O)),
|
|
517
517
|
onFocus: b[2] || (b[2] = async (O) => R(O)),
|
|
518
518
|
"aria-describedby": c.value
|
|
519
|
-
}, null, 40,
|
|
520
|
-
y.label ? (
|
|
519
|
+
}, null, 40, Ga),
|
|
520
|
+
y.label ? (p(), g(U, { key: 0 }, [
|
|
521
521
|
C(S(y.label), 1)
|
|
522
522
|
], 64)) : T(y.$slots, "default", { key: 1 })
|
|
523
|
-
], 8,
|
|
524
|
-
d(Z)(y.message, y.showMessage) ? (
|
|
523
|
+
], 8, Ua),
|
|
524
|
+
d(Z)(y.message, y.showMessage) ? (p(), J(ae, {
|
|
525
525
|
key: 0,
|
|
526
526
|
size: "small",
|
|
527
527
|
icon: y.messageIcon,
|
|
@@ -532,7 +532,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
532
532
|
]),
|
|
533
533
|
_: 1
|
|
534
534
|
}, 8, ["icon", "id"])) : F("", !0),
|
|
535
|
-
B() ? (
|
|
535
|
+
B() ? (p(), J(ae, {
|
|
536
536
|
key: 1,
|
|
537
537
|
size: "small",
|
|
538
538
|
semantic: "successful",
|
|
@@ -553,10 +553,10 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
553
553
|
]),
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["id"]),
|
|
556
|
-
|
|
557
|
-
], 10,
|
|
556
|
+
I("span", Va, S(_.value), 1)
|
|
557
|
+
], 10, qa));
|
|
558
558
|
}
|
|
559
|
-
}),
|
|
559
|
+
}), Oa = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], xi = /* @__PURE__ */ q({
|
|
560
560
|
__name: "divider",
|
|
561
561
|
props: {
|
|
562
562
|
margin: { default: void 0 },
|
|
@@ -572,7 +572,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
572
572
|
},
|
|
573
573
|
setup(l) {
|
|
574
574
|
const a = l, i = n(null);
|
|
575
|
-
return (e, t) => (
|
|
575
|
+
return (e, t) => (p(), g("div", {
|
|
576
576
|
ref_key: "_ref",
|
|
577
577
|
ref: i,
|
|
578
578
|
id: e.id,
|
|
@@ -581,9 +581,9 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
581
581
|
"data-emphasis": e.emphasis,
|
|
582
582
|
"data-width": e.width,
|
|
583
583
|
class: P(d(z)("db-divider", a.class))
|
|
584
|
-
}, null, 10,
|
|
584
|
+
}, null, 10, Oa));
|
|
585
585
|
}
|
|
586
|
-
}),
|
|
586
|
+
}), Wa = ["id", "data-backdrop", "data-variant"], Xa = ["data-spacing", "data-width", "data-direction", "data-rounded"], Ha = { class: "db-drawer-header" }, ja = { class: "db-drawer-header-text" }, Ya = { class: "db-drawer-content" }, Ka = /* @__PURE__ */ q({
|
|
587
587
|
__name: "drawer",
|
|
588
588
|
props: {
|
|
589
589
|
backdrop: { default: void 0 },
|
|
@@ -631,7 +631,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
631
631
|
}, 401));
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
return (u, h) => (
|
|
634
|
+
return (u, h) => (p(), g("dialog", {
|
|
635
635
|
class: "db-drawer",
|
|
636
636
|
id: u.id,
|
|
637
637
|
ref_key: "_ref",
|
|
@@ -641,7 +641,7 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
641
641
|
"data-backdrop": u.backdrop,
|
|
642
642
|
"data-variant": u.variant
|
|
643
643
|
}, [
|
|
644
|
-
|
|
644
|
+
I("article", {
|
|
645
645
|
ref_key: "dialogContainerRef",
|
|
646
646
|
ref: e,
|
|
647
647
|
class: P(d(z)("db-drawer-container", a.class)),
|
|
@@ -650,8 +650,8 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
650
650
|
"data-direction": u.direction,
|
|
651
651
|
"data-rounded": d(H)(u.rounded)
|
|
652
652
|
}, [
|
|
653
|
-
|
|
654
|
-
|
|
653
|
+
I("header", Ha, [
|
|
654
|
+
I("div", ja, [
|
|
655
655
|
T(u.$slots, "drawer-header")
|
|
656
656
|
]),
|
|
657
657
|
te(Be, {
|
|
@@ -668,20 +668,20 @@ const Xi = Object.entries(ea).map(([, l]) => l), Aa = {
|
|
|
668
668
|
_: 1
|
|
669
669
|
}, 8, ["id", "onClick"])
|
|
670
670
|
]),
|
|
671
|
-
|
|
671
|
+
I("div", Ya, [
|
|
672
672
|
T(u.$slots, "default")
|
|
673
673
|
])
|
|
674
|
-
], 10,
|
|
675
|
-
], 40,
|
|
674
|
+
], 10, Xa)
|
|
675
|
+
], 40, Wa));
|
|
676
676
|
}
|
|
677
|
-
}),
|
|
677
|
+
}), ta = (l) => {
|
|
678
678
|
var i, e;
|
|
679
679
|
const {
|
|
680
680
|
target: a
|
|
681
681
|
} = l;
|
|
682
682
|
return !!(!((i = a == null ? void 0 : a.classList) != null && i.contains("db-navigation-item-expand-button")) && ((e = a == null ? void 0 : a.parentElement) != null && e.classList.contains("db-navigation-item")));
|
|
683
683
|
};
|
|
684
|
-
class
|
|
684
|
+
class Ja {
|
|
685
685
|
constructor(a, i) {
|
|
686
686
|
se(this, "element");
|
|
687
687
|
se(this, "subNavigation");
|
|
@@ -757,7 +757,7 @@ class Ka {
|
|
|
757
757
|
e && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${e.lb}, ${e.lt}, ${e.rt}, ${e.rb})`), i && (this.triangleData = void 0));
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
const
|
|
760
|
+
const Qa = ["id", "data-width", "data-on-forcing-mobile"], Za = { class: "db-header-drawer-navigation" }, xa = { class: "db-header-meta-navigation" }, et = { class: "db-header-secondary-action" }, at = { class: "db-header-meta-navigation" }, tt = { class: "db-header-navigation-bar" }, it = { class: "db-header-brand-container" }, lt = { class: "db-header-navigation-container" }, ot = { class: "db-header-navigation" }, dt = { class: "db-header-primary-action" }, nt = { class: "db-header-action-container" }, st = { class: "db-header-burger-menu-container" }, ut = { class: "db-header-secondary-action" }, el = /* @__PURE__ */ q({
|
|
761
761
|
__name: "header",
|
|
762
762
|
props: {
|
|
763
763
|
brand: {},
|
|
@@ -788,7 +788,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
788
788
|
const s = document.getElementById(
|
|
789
789
|
i.value ?? ""
|
|
790
790
|
);
|
|
791
|
-
s &&
|
|
791
|
+
s && Ke(s, {
|
|
792
792
|
key: "data-force-mobile",
|
|
793
793
|
value: "true"
|
|
794
794
|
}), t.value = !0;
|
|
@@ -804,9 +804,9 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
804
804
|
a.onToggle && a.onToggle(s);
|
|
805
805
|
}
|
|
806
806
|
function h(s) {
|
|
807
|
-
|
|
807
|
+
ta(s) && u();
|
|
808
808
|
}
|
|
809
|
-
return (s, r) => (
|
|
809
|
+
return (s, r) => (p(), g("header", {
|
|
810
810
|
ref_key: "_ref",
|
|
811
811
|
ref: v,
|
|
812
812
|
class: P(d(z)("db-header", a.class)),
|
|
@@ -814,7 +814,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
814
814
|
"data-width": s.width,
|
|
815
815
|
"data-on-forcing-mobile": s.forceMobile && !t.value
|
|
816
816
|
}, [
|
|
817
|
-
te(
|
|
817
|
+
te(Ka, {
|
|
818
818
|
class: "db-header-drawer",
|
|
819
819
|
spacing: "small",
|
|
820
820
|
rounded: !0,
|
|
@@ -822,40 +822,40 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
822
822
|
onClose: (c) => u()
|
|
823
823
|
}, {
|
|
824
824
|
default: V(() => [
|
|
825
|
-
|
|
826
|
-
|
|
825
|
+
I("div", Za, [
|
|
826
|
+
I("div", {
|
|
827
827
|
class: "db-header-navigation",
|
|
828
828
|
onClick: r[0] || (r[0] = async (c) => h(c))
|
|
829
829
|
}, [
|
|
830
830
|
T(s.$slots, "default")
|
|
831
831
|
]),
|
|
832
|
-
|
|
832
|
+
I("div", xa, [
|
|
833
833
|
T(s.$slots, "meta-navigation")
|
|
834
834
|
])
|
|
835
835
|
]),
|
|
836
|
-
|
|
836
|
+
I("div", et, [
|
|
837
837
|
T(s.$slots, "secondary-action")
|
|
838
838
|
])
|
|
839
839
|
]),
|
|
840
840
|
_: 3
|
|
841
841
|
}, 8, ["open", "onClose"]),
|
|
842
|
-
|
|
842
|
+
I("div", at, [
|
|
843
843
|
T(s.$slots, "meta-navigation")
|
|
844
844
|
]),
|
|
845
|
-
|
|
846
|
-
|
|
845
|
+
I("div", tt, [
|
|
846
|
+
I("div", it, [
|
|
847
847
|
T(s.$slots, "brand")
|
|
848
848
|
]),
|
|
849
|
-
|
|
850
|
-
|
|
849
|
+
I("div", lt, [
|
|
850
|
+
I("div", ot, [
|
|
851
851
|
T(s.$slots, "default")
|
|
852
852
|
]),
|
|
853
|
-
|
|
853
|
+
I("div", dt, [
|
|
854
854
|
T(s.$slots, "primary-action")
|
|
855
855
|
])
|
|
856
856
|
]),
|
|
857
|
-
|
|
858
|
-
|
|
857
|
+
I("div", nt, [
|
|
858
|
+
I("div", st, [
|
|
859
859
|
te(Be, {
|
|
860
860
|
icon: "menu",
|
|
861
861
|
variant: "ghost",
|
|
@@ -864,19 +864,19 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
864
864
|
onClick: (c) => u()
|
|
865
865
|
}, {
|
|
866
866
|
default: V(() => [
|
|
867
|
-
C(S(s.burgerMenuLabel ?? d(
|
|
867
|
+
C(S(s.burgerMenuLabel ?? d(Ta)), 1)
|
|
868
868
|
]),
|
|
869
869
|
_: 1
|
|
870
870
|
}, 8, ["id", "onClick"])
|
|
871
871
|
]),
|
|
872
|
-
|
|
872
|
+
I("div", ut, [
|
|
873
873
|
T(s.$slots, "secondary-action")
|
|
874
874
|
])
|
|
875
875
|
])
|
|
876
876
|
])
|
|
877
|
-
], 10,
|
|
877
|
+
], 10, Qa));
|
|
878
878
|
}
|
|
879
|
-
}),
|
|
879
|
+
}), rt = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], al = /* @__PURE__ */ q({
|
|
880
880
|
__name: "icon",
|
|
881
881
|
props: {
|
|
882
882
|
variant: { default: void 0 },
|
|
@@ -892,7 +892,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
892
892
|
},
|
|
893
893
|
setup(l) {
|
|
894
894
|
const a = l, i = n(null);
|
|
895
|
-
return (e, t) => (
|
|
895
|
+
return (e, t) => (p(), g("span", {
|
|
896
896
|
"aria-hidden": "true",
|
|
897
897
|
ref_key: "_ref",
|
|
898
898
|
ref: i,
|
|
@@ -902,15 +902,15 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
902
902
|
"data-icon-weight": e.weight,
|
|
903
903
|
"data-icon-variant": e.variant
|
|
904
904
|
}, [
|
|
905
|
-
e.text ? (
|
|
905
|
+
e.text ? (p(), g(U, { key: 0 }, [
|
|
906
906
|
C(S(e.text), 1)
|
|
907
907
|
], 64)) : T(e.$slots, "default", { key: 1 })
|
|
908
|
-
], 10,
|
|
908
|
+
], 10, rt));
|
|
909
909
|
}
|
|
910
|
-
}),
|
|
910
|
+
}), ct = ["data-variant", "data-hide-label", "data-hide-icon", "data-icon", "data-icon-after", "data-hide-icon-after"], vt = ["for"], ft = ["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"], pt = ["id"], mt = ["value"], ht = {
|
|
911
911
|
"data-visually-hidden": "true",
|
|
912
912
|
role: "status"
|
|
913
|
-
},
|
|
913
|
+
}, gt = /* @__PURE__ */ q({
|
|
914
914
|
__name: "input",
|
|
915
915
|
props: {
|
|
916
916
|
dataList: { default: void 0 },
|
|
@@ -964,15 +964,15 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
964
964
|
},
|
|
965
965
|
emits: ["update:value"],
|
|
966
966
|
setup(l, { emit: a }) {
|
|
967
|
-
const i = a, e = l, t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(void 0), c = n(""),
|
|
967
|
+
const i = a, e = l, t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(void 0), c = n(""), _ = n(""), L = n(""), B = n(null);
|
|
968
968
|
Y(() => {
|
|
969
|
-
const
|
|
970
|
-
t.value =
|
|
969
|
+
const f = e.id ?? `input-${Q()}`;
|
|
970
|
+
t.value = f, v.value = f + re, u.value = f + ce, h.value = f + ve, r.value = f + Ye, s.value = e.invalidMessage || ie;
|
|
971
971
|
}), A(
|
|
972
972
|
() => [B.value, e.invalidMessage],
|
|
973
973
|
() => {
|
|
974
|
-
var
|
|
975
|
-
s.value = e.invalidMessage || ((
|
|
974
|
+
var f;
|
|
975
|
+
s.value = e.invalidMessage || ((f = B.value) == null ? void 0 : f.validationMessage) || ie;
|
|
976
976
|
},
|
|
977
977
|
{
|
|
978
978
|
immediate: !0,
|
|
@@ -982,8 +982,8 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
982
982
|
() => [t.value],
|
|
983
983
|
() => {
|
|
984
984
|
if (t.value) {
|
|
985
|
-
const
|
|
986
|
-
v.value =
|
|
985
|
+
const f = t.value + re;
|
|
986
|
+
v.value = f, u.value = t.value + ce, h.value = t.value + ve, r.value = e.dataListId ?? t.value + Ye, Z(e.message, e.showMessage) && (c.value = f);
|
|
987
987
|
}
|
|
988
988
|
},
|
|
989
989
|
{
|
|
@@ -993,7 +993,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
993
993
|
), A(
|
|
994
994
|
() => [e.value],
|
|
995
995
|
() => {
|
|
996
|
-
|
|
996
|
+
_.value = e.value;
|
|
997
997
|
},
|
|
998
998
|
{
|
|
999
999
|
immediate: !0,
|
|
@@ -1004,100 +1004,100 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1004
1004
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1005
1005
|
}
|
|
1006
1006
|
function w() {
|
|
1007
|
-
var
|
|
1008
|
-
!((
|
|
1007
|
+
var f, E, m;
|
|
1008
|
+
!((f = B.value) != null && f.validity.valid) || e.validation === "invalid" ? (c.value = h.value, s.value = e.invalidMessage || ((E = B.value) == null ? void 0 : E.validationMessage) || ie, ue() && (L.value = s.value, ee(() => L.value = "", 1e3))) : N() && ((m = B.value) != null && m.validity.valid) && (e.required || e.minLength || e.maxLength || e.pattern) ? (c.value = u.value, ue() && (L.value = e.validMessage ?? fe, ee(() => L.value = "", 1e3))) : Z(e.message, e.showMessage) ? c.value = v.value : c.value = "";
|
|
1009
1009
|
}
|
|
1010
|
-
function $(
|
|
1011
|
-
|
|
1010
|
+
function $(f) {
|
|
1011
|
+
f.stopPropagation(), e.input && e.input(f), _.value = f.target.value, e.onInput && e.onInput(f), oe(i, f), w();
|
|
1012
1012
|
}
|
|
1013
|
-
function R(
|
|
1014
|
-
|
|
1015
|
-
},
|
|
1013
|
+
function R(f) {
|
|
1014
|
+
f.stopPropagation(), e.onChange && e.onChange(f), oe(() => {
|
|
1015
|
+
}, f), w();
|
|
1016
1016
|
}
|
|
1017
|
-
function y(
|
|
1018
|
-
|
|
1017
|
+
function y(f) {
|
|
1018
|
+
f.stopPropagation(), e.onBlur && e.onBlur(f);
|
|
1019
1019
|
}
|
|
1020
|
-
function b(
|
|
1021
|
-
|
|
1020
|
+
function b(f) {
|
|
1021
|
+
f.stopPropagation(), e.onFocus && e.onFocus(f);
|
|
1022
1022
|
}
|
|
1023
1023
|
function O() {
|
|
1024
|
-
const
|
|
1024
|
+
const f = e.dataList;
|
|
1025
1025
|
return Array.from(
|
|
1026
|
-
(
|
|
1026
|
+
(Ba(f) ? f == null ? void 0 : f.map((E) => ({
|
|
1027
1027
|
value: E,
|
|
1028
1028
|
label: void 0
|
|
1029
|
-
})) :
|
|
1029
|
+
})) : f) || []
|
|
1030
1030
|
);
|
|
1031
1031
|
}
|
|
1032
|
-
return (
|
|
1032
|
+
return (f, E) => (p(), g("div", {
|
|
1033
1033
|
class: P(d(z)("db-input", e.class)),
|
|
1034
|
-
"data-variant":
|
|
1035
|
-
"data-hide-label": d(K)(
|
|
1036
|
-
"data-hide-icon": d(K)(
|
|
1037
|
-
"data-icon":
|
|
1038
|
-
"data-icon-after":
|
|
1039
|
-
"data-hide-icon-after": d(K)(
|
|
1034
|
+
"data-variant": f.variant,
|
|
1035
|
+
"data-hide-label": d(K)(f.showLabel),
|
|
1036
|
+
"data-hide-icon": d(K)(f.showIcon),
|
|
1037
|
+
"data-icon": f.icon,
|
|
1038
|
+
"data-icon-after": f.iconAfter,
|
|
1039
|
+
"data-hide-icon-after": d(K)(f.showIcon)
|
|
1040
1040
|
}, [
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
"aria-invalid":
|
|
1044
|
-
"data-custom-validity":
|
|
1041
|
+
I("label", { for: t.value }, S(f.label ?? d(ke)), 9, vt),
|
|
1042
|
+
I("input", {
|
|
1043
|
+
"aria-invalid": f.validation === "invalid",
|
|
1044
|
+
"data-custom-validity": f.validation,
|
|
1045
1045
|
ref_key: "_ref",
|
|
1046
1046
|
ref: B,
|
|
1047
1047
|
id: t.value,
|
|
1048
|
-
name:
|
|
1049
|
-
type:
|
|
1050
|
-
placeholder:
|
|
1051
|
-
disabled: d(M)(
|
|
1052
|
-
required: d(M)(
|
|
1053
|
-
step: d(
|
|
1054
|
-
value:
|
|
1055
|
-
maxLength: d(
|
|
1056
|
-
minLength: d(
|
|
1057
|
-
max: d(
|
|
1058
|
-
min: d(
|
|
1059
|
-
readOnly: d(M)(
|
|
1060
|
-
form:
|
|
1061
|
-
pattern:
|
|
1062
|
-
size:
|
|
1063
|
-
autoComplete:
|
|
1064
|
-
autoFocus: d(M)(
|
|
1048
|
+
name: f.name,
|
|
1049
|
+
type: f.type || "text",
|
|
1050
|
+
placeholder: f.placeholder ?? d(Je),
|
|
1051
|
+
disabled: d(M)(f.disabled, "disabled"),
|
|
1052
|
+
required: d(M)(f.required, "required"),
|
|
1053
|
+
step: d(ye)(f.step),
|
|
1054
|
+
value: f.value ?? _.value,
|
|
1055
|
+
maxLength: d(ye)(f.maxLength, f.maxlength),
|
|
1056
|
+
minLength: d(ye)(f.minLength, f.minlength),
|
|
1057
|
+
max: d(We)(f.max, f.type),
|
|
1058
|
+
min: d(We)(f.min, f.type),
|
|
1059
|
+
readOnly: d(M)(f.readOnly, "readOnly") || d(M)(f.readonly, "readonly"),
|
|
1060
|
+
form: f.form,
|
|
1061
|
+
pattern: f.pattern,
|
|
1062
|
+
size: f.size,
|
|
1063
|
+
autoComplete: f.autocomplete,
|
|
1064
|
+
autoFocus: d(M)(f.autofocus, "autofocus"),
|
|
1065
1065
|
onInput: E[0] || (E[0] = async (m) => $(m)),
|
|
1066
1066
|
onChange: E[1] || (E[1] = async (m) => R(m)),
|
|
1067
1067
|
onBlur: E[2] || (E[2] = async (m) => y(m)),
|
|
1068
1068
|
onFocus: E[3] || (E[3] = async (m) => b(m)),
|
|
1069
|
-
list:
|
|
1070
|
-
"aria-describedby":
|
|
1071
|
-
}, null, 40,
|
|
1072
|
-
|
|
1069
|
+
list: f.dataList && r.value,
|
|
1070
|
+
"aria-describedby": f.ariaDescribedBy ?? c.value
|
|
1071
|
+
}, null, 40, ft),
|
|
1072
|
+
f.dataList ? (p(), g("datalist", {
|
|
1073
1073
|
key: 0,
|
|
1074
1074
|
id: r.value
|
|
1075
1075
|
}, [
|
|
1076
|
-
(
|
|
1076
|
+
(p(!0), g(U, null, he(O(), (m) => (p(), g("option", {
|
|
1077
1077
|
key: r.value + "-option-" + m.value,
|
|
1078
1078
|
value: m.value
|
|
1079
|
-
}, S(m.label), 9,
|
|
1080
|
-
], 8,
|
|
1081
|
-
T(
|
|
1082
|
-
d(Z)(
|
|
1079
|
+
}, S(m.label), 9, mt))), 128))
|
|
1080
|
+
], 8, pt)) : F("", !0),
|
|
1081
|
+
T(f.$slots, "default"),
|
|
1082
|
+
d(Z)(f.message, f.showMessage) ? (p(), J(ae, {
|
|
1083
1083
|
key: 1,
|
|
1084
1084
|
size: "small",
|
|
1085
|
-
icon:
|
|
1085
|
+
icon: f.messageIcon,
|
|
1086
1086
|
id: v.value
|
|
1087
1087
|
}, {
|
|
1088
1088
|
default: V(() => [
|
|
1089
|
-
C(S(
|
|
1089
|
+
C(S(f.message), 1)
|
|
1090
1090
|
]),
|
|
1091
1091
|
_: 1
|
|
1092
1092
|
}, 8, ["icon", "id"])) : F("", !0),
|
|
1093
|
-
N() ? (
|
|
1093
|
+
N() ? (p(), J(ae, {
|
|
1094
1094
|
key: 2,
|
|
1095
1095
|
size: "small",
|
|
1096
1096
|
semantic: "successful",
|
|
1097
1097
|
id: u.value
|
|
1098
1098
|
}, {
|
|
1099
1099
|
default: V(() => [
|
|
1100
|
-
C(S(
|
|
1100
|
+
C(S(f.validMessage || d(fe)), 1)
|
|
1101
1101
|
]),
|
|
1102
1102
|
_: 1
|
|
1103
1103
|
}, 8, ["id"])) : F("", !0),
|
|
@@ -1111,10 +1111,10 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1111
1111
|
]),
|
|
1112
1112
|
_: 1
|
|
1113
1113
|
}, 8, ["id"]),
|
|
1114
|
-
|
|
1115
|
-
], 10,
|
|
1114
|
+
I("span", ht, S(L.value), 1)
|
|
1115
|
+
], 10, ct));
|
|
1116
1116
|
}
|
|
1117
|
-
}),
|
|
1117
|
+
}), bt = ["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"], tl = /* @__PURE__ */ q({
|
|
1118
1118
|
__name: "link",
|
|
1119
1119
|
props: {
|
|
1120
1120
|
content: { default: void 0 },
|
|
@@ -1145,7 +1145,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1145
1145
|
function e(t) {
|
|
1146
1146
|
t.stopPropagation(), a.onClick && a.onClick(t);
|
|
1147
1147
|
}
|
|
1148
|
-
return (t, v) => (
|
|
1148
|
+
return (t, v) => (p(), g("a", {
|
|
1149
1149
|
ref_key: "_ref",
|
|
1150
1150
|
ref: i,
|
|
1151
1151
|
id: t.id,
|
|
@@ -1166,12 +1166,12 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1166
1166
|
"data-content": t.content || "internal",
|
|
1167
1167
|
onClick: v[0] || (v[0] = async (u) => e(u))
|
|
1168
1168
|
}, [
|
|
1169
|
-
t.text ? (
|
|
1169
|
+
t.text ? (p(), g(U, { key: 0 }, [
|
|
1170
1170
|
C(S(t.text), 1)
|
|
1171
1171
|
], 64)) : T(t.$slots, "default", { key: 1 })
|
|
1172
|
-
], 10,
|
|
1172
|
+
], 10, bt));
|
|
1173
1173
|
}
|
|
1174
|
-
}),
|
|
1174
|
+
}), yt = ["id", "data-variant", "data-fade-in", "data-fonts-loaded"], il = /* @__PURE__ */ q({
|
|
1175
1175
|
__name: "page",
|
|
1176
1176
|
props: {
|
|
1177
1177
|
documentOverflow: { default: void 0 },
|
|
@@ -1193,9 +1193,9 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1193
1193
|
i.value = !a.fadeIn, document && a.fadeIn ? document.fonts.ready.then(() => {
|
|
1194
1194
|
i.value = !0;
|
|
1195
1195
|
}) : i.value = !0;
|
|
1196
|
-
}),
|
|
1196
|
+
}), ya(() => {
|
|
1197
1197
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
1198
|
-
}), (t, v) => (
|
|
1198
|
+
}), (t, v) => (p(), g("div", {
|
|
1199
1199
|
ref_key: "_ref",
|
|
1200
1200
|
ref: e,
|
|
1201
1201
|
id: t.id,
|
|
@@ -1205,15 +1205,15 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1205
1205
|
"data-fonts-loaded": d(H)(i.value)
|
|
1206
1206
|
}, [
|
|
1207
1207
|
T(t.$slots, "header"),
|
|
1208
|
-
|
|
1208
|
+
I("main", {
|
|
1209
1209
|
class: P(d(z)("db-main", t.mainClass))
|
|
1210
1210
|
}, [
|
|
1211
1211
|
T(t.$slots, "default")
|
|
1212
1212
|
], 2),
|
|
1213
1213
|
T(t.$slots, "footer")
|
|
1214
|
-
], 10,
|
|
1214
|
+
], 10, yt));
|
|
1215
1215
|
}
|
|
1216
|
-
}),
|
|
1216
|
+
}), kt = ["data-size", "data-hide-label", "for"], Bt = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "aria-describedby", "value", "required"], ll = /* @__PURE__ */ q({
|
|
1217
1217
|
__name: "radio",
|
|
1218
1218
|
props: {
|
|
1219
1219
|
describedbyid: { default: void 0 },
|
|
@@ -1264,13 +1264,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1264
1264
|
function r(c) {
|
|
1265
1265
|
c.stopPropagation(), e.onFocus && e.onFocus(c);
|
|
1266
1266
|
}
|
|
1267
|
-
return (c,
|
|
1267
|
+
return (c, _) => (p(), g("label", {
|
|
1268
1268
|
"data-size": c.size,
|
|
1269
1269
|
"data-hide-label": d(K)(c.showLabel),
|
|
1270
1270
|
class: P(d(z)("db-radio", e.class)),
|
|
1271
1271
|
for: v.value
|
|
1272
1272
|
}, [
|
|
1273
|
-
|
|
1273
|
+
I("input", {
|
|
1274
1274
|
type: "radio",
|
|
1275
1275
|
"aria-invalid": c.validation === "invalid",
|
|
1276
1276
|
"data-custom-validity": c.validation,
|
|
@@ -1283,16 +1283,16 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1283
1283
|
"aria-describedby": c.describedbyid,
|
|
1284
1284
|
value: c.value,
|
|
1285
1285
|
required: d(M)(c.required, "required"),
|
|
1286
|
-
onChange:
|
|
1287
|
-
onBlur:
|
|
1288
|
-
onFocus:
|
|
1289
|
-
}, null, 40,
|
|
1290
|
-
c.label ? (
|
|
1286
|
+
onChange: _[0] || (_[0] = async (L) => h(L)),
|
|
1287
|
+
onBlur: _[1] || (_[1] = async (L) => s(L)),
|
|
1288
|
+
onFocus: _[2] || (_[2] = async (L) => r(L))
|
|
1289
|
+
}, null, 40, Bt),
|
|
1290
|
+
c.label ? (p(), g(U, { key: 0 }, [
|
|
1291
1291
|
C(S(c.label), 1)
|
|
1292
1292
|
], 64)) : T(c.$slots, "default", { key: 1 })
|
|
1293
|
-
], 10,
|
|
1293
|
+
], 10, kt));
|
|
1294
1294
|
}
|
|
1295
|
-
}),
|
|
1295
|
+
}), St = ["id", "data-spacing", "data-width"], ol = /* @__PURE__ */ q({
|
|
1296
1296
|
__name: "section",
|
|
1297
1297
|
props: {
|
|
1298
1298
|
children: { default: void 0 },
|
|
@@ -1308,7 +1308,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1308
1308
|
const a = l, i = n(we), e = n(null);
|
|
1309
1309
|
return Y(() => {
|
|
1310
1310
|
i.value = a.id || "section-" + Q();
|
|
1311
|
-
}), (t, v) => (
|
|
1311
|
+
}), (t, v) => (p(), g("section", {
|
|
1312
1312
|
ref_key: "_ref",
|
|
1313
1313
|
ref: e,
|
|
1314
1314
|
id: i.value,
|
|
@@ -1317,12 +1317,12 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1317
1317
|
"data-width": t.width
|
|
1318
1318
|
}, [
|
|
1319
1319
|
T(t.$slots, "default")
|
|
1320
|
-
], 10,
|
|
1320
|
+
], 10, St));
|
|
1321
1321
|
}
|
|
1322
|
-
}),
|
|
1322
|
+
}), wt = ["data-variant", "data-hide-label", "data-icon", "data-hide-icon"], It = ["for"], _t = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], Lt = ["label"], Tt = ["value", "selected", "disabled"], $t = ["value", "disabled", "selected"], At = ["id"], Ct = {
|
|
1323
1323
|
"data-visually-hidden": "true",
|
|
1324
1324
|
role: "status"
|
|
1325
|
-
},
|
|
1325
|
+
}, dl = /* @__PURE__ */ q({
|
|
1326
1326
|
__name: "select",
|
|
1327
1327
|
props: {
|
|
1328
1328
|
children: { default: void 0 },
|
|
@@ -1365,7 +1365,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1365
1365
|
},
|
|
1366
1366
|
emits: ["update:value"],
|
|
1367
1367
|
setup(l, { emit: a }) {
|
|
1368
|
-
const i = a, e = l, t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(""), c = n(""),
|
|
1368
|
+
const i = a, e = l, t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(""), c = n(""), _ = n(""), L = n(!1), B = n(""), N = n(null);
|
|
1369
1369
|
Y(() => {
|
|
1370
1370
|
L.value = !0;
|
|
1371
1371
|
const m = e.id ?? `select-${Q()}`;
|
|
@@ -1395,7 +1395,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1395
1395
|
), A(
|
|
1396
1396
|
() => [e.value],
|
|
1397
1397
|
() => {
|
|
1398
|
-
|
|
1398
|
+
_.value = e.value;
|
|
1399
1399
|
},
|
|
1400
1400
|
{
|
|
1401
1401
|
immediate: !0,
|
|
@@ -1413,7 +1413,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1413
1413
|
m.stopPropagation(), e.onClick && e.onClick(m);
|
|
1414
1414
|
}
|
|
1415
1415
|
function y(m) {
|
|
1416
|
-
m.stopPropagation(), e.input && e.input(m),
|
|
1416
|
+
m.stopPropagation(), e.input && e.input(m), _.value = m.target.value, e.onInput && e.onInput(m), oe(i, m), $();
|
|
1417
1417
|
}
|
|
1418
1418
|
function b(m) {
|
|
1419
1419
|
m.stopPropagation(), e.onChange && e.onChange(m), oe(() => {
|
|
@@ -1422,22 +1422,22 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1422
1422
|
function O(m) {
|
|
1423
1423
|
m.stopPropagation(), e.onBlur && e.onBlur(m);
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function f(m) {
|
|
1426
1426
|
m.stopPropagation(), e.onFocus && e.onFocus(m);
|
|
1427
1427
|
}
|
|
1428
1428
|
function E(m) {
|
|
1429
1429
|
var X;
|
|
1430
1430
|
return m.label ?? ((X = m.value) == null ? void 0 : X.toString());
|
|
1431
1431
|
}
|
|
1432
|
-
return (m, X) => (
|
|
1432
|
+
return (m, X) => (p(), g("div", {
|
|
1433
1433
|
class: P(d(z)("db-select", e.class)),
|
|
1434
1434
|
"data-variant": m.variant,
|
|
1435
1435
|
"data-hide-label": d(K)(m.showLabel),
|
|
1436
1436
|
"data-icon": m.icon,
|
|
1437
1437
|
"data-hide-icon": d(K)(m.showIcon)
|
|
1438
1438
|
}, [
|
|
1439
|
-
|
|
1440
|
-
|
|
1439
|
+
I("label", { for: t.value }, S(m.label ?? d(ke)), 9, It),
|
|
1440
|
+
I("select", {
|
|
1441
1441
|
"aria-invalid": m.validation === "invalid",
|
|
1442
1442
|
"data-custom-validity": m.validation,
|
|
1443
1443
|
ref_key: "_ref",
|
|
@@ -1447,39 +1447,39 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1447
1447
|
id: t.value,
|
|
1448
1448
|
name: m.name,
|
|
1449
1449
|
size: m.size,
|
|
1450
|
-
value: m.value ??
|
|
1450
|
+
value: m.value ?? _.value,
|
|
1451
1451
|
autocomplete: m.autocomplete,
|
|
1452
1452
|
multiple: m.multiple,
|
|
1453
1453
|
onInput: X[0] || (X[0] = async (j) => y(j)),
|
|
1454
1454
|
onClick: X[1] || (X[1] = async (j) => R(j)),
|
|
1455
1455
|
onChange: X[2] || (X[2] = async (j) => b(j)),
|
|
1456
1456
|
onBlur: X[3] || (X[3] = async (j) => O(j)),
|
|
1457
|
-
onFocus: X[4] || (X[4] = async (j) =>
|
|
1457
|
+
onFocus: X[4] || (X[4] = async (j) => f(j)),
|
|
1458
1458
|
"aria-describedby": c.value
|
|
1459
1459
|
}, [
|
|
1460
|
-
X[5] || (X[5] =
|
|
1461
|
-
m.options ? (
|
|
1462
|
-
j.options ? (
|
|
1460
|
+
X[5] || (X[5] = I("option", { hidden: !0 }, null, -1)),
|
|
1461
|
+
m.options ? (p(!0), g(U, { key: 0 }, he(m.options, (j, Ae) => (p(), g(U, { key: Ae }, [
|
|
1462
|
+
j.options ? (p(), g("optgroup", {
|
|
1463
1463
|
key: 0,
|
|
1464
1464
|
label: E(j)
|
|
1465
1465
|
}, [
|
|
1466
|
-
(
|
|
1466
|
+
(p(!0), g(U, null, he(j.options, (pe, Ie) => (p(), g("option", {
|
|
1467
1467
|
key: pe.value.toString(),
|
|
1468
1468
|
value: pe.value,
|
|
1469
1469
|
selected: pe.selected,
|
|
1470
1470
|
disabled: pe.disabled
|
|
1471
|
-
}, S(E(pe)), 9,
|
|
1472
|
-
], 8,
|
|
1473
|
-
j.options ? F("", !0) : (
|
|
1471
|
+
}, S(E(pe)), 9, Tt))), 128))
|
|
1472
|
+
], 8, Lt)) : F("", !0),
|
|
1473
|
+
j.options ? F("", !0) : (p(), g("option", {
|
|
1474
1474
|
key: 1,
|
|
1475
1475
|
value: j.value,
|
|
1476
1476
|
disabled: j.disabled,
|
|
1477
1477
|
selected: j.selected
|
|
1478
|
-
}, S(E(j)), 9,
|
|
1478
|
+
}, S(E(j)), 9, $t))
|
|
1479
1479
|
], 64))), 128)) : T(m.$slots, "default", { key: 1 })
|
|
1480
1480
|
], 40, _t),
|
|
1481
|
-
|
|
1482
|
-
d(Z)(m.message, m.showMessage) ? (
|
|
1481
|
+
I("span", { id: r.value }, S(m.placeholder ?? m.label), 9, At),
|
|
1482
|
+
d(Z)(m.message, m.showMessage) ? (p(), J(ae, {
|
|
1483
1483
|
key: 0,
|
|
1484
1484
|
size: "small",
|
|
1485
1485
|
icon: m.messageIcon,
|
|
@@ -1490,7 +1490,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1490
1490
|
]),
|
|
1491
1491
|
_: 1
|
|
1492
1492
|
}, 8, ["icon", "id"])) : F("", !0),
|
|
1493
|
-
w() ? (
|
|
1493
|
+
w() ? (p(), J(ae, {
|
|
1494
1494
|
key: 1,
|
|
1495
1495
|
size: "small",
|
|
1496
1496
|
semantic: "successful",
|
|
@@ -1511,10 +1511,10 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1511
1511
|
]),
|
|
1512
1512
|
_: 1
|
|
1513
1513
|
}, 8, ["id"]),
|
|
1514
|
-
|
|
1515
|
-
], 10,
|
|
1514
|
+
I("span", Ct, S(B.value), 1)
|
|
1515
|
+
], 10, wt));
|
|
1516
1516
|
}
|
|
1517
|
-
}),
|
|
1517
|
+
}), Et = ["data-visual-aid", "data-size", "data-hide-label", "data-emphasis", "for"], Nt = ["id", "aria-checked", "checked", "value", "disabled", "aria-describedby", "aria-invalid", "data-custom-validity", "name", "required", "data-aid-icon", "data-aid-icon-after"], nl = /* @__PURE__ */ q({
|
|
1518
1518
|
__name: "switch",
|
|
1519
1519
|
props: {
|
|
1520
1520
|
visualAid: { type: [Boolean, String], default: void 0 },
|
|
@@ -1561,8 +1561,8 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1561
1561
|
}
|
|
1562
1562
|
);
|
|
1563
1563
|
function h(c) {
|
|
1564
|
-
var
|
|
1565
|
-
c.stopPropagation(), e.onChange && e.onChange(c), v.value = (
|
|
1564
|
+
var _;
|
|
1565
|
+
c.stopPropagation(), e.onChange && e.onChange(c), v.value = (_ = c.target) == null ? void 0 : _.checked, oe(i, c, "checked");
|
|
1566
1566
|
}
|
|
1567
1567
|
function s(c) {
|
|
1568
1568
|
c.stopPropagation(), e.onBlur && e.onBlur(c);
|
|
@@ -1570,7 +1570,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1570
1570
|
function r(c) {
|
|
1571
1571
|
c.stopPropagation(), e.onFocus && e.onFocus(c);
|
|
1572
1572
|
}
|
|
1573
|
-
return (c,
|
|
1573
|
+
return (c, _) => (p(), g("label", {
|
|
1574
1574
|
"data-visual-aid": d(H)(c.visualAid),
|
|
1575
1575
|
"data-size": c.size,
|
|
1576
1576
|
"data-hide-label": d(K)(c.showLabel),
|
|
@@ -1578,7 +1578,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1578
1578
|
for: t.value,
|
|
1579
1579
|
class: P(d(z)("db-switch", e.class))
|
|
1580
1580
|
}, [
|
|
1581
|
-
|
|
1581
|
+
I("input", {
|
|
1582
1582
|
type: "checkbox",
|
|
1583
1583
|
role: "switch",
|
|
1584
1584
|
id: t.value,
|
|
@@ -1595,16 +1595,16 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1595
1595
|
required: d(M)(c.required, "required"),
|
|
1596
1596
|
"data-aid-icon": c.icon,
|
|
1597
1597
|
"data-aid-icon-after": c.iconAfter,
|
|
1598
|
-
onChange:
|
|
1599
|
-
onBlur:
|
|
1600
|
-
onFocus:
|
|
1601
|
-
}, null, 40,
|
|
1602
|
-
c.label ? (
|
|
1598
|
+
onChange: _[0] || (_[0] = async (L) => h(L)),
|
|
1599
|
+
onBlur: _[1] || (_[1] = async (L) => s(L)),
|
|
1600
|
+
onFocus: _[2] || (_[2] = async (L) => r(L))
|
|
1601
|
+
}, null, 40, Nt),
|
|
1602
|
+
c.label ? (p(), g(U, { key: 0 }, [
|
|
1603
1603
|
C(S(c.label), 1)
|
|
1604
1604
|
], 64)) : T(c.$slots, "default", { key: 1 })
|
|
1605
|
-
], 10,
|
|
1605
|
+
], 10, Et));
|
|
1606
1606
|
}
|
|
1607
|
-
}),
|
|
1607
|
+
}), Dt = ["for", "data-icon", "data-icon-after", "data-hide-icon", "data-hide-icon-after", "data-no-text"], Ft = ["disabled", "aria-selected", "aria-controls", "checked", "name", "id"], Mt = /* @__PURE__ */ q({
|
|
1608
1608
|
__name: "tab-item",
|
|
1609
1609
|
props: {
|
|
1610
1610
|
children: { default: void 0 },
|
|
@@ -1654,11 +1654,11 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1654
1654
|
var c;
|
|
1655
1655
|
r.stopPropagation(), e.onChange && e.onChange(r), t.value = (c = r.target) == null ? void 0 : c.checked, oe(i, r, "checked");
|
|
1656
1656
|
}
|
|
1657
|
-
return (r, c) => (
|
|
1657
|
+
return (r, c) => (p(), g("li", {
|
|
1658
1658
|
role: "none",
|
|
1659
1659
|
class: P(d(z)("db-tab-item", e.class))
|
|
1660
1660
|
}, [
|
|
1661
|
-
|
|
1661
|
+
I("label", {
|
|
1662
1662
|
for: r.id,
|
|
1663
1663
|
"data-icon": r.icon,
|
|
1664
1664
|
"data-icon-after": r.iconAfter,
|
|
@@ -1666,7 +1666,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1666
1666
|
"data-hide-icon-after": d(K)(r.showIcon),
|
|
1667
1667
|
"data-no-text": d(H)(r.noText)
|
|
1668
1668
|
}, [
|
|
1669
|
-
|
|
1669
|
+
I("input", {
|
|
1670
1670
|
type: "radio",
|
|
1671
1671
|
role: "tab",
|
|
1672
1672
|
disabled: d(M)(r.disabled, "disabled"),
|
|
@@ -1677,16 +1677,16 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1677
1677
|
ref: h,
|
|
1678
1678
|
name: v.value,
|
|
1679
1679
|
id: r.id,
|
|
1680
|
-
onInput: c[0] || (c[0] = async (
|
|
1681
|
-
}, null, 40,
|
|
1682
|
-
r.label ? (
|
|
1680
|
+
onInput: c[0] || (c[0] = async (_) => s(_))
|
|
1681
|
+
}, null, 40, Ft),
|
|
1682
|
+
r.label ? (p(), g(U, { key: 0 }, [
|
|
1683
1683
|
C(S(r.label), 1)
|
|
1684
1684
|
], 64)) : F("", !0),
|
|
1685
1685
|
T(r.$slots, "default")
|
|
1686
|
-
], 8,
|
|
1686
|
+
], 8, Dt)
|
|
1687
1687
|
], 2));
|
|
1688
1688
|
}
|
|
1689
|
-
}),
|
|
1689
|
+
}), Rt = ["id", "data-disabled", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-hide-icon", "data-no-text", "data-overflow"], Pt = ["title"], zt = /* @__PURE__ */ q({
|
|
1690
1690
|
__name: "tag",
|
|
1691
1691
|
props: {
|
|
1692
1692
|
behavior: { default: void 0 },
|
|
@@ -1734,9 +1734,9 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1734
1734
|
u == null || u.stopPropagation(), a.onRemove && a.onRemove(u);
|
|
1735
1735
|
}
|
|
1736
1736
|
function v() {
|
|
1737
|
-
return a.removeButton ? a.removeButton :
|
|
1737
|
+
return a.removeButton ? a.removeButton : Qe;
|
|
1738
1738
|
}
|
|
1739
|
-
return (u, h) => (
|
|
1739
|
+
return (u, h) => (p(), g("div", {
|
|
1740
1740
|
ref_key: "_ref",
|
|
1741
1741
|
ref: e,
|
|
1742
1742
|
id: u.id,
|
|
@@ -1752,10 +1752,10 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1752
1752
|
}, [
|
|
1753
1753
|
T(u.$slots, "content"),
|
|
1754
1754
|
T(u.$slots, "default"),
|
|
1755
|
-
u.text ? (
|
|
1755
|
+
u.text ? (p(), g(U, { key: 0 }, [
|
|
1756
1756
|
C(S(u.text), 1)
|
|
1757
1757
|
], 64)) : F("", !0),
|
|
1758
|
-
u.behavior === "removable" ? (
|
|
1758
|
+
u.behavior === "removable" ? (p(), g("button", {
|
|
1759
1759
|
key: 1,
|
|
1760
1760
|
class: "db-button db-tab-remove-button",
|
|
1761
1761
|
"data-icon": "cross",
|
|
@@ -1764,13 +1764,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1764
1764
|
"data-variant": "ghost",
|
|
1765
1765
|
onClick: h[0] || (h[0] = async (s) => t(s)),
|
|
1766
1766
|
title: v()
|
|
1767
|
-
}, S(v()), 9,
|
|
1768
|
-
], 10,
|
|
1767
|
+
}, S(v()), 9, Pt)) : F("", !0)
|
|
1768
|
+
], 10, Rt));
|
|
1769
1769
|
}
|
|
1770
|
-
}),
|
|
1770
|
+
}), qt = ["data-variant", "data-hide-label"], Ut = ["for"], Gt = ["aria-invalid", "data-custom-validity", "id", "data-resize", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Vt = {
|
|
1771
1771
|
"data-visually-hidden": "true",
|
|
1772
1772
|
role: "status"
|
|
1773
|
-
},
|
|
1773
|
+
}, sl = /* @__PURE__ */ q({
|
|
1774
1774
|
__name: "textarea",
|
|
1775
1775
|
props: {
|
|
1776
1776
|
cols: { default: void 0 },
|
|
@@ -1818,7 +1818,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1818
1818
|
},
|
|
1819
1819
|
emits: ["update:value"],
|
|
1820
1820
|
setup(l, { emit: a }) {
|
|
1821
|
-
const i = a, e = l, t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(""), c = n(""),
|
|
1821
|
+
const i = a, e = l, t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(""), c = n(""), _ = n(""), L = n(null);
|
|
1822
1822
|
Y(() => {
|
|
1823
1823
|
const b = e.id ?? `textarea-${Q()}`;
|
|
1824
1824
|
t.value = b, v.value = b + re, u.value = b + ce, h.value = b + ve, s.value = e.invalidMessage || ie;
|
|
@@ -1858,8 +1858,8 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1858
1858
|
return !!(e.validMessage ?? e.validation === "valid");
|
|
1859
1859
|
}
|
|
1860
1860
|
function N() {
|
|
1861
|
-
var b, O,
|
|
1862
|
-
!((b = L.value) != null && b.validity.valid) || e.validation === "invalid" ? (r.value = h.value, s.value = e.invalidMessage || ((O = L.value) == null ? void 0 : O.validationMessage) || ie, ue() && (
|
|
1861
|
+
var b, O, f;
|
|
1862
|
+
!((b = L.value) != null && b.validity.valid) || e.validation === "invalid" ? (r.value = h.value, s.value = e.invalidMessage || ((O = L.value) == null ? void 0 : O.validationMessage) || ie, ue() && (_.value = s.value, ee(() => _.value = "", 1e3))) : B() && ((f = L.value) != null && f.validity.valid) && (e.required || e.minLength || e.maxLength) ? (r.value = u.value, ue() && (_.value = e.validMessage ?? fe, ee(() => _.value = "", 1e3))) : Z(e.message, e.showMessage) ? r.value = v.value : r.value = "";
|
|
1863
1863
|
}
|
|
1864
1864
|
function w(b) {
|
|
1865
1865
|
b.stopPropagation(), e.input && e.input(b), c.value = b.target.value, e.onInput && e.onInput(b), oe(i, b), N();
|
|
@@ -1874,13 +1874,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1874
1874
|
function y(b) {
|
|
1875
1875
|
b.stopPropagation(), e.onFocus && e.onFocus(b);
|
|
1876
1876
|
}
|
|
1877
|
-
return (b, O) => (
|
|
1877
|
+
return (b, O) => (p(), g("div", {
|
|
1878
1878
|
class: P(d(z)("db-textarea", e.class)),
|
|
1879
1879
|
"data-variant": b.variant,
|
|
1880
1880
|
"data-hide-label": d(K)(b.showLabel)
|
|
1881
1881
|
}, [
|
|
1882
|
-
|
|
1883
|
-
|
|
1882
|
+
I("label", { for: t.value }, S(b.label ?? d(ke)), 9, Ut),
|
|
1883
|
+
I("textarea", {
|
|
1884
1884
|
"aria-invalid": b.validation === "invalid",
|
|
1885
1885
|
"data-custom-validity": b.validation,
|
|
1886
1886
|
ref_key: "_ref",
|
|
@@ -1891,23 +1891,23 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1891
1891
|
required: d(M)(b.required, "required"),
|
|
1892
1892
|
readOnly: d(M)(b.readOnly, "readOnly") || d(M)(b.readonly, "readonly"),
|
|
1893
1893
|
form: b.form,
|
|
1894
|
-
maxLength: d(
|
|
1895
|
-
minLength: d(
|
|
1894
|
+
maxLength: d(ye)(b.maxLength, b.maxlength),
|
|
1895
|
+
minLength: d(ye)(b.minLength, b.minlength),
|
|
1896
1896
|
name: b.name,
|
|
1897
1897
|
wrap: b.wrap,
|
|
1898
1898
|
spellcheck: b.spellCheck,
|
|
1899
1899
|
autocomplete: b.autocomplete,
|
|
1900
|
-
onInput: O[0] || (O[0] = async (
|
|
1901
|
-
onChange: O[1] || (O[1] = async (
|
|
1902
|
-
onBlur: O[2] || (O[2] = async (
|
|
1903
|
-
onFocus: O[3] || (O[3] = async (
|
|
1900
|
+
onInput: O[0] || (O[0] = async (f) => w(f)),
|
|
1901
|
+
onChange: O[1] || (O[1] = async (f) => $(f)),
|
|
1902
|
+
onBlur: O[2] || (O[2] = async (f) => R(f)),
|
|
1903
|
+
onFocus: O[3] || (O[3] = async (f) => y(f)),
|
|
1904
1904
|
value: b.value ?? c.value,
|
|
1905
1905
|
"aria-describedby": r.value,
|
|
1906
|
-
placeholder: b.placeholder ?? d(
|
|
1907
|
-
rows: d(
|
|
1908
|
-
cols: d(
|
|
1909
|
-
}, null, 40,
|
|
1910
|
-
d(Z)(b.message, b.showMessage) ? (
|
|
1906
|
+
placeholder: b.placeholder ?? d(Je),
|
|
1907
|
+
rows: d(ye)(b.rows, d(Aa)),
|
|
1908
|
+
cols: d(ye)(b.cols)
|
|
1909
|
+
}, null, 40, Gt),
|
|
1910
|
+
d(Z)(b.message, b.showMessage) ? (p(), J(ae, {
|
|
1911
1911
|
key: 0,
|
|
1912
1912
|
size: "small",
|
|
1913
1913
|
icon: b.messageIcon,
|
|
@@ -1918,7 +1918,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1918
1918
|
]),
|
|
1919
1919
|
_: 1
|
|
1920
1920
|
}, 8, ["icon", "id"])) : F("", !0),
|
|
1921
|
-
B() ? (
|
|
1921
|
+
B() ? (p(), J(ae, {
|
|
1922
1922
|
key: 1,
|
|
1923
1923
|
size: "small",
|
|
1924
1924
|
semantic: "successful",
|
|
@@ -1939,13 +1939,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1939
1939
|
]),
|
|
1940
1940
|
_: 1
|
|
1941
1941
|
}, 8, ["id"]),
|
|
1942
|
-
|
|
1943
|
-
], 10,
|
|
1942
|
+
I("span", Vt, S(_.value), 1)
|
|
1943
|
+
], 10, qt));
|
|
1944
1944
|
}
|
|
1945
|
-
}),
|
|
1945
|
+
}), Ot = ["id", "data-width", "data-icon", "data-hide-icon", "data-active", "data-wrap", "aria-disabled"], Wt = ["aria-haspopup", "aria-expanded", "disabled"], Xt = ["data-auto-close", "id"], Ht = {
|
|
1946
1946
|
key: 0,
|
|
1947
1947
|
class: "db-mobile-navigation-back"
|
|
1948
|
-
},
|
|
1948
|
+
}, ul = /* @__PURE__ */ q({
|
|
1949
1949
|
__name: "navigation-item",
|
|
1950
1950
|
props: {
|
|
1951
1951
|
active: { type: Boolean, default: void 0 },
|
|
@@ -1991,7 +1991,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
1991
1991
|
var B;
|
|
1992
1992
|
if (i.value && r.value) {
|
|
1993
1993
|
const N = r.value.querySelector("menu");
|
|
1994
|
-
N && (((B = N.children) == null ? void 0 : B.length) > 0 ? (e.value = !0, s.value || (s.value = new
|
|
1994
|
+
N && (((B = N.children) == null ? void 0 : B.length) > 0 ? (e.value = !0, s.value || (s.value = new Ja(
|
|
1995
1995
|
r.value,
|
|
1996
1996
|
N
|
|
1997
1997
|
))) : t.value = !1);
|
|
@@ -2003,17 +2003,17 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2003
2003
|
}
|
|
2004
2004
|
);
|
|
2005
2005
|
function c(B) {
|
|
2006
|
-
|
|
2006
|
+
ta(B) && (u.value = !0, ee(() => {
|
|
2007
2007
|
u.value = !1;
|
|
2008
2008
|
}, 300));
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function _(B) {
|
|
2011
2011
|
B.stopPropagation(), a.onClick && a.onClick(B), e.value && (v.value = !0);
|
|
2012
2012
|
}
|
|
2013
2013
|
function L(B) {
|
|
2014
2014
|
B.stopPropagation(), v.value = !1;
|
|
2015
2015
|
}
|
|
2016
|
-
return (B, N) => (
|
|
2016
|
+
return (B, N) => (p(), g("li", {
|
|
2017
2017
|
ref_key: "_ref",
|
|
2018
2018
|
ref: r,
|
|
2019
2019
|
id: B.id,
|
|
@@ -2037,30 +2037,30 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2037
2037
|
"data-wrap": d(H)(B.wrap),
|
|
2038
2038
|
"aria-disabled": d(H)(B.disabled)
|
|
2039
2039
|
}, [
|
|
2040
|
-
t.value ? F("", !0) : (
|
|
2041
|
-
B.text ? (
|
|
2040
|
+
t.value ? F("", !0) : (p(), g(U, { key: 0 }, [
|
|
2041
|
+
B.text ? (p(), g(U, { key: 0 }, [
|
|
2042
2042
|
C(S(B.text), 1)
|
|
2043
2043
|
], 64)) : T(B.$slots, "default", { key: 1 })
|
|
2044
2044
|
], 64)),
|
|
2045
|
-
t.value ? (
|
|
2046
|
-
|
|
2045
|
+
t.value ? (p(), g(U, { key: 1 }, [
|
|
2046
|
+
I("button", {
|
|
2047
2047
|
class: "db-navigation-item-expand-button",
|
|
2048
2048
|
"aria-haspopup": e.value,
|
|
2049
2049
|
"aria-expanded": v.value,
|
|
2050
2050
|
disabled: d(M)(B.disabled, "disabled"),
|
|
2051
|
-
onClick: N[0] || (N[0] = async (w) =>
|
|
2051
|
+
onClick: N[0] || (N[0] = async (w) => _(w))
|
|
2052
2052
|
}, [
|
|
2053
|
-
B.text ? (
|
|
2053
|
+
B.text ? (p(), g(U, { key: 0 }, [
|
|
2054
2054
|
C(S(B.text), 1)
|
|
2055
2055
|
], 64)) : T(B.$slots, "default", { key: 1 })
|
|
2056
|
-
], 8,
|
|
2057
|
-
|
|
2056
|
+
], 8, Wt),
|
|
2057
|
+
I("menu", {
|
|
2058
2058
|
class: "db-sub-navigation",
|
|
2059
2059
|
"data-auto-close": u.value,
|
|
2060
2060
|
id: h.value,
|
|
2061
2061
|
onClick: N[1] || (N[1] = async (w) => c(w))
|
|
2062
2062
|
}, [
|
|
2063
|
-
e.value ? (
|
|
2063
|
+
e.value ? (p(), g("div", Ht, [
|
|
2064
2064
|
te(Be, {
|
|
2065
2065
|
icon: "arrow_left",
|
|
2066
2066
|
variant: "ghost",
|
|
@@ -2074,11 +2074,11 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2074
2074
|
}, 8, ["id", "onClick"])
|
|
2075
2075
|
])) : F("", !0),
|
|
2076
2076
|
T(B.$slots, "sub-navigation")
|
|
2077
|
-
], 8,
|
|
2077
|
+
], 8, Xt)
|
|
2078
2078
|
], 64)) : F("", !0)
|
|
2079
|
-
], 42,
|
|
2079
|
+
], 42, Ot));
|
|
2080
2080
|
}
|
|
2081
|
-
}),
|
|
2081
|
+
}), jt = ["id"], Yt = ["aria-disabled", "name", "open"], Kt = /* @__PURE__ */ q({
|
|
2082
2082
|
__name: "accordion-item",
|
|
2083
2083
|
props: {
|
|
2084
2084
|
defaultOpen: { type: Boolean, default: void 0 },
|
|
@@ -2124,34 +2124,34 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2124
2124
|
const r = !e.value;
|
|
2125
2125
|
a.onToggle && a.onToggle(r), e.value = r;
|
|
2126
2126
|
}
|
|
2127
|
-
return (s, r) => (
|
|
2127
|
+
return (s, r) => (p(), g("li", {
|
|
2128
2128
|
id: i.value,
|
|
2129
2129
|
class: P(d(z)("db-accordion-item", a.class))
|
|
2130
2130
|
}, [
|
|
2131
|
-
|
|
2131
|
+
I("details", {
|
|
2132
2132
|
"aria-disabled": d(H)(s.disabled),
|
|
2133
2133
|
ref_key: "_ref",
|
|
2134
2134
|
ref: u,
|
|
2135
2135
|
name: t.value,
|
|
2136
2136
|
open: e.value
|
|
2137
2137
|
}, [
|
|
2138
|
-
|
|
2138
|
+
I("summary", {
|
|
2139
2139
|
onClick: r[0] || (r[0] = async (c) => h(c))
|
|
2140
2140
|
}, [
|
|
2141
|
-
s.headlinePlain ? (
|
|
2141
|
+
s.headlinePlain ? (p(), g(U, { key: 0 }, [
|
|
2142
2142
|
C(S(s.headlinePlain), 1)
|
|
2143
2143
|
], 64)) : F("", !0),
|
|
2144
2144
|
s.headlinePlain ? F("", !0) : T(s.$slots, "headline", { key: 1 })
|
|
2145
2145
|
]),
|
|
2146
|
-
|
|
2147
|
-
s.text ? (
|
|
2146
|
+
I("div", null, [
|
|
2147
|
+
s.text ? (p(), g(U, { key: 0 }, [
|
|
2148
2148
|
C(S(s.text), 1)
|
|
2149
2149
|
], 64)) : T(s.$slots, "default", { key: 1 })
|
|
2150
2150
|
])
|
|
2151
|
-
], 8,
|
|
2152
|
-
], 10,
|
|
2151
|
+
], 8, Yt)
|
|
2152
|
+
], 10, jt));
|
|
2153
2153
|
}
|
|
2154
|
-
}),
|
|
2154
|
+
}), Jt = ["id", "data-variant"], rl = /* @__PURE__ */ q({
|
|
2155
2155
|
__name: "accordion",
|
|
2156
2156
|
props: {
|
|
2157
2157
|
behavior: { default: void 0 },
|
|
@@ -2203,8 +2203,8 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2203
2203
|
if (s) {
|
|
2204
2204
|
const r = a.behavior === "single" && a.initOpenIndex.length > 1 ? [a.initOpenIndex[0]] : a.initOpenIndex;
|
|
2205
2205
|
Array.from(s).forEach(
|
|
2206
|
-
(c,
|
|
2207
|
-
r != null && r.includes(
|
|
2206
|
+
(c, _) => {
|
|
2207
|
+
r != null && r.includes(_) && (c.open = !0);
|
|
2208
2208
|
}
|
|
2209
2209
|
);
|
|
2210
2210
|
}
|
|
@@ -2225,7 +2225,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2225
2225
|
}
|
|
2226
2226
|
return [];
|
|
2227
2227
|
}
|
|
2228
|
-
return (s, r) => (
|
|
2228
|
+
return (s, r) => (p(), g("ul", {
|
|
2229
2229
|
ref_key: "_ref",
|
|
2230
2230
|
ref: u,
|
|
2231
2231
|
id: i.value,
|
|
@@ -2233,15 +2233,15 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2233
2233
|
"data-variant": s.variant
|
|
2234
2234
|
}, [
|
|
2235
2235
|
s.items ? F("", !0) : T(s.$slots, "default", { key: 0 }),
|
|
2236
|
-
s.items ? (
|
|
2237
|
-
key: `accordion-item-${
|
|
2236
|
+
s.items ? (p(!0), g(U, { key: 1 }, he(h(), (c, _) => (p(), J(Kt, {
|
|
2237
|
+
key: `accordion-item-${_}`,
|
|
2238
2238
|
headlinePlain: c.headlinePlain,
|
|
2239
2239
|
disabled: c.disabled,
|
|
2240
2240
|
text: c.text
|
|
2241
2241
|
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : F("", !0)
|
|
2242
|
-
], 10,
|
|
2242
|
+
], 10, Jt));
|
|
2243
2243
|
}
|
|
2244
|
-
}),
|
|
2244
|
+
}), Qt = ["id", "aria-labelledby"], cl = /* @__PURE__ */ q({
|
|
2245
2245
|
__name: "navigation",
|
|
2246
2246
|
props: {
|
|
2247
2247
|
children: { default: void 0 },
|
|
@@ -2256,19 +2256,19 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2256
2256
|
const a = l, i = n(we), e = n(null);
|
|
2257
2257
|
return Y(() => {
|
|
2258
2258
|
i.value = a.id || "navigation-" + Q();
|
|
2259
|
-
}), (t, v) => (
|
|
2259
|
+
}), (t, v) => (p(), g("nav", {
|
|
2260
2260
|
ref_key: "_ref",
|
|
2261
2261
|
ref: e,
|
|
2262
2262
|
id: i.value,
|
|
2263
2263
|
"aria-labelledby": t.labelledBy,
|
|
2264
2264
|
class: P(d(z)("db-navigation", a.class))
|
|
2265
2265
|
}, [
|
|
2266
|
-
|
|
2266
|
+
I("menu", null, [
|
|
2267
2267
|
T(t.$slots, "default")
|
|
2268
2268
|
])
|
|
2269
|
-
], 10,
|
|
2269
|
+
], 10, Qt));
|
|
2270
2270
|
}
|
|
2271
|
-
}),
|
|
2271
|
+
}), Zt = ["id"], xt = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], vl = /* @__PURE__ */ q({
|
|
2272
2272
|
__name: "popover",
|
|
2273
2273
|
props: {
|
|
2274
2274
|
open: { type: [Boolean, String], default: void 0 },
|
|
@@ -2335,7 +2335,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2335
2335
|
}
|
|
2336
2336
|
return null;
|
|
2337
2337
|
}
|
|
2338
|
-
return (s, r) => (
|
|
2338
|
+
return (s, r) => (p(), g("div", {
|
|
2339
2339
|
ref_key: "_ref",
|
|
2340
2340
|
ref: t,
|
|
2341
2341
|
id: s.id,
|
|
@@ -2346,7 +2346,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2346
2346
|
onMouseleave: r[3] || (r[3] = async (c) => u(c))
|
|
2347
2347
|
}, [
|
|
2348
2348
|
T(s.$slots, "trigger"),
|
|
2349
|
-
|
|
2349
|
+
I("article", {
|
|
2350
2350
|
class: "db-popover-content",
|
|
2351
2351
|
"data-spacing": s.spacing,
|
|
2352
2352
|
"data-gap": d(H)(s.gap),
|
|
@@ -2357,10 +2357,10 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2357
2357
|
"data-placement": s.placement
|
|
2358
2358
|
}, [
|
|
2359
2359
|
T(s.$slots, "default")
|
|
2360
|
-
], 8,
|
|
2361
|
-
], 42,
|
|
2360
|
+
], 8, xt)
|
|
2361
|
+
], 42, Zt));
|
|
2362
2362
|
}
|
|
2363
|
-
}),
|
|
2363
|
+
}), ei = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], ai = /* @__PURE__ */ q({
|
|
2364
2364
|
__name: "tooltip",
|
|
2365
2365
|
props: {
|
|
2366
2366
|
showArrow: { type: [Boolean, String], default: void 0 },
|
|
@@ -2401,7 +2401,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2401
2401
|
function u() {
|
|
2402
2402
|
t.value && Fe(t.value);
|
|
2403
2403
|
}
|
|
2404
|
-
return (h, s) => (
|
|
2404
|
+
return (h, s) => (p(), g("i", {
|
|
2405
2405
|
role: "tooltip",
|
|
2406
2406
|
"aria-hidden": "true",
|
|
2407
2407
|
"data-gap": "true",
|
|
@@ -2418,9 +2418,9 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2418
2418
|
onClick: s[0] || (s[0] = async (r) => v(r))
|
|
2419
2419
|
}, [
|
|
2420
2420
|
T(h.$slots, "default")
|
|
2421
|
-
], 10,
|
|
2421
|
+
], 10, ei));
|
|
2422
2422
|
}
|
|
2423
|
-
}),
|
|
2423
|
+
}), ti = ["id"], ii = { role: "tablist" }, li = /* @__PURE__ */ q({
|
|
2424
2424
|
__name: "tab-list",
|
|
2425
2425
|
props: {
|
|
2426
2426
|
children: { default: void 0 },
|
|
@@ -2434,18 +2434,18 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2434
2434
|
const a = l, i = n(we), e = n(null);
|
|
2435
2435
|
return Y(() => {
|
|
2436
2436
|
i.value = a.id || "tab-list-" + Q();
|
|
2437
|
-
}), (t, v) => (
|
|
2437
|
+
}), (t, v) => (p(), g("div", {
|
|
2438
2438
|
ref_key: "_ref",
|
|
2439
2439
|
ref: e,
|
|
2440
2440
|
id: i.value,
|
|
2441
2441
|
class: P(d(z)("db-tab-list", a.class))
|
|
2442
2442
|
}, [
|
|
2443
|
-
|
|
2443
|
+
I("ul", ii, [
|
|
2444
2444
|
T(t.$slots, "default")
|
|
2445
2445
|
])
|
|
2446
|
-
], 10,
|
|
2446
|
+
], 10, ti));
|
|
2447
2447
|
}
|
|
2448
|
-
}),
|
|
2448
|
+
}), oi = ["id", "aria-labelledby"], di = /* @__PURE__ */ q({
|
|
2449
2449
|
__name: "tab-panel",
|
|
2450
2450
|
props: {
|
|
2451
2451
|
content: { default: void 0 },
|
|
@@ -2460,7 +2460,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2460
2460
|
setup(l) {
|
|
2461
2461
|
const a = l, i = n(null);
|
|
2462
2462
|
return Y(() => {
|
|
2463
|
-
}), (e, t) => (
|
|
2463
|
+
}), (e, t) => (p(), g("section", {
|
|
2464
2464
|
role: "tabpanel",
|
|
2465
2465
|
ref_key: "_ref",
|
|
2466
2466
|
ref: i,
|
|
@@ -2468,13 +2468,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2468
2468
|
id: e.id,
|
|
2469
2469
|
"aria-labelledby": e.labelledBy
|
|
2470
2470
|
}, [
|
|
2471
|
-
e.content ? (
|
|
2471
|
+
e.content ? (p(), g(U, { key: 0 }, [
|
|
2472
2472
|
C(S(e.content), 1)
|
|
2473
2473
|
], 64)) : F("", !0),
|
|
2474
2474
|
T(e.$slots, "default")
|
|
2475
|
-
], 10,
|
|
2475
|
+
], 10, oi));
|
|
2476
2476
|
}
|
|
2477
|
-
}),
|
|
2477
|
+
}), ni = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], fl = /* @__PURE__ */ q({
|
|
2478
2478
|
__name: "tabs",
|
|
2479
2479
|
props: {
|
|
2480
2480
|
arrowScrollDistance: { default: void 0 },
|
|
@@ -2534,7 +2534,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2534
2534
|
const $ = w.scrollWidth > w.clientWidth;
|
|
2535
2535
|
v.value = $ && w.scrollLeft > 1, u.value = $ && w.scrollLeft < w.scrollWidth - w.clientWidth;
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function _(w) {
|
|
2538
2538
|
var R;
|
|
2539
2539
|
let $ = Number(a.arrowScrollDistance) || 100;
|
|
2540
2540
|
w && ($ *= -1), (R = h.value) == null || R.scrollBy({
|
|
@@ -2563,18 +2563,18 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2563
2563
|
s.value.getElementsByClassName("db-tab-item")
|
|
2564
2564
|
);
|
|
2565
2565
|
for (const y of $) {
|
|
2566
|
-
const b = $.indexOf(y), O = y.querySelector("label"),
|
|
2567
|
-
if (
|
|
2568
|
-
if (!
|
|
2566
|
+
const b = $.indexOf(y), O = y.querySelector("label"), f = y.querySelector("input");
|
|
2567
|
+
if (f && O) {
|
|
2568
|
+
if (!f.id) {
|
|
2569
2569
|
const E = `${e.value}-tab-${b}`;
|
|
2570
|
-
O.setAttribute("for", E),
|
|
2570
|
+
O.setAttribute("for", E), f.setAttribute(
|
|
2571
2571
|
"aria-controls",
|
|
2572
2572
|
`${e.value}-tab-panel-${b}`
|
|
2573
|
-
),
|
|
2573
|
+
), f.id = E, f.setAttribute("name", e.value);
|
|
2574
2574
|
}
|
|
2575
2575
|
if (w) {
|
|
2576
2576
|
const E = !a.initialSelectedMode || a.initialSelectedMode === "auto", m = a.initialSelectedIndex == null && b === 0 || Number(a.initialSelectedIndex) === b;
|
|
2577
|
-
E && m &&
|
|
2577
|
+
E && m && f.click();
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
2580
|
}
|
|
@@ -2603,7 +2603,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2603
2603
|
}
|
|
2604
2604
|
a.onTabSelect && a.onTabSelect(w);
|
|
2605
2605
|
}
|
|
2606
|
-
return (w, $) => (
|
|
2606
|
+
return (w, $) => (p(), g("div", {
|
|
2607
2607
|
ref_key: "_ref",
|
|
2608
2608
|
ref: s,
|
|
2609
2609
|
id: i.value,
|
|
@@ -2614,24 +2614,24 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2614
2614
|
"data-width": w.width ?? "auto",
|
|
2615
2615
|
onInput: $[0] || ($[0] = async (R) => N(R))
|
|
2616
2616
|
}, [
|
|
2617
|
-
v.value ? (
|
|
2617
|
+
v.value ? (p(), J(Be, {
|
|
2618
2618
|
key: 0,
|
|
2619
2619
|
class: "tabs-scroll-left",
|
|
2620
2620
|
variant: "ghost",
|
|
2621
2621
|
icon: "chevron_left",
|
|
2622
2622
|
type: "button",
|
|
2623
2623
|
noText: !0,
|
|
2624
|
-
onClick: (R) =>
|
|
2624
|
+
onClick: (R) => _(!0)
|
|
2625
2625
|
}, {
|
|
2626
2626
|
default: V(() => $[1] || ($[1] = [
|
|
2627
2627
|
C(" Scroll left ")
|
|
2628
2628
|
])),
|
|
2629
2629
|
_: 1
|
|
2630
2630
|
}, 8, ["onClick"])) : F("", !0),
|
|
2631
|
-
w.tabs ? (
|
|
2632
|
-
te(
|
|
2631
|
+
w.tabs ? (p(), g(U, { key: 1 }, [
|
|
2632
|
+
te(li, null, {
|
|
2633
2633
|
default: V(() => [
|
|
2634
|
-
(
|
|
2634
|
+
(p(!0), g(U, null, he(r(), (R, y) => (p(), J(Mt, {
|
|
2635
2635
|
key: w.name + "tab-item" + y,
|
|
2636
2636
|
active: R.active,
|
|
2637
2637
|
label: R.label,
|
|
@@ -2642,7 +2642,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2642
2642
|
]),
|
|
2643
2643
|
_: 1
|
|
2644
2644
|
}),
|
|
2645
|
-
(
|
|
2645
|
+
(p(!0), g(U, null, he(r(), (R, y) => (p(), J(di, {
|
|
2646
2646
|
key: w.name + "tab-panel" + y,
|
|
2647
2647
|
content: R.content
|
|
2648
2648
|
}, {
|
|
@@ -2652,14 +2652,14 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2652
2652
|
_: 2
|
|
2653
2653
|
}, 1032, ["content"]))), 128))
|
|
2654
2654
|
], 64)) : F("", !0),
|
|
2655
|
-
u.value ? (
|
|
2655
|
+
u.value ? (p(), J(Be, {
|
|
2656
2656
|
key: 2,
|
|
2657
2657
|
class: "tabs-scroll-right",
|
|
2658
2658
|
variant: "ghost",
|
|
2659
2659
|
icon: "chevron_right",
|
|
2660
2660
|
type: "button",
|
|
2661
2661
|
noText: !0,
|
|
2662
|
-
onClick: (R) =>
|
|
2662
|
+
onClick: (R) => _()
|
|
2663
2663
|
}, {
|
|
2664
2664
|
default: V(() => $[2] || ($[2] = [
|
|
2665
2665
|
C(" Scroll right ")
|
|
@@ -2667,9 +2667,9 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2667
2667
|
_: 1
|
|
2668
2668
|
}, 8, ["onClick"])) : F("", !0),
|
|
2669
2669
|
T(w.$slots, "default")
|
|
2670
|
-
], 42,
|
|
2670
|
+
], 42, ni));
|
|
2671
2671
|
}
|
|
2672
|
-
}),
|
|
2672
|
+
}), pl = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], ml = ["medium", "small", "large", "none"], hl = ["medium", "small", "large", "none"], si = ["left", "right", "left-start", "left-end", "right-start", "right-end"], ui = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], gl = [...si, ...ui], bl = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], yl = ["horizontal", "vertical"], kl = ["full", "auto"], Bl = ["full", "medium", "large", "small"], Sl = ["none", "slow", "fast"], wl = ["auto", "fixed"], Il = ["small", "medium"], _l = ["weak", "strong"], Ll = ["invalid", "valid", "no-validation"], Tl = ["above", "floating"], $l = ["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"], Al = ["time", "true", "false", "date", "page", "step", "location"], Cl = ["_self", "_blank", "_parent", "_top"], El = ["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"], ri = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], Dl = /* @__PURE__ */ q({
|
|
2673
2673
|
__name: "stack",
|
|
2674
2674
|
props: {
|
|
2675
2675
|
variant: { default: void 0 },
|
|
@@ -2687,7 +2687,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2687
2687
|
},
|
|
2688
2688
|
setup(l) {
|
|
2689
2689
|
const a = l, i = n(null);
|
|
2690
|
-
return (e, t) => (
|
|
2690
|
+
return (e, t) => (p(), g("div", {
|
|
2691
2691
|
ref_key: "_ref",
|
|
2692
2692
|
ref: i,
|
|
2693
2693
|
id: e.id,
|
|
@@ -2700,9 +2700,9 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2700
2700
|
"data-wrap": d(H)(e.wrap)
|
|
2701
2701
|
}, [
|
|
2702
2702
|
T(e.$slots, "default")
|
|
2703
|
-
], 10,
|
|
2703
|
+
], 10, ri));
|
|
2704
2704
|
}
|
|
2705
|
-
}),
|
|
2705
|
+
}), ci = ["role", "aria-label", "id"], vi = /* @__PURE__ */ q({
|
|
2706
2706
|
__name: "custom-select-list",
|
|
2707
2707
|
props: {
|
|
2708
2708
|
label: { default: void 0 },
|
|
@@ -2716,7 +2716,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2716
2716
|
},
|
|
2717
2717
|
setup(l) {
|
|
2718
2718
|
const a = l, i = n(null);
|
|
2719
|
-
return (e, t) => (
|
|
2719
|
+
return (e, t) => (p(), g("div", {
|
|
2720
2720
|
role: e.multiple ? "group" : "radiogroup",
|
|
2721
2721
|
"aria-label": e.label,
|
|
2722
2722
|
ref_key: "_ref",
|
|
@@ -2724,12 +2724,12 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2724
2724
|
id: e.id,
|
|
2725
2725
|
class: P(d(z)("db-custom-select-list", a.class))
|
|
2726
2726
|
}, [
|
|
2727
|
-
|
|
2727
|
+
I("ul", null, [
|
|
2728
2728
|
T(e.$slots, "default")
|
|
2729
2729
|
])
|
|
2730
|
-
], 10,
|
|
2730
|
+
], 10, ci));
|
|
2731
2731
|
}
|
|
2732
|
-
}),
|
|
2732
|
+
}), fi = ["id", "data-divider"], pi = ["data-icon", "data-hide-icon", "data-icon-after"], mi = ["type", "name", "form", "checked", "disabled", "value"], hi = { key: 1 }, gi = /* @__PURE__ */ q({
|
|
2733
2733
|
__name: "custom-select-list-item",
|
|
2734
2734
|
props: {
|
|
2735
2735
|
groupTitle: { default: void 0 },
|
|
@@ -2774,7 +2774,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2774
2774
|
if (!(e.isGroupTitle || e.type === "checkbox"))
|
|
2775
2775
|
return M(e.checked, "checked") ? "check" : "x_placeholder";
|
|
2776
2776
|
}
|
|
2777
|
-
return (r, c) => (
|
|
2777
|
+
return (r, c) => (p(), g("li", {
|
|
2778
2778
|
ref_key: "_ref",
|
|
2779
2779
|
ref: u,
|
|
2780
2780
|
id: t.value,
|
|
@@ -2786,13 +2786,13 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2786
2786
|
),
|
|
2787
2787
|
"data-divider": d(H)(v.value)
|
|
2788
2788
|
}, [
|
|
2789
|
-
r.isGroupTitle ? (
|
|
2789
|
+
r.isGroupTitle ? (p(), g("span", hi, S(r.groupTitle), 1)) : (p(), g("label", {
|
|
2790
2790
|
key: 0,
|
|
2791
2791
|
"data-icon": r.type !== "checkbox" && r.icon ? r.icon : void 0,
|
|
2792
2792
|
"data-hide-icon": d(K)(r.showIcon),
|
|
2793
2793
|
"data-icon-after": s()
|
|
2794
2794
|
}, [
|
|
2795
|
-
|
|
2795
|
+
I("input", {
|
|
2796
2796
|
class: "db-custom-select-list-item-checkbox",
|
|
2797
2797
|
"data-disable-focus": "true",
|
|
2798
2798
|
type: r.type,
|
|
@@ -2801,15 +2801,15 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2801
2801
|
checked: d(M)(r.checked, "checked"),
|
|
2802
2802
|
disabled: d(M)(r.disabled, "disabled"),
|
|
2803
2803
|
value: r.value,
|
|
2804
|
-
onChange: c[0] || (c[0] = async (
|
|
2805
|
-
}, null, 40,
|
|
2806
|
-
r.label ? (
|
|
2804
|
+
onChange: c[0] || (c[0] = async (_) => h(_))
|
|
2805
|
+
}, null, 40, mi),
|
|
2806
|
+
r.label ? (p(), g(U, { key: 0 }, [
|
|
2807
2807
|
C(S(r.label), 1)
|
|
2808
2808
|
], 64)) : T(r.$slots, "default", { key: 1 })
|
|
2809
|
-
], 8,
|
|
2810
|
-
], 10,
|
|
2809
|
+
], 8, pi))
|
|
2810
|
+
], 10, fi));
|
|
2811
2811
|
}
|
|
2812
|
-
}),
|
|
2812
|
+
}), bi = ["id", "data-width"], yi = /* @__PURE__ */ q({
|
|
2813
2813
|
__name: "custom-select-dropdown",
|
|
2814
2814
|
props: {
|
|
2815
2815
|
width: { default: "fixed" },
|
|
@@ -2822,7 +2822,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2822
2822
|
},
|
|
2823
2823
|
setup(l) {
|
|
2824
2824
|
const a = l, i = n(null);
|
|
2825
|
-
return (e, t) => (
|
|
2825
|
+
return (e, t) => (p(), g("article", {
|
|
2826
2826
|
"data-spacing": "none",
|
|
2827
2827
|
ref_key: "_ref",
|
|
2828
2828
|
ref: i,
|
|
@@ -2831,7 +2831,7 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2831
2831
|
"data-width": e.width
|
|
2832
2832
|
}, [
|
|
2833
2833
|
T(e.$slots, "default")
|
|
2834
|
-
], 10,
|
|
2834
|
+
], 10, bi));
|
|
2835
2835
|
}
|
|
2836
2836
|
}), ne = class ne {
|
|
2837
2837
|
static runCallbacks(a) {
|
|
@@ -2854,10 +2854,10 @@ const Ja = ["id", "data-width", "data-on-forcing-mobile"], Qa = { class: "db-hea
|
|
|
2854
2854
|
};
|
|
2855
2855
|
se(ne, "callbacks", {}), se(ne, "_instance", null);
|
|
2856
2856
|
let De = ne;
|
|
2857
|
-
const
|
|
2857
|
+
const ki = ["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"], Bi = ["id"], Si = ["id", "form", "name", "multiple", "disabled", "required"], wi = ["disabled", "value"], Ii = ["open"], _i = ["id", "aria-disabled", "aria-labelledby"], Li = ["data-visually-hidden", "id"], Ti = { key: 1 }, $i = { key: 0 }, Ai = { key: 0 }, Ci = { class: "db-checkbox db-custom-select-list-item" }, Ei = ["form", "checked"], Ni = ["aria-hidden", "id"], Di = {
|
|
2858
2858
|
"data-visually-hidden": "true",
|
|
2859
2859
|
role: "status"
|
|
2860
|
-
},
|
|
2860
|
+
}, Fl = /* @__PURE__ */ q({
|
|
2861
2861
|
__name: "custom-select",
|
|
2862
2862
|
props: {
|
|
2863
2863
|
children: { default: void 0 },
|
|
@@ -2916,10 +2916,10 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2916
2916
|
},
|
|
2917
2917
|
emits: ["update:values"],
|
|
2918
2918
|
setup(l, { emit: a }) {
|
|
2919
|
-
const i = l, e = n(void 0), t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(void 0), c = n(void 0),
|
|
2919
|
+
const i = l, e = n(void 0), t = n(void 0), v = n(void 0), u = n(void 0), h = n(void 0), s = n(void 0), r = n(void 0), c = n(void 0), _ = n(void 0), L = n(void 0), B = n("no-validation"), N = n(""), w = n(""), $ = n(void 0), R = n(""), y = n([]), b = n(!1), O = n(!1), f = n(0), E = n([]), m = n([]), X = n(!1), j = n(void 0), Ae = n(0), pe = n(!1), Ie = n(!1), ia = n(null), G = n(null), ge = n(null), Ce = n(null), Me = n(null);
|
|
2920
2920
|
Y(() => {
|
|
2921
2921
|
const o = i.id ?? `custom-select-${Q()}`;
|
|
2922
|
-
e.value = o, t.value = o + re, v.value = o + ce, u.value = o + ve, s.value = o +
|
|
2922
|
+
e.value = o, t.value = o + re, v.value = o + ce, u.value = o + ve, s.value = o + je, r.value = o + He, c.value = o + "-summary", _.value = o + Ne, $.value = o + "-selected-labels", L.value = o + "-info", h.value = i.invalidMessage || ie;
|
|
2923
2923
|
}), A(
|
|
2924
2924
|
() => [G.value],
|
|
2925
2925
|
() => {
|
|
@@ -2945,7 +2945,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2945
2945
|
() => {
|
|
2946
2946
|
if (e.value) {
|
|
2947
2947
|
const o = e.value + re;
|
|
2948
|
-
r.value = e.value +
|
|
2948
|
+
r.value = e.value + He, s.value = e.value + je, v.value = e.value + ce, u.value = e.value + ve, _.value = e.value + Ne, Z(i.message, i.showMessage) ? qe(o) : qe();
|
|
2949
2949
|
}
|
|
2950
2950
|
},
|
|
2951
2951
|
{
|
|
@@ -2974,18 +2974,18 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
2974
2974
|
flush: "post"
|
|
2975
2975
|
}
|
|
2976
2976
|
), A(
|
|
2977
|
-
() => [i.showSelectAll,
|
|
2977
|
+
() => [i.showSelectAll, f.value, i.multiple],
|
|
2978
2978
|
() => {
|
|
2979
|
-
b.value = !!(i.multiple && (i.showSelectAll ||
|
|
2979
|
+
b.value = !!(i.multiple && (i.showSelectAll || f.value > 5));
|
|
2980
2980
|
},
|
|
2981
2981
|
{
|
|
2982
2982
|
immediate: !0,
|
|
2983
2983
|
flush: "post"
|
|
2984
2984
|
}
|
|
2985
2985
|
), A(
|
|
2986
|
-
() => [i.showSearch,
|
|
2986
|
+
() => [i.showSearch, f.value],
|
|
2987
2987
|
() => {
|
|
2988
|
-
O.value = i.showSearch ||
|
|
2988
|
+
O.value = i.showSearch || f.value > 9;
|
|
2989
2989
|
},
|
|
2990
2990
|
{
|
|
2991
2991
|
immediate: !0,
|
|
@@ -3003,7 +3003,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3003
3003
|
), A(
|
|
3004
3004
|
() => [E.value],
|
|
3005
3005
|
() => {
|
|
3006
|
-
|
|
3006
|
+
la();
|
|
3007
3007
|
},
|
|
3008
3008
|
{
|
|
3009
3009
|
immediate: !0,
|
|
@@ -3019,10 +3019,10 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3019
3019
|
flush: "post"
|
|
3020
3020
|
}
|
|
3021
3021
|
), A(
|
|
3022
|
-
() => [E.value,
|
|
3022
|
+
() => [E.value, f.value],
|
|
3023
3023
|
() => {
|
|
3024
3024
|
var o, k;
|
|
3025
|
-
((o = E.value) == null ? void 0 : o.length) === 0 ? (pe.value = !1,
|
|
3025
|
+
((o = E.value) == null ? void 0 : o.length) === 0 ? (pe.value = !1, Ie.value = !1) : ((k = E.value) == null ? void 0 : k.length) === f.value ? (Ie.value = !1, pe.value = !0) : E.value && (Ie.value = !0);
|
|
3026
3026
|
},
|
|
3027
3027
|
{
|
|
3028
3028
|
immediate: !0,
|
|
@@ -3032,7 +3032,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3032
3032
|
() => [i.options],
|
|
3033
3033
|
() => {
|
|
3034
3034
|
var o;
|
|
3035
|
-
m.value = i.options,
|
|
3035
|
+
m.value = i.options, f.value = ((o = i.options) == null ? void 0 : o.filter((k) => !k.isGroupTitle).length) ?? 0;
|
|
3036
3036
|
},
|
|
3037
3037
|
{
|
|
3038
3038
|
immediate: !0,
|
|
@@ -3044,8 +3044,8 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3044
3044
|
var o, k;
|
|
3045
3045
|
(o = m.value) != null && o.length && (y.value = (k = m.value) == null ? void 0 : k.filter(
|
|
3046
3046
|
(D) => {
|
|
3047
|
-
var x,
|
|
3048
|
-
return !D.value || !((x = E.value) != null && x.includes) ? !1 : !D.isGroupTitle && ((
|
|
3047
|
+
var x, be;
|
|
3048
|
+
return !D.value || !((x = E.value) != null && x.includes) ? !1 : !D.isGroupTitle && ((be = E.value) == null ? void 0 : be.includes(D.value));
|
|
3049
3049
|
}
|
|
3050
3050
|
));
|
|
3051
3051
|
},
|
|
@@ -3057,7 +3057,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3057
3057
|
() => [y.value, i.selectedType, i.amountText],
|
|
3058
3058
|
() => {
|
|
3059
3059
|
var o, k, D;
|
|
3060
|
-
(o = y.value) != null && o.length ? i.selectedType === "amount" ? w.value = i.amountText ? i.amountText : `${(k = y.value) == null ? void 0 : k.length} ${
|
|
3060
|
+
(o = y.value) != null && o.length ? i.selectedType === "amount" ? w.value = i.amountText ? i.amountText : `${(k = y.value) == null ? void 0 : k.length} ${La}` : w.value = (D = y.value) == null ? void 0 : D.map((x) => Se(x)).join(", ") : w.value = "";
|
|
3061
3061
|
},
|
|
3062
3062
|
{
|
|
3063
3063
|
immediate: !0,
|
|
@@ -3074,19 +3074,19 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3074
3074
|
flush: "post"
|
|
3075
3075
|
}
|
|
3076
3076
|
), A(
|
|
3077
|
-
() => [
|
|
3077
|
+
() => [Ie.value, Ce.value],
|
|
3078
3078
|
() => {
|
|
3079
|
-
Ce.value && (Ce.value.indeterminate = !!
|
|
3079
|
+
Ce.value && (Ce.value.indeterminate = !!Ie.value);
|
|
3080
3080
|
},
|
|
3081
3081
|
{
|
|
3082
3082
|
immediate: !0,
|
|
3083
3083
|
flush: "post"
|
|
3084
3084
|
}
|
|
3085
3085
|
), A(
|
|
3086
|
-
() => [
|
|
3086
|
+
() => [ge.value, i.invalidMessage],
|
|
3087
3087
|
() => {
|
|
3088
3088
|
var o;
|
|
3089
|
-
h.value = i.invalidMessage || ((o =
|
|
3089
|
+
h.value = i.invalidMessage || ((o = ge.value) == null ? void 0 : o.validationMessage) || ie;
|
|
3090
3090
|
},
|
|
3091
3091
|
{
|
|
3092
3092
|
immediate: !0,
|
|
@@ -3096,18 +3096,18 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3096
3096
|
function ze() {
|
|
3097
3097
|
return !!(i.validMessage ?? i.validation === "valid");
|
|
3098
3098
|
}
|
|
3099
|
-
function
|
|
3099
|
+
function la() {
|
|
3100
3100
|
var o, k, D;
|
|
3101
|
-
|
|
3101
|
+
ge.value && (ge.value.value = da()), !((o = ge.value) != null && o.validity.valid) || i.validation === "invalid" ? (N.value = u.value, h.value = i.invalidMessage || ((k = ge.value) == null ? void 0 : k.validationMessage) || ie, ue() && (R.value = h.value, ee(() => R.value = "", 1e3)), B.value = i.validation ?? "invalid") : ze() && ((D = ge.value) != null && D.validity.valid) && i.required ? (N.value = v.value, ue() && (R.value = i.validMessage ?? fe, ee(() => R.value = "", 1e3)), B.value = i.validation ?? "valid") : Z(i.message, i.showMessage) ? (N.value = t.value, B.value = i.validation ?? "no-validation") : (N.value = _.value, B.value = i.validation ?? "no-validation");
|
|
3102
3102
|
}
|
|
3103
|
-
function
|
|
3103
|
+
function oa(o) {
|
|
3104
3104
|
i.onDropdownToggle && i.onDropdownToggle(o), o.target.open ? j.value = new De().addCallback(
|
|
3105
|
-
(k) =>
|
|
3105
|
+
(k) => fa(k)
|
|
3106
3106
|
) : j.value && new De().removeCallback(
|
|
3107
3107
|
j.value
|
|
3108
3108
|
);
|
|
3109
3109
|
}
|
|
3110
|
-
function
|
|
3110
|
+
function da() {
|
|
3111
3111
|
var o;
|
|
3112
3112
|
return (o = E.value) != null && o.length ? E.value.at(0) ?? "" : "";
|
|
3113
3113
|
}
|
|
@@ -3116,21 +3116,21 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3116
3116
|
const k = [];
|
|
3117
3117
|
o && k.push(o), $.value && ((D = w.value) != null && D.length) && k.push($.value), N.value = k.join(" ");
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3119
|
+
function na() {
|
|
3120
3120
|
return i.selectAllLabel ?? ke;
|
|
3121
3121
|
}
|
|
3122
3122
|
function Se(o) {
|
|
3123
3123
|
var k;
|
|
3124
3124
|
return o.label ?? ((k = o.value) == null ? void 0 : k.toString()) ?? "";
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3126
|
+
function sa(o) {
|
|
3127
3127
|
var k, D;
|
|
3128
3128
|
return o && ((k = E.value) != null && k.includes) ? (D = E.value) == null ? void 0 : D.includes(o) : !1;
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3131
|
-
return i.removeTagsTexts && i.removeTagsTexts.length > o ? i.removeTagsTexts.at(o) : `${
|
|
3130
|
+
function ua(o) {
|
|
3131
|
+
return i.removeTagsTexts && i.removeTagsTexts.length > o ? i.removeTagsTexts.at(o) : `${Qe} ${y.value ? Se(y.value[o]) : ""}`;
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function ra(o, k) {
|
|
3134
3134
|
k.stopPropagation(), Ge(o.value), Te();
|
|
3135
3135
|
}
|
|
3136
3136
|
function Ue() {
|
|
@@ -3141,8 +3141,8 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3141
3141
|
}, 100);
|
|
3142
3142
|
}
|
|
3143
3143
|
}
|
|
3144
|
-
function
|
|
3145
|
-
var k, D, x,
|
|
3144
|
+
function ca(o) {
|
|
3145
|
+
var k, D, x, be, W, me, $e;
|
|
3146
3146
|
if ((k = G.value) != null && k.open) {
|
|
3147
3147
|
if (document) {
|
|
3148
3148
|
const de = document.activeElement;
|
|
@@ -3152,11 +3152,11 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3152
3152
|
if (o.key === "ArrowDown" || o.key === "ArrowRight")
|
|
3153
3153
|
le != null && le.nextElementSibling ? (x = (D = le == null ? void 0 : le.nextElementSibling) == null ? void 0 : D.querySelector("input")) == null || x.focus() : Ee(de);
|
|
3154
3154
|
else if (le != null && le.previousElementSibling)
|
|
3155
|
-
(W = (
|
|
3155
|
+
(W = (be = le == null ? void 0 : le.previousElementSibling) == null ? void 0 : be.querySelector("input")) == null || W.focus();
|
|
3156
3156
|
else if (G.value.querySelector('input[type="checkbox"]') !== de)
|
|
3157
3157
|
Ee(de);
|
|
3158
3158
|
else {
|
|
3159
|
-
const Ve =
|
|
3159
|
+
const Ve = Xe(G.value);
|
|
3160
3160
|
if (Ve)
|
|
3161
3161
|
ee(() => {
|
|
3162
3162
|
Ve.focus();
|
|
@@ -3176,9 +3176,9 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3176
3176
|
o.stopPropagation(), o.preventDefault();
|
|
3177
3177
|
} else (o.key === "ArrowDown" || o.key === "ArrowRight") && (Ue(), G.value && (G.value.open = !0), Re(), o.stopPropagation(), o.preventDefault());
|
|
3178
3178
|
}
|
|
3179
|
-
function
|
|
3179
|
+
function va(o) {
|
|
3180
3180
|
var k;
|
|
3181
|
-
o.key === "Escape" && G.value && ((k = G.value) != null && k.open) ? (Le("close"), Te()) : (o.key === "ArrowDown" || o.key === "ArrowUp" || o.key === "ArrowLeft" || o.key === "ArrowRight") &&
|
|
3181
|
+
o.key === "Escape" && G.value && ((k = G.value) != null && k.open) ? (Le("close"), Te()) : (o.key === "ArrowDown" || o.key === "ArrowUp" || o.key === "ArrowLeft" || o.key === "ArrowRight") && ca(o);
|
|
3182
3182
|
}
|
|
3183
3183
|
function Le(o) {
|
|
3184
3184
|
if (G.value) {
|
|
@@ -3190,12 +3190,12 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3190
3190
|
}
|
|
3191
3191
|
}
|
|
3192
3192
|
}
|
|
3193
|
-
function
|
|
3193
|
+
function fa(o) {
|
|
3194
3194
|
var D;
|
|
3195
3195
|
const k = o.target;
|
|
3196
3196
|
(D = G.value) != null && D.open && !G.value.contains(k) && (G.value.open = !1);
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3198
|
+
function _e(o) {
|
|
3199
3199
|
(/* @__PURE__ */ new Date()).getTime() - Ae.value < 200 || (i.onOptionSelected && (E.value = o, i.onOptionSelected(o ?? [])), oe(
|
|
3200
3200
|
() => {
|
|
3201
3201
|
},
|
|
@@ -3209,15 +3209,15 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3209
3209
|
}
|
|
3210
3210
|
function Ge(o) {
|
|
3211
3211
|
var k;
|
|
3212
|
-
o && (i.multiple ? (k = E.value) != null && k.includes(o) ?
|
|
3212
|
+
o && (i.multiple ? (k = E.value) != null && k.includes(o) ? _e(E.value.filter((D) => D !== o)) : _e([...E.value || [], o]) : (_e([o]), Le("close")));
|
|
3213
3213
|
}
|
|
3214
|
-
function
|
|
3214
|
+
function pa() {
|
|
3215
3215
|
var o;
|
|
3216
|
-
if (((o = E.value) == null ? void 0 : o.length) ===
|
|
3217
|
-
|
|
3216
|
+
if (((o = E.value) == null ? void 0 : o.length) === f.value)
|
|
3217
|
+
_e([]);
|
|
3218
3218
|
else {
|
|
3219
3219
|
const k = O.value && Me.value ? Me.value.value : void 0;
|
|
3220
|
-
|
|
3220
|
+
_e(
|
|
3221
3221
|
i.options ? i.options.filter(
|
|
3222
3222
|
(D) => {
|
|
3223
3223
|
var x;
|
|
@@ -3244,34 +3244,34 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3244
3244
|
}
|
|
3245
3245
|
function Re(o) {
|
|
3246
3246
|
if (G.value) {
|
|
3247
|
-
const k =
|
|
3247
|
+
const k = Xe(G.value);
|
|
3248
3248
|
k ? ee(() => {
|
|
3249
3249
|
k.focus();
|
|
3250
3250
|
}, 100) : o || Ee();
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
3253
|
-
function
|
|
3253
|
+
function ma(o) {
|
|
3254
3254
|
o.stopPropagation();
|
|
3255
3255
|
const k = o.target.value;
|
|
3256
3256
|
m.value = !i.options || !k || k.length === 0 ? i.options : i.options.filter(
|
|
3257
3257
|
(D) => !D.isGroupTitle && Se(D).toLowerCase().includes(k.toLowerCase())
|
|
3258
3258
|
);
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3261
|
-
|
|
3260
|
+
function ha() {
|
|
3261
|
+
_e([]), Te();
|
|
3262
3262
|
}
|
|
3263
3263
|
function Te() {
|
|
3264
3264
|
var o, k;
|
|
3265
3265
|
(k = (o = G.value) == null ? void 0 : o.querySelector("summary")) == null || k.focus();
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function Mi() {
|
|
3268
3268
|
}
|
|
3269
3269
|
return (o, k) => {
|
|
3270
|
-
var D, x,
|
|
3271
|
-
return
|
|
3270
|
+
var D, x, be;
|
|
3271
|
+
return p(), g("div", {
|
|
3272
3272
|
id: e.value,
|
|
3273
3273
|
ref_key: "_ref",
|
|
3274
|
-
ref:
|
|
3274
|
+
ref: ia,
|
|
3275
3275
|
class: P(d(z)("db-custom-select", i.class)),
|
|
3276
3276
|
"aria-invalid": B.value === "invalid",
|
|
3277
3277
|
"data-custom-validity": B.value,
|
|
@@ -3284,15 +3284,15 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3284
3284
|
"data-icon": o.icon,
|
|
3285
3285
|
"data-hide-icon": d(K)(o.showIcon)
|
|
3286
3286
|
}, [
|
|
3287
|
-
|
|
3287
|
+
I("label", { id: r.value }, [
|
|
3288
3288
|
C(S(o.label ?? d(ke)), 1),
|
|
3289
|
-
|
|
3289
|
+
I("select", {
|
|
3290
3290
|
role: "none",
|
|
3291
3291
|
hidden: !0,
|
|
3292
3292
|
id: s.value,
|
|
3293
3293
|
tabIndex: -1,
|
|
3294
3294
|
ref_key: "selectRef",
|
|
3295
|
-
ref:
|
|
3295
|
+
ref: ge,
|
|
3296
3296
|
form: o.form,
|
|
3297
3297
|
name: o.name,
|
|
3298
3298
|
multiple: d(M)(o.multiple, "multiple"),
|
|
@@ -3300,40 +3300,40 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3300
3300
|
required: d(M)(o.required, "required"),
|
|
3301
3301
|
onChange: k[0] || (k[0] = async (W) => void 0)
|
|
3302
3302
|
}, [
|
|
3303
|
-
(D = m.value) != null && D.length ? (
|
|
3303
|
+
(D = m.value) != null && D.length ? (p(!0), g(U, { key: 0 }, he(m.value, (W, me) => (p(), g("option", {
|
|
3304
3304
|
key: me,
|
|
3305
3305
|
disabled: W.disabled,
|
|
3306
3306
|
value: W.value
|
|
3307
|
-
}, S(Se(W)), 9,
|
|
3308
|
-
], 40,
|
|
3309
|
-
], 8,
|
|
3310
|
-
|
|
3307
|
+
}, S(Se(W)), 9, wi))), 128)) : F("", !0)
|
|
3308
|
+
], 40, Si)
|
|
3309
|
+
], 8, Bi),
|
|
3310
|
+
I("details", {
|
|
3311
3311
|
ref_key: "detailsRef",
|
|
3312
3312
|
ref: G,
|
|
3313
3313
|
open: o.open,
|
|
3314
|
-
onToggle: k[2] || (k[2] = async (W) =>
|
|
3315
|
-
onKeydown: k[3] || (k[3] = async (W) =>
|
|
3314
|
+
onToggle: k[2] || (k[2] = async (W) => oa(W)),
|
|
3315
|
+
onKeydown: k[3] || (k[3] = async (W) => va(W))
|
|
3316
3316
|
}, [
|
|
3317
3317
|
T(o.$slots, "default"),
|
|
3318
|
-
o.options ? (
|
|
3319
|
-
|
|
3318
|
+
o.options ? (p(), g(U, { key: 0 }, [
|
|
3319
|
+
I("summary", {
|
|
3320
3320
|
class: "db-custom-select-form-field",
|
|
3321
3321
|
id: c.value,
|
|
3322
3322
|
"aria-disabled": d(H)(o.disabled),
|
|
3323
3323
|
"aria-labelledby": r.value
|
|
3324
3324
|
}, [
|
|
3325
|
-
(x = w.value) != null && x.length ? (
|
|
3325
|
+
(x = w.value) != null && x.length ? (p(), g("span", {
|
|
3326
3326
|
key: 0,
|
|
3327
3327
|
"data-visually-hidden": d(H)(o.selectedType === "tag"),
|
|
3328
3328
|
id: $.value
|
|
3329
|
-
}, S(w.value), 9,
|
|
3330
|
-
o.selectedType === "tag" ? (
|
|
3331
|
-
(
|
|
3329
|
+
}, S(w.value), 9, Li)) : F("", !0),
|
|
3330
|
+
o.selectedType === "tag" ? (p(), g("div", Ti, [
|
|
3331
|
+
(p(!0), g(U, null, he(y.value, (W, me) => (p(), J(zt, {
|
|
3332
3332
|
key: me,
|
|
3333
3333
|
emphasis: "strong",
|
|
3334
3334
|
behavior: "removable",
|
|
3335
|
-
removeButton:
|
|
3336
|
-
onRemove: ($e) =>
|
|
3335
|
+
removeButton: ua(me),
|
|
3336
|
+
onRemove: ($e) => ra(W, $e)
|
|
3337
3337
|
}, {
|
|
3338
3338
|
default: V(() => [
|
|
3339
3339
|
C(S(Se(W)), 1)
|
|
@@ -3342,10 +3342,10 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3342
3342
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
3343
3343
|
])) : F("", !0)
|
|
3344
3344
|
], 8, _i),
|
|
3345
|
-
te(
|
|
3345
|
+
te(yi, { width: o.dropdownWidth }, {
|
|
3346
3346
|
default: V(() => [
|
|
3347
|
-
O.value ? (
|
|
3348
|
-
te(
|
|
3347
|
+
O.value ? (p(), g("div", $i, [
|
|
3348
|
+
te(gt, {
|
|
3349
3349
|
type: "search",
|
|
3350
3350
|
ref_key: "searchInputRef",
|
|
3351
3351
|
ref: Me,
|
|
@@ -3355,42 +3355,42 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3355
3355
|
label: o.searchLabel ?? d(ke),
|
|
3356
3356
|
placeholder: o.searchPlaceholder ?? o.searchLabel,
|
|
3357
3357
|
ariaDescribedBy: X.value || o.showLoading ? L.value : void 0,
|
|
3358
|
-
onInput: (W) =>
|
|
3358
|
+
onInput: (W) => ma(W)
|
|
3359
3359
|
}, null, 8, ["name", "form", "label", "placeholder", "ariaDescribedBy", "onInput"])
|
|
3360
3360
|
])) : F("", !0),
|
|
3361
|
-
X.value || o.showLoading ? (
|
|
3361
|
+
X.value || o.showLoading ? (p(), J(ae, {
|
|
3362
3362
|
key: 1,
|
|
3363
3363
|
id: L.value,
|
|
3364
3364
|
icon: X.value ? void 0 : "circular_arrows",
|
|
3365
3365
|
semantic: X.value ? "warning" : "informational"
|
|
3366
3366
|
}, {
|
|
3367
3367
|
default: V(() => [
|
|
3368
|
-
C(S((X.value ? o.noResultsText : o.loadingText) ?? d(
|
|
3368
|
+
C(S((X.value ? o.noResultsText : o.loadingText) ?? d(Ia)), 1)
|
|
3369
3369
|
]),
|
|
3370
3370
|
_: 1
|
|
3371
|
-
}, 8, ["id", "icon", "semantic"])) : (
|
|
3372
|
-
b.value ? (
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3371
|
+
}, 8, ["id", "icon", "semantic"])) : (p(), g(U, { key: 2 }, [
|
|
3372
|
+
b.value ? (p(), g("div", Ai, [
|
|
3373
|
+
I("div", Ci, [
|
|
3374
|
+
I("label", null, [
|
|
3375
|
+
I("input", {
|
|
3376
3376
|
type: "checkbox",
|
|
3377
3377
|
value: "select-all",
|
|
3378
3378
|
ref_key: "selectAllRef",
|
|
3379
3379
|
ref: Ce,
|
|
3380
3380
|
form: e.value,
|
|
3381
3381
|
checked: pe.value,
|
|
3382
|
-
onChange: k[1] || (k[1] = async (W) =>
|
|
3383
|
-
}, null, 40,
|
|
3384
|
-
C(S(
|
|
3382
|
+
onChange: k[1] || (k[1] = async (W) => pa())
|
|
3383
|
+
}, null, 40, Ei),
|
|
3384
|
+
C(S(na()), 1)
|
|
3385
3385
|
])
|
|
3386
3386
|
])
|
|
3387
3387
|
])) : F("", !0),
|
|
3388
|
-
te(
|
|
3388
|
+
te(vi, {
|
|
3389
3389
|
multiple: d(M)(o.multiple, "multiple"),
|
|
3390
3390
|
label: o.ariaListLabel ?? o.label ?? d(ke)
|
|
3391
3391
|
}, {
|
|
3392
3392
|
default: V(() => [
|
|
3393
|
-
(
|
|
3393
|
+
(p(!0), g(U, null, he(m.value, (W, me) => (p(), J(gi, {
|
|
3394
3394
|
key: me,
|
|
3395
3395
|
type: o.multiple ? "checkbox" : "radio",
|
|
3396
3396
|
showDivider: W.showDivider,
|
|
@@ -3398,13 +3398,13 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3398
3398
|
isGroupTitle: W.isGroupTitle,
|
|
3399
3399
|
groupTitle: Se(W),
|
|
3400
3400
|
name: e.value,
|
|
3401
|
-
checked:
|
|
3401
|
+
checked: sa(W.value),
|
|
3402
3402
|
disabled: W.disabled,
|
|
3403
3403
|
value: W.value,
|
|
3404
3404
|
onChange: ($e) => Ge(W.value)
|
|
3405
3405
|
}, {
|
|
3406
3406
|
default: V(() => [
|
|
3407
|
-
W.isGroupTitle ? F("", !0) : (
|
|
3407
|
+
W.isGroupTitle ? F("", !0) : (p(), g(U, { key: 0 }, [
|
|
3408
3408
|
C(S(Se(W)), 1)
|
|
3409
3409
|
], 64))
|
|
3410
3410
|
]),
|
|
@@ -3414,7 +3414,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3414
3414
|
_: 1
|
|
3415
3415
|
}, 8, ["multiple", "label"])
|
|
3416
3416
|
], 64)),
|
|
3417
|
-
|
|
3417
|
+
I("div", null, [
|
|
3418
3418
|
te(Be, {
|
|
3419
3419
|
variant: "ghost",
|
|
3420
3420
|
width: "full",
|
|
@@ -3434,8 +3434,8 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3434
3434
|
_: 1
|
|
3435
3435
|
}, 8, ["width"])
|
|
3436
3436
|
], 64)) : F("", !0)
|
|
3437
|
-
], 40,
|
|
3438
|
-
(o.showClearSelection ?? !0) && ((
|
|
3437
|
+
], 40, Ii),
|
|
3438
|
+
(o.showClearSelection ?? !0) && ((be = E.value) != null && be.length) ? (p(), J(Be, {
|
|
3439
3439
|
key: 0,
|
|
3440
3440
|
icon: "cross",
|
|
3441
3441
|
variant: "ghost",
|
|
@@ -3443,11 +3443,11 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3443
3443
|
noText: !0,
|
|
3444
3444
|
name: e.value,
|
|
3445
3445
|
form: e.value,
|
|
3446
|
-
onClick: (W) =>
|
|
3446
|
+
onClick: (W) => ha()
|
|
3447
3447
|
}, {
|
|
3448
3448
|
default: V(() => [
|
|
3449
3449
|
C(S(o.clearSelectionText), 1),
|
|
3450
|
-
te(
|
|
3450
|
+
te(ai, { placement: "top" }, {
|
|
3451
3451
|
default: V(() => [
|
|
3452
3452
|
C(S(o.clearSelectionText), 1)
|
|
3453
3453
|
]),
|
|
@@ -3456,11 +3456,11 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3456
3456
|
]),
|
|
3457
3457
|
_: 1
|
|
3458
3458
|
}, 8, ["name", "form", "onClick"])) : F("", !0),
|
|
3459
|
-
|
|
3459
|
+
I("span", {
|
|
3460
3460
|
"aria-hidden": d(H)(!0),
|
|
3461
|
-
id:
|
|
3462
|
-
}, S(o.placeholder ?? o.label), 9,
|
|
3463
|
-
d(Z)(o.message, o.showMessage) ? (
|
|
3461
|
+
id: _.value
|
|
3462
|
+
}, S(o.placeholder ?? o.label), 9, Ni),
|
|
3463
|
+
d(Z)(o.message, o.showMessage) ? (p(), J(ae, {
|
|
3464
3464
|
key: 1,
|
|
3465
3465
|
size: "small",
|
|
3466
3466
|
icon: o.messageIcon,
|
|
@@ -3471,7 +3471,7 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3471
3471
|
]),
|
|
3472
3472
|
_: 1
|
|
3473
3473
|
}, 8, ["icon", "id"])) : F("", !0),
|
|
3474
|
-
ze() ? (
|
|
3474
|
+
ze() ? (p(), J(ae, {
|
|
3475
3475
|
key: 2,
|
|
3476
3476
|
size: "small",
|
|
3477
3477
|
semantic: "successful",
|
|
@@ -3492,11 +3492,11 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3492
3492
|
]),
|
|
3493
3493
|
_: 1
|
|
3494
3494
|
}, 8, ["id"]),
|
|
3495
|
-
|
|
3496
|
-
], 10,
|
|
3495
|
+
I("span", Di, S(R.value), 1)
|
|
3496
|
+
], 10, ki);
|
|
3497
3497
|
};
|
|
3498
3498
|
}
|
|
3499
|
-
}),
|
|
3499
|
+
}), Fi = ["id"], Ml = /* @__PURE__ */ q({
|
|
3500
3500
|
__name: "custom-select-form-field",
|
|
3501
3501
|
props: {
|
|
3502
3502
|
children: { default: void 0 },
|
|
@@ -3508,123 +3508,124 @@ const yi = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-va
|
|
|
3508
3508
|
},
|
|
3509
3509
|
setup(l) {
|
|
3510
3510
|
const a = l, i = n(null);
|
|
3511
|
-
return (e, t) => (
|
|
3511
|
+
return (e, t) => (p(), g("summary", {
|
|
3512
3512
|
ref_key: "_ref",
|
|
3513
3513
|
ref: i,
|
|
3514
3514
|
id: e.id,
|
|
3515
3515
|
class: P(d(z)("db-custom-select-form-field", a.class))
|
|
3516
3516
|
}, [
|
|
3517
3517
|
T(e.$slots, "default")
|
|
3518
|
-
], 10,
|
|
3518
|
+
], 10, Fi));
|
|
3519
3519
|
}
|
|
3520
3520
|
});
|
|
3521
3521
|
export {
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3522
|
+
Nl as AlignmentList,
|
|
3523
|
+
$l as AutoCompleteList,
|
|
3524
|
+
ea as COLOR,
|
|
3525
|
+
Wi as COLORS,
|
|
3526
|
+
Xi as COLORS_SIMPLE,
|
|
3527
|
+
Vi as COLOR_CONST,
|
|
3528
|
+
xe as COLOR_SIMPLE,
|
|
3529
|
+
rl as DBAccordion,
|
|
3530
|
+
Kt as DBAccordionItem,
|
|
3531
|
+
Ki as DBBadge,
|
|
3532
|
+
Ji as DBBrand,
|
|
3533
3533
|
Be as DBButton,
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3534
|
+
Qi as DBCard,
|
|
3535
|
+
Zi as DBCheckbox,
|
|
3536
|
+
Fl as DBCustomSelect,
|
|
3537
|
+
yi as DBCustomSelectDropdown,
|
|
3538
|
+
Ml as DBCustomSelectFormField,
|
|
3539
|
+
vi as DBCustomSelectList,
|
|
3540
|
+
gi as DBCustomSelectListItem,
|
|
3541
|
+
xi as DBDivider,
|
|
3542
|
+
Ka as DBDrawer,
|
|
3543
|
+
el as DBHeader,
|
|
3544
|
+
al as DBIcon,
|
|
3545
3545
|
ae as DBInfotext,
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3546
|
+
gt as DBInput,
|
|
3547
|
+
tl as DBLink,
|
|
3548
|
+
cl as DBNavigation,
|
|
3549
|
+
ul as DBNavigationItem,
|
|
3550
|
+
Yi as DBNotification,
|
|
3551
|
+
il as DBPage,
|
|
3552
|
+
vl as DBPopover,
|
|
3553
|
+
ll as DBRadio,
|
|
3554
|
+
ol as DBSection,
|
|
3555
|
+
dl as DBSelect,
|
|
3556
|
+
Dl as DBStack,
|
|
3557
|
+
nl as DBSwitch,
|
|
3558
|
+
Mt as DBTabItem,
|
|
3559
|
+
li as DBTabList,
|
|
3560
|
+
di as DBTabPanel,
|
|
3561
|
+
fl as DBTabs,
|
|
3562
|
+
zt as DBTag,
|
|
3563
|
+
sl as DBTextarea,
|
|
3564
|
+
ai as DBTooltip,
|
|
3565
3565
|
_a as DEFAULT_BACK,
|
|
3566
|
-
|
|
3566
|
+
Ta as DEFAULT_BURGER_MENU,
|
|
3567
3567
|
Pe as DEFAULT_CLOSE_BUTTON,
|
|
3568
|
-
|
|
3569
|
-
|
|
3568
|
+
Ye as DEFAULT_DATALIST_ID_SUFFIX,
|
|
3569
|
+
$a as DEFAULT_ICON,
|
|
3570
3570
|
we as DEFAULT_ID,
|
|
3571
3571
|
ie as DEFAULT_INVALID_MESSAGE,
|
|
3572
3572
|
ve as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
3573
3573
|
ke as DEFAULT_LABEL,
|
|
3574
|
-
|
|
3575
|
-
|
|
3574
|
+
He as DEFAULT_LABEL_ID_SUFFIX,
|
|
3575
|
+
Ia as DEFAULT_MESSAGE,
|
|
3576
3576
|
re as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
3577
|
-
|
|
3577
|
+
Je as DEFAULT_PLACEHOLDER,
|
|
3578
3578
|
Ne as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3579
|
+
Qe as DEFAULT_REMOVE,
|
|
3580
|
+
Aa as DEFAULT_ROWS,
|
|
3581
|
+
La as DEFAULT_SELECTED,
|
|
3582
|
+
je as DEFAULT_SELECT_ID_SUFFIX,
|
|
3583
3583
|
fe as DEFAULT_VALID_MESSAGE,
|
|
3584
3584
|
ce as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3585
|
+
Ca as DEFAULT_VIEWPORT,
|
|
3586
|
+
Oi as DENSITIES,
|
|
3587
|
+
Ze as DENSITY,
|
|
3588
|
+
Gi as DENSITY_CONST,
|
|
3589
|
+
Ea as DESKTOP_VIEWPORT,
|
|
3590
3590
|
_l as EmphasisList,
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3591
|
+
bl as GapSpacingList,
|
|
3592
|
+
Tl as LabelVariantList,
|
|
3593
|
+
Al as LinkCurrentList,
|
|
3594
|
+
El as LinkReferrerPolicyList,
|
|
3595
|
+
Cl as LinkTargetList,
|
|
3596
|
+
hl as MarginList,
|
|
3597
|
+
Bl as MaxWidthList,
|
|
3598
|
+
Ja as NavigationItemSafeTriangle,
|
|
3599
|
+
yl as OrientationList,
|
|
3600
|
+
si as PlacementHorizontalList,
|
|
3601
|
+
gl as PlacementList,
|
|
3602
|
+
ui as PlacementVerticalList,
|
|
3603
|
+
Sl as PopoverDelayList,
|
|
3604
|
+
wl as PopoverWidthList,
|
|
3605
|
+
aa as SEMANTIC,
|
|
3606
|
+
Hi as SEMANTICS,
|
|
3607
|
+
pl as SemanticList,
|
|
3608
|
+
Il as SizeList,
|
|
3609
|
+
ml as SpacingList,
|
|
3610
|
+
ji as TESTING_VIEWPORTS,
|
|
3611
|
+
Ll as ValidationList,
|
|
3612
|
+
kl as WidthList,
|
|
3613
|
+
Ke as addAttributeToChildren,
|
|
3614
3614
|
z as cls,
|
|
3615
3615
|
ee as delay,
|
|
3616
3616
|
M as getBoolean,
|
|
3617
3617
|
H as getBooleanAsString,
|
|
3618
3618
|
K as getHideProp,
|
|
3619
|
-
|
|
3620
|
-
|
|
3619
|
+
We as getInputValue,
|
|
3620
|
+
ye as getNumber,
|
|
3621
|
+
Xe as getSearchInput,
|
|
3621
3622
|
Fe as handleDataOutside,
|
|
3622
3623
|
ue as hasVoiceOver,
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3624
|
+
Ba as isArrayOfStrings,
|
|
3625
|
+
ta as isEventTargetNavigationItem,
|
|
3626
|
+
ka as isInView,
|
|
3626
3627
|
Z as stringPropVisible,
|
|
3627
3628
|
Q as uuid,
|
|
3628
|
-
|
|
3629
|
-
|
|
3629
|
+
qi as visibleInVX,
|
|
3630
|
+
Ui as visibleInVY
|
|
3630
3631
|
};
|