@db-ux/v-core-components 4.14.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/agent/Drawer.md +0 -8
- package/agent/TabItem.md +2 -2
- package/agent/Tabs.md +23 -20
- package/agent/_instructions.md +1 -1
- package/dist/components/drawer/drawer.vue.d.ts +7 -7
- package/dist/components/drawer/model.d.ts +20 -5
- package/dist/components/drawer-footer/drawer-footer.vue.d.ts +18 -0
- package/dist/components/drawer-footer/index.d.ts +1 -0
- package/dist/components/drawer-footer/model.d.ts +5 -0
- package/dist/components/drawer-header/drawer-header.vue.d.ts +26 -0
- package/dist/components/drawer-header/index.d.ts +1 -0
- package/dist/components/drawer-header/model.d.ts +9 -0
- package/dist/components/header/header.vue.d.ts +3 -2
- package/dist/components/header/model.d.ts +5 -1
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/tab-item/model.d.ts +24 -13
- package/dist/components/tab-item/tab-item.vue.d.ts +5 -12
- package/dist/components/tab-list/model.d.ts +5 -5
- package/dist/components/tab-list/tab-list.vue.d.ts +3 -1
- package/dist/components/tab-panel/model.d.ts +6 -4
- package/dist/components/tab-panel/tab-panel.vue.d.ts +1 -7
- package/dist/components/tabs/model.d.ts +93 -18
- package/dist/components/tabs/tabs.vue.d.ts +13 -13
- package/dist/db-ux.es.js +1108 -720
- package/dist/db-ux.umd.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/shared/model.d.ts +12 -20
- package/dist/utils/index.d.ts +9 -0
- package/package.json +5 -5
package/dist/db-ux.es.js
CHANGED
|
@@ -51,11 +51,20 @@ var x = () => {
|
|
|
51
51
|
case "successful": return "status";
|
|
52
52
|
default: return "article";
|
|
53
53
|
}
|
|
54
|
-
}, H = [
|
|
54
|
+
}, H = [
|
|
55
|
+
"ArrowRight",
|
|
56
|
+
"ArrowDown",
|
|
57
|
+
"ArrowLeft",
|
|
58
|
+
"ArrowUp",
|
|
59
|
+
"Home",
|
|
60
|
+
"End",
|
|
61
|
+
"Enter",
|
|
62
|
+
" "
|
|
63
|
+
], ee = () => typeof HTMLElement > "u" ? !1 : "focusGroup" in HTMLElement.prototype || "focusgroup" in HTMLElement.prototype, U = ["id"], te = [
|
|
55
64
|
"aria-disabled",
|
|
56
65
|
"name",
|
|
57
66
|
"open"
|
|
58
|
-
],
|
|
67
|
+
], W = /* @__PURE__ */ s({
|
|
59
68
|
name: "DBAccordionItem",
|
|
60
69
|
__name: "accordion-item",
|
|
61
70
|
props: {
|
|
@@ -122,9 +131,9 @@ var x = () => {
|
|
|
122
131
|
ref: m,
|
|
123
132
|
name: l.value,
|
|
124
133
|
open: s.value
|
|
125
|
-
}, [i("summary", { onClick: d[0] ||= async (e) => v(e) }, [t.headlinePlain ? (f(), r(e, { key: 0 }, [a(g(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : h(u.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")])], 8,
|
|
134
|
+
}, [i("summary", { onClick: d[0] ||= async (e) => v(e) }, [t.headlinePlain ? (f(), r(e, { key: 0 }, [a(g(t.headlinePlain), 1)], 64)) : n("", !0), t.headlinePlain ? n("", !0) : h(u.$slots, "headline", { key: 1 })]), i("div", null, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")])], 8, te)], 10, U));
|
|
126
135
|
}
|
|
127
|
-
}),
|
|
136
|
+
}), ne = ["id", "data-variant"], re = /* @__PURE__ */ s({
|
|
128
137
|
name: "DBAccordion",
|
|
129
138
|
__name: "accordion",
|
|
130
139
|
props: {
|
|
@@ -197,7 +206,7 @@ var x = () => {
|
|
|
197
206
|
id: i.id ?? i.propOverrides?.id,
|
|
198
207
|
class: c(_(C)("db-accordion", o.class)),
|
|
199
208
|
"data-variant": i.variant
|
|
200
|
-
}, [i.items ? n("", !0) : h(a.$slots, "default", { key: 0 }), i.items ? (f(!0), r(e, { key: 1 }, m(b(), (e, n) => (f(), t(
|
|
209
|
+
}, [i.items ? n("", !0) : h(a.$slots, "default", { key: 0 }), i.items ? (f(!0), r(e, { key: 1 }, m(b(), (e, n) => (f(), t(W, {
|
|
201
210
|
key: `accordion-item-${n}`,
|
|
202
211
|
headlinePlain: e.headlinePlain,
|
|
203
212
|
disabled: e.disabled,
|
|
@@ -206,26 +215,26 @@ var x = () => {
|
|
|
206
215
|
"headlinePlain",
|
|
207
216
|
"disabled",
|
|
208
217
|
"text"
|
|
209
|
-
]))), 128)) : n("", !0)], 10,
|
|
218
|
+
]))), 128)) : n("", !0)], 10, ne));
|
|
210
219
|
}
|
|
211
|
-
}),
|
|
220
|
+
}), G = ["divider", "card"], ie = ["multiple", "single"], K = "OVERWRITE_DEFAULT_ID", q = "LABEL SHOULD BE SET", J = " ", Y = "MESSAGE SHOULD BE SET", ae = "-label", oe = "-select", X = "-message", se = "-valid-message", ce = "-invalid-message", le = "-placeholder", ue = "-datalist", de = "TODO: Add a validMessage", fe = "TODO: Add an invalidMessage", pe = "Remove", me = "Back", he = "Selected", ge = "Scroll left", _e = "Scroll right", ve = "Open navigation menu", ye = "brand", be = 4, xe = "Close", Z = "density", Q = "color", Se = /* @__PURE__ */ function(e) {
|
|
212
221
|
return e.FUNCTIONAL = "functional", e.REGULAR = "regular", e.EXPRESSIVE = "expressive", e;
|
|
213
|
-
}({}),
|
|
222
|
+
}({}), Ce = Object.entries(Se).map(([, e]) => e), we = /* @__PURE__ */ function(e) {
|
|
214
223
|
return e.PRIMARY = "primary", e;
|
|
215
|
-
}({}),
|
|
224
|
+
}({}), Te = /* @__PURE__ */ function(e) {
|
|
216
225
|
return 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;
|
|
217
|
-
}({}),
|
|
226
|
+
}({}), Ee = Object.entries(Te).map(([, e]) => e), De = Object.entries(we).map(([, e]) => e), Oe = /* @__PURE__ */ function(e) {
|
|
218
227
|
return e.CRITICAL = "critical", e.INFORMATIONAL = "informational", e.WARNING = "warning", e.SUCCESSFUL = "successful", e;
|
|
219
|
-
}({}),
|
|
228
|
+
}({}), ke = Object.entries(Oe).map(([, e]) => e), Ae = {
|
|
220
229
|
width: 390,
|
|
221
230
|
height: 884
|
|
222
|
-
},
|
|
231
|
+
}, je = {
|
|
223
232
|
width: 1920,
|
|
224
233
|
height: 1280
|
|
225
|
-
},
|
|
234
|
+
}, Me = [
|
|
226
235
|
{
|
|
227
236
|
name: "desktop",
|
|
228
|
-
...
|
|
237
|
+
...je
|
|
229
238
|
},
|
|
230
239
|
{
|
|
231
240
|
name: "tablet",
|
|
@@ -234,9 +243,9 @@ var x = () => {
|
|
|
234
243
|
},
|
|
235
244
|
{
|
|
236
245
|
name: "mobile",
|
|
237
|
-
...
|
|
246
|
+
...Ae
|
|
238
247
|
}
|
|
239
|
-
],
|
|
248
|
+
], Ne = "db-ux-framework", Pe = "db-ux-mode", Fe = [
|
|
240
249
|
"id",
|
|
241
250
|
"data-semantic",
|
|
242
251
|
"data-size",
|
|
@@ -244,7 +253,7 @@ var x = () => {
|
|
|
244
253
|
"data-placement",
|
|
245
254
|
"data-wrap",
|
|
246
255
|
"data-label"
|
|
247
|
-
],
|
|
256
|
+
], Ie = /* @__PURE__ */ s({
|
|
248
257
|
name: "DBBadge",
|
|
249
258
|
__name: "badge",
|
|
250
259
|
props: {
|
|
@@ -288,9 +297,9 @@ var x = () => {
|
|
|
288
297
|
"data-placement": t.placement,
|
|
289
298
|
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
290
299
|
"data-label": t.placement?.startsWith("corner") && (t.label ?? _("LABEL SHOULD BE SET"))
|
|
291
|
-
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(o.$slots, "default")], 10,
|
|
300
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(o.$slots, "default")], 10, Fe));
|
|
292
301
|
}
|
|
293
|
-
}),
|
|
302
|
+
}), Le = [
|
|
294
303
|
"inline",
|
|
295
304
|
"corner-top-left",
|
|
296
305
|
"corner-top-right",
|
|
@@ -298,11 +307,11 @@ var x = () => {
|
|
|
298
307
|
"corner-center-right",
|
|
299
308
|
"corner-bottom-left",
|
|
300
309
|
"corner-bottom-right"
|
|
301
|
-
],
|
|
310
|
+
], Re = [
|
|
302
311
|
"data-icon",
|
|
303
312
|
"data-show-icon",
|
|
304
313
|
"id"
|
|
305
|
-
],
|
|
314
|
+
], ze = /* @__PURE__ */ s({
|
|
306
315
|
name: "DBBrand",
|
|
307
316
|
__name: "brand",
|
|
308
317
|
props: {
|
|
@@ -332,9 +341,9 @@ var x = () => {
|
|
|
332
341
|
"data-show-icon": _(k)(t.showIcon, "showIcon"),
|
|
333
342
|
id: t.id ?? t.propOverrides?.id,
|
|
334
343
|
class: c(_(C)("db-brand", i.class))
|
|
335
|
-
}, [h(s.$slots, "default"), t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0)], 10,
|
|
344
|
+
}, [h(s.$slots, "default"), t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0)], 10, Re));
|
|
336
345
|
}
|
|
337
|
-
}),
|
|
346
|
+
}), Be = [
|
|
338
347
|
"id",
|
|
339
348
|
"type",
|
|
340
349
|
"disabled",
|
|
@@ -352,7 +361,7 @@ var x = () => {
|
|
|
352
361
|
"value",
|
|
353
362
|
"command",
|
|
354
363
|
"commandfor"
|
|
355
|
-
],
|
|
364
|
+
], Ve = /* @__PURE__ */ s({
|
|
356
365
|
name: "DBButton",
|
|
357
366
|
__name: "button",
|
|
358
367
|
props: {
|
|
@@ -435,23 +444,23 @@ var x = () => {
|
|
|
435
444
|
command: t.command,
|
|
436
445
|
commandfor: t.commandfor,
|
|
437
446
|
onClick: d[0] ||= async (e) => l(e)
|
|
438
|
-
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")], 10,
|
|
447
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(u.$slots, "default")], 10, Be));
|
|
439
448
|
}
|
|
440
|
-
}),
|
|
449
|
+
}), He = [
|
|
441
450
|
"outlined",
|
|
442
451
|
"brand",
|
|
443
452
|
"filled",
|
|
444
453
|
"ghost"
|
|
445
|
-
],
|
|
454
|
+
], Ue = [
|
|
446
455
|
"button",
|
|
447
456
|
"reset",
|
|
448
457
|
"submit"
|
|
449
|
-
],
|
|
458
|
+
], We = [
|
|
450
459
|
"id",
|
|
451
460
|
"data-behavior",
|
|
452
461
|
"data-elevation-level",
|
|
453
462
|
"data-spacing"
|
|
454
|
-
],
|
|
463
|
+
], Ge = /* @__PURE__ */ s({
|
|
455
464
|
name: "DBCard",
|
|
456
465
|
__name: "card",
|
|
457
466
|
props: {
|
|
@@ -484,20 +493,20 @@ var x = () => {
|
|
|
484
493
|
"data-elevation-level": e.elevationLevel,
|
|
485
494
|
"data-spacing": e.spacing,
|
|
486
495
|
onClick: o[0] ||= async (e) => i(e)
|
|
487
|
-
}, [h(a.$slots, "default")], 10,
|
|
496
|
+
}, [h(a.$slots, "default")], 10, We));
|
|
488
497
|
}
|
|
489
|
-
}),
|
|
498
|
+
}), Ke = ["static", "interactive"], qe = [
|
|
490
499
|
"1",
|
|
491
500
|
"2",
|
|
492
501
|
"3"
|
|
493
|
-
],
|
|
502
|
+
], Je = (e, t, n = "value") => {
|
|
494
503
|
e(`update:${n}`, t.target[n]);
|
|
495
|
-
},
|
|
504
|
+
}, Ye = (e, t, n) => {
|
|
496
505
|
e.form && !e._dbFormResetListenerAdded && (e.form.addEventListener("reset", (e) => {
|
|
497
506
|
t(e);
|
|
498
507
|
}, { signal: n }), e._dbFormResetListenerAdded = !0);
|
|
499
|
-
},
|
|
500
|
-
|
|
508
|
+
}, Xe = (e, t, n, r) => {
|
|
509
|
+
Ye(e, (r) => {
|
|
501
510
|
O(() => {
|
|
502
511
|
let i = t.checked ? t.checked : t.defaultChecked ? t.defaultChecked : e.checked;
|
|
503
512
|
n({
|
|
@@ -509,8 +518,8 @@ var x = () => {
|
|
|
509
518
|
});
|
|
510
519
|
}, 1);
|
|
511
520
|
}, r);
|
|
512
|
-
},
|
|
513
|
-
|
|
521
|
+
}, Ze = (e, t, n, r) => {
|
|
522
|
+
Ye(e, (r) => {
|
|
514
523
|
O(() => {
|
|
515
524
|
let i = t.value ? t.value : t.defaultValue ? t.defaultValue : e.value;
|
|
516
525
|
n({
|
|
@@ -522,7 +531,7 @@ var x = () => {
|
|
|
522
531
|
});
|
|
523
532
|
}, 1);
|
|
524
533
|
}, r);
|
|
525
|
-
},
|
|
534
|
+
}, Qe = [
|
|
526
535
|
"id",
|
|
527
536
|
"data-icon",
|
|
528
537
|
"data-semantic",
|
|
@@ -564,13 +573,13 @@ var x = () => {
|
|
|
564
573
|
"data-size": t.size,
|
|
565
574
|
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
566
575
|
"data-show-icon-leading": _(k)(t.showIcon ?? !0, "showIcon")
|
|
567
|
-
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10,
|
|
576
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, Qe));
|
|
568
577
|
}
|
|
569
|
-
}),
|
|
578
|
+
}), $e = [
|
|
570
579
|
"data-size",
|
|
571
580
|
"data-hide-asterisk",
|
|
572
581
|
"data-hide-label"
|
|
573
|
-
],
|
|
582
|
+
], et = ["for"], tt = [
|
|
574
583
|
"aria-invalid",
|
|
575
584
|
"data-custom-validity",
|
|
576
585
|
"id",
|
|
@@ -580,10 +589,10 @@ var x = () => {
|
|
|
580
589
|
"value",
|
|
581
590
|
"required",
|
|
582
591
|
"aria-describedby"
|
|
583
|
-
],
|
|
592
|
+
], nt = {
|
|
584
593
|
"data-visually-hidden": "true",
|
|
585
594
|
role: "status"
|
|
586
|
-
},
|
|
595
|
+
}, rt = /* @__PURE__ */ s({
|
|
587
596
|
name: "DBCheckbox",
|
|
588
597
|
__name: "checkbox",
|
|
589
598
|
props: {
|
|
@@ -670,8 +679,8 @@ var x = () => {
|
|
|
670
679
|
flush: "post"
|
|
671
680
|
}), y(() => [T.value], () => {
|
|
672
681
|
if (T.value) {
|
|
673
|
-
let e = T.value +
|
|
674
|
-
D.value = e, k.value = T.value +
|
|
682
|
+
let e = T.value + X;
|
|
683
|
+
D.value = e, k.value = T.value + se, j.value = T.value + ce, I(S.message, S.showMessage) && (N.value = e), B();
|
|
675
684
|
}
|
|
676
685
|
}, {
|
|
677
686
|
immediate: !0,
|
|
@@ -697,7 +706,7 @@ var x = () => {
|
|
|
697
706
|
}), y(() => [R.value], () => {
|
|
698
707
|
if (R.value) {
|
|
699
708
|
let e = L.value;
|
|
700
|
-
e || (e = new AbortController(), L.value = e),
|
|
709
|
+
e || (e = new AbortController(), L.value = e), Xe(R.value, {
|
|
701
710
|
checked: S.checked,
|
|
702
711
|
defaultChecked: void 0
|
|
703
712
|
}, (e) => {
|
|
@@ -715,7 +724,7 @@ var x = () => {
|
|
|
715
724
|
!R.value?.validity.valid || S.validation === "invalid" ? (N.value = j.value, M.value = S.invalidMessage || R.value?.validationMessage || "TODO: Add an invalidMessage", E() && (P.value = M.value, O(() => P.value = "", 1e3))) : z() && R.value?.validity.valid && S.required ? (N.value = k.value, E() && (P.value = S.validMessage ?? "TODO: Add a validMessage", O(() => P.value = "", 1e3))) : I(S.message, S.showMessage) ? N.value = D.value : N.value = void 0;
|
|
716
725
|
}
|
|
717
726
|
function V(e, t) {
|
|
718
|
-
S.onChange && S.onChange(e),
|
|
727
|
+
S.onChange && S.onChange(e), Je(x, e, "checked"), B();
|
|
719
728
|
}
|
|
720
729
|
function H(e) {
|
|
721
730
|
S.onBlur && S.onBlur(e);
|
|
@@ -725,7 +734,7 @@ var x = () => {
|
|
|
725
734
|
}
|
|
726
735
|
function U() {
|
|
727
736
|
let e = S.id ?? S.propOverrides?.id ?? `checkbox-${m}`;
|
|
728
|
-
T.value = e, D.value = e +
|
|
737
|
+
T.value = e, D.value = e + X, k.value = e + se, j.value = e + ce;
|
|
729
738
|
}
|
|
730
739
|
return (l, u) => (f(), r("div", {
|
|
731
740
|
class: c(_(C)("db-checkbox", S.class)),
|
|
@@ -750,10 +759,10 @@ var x = () => {
|
|
|
750
759
|
onBlur: u[1] ||= async (e) => H(e),
|
|
751
760
|
onFocus: u[2] ||= async (e) => ee(e),
|
|
752
761
|
"aria-describedby": s.ariaDescribedBy ?? N.value
|
|
753
|
-
}, null, 40,
|
|
762
|
+
}, null, 40, tt),
|
|
754
763
|
s.label ? (f(), r(e, { key: 0 }, [a(g(s.label), 1)], 64)) : n("", !0),
|
|
755
764
|
h(l.$slots, "default")
|
|
756
|
-
], 8,
|
|
765
|
+
], 8, et),
|
|
757
766
|
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
758
767
|
key: 0,
|
|
759
768
|
size: "small",
|
|
@@ -780,10 +789,10 @@ var x = () => {
|
|
|
780
789
|
default: b(() => [a(g(M.value), 1)]),
|
|
781
790
|
_: 1
|
|
782
791
|
}, 8, ["id"]),
|
|
783
|
-
i("span",
|
|
784
|
-
], 10,
|
|
792
|
+
i("span", nt, g(P.value), 1)
|
|
793
|
+
], 10, $e));
|
|
785
794
|
}
|
|
786
|
-
}),
|
|
795
|
+
}), it = [
|
|
787
796
|
"id",
|
|
788
797
|
"data-icon",
|
|
789
798
|
"data-show-icon",
|
|
@@ -793,7 +802,7 @@ var x = () => {
|
|
|
793
802
|
"data-width",
|
|
794
803
|
"data-variant",
|
|
795
804
|
"data-no-text"
|
|
796
|
-
],
|
|
805
|
+
], at = /* @__PURE__ */ s({
|
|
797
806
|
name: "DBCustomButton",
|
|
798
807
|
__name: "custom-button",
|
|
799
808
|
props: {
|
|
@@ -842,9 +851,9 @@ var x = () => {
|
|
|
842
851
|
"data-width": e.width,
|
|
843
852
|
"data-variant": e.variant,
|
|
844
853
|
"data-no-text": _(k)(e.noText, "noText")
|
|
845
|
-
}, [h(i.$slots, "default")], 10,
|
|
854
|
+
}, [h(i.$slots, "default")], 10, it));
|
|
846
855
|
}
|
|
847
|
-
}),
|
|
856
|
+
}), ot = class {
|
|
848
857
|
addCallback(e) {
|
|
849
858
|
let t = x(), n = this.getCallbacks();
|
|
850
859
|
return n[t] = e, t;
|
|
@@ -853,7 +862,7 @@ var x = () => {
|
|
|
853
862
|
let t = this.getCallbacks();
|
|
854
863
|
delete t[e];
|
|
855
864
|
}
|
|
856
|
-
},
|
|
865
|
+
}, st = class e extends ot {
|
|
857
866
|
static callbacks = {};
|
|
858
867
|
static _instance = null;
|
|
859
868
|
static runCallbacks(t) {
|
|
@@ -866,7 +875,7 @@ var x = () => {
|
|
|
866
875
|
getCallbacks() {
|
|
867
876
|
return e.callbacks;
|
|
868
877
|
}
|
|
869
|
-
},
|
|
878
|
+
}, ct = class e extends ot {
|
|
870
879
|
static callbacks = {};
|
|
871
880
|
static _instance = null;
|
|
872
881
|
static runCallbacks(t) {
|
|
@@ -884,13 +893,13 @@ var x = () => {
|
|
|
884
893
|
getCallbacks() {
|
|
885
894
|
return e.callbacks;
|
|
886
895
|
}
|
|
887
|
-
},
|
|
896
|
+
}, lt = (e, t, n) => {
|
|
888
897
|
if (!e || !t) return;
|
|
889
898
|
let r = e.dataset.width === "full", i = e.dataset.width === "auto";
|
|
890
899
|
e.style.inlineSize = "", e.style.minInlineSize = "";
|
|
891
900
|
let a = getComputedStyle(e);
|
|
892
901
|
if (a.zIndex === "9999" || a.position !== "fixed" && a.position !== "absolute") return;
|
|
893
|
-
let { top: o, bottom: s, childHeight: c, childWidth: l, width: u, right: d, left: f, correctedPlacement: p, innerWidth: m } =
|
|
902
|
+
let { top: o, bottom: s, childHeight: c, childWidth: l, width: u, right: d, left: f, correctedPlacement: p, innerWidth: m } = ut(e, t, n), h = u;
|
|
894
903
|
if (i) {
|
|
895
904
|
let t = parseFloat(getComputedStyle(e).maxInlineSize);
|
|
896
905
|
!isNaN(t) && t > 0 && (h = Math.min(u, t));
|
|
@@ -900,7 +909,7 @@ var x = () => {
|
|
|
900
909
|
i ? g = Math.max(l, h) : r && (g = u);
|
|
901
910
|
let _ = p;
|
|
902
911
|
i && (_ === "top" || _ === "bottom" || _ === "top-start" || _ === "bottom-start") && f + g > m && (_ = _.startsWith("top") ? "top-end" : "bottom-end"), _ === "top" || _ === "bottom" || _ === "top-start" || _ === "bottom-start" ? e.style.insetInlineStart = `${f}px` : (_ === "top-end" || _ === "bottom-end") && (e.style.insetInlineStart = `${Math.max(d - g, 0)}px`), _?.startsWith("top") ? e.style.insetBlockStart = `${o - c}px` : _?.startsWith("bottom") && (e.style.insetBlockStart = `${s}px`), e.style.position = "fixed";
|
|
903
|
-
},
|
|
912
|
+
}, ut = (e, t, n) => {
|
|
904
913
|
if (!e || !t) return {
|
|
905
914
|
top: 0,
|
|
906
915
|
bottom: 0,
|
|
@@ -931,21 +940,21 @@ var x = () => {
|
|
|
931
940
|
innerHeight: u,
|
|
932
941
|
outsideYBoth: h && m
|
|
933
942
|
};
|
|
934
|
-
},
|
|
935
|
-
if (
|
|
943
|
+
}, dt = 10, ft = /* @__PURE__ */ new WeakMap(), pt = (e) => {
|
|
944
|
+
if (ft.has(e)) return ft.get(e);
|
|
936
945
|
let t = e.parentElement, n = 0;
|
|
937
|
-
for (; t && n <
|
|
938
|
-
if (t.dataset.correctedPlacement) return
|
|
946
|
+
for (; t && n < dt;) {
|
|
947
|
+
if (t.dataset.correctedPlacement) return ft.set(e, t), t;
|
|
939
948
|
t = t.parentElement, n += 1;
|
|
940
949
|
}
|
|
941
|
-
return
|
|
942
|
-
},
|
|
950
|
+
return ft.set(e, null), null;
|
|
951
|
+
}, mt = (e, t, n) => {
|
|
943
952
|
if (!e || !t) return;
|
|
944
|
-
let r = getComputedStyle(t), i = ["absolute", "fixed"].includes(r.position), a =
|
|
953
|
+
let r = getComputedStyle(t), i = ["absolute", "fixed"].includes(r.position), a = pt(e), o = !a && !i, s = getComputedStyle(e);
|
|
945
954
|
if (s.position !== "fixed" && s.position !== "absolute") return;
|
|
946
955
|
let c = s.getPropertyValue("--db-popover-distance");
|
|
947
956
|
c.length || (c = "0px");
|
|
948
|
-
let { top: l, height: u, width: d, childHeight: f, childWidth: p, right: m, left: h, bottom: g, correctedPlacement: _, innerWidth: v, innerHeight: y, outsideYBoth: b } =
|
|
957
|
+
let { top: l, height: u, width: d, childHeight: f, childWidth: p, right: m, left: h, bottom: g, correctedPlacement: _, innerWidth: v, innerHeight: y, outsideYBoth: b } = ut(e, t, e?.dataset?.placement ?? n ?? "bottom");
|
|
949
958
|
if (a) {
|
|
950
959
|
let e = a.getBoundingClientRect();
|
|
951
960
|
h = Math.abs(h - e.left), m = (d + Math.abs(m - e.right)) * 1.5, l = Math.abs(l - e.top), g = (u + Math.abs(g - e.bottom)) * 1.5;
|
|
@@ -990,14 +999,14 @@ var x = () => {
|
|
|
990
999
|
let t = g + f;
|
|
991
1000
|
e.style.insetBlockStart = `calc(${i ? t : g}px + ${c})`, e.style.insetBlockEnd = `calc(${o && t > y ? y : t}px + ${c})`;
|
|
992
1001
|
}
|
|
993
|
-
b ? (e.style.overflow = "hidden auto", e.style.insetBlock = c, e.style.maxBlockSize = `calc(${y}px - 2 * ${c})`) : (e.style.overflow = "", e.style.maxBlockSize = ""), e.style.position = "fixed", e.dataset.correctedPlacement = _,
|
|
994
|
-
},
|
|
995
|
-
let { outTop: t, outBottom: n, outLeft: r, outRight: i } =
|
|
1002
|
+
b ? (e.style.overflow = "hidden auto", e.style.insetBlock = c, e.style.maxBlockSize = `calc(${y}px - 2 * ${c})`) : (e.style.overflow = "", e.style.maxBlockSize = ""), e.style.position = "fixed", e.dataset.correctedPlacement = _, ht(e);
|
|
1003
|
+
}, ht = (e) => {
|
|
1004
|
+
let { outTop: t, outBottom: n, outLeft: r, outRight: i } = gt(e), a = {};
|
|
996
1005
|
return t || n ? (a = { vy: t ? "top" : "bottom" }, e.dataset.outsideVy = a.vy) : delete e.dataset.outsideVy, r || i ? (a = {
|
|
997
1006
|
...a,
|
|
998
1007
|
vx: i ? "right" : "left"
|
|
999
1008
|
}, e.dataset.outsideVx = a.vx) : delete e.dataset.outsideVx, a;
|
|
1000
|
-
},
|
|
1009
|
+
}, gt = (e) => {
|
|
1001
1010
|
let { top: t, bottom: n, left: r, right: i } = e.getBoundingClientRect(), { innerHeight: a, innerWidth: o } = window, s = t < 0, c = n > a, l = r < 0, u = i > o, d = e.dataset.outsideVy, f = e.dataset.outsideVx, p = e?.parentElement?.getBoundingClientRect();
|
|
1002
1011
|
return p && (d && (e.dataset.outsideVy === "top" ? s = p.top - (n - p.bottom) < 0 : c = p.bottom + (p.top - t) > a), f && (e.dataset.outsideVx === "left" ? l = p.left - (i - p.right) < 0 : u = p.right + (p.left - r) > o)), {
|
|
1003
1012
|
outTop: s,
|
|
@@ -1005,7 +1014,7 @@ var x = () => {
|
|
|
1005
1014
|
outLeft: l,
|
|
1006
1015
|
outRight: u
|
|
1007
1016
|
};
|
|
1008
|
-
},
|
|
1017
|
+
}, _t = class {
|
|
1009
1018
|
observe(e, t) {
|
|
1010
1019
|
let n = this.getObserver();
|
|
1011
1020
|
if (!n) return;
|
|
@@ -1024,7 +1033,7 @@ var x = () => {
|
|
|
1024
1033
|
e(t);
|
|
1025
1034
|
});
|
|
1026
1035
|
}
|
|
1027
|
-
},
|
|
1036
|
+
}, vt = class e extends _t {
|
|
1028
1037
|
static _instance = null;
|
|
1029
1038
|
static callbacksByElement = /* @__PURE__ */ new Map();
|
|
1030
1039
|
static idToElement = /* @__PURE__ */ new Map();
|
|
@@ -1050,7 +1059,7 @@ var x = () => {
|
|
|
1050
1059
|
unobserveElement(e, t) {
|
|
1051
1060
|
e.unobserve(t);
|
|
1052
1061
|
}
|
|
1053
|
-
},
|
|
1062
|
+
}, yt = class e extends _t {
|
|
1054
1063
|
static _instance = null;
|
|
1055
1064
|
static callbacksByElement = /* @__PURE__ */ new Map();
|
|
1056
1065
|
static idToElement = /* @__PURE__ */ new Map();
|
|
@@ -1076,7 +1085,7 @@ var x = () => {
|
|
|
1076
1085
|
unobserveElement(e, t) {
|
|
1077
1086
|
e.unobserve(t);
|
|
1078
1087
|
}
|
|
1079
|
-
},
|
|
1088
|
+
}, bt = ["id", "data-width"], xt = /* @__PURE__ */ s({
|
|
1080
1089
|
name: "DBCustomSelectDropdown",
|
|
1081
1090
|
__name: "custom-select-dropdown",
|
|
1082
1091
|
props: {
|
|
@@ -1097,20 +1106,20 @@ var x = () => {
|
|
|
1097
1106
|
id: e.id ?? e.propOverrides?.id,
|
|
1098
1107
|
class: c(_(C)("db-custom-select-dropdown db-card", t.class)),
|
|
1099
1108
|
"data-width": e.width
|
|
1100
|
-
}, [h(i.$slots, "default")], 10,
|
|
1109
|
+
}, [h(i.$slots, "default")], 10, bt));
|
|
1101
1110
|
}
|
|
1102
|
-
}),
|
|
1111
|
+
}), St = ["id", "data-divider"], Ct = [
|
|
1103
1112
|
"data-icon",
|
|
1104
1113
|
"data-show-icon",
|
|
1105
1114
|
"data-icon-trailing"
|
|
1106
|
-
],
|
|
1115
|
+
], wt = [
|
|
1107
1116
|
"type",
|
|
1108
1117
|
"name",
|
|
1109
1118
|
"form",
|
|
1110
1119
|
"checked",
|
|
1111
1120
|
"disabled",
|
|
1112
1121
|
"value"
|
|
1113
|
-
],
|
|
1122
|
+
], Tt = { class: "db-custom-select-list-item-label" }, Et = { key: 1 }, Dt = /* @__PURE__ */ s({
|
|
1114
1123
|
name: "DBCustomSelectListItem",
|
|
1115
1124
|
__name: "custom-select-list-item",
|
|
1116
1125
|
props: {
|
|
@@ -1162,7 +1171,7 @@ var x = () => {
|
|
|
1162
1171
|
flush: "post"
|
|
1163
1172
|
});
|
|
1164
1173
|
function m(e) {
|
|
1165
|
-
e.stopPropagation(), l.onChange && l.onChange(e),
|
|
1174
|
+
e.stopPropagation(), l.onChange && l.onChange(e), Je(s, e, "checked");
|
|
1166
1175
|
}
|
|
1167
1176
|
function v() {
|
|
1168
1177
|
if (!(l.isGroupTitle || l.type === "checkbox")) return A(l.checked, "checked") ? "check" : "x_placeholder";
|
|
@@ -1176,7 +1185,7 @@ var x = () => {
|
|
|
1176
1185
|
"db-radio": t.type !== "checkbox" && !t.isGroupTitle
|
|
1177
1186
|
})),
|
|
1178
1187
|
"data-divider": _(k)(u.value, "hasDivider")
|
|
1179
|
-
}, [t.isGroupTitle ? (f(), r("span",
|
|
1188
|
+
}, [t.isGroupTitle ? (f(), r("span", Et, g(t.groupTitle), 1)) : (f(), r("label", {
|
|
1180
1189
|
key: 0,
|
|
1181
1190
|
"data-icon": t.type !== "checkbox" && t.icon ? t.icon : void 0,
|
|
1182
1191
|
"data-show-icon": _(k)(t.showIcon, "showIcon"),
|
|
@@ -1191,13 +1200,13 @@ var x = () => {
|
|
|
1191
1200
|
disabled: _(A)(t.disabled, "disabled"),
|
|
1192
1201
|
value: t.value,
|
|
1193
1202
|
onChange: s[0] ||= async (e) => m(e)
|
|
1194
|
-
}, null, 40,
|
|
1203
|
+
}, null, 40, wt), i("span", Tt, [t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0), h(o.$slots, "default")])], 8, Ct))], 10, St));
|
|
1195
1204
|
}
|
|
1196
|
-
}),
|
|
1205
|
+
}), Ot = [
|
|
1197
1206
|
"role",
|
|
1198
1207
|
"aria-label",
|
|
1199
1208
|
"id"
|
|
1200
|
-
],
|
|
1209
|
+
], kt = /* @__PURE__ */ s({
|
|
1201
1210
|
name: "DBCustomSelectList",
|
|
1202
1211
|
__name: "custom-select-list",
|
|
1203
1212
|
props: {
|
|
@@ -1222,9 +1231,9 @@ var x = () => {
|
|
|
1222
1231
|
ref: n,
|
|
1223
1232
|
id: e.id ?? e.propOverrides?.id,
|
|
1224
1233
|
class: c(_(C)("db-custom-select-list", t.class))
|
|
1225
|
-
}, [i("ul", null, [h(a.$slots, "default")])], 10,
|
|
1234
|
+
}, [i("ul", null, [h(a.$slots, "default")])], 10, Ot));
|
|
1226
1235
|
}
|
|
1227
|
-
}),
|
|
1236
|
+
}), At = [
|
|
1228
1237
|
"data-variant",
|
|
1229
1238
|
"data-hide-label",
|
|
1230
1239
|
"data-show-icon",
|
|
@@ -1232,10 +1241,10 @@ var x = () => {
|
|
|
1232
1241
|
"data-icon-trailing",
|
|
1233
1242
|
"data-hide-asterisk",
|
|
1234
1243
|
"data-show-icon-trailing"
|
|
1235
|
-
],
|
|
1244
|
+
], jt = ["for"], Mt = /* @__PURE__ */ "aria-invalid.data-custom-validity.data-field-sizing.id.name.type.multiple.accept.placeholder.disabled.required.step.value.maxLength.minLength.max.min.readOnly.form.pattern.size.autoComplete.autoFocus.enterKeyHint.inputMode.list.aria-describedby.role".split("."), Nt = ["id"], Pt = ["value"], Ft = {
|
|
1236
1245
|
"data-visually-hidden": "true",
|
|
1237
1246
|
role: "status"
|
|
1238
|
-
},
|
|
1247
|
+
}, It = /* @__PURE__ */ s({
|
|
1239
1248
|
name: "DBInput",
|
|
1240
1249
|
__name: "input",
|
|
1241
1250
|
props: {
|
|
@@ -1355,11 +1364,11 @@ var x = () => {
|
|
|
1355
1364
|
setup(s, { emit: l }) {
|
|
1356
1365
|
let x = v(), S = l, T = s, P = p(void 0), L = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p(void 0), ee = p(""), U = p(""), te = p(void 0), W = p(null);
|
|
1357
1366
|
u(() => {
|
|
1358
|
-
|
|
1367
|
+
Y(), B.value = T.invalidMessage || "TODO: Add an invalidMessage";
|
|
1359
1368
|
}), d(() => {
|
|
1360
1369
|
te.value?.abort();
|
|
1361
1370
|
}), y(() => [T.id, T.propOverrides?.id], () => {
|
|
1362
|
-
(T.id ?? T.propOverrides?.id) &&
|
|
1371
|
+
(T.id ?? T.propOverrides?.id) && Y();
|
|
1363
1372
|
}, {
|
|
1364
1373
|
immediate: !0,
|
|
1365
1374
|
flush: "post"
|
|
@@ -1370,8 +1379,8 @@ var x = () => {
|
|
|
1370
1379
|
flush: "post"
|
|
1371
1380
|
}), y(() => [P.value], () => {
|
|
1372
1381
|
if (P.value) {
|
|
1373
|
-
let e = P.value +
|
|
1374
|
-
L.value = e, R.value = P.value +
|
|
1382
|
+
let e = P.value + X;
|
|
1383
|
+
L.value = e, R.value = P.value + se, z.value = P.value + ce, V.value = T.dataListId ?? P.value + "-datalist", I(T.message, T.showMessage) && (H.value = e), re();
|
|
1375
1384
|
}
|
|
1376
1385
|
}, {
|
|
1377
1386
|
immediate: !0,
|
|
@@ -1384,7 +1393,7 @@ var x = () => {
|
|
|
1384
1393
|
}), y(() => [W.value], () => {
|
|
1385
1394
|
if (W.value) {
|
|
1386
1395
|
let e = te.value;
|
|
1387
|
-
e || (e = new AbortController(), te.value = e),
|
|
1396
|
+
e || (e = new AbortController(), te.value = e), Ze(W.value, {
|
|
1388
1397
|
value: T.value,
|
|
1389
1398
|
defaultValue: void 0
|
|
1390
1399
|
}, (e) => {
|
|
@@ -1402,27 +1411,27 @@ var x = () => {
|
|
|
1402
1411
|
!W.value?.validity.valid || T.validation === "invalid" ? (H.value = z.value, B.value = T.invalidMessage || W.value?.validationMessage || "TODO: Add an invalidMessage", E() && (U.value = B.value, O(() => U.value = "", 1e3))) : ne() && W.value?.validity.valid && (T.required || T.minLength || T.maxLength || T.pattern) ? (H.value = R.value, E() && (U.value = T.validMessage ?? "TODO: Add a validMessage", O(() => U.value = "", 1e3))) : I(T.message, T.showMessage) ? H.value = L.value : H.value = void 0;
|
|
1403
1412
|
}
|
|
1404
1413
|
function G(e, t) {
|
|
1405
|
-
T.input && T.input(e), ee.value = e.target.value, T.onInput && T.onInput(e),
|
|
1414
|
+
T.input && T.input(e), ee.value = e.target.value, T.onInput && T.onInput(e), Je(S, e), re();
|
|
1406
1415
|
}
|
|
1407
1416
|
function ie(e, t) {
|
|
1408
|
-
T.onChange && T.onChange(e),
|
|
1417
|
+
T.onChange && T.onChange(e), Je(S, e), re();
|
|
1409
1418
|
}
|
|
1410
|
-
function
|
|
1419
|
+
function K(e) {
|
|
1411
1420
|
T.onBlur && T.onBlur(e);
|
|
1412
1421
|
}
|
|
1413
|
-
function
|
|
1422
|
+
function q(e) {
|
|
1414
1423
|
T.onFocus && T.onFocus(e);
|
|
1415
1424
|
}
|
|
1416
|
-
function
|
|
1425
|
+
function J() {
|
|
1417
1426
|
let e = T.dataList;
|
|
1418
1427
|
return Array.from((w(e) ? e?.map((e) => ({
|
|
1419
1428
|
value: e,
|
|
1420
1429
|
label: void 0
|
|
1421
1430
|
})) : e) || []);
|
|
1422
1431
|
}
|
|
1423
|
-
function
|
|
1432
|
+
function Y() {
|
|
1424
1433
|
let e = T.id ?? T.propOverrides?.id ?? `input-${x}`;
|
|
1425
|
-
P.value = e, L.value = e +
|
|
1434
|
+
P.value = e, L.value = e + X, R.value = e + se, z.value = e + ce, V.value = e + ue;
|
|
1426
1435
|
}
|
|
1427
1436
|
return (l, u) => (f(), r("div", {
|
|
1428
1437
|
class: c(_(C)("db-input", T.class)),
|
|
@@ -1434,7 +1443,7 @@ var x = () => {
|
|
|
1434
1443
|
"data-hide-asterisk": _(F)(s.showRequiredAsterisk),
|
|
1435
1444
|
"data-show-icon-trailing": _(k)(s.showIconTrailing, "showIconTrailing")
|
|
1436
1445
|
}, [
|
|
1437
|
-
i("label", { for: P.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9,
|
|
1446
|
+
i("label", { for: P.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, jt),
|
|
1438
1447
|
i("input", {
|
|
1439
1448
|
"aria-invalid": s.validation === "invalid",
|
|
1440
1449
|
"data-custom-validity": s.validation,
|
|
@@ -1465,8 +1474,8 @@ var x = () => {
|
|
|
1465
1474
|
inputMode: s.inputmode,
|
|
1466
1475
|
onInput: u[0] ||= async (e) => G(e),
|
|
1467
1476
|
onChange: u[1] ||= async (e) => ie(e),
|
|
1468
|
-
onBlur: u[2] ||= async (e) =>
|
|
1469
|
-
onFocus: u[3] ||= async (e) =>
|
|
1477
|
+
onBlur: u[2] ||= async (e) => K(e),
|
|
1478
|
+
onFocus: u[3] ||= async (e) => q(e),
|
|
1470
1479
|
list: s.dataList && V.value,
|
|
1471
1480
|
"aria-describedby": s.ariaDescribedBy ?? H.value,
|
|
1472
1481
|
role: [
|
|
@@ -1477,14 +1486,14 @@ var x = () => {
|
|
|
1477
1486
|
"month",
|
|
1478
1487
|
"color"
|
|
1479
1488
|
].includes(s.type ?? "") && _(D)() ? "textbox" : void 0
|
|
1480
|
-
}, null, 40,
|
|
1489
|
+
}, null, 40, Mt),
|
|
1481
1490
|
s.dataList ? (f(), r("datalist", {
|
|
1482
1491
|
key: 0,
|
|
1483
1492
|
id: V.value
|
|
1484
|
-
}, [(f(!0), r(e, null, m(
|
|
1493
|
+
}, [(f(!0), r(e, null, m(J(), (e) => (f(), r("option", {
|
|
1485
1494
|
key: V.value + "-option-" + e.value,
|
|
1486
1495
|
value: e.value
|
|
1487
|
-
}, g(e.label), 9,
|
|
1496
|
+
}, g(e.label), 9, Pt))), 128))], 8, Nt)) : n("", !0),
|
|
1488
1497
|
h(l.$slots, "default"),
|
|
1489
1498
|
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
1490
1499
|
key: 1,
|
|
@@ -1516,10 +1525,10 @@ var x = () => {
|
|
|
1516
1525
|
default: b(() => [a(g(B.value), 1)]),
|
|
1517
1526
|
_: 1
|
|
1518
1527
|
}, 8, ["id", "size"]),
|
|
1519
|
-
i("span",
|
|
1520
|
-
], 10,
|
|
1528
|
+
i("span", Ft, g(U.value), 1)
|
|
1529
|
+
], 10, At));
|
|
1521
1530
|
}
|
|
1522
|
-
}),
|
|
1531
|
+
}), Lt = [
|
|
1523
1532
|
"id",
|
|
1524
1533
|
"data-emphasis",
|
|
1525
1534
|
"data-wrap",
|
|
@@ -1528,7 +1537,7 @@ var x = () => {
|
|
|
1528
1537
|
"data-width",
|
|
1529
1538
|
"data-show-arrow",
|
|
1530
1539
|
"data-placement"
|
|
1531
|
-
],
|
|
1540
|
+
], Rt = /* @__PURE__ */ s({
|
|
1532
1541
|
name: "DBTooltip",
|
|
1533
1542
|
__name: "tooltip",
|
|
1534
1543
|
props: {
|
|
@@ -1558,7 +1567,7 @@ var x = () => {
|
|
|
1558
1567
|
text: { default: void 0 }
|
|
1559
1568
|
},
|
|
1560
1569
|
setup(t) {
|
|
1561
|
-
let i = v(), o = t, s = p(
|
|
1570
|
+
let i = v(), o = t, s = p(void 0), l = p(!1), m = p(void 0), b = p(void 0), x = p(void 0), S = p(void 0), w = p(void 0), T = p(0), E = p([]), D = p(null);
|
|
1562
1571
|
u(() => {
|
|
1563
1572
|
L(), l.value = !0;
|
|
1564
1573
|
}), d(() => {
|
|
@@ -1578,7 +1587,7 @@ var x = () => {
|
|
|
1578
1587
|
if (e) {
|
|
1579
1588
|
N(e);
|
|
1580
1589
|
let t = () => I(e), n = () => F(), r = (e) => j(e);
|
|
1581
|
-
e.addEventListener("mouseenter", t), e.addEventListener("focusin", t), e.addEventListener("keydown", r), e.addEventListener("mouseleave", n), e.addEventListener("focusout", n), E.value = [
|
|
1590
|
+
if (e.addEventListener("mouseenter", t), e.addEventListener("focusin", t), e.addEventListener("keydown", r), e.addEventListener("mouseleave", n), e.addEventListener("focusout", n), E.value = [
|
|
1582
1591
|
...E.value ?? [],
|
|
1583
1592
|
{
|
|
1584
1593
|
parent: e,
|
|
@@ -1605,7 +1614,12 @@ var x = () => {
|
|
|
1605
1614
|
type: "focusout",
|
|
1606
1615
|
fn: n
|
|
1607
1616
|
}
|
|
1608
|
-
], e.dataset.hasTooltip = "true", o.variant === "label"
|
|
1617
|
+
], e.dataset.hasTooltip = "true", o.variant === "label") e.setAttribute("aria-labelledby", s.value);
|
|
1618
|
+
else {
|
|
1619
|
+
let t = (e.getAttribute("aria-describedby") || "").split(" ").filter((e) => e !== "");
|
|
1620
|
+
t.includes(s.value) || t.push(s.value), e.setAttribute("aria-describedby", t.join(" "));
|
|
1621
|
+
}
|
|
1622
|
+
S.value = e, w.value = s.value;
|
|
1609
1623
|
}
|
|
1610
1624
|
l.value = !1;
|
|
1611
1625
|
}
|
|
@@ -1625,17 +1639,17 @@ var x = () => {
|
|
|
1625
1639
|
}
|
|
1626
1640
|
function N(e) {
|
|
1627
1641
|
e && D.value && O(() => {
|
|
1628
|
-
D.value &&
|
|
1642
|
+
D.value && mt(D.value, e);
|
|
1629
1643
|
}, 1);
|
|
1630
1644
|
}
|
|
1631
1645
|
function P(e, t) {
|
|
1632
1646
|
e?.target?.contains && e?.target?.contains(D.value) && N(t);
|
|
1633
1647
|
}
|
|
1634
1648
|
function F() {
|
|
1635
|
-
T.value = Math.max((T.value ?? 0) - 1, 0), !((T.value ?? 0) > 0) && (m.value &&= (new
|
|
1649
|
+
T.value = Math.max((T.value ?? 0) - 1, 0), !((T.value ?? 0) > 0) && (m.value &&= (new ct().removeCallback(m.value), void 0), x.value &&= (new yt().unobserve(x.value), void 0), b.value &&= (new vt().unobserve(b.value), void 0));
|
|
1636
1650
|
}
|
|
1637
1651
|
function I(e) {
|
|
1638
|
-
T.value = (T.value ?? 0) + 1, T.value === 1 && (m.value = new
|
|
1652
|
+
T.value = (T.value ?? 0) + 1, T.value === 1 && (m.value = new ct().addCallback((t) => P(t, e)), x.value = new yt().observe(document.documentElement, () => N(e)), b.value = new vt().observe(M(), (e) => {
|
|
1639
1653
|
e.isIntersecting || j(!1);
|
|
1640
1654
|
})), N(e);
|
|
1641
1655
|
}
|
|
@@ -1644,13 +1658,15 @@ var x = () => {
|
|
|
1644
1658
|
}
|
|
1645
1659
|
function R() {
|
|
1646
1660
|
let e = m.value;
|
|
1647
|
-
e && (new
|
|
1661
|
+
e && (new ct().removeCallback(e), m.value = void 0), x.value &&= (new yt().unobserve(x.value), void 0), b.value &&= (new vt().unobserve(b.value), void 0), T.value = 0, (E.value ?? []).forEach((e) => {
|
|
1648
1662
|
e.parent.removeEventListener(e.type, e.fn);
|
|
1649
1663
|
}), E.value = [];
|
|
1650
1664
|
let t = S.value;
|
|
1651
1665
|
if (t) {
|
|
1652
1666
|
let e = w.value ?? s.value, n = t.querySelectorAll(".db-tooltip"), r = Array.from(n).some((e) => e !== D.value);
|
|
1653
|
-
t.dataset.hasTooltip === "true" && !r && delete t.dataset.hasTooltip, t.getAttribute("aria-labelledby") === e && t.removeAttribute("aria-labelledby")
|
|
1667
|
+
t.dataset.hasTooltip === "true" && !r && delete t.dataset.hasTooltip, t.getAttribute("aria-labelledby") === e && t.removeAttribute("aria-labelledby");
|
|
1668
|
+
let i = t.getAttribute("aria-describedby") || "", a = i.split(" ").filter((t) => t !== "" && t !== e).join(" ");
|
|
1669
|
+
a ? t.setAttribute("aria-describedby", a) : i && t.removeAttribute("aria-describedby"), S.value = void 0, w.value = void 0;
|
|
1654
1670
|
}
|
|
1655
1671
|
}
|
|
1656
1672
|
return (i, l) => (f(), r("i", {
|
|
@@ -1669,9 +1685,9 @@ var x = () => {
|
|
|
1669
1685
|
"data-show-arrow": _(k)(t.showArrow ?? !0, "showArrow"),
|
|
1670
1686
|
"data-placement": t.placement,
|
|
1671
1687
|
onClick: l[0] ||= async (e) => A(e)
|
|
1672
|
-
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(i.$slots, "default")], 10,
|
|
1688
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(i.$slots, "default")], 10, Lt));
|
|
1673
1689
|
}
|
|
1674
|
-
}),
|
|
1690
|
+
}), zt = [
|
|
1675
1691
|
"id",
|
|
1676
1692
|
"data-semantic",
|
|
1677
1693
|
"data-emphasis",
|
|
@@ -1680,7 +1696,7 @@ var x = () => {
|
|
|
1680
1696
|
"data-show-icon",
|
|
1681
1697
|
"data-no-text",
|
|
1682
1698
|
"data-overflow"
|
|
1683
|
-
],
|
|
1699
|
+
], Bt = /* @__PURE__ */ s({
|
|
1684
1700
|
name: "DBTag",
|
|
1685
1701
|
__name: "tag",
|
|
1686
1702
|
props: {
|
|
@@ -1726,7 +1742,7 @@ var x = () => {
|
|
|
1726
1742
|
e && (e.stopPropagation(), i.onRemove && i.onRemove(e));
|
|
1727
1743
|
}
|
|
1728
1744
|
function u() {
|
|
1729
|
-
return i.removeButton ? i.removeButton :
|
|
1745
|
+
return i.removeButton ? i.removeButton : pe;
|
|
1730
1746
|
}
|
|
1731
1747
|
return (d, p) => (f(), r("div", {
|
|
1732
1748
|
ref_key: "_ref",
|
|
@@ -1753,13 +1769,13 @@ var x = () => {
|
|
|
1753
1769
|
"data-variant": "ghost",
|
|
1754
1770
|
type: "button",
|
|
1755
1771
|
onClick: p[0] ||= async (e) => l(e)
|
|
1756
|
-
}, [o(
|
|
1772
|
+
}, [o(Rt, { variant: "label" }, {
|
|
1757
1773
|
default: b(() => [a(g(u()), 1)]),
|
|
1758
1774
|
_: 1
|
|
1759
1775
|
})])) : n("", !0)
|
|
1760
|
-
], 10,
|
|
1776
|
+
], 10, zt));
|
|
1761
1777
|
}
|
|
1762
|
-
}),
|
|
1778
|
+
}), Vt = [
|
|
1763
1779
|
"id",
|
|
1764
1780
|
"aria-invalid",
|
|
1765
1781
|
"data-custom-validity",
|
|
@@ -1772,7 +1788,7 @@ var x = () => {
|
|
|
1772
1788
|
"data-hide-label",
|
|
1773
1789
|
"data-icon",
|
|
1774
1790
|
"data-show-icon"
|
|
1775
|
-
],
|
|
1791
|
+
], Ht = ["id"], Ut = [
|
|
1776
1792
|
"id",
|
|
1777
1793
|
"form",
|
|
1778
1794
|
"name",
|
|
@@ -1780,18 +1796,18 @@ var x = () => {
|
|
|
1780
1796
|
"multiple",
|
|
1781
1797
|
"disabled",
|
|
1782
1798
|
"required"
|
|
1783
|
-
],
|
|
1799
|
+
], Wt = ["disabled", "value"], Gt = ["open"], Kt = [
|
|
1784
1800
|
"id",
|
|
1785
1801
|
"aria-disabled",
|
|
1786
1802
|
"tabIndex",
|
|
1787
1803
|
"aria-labelledby"
|
|
1788
|
-
],
|
|
1804
|
+
], qt = ["data-visually-hidden", "id"], Jt = {
|
|
1789
1805
|
key: 0,
|
|
1790
1806
|
"data-visually-hidden": "true"
|
|
1791
|
-
},
|
|
1807
|
+
}, Yt = { key: 1 }, Xt = { key: 0 }, Zt = { key: 0 }, Qt = { class: "db-checkbox db-custom-select-list-item" }, $t = ["form", "checked"], en = ["id"], tn = {
|
|
1792
1808
|
"data-visually-hidden": "true",
|
|
1793
1809
|
role: "status"
|
|
1794
|
-
},
|
|
1810
|
+
}, nn = /* @__PURE__ */ s({
|
|
1795
1811
|
name: "DBCustomSelect",
|
|
1796
1812
|
__name: "custom-select",
|
|
1797
1813
|
props: {
|
|
@@ -1916,32 +1932,32 @@ var x = () => {
|
|
|
1916
1932
|
},
|
|
1917
1933
|
emits: ["update:values"],
|
|
1918
1934
|
setup(s, { emit: l }) {
|
|
1919
|
-
let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p("no-validation"), ee = p(!1), U = p(void 0), te = p(void 0), W = p(""), ne = p(void 0), re = p(""), G = p([]), ie = p(!1),
|
|
1935
|
+
let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(void 0), R = p(void 0), z = p(void 0), B = p(void 0), V = p(void 0), H = p("no-validation"), ee = p(!1), U = p(void 0), te = p(void 0), W = p(""), ne = p(void 0), re = p(""), G = p([]), ie = p(!1), K = p(!1), q = p(0), J = p([]), Y = p([]), ue = p(!1), de = p(void 0), fe = p(0), me = p(void 0), ge = p(void 0), _e = p(void 0), ve = p(void 0), ye = p(!1), be = p(!1), xe = p(null), Z = p(null), Q = p(null), Se = p(null), Ce = p(null);
|
|
1920
1936
|
u(() => {
|
|
1921
1937
|
Ze(), N.value = w.invalidMessage || "TODO: Add an invalidMessage";
|
|
1922
1938
|
}), d(() => {
|
|
1923
|
-
U.value?.abort(),
|
|
1939
|
+
U.value?.abort(), de.value && new st().removeCallback(de.value), me.value && new ct().removeCallback(me.value), _e.value && new yt().unobserve(_e.value), ge.value && new vt().unobserve(ge.value);
|
|
1924
1940
|
}), y(() => [w.id, w.propOverrides?.id], () => {
|
|
1925
1941
|
(w.id ?? w.propOverrides?.id) && Ze();
|
|
1926
1942
|
}, {
|
|
1927
1943
|
immediate: !0,
|
|
1928
1944
|
flush: "post"
|
|
1929
|
-
}), y(() => [
|
|
1930
|
-
|
|
1945
|
+
}), y(() => [Z.value], () => {
|
|
1946
|
+
Z.value && Z.value.addEventListener("focusout", (e) => Re(e));
|
|
1931
1947
|
}, {
|
|
1932
1948
|
immediate: !0,
|
|
1933
1949
|
flush: "post"
|
|
1934
1950
|
}), y(() => [T.value], () => {
|
|
1935
1951
|
if (T.value) {
|
|
1936
|
-
let e = T.value +
|
|
1937
|
-
R.value = T.value +
|
|
1952
|
+
let e = T.value + X;
|
|
1953
|
+
R.value = T.value + ae, P.value = T.value + oe, j.value = T.value + se, M.value = T.value + ce, B.value = T.value + le, I(w.message, w.showMessage) ? ke(e) : ke();
|
|
1938
1954
|
}
|
|
1939
1955
|
}, {
|
|
1940
1956
|
immediate: !0,
|
|
1941
1957
|
flush: "post"
|
|
1942
|
-
}), y(() => [
|
|
1943
|
-
if (
|
|
1944
|
-
let e =
|
|
1958
|
+
}), y(() => [Z.value, te.value], () => {
|
|
1959
|
+
if (Z.value) {
|
|
1960
|
+
let e = Z.value.querySelector("summary");
|
|
1945
1961
|
e && e.setAttribute("aria-describedby", w.ariaDescribedBy ?? (te.value || ""));
|
|
1946
1962
|
}
|
|
1947
1963
|
}, {
|
|
@@ -1950,44 +1966,44 @@ var x = () => {
|
|
|
1950
1966
|
}), y(() => [
|
|
1951
1967
|
w.showNoResults,
|
|
1952
1968
|
w.showLoading,
|
|
1953
|
-
|
|
1969
|
+
Y.value
|
|
1954
1970
|
], () => {
|
|
1955
|
-
w.showNoResults === void 0 ?
|
|
1971
|
+
w.showNoResults === void 0 ? Y.value && (ue.value = Y.value.length === 0) : ue.value = w.showNoResults;
|
|
1956
1972
|
}, {
|
|
1957
1973
|
immediate: !0,
|
|
1958
1974
|
flush: "post"
|
|
1959
1975
|
}), y(() => [
|
|
1960
1976
|
w.showSelectAll,
|
|
1961
|
-
|
|
1977
|
+
q.value,
|
|
1962
1978
|
w.multiple
|
|
1963
1979
|
], () => {
|
|
1964
|
-
ie.value = !!(w.multiple && (w.showSelectAll ??
|
|
1980
|
+
ie.value = !!(w.multiple && (w.showSelectAll ?? q.value > 5));
|
|
1965
1981
|
}, {
|
|
1966
1982
|
immediate: !0,
|
|
1967
1983
|
flush: "post"
|
|
1968
|
-
}), y(() => [w.showSearch,
|
|
1969
|
-
|
|
1984
|
+
}), y(() => [w.showSearch, q.value], () => {
|
|
1985
|
+
K.value = w.showSearch ?? q.value > 9;
|
|
1970
1986
|
}, {
|
|
1971
1987
|
immediate: !0,
|
|
1972
1988
|
flush: "post"
|
|
1973
1989
|
}), y(() => [w.values], () => {
|
|
1974
1990
|
let e = w.values;
|
|
1975
|
-
Array.isArray(e) ?
|
|
1991
|
+
Array.isArray(e) ? J.value !== e && (J.value = e) : e == null && J.value?.length !== 0 && (J.value = []);
|
|
1976
1992
|
}, {
|
|
1977
1993
|
immediate: !0,
|
|
1978
1994
|
flush: "post"
|
|
1979
|
-
}), y(() => [
|
|
1980
|
-
|
|
1995
|
+
}), y(() => [J.value, Q.value], () => {
|
|
1996
|
+
Q.value && Ee();
|
|
1981
1997
|
}, {
|
|
1982
1998
|
immediate: !0,
|
|
1983
1999
|
flush: "post"
|
|
1984
|
-
}), y(() => [
|
|
1985
|
-
if (
|
|
2000
|
+
}), y(() => [Q.value], () => {
|
|
2001
|
+
if (Q.value) {
|
|
1986
2002
|
let e = U.value;
|
|
1987
2003
|
e || (e = new AbortController(), U.value = e);
|
|
1988
2004
|
let t = w.values;
|
|
1989
|
-
|
|
1990
|
-
|
|
2005
|
+
Ye(Q.value, () => {
|
|
2006
|
+
Be(t || (Q.value.value ? [Q.value.value] : [])), Ee();
|
|
1991
2007
|
}, e.signal);
|
|
1992
2008
|
}
|
|
1993
2009
|
}, {
|
|
@@ -1998,26 +2014,26 @@ var x = () => {
|
|
|
1998
2014
|
}, {
|
|
1999
2015
|
immediate: !0,
|
|
2000
2016
|
flush: "post"
|
|
2001
|
-
}), y(() => [
|
|
2002
|
-
|
|
2017
|
+
}), y(() => [J.value, q.value], () => {
|
|
2018
|
+
J.value?.length === 0 ? (ye.value = !1, be.value = !1) : J.value?.length === q.value ? (be.value = !1, ye.value = !0) : J.value && (be.value = !0);
|
|
2003
2019
|
}, {
|
|
2004
2020
|
immediate: !0,
|
|
2005
2021
|
flush: "post"
|
|
2006
2022
|
}), y(() => [w.options], () => {
|
|
2007
|
-
|
|
2023
|
+
Y.value = w.options, q.value = w.options?.filter((e) => !e.isGroupTitle).length ?? 0, Z.value?.open && Fe();
|
|
2008
2024
|
}, {
|
|
2009
2025
|
immediate: !0,
|
|
2010
2026
|
flush: "post"
|
|
2011
2027
|
}), y(() => [w.searchValue], () => {
|
|
2012
|
-
if (
|
|
2028
|
+
if (ve.value = w.searchValue, w.searchValue) {
|
|
2013
2029
|
let e = w.searchValue;
|
|
2014
|
-
|
|
2030
|
+
Ke(e);
|
|
2015
2031
|
}
|
|
2016
2032
|
}, {
|
|
2017
2033
|
immediate: !0,
|
|
2018
2034
|
flush: "post"
|
|
2019
|
-
}), y(() => [w.options,
|
|
2020
|
-
w.options?.length && (G.value = w.options?.filter((e) => !e.value || !
|
|
2035
|
+
}), y(() => [w.options, J.value], () => {
|
|
2036
|
+
w.options?.length && (G.value = w.options?.filter((e) => !e.value || !J.value?.includes ? !1 : !e.isGroupTitle && J.value?.includes(e.value)));
|
|
2021
2037
|
}, {
|
|
2022
2038
|
immediate: !0,
|
|
2023
2039
|
flush: "post"
|
|
@@ -2038,7 +2054,7 @@ var x = () => {
|
|
|
2038
2054
|
W.value = t(e);
|
|
2039
2055
|
return;
|
|
2040
2056
|
}
|
|
2041
|
-
w.selectedType === "amount" ? W.value = w.amountText ? w.amountText : `${G.value?.length} ${
|
|
2057
|
+
w.selectedType === "amount" ? W.value = w.amountText ? w.amountText : `${G.value?.length} ${he}` : W.value = G.value?.map((e) => je(e)).join(", ");
|
|
2042
2058
|
} else W.value = "";
|
|
2043
2059
|
}, {
|
|
2044
2060
|
immediate: !0,
|
|
@@ -2048,68 +2064,68 @@ var x = () => {
|
|
|
2048
2064
|
}, {
|
|
2049
2065
|
immediate: !0,
|
|
2050
2066
|
flush: "post"
|
|
2051
|
-
}), y(() => [
|
|
2052
|
-
|
|
2067
|
+
}), y(() => [be.value, Se.value], () => {
|
|
2068
|
+
Se.value && (Se.value.indeterminate = !!be.value);
|
|
2053
2069
|
}, {
|
|
2054
2070
|
immediate: !0,
|
|
2055
2071
|
flush: "post"
|
|
2056
|
-
}), y(() => [
|
|
2057
|
-
N.value = w.invalidMessage ||
|
|
2072
|
+
}), y(() => [Q.value, w.invalidMessage], () => {
|
|
2073
|
+
N.value = w.invalidMessage || Q.value?.validationMessage || "TODO: Add an invalidMessage";
|
|
2058
2074
|
}, {
|
|
2059
2075
|
immediate: !0,
|
|
2060
2076
|
flush: "post"
|
|
2061
2077
|
});
|
|
2062
|
-
function
|
|
2063
|
-
e?.target?.contains && e?.target?.contains(
|
|
2078
|
+
function we(e) {
|
|
2079
|
+
e?.target?.contains && e?.target?.contains(Z.value) && Fe();
|
|
2064
2080
|
}
|
|
2065
|
-
function
|
|
2081
|
+
function Te() {
|
|
2066
2082
|
return !!(w.validMessage ?? w.validation === "valid");
|
|
2067
2083
|
}
|
|
2068
|
-
function
|
|
2069
|
-
|
|
2084
|
+
function Ee() {
|
|
2085
|
+
Q.value && (Q.value.value = Oe()), !Q.value?.validity.valid || w.validation === "invalid" ? (ke(M.value), N.value = w.invalidMessage || Q.value?.validationMessage || "TODO: Add an invalidMessage", E() && (re.value = N.value, O(() => re.value = "", 1e3)), ee.value && (H.value = w.validation ?? "invalid")) : Te() && Q.value?.validity.valid && w.required ? (ke(j.value), E() && (re.value = w.validMessage ?? "TODO: Add a validMessage", O(() => re.value = "", 1e3)), H.value = w.validation ?? "valid") : I(w.message, w.showMessage) ? (ke(D.value), H.value = w.validation ?? "no-validation") : (ke(B.value), H.value = w.validation ?? "no-validation");
|
|
2070
2086
|
}
|
|
2071
|
-
function
|
|
2072
|
-
w.onDropdownToggle && (e.stopPropagation(), w.onDropdownToggle(e)), e.target instanceof HTMLDetailsElement && e.target.open ? (
|
|
2073
|
-
!e.isIntersecting &&
|
|
2074
|
-
}), e.target.dataset.test ||
|
|
2087
|
+
function De(e) {
|
|
2088
|
+
w.onDropdownToggle && (e.stopPropagation(), w.onDropdownToggle(e)), e.target instanceof HTMLDetailsElement && e.target.open ? (de.value = new st().addCallback((e) => ze(e)), me.value = new ct().addCallback((e) => we(e)), Fe(), _e.value = new yt().observe(document.documentElement, () => Fe()), ge.value = new vt().observe(Z.value, (e) => {
|
|
2089
|
+
!e.isIntersecting && Z.value.open && (Z.value.open = !1);
|
|
2090
|
+
}), e.target.dataset.test || Ge()) : (de.value && new st().removeCallback(de.value), me.value && new ct().removeCallback(me.value), _e.value && new yt().unobserve(_e.value), ge.value && new vt().unobserve(ge.value));
|
|
2075
2091
|
}
|
|
2076
|
-
function
|
|
2077
|
-
return
|
|
2092
|
+
function Oe() {
|
|
2093
|
+
return J.value?.length ? J.value.at(0) ?? "" : "";
|
|
2078
2094
|
}
|
|
2079
|
-
function
|
|
2095
|
+
function ke(e) {
|
|
2080
2096
|
let t = [];
|
|
2081
2097
|
e && t.push(e), ne.value && W.value?.length && t.push(ne.value), te.value = t.join(" ");
|
|
2082
2098
|
}
|
|
2083
|
-
function
|
|
2099
|
+
function Ae() {
|
|
2084
2100
|
return w.selectAllLabel ?? "LABEL SHOULD BE SET";
|
|
2085
2101
|
}
|
|
2086
|
-
function
|
|
2102
|
+
function je(e) {
|
|
2087
2103
|
return e.label ?? e.value?.toString() ?? "";
|
|
2088
2104
|
}
|
|
2089
|
-
function
|
|
2090
|
-
return e &&
|
|
2105
|
+
function Me(e) {
|
|
2106
|
+
return e && J.value?.includes ? J.value?.includes(e) : !1;
|
|
2091
2107
|
}
|
|
2092
|
-
function
|
|
2108
|
+
function Ne(e) {
|
|
2093
2109
|
let t = w.removeTagsTexts, n = w.options;
|
|
2094
2110
|
if (t && n) {
|
|
2095
2111
|
let r = n.findIndex((t) => t.value === e.value);
|
|
2096
2112
|
if (r >= 0 && r < t.length) return t[r];
|
|
2097
2113
|
}
|
|
2098
|
-
return `${
|
|
2114
|
+
return `${pe} ${je(e)}`;
|
|
2099
2115
|
}
|
|
2100
|
-
function
|
|
2101
|
-
t && t.stopPropagation(),
|
|
2116
|
+
function Pe(e, t) {
|
|
2117
|
+
t && t.stopPropagation(), He(e.value), Xe();
|
|
2102
2118
|
}
|
|
2103
|
-
function
|
|
2104
|
-
if (
|
|
2105
|
-
let e =
|
|
2119
|
+
function Fe() {
|
|
2120
|
+
if (Z.value) {
|
|
2121
|
+
let e = Z.value.querySelector("article");
|
|
2106
2122
|
e && O(() => {
|
|
2107
|
-
|
|
2123
|
+
lt(e, Z.value, w.placement ?? "bottom");
|
|
2108
2124
|
}, 1);
|
|
2109
2125
|
}
|
|
2110
2126
|
}
|
|
2111
|
-
function
|
|
2112
|
-
if (
|
|
2127
|
+
function Ie(e) {
|
|
2128
|
+
if (Z.value?.open) {
|
|
2113
2129
|
if (self.document) {
|
|
2114
2130
|
let t = self.document.activeElement;
|
|
2115
2131
|
if (t) if (t.getAttribute("type") === "checkbox" || t.getAttribute("type") === "radio") {
|
|
@@ -2124,7 +2140,7 @@ var x = () => {
|
|
|
2124
2140
|
}
|
|
2125
2141
|
e = e.nextElementSibling;
|
|
2126
2142
|
}
|
|
2127
|
-
e ||
|
|
2143
|
+
e || We(t);
|
|
2128
2144
|
} else {
|
|
2129
2145
|
let e = n?.previousElementSibling;
|
|
2130
2146
|
for (; e;) {
|
|
@@ -2136,69 +2152,69 @@ var x = () => {
|
|
|
2136
2152
|
e = e.previousElementSibling;
|
|
2137
2153
|
}
|
|
2138
2154
|
if (!e) {
|
|
2139
|
-
let e =
|
|
2140
|
-
if (e && e !== t)
|
|
2155
|
+
let e = Z.value.querySelector("input[type=\"checkbox\"]");
|
|
2156
|
+
if (e && e !== t) We(t);
|
|
2141
2157
|
else {
|
|
2142
|
-
let e = L(
|
|
2158
|
+
let e = L(Z.value);
|
|
2143
2159
|
if (e) O(() => {
|
|
2144
2160
|
e.focus();
|
|
2145
2161
|
}, 100);
|
|
2146
2162
|
else {
|
|
2147
|
-
let e = Array.from(
|
|
2163
|
+
let e = Array.from(Z.value?.querySelectorAll("input[type=\"checkbox\"],input[type=\"radio\"]"));
|
|
2148
2164
|
e.length && e.at(-1)?.focus();
|
|
2149
2165
|
}
|
|
2150
2166
|
}
|
|
2151
2167
|
}
|
|
2152
2168
|
}
|
|
2153
|
-
} else t.getAttribute("type") === "search" && (e.key === "ArrowUp" || e.key === "ArrowLeft") ? (
|
|
2169
|
+
} else t.getAttribute("type") === "search" && (e.key === "ArrowUp" || e.key === "ArrowLeft") ? (Re(void 0, !0), Xe()) : We(t);
|
|
2154
2170
|
}
|
|
2155
|
-
} else (e.key === "ArrowDown" || e.key === "ArrowRight") && (
|
|
2171
|
+
} else (e.key === "ArrowDown" || e.key === "ArrowRight") && (Fe(), Z.value && (Z.value.open = !0), Ge());
|
|
2156
2172
|
e.stopPropagation(), e.preventDefault();
|
|
2157
2173
|
}
|
|
2158
|
-
function
|
|
2159
|
-
if (e.stopPropagation(), e.key === "Escape" &&
|
|
2160
|
-
else if (e.key === "Enter" &&
|
|
2174
|
+
function Le(e) {
|
|
2175
|
+
if (e.stopPropagation(), e.key === "Escape" && Z.value?.open) Re(void 0, !0), Xe();
|
|
2176
|
+
else if (e.key === "Enter" && Z.value?.open) {
|
|
2161
2177
|
if (self.document) {
|
|
2162
2178
|
let t = self.document.activeElement;
|
|
2163
2179
|
if (["checkbox", "radio"].includes(t.getAttribute("type") || "")) t.click(), e.preventDefault();
|
|
2164
2180
|
else if (t.getAttribute("type") === "search") {
|
|
2165
|
-
let t =
|
|
2166
|
-
t?.value && (
|
|
2181
|
+
let t = Y.value?.find((e) => !e.isGroupTitle && !e.disabled);
|
|
2182
|
+
t?.value && (He(t.value), e.preventDefault());
|
|
2167
2183
|
}
|
|
2168
2184
|
}
|
|
2169
|
-
} else (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight") &&
|
|
2185
|
+
} else (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight") && Ie(e);
|
|
2170
2186
|
}
|
|
2171
|
-
function
|
|
2172
|
-
if (
|
|
2173
|
-
if (t)
|
|
2174
|
-
else if (
|
|
2187
|
+
function Re(e, t) {
|
|
2188
|
+
if (Z.value) {
|
|
2189
|
+
if (t) Z.value.open = !1, Xe();
|
|
2190
|
+
else if (Z.value.open && e && e.relatedTarget) {
|
|
2175
2191
|
let t = e.relatedTarget;
|
|
2176
|
-
!
|
|
2192
|
+
!Z.value.contains(t) && t.localName !== "dialog" && O(() => Z.value.open = !1, 1);
|
|
2177
2193
|
}
|
|
2178
2194
|
}
|
|
2179
2195
|
}
|
|
2180
|
-
function
|
|
2196
|
+
function ze(e) {
|
|
2181
2197
|
if (e) {
|
|
2182
2198
|
let t = e.target;
|
|
2183
|
-
|
|
2199
|
+
Z.value?.open && !Z.value.contains(t) && (Z.value.open = !1);
|
|
2184
2200
|
}
|
|
2185
2201
|
}
|
|
2202
|
+
function Be(e) {
|
|
2203
|
+
(/* @__PURE__ */ new Date()).getTime() - fe.value < 200 || (J.value = e, ee.value = !0, w.onOptionSelected && w.onOptionSelected(e ?? []), Je(S, { target: { values: e } }, "values"), fe.value = (/* @__PURE__ */ new Date()).getTime());
|
|
2204
|
+
}
|
|
2186
2205
|
function He(e) {
|
|
2187
|
-
|
|
2206
|
+
e && (w.multiple ? J.value?.includes(e) ? Be(J.value.filter((t) => t !== e)) : Be([...J.value || [], e]) : (Be([e]), Re(void 0, !0)));
|
|
2188
2207
|
}
|
|
2189
2208
|
function Ue(e) {
|
|
2190
|
-
|
|
2191
|
-
}
|
|
2192
|
-
function We(e) {
|
|
2193
|
-
if (e.stopPropagation(), Y.value?.length === K.value) He([]);
|
|
2209
|
+
if (e.stopPropagation(), J.value?.length === q.value) Be([]);
|
|
2194
2210
|
else {
|
|
2195
|
-
let e =
|
|
2196
|
-
|
|
2211
|
+
let e = K.value && Ce.value ? Ce.value.value : void 0;
|
|
2212
|
+
Be(w.options ? w.options.filter((t) => !t.isGroupTitle && (!e || t.value?.toLowerCase().includes(e.toLowerCase()))).map((e) => e.value ?? "") : []);
|
|
2197
2213
|
}
|
|
2198
2214
|
}
|
|
2199
|
-
function
|
|
2200
|
-
if (
|
|
2201
|
-
let t = Array.from(
|
|
2215
|
+
function We(e) {
|
|
2216
|
+
if (Z.value) {
|
|
2217
|
+
let t = Array.from(Z.value.querySelectorAll("input[type=\"checkbox\"],input[type=\"radio\"]"));
|
|
2202
2218
|
if (t.length) {
|
|
2203
2219
|
let n = t.at(0), r = n === e && t.length > 1 ? t.at(1) : n;
|
|
2204
2220
|
r && O(() => {
|
|
@@ -2207,33 +2223,33 @@ var x = () => {
|
|
|
2207
2223
|
}
|
|
2208
2224
|
}
|
|
2209
2225
|
}
|
|
2210
|
-
function
|
|
2211
|
-
if (
|
|
2212
|
-
let e = L(
|
|
2226
|
+
function Ge() {
|
|
2227
|
+
if (Z.value) {
|
|
2228
|
+
let e = L(Z.value);
|
|
2213
2229
|
e ? O(() => {
|
|
2214
2230
|
e.focus();
|
|
2215
|
-
}, 1) :
|
|
2231
|
+
}, 1) : We();
|
|
2216
2232
|
}
|
|
2217
2233
|
}
|
|
2218
|
-
function
|
|
2234
|
+
function Ke(e) {
|
|
2219
2235
|
if (e === void 0) return;
|
|
2220
2236
|
let t;
|
|
2221
2237
|
if (typeof e == "string") t = e;
|
|
2222
2238
|
else {
|
|
2223
2239
|
let n = e;
|
|
2224
|
-
n.stopPropagation(), w.onSearch && w.onSearch(n), t = n.target.value,
|
|
2240
|
+
n.stopPropagation(), w.onSearch && w.onSearch(n), t = n.target.value, ve.value = t;
|
|
2225
2241
|
}
|
|
2226
|
-
!w.options || !t || t.length === 0 ?
|
|
2242
|
+
!w.options || !t || t.length === 0 ? Y.value = w.options : w.searchFilter ? Y.value = w.options.filter((e) => w.searchFilter(e, t)) : Y.value = w.options.filter((e) => !e.isGroupTitle && je(e).toLowerCase().includes(t.toLowerCase())), Z.value?.open && Fe();
|
|
2227
2243
|
}
|
|
2228
|
-
function
|
|
2229
|
-
e.stopPropagation(),
|
|
2244
|
+
function qe(e) {
|
|
2245
|
+
e.stopPropagation(), Be([]), Xe();
|
|
2230
2246
|
}
|
|
2231
2247
|
function Xe() {
|
|
2232
|
-
|
|
2248
|
+
Z.value && Z.value.querySelector("summary")?.focus();
|
|
2233
2249
|
}
|
|
2234
2250
|
function Ze() {
|
|
2235
2251
|
let e = w.id ?? w.propOverrides?.id ?? `custom-select-${x}`;
|
|
2236
|
-
T.value = e, D.value = e +
|
|
2252
|
+
T.value = e, D.value = e + X, j.value = e + se, M.value = e + ce, P.value = e + oe, R.value = e + ae, z.value = e + "-summary", B.value = e + le, ne.value = e + "-selected-labels", V.value = e + "-info";
|
|
2237
2253
|
}
|
|
2238
2254
|
function Qe(e) {
|
|
2239
2255
|
e.stopPropagation();
|
|
@@ -2241,7 +2257,7 @@ var x = () => {
|
|
|
2241
2257
|
return (l, u) => (f(), r("div", {
|
|
2242
2258
|
id: T.value,
|
|
2243
2259
|
ref_key: "_ref",
|
|
2244
|
-
ref:
|
|
2260
|
+
ref: xe,
|
|
2245
2261
|
class: c(_(C)("db-custom-select", w.class)),
|
|
2246
2262
|
"aria-invalid": H.value === "invalid",
|
|
2247
2263
|
"data-custom-validity": H.value,
|
|
@@ -2261,7 +2277,7 @@ var x = () => {
|
|
|
2261
2277
|
id: P.value,
|
|
2262
2278
|
tabIndex: -1,
|
|
2263
2279
|
ref_key: "selectRef",
|
|
2264
|
-
ref:
|
|
2280
|
+
ref: Q,
|
|
2265
2281
|
form: s.form,
|
|
2266
2282
|
name: s.name,
|
|
2267
2283
|
"data-custom-validity": H.value,
|
|
@@ -2273,13 +2289,13 @@ var x = () => {
|
|
|
2273
2289
|
key: t,
|
|
2274
2290
|
disabled: e.disabled,
|
|
2275
2291
|
value: e.value
|
|
2276
|
-
}, g(
|
|
2292
|
+
}, g(je(e)), 9, Wt))), 128)) : n("", !0)], 40, Ut)], 8, Ht),
|
|
2277
2293
|
i("details", {
|
|
2278
2294
|
ref_key: "detailsRef",
|
|
2279
|
-
ref:
|
|
2295
|
+
ref: Z,
|
|
2280
2296
|
open: s.open,
|
|
2281
|
-
onToggle: u[2] ||= async (e) =>
|
|
2282
|
-
onKeydown: u[3] ||= async (e) =>
|
|
2297
|
+
onToggle: u[2] ||= async (e) => De(e),
|
|
2298
|
+
onKeydown: u[3] ||= async (e) => Le(e)
|
|
2283
2299
|
}, [h(l.$slots, "default"), s.options ? (f(), r(e, { key: 0 }, [i("summary", {
|
|
2284
2300
|
class: "db-custom-select-form-field",
|
|
2285
2301
|
id: z.value,
|
|
@@ -2290,29 +2306,29 @@ var x = () => {
|
|
|
2290
2306
|
key: 0,
|
|
2291
2307
|
"data-visually-hidden": _(k)(s.selectedType === "tag", "selectedType"),
|
|
2292
2308
|
id: ne.value
|
|
2293
|
-
}, [s.selectedPrefix ? (f(), r("span",
|
|
2309
|
+
}, [s.selectedPrefix ? (f(), r("span", Jt, g(s.selectedPrefix), 1)) : n("", !0), a(" " + g(W.value), 1)], 8, qt)) : n("", !0), s.selectedType === "tag" ? (f(), r("div", Yt, [(f(!0), r(e, null, m(G.value, (e, n) => (f(), t(Bt, {
|
|
2294
2310
|
key: n,
|
|
2295
2311
|
emphasis: "strong",
|
|
2296
2312
|
behavior: "removable",
|
|
2297
|
-
removeButton:
|
|
2298
|
-
onRemove: (t) =>
|
|
2313
|
+
removeButton: Ne(e),
|
|
2314
|
+
onRemove: (t) => Pe(e, t)
|
|
2299
2315
|
}, {
|
|
2300
|
-
default: b(() => [a(g(
|
|
2316
|
+
default: b(() => [a(g(je(e)), 1)]),
|
|
2301
2317
|
_: 2
|
|
2302
|
-
}, 1032, ["removeButton", "onRemove"]))), 128))])) : n("", !0)], 8,
|
|
2318
|
+
}, 1032, ["removeButton", "onRemove"]))), 128))])) : n("", !0)], 8, Kt), o(xt, { width: s.dropdownWidth }, {
|
|
2303
2319
|
default: b(() => [
|
|
2304
|
-
|
|
2320
|
+
K.value ? (f(), r("div", Xt, [o(It, {
|
|
2305
2321
|
type: "search",
|
|
2306
2322
|
ref_key: "searchInputRef",
|
|
2307
|
-
ref:
|
|
2323
|
+
ref: Ce,
|
|
2308
2324
|
name: T.value,
|
|
2309
2325
|
form: T.value,
|
|
2310
2326
|
showLabel: !1,
|
|
2311
|
-
value:
|
|
2327
|
+
value: ve.value,
|
|
2312
2328
|
label: s.searchLabel ?? _("LABEL SHOULD BE SET"),
|
|
2313
2329
|
placeholder: s.searchPlaceholder ?? s.searchLabel,
|
|
2314
|
-
ariaDescribedBy:
|
|
2315
|
-
onInput: (e) =>
|
|
2330
|
+
ariaDescribedBy: ue.value || s.showLoading ? V.value : void 0,
|
|
2331
|
+
onInput: (e) => Ke(e)
|
|
2316
2332
|
}, null, 8, [
|
|
2317
2333
|
"name",
|
|
2318
2334
|
"form",
|
|
@@ -2322,7 +2338,7 @@ var x = () => {
|
|
|
2322
2338
|
"ariaDescribedBy",
|
|
2323
2339
|
"onInput"
|
|
2324
2340
|
])])) : n("", !0),
|
|
2325
|
-
|
|
2341
|
+
ue.value || s.showLoading ? (f(), t($, {
|
|
2326
2342
|
key: 1,
|
|
2327
2343
|
id: V.value,
|
|
2328
2344
|
icon: s.showLoading ? "circular_arrows" : void 0,
|
|
@@ -2334,32 +2350,32 @@ var x = () => {
|
|
|
2334
2350
|
"id",
|
|
2335
2351
|
"icon",
|
|
2336
2352
|
"semantic"
|
|
2337
|
-
])) : (f(), r(e, { key: 2 }, [ie.value ? (f(), r("div",
|
|
2353
|
+
])) : (f(), r(e, { key: 2 }, [ie.value ? (f(), r("div", Zt, [i("div", Qt, [i("label", null, [i("input", {
|
|
2338
2354
|
type: "checkbox",
|
|
2339
2355
|
value: "select-all",
|
|
2340
2356
|
ref_key: "selectAllRef",
|
|
2341
|
-
ref:
|
|
2357
|
+
ref: Se,
|
|
2342
2358
|
form: T.value,
|
|
2343
|
-
checked:
|
|
2344
|
-
onChange: u[1] ||= async (e) =>
|
|
2345
|
-
}, null, 40,
|
|
2359
|
+
checked: ye.value,
|
|
2360
|
+
onChange: u[1] ||= async (e) => Ue(e)
|
|
2361
|
+
}, null, 40, $t), a(g(Ae()), 1)])])])) : n("", !0), o(kt, {
|
|
2346
2362
|
multiple: _(A)(s.multiple, "multiple"),
|
|
2347
2363
|
label: s.listLabel ?? s.label ?? _("LABEL SHOULD BE SET")
|
|
2348
2364
|
}, {
|
|
2349
|
-
default: b(() => [(f(!0), r(e, null, m(
|
|
2365
|
+
default: b(() => [(f(!0), r(e, null, m(Y.value, (i, o) => (f(), t(Dt, {
|
|
2350
2366
|
key: o,
|
|
2351
2367
|
type: s.multiple ? "checkbox" : "radio",
|
|
2352
2368
|
showDivider: i.showDivider,
|
|
2353
2369
|
icon: i.icon,
|
|
2354
2370
|
isGroupTitle: i.isGroupTitle,
|
|
2355
|
-
groupTitle:
|
|
2371
|
+
groupTitle: je(i),
|
|
2356
2372
|
name: T.value,
|
|
2357
|
-
checked:
|
|
2373
|
+
checked: Me(i.value),
|
|
2358
2374
|
disabled: i.disabled,
|
|
2359
2375
|
value: i.value,
|
|
2360
|
-
onChange: (e) =>
|
|
2376
|
+
onChange: (e) => He(i.value)
|
|
2361
2377
|
}, {
|
|
2362
|
-
default: b(() => [i.isGroupTitle ? n("", !0) : (f(), r(e, { key: 0 }, [a(g(
|
|
2378
|
+
default: b(() => [i.isGroupTitle ? n("", !0) : (f(), r(e, { key: 0 }, [a(g(je(i)), 1)], 64))]),
|
|
2363
2379
|
_: 2
|
|
2364
2380
|
}, 1032, [
|
|
2365
2381
|
"type",
|
|
@@ -2375,14 +2391,14 @@ var x = () => {
|
|
|
2375
2391
|
]))), 128))]),
|
|
2376
2392
|
_: 1
|
|
2377
2393
|
}, 8, ["multiple", "label"])], 64)),
|
|
2378
|
-
i("div", null, [o(
|
|
2394
|
+
i("div", null, [o(Ve, {
|
|
2379
2395
|
variant: "ghost",
|
|
2380
2396
|
width: "full",
|
|
2381
2397
|
icon: "cross",
|
|
2382
2398
|
size: "small",
|
|
2383
2399
|
name: T.value,
|
|
2384
2400
|
form: T.value,
|
|
2385
|
-
onClick: (e) =>
|
|
2401
|
+
onClick: (e) => Re(void 0, !0)
|
|
2386
2402
|
}, {
|
|
2387
2403
|
default: b(() => [a(g(s.mobileCloseButtonText ?? _("Close")), 1)]),
|
|
2388
2404
|
_: 1
|
|
@@ -2393,8 +2409,8 @@ var x = () => {
|
|
|
2393
2409
|
])])
|
|
2394
2410
|
]),
|
|
2395
2411
|
_: 1
|
|
2396
|
-
}, 8, ["width"])], 64)) : n("", !0)], 40,
|
|
2397
|
-
(s.showClearSelection ?? !0) &&
|
|
2412
|
+
}, 8, ["width"])], 64)) : n("", !0)], 40, Gt),
|
|
2413
|
+
(s.showClearSelection ?? !0) && J.value?.length ? (f(), t(Ve, {
|
|
2398
2414
|
key: 0,
|
|
2399
2415
|
icon: "cross",
|
|
2400
2416
|
variant: "ghost",
|
|
@@ -2403,9 +2419,9 @@ var x = () => {
|
|
|
2403
2419
|
name: T.value,
|
|
2404
2420
|
form: T.value,
|
|
2405
2421
|
disabled: _(A)(s.disabled, "disabled"),
|
|
2406
|
-
onClick: (e) =>
|
|
2422
|
+
onClick: (e) => qe(e)
|
|
2407
2423
|
}, {
|
|
2408
|
-
default: b(() => [a(g(s.clearSelectionText), 1), o(
|
|
2424
|
+
default: b(() => [a(g(s.clearSelectionText), 1), o(Rt, { placement: "top" }, {
|
|
2409
2425
|
default: b(() => [a(g(s.clearSelectionText), 1)]),
|
|
2410
2426
|
_: 1
|
|
2411
2427
|
})]),
|
|
@@ -2420,7 +2436,7 @@ var x = () => {
|
|
|
2420
2436
|
class: "db-custom-select-placeholder",
|
|
2421
2437
|
"aria-hidden": "true",
|
|
2422
2438
|
id: B.value
|
|
2423
|
-
}, g(s.placeholder ?? s.label), 9,
|
|
2439
|
+
}, g(s.placeholder ?? s.label), 9, en),
|
|
2424
2440
|
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
2425
2441
|
key: 1,
|
|
2426
2442
|
size: "small",
|
|
@@ -2430,7 +2446,7 @@ var x = () => {
|
|
|
2430
2446
|
default: b(() => [a(g(s.message), 1)]),
|
|
2431
2447
|
_: 1
|
|
2432
2448
|
}, 8, ["icon", "id"])) : n("", !0),
|
|
2433
|
-
|
|
2449
|
+
Te() ? (f(), t($, {
|
|
2434
2450
|
key: 2,
|
|
2435
2451
|
size: "small",
|
|
2436
2452
|
semantic: "successful",
|
|
@@ -2447,14 +2463,14 @@ var x = () => {
|
|
|
2447
2463
|
default: b(() => [a(g(N.value), 1)]),
|
|
2448
2464
|
_: 1
|
|
2449
2465
|
}, 8, ["id"]),
|
|
2450
|
-
i("span",
|
|
2451
|
-
], 10,
|
|
2466
|
+
i("span", tn, g(re.value), 1)
|
|
2467
|
+
], 10, Vt));
|
|
2452
2468
|
}
|
|
2453
|
-
}),
|
|
2469
|
+
}), rn = [
|
|
2454
2470
|
"fixed",
|
|
2455
2471
|
"auto",
|
|
2456
2472
|
"full"
|
|
2457
|
-
],
|
|
2473
|
+
], an = ["id"], on = /* @__PURE__ */ s({
|
|
2458
2474
|
name: "DBCustomSelectFormField",
|
|
2459
2475
|
__name: "custom-select-form-field",
|
|
2460
2476
|
props: {
|
|
@@ -2472,19 +2488,19 @@ var x = () => {
|
|
|
2472
2488
|
ref: n,
|
|
2473
2489
|
id: e.id ?? e.propOverrides?.id,
|
|
2474
2490
|
class: c(_(C)("db-custom-select-form-field", t.class))
|
|
2475
|
-
}, [h(i.$slots, "default")], 10,
|
|
2491
|
+
}, [h(i.$slots, "default")], 10, an));
|
|
2476
2492
|
}
|
|
2477
|
-
}),
|
|
2493
|
+
}), sn = ["checkbox", "radio"], cn = [
|
|
2478
2494
|
"amount",
|
|
2479
2495
|
"text",
|
|
2480
2496
|
"tag"
|
|
2481
|
-
],
|
|
2497
|
+
], ln = [
|
|
2482
2498
|
"id",
|
|
2483
2499
|
"data-margin",
|
|
2484
2500
|
"data-variant",
|
|
2485
2501
|
"data-emphasis",
|
|
2486
2502
|
"data-width"
|
|
2487
|
-
],
|
|
2503
|
+
], un = /* @__PURE__ */ s({
|
|
2488
2504
|
name: "DBDivider",
|
|
2489
2505
|
__name: "divider",
|
|
2490
2506
|
props: {
|
|
@@ -2510,26 +2526,31 @@ var x = () => {
|
|
|
2510
2526
|
"data-emphasis": e.emphasis,
|
|
2511
2527
|
"data-width": e.width,
|
|
2512
2528
|
class: c(_(C)("db-divider", t.class))
|
|
2513
|
-
}, null, 10,
|
|
2529
|
+
}, null, 10, ln));
|
|
2514
2530
|
}
|
|
2515
|
-
}),
|
|
2531
|
+
}), dn = ["none", "_"], fn = ["horizontal", "vertical"], pn = [
|
|
2516
2532
|
"id",
|
|
2517
2533
|
"data-position",
|
|
2518
2534
|
"data-backdrop",
|
|
2519
2535
|
"data-direction",
|
|
2520
2536
|
"data-variant"
|
|
2521
|
-
],
|
|
2522
|
-
"data-
|
|
2523
|
-
"data-
|
|
2537
|
+
], mn = [
|
|
2538
|
+
"data-container-size",
|
|
2539
|
+
"data-show-spacing",
|
|
2524
2540
|
"data-direction",
|
|
2525
2541
|
"data-rounded"
|
|
2526
|
-
],
|
|
2542
|
+
], hn = { class: "db-drawer-content" }, gn = /* @__PURE__ */ s({
|
|
2527
2543
|
name: "DBDrawer",
|
|
2528
2544
|
__name: "drawer",
|
|
2529
2545
|
props: {
|
|
2530
2546
|
backdrop: { default: void 0 },
|
|
2531
2547
|
direction: { default: void 0 },
|
|
2532
|
-
|
|
2548
|
+
header: {},
|
|
2549
|
+
footer: {},
|
|
2550
|
+
showSpacing: {
|
|
2551
|
+
type: [Boolean, String],
|
|
2552
|
+
default: void 0
|
|
2553
|
+
},
|
|
2533
2554
|
open: {
|
|
2534
2555
|
type: [Boolean, String],
|
|
2535
2556
|
default: void 0
|
|
@@ -2540,6 +2561,7 @@ var x = () => {
|
|
|
2540
2561
|
},
|
|
2541
2562
|
variant: { default: void 0 },
|
|
2542
2563
|
position: { default: void 0 },
|
|
2564
|
+
containerSize: { default: void 0 },
|
|
2543
2565
|
children: { default: void 0 },
|
|
2544
2566
|
className: { default: void 0 },
|
|
2545
2567
|
class: {},
|
|
@@ -2550,28 +2572,29 @@ var x = () => {
|
|
|
2550
2572
|
type: Function,
|
|
2551
2573
|
default: void 0
|
|
2552
2574
|
},
|
|
2553
|
-
close: {}
|
|
2554
|
-
closeButtonId: { default: void 0 },
|
|
2555
|
-
closeButtonText: { default: void 0 },
|
|
2556
|
-
width: { default: void 0 },
|
|
2557
|
-
spacing: { default: void 0 }
|
|
2575
|
+
close: {}
|
|
2558
2576
|
},
|
|
2559
2577
|
setup(e) {
|
|
2560
|
-
let t = e, n = p(!1),
|
|
2578
|
+
let t = e, n = p(!1), a = p(!1), o = p(void 0), s = p(null), l = p(null);
|
|
2561
2579
|
u(() => {
|
|
2562
|
-
|
|
2580
|
+
b(), n.value = !0;
|
|
2581
|
+
}), d(() => {
|
|
2582
|
+
if (o.value !== void 0 && clearTimeout(o.value), s.value && t.position === "absolute") {
|
|
2583
|
+
let e = s.value.parentElement;
|
|
2584
|
+
e && (e.style.position = "");
|
|
2585
|
+
}
|
|
2563
2586
|
}), y(() => [t.open], () => {
|
|
2564
|
-
|
|
2587
|
+
b();
|
|
2565
2588
|
}, {
|
|
2566
2589
|
immediate: !0,
|
|
2567
2590
|
flush: "post"
|
|
2568
2591
|
}), y(() => [
|
|
2569
|
-
|
|
2592
|
+
s.value,
|
|
2570
2593
|
n.value,
|
|
2571
2594
|
t.position
|
|
2572
2595
|
], () => {
|
|
2573
|
-
if (
|
|
2574
|
-
let e =
|
|
2596
|
+
if (s.value && n.value && t.position === "absolute") {
|
|
2597
|
+
let e = s.value.parentElement;
|
|
2575
2598
|
e && (e.style.position = "relative");
|
|
2576
2599
|
}
|
|
2577
2600
|
}, {
|
|
@@ -2581,68 +2604,162 @@ var x = () => {
|
|
|
2581
2604
|
function m() {
|
|
2582
2605
|
return t.position === "absolute" || t.backdrop === "none" || t.variant === "inside";
|
|
2583
2606
|
}
|
|
2584
|
-
function
|
|
2585
|
-
|
|
2607
|
+
function g(e) {
|
|
2608
|
+
a.value = e?.target?.nodeName === "DIALOG";
|
|
2586
2609
|
}
|
|
2587
|
-
function
|
|
2588
|
-
e
|
|
2610
|
+
function v(e, n) {
|
|
2611
|
+
if (e) if (B(e)) e.key === "Escape" && (e.preventDefault(), t.onClose && t.onClose(e));
|
|
2612
|
+
else {
|
|
2613
|
+
n && (e.stopPropagation(), t.onClose && t.onClose(e));
|
|
2614
|
+
let r = e.target?.nodeName === "DIALOG" && e.type === "click" && t.backdrop !== "none" && a.value, i = !!e.target?.closest?.("[data-action=\"close\"]");
|
|
2615
|
+
(r || i) && t.onClose && t.onClose(e), a.value = !1;
|
|
2616
|
+
}
|
|
2589
2617
|
}
|
|
2590
|
-
function
|
|
2591
|
-
if (
|
|
2618
|
+
function b() {
|
|
2619
|
+
if (s.value) {
|
|
2592
2620
|
let e = A(t.open, "open");
|
|
2593
|
-
e &&
|
|
2594
|
-
|
|
2595
|
-
}, 1)), !e &&
|
|
2596
|
-
l.value
|
|
2597
|
-
|
|
2621
|
+
if (e && o.value !== void 0 && (clearTimeout(o.value), o.value = void 0, l.value && (l.value.dataset.transition = "open")), e && !s.value.open && (l.value && l.value.removeAttribute("data-transition"), m() ? s.value.show() : s.value.showModal(), O(() => {
|
|
2622
|
+
l.value && (l.value.dataset.transition = "open");
|
|
2623
|
+
}, 1)), !e && s.value.open) {
|
|
2624
|
+
l.value && (l.value.dataset.transition = "close"), o.value !== void 0 && clearTimeout(o.value);
|
|
2625
|
+
let e = 0;
|
|
2626
|
+
if (l.value) {
|
|
2627
|
+
let t = getComputedStyle(l.value).getPropertyValue("--db-drawer-close-delay").trim(), n = parseFloat(t);
|
|
2628
|
+
n > 0 && (e = n * 1e3 + 1);
|
|
2629
|
+
}
|
|
2630
|
+
o.value = window.setTimeout(() => {
|
|
2631
|
+
s.value?.close(), o.value = void 0;
|
|
2632
|
+
}, e);
|
|
2633
|
+
}
|
|
2598
2634
|
}
|
|
2599
2635
|
}
|
|
2600
|
-
return (n,
|
|
2636
|
+
return (n, a) => (f(), r("dialog", {
|
|
2601
2637
|
class: "db-drawer",
|
|
2602
2638
|
id: e.id ?? e.propOverrides?.id,
|
|
2603
2639
|
ref_key: "_ref",
|
|
2604
|
-
ref:
|
|
2605
|
-
onClick:
|
|
2606
|
-
onMousedown:
|
|
2607
|
-
onKeydown:
|
|
2640
|
+
ref: s,
|
|
2641
|
+
onClick: a[0] ||= async (e) => v(e),
|
|
2642
|
+
onMousedown: a[1] ||= async (e) => g(e),
|
|
2643
|
+
onKeydown: a[2] ||= async (e) => v(e),
|
|
2608
2644
|
"data-position": e.position,
|
|
2609
2645
|
"data-backdrop": e.backdrop,
|
|
2610
2646
|
"data-direction": e.direction,
|
|
2611
2647
|
"data-variant": e.variant
|
|
2612
2648
|
}, [i("article", {
|
|
2613
2649
|
ref_key: "dialogContainerRef",
|
|
2614
|
-
ref:
|
|
2650
|
+
ref: l,
|
|
2615
2651
|
class: c(_(C)("db-drawer-container", t.class)),
|
|
2616
|
-
"data-
|
|
2617
|
-
"data-
|
|
2652
|
+
"data-container-size": e.containerSize,
|
|
2653
|
+
"data-show-spacing": _(k)(e.showSpacing ?? !0, "showSpacing"),
|
|
2618
2654
|
"data-direction": e.direction,
|
|
2619
2655
|
"data-rounded": _(k)(e.rounded, "rounded")
|
|
2620
|
-
}, [
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2656
|
+
}, [
|
|
2657
|
+
h(n.$slots, "header"),
|
|
2658
|
+
i("div", hn, [h(n.$slots, "default")]),
|
|
2659
|
+
h(n.$slots, "footer")
|
|
2660
|
+
], 10, mn)], 40, pn));
|
|
2661
|
+
}
|
|
2662
|
+
}), _n = ["id"], vn = /* @__PURE__ */ s({
|
|
2663
|
+
name: "DBDrawerFooter",
|
|
2664
|
+
__name: "drawer-footer",
|
|
2665
|
+
props: {
|
|
2666
|
+
children: { default: void 0 },
|
|
2667
|
+
className: { default: void 0 },
|
|
2668
|
+
class: {},
|
|
2669
|
+
id: { default: void 0 },
|
|
2670
|
+
autofocus: { type: [Boolean, String] },
|
|
2671
|
+
propOverrides: { default: void 0 }
|
|
2672
|
+
},
|
|
2673
|
+
setup(e) {
|
|
2674
|
+
let t = e, n = p(null);
|
|
2675
|
+
return (i, a) => (f(), r("footer", {
|
|
2676
|
+
ref_key: "_ref",
|
|
2677
|
+
ref: n,
|
|
2678
|
+
id: e.id ?? e.propOverrides?.id,
|
|
2679
|
+
class: c(_(C)("db-drawer-footer", t.class))
|
|
2680
|
+
}, [h(i.$slots, "default")], 10, _n));
|
|
2681
|
+
}
|
|
2682
|
+
}), yn = ["id"], bn = ["id"], xn = { key: 0 }, Sn = /* @__PURE__ */ s({
|
|
2683
|
+
name: "DBDrawerHeader",
|
|
2684
|
+
__name: "drawer-header",
|
|
2685
|
+
props: {
|
|
2686
|
+
closeButtonId: { default: void 0 },
|
|
2687
|
+
closeButtonText: { default: xe },
|
|
2688
|
+
text: { default: void 0 },
|
|
2689
|
+
children: { default: void 0 },
|
|
2690
|
+
className: { default: void 0 },
|
|
2691
|
+
class: {},
|
|
2692
|
+
id: { default: void 0 },
|
|
2693
|
+
autofocus: { type: [Boolean, String] },
|
|
2694
|
+
propOverrides: { default: void 0 },
|
|
2695
|
+
startSlot: {},
|
|
2696
|
+
endSlot: {}
|
|
2697
|
+
},
|
|
2698
|
+
setup(e) {
|
|
2699
|
+
let t = v(), n = e, s = p("db-drawer-header-heading-" + t), l = p(null);
|
|
2700
|
+
u(() => {
|
|
2701
|
+
m();
|
|
2702
|
+
}), d(() => {
|
|
2703
|
+
y();
|
|
2704
|
+
});
|
|
2705
|
+
function m() {
|
|
2706
|
+
if (l.value) {
|
|
2707
|
+
let e = l.value.closest("dialog");
|
|
2708
|
+
e && e.setAttribute("aria-labelledby", s.value);
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
function y() {
|
|
2712
|
+
if (l.value) {
|
|
2713
|
+
let e = l.value.closest("dialog");
|
|
2714
|
+
e && e.getAttribute("aria-labelledby") === s.value && e.removeAttribute("aria-labelledby");
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
return (t, u) => (f(), r("div", {
|
|
2718
|
+
ref_key: "_ref",
|
|
2719
|
+
ref: l,
|
|
2720
|
+
id: e.id ?? e.propOverrides?.id,
|
|
2721
|
+
class: c(_(C)("db-drawer-header", n.class))
|
|
2722
|
+
}, [
|
|
2723
|
+
i("header", {
|
|
2724
|
+
class: "db-drawer-header-container",
|
|
2725
|
+
id: s.value
|
|
2726
|
+
}, [h(t.$slots, "start-slot"), e.text ? (f(), r("h2", xn, g(e.text), 1)) : h(t.$slots, "default", { key: 1 })], 8, bn),
|
|
2727
|
+
h(t.$slots, "end-slot"),
|
|
2728
|
+
o(Ve, {
|
|
2729
|
+
"data-action": "close",
|
|
2730
|
+
icon: "cross",
|
|
2731
|
+
variant: "ghost",
|
|
2732
|
+
type: "button",
|
|
2733
|
+
id: e.closeButtonId,
|
|
2734
|
+
noText: !0
|
|
2735
|
+
}, {
|
|
2736
|
+
default: b(() => [a(g(e.closeButtonText), 1), o(Rt, null, {
|
|
2737
|
+
default: b(() => [a(g(e.closeButtonText), 1)]),
|
|
2738
|
+
_: 1
|
|
2739
|
+
})]),
|
|
2740
|
+
_: 1
|
|
2741
|
+
}, 8, ["id"])
|
|
2742
|
+
], 10, yn));
|
|
2631
2743
|
}
|
|
2632
|
-
}),
|
|
2744
|
+
}), Cn = [
|
|
2633
2745
|
"none",
|
|
2634
2746
|
"strong",
|
|
2635
2747
|
"weak",
|
|
2636
2748
|
"invisible"
|
|
2637
|
-
],
|
|
2638
|
-
"left",
|
|
2639
|
-
"right",
|
|
2749
|
+
], wn = [
|
|
2750
|
+
"to-left",
|
|
2751
|
+
"to-right",
|
|
2640
2752
|
"up",
|
|
2641
2753
|
"down"
|
|
2642
|
-
],
|
|
2754
|
+
], Tn = ["modal", "inside"], En = ["fixed", "absolute"], Dn = [
|
|
2755
|
+
"small",
|
|
2756
|
+
"medium",
|
|
2757
|
+
"large",
|
|
2758
|
+
"full"
|
|
2759
|
+
], On = (e) => {
|
|
2643
2760
|
let { target: t } = e;
|
|
2644
2761
|
return !!(!t?.classList?.contains("db-navigation-item-expand-button") && t?.parentElement?.classList.contains("db-navigation-item"));
|
|
2645
|
-
},
|
|
2762
|
+
}, kn = class {
|
|
2646
2763
|
element;
|
|
2647
2764
|
subNavigation;
|
|
2648
2765
|
parentSubNavigation = null;
|
|
@@ -2659,7 +2776,7 @@ var x = () => {
|
|
|
2659
2776
|
}
|
|
2660
2777
|
enableFollow() {
|
|
2661
2778
|
if (!this.initialized || this.triangleData || !this.element || !this.subNavigation) return;
|
|
2662
|
-
let e =
|
|
2779
|
+
let e = ht(this.subNavigation), t = this.element.getBoundingClientRect(), n = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;
|
|
2663
2780
|
this.triangleData = {
|
|
2664
2781
|
itemRect: t,
|
|
2665
2782
|
parentElementWidth: n,
|
|
@@ -2710,11 +2827,11 @@ var x = () => {
|
|
|
2710
2827
|
let t = this.hasMouseEnteredSubNavigation(), n = this.getTriangleCoordinates(t ? "fill-gap" : "safe-triangle");
|
|
2711
2828
|
n && (this.element.style.setProperty("--db-navigation-item-clip-path", `polygon(${n.lb}, ${n.lt}, ${n.rt}, ${n.rb})`), t && (this.triangleData = void 0));
|
|
2712
2829
|
}
|
|
2713
|
-
},
|
|
2830
|
+
}, An = [
|
|
2714
2831
|
"id",
|
|
2715
2832
|
"data-width",
|
|
2716
2833
|
"data-on-forcing-mobile"
|
|
2717
|
-
],
|
|
2834
|
+
], jn = { class: "db-header-meta-navigation" }, Mn = { class: "db-header-navigation-bar" }, Nn = { class: "db-header-brand-container" }, Pn = { class: "db-header-navigation-container" }, Fn = { class: "db-header-navigation" }, In = { class: "db-header-primary-action" }, Ln = { class: "db-header-action-container" }, Rn = { class: "db-header-burger-menu-container" }, zn = { class: "db-header-secondary-action" }, Bn = { class: "db-header-drawer-navigation" }, Vn = { class: "db-header-meta-navigation" }, Hn = { class: "db-header-secondary-action" }, Un = /* @__PURE__ */ s({
|
|
2718
2835
|
name: "DBHeader",
|
|
2719
2836
|
__name: "header",
|
|
2720
2837
|
props: {
|
|
@@ -2730,6 +2847,7 @@ var x = () => {
|
|
|
2730
2847
|
type: [Boolean, String],
|
|
2731
2848
|
default: void 0
|
|
2732
2849
|
},
|
|
2850
|
+
drawerHeaderText: { default: void 0 },
|
|
2733
2851
|
burgerMenuLabel: { default: void 0 },
|
|
2734
2852
|
closeButtonId: { default: void 0 },
|
|
2735
2853
|
closeButtonText: { default: void 0 },
|
|
@@ -2765,7 +2883,7 @@ var x = () => {
|
|
|
2765
2883
|
t.onToggle && t.onToggle(n);
|
|
2766
2884
|
}
|
|
2767
2885
|
function m(e) {
|
|
2768
|
-
|
|
2886
|
+
On(e) && d();
|
|
2769
2887
|
}
|
|
2770
2888
|
return (n, u) => (f(), r("header", {
|
|
2771
2889
|
ref_key: "_ref",
|
|
@@ -2775,11 +2893,11 @@ var x = () => {
|
|
|
2775
2893
|
"data-width": e.width,
|
|
2776
2894
|
"data-on-forcing-mobile": e.forceMobile && !s.value
|
|
2777
2895
|
}, [
|
|
2778
|
-
i("div",
|
|
2779
|
-
i("div",
|
|
2780
|
-
i("div",
|
|
2781
|
-
i("div",
|
|
2782
|
-
i("div",
|
|
2896
|
+
i("div", jn, [h(n.$slots, "meta-navigation")]),
|
|
2897
|
+
i("div", Mn, [
|
|
2898
|
+
i("div", Nn, [h(n.$slots, "brand")]),
|
|
2899
|
+
i("div", Pn, [i("div", Fn, [h(n.$slots, "default")]), i("div", In, [h(n.$slots, "primary-action")])]),
|
|
2900
|
+
i("div", Ln, [i("div", Rn, [o(Ve, {
|
|
2783
2901
|
icon: "menu",
|
|
2784
2902
|
variant: "ghost",
|
|
2785
2903
|
noText: !0,
|
|
@@ -2787,36 +2905,40 @@ var x = () => {
|
|
|
2787
2905
|
}, {
|
|
2788
2906
|
default: b(() => [a(g(e.burgerMenuLabel ?? _("Open navigation menu")), 1)]),
|
|
2789
2907
|
_: 1
|
|
2790
|
-
}, 8, ["onClick"])]), i("div",
|
|
2908
|
+
}, 8, ["onClick"])]), i("div", zn, [h(n.$slots, "secondary-action")])])
|
|
2791
2909
|
]),
|
|
2792
2910
|
o(gn, {
|
|
2793
|
-
class: "db-header-drawer",
|
|
2794
|
-
spacing: "small",
|
|
2795
2911
|
rounded: !0,
|
|
2796
|
-
closeButtonId: e.closeButtonId,
|
|
2797
|
-
closeButtonText: e.closeButtonText,
|
|
2798
2912
|
open: _(A)(e.drawerOpen),
|
|
2799
2913
|
onClose: (e) => d()
|
|
2800
2914
|
}, {
|
|
2801
|
-
|
|
2915
|
+
header: b(() => [o(Sn, {
|
|
2916
|
+
closeButtonId: e.closeButtonId,
|
|
2917
|
+
closeButtonText: e.closeButtonText,
|
|
2918
|
+
text: e.drawerHeaderText
|
|
2919
|
+
}, null, 8, [
|
|
2920
|
+
"closeButtonId",
|
|
2921
|
+
"closeButtonText",
|
|
2922
|
+
"text"
|
|
2923
|
+
])]),
|
|
2924
|
+
footer: b(() => [o(vn, null, {
|
|
2925
|
+
default: b(() => [i("div", Hn, [h(n.$slots, "secondary-action")])]),
|
|
2926
|
+
_: 3
|
|
2927
|
+
})]),
|
|
2928
|
+
default: b(() => [i("div", Bn, [i("div", {
|
|
2802
2929
|
class: "db-header-navigation",
|
|
2803
2930
|
onClick: u[0] ||= async (e) => m(e)
|
|
2804
|
-
}, [h(n.$slots, "default")]), i("div",
|
|
2931
|
+
}, [h(n.$slots, "default")]), i("div", Vn, [h(n.$slots, "meta-navigation")])])]),
|
|
2805
2932
|
_: 3
|
|
2806
|
-
}, 8, [
|
|
2807
|
-
|
|
2808
|
-
"closeButtonText",
|
|
2809
|
-
"open",
|
|
2810
|
-
"onClose"
|
|
2811
|
-
])
|
|
2812
|
-
], 10, Cn));
|
|
2933
|
+
}, 8, ["open", "onClose"])
|
|
2934
|
+
], 10, An));
|
|
2813
2935
|
}
|
|
2814
|
-
}),
|
|
2936
|
+
}), Wn = [
|
|
2815
2937
|
"id",
|
|
2816
2938
|
"data-icon",
|
|
2817
2939
|
"data-icon-weight",
|
|
2818
2940
|
"data-icon-variant"
|
|
2819
|
-
],
|
|
2941
|
+
], Gn = /* @__PURE__ */ s({
|
|
2820
2942
|
name: "DBIcon",
|
|
2821
2943
|
__name: "icon",
|
|
2822
2944
|
props: {
|
|
@@ -2842,16 +2964,16 @@ var x = () => {
|
|
|
2842
2964
|
"data-icon": t.icon,
|
|
2843
2965
|
"data-icon-weight": t.weight,
|
|
2844
2966
|
"data-icon-variant": t.variant
|
|
2845
|
-
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10,
|
|
2967
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, Wn));
|
|
2846
2968
|
}
|
|
2847
|
-
}),
|
|
2969
|
+
}), Kn = [
|
|
2848
2970
|
"16",
|
|
2849
2971
|
"20",
|
|
2850
2972
|
"24",
|
|
2851
2973
|
"32",
|
|
2852
2974
|
"48",
|
|
2853
2975
|
"64"
|
|
2854
|
-
],
|
|
2976
|
+
], qn = [
|
|
2855
2977
|
"color",
|
|
2856
2978
|
"date",
|
|
2857
2979
|
"datetime-local",
|
|
@@ -2868,7 +2990,7 @@ var x = () => {
|
|
|
2868
2990
|
"time",
|
|
2869
2991
|
"url",
|
|
2870
2992
|
"week"
|
|
2871
|
-
],
|
|
2993
|
+
], Jn = [
|
|
2872
2994
|
"id",
|
|
2873
2995
|
"href",
|
|
2874
2996
|
"target",
|
|
@@ -2883,7 +3005,7 @@ var x = () => {
|
|
|
2883
3005
|
"data-variant",
|
|
2884
3006
|
"data-content",
|
|
2885
3007
|
"data-wrap"
|
|
2886
|
-
],
|
|
3008
|
+
], Yn = /* @__PURE__ */ s({
|
|
2887
3009
|
name: "DBLink",
|
|
2888
3010
|
__name: "link",
|
|
2889
3011
|
props: {
|
|
@@ -2946,13 +3068,13 @@ var x = () => {
|
|
|
2946
3068
|
"data-content": t.content || "internal",
|
|
2947
3069
|
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
2948
3070
|
onClick: u[0] ||= async (e) => s(e)
|
|
2949
|
-
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(l.$slots, "default")], 10,
|
|
3071
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : n("", !0), h(l.$slots, "default")], 10, Jn));
|
|
2950
3072
|
}
|
|
2951
|
-
}),
|
|
3073
|
+
}), Xn = [
|
|
2952
3074
|
"adaptive",
|
|
2953
3075
|
"brand",
|
|
2954
3076
|
"inline"
|
|
2955
|
-
],
|
|
3077
|
+
], Zn = ["medium", "small"], Qn = ["external", "internal"], $n = ["id"], er = /* @__PURE__ */ s({
|
|
2956
3078
|
name: "DBNavigation",
|
|
2957
3079
|
__name: "navigation",
|
|
2958
3080
|
props: {
|
|
@@ -2970,9 +3092,9 @@ var x = () => {
|
|
|
2970
3092
|
ref: n,
|
|
2971
3093
|
id: e.id ?? e.propOverrides?.id,
|
|
2972
3094
|
class: c(_(C)("db-navigation", t.class))
|
|
2973
|
-
}, [i("menu", null, [h(a.$slots, "default")])], 10,
|
|
3095
|
+
}, [i("menu", null, [h(a.$slots, "default")])], 10, $n));
|
|
2974
3096
|
}
|
|
2975
|
-
}),
|
|
3097
|
+
}), tr = [
|
|
2976
3098
|
"id",
|
|
2977
3099
|
"data-width",
|
|
2978
3100
|
"data-icon",
|
|
@@ -2980,20 +3102,20 @@ var x = () => {
|
|
|
2980
3102
|
"data-active",
|
|
2981
3103
|
"data-wrap",
|
|
2982
3104
|
"aria-disabled"
|
|
2983
|
-
],
|
|
3105
|
+
], nr = [
|
|
2984
3106
|
"id",
|
|
2985
3107
|
"aria-haspopup",
|
|
2986
3108
|
"aria-expanded",
|
|
2987
3109
|
"aria-controls",
|
|
2988
3110
|
"disabled"
|
|
2989
|
-
],
|
|
3111
|
+
], rr = [
|
|
2990
3112
|
"id",
|
|
2991
3113
|
"aria-labelledby",
|
|
2992
3114
|
"data-force-close"
|
|
2993
|
-
],
|
|
3115
|
+
], ir = {
|
|
2994
3116
|
key: 0,
|
|
2995
3117
|
class: "db-mobile-navigation-back"
|
|
2996
|
-
},
|
|
3118
|
+
}, ar = /* @__PURE__ */ s({
|
|
2997
3119
|
name: "DBNavigationItem",
|
|
2998
3120
|
__name: "navigation-item",
|
|
2999
3121
|
props: {
|
|
@@ -3053,7 +3175,7 @@ var x = () => {
|
|
|
3053
3175
|
}), y(() => [d.value, j.value], () => {
|
|
3054
3176
|
if (d.value && j.value) {
|
|
3055
3177
|
let e = j.value.querySelector("menu");
|
|
3056
|
-
e && (e.children?.length > 0 ? (m.value = !0, T.value ||= new
|
|
3178
|
+
e && (e.children?.length > 0 ? (m.value = !0, T.value ||= new kn(j.value, e)) : x.value = !1);
|
|
3057
3179
|
}
|
|
3058
3180
|
}, {
|
|
3059
3181
|
immediate: !0,
|
|
@@ -3081,7 +3203,7 @@ var x = () => {
|
|
|
3081
3203
|
"data-width": t.width,
|
|
3082
3204
|
"data-icon": t.icon,
|
|
3083
3205
|
"data-show-icon": _(k)(t.showIcon, "showIcon"),
|
|
3084
|
-
"data-active": t.active,
|
|
3206
|
+
"data-active": _(A)(t.active, "active"),
|
|
3085
3207
|
"data-wrap": _(k)(t.wrap, "wrap"),
|
|
3086
3208
|
"aria-disabled": _(k)(t.disabled, "disabled")
|
|
3087
3209
|
}, [!_(A)(t.hideSubNavigation, "hideSubNavigation") && x.value ? (f(), r(e, { key: 0 }, [i("button", {
|
|
@@ -3092,13 +3214,13 @@ var x = () => {
|
|
|
3092
3214
|
"aria-controls": E.value,
|
|
3093
3215
|
disabled: _(A)(t.disabled, "disabled"),
|
|
3094
3216
|
onClick: u[0] ||= async (e) => N(e)
|
|
3095
|
-
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 8,
|
|
3217
|
+
}, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 8, nr), i("menu", {
|
|
3096
3218
|
class: "db-sub-navigation",
|
|
3097
3219
|
id: E.value,
|
|
3098
3220
|
"aria-labelledby": D.value,
|
|
3099
3221
|
"data-force-close": w.value,
|
|
3100
3222
|
onClick: u[1] ||= async (e) => M(e)
|
|
3101
|
-
}, [m.value ? (f(), r("div",
|
|
3223
|
+
}, [m.value ? (f(), r("div", ir, [o(Ve, {
|
|
3102
3224
|
icon: "arrow_left",
|
|
3103
3225
|
variant: "ghost",
|
|
3104
3226
|
id: t.backButtonId,
|
|
@@ -3106,9 +3228,9 @@ var x = () => {
|
|
|
3106
3228
|
}, {
|
|
3107
3229
|
default: b(() => [a(g(t.backButtonText ?? _("Back")), 1)]),
|
|
3108
3230
|
_: 1
|
|
3109
|
-
}, 8, ["id", "onClick"])])) : n("", !0), h(s.$slots, "sub-navigation")], 8,
|
|
3231
|
+
}, 8, ["id", "onClick"])])) : n("", !0), h(s.$slots, "sub-navigation")], 8, rr)], 64)) : (f(), r(e, { key: 1 }, [t.text ? (f(), r(e, { key: 0 }, [a(g(t.text), 1)], 64)) : h(s.$slots, "default", { key: 1 })], 64))], 42, tr));
|
|
3110
3232
|
}
|
|
3111
|
-
}),
|
|
3233
|
+
}), or = [
|
|
3112
3234
|
"id",
|
|
3113
3235
|
"role",
|
|
3114
3236
|
"aria-live",
|
|
@@ -3117,10 +3239,10 @@ var x = () => {
|
|
|
3117
3239
|
"data-icon",
|
|
3118
3240
|
"data-show-icon",
|
|
3119
3241
|
"data-link-variant"
|
|
3120
|
-
],
|
|
3242
|
+
], sr = {
|
|
3121
3243
|
key: 0,
|
|
3122
3244
|
"data-area": "head"
|
|
3123
|
-
},
|
|
3245
|
+
}, cr = { "data-area": "content" }, lr = ["dateTime"], ur = /* @__PURE__ */ s({
|
|
3124
3246
|
name: "DBNotification",
|
|
3125
3247
|
__name: "notification",
|
|
3126
3248
|
props: {
|
|
@@ -3189,15 +3311,15 @@ var x = () => {
|
|
|
3189
3311
|
"data-link-variant": o.linkVariant
|
|
3190
3312
|
}, [
|
|
3191
3313
|
h(d.$slots, "image"),
|
|
3192
|
-
_(I)(o.headline, o.showHeadline) ? (f(), r("header",
|
|
3193
|
-
i("div",
|
|
3314
|
+
_(I)(o.headline, o.showHeadline) ? (f(), r("header", sr, g(o.headline), 1)) : n("", !0),
|
|
3315
|
+
i("div", cr, [o.text ? (f(), r(e, { key: 0 }, [a(g(o.text), 1)], 64)) : n("", !0), h(d.$slots, "default")]),
|
|
3194
3316
|
_(I)(o.timestamp, o.showTimestamp) ? (f(), r("time", {
|
|
3195
3317
|
key: 1,
|
|
3196
3318
|
"data-area": "timestamp",
|
|
3197
3319
|
dateTime: o.timestampDatetime
|
|
3198
|
-
}, g(o.timestamp), 9,
|
|
3320
|
+
}, g(o.timestamp), 9, lr)) : n("", !0),
|
|
3199
3321
|
h(d.$slots, "link"),
|
|
3200
|
-
_(A)(o.closeable, "closeable") ? (f(), t(
|
|
3322
|
+
_(A)(o.closeable, "closeable") ? (f(), t(Ve, {
|
|
3201
3323
|
key: 2,
|
|
3202
3324
|
icon: "cross",
|
|
3203
3325
|
variant: "ghost",
|
|
@@ -3209,22 +3331,22 @@ var x = () => {
|
|
|
3209
3331
|
default: b(() => [a(g(o.closeButtonText ?? _("Close")), 1)]),
|
|
3210
3332
|
_: 1
|
|
3211
3333
|
}, 8, ["id", "onClick"])) : n("", !0)
|
|
3212
|
-
], 10,
|
|
3334
|
+
], 10, or));
|
|
3213
3335
|
}
|
|
3214
|
-
}),
|
|
3336
|
+
}), dr = [
|
|
3215
3337
|
"docked",
|
|
3216
3338
|
"standalone",
|
|
3217
3339
|
"overlay"
|
|
3218
|
-
],
|
|
3340
|
+
], fr = ["block", "inline"], pr = [
|
|
3219
3341
|
"assertive",
|
|
3220
3342
|
"polite",
|
|
3221
3343
|
"off"
|
|
3222
|
-
],
|
|
3344
|
+
], mr = [
|
|
3223
3345
|
"id",
|
|
3224
3346
|
"data-variant",
|
|
3225
3347
|
"data-fade-in",
|
|
3226
3348
|
"data-fonts-loaded"
|
|
3227
|
-
],
|
|
3349
|
+
], hr = /* @__PURE__ */ s({
|
|
3228
3350
|
name: "DBPage",
|
|
3229
3351
|
__name: "page",
|
|
3230
3352
|
props: {
|
|
@@ -3264,9 +3386,9 @@ var x = () => {
|
|
|
3264
3386
|
h(o.$slots, "header"),
|
|
3265
3387
|
i("main", { class: c(_(C)("db-main", e.mainClass)) }, [h(o.$slots, "default")], 2),
|
|
3266
3388
|
h(o.$slots, "footer")
|
|
3267
|
-
], 10,
|
|
3389
|
+
], 10, mr));
|
|
3268
3390
|
}
|
|
3269
|
-
}),
|
|
3391
|
+
}), gr = ["auto", "fixed"], _r = ["hidden", "auto"], vr = ["id"], yr = [
|
|
3270
3392
|
"data-spacing",
|
|
3271
3393
|
"data-gap",
|
|
3272
3394
|
"data-animation",
|
|
@@ -3274,7 +3396,7 @@ var x = () => {
|
|
|
3274
3396
|
"data-delay",
|
|
3275
3397
|
"data-width",
|
|
3276
3398
|
"data-placement"
|
|
3277
|
-
],
|
|
3399
|
+
], br = /* @__PURE__ */ s({
|
|
3278
3400
|
name: "DBPopover",
|
|
3279
3401
|
__name: "popover",
|
|
3280
3402
|
props: {
|
|
@@ -3307,7 +3429,7 @@ var x = () => {
|
|
|
3307
3429
|
u(() => {
|
|
3308
3430
|
n.value = !0;
|
|
3309
3431
|
}), d(() => {
|
|
3310
|
-
o.value &&= (new
|
|
3432
|
+
o.value &&= (new ct().removeCallback(o.value), void 0), l.value &&= (new yt().unobserve(l.value), void 0), s.value &&= (new vt().unobserve(s.value), void 0);
|
|
3311
3433
|
}), y(() => [m.value, n.value], () => {
|
|
3312
3434
|
if (m.value && n.value) {
|
|
3313
3435
|
n.value = !1;
|
|
@@ -3337,22 +3459,22 @@ var x = () => {
|
|
|
3337
3459
|
if (!m.value) return;
|
|
3338
3460
|
let e = m.value.querySelector("article");
|
|
3339
3461
|
e && O(() => {
|
|
3340
|
-
|
|
3462
|
+
mt(e, m.value);
|
|
3341
3463
|
}, 1);
|
|
3342
3464
|
}
|
|
3343
3465
|
function b(e) {
|
|
3344
3466
|
e?.target?.contains && e?.target?.contains(m.value) && v();
|
|
3345
3467
|
}
|
|
3346
3468
|
function x() {
|
|
3347
|
-
a.value = !0, o.value &&= (new
|
|
3469
|
+
a.value = !0, o.value &&= (new ct().removeCallback(o.value), void 0), l.value &&= (new yt().unobserve(l.value), void 0), s.value &&= (new vt().unobserve(s.value), void 0), o.value = new ct().addCallback((e) => b(e)), v(), l.value = new yt().observe(document.documentElement, () => v());
|
|
3348
3470
|
let e = w();
|
|
3349
|
-
e && (s.value = new
|
|
3471
|
+
e && (s.value = new vt().observe(e, (e) => {
|
|
3350
3472
|
e.isIntersecting || g(!1);
|
|
3351
3473
|
}));
|
|
3352
3474
|
}
|
|
3353
3475
|
function S(e) {
|
|
3354
3476
|
let t = e?.target;
|
|
3355
|
-
(!t?.parentNode || t.parentNode.querySelector(":focus") !== t && t.parentNode.querySelector(":focus-within") !== t && t.parentNode.querySelector(":hover") !== t) && (a.value = !1, o.value &&= (new
|
|
3477
|
+
(!t?.parentNode || t.parentNode.querySelector(":focus") !== t && t.parentNode.querySelector(":focus-within") !== t && t.parentNode.querySelector(":hover") !== t) && (a.value = !1, o.value &&= (new ct().removeCallback(o.value), void 0), l.value &&= (new yt().unobserve(l.value), void 0), s.value &&= (new vt().unobserve(s.value), void 0));
|
|
3356
3478
|
}
|
|
3357
3479
|
function w() {
|
|
3358
3480
|
if (m.value) {
|
|
@@ -3378,14 +3500,14 @@ var x = () => {
|
|
|
3378
3500
|
"data-delay": e.delay,
|
|
3379
3501
|
"data-width": e.width,
|
|
3380
3502
|
"data-placement": e.placement
|
|
3381
|
-
}, [h(n.$slots, "default")], 8,
|
|
3503
|
+
}, [h(n.$slots, "default")], 8, yr)], 10, vr));
|
|
3382
3504
|
}
|
|
3383
|
-
}),
|
|
3505
|
+
}), xr = [
|
|
3384
3506
|
"data-size",
|
|
3385
3507
|
"data-hide-label",
|
|
3386
3508
|
"data-hide-asterisk",
|
|
3387
3509
|
"for"
|
|
3388
|
-
],
|
|
3510
|
+
], Sr = [
|
|
3389
3511
|
"aria-invalid",
|
|
3390
3512
|
"data-custom-validity",
|
|
3391
3513
|
"id",
|
|
@@ -3394,7 +3516,7 @@ var x = () => {
|
|
|
3394
3516
|
"disabled",
|
|
3395
3517
|
"value",
|
|
3396
3518
|
"required"
|
|
3397
|
-
],
|
|
3519
|
+
], Cr = /* @__PURE__ */ s({
|
|
3398
3520
|
name: "DBRadio",
|
|
3399
3521
|
__name: "radio",
|
|
3400
3522
|
props: {
|
|
@@ -3479,7 +3601,7 @@ var x = () => {
|
|
|
3479
3601
|
}), y(() => [w.value], () => {
|
|
3480
3602
|
if (w.value) {
|
|
3481
3603
|
let e = S.value;
|
|
3482
|
-
e || (e = new AbortController(), S.value = e),
|
|
3604
|
+
e || (e = new AbortController(), S.value = e), Ye(w.value, (e) => {
|
|
3483
3605
|
O(() => {
|
|
3484
3606
|
let t = m.checked ? m.checked : w.value.checked, n = {
|
|
3485
3607
|
...e,
|
|
@@ -3498,10 +3620,10 @@ var x = () => {
|
|
|
3498
3620
|
flush: "post"
|
|
3499
3621
|
});
|
|
3500
3622
|
function T(e, t) {
|
|
3501
|
-
m.input && m.input(e), m.onInput && m.onInput(e),
|
|
3623
|
+
m.input && m.input(e), m.onInput && m.onInput(e), Je(l, e);
|
|
3502
3624
|
}
|
|
3503
3625
|
function E(e, t) {
|
|
3504
|
-
m.onChange && m.onChange(e),
|
|
3626
|
+
m.onChange && m.onChange(e), Je(l, e);
|
|
3505
3627
|
}
|
|
3506
3628
|
function D(e) {
|
|
3507
3629
|
m.onBlur && m.onBlur(e);
|
|
@@ -3535,16 +3657,16 @@ var x = () => {
|
|
|
3535
3657
|
onChange: s[1] ||= async (e) => E(e),
|
|
3536
3658
|
onBlur: s[2] ||= async (e) => D(e),
|
|
3537
3659
|
onFocus: s[3] ||= async (e) => k(e)
|
|
3538
|
-
}, null, 40,
|
|
3660
|
+
}, null, 40, Sr),
|
|
3539
3661
|
t.label ? (f(), r(e, { key: 0 }, [a(g(t.label), 1)], 64)) : n("", !0),
|
|
3540
3662
|
h(o.$slots, "default")
|
|
3541
|
-
], 10,
|
|
3663
|
+
], 10, xr));
|
|
3542
3664
|
}
|
|
3543
|
-
}),
|
|
3665
|
+
}), wr = [
|
|
3544
3666
|
"id",
|
|
3545
3667
|
"data-spacing",
|
|
3546
3668
|
"data-width"
|
|
3547
|
-
],
|
|
3669
|
+
], Tr = /* @__PURE__ */ s({
|
|
3548
3670
|
name: "DBSection",
|
|
3549
3671
|
__name: "section",
|
|
3550
3672
|
props: {
|
|
@@ -3566,15 +3688,15 @@ var x = () => {
|
|
|
3566
3688
|
class: c(_(C)("db-section", t.class)),
|
|
3567
3689
|
"data-spacing": e.spacing || "medium",
|
|
3568
3690
|
"data-width": e.width
|
|
3569
|
-
}, [h(i.$slots, "default")], 10,
|
|
3691
|
+
}, [h(i.$slots, "default")], 10, wr));
|
|
3570
3692
|
}
|
|
3571
|
-
}),
|
|
3693
|
+
}), Er = [
|
|
3572
3694
|
"data-variant",
|
|
3573
3695
|
"data-hide-label",
|
|
3574
3696
|
"data-hide-asterisk",
|
|
3575
3697
|
"data-icon",
|
|
3576
3698
|
"data-show-icon"
|
|
3577
|
-
],
|
|
3699
|
+
], Dr = ["for"], Or = [
|
|
3578
3700
|
"aria-invalid",
|
|
3579
3701
|
"data-custom-validity",
|
|
3580
3702
|
"required",
|
|
@@ -3586,18 +3708,18 @@ var x = () => {
|
|
|
3586
3708
|
"autocomplete",
|
|
3587
3709
|
"multiple",
|
|
3588
3710
|
"aria-describedby"
|
|
3589
|
-
],
|
|
3711
|
+
], kr = ["data-show-empty-option"], Ar = ["label"], jr = [
|
|
3590
3712
|
"value",
|
|
3591
3713
|
"selected",
|
|
3592
3714
|
"disabled"
|
|
3593
|
-
],
|
|
3715
|
+
], Mr = [
|
|
3594
3716
|
"value",
|
|
3595
3717
|
"disabled",
|
|
3596
3718
|
"selected"
|
|
3597
|
-
],
|
|
3719
|
+
], Nr = ["id"], Pr = {
|
|
3598
3720
|
"data-visually-hidden": "true",
|
|
3599
3721
|
role: "status"
|
|
3600
|
-
},
|
|
3722
|
+
}, Fr = /* @__PURE__ */ s({
|
|
3601
3723
|
name: "DBSelect",
|
|
3602
3724
|
__name: "select",
|
|
3603
3725
|
props: {
|
|
@@ -3688,11 +3810,11 @@ var x = () => {
|
|
|
3688
3810
|
setup(s, { emit: l }) {
|
|
3689
3811
|
let x = v(), S = l, w = s, T = p(void 0), D = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(""), L = p(void 0), R = p(""), z = p(!1), B = p(""), V = p(void 0), H = p(null);
|
|
3690
3812
|
u(() => {
|
|
3691
|
-
z.value = !0,
|
|
3813
|
+
z.value = !0, q(), N.value = w.invalidMessage || "TODO: Add an invalidMessage";
|
|
3692
3814
|
}), d(() => {
|
|
3693
3815
|
V.value?.abort();
|
|
3694
3816
|
}), y(() => [w.id, w.propOverrides?.id], () => {
|
|
3695
|
-
(w.id ?? w.propOverrides?.id) &&
|
|
3817
|
+
(w.id ?? w.propOverrides?.id) && q();
|
|
3696
3818
|
}, {
|
|
3697
3819
|
immediate: !0,
|
|
3698
3820
|
flush: "post"
|
|
@@ -3703,8 +3825,8 @@ var x = () => {
|
|
|
3703
3825
|
flush: "post"
|
|
3704
3826
|
}), y(() => [T.value, z.value], () => {
|
|
3705
3827
|
if (T.value && z.value) {
|
|
3706
|
-
let e = T.value +
|
|
3707
|
-
D.value = e, j.value = T.value +
|
|
3828
|
+
let e = T.value + X, t = T.value + le;
|
|
3829
|
+
D.value = e, j.value = T.value + se, M.value = T.value + ce, P.value = t, I(w.message, w.showMessage) ? L.value = e : w.placeholder ? L.value = t : L.value = void 0, U(), z.value = !1;
|
|
3708
3830
|
}
|
|
3709
3831
|
}, {
|
|
3710
3832
|
immediate: !0,
|
|
@@ -3717,7 +3839,7 @@ var x = () => {
|
|
|
3717
3839
|
}), y(() => [H.value], () => {
|
|
3718
3840
|
if (H.value) {
|
|
3719
3841
|
let e = V.value;
|
|
3720
|
-
e || (e = new AbortController(), V.value = e),
|
|
3842
|
+
e || (e = new AbortController(), V.value = e), Ze(H.value, {
|
|
3721
3843
|
value: w.value,
|
|
3722
3844
|
defaultValue: void 0
|
|
3723
3845
|
}, (e) => {
|
|
@@ -3738,10 +3860,10 @@ var x = () => {
|
|
|
3738
3860
|
w.onClick && w.onClick(e);
|
|
3739
3861
|
}
|
|
3740
3862
|
function W(e, t) {
|
|
3741
|
-
w.input && w.input(e), R.value = e.target.value, w.onInput && w.onInput(e),
|
|
3863
|
+
w.input && w.input(e), R.value = e.target.value, w.onInput && w.onInput(e), Je(S, e), U();
|
|
3742
3864
|
}
|
|
3743
3865
|
function ne(e, t) {
|
|
3744
|
-
w.onChange && w.onChange(e),
|
|
3866
|
+
w.onChange && w.onChange(e), Je(S, e), U();
|
|
3745
3867
|
}
|
|
3746
3868
|
function re(e) {
|
|
3747
3869
|
w.onBlur && w.onBlur(e);
|
|
@@ -3752,12 +3874,12 @@ var x = () => {
|
|
|
3752
3874
|
function ie(e) {
|
|
3753
3875
|
return e.label ?? e.value?.toString();
|
|
3754
3876
|
}
|
|
3755
|
-
function
|
|
3877
|
+
function K() {
|
|
3756
3878
|
return w.variant === "floating" || w.placeholder ? w.showEmptyOption === void 0 ? !w.required : w.showEmptyOption : !1;
|
|
3757
3879
|
}
|
|
3758
|
-
function
|
|
3880
|
+
function q() {
|
|
3759
3881
|
let e = w.id ?? w.propOverrides?.id ?? `select-${x}`;
|
|
3760
|
-
T.value = e, D.value = e +
|
|
3882
|
+
T.value = e, D.value = e + X, j.value = e + se, M.value = e + ce, P.value = e + le;
|
|
3761
3883
|
}
|
|
3762
3884
|
return (l, u) => (f(), r("div", {
|
|
3763
3885
|
class: c(_(C)("db-select", w.class)),
|
|
@@ -3767,7 +3889,7 @@ var x = () => {
|
|
|
3767
3889
|
"data-icon": s.icon,
|
|
3768
3890
|
"data-show-icon": _(k)(s.showIcon, "showIcon")
|
|
3769
3891
|
}, [
|
|
3770
|
-
i("label", { for: T.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9,
|
|
3892
|
+
i("label", { for: T.value }, g(s.label ?? _("LABEL SHOULD BE SET")), 9, Dr),
|
|
3771
3893
|
i("select", {
|
|
3772
3894
|
"aria-invalid": s.validation === "invalid",
|
|
3773
3895
|
"data-custom-validity": s.validation,
|
|
@@ -3791,8 +3913,8 @@ var x = () => {
|
|
|
3791
3913
|
key: 0,
|
|
3792
3914
|
class: "placeholder",
|
|
3793
3915
|
value: "",
|
|
3794
|
-
"data-show-empty-option": _(k)(
|
|
3795
|
-
}, null, 8,
|
|
3916
|
+
"data-show-empty-option": _(k)(K(), "showEmptyOption")
|
|
3917
|
+
}, null, 8, kr)) : n("", !0), s.options?.length ? (f(!0), r(e, { key: 1 }, m(s.options, (t, n) => (f(), r(e, { key: n }, [t.options ? (f(), r("optgroup", {
|
|
3796
3918
|
key: 0,
|
|
3797
3919
|
label: ie(t)
|
|
3798
3920
|
}, [(f(!0), r(e, null, m(t.options, (e, t) => (f(), r("option", {
|
|
@@ -3800,17 +3922,17 @@ var x = () => {
|
|
|
3800
3922
|
value: e.value,
|
|
3801
3923
|
selected: e.selected,
|
|
3802
3924
|
disabled: e.disabled
|
|
3803
|
-
}, g(ie(e)), 9,
|
|
3925
|
+
}, g(ie(e)), 9, jr))), 128))], 8, Ar)) : (f(), r("option", {
|
|
3804
3926
|
key: 1,
|
|
3805
3927
|
value: t.value,
|
|
3806
3928
|
disabled: t.disabled,
|
|
3807
3929
|
selected: t.selected
|
|
3808
|
-
}, g(ie(t)), 9,
|
|
3930
|
+
}, g(ie(t)), 9, Mr))], 64))), 128)) : h(l.$slots, "default", { key: 2 })], 40, Or),
|
|
3809
3931
|
s.placeholder ? (f(), r("span", {
|
|
3810
3932
|
key: 0,
|
|
3811
3933
|
class: "db-select-placeholder",
|
|
3812
3934
|
id: P.value
|
|
3813
|
-
}, g(s.placeholder), 9,
|
|
3935
|
+
}, g(s.placeholder), 9, Nr)) : n("", !0),
|
|
3814
3936
|
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
3815
3937
|
key: 1,
|
|
3816
3938
|
size: "small",
|
|
@@ -3837,10 +3959,10 @@ var x = () => {
|
|
|
3837
3959
|
default: b(() => [a(g(N.value), 1)]),
|
|
3838
3960
|
_: 1
|
|
3839
3961
|
}, 8, ["id"]),
|
|
3840
|
-
i("span",
|
|
3841
|
-
], 10,
|
|
3962
|
+
i("span", Pr, g(B.value), 1)
|
|
3963
|
+
], 10, Er));
|
|
3842
3964
|
}
|
|
3843
|
-
}),
|
|
3965
|
+
}), Ir = [
|
|
3844
3966
|
"id",
|
|
3845
3967
|
"data-gap",
|
|
3846
3968
|
"data-variant",
|
|
@@ -3848,7 +3970,7 @@ var x = () => {
|
|
|
3848
3970
|
"data-alignment",
|
|
3849
3971
|
"data-justify-content",
|
|
3850
3972
|
"data-wrap"
|
|
3851
|
-
],
|
|
3973
|
+
], Lr = /* @__PURE__ */ s({
|
|
3852
3974
|
name: "DBStack",
|
|
3853
3975
|
__name: "stack",
|
|
3854
3976
|
props: {
|
|
@@ -3881,26 +4003,26 @@ var x = () => {
|
|
|
3881
4003
|
"data-alignment": e.alignment,
|
|
3882
4004
|
"data-justify-content": e.justifyContent,
|
|
3883
4005
|
"data-wrap": _(k)(e.wrap, "wrap")
|
|
3884
|
-
}, [h(i.$slots, "default")], 10,
|
|
4006
|
+
}, [h(i.$slots, "default")], 10, Ir));
|
|
3885
4007
|
}
|
|
3886
|
-
}),
|
|
4008
|
+
}), Rr = ["simple", "divider"], zr = ["row", "column"], Br = [
|
|
3887
4009
|
"stretch",
|
|
3888
4010
|
"start",
|
|
3889
4011
|
"end",
|
|
3890
4012
|
"center"
|
|
3891
|
-
],
|
|
4013
|
+
], Vr = [
|
|
3892
4014
|
"space-between",
|
|
3893
4015
|
"start",
|
|
3894
|
-
"
|
|
3895
|
-
"
|
|
3896
|
-
],
|
|
4016
|
+
"center",
|
|
4017
|
+
"end"
|
|
4018
|
+
], Hr = [
|
|
3897
4019
|
"data-visual-aid",
|
|
3898
4020
|
"data-size",
|
|
3899
4021
|
"data-hide-label",
|
|
3900
4022
|
"data-variant",
|
|
3901
4023
|
"data-hide-asterisk",
|
|
3902
4024
|
"data-custom-validity"
|
|
3903
|
-
],
|
|
4025
|
+
], Ur = ["for"], Wr = [
|
|
3904
4026
|
"id",
|
|
3905
4027
|
"checked",
|
|
3906
4028
|
"value",
|
|
@@ -3911,10 +4033,10 @@ var x = () => {
|
|
|
3911
4033
|
"required",
|
|
3912
4034
|
"data-aid-icon",
|
|
3913
4035
|
"data-aid-icon-trailing"
|
|
3914
|
-
],
|
|
4036
|
+
], Gr = {
|
|
3915
4037
|
"data-visually-hidden": "true",
|
|
3916
4038
|
role: "status"
|
|
3917
|
-
},
|
|
4039
|
+
}, Kr = /* @__PURE__ */ s({
|
|
3918
4040
|
name: "DBSwitch",
|
|
3919
4041
|
__name: "switch",
|
|
3920
4042
|
props: {
|
|
@@ -4018,7 +4140,7 @@ var x = () => {
|
|
|
4018
4140
|
}), y(() => [R.value], () => {
|
|
4019
4141
|
if (R.value) {
|
|
4020
4142
|
let e = L.value;
|
|
4021
|
-
e || (e = new AbortController(), L.value = e),
|
|
4143
|
+
e || (e = new AbortController(), L.value = e), Xe(R.value, {
|
|
4022
4144
|
checked: S.checked,
|
|
4023
4145
|
defaultChecked: void 0
|
|
4024
4146
|
}, (e) => {
|
|
@@ -4052,7 +4174,7 @@ var x = () => {
|
|
|
4052
4174
|
N.value = void 0;
|
|
4053
4175
|
}
|
|
4054
4176
|
function V(e, t) {
|
|
4055
|
-
S.onChange && S.onChange(e), B(),
|
|
4177
|
+
S.onChange && S.onChange(e), B(), Je(x, e, "checked");
|
|
4056
4178
|
}
|
|
4057
4179
|
function H(e) {
|
|
4058
4180
|
S.onBlur && S.onBlur(e);
|
|
@@ -4065,7 +4187,7 @@ var x = () => {
|
|
|
4065
4187
|
}
|
|
4066
4188
|
function te() {
|
|
4067
4189
|
let e = S.id ?? S.propOverrides?.id ?? `switch-${m}`;
|
|
4068
|
-
w.value = e, T.value = `${e}${
|
|
4190
|
+
w.value = e, T.value = `${e}${X}`, D.value = `${e}${se}`, j.value = `${e}${ce}`;
|
|
4069
4191
|
}
|
|
4070
4192
|
return (l, u) => (f(), r("div", {
|
|
4071
4193
|
"data-visual-aid": _(k)(s.visualAid, "visualAid"),
|
|
@@ -4096,10 +4218,10 @@ var x = () => {
|
|
|
4096
4218
|
onBlur: u[1] ||= async (e) => H(e),
|
|
4097
4219
|
onFocus: u[2] ||= async (e) => ee(e),
|
|
4098
4220
|
onKeydown: u[3] ||= async (e) => U(e)
|
|
4099
|
-
}, null, 40,
|
|
4221
|
+
}, null, 40, Wr),
|
|
4100
4222
|
s.label ? (f(), r(e, { key: 0 }, [a(g(s.label), 1)], 64)) : n("", !0),
|
|
4101
4223
|
h(l.$slots, "default")
|
|
4102
|
-
], 8,
|
|
4224
|
+
], 8, Ur),
|
|
4103
4225
|
_(I)(s.message, s.showMessage) ? (f(), t($, {
|
|
4104
4226
|
key: 0,
|
|
4105
4227
|
size: "small",
|
|
@@ -4127,127 +4249,161 @@ var x = () => {
|
|
|
4127
4249
|
default: b(() => [a(g(M.value), 1)]),
|
|
4128
4250
|
_: 1
|
|
4129
4251
|
}, 8, ["id"]),
|
|
4130
|
-
i("span",
|
|
4131
|
-
], 10,
|
|
4252
|
+
i("span", Gr, g(P.value), 1)
|
|
4253
|
+
], 10, Hr));
|
|
4132
4254
|
}
|
|
4133
|
-
}),
|
|
4134
|
-
"for",
|
|
4135
|
-
"data-icon",
|
|
4136
|
-
"data-icon-trailing",
|
|
4137
|
-
"data-show-icon",
|
|
4138
|
-
"data-show-icon-trailing",
|
|
4139
|
-
"data-no-text"
|
|
4140
|
-
], Vr = [
|
|
4255
|
+
}), qr = [
|
|
4141
4256
|
"disabled",
|
|
4142
4257
|
"aria-selected",
|
|
4143
|
-
"
|
|
4144
|
-
"
|
|
4145
|
-
|
|
4146
|
-
|
|
4258
|
+
"focusgroupstart",
|
|
4259
|
+
"data-value"
|
|
4260
|
+
], Jr = [
|
|
4261
|
+
"data-icon",
|
|
4262
|
+
"data-show-icon",
|
|
4263
|
+
"data-icon-trailing",
|
|
4264
|
+
"data-show-icon-trailing"
|
|
4265
|
+
], Yr = { class: "db-tab-item-label-end-slot" }, Xr = /* @__PURE__ */ s({
|
|
4147
4266
|
name: "DBTabItem",
|
|
4148
4267
|
__name: "tab-item",
|
|
4149
4268
|
props: {
|
|
4150
|
-
children: { default: void 0 },
|
|
4151
|
-
className: { default: void 0 },
|
|
4152
|
-
class: {},
|
|
4153
|
-
id: { default: void 0 },
|
|
4154
|
-
autofocus: { type: [Boolean, String] },
|
|
4155
|
-
propOverrides: { default: void 0 },
|
|
4156
|
-
checked: {
|
|
4157
|
-
type: [Boolean, String],
|
|
4158
|
-
default: void 0
|
|
4159
|
-
},
|
|
4160
4269
|
disabled: {
|
|
4161
4270
|
type: [Boolean, String],
|
|
4162
4271
|
default: void 0
|
|
4163
4272
|
},
|
|
4164
4273
|
label: { default: void 0 },
|
|
4165
|
-
|
|
4274
|
+
tabIndex: {},
|
|
4275
|
+
value: { default: void 0 },
|
|
4276
|
+
children: { default: void 0 },
|
|
4277
|
+
className: { default: void 0 },
|
|
4278
|
+
class: {},
|
|
4279
|
+
autofocus: { type: [Boolean, String] },
|
|
4280
|
+
icon: { default: void 0 },
|
|
4281
|
+
showIcon: {
|
|
4166
4282
|
type: [Boolean, String],
|
|
4167
4283
|
default: void 0
|
|
4168
4284
|
},
|
|
4169
|
-
icon: { default: void 0 },
|
|
4170
4285
|
iconTrailing: { default: void 0 },
|
|
4171
4286
|
iconLeading: { default: void 0 },
|
|
4172
|
-
showIconLeading: {
|
|
4173
|
-
type: [Boolean, String],
|
|
4174
|
-
default: void 0
|
|
4175
|
-
},
|
|
4176
4287
|
showIconTrailing: {
|
|
4177
4288
|
type: [Boolean, String],
|
|
4178
4289
|
default: void 0
|
|
4179
4290
|
},
|
|
4180
|
-
|
|
4291
|
+
showIconLeading: {
|
|
4181
4292
|
type: [Boolean, String],
|
|
4182
4293
|
default: void 0
|
|
4183
4294
|
},
|
|
4184
|
-
|
|
4185
|
-
onChange: {
|
|
4186
|
-
type: Function,
|
|
4187
|
-
default: void 0
|
|
4188
|
-
},
|
|
4189
|
-
showIcon: {
|
|
4295
|
+
active: {
|
|
4190
4296
|
type: [Boolean, String],
|
|
4191
4297
|
default: void 0
|
|
4192
4298
|
},
|
|
4193
|
-
|
|
4299
|
+
width: {},
|
|
4300
|
+
endSlot: {}
|
|
4194
4301
|
},
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
let s = o, l = t, m = p(!1), v = p(void 0), b = p(!1), x = p(!1), S = p(void 0), w = p(null);
|
|
4302
|
+
setup(o) {
|
|
4303
|
+
let s = o, l = p(!1), m = p(!1), v = p(""), x = p(null), S = p(null), w = p(null), T = p(!1), E = p(null), D = p(null);
|
|
4198
4304
|
u(() => {
|
|
4199
|
-
|
|
4305
|
+
l.value = !0;
|
|
4200
4306
|
}), d(() => {
|
|
4201
|
-
|
|
4307
|
+
T.value = !0;
|
|
4308
|
+
let e = w.value;
|
|
4309
|
+
e !== null && (cancelAnimationFrame(e), w.value = null), x.value?.disconnect(), S.value?.disconnect();
|
|
4310
|
+
}), y(() => [D.value, l.value], () => {
|
|
4311
|
+
if (typeof window < "u" && D.value && l.value && !x.value) {
|
|
4312
|
+
let e = () => {
|
|
4313
|
+
w.value = requestAnimationFrame(() => {
|
|
4314
|
+
if (w.value = null, !T.value) {
|
|
4315
|
+
if (j(), D.value && !x.value) {
|
|
4316
|
+
let e = new ResizeObserver(() => {
|
|
4317
|
+
requestAnimationFrame(() => {
|
|
4318
|
+
T.value || j();
|
|
4319
|
+
});
|
|
4320
|
+
});
|
|
4321
|
+
e.observe(D.value), x.value = e;
|
|
4322
|
+
}
|
|
4323
|
+
if (D.value && !S.value) {
|
|
4324
|
+
let e = new MutationObserver(() => {
|
|
4325
|
+
requestAnimationFrame(() => {
|
|
4326
|
+
T.value || j();
|
|
4327
|
+
});
|
|
4328
|
+
});
|
|
4329
|
+
e.observe(D.value, {
|
|
4330
|
+
childList: !0,
|
|
4331
|
+
subtree: !0,
|
|
4332
|
+
characterData: !0
|
|
4333
|
+
}), S.value = e;
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4336
|
+
});
|
|
4337
|
+
};
|
|
4338
|
+
(s.iconLeading ?? s.icon ?? s.iconTrailing) && document.fonts?.ready ? document.fonts.ready.then(() => {
|
|
4339
|
+
T.value || e();
|
|
4340
|
+
}) : e();
|
|
4341
|
+
}
|
|
4342
|
+
}, {
|
|
4343
|
+
immediate: !0,
|
|
4344
|
+
flush: "post"
|
|
4202
4345
|
}), y(() => [
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4346
|
+
s.label,
|
|
4347
|
+
l.value,
|
|
4348
|
+
D.value
|
|
4206
4349
|
], () => {
|
|
4207
|
-
|
|
4350
|
+
D.value && l.value && j();
|
|
4208
4351
|
}, {
|
|
4209
4352
|
immediate: !0,
|
|
4210
4353
|
flush: "post"
|
|
4211
|
-
}), y(() => [
|
|
4212
|
-
|
|
4354
|
+
}), y(() => [E.value, m.value], () => {
|
|
4355
|
+
E.value && !m.value && O();
|
|
4213
4356
|
}, {
|
|
4214
4357
|
immediate: !0,
|
|
4215
4358
|
flush: "post"
|
|
4216
4359
|
});
|
|
4217
|
-
function
|
|
4218
|
-
|
|
4360
|
+
function O() {
|
|
4361
|
+
if (!E.value || !E.value.hasAttribute("data-has-tooltip")) return;
|
|
4362
|
+
E.value.removeAttribute("data-has-tooltip");
|
|
4363
|
+
let e = E.value.querySelector(".db-tooltip");
|
|
4364
|
+
if (!e || !e.id) return;
|
|
4365
|
+
let t = (E.value.getAttribute("aria-describedby") || "").split(" ").filter((t) => t !== "" && t !== e.id).join(" ");
|
|
4366
|
+
t ? E.value.setAttribute("aria-describedby", t) : E.value.removeAttribute("aria-describedby");
|
|
4219
4367
|
}
|
|
4220
|
-
function
|
|
4221
|
-
|
|
4368
|
+
function j() {
|
|
4369
|
+
if (D.value) {
|
|
4370
|
+
let e = Math.ceil(D.value.scrollWidth) > Math.ceil(D.value.clientWidth) + 1;
|
|
4371
|
+
m.value !== e && (m.value = e, e ? E.value && E.value.setAttribute("title", "") : (O(), E.value && E.value.getAttribute("title") === "" && E.value.removeAttribute("title"))), v.value = e && (s.label || D.value.innerText || D.value.textContent) || "";
|
|
4372
|
+
}
|
|
4222
4373
|
}
|
|
4223
|
-
return (
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
"
|
|
4229
|
-
"
|
|
4230
|
-
"
|
|
4231
|
-
|
|
4232
|
-
"data-
|
|
4233
|
-
}, [
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4374
|
+
return (l, u) => (f(), r("button", {
|
|
4375
|
+
type: "button",
|
|
4376
|
+
role: "tab",
|
|
4377
|
+
ref_key: "_ref",
|
|
4378
|
+
ref: E,
|
|
4379
|
+
class: c(_(C)("db-tab-item", s.class)),
|
|
4380
|
+
disabled: _(A)(o.disabled, "disabled") ? !0 : void 0,
|
|
4381
|
+
"aria-selected": _(k)(o.active, "active"),
|
|
4382
|
+
focusgroupstart: _(A)(o.active, "active") ? "" : void 0,
|
|
4383
|
+
"data-value": o.value
|
|
4384
|
+
}, [i("span", {
|
|
4385
|
+
class: "db-tab-item-label",
|
|
4386
|
+
"data-icon": o.iconLeading ?? o.icon,
|
|
4387
|
+
"data-show-icon": _(k)(o.showIconLeading, "showIconLeading") || _(k)(o.showIcon, "showIcon"),
|
|
4388
|
+
"data-icon-trailing": o.iconTrailing,
|
|
4389
|
+
"data-show-icon-trailing": _(k)(o.showIconTrailing, "showIconTrailing")
|
|
4390
|
+
}, [i("span", {
|
|
4391
|
+
class: "db-tab-item-label-text",
|
|
4392
|
+
ref_key: "_labelRef",
|
|
4393
|
+
ref: D
|
|
4394
|
+
}, [o.label ? (f(), r(e, { key: 0 }, [a(g(o.label), 1)], 64)) : n("", !0), h(l.$slots, "default")], 512), i("span", Yr, [h(l.$slots, "end-slot")])], 8, Jr), m.value && v.value ? (f(), t(Rt, {
|
|
4395
|
+
key: 0,
|
|
4396
|
+
placement: "top"
|
|
4397
|
+
}, {
|
|
4398
|
+
default: b(() => [a(g(v.value), 1)]),
|
|
4399
|
+
_: 1
|
|
4400
|
+
})) : n("", !0)], 10, qr));
|
|
4249
4401
|
}
|
|
4250
|
-
}),
|
|
4402
|
+
}), Zr = [
|
|
4403
|
+
"id",
|
|
4404
|
+
"aria-orientation",
|
|
4405
|
+
"focusgroup"
|
|
4406
|
+
], Qr = /* @__PURE__ */ s({
|
|
4251
4407
|
name: "DBTabList",
|
|
4252
4408
|
__name: "tab-list",
|
|
4253
4409
|
props: {
|
|
@@ -4256,47 +4412,53 @@ var x = () => {
|
|
|
4256
4412
|
class: {},
|
|
4257
4413
|
id: { default: void 0 },
|
|
4258
4414
|
autofocus: { type: [Boolean, String] },
|
|
4259
|
-
propOverrides: { default: void 0 }
|
|
4415
|
+
propOverrides: { default: void 0 },
|
|
4416
|
+
orientation: { default: void 0 }
|
|
4260
4417
|
},
|
|
4261
4418
|
setup(e) {
|
|
4262
|
-
let t =
|
|
4263
|
-
return (
|
|
4419
|
+
let t = v(), n = e, i = p(void 0), a = p(null);
|
|
4420
|
+
return u(() => {
|
|
4421
|
+
i.value = n.id || n.propOverrides?.id || "tab-list-" + t;
|
|
4422
|
+
}), (t, o) => (f(), r("div", {
|
|
4423
|
+
role: "tablist",
|
|
4264
4424
|
ref_key: "_ref",
|
|
4265
|
-
ref:
|
|
4266
|
-
id: e.id ?? e.propOverrides?.id,
|
|
4267
|
-
class: c(_(C)("db-tab-list",
|
|
4268
|
-
|
|
4425
|
+
ref: a,
|
|
4426
|
+
id: e.id ?? e.propOverrides?.id ?? i.value,
|
|
4427
|
+
class: c(_(C)("db-tab-list", n.class)),
|
|
4428
|
+
"aria-orientation": e.orientation ?? "horizontal",
|
|
4429
|
+
focusgroup: e.orientation === "vertical" ? "tablist block wrap" : "tablist"
|
|
4430
|
+
}, [h(t.$slots, "default")], 10, Zr));
|
|
4269
4431
|
}
|
|
4270
|
-
}),
|
|
4432
|
+
}), $r = ["hidden"], ei = /* @__PURE__ */ s({
|
|
4271
4433
|
name: "DBTabPanel",
|
|
4272
4434
|
__name: "tab-panel",
|
|
4273
4435
|
props: {
|
|
4274
|
-
content: {
|
|
4275
|
-
|
|
4276
|
-
|
|
4436
|
+
content: {},
|
|
4437
|
+
hidden: { type: Boolean },
|
|
4438
|
+
children: {},
|
|
4439
|
+
className: {},
|
|
4277
4440
|
class: {},
|
|
4278
|
-
|
|
4279
|
-
autofocus: { type: [Boolean, String] },
|
|
4280
|
-
propOverrides: { default: void 0 }
|
|
4441
|
+
autofocus: { type: [Boolean, String] }
|
|
4281
4442
|
},
|
|
4282
4443
|
setup(t) {
|
|
4283
4444
|
let i = t, o = p(null);
|
|
4284
|
-
return
|
|
4445
|
+
return (s, l) => (f(), r("div", {
|
|
4285
4446
|
role: "tabpanel",
|
|
4286
4447
|
ref_key: "_ref",
|
|
4287
4448
|
ref: o,
|
|
4288
4449
|
class: c(_(C)("db-tab-panel", i.class)),
|
|
4289
|
-
|
|
4290
|
-
|
|
4450
|
+
hidden: t.hidden,
|
|
4451
|
+
tabIndex: 0
|
|
4452
|
+
}, [t.content ? (f(), r(e, { key: 0 }, [a(g(t.content), 1)], 64)) : n("", !0), h(s.$slots, "default")], 10, $r));
|
|
4291
4453
|
}
|
|
4292
|
-
}),
|
|
4454
|
+
}), ti = [
|
|
4293
4455
|
"id",
|
|
4294
4456
|
"data-horizontal-alignment",
|
|
4295
4457
|
"data-vertical-alignment",
|
|
4296
4458
|
"colSpan",
|
|
4297
4459
|
"rowSpan",
|
|
4298
4460
|
"headers"
|
|
4299
|
-
],
|
|
4461
|
+
], ni = /* @__PURE__ */ s({
|
|
4300
4462
|
name: "DBTableDataCell",
|
|
4301
4463
|
__name: "table-data-cell",
|
|
4302
4464
|
props: {
|
|
@@ -4326,9 +4488,9 @@ var x = () => {
|
|
|
4326
4488
|
colSpan: _(j)(e.colSpan, e.colspan),
|
|
4327
4489
|
rowSpan: _(j)(e.rowSpan, e.rowspan),
|
|
4328
4490
|
headers: e.headers
|
|
4329
|
-
}, [h(i.$slots, "default")], 10,
|
|
4491
|
+
}, [h(i.$slots, "default")], 10, ti));
|
|
4330
4492
|
}
|
|
4331
|
-
}),
|
|
4493
|
+
}), ri = [
|
|
4332
4494
|
"id",
|
|
4333
4495
|
"data-horizontal-alignment",
|
|
4334
4496
|
"data-vertical-alignment",
|
|
@@ -4338,7 +4500,7 @@ var x = () => {
|
|
|
4338
4500
|
"rowSpan",
|
|
4339
4501
|
"headers",
|
|
4340
4502
|
"abbr"
|
|
4341
|
-
],
|
|
4503
|
+
], ii = /* @__PURE__ */ s({
|
|
4342
4504
|
name: "DBTableHeaderCell",
|
|
4343
4505
|
__name: "table-header-cell",
|
|
4344
4506
|
props: {
|
|
@@ -4377,13 +4539,13 @@ var x = () => {
|
|
|
4377
4539
|
rowSpan: _(j)(e.rowSpan, e.rowspan),
|
|
4378
4540
|
headers: e.headers,
|
|
4379
4541
|
abbr: e.abbr
|
|
4380
|
-
}, [h(i.$slots, "default")], 10,
|
|
4542
|
+
}, [h(i.$slots, "default")], 10, ri));
|
|
4381
4543
|
}
|
|
4382
|
-
}),
|
|
4544
|
+
}), ai = [
|
|
4383
4545
|
"id",
|
|
4384
4546
|
"data-interactive",
|
|
4385
4547
|
"data-sub-header-emphasis"
|
|
4386
|
-
],
|
|
4548
|
+
], oi = /* @__PURE__ */ s({
|
|
4387
4549
|
name: "DBTableRow",
|
|
4388
4550
|
__name: "table-row",
|
|
4389
4551
|
props: {
|
|
@@ -4412,7 +4574,7 @@ var x = () => {
|
|
|
4412
4574
|
class: c(_(C)("db-table-row", o.class)),
|
|
4413
4575
|
"data-interactive": _(k)(n.interactive),
|
|
4414
4576
|
"data-sub-header-emphasis": n.subHeaderEmphasis
|
|
4415
|
-
}, [n.cells ? (f(!0), r(e, { key: 0 }, m(n.cells, (o, s) => (f(), r(e, { key: s }, [o.headerCell ? (f(), t(
|
|
4577
|
+
}, [n.cells ? (f(!0), r(e, { key: 0 }, m(n.cells, (o, s) => (f(), r(e, { key: s }, [o.headerCell ? (f(), t(ii, {
|
|
4416
4578
|
key: `${o.id ?? n.id ?? _(i)}-table-row-header-cell-${s}`,
|
|
4417
4579
|
id: o.id,
|
|
4418
4580
|
abbr: l(o)?.abbr,
|
|
@@ -4427,7 +4589,7 @@ var x = () => {
|
|
|
4427
4589
|
rowSpan: o.rowSpan,
|
|
4428
4590
|
rowspan: o.rowspan
|
|
4429
4591
|
}, {
|
|
4430
|
-
default: b(() => [o.link ? (f(), t(
|
|
4592
|
+
default: b(() => [o.link ? (f(), t(Yn, {
|
|
4431
4593
|
key: 0,
|
|
4432
4594
|
content: o.link?.content,
|
|
4433
4595
|
size: o.link?.size,
|
|
@@ -4480,7 +4642,7 @@ var x = () => {
|
|
|
4480
4642
|
"colspan",
|
|
4481
4643
|
"rowSpan",
|
|
4482
4644
|
"rowspan"
|
|
4483
|
-
])) : (f(), t(
|
|
4645
|
+
])) : (f(), t(ni, {
|
|
4484
4646
|
key: `${o.id ?? n.id ?? _(i)}-table-row-data-cell-${s}`,
|
|
4485
4647
|
id: o.id,
|
|
4486
4648
|
className: o.className ?? o.class,
|
|
@@ -4492,7 +4654,7 @@ var x = () => {
|
|
|
4492
4654
|
rowSpan: o.rowSpan,
|
|
4493
4655
|
rowspan: o.rowspan
|
|
4494
4656
|
}, {
|
|
4495
|
-
default: b(() => [o.link ? (f(), t(
|
|
4657
|
+
default: b(() => [o.link ? (f(), t(Yn, {
|
|
4496
4658
|
key: 0,
|
|
4497
4659
|
content: o.link?.content,
|
|
4498
4660
|
size: o.link?.size,
|
|
@@ -4542,9 +4704,9 @@ var x = () => {
|
|
|
4542
4704
|
"colspan",
|
|
4543
4705
|
"rowSpan",
|
|
4544
4706
|
"rowspan"
|
|
4545
|
-
]))], 64))), 128)) : h(u.$slots, "default", { key: 1 })], 10,
|
|
4707
|
+
]))], 64))), 128)) : h(u.$slots, "default", { key: 1 })], 10, ai));
|
|
4546
4708
|
}
|
|
4547
|
-
}),
|
|
4709
|
+
}), si = ["id"], ci = /* @__PURE__ */ s({
|
|
4548
4710
|
name: "DBTableBody",
|
|
4549
4711
|
__name: "table-body",
|
|
4550
4712
|
props: {
|
|
@@ -4563,7 +4725,7 @@ var x = () => {
|
|
|
4563
4725
|
ref: o,
|
|
4564
4726
|
id: n.id ?? n.propOverrides?.id,
|
|
4565
4727
|
class: c(_(C)("db-table-body", a.class))
|
|
4566
|
-
}, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(
|
|
4728
|
+
}, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(oi, {
|
|
4567
4729
|
key: `${e.id ?? n.id ?? _(i)}-table-body-row-${r}`,
|
|
4568
4730
|
cells: e.cells,
|
|
4569
4731
|
className: e.className ?? e.class,
|
|
@@ -4574,9 +4736,9 @@ var x = () => {
|
|
|
4574
4736
|
"className",
|
|
4575
4737
|
"interactive",
|
|
4576
4738
|
"id"
|
|
4577
|
-
]))), 128)) : h(s.$slots, "default", { key: 1 })], 10,
|
|
4739
|
+
]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, si));
|
|
4578
4740
|
}
|
|
4579
|
-
}),
|
|
4741
|
+
}), li = ["id"], ui = /* @__PURE__ */ s({
|
|
4580
4742
|
name: "DBTableFooter",
|
|
4581
4743
|
__name: "table-footer",
|
|
4582
4744
|
props: {
|
|
@@ -4595,7 +4757,7 @@ var x = () => {
|
|
|
4595
4757
|
ref: o,
|
|
4596
4758
|
id: n.id ?? n.propOverrides?.id,
|
|
4597
4759
|
class: c(_(C)("db-table-footer", a.class))
|
|
4598
|
-
}, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(
|
|
4760
|
+
}, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(oi, {
|
|
4599
4761
|
key: `${e.id ?? n.id ?? _(i)}-table-footer-row-${r}`,
|
|
4600
4762
|
cells: e.cells,
|
|
4601
4763
|
className: e.className ?? e.class,
|
|
@@ -4606,9 +4768,9 @@ var x = () => {
|
|
|
4606
4768
|
"className",
|
|
4607
4769
|
"interactive",
|
|
4608
4770
|
"id"
|
|
4609
|
-
]))), 128)) : h(s.$slots, "default", { key: 1 })], 10,
|
|
4771
|
+
]))), 128)) : h(s.$slots, "default", { key: 1 })], 10, li));
|
|
4610
4772
|
}
|
|
4611
|
-
}),
|
|
4773
|
+
}), di = ["id"], fi = /* @__PURE__ */ s({
|
|
4612
4774
|
name: "DBTableHead",
|
|
4613
4775
|
__name: "table-head",
|
|
4614
4776
|
props: {
|
|
@@ -4633,7 +4795,7 @@ var x = () => {
|
|
|
4633
4795
|
ref: o,
|
|
4634
4796
|
id: n.id ?? n.propOverrides?.id,
|
|
4635
4797
|
class: c(_(C)("db-table-head", a.class))
|
|
4636
|
-
}, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(
|
|
4798
|
+
}, [n.rows ? (f(!0), r(e, { key: 0 }, m(n.rows, (e, r) => (f(), t(oi, {
|
|
4637
4799
|
key: `${e.id ?? n.id ?? _(i)}-table-head-row-${r}`,
|
|
4638
4800
|
cells: s(e.cells),
|
|
4639
4801
|
className: e.className ?? e.class,
|
|
@@ -4646,9 +4808,9 @@ var x = () => {
|
|
|
4646
4808
|
"subHeaderEmphasis",
|
|
4647
4809
|
"interactive",
|
|
4648
4810
|
"id"
|
|
4649
|
-
]))), 128)) : h(l.$slots, "default", { key: 1 })], 10,
|
|
4811
|
+
]))), 128)) : h(l.$slots, "default", { key: 1 })], 10, di));
|
|
4650
4812
|
}
|
|
4651
|
-
}),
|
|
4813
|
+
}), pi = [
|
|
4652
4814
|
"data-width",
|
|
4653
4815
|
"data-size",
|
|
4654
4816
|
"data-divider",
|
|
@@ -4656,7 +4818,7 @@ var x = () => {
|
|
|
4656
4818
|
"data-mobile-variant",
|
|
4657
4819
|
"data-show-caption",
|
|
4658
4820
|
"data-sticky-header"
|
|
4659
|
-
],
|
|
4821
|
+
], mi = ["id"], hi = { key: 0 }, gi = /* @__PURE__ */ s({
|
|
4660
4822
|
name: "DBTable",
|
|
4661
4823
|
__name: "table",
|
|
4662
4824
|
props: {
|
|
@@ -4743,22 +4905,22 @@ var x = () => {
|
|
|
4743
4905
|
ref_key: "_ref",
|
|
4744
4906
|
ref: d,
|
|
4745
4907
|
id: a.id ?? a.propOverrides?.id
|
|
4746
|
-
}, [a.captionPlain ? (f(), r("caption",
|
|
4747
|
-
s.value?.header ? (f(), t(
|
|
4908
|
+
}, [a.captionPlain ? (f(), r("caption", hi, g(a.captionPlain), 1)) : h(p.$slots, "caption", { key: 1 }), s.value ? (f(), r(e, { key: 2 }, [
|
|
4909
|
+
s.value?.header ? (f(), t(fi, {
|
|
4748
4910
|
key: 0,
|
|
4749
4911
|
rows: s.value?.header
|
|
4750
4912
|
}, null, 8, ["rows"])) : n("", !0),
|
|
4751
|
-
s.value?.body ? (f(), t(
|
|
4913
|
+
s.value?.body ? (f(), t(ci, {
|
|
4752
4914
|
key: 1,
|
|
4753
4915
|
rows: s.value?.body
|
|
4754
4916
|
}, null, 8, ["rows"])) : n("", !0),
|
|
4755
|
-
s.value?.footer ? (f(), t(
|
|
4917
|
+
s.value?.footer ? (f(), t(ui, {
|
|
4756
4918
|
key: 2,
|
|
4757
4919
|
rows: s.value?.footer
|
|
4758
4920
|
}, null, 8, ["rows"])) : n("", !0)
|
|
4759
|
-
], 64)) : h(p.$slots, "default", { key: 3 })], 8,
|
|
4921
|
+
], 64)) : h(p.$slots, "default", { key: 3 })], 8, mi)], 14, pi));
|
|
4760
4922
|
}
|
|
4761
|
-
}),
|
|
4923
|
+
}), _i = ["id"], vi = /* @__PURE__ */ s({
|
|
4762
4924
|
name: "DBTableCaption",
|
|
4763
4925
|
__name: "table-caption",
|
|
4764
4926
|
props: {
|
|
@@ -4776,56 +4938,62 @@ var x = () => {
|
|
|
4776
4938
|
ref: n,
|
|
4777
4939
|
id: e.id ?? e.propOverrides?.id,
|
|
4778
4940
|
class: c(_(C)("db-table-caption", t.class))
|
|
4779
|
-
}, [h(i.$slots, "default")], 10,
|
|
4941
|
+
}, [h(i.$slots, "default")], 10, _i));
|
|
4780
4942
|
}
|
|
4781
|
-
}),
|
|
4943
|
+
}), yi = [
|
|
4782
4944
|
"row",
|
|
4783
4945
|
"col",
|
|
4784
4946
|
"rowgroup",
|
|
4785
4947
|
"colgroup"
|
|
4786
|
-
],
|
|
4948
|
+
], bi = [
|
|
4787
4949
|
"none",
|
|
4788
4950
|
"weak",
|
|
4789
4951
|
"strong"
|
|
4790
|
-
],
|
|
4952
|
+
], xi = [
|
|
4791
4953
|
"x-small",
|
|
4792
4954
|
"small",
|
|
4793
4955
|
"medium",
|
|
4794
4956
|
"large"
|
|
4795
|
-
],
|
|
4957
|
+
], Si = [
|
|
4796
4958
|
"flat",
|
|
4797
4959
|
"zebra",
|
|
4798
4960
|
"spaced"
|
|
4799
|
-
],
|
|
4961
|
+
], Ci = [
|
|
4800
4962
|
"none",
|
|
4801
4963
|
"both",
|
|
4802
4964
|
"horizontal",
|
|
4803
4965
|
"vertical"
|
|
4804
|
-
],
|
|
4966
|
+
], wi = ["table", "list"], Ti = [
|
|
4805
4967
|
"none",
|
|
4806
4968
|
"both",
|
|
4807
4969
|
"horizontal",
|
|
4808
4970
|
"vertical"
|
|
4809
|
-
],
|
|
4971
|
+
], Ei = [
|
|
4810
4972
|
"auto",
|
|
4811
4973
|
"1fr",
|
|
4812
4974
|
"min-content",
|
|
4813
4975
|
"max-content"
|
|
4814
|
-
],
|
|
4976
|
+
], Di = [
|
|
4815
4977
|
"id",
|
|
4816
4978
|
"data-orientation",
|
|
4817
4979
|
"data-scroll-behavior",
|
|
4818
|
-
"data-alignment",
|
|
4819
|
-
"data-width"
|
|
4820
|
-
|
|
4980
|
+
"data-tab-item-alignment",
|
|
4981
|
+
"data-tab-item-width",
|
|
4982
|
+
"data-initial-selected-mode"
|
|
4983
|
+
], Oi = /* @__PURE__ */ s({
|
|
4821
4984
|
name: "DBTabs",
|
|
4822
4985
|
__name: "tabs",
|
|
4823
4986
|
props: {
|
|
4987
|
+
arrowScrollDistance: { default: void 0 },
|
|
4824
4988
|
behavior: { default: void 0 },
|
|
4825
4989
|
initialSelectedIndex: { default: void 0 },
|
|
4990
|
+
activeIndex: { default: void 0 },
|
|
4826
4991
|
initialSelectedMode: { default: void 0 },
|
|
4827
|
-
|
|
4992
|
+
label: { default: void 0 },
|
|
4828
4993
|
tabs: { default: void 0 },
|
|
4994
|
+
tabItemWidth: { default: "auto" },
|
|
4995
|
+
scrollStartLabel: { default: "Scroll start" },
|
|
4996
|
+
scrollEndLabel: { default: "Scroll end" },
|
|
4829
4997
|
children: { default: void 0 },
|
|
4830
4998
|
className: { default: void 0 },
|
|
4831
4999
|
class: {},
|
|
@@ -4833,183 +5001,403 @@ var x = () => {
|
|
|
4833
5001
|
autofocus: { type: [Boolean, String] },
|
|
4834
5002
|
propOverrides: { default: void 0 },
|
|
4835
5003
|
orientation: { default: void 0 },
|
|
4836
|
-
|
|
4837
|
-
alignment: { default: void 0 },
|
|
4838
|
-
arrowScrollDistance: { default: void 0 },
|
|
4839
|
-
scrollLeftText: { default: void 0 },
|
|
4840
|
-
scrollRightText: { default: void 0 },
|
|
5004
|
+
tabItemAlignment: { default: "start" },
|
|
4841
5005
|
indexChange: {},
|
|
4842
5006
|
onIndexChange: {
|
|
4843
5007
|
type: Function,
|
|
4844
5008
|
default: void 0
|
|
4845
5009
|
},
|
|
4846
|
-
|
|
5010
|
+
valueChange: {},
|
|
5011
|
+
onValueChange: {
|
|
4847
5012
|
type: Function,
|
|
4848
5013
|
default: void 0
|
|
4849
|
-
}
|
|
4850
|
-
tabSelect: {}
|
|
5014
|
+
}
|
|
4851
5015
|
},
|
|
4852
5016
|
setup(i) {
|
|
4853
|
-
let s = v(), l = i, x = p(
|
|
5017
|
+
let s = v(), l = i, x = p(0), S = p(!1), w = p(!1), T = p(!1), E = p(null), D = p(null), O = p(null), k = p(null), j = p(!1), M = p([]), N = p([]), P = p(void 0), F = p(void 0), I = p(null);
|
|
4854
5018
|
u(() => {
|
|
4855
|
-
|
|
5019
|
+
j.value = ee(), L();
|
|
5020
|
+
let { startIndex: e, hashApplied: t } = se();
|
|
5021
|
+
if (x.value = e, S.value = !0, typeof window < "u" && I.value) {
|
|
5022
|
+
ae(), le();
|
|
5023
|
+
let n = e;
|
|
5024
|
+
if (ie(t)) {
|
|
5025
|
+
let e = G();
|
|
5026
|
+
e > -1 && (n = e, x.value = e);
|
|
5027
|
+
}
|
|
5028
|
+
B(n);
|
|
5029
|
+
}
|
|
5030
|
+
ce();
|
|
4856
5031
|
}), d(() => {
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
5032
|
+
let e = O.value;
|
|
5033
|
+
e !== null && (cancelAnimationFrame(e), O.value = null), oe(), D.value?.disconnect(), D.value = null;
|
|
5034
|
+
}), y(() => [l.tabs, S.value], () => {
|
|
5035
|
+
S.value && l.tabs && (ae(), le(), B(x.value));
|
|
5036
|
+
}, {
|
|
5037
|
+
immediate: !0,
|
|
5038
|
+
flush: "post"
|
|
5039
|
+
}), y(() => [l.id, l.propOverrides?.id], () => {
|
|
5040
|
+
(l.id ?? l.propOverrides?.id) && L();
|
|
5041
|
+
}, {
|
|
5042
|
+
immediate: !0,
|
|
5043
|
+
flush: "post"
|
|
5044
|
+
}), y(() => [P.value], () => {
|
|
5045
|
+
P.value && le();
|
|
5046
|
+
}, {
|
|
5047
|
+
immediate: !0,
|
|
5048
|
+
flush: "post"
|
|
5049
|
+
}), y(() => [I.value, l.orientation], () => {
|
|
5050
|
+
if (I.value) {
|
|
5051
|
+
let e = K();
|
|
5052
|
+
if (e?.setAttribute("aria-orientation", l.orientation ?? "horizontal"), e) {
|
|
5053
|
+
let t = l.orientation === "vertical" ? "tablist block wrap" : "tablist";
|
|
5054
|
+
e.setAttribute("focusgroup", t);
|
|
5055
|
+
}
|
|
4870
5056
|
}
|
|
4871
5057
|
}, {
|
|
4872
5058
|
immediate: !0,
|
|
4873
5059
|
flush: "post"
|
|
5060
|
+
}), y(() => [I.value, l.label], () => {
|
|
5061
|
+
if (I.value) {
|
|
5062
|
+
let e = l.label, t = K();
|
|
5063
|
+
e ? (t?.setAttribute("aria-label", e), F.value = e) : F.value &&= (t?.getAttribute("aria-label") === F.value && t?.removeAttribute("aria-label"), void 0);
|
|
5064
|
+
}
|
|
5065
|
+
}, {
|
|
5066
|
+
immediate: !0,
|
|
5067
|
+
flush: "post"
|
|
5068
|
+
}), y(() => [I.value, l.behavior], () => {
|
|
5069
|
+
I.value && (l.behavior === "arrows" ? ae() : oe());
|
|
5070
|
+
}, {
|
|
5071
|
+
immediate: !0,
|
|
5072
|
+
flush: "post"
|
|
5073
|
+
}), y(() => [l.activeIndex], () => {
|
|
5074
|
+
if (l.activeIndex !== void 0) {
|
|
5075
|
+
let e = Number(l.activeIndex);
|
|
5076
|
+
isNaN(e) || (x.value = e);
|
|
5077
|
+
}
|
|
5078
|
+
}, {
|
|
5079
|
+
immediate: !0,
|
|
5080
|
+
flush: "post"
|
|
5081
|
+
}), y(() => [
|
|
5082
|
+
M.value,
|
|
5083
|
+
N.value,
|
|
5084
|
+
x.value,
|
|
5085
|
+
S.value
|
|
5086
|
+
], () => {
|
|
5087
|
+
S.value && M.value.length > 0 && B(x.value);
|
|
5088
|
+
}, {
|
|
5089
|
+
immediate: !0,
|
|
5090
|
+
flush: "post"
|
|
4874
5091
|
});
|
|
4875
|
-
function
|
|
5092
|
+
function L() {
|
|
5093
|
+
P.value = l.id ?? l.propOverrides?.id ?? `tabs-${s}`;
|
|
5094
|
+
}
|
|
5095
|
+
function R() {
|
|
5096
|
+
return l.id ?? l.propOverrides?.id;
|
|
5097
|
+
}
|
|
5098
|
+
function z(e) {
|
|
5099
|
+
let t = M.value;
|
|
5100
|
+
if (t.length > 0) {
|
|
5101
|
+
let n = t[e];
|
|
5102
|
+
if (n?.disabled || n?.getAttribute("aria-disabled") === "true") return;
|
|
5103
|
+
}
|
|
5104
|
+
let n = t[e]?.dataset?.value;
|
|
5105
|
+
if (l.activeIndex !== void 0) {
|
|
5106
|
+
if (e === Number(l.activeIndex)) return;
|
|
5107
|
+
l.onIndexChange && l.onIndexChange(e), l.onValueChange && l.onValueChange(n);
|
|
5108
|
+
return;
|
|
5109
|
+
}
|
|
5110
|
+
x.value !== e && (x.value = e, l.onIndexChange && l.onIndexChange(e), l.onValueChange && l.onValueChange(n), B(e));
|
|
5111
|
+
}
|
|
5112
|
+
function B(e) {
|
|
5113
|
+
let t = M.value, n = N.value, r = e === void 0 ? x.value : e, i = (e) => !!e && !e.disabled && e.getAttribute("aria-disabled") !== "true", a = r;
|
|
5114
|
+
a !== -1 && t.length > 0 && (a < 0 || a >= t.length || !i(t[a])) && (a = t.findIndex((e) => i(e))), a !== r && l.activeIndex === void 0 && (x.value = a);
|
|
5115
|
+
let o = a === -1 ? t.findIndex((e) => i(e)) : a;
|
|
5116
|
+
t.forEach((e, t) => {
|
|
5117
|
+
let n = a === t, r = o === t ? 0 : -1;
|
|
5118
|
+
e.setAttribute("aria-selected", String(n)), j.value || e.setAttribute("tabindex", String(r));
|
|
5119
|
+
}), n.forEach((e, t) => {
|
|
5120
|
+
e.hidden = a !== t;
|
|
5121
|
+
});
|
|
5122
|
+
}
|
|
5123
|
+
function V(e) {
|
|
5124
|
+
let t = e.target.closest("[role=\"tab\"]");
|
|
5125
|
+
if (!t || !I.value || t.closest(".db-tabs") !== I.value) return;
|
|
5126
|
+
let n = M.value.indexOf(t);
|
|
5127
|
+
n !== -1 && (e.preventDefault(), z(n));
|
|
5128
|
+
}
|
|
5129
|
+
function U(e) {
|
|
5130
|
+
if (!I.value) return;
|
|
5131
|
+
let t = e.key;
|
|
5132
|
+
if (!H.includes(t)) return;
|
|
5133
|
+
let n = M.value;
|
|
5134
|
+
if (n.length === 0) return;
|
|
5135
|
+
let r = e.target?.closest("[role=\"tab\"]");
|
|
5136
|
+
if (!r || r.closest(".db-tabs") !== I.value) return;
|
|
5137
|
+
let i = n.indexOf(r);
|
|
5138
|
+
if (i === -1) return;
|
|
5139
|
+
if (t === "Enter" || t === " ") {
|
|
5140
|
+
e.preventDefault(), z(i);
|
|
5141
|
+
return;
|
|
5142
|
+
}
|
|
5143
|
+
if (j.value) return;
|
|
5144
|
+
let a = l.orientation === "vertical", o = a ? "ArrowUp" : "ArrowLeft", s = a ? "ArrowDown" : "ArrowRight", c, u = n.length;
|
|
5145
|
+
if (t === s ? c = (i + 1) % u : t === o ? c = (i - 1 + u) % u : t === "Home" ? c = 0 : t === "End" && (c = u - 1), c !== void 0) {
|
|
5146
|
+
e.preventDefault();
|
|
5147
|
+
let r = t === s || t === "Home";
|
|
5148
|
+
for (let e = 0; e < u; e++) {
|
|
5149
|
+
let e = n[c];
|
|
5150
|
+
if (!e?.disabled && e?.getAttribute("aria-disabled") !== "true") break;
|
|
5151
|
+
c = r ? (c + 1) % u : (c - 1 + u) % u;
|
|
5152
|
+
}
|
|
5153
|
+
let i = n[c];
|
|
5154
|
+
i && !i.disabled && i.getAttribute("aria-disabled") !== "true" && (te(c), i.focus());
|
|
5155
|
+
}
|
|
5156
|
+
}
|
|
5157
|
+
function te(e) {
|
|
5158
|
+
j.value || M.value.forEach((t, n) => {
|
|
5159
|
+
t.setAttribute("tabindex", e === n ? "0" : "-1");
|
|
5160
|
+
});
|
|
5161
|
+
}
|
|
5162
|
+
function W() {
|
|
4876
5163
|
try {
|
|
4877
|
-
|
|
5164
|
+
if (typeof l.tabs == "string") return JSON.parse(l.tabs).map((e) => {
|
|
5165
|
+
let t = e;
|
|
5166
|
+
return !t.ariaLabel && t["aria-label"] ? {
|
|
5167
|
+
...t,
|
|
5168
|
+
ariaLabel: t["aria-label"]
|
|
5169
|
+
} : e;
|
|
5170
|
+
});
|
|
5171
|
+
if (l.tabs) return l.tabs.map((e) => {
|
|
5172
|
+
let t = e;
|
|
5173
|
+
return !t.ariaLabel && t["aria-label"] ? {
|
|
5174
|
+
...t,
|
|
5175
|
+
ariaLabel: t["aria-label"]
|
|
5176
|
+
} : e;
|
|
5177
|
+
});
|
|
4878
5178
|
} catch (e) {
|
|
4879
5179
|
console.error(e);
|
|
4880
5180
|
}
|
|
4881
5181
|
return [];
|
|
4882
5182
|
}
|
|
4883
|
-
function
|
|
4884
|
-
|
|
4885
|
-
w.value = t && e.scrollLeft > 1, T.value = t && e.scrollLeft < e.scrollWidth - e.clientWidth;
|
|
5183
|
+
function ne() {
|
|
5184
|
+
return S.value ? x.value : re();
|
|
4886
5185
|
}
|
|
4887
|
-
function
|
|
4888
|
-
let t =
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
5186
|
+
function re() {
|
|
5187
|
+
let e = W(), t = (e) => !A(e.disabled, "disabled");
|
|
5188
|
+
if (l.activeIndex !== void 0) {
|
|
5189
|
+
let n = Number(l.activeIndex), r = isNaN(n) ? 0 : n;
|
|
5190
|
+
if (e.length > 0 && (r < 0 || r >= e.length || e[r] && !t(e[r]))) {
|
|
5191
|
+
let n = e.findIndex(t);
|
|
5192
|
+
return n > -1 ? n : 0;
|
|
5193
|
+
}
|
|
5194
|
+
return r;
|
|
5195
|
+
}
|
|
5196
|
+
if (l.initialSelectedIndex !== void 0) {
|
|
5197
|
+
let n = Number(l.initialSelectedIndex);
|
|
5198
|
+
if (isNaN(n)) return 0;
|
|
5199
|
+
if (e.length > 0 && n >= e.length) {
|
|
5200
|
+
let n = e.findIndex(t);
|
|
5201
|
+
return n > -1 ? n : 0;
|
|
5202
|
+
}
|
|
5203
|
+
if (e.length > 0 && e[n] && !t(e[n])) {
|
|
5204
|
+
let n = e.findIndex(t);
|
|
5205
|
+
return n > -1 ? n : 0;
|
|
5206
|
+
}
|
|
5207
|
+
return n;
|
|
5208
|
+
}
|
|
5209
|
+
if (l.initialSelectedMode === "manually") return -1;
|
|
5210
|
+
let n = e.findIndex((e) => A(e.active, "active") && t(e));
|
|
5211
|
+
if (n > -1) return n;
|
|
5212
|
+
let r = e.findIndex(t);
|
|
5213
|
+
return r > -1 ? r : 0;
|
|
5214
|
+
}
|
|
5215
|
+
function G() {
|
|
5216
|
+
return M.value.findIndex((e) => e.getAttribute("aria-selected") === "true" && !e.disabled && e.getAttribute("aria-disabled") !== "true");
|
|
5217
|
+
}
|
|
5218
|
+
function ie(e) {
|
|
5219
|
+
return !e && !l.tabs && l.activeIndex === void 0 && l.initialSelectedIndex === void 0 && (l.initialSelectedMode === void 0 || l.initialSelectedMode === "auto");
|
|
5220
|
+
}
|
|
5221
|
+
function K() {
|
|
5222
|
+
return I.value?.querySelector("[role=\"tablist\"]") ?? null;
|
|
5223
|
+
}
|
|
5224
|
+
function q() {
|
|
5225
|
+
let e = K();
|
|
5226
|
+
return !!e && typeof getComputedStyle < "u" && getComputedStyle(e).direction === "rtl";
|
|
5227
|
+
}
|
|
5228
|
+
function J(e) {
|
|
5229
|
+
if (!(e.scrollWidth > e.clientWidth)) {
|
|
5230
|
+
w.value = !1, T.value = !1;
|
|
5231
|
+
return;
|
|
5232
|
+
}
|
|
5233
|
+
let t = Math.abs(e.scrollLeft), n = e.scrollWidth - e.clientWidth;
|
|
5234
|
+
w.value = t > 2, T.value = t < n - 2;
|
|
5235
|
+
}
|
|
5236
|
+
function Y(e) {
|
|
5237
|
+
let t = K();
|
|
5238
|
+
if (!t) return;
|
|
5239
|
+
let n = Number(l.arrowScrollDistance) || 120;
|
|
5240
|
+
!!e !== q() && (n *= -1), t.scrollBy({
|
|
5241
|
+
left: n,
|
|
4892
5242
|
behavior: "smooth"
|
|
4893
5243
|
});
|
|
4894
5244
|
}
|
|
4895
|
-
function
|
|
4896
|
-
if (
|
|
4897
|
-
let e =
|
|
5245
|
+
function ae() {
|
|
5246
|
+
if (I.value) {
|
|
5247
|
+
let e = K();
|
|
4898
5248
|
if (e) {
|
|
4899
|
-
|
|
4900
|
-
t
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
}
|
|
4908
|
-
function N(e) {
|
|
4909
|
-
if (O.value) {
|
|
4910
|
-
let t = Array.from(O.value.querySelectorAll(":is(:scope > db-tab-list .db-tab-item, :scope > .db-tab-list .db-tab-item)")), n = Array.from(O.value.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));
|
|
4911
|
-
for (let r of t) {
|
|
4912
|
-
let i = t.indexOf(r), a = r.querySelector("label"), o = r.querySelector("input");
|
|
4913
|
-
if (o && a) {
|
|
4914
|
-
if (!o.id) {
|
|
4915
|
-
let e = `${x.value}-tab-${i}`;
|
|
4916
|
-
a.setAttribute("for", e), o.id = e, o.setAttribute("name", x.value), n.length > i && o.setAttribute("aria-controls", `${x.value}-tab-panel-${i}`);
|
|
5249
|
+
e.setAttribute("aria-orientation", l.orientation ?? "horizontal");
|
|
5250
|
+
let t = l.orientation === "vertical" ? "tablist block wrap" : "tablist";
|
|
5251
|
+
e.setAttribute("focusgroup", t);
|
|
5252
|
+
let n = l.label;
|
|
5253
|
+
if (n && (e.setAttribute("aria-label", n), F.value = n), l.behavior === "arrows") {
|
|
5254
|
+
if (J(e), !k.value) {
|
|
5255
|
+
let t = () => J(e);
|
|
5256
|
+
k.value = { fn: t }, e.addEventListener("scroll", t);
|
|
4917
5257
|
}
|
|
4918
|
-
if (
|
|
4919
|
-
let
|
|
4920
|
-
|
|
5258
|
+
if (!E.value) {
|
|
5259
|
+
let t = new ResizeObserver(() => {
|
|
5260
|
+
J(e);
|
|
5261
|
+
});
|
|
5262
|
+
t.observe(e), E.value = t;
|
|
4921
5263
|
}
|
|
4922
5264
|
}
|
|
4923
5265
|
}
|
|
4924
|
-
for (let e of n) {
|
|
4925
|
-
if (e.id) continue;
|
|
4926
|
-
let t = n.indexOf(e);
|
|
4927
|
-
e.id = `${x.value}-tab-panel-${t}`, e.setAttribute("aria-labelledby", `${x.value}-tab-${t}`);
|
|
4928
|
-
}
|
|
4929
5266
|
}
|
|
4930
5267
|
}
|
|
4931
|
-
function
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
5268
|
+
function oe() {
|
|
5269
|
+
let e = k.value, t = K();
|
|
5270
|
+
e && t && t.removeEventListener("scroll", e.fn), k.value = null, E.value?.disconnect(), E.value = null, w.value = !1, T.value = !1;
|
|
5271
|
+
}
|
|
5272
|
+
function X(e) {
|
|
5273
|
+
return e.parentElement?.closest(".db-tabs, [role=\"tabpanel\"]") === I.value;
|
|
5274
|
+
}
|
|
5275
|
+
function se() {
|
|
5276
|
+
let e = re(), t = !1, n = R();
|
|
5277
|
+
if (typeof window < "u" && window.location.hash && n) {
|
|
5278
|
+
let r = window.location.hash.substring(1), i = `${n}-tab-`;
|
|
5279
|
+
if (r.startsWith(i)) {
|
|
5280
|
+
let n = r.replace(i, ""), a = parseInt(n, 10);
|
|
5281
|
+
isNaN(a) || (e = a, t = !0);
|
|
4943
5282
|
}
|
|
4944
5283
|
}
|
|
5284
|
+
return {
|
|
5285
|
+
startIndex: e,
|
|
5286
|
+
hashApplied: t
|
|
5287
|
+
};
|
|
5288
|
+
}
|
|
5289
|
+
function ce() {
|
|
5290
|
+
if (!I.value) return;
|
|
5291
|
+
let e = new MutationObserver((e) => {
|
|
5292
|
+
let t = (e) => {
|
|
5293
|
+
let t = e;
|
|
5294
|
+
return !!t.matches && (t.matches("[role=\"tab\"], [role=\"tabpanel\"]") || !!t.querySelector?.("[role=\"tab\"], [role=\"tabpanel\"]"));
|
|
5295
|
+
}, n = e.some((e) => Array.from(e.addedNodes).some(t) || Array.from(e.removedNodes).some(t)), r = e.some((e) => e.type === "characterData"), i = e.some((e) => e.type === "attributes" && (e.attributeName === "disabled" || e.attributeName === "aria-disabled") && e.target?.getAttribute?.("role") === "tab");
|
|
5296
|
+
if (!n && !r && !i) return;
|
|
5297
|
+
let a = O.value;
|
|
5298
|
+
a !== null && cancelAnimationFrame(a), O.value = requestAnimationFrame(() => {
|
|
5299
|
+
O.value = null, ae(), n && le(), i && B(x.value);
|
|
5300
|
+
});
|
|
5301
|
+
});
|
|
5302
|
+
e.observe(I.value, {
|
|
5303
|
+
childList: !0,
|
|
5304
|
+
subtree: !0,
|
|
5305
|
+
characterData: !0,
|
|
5306
|
+
attributes: !0,
|
|
5307
|
+
attributeFilter: ["disabled", "aria-disabled"]
|
|
5308
|
+
}), D.value = e;
|
|
5309
|
+
}
|
|
5310
|
+
function le() {
|
|
5311
|
+
let e = l.id ?? l.propOverrides?.id ?? P.value;
|
|
5312
|
+
if (!e || !I.value) return;
|
|
5313
|
+
let t = K(), n = Array.from(I.value?.querySelectorAll("[role=\"tabpanel\"]") ?? []).filter((e) => X(e));
|
|
5314
|
+
if (!t) return;
|
|
5315
|
+
let r = Array.from(t.querySelectorAll("[role=\"tab\"]"));
|
|
5316
|
+
M.value = r, N.value = n, r.forEach((t, r) => {
|
|
5317
|
+
let i = n[r], a = `${e}-tab-${r}`;
|
|
5318
|
+
if (t.id = a, i) {
|
|
5319
|
+
let n = `${e}-tab-panel-${r}`;
|
|
5320
|
+
i.id = n, t.setAttribute("aria-controls", n), i.setAttribute("aria-labelledby", a);
|
|
5321
|
+
}
|
|
5322
|
+
});
|
|
4945
5323
|
}
|
|
4946
5324
|
return (s, u) => (f(), r("div", {
|
|
4947
5325
|
ref_key: "_ref",
|
|
4948
|
-
ref:
|
|
4949
|
-
id: i.id ?? i.propOverrides?.id,
|
|
5326
|
+
ref: I,
|
|
5327
|
+
id: i.id ?? i.propOverrides?.id ?? P.value,
|
|
4950
5328
|
class: c(_(C)("db-tabs", l.class)),
|
|
4951
5329
|
"data-orientation": i.orientation,
|
|
4952
5330
|
"data-scroll-behavior": i.behavior,
|
|
4953
|
-
"data-alignment": i.
|
|
4954
|
-
"data-width": i.
|
|
4955
|
-
|
|
4956
|
-
|
|
5331
|
+
"data-tab-item-alignment": i.tabItemAlignment,
|
|
5332
|
+
"data-tab-item-width": i.tabItemWidth,
|
|
5333
|
+
"data-initial-selected-mode": i.initialSelectedMode,
|
|
5334
|
+
onClick: u[0] ||= async (e) => V(e),
|
|
5335
|
+
onKeydown: u[1] ||= async (e) => U(e)
|
|
4957
5336
|
}, [
|
|
4958
|
-
w.value ? (f(), t(
|
|
5337
|
+
w.value ? (f(), t(Ve, {
|
|
4959
5338
|
key: 0,
|
|
4960
|
-
class: "
|
|
5339
|
+
class: "tabs-scroll-start",
|
|
4961
5340
|
variant: "ghost",
|
|
4962
5341
|
icon: "chevron_left",
|
|
4963
5342
|
type: "button",
|
|
4964
5343
|
noText: !0,
|
|
4965
|
-
onClick: (e) =>
|
|
5344
|
+
onClick: (e) => Y(!0)
|
|
4966
5345
|
}, {
|
|
4967
|
-
default: b(() => [a(g(i.
|
|
5346
|
+
default: b(() => [a(g(i.scrollStartLabel), 1)]),
|
|
4968
5347
|
_: 1
|
|
4969
5348
|
}, 8, ["onClick"])) : n("", !0),
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
5349
|
+
W().length ? (f(), r(e, { key: 1 }, [o(Qr, {
|
|
5350
|
+
orientation: i.orientation,
|
|
5351
|
+
"aria-label": i.label
|
|
5352
|
+
}, {
|
|
5353
|
+
default: b(() => [(f(!0), r(e, null, m(W(), (e, n) => (f(), t(Xr, {
|
|
5354
|
+
key: i.label + "tab-item" + n,
|
|
5355
|
+
"aria-label": e.ariaLabel,
|
|
4974
5356
|
label: e.label,
|
|
4975
|
-
iconTrailing: e.iconTrailing,
|
|
4976
5357
|
icon: e.icon,
|
|
4977
|
-
|
|
5358
|
+
showIcon: e.showIcon,
|
|
5359
|
+
iconTrailing: e.iconTrailing,
|
|
5360
|
+
showIconTrailing: e.showIconTrailing,
|
|
5361
|
+
disabled: e.disabled,
|
|
5362
|
+
active: ne() !== -1 && ne() === n,
|
|
5363
|
+
value: e.value
|
|
4978
5364
|
}, null, 8, [
|
|
4979
|
-
"
|
|
5365
|
+
"aria-label",
|
|
4980
5366
|
"label",
|
|
4981
|
-
"iconTrailing",
|
|
4982
5367
|
"icon",
|
|
4983
|
-
"
|
|
5368
|
+
"showIcon",
|
|
5369
|
+
"iconTrailing",
|
|
5370
|
+
"showIconTrailing",
|
|
5371
|
+
"disabled",
|
|
5372
|
+
"active",
|
|
5373
|
+
"value"
|
|
4984
5374
|
]))), 128))]),
|
|
4985
5375
|
_: 1
|
|
4986
|
-
}), (f(!0), r(e, null, m(
|
|
4987
|
-
key: i.
|
|
5376
|
+
}, 8, ["orientation", "aria-label"]), (f(!0), r(e, null, m(W(), (e, n) => (f(), t(ei, {
|
|
5377
|
+
key: i.label + "tab-panel" + n,
|
|
4988
5378
|
content: e.content
|
|
4989
5379
|
}, {
|
|
4990
5380
|
default: b(() => [a(g(e.children), 1)]),
|
|
4991
5381
|
_: 2
|
|
4992
|
-
}, 1032, ["content"]))), 128))], 64)) :
|
|
4993
|
-
T.value ? (f(), t(
|
|
4994
|
-
key:
|
|
4995
|
-
class: "
|
|
5382
|
+
}, 1032, ["content"]))), 128))], 64)) : h(s.$slots, "default", { key: 2 }),
|
|
5383
|
+
T.value ? (f(), t(Ve, {
|
|
5384
|
+
key: 3,
|
|
5385
|
+
class: "tabs-scroll-end",
|
|
4996
5386
|
variant: "ghost",
|
|
4997
5387
|
icon: "chevron_right",
|
|
4998
|
-
type: "button",
|
|
4999
5388
|
noText: !0,
|
|
5000
|
-
onClick: (e) =>
|
|
5389
|
+
onClick: (e) => Y(!1)
|
|
5001
5390
|
}, {
|
|
5002
|
-
default: b(() => [a(g(i.
|
|
5391
|
+
default: b(() => [a(g(i.scrollEndLabel), 1)]),
|
|
5003
5392
|
_: 1
|
|
5004
|
-
}, 8, ["onClick"])) : n("", !0)
|
|
5005
|
-
|
|
5006
|
-
], 42, bi));
|
|
5393
|
+
}, 8, ["onClick"])) : n("", !0)
|
|
5394
|
+
], 42, Di));
|
|
5007
5395
|
}
|
|
5008
|
-
}),
|
|
5396
|
+
}), ki = ["scrollbar", "arrows"], Ai = ["auto", "manually"], ji = ["static", "removable"], Mi = [
|
|
5009
5397
|
"data-variant",
|
|
5010
5398
|
"data-hide-asterisk",
|
|
5011
5399
|
"data-hide-label"
|
|
5012
|
-
],
|
|
5400
|
+
], Ni = ["for"], Pi = [
|
|
5013
5401
|
"aria-invalid",
|
|
5014
5402
|
"data-custom-validity",
|
|
5015
5403
|
"data-field-sizing",
|
|
@@ -5031,10 +5419,10 @@ var x = () => {
|
|
|
5031
5419
|
"placeholder",
|
|
5032
5420
|
"rows",
|
|
5033
5421
|
"cols"
|
|
5034
|
-
],
|
|
5422
|
+
], Fi = {
|
|
5035
5423
|
"data-visually-hidden": "true",
|
|
5036
5424
|
role: "status"
|
|
5037
|
-
},
|
|
5425
|
+
}, Ii = /* @__PURE__ */ s({
|
|
5038
5426
|
name: "DBTextarea",
|
|
5039
5427
|
__name: "textarea",
|
|
5040
5428
|
props: {
|
|
@@ -5145,8 +5533,8 @@ var x = () => {
|
|
|
5145
5533
|
flush: "post"
|
|
5146
5534
|
}), y(() => [x.value], () => {
|
|
5147
5535
|
if (x.value) {
|
|
5148
|
-
let e = x.value +
|
|
5149
|
-
S.value = e, w.value = x.value +
|
|
5536
|
+
let e = x.value + X;
|
|
5537
|
+
S.value = e, w.value = x.value + se, T.value = x.value + ce, I(h.message, h.showMessage) && (k.value = e), z();
|
|
5150
5538
|
}
|
|
5151
5539
|
}, {
|
|
5152
5540
|
immediate: !0,
|
|
@@ -5159,7 +5547,7 @@ var x = () => {
|
|
|
5159
5547
|
}), y(() => [L.value], () => {
|
|
5160
5548
|
if (L.value) {
|
|
5161
5549
|
let e = P.value;
|
|
5162
|
-
e || (e = new AbortController(), P.value = e),
|
|
5550
|
+
e || (e = new AbortController(), P.value = e), Ze(L.value, {
|
|
5163
5551
|
value: h.value,
|
|
5164
5552
|
defaultValue: void 0
|
|
5165
5553
|
}, (e) => {
|
|
@@ -5177,10 +5565,10 @@ var x = () => {
|
|
|
5177
5565
|
!L.value?.validity.valid || h.validation === "invalid" ? (k.value = T.value, D.value = h.invalidMessage || L.value?.validationMessage || "TODO: Add an invalidMessage", E() && (N.value = D.value, O(() => N.value = "", 1e3))) : R() && L.value?.validity.valid && (h.required || h.minLength || h.maxLength) ? (k.value = w.value, E() && (N.value = h.validMessage ?? "TODO: Add a validMessage", O(() => N.value = "", 1e3))) : I(h.message, h.showMessage) ? k.value = S.value : k.value = void 0;
|
|
5178
5566
|
}
|
|
5179
5567
|
function B(e, t) {
|
|
5180
|
-
h.input && h.input(e), M.value = e.target.value, h.onInput && h.onInput(e),
|
|
5568
|
+
h.input && h.input(e), M.value = e.target.value, h.onInput && h.onInput(e), Je(m, e), z();
|
|
5181
5569
|
}
|
|
5182
5570
|
function V(e, t) {
|
|
5183
|
-
h.onChange && h.onChange(e),
|
|
5571
|
+
h.onChange && h.onChange(e), Je(m, e), z();
|
|
5184
5572
|
}
|
|
5185
5573
|
function H(e) {
|
|
5186
5574
|
h.onBlur && h.onBlur(e);
|
|
@@ -5190,7 +5578,7 @@ var x = () => {
|
|
|
5190
5578
|
}
|
|
5191
5579
|
function U() {
|
|
5192
5580
|
let e = h.id ?? h.propOverrides?.id ?? `textarea-${l}`;
|
|
5193
|
-
x.value = e, S.value = e +
|
|
5581
|
+
x.value = e, S.value = e + X, w.value = e + se, T.value = e + ce;
|
|
5194
5582
|
}
|
|
5195
5583
|
return (s, l) => (f(), r("div", {
|
|
5196
5584
|
class: c(_(C)("db-textarea", h.class)),
|
|
@@ -5198,7 +5586,7 @@ var x = () => {
|
|
|
5198
5586
|
"data-hide-asterisk": _(F)(e.showRequiredAsterisk),
|
|
5199
5587
|
"data-hide-label": _(F)(e.showLabel)
|
|
5200
5588
|
}, [
|
|
5201
|
-
i("label", { for: x.value }, g(e.label ?? _("LABEL SHOULD BE SET")), 9,
|
|
5589
|
+
i("label", { for: x.value }, g(e.label ?? _("LABEL SHOULD BE SET")), 9, Ni),
|
|
5202
5590
|
i("textarea", {
|
|
5203
5591
|
"aria-invalid": e.validation === "invalid",
|
|
5204
5592
|
"data-custom-validity": e.validation,
|
|
@@ -5227,7 +5615,7 @@ var x = () => {
|
|
|
5227
5615
|
placeholder: e.placeholder ?? _(" "),
|
|
5228
5616
|
rows: _(j)(e.rows, _(4)),
|
|
5229
5617
|
cols: _(j)(e.cols)
|
|
5230
|
-
}, g(e.value), 41,
|
|
5618
|
+
}, g(e.value), 41, Pi),
|
|
5231
5619
|
_(I)(e.message, e.showMessage) ? (f(), t($, {
|
|
5232
5620
|
key: 0,
|
|
5233
5621
|
size: "small",
|
|
@@ -5254,50 +5642,50 @@ var x = () => {
|
|
|
5254
5642
|
default: b(() => [a(g(D.value), 1)]),
|
|
5255
5643
|
_: 1
|
|
5256
5644
|
}, 8, ["id"]),
|
|
5257
|
-
i("span",
|
|
5258
|
-
], 10,
|
|
5645
|
+
i("span", Fi, g(N.value), 1)
|
|
5646
|
+
], 10, Mi));
|
|
5259
5647
|
}
|
|
5260
|
-
}),
|
|
5648
|
+
}), Li = [
|
|
5261
5649
|
"none",
|
|
5262
5650
|
"both",
|
|
5263
5651
|
"horizontal",
|
|
5264
5652
|
"vertical"
|
|
5265
|
-
],
|
|
5653
|
+
], Ri = [
|
|
5266
5654
|
"hard",
|
|
5267
5655
|
"soft",
|
|
5268
5656
|
"off"
|
|
5269
|
-
],
|
|
5657
|
+
], zi = ["description", "label"], Bi = [
|
|
5270
5658
|
"adaptive",
|
|
5271
5659
|
"neutral",
|
|
5272
5660
|
"critical",
|
|
5273
5661
|
"informational",
|
|
5274
5662
|
"warning",
|
|
5275
5663
|
"successful"
|
|
5276
|
-
],
|
|
5664
|
+
], Vi = [
|
|
5277
5665
|
"medium",
|
|
5278
5666
|
"small",
|
|
5279
5667
|
"large",
|
|
5280
5668
|
"none"
|
|
5281
|
-
],
|
|
5669
|
+
], Hi = [
|
|
5282
5670
|
"medium",
|
|
5283
5671
|
"small",
|
|
5284
5672
|
"large",
|
|
5285
5673
|
"none"
|
|
5286
|
-
],
|
|
5674
|
+
], Ui = [
|
|
5287
5675
|
"left",
|
|
5288
5676
|
"right",
|
|
5289
5677
|
"left-start",
|
|
5290
5678
|
"left-end",
|
|
5291
5679
|
"right-start",
|
|
5292
5680
|
"right-end"
|
|
5293
|
-
],
|
|
5681
|
+
], Wi = [
|
|
5294
5682
|
"top",
|
|
5295
5683
|
"bottom",
|
|
5296
5684
|
"top-start",
|
|
5297
5685
|
"top-end",
|
|
5298
5686
|
"bottom-start",
|
|
5299
5687
|
"bottom-end"
|
|
5300
|
-
],
|
|
5688
|
+
], Gi = [...Ui, ...Wi], Ki = [
|
|
5301
5689
|
"none",
|
|
5302
5690
|
"3x-large",
|
|
5303
5691
|
"2x-large",
|
|
@@ -5308,25 +5696,25 @@ var x = () => {
|
|
|
5308
5696
|
"x-small",
|
|
5309
5697
|
"2x-small",
|
|
5310
5698
|
"3x-small"
|
|
5311
|
-
],
|
|
5699
|
+
], qi = ["horizontal", "vertical"], Ji = ["full", "auto"], Yi = [
|
|
5312
5700
|
"full",
|
|
5313
5701
|
"medium",
|
|
5314
5702
|
"large",
|
|
5315
5703
|
"small"
|
|
5316
|
-
],
|
|
5704
|
+
], Xi = [
|
|
5317
5705
|
"none",
|
|
5318
5706
|
"slow",
|
|
5319
5707
|
"fast"
|
|
5320
|
-
],
|
|
5708
|
+
], Zi = ["auto", "fixed"], Qi = ["small", "medium"], $i = ["weak", "strong"], ea = [
|
|
5321
5709
|
"invalid",
|
|
5322
5710
|
"valid",
|
|
5323
5711
|
"no-validation"
|
|
5324
|
-
],
|
|
5712
|
+
], ta = ["fixed", "content"], na = ["above", "floating"], ra = ["leading", "trailing"], ia = /* @__PURE__ */ "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".split("."), aa = [
|
|
5325
5713
|
"_self",
|
|
5326
5714
|
"_blank",
|
|
5327
5715
|
"_parent",
|
|
5328
5716
|
"_top"
|
|
5329
|
-
],
|
|
5717
|
+
], oa = [
|
|
5330
5718
|
"no-referrer",
|
|
5331
5719
|
"no-referrer-when-downgrade",
|
|
5332
5720
|
"origin",
|
|
@@ -5335,10 +5723,10 @@ var x = () => {
|
|
|
5335
5723
|
"strict-origin",
|
|
5336
5724
|
"strict-origin-when-cross-origin",
|
|
5337
5725
|
"unsafe-url"
|
|
5338
|
-
],
|
|
5726
|
+
], sa = [
|
|
5339
5727
|
"start",
|
|
5340
5728
|
"center",
|
|
5341
5729
|
"end"
|
|
5342
5730
|
];
|
|
5343
5731
|
//#endregion
|
|
5344
|
-
export {
|
|
5732
|
+
export { ie as AccordionBehaviorList, G as AccordionVariantList, sa as AlignmentList, ia as AutoCompleteList, Le as BadgePlacementList, Ue as ButtonTypeList, He as ButtonVariantList, Te as COLOR, Ee as COLORS, De as COLORS_SIMPLE, Q as COLOR_CONST, we as COLOR_SIMPLE, Ke as CardBehaviorList, qe as CardElevationLevelList, rn as CustomSelectDropdownWidthList, sn as CustomSelectListItemTypeList, re as DBAccordion, W as DBAccordionItem, Ie as DBBadge, ze as DBBrand, Ve as DBButton, Ge as DBCard, rt as DBCheckbox, at as DBCustomButton, nn as DBCustomSelect, xt as DBCustomSelectDropdown, on as DBCustomSelectFormField, kt as DBCustomSelectList, Dt as DBCustomSelectListItem, un as DBDivider, gn as DBDrawer, vn as DBDrawerFooter, Sn as DBDrawerHeader, Un as DBHeader, Gn as DBIcon, $ as DBInfotext, It as DBInput, Yn as DBLink, er as DBNavigation, ar as DBNavigationItem, ur as DBNotification, hr as DBPage, br as DBPopover, Cr as DBRadio, Tr as DBSection, Fr as DBSelect, Lr as DBStack, Kr as DBSwitch, Xr as DBTabItem, Qr as DBTabList, ei as DBTabPanel, gi as DBTable, ci as DBTableBody, vi as DBTableCaption, Ei as DBTableColumnsSizeList, ni as DBTableDataCell, Ci as DBTableDividerList, ui as DBTableFooter, fi as DBTableHead, ii as DBTableHeaderCell, yi as DBTableHeaderCellScopeList, wi as DBTableMobileVariantList, oi as DBTableRow, xi as DBTableRowSizeList, bi as DBTableRowSubHeaderEmphasisList, Ti as DBTableStickyHeaderList, Si as DBTableVariantList, Oi as DBTabs, Bt as DBTag, Ii as DBTextarea, Rt as DBTooltip, Ne as DB_UX_LOCAL_STORAGE_FRAMEWORK, Pe as DB_UX_LOCAL_STORAGE_MODE, me as DEFAULT_BACK, ve as DEFAULT_BURGER_MENU, xe as DEFAULT_CLOSE_BUTTON, ue as DEFAULT_DATALIST_ID_SUFFIX, ye as DEFAULT_ICON, K as DEFAULT_ID, fe as DEFAULT_INVALID_MESSAGE, ce as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, q as DEFAULT_LABEL, ae as DEFAULT_LABEL_ID_SUFFIX, Y as DEFAULT_MESSAGE, X as DEFAULT_MESSAGE_ID_SUFFIX, J as DEFAULT_PLACEHOLDER, le as DEFAULT_PLACEHOLDER_ID_SUFFIX, pe as DEFAULT_REMOVE, be as DEFAULT_ROWS, ge as DEFAULT_SCROLL_LEFT, _e as DEFAULT_SCROLL_RIGHT, he as DEFAULT_SELECTED, oe as DEFAULT_SELECT_ID_SUFFIX, de as DEFAULT_VALID_MESSAGE, se as DEFAULT_VALID_MESSAGE_ID_SUFFIX, Ae as DEFAULT_VIEWPORT, Ce as DENSITIES, Se as DENSITY, Z as DENSITY_CONST, je as DESKTOP_VIEWPORT, dn as DividerMarginList, fn as DividerVariantList, st as DocumentClickListener, ct as DocumentScrollListener, Cn as DrawerBackdropList, Dn as DrawerContainerSizeList, wn as DrawerDirectionList, En as DrawerPositionList, Tn as DrawerVariantList, $i as EmphasisList, ta as FieldSizingList, Ki as GapSpacingList, Kn as IconWeightList, qn as InputTypeList, ra as LabelVariantHorizontalList, na as LabelVariantList, Qn as LinkContentList, oa as LinkReferrerPolicyList, Zn as LinkSizeList, aa as LinkTargetList, Xn as LinkVariantList, Hi as MarginList, Yi as MaxWidthList, H as NAVIGATION_KEYS, kn as NavigationItemSafeTriangle, pr as NotificationAriaLiveList, fr as NotificationLinkVariantList, dr as NotificationVariantList, qi as OrientationList, _r as PageDocumentOverflowList, gr as PageVariantList, Ui as PlacementHorizontalList, Gi as PlacementList, Wi as PlacementVerticalList, Xi as PopoverDelayList, Zi as PopoverWidthList, Oe as SEMANTIC, ke as SEMANTICS, cn as SelectedTypeList, Bi as SemanticList, Qi as SizeList, Vi as SpacingList, Br as StackAlignmentList, zr as StackDirectionList, Vr as StackJustifyContentList, Rr as StackVariantList, Me as TESTING_VIEWPORTS, ki as TabsBehaviorList, Ai as TabsInitialSelectedModeList, ji as TagBehaviorList, Li as TextareaResizeList, Ri as TextareaWrapList, zi as TooltipVariantList, ea as ValidationList, Ji as WidthList, S as addAttributeToChildren, C as cls, O as delay, A as getBoolean, k as getBooleanAsString, ut as getFloatingProps, F as getHideProp, N as getInputValue, V as getNotificationRole, j as getNumber, z as getOptionKey, L as getSearchInput, M as getStep, ht as handleDataOutside, lt as handleFixedDropdown, mt as handleFixedPopover, ee as hasFocusgroupSupport, E as hasVoiceOver, w as isArrayOfStrings, On as isEventTargetNavigationItem, D as isIOSSafari, B as isKeyboardEvent, I as stringPropVisible, x as uuid };
|