@db-ux/v-core-components 4.2.0 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/components/switch/model.d.ts +4 -2
- package/dist/components/tab-item/model.d.ts +3 -0
- package/dist/db-ux.es.js +797 -788
- package/dist/db-ux.umd.js +1 -1
- package/package.json +5 -5
package/dist/db-ux.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as W, ref as o, onMounted as
|
|
2
|
-
const Ie = "OVERWRITE_DEFAULT_ID", ye = "LABEL SHOULD BE SET", ea = " ", Ia = "MESSAGE SHOULD BE SET",
|
|
1
|
+
import { defineComponent as W, ref as o, onMounted as Y, watch as C, createElementBlock as y, openBlock as v, normalizeClass as U, unref as n, createElementVNode as E, createCommentVNode as z, renderSlot as F, Fragment as H, createTextVNode as D, toDisplayString as B, renderList as ge, createBlock as J, onUnmounted as he, createVNode as te, withCtx as G } from "vue";
|
|
2
|
+
const Ie = "OVERWRITE_DEFAULT_ID", ye = "LABEL SHOULD BE SET", ea = " ", Ia = "MESSAGE SHOULD BE SET", Ye = "-label", Je = "-select", ce = "-message", re = "-valid-message", ve = "-invalid-message", De = "-placeholder", Qe = "-datalist", se = "TODO: Add a validMessage", ee = "TODO: Add an invalidMessage", aa = "Remove", xa = "Back", $a = "Selected", Ta = "BurgerMenu", Ca = "brand", Ea = 4, qe = "Close", Ki = "density", Yi = "color";
|
|
3
3
|
var ta = /* @__PURE__ */ ((e) => (e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e))(ta || {});
|
|
4
4
|
const Ji = Object.entries(ta).map(([, e]) => e);
|
|
5
5
|
var ia = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e))(ia || {}), la = /* @__PURE__ */ ((e) => (e.NEUTRAL_BG_LEVEL_1 = "neutral-bg-basic-level-1", e.NEUTRAL_BG_LEVEL_2 = "neutral-bg-basic-level-2", e.NEUTRAL_BG_LEVEL_3 = "neutral-bg-basic-level-3", e.NEUTRAL_BG_TRANSPARENT_SEMI = "neutral-bg-basic-transparent-semi", e.NEUTRAL_BG_TRANSPARENT_FULL = "neutral-bg-basic-transparent-full", e.BRAND_BG_LEVEL_1 = "brand-bg-basic-level-1", e.BRAND_BG_LEVEL_2 = "brand-bg-basic-level-2", e.BRAND_BG_LEVEL_3 = "brand-bg-basic-level-3", e.BRAND_BG_TRANSPARENT_SEMI = "brand-bg-basic-transparent-semi", e.BRAND_BG_TRANSPARENT_FULL = "brand-bg-basic-transparent-full", e.SUCCESSFUL_BG_LEVEL_1 = "successful-bg-basic-level-1", e.SUCCESSFUL_BG_LEVEL_2 = "successful-bg-basic-level-2", e.SUCCESSFUL_BG_LEVEL_3 = "successful-bg-basic-level-3", e.SUCCESSFUL_BG_TRANSPARENT_SEMI = "successful-bg-basic-transparent-semi", e.SUCCESSFUL_BG_TRANSPARENT_FULL = "successful-bg-basic-transparent-full", e.CRITICAL_BG_LEVEL_1 = "critical-bg-basic-level-1", e.CRITICAL_BG_LEVEL_2 = "critical-bg-basic-level-2", e.CRITICAL_BG_LEVEL_3 = "critical-bg-basic-level-3", e.CRITICAL_BG_TRANSPARENT_SEMI = "critical-bg-basic-transparent-semi", e.CRITICAL_BG_TRANSPARENT_Full = "critical-bg-basic-transparent-full", e.WARNING_BG_LEVEL_1 = "warning-bg-basic-level-1", e.WARNING_BG_LEVEL_2 = "warning-bg-basic-level-2", e.WARNING_BG_LEVEL_3 = "warning-bg-basic-level-3", e.WARNING_BG_TRANSPARENT_SEMI = "warning-bg-basic-transparent-semi", e.WARNING_BG_TRANSPARENT_FULL = "warning-bg-basic-transparent-full", e.INFORMATIONAL_BG_LEVEL_1 = "informational-bg-basic-level-1", e.INFORMATIONAL_BG_LEVEL_2 = "informational-bg-basic-level-2", e.INFORMATIONAL_BG_LEVEL_3 = "informational-bg-basic-level-3", e.INFORMATIONAL_BG_TRANSPARENT_SEMI = "informational-bg-basic-transparent-semi", e.INFORMATIONAL_BG_TRANSPARENT_FULL = "informational-bg-basic-transparent-full", e))(la || {});
|
|
@@ -48,7 +48,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
48
48
|
if (typeof window > "u" || typeof navigator > "u") return !1;
|
|
49
49
|
const e = navigator.userAgent, t = /iP(ad|hone|od)/.test(e), l = !!e.match(/Safari/) && !e.match(/CriOS|FxiOS|OPiOS|EdgiOS/);
|
|
50
50
|
return t && l;
|
|
51
|
-
},
|
|
51
|
+
}, K = (e, t) => new Promise(() => setTimeout(e, t)), V = (e) => {
|
|
52
52
|
if (e != null)
|
|
53
53
|
return String(typeof e == "string" ? !!e : e);
|
|
54
54
|
}, q = (e, t) => {
|
|
@@ -81,13 +81,13 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
81
81
|
name: { default: void 0 }
|
|
82
82
|
},
|
|
83
83
|
setup(e) {
|
|
84
|
-
const t = e, l = o(Ie), a = o(!1), i = o(void 0),
|
|
85
|
-
|
|
86
|
-
l.value = t.id || "accordion-item-" + Q(), t.defaultOpen && (a.value = t.defaultOpen),
|
|
84
|
+
const t = e, l = o(Ie), a = o(!1), i = o(void 0), u = o(!1), c = o(null);
|
|
85
|
+
Y(() => {
|
|
86
|
+
l.value = t.id || "accordion-item-" + Q(), t.defaultOpen && (a.value = t.defaultOpen), u.value = !0;
|
|
87
87
|
}), C(
|
|
88
|
-
() => [
|
|
88
|
+
() => [c.value, u.value],
|
|
89
89
|
() => {
|
|
90
|
-
|
|
90
|
+
c.value && u.value;
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
immediate: !0,
|
|
@@ -115,22 +115,22 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
115
115
|
E("details", {
|
|
116
116
|
"aria-disabled": n(V)(e.disabled),
|
|
117
117
|
ref_key: "_ref",
|
|
118
|
-
ref:
|
|
118
|
+
ref: c,
|
|
119
119
|
name: i.value,
|
|
120
120
|
open: a.value
|
|
121
121
|
}, [
|
|
122
122
|
E("summary", {
|
|
123
|
-
onClick: h[0] || (h[0] = async (
|
|
123
|
+
onClick: h[0] || (h[0] = async (k) => f(k))
|
|
124
124
|
}, [
|
|
125
125
|
e.headlinePlain ? (v(), y(H, { key: 0 }, [
|
|
126
|
-
D(
|
|
126
|
+
D(B(e.headlinePlain), 1)
|
|
127
127
|
], 64)) : z("", !0),
|
|
128
|
-
e.headlinePlain ? z("", !0) :
|
|
128
|
+
e.headlinePlain ? z("", !0) : F(g.$slots, "headline", { key: 1 })
|
|
129
129
|
]),
|
|
130
130
|
E("div", null, [
|
|
131
131
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
132
|
-
D(
|
|
133
|
-
], 64)) :
|
|
132
|
+
D(B(e.text), 1)
|
|
133
|
+
], 64)) : F(g.$slots, "default", { key: 1 })
|
|
134
134
|
])
|
|
135
135
|
], 8, Va)
|
|
136
136
|
], 10, za));
|
|
@@ -151,9 +151,9 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
151
151
|
autofocus: { type: [Boolean, String] }
|
|
152
152
|
},
|
|
153
153
|
setup(e) {
|
|
154
|
-
const t = e, l = o(Ie), a = o(""), i = o(!1),
|
|
155
|
-
|
|
156
|
-
l.value = t.id || "accordion-" + Q(), i.value = !0,
|
|
154
|
+
const t = e, l = o(Ie), a = o(""), i = o(!1), u = o(!1), c = o(null);
|
|
155
|
+
Y(() => {
|
|
156
|
+
l.value = t.id || "accordion-" + Q(), i.value = !0, u.value = !0;
|
|
157
157
|
}), C(
|
|
158
158
|
() => [i.value, t.name, t.behavior, l.value],
|
|
159
159
|
() => {
|
|
@@ -164,10 +164,10 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
164
164
|
flush: "post"
|
|
165
165
|
}
|
|
166
166
|
), C(
|
|
167
|
-
() => [
|
|
167
|
+
() => [c.value, a.value],
|
|
168
168
|
() => {
|
|
169
|
-
if (
|
|
170
|
-
const g =
|
|
169
|
+
if (c.value) {
|
|
170
|
+
const g = c.value.getElementsByTagName("details");
|
|
171
171
|
if (g)
|
|
172
172
|
for (const h of Array.from(g))
|
|
173
173
|
a.value === "" ? h.removeAttribute("name") : h.name = a.value ?? "";
|
|
@@ -178,21 +178,21 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
178
178
|
flush: "post"
|
|
179
179
|
}
|
|
180
180
|
), C(
|
|
181
|
-
() => [
|
|
181
|
+
() => [c.value, u.value, t.initOpenIndex],
|
|
182
182
|
() => {
|
|
183
|
-
if (
|
|
183
|
+
if (c.value && u.value) {
|
|
184
184
|
if (t.initOpenIndex && t.initOpenIndex.length > 0) {
|
|
185
|
-
const g =
|
|
185
|
+
const g = c.value.getElementsByTagName("details");
|
|
186
186
|
if (g) {
|
|
187
187
|
const h = t.behavior === "single" && t.initOpenIndex.length > 1 ? [t.initOpenIndex[0]] : t.initOpenIndex;
|
|
188
188
|
Array.from(g).forEach(
|
|
189
|
-
(
|
|
190
|
-
h?.includes(
|
|
189
|
+
(k, $) => {
|
|
190
|
+
h?.includes($) && (k.open = !0);
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
u.value = !1;
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
{
|
|
@@ -210,17 +210,17 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
210
210
|
}
|
|
211
211
|
return (g, h) => (v(), y("ul", {
|
|
212
212
|
ref_key: "_ref",
|
|
213
|
-
ref:
|
|
213
|
+
ref: c,
|
|
214
214
|
id: l.value,
|
|
215
215
|
class: U(n(O)("db-accordion", t.class)),
|
|
216
216
|
"data-variant": e.variant
|
|
217
217
|
}, [
|
|
218
|
-
e.items ? z("", !0) :
|
|
219
|
-
e.items ? (v(!0), y(H, { key: 1 },
|
|
220
|
-
key: `accordion-item-${
|
|
221
|
-
headlinePlain:
|
|
222
|
-
disabled:
|
|
223
|
-
text:
|
|
218
|
+
e.items ? z("", !0) : F(g.$slots, "default", { key: 0 }),
|
|
219
|
+
e.items ? (v(!0), y(H, { key: 1 }, ge(f(), (k, $) => (v(), J(Pa, {
|
|
220
|
+
key: `accordion-item-${$}`,
|
|
221
|
+
headlinePlain: k.headlinePlain,
|
|
222
|
+
disabled: k.disabled,
|
|
223
|
+
text: k.text
|
|
224
224
|
}, null, 8, ["headlinePlain", "disabled", "text"]))), 128)) : z("", !0)
|
|
225
225
|
], 10, qa));
|
|
226
226
|
}
|
|
@@ -241,7 +241,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
241
241
|
},
|
|
242
242
|
setup(e) {
|
|
243
243
|
const t = e, l = o(!1), a = o(null);
|
|
244
|
-
return
|
|
244
|
+
return Y(() => {
|
|
245
245
|
l.value = !0;
|
|
246
246
|
}), C(
|
|
247
247
|
() => [a.value, l.value],
|
|
@@ -255,7 +255,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
255
255
|
immediate: !0,
|
|
256
256
|
flush: "post"
|
|
257
257
|
}
|
|
258
|
-
), (i,
|
|
258
|
+
), (i, u) => (v(), y("span", {
|
|
259
259
|
ref_key: "_ref",
|
|
260
260
|
ref: a,
|
|
261
261
|
id: e.id,
|
|
@@ -267,8 +267,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
267
267
|
"data-label": e.placement?.startsWith("corner") && (e.label ?? n(ye))
|
|
268
268
|
}, [
|
|
269
269
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
270
|
-
D(
|
|
271
|
-
], 64)) :
|
|
270
|
+
D(B(e.text), 1)
|
|
271
|
+
], 64)) : F(i.$slots, "default", { key: 1 })
|
|
272
272
|
], 10, Ua));
|
|
273
273
|
}
|
|
274
274
|
}), ol = ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"], Oa = ["data-icon", "data-show-icon", "id"], dl = /* @__PURE__ */ W({
|
|
@@ -295,8 +295,8 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
295
295
|
class: U(n(O)("db-brand", t.class))
|
|
296
296
|
}, [
|
|
297
297
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
298
|
-
D(
|
|
299
|
-
], 64)) :
|
|
298
|
+
D(B(e.text), 1)
|
|
299
|
+
], 64)) : F(a.$slots, "default", { key: 1 })
|
|
300
300
|
], 10, Oa));
|
|
301
301
|
}
|
|
302
302
|
}), Ga = ["id", "type", "disabled", "data-icon", "data-show-icon", "data-icon-trailing", "data-show-icon-trailing", "data-size", "data-width", "data-variant", "data-no-text", "name", "form", "value"], we = /* @__PURE__ */ W({
|
|
@@ -330,10 +330,10 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
330
330
|
function a() {
|
|
331
331
|
return t.type ? t.type : t.onClick ? "button" : "submit";
|
|
332
332
|
}
|
|
333
|
-
function i(
|
|
334
|
-
t.onClick && t.onClick(
|
|
333
|
+
function i(u) {
|
|
334
|
+
t.onClick && t.onClick(u);
|
|
335
335
|
}
|
|
336
|
-
return (
|
|
336
|
+
return (u, c) => (v(), y("button", {
|
|
337
337
|
ref_key: "_ref",
|
|
338
338
|
ref: l,
|
|
339
339
|
id: e.id,
|
|
@@ -351,11 +351,11 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
351
351
|
name: e.name,
|
|
352
352
|
form: e.form,
|
|
353
353
|
value: e.value,
|
|
354
|
-
onClick:
|
|
354
|
+
onClick: c[0] || (c[0] = async (f) => i(f))
|
|
355
355
|
}, [
|
|
356
356
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
357
|
-
D(
|
|
358
|
-
], 64)) :
|
|
357
|
+
D(B(e.text), 1)
|
|
358
|
+
], 64)) : F(u.$slots, "default", { key: 1 })
|
|
359
359
|
], 10, Ga));
|
|
360
360
|
}
|
|
361
361
|
}), sl = ["outlined", "brand", "filled", "ghost"], ul = ["button", "reset", "submit"], Wa = ["id", "data-behavior", "data-elevation-level", "data-spacing"], cl = /* @__PURE__ */ W({
|
|
@@ -376,7 +376,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
376
376
|
function a(i) {
|
|
377
377
|
t.onClick && t.onClick(i);
|
|
378
378
|
}
|
|
379
|
-
return (i,
|
|
379
|
+
return (i, u) => (v(), y("div", {
|
|
380
380
|
ref_key: "_ref",
|
|
381
381
|
ref: l,
|
|
382
382
|
id: e.id,
|
|
@@ -384,9 +384,9 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
384
384
|
"data-behavior": e.behavior,
|
|
385
385
|
"data-elevation-level": e.elevationLevel,
|
|
386
386
|
"data-spacing": e.spacing,
|
|
387
|
-
onClick:
|
|
387
|
+
onClick: u[0] || (u[0] = async (c) => a(c))
|
|
388
388
|
}, [
|
|
389
|
-
|
|
389
|
+
F(i.$slots, "default")
|
|
390
390
|
], 10, Wa));
|
|
391
391
|
}
|
|
392
392
|
}), rl = ["static", "interactive"], vl = ["1", "2", "3"], de = (e, t, l = "value") => {
|
|
@@ -399,28 +399,28 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
399
399
|
}), e._dbFormResetListenerAdded = !0);
|
|
400
400
|
}, da = (e, t, l, a) => {
|
|
401
401
|
Me(e, (i) => {
|
|
402
|
-
|
|
403
|
-
const
|
|
402
|
+
K(() => {
|
|
403
|
+
const u = t.checked ? t.checked : t.defaultChecked ? t.defaultChecked : e.checked, c = {
|
|
404
404
|
...i,
|
|
405
405
|
target: {
|
|
406
406
|
...i.target,
|
|
407
|
-
checked:
|
|
407
|
+
checked: u
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
|
-
l(
|
|
410
|
+
l(c);
|
|
411
411
|
}, 1);
|
|
412
412
|
}, a);
|
|
413
413
|
}, Ue = (e, t, l, a) => {
|
|
414
414
|
Me(e, (i) => {
|
|
415
|
-
|
|
416
|
-
const
|
|
415
|
+
K(() => {
|
|
416
|
+
const u = t.value ? t.value : t.defaultValue ? t.defaultValue : e.value, c = {
|
|
417
417
|
...i,
|
|
418
418
|
target: {
|
|
419
419
|
...i.target,
|
|
420
|
-
value:
|
|
420
|
+
value: u
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
|
-
l(
|
|
423
|
+
l(c);
|
|
424
424
|
}, 1);
|
|
425
425
|
}, a);
|
|
426
426
|
}, Ha = ["id", "data-icon", "data-semantic", "data-size", "data-show-icon-leading"], Z = /* @__PURE__ */ W({
|
|
@@ -450,11 +450,11 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
450
450
|
"data-show-icon-leading": n(V)(e.showIcon ?? !0)
|
|
451
451
|
}, [
|
|
452
452
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
453
|
-
D(
|
|
454
|
-
], 64)) :
|
|
453
|
+
D(B(e.text), 1)
|
|
454
|
+
], 64)) : F(a.$slots, "default", { key: 1 })
|
|
455
455
|
], 10, Ha));
|
|
456
456
|
}
|
|
457
|
-
}), Xa = ["data-size", "data-hide-asterisk", "data-hide-label"], ja = ["for"],
|
|
457
|
+
}), Xa = ["data-size", "data-hide-asterisk", "data-hide-label"], ja = ["for"], Ka = ["aria-invalid", "data-custom-validity", "id", "name", "checked", "disabled", "value", "required", "aria-describedby"], Ya = {
|
|
458
458
|
"data-visually-hidden": "true",
|
|
459
459
|
role: "status"
|
|
460
460
|
}, fl = /* @__PURE__ */ W({
|
|
@@ -495,28 +495,28 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
495
495
|
},
|
|
496
496
|
emits: ["update:checked"],
|
|
497
497
|
setup(e, { emit: t }) {
|
|
498
|
-
const l = t, a = e, i = o(!1),
|
|
499
|
-
|
|
498
|
+
const l = t, a = e, i = o(!1), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), $ = o(""), m = o(void 0), s = o(null);
|
|
499
|
+
Y(() => {
|
|
500
500
|
i.value = !0;
|
|
501
501
|
const L = a.id ?? `checkbox-${Q()}`;
|
|
502
|
-
|
|
503
|
-
}),
|
|
504
|
-
|
|
502
|
+
u.value = L, c.value = L + ce, f.value = L + re, g.value = L + ve, h.value = a.invalidMessage || ee;
|
|
503
|
+
}), he(() => {
|
|
504
|
+
m.value?.abort();
|
|
505
505
|
}), C(
|
|
506
|
-
() => [
|
|
506
|
+
() => [s.value, a.invalidMessage],
|
|
507
507
|
() => {
|
|
508
|
-
h.value = a.invalidMessage ||
|
|
508
|
+
h.value = a.invalidMessage || s.value?.validationMessage || ee;
|
|
509
509
|
},
|
|
510
510
|
{
|
|
511
511
|
immediate: !0,
|
|
512
512
|
flush: "post"
|
|
513
513
|
}
|
|
514
514
|
), C(
|
|
515
|
-
() => [
|
|
515
|
+
() => [u.value],
|
|
516
516
|
() => {
|
|
517
|
-
if (
|
|
518
|
-
const L =
|
|
519
|
-
|
|
517
|
+
if (u.value) {
|
|
518
|
+
const L = u.value + ce;
|
|
519
|
+
c.value = L, f.value = u.value + re, g.value = u.value + ve, _(a.message, a.showMessage) && (k.value = L), b();
|
|
520
520
|
}
|
|
521
521
|
},
|
|
522
522
|
{
|
|
@@ -524,38 +524,38 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
524
524
|
flush: "post"
|
|
525
525
|
}
|
|
526
526
|
), C(
|
|
527
|
-
() => [i.value,
|
|
527
|
+
() => [i.value, s.value, a.indeterminate],
|
|
528
528
|
() => {
|
|
529
|
-
|
|
529
|
+
s.value && a.indeterminate !== void 0 && (s.value.indeterminate = !!q(a.indeterminate));
|
|
530
530
|
},
|
|
531
531
|
{
|
|
532
532
|
immediate: !0,
|
|
533
533
|
flush: "post"
|
|
534
534
|
}
|
|
535
535
|
), C(
|
|
536
|
-
() => [i.value,
|
|
536
|
+
() => [i.value, s.value, a.checked],
|
|
537
537
|
() => {
|
|
538
|
-
i.value &&
|
|
538
|
+
i.value && s.value && (a.checked != null && (s.value.checked = !!q(a.checked)), i.value = !1);
|
|
539
539
|
},
|
|
540
540
|
{
|
|
541
541
|
immediate: !0,
|
|
542
542
|
flush: "post"
|
|
543
543
|
}
|
|
544
544
|
), C(
|
|
545
|
-
() => [
|
|
545
|
+
() => [s.value],
|
|
546
546
|
() => {
|
|
547
|
-
if (
|
|
548
|
-
let
|
|
549
|
-
|
|
550
|
-
|
|
547
|
+
if (s.value) {
|
|
548
|
+
let S = m.value;
|
|
549
|
+
S || (S = new AbortController(), m.value = S), da(
|
|
550
|
+
s.value,
|
|
551
551
|
{
|
|
552
552
|
checked: a.checked,
|
|
553
553
|
defaultChecked: void 0
|
|
554
554
|
},
|
|
555
|
-
(
|
|
556
|
-
I(
|
|
555
|
+
(M) => {
|
|
556
|
+
I(M);
|
|
557
557
|
},
|
|
558
|
-
|
|
558
|
+
S.signal
|
|
559
559
|
);
|
|
560
560
|
}
|
|
561
561
|
},
|
|
@@ -567,54 +567,54 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
567
567
|
function d() {
|
|
568
568
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
!
|
|
570
|
+
function b() {
|
|
571
|
+
!s.value?.validity.valid || a.validation === "invalid" ? (k.value = g.value, h.value = a.invalidMessage || s.value?.validationMessage || ee, ue() && ($.value = h.value, K(() => $.value = "", 1e3))) : d() && s.value?.validity.valid && a.required ? (k.value = f.value, ue() && ($.value = a.validMessage ?? se, K(() => $.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = c.value : k.value = void 0;
|
|
572
572
|
}
|
|
573
|
-
function I(L,
|
|
574
|
-
a.onChange && a.onChange(L), de(l, L, "checked"),
|
|
573
|
+
function I(L, S) {
|
|
574
|
+
a.onChange && a.onChange(L), de(l, L, "checked"), b();
|
|
575
575
|
}
|
|
576
576
|
function T(L) {
|
|
577
577
|
a.onBlur && a.onBlur(L);
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function w(L) {
|
|
580
580
|
a.onFocus && a.onFocus(L);
|
|
581
581
|
}
|
|
582
|
-
return (L,
|
|
582
|
+
return (L, S) => (v(), y("div", {
|
|
583
583
|
class: U(n(O)("db-checkbox", a.class)),
|
|
584
584
|
"data-size": e.size,
|
|
585
585
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
586
586
|
"data-hide-label": n(ne)(e.showLabel)
|
|
587
587
|
}, [
|
|
588
|
-
E("label", { for:
|
|
588
|
+
E("label", { for: u.value }, [
|
|
589
589
|
E("input", {
|
|
590
590
|
type: "checkbox",
|
|
591
591
|
"aria-invalid": e.validation === "invalid",
|
|
592
592
|
"data-custom-validity": e.validation,
|
|
593
593
|
ref_key: "_ref",
|
|
594
|
-
ref:
|
|
595
|
-
id:
|
|
594
|
+
ref: s,
|
|
595
|
+
id: u.value,
|
|
596
596
|
name: e.name,
|
|
597
597
|
checked: n(q)(e.checked, "checked"),
|
|
598
598
|
disabled: n(q)(e.disabled, "disabled"),
|
|
599
599
|
value: e.value,
|
|
600
600
|
required: n(q)(e.required, "required"),
|
|
601
|
-
onChange:
|
|
602
|
-
onBlur:
|
|
603
|
-
onFocus:
|
|
604
|
-
"aria-describedby": e.ariaDescribedBy ??
|
|
605
|
-
}, null, 40,
|
|
601
|
+
onChange: S[0] || (S[0] = async (M) => I(M)),
|
|
602
|
+
onBlur: S[1] || (S[1] = async (M) => T(M)),
|
|
603
|
+
onFocus: S[2] || (S[2] = async (M) => w(M)),
|
|
604
|
+
"aria-describedby": e.ariaDescribedBy ?? k.value
|
|
605
|
+
}, null, 40, Ka),
|
|
606
606
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
607
|
-
D(
|
|
608
|
-
], 64)) :
|
|
607
|
+
D(B(e.label), 1)
|
|
608
|
+
], 64)) : F(L.$slots, "default", { key: 1 })
|
|
609
609
|
], 8, ja),
|
|
610
610
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
611
611
|
key: 0,
|
|
612
612
|
size: "small",
|
|
613
613
|
icon: e.messageIcon,
|
|
614
|
-
id:
|
|
614
|
+
id: c.value
|
|
615
615
|
}, {
|
|
616
616
|
default: G(() => [
|
|
617
|
-
D(
|
|
617
|
+
D(B(e.message), 1)
|
|
618
618
|
]),
|
|
619
619
|
_: 1
|
|
620
620
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -625,7 +625,7 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
625
625
|
id: f.value
|
|
626
626
|
}, {
|
|
627
627
|
default: G(() => [
|
|
628
|
-
D(
|
|
628
|
+
D(B(e.validMessage || n(se)), 1)
|
|
629
629
|
]),
|
|
630
630
|
_: 1
|
|
631
631
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -635,11 +635,11 @@ const _i = Object.entries(na).map(([, e]) => e), Aa = {
|
|
|
635
635
|
id: g.value
|
|
636
636
|
}, {
|
|
637
637
|
default: G(() => [
|
|
638
|
-
D(
|
|
638
|
+
D(B(h.value), 1)
|
|
639
639
|
]),
|
|
640
640
|
_: 1
|
|
641
641
|
}, 8, ["id"]),
|
|
642
|
-
E("span",
|
|
642
|
+
E("span", Ya, B($.value), 1)
|
|
643
643
|
], 10, Xa));
|
|
644
644
|
}
|
|
645
645
|
});
|
|
@@ -695,16 +695,16 @@ const Ja = (e) => {
|
|
|
695
695
|
left: a,
|
|
696
696
|
right: i
|
|
697
697
|
} = e.getBoundingClientRect(), {
|
|
698
|
-
innerHeight:
|
|
699
|
-
innerWidth:
|
|
698
|
+
innerHeight: u,
|
|
699
|
+
innerWidth: c
|
|
700
700
|
} = window;
|
|
701
|
-
let f = t < 0, g = l >
|
|
702
|
-
const
|
|
703
|
-
return
|
|
701
|
+
let f = t < 0, g = l > u, h = a < 0, k = i > c;
|
|
702
|
+
const $ = e.dataset.outsideVy, m = e.dataset.outsideVx, s = e?.parentElement?.getBoundingClientRect();
|
|
703
|
+
return s && ($ && (e.dataset.outsideVy === "top" ? f = s.top - (l - s.bottom) < 0 : g = s.bottom + (s.top - t) > u), m && (e.dataset.outsideVx === "left" ? h = s.left - (i - s.right) < 0 : k = s.right + (s.left - a) > c)), {
|
|
704
704
|
outTop: f,
|
|
705
705
|
outBottom: g,
|
|
706
706
|
outLeft: h,
|
|
707
|
-
outRight:
|
|
707
|
+
outRight: k
|
|
708
708
|
};
|
|
709
709
|
}, Qa = (e) => {
|
|
710
710
|
const {
|
|
@@ -713,26 +713,26 @@ const Ja = (e) => {
|
|
|
713
713
|
outLeft: a,
|
|
714
714
|
outRight: i
|
|
715
715
|
} = Ja(e);
|
|
716
|
-
let
|
|
717
|
-
return t || l ? (
|
|
716
|
+
let u = {};
|
|
717
|
+
return t || l ? (u = {
|
|
718
718
|
vy: t ? "top" : "bottom"
|
|
719
|
-
}, e.dataset.outsideVy =
|
|
720
|
-
...
|
|
719
|
+
}, e.dataset.outsideVy = u.vy) : delete e.dataset.outsideVy, a || i ? (u = {
|
|
720
|
+
...u,
|
|
721
721
|
vx: i ? "right" : "left"
|
|
722
|
-
}, e.dataset.outsideVx =
|
|
722
|
+
}, e.dataset.outsideVx = u.vx) : delete e.dataset.outsideVx, u;
|
|
723
723
|
}, Za = (e, t, l) => {
|
|
724
724
|
if (getComputedStyle(e).zIndex === "9999") return;
|
|
725
725
|
const {
|
|
726
726
|
top: a,
|
|
727
727
|
bottom: i,
|
|
728
|
-
childHeight:
|
|
729
|
-
childWidth:
|
|
728
|
+
childHeight: u,
|
|
729
|
+
childWidth: c,
|
|
730
730
|
width: f,
|
|
731
731
|
right: g,
|
|
732
732
|
left: h,
|
|
733
|
-
correctedPlacement:
|
|
733
|
+
correctedPlacement: k
|
|
734
734
|
} = sa(e, t, l);
|
|
735
|
-
e.dataset.width === "full" && (e.style.inlineSize = `${f}px`),
|
|
735
|
+
e.dataset.width === "full" && (e.style.inlineSize = `${f}px`), k === "top" || k === "bottom" || k === "top-start" || k === "bottom-start" ? e.style.insetInlineStart = `${h}px` : (k === "top-end" || k === "bottom-end") && (e.style.insetInlineStart = `${g - c}px`), k?.startsWith("top") ? e.style.insetBlockStart = `${a - u}px` : k?.startsWith("bottom") && (e.style.insetBlockStart = `${i}px`), e.style.position = "fixed";
|
|
736
736
|
}, sa = (e, t, l) => {
|
|
737
737
|
if (!e || !t)
|
|
738
738
|
return {
|
|
@@ -750,85 +750,85 @@ const Ja = (e) => {
|
|
|
750
750
|
};
|
|
751
751
|
const a = e.getBoundingClientRect(), {
|
|
752
752
|
top: i,
|
|
753
|
-
height:
|
|
754
|
-
bottom:
|
|
753
|
+
height: u,
|
|
754
|
+
bottom: c,
|
|
755
755
|
right: f,
|
|
756
756
|
left: g,
|
|
757
757
|
width: h
|
|
758
758
|
} = t.getBoundingClientRect(), {
|
|
759
|
-
innerHeight:
|
|
760
|
-
innerWidth:
|
|
759
|
+
innerHeight: k,
|
|
760
|
+
innerWidth: $
|
|
761
761
|
} = window;
|
|
762
|
-
let
|
|
763
|
-
(l === "bottom" || l === "top") && (
|
|
764
|
-
const d =
|
|
765
|
-
let
|
|
766
|
-
return l.startsWith("bottom") ? d ? (
|
|
762
|
+
let m = a.height, s = a.width;
|
|
763
|
+
(l === "bottom" || l === "top") && (s = s / 2), (l === "left" || l === "right") && (m = m / 2);
|
|
764
|
+
const d = c + m > k, b = i - m < 0, I = g - s < 0, T = f + s > $;
|
|
765
|
+
let w = l;
|
|
766
|
+
return l.startsWith("bottom") ? d ? (w = l?.replace("bottom", "top"), I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end")) : I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end") : l.startsWith("top") ? b ? (w = l?.replace("top", "bottom"), I && T ? w = "bottom" : I ? w = "bottom-start" : T && (w = "bottom-end")) : I && T ? w = "top" : I ? w = "top-start" : T && (w = "top-end") : l.startsWith("left") ? I ? (w = l?.replace("left", "right"), d && b ? w = "right" : d ? w = "right-end" : b && (w = "right-start")) : d && b ? w = "left" : d ? w = "left-end" : b && (w = "left-start") : w.startsWith("right") && (T ? (w = l?.replace("right", "left"), d && b ? w = "left" : d ? w = "left-end" : b && (w = "left-start")) : d && b ? w = "right" : d ? w = "right-end" : b && (w = "right-start")), {
|
|
767
767
|
top: i,
|
|
768
|
-
bottom:
|
|
768
|
+
bottom: c,
|
|
769
769
|
right: f,
|
|
770
|
-
height:
|
|
770
|
+
height: u,
|
|
771
771
|
width: h,
|
|
772
772
|
left: g,
|
|
773
773
|
childHeight: a.height,
|
|
774
774
|
childWidth: a.width,
|
|
775
|
-
correctedPlacement:
|
|
776
|
-
innerWidth:
|
|
777
|
-
innerHeight:
|
|
775
|
+
correctedPlacement: w,
|
|
776
|
+
innerWidth: $,
|
|
777
|
+
innerHeight: k
|
|
778
778
|
};
|
|
779
779
|
}, ua = (e, t, l) => {
|
|
780
780
|
const a = getComputedStyle(e).getPropertyValue("--db-popover-distance") ?? "0px", {
|
|
781
781
|
top: i,
|
|
782
|
-
height:
|
|
783
|
-
width:
|
|
782
|
+
height: u,
|
|
783
|
+
width: c,
|
|
784
784
|
childHeight: f,
|
|
785
785
|
childWidth: g,
|
|
786
786
|
right: h,
|
|
787
|
-
left:
|
|
788
|
-
bottom:
|
|
789
|
-
correctedPlacement:
|
|
790
|
-
innerWidth:
|
|
787
|
+
left: k,
|
|
788
|
+
bottom: $,
|
|
789
|
+
correctedPlacement: m,
|
|
790
|
+
innerWidth: s,
|
|
791
791
|
innerHeight: d
|
|
792
792
|
} = sa(e, t, l);
|
|
793
|
-
if (g >
|
|
794
|
-
const
|
|
795
|
-
|
|
793
|
+
if (g > c && (m.startsWith("bottom") || m.startsWith("top"))) {
|
|
794
|
+
const b = c / 2 / g * 100;
|
|
795
|
+
m.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-inline-start", `${b}%`) : m.endsWith("end") && e.style.setProperty("--db-tooltip-arrow-inline-start", `${100 - b}%`);
|
|
796
796
|
}
|
|
797
|
-
if (f >
|
|
798
|
-
const
|
|
799
|
-
|
|
797
|
+
if (f > u && (m.startsWith("left") || m.startsWith("bottom"))) {
|
|
798
|
+
const b = u / 2 / f * 100;
|
|
799
|
+
m.endsWith("start") ? e.style.setProperty("--db-tooltip-arrow-block-start", `${b}%`) : m.endsWith("end") && e.style.setProperty("--db-tooltip-arrow-block-start", `${100 - b}%`);
|
|
800
800
|
}
|
|
801
|
-
if (
|
|
802
|
-
e.style.insetBlockStart = `${i +
|
|
803
|
-
else if (
|
|
804
|
-
const
|
|
805
|
-
e.style.insetBlockStart = `${i}px`, e.style.insetBlockEnd = `${
|
|
806
|
-
} else if (
|
|
807
|
-
const
|
|
808
|
-
e.style.insetBlockStart = `${
|
|
809
|
-
} else if (
|
|
810
|
-
e.style.insetInlineStart = `${
|
|
811
|
-
else if (
|
|
812
|
-
const
|
|
813
|
-
e.style.insetInlineStart = `${
|
|
814
|
-
} else if (
|
|
815
|
-
const
|
|
816
|
-
e.style.insetInlineStart = `${h - g}px`, e.style.insetInlineEnd = `${
|
|
801
|
+
if (m === "right" || m === "left")
|
|
802
|
+
e.style.insetBlockStart = `${i + u / 2}px`;
|
|
803
|
+
else if (m === "right-start" || m === "left-start") {
|
|
804
|
+
const b = i + f;
|
|
805
|
+
e.style.insetBlockStart = `${i}px`, e.style.insetBlockEnd = `${b > d ? d : b}px`;
|
|
806
|
+
} else if (m === "right-end" || m === "left-end") {
|
|
807
|
+
const b = $ - f;
|
|
808
|
+
e.style.insetBlockStart = `${b < 0 ? 0 : b}px`, e.style.insetBlockEnd = `${$}px`;
|
|
809
|
+
} else if (m === "top" || m === "bottom")
|
|
810
|
+
e.style.insetInlineStart = `${k + c / 2}px`;
|
|
811
|
+
else if (m === "top-start" || m === "bottom-start") {
|
|
812
|
+
const b = k + g;
|
|
813
|
+
e.style.insetInlineStart = `${k}px`, e.style.insetInlineEnd = `${b > s ? s : b}px`;
|
|
814
|
+
} else if (m === "top-end" || m === "bottom-end") {
|
|
815
|
+
const b = k - g;
|
|
816
|
+
e.style.insetInlineStart = `${h - g}px`, e.style.insetInlineEnd = `${b < 0 ? 0 : b}px`;
|
|
817
817
|
}
|
|
818
|
-
if (
|
|
819
|
-
const
|
|
820
|
-
e.style.insetInlineStart = `calc(${h}px + ${a})`, e.style.insetInlineEnd = `calc(${
|
|
821
|
-
} else if (
|
|
822
|
-
const
|
|
823
|
-
e.style.insetInlineStart = `calc(${
|
|
824
|
-
} else if (
|
|
825
|
-
const
|
|
826
|
-
e.style.insetBlockStart = `calc(${
|
|
827
|
-
} else if (
|
|
828
|
-
const
|
|
829
|
-
e.style.insetBlockStart = `calc(${
|
|
818
|
+
if (m?.startsWith("right")) {
|
|
819
|
+
const b = h + g;
|
|
820
|
+
e.style.insetInlineStart = `calc(${h}px + ${a})`, e.style.insetInlineEnd = `calc(${b > s ? s : b}px + ${a})`;
|
|
821
|
+
} else if (m?.startsWith("left")) {
|
|
822
|
+
const b = k - g;
|
|
823
|
+
e.style.insetInlineStart = `calc(${b < 0 ? 0 : b}px - ${a})`, e.style.insetInlineEnd = `calc(${h}px - ${a})`;
|
|
824
|
+
} else if (m?.startsWith("top")) {
|
|
825
|
+
const b = i - f;
|
|
826
|
+
e.style.insetBlockStart = `calc(${b < 0 ? 0 : b}px - ${a})`, e.style.insetBlockEnd = `calc(${$}px - ${a})`;
|
|
827
|
+
} else if (m?.startsWith("bottom")) {
|
|
828
|
+
const b = $ + f;
|
|
829
|
+
e.style.insetBlockStart = `calc(${$}px + ${a})`, e.style.insetBlockEnd = `calc(${b > d ? d : b}px + ${a})`;
|
|
830
830
|
}
|
|
831
|
-
e.style.position = "fixed", e.dataset.correctedPlacement =
|
|
831
|
+
e.style.position = "fixed", e.dataset.correctedPlacement = m;
|
|
832
832
|
}, _a = ["id", "data-width"], et = /* @__PURE__ */ W({
|
|
833
833
|
__name: "custom-select-dropdown",
|
|
834
834
|
props: {
|
|
@@ -849,7 +849,7 @@ const Ja = (e) => {
|
|
|
849
849
|
class: U(n(O)("db-custom-select-dropdown db-card", t.class)),
|
|
850
850
|
"data-width": e.width
|
|
851
851
|
}, [
|
|
852
|
-
|
|
852
|
+
F(a.$slots, "default")
|
|
853
853
|
], 10, _a));
|
|
854
854
|
}
|
|
855
855
|
}), at = ["id", "data-divider"], tt = ["data-icon", "data-show-icon", "data-icon-trailing"], it = ["type", "name", "form", "checked", "disabled", "value"], lt = { key: 1 }, nt = /* @__PURE__ */ W({
|
|
@@ -876,13 +876,13 @@ const Ja = (e) => {
|
|
|
876
876
|
},
|
|
877
877
|
emits: ["update:checked"],
|
|
878
878
|
setup(e, { emit: t }) {
|
|
879
|
-
const l = t, a = e, i = o(void 0),
|
|
880
|
-
|
|
879
|
+
const l = t, a = e, i = o(void 0), u = o(!1), c = o(null);
|
|
880
|
+
Y(() => {
|
|
881
881
|
i.value = a.id ?? `custom-select-list-item-${Q()}`;
|
|
882
882
|
}), C(
|
|
883
883
|
() => [a.isGroupTitle, a.showDivider],
|
|
884
884
|
() => {
|
|
885
|
-
|
|
885
|
+
u.value = !!(a.isGroupTitle || a.showDivider);
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
immediate: !0,
|
|
@@ -896,9 +896,9 @@ const Ja = (e) => {
|
|
|
896
896
|
if (!(a.isGroupTitle || a.type === "checkbox"))
|
|
897
897
|
return q(a.checked, "checked") ? "check" : "x_placeholder";
|
|
898
898
|
}
|
|
899
|
-
return (h,
|
|
899
|
+
return (h, k) => (v(), y("li", {
|
|
900
900
|
ref_key: "_ref",
|
|
901
|
-
ref:
|
|
901
|
+
ref: c,
|
|
902
902
|
id: i.value,
|
|
903
903
|
class: U(
|
|
904
904
|
n(O)("db-custom-select-list-item", a.class, {
|
|
@@ -906,9 +906,9 @@ const Ja = (e) => {
|
|
|
906
906
|
"db-radio": e.type !== "checkbox" && !e.isGroupTitle
|
|
907
907
|
})
|
|
908
908
|
),
|
|
909
|
-
"data-divider": n(V)(
|
|
909
|
+
"data-divider": n(V)(u.value)
|
|
910
910
|
}, [
|
|
911
|
-
e.isGroupTitle ? (v(), y("span", lt,
|
|
911
|
+
e.isGroupTitle ? (v(), y("span", lt, B(e.groupTitle), 1)) : (v(), y("label", {
|
|
912
912
|
key: 0,
|
|
913
913
|
"data-icon": e.type !== "checkbox" && e.icon ? e.icon : void 0,
|
|
914
914
|
"data-show-icon": n(V)(e.showIcon),
|
|
@@ -923,11 +923,11 @@ const Ja = (e) => {
|
|
|
923
923
|
checked: n(q)(e.checked, "checked"),
|
|
924
924
|
disabled: n(q)(e.disabled, "disabled"),
|
|
925
925
|
value: e.value,
|
|
926
|
-
onChange:
|
|
926
|
+
onChange: k[0] || (k[0] = async ($) => f($))
|
|
927
927
|
}, null, 40, it),
|
|
928
928
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
929
|
-
D(
|
|
930
|
-
], 64)) :
|
|
929
|
+
D(B(e.label), 1)
|
|
930
|
+
], 64)) : F(h.$slots, "default", { key: 1 })
|
|
931
931
|
], 8, tt))
|
|
932
932
|
], 10, at));
|
|
933
933
|
}
|
|
@@ -953,7 +953,7 @@ const Ja = (e) => {
|
|
|
953
953
|
class: U(n(O)("db-custom-select-list", t.class))
|
|
954
954
|
}, [
|
|
955
955
|
E("ul", null, [
|
|
956
|
-
|
|
956
|
+
F(a.$slots, "default")
|
|
957
957
|
])
|
|
958
958
|
], 10, ot));
|
|
959
959
|
}
|
|
@@ -1024,12 +1024,12 @@ const Ja = (e) => {
|
|
|
1024
1024
|
},
|
|
1025
1025
|
emits: ["update:value"],
|
|
1026
1026
|
setup(e, { emit: t }) {
|
|
1027
|
-
const l = t, a = e, i = o(void 0),
|
|
1028
|
-
|
|
1029
|
-
const
|
|
1030
|
-
i.value =
|
|
1031
|
-
}),
|
|
1032
|
-
|
|
1027
|
+
const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), $ = o(void 0), m = o(""), s = o(void 0), d = o(null);
|
|
1028
|
+
Y(() => {
|
|
1029
|
+
const N = a.id ?? `input-${Q()}`;
|
|
1030
|
+
i.value = N, u.value = N + ce, c.value = N + re, f.value = N + ve, h.value = N + Qe, g.value = a.invalidMessage || ee;
|
|
1031
|
+
}), he(() => {
|
|
1032
|
+
s.value?.abort();
|
|
1033
1033
|
}), C(
|
|
1034
1034
|
() => [d.value, a.invalidMessage],
|
|
1035
1035
|
() => {
|
|
@@ -1043,8 +1043,8 @@ const Ja = (e) => {
|
|
|
1043
1043
|
() => [i.value],
|
|
1044
1044
|
() => {
|
|
1045
1045
|
if (i.value) {
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1046
|
+
const N = i.value + ce;
|
|
1047
|
+
u.value = N, c.value = i.value + re, f.value = i.value + ve, h.value = a.dataListId ?? i.value + Qe, _(a.message, a.showMessage) && (k.value = N), I();
|
|
1048
1048
|
}
|
|
1049
1049
|
},
|
|
1050
1050
|
{
|
|
@@ -1054,7 +1054,7 @@ const Ja = (e) => {
|
|
|
1054
1054
|
), C(
|
|
1055
1055
|
() => [a.value],
|
|
1056
1056
|
() => {
|
|
1057
|
-
|
|
1057
|
+
$.value = a.value;
|
|
1058
1058
|
},
|
|
1059
1059
|
{
|
|
1060
1060
|
immediate: !0,
|
|
@@ -1064,15 +1064,15 @@ const Ja = (e) => {
|
|
|
1064
1064
|
() => [d.value],
|
|
1065
1065
|
() => {
|
|
1066
1066
|
if (d.value) {
|
|
1067
|
-
let X =
|
|
1068
|
-
X || (X = new AbortController(),
|
|
1067
|
+
let X = s.value;
|
|
1068
|
+
X || (X = new AbortController(), s.value = X), Ue(
|
|
1069
1069
|
d.value,
|
|
1070
1070
|
{
|
|
1071
1071
|
value: a.value,
|
|
1072
1072
|
defaultValue: void 0
|
|
1073
1073
|
},
|
|
1074
1074
|
(A) => {
|
|
1075
|
-
|
|
1075
|
+
w(A), T(A);
|
|
1076
1076
|
},
|
|
1077
1077
|
X.signal
|
|
1078
1078
|
);
|
|
@@ -1083,34 +1083,34 @@ const Ja = (e) => {
|
|
|
1083
1083
|
flush: "post"
|
|
1084
1084
|
}
|
|
1085
1085
|
);
|
|
1086
|
-
function
|
|
1086
|
+
function b() {
|
|
1087
1087
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
1088
1088
|
}
|
|
1089
1089
|
function I() {
|
|
1090
|
-
!d.value?.validity.valid || a.validation === "invalid" ? (
|
|
1090
|
+
!d.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, g.value = a.invalidMessage || d.value?.validationMessage || ee, ue() && (m.value = g.value, K(() => m.value = "", 1e3))) : b() && d.value?.validity.valid && (a.required || a.minLength || a.maxLength || a.pattern) ? (k.value = c.value, ue() && (m.value = a.validMessage ?? se, K(() => m.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = u.value : k.value = void 0;
|
|
1091
1091
|
}
|
|
1092
|
-
function T(
|
|
1093
|
-
a.input && a.input(
|
|
1092
|
+
function T(N, X) {
|
|
1093
|
+
a.input && a.input(N), $.value = N.target.value, a.onInput && a.onInput(N), de(l, N), I();
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
a.onChange && a.onChange(
|
|
1095
|
+
function w(N, X) {
|
|
1096
|
+
a.onChange && a.onChange(N), de(l, N), I();
|
|
1097
1097
|
}
|
|
1098
|
-
function L(
|
|
1099
|
-
a.onBlur && a.onBlur(
|
|
1098
|
+
function L(N) {
|
|
1099
|
+
a.onBlur && a.onBlur(N);
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
a.onFocus && a.onFocus(
|
|
1101
|
+
function S(N) {
|
|
1102
|
+
a.onFocus && a.onFocus(N);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const
|
|
1104
|
+
function M() {
|
|
1105
|
+
const N = a.dataList;
|
|
1106
1106
|
return Array.from(
|
|
1107
|
-
(Ma(
|
|
1107
|
+
(Ma(N) ? N?.map((X) => ({
|
|
1108
1108
|
value: X,
|
|
1109
1109
|
label: void 0
|
|
1110
|
-
})) :
|
|
1110
|
+
})) : N) || []
|
|
1111
1111
|
);
|
|
1112
1112
|
}
|
|
1113
|
-
return (
|
|
1113
|
+
return (N, X) => (v(), y("div", {
|
|
1114
1114
|
class: U(n(O)("db-input", a.class)),
|
|
1115
1115
|
"data-variant": e.variant,
|
|
1116
1116
|
"data-hide-label": n(ne)(e.showLabel),
|
|
@@ -1120,7 +1120,7 @@ const Ja = (e) => {
|
|
|
1120
1120
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
1121
1121
|
"data-show-icon-trailing": n(V)(e.showIconTrailing)
|
|
1122
1122
|
}, [
|
|
1123
|
-
E("label", { for: i.value },
|
|
1123
|
+
E("label", { for: i.value }, B(e.label ?? n(ye)), 9, ut),
|
|
1124
1124
|
E("input", {
|
|
1125
1125
|
"aria-invalid": e.validation === "invalid",
|
|
1126
1126
|
"data-custom-validity": e.validation,
|
|
@@ -1135,7 +1135,7 @@ const Ja = (e) => {
|
|
|
1135
1135
|
disabled: n(q)(e.disabled, "disabled"),
|
|
1136
1136
|
required: n(q)(e.required, "required"),
|
|
1137
1137
|
step: n(ke)(e.step),
|
|
1138
|
-
value: e.value ??
|
|
1138
|
+
value: e.value ?? $.value,
|
|
1139
1139
|
maxLength: n(ke)(e.maxLength, e.maxlength),
|
|
1140
1140
|
minLength: n(ke)(e.minLength, e.minlength),
|
|
1141
1141
|
max: n(Ze)(e.max, e.type),
|
|
@@ -1149,11 +1149,11 @@ const Ja = (e) => {
|
|
|
1149
1149
|
enterKeyHint: e.enterkeyhint,
|
|
1150
1150
|
inputMode: e.inputmode,
|
|
1151
1151
|
onInput: X[0] || (X[0] = async (A) => T(A)),
|
|
1152
|
-
onChange: X[1] || (X[1] = async (A) =>
|
|
1152
|
+
onChange: X[1] || (X[1] = async (A) => w(A)),
|
|
1153
1153
|
onBlur: X[2] || (X[2] = async (A) => L(A)),
|
|
1154
|
-
onFocus: X[3] || (X[3] = async (A) =>
|
|
1154
|
+
onFocus: X[3] || (X[3] = async (A) => S(A)),
|
|
1155
1155
|
list: e.dataList && h.value,
|
|
1156
|
-
"aria-describedby": e.ariaDescribedBy ??
|
|
1156
|
+
"aria-describedby": e.ariaDescribedBy ?? k.value,
|
|
1157
1157
|
role: ["datetime-local", "date", "time", "week", "month", "color"].includes(
|
|
1158
1158
|
e.type ?? ""
|
|
1159
1159
|
) && n(Na)() ? "textbox" : void 0
|
|
@@ -1162,31 +1162,31 @@ const Ja = (e) => {
|
|
|
1162
1162
|
key: 0,
|
|
1163
1163
|
id: h.value
|
|
1164
1164
|
}, [
|
|
1165
|
-
(v(!0), y(H, null,
|
|
1165
|
+
(v(!0), y(H, null, ge(M(), (A) => (v(), y("option", {
|
|
1166
1166
|
key: h.value + "-option-" + A.value,
|
|
1167
1167
|
value: A.value
|
|
1168
|
-
},
|
|
1168
|
+
}, B(A.label), 9, vt))), 128))
|
|
1169
1169
|
], 8, rt)) : z("", !0),
|
|
1170
|
-
|
|
1170
|
+
F(N.$slots, "default"),
|
|
1171
1171
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
1172
1172
|
key: 1,
|
|
1173
1173
|
size: e.messageSize || "small",
|
|
1174
1174
|
icon: e.messageIcon,
|
|
1175
|
-
id:
|
|
1175
|
+
id: u.value
|
|
1176
1176
|
}, {
|
|
1177
1177
|
default: G(() => [
|
|
1178
|
-
D(
|
|
1178
|
+
D(B(e.message), 1)
|
|
1179
1179
|
]),
|
|
1180
1180
|
_: 1
|
|
1181
1181
|
}, 8, ["size", "icon", "id"])) : z("", !0),
|
|
1182
|
-
|
|
1182
|
+
b() ? (v(), J(Z, {
|
|
1183
1183
|
key: 2,
|
|
1184
1184
|
semantic: "successful",
|
|
1185
|
-
id:
|
|
1185
|
+
id: c.value,
|
|
1186
1186
|
size: e.validMessageSize || "small"
|
|
1187
1187
|
}, {
|
|
1188
1188
|
default: G(() => [
|
|
1189
|
-
D(
|
|
1189
|
+
D(B(e.validMessage || n(se)), 1)
|
|
1190
1190
|
]),
|
|
1191
1191
|
_: 1
|
|
1192
1192
|
}, 8, ["id", "size"])) : z("", !0),
|
|
@@ -1196,11 +1196,11 @@ const Ja = (e) => {
|
|
|
1196
1196
|
size: e.invalidMessageSize || "small"
|
|
1197
1197
|
}, {
|
|
1198
1198
|
default: G(() => [
|
|
1199
|
-
D(
|
|
1199
|
+
D(B(g.value), 1)
|
|
1200
1200
|
]),
|
|
1201
1201
|
_: 1
|
|
1202
1202
|
}, 8, ["id", "size"]),
|
|
1203
|
-
E("span", ft,
|
|
1203
|
+
E("span", ft, B(m.value), 1)
|
|
1204
1204
|
], 10, st));
|
|
1205
1205
|
}
|
|
1206
1206
|
}), gt = ["id", "data-emphasis", "data-animation", "data-delay", "data-width", "data-show-arrow", "data-placement"], ca = /* @__PURE__ */ W({
|
|
@@ -1220,20 +1220,20 @@ const Ja = (e) => {
|
|
|
1220
1220
|
width: { default: void 0 }
|
|
1221
1221
|
},
|
|
1222
1222
|
setup(e) {
|
|
1223
|
-
const t = e, l = o(Ie), a = o(!1), i = o(void 0),
|
|
1224
|
-
|
|
1223
|
+
const t = e, l = o(Ie), a = o(!1), i = o(void 0), u = o(void 0), c = o(null);
|
|
1224
|
+
Y(() => {
|
|
1225
1225
|
l.value = t.id || "tooltip-" + Q(), a.value = !0;
|
|
1226
1226
|
}), C(
|
|
1227
|
-
() => [
|
|
1227
|
+
() => [c.value, a.value],
|
|
1228
1228
|
() => {
|
|
1229
|
-
if (
|
|
1229
|
+
if (c.value && a.value && l.value) {
|
|
1230
1230
|
const d = h();
|
|
1231
|
-
d && (["mouseenter", "focusin"].forEach((
|
|
1232
|
-
d.addEventListener(
|
|
1233
|
-
}), d.addEventListener("keydown", (
|
|
1234
|
-
d.addEventListener(
|
|
1235
|
-
}), d.dataset.hasTooltip = "true", t.variant === "label" ? d.setAttribute("aria-labelledby", l.value) : d.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (
|
|
1236
|
-
const I =
|
|
1231
|
+
d && (["mouseenter", "focusin"].forEach((b) => {
|
|
1232
|
+
d.addEventListener(b, () => s(d));
|
|
1233
|
+
}), d.addEventListener("keydown", (b) => g(b)), ["mouseleave", "focusout"].forEach((b) => {
|
|
1234
|
+
d.addEventListener(b, () => m());
|
|
1235
|
+
}), d.dataset.hasTooltip = "true", t.variant === "label" ? d.setAttribute("aria-labelledby", l.value) : d.setAttribute("aria-describedby", l.value)), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((b) => {
|
|
1236
|
+
const I = b.find(({ target: T }) => T === h());
|
|
1237
1237
|
I && !I.isIntersecting && g(!1);
|
|
1238
1238
|
})), a.value = !1;
|
|
1239
1239
|
}
|
|
@@ -1247,40 +1247,40 @@ const Ja = (e) => {
|
|
|
1247
1247
|
d.stopPropagation();
|
|
1248
1248
|
}
|
|
1249
1249
|
function g(d) {
|
|
1250
|
-
(!d || d.key === "Escape") &&
|
|
1250
|
+
(!d || d.key === "Escape") && c.value && getComputedStyle(c.value).visibility === "visible" && h().blur();
|
|
1251
1251
|
}
|
|
1252
1252
|
function h() {
|
|
1253
|
-
let d =
|
|
1253
|
+
let d = c.value.parentElement;
|
|
1254
1254
|
return d && d.localName.includes("tooltip") && (d = d.parentElement), d;
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
d &&
|
|
1258
|
-
|
|
1259
|
-
|
|
1256
|
+
function k(d) {
|
|
1257
|
+
d && c.value && K(() => {
|
|
1258
|
+
c.value && ua(
|
|
1259
|
+
c.value,
|
|
1260
1260
|
d,
|
|
1261
1261
|
t.placement ?? "bottom"
|
|
1262
1262
|
);
|
|
1263
1263
|
}, 1);
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1266
|
-
d?.target?.contains && d?.target?.contains(
|
|
1265
|
+
function $(d, b) {
|
|
1266
|
+
d?.target?.contains && d?.target?.contains(c.value) && k(b);
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function m() {
|
|
1269
1269
|
i.value && new oe().removeCallback(
|
|
1270
1270
|
i.value
|
|
1271
|
-
),
|
|
1271
|
+
), u.value?.unobserve(h());
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function s(d) {
|
|
1274
1274
|
i.value = new oe().addCallback(
|
|
1275
|
-
(
|
|
1276
|
-
),
|
|
1275
|
+
(b) => $(b, d)
|
|
1276
|
+
), k(d), u.value?.observe(h());
|
|
1277
1277
|
}
|
|
1278
|
-
return (d,
|
|
1278
|
+
return (d, b) => (v(), y("i", {
|
|
1279
1279
|
role: "tooltip",
|
|
1280
1280
|
"aria-hidden": "true",
|
|
1281
1281
|
"data-gap": "true",
|
|
1282
1282
|
ref_key: "_ref",
|
|
1283
|
-
ref:
|
|
1283
|
+
ref: c,
|
|
1284
1284
|
class: U(n(O)("db-tooltip", t.class)),
|
|
1285
1285
|
id: l.value,
|
|
1286
1286
|
"data-emphasis": e.emphasis,
|
|
@@ -1289,9 +1289,9 @@ const Ja = (e) => {
|
|
|
1289
1289
|
"data-width": e.width,
|
|
1290
1290
|
"data-show-arrow": n(V)(e.showArrow ?? !0),
|
|
1291
1291
|
"data-placement": e.placement,
|
|
1292
|
-
onClick:
|
|
1292
|
+
onClick: b[0] || (b[0] = async (I) => f(I))
|
|
1293
1293
|
}, [
|
|
1294
|
-
|
|
1294
|
+
F(d.$slots, "default")
|
|
1295
1295
|
], 10, gt));
|
|
1296
1296
|
}
|
|
1297
1297
|
}), mt = ["id", "data-semantic", "data-emphasis", "data-icon", "data-show-check-state", "data-show-icon", "data-no-text", "data-overflow"], bt = /* @__PURE__ */ W({
|
|
@@ -1319,13 +1319,13 @@ const Ja = (e) => {
|
|
|
1319
1319
|
},
|
|
1320
1320
|
setup(e) {
|
|
1321
1321
|
const t = e, l = o(null);
|
|
1322
|
-
function a(
|
|
1323
|
-
|
|
1322
|
+
function a(u) {
|
|
1323
|
+
u && (u.stopPropagation(), t.onRemove && t.onRemove(u));
|
|
1324
1324
|
}
|
|
1325
1325
|
function i() {
|
|
1326
1326
|
return t.removeButton ? t.removeButton : aa;
|
|
1327
1327
|
}
|
|
1328
|
-
return (
|
|
1328
|
+
return (u, c) => (v(), y("div", {
|
|
1329
1329
|
ref_key: "_ref",
|
|
1330
1330
|
ref: l,
|
|
1331
1331
|
id: e.id,
|
|
@@ -1338,10 +1338,10 @@ const Ja = (e) => {
|
|
|
1338
1338
|
"data-no-text": n(V)(e.noText),
|
|
1339
1339
|
"data-overflow": n(V)(e.overflow)
|
|
1340
1340
|
}, [
|
|
1341
|
-
|
|
1342
|
-
|
|
1341
|
+
F(u.$slots, "content"),
|
|
1342
|
+
F(u.$slots, "default"),
|
|
1343
1343
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
1344
|
-
D(
|
|
1344
|
+
D(B(e.text), 1)
|
|
1345
1345
|
], 64)) : z("", !0),
|
|
1346
1346
|
e.behavior === "removable" ? (v(), y("button", {
|
|
1347
1347
|
key: 1,
|
|
@@ -1351,11 +1351,11 @@ const Ja = (e) => {
|
|
|
1351
1351
|
"data-no-text": "true",
|
|
1352
1352
|
"data-variant": "ghost",
|
|
1353
1353
|
type: "button",
|
|
1354
|
-
onClick:
|
|
1354
|
+
onClick: c[0] || (c[0] = async (f) => a(f))
|
|
1355
1355
|
}, [
|
|
1356
1356
|
te(ca, { variant: "label" }, {
|
|
1357
1357
|
default: G(() => [
|
|
1358
|
-
D(
|
|
1358
|
+
D(B(i()), 1)
|
|
1359
1359
|
]),
|
|
1360
1360
|
_: 1
|
|
1361
1361
|
})
|
|
@@ -1365,7 +1365,7 @@ const Ja = (e) => {
|
|
|
1365
1365
|
}), yt = ["id", "aria-invalid", "data-custom-validity", "data-width", "data-variant", "data-required", "data-hide-asterisk", "data-placement", "data-selected-type", "data-hide-label", "data-icon", "data-show-icon"], kt = ["id"], wt = ["id", "form", "name", "multiple", "disabled", "required"], St = ["disabled", "value"], Bt = ["open"], pt = ["id", "aria-disabled", "aria-labelledby"], Lt = ["data-visually-hidden", "id"], It = {
|
|
1366
1366
|
key: 0,
|
|
1367
1367
|
"data-visually-hidden": "true"
|
|
1368
|
-
},
|
|
1368
|
+
}, xt = { key: 1 }, $t = { key: 0 }, Tt = { key: 0 }, Ct = { class: "db-checkbox db-custom-select-list-item" }, Et = ["form", "checked"], At = ["aria-hidden", "id"], Dt = {
|
|
1369
1369
|
"data-visually-hidden": "true",
|
|
1370
1370
|
role: "status"
|
|
1371
1371
|
}, hl = /* @__PURE__ */ W({
|
|
@@ -1434,23 +1434,23 @@ const Ja = (e) => {
|
|
|
1434
1434
|
},
|
|
1435
1435
|
emits: ["update:values"],
|
|
1436
1436
|
setup(e, { emit: t }) {
|
|
1437
|
-
const l = t, a = e, i = o(void 0),
|
|
1438
|
-
|
|
1437
|
+
const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(void 0), $ = o(void 0), m = o(void 0), s = o(void 0), d = o("no-validation"), b = o(!1), I = o(void 0), T = o(void 0), w = o(""), L = o(void 0), S = o(""), M = o([]), N = o(!1), X = o(!1), A = o(0), R = o([]), j = o([]), pe = o(!1), me = o(void 0), Ce = o(0), Fe = o(void 0), Ne = o(void 0), Re = o(void 0), ze = o(!1), xe = o(!1), ra = o(null), P = o(null), le = o(null), Ee = o(null), Ve = o(null);
|
|
1438
|
+
Y(() => {
|
|
1439
1439
|
const r = a.id ?? `custom-select-${Q()}`;
|
|
1440
|
-
i.value = r,
|
|
1440
|
+
i.value = r, u.value = r + ce, c.value = r + re, f.value = r + ve, h.value = r + Je, k.value = r + Ye, $.value = r + "-summary", m.value = r + De, L.value = r + "-selected-labels", s.value = r + "-info", g.value = a.invalidMessage || ee, typeof window < "u" && "IntersectionObserver" in window && (Ne.value = new IntersectionObserver((p) => {
|
|
1441
1441
|
if (P.value) {
|
|
1442
|
-
const
|
|
1443
|
-
|
|
1442
|
+
const x = p.find(({ target: ae }) => ae === P.value);
|
|
1443
|
+
x && !x.isIntersecting && P.value.open && (P.value.open = !1);
|
|
1444
1444
|
}
|
|
1445
1445
|
}));
|
|
1446
|
-
}),
|
|
1446
|
+
}), he(() => {
|
|
1447
1447
|
I.value?.abort();
|
|
1448
1448
|
}), C(
|
|
1449
1449
|
() => [P.value],
|
|
1450
1450
|
() => {
|
|
1451
1451
|
P.value && P.value.addEventListener(
|
|
1452
1452
|
"focusout",
|
|
1453
|
-
(r) =>
|
|
1453
|
+
(r) => $e(r)
|
|
1454
1454
|
);
|
|
1455
1455
|
},
|
|
1456
1456
|
{
|
|
@@ -1462,7 +1462,7 @@ const Ja = (e) => {
|
|
|
1462
1462
|
() => {
|
|
1463
1463
|
if (i.value) {
|
|
1464
1464
|
const r = i.value + ce;
|
|
1465
|
-
|
|
1465
|
+
k.value = i.value + Ye, h.value = i.value + Je, c.value = i.value + re, f.value = i.value + ve, m.value = i.value + De, _(a.message, a.showMessage) ? Le(r) : Le();
|
|
1466
1466
|
}
|
|
1467
1467
|
},
|
|
1468
1468
|
{
|
|
@@ -1496,7 +1496,7 @@ const Ja = (e) => {
|
|
|
1496
1496
|
), C(
|
|
1497
1497
|
() => [a.showSelectAll, A.value, a.multiple],
|
|
1498
1498
|
() => {
|
|
1499
|
-
|
|
1499
|
+
N.value = !!(a.multiple && (a.showSelectAll ?? A.value > 5));
|
|
1500
1500
|
},
|
|
1501
1501
|
{
|
|
1502
1502
|
immediate: !0,
|
|
@@ -1515,14 +1515,14 @@ const Ja = (e) => {
|
|
|
1515
1515
|
() => [a.values],
|
|
1516
1516
|
() => {
|
|
1517
1517
|
const r = a.values;
|
|
1518
|
-
Array.isArray(r) ?
|
|
1518
|
+
Array.isArray(r) ? R.value !== r && (R.value = r) : r == null && R.value?.length !== 0 && (R.value = []);
|
|
1519
1519
|
},
|
|
1520
1520
|
{
|
|
1521
1521
|
immediate: !0,
|
|
1522
1522
|
flush: "post"
|
|
1523
1523
|
}
|
|
1524
1524
|
), C(
|
|
1525
|
-
() => [
|
|
1525
|
+
() => [R.value, le.value],
|
|
1526
1526
|
() => {
|
|
1527
1527
|
le.value && Ge();
|
|
1528
1528
|
},
|
|
@@ -1536,12 +1536,12 @@ const Ja = (e) => {
|
|
|
1536
1536
|
if (le.value) {
|
|
1537
1537
|
let r = I.value;
|
|
1538
1538
|
r || (r = new AbortController(), I.value = r);
|
|
1539
|
-
const
|
|
1539
|
+
const p = a.values;
|
|
1540
1540
|
Me(
|
|
1541
1541
|
le.value,
|
|
1542
1542
|
() => {
|
|
1543
|
-
const
|
|
1544
|
-
Be(
|
|
1543
|
+
const x = p || (le.value.value ? [le.value.value] : []);
|
|
1544
|
+
Be(x), Ge();
|
|
1545
1545
|
},
|
|
1546
1546
|
r.signal
|
|
1547
1547
|
);
|
|
@@ -1561,9 +1561,9 @@ const Ja = (e) => {
|
|
|
1561
1561
|
flush: "post"
|
|
1562
1562
|
}
|
|
1563
1563
|
), C(
|
|
1564
|
-
() => [
|
|
1564
|
+
() => [R.value, A.value],
|
|
1565
1565
|
() => {
|
|
1566
|
-
|
|
1566
|
+
R.value?.length === 0 ? (ze.value = !1, xe.value = !1) : R.value?.length === A.value ? (xe.value = !1, ze.value = !0) : R.value && (xe.value = !0);
|
|
1567
1567
|
},
|
|
1568
1568
|
{
|
|
1569
1569
|
immediate: !0,
|
|
@@ -1591,10 +1591,10 @@ const Ja = (e) => {
|
|
|
1591
1591
|
flush: "post"
|
|
1592
1592
|
}
|
|
1593
1593
|
), C(
|
|
1594
|
-
() => [a.options,
|
|
1594
|
+
() => [a.options, R.value],
|
|
1595
1595
|
() => {
|
|
1596
|
-
a.options?.length && (
|
|
1597
|
-
(r) => !r.value || !
|
|
1596
|
+
a.options?.length && (M.value = a.options?.filter(
|
|
1597
|
+
(r) => !r.value || !R.value?.includes ? !1 : !r.isGroupTitle && R.value?.includes(r.value)
|
|
1598
1598
|
));
|
|
1599
1599
|
},
|
|
1600
1600
|
{
|
|
@@ -1603,7 +1603,7 @@ const Ja = (e) => {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
), C(
|
|
1605
1605
|
() => [
|
|
1606
|
-
|
|
1606
|
+
M.value,
|
|
1607
1607
|
a.selectedType,
|
|
1608
1608
|
a.amountText,
|
|
1609
1609
|
a.selectedLabels,
|
|
@@ -1611,36 +1611,36 @@ const Ja = (e) => {
|
|
|
1611
1611
|
],
|
|
1612
1612
|
() => {
|
|
1613
1613
|
if (a.selectedLabels) {
|
|
1614
|
-
|
|
1614
|
+
w.value = a.selectedLabels;
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
|
-
if (
|
|
1617
|
+
if (M.value?.length) {
|
|
1618
1618
|
if (a.transformSelectedLabels) {
|
|
1619
|
-
const r =
|
|
1620
|
-
|
|
1619
|
+
const r = M.value, p = a.transformSelectedLabels;
|
|
1620
|
+
w.value = p(r);
|
|
1621
1621
|
return;
|
|
1622
1622
|
}
|
|
1623
|
-
a.selectedType === "amount" ?
|
|
1623
|
+
a.selectedType === "amount" ? w.value = a.amountText ? a.amountText : `${M.value?.length} ${$a}` : w.value = M.value?.map((r) => Se(r)).join(", ");
|
|
1624
1624
|
} else
|
|
1625
|
-
|
|
1625
|
+
w.value = "";
|
|
1626
1626
|
},
|
|
1627
1627
|
{
|
|
1628
1628
|
immediate: !0,
|
|
1629
1629
|
flush: "post"
|
|
1630
1630
|
}
|
|
1631
1631
|
), C(
|
|
1632
|
-
() => [
|
|
1632
|
+
() => [M.value],
|
|
1633
1633
|
() => {
|
|
1634
|
-
a.onAmountChange && a.onAmountChange(
|
|
1634
|
+
a.onAmountChange && a.onAmountChange(M.value?.length ?? 0);
|
|
1635
1635
|
},
|
|
1636
1636
|
{
|
|
1637
1637
|
immediate: !0,
|
|
1638
1638
|
flush: "post"
|
|
1639
1639
|
}
|
|
1640
1640
|
), C(
|
|
1641
|
-
() => [
|
|
1641
|
+
() => [xe.value, Ee.value],
|
|
1642
1642
|
() => {
|
|
1643
|
-
Ee.value && (Ee.value.indeterminate =
|
|
1643
|
+
Ee.value && (Ee.value.indeterminate = !!xe.value);
|
|
1644
1644
|
},
|
|
1645
1645
|
{
|
|
1646
1646
|
immediate: !0,
|
|
@@ -1663,13 +1663,13 @@ const Ja = (e) => {
|
|
|
1663
1663
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
1664
1664
|
}
|
|
1665
1665
|
function Ge() {
|
|
1666
|
-
le.value && (le.value.value = ha()), !le.value?.validity.valid || a.validation === "invalid" ? (Le(f.value), g.value = a.invalidMessage || le.value?.validationMessage || ee, ue() && (
|
|
1666
|
+
le.value && (le.value.value = ha()), !le.value?.validity.valid || a.validation === "invalid" ? (Le(f.value), g.value = a.invalidMessage || le.value?.validationMessage || ee, ue() && (S.value = g.value, K(() => S.value = "", 1e3)), b.value && (d.value = a.validation ?? "invalid")) : Oe() && le.value?.validity.valid && a.required ? (Le(c.value), ue() && (S.value = a.validMessage ?? se, K(() => S.value = "", 1e3)), d.value = a.validation ?? "valid") : _(a.message, a.showMessage) ? (Le(u.value), d.value = a.validation ?? "no-validation") : (Le(m.value), d.value = a.validation ?? "no-validation");
|
|
1667
1667
|
}
|
|
1668
1668
|
function fa(r) {
|
|
1669
1669
|
a.onDropdownToggle && (r.stopPropagation(), a.onDropdownToggle(r)), r.target instanceof HTMLDetailsElement && r.target.open ? (me.value = new fe().addCallback(
|
|
1670
|
-
(
|
|
1670
|
+
(p) => Sa(p)
|
|
1671
1671
|
), Fe.value = new oe().addCallback(
|
|
1672
|
-
(
|
|
1672
|
+
(p) => va(p)
|
|
1673
1673
|
), Pe(), Ne.value?.observe(P.value), r.target.dataset.test || He()) : (me.value && new fe().removeCallback(
|
|
1674
1674
|
me.value
|
|
1675
1675
|
), Fe.value && new oe().removeCallback(
|
|
@@ -1677,11 +1677,11 @@ const Ja = (e) => {
|
|
|
1677
1677
|
), Ne.value?.unobserve(P.value));
|
|
1678
1678
|
}
|
|
1679
1679
|
function ha() {
|
|
1680
|
-
return
|
|
1680
|
+
return R.value?.length ? R.value.at(0) ?? "" : "";
|
|
1681
1681
|
}
|
|
1682
1682
|
function Le(r) {
|
|
1683
|
-
const
|
|
1684
|
-
r &&
|
|
1683
|
+
const p = [];
|
|
1684
|
+
r && p.push(r), L.value && w.value?.length && p.push(L.value), T.value = p.join(" ");
|
|
1685
1685
|
}
|
|
1686
1686
|
function ga() {
|
|
1687
1687
|
return a.selectAllLabel ?? ye;
|
|
@@ -1690,24 +1690,24 @@ const Ja = (e) => {
|
|
|
1690
1690
|
return r.label ?? r.value?.toString() ?? "";
|
|
1691
1691
|
}
|
|
1692
1692
|
function ma(r) {
|
|
1693
|
-
return r &&
|
|
1693
|
+
return r && R.value?.includes ? R.value?.includes(r) : !1;
|
|
1694
1694
|
}
|
|
1695
1695
|
function ba(r) {
|
|
1696
|
-
const
|
|
1697
|
-
if (
|
|
1698
|
-
const ae =
|
|
1699
|
-
if (ae >= 0 && ae <
|
|
1700
|
-
return
|
|
1696
|
+
const p = a.removeTagsTexts, x = a.options;
|
|
1697
|
+
if (p && x) {
|
|
1698
|
+
const ae = x.findIndex((ie) => ie.value === r.value);
|
|
1699
|
+
if (ae >= 0 && ae < p.length)
|
|
1700
|
+
return p[ae];
|
|
1701
1701
|
}
|
|
1702
1702
|
return `${aa} ${Se(r)}`;
|
|
1703
1703
|
}
|
|
1704
|
-
function ya(r,
|
|
1705
|
-
|
|
1704
|
+
function ya(r, p) {
|
|
1705
|
+
p && p.stopPropagation(), We(r.value), Te();
|
|
1706
1706
|
}
|
|
1707
1707
|
function Pe() {
|
|
1708
1708
|
if (P.value) {
|
|
1709
1709
|
const r = P.value.querySelector("article");
|
|
1710
|
-
r &&
|
|
1710
|
+
r && K(() => {
|
|
1711
1711
|
Za(
|
|
1712
1712
|
r,
|
|
1713
1713
|
P.value,
|
|
@@ -1719,10 +1719,10 @@ const Ja = (e) => {
|
|
|
1719
1719
|
function ka(r) {
|
|
1720
1720
|
if (P.value?.open) {
|
|
1721
1721
|
if (self.document) {
|
|
1722
|
-
const
|
|
1723
|
-
if (
|
|
1724
|
-
if (
|
|
1725
|
-
const ae =
|
|
1722
|
+
const p = self.document.activeElement;
|
|
1723
|
+
if (p)
|
|
1724
|
+
if (p.getAttribute("type") === "checkbox" || p.getAttribute("type") === "radio") {
|
|
1725
|
+
const ae = p?.closest("li");
|
|
1726
1726
|
if (r.key === "ArrowDown" || r.key === "ArrowRight") {
|
|
1727
1727
|
let ie = ae?.nextElementSibling;
|
|
1728
1728
|
for (; ie; ) {
|
|
@@ -1733,7 +1733,7 @@ const Ja = (e) => {
|
|
|
1733
1733
|
}
|
|
1734
1734
|
ie = ie.nextElementSibling;
|
|
1735
1735
|
}
|
|
1736
|
-
ie || Ae(
|
|
1736
|
+
ie || Ae(p);
|
|
1737
1737
|
} else {
|
|
1738
1738
|
let ie = ae?.previousElementSibling;
|
|
1739
1739
|
for (; ie; ) {
|
|
@@ -1748,59 +1748,59 @@ const Ja = (e) => {
|
|
|
1748
1748
|
const be = P.value.querySelector(
|
|
1749
1749
|
'input[type="checkbox"]'
|
|
1750
1750
|
);
|
|
1751
|
-
if (be && be !==
|
|
1752
|
-
Ae(
|
|
1751
|
+
if (be && be !== p)
|
|
1752
|
+
Ae(p);
|
|
1753
1753
|
else {
|
|
1754
1754
|
const je = _e(P.value);
|
|
1755
1755
|
if (je)
|
|
1756
|
-
|
|
1756
|
+
K(() => {
|
|
1757
1757
|
je.focus();
|
|
1758
1758
|
}, 100);
|
|
1759
1759
|
else {
|
|
1760
|
-
const
|
|
1760
|
+
const Ke = Array.from(
|
|
1761
1761
|
P.value?.querySelectorAll(
|
|
1762
1762
|
'input[type="checkbox"],input[type="radio"]'
|
|
1763
1763
|
)
|
|
1764
1764
|
);
|
|
1765
|
-
|
|
1765
|
+
Ke.length && Ke.at(-1)?.focus();
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
1769
|
}
|
|
1770
1770
|
} else
|
|
1771
|
-
|
|
1771
|
+
p.getAttribute("type") === "search" && (r.key === "ArrowUp" || r.key === "ArrowLeft") ? ($e(void 0, !0), Te()) : Ae(p);
|
|
1772
1772
|
}
|
|
1773
1773
|
} else (r.key === "ArrowDown" || r.key === "ArrowRight") && (Pe(), P.value && (P.value.open = !0), He());
|
|
1774
1774
|
r.stopPropagation(), r.preventDefault();
|
|
1775
1775
|
}
|
|
1776
1776
|
function wa(r) {
|
|
1777
1777
|
if (r.stopPropagation(), r.key === "Escape" && P.value?.open)
|
|
1778
|
-
|
|
1778
|
+
$e(void 0, !0), Te();
|
|
1779
1779
|
else if (r.key === "Enter" && P.value?.open) {
|
|
1780
1780
|
if (self.document) {
|
|
1781
|
-
const
|
|
1782
|
-
["checkbox", "radio"].includes(
|
|
1781
|
+
const p = self.document.activeElement;
|
|
1782
|
+
["checkbox", "radio"].includes(p.getAttribute("type") || "") && (p.click(), r.preventDefault());
|
|
1783
1783
|
}
|
|
1784
1784
|
} else (r.key === "ArrowDown" || r.key === "ArrowUp" || r.key === "ArrowLeft" || r.key === "ArrowRight") && ka(r);
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function $e(r, p) {
|
|
1787
1787
|
if (P.value) {
|
|
1788
|
-
if (
|
|
1788
|
+
if (p)
|
|
1789
1789
|
P.value.open = !1, Te();
|
|
1790
1790
|
else if (P.value.open && r && r.relatedTarget) {
|
|
1791
|
-
const
|
|
1792
|
-
P.value.contains(
|
|
1791
|
+
const x = r.relatedTarget;
|
|
1792
|
+
P.value.contains(x) || K(() => P.value.open = !1, 1);
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
1796
|
function Sa(r) {
|
|
1797
1797
|
if (r) {
|
|
1798
|
-
const
|
|
1799
|
-
P.value?.open && !P.value.contains(
|
|
1798
|
+
const p = r.target;
|
|
1799
|
+
P.value?.open && !P.value.contains(p) && (P.value.open = !1);
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
1802
|
function Be(r) {
|
|
1803
|
-
(/* @__PURE__ */ new Date()).getTime() - Ce.value < 200 || (
|
|
1803
|
+
(/* @__PURE__ */ new Date()).getTime() - Ce.value < 200 || (R.value = r, b.value = !0, a.onOptionSelected && a.onOptionSelected(r ?? []), de(
|
|
1804
1804
|
l,
|
|
1805
1805
|
{
|
|
1806
1806
|
target: {
|
|
@@ -1811,30 +1811,30 @@ const Ja = (e) => {
|
|
|
1811
1811
|
), Ce.value = (/* @__PURE__ */ new Date()).getTime());
|
|
1812
1812
|
}
|
|
1813
1813
|
function We(r) {
|
|
1814
|
-
r && (a.multiple ?
|
|
1814
|
+
r && (a.multiple ? R.value?.includes(r) ? Be(R.value.filter((p) => p !== r)) : Be([...R.value || [], r]) : (Be([r]), $e(void 0, !0)));
|
|
1815
1815
|
}
|
|
1816
1816
|
function Ba(r) {
|
|
1817
|
-
if (r.stopPropagation(),
|
|
1817
|
+
if (r.stopPropagation(), R.value?.length === A.value)
|
|
1818
1818
|
Be([]);
|
|
1819
1819
|
else {
|
|
1820
|
-
const
|
|
1820
|
+
const p = X.value && Ve.value ? Ve.value.value : void 0;
|
|
1821
1821
|
Be(
|
|
1822
1822
|
a.options ? a.options.filter(
|
|
1823
|
-
(
|
|
1824
|
-
).map((
|
|
1823
|
+
(x) => !x.isGroupTitle && (!p || x.value?.toLowerCase().includes(p.toLowerCase()))
|
|
1824
|
+
).map((x) => x.value ?? "") : []
|
|
1825
1825
|
);
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
function Ae(r) {
|
|
1829
1829
|
if (P.value) {
|
|
1830
|
-
const
|
|
1830
|
+
const p = Array.from(
|
|
1831
1831
|
P.value.querySelectorAll(
|
|
1832
1832
|
'input[type="checkbox"],input[type="radio"]'
|
|
1833
1833
|
)
|
|
1834
1834
|
);
|
|
1835
|
-
if (
|
|
1836
|
-
const
|
|
1837
|
-
ae &&
|
|
1835
|
+
if (p.length) {
|
|
1836
|
+
const x = p.at(0), ae = x === r && p.length > 1 ? p.at(1) : x;
|
|
1837
|
+
ae && K(() => {
|
|
1838
1838
|
ae.focus();
|
|
1839
1839
|
}, 1);
|
|
1840
1840
|
}
|
|
@@ -1843,7 +1843,7 @@ const Ja = (e) => {
|
|
|
1843
1843
|
function He() {
|
|
1844
1844
|
if (P.value) {
|
|
1845
1845
|
const r = _e(P.value);
|
|
1846
|
-
r ?
|
|
1846
|
+
r ? K(() => {
|
|
1847
1847
|
r.focus();
|
|
1848
1848
|
}, 1) : Ae();
|
|
1849
1849
|
}
|
|
@@ -1851,17 +1851,17 @@ const Ja = (e) => {
|
|
|
1851
1851
|
function Xe(r) {
|
|
1852
1852
|
if (r === void 0)
|
|
1853
1853
|
return;
|
|
1854
|
-
let
|
|
1854
|
+
let p;
|
|
1855
1855
|
if (typeof r == "string")
|
|
1856
|
-
|
|
1856
|
+
p = r;
|
|
1857
1857
|
else {
|
|
1858
|
-
const
|
|
1859
|
-
|
|
1858
|
+
const x = r;
|
|
1859
|
+
x.stopPropagation(), a.onSearch && a.onSearch(x), p = x.target.value, Re.value = p;
|
|
1860
1860
|
}
|
|
1861
|
-
!a.options || !
|
|
1862
|
-
(
|
|
1861
|
+
!a.options || !p || p.length === 0 ? j.value = a.options : a.searchFilter ? j.value = a.options.filter(
|
|
1862
|
+
(x) => a.searchFilter(x, p)
|
|
1863
1863
|
) : j.value = a.options.filter(
|
|
1864
|
-
(
|
|
1864
|
+
(x) => !x.isGroupTitle && Se(x).toLowerCase().includes(p.toLowerCase())
|
|
1865
1865
|
);
|
|
1866
1866
|
}
|
|
1867
1867
|
function pa(r) {
|
|
@@ -1873,7 +1873,7 @@ const Ja = (e) => {
|
|
|
1873
1873
|
function La(r) {
|
|
1874
1874
|
r.stopPropagation();
|
|
1875
1875
|
}
|
|
1876
|
-
return (r,
|
|
1876
|
+
return (r, p) => (v(), y("div", {
|
|
1877
1877
|
id: i.value,
|
|
1878
1878
|
ref_key: "_ref",
|
|
1879
1879
|
ref: ra,
|
|
@@ -1890,8 +1890,8 @@ const Ja = (e) => {
|
|
|
1890
1890
|
"data-icon": e.icon,
|
|
1891
1891
|
"data-show-icon": n(V)(e.showIcon)
|
|
1892
1892
|
}, [
|
|
1893
|
-
E("label", { id:
|
|
1894
|
-
D(
|
|
1893
|
+
E("label", { id: k.value }, [
|
|
1894
|
+
D(B(e.label ?? n(ye)), 1),
|
|
1895
1895
|
E("select", {
|
|
1896
1896
|
role: "none",
|
|
1897
1897
|
hidden: !0,
|
|
@@ -1904,48 +1904,48 @@ const Ja = (e) => {
|
|
|
1904
1904
|
multiple: n(q)(e.multiple, "multiple"),
|
|
1905
1905
|
disabled: n(q)(e.disabled, "disabled"),
|
|
1906
1906
|
required: n(q)(e.required, "required"),
|
|
1907
|
-
onChange:
|
|
1907
|
+
onChange: p[0] || (p[0] = async (x) => La(x))
|
|
1908
1908
|
}, [
|
|
1909
|
-
e.options?.length ? (v(!0), y(H, { key: 0 },
|
|
1909
|
+
e.options?.length ? (v(!0), y(H, { key: 0 }, ge(e.options, (x, ae) => (v(), y("option", {
|
|
1910
1910
|
key: ae,
|
|
1911
|
-
disabled:
|
|
1912
|
-
value:
|
|
1913
|
-
},
|
|
1911
|
+
disabled: x.disabled,
|
|
1912
|
+
value: x.value
|
|
1913
|
+
}, B(Se(x)), 9, St))), 128)) : z("", !0)
|
|
1914
1914
|
], 40, wt)
|
|
1915
1915
|
], 8, kt),
|
|
1916
1916
|
E("details", {
|
|
1917
1917
|
ref_key: "detailsRef",
|
|
1918
1918
|
ref: P,
|
|
1919
1919
|
open: e.open,
|
|
1920
|
-
onToggle:
|
|
1921
|
-
onKeydown:
|
|
1920
|
+
onToggle: p[2] || (p[2] = async (x) => fa(x)),
|
|
1921
|
+
onKeydown: p[3] || (p[3] = async (x) => wa(x))
|
|
1922
1922
|
}, [
|
|
1923
|
-
|
|
1923
|
+
F(r.$slots, "default"),
|
|
1924
1924
|
e.options ? (v(), y(H, { key: 0 }, [
|
|
1925
1925
|
E("summary", {
|
|
1926
1926
|
class: "db-custom-select-form-field",
|
|
1927
|
-
id:
|
|
1927
|
+
id: $.value,
|
|
1928
1928
|
"aria-disabled": n(V)(e.disabled),
|
|
1929
|
-
"aria-labelledby":
|
|
1929
|
+
"aria-labelledby": k.value
|
|
1930
1930
|
}, [
|
|
1931
|
-
|
|
1931
|
+
w.value?.length ? (v(), y("span", {
|
|
1932
1932
|
key: 0,
|
|
1933
1933
|
"data-visually-hidden": n(V)(e.selectedType === "tag"),
|
|
1934
1934
|
id: L.value
|
|
1935
1935
|
}, [
|
|
1936
|
-
e.selectedPrefix ? (v(), y("span", It,
|
|
1937
|
-
D(" " +
|
|
1936
|
+
e.selectedPrefix ? (v(), y("span", It, B(e.selectedPrefix), 1)) : z("", !0),
|
|
1937
|
+
D(" " + B(w.value), 1)
|
|
1938
1938
|
], 8, Lt)) : z("", !0),
|
|
1939
|
-
e.selectedType === "tag" ? (v(), y("div",
|
|
1940
|
-
(v(!0), y(H, null,
|
|
1939
|
+
e.selectedType === "tag" ? (v(), y("div", xt, [
|
|
1940
|
+
(v(!0), y(H, null, ge(M.value, (x, ae) => (v(), J(bt, {
|
|
1941
1941
|
key: ae,
|
|
1942
1942
|
emphasis: "strong",
|
|
1943
1943
|
behavior: "removable",
|
|
1944
|
-
removeButton: ba(
|
|
1945
|
-
onRemove: (ie) => ya(
|
|
1944
|
+
removeButton: ba(x),
|
|
1945
|
+
onRemove: (ie) => ya(x, ie)
|
|
1946
1946
|
}, {
|
|
1947
1947
|
default: G(() => [
|
|
1948
|
-
D(
|
|
1948
|
+
D(B(Se(x)), 1)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 2
|
|
1951
1951
|
}, 1032, ["removeButton", "onRemove"]))), 128))
|
|
@@ -1953,7 +1953,7 @@ const Ja = (e) => {
|
|
|
1953
1953
|
], 8, pt),
|
|
1954
1954
|
te(et, { width: e.dropdownWidth }, {
|
|
1955
1955
|
default: G(() => [
|
|
1956
|
-
X.value ? (v(), y("div",
|
|
1956
|
+
X.value ? (v(), y("div", $t, [
|
|
1957
1957
|
te(ht, {
|
|
1958
1958
|
type: "search",
|
|
1959
1959
|
ref_key: "searchInputRef",
|
|
@@ -1964,22 +1964,22 @@ const Ja = (e) => {
|
|
|
1964
1964
|
value: Re.value,
|
|
1965
1965
|
label: e.searchLabel ?? n(ye),
|
|
1966
1966
|
placeholder: e.searchPlaceholder ?? e.searchLabel,
|
|
1967
|
-
ariaDescribedBy: pe.value || e.showLoading ?
|
|
1968
|
-
onInput: (
|
|
1967
|
+
ariaDescribedBy: pe.value || e.showLoading ? s.value : void 0,
|
|
1968
|
+
onInput: (x) => Xe(x)
|
|
1969
1969
|
}, null, 8, ["name", "form", "value", "label", "placeholder", "ariaDescribedBy", "onInput"])
|
|
1970
1970
|
])) : z("", !0),
|
|
1971
1971
|
pe.value || e.showLoading ? (v(), J(Z, {
|
|
1972
1972
|
key: 1,
|
|
1973
|
-
id:
|
|
1973
|
+
id: s.value,
|
|
1974
1974
|
icon: e.showLoading ? "circular_arrows" : void 0,
|
|
1975
1975
|
semantic: e.showLoading ? "informational" : "warning"
|
|
1976
1976
|
}, {
|
|
1977
1977
|
default: G(() => [
|
|
1978
|
-
D(
|
|
1978
|
+
D(B((e.showLoading ? e.loadingText : e.noResultsText) ?? n(Ia)), 1)
|
|
1979
1979
|
]),
|
|
1980
1980
|
_: 1
|
|
1981
1981
|
}, 8, ["id", "icon", "semantic"])) : (v(), y(H, { key: 2 }, [
|
|
1982
|
-
|
|
1982
|
+
N.value ? (v(), y("div", Tt, [
|
|
1983
1983
|
E("div", Ct, [
|
|
1984
1984
|
E("label", null, [
|
|
1985
1985
|
E("input", {
|
|
@@ -1989,9 +1989,9 @@ const Ja = (e) => {
|
|
|
1989
1989
|
ref: Ee,
|
|
1990
1990
|
form: i.value,
|
|
1991
1991
|
checked: ze.value,
|
|
1992
|
-
onChange:
|
|
1992
|
+
onChange: p[1] || (p[1] = async (x) => Ba(x))
|
|
1993
1993
|
}, null, 40, Et),
|
|
1994
|
-
D(
|
|
1994
|
+
D(B(ga()), 1)
|
|
1995
1995
|
])
|
|
1996
1996
|
])
|
|
1997
1997
|
])) : z("", !0),
|
|
@@ -2000,22 +2000,22 @@ const Ja = (e) => {
|
|
|
2000
2000
|
label: e.listLabel ?? e.label ?? n(ye)
|
|
2001
2001
|
}, {
|
|
2002
2002
|
default: G(() => [
|
|
2003
|
-
(v(!0), y(H, null,
|
|
2003
|
+
(v(!0), y(H, null, ge(j.value, (x, ae) => (v(), J(nt, {
|
|
2004
2004
|
key: ae,
|
|
2005
2005
|
type: e.multiple ? "checkbox" : "radio",
|
|
2006
|
-
showDivider:
|
|
2007
|
-
icon:
|
|
2008
|
-
isGroupTitle:
|
|
2009
|
-
groupTitle: Se(
|
|
2006
|
+
showDivider: x.showDivider,
|
|
2007
|
+
icon: x.icon,
|
|
2008
|
+
isGroupTitle: x.isGroupTitle,
|
|
2009
|
+
groupTitle: Se(x),
|
|
2010
2010
|
name: i.value,
|
|
2011
|
-
checked: ma(
|
|
2012
|
-
disabled:
|
|
2013
|
-
value:
|
|
2014
|
-
onChange: (ie) => We(
|
|
2011
|
+
checked: ma(x.value),
|
|
2012
|
+
disabled: x.disabled,
|
|
2013
|
+
value: x.value,
|
|
2014
|
+
onChange: (ie) => We(x.value)
|
|
2015
2015
|
}, {
|
|
2016
2016
|
default: G(() => [
|
|
2017
|
-
|
|
2018
|
-
D(
|
|
2017
|
+
x.isGroupTitle ? z("", !0) : (v(), y(H, { key: 0 }, [
|
|
2018
|
+
D(B(Se(x)), 1)
|
|
2019
2019
|
], 64))
|
|
2020
2020
|
]),
|
|
2021
2021
|
_: 2
|
|
@@ -2032,10 +2032,10 @@ const Ja = (e) => {
|
|
|
2032
2032
|
size: "small",
|
|
2033
2033
|
name: i.value,
|
|
2034
2034
|
form: i.value,
|
|
2035
|
-
onClick: (
|
|
2035
|
+
onClick: (x) => $e(void 0, !0)
|
|
2036
2036
|
}, {
|
|
2037
2037
|
default: G(() => [
|
|
2038
|
-
D(
|
|
2038
|
+
D(B(e.mobileCloseButtonText ?? n(qe)), 1)
|
|
2039
2039
|
]),
|
|
2040
2040
|
_: 1
|
|
2041
2041
|
}, 8, ["name", "form", "onClick"])
|
|
@@ -2045,7 +2045,7 @@ const Ja = (e) => {
|
|
|
2045
2045
|
}, 8, ["width"])
|
|
2046
2046
|
], 64)) : z("", !0)
|
|
2047
2047
|
], 40, Bt),
|
|
2048
|
-
(e.showClearSelection ?? !0) &&
|
|
2048
|
+
(e.showClearSelection ?? !0) && R.value?.length ? (v(), J(we, {
|
|
2049
2049
|
key: 0,
|
|
2050
2050
|
icon: "cross",
|
|
2051
2051
|
variant: "ghost",
|
|
@@ -2053,13 +2053,13 @@ const Ja = (e) => {
|
|
|
2053
2053
|
noText: !0,
|
|
2054
2054
|
name: i.value,
|
|
2055
2055
|
form: i.value,
|
|
2056
|
-
onClick: (
|
|
2056
|
+
onClick: (x) => pa(x)
|
|
2057
2057
|
}, {
|
|
2058
2058
|
default: G(() => [
|
|
2059
|
-
D(
|
|
2059
|
+
D(B(e.clearSelectionText), 1),
|
|
2060
2060
|
te(ca, { placement: "top" }, {
|
|
2061
2061
|
default: G(() => [
|
|
2062
|
-
D(
|
|
2062
|
+
D(B(e.clearSelectionText), 1)
|
|
2063
2063
|
]),
|
|
2064
2064
|
_: 1
|
|
2065
2065
|
})
|
|
@@ -2069,16 +2069,16 @@ const Ja = (e) => {
|
|
|
2069
2069
|
E("span", {
|
|
2070
2070
|
class: "db-custom-select-placeholder",
|
|
2071
2071
|
"aria-hidden": n(V)(!0),
|
|
2072
|
-
id:
|
|
2073
|
-
},
|
|
2072
|
+
id: m.value
|
|
2073
|
+
}, B(e.placeholder ?? e.label), 9, At),
|
|
2074
2074
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
2075
2075
|
key: 1,
|
|
2076
2076
|
size: "small",
|
|
2077
2077
|
icon: e.messageIcon,
|
|
2078
|
-
id:
|
|
2078
|
+
id: u.value
|
|
2079
2079
|
}, {
|
|
2080
2080
|
default: G(() => [
|
|
2081
|
-
D(
|
|
2081
|
+
D(B(e.message), 1)
|
|
2082
2082
|
]),
|
|
2083
2083
|
_: 1
|
|
2084
2084
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -2086,10 +2086,10 @@ const Ja = (e) => {
|
|
|
2086
2086
|
key: 2,
|
|
2087
2087
|
size: "small",
|
|
2088
2088
|
semantic: "successful",
|
|
2089
|
-
id:
|
|
2089
|
+
id: c.value
|
|
2090
2090
|
}, {
|
|
2091
2091
|
default: G(() => [
|
|
2092
|
-
D(
|
|
2092
|
+
D(B(e.validMessage || n(se)), 1)
|
|
2093
2093
|
]),
|
|
2094
2094
|
_: 1
|
|
2095
2095
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -2099,11 +2099,11 @@ const Ja = (e) => {
|
|
|
2099
2099
|
id: f.value
|
|
2100
2100
|
}, {
|
|
2101
2101
|
default: G(() => [
|
|
2102
|
-
D(
|
|
2102
|
+
D(B(g.value), 1)
|
|
2103
2103
|
]),
|
|
2104
2104
|
_: 1
|
|
2105
2105
|
}, 8, ["id"]),
|
|
2106
|
-
E("span", Dt, S
|
|
2106
|
+
E("span", Dt, B(S.value), 1)
|
|
2107
2107
|
], 10, yt));
|
|
2108
2108
|
}
|
|
2109
2109
|
}), gl = ["fixed", "auto", "full"], Mt = ["id"], ml = /* @__PURE__ */ W({
|
|
@@ -2123,7 +2123,7 @@ const Ja = (e) => {
|
|
|
2123
2123
|
id: e.id,
|
|
2124
2124
|
class: U(n(O)("db-custom-select-form-field", t.class))
|
|
2125
2125
|
}, [
|
|
2126
|
-
|
|
2126
|
+
F(a.$slots, "default")
|
|
2127
2127
|
], 10, Mt));
|
|
2128
2128
|
}
|
|
2129
2129
|
}), bl = ["checkbox", "radio"], yl = ["amount", "text", "tag"], Ft = ["id", "data-margin", "data-variant", "data-emphasis", "data-width"], kl = /* @__PURE__ */ W({
|
|
@@ -2176,12 +2176,12 @@ const Ja = (e) => {
|
|
|
2176
2176
|
},
|
|
2177
2177
|
setup(e) {
|
|
2178
2178
|
const t = e, l = o(!1), a = o(null), i = o(null);
|
|
2179
|
-
|
|
2180
|
-
|
|
2179
|
+
Y(() => {
|
|
2180
|
+
c(), l.value = !0;
|
|
2181
2181
|
}), C(
|
|
2182
2182
|
() => [t.open],
|
|
2183
2183
|
() => {
|
|
2184
|
-
|
|
2184
|
+
c();
|
|
2185
2185
|
},
|
|
2186
2186
|
{
|
|
2187
2187
|
immediate: !0,
|
|
@@ -2200,13 +2200,13 @@ const Ja = (e) => {
|
|
|
2200
2200
|
flush: "post"
|
|
2201
2201
|
}
|
|
2202
2202
|
);
|
|
2203
|
-
function
|
|
2203
|
+
function u(f, g) {
|
|
2204
2204
|
f && (Ra(f) ? f.key === "Escape" && (f.preventDefault(), t.onClose && t.onClose(f)) : (g && (f.stopPropagation(), t.onClose && t.onClose(f)), f.target?.nodeName === "DIALOG" && f.type === "click" && t.backdrop !== "none" && t.onClose && t.onClose(f)));
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function c() {
|
|
2207
2207
|
if (a.value) {
|
|
2208
2208
|
const f = !!t.open;
|
|
2209
|
-
f && !a.value.open && (i.value && (i.value.hidden = !1), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? a.value.show() : a.value.showModal()), !f && a.value.open && (i.value && (i.value.hidden = !0),
|
|
2209
|
+
f && !a.value.open && (i.value && (i.value.hidden = !1), t.position === "absolute" || t.backdrop === "none" || t.variant === "inside" ? a.value.show() : a.value.showModal()), !f && a.value.open && (i.value && (i.value.hidden = !0), K(() => {
|
|
2210
2210
|
i.value && (i.value.hidden = !1), a.value?.close();
|
|
2211
2211
|
}, 401));
|
|
2212
2212
|
}
|
|
@@ -2216,8 +2216,8 @@ const Ja = (e) => {
|
|
|
2216
2216
|
id: e.id,
|
|
2217
2217
|
ref_key: "_ref",
|
|
2218
2218
|
ref: a,
|
|
2219
|
-
onClick: g[0] || (g[0] = async (h) =>
|
|
2220
|
-
onKeydown: g[1] || (g[1] = async (h) =>
|
|
2219
|
+
onClick: g[0] || (g[0] = async (h) => u(h)),
|
|
2220
|
+
onKeydown: g[1] || (g[1] = async (h) => u(h)),
|
|
2221
2221
|
"data-position": e.position,
|
|
2222
2222
|
"data-backdrop": e.backdrop,
|
|
2223
2223
|
"data-direction": e.direction,
|
|
@@ -2234,7 +2234,7 @@ const Ja = (e) => {
|
|
|
2234
2234
|
}, [
|
|
2235
2235
|
E("header", zt, [
|
|
2236
2236
|
E("div", Vt, [
|
|
2237
|
-
|
|
2237
|
+
F(f.$slots, "drawer-header")
|
|
2238
2238
|
]),
|
|
2239
2239
|
te(we, {
|
|
2240
2240
|
class: "button-close-drawer",
|
|
@@ -2242,16 +2242,16 @@ const Ja = (e) => {
|
|
|
2242
2242
|
variant: "ghost",
|
|
2243
2243
|
id: e.closeButtonId,
|
|
2244
2244
|
noText: !0,
|
|
2245
|
-
onClick: (h) =>
|
|
2245
|
+
onClick: (h) => u(h, !0)
|
|
2246
2246
|
}, {
|
|
2247
2247
|
default: G(() => [
|
|
2248
|
-
D(
|
|
2248
|
+
D(B(e.closeButtonText ?? n(qe)), 1)
|
|
2249
2249
|
]),
|
|
2250
2250
|
_: 1
|
|
2251
2251
|
}, 8, ["id", "onClick"])
|
|
2252
2252
|
]),
|
|
2253
2253
|
E("div", Pt, [
|
|
2254
|
-
|
|
2254
|
+
F(f.$slots, "default")
|
|
2255
2255
|
])
|
|
2256
2256
|
], 10, Rt)
|
|
2257
2257
|
], 40, Nt));
|
|
@@ -2311,18 +2311,18 @@ class Ot {
|
|
|
2311
2311
|
if (!this.triangleData)
|
|
2312
2312
|
return;
|
|
2313
2313
|
if (t === "fill-gap") {
|
|
2314
|
-
const
|
|
2314
|
+
const c = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`, f = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;
|
|
2315
2315
|
return {
|
|
2316
|
-
lb: `${f} ${
|
|
2316
|
+
lb: `${f} ${c}`,
|
|
2317
2317
|
lt: `${f} 0`,
|
|
2318
2318
|
rt: "100% 0",
|
|
2319
|
-
rb: `100% ${
|
|
2319
|
+
rb: `100% ${c}`
|
|
2320
2320
|
};
|
|
2321
2321
|
}
|
|
2322
|
-
const l = this.getTriangleTipX(), a = this.getTriangleTipY(), i = `${l}px ${a}px`,
|
|
2322
|
+
const l = this.getTriangleTipX(), a = this.getTriangleTipY(), i = `${l}px ${a}px`, u = `${l}px ${a}px`;
|
|
2323
2323
|
return {
|
|
2324
2324
|
lb: i,
|
|
2325
|
-
lt:
|
|
2325
|
+
lt: u,
|
|
2326
2326
|
rt: "100% 0",
|
|
2327
2327
|
rb: "100% 100%"
|
|
2328
2328
|
};
|
|
@@ -2335,7 +2335,7 @@ class Ot {
|
|
|
2335
2335
|
a && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${a.lb}, ${a.lt}, ${a.rt}, ${a.rb})`), l && (this.triangleData = void 0));
|
|
2336
2336
|
}
|
|
2337
2337
|
}
|
|
2338
|
-
const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-header-drawer-navigation" }, Ht = { class: "db-header-meta-navigation" }, Xt = { class: "db-header-secondary-action" }, jt = { class: "db-header-meta-navigation" },
|
|
2338
|
+
const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-header-drawer-navigation" }, Ht = { class: "db-header-meta-navigation" }, Xt = { class: "db-header-secondary-action" }, jt = { class: "db-header-meta-navigation" }, Kt = { class: "db-header-navigation-bar" }, Yt = { class: "db-header-brand-container" }, Jt = { class: "db-header-navigation-container" }, Qt = { class: "db-header-navigation" }, Zt = { class: "db-header-primary-action" }, _t = { class: "db-header-action-container" }, ei = { class: "db-header-burger-menu-container" }, ai = { class: "db-header-secondary-action" }, xl = /* @__PURE__ */ W({
|
|
2339
2339
|
__name: "header",
|
|
2340
2340
|
props: {
|
|
2341
2341
|
brand: {},
|
|
@@ -2358,7 +2358,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2358
2358
|
},
|
|
2359
2359
|
setup(e) {
|
|
2360
2360
|
const t = e, l = o(!1), a = o(!1), i = o(null);
|
|
2361
|
-
|
|
2361
|
+
Y(() => {
|
|
2362
2362
|
l.value = !0;
|
|
2363
2363
|
}), C(
|
|
2364
2364
|
() => [l.value, i.value],
|
|
@@ -2373,12 +2373,12 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2373
2373
|
flush: "post"
|
|
2374
2374
|
}
|
|
2375
2375
|
);
|
|
2376
|
-
function
|
|
2376
|
+
function u(f) {
|
|
2377
2377
|
const g = !q(t.drawerOpen, "drawerOpen");
|
|
2378
2378
|
t.onToggle && t.onToggle(g);
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2381
|
-
Ut(f) &&
|
|
2380
|
+
function c(f) {
|
|
2381
|
+
Ut(f) && u();
|
|
2382
2382
|
}
|
|
2383
2383
|
return (f, g) => (v(), y("header", {
|
|
2384
2384
|
ref_key: "_ref",
|
|
@@ -2395,39 +2395,39 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2395
2395
|
closeButtonId: e.closeButtonId,
|
|
2396
2396
|
closeButtonText: e.closeButtonText,
|
|
2397
2397
|
open: n(q)(e.drawerOpen),
|
|
2398
|
-
onClose: (h) =>
|
|
2398
|
+
onClose: (h) => u()
|
|
2399
2399
|
}, {
|
|
2400
2400
|
default: G(() => [
|
|
2401
2401
|
E("div", Wt, [
|
|
2402
2402
|
E("div", {
|
|
2403
2403
|
class: "db-header-navigation",
|
|
2404
|
-
onClick: g[0] || (g[0] = async (h) =>
|
|
2404
|
+
onClick: g[0] || (g[0] = async (h) => c(h))
|
|
2405
2405
|
}, [
|
|
2406
|
-
|
|
2406
|
+
F(f.$slots, "default")
|
|
2407
2407
|
]),
|
|
2408
2408
|
E("div", Ht, [
|
|
2409
|
-
|
|
2409
|
+
F(f.$slots, "meta-navigation")
|
|
2410
2410
|
])
|
|
2411
2411
|
]),
|
|
2412
2412
|
E("div", Xt, [
|
|
2413
|
-
|
|
2413
|
+
F(f.$slots, "secondary-action")
|
|
2414
2414
|
])
|
|
2415
2415
|
]),
|
|
2416
2416
|
_: 3
|
|
2417
2417
|
}, 8, ["closeButtonId", "closeButtonText", "open", "onClose"]),
|
|
2418
2418
|
E("div", jt, [
|
|
2419
|
-
|
|
2419
|
+
F(f.$slots, "meta-navigation")
|
|
2420
2420
|
]),
|
|
2421
|
-
E("div",
|
|
2422
|
-
E("div",
|
|
2423
|
-
|
|
2421
|
+
E("div", Kt, [
|
|
2422
|
+
E("div", Yt, [
|
|
2423
|
+
F(f.$slots, "brand")
|
|
2424
2424
|
]),
|
|
2425
2425
|
E("div", Jt, [
|
|
2426
2426
|
E("div", Qt, [
|
|
2427
|
-
|
|
2427
|
+
F(f.$slots, "default")
|
|
2428
2428
|
]),
|
|
2429
2429
|
E("div", Zt, [
|
|
2430
|
-
|
|
2430
|
+
F(f.$slots, "primary-action")
|
|
2431
2431
|
])
|
|
2432
2432
|
]),
|
|
2433
2433
|
E("div", _t, [
|
|
@@ -2436,22 +2436,22 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2436
2436
|
icon: "menu",
|
|
2437
2437
|
variant: "ghost",
|
|
2438
2438
|
noText: !0,
|
|
2439
|
-
onClick: (h) =>
|
|
2439
|
+
onClick: (h) => u()
|
|
2440
2440
|
}, {
|
|
2441
2441
|
default: G(() => [
|
|
2442
|
-
D(
|
|
2442
|
+
D(B(e.burgerMenuLabel ?? n(Ta)), 1)
|
|
2443
2443
|
]),
|
|
2444
2444
|
_: 1
|
|
2445
2445
|
}, 8, ["onClick"])
|
|
2446
2446
|
]),
|
|
2447
2447
|
E("div", ai, [
|
|
2448
|
-
|
|
2448
|
+
F(f.$slots, "secondary-action")
|
|
2449
2449
|
])
|
|
2450
2450
|
])
|
|
2451
2451
|
])
|
|
2452
2452
|
], 10, Gt));
|
|
2453
2453
|
}
|
|
2454
|
-
}), ti = ["id", "data-icon", "data-icon-weight", "data-icon-variant"],
|
|
2454
|
+
}), ti = ["id", "data-icon", "data-icon-weight", "data-icon-variant"], $l = /* @__PURE__ */ W({
|
|
2455
2455
|
__name: "icon",
|
|
2456
2456
|
props: {
|
|
2457
2457
|
variant: { default: void 0 },
|
|
@@ -2477,8 +2477,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2477
2477
|
"data-icon-variant": e.variant
|
|
2478
2478
|
}, [
|
|
2479
2479
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2480
|
-
D(
|
|
2481
|
-
], 64)) :
|
|
2480
|
+
D(B(e.text), 1)
|
|
2481
|
+
], 64)) : F(a.$slots, "default", { key: 1 })
|
|
2482
2482
|
], 10, ti));
|
|
2483
2483
|
}
|
|
2484
2484
|
}), Tl = ["16", "20", "24", "32", "48", "64"], Cl = [
|
|
@@ -2528,7 +2528,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2528
2528
|
function a(i) {
|
|
2529
2529
|
t.onClick && t.onClick(i);
|
|
2530
2530
|
}
|
|
2531
|
-
return (i,
|
|
2531
|
+
return (i, u) => (v(), y("a", {
|
|
2532
2532
|
ref_key: "_ref",
|
|
2533
2533
|
ref: l,
|
|
2534
2534
|
id: e.id,
|
|
@@ -2545,11 +2545,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2545
2545
|
"data-variant": e.variant,
|
|
2546
2546
|
"data-content": e.content || "internal",
|
|
2547
2547
|
"data-wrap": n(V)(e.wrap),
|
|
2548
|
-
onClick:
|
|
2548
|
+
onClick: u[0] || (u[0] = async (c) => a(c))
|
|
2549
2549
|
}, [
|
|
2550
2550
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2551
|
-
D(
|
|
2552
|
-
], 64)) :
|
|
2551
|
+
D(B(e.text), 1)
|
|
2552
|
+
], 64)) : F(i.$slots, "default", { key: 1 })
|
|
2553
2553
|
], 10, ii));
|
|
2554
2554
|
}
|
|
2555
2555
|
}), Al = ["adaptive", "brand", "inline"], Dl = ["medium", "small"], Ml = ["external", "internal"], li = ["id"], Fl = /* @__PURE__ */ W({
|
|
@@ -2563,16 +2563,16 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2563
2563
|
},
|
|
2564
2564
|
setup(e) {
|
|
2565
2565
|
const t = e, l = o(Ie), a = o(null);
|
|
2566
|
-
return
|
|
2566
|
+
return Y(() => {
|
|
2567
2567
|
l.value = t.id || "navigation-" + Q();
|
|
2568
|
-
}), (i,
|
|
2568
|
+
}), (i, u) => (v(), y("nav", {
|
|
2569
2569
|
ref_key: "_ref",
|
|
2570
2570
|
ref: a,
|
|
2571
2571
|
id: l.value,
|
|
2572
2572
|
class: U(n(O)("db-navigation", t.class))
|
|
2573
2573
|
}, [
|
|
2574
2574
|
E("menu", null, [
|
|
2575
|
-
|
|
2575
|
+
F(i.$slots, "default")
|
|
2576
2576
|
])
|
|
2577
2577
|
], 10, li));
|
|
2578
2578
|
}
|
|
@@ -2601,15 +2601,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2601
2601
|
text: { default: void 0 }
|
|
2602
2602
|
},
|
|
2603
2603
|
setup(e) {
|
|
2604
|
-
const t = e, l = o(!1), a = o(!1), i = o(!0),
|
|
2604
|
+
const t = e, l = o(!1), a = o(!1), i = o(!0), u = o(!1), c = o(!1), f = o(
|
|
2605
2605
|
"sub-navigation-" + Q()
|
|
2606
2606
|
), g = o(void 0), h = o(null);
|
|
2607
|
-
|
|
2607
|
+
Y(() => {
|
|
2608
2608
|
l.value = !0;
|
|
2609
2609
|
}), C(
|
|
2610
2610
|
() => [t.subNavigationExpanded],
|
|
2611
2611
|
() => {
|
|
2612
|
-
t.subNavigationExpanded !== void 0 && (
|
|
2612
|
+
t.subNavigationExpanded !== void 0 && (u.value = !!q(
|
|
2613
2613
|
t.subNavigationExpanded,
|
|
2614
2614
|
"subNavigationExpanded"
|
|
2615
2615
|
));
|
|
@@ -2622,10 +2622,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2622
2622
|
() => [l.value, h.value],
|
|
2623
2623
|
() => {
|
|
2624
2624
|
if (l.value && h.value) {
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2625
|
+
const s = h.value.querySelector("menu");
|
|
2626
|
+
s && (s.children?.length > 0 ? (a.value = !0, g.value || (g.value = new Ot(
|
|
2627
2627
|
h.value,
|
|
2628
|
-
|
|
2628
|
+
s
|
|
2629
2629
|
))) : i.value = !1);
|
|
2630
2630
|
}
|
|
2631
2631
|
},
|
|
@@ -2634,24 +2634,24 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2634
2634
|
flush: "post"
|
|
2635
2635
|
}
|
|
2636
2636
|
);
|
|
2637
|
-
function
|
|
2638
|
-
|
|
2639
|
-
|
|
2637
|
+
function k(s) {
|
|
2638
|
+
s?.target?.nodeName === "A" && (c.value = !0, K(() => {
|
|
2639
|
+
c.value = !1;
|
|
2640
2640
|
}, 1e3));
|
|
2641
2641
|
}
|
|
2642
|
-
function
|
|
2643
|
-
t.onClick && (
|
|
2642
|
+
function $(s) {
|
|
2643
|
+
t.onClick && (s.stopPropagation(), t.onClick(s)), a.value && (u.value = !0);
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2646
|
-
|
|
2645
|
+
function m(s) {
|
|
2646
|
+
s.stopPropagation(), u.value = !1;
|
|
2647
2647
|
}
|
|
2648
|
-
return (
|
|
2648
|
+
return (s, d) => (v(), y("li", {
|
|
2649
2649
|
ref_key: "_ref",
|
|
2650
2650
|
ref: h,
|
|
2651
2651
|
id: e.id,
|
|
2652
|
-
onMouseover: d[2] || (d[2] = async (
|
|
2653
|
-
onMouseleave: d[3] || (d[3] = async (
|
|
2654
|
-
onMousemove: d[4] || (d[4] = async (
|
|
2652
|
+
onMouseover: d[2] || (d[2] = async (b) => g.value?.enableFollow()),
|
|
2653
|
+
onMouseleave: d[3] || (d[3] = async (b) => g.value?.disableFollow()),
|
|
2654
|
+
onMousemove: d[4] || (d[4] = async (b) => g.value?.followByMouseEvent(b)),
|
|
2655
2655
|
class: U(n(O)("db-navigation-item", t.class)),
|
|
2656
2656
|
"data-width": e.width,
|
|
2657
2657
|
"data-icon": e.icon,
|
|
@@ -2662,41 +2662,41 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2662
2662
|
}, [
|
|
2663
2663
|
i.value ? z("", !0) : (v(), y(H, { key: 0 }, [
|
|
2664
2664
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2665
|
-
D(
|
|
2666
|
-
], 64)) :
|
|
2665
|
+
D(B(e.text), 1)
|
|
2666
|
+
], 64)) : F(s.$slots, "default", { key: 1 })
|
|
2667
2667
|
], 64)),
|
|
2668
2668
|
i.value ? (v(), y(H, { key: 1 }, [
|
|
2669
2669
|
E("button", {
|
|
2670
2670
|
class: "db-navigation-item-expand-button",
|
|
2671
2671
|
"aria-haspopup": a.value,
|
|
2672
|
-
"aria-expanded":
|
|
2672
|
+
"aria-expanded": u.value,
|
|
2673
2673
|
disabled: n(q)(e.disabled, "disabled"),
|
|
2674
|
-
onClick: d[0] || (d[0] = async (
|
|
2674
|
+
onClick: d[0] || (d[0] = async (b) => $(b))
|
|
2675
2675
|
}, [
|
|
2676
2676
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2677
|
-
D(
|
|
2678
|
-
], 64)) :
|
|
2677
|
+
D(B(e.text), 1)
|
|
2678
|
+
], 64)) : F(s.$slots, "default", { key: 1 })
|
|
2679
2679
|
], 8, oi),
|
|
2680
2680
|
E("menu", {
|
|
2681
2681
|
class: "db-sub-navigation",
|
|
2682
|
-
"data-force-close":
|
|
2682
|
+
"data-force-close": c.value,
|
|
2683
2683
|
id: f.value,
|
|
2684
|
-
onClick: d[1] || (d[1] = async (
|
|
2684
|
+
onClick: d[1] || (d[1] = async (b) => k(b))
|
|
2685
2685
|
}, [
|
|
2686
2686
|
a.value ? (v(), y("div", si, [
|
|
2687
2687
|
te(we, {
|
|
2688
2688
|
icon: "arrow_left",
|
|
2689
2689
|
variant: "ghost",
|
|
2690
2690
|
id: e.backButtonId,
|
|
2691
|
-
onClick: (
|
|
2691
|
+
onClick: (b) => m(b)
|
|
2692
2692
|
}, {
|
|
2693
2693
|
default: G(() => [
|
|
2694
|
-
D(
|
|
2694
|
+
D(B(e.backButtonText ?? n(xa)), 1)
|
|
2695
2695
|
]),
|
|
2696
2696
|
_: 1
|
|
2697
2697
|
}, 8, ["id", "onClick"])
|
|
2698
2698
|
])) : z("", !0),
|
|
2699
|
-
|
|
2699
|
+
F(s.$slots, "sub-navigation")
|
|
2700
2700
|
], 8, di)
|
|
2701
2701
|
], 64)) : z("", !0)
|
|
2702
2702
|
], 42, ni));
|
|
@@ -2736,7 +2736,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2736
2736
|
function a(i) {
|
|
2737
2737
|
i && (i.stopPropagation(), t.onClose && t.onClose(i));
|
|
2738
2738
|
}
|
|
2739
|
-
return (i,
|
|
2739
|
+
return (i, u) => (v(), y("article", {
|
|
2740
2740
|
ref_key: "_ref",
|
|
2741
2741
|
ref: l,
|
|
2742
2742
|
id: e.id,
|
|
@@ -2748,15 +2748,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2748
2748
|
"data-show-icon": n(V)(e.showIcon),
|
|
2749
2749
|
"data-link-variant": e.linkVariant
|
|
2750
2750
|
}, [
|
|
2751
|
-
|
|
2752
|
-
n(_)(e.headline, e.showHeadline) ? (v(), y("header", ci,
|
|
2751
|
+
F(i.$slots, "image"),
|
|
2752
|
+
n(_)(e.headline, e.showHeadline) ? (v(), y("header", ci, B(e.headline), 1)) : z("", !0),
|
|
2753
2753
|
E("p", null, [
|
|
2754
2754
|
e.text ? (v(), y(H, { key: 0 }, [
|
|
2755
|
-
D(
|
|
2756
|
-
], 64)) :
|
|
2755
|
+
D(B(e.text), 1)
|
|
2756
|
+
], 64)) : F(i.$slots, "default", { key: 1 })
|
|
2757
2757
|
]),
|
|
2758
|
-
n(_)(e.timestamp, e.showTimestamp) ? (v(), y("span", ri,
|
|
2759
|
-
|
|
2758
|
+
n(_)(e.timestamp, e.showTimestamp) ? (v(), y("span", ri, B(e.timestamp), 1)) : z("", !0),
|
|
2759
|
+
F(i.$slots, "link"),
|
|
2760
2760
|
n(q)(e.closeable, "closeable") ? (v(), J(we, {
|
|
2761
2761
|
key: 2,
|
|
2762
2762
|
icon: "cross",
|
|
@@ -2764,10 +2764,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2764
2764
|
size: "small",
|
|
2765
2765
|
id: e.closeButtonId,
|
|
2766
2766
|
noText: !0,
|
|
2767
|
-
onClick: (
|
|
2767
|
+
onClick: (c) => a(c)
|
|
2768
2768
|
}, {
|
|
2769
2769
|
default: G(() => [
|
|
2770
|
-
D(
|
|
2770
|
+
D(B(e.closeButtonText ?? n(qe)), 1)
|
|
2771
2771
|
]),
|
|
2772
2772
|
_: 1
|
|
2773
2773
|
}, 8, ["id", "onClick"])) : z("", !0)
|
|
@@ -2790,13 +2790,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2790
2790
|
},
|
|
2791
2791
|
setup(e) {
|
|
2792
2792
|
const t = e, l = o(!1), a = o(null);
|
|
2793
|
-
return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"),
|
|
2793
|
+
return typeof window < "u" && document && (t.documentOverflow === "hidden" || t.variant === "fixed" && t.documentOverflow !== "auto") && document.documentElement.classList.add("db-page-document"), Y(() => {
|
|
2794
2794
|
l.value = !t.fadeIn, document && t.fadeIn ? document.fonts.ready.then(() => {
|
|
2795
2795
|
l.value = !0;
|
|
2796
2796
|
}) : l.value = !0;
|
|
2797
|
-
}),
|
|
2797
|
+
}), he(() => {
|
|
2798
2798
|
typeof window < "u" && document.documentElement.classList.contains("db-page-document") && document.documentElement.classList.remove("db-page-document");
|
|
2799
|
-
}), (i,
|
|
2799
|
+
}), (i, u) => (v(), y("div", {
|
|
2800
2800
|
ref_key: "_ref",
|
|
2801
2801
|
ref: a,
|
|
2802
2802
|
id: e.id,
|
|
@@ -2805,13 +2805,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2805
2805
|
"data-fade-in": n(V)(e.fadeIn),
|
|
2806
2806
|
"data-fonts-loaded": n(V)(l.value)
|
|
2807
2807
|
}, [
|
|
2808
|
-
|
|
2808
|
+
F(i.$slots, "header"),
|
|
2809
2809
|
E("main", {
|
|
2810
2810
|
class: U(n(O)("db-main", e.mainClass))
|
|
2811
2811
|
}, [
|
|
2812
|
-
|
|
2812
|
+
F(i.$slots, "default")
|
|
2813
2813
|
], 2),
|
|
2814
|
-
|
|
2814
|
+
F(i.$slots, "footer")
|
|
2815
2815
|
], 10, vi));
|
|
2816
2816
|
}
|
|
2817
2817
|
}), Ul = ["auto", "fixed"], Ol = ["hidden", "auto"], fi = ["id"], hi = ["data-spacing", "data-gap", "data-animation", "data-open", "data-delay", "data-width", "data-placement"], Gl = /* @__PURE__ */ W({
|
|
@@ -2832,25 +2832,25 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2832
2832
|
width: { default: void 0 }
|
|
2833
2833
|
},
|
|
2834
2834
|
setup(e) {
|
|
2835
|
-
const t = e, l = o(!1), a = o(!1), i = o(void 0),
|
|
2836
|
-
|
|
2835
|
+
const t = e, l = o(!1), a = o(!1), i = o(void 0), u = o(void 0), c = o(null);
|
|
2836
|
+
Y(() => {
|
|
2837
2837
|
l.value = !0;
|
|
2838
2838
|
}), C(
|
|
2839
|
-
() => [
|
|
2839
|
+
() => [c.value, l.value],
|
|
2840
2840
|
() => {
|
|
2841
|
-
if (
|
|
2841
|
+
if (c.value && l.value) {
|
|
2842
2842
|
l.value = !1;
|
|
2843
|
-
const
|
|
2844
|
-
|
|
2843
|
+
const s = m();
|
|
2844
|
+
s && (s.ariaHasPopup = "true"), g(), c.value.addEventListener(
|
|
2845
2845
|
"keydown",
|
|
2846
2846
|
(d) => f(d)
|
|
2847
2847
|
), ["mouseenter", "focusin"].forEach((d) => {
|
|
2848
|
-
|
|
2848
|
+
c.value.addEventListener(d, () => k());
|
|
2849
2849
|
}), ["mouseleave", "focusout"].forEach((d) => {
|
|
2850
|
-
|
|
2851
|
-
}), typeof window < "u" && "IntersectionObserver" in window && (
|
|
2852
|
-
const
|
|
2853
|
-
|
|
2850
|
+
c.value.addEventListener(d, () => $());
|
|
2851
|
+
}), typeof window < "u" && "IntersectionObserver" in window && (u.value = new IntersectionObserver((d) => {
|
|
2852
|
+
const b = d.find(({ target: I }) => I === m());
|
|
2853
|
+
b && !b.isIntersecting && f(!1);
|
|
2854
2854
|
}));
|
|
2855
2855
|
}
|
|
2856
2856
|
},
|
|
@@ -2859,11 +2859,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2859
2859
|
flush: "post"
|
|
2860
2860
|
}
|
|
2861
2861
|
), C(
|
|
2862
|
-
() => [
|
|
2862
|
+
() => [c.value, a.value],
|
|
2863
2863
|
() => {
|
|
2864
|
-
if (
|
|
2865
|
-
const
|
|
2866
|
-
|
|
2864
|
+
if (c.value) {
|
|
2865
|
+
const s = m();
|
|
2866
|
+
s && (s.ariaExpanded = (!!a.value).toString());
|
|
2867
2867
|
}
|
|
2868
2868
|
},
|
|
2869
2869
|
{
|
|
@@ -2871,58 +2871,58 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2871
2871
|
flush: "post"
|
|
2872
2872
|
}
|
|
2873
2873
|
);
|
|
2874
|
-
function f(
|
|
2875
|
-
if (!
|
|
2876
|
-
for (const d of Array.from(
|
|
2874
|
+
function f(s) {
|
|
2875
|
+
if (!s || s.key === "Escape")
|
|
2876
|
+
for (const d of Array.from(c.value.children))
|
|
2877
2877
|
d.blur();
|
|
2878
2878
|
}
|
|
2879
2879
|
function g() {
|
|
2880
|
-
if (!
|
|
2881
|
-
const
|
|
2882
|
-
|
|
2880
|
+
if (!c.value) return;
|
|
2881
|
+
const s = c.value.querySelector("article");
|
|
2882
|
+
s && K(() => {
|
|
2883
2883
|
ua(
|
|
2884
|
-
|
|
2885
|
-
|
|
2884
|
+
s,
|
|
2885
|
+
c.value,
|
|
2886
2886
|
t.placement ?? "bottom"
|
|
2887
2887
|
);
|
|
2888
2888
|
}, 1);
|
|
2889
2889
|
}
|
|
2890
|
-
function h(
|
|
2891
|
-
|
|
2890
|
+
function h(s) {
|
|
2891
|
+
s?.target?.contains && s?.target?.contains(c.value) && g();
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2893
|
+
function k() {
|
|
2894
2894
|
a.value = !0, i.value = new oe().addCallback(
|
|
2895
2895
|
(d) => h(d)
|
|
2896
2896
|
), g();
|
|
2897
|
-
const
|
|
2898
|
-
|
|
2897
|
+
const s = m();
|
|
2898
|
+
s && u.value?.observe(s);
|
|
2899
2899
|
}
|
|
2900
|
-
function
|
|
2900
|
+
function $(s) {
|
|
2901
2901
|
{
|
|
2902
2902
|
a.value = !1, i.value && new oe().removeCallback(
|
|
2903
2903
|
i.value
|
|
2904
2904
|
);
|
|
2905
|
-
const d =
|
|
2906
|
-
d &&
|
|
2905
|
+
const d = m();
|
|
2906
|
+
d && u.value?.unobserve(d);
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
|
-
function
|
|
2910
|
-
if (
|
|
2911
|
-
const
|
|
2912
|
-
if (
|
|
2913
|
-
const d =
|
|
2909
|
+
function m() {
|
|
2910
|
+
if (c.value) {
|
|
2911
|
+
const s = Array.from(c.value.children);
|
|
2912
|
+
if (s.length >= 2) {
|
|
2913
|
+
const d = s[0];
|
|
2914
2914
|
return d.tagName.includes("-") ? d.children?.length > 0 ? d.children[0] : null : d;
|
|
2915
2915
|
}
|
|
2916
2916
|
}
|
|
2917
2917
|
return null;
|
|
2918
2918
|
}
|
|
2919
|
-
return (
|
|
2919
|
+
return (s, d) => (v(), y("div", {
|
|
2920
2920
|
ref_key: "_ref",
|
|
2921
|
-
ref:
|
|
2921
|
+
ref: c,
|
|
2922
2922
|
id: e.id,
|
|
2923
2923
|
class: U(n(O)("db-popover", t.class))
|
|
2924
2924
|
}, [
|
|
2925
|
-
|
|
2925
|
+
F(s.$slots, "trigger"),
|
|
2926
2926
|
E("article", {
|
|
2927
2927
|
class: "db-popover-content",
|
|
2928
2928
|
"data-spacing": e.spacing,
|
|
@@ -2933,7 +2933,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2933
2933
|
"data-width": e.width,
|
|
2934
2934
|
"data-placement": e.placement
|
|
2935
2935
|
}, [
|
|
2936
|
-
|
|
2936
|
+
F(s.$slots, "default")
|
|
2937
2937
|
], 8, hi)
|
|
2938
2938
|
], 10, fi));
|
|
2939
2939
|
}
|
|
@@ -2968,11 +2968,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2968
2968
|
},
|
|
2969
2969
|
emits: ["update:value"],
|
|
2970
2970
|
setup(e, { emit: t }) {
|
|
2971
|
-
const l = t, a = e, i = o(!1),
|
|
2972
|
-
|
|
2973
|
-
i.value = !0,
|
|
2974
|
-
}),
|
|
2975
|
-
|
|
2971
|
+
const l = t, a = e, i = o(!1), u = o(void 0), c = o(void 0), f = o(null);
|
|
2972
|
+
Y(() => {
|
|
2973
|
+
i.value = !0, u.value = a.id ?? `radio-${Q()}`;
|
|
2974
|
+
}), he(() => {
|
|
2975
|
+
c.value?.abort();
|
|
2976
2976
|
}), C(
|
|
2977
2977
|
() => [i.value, f.value, a.checked],
|
|
2978
2978
|
() => {
|
|
@@ -2986,23 +2986,23 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
2986
2986
|
() => [f.value],
|
|
2987
2987
|
() => {
|
|
2988
2988
|
if (f.value) {
|
|
2989
|
-
let
|
|
2990
|
-
|
|
2989
|
+
let m = c.value;
|
|
2990
|
+
m || (m = new AbortController(), c.value = m), Me(
|
|
2991
2991
|
f.value,
|
|
2992
|
-
(
|
|
2993
|
-
|
|
2994
|
-
const d = a.checked ? a.checked : f.value.checked,
|
|
2995
|
-
...
|
|
2992
|
+
(s) => {
|
|
2993
|
+
K(() => {
|
|
2994
|
+
const d = a.checked ? a.checked : f.value.checked, b = {
|
|
2995
|
+
...s,
|
|
2996
2996
|
target: {
|
|
2997
|
-
...
|
|
2997
|
+
...s.target,
|
|
2998
2998
|
value: "",
|
|
2999
2999
|
checked: d
|
|
3000
3000
|
}
|
|
3001
3001
|
};
|
|
3002
|
-
h(
|
|
3002
|
+
h(b), g(b);
|
|
3003
3003
|
}, 1);
|
|
3004
3004
|
},
|
|
3005
|
-
|
|
3005
|
+
m.signal
|
|
3006
3006
|
);
|
|
3007
3007
|
}
|
|
3008
3008
|
},
|
|
@@ -3011,24 +3011,24 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3011
3011
|
flush: "post"
|
|
3012
3012
|
}
|
|
3013
3013
|
);
|
|
3014
|
-
function g(
|
|
3015
|
-
a.input && a.input(
|
|
3014
|
+
function g(m, s) {
|
|
3015
|
+
a.input && a.input(m), a.onInput && a.onInput(m), de(l, m);
|
|
3016
3016
|
}
|
|
3017
|
-
function h(
|
|
3018
|
-
a.onChange && a.onChange(
|
|
3017
|
+
function h(m, s) {
|
|
3018
|
+
a.onChange && a.onChange(m), de(l, m);
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3021
|
-
a.onBlur && a.onBlur(
|
|
3020
|
+
function k(m) {
|
|
3021
|
+
a.onBlur && a.onBlur(m);
|
|
3022
3022
|
}
|
|
3023
|
-
function
|
|
3024
|
-
a.onFocus && a.onFocus(
|
|
3023
|
+
function $(m) {
|
|
3024
|
+
a.onFocus && a.onFocus(m);
|
|
3025
3025
|
}
|
|
3026
|
-
return (
|
|
3026
|
+
return (m, s) => (v(), y("label", {
|
|
3027
3027
|
"data-size": e.size,
|
|
3028
3028
|
"data-hide-label": n(ne)(e.showLabel),
|
|
3029
3029
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
3030
3030
|
class: U(n(O)("db-radio", a.class)),
|
|
3031
|
-
for:
|
|
3031
|
+
for: u.value
|
|
3032
3032
|
}, [
|
|
3033
3033
|
E("input", {
|
|
3034
3034
|
type: "radio",
|
|
@@ -3036,20 +3036,20 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3036
3036
|
"data-custom-validity": e.validation,
|
|
3037
3037
|
ref_key: "_ref",
|
|
3038
3038
|
ref: f,
|
|
3039
|
-
id:
|
|
3039
|
+
id: u.value,
|
|
3040
3040
|
name: e.name,
|
|
3041
3041
|
checked: n(q)(e.checked, "checked"),
|
|
3042
3042
|
disabled: n(q)(e.disabled, "disabled"),
|
|
3043
3043
|
value: e.value,
|
|
3044
3044
|
required: n(q)(e.required, "required"),
|
|
3045
|
-
onInput:
|
|
3046
|
-
onChange:
|
|
3047
|
-
onBlur:
|
|
3048
|
-
onFocus:
|
|
3045
|
+
onInput: s[0] || (s[0] = async (d) => g(d)),
|
|
3046
|
+
onChange: s[1] || (s[1] = async (d) => h(d)),
|
|
3047
|
+
onBlur: s[2] || (s[2] = async (d) => k(d)),
|
|
3048
|
+
onFocus: s[3] || (s[3] = async (d) => $(d))
|
|
3049
3049
|
}, null, 40, mi),
|
|
3050
3050
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
3051
|
-
D(
|
|
3052
|
-
], 64)) :
|
|
3051
|
+
D(B(e.label), 1)
|
|
3052
|
+
], 64)) : F(m.$slots, "default", { key: 1 })
|
|
3053
3053
|
], 10, gi));
|
|
3054
3054
|
}
|
|
3055
3055
|
}), bi = ["id", "data-spacing", "data-width"], Hl = /* @__PURE__ */ W({
|
|
@@ -3065,9 +3065,9 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3065
3065
|
},
|
|
3066
3066
|
setup(e) {
|
|
3067
3067
|
const t = e, l = o(Ie), a = o(null);
|
|
3068
|
-
return
|
|
3068
|
+
return Y(() => {
|
|
3069
3069
|
l.value = t.id || "section-" + Q();
|
|
3070
|
-
}), (i,
|
|
3070
|
+
}), (i, u) => (v(), y("section", {
|
|
3071
3071
|
ref_key: "_ref",
|
|
3072
3072
|
ref: a,
|
|
3073
3073
|
id: l.value,
|
|
@@ -3075,14 +3075,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3075
3075
|
"data-spacing": e.spacing || "medium",
|
|
3076
3076
|
"data-width": e.width
|
|
3077
3077
|
}, [
|
|
3078
|
-
|
|
3078
|
+
F(i.$slots, "default")
|
|
3079
3079
|
], 10, bi));
|
|
3080
3080
|
}
|
|
3081
3081
|
}), yi = ["data-variant", "data-hide-label", "data-hide-asterisk", "data-icon", "data-show-icon"], ki = ["for"], wi = ["aria-invalid", "data-custom-validity", "required", "disabled", "id", "name", "size", "value", "autocomplete", "multiple", "aria-describedby"], Si = {
|
|
3082
3082
|
key: 0,
|
|
3083
3083
|
class: "placeholder",
|
|
3084
3084
|
value: ""
|
|
3085
|
-
}, Bi = ["label"], pi = ["value", "selected", "disabled"], Li = ["value", "disabled", "selected"], Ii = ["id"],
|
|
3085
|
+
}, Bi = ["label"], pi = ["value", "selected", "disabled"], Li = ["value", "disabled", "selected"], Ii = ["id"], xi = {
|
|
3086
3086
|
"data-visually-hidden": "true",
|
|
3087
3087
|
role: "status"
|
|
3088
3088
|
}, Xl = /* @__PURE__ */ W({
|
|
@@ -3128,28 +3128,28 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3128
3128
|
},
|
|
3129
3129
|
emits: ["update:value"],
|
|
3130
3130
|
setup(e, { emit: t }) {
|
|
3131
|
-
const l = t, a = e, i = o(void 0),
|
|
3132
|
-
|
|
3133
|
-
|
|
3131
|
+
const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(""), k = o(void 0), $ = o(""), m = o(!1), s = o(""), d = o(void 0), b = o(null);
|
|
3132
|
+
Y(() => {
|
|
3133
|
+
m.value = !0;
|
|
3134
3134
|
const A = a.id ?? `select-${Q()}`;
|
|
3135
|
-
i.value = A,
|
|
3136
|
-
}),
|
|
3135
|
+
i.value = A, u.value = A + ce, c.value = A + re, f.value = A + ve, h.value = A + De, g.value = a.invalidMessage || ee;
|
|
3136
|
+
}), he(() => {
|
|
3137
3137
|
d.value?.abort();
|
|
3138
3138
|
}), C(
|
|
3139
|
-
() => [
|
|
3139
|
+
() => [b.value, a.invalidMessage],
|
|
3140
3140
|
() => {
|
|
3141
|
-
g.value = a.invalidMessage ||
|
|
3141
|
+
g.value = a.invalidMessage || b.value?.validationMessage || ee;
|
|
3142
3142
|
},
|
|
3143
3143
|
{
|
|
3144
3144
|
immediate: !0,
|
|
3145
3145
|
flush: "post"
|
|
3146
3146
|
}
|
|
3147
3147
|
), C(
|
|
3148
|
-
() => [i.value,
|
|
3148
|
+
() => [i.value, m.value],
|
|
3149
3149
|
() => {
|
|
3150
|
-
if (i.value &&
|
|
3151
|
-
const A = i.value + ce,
|
|
3152
|
-
|
|
3150
|
+
if (i.value && m.value) {
|
|
3151
|
+
const A = i.value + ce, R = i.value + De;
|
|
3152
|
+
u.value = A, c.value = i.value + re, f.value = i.value + ve, h.value = R, _(a.message, a.showMessage) ? k.value = A : a.placeholder ? k.value = R : k.value = void 0, T(), m.value = !1;
|
|
3153
3153
|
}
|
|
3154
3154
|
},
|
|
3155
3155
|
{
|
|
@@ -3159,27 +3159,27 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3159
3159
|
), C(
|
|
3160
3160
|
() => [a.value],
|
|
3161
3161
|
() => {
|
|
3162
|
-
|
|
3162
|
+
$.value = a.value;
|
|
3163
3163
|
},
|
|
3164
3164
|
{
|
|
3165
3165
|
immediate: !0,
|
|
3166
3166
|
flush: "post"
|
|
3167
3167
|
}
|
|
3168
3168
|
), C(
|
|
3169
|
-
() => [
|
|
3169
|
+
() => [b.value],
|
|
3170
3170
|
() => {
|
|
3171
|
-
if (
|
|
3172
|
-
let
|
|
3173
|
-
|
|
3174
|
-
|
|
3171
|
+
if (b.value) {
|
|
3172
|
+
let R = d.value;
|
|
3173
|
+
R || (R = new AbortController(), d.value = R), Ue(
|
|
3174
|
+
b.value,
|
|
3175
3175
|
{
|
|
3176
3176
|
value: a.value,
|
|
3177
3177
|
defaultValue: void 0
|
|
3178
3178
|
},
|
|
3179
3179
|
(j) => {
|
|
3180
|
-
|
|
3180
|
+
S(j), L(j);
|
|
3181
3181
|
},
|
|
3182
|
-
|
|
3182
|
+
R.signal
|
|
3183
3183
|
);
|
|
3184
3184
|
}
|
|
3185
3185
|
},
|
|
@@ -3192,27 +3192,27 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3192
3192
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
3193
3193
|
}
|
|
3194
3194
|
function T() {
|
|
3195
|
-
!
|
|
3195
|
+
!b.value?.validity.valid || a.validation === "invalid" ? (k.value = f.value, g.value = a.invalidMessage || b.value?.validationMessage || ee, ue() && (s.value = g.value, K(() => s.value = "", 1e3))) : I() && b.value?.validity.valid && a.required ? (k.value = c.value, ue() && (s.value = a.validMessage ?? se, K(() => s.value = "", 1e3))) : _(a.message, a.showMessage) ? k.value = u.value : a.placeholder ? k.value = h.value : k.value = void 0;
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3197
|
+
function w(A) {
|
|
3198
3198
|
a.onClick && a.onClick(A);
|
|
3199
3199
|
}
|
|
3200
|
-
function L(A,
|
|
3201
|
-
a.input && a.input(A),
|
|
3200
|
+
function L(A, R) {
|
|
3201
|
+
a.input && a.input(A), $.value = A.target.value, a.onInput && a.onInput(A), de(l, A), T();
|
|
3202
3202
|
}
|
|
3203
|
-
function
|
|
3203
|
+
function S(A, R) {
|
|
3204
3204
|
a.onChange && a.onChange(A), de(l, A), T();
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function M(A) {
|
|
3207
3207
|
a.onBlur && a.onBlur(A);
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function N(A) {
|
|
3210
3210
|
a.onFocus && a.onFocus(A);
|
|
3211
3211
|
}
|
|
3212
3212
|
function X(A) {
|
|
3213
3213
|
return A.label ?? A.value?.toString();
|
|
3214
3214
|
}
|
|
3215
|
-
return (A,
|
|
3215
|
+
return (A, R) => (v(), y("div", {
|
|
3216
3216
|
class: U(n(O)("db-select", a.class)),
|
|
3217
3217
|
"data-variant": e.variant,
|
|
3218
3218
|
"data-hide-label": n(ne)(e.showLabel),
|
|
@@ -3220,60 +3220,60 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3220
3220
|
"data-icon": e.icon,
|
|
3221
3221
|
"data-show-icon": n(V)(e.showIcon)
|
|
3222
3222
|
}, [
|
|
3223
|
-
E("label", { for: i.value },
|
|
3223
|
+
E("label", { for: i.value }, B(e.label ?? n(ye)), 9, ki),
|
|
3224
3224
|
E("select", {
|
|
3225
3225
|
"aria-invalid": e.validation === "invalid",
|
|
3226
3226
|
"data-custom-validity": e.validation,
|
|
3227
3227
|
ref_key: "_ref",
|
|
3228
|
-
ref:
|
|
3228
|
+
ref: b,
|
|
3229
3229
|
required: n(q)(e.required, "required"),
|
|
3230
3230
|
disabled: n(q)(e.disabled, "disabled"),
|
|
3231
3231
|
id: i.value,
|
|
3232
3232
|
name: e.name,
|
|
3233
3233
|
size: e.size,
|
|
3234
|
-
value: e.value ??
|
|
3234
|
+
value: e.value ?? $.value,
|
|
3235
3235
|
autocomplete: e.autocomplete,
|
|
3236
3236
|
multiple: e.multiple,
|
|
3237
|
-
onInput:
|
|
3238
|
-
onClick:
|
|
3239
|
-
onChange:
|
|
3240
|
-
onBlur:
|
|
3241
|
-
onFocus:
|
|
3242
|
-
"aria-describedby": e.ariaDescribedBy ??
|
|
3237
|
+
onInput: R[0] || (R[0] = async (j) => L(j)),
|
|
3238
|
+
onClick: R[1] || (R[1] = async (j) => w(j)),
|
|
3239
|
+
onChange: R[2] || (R[2] = async (j) => S(j)),
|
|
3240
|
+
onBlur: R[3] || (R[3] = async (j) => M(j)),
|
|
3241
|
+
onFocus: R[4] || (R[4] = async (j) => N(j)),
|
|
3242
|
+
"aria-describedby": e.ariaDescribedBy ?? k.value
|
|
3243
3243
|
}, [
|
|
3244
3244
|
e.variant === "floating" || e.placeholder ? (v(), y("option", Si)) : z("", !0),
|
|
3245
|
-
e.options?.length ? (v(!0), y(H, { key: 1 },
|
|
3245
|
+
e.options?.length ? (v(!0), y(H, { key: 1 }, ge(e.options, (j, pe) => (v(), y(H, { key: pe }, [
|
|
3246
3246
|
j.options ? (v(), y("optgroup", {
|
|
3247
3247
|
key: 0,
|
|
3248
3248
|
label: X(j)
|
|
3249
3249
|
}, [
|
|
3250
|
-
(v(!0), y(H, null,
|
|
3250
|
+
(v(!0), y(H, null, ge(j.options, (me, Ce) => (v(), y("option", {
|
|
3251
3251
|
key: Ce,
|
|
3252
3252
|
value: me.value,
|
|
3253
3253
|
selected: me.selected,
|
|
3254
3254
|
disabled: me.disabled
|
|
3255
|
-
},
|
|
3255
|
+
}, B(X(me)), 9, pi))), 128))
|
|
3256
3256
|
], 8, Bi)) : (v(), y("option", {
|
|
3257
3257
|
key: 1,
|
|
3258
3258
|
value: j.value,
|
|
3259
3259
|
disabled: j.disabled,
|
|
3260
3260
|
selected: j.selected
|
|
3261
|
-
},
|
|
3262
|
-
], 64))), 128)) :
|
|
3261
|
+
}, B(X(j)), 9, Li))
|
|
3262
|
+
], 64))), 128)) : F(A.$slots, "default", { key: 2 })
|
|
3263
3263
|
], 40, wi),
|
|
3264
3264
|
e.placeholder ? (v(), y("span", {
|
|
3265
3265
|
key: 0,
|
|
3266
3266
|
class: "db-select-placeholder",
|
|
3267
3267
|
id: h.value
|
|
3268
|
-
},
|
|
3268
|
+
}, B(e.placeholder), 9, Ii)) : z("", !0),
|
|
3269
3269
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
3270
3270
|
key: 1,
|
|
3271
3271
|
size: "small",
|
|
3272
3272
|
icon: e.messageIcon,
|
|
3273
|
-
id:
|
|
3273
|
+
id: u.value
|
|
3274
3274
|
}, {
|
|
3275
3275
|
default: G(() => [
|
|
3276
|
-
D(
|
|
3276
|
+
D(B(e.message), 1)
|
|
3277
3277
|
]),
|
|
3278
3278
|
_: 1
|
|
3279
3279
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -3281,10 +3281,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3281
3281
|
key: 2,
|
|
3282
3282
|
size: "small",
|
|
3283
3283
|
semantic: "successful",
|
|
3284
|
-
id:
|
|
3284
|
+
id: c.value
|
|
3285
3285
|
}, {
|
|
3286
3286
|
default: G(() => [
|
|
3287
|
-
D(
|
|
3287
|
+
D(B(e.validMessage || n(se)), 1)
|
|
3288
3288
|
]),
|
|
3289
3289
|
_: 1
|
|
3290
3290
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -3294,14 +3294,14 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3294
3294
|
id: f.value
|
|
3295
3295
|
}, {
|
|
3296
3296
|
default: G(() => [
|
|
3297
|
-
D(
|
|
3297
|
+
D(B(g.value), 1)
|
|
3298
3298
|
]),
|
|
3299
3299
|
_: 1
|
|
3300
3300
|
}, 8, ["id"]),
|
|
3301
|
-
E("span",
|
|
3301
|
+
E("span", xi, B(s.value), 1)
|
|
3302
3302
|
], 10, yi));
|
|
3303
3303
|
}
|
|
3304
|
-
}),
|
|
3304
|
+
}), $i = ["id", "data-gap", "data-variant", "data-direction", "data-alignment", "data-justify-content", "data-wrap"], jl = /* @__PURE__ */ W({
|
|
3305
3305
|
__name: "stack",
|
|
3306
3306
|
props: {
|
|
3307
3307
|
variant: { default: void 0 },
|
|
@@ -3330,10 +3330,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3330
3330
|
"data-justify-content": e.justifyContent,
|
|
3331
3331
|
"data-wrap": n(V)(e.wrap)
|
|
3332
3332
|
}, [
|
|
3333
|
-
|
|
3334
|
-
], 10,
|
|
3333
|
+
F(a.$slots, "default")
|
|
3334
|
+
], 10, $i));
|
|
3335
3335
|
}
|
|
3336
|
-
}),
|
|
3336
|
+
}), Kl = ["simple", "divider"], Yl = ["row", "column"], Jl = ["stretch", "start", "end", "center"], Ql = ["space-between", "start", "end", "center"], Ti = ["data-visual-aid", "data-size", "data-hide-label", "data-variant", "data-hide-asterisk", "data-custom-validity"], Ci = ["for"], Ei = ["id", "checked", "value", "disabled", "aria-invalid", "aria-describedby", "name", "required", "data-aid-icon", "data-aid-icon-trailing"], Ai = {
|
|
3337
3337
|
"data-visually-hidden": "true",
|
|
3338
3338
|
role: "status"
|
|
3339
3339
|
}, Zl = /* @__PURE__ */ W({
|
|
@@ -3377,11 +3377,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3377
3377
|
},
|
|
3378
3378
|
emits: ["update:checked"],
|
|
3379
3379
|
setup(e, { emit: t }) {
|
|
3380
|
-
const l = t, a = e, i = o(void 0),
|
|
3381
|
-
|
|
3382
|
-
i.value = a.id ?? `switch-${Q()}`,
|
|
3383
|
-
}),
|
|
3384
|
-
|
|
3380
|
+
const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(""), $ = o(void 0), m = o(null);
|
|
3381
|
+
Y(() => {
|
|
3382
|
+
i.value = a.id ?? `switch-${Q()}`, u.value = `${i.value}${ce}`, c.value = `${i.value}${re}`, f.value = `${i.value}${ve}`, d();
|
|
3383
|
+
}), he(() => {
|
|
3384
|
+
$.value?.abort();
|
|
3385
3385
|
}), C(
|
|
3386
3386
|
() => [
|
|
3387
3387
|
a.validation,
|
|
@@ -3400,20 +3400,20 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3400
3400
|
flush: "post"
|
|
3401
3401
|
}
|
|
3402
3402
|
), C(
|
|
3403
|
-
() => [
|
|
3403
|
+
() => [m.value],
|
|
3404
3404
|
() => {
|
|
3405
|
-
if (
|
|
3406
|
-
let
|
|
3407
|
-
|
|
3408
|
-
|
|
3405
|
+
if (m.value) {
|
|
3406
|
+
let S = $.value;
|
|
3407
|
+
S || (S = new AbortController(), $.value = S), da(
|
|
3408
|
+
m.value,
|
|
3409
3409
|
{
|
|
3410
3410
|
checked: a.checked,
|
|
3411
3411
|
defaultChecked: void 0
|
|
3412
3412
|
},
|
|
3413
|
-
(
|
|
3414
|
-
|
|
3413
|
+
(M) => {
|
|
3414
|
+
b(M);
|
|
3415
3415
|
},
|
|
3416
|
-
|
|
3416
|
+
S.signal
|
|
3417
3417
|
);
|
|
3418
3418
|
}
|
|
3419
3419
|
},
|
|
@@ -3422,38 +3422,41 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3422
3422
|
flush: "post"
|
|
3423
3423
|
}
|
|
3424
3424
|
);
|
|
3425
|
-
function
|
|
3425
|
+
function s() {
|
|
3426
3426
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
3427
3427
|
}
|
|
3428
3428
|
function d() {
|
|
3429
|
-
if (!
|
|
3430
|
-
h.value = f.value, g.value = a.invalidMessage ||
|
|
3431
|
-
|
|
3429
|
+
if (!m.value?.validity?.valid || a.validation === "invalid") {
|
|
3430
|
+
h.value = f.value, g.value = a.invalidMessage || m.value?.validationMessage || ee, ue() && (k.value = g.value || ee, K(() => {
|
|
3431
|
+
k.value = "";
|
|
3432
3432
|
}, 1e3));
|
|
3433
3433
|
return;
|
|
3434
3434
|
}
|
|
3435
|
-
if (
|
|
3436
|
-
h.value =
|
|
3437
|
-
|
|
3435
|
+
if (s() && m.value?.validity?.valid && a.required) {
|
|
3436
|
+
h.value = c.value, ue() && (k.value = a.validMessage ?? se, K(() => {
|
|
3437
|
+
k.value = "";
|
|
3438
3438
|
}, 1e3));
|
|
3439
3439
|
return;
|
|
3440
3440
|
}
|
|
3441
3441
|
if (_(a.message, a.showMessage)) {
|
|
3442
|
-
h.value =
|
|
3442
|
+
h.value = u.value;
|
|
3443
3443
|
return;
|
|
3444
3444
|
}
|
|
3445
3445
|
h.value = void 0;
|
|
3446
3446
|
}
|
|
3447
|
-
function
|
|
3448
|
-
a.onChange && a.onChange(
|
|
3447
|
+
function b(L, S) {
|
|
3448
|
+
a.onChange && a.onChange(L), d(), de(l, L, "checked");
|
|
3449
|
+
}
|
|
3450
|
+
function I(L) {
|
|
3451
|
+
a.onBlur && a.onBlur(L);
|
|
3449
3452
|
}
|
|
3450
|
-
function
|
|
3451
|
-
a.
|
|
3453
|
+
function T(L) {
|
|
3454
|
+
a.onFocus && a.onFocus(L);
|
|
3452
3455
|
}
|
|
3453
|
-
function
|
|
3454
|
-
|
|
3456
|
+
function w(L) {
|
|
3457
|
+
L.key === "Enter" && (L.preventDefault(), a.disabled || m.value?.click());
|
|
3455
3458
|
}
|
|
3456
|
-
return (
|
|
3459
|
+
return (L, S) => (v(), y("div", {
|
|
3457
3460
|
"data-visual-aid": n(V)(e.visualAid),
|
|
3458
3461
|
"data-size": e.size,
|
|
3459
3462
|
"data-hide-label": n(ne)(e.showLabel),
|
|
@@ -3468,7 +3471,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3468
3471
|
role: "switch",
|
|
3469
3472
|
id: i.value,
|
|
3470
3473
|
ref_key: "_ref",
|
|
3471
|
-
ref:
|
|
3474
|
+
ref: m,
|
|
3472
3475
|
checked: n(q)(e.checked, "checked"),
|
|
3473
3476
|
value: e.value,
|
|
3474
3477
|
disabled: n(q)(e.disabled, "disabled"),
|
|
@@ -3478,34 +3481,35 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3478
3481
|
required: n(q)(e.required, "required"),
|
|
3479
3482
|
"data-aid-icon": e.iconLeading ?? e.icon,
|
|
3480
3483
|
"data-aid-icon-trailing": e.iconTrailing,
|
|
3481
|
-
onChange:
|
|
3482
|
-
onBlur:
|
|
3483
|
-
onFocus:
|
|
3484
|
+
onChange: S[0] || (S[0] = async (M) => b(M)),
|
|
3485
|
+
onBlur: S[1] || (S[1] = async (M) => I(M)),
|
|
3486
|
+
onFocus: S[2] || (S[2] = async (M) => T(M)),
|
|
3487
|
+
onKeydown: S[3] || (S[3] = async (M) => w(M))
|
|
3484
3488
|
}, null, 40, Ei),
|
|
3485
3489
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
3486
|
-
D(
|
|
3487
|
-
], 64)) :
|
|
3490
|
+
D(B(e.label), 1)
|
|
3491
|
+
], 64)) : F(L.$slots, "default", { key: 1 })
|
|
3488
3492
|
], 8, Ci),
|
|
3489
3493
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
3490
3494
|
key: 0,
|
|
3491
3495
|
size: "small",
|
|
3492
3496
|
semantic: "adaptive",
|
|
3493
|
-
id:
|
|
3497
|
+
id: u.value,
|
|
3494
3498
|
icon: e.messageIcon
|
|
3495
3499
|
}, {
|
|
3496
3500
|
default: G(() => [
|
|
3497
|
-
D(
|
|
3501
|
+
D(B(e.message), 1)
|
|
3498
3502
|
]),
|
|
3499
3503
|
_: 1
|
|
3500
3504
|
}, 8, ["id", "icon"])) : z("", !0),
|
|
3501
|
-
|
|
3505
|
+
s() ? (v(), J(Z, {
|
|
3502
3506
|
key: 1,
|
|
3503
3507
|
size: "small",
|
|
3504
3508
|
semantic: "successful",
|
|
3505
|
-
id:
|
|
3509
|
+
id: c.value
|
|
3506
3510
|
}, {
|
|
3507
3511
|
default: G(() => [
|
|
3508
|
-
D(
|
|
3512
|
+
D(B(e.validMessage ?? n(se)), 1)
|
|
3509
3513
|
]),
|
|
3510
3514
|
_: 1
|
|
3511
3515
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -3515,11 +3519,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3515
3519
|
id: f.value
|
|
3516
3520
|
}, {
|
|
3517
3521
|
default: G(() => [
|
|
3518
|
-
D(
|
|
3522
|
+
D(B(g.value ?? e.invalidMessage ?? n(ee)), 1)
|
|
3519
3523
|
]),
|
|
3520
3524
|
_: 1
|
|
3521
3525
|
}, 8, ["id"]),
|
|
3522
|
-
E("span", Ai,
|
|
3526
|
+
E("span", Ai, B(k.value), 1)
|
|
3523
3527
|
], 10, Ti));
|
|
3524
3528
|
}
|
|
3525
3529
|
}), Di = ["for", "data-icon", "data-icon-trailing", "data-show-icon", "data-show-icon-trailing", "data-no-text"], Mi = ["disabled", "aria-selected", "checked", "name", "id"], Fi = /* @__PURE__ */ W({
|
|
@@ -3547,13 +3551,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3547
3551
|
},
|
|
3548
3552
|
emits: ["update:checked"],
|
|
3549
3553
|
setup(e, { emit: t }) {
|
|
3550
|
-
const l = t, a = e, i = o(!1),
|
|
3551
|
-
|
|
3552
|
-
|
|
3554
|
+
const l = t, a = e, i = o(!1), u = o(void 0), c = o(!1), f = o(!1), g = o(void 0), h = o(null);
|
|
3555
|
+
Y(() => {
|
|
3556
|
+
g.value = k, c.value = !0;
|
|
3557
|
+
}), he(() => {
|
|
3558
|
+
f.value && h.value && g.value && (h.value.closest("[role=tablist]")?.removeEventListener("change", g.value), f.value = !1);
|
|
3553
3559
|
}), C(
|
|
3554
|
-
() => [
|
|
3560
|
+
() => [h.value, c.value, g.value],
|
|
3555
3561
|
() => {
|
|
3556
|
-
|
|
3562
|
+
h.value && c.value && g.value && (c.value = !1, f.value || (h.value.closest("[role=tablist]")?.addEventListener("change", g.value), f.value = !0), (a.active || h.value.checked) && (i.value = !0, h.value.click()));
|
|
3557
3563
|
},
|
|
3558
3564
|
{
|
|
3559
3565
|
immediate: !0,
|
|
@@ -3562,17 +3568,20 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3562
3568
|
), C(
|
|
3563
3569
|
() => [a.name],
|
|
3564
3570
|
() => {
|
|
3565
|
-
a.name && (
|
|
3571
|
+
a.name && (u.value = a.name);
|
|
3566
3572
|
},
|
|
3567
3573
|
{
|
|
3568
3574
|
immediate: !0,
|
|
3569
3575
|
flush: "post"
|
|
3570
3576
|
}
|
|
3571
3577
|
);
|
|
3572
|
-
function
|
|
3573
|
-
|
|
3578
|
+
function k(m) {
|
|
3579
|
+
m.stopPropagation(), i.value = m.target === h.value;
|
|
3574
3580
|
}
|
|
3575
|
-
|
|
3581
|
+
function $(m) {
|
|
3582
|
+
a.onChange && a.onChange(m), de(l, m, "checked");
|
|
3583
|
+
}
|
|
3584
|
+
return (m, s) => (v(), y("li", {
|
|
3576
3585
|
role: "none",
|
|
3577
3586
|
class: U(n(O)("db-tab-item", a.class))
|
|
3578
3587
|
}, [
|
|
@@ -3591,15 +3600,15 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3591
3600
|
"aria-selected": i.value,
|
|
3592
3601
|
checked: n(q)(e.checked, "checked"),
|
|
3593
3602
|
ref_key: "_ref",
|
|
3594
|
-
ref:
|
|
3595
|
-
name:
|
|
3603
|
+
ref: h,
|
|
3604
|
+
name: u.value,
|
|
3596
3605
|
id: e.id,
|
|
3597
|
-
onInput:
|
|
3606
|
+
onInput: s[0] || (s[0] = async (d) => $(d))
|
|
3598
3607
|
}, null, 40, Mi),
|
|
3599
3608
|
e.label ? (v(), y(H, { key: 0 }, [
|
|
3600
|
-
D(
|
|
3609
|
+
D(B(e.label), 1)
|
|
3601
3610
|
], 64)) : z("", !0),
|
|
3602
|
-
|
|
3611
|
+
F(m.$slots, "default")
|
|
3603
3612
|
], 8, Di)
|
|
3604
3613
|
], 2));
|
|
3605
3614
|
}
|
|
@@ -3614,16 +3623,16 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3614
3623
|
},
|
|
3615
3624
|
setup(e) {
|
|
3616
3625
|
const t = e, l = o(Ie), a = o(null);
|
|
3617
|
-
return
|
|
3626
|
+
return Y(() => {
|
|
3618
3627
|
l.value = t.id || "tab-list-" + Q();
|
|
3619
|
-
}), (i,
|
|
3628
|
+
}), (i, u) => (v(), y("div", {
|
|
3620
3629
|
ref_key: "_ref",
|
|
3621
3630
|
ref: a,
|
|
3622
3631
|
id: l.value,
|
|
3623
3632
|
class: U(n(O)("db-tab-list", t.class))
|
|
3624
3633
|
}, [
|
|
3625
3634
|
E("ul", Ri, [
|
|
3626
|
-
|
|
3635
|
+
F(i.$slots, "default")
|
|
3627
3636
|
])
|
|
3628
3637
|
], 10, Ni));
|
|
3629
3638
|
}
|
|
@@ -3639,7 +3648,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3639
3648
|
},
|
|
3640
3649
|
setup(e) {
|
|
3641
3650
|
const t = e, l = o(null);
|
|
3642
|
-
return
|
|
3651
|
+
return Y(() => {
|
|
3643
3652
|
}), (a, i) => (v(), y("section", {
|
|
3644
3653
|
role: "tabpanel",
|
|
3645
3654
|
ref_key: "_ref",
|
|
@@ -3648,9 +3657,9 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3648
3657
|
id: e.id
|
|
3649
3658
|
}, [
|
|
3650
3659
|
e.content ? (v(), y(H, { key: 0 }, [
|
|
3651
|
-
D(
|
|
3660
|
+
D(B(e.content), 1)
|
|
3652
3661
|
], 64)) : z("", !0),
|
|
3653
|
-
|
|
3662
|
+
F(a.$slots, "default")
|
|
3654
3663
|
], 10, Vi));
|
|
3655
3664
|
}
|
|
3656
3665
|
}), qi = ["id", "data-orientation", "data-scroll-behavior", "data-alignment", "data-width"], _l = /* @__PURE__ */ W({
|
|
@@ -3676,20 +3685,20 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3676
3685
|
tabSelect: {}
|
|
3677
3686
|
},
|
|
3678
3687
|
setup(e) {
|
|
3679
|
-
const t = e, l = o("tabs-" + Q()), a = o(""), i = o(!1),
|
|
3680
|
-
|
|
3688
|
+
const t = e, l = o("tabs-" + Q()), a = o(""), i = o(!1), u = o(!1), c = o(!1), f = o(null), g = o(void 0), h = o(null);
|
|
3689
|
+
Y(() => {
|
|
3681
3690
|
l.value = t.id || l.value, a.value = `tabs-${t.name || Q()}`, i.value = !0;
|
|
3682
|
-
}),
|
|
3691
|
+
}), he(() => {
|
|
3683
3692
|
g.value?.disconnect(), g.value = void 0;
|
|
3684
3693
|
}), C(
|
|
3685
3694
|
() => [h.value, i.value],
|
|
3686
3695
|
() => {
|
|
3687
3696
|
if (h.value && i.value) {
|
|
3688
|
-
|
|
3697
|
+
s(), d(!0);
|
|
3689
3698
|
const I = h.value.querySelector(".db-tab-list");
|
|
3690
|
-
I && new MutationObserver((
|
|
3691
|
-
|
|
3692
|
-
(L.removedNodes.length || L.addedNodes.length) && (
|
|
3699
|
+
I && new MutationObserver((w) => {
|
|
3700
|
+
w.forEach((L) => {
|
|
3701
|
+
(L.removedNodes.length || L.addedNodes.length) && (s(), d());
|
|
3693
3702
|
});
|
|
3694
3703
|
}).observe(I, {
|
|
3695
3704
|
childList: !0,
|
|
@@ -3702,7 +3711,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3702
3711
|
flush: "post"
|
|
3703
3712
|
}
|
|
3704
3713
|
);
|
|
3705
|
-
function
|
|
3714
|
+
function k() {
|
|
3706
3715
|
try {
|
|
3707
3716
|
return typeof t.tabs == "string" ? JSON.parse(t.tabs) : t.tabs;
|
|
3708
3717
|
} catch (I) {
|
|
@@ -3710,11 +3719,11 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3710
3719
|
}
|
|
3711
3720
|
return [];
|
|
3712
3721
|
}
|
|
3713
|
-
function
|
|
3722
|
+
function $(I) {
|
|
3714
3723
|
const T = I.scrollWidth > I.clientWidth;
|
|
3715
|
-
|
|
3724
|
+
u.value = T && I.scrollLeft > 1, c.value = T && I.scrollLeft < I.scrollWidth - I.clientWidth;
|
|
3716
3725
|
}
|
|
3717
|
-
function
|
|
3726
|
+
function m(I) {
|
|
3718
3727
|
let T = Number(t.arrowScrollDistance) || 100;
|
|
3719
3728
|
I && (T *= -1), f.value?.scrollBy({
|
|
3720
3729
|
top: 0,
|
|
@@ -3722,7 +3731,7 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3722
3731
|
behavior: "smooth"
|
|
3723
3732
|
});
|
|
3724
3733
|
}
|
|
3725
|
-
function
|
|
3734
|
+
function s() {
|
|
3726
3735
|
if (h.value) {
|
|
3727
3736
|
const I = h.value.querySelector(".db-tab-list");
|
|
3728
3737
|
if (I) {
|
|
@@ -3730,13 +3739,13 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3730
3739
|
if (T && (T.setAttribute(
|
|
3731
3740
|
"aria-orientation",
|
|
3732
3741
|
t.orientation || "horizontal"
|
|
3733
|
-
), t.behavior === "arrows" && (f.value = T,
|
|
3734
|
-
|
|
3742
|
+
), t.behavior === "arrows" && (f.value = T, $(T), T.addEventListener("scroll", () => {
|
|
3743
|
+
$(T);
|
|
3735
3744
|
}), !g.value))) {
|
|
3736
|
-
const
|
|
3737
|
-
|
|
3745
|
+
const w = new ResizeObserver(() => {
|
|
3746
|
+
$(T);
|
|
3738
3747
|
});
|
|
3739
|
-
|
|
3748
|
+
w.observe(T), g.value = w;
|
|
3740
3749
|
}
|
|
3741
3750
|
}
|
|
3742
3751
|
}
|
|
@@ -3745,44 +3754,44 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3745
3754
|
if (h.value) {
|
|
3746
3755
|
const T = Array.from(
|
|
3747
3756
|
h.value.getElementsByClassName("db-tab-item")
|
|
3748
|
-
),
|
|
3757
|
+
), w = Array.from(
|
|
3749
3758
|
h.value.querySelectorAll(
|
|
3750
3759
|
":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"
|
|
3751
3760
|
)
|
|
3752
3761
|
);
|
|
3753
3762
|
for (const L of T) {
|
|
3754
|
-
const
|
|
3755
|
-
if (
|
|
3756
|
-
if (!
|
|
3757
|
-
const X = `${a.value}-tab-${
|
|
3758
|
-
|
|
3763
|
+
const S = T.indexOf(L), M = L.querySelector("label"), N = L.querySelector("input");
|
|
3764
|
+
if (N && M) {
|
|
3765
|
+
if (!N.id) {
|
|
3766
|
+
const X = `${a.value}-tab-${S}`;
|
|
3767
|
+
M.setAttribute("for", X), N.id = X, N.setAttribute("name", a.value), w.length > S && N.setAttribute(
|
|
3759
3768
|
"aria-controls",
|
|
3760
|
-
`${a.value}-tab-panel-${
|
|
3769
|
+
`${a.value}-tab-panel-${S}`
|
|
3761
3770
|
);
|
|
3762
3771
|
}
|
|
3763
3772
|
if (I) {
|
|
3764
|
-
const X = !t.initialSelectedMode || t.initialSelectedMode === "auto", A = t.initialSelectedIndex == null &&
|
|
3765
|
-
X && A &&
|
|
3773
|
+
const X = !t.initialSelectedMode || t.initialSelectedMode === "auto", A = t.initialSelectedIndex == null && S === 0 || Number(t.initialSelectedIndex) === S;
|
|
3774
|
+
X && A && N.click();
|
|
3766
3775
|
}
|
|
3767
3776
|
}
|
|
3768
3777
|
}
|
|
3769
|
-
for (const L of
|
|
3778
|
+
for (const L of w) {
|
|
3770
3779
|
if (L.id) continue;
|
|
3771
|
-
const
|
|
3772
|
-
L.id = `${a.value}-tab-panel-${
|
|
3780
|
+
const S = w.indexOf(L);
|
|
3781
|
+
L.id = `${a.value}-tab-panel-${S}`, L.setAttribute("aria-labelledby", `${a.value}-tab-${S}`);
|
|
3773
3782
|
}
|
|
3774
3783
|
}
|
|
3775
3784
|
}
|
|
3776
|
-
function
|
|
3785
|
+
function b(I) {
|
|
3777
3786
|
if (I.stopPropagation(), I.target) {
|
|
3778
|
-
const
|
|
3779
|
-
if (
|
|
3780
|
-
const L =
|
|
3787
|
+
const w = I.target.parentElement;
|
|
3788
|
+
if (w && w.parentElement && w.parentElement?.nodeName === "LI") {
|
|
3789
|
+
const L = w.parentElement;
|
|
3781
3790
|
if (L) {
|
|
3782
|
-
const
|
|
3783
|
-
if (
|
|
3784
|
-
const
|
|
3785
|
-
t.onIndexChange && t.onIndexChange(
|
|
3791
|
+
const S = L.parentElement;
|
|
3792
|
+
if (S) {
|
|
3793
|
+
const M = Array.from(S.children).indexOf(L);
|
|
3794
|
+
t.onIndexChange && t.onIndexChange(M), t.onTabSelect && t.onTabSelect(I);
|
|
3786
3795
|
}
|
|
3787
3796
|
}
|
|
3788
3797
|
}
|
|
@@ -3797,17 +3806,17 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3797
3806
|
"data-scroll-behavior": e.behavior,
|
|
3798
3807
|
"data-alignment": e.alignment ?? "start",
|
|
3799
3808
|
"data-width": e.width ?? "auto",
|
|
3800
|
-
onInput: T[0] || (T[0] = async (
|
|
3801
|
-
onChange: T[1] || (T[1] = async (
|
|
3809
|
+
onInput: T[0] || (T[0] = async (w) => b(w)),
|
|
3810
|
+
onChange: T[1] || (T[1] = async (w) => b(w))
|
|
3802
3811
|
}, [
|
|
3803
|
-
|
|
3812
|
+
u.value ? (v(), J(we, {
|
|
3804
3813
|
key: 0,
|
|
3805
3814
|
class: "tabs-scroll-left",
|
|
3806
3815
|
variant: "ghost",
|
|
3807
3816
|
icon: "chevron_left",
|
|
3808
3817
|
type: "button",
|
|
3809
3818
|
noText: !0,
|
|
3810
|
-
onClick: (
|
|
3819
|
+
onClick: (w) => m(!0)
|
|
3811
3820
|
}, {
|
|
3812
3821
|
default: G(() => [...T[2] || (T[2] = [
|
|
3813
3822
|
D(" Scroll left ", -1)
|
|
@@ -3817,42 +3826,42 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3817
3826
|
e.tabs ? (v(), y(H, { key: 1 }, [
|
|
3818
3827
|
te(zi, null, {
|
|
3819
3828
|
default: G(() => [
|
|
3820
|
-
(v(!0), y(H, null,
|
|
3829
|
+
(v(!0), y(H, null, ge(k(), (w, L) => (v(), J(Fi, {
|
|
3821
3830
|
key: e.name + "tab-item" + L,
|
|
3822
|
-
active:
|
|
3823
|
-
label:
|
|
3824
|
-
iconTrailing:
|
|
3825
|
-
icon:
|
|
3826
|
-
noText:
|
|
3831
|
+
active: w.active,
|
|
3832
|
+
label: w.label,
|
|
3833
|
+
iconTrailing: w.iconTrailing,
|
|
3834
|
+
icon: w.icon,
|
|
3835
|
+
noText: w.noText
|
|
3827
3836
|
}, null, 8, ["active", "label", "iconTrailing", "icon", "noText"]))), 128))
|
|
3828
3837
|
]),
|
|
3829
3838
|
_: 1
|
|
3830
3839
|
}),
|
|
3831
|
-
(v(!0), y(H, null,
|
|
3840
|
+
(v(!0), y(H, null, ge(k(), (w, L) => (v(), J(Pi, {
|
|
3832
3841
|
key: e.name + "tab-panel" + L,
|
|
3833
|
-
content:
|
|
3842
|
+
content: w.content
|
|
3834
3843
|
}, {
|
|
3835
3844
|
default: G(() => [
|
|
3836
|
-
D(
|
|
3845
|
+
D(B(w.children), 1)
|
|
3837
3846
|
]),
|
|
3838
3847
|
_: 2
|
|
3839
3848
|
}, 1032, ["content"]))), 128))
|
|
3840
3849
|
], 64)) : z("", !0),
|
|
3841
|
-
|
|
3850
|
+
c.value ? (v(), J(we, {
|
|
3842
3851
|
key: 2,
|
|
3843
3852
|
class: "tabs-scroll-right",
|
|
3844
3853
|
variant: "ghost",
|
|
3845
3854
|
icon: "chevron_right",
|
|
3846
3855
|
type: "button",
|
|
3847
3856
|
noText: !0,
|
|
3848
|
-
onClick: (
|
|
3857
|
+
onClick: (w) => m()
|
|
3849
3858
|
}, {
|
|
3850
3859
|
default: G(() => [...T[3] || (T[3] = [
|
|
3851
3860
|
D(" Scroll right ", -1)
|
|
3852
3861
|
])]),
|
|
3853
3862
|
_: 1
|
|
3854
3863
|
}, 8, ["onClick"])) : z("", !0),
|
|
3855
|
-
|
|
3864
|
+
F(I.$slots, "default")
|
|
3856
3865
|
], 42, qi));
|
|
3857
3866
|
}
|
|
3858
3867
|
}), en = ["scrollbar", "arrows"], an = ["auto", "manually"], tn = ["static", "removable"], Ui = ["data-variant", "data-hide-asterisk", "data-hide-label"], Oi = ["for"], Gi = ["aria-invalid", "data-custom-validity", "data-field-sizing", "id", "data-resize", "data-hide-resizer", "disabled", "required", "readOnly", "form", "maxLength", "minLength", "name", "wrap", "spellcheck", "autocomplete", "value", "aria-describedby", "placeholder", "rows", "cols"], Wi = {
|
|
@@ -3908,16 +3917,16 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3908
3917
|
},
|
|
3909
3918
|
emits: ["update:value"],
|
|
3910
3919
|
setup(e, { emit: t }) {
|
|
3911
|
-
const l = t, a = e, i = o(void 0),
|
|
3912
|
-
|
|
3913
|
-
const
|
|
3914
|
-
i.value =
|
|
3915
|
-
}),
|
|
3916
|
-
|
|
3920
|
+
const l = t, a = e, i = o(void 0), u = o(void 0), c = o(void 0), f = o(void 0), g = o(void 0), h = o(void 0), k = o(""), $ = o(""), m = o(void 0), s = o(null);
|
|
3921
|
+
Y(() => {
|
|
3922
|
+
const S = a.id ?? `textarea-${Q()}`;
|
|
3923
|
+
i.value = S, u.value = S + ce, c.value = S + re, f.value = S + ve, g.value = a.invalidMessage || ee;
|
|
3924
|
+
}), he(() => {
|
|
3925
|
+
m.value?.abort();
|
|
3917
3926
|
}), C(
|
|
3918
|
-
() => [
|
|
3927
|
+
() => [s.value, a.invalidMessage],
|
|
3919
3928
|
() => {
|
|
3920
|
-
g.value = a.invalidMessage ||
|
|
3929
|
+
g.value = a.invalidMessage || s.value?.validationMessage || ee;
|
|
3921
3930
|
},
|
|
3922
3931
|
{
|
|
3923
3932
|
immediate: !0,
|
|
@@ -3927,8 +3936,8 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3927
3936
|
() => [i.value],
|
|
3928
3937
|
() => {
|
|
3929
3938
|
if (i.value) {
|
|
3930
|
-
const
|
|
3931
|
-
|
|
3939
|
+
const S = i.value + ce;
|
|
3940
|
+
u.value = S, c.value = i.value + re, f.value = i.value + ve, _(a.message, a.showMessage) && (h.value = S), b();
|
|
3932
3941
|
}
|
|
3933
3942
|
},
|
|
3934
3943
|
{
|
|
@@ -3938,27 +3947,27 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3938
3947
|
), C(
|
|
3939
3948
|
() => [a.value],
|
|
3940
3949
|
() => {
|
|
3941
|
-
|
|
3950
|
+
k.value = a.value;
|
|
3942
3951
|
},
|
|
3943
3952
|
{
|
|
3944
3953
|
immediate: !0,
|
|
3945
3954
|
flush: "post"
|
|
3946
3955
|
}
|
|
3947
3956
|
), C(
|
|
3948
|
-
() => [
|
|
3957
|
+
() => [s.value],
|
|
3949
3958
|
() => {
|
|
3950
|
-
if (
|
|
3951
|
-
let
|
|
3952
|
-
|
|
3953
|
-
|
|
3959
|
+
if (s.value) {
|
|
3960
|
+
let M = m.value;
|
|
3961
|
+
M || (M = new AbortController(), m.value = M), Ue(
|
|
3962
|
+
s.value,
|
|
3954
3963
|
{
|
|
3955
3964
|
value: a.value,
|
|
3956
3965
|
defaultValue: void 0
|
|
3957
3966
|
},
|
|
3958
|
-
(
|
|
3959
|
-
T(
|
|
3967
|
+
(N) => {
|
|
3968
|
+
T(N), I(N);
|
|
3960
3969
|
},
|
|
3961
|
-
|
|
3970
|
+
M.signal
|
|
3962
3971
|
);
|
|
3963
3972
|
}
|
|
3964
3973
|
},
|
|
@@ -3970,34 +3979,34 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
3970
3979
|
function d() {
|
|
3971
3980
|
return !!(a.validMessage ?? a.validation === "valid");
|
|
3972
3981
|
}
|
|
3973
|
-
function
|
|
3974
|
-
!
|
|
3982
|
+
function b() {
|
|
3983
|
+
!s.value?.validity.valid || a.validation === "invalid" ? (h.value = f.value, g.value = a.invalidMessage || s.value?.validationMessage || ee, ue() && ($.value = g.value, K(() => $.value = "", 1e3))) : d() && s.value?.validity.valid && (a.required || a.minLength || a.maxLength) ? (h.value = c.value, ue() && ($.value = a.validMessage ?? se, K(() => $.value = "", 1e3))) : _(a.message, a.showMessage) ? h.value = u.value : h.value = void 0;
|
|
3975
3984
|
}
|
|
3976
|
-
function I(
|
|
3977
|
-
a.input && a.input(
|
|
3985
|
+
function I(S, M) {
|
|
3986
|
+
a.input && a.input(S), k.value = S.target.value, a.onInput && a.onInput(S), de(l, S), b();
|
|
3978
3987
|
}
|
|
3979
|
-
function T(
|
|
3980
|
-
a.onChange && a.onChange(
|
|
3988
|
+
function T(S, M) {
|
|
3989
|
+
a.onChange && a.onChange(S), de(l, S), b();
|
|
3981
3990
|
}
|
|
3982
|
-
function
|
|
3983
|
-
a.onBlur && a.onBlur(
|
|
3991
|
+
function w(S) {
|
|
3992
|
+
a.onBlur && a.onBlur(S);
|
|
3984
3993
|
}
|
|
3985
|
-
function L(
|
|
3986
|
-
a.onFocus && a.onFocus(
|
|
3994
|
+
function L(S) {
|
|
3995
|
+
a.onFocus && a.onFocus(S);
|
|
3987
3996
|
}
|
|
3988
|
-
return (
|
|
3997
|
+
return (S, M) => (v(), y("div", {
|
|
3989
3998
|
class: U(n(O)("db-textarea", a.class)),
|
|
3990
3999
|
"data-variant": e.variant,
|
|
3991
4000
|
"data-hide-asterisk": n(ne)(e.showRequiredAsterisk),
|
|
3992
4001
|
"data-hide-label": n(ne)(e.showLabel)
|
|
3993
4002
|
}, [
|
|
3994
|
-
E("label", { for: i.value },
|
|
4003
|
+
E("label", { for: i.value }, B(e.label ?? n(ye)), 9, Oi),
|
|
3995
4004
|
E("textarea", {
|
|
3996
4005
|
"aria-invalid": e.validation === "invalid",
|
|
3997
4006
|
"data-custom-validity": e.validation,
|
|
3998
4007
|
"data-field-sizing": e.fieldSizing,
|
|
3999
4008
|
ref_key: "_ref",
|
|
4000
|
-
ref:
|
|
4009
|
+
ref: s,
|
|
4001
4010
|
id: i.value,
|
|
4002
4011
|
"data-resize": e.resize,
|
|
4003
4012
|
"data-hide-resizer": n(ne)(e.showResizer ?? !0),
|
|
@@ -4011,24 +4020,24 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4011
4020
|
wrap: e.wrap,
|
|
4012
4021
|
spellcheck: e.spellCheck,
|
|
4013
4022
|
autocomplete: e.autocomplete,
|
|
4014
|
-
onInput:
|
|
4015
|
-
onChange:
|
|
4016
|
-
onBlur:
|
|
4017
|
-
onFocus:
|
|
4018
|
-
value: e.value ??
|
|
4023
|
+
onInput: M[0] || (M[0] = async (N) => I(N)),
|
|
4024
|
+
onChange: M[1] || (M[1] = async (N) => T(N)),
|
|
4025
|
+
onBlur: M[2] || (M[2] = async (N) => w(N)),
|
|
4026
|
+
onFocus: M[3] || (M[3] = async (N) => L(N)),
|
|
4027
|
+
value: e.value ?? k.value,
|
|
4019
4028
|
"aria-describedby": e.ariaDescribedBy ?? h.value,
|
|
4020
4029
|
placeholder: e.placeholder ?? n(ea),
|
|
4021
4030
|
rows: n(ke)(e.rows, n(Ea)),
|
|
4022
4031
|
cols: n(ke)(e.cols)
|
|
4023
|
-
},
|
|
4032
|
+
}, B(e.value), 41, Gi),
|
|
4024
4033
|
n(_)(e.message, e.showMessage) ? (v(), J(Z, {
|
|
4025
4034
|
key: 0,
|
|
4026
4035
|
size: "small",
|
|
4027
4036
|
icon: e.messageIcon,
|
|
4028
|
-
id:
|
|
4037
|
+
id: u.value
|
|
4029
4038
|
}, {
|
|
4030
4039
|
default: G(() => [
|
|
4031
|
-
D(
|
|
4040
|
+
D(B(e.message), 1)
|
|
4032
4041
|
]),
|
|
4033
4042
|
_: 1
|
|
4034
4043
|
}, 8, ["icon", "id"])) : z("", !0),
|
|
@@ -4036,10 +4045,10 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4036
4045
|
key: 1,
|
|
4037
4046
|
size: "small",
|
|
4038
4047
|
semantic: "successful",
|
|
4039
|
-
id:
|
|
4048
|
+
id: c.value
|
|
4040
4049
|
}, {
|
|
4041
4050
|
default: G(() => [
|
|
4042
|
-
D(
|
|
4051
|
+
D(B(e.validMessage || n(se)), 1)
|
|
4043
4052
|
]),
|
|
4044
4053
|
_: 1
|
|
4045
4054
|
}, 8, ["id"])) : z("", !0),
|
|
@@ -4049,18 +4058,18 @@ const Gt = ["id", "data-width", "data-on-forcing-mobile"], Wt = { class: "db-hea
|
|
|
4049
4058
|
id: f.value
|
|
4050
4059
|
}, {
|
|
4051
4060
|
default: G(() => [
|
|
4052
|
-
D(
|
|
4061
|
+
D(B(g.value), 1)
|
|
4053
4062
|
]),
|
|
4054
4063
|
_: 1
|
|
4055
4064
|
}, 8, ["id"]),
|
|
4056
|
-
E("span", Wi,
|
|
4065
|
+
E("span", Wi, B($.value), 1)
|
|
4057
4066
|
], 10, Ui));
|
|
4058
4067
|
}
|
|
4059
|
-
}), nn = ["none", "both", "horizontal", "vertical"], on = ["hard", "soft", "off"], dn = ["description", "label"], sn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], un = ["medium", "small", "large", "none"], cn = ["medium", "small", "large", "none"], Hi = ["left", "right", "left-start", "left-end", "right-start", "right-end"], Xi = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], rn = [...Hi, ...Xi], vn = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], fn = ["horizontal", "vertical"], hn = ["full", "auto"], gn = ["full", "medium", "large", "small"], mn = ["none", "slow", "fast"], bn = ["auto", "fixed"], yn = ["small", "medium"], kn = ["weak", "strong"], wn = ["invalid", "valid", "no-validation"], Sn = ["fixed", "content"], Bn = ["above", "floating"], pn = ["leading", "trailing"], Ln = ["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"], In = ["_self", "_blank", "_parent", "_top"],
|
|
4068
|
+
}), nn = ["none", "both", "horizontal", "vertical"], on = ["hard", "soft", "off"], dn = ["description", "label"], sn = ["adaptive", "neutral", "critical", "informational", "warning", "successful"], un = ["medium", "small", "large", "none"], cn = ["medium", "small", "large", "none"], Hi = ["left", "right", "left-start", "left-end", "right-start", "right-end"], Xi = ["top", "bottom", "top-start", "top-end", "bottom-start", "bottom-end"], rn = [...Hi, ...Xi], vn = ["none", "3x-large", "2x-large", "x-large", "large", "medium", "small", "x-small", "2x-small", "3x-small"], fn = ["horizontal", "vertical"], hn = ["full", "auto"], gn = ["full", "medium", "large", "small"], mn = ["none", "slow", "fast"], bn = ["auto", "fixed"], yn = ["small", "medium"], kn = ["weak", "strong"], wn = ["invalid", "valid", "no-validation"], Sn = ["fixed", "content"], Bn = ["above", "floating"], pn = ["leading", "trailing"], Ln = ["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"], In = ["_self", "_blank", "_parent", "_top"], xn = ["no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], $n = ["start", "center"];
|
|
4060
4069
|
export {
|
|
4061
4070
|
ll as AccordionBehaviorList,
|
|
4062
4071
|
il as AccordionVariantList,
|
|
4063
|
-
|
|
4072
|
+
$n as AlignmentList,
|
|
4064
4073
|
Ln as AutoCompleteList,
|
|
4065
4074
|
ol as BadgePlacementList,
|
|
4066
4075
|
ul as ButtonTypeList,
|
|
@@ -4068,7 +4077,7 @@ export {
|
|
|
4068
4077
|
la as COLOR,
|
|
4069
4078
|
Qi as COLORS,
|
|
4070
4079
|
Zi as COLORS_SIMPLE,
|
|
4071
|
-
|
|
4080
|
+
Yi as COLOR_CONST,
|
|
4072
4081
|
ia as COLOR_SIMPLE,
|
|
4073
4082
|
rl as CardBehaviorList,
|
|
4074
4083
|
vl as CardElevationLevelList,
|
|
@@ -4088,8 +4097,8 @@ export {
|
|
|
4088
4097
|
nt as DBCustomSelectListItem,
|
|
4089
4098
|
kl as DBDivider,
|
|
4090
4099
|
qt as DBDrawer,
|
|
4091
|
-
|
|
4092
|
-
|
|
4100
|
+
xl as DBHeader,
|
|
4101
|
+
$l as DBIcon,
|
|
4093
4102
|
Z as DBInfotext,
|
|
4094
4103
|
ht as DBInput,
|
|
4095
4104
|
El as DBLink,
|
|
@@ -4110,7 +4119,7 @@ export {
|
|
|
4110
4119
|
bt as DBTag,
|
|
4111
4120
|
ln as DBTextarea,
|
|
4112
4121
|
ca as DBTooltip,
|
|
4113
|
-
|
|
4122
|
+
xa as DEFAULT_BACK,
|
|
4114
4123
|
Ta as DEFAULT_BURGER_MENU,
|
|
4115
4124
|
qe as DEFAULT_CLOSE_BUTTON,
|
|
4116
4125
|
Qe as DEFAULT_DATALIST_ID_SUFFIX,
|
|
@@ -4119,21 +4128,21 @@ export {
|
|
|
4119
4128
|
ee as DEFAULT_INVALID_MESSAGE,
|
|
4120
4129
|
ve as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,
|
|
4121
4130
|
ye as DEFAULT_LABEL,
|
|
4122
|
-
|
|
4131
|
+
Ye as DEFAULT_LABEL_ID_SUFFIX,
|
|
4123
4132
|
Ia as DEFAULT_MESSAGE,
|
|
4124
4133
|
ce as DEFAULT_MESSAGE_ID_SUFFIX,
|
|
4125
4134
|
ea as DEFAULT_PLACEHOLDER,
|
|
4126
4135
|
De as DEFAULT_PLACEHOLDER_ID_SUFFIX,
|
|
4127
4136
|
aa as DEFAULT_REMOVE,
|
|
4128
4137
|
Ea as DEFAULT_ROWS,
|
|
4129
|
-
|
|
4138
|
+
$a as DEFAULT_SELECTED,
|
|
4130
4139
|
Je as DEFAULT_SELECT_ID_SUFFIX,
|
|
4131
4140
|
se as DEFAULT_VALID_MESSAGE,
|
|
4132
4141
|
re as DEFAULT_VALID_MESSAGE_ID_SUFFIX,
|
|
4133
4142
|
Aa as DEFAULT_VIEWPORT,
|
|
4134
4143
|
Ji as DENSITIES,
|
|
4135
4144
|
ta as DENSITY,
|
|
4136
|
-
|
|
4145
|
+
Ki as DENSITY_CONST,
|
|
4137
4146
|
Da as DESKTOP_VIEWPORT,
|
|
4138
4147
|
wl as DividerMarginList,
|
|
4139
4148
|
Sl as DividerVariantList,
|
|
@@ -4151,7 +4160,7 @@ export {
|
|
|
4151
4160
|
pn as LabelVariantHorizontalList,
|
|
4152
4161
|
Bn as LabelVariantList,
|
|
4153
4162
|
Ml as LinkContentList,
|
|
4154
|
-
|
|
4163
|
+
xn as LinkReferrerPolicyList,
|
|
4155
4164
|
Dl as LinkSizeList,
|
|
4156
4165
|
In as LinkTargetList,
|
|
4157
4166
|
Al as LinkVariantList,
|
|
@@ -4176,9 +4185,9 @@ export {
|
|
|
4176
4185
|
yn as SizeList,
|
|
4177
4186
|
un as SpacingList,
|
|
4178
4187
|
Jl as StackAlignmentList,
|
|
4179
|
-
|
|
4188
|
+
Yl as StackDirectionList,
|
|
4180
4189
|
Ql as StackJustifyContentList,
|
|
4181
|
-
|
|
4190
|
+
Kl as StackVariantList,
|
|
4182
4191
|
el as TESTING_VIEWPORTS,
|
|
4183
4192
|
en as TabsBehaviorList,
|
|
4184
4193
|
an as TabsInitialSelectedModeList,
|
|
@@ -4190,7 +4199,7 @@ export {
|
|
|
4190
4199
|
hn as WidthList,
|
|
4191
4200
|
oa as addAttributeToChildren,
|
|
4192
4201
|
O as cls,
|
|
4193
|
-
|
|
4202
|
+
K as delay,
|
|
4194
4203
|
q as getBoolean,
|
|
4195
4204
|
V as getBooleanAsString,
|
|
4196
4205
|
sa as getFloatingProps,
|