@firstnoodle-ui/bui 0.0.78 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bui.css +1 -1
- package/dist/index.mjs +681 -680
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Lt = Object.defineProperty;
|
|
2
2
|
var yt = (n, t, e) => t in n ? Lt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var I1 = (n, t, e) => yt(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { createElementBlock as i, openBlock as o, renderSlot as E, createElementVNode as d, defineComponent as $, toDisplayString as K, ref as y, watch as r1, computed as O, createBlock as V, createCommentVNode as k, normalizeClass as T, normalizeStyle as n1, createVNode as w, unref as
|
|
5
|
-
import { useRoute as J1, useRouter as
|
|
4
|
+
import { createElementBlock as i, openBlock as o, renderSlot as E, createElementVNode as d, defineComponent as $, toDisplayString as K, ref as y, watch as r1, computed as O, createBlock as V, createCommentVNode as k, normalizeClass as T, normalizeStyle as n1, createVNode as w, unref as p, withCtx as Z, resolveDynamicComponent as D1, provide as Ht, onMounted as a1, withModifiers as F, Fragment as M, renderList as m1, onBeforeMount as A1, toRef as Vt, onUnmounted as N1, onBeforeUnmount as T1, nextTick as V1, createStaticVNode as p1, Teleport as U1, withDirectives as W1, vShow as G1, Transition as ue, useSlots as R1, withKeys as _, createSlots as Re, vModelText as kt, reactive as Ee, mergeProps as wt, createTextVNode as Oe, resolveComponent as Mt, getCurrentInstance as Ie } from "vue";
|
|
5
|
+
import { useRoute as J1, useRouter as pe, onBeforeRouteUpdate as xe } from "vue-router";
|
|
6
6
|
import { size as Pe, autoUpdate as Zt, offset as $t, flip as Dt, shift as Ve, limitShift as Tt, computePosition as Bt } from "@floating-ui/dom";
|
|
7
7
|
import oe from "debounce";
|
|
8
8
|
import { Extension as Fe } from "@tiptap/core";
|
|
@@ -82,7 +82,7 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
82
82
|
},
|
|
83
83
|
emits: ["update:modelValue", "change"],
|
|
84
84
|
setup(n, { emit: t }) {
|
|
85
|
-
const e = n, l = t, s = y(), r = y(), a = y(),
|
|
85
|
+
const e = n, l = t, s = y(), r = y(), a = y(), c = y(), h = y(null), m = y(null), C = y(e.modelValue), u = y(100), g = y(!1), f = y(0), b = y(0), v = y(1), L = y(1), D = y(0), A = y(0), H = y(0), B = y(0);
|
|
86
86
|
r1(
|
|
87
87
|
() => e.modelValue,
|
|
88
88
|
(N) => {
|
|
@@ -135,10 +135,10 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
135
135
|
}
|
|
136
136
|
W.value = "";
|
|
137
137
|
}, Q = (N) => {
|
|
138
|
-
g.value = !0,
|
|
138
|
+
g.value = !0, f.value = N.clientX - H.value, b.value = N.clientY - B.value, window.addEventListener("mousemove", Y), window.addEventListener("mouseup", l1);
|
|
139
139
|
}, Y = (N) => {
|
|
140
140
|
if (g.value) {
|
|
141
|
-
let W = N.clientX -
|
|
141
|
+
let W = N.clientX - f.value, s1 = N.clientY - b.value;
|
|
142
142
|
const v1 = i1 / 2, x = i1 / 2, U = v1 - u.value / 2, q = v1 + u.value / 2, d1 = x - u.value / 2, k1 = x + u.value / 2, L1 = D.value * v.value, w1 = A.value * v.value;
|
|
143
143
|
W = Math.min(W, U), W = Math.max(W, q - L1), s1 = Math.min(s1, d1), s1 = Math.max(s1, k1 - w1), H.value = W, B.value = s1;
|
|
144
144
|
}
|
|
@@ -167,10 +167,10 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
167
167
|
s1
|
|
168
168
|
), e.cropShape === "circle" && W.restore();
|
|
169
169
|
const w1 = N.toDataURL("image/png");
|
|
170
|
-
C.value = w1, l("update:modelValue", w1), l("change", w1), (z =
|
|
170
|
+
C.value = w1, l("update:modelValue", w1), l("change", w1), (z = c.value) == null || z.close();
|
|
171
171
|
}, g1 = () => {
|
|
172
172
|
var N;
|
|
173
|
-
(N =
|
|
173
|
+
(N = c.value) == null || N.close(), h.value = null;
|
|
174
174
|
};
|
|
175
175
|
return (N, W) => (o(), i("div", Ut, [
|
|
176
176
|
d("div", {
|
|
@@ -184,11 +184,11 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
184
184
|
alt: "Avatar",
|
|
185
185
|
class: "w-full h-full object-cover"
|
|
186
186
|
}, null, 8, Wt)) : (o(), i("div", Yt, [
|
|
187
|
-
w(
|
|
187
|
+
w(p(t1), { name: "user" }),
|
|
188
188
|
W[0] || (W[0] = d("span", { class: "text-center" }, "Click to add an avatar", -1))
|
|
189
189
|
])),
|
|
190
190
|
N.disabled ? k("", !0) : (o(), i("div", jt, [
|
|
191
|
-
w(
|
|
191
|
+
w(p(t1), {
|
|
192
192
|
name: "edit",
|
|
193
193
|
class: "text-white size-8"
|
|
194
194
|
})
|
|
@@ -202,10 +202,10 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
202
202
|
class: "hidden",
|
|
203
203
|
onChange: u1
|
|
204
204
|
}, null, 544),
|
|
205
|
-
h.value ? (o(), V(
|
|
205
|
+
h.value ? (o(), V(p(i2), {
|
|
206
206
|
key: 0,
|
|
207
207
|
ref_key: "cropModalRef",
|
|
208
|
-
ref:
|
|
208
|
+
ref: c,
|
|
209
209
|
title: "Crop Avatar",
|
|
210
210
|
"width-class": "max-w-xl",
|
|
211
211
|
onClose: g1
|
|
@@ -285,7 +285,7 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
285
285
|
], -1)),
|
|
286
286
|
d("div", e5, [
|
|
287
287
|
d("section", t5, [
|
|
288
|
-
w(
|
|
288
|
+
w(p(j), {
|
|
289
289
|
icon: "plus",
|
|
290
290
|
variant: "outlineSubtle",
|
|
291
291
|
class: "z-0 hover:z-10 focus:z-10 active:z-10",
|
|
@@ -293,7 +293,7 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
293
293
|
style: { borderRadius: "8px 0 0 8px" },
|
|
294
294
|
onClick: R
|
|
295
295
|
}, null, 8, ["disabled"]),
|
|
296
|
-
w(
|
|
296
|
+
w(p(j), {
|
|
297
297
|
icon: "dash",
|
|
298
298
|
variant: "outlineSubtle",
|
|
299
299
|
class: "z-0 hover:z-10 focus:z-10 active:z-10 -ml-px",
|
|
@@ -312,12 +312,12 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
312
312
|
])
|
|
313
313
|
]),
|
|
314
314
|
footer: Z(() => [
|
|
315
|
-
w(
|
|
315
|
+
w(p(o1), {
|
|
316
316
|
class: "w-full",
|
|
317
317
|
justify: "between"
|
|
318
318
|
}, {
|
|
319
319
|
default: Z(() => [
|
|
320
|
-
w(
|
|
320
|
+
w(p(j), {
|
|
321
321
|
disabled: N.disabled,
|
|
322
322
|
variant: "outlineSubtle",
|
|
323
323
|
label: "Upload",
|
|
@@ -325,7 +325,7 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
325
325
|
onClick: P
|
|
326
326
|
}, null, 8, ["disabled"]),
|
|
327
327
|
d("div", l5, [
|
|
328
|
-
w(
|
|
328
|
+
w(p(Y1), {
|
|
329
329
|
order: "confirm-last",
|
|
330
330
|
"confirm-icon": "check",
|
|
331
331
|
"confirm-label": "Save",
|
|
@@ -377,7 +377,7 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
377
377
|
right: t.inside ? "0.15em" : "-0.3em"
|
|
378
378
|
})
|
|
379
379
|
}, [
|
|
380
|
-
w(
|
|
380
|
+
w(p(et))
|
|
381
381
|
], 4));
|
|
382
382
|
}
|
|
383
383
|
}), j = /* @__PURE__ */ $({
|
|
@@ -407,17 +407,17 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
407
407
|
},
|
|
408
408
|
emits: ["click", "blur"],
|
|
409
409
|
setup(n, { expose: t, emit: e }) {
|
|
410
|
-
const l = n, s = e, r = y(l.routerLinkTo ? "router-link" : "button"), a = y(),
|
|
411
|
-
const
|
|
412
|
-
return l.variant === "fill" || l.variant === "destructive" ?
|
|
410
|
+
const l = n, s = e, r = y(l.routerLinkTo ? "router-link" : "button"), a = y(), c = y(), h = O(() => {
|
|
411
|
+
const f = ["flex-none size-4"];
|
|
412
|
+
return l.variant === "fill" || l.variant === "destructive" ? f.push("text-light") : l.variant === "outline" || l.variant === "text" ? f.push("text-blue-500") : l.variant === "outlineSubtle" || l.variant === "textSubtle" ? f.push("text-slate-700 dark:text-slate-200") : l.variant === "outlineDestructive" && f.push("text-red-500"), f.join(" ");
|
|
413
413
|
}), m = O(() => {
|
|
414
|
-
const
|
|
414
|
+
const f = [
|
|
415
415
|
"z-0 relative overflow-hidden min-w-0 inline-flex items-center gap-1 border",
|
|
416
416
|
"focus:z-10 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-black dark:focus-visible:outline-white"
|
|
417
417
|
];
|
|
418
|
-
switch (l.rounded && l.label ?
|
|
418
|
+
switch (l.rounded && l.label ? f.push(l.small ? "px-2" : "px-3") : f.push((l.loading || l.icon) && !l.label ? "px-0" : "px-2"), l.small ? f.push("h-6 text-xs") : f.push("h-8 text-sm"), l.icon && !l.label && (l.small ? f.push("w-6") : f.push("w-8")), l.disabled ? f.push("opacity-75 cursor-not-allowed") : f.push("cursor-pointer"), l.fullwidth && f.push("w-full"), f.push(l.spaceBetween ? "justify-between" : "justify-center"), l.rounded ? f.push("rounded-full") : f.push(l.small ? "rounded" : "rounded-lg"), l.variant) {
|
|
419
419
|
case "fill":
|
|
420
|
-
|
|
420
|
+
f.push(
|
|
421
421
|
...l.focus ? ["text-white bg-blue-700 border-blue-700 dark:bg-blue-500 dark:border-blue-500"] : [
|
|
422
422
|
"bg-blue-500 hover:bg-blue-600 focus-visible:bg-blue-600 active:bg-blue-700",
|
|
423
423
|
"border border-blue-500 hover:border-blue-600 focus-visible:border-blue-600 active:border-blue-700",
|
|
@@ -428,7 +428,7 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
428
428
|
);
|
|
429
429
|
break;
|
|
430
430
|
case "outline":
|
|
431
|
-
|
|
431
|
+
f.push(
|
|
432
432
|
...l.focus ? ["bg-blue-200 border-blue-700 text-blue-700 dark:bg-blue-700 dark:border-blue-600 dark:text-white"] : [
|
|
433
433
|
"hover:bg-blue-100 focus-visible:bg-blue-100 active:bg-blue-200",
|
|
434
434
|
"border border-blue-500 hover:border-blue-600 focus-visible:border-blue-600 active:border-blue-700",
|
|
@@ -440,7 +440,7 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
440
440
|
);
|
|
441
441
|
break;
|
|
442
442
|
case "outlineSubtle":
|
|
443
|
-
|
|
443
|
+
f.push(
|
|
444
444
|
...l.focus ? ["bg-slate-200 border-stone-500 text-slate-900 dark:bg-neutral-600 dark:border-stone-500 dark:text-white"] : [
|
|
445
445
|
"hover:bg-slate-100 focus-visible:bg-slate-100 active:bg-slate-200",
|
|
446
446
|
"border border-stone-300 hover:border-stone-400 focus-visible:border-stone-400 active:border-stone-500",
|
|
@@ -452,7 +452,7 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
452
452
|
);
|
|
453
453
|
break;
|
|
454
454
|
case "text":
|
|
455
|
-
|
|
455
|
+
f.push(
|
|
456
456
|
...l.focus ? ["border-none bg-blue-200 text-blue-700 dark:bg-blue-700 dark:text-white"] : [
|
|
457
457
|
"hover:bg-blue-100 focus-visible:bg-blue-100 active:bg-blue-200",
|
|
458
458
|
"border-none",
|
|
@@ -463,7 +463,7 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
463
463
|
);
|
|
464
464
|
break;
|
|
465
465
|
case "textSubtle":
|
|
466
|
-
|
|
466
|
+
f.push(
|
|
467
467
|
...l.focus ? ["border-none bg-slate-200 text-slate-900 dark:bg-neutral-600 dark:text-white"] : [
|
|
468
468
|
"hover:bg-slate-100 focus-visible:bg-slate-100 active:bg-slate-200",
|
|
469
469
|
"border-none",
|
|
@@ -474,7 +474,7 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
474
474
|
);
|
|
475
475
|
break;
|
|
476
476
|
case "destructive":
|
|
477
|
-
|
|
477
|
+
f.push(
|
|
478
478
|
...l.focus ? ["bg-red-800 border-red-800 text-white"] : [
|
|
479
479
|
"bg-red-600 hover:bg-red-700 focus-visible:bg-red-700 active:bg-red-800",
|
|
480
480
|
"border border-red-600 hover:border-red-700 focus-visible:border-red-700 active:border-red-800",
|
|
@@ -483,7 +483,7 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
483
483
|
);
|
|
484
484
|
break;
|
|
485
485
|
case "outlineDestructive":
|
|
486
|
-
|
|
486
|
+
f.push(
|
|
487
487
|
...l.focus ? ["bg-red-200 border-red-700 text-red-700 dark:bg-red-900 dark:border-red-600 dark:text-red-100"] : [
|
|
488
488
|
"hover:bg-red-100 focus-visible:bg-red-100 active:bg-red-200",
|
|
489
489
|
"border border-red-500 hover:border-red-600 focus-visible:border-red-600 active:border-red-700",
|
|
@@ -495,56 +495,56 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
495
495
|
);
|
|
496
496
|
break;
|
|
497
497
|
}
|
|
498
|
-
return l.classes &&
|
|
499
|
-
}), C = O(() => l.disabled ? l.variant === "fill" || l.variant === "destructive" ? { filter: "grayscale(50%)" } : { opacity: "0.5" } : {}), u = (
|
|
498
|
+
return l.classes && f.push(l.classes), f.filter((b) => b).join(" ");
|
|
499
|
+
}), C = O(() => l.disabled ? l.variant === "fill" || l.variant === "destructive" ? { filter: "grayscale(50%)" } : { opacity: "0.5" } : {}), u = (f) => {
|
|
500
500
|
var b;
|
|
501
|
-
l.stopPropagation &&
|
|
501
|
+
l.stopPropagation && f.stopPropagation(), !l.disabled && !l.loading && (l.href && window.open(l.href, "_blank"), l.mailto && window.open(`mailto:${l.mailto}`), l.tooltip && ((b = c.value) == null || b.hide()), s("click"));
|
|
502
502
|
};
|
|
503
|
-
return t({ focus: () => a.value.focus() }), (
|
|
503
|
+
return t({ focus: () => a.value.focus() }), (f, b) => f.tooltip ? (o(), V(p(te), {
|
|
504
504
|
key: 0,
|
|
505
505
|
ref_key: "tooltipRef",
|
|
506
|
-
ref:
|
|
507
|
-
text:
|
|
508
|
-
delay:
|
|
509
|
-
placement:
|
|
510
|
-
"trigger-full-width":
|
|
506
|
+
ref: c,
|
|
507
|
+
text: f.tooltip,
|
|
508
|
+
delay: f.tooltipDelay,
|
|
509
|
+
placement: f.tooltipPlacement,
|
|
510
|
+
"trigger-full-width": f.fullwidth
|
|
511
511
|
}, {
|
|
512
512
|
default: Z(() => [
|
|
513
513
|
(o(), V(D1(r.value), {
|
|
514
514
|
ref_key: "buttonRef",
|
|
515
515
|
ref: a,
|
|
516
|
-
to:
|
|
516
|
+
to: f.routerLinkTo,
|
|
517
517
|
class: T(m.value),
|
|
518
|
-
disabled:
|
|
518
|
+
disabled: f.disabled || f.loading,
|
|
519
519
|
style: n1(C.value),
|
|
520
520
|
onClick: u,
|
|
521
521
|
onBlur: b[0] || (b[0] = (v) => s("blur"))
|
|
522
522
|
}, {
|
|
523
523
|
default: Z(() => [
|
|
524
|
-
w(
|
|
524
|
+
w(p(we), null, {
|
|
525
525
|
default: Z(() => [
|
|
526
|
-
|
|
526
|
+
f.loading ? (o(), V(p(F1), {
|
|
527
527
|
key: 0,
|
|
528
528
|
class: T(h.value)
|
|
529
|
-
}, null, 8, ["class"])) :
|
|
529
|
+
}, null, 8, ["class"])) : f.icon ? (o(), V(p(t1), {
|
|
530
530
|
key: 1,
|
|
531
|
-
name:
|
|
531
|
+
name: f.icon
|
|
532
532
|
}, null, 8, ["name"])) : k("", !0),
|
|
533
|
-
|
|
533
|
+
f.label ? (o(), V(p(ke), {
|
|
534
534
|
key: 2,
|
|
535
|
-
label:
|
|
535
|
+
label: f.label
|
|
536
536
|
}, null, 8, ["label"])) : k("", !0)
|
|
537
537
|
]),
|
|
538
538
|
_: 1
|
|
539
539
|
}),
|
|
540
|
-
|
|
540
|
+
f.iconAfter ? (o(), V(p(t1), {
|
|
541
541
|
key: 0,
|
|
542
|
-
name:
|
|
542
|
+
name: f.iconAfter,
|
|
543
543
|
class: "opacity-75"
|
|
544
544
|
}, null, 8, ["name"])) : k("", !0),
|
|
545
|
-
|
|
545
|
+
f.notification ? (o(), V(p(Me), {
|
|
546
546
|
key: 1,
|
|
547
|
-
inside:
|
|
547
|
+
inside: f.variant === "text" || f.variant === "textSubtle"
|
|
548
548
|
}, null, 8, ["inside"])) : k("", !0)
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
@@ -555,38 +555,38 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
555
555
|
key: 1,
|
|
556
556
|
ref_key: "buttonRef",
|
|
557
557
|
ref: a,
|
|
558
|
-
to:
|
|
558
|
+
to: f.routerLinkTo,
|
|
559
559
|
target: l.linkTarget,
|
|
560
560
|
class: T(m.value),
|
|
561
|
-
disabled:
|
|
561
|
+
disabled: f.disabled || f.loading,
|
|
562
562
|
style: n1(C.value),
|
|
563
563
|
onClick: u,
|
|
564
564
|
onBlur: b[1] || (b[1] = (v) => s("blur"))
|
|
565
565
|
}, {
|
|
566
566
|
default: Z(() => [
|
|
567
|
-
w(
|
|
567
|
+
w(p(we), null, {
|
|
568
568
|
default: Z(() => [
|
|
569
|
-
|
|
569
|
+
f.loading ? (o(), V(p(F1), {
|
|
570
570
|
key: 0,
|
|
571
571
|
class: T(h.value)
|
|
572
|
-
}, null, 8, ["class"])) :
|
|
572
|
+
}, null, 8, ["class"])) : f.icon ? (o(), V(p(t1), {
|
|
573
573
|
key: 1,
|
|
574
|
-
name:
|
|
574
|
+
name: f.icon
|
|
575
575
|
}, null, 8, ["name"])) : k("", !0),
|
|
576
|
-
|
|
576
|
+
f.label ? (o(), V(p(ke), {
|
|
577
577
|
key: 2,
|
|
578
|
-
label:
|
|
578
|
+
label: f.label
|
|
579
579
|
}, null, 8, ["label"])) : k("", !0)
|
|
580
580
|
]),
|
|
581
581
|
_: 1
|
|
582
582
|
}),
|
|
583
|
-
|
|
583
|
+
f.iconAfter ? (o(), V(p(t1), {
|
|
584
584
|
key: 0,
|
|
585
|
-
name:
|
|
585
|
+
name: f.iconAfter
|
|
586
586
|
}, null, 8, ["name"])) : k("", !0),
|
|
587
|
-
|
|
587
|
+
f.notification ? (o(), V(p(Me), {
|
|
588
588
|
key: 1,
|
|
589
|
-
inside:
|
|
589
|
+
inside: f.variant === "text" || f.variant === "textSubtle"
|
|
590
590
|
}, null, 8, ["inside"])) : k("", !0)
|
|
591
591
|
]),
|
|
592
592
|
_: 1
|
|
@@ -603,9 +603,9 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
603
603
|
Ht("childOfButtonGroup", !0);
|
|
604
604
|
const s = () => {
|
|
605
605
|
const r = [];
|
|
606
|
-
t.fullwidth ? r.push("flex w-full") : r.push("inline-flex"), t.direction === "vertical" ? r.push("flex-col items-stretch") : r.push("items-center"), e.value = r.join(" "), l.value && Array.from(l.value.children).forEach((a,
|
|
606
|
+
t.fullwidth ? r.push("flex w-full") : r.push("inline-flex"), t.direction === "vertical" ? r.push("flex-col items-stretch") : r.push("items-center"), e.value = r.join(" "), l.value && Array.from(l.value.children).forEach((a, c) => {
|
|
607
607
|
var h, m, C, u;
|
|
608
|
-
t.direction === "vertical" ? (a.classList.add("-mt-px"), a.classList.add("first:mt-0"),
|
|
608
|
+
t.direction === "vertical" ? (a.classList.add("-mt-px"), a.classList.add("first:mt-0"), c === 0 ? a.nodeName === "BUTTON" ? a.classList.add("rounded-t-md") : (h = a.querySelector("button")) == null || h.classList.add("rounded-t-md") : c === l.value.children.length - 1 && (a.nodeName === "BUTTON" ? a.classList.add("rounded-b-md") : (m = a.querySelector("button")) == null || m.classList.add("rounded-b-md"))) : (a.classList.add("-ml-px"), a.classList.add("first:ml-0"), c === 0 ? a.nodeName === "BUTTON" ? a.classList.add("rounded-l-md") : (C = a.querySelector("button")) == null || C.classList.add("rounded-l-md") : c === l.value.children.length - 1 && (a.nodeName === "BUTTON" ? a.classList.add("rounded-r-md") : (u = a.querySelector("button")) == null || u.classList.add("rounded-r-md")));
|
|
609
609
|
});
|
|
610
610
|
};
|
|
611
611
|
return a1(s), (r, a) => (o(), i("div", {
|
|
@@ -633,7 +633,7 @@ const Ze = {
|
|
|
633
633
|
Y: "YEAR",
|
|
634
634
|
DC: "DECADE"
|
|
635
635
|
/* DECADE */
|
|
636
|
-
},
|
|
636
|
+
}, fe = {
|
|
637
637
|
MILLISECOND: 1,
|
|
638
638
|
SECOND: 1e3,
|
|
639
639
|
MINUTE: 6e4,
|
|
@@ -648,7 +648,7 @@ const Ze = {
|
|
|
648
648
|
if (Object.keys(X).includes(n))
|
|
649
649
|
return n;
|
|
650
650
|
throw new Error(`Invalid time unit [${n}}]`);
|
|
651
|
-
}, d5 = { class: "w-56 grid grid-cols-7" }, u5 = { class: "col-span-5 flex items-center justify-center text-sm" },
|
|
651
|
+
}, d5 = { class: "w-56 grid grid-cols-7" }, u5 = { class: "col-span-5 flex items-center justify-center text-sm" }, p5 = { class: "w-56 grid grid-cols-2 py-8" }, f5 = /* @__PURE__ */ $({
|
|
652
652
|
__name: "DecadeView",
|
|
653
653
|
props: {
|
|
654
654
|
viewData: {}
|
|
@@ -658,29 +658,29 @@ const Ze = {
|
|
|
658
658
|
const e = n, l = t, s = O(() => `${e.viewData[0].label} - ${e.viewData[e.viewData.length - 1].label}`);
|
|
659
659
|
return (r, a) => (o(), i("div", null, [
|
|
660
660
|
d("nav", d5, [
|
|
661
|
-
w(
|
|
661
|
+
w(p(j), {
|
|
662
662
|
icon: "chevron-left",
|
|
663
663
|
variant: "textSubtle",
|
|
664
|
-
onClick: a[0] || (a[0] = (
|
|
664
|
+
onClick: a[0] || (a[0] = (c) => l("move", { amount: -10, unit: p(X).YEAR }))
|
|
665
665
|
}),
|
|
666
666
|
d("div", u5, K(s.value), 1),
|
|
667
|
-
w(
|
|
667
|
+
w(p(j), {
|
|
668
668
|
icon: "chevron-right",
|
|
669
669
|
variant: "textSubtle",
|
|
670
|
-
onClick: a[1] || (a[1] = (
|
|
670
|
+
onClick: a[1] || (a[1] = (c) => l("move", { amount: 10, unit: p(X).YEAR }))
|
|
671
671
|
})
|
|
672
672
|
]),
|
|
673
|
-
d("main",
|
|
674
|
-
(o(!0), i(M, null, m1(r.viewData, (
|
|
675
|
-
key:
|
|
676
|
-
variant:
|
|
677
|
-
label:
|
|
673
|
+
d("main", p5, [
|
|
674
|
+
(o(!0), i(M, null, m1(r.viewData, (c) => (o(), V(p(j), {
|
|
675
|
+
key: c.label,
|
|
676
|
+
variant: c.selected ? "fill" : c.current ? "text" : "textSubtle",
|
|
677
|
+
label: c.label.toString(),
|
|
678
678
|
onMouseup: F((h) => l(
|
|
679
679
|
"select",
|
|
680
680
|
{
|
|
681
|
-
value:
|
|
682
|
-
unit:
|
|
683
|
-
view:
|
|
681
|
+
value: c.label,
|
|
682
|
+
unit: p(X).YEAR,
|
|
683
|
+
view: p(X).MONTH
|
|
684
684
|
}
|
|
685
685
|
), ["stop"])
|
|
686
686
|
}, null, 8, ["variant", "label", "onMouseup"]))), 128))
|
|
@@ -724,37 +724,37 @@ const c5 = /* @__PURE__ */ $({
|
|
|
724
724
|
const e = t;
|
|
725
725
|
return (l, s) => (o(), i("div", null, [
|
|
726
726
|
d("nav", C5, [
|
|
727
|
-
w(
|
|
727
|
+
w(p(j), {
|
|
728
728
|
variant: "textSubtle",
|
|
729
729
|
icon: "chevron-left-double",
|
|
730
|
-
onClick: s[0] || (s[0] = (r) => e("move", { amount: -1, unit:
|
|
730
|
+
onClick: s[0] || (s[0] = (r) => e("move", { amount: -1, unit: p(X).YEAR }))
|
|
731
731
|
}),
|
|
732
|
-
w(
|
|
732
|
+
w(p(j), {
|
|
733
733
|
variant: "textSubtle",
|
|
734
734
|
icon: "chevron-left",
|
|
735
|
-
onClick: s[1] || (s[1] = (r) => e("move", { amount: -1, unit:
|
|
735
|
+
onClick: s[1] || (s[1] = (r) => e("move", { amount: -1, unit: p(X).MONTH }))
|
|
736
736
|
}),
|
|
737
737
|
d("div", v5, [
|
|
738
|
-
w(
|
|
738
|
+
w(p(j), {
|
|
739
739
|
variant: "textSubtle",
|
|
740
|
-
label:
|
|
741
|
-
onClick: s[2] || (s[2] = (r) => e("change-view",
|
|
740
|
+
label: p(lt)(l.currentMonth.slice(0, 3)),
|
|
741
|
+
onClick: s[2] || (s[2] = (r) => e("change-view", p(X).YEAR))
|
|
742
742
|
}, null, 8, ["label"]),
|
|
743
|
-
w(
|
|
743
|
+
w(p(j), {
|
|
744
744
|
variant: "textSubtle",
|
|
745
745
|
label: l.currentYear.toString(),
|
|
746
|
-
onClick: s[3] || (s[3] = (r) => e("change-view",
|
|
746
|
+
onClick: s[3] || (s[3] = (r) => e("change-view", p(X).DECADE))
|
|
747
747
|
}, null, 8, ["label"])
|
|
748
748
|
]),
|
|
749
|
-
w(
|
|
749
|
+
w(p(j), {
|
|
750
750
|
variant: "textSubtle",
|
|
751
751
|
icon: "chevron-right",
|
|
752
|
-
onClick: s[4] || (s[4] = (r) => e("move", { amount: 1, unit:
|
|
752
|
+
onClick: s[4] || (s[4] = (r) => e("move", { amount: 1, unit: p(X).MONTH }))
|
|
753
753
|
}),
|
|
754
|
-
w(
|
|
754
|
+
w(p(j), {
|
|
755
755
|
variant: "textSubtle",
|
|
756
756
|
icon: "chevron-right-double",
|
|
757
|
-
onClick: s[5] || (s[5] = (r) => e("move", { amount: 1, unit:
|
|
757
|
+
onClick: s[5] || (s[5] = (r) => e("move", { amount: 1, unit: p(X).YEAR }))
|
|
758
758
|
})
|
|
759
759
|
]),
|
|
760
760
|
d("header", h5, [
|
|
@@ -769,7 +769,7 @@ const c5 = /* @__PURE__ */ $({
|
|
|
769
769
|
return o(), V(c5, {
|
|
770
770
|
key: (a = r.date) == null ? void 0 : a.toISOString(),
|
|
771
771
|
date: r,
|
|
772
|
-
onClick: (
|
|
772
|
+
onClick: (c) => e("select", r)
|
|
773
773
|
}, null, 8, ["date", "onClick"]);
|
|
774
774
|
}), 128))
|
|
775
775
|
])
|
|
@@ -786,29 +786,29 @@ const c5 = /* @__PURE__ */ $({
|
|
|
786
786
|
const e = t;
|
|
787
787
|
return (l, s) => (o(), i("div", null, [
|
|
788
788
|
d("nav", b5, [
|
|
789
|
-
w(
|
|
789
|
+
w(p(j), {
|
|
790
790
|
icon: "chevron-left",
|
|
791
791
|
variant: "textSubtle",
|
|
792
792
|
onClick: s[0] || (s[0] = (r) => e("move", { amount: -1, unit: "YEAR" }))
|
|
793
793
|
}),
|
|
794
794
|
d("div", L5, K(l.currentYear), 1),
|
|
795
|
-
w(
|
|
795
|
+
w(p(j), {
|
|
796
796
|
icon: "chevron-right",
|
|
797
797
|
variant: "textSubtle",
|
|
798
798
|
onClick: s[1] || (s[1] = (r) => e("move", { amount: 1, unit: "YEAR" }))
|
|
799
799
|
})
|
|
800
800
|
]),
|
|
801
801
|
d("main", y5, [
|
|
802
|
-
(o(!0), i(M, null, m1(l.viewData, (r, a) => (o(), V(
|
|
802
|
+
(o(!0), i(M, null, m1(l.viewData, (r, a) => (o(), V(p(j), {
|
|
803
803
|
key: r.label,
|
|
804
804
|
variant: r.selected ? "fill" : r.current ? "text" : "textSubtle",
|
|
805
|
-
label:
|
|
806
|
-
onClick: (
|
|
805
|
+
label: p(lt)(r.label.toString()),
|
|
806
|
+
onClick: (c) => e(
|
|
807
807
|
"select",
|
|
808
808
|
{
|
|
809
809
|
value: a,
|
|
810
|
-
unit:
|
|
811
|
-
view:
|
|
810
|
+
unit: p(X).MONTH,
|
|
811
|
+
view: p(X).MONTH
|
|
812
812
|
}
|
|
813
813
|
)
|
|
814
814
|
}, null, 8, ["variant", "label", "onClick"]))), 128))
|
|
@@ -823,7 +823,7 @@ const C1 = (n) => {
|
|
|
823
823
|
if (!Number.isNaN(t.getTime()) && !t.toString().includes("Thu Jan 01 1970"))
|
|
824
824
|
return new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate()));
|
|
825
825
|
throw new Error(`Invalid date [${n}]`);
|
|
826
|
-
},
|
|
826
|
+
}, ps = (n, t, e) => {
|
|
827
827
|
if (n == null || t == null) return null;
|
|
828
828
|
n = C1(n), t = C1(t);
|
|
829
829
|
const l = tt(e);
|
|
@@ -831,17 +831,17 @@ const C1 = (n) => {
|
|
|
831
831
|
return null;
|
|
832
832
|
if (l === X.MONTH || l === X.YEAR)
|
|
833
833
|
throw new Error("Cannot calculate delta in months or years");
|
|
834
|
-
return (n.getTime() - t.getTime()) /
|
|
835
|
-
}, S1 = (n, t) => (n = C1(n), t = C1(t), !n || !t ? !1 : n.getUTCFullYear() === t.getUTCFullYear() && n.getUTCMonth() === t.getUTCMonth() && n.getUTCDate() === t.getUTCDate()), V5 = (n, t, e = !1) => (n = C1(n), t = C1(t), n.getTime() > t.getTime() || e && S1(n, t)), k5 = (n, t, e = !1) => (n = C1(n), t = C1(t), n.getTime() < t.getTime() || e && S1(n, t)),
|
|
834
|
+
return (n.getTime() - t.getTime()) / fe[l];
|
|
835
|
+
}, S1 = (n, t) => (n = C1(n), t = C1(t), !n || !t ? !1 : n.getUTCFullYear() === t.getUTCFullYear() && n.getUTCMonth() === t.getUTCMonth() && n.getUTCDate() === t.getUTCDate()), V5 = (n, t, e = !1) => (n = C1(n), t = C1(t), n.getTime() > t.getTime() || e && S1(n, t)), k5 = (n, t, e = !1) => (n = C1(n), t = C1(t), n.getTime() < t.getTime() || e && S1(n, t)), fs = (n, t, e, l = !1) => V5(n, t, l) && k5(n, e, l), w5 = (n) => (n = C1(n), Math.floor(n.getUTCFullYear() / 10) * 10), cs = (n) => {
|
|
836
836
|
const t = C1(n);
|
|
837
837
|
t.setUTCDate(t.getUTCDate() + 4 - (t.getUTCDay() || 7));
|
|
838
838
|
const e = new Date(Date.UTC(t.getUTCFullYear(), 0, 1));
|
|
839
|
-
return t && e ? Math.ceil(((t.getTime() - e.getTime()) /
|
|
839
|
+
return t && e ? Math.ceil(((t.getTime() - e.getTime()) / fe.DAY + 1) / 7) : 0;
|
|
840
840
|
}, x1 = (n, t, e) => {
|
|
841
841
|
const l = C1(n), s = tt(e);
|
|
842
842
|
if (s === X.MONTH) throw new Error("Cannot move date by month");
|
|
843
843
|
let r = l.getTime();
|
|
844
|
-
return r += t *
|
|
844
|
+
return r += t * fe[s], l.setTime(r), l;
|
|
845
845
|
}, Cs = (n) => {
|
|
846
846
|
console.log(
|
|
847
847
|
n.toISOString().substr(0, 16).replace("T", " ")
|
|
@@ -1000,7 +1000,7 @@ class D5 {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
var h1 = ((n) => (n[n.DATE = X.DAY] = "DATE", n[n.WEEK = X.WEEK] = "WEEK", n[n.MONTH = X.MONTH] = "MONTH", n[n.YEAR = X.YEAR] = "YEAR", n[n.DECADE = X.DECADE] = "DECADE", n))(h1 || {});
|
|
1002
1002
|
const T5 = (n = null, t) => {
|
|
1003
|
-
const e = new D5(t, n), l = y([]), s = y(h1.MONTH), r = y(""), a = y(0),
|
|
1003
|
+
const e = new D5(t, n), l = y([]), s = y(h1.MONTH), r = y(""), a = y(0), c = (b) => {
|
|
1004
1004
|
if (!Object.keys(h1).includes(b)) {
|
|
1005
1005
|
console.warn(`[changeView] wrong view type: ${b}`);
|
|
1006
1006
|
return;
|
|
@@ -1022,15 +1022,15 @@ const T5 = (n = null, t) => {
|
|
|
1022
1022
|
break;
|
|
1023
1023
|
}
|
|
1024
1024
|
}, h = () => {
|
|
1025
|
-
|
|
1025
|
+
c(s.value), r.value = e.getDateCursorMonthName(), a.value = e.dateCursor.getUTCFullYear();
|
|
1026
1026
|
}, m = (b) => {
|
|
1027
1027
|
e.setSelectedDate(b), h();
|
|
1028
1028
|
};
|
|
1029
1029
|
A1(() => {
|
|
1030
|
-
m(n),
|
|
1030
|
+
m(n), c(s.value);
|
|
1031
1031
|
});
|
|
1032
1032
|
const C = (b, v = !1) => {
|
|
1033
|
-
e.moveSelectedDate(b), !v && s.value !== h1.MONTH ?
|
|
1033
|
+
e.moveSelectedDate(b), !v && s.value !== h1.MONTH ? c(h1.DATE) : h();
|
|
1034
1034
|
}, u = ({ amount: b, unit: v }) => {
|
|
1035
1035
|
switch (v) {
|
|
1036
1036
|
case X.DAY:
|
|
@@ -1065,8 +1065,8 @@ const T5 = (n = null, t) => {
|
|
|
1065
1065
|
return;
|
|
1066
1066
|
}
|
|
1067
1067
|
h();
|
|
1068
|
-
},
|
|
1069
|
-
g(b, v),
|
|
1068
|
+
}, f = ({ value: b, unit: v, view: L }) => {
|
|
1069
|
+
g(b, v), c(L);
|
|
1070
1070
|
};
|
|
1071
1071
|
return {
|
|
1072
1072
|
selectedDate: e.selectedDate,
|
|
@@ -1074,12 +1074,12 @@ const T5 = (n = null, t) => {
|
|
|
1074
1074
|
viewType: s,
|
|
1075
1075
|
viewMonth: r,
|
|
1076
1076
|
viewYear: a,
|
|
1077
|
-
changeView:
|
|
1077
|
+
changeView: c,
|
|
1078
1078
|
moveRequest: C,
|
|
1079
1079
|
moveViewDate: u,
|
|
1080
1080
|
setSelectedDate: m,
|
|
1081
1081
|
setViewDate: g,
|
|
1082
|
-
setViewDateAndChangeView:
|
|
1082
|
+
setViewDateAndChangeView: f
|
|
1083
1083
|
};
|
|
1084
1084
|
}, B5 = { class: "flex flex-col" }, S5 = { class: "p-4" }, z5 = {
|
|
1085
1085
|
key: 0,
|
|
@@ -1101,14 +1101,14 @@ const T5 = (n = null, t) => {
|
|
|
1101
1101
|
viewType: s,
|
|
1102
1102
|
viewMonth: r,
|
|
1103
1103
|
viewYear: a,
|
|
1104
|
-
changeView:
|
|
1104
|
+
changeView: c,
|
|
1105
1105
|
moveViewDate: h,
|
|
1106
1106
|
moveRequest: m,
|
|
1107
1107
|
setSelectedDate: C,
|
|
1108
1108
|
setViewDateAndChangeView: u
|
|
1109
1109
|
} = T5(n.value, { weekStart: n.weekStart, disabledDates: n.disabledDates });
|
|
1110
1110
|
r1(() => n.value, (L) => C(L));
|
|
1111
|
-
const g = Vt(r),
|
|
1111
|
+
const g = Vt(r), f = y(Object.values(M1).map((L, D) => Object.values(M1)[K1(D + n.weekStart, Object.values(M1).length)])), b = (L) => {
|
|
1112
1112
|
if (!L) {
|
|
1113
1113
|
e("change", null);
|
|
1114
1114
|
return;
|
|
@@ -1137,32 +1137,32 @@ const T5 = (n = null, t) => {
|
|
|
1137
1137
|
document.removeEventListener("keydown", v);
|
|
1138
1138
|
}), (L, D) => (o(), i("section", B5, [
|
|
1139
1139
|
d("main", S5, [
|
|
1140
|
-
|
|
1140
|
+
p(s) === p(h1).MONTH ? (o(), V(g5, {
|
|
1141
1141
|
key: 0,
|
|
1142
1142
|
"current-month": g.value,
|
|
1143
|
-
"current-year":
|
|
1144
|
-
"view-data":
|
|
1145
|
-
weekdays:
|
|
1146
|
-
onMove:
|
|
1147
|
-
onChangeView:
|
|
1143
|
+
"current-year": p(a),
|
|
1144
|
+
"view-data": p(l),
|
|
1145
|
+
weekdays: f.value,
|
|
1146
|
+
onMove: p(h),
|
|
1147
|
+
onChangeView: p(c),
|
|
1148
1148
|
onSelect: b
|
|
1149
1149
|
}, null, 8, ["current-month", "current-year", "view-data", "weekdays", "onMove", "onChangeView"])) : k("", !0),
|
|
1150
|
-
|
|
1150
|
+
p(s) === p(h1).YEAR ? (o(), V(H5, {
|
|
1151
1151
|
key: 1,
|
|
1152
|
-
"current-year":
|
|
1153
|
-
"view-data":
|
|
1154
|
-
onMove:
|
|
1155
|
-
onSelect:
|
|
1152
|
+
"current-year": p(a),
|
|
1153
|
+
"view-data": p(l),
|
|
1154
|
+
onMove: p(h),
|
|
1155
|
+
onSelect: p(u)
|
|
1156
1156
|
}, null, 8, ["current-year", "view-data", "onMove", "onSelect"])) : k("", !0),
|
|
1157
|
-
|
|
1157
|
+
p(s) === p(h1).DECADE ? (o(), V(f5, {
|
|
1158
1158
|
key: 2,
|
|
1159
|
-
"view-data":
|
|
1160
|
-
onMove:
|
|
1161
|
-
onSelect:
|
|
1159
|
+
"view-data": p(l),
|
|
1160
|
+
onMove: p(h),
|
|
1161
|
+
onSelect: p(u)
|
|
1162
1162
|
}, null, 8, ["view-data", "onMove", "onSelect"])) : k("", !0)
|
|
1163
1163
|
]),
|
|
1164
1164
|
L.clearable ? (o(), i("footer", z5, [
|
|
1165
|
-
w(
|
|
1165
|
+
w(p(j), {
|
|
1166
1166
|
square: "",
|
|
1167
1167
|
size: "tiny",
|
|
1168
1168
|
variant: "outlineSubtle",
|
|
@@ -1175,13 +1175,13 @@ const T5 = (n = null, t) => {
|
|
|
1175
1175
|
]));
|
|
1176
1176
|
}
|
|
1177
1177
|
}), _1 = (n, t = !0, e = !1) => {
|
|
1178
|
-
const l = new Date(n), s = new Intl.DateTimeFormat("en-001", { weekday: "short" }).format(l), r = l.getDate().toString().padStart(2, "0"), a = new Intl.DateTimeFormat("en-001", { month: "short" }).format(l),
|
|
1179
|
-
let C = `${r} ${a} ${
|
|
1178
|
+
const l = new Date(n), s = new Intl.DateTimeFormat("en-001", { weekday: "short" }).format(l), r = l.getDate().toString().padStart(2, "0"), a = new Intl.DateTimeFormat("en-001", { month: "short" }).format(l), c = l.getFullYear(), h = l.getHours().toString().padStart(2, "0"), m = l.getMinutes().toString().padStart(2, "0");
|
|
1179
|
+
let C = `${r} ${a} ${c}`;
|
|
1180
1180
|
return t && (C = `${s} ${C}`), e && (C = `${C} ${h}:${m}`), C;
|
|
1181
1181
|
}, R5 = (n) => _1(n, !1, !1), E5 = (n) => _1(n, !0, !1), O5 = (n) => _1(n, !1, !0), I5 = (n) => _1(n, !0, !0), nt = (n, t = !1) => {
|
|
1182
|
-
const e = new Date(n), l = e.getFullYear(), s = (e.getMonth() + 1).toString().padStart(2, "0"), r = e.getDate().toString().padStart(2, "0"), a = e.getHours().toString().padStart(2, "0"),
|
|
1182
|
+
const e = new Date(n), l = e.getFullYear(), s = (e.getMonth() + 1).toString().padStart(2, "0"), r = e.getDate().toString().padStart(2, "0"), a = e.getHours().toString().padStart(2, "0"), c = e.getMinutes().toString().padStart(2, "0");
|
|
1183
1183
|
let h = `${l}-${s}-${r}`;
|
|
1184
|
-
return t && (h = `${h} ${a}:${
|
|
1184
|
+
return t && (h = `${h} ${a}:${c}`), h;
|
|
1185
1185
|
}, x5 = (n) => nt(n, !1), P5 = (n) => nt(n, !0), ms = {
|
|
1186
1186
|
readableDate: R5,
|
|
1187
1187
|
readableDateWithDay: E5,
|
|
@@ -1206,7 +1206,7 @@ const T5 = (n = null, t) => {
|
|
|
1206
1206
|
"border-default bg-secondary hover:bg-secondary": e.disabled && !e.value
|
|
1207
1207
|
}])
|
|
1208
1208
|
}, [
|
|
1209
|
-
t.value ? (o(), V(
|
|
1209
|
+
t.value ? (o(), V(p(t1), {
|
|
1210
1210
|
key: 0,
|
|
1211
1211
|
name: t.value,
|
|
1212
1212
|
class: "text-white"
|
|
@@ -1309,7 +1309,7 @@ const T5 = (n = null, t) => {
|
|
|
1309
1309
|
},
|
|
1310
1310
|
emits: ["toggle"],
|
|
1311
1311
|
setup(n, { emit: t }) {
|
|
1312
|
-
const e = n, l = t, s = y(), r = y(), a = y(!1),
|
|
1312
|
+
const e = n, l = t, s = y(), r = y(), a = y(!1), c = O(() => e.open ? e.borderClassOpen : e.borderClassClosed), h = O(() => a.value ? {
|
|
1313
1313
|
top: "-1px",
|
|
1314
1314
|
paddingTop: "1px"
|
|
1315
1315
|
} : {});
|
|
@@ -1342,7 +1342,7 @@ const T5 = (n = null, t) => {
|
|
|
1342
1342
|
"shadow-sm-xs border-strong sticky z-10": a.value,
|
|
1343
1343
|
relative: !a.value
|
|
1344
1344
|
},
|
|
1345
|
-
|
|
1345
|
+
c.value,
|
|
1346
1346
|
C.headerBgClass
|
|
1347
1347
|
]]),
|
|
1348
1348
|
style: n1(h.value)
|
|
@@ -1352,7 +1352,7 @@ const T5 = (n = null, t) => {
|
|
|
1352
1352
|
E(C.$slots, "header", { sticky: a.value })
|
|
1353
1353
|
])) : k("", !0),
|
|
1354
1354
|
d("div", Q5, [
|
|
1355
|
-
C.$slots.content ? (o(), V(
|
|
1355
|
+
C.$slots.content ? (o(), V(p(j), {
|
|
1356
1356
|
key: 0,
|
|
1357
1357
|
small: "",
|
|
1358
1358
|
variant: "textSubtle",
|
|
@@ -1390,12 +1390,12 @@ const T5 = (n = null, t) => {
|
|
|
1390
1390
|
emits: ["confirm", "cancel"],
|
|
1391
1391
|
setup(n, { emit: t }) {
|
|
1392
1392
|
const e = t, l = O(() => n.order === "confirm-first");
|
|
1393
|
-
return (s, r) => (o(), V(
|
|
1393
|
+
return (s, r) => (o(), V(p(o1), {
|
|
1394
1394
|
col: s.vertical,
|
|
1395
1395
|
class: "gap-2"
|
|
1396
1396
|
}, {
|
|
1397
1397
|
default: Z(() => [
|
|
1398
|
-
l.value ? (o(), V(
|
|
1398
|
+
l.value ? (o(), V(p(j), {
|
|
1399
1399
|
key: 0,
|
|
1400
1400
|
small: s.small,
|
|
1401
1401
|
"stop-propagation": "",
|
|
@@ -1407,7 +1407,7 @@ const T5 = (n = null, t) => {
|
|
|
1407
1407
|
class: T({ "flex-1": s.fillContainer }),
|
|
1408
1408
|
onClick: r[0] || (r[0] = (a) => e("confirm"))
|
|
1409
1409
|
}, null, 8, ["small", "icon", "label", "variant", "disabled", "loading", "class"])) : k("", !0),
|
|
1410
|
-
w(
|
|
1410
|
+
w(p(j), {
|
|
1411
1411
|
variant: s.cancelVariant,
|
|
1412
1412
|
"stop-propagation": "",
|
|
1413
1413
|
disabled: s.cancelDisabled,
|
|
@@ -1417,7 +1417,7 @@ const T5 = (n = null, t) => {
|
|
|
1417
1417
|
class: T({ "flex-1": s.fillContainer }),
|
|
1418
1418
|
onClick: r[1] || (r[1] = (a) => e("cancel"))
|
|
1419
1419
|
}, null, 8, ["variant", "disabled", "small", "icon", "label", "class"]),
|
|
1420
|
-
l.value ? k("", !0) : (o(), V(
|
|
1420
|
+
l.value ? k("", !0) : (o(), V(p(j), {
|
|
1421
1421
|
key: 1,
|
|
1422
1422
|
small: s.small,
|
|
1423
1423
|
"stop-propagation": "",
|
|
@@ -1438,9 +1438,9 @@ function ce(n) {
|
|
|
1438
1438
|
const t = "pointerdown";
|
|
1439
1439
|
let e;
|
|
1440
1440
|
const l = (a) => {
|
|
1441
|
-
e = (
|
|
1442
|
-
let h =
|
|
1443
|
-
!h || ("length" in h || (h = [h]), h.some((C) => C ===
|
|
1441
|
+
e = (c) => {
|
|
1442
|
+
let h = p(a);
|
|
1443
|
+
!h || ("length" in h || (h = [h]), h.some((C) => C === c.target || c.composedPath().includes(C))) || n(c);
|
|
1444
1444
|
}, window.addEventListener(t, e);
|
|
1445
1445
|
}, s = () => {
|
|
1446
1446
|
e && window.removeEventListener(t, e);
|
|
@@ -1469,21 +1469,21 @@ const G5 = () => {
|
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
}), j1 = (n, t = !1) => {
|
|
1472
|
-
const e = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', l = () => n.value ? Array.from(n.value.querySelectorAll(e)) : [], s = (
|
|
1472
|
+
const e = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', l = () => n.value ? Array.from(n.value.querySelectorAll(e)) : [], s = (c) => {
|
|
1473
1473
|
var g;
|
|
1474
|
-
if (
|
|
1474
|
+
if (c.key !== "Tab") return;
|
|
1475
1475
|
const h = l();
|
|
1476
1476
|
if (h.length === 0) return;
|
|
1477
1477
|
const m = h[0], C = h[h.length - 1], u = document.activeElement;
|
|
1478
|
-
!u || !((g = n.value) != null && g.contains(u)) ? ((
|
|
1478
|
+
!u || !((g = n.value) != null && g.contains(u)) ? ((c.shiftKey ? C : m).focus(), c.preventDefault()) : c.shiftKey && u === m ? (C.focus(), c.preventDefault()) : !c.shiftKey && u === C && (m.focus(), c.preventDefault());
|
|
1479
1479
|
}, r = () => {
|
|
1480
1480
|
if (!n.value) {
|
|
1481
1481
|
console.warn("[useTrapFocus] trapElement is not present");
|
|
1482
1482
|
return;
|
|
1483
1483
|
}
|
|
1484
1484
|
if (document.addEventListener("keydown", s), t) {
|
|
1485
|
-
const
|
|
1486
|
-
|
|
1485
|
+
const c = l();
|
|
1486
|
+
c.length > 0 && c[0].focus();
|
|
1487
1487
|
}
|
|
1488
1488
|
}, a = () => {
|
|
1489
1489
|
document.removeEventListener("keydown", s);
|
|
@@ -1500,7 +1500,7 @@ const G5 = () => {
|
|
|
1500
1500
|
}, $e = 120, Ls = /* @__PURE__ */ $({
|
|
1501
1501
|
__name: "ContentSlider",
|
|
1502
1502
|
setup(n, { expose: t }) {
|
|
1503
|
-
const e = y(0), l = y(null), s = y(null), r = y(l.value ? l.value.clientWidth : 0), a = y(s.value ? s.value.scrollWidth : 0),
|
|
1503
|
+
const e = y(0), l = y(null), s = y(null), r = y(l.value ? l.value.clientWidth : 0), a = y(s.value ? s.value.scrollWidth : 0), c = () => e.value = Math.max(0, e.value - $e), h = () => {
|
|
1504
1504
|
e.value = Math.min(a.value - r.value, e.value + $e);
|
|
1505
1505
|
}, m = O(() => e.value > 0), C = O(() => e.value < a.value - r.value), { nextFrame: u } = ve(), g = () => {
|
|
1506
1506
|
V1(() => {
|
|
@@ -1509,18 +1509,18 @@ const G5 = () => {
|
|
|
1509
1509
|
});
|
|
1510
1510
|
});
|
|
1511
1511
|
};
|
|
1512
|
-
return a1(g), t({ update: g }), (
|
|
1512
|
+
return a1(g), t({ update: g }), (f, b) => (o(), i("div", {
|
|
1513
1513
|
ref_key: "listContainer",
|
|
1514
1514
|
ref: l,
|
|
1515
1515
|
class: "relative flex-1 flex items-center py-1 overflow-hidden whitespace-nowrap"
|
|
1516
1516
|
}, [
|
|
1517
1517
|
m.value ? (o(), i("aside", J5, [
|
|
1518
|
-
w(
|
|
1518
|
+
w(p(j), {
|
|
1519
1519
|
small: "",
|
|
1520
1520
|
icon: "chevron-left",
|
|
1521
1521
|
variant: "outline",
|
|
1522
1522
|
class: "shadow-sm",
|
|
1523
|
-
onClick:
|
|
1523
|
+
onClick: c
|
|
1524
1524
|
})
|
|
1525
1525
|
])) : k("", !0),
|
|
1526
1526
|
d("main", {
|
|
@@ -1529,10 +1529,10 @@ const G5 = () => {
|
|
|
1529
1529
|
class: "flex items-center gap-2 snap-x scroll-px-2 transition-transform duration-300",
|
|
1530
1530
|
style: n1({ transform: `translateX(-${e.value}px)` })
|
|
1531
1531
|
}, [
|
|
1532
|
-
E(
|
|
1532
|
+
E(f.$slots, "default")
|
|
1533
1533
|
], 4),
|
|
1534
1534
|
C.value ? (o(), i("aside", _5, [
|
|
1535
|
-
C.value ? (o(), V(
|
|
1535
|
+
C.value ? (o(), V(p(j), {
|
|
1536
1536
|
key: 0,
|
|
1537
1537
|
small: "",
|
|
1538
1538
|
icon: "chevron-right",
|
|
@@ -1578,10 +1578,10 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
1578
1578
|
key: 13,
|
|
1579
1579
|
"fill-rule": "evenodd",
|
|
1580
1580
|
d: "M8 1C4.13401 1 1 4.13401 1 8H0C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C4.96894 16 2.33236 14.3141 0.975485 11.8313L0.801925 11.5137L1.14071 11.1522L5 7.29289L7 9.29289L10.2929 6H8V5H12V9H11V6.70711L7 10.7071L5 8.70711L2.03764 11.6695C3.27087 13.6689 5.48031 15 8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1Z"
|
|
1581
|
-
},
|
|
1581
|
+
}, pl = {
|
|
1582
1582
|
key: 15,
|
|
1583
1583
|
d: "M8 2.29297L12.7071 7.00007L12 7.70718L8.49989 4.20697L8.5 14.0001H7.5L7.49989 4.20697L4 7.70718L3.29289 7.00007L8 2.29297Z"
|
|
1584
|
-
},
|
|
1584
|
+
}, fl = {
|
|
1585
1585
|
key: 16,
|
|
1586
1586
|
d: "M8.21165 14.8807C7.125 14.8807 6.16442 14.7315 5.3299 14.4332C4.49538 14.1385 3.79403 13.7035 3.22585 13.1282C2.65767 12.5529 2.22798 11.848 1.93679 11.0135C1.6456 10.179 1.5 9.22372 1.5 8.14773C1.5 7.10724 1.64737 6.17685 1.94212 5.35653C2.24041 4.53622 2.67188 3.8402 3.23651 3.26847C3.80469 2.69318 4.49361 2.25462 5.30327 1.95277C6.11648 1.65092 7.03622 1.5 8.0625 1.5C9.06037 1.5 9.93395 1.66335 10.6832 1.99006C11.4361 2.31321 12.0646 2.75178 12.5689 3.30575C13.0767 3.85618 13.4567 4.47585 13.7088 5.16477C13.9645 5.85369 14.0923 6.56392 14.0923 7.29545C14.0923 7.81037 14.0675 8.33239 14.0178 8.86151C13.968 9.39063 13.8633 9.87713 13.7035 10.321C13.5437 10.7614 13.2969 11.1165 12.9631 11.3864C12.6328 11.6562 12.1854 11.7912 11.6207 11.7912C11.3722 11.7912 11.0987 11.7521 10.8004 11.674C10.5021 11.5959 10.2376 11.4663 10.0067 11.2852C9.77592 11.104 9.6392 10.8608 9.59659 10.5554H9.53267C9.44744 10.7614 9.31605 10.9567 9.13849 11.1413C8.96449 11.326 8.73544 11.4734 8.45135 11.5835C8.17081 11.6935 7.82812 11.7415 7.4233 11.7273C6.96165 11.7095 6.55504 11.6065 6.20348 11.4183C5.85192 11.2266 5.55717 10.9673 5.31925 10.6406C5.08487 10.3104 4.90732 9.92862 4.78658 9.49538C4.66939 9.05859 4.6108 8.58807 4.6108 8.08381C4.6108 7.6044 4.68182 7.16584 4.82386 6.76811C4.96591 6.37038 5.163 6.02237 5.41513 5.72408C5.67081 5.42578 5.9691 5.18786 6.31001 5.0103C6.65447 4.82919 7.02557 4.71733 7.4233 4.67472C7.77841 4.63921 8.10156 4.65519 8.39276 4.72266C8.68395 4.78658 8.92365 4.88423 9.11186 5.01563C9.30007 5.14347 9.41903 5.28551 9.46875 5.44176H9.53267V4.84517H10.6619V9.66051C10.6619 9.95881 10.7454 10.2216 10.9123 10.4489C11.0792 10.6761 11.3224 10.7898 11.642 10.7898C12.0043 10.7898 12.2812 10.6655 12.473 10.4169C12.6683 10.1683 12.8015 9.7848 12.8725 9.26634C12.9471 8.74787 12.9844 8.08381 12.9844 7.27415C12.9844 6.7983 12.9187 6.32955 12.7873 5.8679C12.6594 5.4027 12.4641 4.96769 12.2013 4.56286C11.9421 4.15803 11.6136 3.80114 11.2159 3.49219C10.8182 3.18324 10.3512 2.94176 9.81499 2.76776C9.28232 2.5902 8.67685 2.50142 7.99858 2.50142C7.16406 2.50142 6.41655 2.63104 5.75604 2.89027C5.09908 3.14595 4.53977 3.5206 4.07812 4.0142C3.62003 4.50426 3.27024 5.10085 3.02876 5.80398C2.79084 6.50355 2.67187 7.29901 2.67187 8.19034C2.67187 9.09588 2.79084 9.90021 3.02876 10.6033C3.27024 11.3065 3.62536 11.8995 4.09411 12.3825C4.56641 12.8654 5.15057 13.2312 5.84659 13.4798C6.54261 13.7319 7.34517 13.858 8.25426 13.858C8.64489 13.858 9.03018 13.8207 9.41016 13.7461C9.79013 13.6715 10.1257 13.5898 10.4169 13.5011C10.7081 13.4123 10.9176 13.3466 11.0455 13.304L11.3438 14.2841C11.1236 14.3764 10.8359 14.4688 10.4808 14.5611C10.1293 14.6534 9.75284 14.7298 9.35156 14.7901C8.95384 14.8505 8.57386 14.8807 8.21165 14.8807ZM7.59375 10.6406C8.0696 10.6406 8.4549 10.5447 8.74964 10.353C9.04439 10.1612 9.25923 9.8718 9.39418 9.48473C9.52912 9.09766 9.59659 8.60938 9.59659 8.01989C9.59659 7.4233 9.52202 6.9581 9.37287 6.62429C9.22372 6.29048 9.00355 6.05611 8.71236 5.92117C8.42116 5.78622 8.0625 5.71875 7.63636 5.71875C7.23153 5.71875 6.8853 5.82528 6.59766 6.03835C6.31357 6.24787 6.09517 6.52841 5.94247 6.87997C5.79332 7.22798 5.71875 7.60795 5.71875 8.01989C5.71875 8.47443 5.77912 8.90234 5.89986 9.30362C6.0206 9.70135 6.21768 10.0245 6.49112 10.2731C6.76456 10.5181 7.1321 10.6406 7.59375 10.6406Z"
|
|
1587
1587
|
}, cl = {
|
|
@@ -1749,10 +1749,10 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
1749
1749
|
key: 124,
|
|
1750
1750
|
"fill-rule": "evenodd",
|
|
1751
1751
|
d: "M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM7.5 14.9824V1.01758C3.86736 1.27396 1 4.30212 1 8C1 11.6979 3.86736 14.726 7.5 14.9824ZM15 8C15 11.6979 12.1326 14.726 8.5 14.9824V1.01758C12.1326 1.27396 15 4.30212 15 8Z"
|
|
1752
|
-
},
|
|
1752
|
+
}, pn = {
|
|
1753
1753
|
key: 126,
|
|
1754
1754
|
d: "M7 2V9H14C14 12.866 10.866 16 7 16C3.13401 16 0 12.866 0 9C0 5.21455 3.00478 2.1309 6.75935 2.00406L7 2ZM6 3.084L5.89765 3.10104C3.11046 3.61862 1 6.06285 1 9C1 12.3137 3.68629 15 7 15C9.93715 15 12.3814 12.8895 12.899 10.1023L12.915 10H6V3.084ZM8 1C11.7855 1 14.8691 4.00478 14.9959 7.75935L15 8H8V1ZM9 2.084V7H13.915L13.899 6.89765C13.4477 4.46779 11.5322 2.55227 9.10235 2.10104L9 2.084Z"
|
|
1755
|
-
},
|
|
1755
|
+
}, fn = {
|
|
1756
1756
|
key: 127,
|
|
1757
1757
|
d: "M3.74609 2.56933C3.89878 2.47949 4.0883 2.47646 4.24316 2.5625L13.2432 7.5625C13.4018 7.65069 13.5 7.81845 13.5 8C13.5 8.18155 13.4018 8.3493 13.2432 8.4375L4.24316 13.4375C4.0883 13.5235 3.89878 13.5205 3.74609 13.4307C3.59363 13.3408 3.5 13.177 3.5 13V3C3.5 2.82298 3.59363 2.65922 3.74609 2.56933ZM4.5 12.1494L11.9688 8L4.5 3.84961V12.1494Z"
|
|
1758
1758
|
}, cn = {
|
|
@@ -1900,7 +1900,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
1900
1900
|
], 64)) : t.name === "arrow-down" ? (o(), i("path", ol)) : t.name === "arrow-from" ? (o(), i("path", sl)) : t.name === "arrow-left" ? (o(), i("path", al)) : t.name === "arrow-move" ? (o(), i("path", rl)) : t.name === "arrow-right" ? (o(), i("path", il)) : t.name === "arrow-sub" ? (o(), i("path", dl)) : t.name === "arrow-trend" ? (o(), i("path", ul)) : t.name === "arrow-up-plus" ? (o(), i(M, { key: 14 }, [
|
|
1901
1901
|
e[14] || (e[14] = d("path", { d: "M10.7071 6.00007L6.00001 1.29297L1.29291 6.00007L2.00001 6.70718L5.49991 3.20697L5.50001 15.0001H6.50001L6.49991 3.20697L10 6.70718L10.7071 6.00007Z" }, null, -1)),
|
|
1902
1902
|
e[15] || (e[15] = d("path", { d: "M13 11.5V9.5H12V11.5H10V12.5H12V14.5H13V12.5H15V11.5H13Z" }, null, -1))
|
|
1903
|
-
], 64)) : t.name === "arrow-up" ? (o(), i("path",
|
|
1903
|
+
], 64)) : t.name === "arrow-up" ? (o(), i("path", pl)) : t.name === "at-symbol" ? (o(), i("path", fl)) : t.name === "audio" ? (o(), i(M, { key: 17 }, [
|
|
1904
1904
|
e[16] || (e[16] = d("path", {
|
|
1905
1905
|
"fill-rule": "evenodd",
|
|
1906
1906
|
d: "M8.1709 2.12429C8.31855 1.9951 8.52838 1.96412 8.70703 2.04519C8.88538 2.12637 9 2.30427 9 2.50027V14.0003C8.99989 14.2024 8.87813 14.3848 8.69141 14.4622C8.50465 14.5395 8.28946 14.4967 8.14648 14.3538L4.29297 10.5003H1.5C1.22394 10.5003 1.00014 10.2763 1 10.0003V6.00027C1 5.72412 1.22386 5.50027 1.5 5.50027H4.3125L8.1709 2.12429ZM4.8291 6.37624C4.73797 6.45592 4.62105 6.50027 4.5 6.50027H2V9.50027H4.5C4.63261 9.50027 4.75975 9.55298 4.85352 9.64675L8 12.7932V3.60085L4.8291 6.37624Z"
|
|
@@ -1935,9 +1935,9 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
1935
1935
|
d: "M7.84189 1.02566C7.94452 0.991447 8.05548 0.991447 8.15811 1.02566L15.6581 3.52566C15.8623 3.59372 16 3.78478 16 4C16 4.21522 15.8623 4.40628 15.6581 4.47434L8.15811 6.97434C8.05548 7.00855 7.94452 7.00855 7.84189 6.97434L0.341886 4.47434C0.137715 4.40628 0 4.21521 0 4C0 3.78478 0.137715 3.59372 0.341886 3.52566L7.84189 1.02566ZM2.08114 4L8 5.97295L13.9189 4L8 2.02705L2.08114 4Z"
|
|
1936
1936
|
}, null, -1))
|
|
1937
1937
|
], 64)) : t.name === "building" ? (o(), i("path", hl)) : t.name === "bullet-list" ? (o(), i(M, { key: 25 }, [
|
|
1938
|
-
e[28] || (e[28] =
|
|
1938
|
+
e[28] || (e[28] = p1('<path fill-rule="evenodd" d="M14 4H6V3H14V4Z"></path><path fill-rule="evenodd" d="M4 4H2V3H4V4Z"></path><path fill-rule="evenodd" d="M14 9H6V8H14V9Z"></path><path fill-rule="evenodd" d="M4 9H2V8H4V9Z"></path><path fill-rule="evenodd" d="M14 14H6V13H14V14Z"></path><path fill-rule="evenodd" d="M4 14H2V13H4V14Z"></path>', 6))
|
|
1939
1939
|
], 64)) : t.name === "calendar" ? (o(), i(M, { key: 26 }, [
|
|
1940
|
-
e[29] || (e[29] =
|
|
1940
|
+
e[29] || (e[29] = p1('<path d="M5 9V10H3V9H5Z"></path><path d="M9 10V9H7V10H9Z"></path><path d="M13 9V10H11V9H13Z"></path><path d="M5 13V12H3V13H5Z"></path><path d="M9 12V13H7V12H9Z"></path><path d="M13 13V12H11V13H13Z"></path><path fill-rule="evenodd" d="M5 2V0H4V2H0V16H16V2H12V0H11V2H5ZM1 3H14.999L14.9992 6H1V3ZM1 7V14.999H15L14.9993 7H1Z"></path>', 7))
|
|
1941
1941
|
], 64)) : t.name === "camera" ? (o(), i(M, { key: 27 }, [
|
|
1942
1942
|
e[30] || (e[30] = d("path", {
|
|
1943
1943
|
"fill-rule": "evenodd",
|
|
@@ -1995,14 +1995,14 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
1995
1995
|
d: "M15.5 2.5H4.75968L0.35968 8L4.75968 13.5H15.5V2.5ZM1.6403 8L5.2403 3.5H14.5V12.5H5.2403L1.6403 8Z"
|
|
1996
1996
|
}, null, -1))
|
|
1997
1997
|
], 64)) : t.name === "delta" ? (o(), i("path", Al)) : t.name === "download" ? (o(), i("path", Rl)) : t.name === "drag" ? (o(), i(M, { key: 55 }, [
|
|
1998
|
-
e[50] || (e[50] =
|
|
1998
|
+
e[50] || (e[50] = p1('<path fill-rule="evenodd" d="M4.99997 1.5C5.8284 1.5 6.49997 2.17157 6.49997 3C6.49997 3.82843 5.8284 4.5 4.99997 4.5C4.17154 4.5 3.49997 3.82843 3.49997 3C3.49997 2.17157 4.17154 1.5 4.99997 1.5ZM4.99997 3.5C5.27611 3.5 5.49997 3.27614 5.49997 3C5.49997 2.72386 5.27611 2.5 4.99997 2.5C4.72383 2.5 4.49997 2.72386 4.49997 3C4.49997 3.27614 4.72383 3.5 4.99997 3.5Z"></path><path fill-rule="evenodd" d="M6.49997 8C6.49997 7.17157 5.8284 6.5 4.99997 6.5C4.17154 6.5 3.49997 7.17157 3.49997 8C3.49997 8.82843 4.17154 9.5 4.99997 9.5C5.8284 9.5 6.49997 8.82843 6.49997 8ZM5.49997 8C5.49997 8.27614 5.27611 8.5 4.99997 8.5C4.72383 8.5 4.49997 8.27614 4.49997 8C4.49997 7.72386 4.72383 7.5 4.99997 7.5C5.27611 7.5 5.49997 7.72386 5.49997 8Z"></path><path fill-rule="evenodd" d="M4.99997 11.5C5.8284 11.5 6.49997 12.1716 6.49997 13C6.49997 13.8284 5.8284 14.5 4.99997 14.5C4.17154 14.5 3.49997 13.8284 3.49997 13C3.49997 12.1716 4.17154 11.5 4.99997 11.5ZM4.99997 13.5C5.27611 13.5 5.49997 13.2761 5.49997 13C5.49997 12.7239 5.27611 12.5 4.99997 12.5C4.72383 12.5 4.49997 12.7239 4.49997 13C4.49997 13.2761 4.72383 13.5 4.99997 13.5Z"></path><path fill-rule="evenodd" d="M11 1.5C11.8284 1.5 12.5 2.17157 12.5 3C12.5 3.82843 11.8284 4.5 11 4.5C10.1715 4.5 9.49997 3.82843 9.49997 3C9.49997 2.17157 10.1715 1.5 11 1.5ZM11 3.5C11.2761 3.5 11.5 3.27614 11.5 3C11.5 2.72386 11.2761 2.5 11 2.5C10.7238 2.5 10.5 2.72386 10.5 3C10.5 3.27614 10.7238 3.5 11 3.5Z"></path><path fill-rule="evenodd" d="M12.5 8C12.5 7.17157 11.8284 6.5 11 6.5C10.1715 6.5 9.49997 7.17157 9.49997 8C9.49997 8.82843 10.1715 9.5 11 9.5C11.8284 9.5 12.5 8.82843 12.5 8ZM11.5 8C11.5 8.27614 11.2761 8.5 11 8.5C10.7238 8.5 10.5 8.27614 10.5 8C10.5 7.72386 10.7238 7.5 11 7.5C11.2761 7.5 11.5 7.72386 11.5 8Z"></path><path fill-rule="evenodd" d="M11 11.5C11.8284 11.5 12.5 12.1716 12.5 13C12.5 13.8284 11.8284 14.5 11 14.5C10.1715 14.5 9.49997 13.8284 9.49997 13C9.49997 12.1716 10.1715 11.5 11 11.5ZM11 13.5C11.2761 13.5 11.5 13.2761 11.5 13C11.5 12.7239 11.2761 12.5 11 12.5C10.7238 12.5 10.5 12.7239 10.5 13C10.5 13.2761 10.7238 13.5 11 13.5Z"></path>', 6))
|
|
1999
1999
|
], 64)) : t.name === "drag-vertical" ? (o(), i(M, { key: 56 }, [
|
|
2000
2000
|
e[51] || (e[51] = d("path", { d: "M10.3535 13.3535L8 15.707L5.64648 13.3535L6.35352 12.6465L8 14.293L9.64648 12.6465L10.3535 13.3535Z" }, null, -1)),
|
|
2001
2001
|
e[52] || (e[52] = d("path", { d: "M14 10H2V9H14V10Z" }, null, -1)),
|
|
2002
2002
|
e[53] || (e[53] = d("path", { d: "M14 7H2V6H14V7Z" }, null, -1)),
|
|
2003
2003
|
e[54] || (e[54] = d("path", { d: "M10.3535 2.64648L9.64648 3.35352L8 1.70703L6.35352 3.35352L5.64648 2.64648L8 0.292969L10.3535 2.64648Z" }, null, -1))
|
|
2004
2004
|
], 64)) : t.name === "drilldown" ? (o(), i(M, { key: 57 }, [
|
|
2005
|
-
e[55] || (e[55] =
|
|
2005
|
+
e[55] || (e[55] = p1('<path d="M0.85359 2.14636L0.146484 2.85347L2.50004 5.20702L4.85359 2.85347L4.14648 2.14636L2.50004 3.79281L0.85359 2.14636Z"></path><path d="M6 3H15V4H6V3Z"></path><path d="M9 8H15V9H9V8Z"></path><path d="M9 13H15V14H9V13Z"></path><path d="M6.35353 15.3535L5.64642 14.6464L6.79287 13.5L5.64642 12.3535L6.35353 11.6464L8.20708 13.5L6.35353 15.3535Z"></path><path d="M5.64642 9.64642L6.35353 10.3535L8.20708 8.49997L6.35353 6.64642L5.64642 7.35353L6.79287 8.49997L5.64642 9.64642Z"></path>', 6))
|
|
2006
2006
|
], 64)) : t.name === "edit" ? (o(), i(M, { key: 58 }, [
|
|
2007
2007
|
e[56] || (e[56] = d("path", {
|
|
2008
2008
|
"fill-rule": "evenodd",
|
|
@@ -2069,9 +2069,9 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2069
2069
|
d: "M11.2383 1.89399C12.1091 1.60371 13.0349 2.15649 13.1914 3.06099L13.6846 5.91548L13.6865 5.92427L13.9287 7.50044H15.5C15.7761 7.50044 16 7.7243 16 8.00044C15.9998 8.27638 15.776 8.50044 15.5 8.50044H0.5C0.224003 8.50044 0.000235454 8.27638 0 8.00044C0 7.7243 0.223858 7.50044 0.5 7.50044H2.07129L2.31348 5.92427L2.31445 5.91548L2.80859 3.06099C2.96514 2.15649 3.89088 1.60371 4.76172 1.89399L5.62793 2.18306C7.16735 2.69617 8.83265 2.69617 10.3721 2.18306L11.2383 1.89399ZM3.08301 7.50044H12.917L12.7637 6.50044H3.23633L3.08301 7.50044ZM11.5547 2.84224L10.6875 3.1313C8.94301 3.71268 7.05699 3.71268 5.3125 3.1313L4.44531 2.84224C4.15503 2.74548 3.84613 2.93038 3.79395 3.23188L3.40234 5.50044H12.5977L12.2061 3.23188C12.1539 2.93038 11.845 2.74548 11.5547 2.84224Z"
|
|
2070
2070
|
}, null, -1))
|
|
2071
2071
|
], 64)) : t.name === "indent-left" ? (o(), i(M, { key: 81 }, [
|
|
2072
|
-
e[83] || (e[83] =
|
|
2072
|
+
e[83] || (e[83] = p1('<path d="M15 2H1V1H15V2Z"></path><path d="M15 6H10V5H15V6Z"></path><path d="M10 11H15V10H10V11Z"></path><path d="M15 15H1V14H15V15Z"></path><path d="M1 7.00001L4.70711 3.29291L5.41421 4.00001L2.91511 6.49991L8.70711 6.50001V7.50001L2.91511 7.49991L5.41421 10L4.70711 10.7071L1 7.00001Z"></path>', 5))
|
|
2073
2073
|
], 64)) : t.name === "indent-right" ? (o(), i(M, { key: 82 }, [
|
|
2074
|
-
e[84] || (e[84] =
|
|
2074
|
+
e[84] || (e[84] = p1('<path d="M15 2H1V1H15V2Z"></path><path d="M15 6H10V5H15V6Z"></path><path d="M10 11H15V10H10V11Z"></path><path d="M15 15H1V14H15V15Z"></path><path d="M8.70711 7.00001L5 3.29291L4.29289 4.00001L6.792 6.49991L1 6.50001V7.50001L6.792 7.49991L4.29289 10L5 10.7071L8.70711 7.00001Z"></path>', 5))
|
|
2075
2075
|
], 64)) : t.name === "information" ? (o(), i(M, { key: 83 }, [
|
|
2076
2076
|
e[85] || (e[85] = d("path", { d: "M7.5 5V4H8.5V5H7.5Z" }, null, -1)),
|
|
2077
2077
|
e[86] || (e[86] = d("path", { d: "M7.5 7V12H8.5V7H7.5Z" }, null, -1)),
|
|
@@ -2085,9 +2085,9 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2085
2085
|
e[90] || (e[90] = d("path", { d: "M13 5H3V4H13V5Z" }, null, -1)),
|
|
2086
2086
|
e[91] || (e[91] = d("path", { d: "M13 2H3V1H13V2Z" }, null, -1))
|
|
2087
2087
|
], 64)) : t.name === "italics" ? (o(), i("path", Ql)) : t.name === "itenary" ? (o(), i(M, { key: 86 }, [
|
|
2088
|
-
e[92] || (e[92] =
|
|
2088
|
+
e[92] || (e[92] = p1('<path d="M6 3V4H4V3H6Z"></path><path d="M6 7V6H4V7H6Z"></path><path d="M6 9V10H4V9H6Z"></path><path d="M6 13V12H4V13H6Z"></path><path d="M12 3V4H7V3H12Z"></path><path d="M12 7V6H7V7H12Z"></path><path d="M12 9V10H7V9H12Z"></path><path d="M12 13V12H7V13H12Z"></path><path fill-rule="evenodd" d="M15 0V16H1V0H15ZM14 1H2V15H14V1Z"></path>', 9))
|
|
2089
2089
|
], 64)) : t.name === "keyboard" ? (o(), i(M, { key: 87 }, [
|
|
2090
|
-
e[93] || (e[93] =
|
|
2090
|
+
e[93] || (e[93] = p1('<path fill-rule="evenodd" d="M1 3V6H4V3H1ZM3 4H2V5H3V4Z"></path><path fill-rule="evenodd" d="M5 3V6H8V3H5ZM7 4H6V5H7V4Z"></path><path fill-rule="evenodd" d="M1 7H4V10H1V7ZM2 8H3V9H2V8Z"></path><path fill-rule="evenodd" d="M5 11V14H12V11H5ZM11 12H6V13H11V12Z"></path><path fill-rule="evenodd" d="M9 3H12V6H9V3ZM10 4H11V5H10V4Z"></path><path fill-rule="evenodd" d="M5 7V10H8V7H5ZM7 8H6V9H7V8Z"></path><path fill-rule="evenodd" d="M13 3H16V6H13V3ZM14 4H15V5H14V4Z"></path><path fill-rule="evenodd" d="M9 7V10H12V7H9ZM11 8H10V9H11V8Z"></path><path fill-rule="evenodd" d="M13 7H16V10H13V7ZM14 8H15V9H14V8Z"></path>', 9))
|
|
2091
2091
|
], 64)) : t.name === "key-cmd" ? (o(), i("path", ql)) : t.name === "key-ctrl" ? (o(), i(M, { key: 89 }, [
|
|
2092
2092
|
e[94] || (e[94] = d("path", { d: "M3.60059 5.36523C3.96488 5.36523 4.30402 5.41631 4.61719 5.51855C4.9304 5.62083 5.21005 5.7706 5.45508 5.96875C5.70007 6.16475 5.90094 6.40594 6.05859 6.69141C6.21839 6.97479 6.32306 7.29874 6.37207 7.66309H5.17676C5.14267 7.46706 5.0799 7.29288 4.98828 7.1416C4.89672 6.98835 4.78272 6.85841 4.64648 6.75195C4.51018 6.64546 4.35431 6.56596 4.17969 6.5127C4.0071 6.4573 3.8204 6.42969 3.62012 6.42969C3.26433 6.4297 2.94866 6.51928 2.67383 6.69824C2.39919 6.87508 2.18377 7.13469 2.02832 7.47754C1.87279 7.81844 1.79492 8.23537 1.79492 8.72754C1.79495 9.22813 1.87281 9.65019 2.02832 9.99316C2.18596 10.334 2.4012 10.5919 2.67383 10.7666C2.94869 10.9392 3.26349 11.0254 3.61719 11.0254C3.81315 11.0254 3.99659 10.9994 4.16699 10.9482C4.33945 10.895 4.4936 10.8171 4.62988 10.7148C4.76838 10.6126 4.88477 10.487 4.97852 10.3379C5.07429 10.1889 5.14053 10.0187 5.17676 9.82715L6.37207 9.83301C6.32733 10.1441 6.2302 10.4363 6.08105 10.709C5.93412 10.9815 5.74135 11.222 5.50293 11.4307C5.26429 11.6373 4.98464 11.7998 4.66504 11.917C4.34551 12.032 3.99039 12.0898 3.60059 12.0898C3.02557 12.0898 2.51209 11.9566 2.06055 11.6904C1.60884 11.4241 1.25311 11.039 0.993164 10.5361C0.733267 10.0334 0.603548 9.43053 0.603516 8.72754C0.603516 8.02228 0.73402 7.41868 0.996094 6.91797C1.25816 6.41523 1.61574 6.03095 2.06738 5.76465C2.5189 5.49849 3.02987 5.36531 3.60059 5.36523Z" }, null, -1)),
|
|
2093
2093
|
e[95] || (e[95] = d("path", { d: "M8.7998 7.09082H9.76758V7.98535H8.7998V10.5234C8.7998 10.679 8.82324 10.7987 8.87012 10.8818C8.91907 10.9626 8.98286 11.0181 9.06152 11.0479C9.14036 11.0777 9.22834 11.0928 9.32422 11.0928C9.39633 11.0928 9.46205 11.0868 9.52148 11.0762C9.58294 11.0656 9.63016 11.0563 9.66211 11.0479L9.85742 11.9521C9.79564 11.9734 9.70677 11.9969 9.5918 12.0225C9.47896 12.048 9.34059 12.0631 9.17676 12.0674C8.887 12.0759 8.62579 12.0324 8.39355 11.9365C8.16136 11.8385 7.97717 11.6869 7.84082 11.4824C7.70659 11.2779 7.64045 11.0217 7.64258 10.7148V7.98535H6.94629V7.09082H7.64258V5.91504H8.7998V7.09082Z" }, null, -1)),
|
|
@@ -2166,7 +2166,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2166
2166
|
}, null, -1)),
|
|
2167
2167
|
e[125] || (e[125] = d("path", { d: "M5 5V7H7V8H5V10H4V8H2V7H4V5H5Z" }, null, -1))
|
|
2168
2168
|
], 64)) : t.name === "news" ? (o(), i("path", sn)) : t.name === "numbered-list" ? (o(), i(M, { key: 111 }, [
|
|
2169
|
-
e[126] || (e[126] =
|
|
2169
|
+
e[126] || (e[126] = p1('<path d="M2.76288 2.07468C2.91029 2.16578 3.00002 2.32671 3.00002 2.5V6H4.00002V7H1.00001V6H2.00002V3.30902L1.27641 3.67082L0.829193 2.77639L2.27641 2.05279C2.43141 1.97529 2.61548 1.98357 2.76288 2.07468Z"></path><path d="M1.77978 10.4083C1.72505 10.4724 1.66828 10.5388 1.60356 10.6036L0.896449 9.89645L0.899051 9.89369L0.907402 9.88438C0.914905 9.87582 0.924156 9.8649 0.936372 9.85022L0.95822 9.8238C0.978608 9.79909 1.00411 9.76818 1.02919 9.73868C1.10391 9.65077 1.20503 9.53881 1.33419 9.43004C1.59924 9.20684 1.9802 9 2.5 9C2.83674 9 3.21235 9.09412 3.51225 9.35028C3.82537 9.61774 4 10.0144 4 10.5C4 10.8755 3.85969 11.2168 3.68088 11.5102C3.50179 11.8041 3.26329 12.0836 3.02102 12.342C2.85943 12.5143 2.68235 12.6914 2.51227 12.8616L2.51151 12.8623C2.46502 12.9088 2.41905 12.9548 2.37407 13H4V14H1.25C1.06062 14 0.887485 13.893 0.802789 13.7236C0.718093 13.5542 0.736371 13.3515 0.850003 13.2C1.05871 12.9217 1.31288 12.652 1.56165 12.3992C1.64988 12.3096 1.73629 12.2232 1.82098 12.1385C1.9839 11.9757 2.14051 11.8191 2.29148 11.658C2.51797 11.4164 2.70134 11.1959 2.82694 10.9898C2.95282 10.7832 3 10.6245 3 10.5C3 10.2668 2.92463 10.1635 2.86276 10.1107C2.78766 10.0465 2.66327 10 2.5 10C2.12849 10 1.96593 10.1903 1.77978 10.4083Z"></path><path d="M15.5 3H6.5V4H15.5V3Z"></path><path d="M6.5 8H15.5V9H6.5V8Z"></path><path d="M15.5 13H6.5V14H15.5V13Z"></path>', 5))
|
|
2170
2170
|
], 64)) : t.name === "open-link" ? (o(), i(M, { key: 112 }, [
|
|
2171
2171
|
e[127] || (e[127] = d("path", { d: "M15 6H16V0H9.99997V1H14.2915L7.14642 8.14645L7.85353 8.85355L14.9995 1.707L15 6Z" }, null, -1)),
|
|
2172
2172
|
e[128] || (e[128] = d("path", { d: "M7 3V2H0V16H14V7H13L12.999 15H1V3H7Z" }, null, -1))
|
|
@@ -2184,15 +2184,15 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2184
2184
|
d: "M13 6.5C12.1716 6.5 11.5 7.17157 11.5 8C11.5 8.82843 12.1716 9.5 13 9.5C13.8284 9.5 14.5 8.82843 14.5 8C14.5 7.17157 13.8284 6.5 13 6.5ZM13 7.5C13.2761 7.5 13.5 7.72386 13.5 8C13.5 8.27614 13.2761 8.5 13 8.5C12.7239 8.5 12.5 8.27614 12.5 8C12.5 7.72386 12.7239 7.5 13 7.5Z"
|
|
2185
2185
|
}, null, -1))
|
|
2186
2186
|
], 64)) : t.name === "page" ? (o(), i(M, { key: 114 }, [
|
|
2187
|
-
e[132] || (e[132] =
|
|
2187
|
+
e[132] || (e[132] = p1('<path d="M8 3V4H4V3H8Z"></path><path d="M12 7V6H4V7H12Z"></path><path d="M12 9V10H4V9H12Z"></path><path d="M12 13V12H4V13H12Z"></path><path fill-rule="evenodd" d="M15 0V16H1V0H15ZM14 1H2V15H14V1Z"></path>', 5))
|
|
2188
2188
|
], 64)) : t.name === "panel-left-show" ? (o(), i(M, { key: 115 }, [
|
|
2189
|
-
e[133] || (e[133] =
|
|
2189
|
+
e[133] || (e[133] = p1('<path d="M4.5 9C4.77614 9 5 9.22386 5 9.5C5 9.77614 4.77614 10 4.5 10H2.5C2.22386 10 2 9.77614 2 9.5C2 9.22386 2.22386 9 2.5 9H4.5Z"></path><path d="M4.5 7C4.77614 7 5 7.22386 5 7.5C5 7.77614 4.77614 8 4.5 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H4.5Z"></path><path d="M4.5 5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H4.5Z"></path><path d="M4.5 3C4.77614 3 5 3.22386 5 3.5C5 3.77614 4.77614 4 4.5 4H2.5C2.22386 4 2 3.77614 2 3.5C2 3.22386 2.22386 3 2.5 3H4.5Z"></path><path d="M11.7246 4.58203C11.9187 4.45387 12.1827 4.47562 12.3535 4.64648C12.5244 4.81735 12.5461 5.08132 12.418 5.27539L12.3535 5.35352L10.707 7L12.3535 8.64648C12.5488 8.84174 12.5488 9.15825 12.3535 9.35352C12.1583 9.54877 11.8417 9.54877 11.6465 9.35352L9.29297 7L11.6465 4.64648L11.7246 4.58203Z"></path><path fill-rule="evenodd" d="M14 0C15.1046 0 16 0.895431 16 2V13L15.9893 13.2041C15.8938 14.1457 15.1457 14.8938 14.2041 14.9893L14 15H2L1.7959 14.9893C0.854347 14.8938 0.1062 14.1457 0.0107422 13.2041L0 13V2C0 0.964349 0.787223 0.113005 1.7959 0.0107422L2 0H14ZM2 1C1.48232 1 1.05621 1.39333 1.00488 1.89746L1 2V13C1 13.5523 1.44772 14 2 14H6V1H2ZM7 14H14C14.5523 14 15 13.5523 15 13V2C15 1.44772 14.5523 1 14 1H7V14Z"></path><path d="M4.5 11C4.77614 11 5 11.2239 5 11.5C5 11.7761 4.77614 12 4.5 12H2.5C2.22386 12 2 11.7761 2 11.5C2 11.2239 2.22386 11 2.5 11H4.5Z"></path>', 7))
|
|
2190
2190
|
], 64)) : t.name === "panel-left-hide" ? (o(), i(M, { key: 116 }, [
|
|
2191
|
-
e[134] || (e[134] =
|
|
2191
|
+
e[134] || (e[134] = p1('<path d="M4.5 9C4.77614 9 5 9.22386 5 9.5C5 9.77614 4.77614 10 4.5 10H2.5C2.22386 10 2 9.77614 2 9.5C2 9.22386 2.22386 9 2.5 9H4.5Z"></path><path d="M4.5 7C4.77614 7 5 7.22386 5 7.5C5 7.77614 4.77614 8 4.5 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H4.5Z"></path><path d="M4.5 5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H4.5Z"></path><path d="M4.5 3C4.77614 3 5 3.22386 5 3.5C5 3.77614 4.77614 4 4.5 4H2.5C2.22386 4 2 3.77614 2 3.5C2 3.22386 2.22386 3 2.5 3H4.5Z"></path><path d="M9.93945 4.64648C10.1103 4.47565 10.3743 4.45388 10.5684 4.58203L10.6465 4.64648L13 7L10.6465 9.35352C10.4512 9.54876 10.1347 9.54874 9.93945 9.35352C9.7442 9.15825 9.74419 8.84174 9.93945 8.64648L11.5859 7L9.93945 5.35352L9.875 5.27539C9.74684 5.08132 9.7686 4.81735 9.93945 4.64648Z"></path><path fill-rule="evenodd" d="M14 0C15.1046 0 16 0.895431 16 2V13L15.9893 13.2041C15.8938 14.1457 15.1457 14.8938 14.2041 14.9893L14 15H2L1.7959 14.9893C0.854347 14.8938 0.1062 14.1457 0.0107422 13.2041L0 13V2C0 0.964349 0.787223 0.113005 1.7959 0.0107422L2 0H14ZM2 1C1.48232 1 1.05621 1.39333 1.00488 1.89746L1 2V13C1 13.5523 1.44772 14 2 14H6V1H2ZM7 14H14C14.5523 14 15 13.5523 15 13V2C15 1.44772 14.5523 1 14 1H7V14Z"></path><path d="M4.5 11C4.77614 11 5 11.2239 5 11.5C5 11.7761 4.77614 12 4.5 12H2.5C2.22386 12 2 11.7761 2 11.5C2 11.2239 2.22386 11 2.5 11H4.5Z"></path>', 7))
|
|
2192
2192
|
], 64)) : t.name === "panel-right-show" ? (o(), i(M, { key: 117 }, [
|
|
2193
|
-
e[135] || (e[135] =
|
|
2193
|
+
e[135] || (e[135] = p1('<path d="M3.93945 4.64648C4.11032 4.47566 4.37429 4.45388 4.56836 4.58203L4.64648 4.64648L7 7L4.64648 9.35352C4.45123 9.54876 4.13471 9.54873 3.93945 9.35352C3.7442 9.15825 3.7442 8.84174 3.93945 8.64648L5.58594 7L3.93945 5.35352L3.875 5.27539C3.74684 5.08132 3.7686 4.81735 3.93945 4.64648Z"></path><path d="M13.5 9C13.7761 9 14 9.22386 14 9.5C14 9.77614 13.7761 10 13.5 10H11.5C11.2239 10 11 9.77614 11 9.5C11 9.22386 11.2239 9 11.5 9H13.5Z"></path><path d="M13.5 7C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H11.5C11.2239 8 11 7.77614 11 7.5C11 7.22386 11.2239 7 11.5 7H13.5Z"></path><path d="M13.5 5C13.7761 5 14 5.22386 14 5.5C14 5.77614 13.7761 6 13.5 6H11.5C11.2239 6 11 5.77614 11 5.5C11 5.22386 11.2239 5 11.5 5H13.5Z"></path><path d="M13.5 3C13.7761 3 14 3.22386 14 3.5C14 3.77614 13.7761 4 13.5 4H11.5C11.2239 4 11 3.77614 11 3.5C11 3.22386 11.2239 3 11.5 3H13.5Z"></path><path fill-rule="evenodd" d="M14 0C15.1046 0 16 0.895431 16 2V13L15.9893 13.2041C15.8938 14.1457 15.1457 14.8938 14.2041 14.9893L14 15H2L1.7959 14.9893C0.854347 14.8938 0.1062 14.1457 0.0107422 13.2041L0 13V2C0 0.964349 0.787223 0.113005 1.7959 0.0107422L2 0H14ZM2 1C1.48232 1 1.05621 1.39333 1.00488 1.89746L1 2V13C1 13.5523 1.44772 14 2 14H9V1H2ZM10 14H14C14.5523 14 15 13.5523 15 13V2C15 1.44772 14.5523 1 14 1H10V14Z"></path><path d="M13.5 11C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H11.5C11.2239 12 11 11.7761 11 11.5C11 11.2239 11.2239 11 11.5 11H13.5Z"></path>', 7))
|
|
2194
2194
|
], 64)) : t.name === "panel-right-hide" ? (o(), i(M, { key: 118 }, [
|
|
2195
|
-
e[136] || (e[136] =
|
|
2195
|
+
e[136] || (e[136] = p1('<path d="M5.72461 4.58203C5.91869 4.45387 6.18265 4.47562 6.35352 4.64648C6.52437 4.81735 6.54613 5.08132 6.41797 5.27539L6.35352 5.35352L4.70703 7L6.35352 8.64648C6.54877 8.84174 6.54877 9.15825 6.35352 9.35352C6.15826 9.54877 5.84175 9.54877 5.64648 9.35352L3.29297 7L5.64648 4.64648L5.72461 4.58203Z"></path><path d="M13.5 9C13.7761 9 14 9.22386 14 9.5C14 9.77614 13.7761 10 13.5 10H11.5C11.2239 10 11 9.77614 11 9.5C11 9.22386 11.2239 9 11.5 9H13.5Z"></path><path d="M13.5 7C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H11.5C11.2239 8 11 7.77614 11 7.5C11 7.22386 11.2239 7 11.5 7H13.5Z"></path><path d="M13.5 5C13.7761 5 14 5.22386 14 5.5C14 5.77614 13.7761 6 13.5 6H11.5C11.2239 6 11 5.77614 11 5.5C11 5.22386 11.2239 5 11.5 5H13.5Z"></path><path d="M13.5 3C13.7761 3 14 3.22386 14 3.5C14 3.77614 13.7761 4 13.5 4H11.5C11.2239 4 11 3.77614 11 3.5C11 3.22386 11.2239 3 11.5 3H13.5Z"></path><path fill-rule="evenodd" d="M14 0C15.1046 0 16 0.895431 16 2V13L15.9893 13.2041C15.8938 14.1457 15.1457 14.8938 14.2041 14.9893L14 15H2L1.7959 14.9893C0.854347 14.8938 0.1062 14.1457 0.0107422 13.2041L0 13V2C0 0.964349 0.787223 0.113005 1.7959 0.0107422L2 0H14ZM2 1C1.48232 1 1.05621 1.39333 1.00488 1.89746L1 2V13C1 13.5523 1.44772 14 2 14H9V1H2ZM10 14H14C14.5523 14 15 13.5523 15 13V2C15 1.44772 14.5523 1 14 1H10V14Z"></path><path d="M13.5 11C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H11.5C11.2239 12 11 11.7761 11 11.5C11 11.2239 11.2239 11 11.5 11H13.5Z"></path>', 7))
|
|
2196
2196
|
], 64)) : t.name === "paper-plane" ? (o(), i("path", an)) : t.name === "paper" ? (o(), i("path", rn)) : t.name === "pause" ? (o(), i("path", dn)) : t.name === "pdf" ? (o(), i(M, { key: 122 }, [
|
|
2197
2197
|
e[137] || (e[137] = d("path", {
|
|
2198
2198
|
"fill-rule": "evenodd",
|
|
@@ -2222,7 +2222,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2222
2222
|
"fill-rule": "evenodd",
|
|
2223
2223
|
d: "M0 2V14H16V2H0ZM15 3H1V10.5284L3.98146 8.3988L8.01149 10.9176L11.5115 8.91757L15 11.0979V3ZM15 12.2771L11.4885 10.0825L7.98851 12.0825L4.01854 9.60122L1 11.7573V13H15V12.2771Z"
|
|
2224
2224
|
}, null, -1))
|
|
2225
|
-
], 64)) : t.name === "pie-chart" ? (o(), i("path",
|
|
2225
|
+
], 64)) : t.name === "pie-chart" ? (o(), i("path", pn)) : t.name === "play" ? (o(), i("path", fn)) : t.name === "plus" ? (o(), i("path", cn)) : t.name === "point-left" ? (o(), i("path", Cn)) : t.name === "point-up" ? (o(), i("path", vn)) : t.name === "popup" ? (o(), i(M, { key: 131 }, [
|
|
2226
2226
|
e[145] || (e[145] = d("path", { d: "M12 9V4H7.00001V5L10.2935 4.999L5.64645 9.64645L6.35356 10.3536L10.9995 5.707L11 9H12Z" }, null, -1)),
|
|
2227
2227
|
e[146] || (e[146] = d("path", {
|
|
2228
2228
|
"fill-rule": "evenodd",
|
|
@@ -2236,7 +2236,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2236
2236
|
d: "M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15Z"
|
|
2237
2237
|
}, null, -1))
|
|
2238
2238
|
], 64)) : t.name === "radio-tower" ? (o(), i("path", hn)) : t.name === "recycle" ? (o(), i("path", mn)) : t.name === "redo" ? (o(), i("path", gn)) : t.name === "refresh" ? (o(), i("path", bn)) : t.name === "route" ? (o(), i("path", Ln)) : t.name === "rows" ? (o(), i("path", yn)) : t.name === "scope" ? (o(), i(M, { key: 139 }, [
|
|
2239
|
-
e[150] || (e[150] =
|
|
2239
|
+
e[150] || (e[150] = p1('<path d="M2 3.5C2 2.67157 2.67157 2 3.5 2H4.75V1H3.5C2.11929 1 1 2.11929 1 3.5V4.75H2V3.5Z"></path><path d="M11.25 2H12.5C13.3284 2 14 2.67157 14 3.5V4.75H15V3.5C15 2.11929 13.8807 1 12.5 1H11.25V2Z"></path><path d="M2 12.5V11.25H1V12.5C1 13.8807 2.11929 15 3.5 15H4.75V14H3.5C2.67157 14 2 13.3284 2 12.5Z"></path><path d="M14 11.25V12.5C14 13.3284 13.3284 14 12.5 14H11.25V15H12.5C13.8807 15 15 13.8807 15 12.5V11.25H14Z"></path><path fill-rule="evenodd" d="M5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8ZM10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10C9.10457 10 10 9.10457 10 8Z"></path>', 5))
|
|
2240
2240
|
], 64)) : t.name === "settings" ? (o(), i(M, { key: 140 }, [
|
|
2241
2241
|
e[151] || (e[151] = d("path", {
|
|
2242
2242
|
"fill-rule": "evenodd",
|
|
@@ -2256,11 +2256,11 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2256
2256
|
e[157] || (e[157] = d("path", { d: "M13 2H12V1H2.00098V14.999H12V13H13V16H1V0H13V2Z" }, null, -1)),
|
|
2257
2257
|
e[158] || (e[158] = d("path", { d: "M15.707 7.5L12 11.207L11.293 10.5L13.792 8H5V7H13.7939L11.293 4.5L12 3.79297L15.707 7.5Z" }, null, -1))
|
|
2258
2258
|
], 64)) : t.name === "sign-up" ? (o(), i("path", Hn)) : t.name === "slideshow" ? (o(), i("path", Vn)) : t.name === "sort-down" ? (o(), i(M, { key: 146 }, [
|
|
2259
|
-
e[159] || (e[159] =
|
|
2259
|
+
e[159] || (e[159] = p1('<path d="M10 3V2H0V3H10Z"></path><path d="M12.9999 12.793L13 3H12L11.9999 12.793L9.50001 10.2929L8.79291 11L12.5 14.7071L16.2071 11L15.5 10.2929L12.9999 12.793Z"></path><path d="M6 9V8H0V9H6Z"></path><path d="M2 14V15H0V14H2Z"></path><path d="M8 5V6H0V5H8Z"></path><path d="M4 12V11H0V12H4Z"></path>', 6))
|
|
2260
2260
|
], 64)) : t.name === "sort-up" ? (o(), i(M, { key: 147 }, [
|
|
2261
|
-
e[160] || (e[160] =
|
|
2261
|
+
e[160] || (e[160] = p1('<path d="M2 1V2H0V1H2Z"></path><path d="M6 8V7H0V8H6Z"></path><path d="M10 14V13H0V14H10Z"></path><path d="M4 5V4H0V5H4Z"></path><path d="M8 10V11H0V10H8Z"></path><path d="M16.2071 5.00002L12.5 1.29291L8.79291 5.00002L9.50001 5.70713L11.9999 3.20591L12 13H13L12.9999 3.20591L15.5 5.70713L16.2071 5.00002Z"></path>', 6))
|
|
2262
2262
|
], 64)) : t.name === "sort" ? (o(), i(M, { key: 148 }, [
|
|
2263
|
-
e[161] || (e[161] =
|
|
2263
|
+
e[161] || (e[161] = p1('<path d="M15 2V1H1V2H15Z"></path><path d="M9 8V7H1V8H9Z"></path><path d="M3 13V14H1V13H3Z"></path><path d="M12 4V5H1V4H12Z"></path><path d="M6 11V10H1V11H6Z"></path>', 5))
|
|
2264
2264
|
], 64)) : t.name === "square-solid" ? (o(), i("path", kn)) : t.name === "star-solid" ? (o(), i("path", wn)) : t.name === "star" ? (o(), i("path", Mn)) : t.name === "stop-watch" ? (o(), i(M, { key: 152 }, [
|
|
2265
2265
|
e[162] || (e[162] = d("path", { d: "M10.5 1.5C10.5 1.22386 10.2761 1 10 1H6L5.91012 1.00806C5.67688 1.05039 5.5 1.25454 5.5 1.5C5.5 1.77614 5.72386 2 6 2H10L10.0899 1.99194C10.3231 1.94961 10.5 1.74546 10.5 1.5Z" }, null, -1)),
|
|
2266
2266
|
e[163] || (e[163] = d("path", { d: "M4.64645 5.64645C4.82001 5.47288 5.08944 5.4536 5.28431 5.58859L5.35355 5.64645L8.43834 8.73123C8.6336 8.92649 8.6336 9.24308 8.43834 9.43834C8.26477 9.61191 7.99535 9.63119 7.80048 9.49619L7.73123 9.43834L4.64645 6.35355C4.45118 6.15829 4.45118 5.84171 4.64645 5.64645Z" }, null, -1)),
|
|
@@ -2269,7 +2269,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2269
2269
|
d: "M8 2.5C9.61487 2.5 11.0922 3.08889 12.2289 4.06364L13.1464 3.14645C13.3417 2.95118 13.6583 2.95118 13.8536 3.14645C14.0271 3.32001 14.0464 3.58944 13.9114 3.78431L13.8536 3.85355L12.9364 4.77106C13.9111 5.90781 14.5 7.38513 14.5 9C14.5 12.5899 11.5899 15.5 8 15.5C4.41015 15.5 1.5 12.5899 1.5 9C1.5 5.41015 4.41015 2.5 8 2.5ZM8 3.5C4.96243 3.5 2.5 5.96243 2.5 9C2.5 12.0376 4.96243 14.5 8 14.5C11.0376 14.5 13.5 12.0376 13.5 9C13.5 5.96243 11.0376 3.5 8 3.5Z"
|
|
2270
2270
|
}, null, -1))
|
|
2271
2271
|
], 64)) : t.name === "structure" ? (o(), i("path", Zn)) : t.name === "sun" ? (o(), i(M, { key: 154 }, [
|
|
2272
|
-
e[165] || (e[165] =
|
|
2272
|
+
e[165] || (e[165] = p1('<path d="M7.5 2V0H8.5V2H7.5Z"></path><path d="M7.5 16V14H8.5V16H7.5Z"></path><path d="M16 8.5H14V7.5H16V8.5Z"></path><path d="M2 8.5H0V7.5H2V8.5Z"></path><path d="M13.3032 1.98956L14.0103 2.69667L12.5961 4.11088L11.889 3.40378L13.3032 1.98956Z"></path><path d="M2.69666 14.0104L1.98955 13.3033L3.40376 11.8891L4.11087 12.5962L2.69666 14.0104Z"></path><path d="M14.0103 13.3033L13.3032 14.0104L11.889 12.5962L12.5961 11.8891L14.0103 13.3033Z"></path><path d="M3.40373 4.11088L1.98952 2.69667L2.69662 1.98956L4.11084 3.40378L3.40373 4.11088Z"></path><path fill-rule="evenodd" d="M12 8C12 10.2091 10.2091 12 8 12C5.79086 12 4 10.2091 4 8C4 5.79086 5.79086 4 8 4C10.2091 4 12 5.79086 12 8ZM11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z"></path>', 9))
|
|
2273
2273
|
], 64)) : t.name === "table" ? (o(), i("path", $n)) : t.name === "tag" ? (o(), i("path", Dn)) : t.name === "teacher" ? (o(), i(M, { key: 157 }, [
|
|
2274
2274
|
e[166] || (e[166] = d("path", { d: "M1.40723 2.00879C1.67823 1.95759 1.93959 2.13621 1.99121 2.40723L3.47559 10.1992C3.80186 10.0706 4.14524 10 4.5 10C4.77614 10 5 10.2239 5 10.5C5 10.7761 4.77614 11 4.5 11C4.20999 11 3.93019 11.0728 3.66602 11.2021L3.99121 12.9062C4.04276 13.1773 3.86476 13.4394 3.59375 13.4912C3.32267 13.5427 3.0606 13.3648 3.00879 13.0938L2.78027 11.8965C2.06441 12.6854 1.58136 13.8537 1.51074 14.8115C1.53638 14.9013 1.60803 14.9716 1.69824 14.9932L1.75684 15H14.2432C14.3639 14.9998 14.4662 14.9143 14.4932 14.7998L14.5 14.7402V13.0527C14.5 11.3554 13.1721 10 11.5 10C11.2239 10 11 9.77614 11 9.5C11 9.22386 11.2239 9 11.5 9C13.6614 9 15.3921 10.6995 15.4951 12.8496L15.5 13.0527V14.7402C15.4999 15.3913 15.0051 15.9285 14.3711 15.9932L14.2432 16H1.75684C1.10594 15.9998 0.571192 15.5025 0.506836 14.8682L0.504883 14.8398C0.501451 14.9111 0.5 14.9824 0.5 15.0527V14.7402L0.504883 14.8359C0.577532 13.3532 1.38349 11.6777 2.55957 10.7393L1.00879 2.59277C0.957587 2.32177 1.13621 2.06041 1.40723 2.00879Z" }, null, -1)),
|
|
2275
2275
|
e[167] || (e[167] = d("path", {
|
|
@@ -2294,7 +2294,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2294
2294
|
}, null, -1)),
|
|
2295
2295
|
e[175] || (e[175] = d("path", { d: "M15.4952 12.8494C15.3922 10.6993 13.6614 9 11.5 9C11.2239 9 11 9.22386 11 9.5C11 9.77614 11.2239 10 11.5 10C13.1721 10 14.5 11.355 14.5 13.0523V14.74L14.4932 14.7995C14.4663 14.9143 14.3638 15 14.2428 15H1.75723L1.69853 14.9931C1.58528 14.9661 1.5 14.8629 1.5 14.74V13.0523L1.50504 12.8718C1.59529 11.2599 2.88766 10 4.5 10C4.77614 10 5 9.77614 5 9.5C5 9.22386 4.77614 9 4.5 9C2.27109 9 0.5 10.8071 0.5 13.0523V14.74L0.50649 14.8686C0.570859 15.5031 1.10616 16 1.75723 16H14.2428L14.3713 15.9935C15.0054 15.9288 15.5 15.3912 15.5 14.74V13.0523L15.4952 12.8494Z" }, null, -1))
|
|
2296
2296
|
], 64)) : t.name === "venn" ? (o(), i("path", En)) : t.name === "video" ? (o(), i("path", On)) : t.name === "visibility-off-alt" ? (o(), i(M, { key: 169 }, [
|
|
2297
|
-
e[176] || (e[176] =
|
|
2297
|
+
e[176] || (e[176] = p1('<path d="M14.1873 3.1816C14.3939 2.99839 14.4129 2.68238 14.2297 2.47577C14.0465 2.26916 13.7305 2.25019 13.5239 2.4334L1.81263 12.8183C1.60602 13.0016 1.58706 13.3176 1.77027 13.5242C1.95348 13.7308 2.26949 13.7498 2.4761 13.5666L14.1873 3.1816Z"></path><path d="M9.97039 3.26198C10.347 3.36379 10.434 3.83673 10.1421 4.09559C10.0061 4.21618 9.81754 4.25579 9.6416 4.21015C9.18473 4.09163 8.72341 4.02336 8.25756 4.00501L7.99999 3.99994C5.67785 3.99994 3.46772 5.22992 1.3611 7.73033L1.13799 7.99994L1.3611 8.26955C1.84697 8.84624 2.33835 9.35535 2.83533 9.79738C3.06497 10.0017 3.07413 10.3632 2.84418 10.5671C2.66124 10.7293 2.38675 10.7348 2.20352 10.5729C1.48721 9.94001 0.787738 9.18431 0.105324 8.30692C-0.035108 8.12636 -0.035108 7.87352 0.105324 7.69297C2.52575 4.581 5.16083 2.99994 7.99999 2.99994C8.66813 2.99994 9.32498 3.08751 9.97039 3.26198Z"></path><path d="M8.00002 4.99994C8.42927 4.99994 8.54791 5.50926 8.22674 5.79405L8.1656 5.84827C8.05537 5.94601 7.91267 5.99641 7.76635 6.01344C6.92866 6.11092 6.24892 6.72603 6.05541 7.53049C6.02096 7.67375 5.95395 7.80946 5.84371 7.90721L5.51375 8.19981C5.31238 8.37837 5.00002 8.26908 5.00002 7.99994C5.00002 6.34308 6.34315 4.99994 8.00002 4.99994Z"></path><path d="M9.94462 8.46937C9.97908 8.3261 10.0461 8.19038 10.1563 8.09262L10.4862 7.80008C10.6876 7.62149 11 7.73079 11 7.99996C11 9.65682 9.65688 11 8.00002 11C7.57072 11 7.45208 10.4906 7.77328 10.2058L7.83435 10.1517C7.94458 10.0539 8.08728 10.0035 8.23362 9.98647C9.07135 9.88902 9.75111 9.27387 9.94462 8.46937Z"></path><path d="M6.35836 11.7898C6.18242 11.7441 5.99382 11.7837 5.85782 11.9043C5.56591 12.1632 5.65292 12.6361 6.02955 12.7379C6.67497 12.9124 7.33183 13 7.99999 13C10.7445 13 13.2984 11.5226 15.6519 8.61303L15.8932 8.3058C16.0344 8.1261 16.035 7.87336 15.8947 7.69299C15.2123 6.81558 14.5128 6.05988 13.7965 5.427C13.6132 5.26511 13.3387 5.27063 13.1558 5.43285C12.9258 5.63675 12.935 5.99826 13.1647 6.2025C13.6616 6.64453 14.153 7.15365 14.6389 7.73035L14.861 7.99996L14.6389 8.26957C12.5323 10.77 10.3222 12 7.99999 12L7.74244 11.9949C7.27657 11.9766 6.81524 11.9083 6.35836 11.7898Z"></path>', 5))
|
|
2298
2298
|
], 64)) : t.name === "visibility-off" ? (o(), i("path", In)) : t.name === "visibility-on" ? (o(), i(M, { key: 171 }, [
|
|
2299
2299
|
e[177] || (e[177] = d("path", {
|
|
2300
2300
|
"fill-rule": "evenodd",
|
|
@@ -2328,7 +2328,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2328
2328
|
class: "flex items-center justify-center w-4 h-4 rounded-full hover:bg-black/15 focus-visible:bg-black/15 active:bg-black/25 dark:hover:bg-white/15 dark:focus-visible:bg-white/15 dark:active:bg-white/25 text-tertiary hover:text-secondary active:text-tertiary cursor-pointer",
|
|
2329
2329
|
onClick: e[0] || (e[0] = F((l) => t.$emit("click"), ["stop", "prevent"]))
|
|
2330
2330
|
}, [
|
|
2331
|
-
w(
|
|
2331
|
+
w(p(t1), { name: "close" })
|
|
2332
2332
|
]));
|
|
2333
2333
|
}
|
|
2334
2334
|
}), Pn = { class: "flex items-center justify-between w-full h-12" }, Fn = { key: 0 }, Nn = { key: 1 }, Un = { class: "flex items-center h-12" }, Hs = /* @__PURE__ */ $({
|
|
@@ -2344,38 +2344,38 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2344
2344
|
const l = e, s = y(!1), r = y(), a = O(() => {
|
|
2345
2345
|
var u;
|
|
2346
2346
|
return (u = r.value) == null ? void 0 : u.$el;
|
|
2347
|
-
}), { trapFocus:
|
|
2347
|
+
}), { trapFocus: c, releaseFocus: h } = j1(a, !0);
|
|
2348
2348
|
a1(() => s.value = !0);
|
|
2349
2349
|
const m = () => {
|
|
2350
2350
|
h(), s.value = !1;
|
|
2351
2351
|
}, C = () => n.closeable && m();
|
|
2352
2352
|
return n.closeable && Ce(C), t({ close: m }), (u, g) => (o(), V(U1, { to: u.target }, [
|
|
2353
|
-
w(
|
|
2353
|
+
w(p(he), {
|
|
2354
2354
|
show: s.value,
|
|
2355
2355
|
type: u.overlayType,
|
|
2356
2356
|
onClick: C,
|
|
2357
|
-
onClose: g[1] || (g[1] = (
|
|
2357
|
+
onClose: g[1] || (g[1] = (f) => l("close"))
|
|
2358
2358
|
}, {
|
|
2359
2359
|
default: Z(() => [
|
|
2360
|
-
w(
|
|
2360
|
+
w(p(st), {
|
|
2361
2361
|
onTransitionAfterEnter: g[0] || (g[0] = () => {
|
|
2362
|
-
|
|
2362
|
+
p(c)(), l("open");
|
|
2363
2363
|
})
|
|
2364
2364
|
}, {
|
|
2365
2365
|
default: Z(() => [
|
|
2366
|
-
W1(w(
|
|
2366
|
+
W1(w(p(ge), {
|
|
2367
2367
|
ref_key: "windowRef",
|
|
2368
2368
|
ref: r,
|
|
2369
2369
|
class: "h-64 max-w-2xl md:w-1/2 md:max-w-lg p-4 md:px-8"
|
|
2370
2370
|
}, {
|
|
2371
2371
|
default: Z(() => [
|
|
2372
|
-
w(
|
|
2372
|
+
w(p(me), null, {
|
|
2373
2373
|
header: Z(() => [
|
|
2374
2374
|
d("header", Pn, [
|
|
2375
2375
|
u.title ? (o(), i("h4", Fn, K(u.title), 1)) : (o(), i("h4", Nn, [
|
|
2376
2376
|
E(u.$slots, "title", { close: m })
|
|
2377
2377
|
])),
|
|
2378
|
-
u.closeable ? (o(), V(
|
|
2378
|
+
u.closeable ? (o(), V(p(j), {
|
|
2379
2379
|
key: 2,
|
|
2380
2380
|
small: "",
|
|
2381
2381
|
icon: "close",
|
|
@@ -2455,7 +2455,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2455
2455
|
}, [
|
|
2456
2456
|
d("span", Wn, K(t.label), 1),
|
|
2457
2457
|
t.active && t.count ? (o(), i("span", Yn, K(t.count), 1)) : k("", !0),
|
|
2458
|
-
t.deletable && t.active ? (o(), V(
|
|
2458
|
+
t.deletable && t.active ? (o(), V(p(xn), {
|
|
2459
2459
|
key: 1,
|
|
2460
2460
|
onClick: e[0] || (e[0] = (l) => t.$emit("delete"))
|
|
2461
2461
|
})) : k("", !0)
|
|
@@ -2550,8 +2550,8 @@ const Xn = () => {
|
|
|
2550
2550
|
let l = t.offsetParent;
|
|
2551
2551
|
for (; l && n !== l && n.contains(l); )
|
|
2552
2552
|
e.push(l), l = l.offsetParent;
|
|
2553
|
-
const s = t.offsetTop + e.reduce((h, m) => h + m.offsetTop, 0), r = s + t.offsetHeight, a = n.scrollTop,
|
|
2554
|
-
s < a ? n.scrollTop = s : r >
|
|
2553
|
+
const s = t.offsetTop + e.reduce((h, m) => h + m.offsetTop, 0), r = s + t.offsetHeight, a = n.scrollTop, c = a + n.clientHeight;
|
|
2554
|
+
s < a ? n.scrollTop = s : r > c && (n.scrollTop = r - n.clientHeight);
|
|
2555
2555
|
}, de = (n) => n != null, ws = (n) => de(n) && (typeof n == "string" ? n !== "" : !0) && (Array.isArray(n) ? n.length > 0 : !0), Gn = ["aria-label"], De = /* @__PURE__ */ $({
|
|
2556
2556
|
__name: "Aside",
|
|
2557
2557
|
props: {
|
|
@@ -2568,37 +2568,37 @@ const Xn = () => {
|
|
|
2568
2568
|
e.side === "left" ? "left-0" : "right-0",
|
|
2569
2569
|
e.border ? e.side === "left" ? "border-r border-default" : "border-l border-default" : ""
|
|
2570
2570
|
]);
|
|
2571
|
-
let a,
|
|
2571
|
+
let a, c;
|
|
2572
2572
|
const h = y(!1);
|
|
2573
|
-
function m(
|
|
2574
|
-
a =
|
|
2573
|
+
function m(f) {
|
|
2574
|
+
a = f.pageX, c = e.width, h.value = !0, window.addEventListener("mouseup", u), window.addEventListener("mousemove", C), l("resize-start");
|
|
2575
2575
|
}
|
|
2576
|
-
function C(
|
|
2577
|
-
const b = e.side === "left" ?
|
|
2576
|
+
function C(f) {
|
|
2577
|
+
const b = e.side === "left" ? f.pageX - a : a - f.pageX, v = c + b, L = P1(v, e.minWidth, e.maxWidth);
|
|
2578
2578
|
L !== e.width && l("resize", L);
|
|
2579
2579
|
}
|
|
2580
2580
|
function u() {
|
|
2581
2581
|
h.value = !1, window.removeEventListener("mouseup", u), window.removeEventListener("mousemove", C), l("resize-end");
|
|
2582
2582
|
}
|
|
2583
|
-
function g(
|
|
2583
|
+
function g(f) {
|
|
2584
2584
|
let v = e.width;
|
|
2585
|
-
if (e.side === "left" ?
|
|
2586
|
-
|
|
2585
|
+
if (e.side === "left" ? f.key === "ArrowLeft" ? v = e.width - 30 : f.key === "ArrowRight" && (v = e.width + 30) : f.key === "ArrowLeft" ? v = e.width + 30 : f.key === "ArrowRight" && (v = e.width - 30), v !== e.width) {
|
|
2586
|
+
f.preventDefault();
|
|
2587
2587
|
const L = P1(v, e.minWidth, e.maxWidth);
|
|
2588
2588
|
L !== e.width && l("resize", L);
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
|
-
return (
|
|
2591
|
+
return (f, b) => (o(), i("aside", {
|
|
2592
2592
|
ref_key: "aside",
|
|
2593
2593
|
ref: s,
|
|
2594
2594
|
tabindex: "0",
|
|
2595
2595
|
style: n1({
|
|
2596
|
-
width: `${
|
|
2596
|
+
width: `${f.width}px`,
|
|
2597
2597
|
transitionProperty: h.value ? "none" : "transform, width"
|
|
2598
2598
|
}),
|
|
2599
2599
|
class: T(["absolute top-0 z-10 h-full overflow-x-hidden bg-primary", r.value])
|
|
2600
2600
|
}, [
|
|
2601
|
-
E(
|
|
2601
|
+
E(f.$slots, "default"),
|
|
2602
2602
|
e.draggable ? (o(), i("button", {
|
|
2603
2603
|
key: 0,
|
|
2604
2604
|
tabindex: "0",
|
|
@@ -2628,16 +2628,16 @@ const Xn = () => {
|
|
|
2628
2628
|
},
|
|
2629
2629
|
emits: ["aside-left-resize", "aside-left-resize-end", "aside-left-resize-start", "aside-left-transition-end", "aside-right-resize", "aside-right-resize-end", "aside-right-resize-start", "aside-right-transition-end"],
|
|
2630
2630
|
setup(n, { emit: t }) {
|
|
2631
|
-
const e = n, l = t, s = y(!1), r = y(e.asideLeftWidth), a = y(e.asideRightWidth),
|
|
2632
|
-
paddingLeft: `${
|
|
2631
|
+
const e = n, l = t, s = y(!1), r = y(e.asideLeftWidth), a = y(e.asideRightWidth), c = y(e.asideLeftWidth), h = y(e.asideRightWidth), m = O(() => ({
|
|
2632
|
+
paddingLeft: `${c.value}px`,
|
|
2633
2633
|
paddingRight: `${h.value}px`
|
|
2634
2634
|
})), C = () => {
|
|
2635
2635
|
s.value = !1, l("aside-left-resize-end");
|
|
2636
2636
|
}, u = () => {
|
|
2637
2637
|
s.value = !0, l("aside-left-resize-start");
|
|
2638
2638
|
}, g = (H) => {
|
|
2639
|
-
r.value =
|
|
2640
|
-
},
|
|
2639
|
+
r.value = c.value = H, l("aside-left-resize", H);
|
|
2640
|
+
}, f = (H) => !H && l("aside-left-transition-end"), b = () => {
|
|
2641
2641
|
s.value = !1, l("aside-right-resize-end");
|
|
2642
2642
|
}, v = () => {
|
|
2643
2643
|
s.value = !0, l("aside-right-resize-start");
|
|
@@ -2646,22 +2646,22 @@ const Xn = () => {
|
|
|
2646
2646
|
}, D = (H) => !H && l("aside-right-transition-end");
|
|
2647
2647
|
r1(
|
|
2648
2648
|
() => e.asideLeftVisible,
|
|
2649
|
-
(H) =>
|
|
2649
|
+
(H) => c.value = H ? r.value : 0
|
|
2650
2650
|
), r1(
|
|
2651
2651
|
() => e.asideRightVisible,
|
|
2652
2652
|
(H) => h.value = H ? a.value : 0
|
|
2653
2653
|
), r1(
|
|
2654
2654
|
() => e.asideLeftWidth,
|
|
2655
|
-
(H) => r.value =
|
|
2655
|
+
(H) => r.value = c.value = H
|
|
2656
2656
|
), r1(
|
|
2657
2657
|
() => e.asideRightWidth,
|
|
2658
2658
|
(H) => a.value = h.value = H
|
|
2659
2659
|
);
|
|
2660
2660
|
const A = R1();
|
|
2661
2661
|
return a1(() => {
|
|
2662
|
-
|
|
2662
|
+
c.value = e.asideLeftVisible && A["aside-left"] ? r.value : 0, h.value = e.asideRightVisible && A["aside-right"] ? a.value : 0;
|
|
2663
2663
|
}), (H, B) => (o(), i("div", Jn, [
|
|
2664
|
-
|
|
2664
|
+
p(A)["aside-left"] && H.asideLeftVisible ? (o(), V(De, {
|
|
2665
2665
|
key: 0,
|
|
2666
2666
|
side: "left",
|
|
2667
2667
|
border: e.borders,
|
|
@@ -2670,7 +2670,7 @@ const Xn = () => {
|
|
|
2670
2670
|
onResizeStart: u,
|
|
2671
2671
|
onResize: g,
|
|
2672
2672
|
onResizeEnd: C,
|
|
2673
|
-
onTransitioning:
|
|
2673
|
+
onTransitioning: f
|
|
2674
2674
|
}, {
|
|
2675
2675
|
default: Z(() => [
|
|
2676
2676
|
E(H.$slots, "aside-left")
|
|
@@ -2683,7 +2683,7 @@ const Xn = () => {
|
|
|
2683
2683
|
}, [
|
|
2684
2684
|
E(H.$slots, "main")
|
|
2685
2685
|
], 6),
|
|
2686
|
-
|
|
2686
|
+
p(A)["aside-right"] && H.asideRightVisible ? (o(), V(De, {
|
|
2687
2687
|
key: 1,
|
|
2688
2688
|
side: "right",
|
|
2689
2689
|
border: e.borders,
|
|
@@ -2704,26 +2704,26 @@ const Xn = () => {
|
|
|
2704
2704
|
}), Zs = /* @__PURE__ */ $({
|
|
2705
2705
|
__name: "InlineFormWrapper",
|
|
2706
2706
|
setup(n) {
|
|
2707
|
-
return (t, e) => (o(), V(
|
|
2707
|
+
return (t, e) => (o(), V(p(o1), {
|
|
2708
2708
|
col: "",
|
|
2709
2709
|
tabindex: "0",
|
|
2710
2710
|
class: "border border-default bg-primary rounded-lg focus:outline-none focus-within:shadow-sm focus-within:border-action"
|
|
2711
2711
|
}, {
|
|
2712
2712
|
default: Z(() => [
|
|
2713
2713
|
E(t.$slots, "default"),
|
|
2714
|
-
w(
|
|
2714
|
+
w(p(o1), {
|
|
2715
2715
|
tag: "footer",
|
|
2716
2716
|
justify: "between",
|
|
2717
2717
|
class: "gap-2 px-2 py-2 border-t border-default"
|
|
2718
2718
|
}, {
|
|
2719
2719
|
default: Z(() => [
|
|
2720
|
-
w(
|
|
2720
|
+
w(p(o1), { class: "flex-1" }, {
|
|
2721
2721
|
default: Z(() => [
|
|
2722
2722
|
E(t.$slots, "footer-left")
|
|
2723
2723
|
]),
|
|
2724
2724
|
_: 3
|
|
2725
2725
|
}),
|
|
2726
|
-
w(
|
|
2726
|
+
w(p(o1), { class: "flex-none" }, {
|
|
2727
2727
|
default: Z(() => [
|
|
2728
2728
|
E(t.$slots, "footer-right")
|
|
2729
2729
|
]),
|
|
@@ -2762,7 +2762,7 @@ const Xn = () => {
|
|
|
2762
2762
|
});
|
|
2763
2763
|
const a = () => {
|
|
2764
2764
|
n.multiline ? s.value.focus() : r.value.focus();
|
|
2765
|
-
},
|
|
2765
|
+
}, c = (u) => {
|
|
2766
2766
|
u.target && l("change", u.target.value);
|
|
2767
2767
|
}, h = (u) => {
|
|
2768
2768
|
u.stopPropagation(), u.preventDefault(), l("enter");
|
|
@@ -2796,7 +2796,7 @@ const Xn = () => {
|
|
|
2796
2796
|
"px-1.5": u.size === "small"
|
|
2797
2797
|
}])
|
|
2798
2798
|
}, [
|
|
2799
|
-
w(
|
|
2799
|
+
w(p(t1), {
|
|
2800
2800
|
name: u.icon,
|
|
2801
2801
|
class: "text-secondary"
|
|
2802
2802
|
}, null, 8, ["name"])
|
|
@@ -2813,7 +2813,7 @@ const Xn = () => {
|
|
|
2813
2813
|
"text-xs": u.size === "small",
|
|
2814
2814
|
"text-sm": u.size === "default"
|
|
2815
2815
|
}]),
|
|
2816
|
-
onInput: F(
|
|
2816
|
+
onInput: F(c, ["stop", "prevent"])
|
|
2817
2817
|
}, null, 42, _n)) : (o(), i("input", {
|
|
2818
2818
|
key: 2,
|
|
2819
2819
|
ref_key: "inputRef",
|
|
@@ -2836,18 +2836,18 @@ const Xn = () => {
|
|
|
2836
2836
|
onKeyup: g[1] || (g[1] = _(F(() => {
|
|
2837
2837
|
}, ["stop", "prevent"]), ["enter"])),
|
|
2838
2838
|
onBlur: C,
|
|
2839
|
-
onInput: F(
|
|
2839
|
+
onInput: F(c, ["stop", "prevent"])
|
|
2840
2840
|
}, null, 42, e2)),
|
|
2841
2841
|
u.$slots["inline-controls"] ? (o(), i("section", t2, [
|
|
2842
2842
|
E(u.$slots, "inline-controls")
|
|
2843
2843
|
])) : k("", !0),
|
|
2844
|
-
u.clearable && u.value.length ? (o(), V(
|
|
2844
|
+
u.clearable && u.value.length ? (o(), V(p(j), {
|
|
2845
2845
|
key: 4,
|
|
2846
2846
|
small: "",
|
|
2847
2847
|
icon: "close",
|
|
2848
2848
|
variant: "textSubtle",
|
|
2849
2849
|
class: "flex-none hidden",
|
|
2850
|
-
onClick: g[2] || (g[2] = (
|
|
2850
|
+
onClick: g[2] || (g[2] = (f) => {
|
|
2851
2851
|
a(), l("change", "");
|
|
2852
2852
|
})
|
|
2853
2853
|
})) : k("", !0)
|
|
@@ -2870,9 +2870,9 @@ const Xn = () => {
|
|
|
2870
2870
|
"h-[calc(--spacing(3)+1px)] rounded-br-lg": r.direction === "down" && r.size === "small",
|
|
2871
2871
|
"bg-tertiary": s.value
|
|
2872
2872
|
}]),
|
|
2873
|
-
onClick: a[0] || (a[0] = (
|
|
2873
|
+
onClick: a[0] || (a[0] = (c) => l("click"))
|
|
2874
2874
|
}, [
|
|
2875
|
-
w(
|
|
2875
|
+
w(p(t1), {
|
|
2876
2876
|
name: r.direction === "up" ? "chevron-up-small" : "chevron-down-small"
|
|
2877
2877
|
}, null, 8, ["name"])
|
|
2878
2878
|
], 2));
|
|
@@ -2894,42 +2894,42 @@ const Xn = () => {
|
|
|
2894
2894
|
},
|
|
2895
2895
|
emits: ["change", "enter"],
|
|
2896
2896
|
setup(n, { expose: t, emit: e }) {
|
|
2897
|
-
const l = e, s = y(), r = y(), a = y(),
|
|
2897
|
+
const l = e, s = y(), r = y(), a = y(), c = () => {
|
|
2898
2898
|
s.value.focus();
|
|
2899
|
-
}, h = (
|
|
2900
|
-
|
|
2901
|
-
}, m = (
|
|
2902
|
-
|
|
2903
|
-
}, C = (
|
|
2899
|
+
}, h = (f) => {
|
|
2900
|
+
f.target && l("change", Number.parseInt(f.target.value));
|
|
2901
|
+
}, m = (f) => {
|
|
2902
|
+
f.stopPropagation(), f.preventDefault(), l("enter");
|
|
2903
|
+
}, C = (f, b) => {
|
|
2904
2904
|
var v, L;
|
|
2905
|
-
|
|
2906
|
-
}, u = (
|
|
2907
|
-
l("change", P1(n.value +
|
|
2908
|
-
}, g = (
|
|
2909
|
-
|
|
2905
|
+
f === 1 ? (v = r.value) == null || v.setActive(b) : (L = a.value) == null || L.setActive(b);
|
|
2906
|
+
}, u = (f) => {
|
|
2907
|
+
l("change", P1(n.value + f, n.min ?? null, n.max ?? null));
|
|
2908
|
+
}, g = (f) => {
|
|
2909
|
+
f.stopImmediatePropagation(), f.stopPropagation(), f.preventDefault();
|
|
2910
2910
|
};
|
|
2911
|
-
return t({ focus:
|
|
2911
|
+
return t({ focus: c }), (f, b) => (o(), i("div", {
|
|
2912
2912
|
class: T(["relative flex-1 w-full overflow-hidden overscroll-none inline-flex items-center pr-0 rounded-lg border focus:shadow-sm-inner focus:outline-hidden focus-within:border-action", {
|
|
2913
|
-
"bg-primary border-default text-primary":
|
|
2914
|
-
"bg-secondary border-weak text-secondary":
|
|
2915
|
-
"bg-tertiary border-transparent text-primary":
|
|
2916
|
-
"bg-tertiary border-weak text-secondary":
|
|
2917
|
-
"h-8":
|
|
2918
|
-
"pl-2":
|
|
2919
|
-
"h-6":
|
|
2920
|
-
"pl-1.5":
|
|
2921
|
-
"pl-0":
|
|
2913
|
+
"bg-primary border-default text-primary": f.variant === "border" && !f.disabled,
|
|
2914
|
+
"bg-secondary border-weak text-secondary": f.variant === "border" && f.disabled,
|
|
2915
|
+
"bg-tertiary border-transparent text-primary": f.variant === "fill" && !f.disabled,
|
|
2916
|
+
"bg-tertiary border-weak text-secondary": f.variant === "fill" && f.disabled,
|
|
2917
|
+
"h-8": f.size === "default",
|
|
2918
|
+
"pl-2": f.size === "default" && !f.icon,
|
|
2919
|
+
"h-6": f.size === "small",
|
|
2920
|
+
"pl-1.5": f.size === "small" && !f.icon,
|
|
2921
|
+
"pl-0": f.icon
|
|
2922
2922
|
}])
|
|
2923
2923
|
}, [
|
|
2924
|
-
|
|
2924
|
+
f.icon ? (o(), i("div", {
|
|
2925
2925
|
key: 0,
|
|
2926
2926
|
class: T(["flex-none flex rounded-lg bg-transparent cursor-pointer", {
|
|
2927
|
-
"px-2":
|
|
2928
|
-
"px-1.5":
|
|
2927
|
+
"px-2": f.size === "default",
|
|
2928
|
+
"px-1.5": f.size === "small"
|
|
2929
2929
|
}])
|
|
2930
2930
|
}, [
|
|
2931
|
-
w(
|
|
2932
|
-
name:
|
|
2931
|
+
w(p(t1), {
|
|
2932
|
+
name: f.icon,
|
|
2933
2933
|
class: "text-secondary"
|
|
2934
2934
|
}, null, 8, ["name"])
|
|
2935
2935
|
], 2)) : k("", !0),
|
|
@@ -2937,15 +2937,15 @@ const Xn = () => {
|
|
|
2937
2937
|
ref_key: "inputRef",
|
|
2938
2938
|
ref: s,
|
|
2939
2939
|
type: "number",
|
|
2940
|
-
min:
|
|
2941
|
-
max:
|
|
2942
|
-
"auto-focus":
|
|
2943
|
-
disabled:
|
|
2944
|
-
value:
|
|
2945
|
-
placeholder:
|
|
2940
|
+
min: f.min,
|
|
2941
|
+
max: f.max,
|
|
2942
|
+
"auto-focus": f.autoFocus === !0,
|
|
2943
|
+
disabled: f.disabled,
|
|
2944
|
+
value: f.value,
|
|
2945
|
+
placeholder: f.placeholder,
|
|
2946
2946
|
class: T(["flex-1 min-w-0 bg-transparent focus:outline-hidden", {
|
|
2947
|
-
"text-xs":
|
|
2948
|
-
"text-sm":
|
|
2947
|
+
"text-xs": f.size === "small",
|
|
2948
|
+
"text-sm": f.size === "default"
|
|
2949
2949
|
}]),
|
|
2950
2950
|
onChange: b[0] || (b[0] = F(() => {
|
|
2951
2951
|
}, ["stop", "prevent"])),
|
|
@@ -2963,25 +2963,25 @@ const Xn = () => {
|
|
|
2963
2963
|
onBlur: g,
|
|
2964
2964
|
onInput: F(h, ["stop", "prevent"])
|
|
2965
2965
|
}, null, 42, l2),
|
|
2966
|
-
|
|
2966
|
+
f.showSteppers ? (o(), i("section", {
|
|
2967
2967
|
key: 1,
|
|
2968
2968
|
class: T(["top-0 flex flex-col h-full -space-y-px -mt-[2px] -mr-px", {
|
|
2969
|
-
"w-8":
|
|
2970
|
-
"w-6":
|
|
2969
|
+
"w-8": f.size === "default",
|
|
2970
|
+
"w-6": f.size === "small"
|
|
2971
2971
|
}])
|
|
2972
2972
|
}, [
|
|
2973
2973
|
w(Te, {
|
|
2974
2974
|
ref_key: "upButtonRef",
|
|
2975
2975
|
ref: r,
|
|
2976
2976
|
direction: "up",
|
|
2977
|
-
size:
|
|
2977
|
+
size: f.size,
|
|
2978
2978
|
onClick: b[6] || (b[6] = (v) => u(1))
|
|
2979
2979
|
}, null, 8, ["size"]),
|
|
2980
2980
|
w(Te, {
|
|
2981
2981
|
ref_key: "downButtonRef",
|
|
2982
2982
|
ref: a,
|
|
2983
2983
|
direction: "down",
|
|
2984
|
-
size:
|
|
2984
|
+
size: f.size,
|
|
2985
2985
|
onClick: b[7] || (b[7] = (v) => u(-1))
|
|
2986
2986
|
}, null, 8, ["size"])
|
|
2987
2987
|
], 2)) : k("", !0)
|
|
@@ -3024,10 +3024,10 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3024
3024
|
},
|
|
3025
3025
|
emits: ["close", "ready"],
|
|
3026
3026
|
setup(n, { expose: t, emit: e }) {
|
|
3027
|
-
const l = n, s = e, r = R1(), a = y(),
|
|
3027
|
+
const l = n, s = e, r = R1(), a = y(), c = O(() => {
|
|
3028
3028
|
var b;
|
|
3029
3029
|
return (b = a.value) == null ? void 0 : b.$el;
|
|
3030
|
-
}), h = y(!1), { trapFocus: m, releaseFocus: C } = j1(
|
|
3030
|
+
}), h = y(!1), { trapFocus: m, releaseFocus: C } = j1(c, !0);
|
|
3031
3031
|
a1(() => {
|
|
3032
3032
|
r.default && (l.title || r.header || r.main || r.footer) && console.warn(
|
|
3033
3033
|
"You are using named slots (or props.title) and default slot at the same time. This is not supported. Please use either named slots (and props.title) or the default slot."
|
|
@@ -3039,32 +3039,32 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3039
3039
|
l.closeable && (l.interceptClose ? await l.interceptClose() && u() : u());
|
|
3040
3040
|
};
|
|
3041
3041
|
l.closeable && Ce(g);
|
|
3042
|
-
const
|
|
3042
|
+
const f = () => {
|
|
3043
3043
|
m(), s("ready");
|
|
3044
3044
|
};
|
|
3045
3045
|
return t({ close: u }), (b, v) => (o(), V(U1, { to: b.target }, [
|
|
3046
|
-
w(
|
|
3046
|
+
w(p(he), {
|
|
3047
3047
|
show: h.value,
|
|
3048
3048
|
type: b.overlayType,
|
|
3049
3049
|
onClick: g,
|
|
3050
3050
|
onClose: v[0] || (v[0] = (L) => s("close"))
|
|
3051
3051
|
}, {
|
|
3052
3052
|
default: Z(() => [
|
|
3053
|
-
w(
|
|
3053
|
+
w(p(st), { onTransitionAfterEnter: f }, {
|
|
3054
3054
|
default: Z(() => [
|
|
3055
|
-
W1(w(
|
|
3055
|
+
W1(w(p(ge), {
|
|
3056
3056
|
ref_key: "windowRef",
|
|
3057
3057
|
ref: a,
|
|
3058
3058
|
class: T(["h-full", [
|
|
3059
3059
|
l.widthClass,
|
|
3060
3060
|
{
|
|
3061
|
-
"px-8 py-6": !
|
|
3061
|
+
"px-8 py-6": !p(r).default,
|
|
3062
3062
|
"md:h-auto": !l.expandVertically
|
|
3063
3063
|
}
|
|
3064
3064
|
]])
|
|
3065
3065
|
}, {
|
|
3066
3066
|
default: Z(() => [
|
|
3067
|
-
b.$slots.default ? E(b.$slots, "default", { key: 0 }) : (o(), V(
|
|
3067
|
+
b.$slots.default ? E(b.$slots, "default", { key: 0 }) : (o(), V(p(me), { key: 1 }, Re({
|
|
3068
3068
|
main: Z(() => [
|
|
3069
3069
|
E(b.$slots, "main", { close: u })
|
|
3070
3070
|
]),
|
|
@@ -3075,7 +3075,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3075
3075
|
fn: Z(() => [
|
|
3076
3076
|
l.title ? (o(), i("header", a2, [
|
|
3077
3077
|
d("h4", null, K(l.title), 1),
|
|
3078
|
-
b.closeable ? (o(), V(
|
|
3078
|
+
b.closeable ? (o(), V(p(j), {
|
|
3079
3079
|
key: 0,
|
|
3080
3080
|
icon: "close",
|
|
3081
3081
|
variant: "textSubtle",
|
|
@@ -3134,7 +3134,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3134
3134
|
"bg-primary text-secondary opacity-50 hover:bg-secondary": !(l.isActive || l.isExactActive)
|
|
3135
3135
|
}])
|
|
3136
3136
|
}, [
|
|
3137
|
-
l.icon ? (o(), V(
|
|
3137
|
+
l.icon ? (o(), V(p(t1), {
|
|
3138
3138
|
key: 0,
|
|
3139
3139
|
name: l.icon
|
|
3140
3140
|
}, null, 8, ["name"])) : k("", !0),
|
|
@@ -3153,7 +3153,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3153
3153
|
"bg-primary text-secondary opacity-50 hover:bg-secondary active:bg-tertiary": !(l.isActive || l.isExactActive)
|
|
3154
3154
|
}])
|
|
3155
3155
|
}, [
|
|
3156
|
-
l.icon ? (o(), V(
|
|
3156
|
+
l.icon ? (o(), V(p(t1), {
|
|
3157
3157
|
key: 0,
|
|
3158
3158
|
name: l.icon
|
|
3159
3159
|
}, null, 8, ["name"])) : k("", !0),
|
|
@@ -3163,10 +3163,10 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3163
3163
|
], 2)
|
|
3164
3164
|
]));
|
|
3165
3165
|
}
|
|
3166
|
-
}),
|
|
3166
|
+
}), p2 = {
|
|
3167
3167
|
"data-theme": "dark",
|
|
3168
3168
|
class: "inline-flex items-stretch h-10 px-1 rounded-xl bg-black shadow-xl pointer-events-auto justify-between"
|
|
3169
|
-
},
|
|
3169
|
+
}, f2 = { class: "text-sm cursor-default truncate min-w-0" }, Ts = /* @__PURE__ */ $({
|
|
3170
3170
|
__name: "Notification",
|
|
3171
3171
|
props: {
|
|
3172
3172
|
showDetailsButton: { type: Boolean },
|
|
@@ -3176,8 +3176,8 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3176
3176
|
emits: ["close", "show-details"],
|
|
3177
3177
|
setup(n, { emit: t }) {
|
|
3178
3178
|
const e = t, l = O(() => n.type === "default" ? "information" : n.type === "error" ? "error" : n.type === "warning" ? "warning" : "check-circled");
|
|
3179
|
-
return (s, r) => (o(), i("div",
|
|
3180
|
-
w(
|
|
3179
|
+
return (s, r) => (o(), i("div", p2, [
|
|
3180
|
+
w(p(o1), {
|
|
3181
3181
|
class: T(["gap-2 px-3 rounded-l-lg flex-1 overflow-hidden", {
|
|
3182
3182
|
"text-stone-300": s.type === "default",
|
|
3183
3183
|
"text-amber-300": s.type === "warning",
|
|
@@ -3186,16 +3186,16 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3186
3186
|
}])
|
|
3187
3187
|
}, {
|
|
3188
3188
|
default: Z(() => [
|
|
3189
|
-
w(
|
|
3190
|
-
d("span",
|
|
3189
|
+
w(p(t1), { name: l.value }, null, 8, ["name"]),
|
|
3190
|
+
d("span", f2, K(s.text), 1)
|
|
3191
3191
|
]),
|
|
3192
3192
|
_: 1
|
|
3193
3193
|
}, 8, ["class"]),
|
|
3194
|
-
w(
|
|
3194
|
+
w(p(o1), null, {
|
|
3195
3195
|
default: Z(() => [
|
|
3196
|
-
w(
|
|
3196
|
+
w(p(o1), { class: "px-2" }, {
|
|
3197
3197
|
default: Z(() => [
|
|
3198
|
-
s.showDetailsButton ? (o(), V(
|
|
3198
|
+
s.showDetailsButton ? (o(), V(p(j), {
|
|
3199
3199
|
key: 0,
|
|
3200
3200
|
small: "",
|
|
3201
3201
|
variant: "outline",
|
|
@@ -3205,9 +3205,9 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3205
3205
|
]),
|
|
3206
3206
|
_: 1
|
|
3207
3207
|
}),
|
|
3208
|
-
w(
|
|
3208
|
+
w(p(o1), { class: "px-1" }, {
|
|
3209
3209
|
default: Z(() => [
|
|
3210
|
-
w(
|
|
3210
|
+
w(p(j), {
|
|
3211
3211
|
small: "",
|
|
3212
3212
|
variant: "textSubtle",
|
|
3213
3213
|
icon: "close",
|
|
@@ -3231,7 +3231,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3231
3231
|
},
|
|
3232
3232
|
emits: ["change"],
|
|
3233
3233
|
setup(n, { emit: t }) {
|
|
3234
|
-
const e = t, l = y(), s = O(() => i5(0, n.lastPage).map((u) => ({ id: `${u + 1}`, label: `${u + 1}` }))), r = O(() => n.borders ? { borderRadius: "8px 0 0 8px" } : void 0), a = O(() => n.borders ? { borderRadius: "0px 8px 8px 0px" } : void 0),
|
|
3234
|
+
const e = t, l = y(), s = O(() => i5(0, n.lastPage).map((u) => ({ id: `${u + 1}`, label: `${u + 1}` }))), r = O(() => n.borders ? { borderRadius: "8px 0 0 8px" } : void 0), a = O(() => n.borders ? { borderRadius: "0px 8px 8px 0px" } : void 0), c = O(() => n.borders ? { borderRadius: "0" } : void 0), h = O(() => n.borders ? "outlineSubtle" : "textSubtle"), m = (u) => {
|
|
3235
3235
|
let g = n.currentPage + u;
|
|
3236
3236
|
g > n.lastPage && (g = 1), g < 1 && (g = n.lastPage), e("change", g);
|
|
3237
3237
|
}, C = (u) => {
|
|
@@ -3242,37 +3242,37 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3242
3242
|
ref: l,
|
|
3243
3243
|
class: "relative z-0 inline-flex"
|
|
3244
3244
|
}, [
|
|
3245
|
-
w(
|
|
3245
|
+
w(p(j), {
|
|
3246
3246
|
variant: h.value,
|
|
3247
3247
|
icon: u.orientation === "horizontal" ? "chevron-left" : "chevron-up",
|
|
3248
3248
|
style: n1(r.value),
|
|
3249
3249
|
class: "z-0 hover:z-10 focus:z-10 active:z-10",
|
|
3250
|
-
onClick: g[0] || (g[0] = (
|
|
3250
|
+
onClick: g[0] || (g[0] = (f) => m(-1))
|
|
3251
3251
|
}, null, 8, ["variant", "icon", "style"]),
|
|
3252
|
-
w(
|
|
3252
|
+
w(p(rt), {
|
|
3253
3253
|
"same-width-as-element": l.value,
|
|
3254
3254
|
placement: "bottom",
|
|
3255
3255
|
value: u.currentPage,
|
|
3256
3256
|
options: s.value,
|
|
3257
3257
|
onSelect: C
|
|
3258
3258
|
}, {
|
|
3259
|
-
trigger: Z((
|
|
3260
|
-
w(
|
|
3259
|
+
trigger: Z((f) => [
|
|
3260
|
+
w(p(j), {
|
|
3261
3261
|
variant: h.value,
|
|
3262
3262
|
label: `${u.currentPage} / ${u.lastPage}`,
|
|
3263
|
-
style: n1(
|
|
3264
|
-
focus:
|
|
3263
|
+
style: n1(c.value),
|
|
3264
|
+
focus: f && f.visible,
|
|
3265
3265
|
class: "z-0 hover:z-10 focus:z-10 active:z-10 -ml-px"
|
|
3266
3266
|
}, null, 8, ["variant", "label", "style", "focus"])
|
|
3267
3267
|
]),
|
|
3268
3268
|
_: 1
|
|
3269
3269
|
}, 8, ["same-width-as-element", "value", "options"]),
|
|
3270
|
-
w(
|
|
3270
|
+
w(p(j), {
|
|
3271
3271
|
variant: h.value,
|
|
3272
3272
|
icon: u.orientation === "horizontal" ? "chevron-right" : "chevron-down",
|
|
3273
3273
|
style: n1(a.value),
|
|
3274
3274
|
class: "z-0 hover:z-10 focus:z-10 active:z-10 -ml-px",
|
|
3275
|
-
onClick: g[1] || (g[1] = (
|
|
3275
|
+
onClick: g[1] || (g[1] = (f) => m(1))
|
|
3276
3276
|
}, null, 8, ["variant", "icon", "style"])
|
|
3277
3277
|
], 512));
|
|
3278
3278
|
}
|
|
@@ -3294,7 +3294,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3294
3294
|
v,
|
|
3295
3295
|
L
|
|
3296
3296
|
];
|
|
3297
|
-
}),
|
|
3297
|
+
}), c = O(() => {
|
|
3298
3298
|
const v = [];
|
|
3299
3299
|
return s.value === "horizontal" ? (v.push(e.placement === "left" ? "right-0 border-r" : "left-0 border-l"), v.push("top-0 h-full w-1 cursor-ew-resize")) : (v.push(e.placement === "top" ? "bottom-0 border-b" : "top-0 border-t"), v.push("left-0 w-full h-1 cursor-ns-resize")), v;
|
|
3300
3300
|
});
|
|
@@ -3302,7 +3302,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3302
3302
|
const C = y(!1);
|
|
3303
3303
|
function u(v) {
|
|
3304
3304
|
const L = e.placement === "left" || e.placement === "right" ? "pageX" : "pageY";
|
|
3305
|
-
h = v[L], m = e.size, C.value = !0, window.addEventListener("mouseup",
|
|
3305
|
+
h = v[L], m = e.size, C.value = !0, window.addEventListener("mouseup", f), window.addEventListener("mousemove", g), l("resize-start");
|
|
3306
3306
|
}
|
|
3307
3307
|
function g(v) {
|
|
3308
3308
|
let L;
|
|
@@ -3310,8 +3310,8 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3310
3310
|
const D = m + L, A = P1(D, e.minSize, e.maxSize);
|
|
3311
3311
|
A !== e.size && l("resize", A);
|
|
3312
3312
|
}
|
|
3313
|
-
function
|
|
3314
|
-
C.value = !1, window.removeEventListener("mouseup",
|
|
3313
|
+
function f() {
|
|
3314
|
+
C.value = !1, window.removeEventListener("mouseup", f), window.removeEventListener("mousemove", g), l("resize-end");
|
|
3315
3315
|
}
|
|
3316
3316
|
function b(v) {
|
|
3317
3317
|
let D = e.size;
|
|
@@ -3336,7 +3336,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3336
3336
|
tabindex: "0",
|
|
3337
3337
|
"aria-label": `Resize ${e.placement} panel`,
|
|
3338
3338
|
class: T(["absolute z-10 hover:border-action", [
|
|
3339
|
-
|
|
3339
|
+
c.value,
|
|
3340
3340
|
C.value ? "border-action bg-action" : "border-transparent bg-transparent hover:bg-tertiary focus:outline-none focus:border-action focus:bg-tertiary"
|
|
3341
3341
|
]]),
|
|
3342
3342
|
onMousedown: u,
|
|
@@ -3360,16 +3360,16 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3360
3360
|
},
|
|
3361
3361
|
emits: ["start-panel-resize", "start-panel-resize-end", "start-panel-resize-start", "start-panel-transition-end", "end-panel-resize", "end-panel-resize-end", "end-panel-resize-start", "end-panel-transition-end"],
|
|
3362
3362
|
setup(n, { emit: t }) {
|
|
3363
|
-
const e = n, l = t, s = y(!1), r = y(e.startPanelSize), a = y(e.endPanelSize),
|
|
3364
|
-
[e.orientation === "horizontal" ? "paddingLeft" : "paddingTop"]: `${
|
|
3363
|
+
const e = n, l = t, s = y(!1), r = y(e.startPanelSize), a = y(e.endPanelSize), c = y(e.startPanelSize), h = y(e.endPanelSize), m = O(() => ({
|
|
3364
|
+
[e.orientation === "horizontal" ? "paddingLeft" : "paddingTop"]: `${c.value}px`,
|
|
3365
3365
|
[e.orientation === "horizontal" ? "paddingRight" : "paddingBottom"]: `${h.value}px`
|
|
3366
3366
|
})), C = () => {
|
|
3367
3367
|
s.value = !1, l("start-panel-resize-end");
|
|
3368
3368
|
}, u = () => {
|
|
3369
3369
|
s.value = !0, l("start-panel-resize-start");
|
|
3370
3370
|
}, g = (H) => {
|
|
3371
|
-
r.value =
|
|
3372
|
-
},
|
|
3371
|
+
r.value = c.value = H, l("start-panel-resize", H);
|
|
3372
|
+
}, f = (H) => !H && l("start-panel-transition-end"), b = () => {
|
|
3373
3373
|
s.value = !1, l("end-panel-resize-end");
|
|
3374
3374
|
}, v = () => {
|
|
3375
3375
|
s.value = !0, l("end-panel-resize-start");
|
|
@@ -3378,22 +3378,22 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3378
3378
|
}, D = (H) => !H && l("end-panel-transition-end");
|
|
3379
3379
|
r1(
|
|
3380
3380
|
() => e.startPanelVisible,
|
|
3381
|
-
(H) =>
|
|
3381
|
+
(H) => c.value = H ? r.value : 0
|
|
3382
3382
|
), r1(
|
|
3383
3383
|
() => e.endPanelVisible,
|
|
3384
3384
|
(H) => h.value = H ? a.value : 0
|
|
3385
3385
|
), r1(
|
|
3386
3386
|
() => e.startPanelSize,
|
|
3387
|
-
(H) => r.value =
|
|
3387
|
+
(H) => r.value = c.value = H
|
|
3388
3388
|
), r1(
|
|
3389
3389
|
() => e.endPanelSize,
|
|
3390
3390
|
(H) => a.value = h.value = H
|
|
3391
3391
|
);
|
|
3392
3392
|
const A = R1();
|
|
3393
3393
|
return a1(() => {
|
|
3394
|
-
|
|
3394
|
+
c.value = e.startPanelVisible && A["start-panel"] ? r.value : 0, h.value = e.endPanelVisible && A["end-panel"] ? a.value : 0;
|
|
3395
3395
|
}), (H, B) => (o(), i("div", C2, [
|
|
3396
|
-
|
|
3396
|
+
p(A)["start-panel"] && H.startPanelVisible ? (o(), V(Be, {
|
|
3397
3397
|
key: 0,
|
|
3398
3398
|
placement: H.orientation === "horizontal" ? "left" : "top",
|
|
3399
3399
|
border: e.borders,
|
|
@@ -3402,7 +3402,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3402
3402
|
onResizeStart: u,
|
|
3403
3403
|
onResize: g,
|
|
3404
3404
|
onResizeEnd: C,
|
|
3405
|
-
onTransitioning:
|
|
3405
|
+
onTransitioning: f
|
|
3406
3406
|
}, {
|
|
3407
3407
|
default: Z(() => [
|
|
3408
3408
|
E(H.$slots, "start-panel")
|
|
@@ -3415,7 +3415,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3415
3415
|
}, [
|
|
3416
3416
|
E(H.$slots, "main")
|
|
3417
3417
|
], 6),
|
|
3418
|
-
|
|
3418
|
+
p(A)["end-panel"] && H.endPanelVisible ? (o(), V(Be, {
|
|
3419
3419
|
key: 1,
|
|
3420
3420
|
placement: H.orientation === "horizontal" ? "right" : "bottom",
|
|
3421
3421
|
border: e.borders,
|
|
@@ -3472,7 +3472,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3472
3472
|
setup(n, { expose: t, emit: e }) {
|
|
3473
3473
|
const l = n, s = e, r = R1();
|
|
3474
3474
|
let a;
|
|
3475
|
-
const
|
|
3475
|
+
const c = y(), h = y(), m = y(), C = y(!1), { mounted: u } = G5(), { disableClickOutside: g, enableClickOutside: f, updateClickOutside: b } = ce(() => u1()), { trapFocus: v, releaseFocus: L } = j1(h), D = (S) => {
|
|
3476
3476
|
S.key === "Escape" && H();
|
|
3477
3477
|
}, A = async () => {
|
|
3478
3478
|
if (m.value && h.value) {
|
|
@@ -3502,7 +3502,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3502
3502
|
var S, R;
|
|
3503
3503
|
I.clear(), C.value && (L(), l.closeOnEscapeKey && window.removeEventListener("keydown", D), C.value = !1, l.focusTriggerOnClose && l.trigger !== "hover" && ((R = ((S = m.value) == null ? void 0 : S.querySelector("button, [href], input, select, textarea, [tabindex]")) ?? m.value) == null || R.focus()), s("close"), l.closeOnClickOutside && g(), a && (a(), a = null));
|
|
3504
3504
|
}, B = async () => {
|
|
3505
|
-
C.value || (C.value = !0, await V1(), s("open", [m.value, h.value]), a = Zt(m.value, h.value, A), l.closeOnClickOutside && h.value && m.value &&
|
|
3505
|
+
C.value || (C.value = !0, await V1(), s("open", [m.value, h.value]), a = Zt(m.value, h.value, A), l.closeOnClickOutside && h.value && m.value && f([h.value, m.value]), l.trigger !== "hover" && (V1(v), l.closeOnEscapeKey && window.addEventListener("keydown", D)));
|
|
3506
3506
|
}, I = oe(B, l.openDelay), P = oe(H, l.closeDelay), e1 = async () => {
|
|
3507
3507
|
l.disabled || (P.clear(), I());
|
|
3508
3508
|
}, u1 = async () => {
|
|
@@ -3522,12 +3522,12 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
), t({
|
|
3524
3524
|
close: H,
|
|
3525
|
-
containerRef:
|
|
3525
|
+
containerRef: c,
|
|
3526
3526
|
open: B,
|
|
3527
3527
|
updateClickOutsideTargets: Y
|
|
3528
3528
|
}), (S, R) => (o(), i("div", {
|
|
3529
3529
|
ref_key: "containerRef",
|
|
3530
|
-
ref:
|
|
3530
|
+
ref: c,
|
|
3531
3531
|
class: T(l.rootClass),
|
|
3532
3532
|
onMouseleave: R[5] || (R[5] = (G) => l.trigger === "hover" && u1())
|
|
3533
3533
|
}, [
|
|
@@ -3542,7 +3542,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3542
3542
|
}, [
|
|
3543
3543
|
E(S.$slots, "default", { visible: C.value })
|
|
3544
3544
|
], 34),
|
|
3545
|
-
|
|
3545
|
+
p(u) ? (o(), V(U1, {
|
|
3546
3546
|
key: 0,
|
|
3547
3547
|
to: S.teleportTarget
|
|
3548
3548
|
}, [
|
|
@@ -3592,13 +3592,13 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3592
3592
|
}, a = () => {
|
|
3593
3593
|
var m;
|
|
3594
3594
|
e("change", s.value), (m = l.value) == null || m.close();
|
|
3595
|
-
},
|
|
3595
|
+
}, c = () => {
|
|
3596
3596
|
var m;
|
|
3597
3597
|
n.mode === "immediate" ? (e("change", null), (m = l.value) == null || m.close()) : s.value = null;
|
|
3598
3598
|
}, h = (m) => {
|
|
3599
3599
|
n.mode === "confirmation" && (s.value = n.value), e("open", m);
|
|
3600
3600
|
};
|
|
3601
|
-
return (m, C) => (o(), V(
|
|
3601
|
+
return (m, C) => (o(), V(p(E1), {
|
|
3602
3602
|
ref_key: "popperRef",
|
|
3603
3603
|
ref: l,
|
|
3604
3604
|
trigger: "click",
|
|
@@ -3615,23 +3615,23 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3615
3615
|
})
|
|
3616
3616
|
]),
|
|
3617
3617
|
content: Z(() => [
|
|
3618
|
-
w(
|
|
3618
|
+
w(p(O1), null, {
|
|
3619
3619
|
default: Z(() => [
|
|
3620
|
-
w(
|
|
3620
|
+
w(p(A5), {
|
|
3621
3621
|
value: m.mode === "confirmation" ? s.value : m.value,
|
|
3622
3622
|
format: m.format,
|
|
3623
3623
|
"disabled-dates": m.disabledDates,
|
|
3624
3624
|
onChange: r
|
|
3625
3625
|
}, null, 8, ["value", "format", "disabled-dates"]),
|
|
3626
3626
|
m.mode === "confirmation" || m.clearable ? (o(), i("footer", L2, [
|
|
3627
|
-
m.clearable ? (o(), V(
|
|
3627
|
+
m.clearable ? (o(), V(p(j), {
|
|
3628
3628
|
key: 0,
|
|
3629
3629
|
icon: "trash",
|
|
3630
3630
|
label: "Clear",
|
|
3631
3631
|
variant: "outlineSubtle",
|
|
3632
|
-
onClick:
|
|
3632
|
+
onClick: c
|
|
3633
3633
|
})) : k("", !0),
|
|
3634
|
-
m.mode === "confirmation" ? (o(), V(
|
|
3634
|
+
m.mode === "confirmation" ? (o(), V(p(j), {
|
|
3635
3635
|
key: 1,
|
|
3636
3636
|
icon: "check",
|
|
3637
3637
|
label: "Done",
|
|
@@ -3675,12 +3675,12 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3675
3675
|
setup(n, { emit: t }) {
|
|
3676
3676
|
const e = t, l = y(), s = y(), { trapFocus: r } = j1(s), a = () => {
|
|
3677
3677
|
e("close"), l.value && l.value.close();
|
|
3678
|
-
},
|
|
3678
|
+
}, c = () => V1(r), h = () => {
|
|
3679
3679
|
a(), e("cancel");
|
|
3680
3680
|
}, m = () => {
|
|
3681
3681
|
a(), e("confirm");
|
|
3682
3682
|
};
|
|
3683
|
-
return (C, u) => (o(), V(
|
|
3683
|
+
return (C, u) => (o(), V(p(E1), {
|
|
3684
3684
|
ref_key: "popperRef",
|
|
3685
3685
|
ref: l,
|
|
3686
3686
|
trigger: "click",
|
|
@@ -3688,7 +3688,7 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3688
3688
|
"close-on-escape-key": "",
|
|
3689
3689
|
placement: C.placement,
|
|
3690
3690
|
"offset-options": C.offsetOptions || { mainAxis: 4 },
|
|
3691
|
-
onOpen:
|
|
3691
|
+
onOpen: c,
|
|
3692
3692
|
onClose: a
|
|
3693
3693
|
}, {
|
|
3694
3694
|
default: Z((g) => [
|
|
@@ -3699,7 +3699,7 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3699
3699
|
])
|
|
3700
3700
|
]),
|
|
3701
3701
|
content: Z(() => [
|
|
3702
|
-
w(
|
|
3702
|
+
w(p(O1), null, {
|
|
3703
3703
|
default: Z(() => [
|
|
3704
3704
|
d("div", {
|
|
3705
3705
|
ref_key: "contentRef",
|
|
@@ -3713,7 +3713,7 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3713
3713
|
d("h5", null, K(C.title), 1),
|
|
3714
3714
|
d("p", V2, K(C.description), 1)
|
|
3715
3715
|
])) : k("", !0),
|
|
3716
|
-
w(
|
|
3716
|
+
w(p(Y1), {
|
|
3717
3717
|
vertical: !(C.title || C.description),
|
|
3718
3718
|
small: C.small,
|
|
3719
3719
|
"cancel-variant": C.cancelVariant,
|
|
@@ -3756,23 +3756,23 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3756
3756
|
const e = n, l = t, s = y(), r = O(() => e.hoveredOption && e.hoveredOption.id === e.option.id), a = () => {
|
|
3757
3757
|
e.option.disabled || l("click");
|
|
3758
3758
|
};
|
|
3759
|
-
return (
|
|
3759
|
+
return (c, h) => (o(), i("div", {
|
|
3760
3760
|
ref_key: "root",
|
|
3761
3761
|
ref: s,
|
|
3762
3762
|
tabindex: "0",
|
|
3763
3763
|
class: T(["flex items-center justify-between w-full h-8 px-3 space-x-2 text-sm focus:outline-hidden", {
|
|
3764
|
-
"cursor-not-allowed text-muted ":
|
|
3765
|
-
"cursor-pointer text-primary hover:bg-secondary focus:bg-secondary active:bg-tertiary": !
|
|
3766
|
-
"cursor-pointer text-light-blue font-medium hover:bg-secondary focus:bg-secondary active:bg-tertiary":
|
|
3764
|
+
"cursor-not-allowed text-muted ": c.option.disabled,
|
|
3765
|
+
"cursor-pointer text-primary hover:bg-secondary focus:bg-secondary active:bg-tertiary": !c.option.disabled && !c.selected,
|
|
3766
|
+
"cursor-pointer text-light-blue font-medium hover:bg-secondary focus:bg-secondary active:bg-tertiary": c.selected,
|
|
3767
3767
|
"bg-secondary": r.value,
|
|
3768
3768
|
"bg-primary": !r.value
|
|
3769
3769
|
}]),
|
|
3770
3770
|
onClick: a,
|
|
3771
3771
|
onKeydown: _(F(a, ["prevent"]), ["enter"]),
|
|
3772
|
-
onMouseover: h[0] || (h[0] = (m) => l("hover",
|
|
3773
|
-
onFocus: h[1] || (h[1] = (m) => l("focus",
|
|
3772
|
+
onMouseover: h[0] || (h[0] = (m) => l("hover", c.option.id)),
|
|
3773
|
+
onFocus: h[1] || (h[1] = (m) => l("focus", c.option.id))
|
|
3774
3774
|
}, [
|
|
3775
|
-
E(
|
|
3775
|
+
E(c.$slots, "default")
|
|
3776
3776
|
], 42, M2));
|
|
3777
3777
|
}
|
|
3778
3778
|
}), $2 = { class: "flex items-center px-2 pb-2 space-x-2" }, D2 = /* @__PURE__ */ $({
|
|
@@ -3786,7 +3786,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3786
3786
|
setup(n, { emit: t }) {
|
|
3787
3787
|
const e = t;
|
|
3788
3788
|
return (l, s) => (o(), i("section", $2, [
|
|
3789
|
-
(o(!0), i(M, null, m1(l.filters, (r) => (o(), V(
|
|
3789
|
+
(o(!0), i(M, null, m1(l.filters, (r) => (o(), V(p(jn), {
|
|
3790
3790
|
key: r.name,
|
|
3791
3791
|
active: !!(l.selected && l.selected.name === r.name),
|
|
3792
3792
|
count: r.count,
|
|
@@ -3845,14 +3845,14 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3845
3845
|
},
|
|
3846
3846
|
emits: ["close", "save-custom", "select"],
|
|
3847
3847
|
setup(n, { expose: t, emit: e }) {
|
|
3848
|
-
const l = n, s = e, r = R1(), a = y(null),
|
|
3848
|
+
const l = n, s = e, r = R1(), a = y(null), c = y([]), h = y(""), m = y(), C = y(), u = y(), g = y(), f = y(), b = y(), v = y(l.resultFilters || []), L = y(l.resultFilters ? l.resultFilters[0] : null), { nextFrame: D } = ve(), A = O(() => l.selected ? Array.isArray(l.selected) ? l.selected : [l.selected] : []), H = O(() => c.value.every((x) => x.disabled)), B = O(() => !h.value.length && !c.value.length), I = O(() => h.value.length && !c.value.length), P = O(() => {
|
|
3849
3849
|
if (C.value) return b1.ERROR;
|
|
3850
3850
|
if (l.loading) return b1.LOADING;
|
|
3851
3851
|
if (I.value && !l.loading) return b1.NO_MATCH;
|
|
3852
3852
|
if (B.value && !l.loading) return b1.IDLE;
|
|
3853
|
-
if (
|
|
3853
|
+
if (c.value.length && !l.loading) return b1.MATCH;
|
|
3854
3854
|
}), e1 = (x) => {
|
|
3855
|
-
|
|
3855
|
+
c.value = L.value ? x.filter(L.value.execute) : x, l.resultFilters && v.value.forEach((U) => {
|
|
3856
3856
|
U.count = x.filter(U.execute).length;
|
|
3857
3857
|
});
|
|
3858
3858
|
};
|
|
@@ -3864,7 +3864,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3864
3864
|
), A1(() => {
|
|
3865
3865
|
l.filterable && l.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), e1(l.options);
|
|
3866
3866
|
});
|
|
3867
|
-
const u1 = () =>
|
|
3867
|
+
const u1 = () => f.value.close(), Q = () => f.value.open(), Y = async () => {
|
|
3868
3868
|
D(() => {
|
|
3869
3869
|
b.value && D(() => b.value.update()), u.value && D(() => u.value.focus());
|
|
3870
3870
|
});
|
|
@@ -3872,33 +3872,33 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3872
3872
|
l.keepOpen || (a.value = null, l.resetOnClose && (h.value = "", l.remoteMethod ? l.remoteMethod("") : e1([]), L.value = l.resultFilters ? l.resultFilters[0] : null), s("close"));
|
|
3873
3873
|
}, S = (x) => {
|
|
3874
3874
|
s("select", x), l.keepOpen || u1();
|
|
3875
|
-
}, R = (x) =>
|
|
3875
|
+
}, R = (x) => c.value = l.options.filter((U) => U.label.toLowerCase().includes(x.toLowerCase())), B1 = qn(async (x) => {
|
|
3876
3876
|
const U = x.target.value;
|
|
3877
3877
|
a.value = null, l.filterable ? R(U) : l.remoteMethod && await l.remoteMethod(U);
|
|
3878
3878
|
}, l.debounceMs), g1 = (x) => {
|
|
3879
|
-
a.value =
|
|
3879
|
+
a.value = c.value.find((U) => U.id === x) || null;
|
|
3880
3880
|
}, N = (x) => {
|
|
3881
3881
|
if (!g.value.length) return;
|
|
3882
|
-
const U = g.value[
|
|
3882
|
+
const U = g.value[c.value.findIndex((q) => q.label === x.label)].$el;
|
|
3883
3883
|
if (b.value && U) {
|
|
3884
3884
|
const q = b.value.$el.querySelector(".scrollbar__wrap");
|
|
3885
3885
|
q && (at(q, U), b.value.handleScroll());
|
|
3886
3886
|
}
|
|
3887
3887
|
}, W = async (x) => {
|
|
3888
|
-
if (
|
|
3889
|
-
let U =
|
|
3888
|
+
if (c.value.length === 0) return;
|
|
3889
|
+
let U = c.value.findIndex((q) => {
|
|
3890
3890
|
var d1;
|
|
3891
3891
|
return q.label === ((d1 = a.value) == null ? void 0 : d1.label);
|
|
3892
3892
|
});
|
|
3893
|
-
H.value || (x === "next" ? (U++, U ===
|
|
3893
|
+
H.value || (x === "next" ? (U++, U === c.value.length && (U = 0)) : x === "prev" && (U--, U < 0 && (U = c.value.length - 1)), a.value = c.value[U], a.value.disabled === !0 && W(x), await V1(), a.value && N(a.value));
|
|
3894
3894
|
}, s1 = () => {
|
|
3895
3895
|
a.value ? S(a.value) : h.value.length && s("save-custom", h.value);
|
|
3896
3896
|
}, v1 = (x) => {
|
|
3897
3897
|
L.value = x, e1(l.options), u.value.focus();
|
|
3898
3898
|
};
|
|
3899
|
-
return t({ close: u1, focus: Q }), (x, U) => (o(), V(
|
|
3899
|
+
return t({ close: u1, focus: Q }), (x, U) => (o(), V(p(E1), {
|
|
3900
3900
|
ref_key: "popperRef",
|
|
3901
|
-
ref:
|
|
3901
|
+
ref: f,
|
|
3902
3902
|
trigger: "click",
|
|
3903
3903
|
"focus-trigger-on-close": "",
|
|
3904
3904
|
"close-on-escape-key": "",
|
|
@@ -3919,7 +3919,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3919
3919
|
})
|
|
3920
3920
|
]),
|
|
3921
3921
|
content: Z(() => [
|
|
3922
|
-
w(
|
|
3922
|
+
w(p(O1), {
|
|
3923
3923
|
ref_key: "contentRef",
|
|
3924
3924
|
ref: m,
|
|
3925
3925
|
class: T(["flex flex-col", { "h-72": x.fixedHeight }])
|
|
@@ -3927,7 +3927,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3927
3927
|
default: Z(() => [
|
|
3928
3928
|
x.filterable || x.remoteMethod || x.resultFilters ? (o(), i("header", T2, [
|
|
3929
3929
|
x.filterable || x.remoteMethod ? (o(), i("header", B2, [
|
|
3930
|
-
w(
|
|
3930
|
+
w(p(t1), {
|
|
3931
3931
|
name: "magnifying-glass",
|
|
3932
3932
|
class: "text-light-blue"
|
|
3933
3933
|
}),
|
|
@@ -3941,7 +3941,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3941
3941
|
onClick: U[1] || (U[1] = F(() => {
|
|
3942
3942
|
}, ["stop", "prevent"])),
|
|
3943
3943
|
onInput: U[2] || (U[2] = //@ts-ignore
|
|
3944
|
-
(...q) =>
|
|
3944
|
+
(...q) => p(B1) && p(B1)(...q)),
|
|
3945
3945
|
onKeydown: [
|
|
3946
3946
|
U[3] || (U[3] = _(F((q) => W("next"), ["prevent"]), ["down"])),
|
|
3947
3947
|
U[4] || (U[4] = _(F((q) => W("prev"), ["prevent"]), ["up"])),
|
|
@@ -3967,30 +3967,30 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3967
3967
|
class: "flex-1 bg-primary h-full"
|
|
3968
3968
|
}, [
|
|
3969
3969
|
E(x.$slots, "error")
|
|
3970
|
-
], 512)) : P.value ===
|
|
3970
|
+
], 512)) : P.value === p(b1).LOADING ? (o(), i("div", z2, [
|
|
3971
3971
|
d("div", A2, [
|
|
3972
|
-
w(
|
|
3972
|
+
w(p(F1), { class: "w-4 h-4 text-granite-grey" }),
|
|
3973
3973
|
d("span", R2, K(x.loadingText), 1)
|
|
3974
3974
|
])
|
|
3975
|
-
])) : P.value ===
|
|
3975
|
+
])) : P.value === p(b1).NO_MATCH ? (o(), i("div", E2, [
|
|
3976
3976
|
d("div", O2, [
|
|
3977
3977
|
U[5] || (U[5] = d("div", { class: "w-4 h-4 text-center leading-none" }, " ... ", -1)),
|
|
3978
3978
|
d("span", I2, K(x.noMatchText), 1)
|
|
3979
3979
|
])
|
|
3980
|
-
])) : P.value ===
|
|
3980
|
+
])) : P.value === p(b1).IDLE ? (o(), i("div", x2, [
|
|
3981
3981
|
d("div", P2, [
|
|
3982
|
-
w(
|
|
3982
|
+
w(p(t1), { name: x.emptyStateIcon }, null, 8, ["name"]),
|
|
3983
3983
|
d("span", F2, K(x.emptyStateText), 1)
|
|
3984
3984
|
]),
|
|
3985
3985
|
U[6] || (U[6] = d("div", { class: "h-8 w-full bg-primary" }, null, -1))
|
|
3986
|
-
])) : P.value ===
|
|
3986
|
+
])) : P.value === p(b1).MATCH ? (o(), V(p(X1), {
|
|
3987
3987
|
key: 5,
|
|
3988
3988
|
ref_key: "scrollbarRef",
|
|
3989
3989
|
ref: b
|
|
3990
3990
|
}, {
|
|
3991
3991
|
default: Z(() => [
|
|
3992
3992
|
d("div", N2, [
|
|
3993
|
-
(o(!0), i(M, null, m1(
|
|
3993
|
+
(o(!0), i(M, null, m1(c.value, (q) => (o(), V(Z2, {
|
|
3994
3994
|
ref_for: !0,
|
|
3995
3995
|
ref_key: "optionsRef",
|
|
3996
3996
|
ref: g,
|
|
@@ -4004,11 +4004,11 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4004
4004
|
}, {
|
|
4005
4005
|
default: Z(() => [
|
|
4006
4006
|
d("div", U2, [
|
|
4007
|
-
q.icon ? (o(), V(
|
|
4007
|
+
q.icon ? (o(), V(p(t1), {
|
|
4008
4008
|
key: 0,
|
|
4009
4009
|
name: q.icon
|
|
4010
4010
|
}, null, 8, ["name"])) : k("", !0),
|
|
4011
|
-
w(
|
|
4011
|
+
w(p(dt), {
|
|
4012
4012
|
"background-color": "yellow",
|
|
4013
4013
|
value: q.label,
|
|
4014
4014
|
highlight: h.value
|
|
@@ -4022,7 +4022,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4022
4022
|
]),
|
|
4023
4023
|
_: 1
|
|
4024
4024
|
}, 512)) : k("", !0),
|
|
4025
|
-
|
|
4025
|
+
p(r).footer ? (o(), i("footer", Y2, [
|
|
4026
4026
|
E(x.$slots, "footer")
|
|
4027
4027
|
])) : k("", !0)
|
|
4028
4028
|
]),
|
|
@@ -4057,7 +4057,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4057
4057
|
}, null, 6),
|
|
4058
4058
|
d("div", K2, [
|
|
4059
4059
|
t.value ? (o(), i("div", X2, [
|
|
4060
|
-
w(
|
|
4060
|
+
w(p(t1), { name: "check" })
|
|
4061
4061
|
])) : (o(), i("div", Q2, [
|
|
4062
4062
|
e.prefix ? (o(), i("span", q2, K(e.prefix), 1)) : k("", !0),
|
|
4063
4063
|
d("span", null, K(Math.round(e.percentage)) + "%", 1)
|
|
@@ -4076,20 +4076,20 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4076
4076
|
const e = n, l = t, s = y(""), r = Ee({ backdropFilter: "" });
|
|
4077
4077
|
return A1(() => {
|
|
4078
4078
|
e.type === "default" ? (s.value = "bg-black/25 dark:bg-black/50", r.backdropFilter = "") : e.type === "blurred" && (s.value = "bg-black/25", r.backdropFilter = "blur(3px)");
|
|
4079
|
-
}), (a,
|
|
4079
|
+
}), (a, c) => (o(), V(ue, {
|
|
4080
4080
|
"enter-active-class": "transform transition ease-in-out duration-200",
|
|
4081
4081
|
"enter-from-class": "opacity-0",
|
|
4082
4082
|
"enter-to-class": "",
|
|
4083
4083
|
"leave-active-class": "transform transition ease-in-out duration-500",
|
|
4084
4084
|
"leave-class": "translate-y-0 opacity-100",
|
|
4085
4085
|
"leave-to-class": "opacity-0",
|
|
4086
|
-
onAfterLeave:
|
|
4086
|
+
onAfterLeave: c[1] || (c[1] = (h) => l("close"))
|
|
4087
4087
|
}, {
|
|
4088
4088
|
default: Z(() => [
|
|
4089
4089
|
W1(d("div", {
|
|
4090
4090
|
class: T(["z-40 fixed w-screen h-screen top-0 left-0 flex items-center justify-center pointer-events-auto p-4", s.value]),
|
|
4091
4091
|
style: n1(r),
|
|
4092
|
-
onMousedown:
|
|
4092
|
+
onMousedown: c[0] || (c[0] = F((h) => l("click"), ["self"]))
|
|
4093
4093
|
}, [
|
|
4094
4094
|
E(a.$slots, "default")
|
|
4095
4095
|
], 38), [
|
|
@@ -4126,17 +4126,17 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4126
4126
|
},
|
|
4127
4127
|
emits: ["move", "update"],
|
|
4128
4128
|
setup(n, { emit: t }) {
|
|
4129
|
-
const e = n, l = t, s = y(), r = y(), a = y(!1),
|
|
4129
|
+
const e = n, l = t, s = y(), r = y(), a = y(!1), c = e.vertical ? J2 : G2, h = y(0), m = (L) => {
|
|
4130
4130
|
if (!a.value) return;
|
|
4131
4131
|
const D = h.value;
|
|
4132
4132
|
if (!D) return;
|
|
4133
4133
|
const A = s.value.getBoundingClientRect();
|
|
4134
4134
|
if (A) {
|
|
4135
|
-
const H = ((A[
|
|
4135
|
+
const H = ((A[c.direction] || 0) - (L[c.client] || 0)) * -1, B = r.value && typeof r.value[c.offset] == "number" ? r.value[c.offset] - D : 0, I = s.value ? Number(s.value[c.offset]) : 0, P = I ? (H - B) * 100 / I : 0;
|
|
4136
4136
|
l("update", {
|
|
4137
|
-
scrollReference:
|
|
4137
|
+
scrollReference: c.scroll,
|
|
4138
4138
|
positionPercentage: P,
|
|
4139
|
-
scrollSize:
|
|
4139
|
+
scrollSize: c.scrollSize
|
|
4140
4140
|
});
|
|
4141
4141
|
}
|
|
4142
4142
|
}, C = () => {
|
|
@@ -4145,23 +4145,23 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4145
4145
|
L.stopImmediatePropagation(), a.value = !0, document.addEventListener("mousemove", m), document.addEventListener("mouseup", C), document.onselectstart = () => !1;
|
|
4146
4146
|
}, g = (L) => {
|
|
4147
4147
|
if (!(L.ctrlKey || L.button === 2) && (u(L), L.currentTarget)) {
|
|
4148
|
-
const D = L.currentTarget[
|
|
4148
|
+
const D = L.currentTarget[c.offset], A = L[c.client], B = L.currentTarget.getBoundingClientRect()[c.direction];
|
|
4149
4149
|
h.value = D - (A - B);
|
|
4150
4150
|
}
|
|
4151
|
-
},
|
|
4151
|
+
}, f = (L) => {
|
|
4152
4152
|
const D = L.target.getBoundingClientRect();
|
|
4153
4153
|
if (D) {
|
|
4154
|
-
const A = D[
|
|
4154
|
+
const A = D[c.direction], H = L[c.client], B = Math.abs((A ? Number(A) : 0) - (H ? Number(H) : 0)), I = r.value[c.offset] / 2, P = s.value ? Number(s.value[c.offset]) : 0, e1 = P ? (B - I) * 100 / P : 0;
|
|
4155
4155
|
l("update", {
|
|
4156
|
-
scrollReference:
|
|
4156
|
+
scrollReference: c.scroll,
|
|
4157
4157
|
positionPercentage: e1,
|
|
4158
|
-
scrollSize:
|
|
4158
|
+
scrollSize: c.scrollSize
|
|
4159
4159
|
});
|
|
4160
4160
|
}
|
|
4161
4161
|
}, b = () => {
|
|
4162
|
-
const L = `translate${
|
|
4162
|
+
const L = `translate${c.axis}(${e.move}%)`;
|
|
4163
4163
|
return {
|
|
4164
|
-
[
|
|
4164
|
+
[c.size]: e.size,
|
|
4165
4165
|
transform: L,
|
|
4166
4166
|
msTransform: L,
|
|
4167
4167
|
webkitTransform: L
|
|
@@ -4172,10 +4172,10 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4172
4172
|
return (L, D) => (o(), i("div", {
|
|
4173
4173
|
ref_key: "scrollbarRef",
|
|
4174
4174
|
ref: s,
|
|
4175
|
-
class: T(`scrollbar__bar is-${
|
|
4175
|
+
class: T(`scrollbar__bar is-${p(c).key}`),
|
|
4176
4176
|
onClick: D[1] || (D[1] = F(() => {
|
|
4177
4177
|
}, ["stop", "prevent"])),
|
|
4178
|
-
onMousedown: F(
|
|
4178
|
+
onMousedown: F(f, ["stop", "prevent"])
|
|
4179
4179
|
}, [
|
|
4180
4180
|
d("div", {
|
|
4181
4181
|
ref_key: "thumbRef",
|
|
@@ -4213,13 +4213,13 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4213
4213
|
setup(n, { expose: t, emit: e }) {
|
|
4214
4214
|
const l = n, s = e;
|
|
4215
4215
|
let r;
|
|
4216
|
-
const a = y(6),
|
|
4216
|
+
const a = y(6), c = y(0), h = y(0), m = y(0), C = y("0"), u = y("0"), g = Ee({
|
|
4217
4217
|
marginRight: "",
|
|
4218
4218
|
marginBottom: ""
|
|
4219
|
-
}),
|
|
4219
|
+
}), f = { height: 100, width: 100 }, b = ["scrollbar__wrap"];
|
|
4220
4220
|
!a.value && b.push("scrollbar__wrap--hidden-default"), l.wrapClass && b.push(l.wrapClass);
|
|
4221
4221
|
const v = y(), L = y(), D = () => {
|
|
4222
|
-
h.value = v.value.scrollTop * 100 / v.value.clientHeight,
|
|
4222
|
+
h.value = v.value.scrollTop * 100 / v.value.clientHeight, c.value = v.value.scrollLeft * 100 / v.value.clientWidth, s("scroll", v.value.scrollTop);
|
|
4223
4223
|
const Q = v.value.scrollTop + v.value.clientHeight, Y = v.value.scrollHeight;
|
|
4224
4224
|
if (m.value > 0 && v.value.scrollTop === 0 ? s("intersect", { edge: "top", hit: !0 }) : m.value === 0 && v.value.scrollTop > 0 ? s("intersect", { edge: "top", hit: !1 }) : m.value + v.value.clientHeight < Y && Q === Y ? s("intersect", { edge: "bottom", hit: !0 }) : m.value + v.value.clientHeight === Y && Q < Y && s("intersect", { edge: "bottom", hit: !1 }), l.triggers)
|
|
4225
4225
|
for (const l1 of l.triggers)
|
|
@@ -4232,10 +4232,10 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4232
4232
|
if (!v.value) return;
|
|
4233
4233
|
await V1();
|
|
4234
4234
|
const { heightPercentage: Q, widthPercentage: Y } = A();
|
|
4235
|
-
!Q && !Y || (l.disableX || (
|
|
4235
|
+
!Q && !Y || (l.disableX || (f.width === 100 && Y < 100 ? s("scrollXActive", !0) : Y === 100 && f.width < 100 && s("scrollXActive", !1), Y === 100 ? g.marginBottom = "0px" : a.value && (g.marginBottom = `-${a.value}px`), f.width = Y, u.value = Y < 100 ? `${Y}%` : ""), l.disableY || (f.height === 100 && Q < 100 ? s("scrollYActive", !0) : Q === 100 && f.height < 100 && s("scrollYActive", !1), Q === 100 ? g.marginRight = "0px" : a.value && (g.marginRight = `-${a.value}px`), f.height = Q, C.value = Q < 100 ? `${Q}%` : ""), D());
|
|
4236
4236
|
};
|
|
4237
4237
|
a1(async () => {
|
|
4238
|
-
await V1(H),
|
|
4238
|
+
await V1(H), f.height === 100 && s("intersect", { edge: "top", hit: !0 }), l.windowResize && window.addEventListener("resize", H), l.noresize || (r = new MutationObserver(H), r.observe(L.value, {
|
|
4239
4239
|
childList: !0,
|
|
4240
4240
|
subtree: !0
|
|
4241
4241
|
}));
|
|
@@ -4277,7 +4277,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4277
4277
|
], 38),
|
|
4278
4278
|
Q.disableX ? k("", !0) : (o(), V(Se, {
|
|
4279
4279
|
key: 0,
|
|
4280
|
-
move:
|
|
4280
|
+
move: c.value,
|
|
4281
4281
|
size: u.value,
|
|
4282
4282
|
onMove: Y[0] || (Y[0] = (l1) => I("x", l1 * 40)),
|
|
4283
4283
|
onUpdate: B
|
|
@@ -4307,7 +4307,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4307
4307
|
ref: l,
|
|
4308
4308
|
class: "w-full h-16 flex items-center justify-center bg-white"
|
|
4309
4309
|
}, [
|
|
4310
|
-
r.$slots.default ? E(r.$slots, "default", { key: 0 }) : (o(), V(
|
|
4310
|
+
r.$slots.default ? E(r.$slots, "default", { key: 0 }) : (o(), V(p(F1), {
|
|
4311
4311
|
key: 1,
|
|
4312
4312
|
class: "w-6 h-6 text-granite-grey"
|
|
4313
4313
|
}))
|
|
@@ -4336,7 +4336,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4336
4336
|
}]),
|
|
4337
4337
|
onClick: s[0] || (s[0] = (r) => e("click"))
|
|
4338
4338
|
}, [
|
|
4339
|
-
l.segment.icon ? (o(), V(
|
|
4339
|
+
l.segment.icon ? (o(), V(p(t1), {
|
|
4340
4340
|
key: 0,
|
|
4341
4341
|
name: l.segment.icon
|
|
4342
4342
|
}, null, 8, ["name"])) : k("", !0),
|
|
@@ -4353,14 +4353,14 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4353
4353
|
emits: ["select"],
|
|
4354
4354
|
setup(n, { emit: t }) {
|
|
4355
4355
|
const e = t, l = (s) => s.label === n.selectedSegment.label;
|
|
4356
|
-
return (s, r) => (o(), V(
|
|
4356
|
+
return (s, r) => (o(), V(p(o1), { class: "gap-0.5 p-1 rounded-lg bg-secondary" }, {
|
|
4357
4357
|
default: Z(() => [
|
|
4358
4358
|
(o(!0), i(M, null, m1(s.segments, (a) => (o(), V(t0, {
|
|
4359
4359
|
key: a.label,
|
|
4360
4360
|
segment: a,
|
|
4361
4361
|
active: l(a),
|
|
4362
4362
|
size: s.size,
|
|
4363
|
-
onClick: (
|
|
4363
|
+
onClick: (c) => e("select", a)
|
|
4364
4364
|
}, null, 8, ["segment", "active", "size", "onClick"]))), 128))
|
|
4365
4365
|
]),
|
|
4366
4366
|
_: 1
|
|
@@ -4397,7 +4397,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4397
4397
|
emits: ["click", "delete", "focus", "hover"],
|
|
4398
4398
|
setup(n, { emit: t }) {
|
|
4399
4399
|
const e = t, l = O(() => n.variant === "checkbox" || n.variant === "single"), s = O(() => n.hoveredOption ? "id" in n.hoveredOption && "id" in n.option ? n.hoveredOption.id === n.option.id : n.hoveredOption && n.hoveredOption.label === n.option.label : !1), r = () => e("click");
|
|
4400
|
-
return (a,
|
|
4400
|
+
return (a, c) => (o(), i("li", l0, [
|
|
4401
4401
|
(o(), V(D1(l.value ? "button" : "div"), {
|
|
4402
4402
|
disabled: a.option.disabled,
|
|
4403
4403
|
class: T(["w-full overflow-hidden rounded-lg flex items-center px-2 py-1 gap-2", {
|
|
@@ -4409,19 +4409,19 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4409
4409
|
"cursor-not-allowed": a.option.disabled
|
|
4410
4410
|
}]),
|
|
4411
4411
|
onClick: r,
|
|
4412
|
-
onMouseover:
|
|
4413
|
-
onFocus:
|
|
4412
|
+
onMouseover: c[1] || (c[1] = (h) => e("hover", a.option)),
|
|
4413
|
+
onFocus: c[2] || (c[2] = (h) => e("focus", a.option))
|
|
4414
4414
|
}, {
|
|
4415
4415
|
default: Z(() => [
|
|
4416
4416
|
d("main", n0, [
|
|
4417
|
-
a.variant === "checkbox" ? (o(), V(
|
|
4417
|
+
a.variant === "checkbox" ? (o(), V(p(ot), {
|
|
4418
4418
|
key: 0,
|
|
4419
4419
|
disabled: a.option.disabled,
|
|
4420
4420
|
checked: a.selected,
|
|
4421
4421
|
class: "flex-0",
|
|
4422
4422
|
onClick: r
|
|
4423
4423
|
}, null, 8, ["disabled", "checked"])) : k("", !0),
|
|
4424
|
-
a.option.icon ? (o(), V(
|
|
4424
|
+
a.option.icon ? (o(), V(p(t1), {
|
|
4425
4425
|
key: 1,
|
|
4426
4426
|
name: a.option.icon,
|
|
4427
4427
|
class: T(["w-4 h-4 flex-0", {
|
|
@@ -4430,7 +4430,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4430
4430
|
"text-primary": a.variant !== "single" && !a.option.disabled
|
|
4431
4431
|
}])
|
|
4432
4432
|
}, null, 8, ["name", "class"])) : k("", !0),
|
|
4433
|
-
w(
|
|
4433
|
+
w(p(dt), {
|
|
4434
4434
|
"background-color": "yellow",
|
|
4435
4435
|
value: a.option.label,
|
|
4436
4436
|
highlight: a.search,
|
|
@@ -4452,12 +4452,12 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4452
4452
|
"text-tertiary": a.option.disabled
|
|
4453
4453
|
}])
|
|
4454
4454
|
}, K(a.option.suffix), 3)) : k("", !0),
|
|
4455
|
-
a.variant === "deletable" ? (o(), V(
|
|
4455
|
+
a.variant === "deletable" ? (o(), V(p(j), {
|
|
4456
4456
|
key: 1,
|
|
4457
4457
|
small: "",
|
|
4458
4458
|
icon: "close",
|
|
4459
4459
|
variant: "text",
|
|
4460
|
-
onClick:
|
|
4460
|
+
onClick: c[0] || (c[0] = (h) => e("delete"))
|
|
4461
4461
|
})) : k("", !0)
|
|
4462
4462
|
]),
|
|
4463
4463
|
_: 1
|
|
@@ -4492,7 +4492,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4492
4492
|
message: {}
|
|
4493
4493
|
},
|
|
4494
4494
|
setup(n) {
|
|
4495
|
-
return (t, e) => (o(), V(
|
|
4495
|
+
return (t, e) => (o(), V(p(ee), {
|
|
4496
4496
|
status: t.message,
|
|
4497
4497
|
variant: "error"
|
|
4498
4498
|
}, {
|
|
@@ -4547,7 +4547,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4547
4547
|
}), d0 = /* @__PURE__ */ $({
|
|
4548
4548
|
__name: "IdleCard",
|
|
4549
4549
|
setup(n) {
|
|
4550
|
-
return (t, e) => (o(), V(
|
|
4550
|
+
return (t, e) => (o(), V(p(ee), {
|
|
4551
4551
|
status: "Type to search",
|
|
4552
4552
|
variant: "idle"
|
|
4553
4553
|
}, {
|
|
@@ -4573,20 +4573,20 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4573
4573
|
}), u0 = /* @__PURE__ */ $({
|
|
4574
4574
|
__name: "LoadingCard",
|
|
4575
4575
|
setup(n) {
|
|
4576
|
-
return (t, e) => (o(), V(
|
|
4576
|
+
return (t, e) => (o(), V(p(ee), {
|
|
4577
4577
|
status: "Loading",
|
|
4578
4578
|
variant: "loading"
|
|
4579
4579
|
}, {
|
|
4580
4580
|
default: Z(() => [
|
|
4581
|
-
w(
|
|
4581
|
+
w(p(F1))
|
|
4582
4582
|
]),
|
|
4583
4583
|
_: 1
|
|
4584
4584
|
}));
|
|
4585
4585
|
}
|
|
4586
|
-
}),
|
|
4586
|
+
}), p0 = /* @__PURE__ */ $({
|
|
4587
4587
|
__name: "NoMatchCard",
|
|
4588
4588
|
setup(n) {
|
|
4589
|
-
return (t, e) => (o(), V(
|
|
4589
|
+
return (t, e) => (o(), V(p(ee), {
|
|
4590
4590
|
status: "No matches",
|
|
4591
4591
|
variant: "no match"
|
|
4592
4592
|
}, {
|
|
@@ -4638,7 +4638,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4638
4638
|
_: 1
|
|
4639
4639
|
}));
|
|
4640
4640
|
}
|
|
4641
|
-
}),
|
|
4641
|
+
}), f0 = {
|
|
4642
4642
|
key: 0,
|
|
4643
4643
|
class: "flex-0 flex flex-col gap-2 p-2 border-b border-default"
|
|
4644
4644
|
}, c0 = {
|
|
@@ -4675,15 +4675,15 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4675
4675
|
},
|
|
4676
4676
|
emits: ["escape", "selectQuery", "select"],
|
|
4677
4677
|
setup(n, { expose: t, emit: e }) {
|
|
4678
|
-
const l = n, s = e, { nextFrame: r } = ve(), a = y(null),
|
|
4678
|
+
const l = n, s = e, { nextFrame: r } = ve(), a = y(null), c = y([]), h = y(""), m = y(), C = y(), u = y(), g = y(), f = y(), b = y(l.filters ? l.filters[0] : null), v = y(!1), L = y(!1), D = y(""), A = (z) => {
|
|
4679
4679
|
if (!Array.isArray(z)) throw new Error("Item passed must be an Array");
|
|
4680
4680
|
return z.length === 0 ? !1 : "options" in z[0];
|
|
4681
|
-
}, H = O(() => A(l.options)), B = O(() => H.value ? l.options.flatMap((z) => z.options) : l.options), I = O(() => l.loading ? "loading" : l.errorMessage ? "error" : h.value.length && !
|
|
4681
|
+
}, H = O(() => A(l.options)), B = O(() => H.value ? l.options.flatMap((z) => z.options) : l.options), I = O(() => l.loading ? "loading" : l.errorMessage ? "error" : h.value.length && !c.value.length ? "no match" : c.value.length ? "match" : "idle"), P = O(() => l.selected && "length" in l.selected), e1 = O(() => l.selected ? P.value ? l.selected.length : 1 : 0), u1 = O(() => l.selected ? b.value ? l.selected.length >= B.value.filter(b.value.execute).length : P.value ? l.selected.length === B.value.length : !1 : !1), Q = O(() => l.selected ? P.value ? !l.selected.length : !l.selected : !0);
|
|
4682
4682
|
r1(() => l.selected, (z) => {
|
|
4683
4683
|
z && v.value && r(() => {
|
|
4684
4684
|
if (u.value.update(), P.value && e1.value) {
|
|
4685
|
-
const J = g.value[g.value.length - 1].$el,
|
|
4686
|
-
|
|
4685
|
+
const J = g.value[g.value.length - 1].$el, f1 = f.value.$el.querySelector(".scrollbar__wrap");
|
|
4686
|
+
f1 && (at(f1, J), f.value.handleScroll());
|
|
4687
4687
|
}
|
|
4688
4688
|
});
|
|
4689
4689
|
}), r1(() => l.options, (z) => {
|
|
@@ -4697,7 +4697,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4697
4697
|
z.key === "Enter" ? S() : z.key === "Escape" ? s("escape") : z.key === "ArrowDown" ? x("next") : z.key === "ArrowUp" && x("prev");
|
|
4698
4698
|
}, l1 = (z) => {
|
|
4699
4699
|
if (P.value) {
|
|
4700
|
-
const J = l.selected.map((
|
|
4700
|
+
const J = l.selected.map((f1) => f1.label).includes(z.label) ? [...l.selected.filter((f1) => f1.label !== z.label)] : [...l.selected, z];
|
|
4701
4701
|
s("select", J);
|
|
4702
4702
|
} else
|
|
4703
4703
|
s("select", z);
|
|
@@ -4708,8 +4708,8 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4708
4708
|
}, B1 = l.searchDebounce ? oe(G, l.searchDebounce) : G, g1 = (z) => {
|
|
4709
4709
|
var J;
|
|
4710
4710
|
if (H.value) {
|
|
4711
|
-
const
|
|
4712
|
-
|
|
4711
|
+
const f1 = z;
|
|
4712
|
+
c.value = f1.map(($1) => {
|
|
4713
4713
|
var He;
|
|
4714
4714
|
return {
|
|
4715
4715
|
...$1,
|
|
@@ -4717,8 +4717,8 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4717
4717
|
};
|
|
4718
4718
|
});
|
|
4719
4719
|
} else {
|
|
4720
|
-
const
|
|
4721
|
-
|
|
4720
|
+
const f1 = z;
|
|
4721
|
+
c.value = b.value ? f1.filter((J = b.value) == null ? void 0 : J.execute) : f1;
|
|
4722
4722
|
}
|
|
4723
4723
|
}, N = (z) => {
|
|
4724
4724
|
b.value = z, g1(l.options);
|
|
@@ -4726,21 +4726,21 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4726
4726
|
if (!P.value) throw new Error('[SelectList@onToggleAll] method should not be called when "isMultiselect=false"');
|
|
4727
4727
|
e1.value === 0 || e1.value && !u1.value ? s("select", b.value ? B.value.filter(b.value.execute) : B.value) : s("select", []);
|
|
4728
4728
|
}, s1 = (z) => a.value = B.value.find((J) => J[l.identifier] === z[l.identifier]) || null, v1 = O(() => {
|
|
4729
|
-
const z = Array.isArray(
|
|
4729
|
+
const z = Array.isArray(c.value) && c.value.length > 0 && "options" in c.value[0] ? c.value.flatMap((J) => J.options) : c.value;
|
|
4730
4730
|
return z.length > 0 && z.every((J) => !!J.disabled);
|
|
4731
4731
|
}), x = async (z) => {
|
|
4732
|
-
if (
|
|
4733
|
-
let J = B.value.findIndex((
|
|
4732
|
+
if (c.value.length === 0) return;
|
|
4733
|
+
let J = B.value.findIndex((f1) => {
|
|
4734
4734
|
var $1;
|
|
4735
|
-
return
|
|
4735
|
+
return f1.label === (($1 = a.value) == null ? void 0 : $1.label);
|
|
4736
4736
|
});
|
|
4737
|
-
v1.value || (z === "next" ? (J++, J ===
|
|
4737
|
+
v1.value || (z === "next" ? (J++, J === c.value.length && (J = 0)) : z === "prev" && (J--, J < 0 && (J = c.value.length - 1)), a.value = B.value[J], a.value.disabled === !0 && x(z), await V1(), a.value && U(a.value));
|
|
4738
4738
|
}, U = (z) => {
|
|
4739
4739
|
if (!C.value.children.length) return;
|
|
4740
4740
|
const J = null;
|
|
4741
4741
|
u.value;
|
|
4742
4742
|
}, q = () => {
|
|
4743
|
-
v.value = !v.value,
|
|
4743
|
+
v.value = !v.value, f.value.update();
|
|
4744
4744
|
}, d1 = O(() => v.value && L.value ? D.value : "border-transparent"), k1 = (z) => {
|
|
4745
4745
|
z.hit ? z.edge === "bottom" && z.hit ? D.value = "border-b-transparent border-t-outline-subtle shadow-scroll-top" : z.edge === "top" && z.hit && (D.value = "border-t-transparent border-b-outline-subtle shadow-scroll-bottom") : D.value = "border-y-outline-subtle shadow-scroll-y";
|
|
4746
4746
|
}, L1 = (z) => {
|
|
@@ -4763,26 +4763,26 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4763
4763
|
maxHeight: z.searchFunction ? void 0 : "100%"
|
|
4764
4764
|
})
|
|
4765
4765
|
}, [
|
|
4766
|
-
z.$slots.header || z.searchFunction || z.filters || z.selectAll ? (o(), i("header",
|
|
4766
|
+
z.$slots.header || z.searchFunction || z.filters || z.selectAll ? (o(), i("header", f0, [
|
|
4767
4767
|
E(z.$slots, "header"),
|
|
4768
4768
|
z.searchFunction ? (o(), i("section", c0, [
|
|
4769
|
-
w(
|
|
4769
|
+
w(p(z1), {
|
|
4770
4770
|
class: "w-full",
|
|
4771
4771
|
clearable: "",
|
|
4772
4772
|
value: h.value,
|
|
4773
4773
|
placeholder: z.placeholder,
|
|
4774
|
-
onChange:
|
|
4775
|
-
onClear: J[0] || (J[0] = (
|
|
4774
|
+
onChange: p(B1),
|
|
4775
|
+
onClear: J[0] || (J[0] = (f1) => G(""))
|
|
4776
4776
|
}, null, 8, ["value", "placeholder", "onChange"])
|
|
4777
4777
|
])) : k("", !0),
|
|
4778
4778
|
z.filters ? (o(), i("section", C0, [
|
|
4779
|
-
(o(!0), i(M, null, m1(z.filters, (
|
|
4780
|
-
key:
|
|
4779
|
+
(o(!0), i(M, null, m1(z.filters, (f1) => (o(), V(p(j), {
|
|
4780
|
+
key: f1.name,
|
|
4781
4781
|
small: "",
|
|
4782
4782
|
variant: "textSubtle",
|
|
4783
|
-
focus: !!(b.value && b.value.name ===
|
|
4784
|
-
label:
|
|
4785
|
-
onClick: ($1) => N(
|
|
4783
|
+
focus: !!(b.value && b.value.name === f1.name),
|
|
4784
|
+
label: f1.name,
|
|
4785
|
+
onClick: ($1) => N(f1)
|
|
4786
4786
|
}, null, 8, ["focus", "label", "onClick"]))), 128))
|
|
4787
4787
|
])) : k("", !0),
|
|
4788
4788
|
z.selectAll ? (o(), i("button", {
|
|
@@ -4790,7 +4790,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4790
4790
|
class: "cursor-pointer flex items-center gap-2 p-1 rounded-lg hover:bg-secondary active:bg-tertiary",
|
|
4791
4791
|
onClick: W
|
|
4792
4792
|
}, [
|
|
4793
|
-
w(
|
|
4793
|
+
w(p(ot), {
|
|
4794
4794
|
indeterminate: !!(e1.value && !u1.value),
|
|
4795
4795
|
checked: u1.value,
|
|
4796
4796
|
onClick: W
|
|
@@ -4799,10 +4799,10 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4799
4799
|
])) : k("", !0)
|
|
4800
4800
|
])) : k("", !0),
|
|
4801
4801
|
d("main", h0, [
|
|
4802
|
-
I.value === "error" ? (o(), V(
|
|
4802
|
+
I.value === "error" ? (o(), V(p(i0), {
|
|
4803
4803
|
key: 0,
|
|
4804
4804
|
message: z.errorMessage
|
|
4805
|
-
}, null, 8, ["message"])) : I.value === "loading" ? (o(), V(
|
|
4805
|
+
}, null, 8, ["message"])) : I.value === "loading" ? (o(), V(p(u0), { key: 1 })) : I.value === "no match" ? (o(), V(p(p0), { key: 2 })) : I.value === "idle" ? (o(), V(p(d0), { key: 3 })) : I.value === "match" ? (o(), V(p(X1), {
|
|
4806
4806
|
key: 4,
|
|
4807
4807
|
ref_key: "scrollbarRef",
|
|
4808
4808
|
ref: u,
|
|
@@ -4819,7 +4819,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4819
4819
|
}])
|
|
4820
4820
|
}, [
|
|
4821
4821
|
E(z.$slots, "options", {
|
|
4822
|
-
options:
|
|
4822
|
+
options: c.value,
|
|
4823
4823
|
hover: s1,
|
|
4824
4824
|
hoveredOption: a.value,
|
|
4825
4825
|
select: l1,
|
|
@@ -4833,7 +4833,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4833
4833
|
z.$slots.footer ? (o(), i("footer", m0, [
|
|
4834
4834
|
z.showSelection ? (o(), i(M, { key: 0 }, [
|
|
4835
4835
|
d("header", g0, [
|
|
4836
|
-
w(
|
|
4836
|
+
w(p(j), {
|
|
4837
4837
|
square: "",
|
|
4838
4838
|
size: "tiny",
|
|
4839
4839
|
variant: "text",
|
|
@@ -4843,9 +4843,9 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4843
4843
|
onClick: q
|
|
4844
4844
|
}, null, 8, ["label", "trailing-icon"])
|
|
4845
4845
|
]),
|
|
4846
|
-
w(
|
|
4846
|
+
w(p(X1), {
|
|
4847
4847
|
ref_key: "selectionScrollbarRef",
|
|
4848
|
-
ref:
|
|
4848
|
+
ref: f,
|
|
4849
4849
|
show: "",
|
|
4850
4850
|
tag: "ul",
|
|
4851
4851
|
class: T(["border-y", d1.value]),
|
|
@@ -4884,10 +4884,10 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4884
4884
|
},
|
|
4885
4885
|
emits: ["close", "open"],
|
|
4886
4886
|
setup(n, { expose: t, emit: e }) {
|
|
4887
|
-
const l = e, s = R1(), r = y(!1), a = y(),
|
|
4888
|
-
var
|
|
4889
|
-
return (
|
|
4890
|
-
}), { trapFocus: h, releaseFocus: m } = j1(
|
|
4887
|
+
const l = e, s = R1(), r = y(!1), a = y(), c = O(() => {
|
|
4888
|
+
var f;
|
|
4889
|
+
return (f = a.value) == null ? void 0 : f.$el;
|
|
4890
|
+
}), { trapFocus: h, releaseFocus: m } = j1(c, !0);
|
|
4891
4891
|
a1(() => r.value = !0);
|
|
4892
4892
|
const C = () => {
|
|
4893
4893
|
m(), r.value = !1;
|
|
@@ -4898,10 +4898,10 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4898
4898
|
const g = () => {
|
|
4899
4899
|
h(), l("open");
|
|
4900
4900
|
};
|
|
4901
|
-
return t({ close: C }), (
|
|
4902
|
-
w(
|
|
4901
|
+
return t({ close: C }), (f, b) => (o(), V(U1, { to: f.target }, [
|
|
4902
|
+
w(p(he), {
|
|
4903
4903
|
show: r.value,
|
|
4904
|
-
type:
|
|
4904
|
+
type: f.overlayType,
|
|
4905
4905
|
class: "p-4",
|
|
4906
4906
|
onClick: u,
|
|
4907
4907
|
onClose: b[0] || (b[0] = (v) => l("close"))
|
|
@@ -4909,51 +4909,51 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4909
4909
|
default: Z(() => [
|
|
4910
4910
|
w(ue, {
|
|
4911
4911
|
"enter-active-class": "transform transition ease-in-out duration-500",
|
|
4912
|
-
"enter-from-class":
|
|
4912
|
+
"enter-from-class": f.placement === "right" ? "translate-x-full" : "-translate-x-full",
|
|
4913
4913
|
"enter-to-class": "",
|
|
4914
4914
|
"leave-active-class": "transform transition ease-in-out duration-300",
|
|
4915
4915
|
"leave-class": "translate-x-0",
|
|
4916
|
-
"leave-to-class":
|
|
4916
|
+
"leave-to-class": f.placement === "right" ? "translate-x-full" : "-translate-x-full",
|
|
4917
4917
|
onAfterEnter: g
|
|
4918
4918
|
}, {
|
|
4919
4919
|
default: Z(() => [
|
|
4920
|
-
W1(w(
|
|
4920
|
+
W1(w(p(ge), {
|
|
4921
4921
|
ref_key: "windowRef",
|
|
4922
4922
|
ref: a,
|
|
4923
|
-
class: T(["flex flex-col overflow-hidden w-full h-full focus:outline-hidden", [
|
|
4924
|
-
"py-4": !
|
|
4925
|
-
"ml-auto":
|
|
4926
|
-
"mr-auto":
|
|
4923
|
+
class: T(["flex flex-col overflow-hidden w-full h-full focus:outline-hidden", [f.widthClass, {
|
|
4924
|
+
"py-4": !p(s).default,
|
|
4925
|
+
"ml-auto": f.placement === "right",
|
|
4926
|
+
"mr-auto": f.placement === "left"
|
|
4927
4927
|
}]]),
|
|
4928
4928
|
style: { "pointer-events": "auto" }
|
|
4929
4929
|
}, {
|
|
4930
4930
|
default: Z(() => [
|
|
4931
|
-
|
|
4931
|
+
f.$slots.default ? E(f.$slots, "default", { key: 0 }) : (o(), V(p(me), { key: 1 }, Re({
|
|
4932
4932
|
main: Z(() => [
|
|
4933
4933
|
d("main", H0, [
|
|
4934
|
-
E(
|
|
4934
|
+
E(f.$slots, "main", { close: C })
|
|
4935
4935
|
])
|
|
4936
4936
|
]),
|
|
4937
4937
|
footer: Z(() => [
|
|
4938
4938
|
d("footer", V0, [
|
|
4939
|
-
E(
|
|
4939
|
+
E(f.$slots, "footer", { close: C })
|
|
4940
4940
|
])
|
|
4941
4941
|
]),
|
|
4942
4942
|
_: 2
|
|
4943
4943
|
}, [
|
|
4944
|
-
|
|
4944
|
+
f.title || f.$slots.header ? {
|
|
4945
4945
|
name: "header",
|
|
4946
4946
|
fn: Z(() => [
|
|
4947
|
-
|
|
4948
|
-
d("h4", null, K(
|
|
4949
|
-
|
|
4947
|
+
f.title ? (o(), i("header", y0, [
|
|
4948
|
+
d("h4", null, K(f.title), 1),
|
|
4949
|
+
f.closeable ? (o(), V(p(j), {
|
|
4950
4950
|
key: 0,
|
|
4951
4951
|
small: "",
|
|
4952
4952
|
icon: "close",
|
|
4953
4953
|
variant: "textSubtle",
|
|
4954
4954
|
onClick: u
|
|
4955
4955
|
})) : k("", !0)
|
|
4956
|
-
])) : E(
|
|
4956
|
+
])) : E(f.$slots, "header", {
|
|
4957
4957
|
key: 1,
|
|
4958
4958
|
close: C
|
|
4959
4959
|
})
|
|
@@ -5023,20 +5023,20 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
5023
5023
|
}
|
|
5024
5024
|
});
|
|
5025
5025
|
function k0(n, t) {
|
|
5026
|
-
const e = y(), l = y([]), s = y(), r = y([]), a = y([]),
|
|
5026
|
+
const e = y(), l = y([]), s = y(), r = y([]), a = y([]), c = y(/* @__PURE__ */ new Map()), h = y(0);
|
|
5027
5027
|
function m() {
|
|
5028
5028
|
if (!e.value) return;
|
|
5029
5029
|
const g = n();
|
|
5030
5030
|
l.value.forEach((I, P) => {
|
|
5031
|
-
I && r.value[P] &&
|
|
5031
|
+
I && r.value[P] && c.value.set(r.value[P], I.offsetWidth);
|
|
5032
5032
|
}), r.value.length === 0 && l.value.forEach((I, P) => {
|
|
5033
|
-
I && g[P] &&
|
|
5033
|
+
I && g[P] && c.value.set(g[P].id, I.offsetWidth);
|
|
5034
5034
|
}), s.value && (h.value = s.value.offsetWidth);
|
|
5035
|
-
const
|
|
5035
|
+
const f = e.value.clientWidth, b = g.map((I) => c.value.get(I.id) ?? 0), v = h.value;
|
|
5036
5036
|
let L = 0, D = n().length;
|
|
5037
5037
|
for (let I = 0; I < b.length; I++) {
|
|
5038
5038
|
const e1 = b.length - I - 1 > 0;
|
|
5039
|
-
if (L + b[I] + (e1 ? v : 0) >
|
|
5039
|
+
if (L + b[I] + (e1 ? v : 0) > f) {
|
|
5040
5040
|
D = I;
|
|
5041
5041
|
break;
|
|
5042
5042
|
}
|
|
@@ -5053,38 +5053,38 @@ function k0(n, t) {
|
|
|
5053
5053
|
}
|
|
5054
5054
|
r1(t, (g) => {
|
|
5055
5055
|
if (!a.value.includes(g)) return;
|
|
5056
|
-
const
|
|
5056
|
+
const f = [...r.value], b = [...a.value];
|
|
5057
5057
|
b.splice(b.indexOf(g), 1);
|
|
5058
|
-
const v =
|
|
5059
|
-
v && b.unshift(v),
|
|
5058
|
+
const v = f.pop();
|
|
5059
|
+
v && b.unshift(v), f.push(g), r.value = f, a.value = b;
|
|
5060
5060
|
}), a1(async () => {
|
|
5061
5061
|
await V1(), m(), new ResizeObserver(m).observe(e.value);
|
|
5062
5062
|
});
|
|
5063
5063
|
function C(g) {
|
|
5064
|
-
const
|
|
5064
|
+
const f = n().findIndex((v) => v.id === g), b = l.value[f];
|
|
5065
5065
|
b == null || b.focus();
|
|
5066
5066
|
}
|
|
5067
5067
|
function u(g) {
|
|
5068
|
-
const
|
|
5068
|
+
const f = n().map((D) => D.id), b = f.indexOf(t());
|
|
5069
5069
|
let v = b;
|
|
5070
5070
|
switch (g.key) {
|
|
5071
5071
|
case "ArrowRight":
|
|
5072
|
-
v = (b + 1) %
|
|
5072
|
+
v = (b + 1) % f.length;
|
|
5073
5073
|
break;
|
|
5074
5074
|
case "ArrowLeft":
|
|
5075
|
-
v = (b - 1 +
|
|
5075
|
+
v = (b - 1 + f.length) % f.length;
|
|
5076
5076
|
break;
|
|
5077
5077
|
case "Home":
|
|
5078
5078
|
v = 0;
|
|
5079
5079
|
break;
|
|
5080
5080
|
case "End":
|
|
5081
|
-
v =
|
|
5081
|
+
v = f.length - 1;
|
|
5082
5082
|
break;
|
|
5083
5083
|
default:
|
|
5084
5084
|
return;
|
|
5085
5085
|
}
|
|
5086
5086
|
g.preventDefault();
|
|
5087
|
-
const L =
|
|
5087
|
+
const L = f[v];
|
|
5088
5088
|
C(L);
|
|
5089
5089
|
}
|
|
5090
5090
|
return {
|
|
@@ -5105,30 +5105,30 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5105
5105
|
},
|
|
5106
5106
|
emits: ["select"],
|
|
5107
5107
|
setup(n, { emit: t }) {
|
|
5108
|
-
const e = n, l = t, { containerRef: s, tabRefs: r, overflowTriggerRef: a, visibleIds:
|
|
5108
|
+
const e = n, l = t, { containerRef: s, tabRefs: r, overflowTriggerRef: a, visibleIds: c, overflowIds: h, onKeydown: m } = k0(
|
|
5109
5109
|
() => e.tabs,
|
|
5110
5110
|
() => e.selectedTabId
|
|
5111
|
-
), C = (
|
|
5112
|
-
b && (r.value[
|
|
5113
|
-
}, u = O(() => e.tabs.filter((
|
|
5114
|
-
return (
|
|
5111
|
+
), C = (f, b) => {
|
|
5112
|
+
b && (r.value[f] = b);
|
|
5113
|
+
}, u = O(() => e.tabs.filter((f) => c.value.includes(f.id))), g = O(() => e.tabs.filter((f) => h.value.includes(f.id)));
|
|
5114
|
+
return (f, b) => (o(), i("div", {
|
|
5115
5115
|
ref_key: "containerRef",
|
|
5116
5116
|
ref: s,
|
|
5117
5117
|
class: "flex w-full overflow-hidden",
|
|
5118
5118
|
role: "tablist",
|
|
5119
5119
|
"aria-orientation": "horizontal"
|
|
5120
5120
|
}, [
|
|
5121
|
-
(o(!0), i(M, null, m1(u.value, (v, L) => E(
|
|
5121
|
+
(o(!0), i(M, null, m1(u.value, (v, L) => E(f.$slots, "tab", {
|
|
5122
5122
|
key: v.id,
|
|
5123
5123
|
tab: v,
|
|
5124
|
-
selected: v.id ===
|
|
5124
|
+
selected: v.id === f.selectedTabId,
|
|
5125
5125
|
attrs: {
|
|
5126
5126
|
id: `tab-${v.id}`,
|
|
5127
5127
|
role: "tab",
|
|
5128
|
-
tabindex: v.id ===
|
|
5129
|
-
"aria-selected": v.id ===
|
|
5128
|
+
tabindex: v.id === f.selectedTabId ? 0 : -1,
|
|
5129
|
+
"aria-selected": v.id === f.selectedTabId,
|
|
5130
5130
|
"aria-controls": `panel-${v.id}`,
|
|
5131
|
-
onKeydown:
|
|
5131
|
+
onKeydown: p(m),
|
|
5132
5132
|
ref: (D) => C(L, D)
|
|
5133
5133
|
},
|
|
5134
5134
|
select: () => l("select", v.id)
|
|
@@ -5139,7 +5139,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5139
5139
|
ref: a,
|
|
5140
5140
|
class: "inline-flex"
|
|
5141
5141
|
}, [
|
|
5142
|
-
E(
|
|
5142
|
+
E(f.$slots, "overflow-trigger", {
|
|
5143
5143
|
count: g.value.length,
|
|
5144
5144
|
tabs: g.value,
|
|
5145
5145
|
select: (v) => l("select", v)
|
|
@@ -5184,16 +5184,16 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5184
5184
|
tabs: t,
|
|
5185
5185
|
onSelect: s[0] || (s[0] = (r) => e.value = r)
|
|
5186
5186
|
}, {
|
|
5187
|
-
tab: Z(({ tab: r, selected: a, attrs:
|
|
5187
|
+
tab: Z(({ tab: r, selected: a, attrs: c, select: h }) => [
|
|
5188
5188
|
d("div", $0, [
|
|
5189
|
-
d("button", wt(
|
|
5189
|
+
d("button", wt(c, {
|
|
5190
5190
|
class: ["flex items-center gap-1 h-6 px-2 rounded-lg cursor-pointer", {
|
|
5191
5191
|
"text-action border-action": a,
|
|
5192
5192
|
"text-tertiary border-default hover:bg-tertiary": !a
|
|
5193
5193
|
}],
|
|
5194
5194
|
onClick: h
|
|
5195
5195
|
}), [
|
|
5196
|
-
w(
|
|
5196
|
+
w(p(t1), {
|
|
5197
5197
|
name: r.icon
|
|
5198
5198
|
}, null, 8, ["name"]),
|
|
5199
5199
|
d("span", T0, K(r.label), 1)
|
|
@@ -5208,8 +5208,8 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5208
5208
|
])
|
|
5209
5209
|
])
|
|
5210
5210
|
]),
|
|
5211
|
-
"overflow-trigger": Z(({ count: r, tabs: a, select:
|
|
5212
|
-
w(
|
|
5211
|
+
"overflow-trigger": Z(({ count: r, tabs: a, select: c }) => [
|
|
5212
|
+
w(p(E1), {
|
|
5213
5213
|
trigger: "click",
|
|
5214
5214
|
placement: "bottom-end"
|
|
5215
5215
|
}, {
|
|
@@ -5222,7 +5222,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5222
5222
|
}])
|
|
5223
5223
|
}, [
|
|
5224
5224
|
d("span", z0, K(`More (${r})`), 1),
|
|
5225
|
-
w(
|
|
5225
|
+
w(p(t1), {
|
|
5226
5226
|
name: h ? "chevron-up-small" : "chevron-down-small"
|
|
5227
5227
|
}, null, 8, ["name"])
|
|
5228
5228
|
], 2),
|
|
@@ -5232,16 +5232,16 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5232
5232
|
])
|
|
5233
5233
|
]),
|
|
5234
5234
|
content: Z(({ close: h }) => [
|
|
5235
|
-
w(
|
|
5235
|
+
w(p(O1), null, {
|
|
5236
5236
|
default: Z(() => [
|
|
5237
|
-
(o(!0), i(M, null, m1(a, (m) => (o(), V(
|
|
5237
|
+
(o(!0), i(M, null, m1(a, (m) => (o(), V(p(o0), {
|
|
5238
5238
|
key: m.id,
|
|
5239
5239
|
small: "",
|
|
5240
5240
|
option: m,
|
|
5241
5241
|
variant: "single",
|
|
5242
5242
|
selected: !1,
|
|
5243
5243
|
onClick: (C) => {
|
|
5244
|
-
|
|
5244
|
+
c(m.id), h();
|
|
5245
5245
|
}
|
|
5246
5246
|
}, null, 8, ["option", "onClick"]))), 128))
|
|
5247
5247
|
]),
|
|
@@ -5277,7 +5277,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5277
5277
|
const e = n, l = t, s = y(), r = () => {
|
|
5278
5278
|
s.value.blur(), l("select", e.name);
|
|
5279
5279
|
};
|
|
5280
|
-
return (a,
|
|
5280
|
+
return (a, c) => (o(), i("button", {
|
|
5281
5281
|
ref_key: "tabRef",
|
|
5282
5282
|
ref: s,
|
|
5283
5283
|
disabled: a.disabled,
|
|
@@ -5297,14 +5297,14 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5297
5297
|
}]),
|
|
5298
5298
|
onClick: F(r, ["stop", "prevent"])
|
|
5299
5299
|
}, [
|
|
5300
|
-
a.icon && a.size === "default" ? (o(), V(
|
|
5300
|
+
a.icon && a.size === "default" ? (o(), V(p(t1), {
|
|
5301
5301
|
key: 0,
|
|
5302
5302
|
name: a.icon
|
|
5303
5303
|
}, null, 8, ["name"])) : k("", !0),
|
|
5304
5304
|
d("span", R0, [
|
|
5305
5305
|
Oe(K(a.name) + " ", 1),
|
|
5306
5306
|
a.notification ? (o(), i("div", E0, [
|
|
5307
|
-
w(
|
|
5307
|
+
w(p(et))
|
|
5308
5308
|
])) : k("", !0)
|
|
5309
5309
|
])
|
|
5310
5310
|
], 10, A0));
|
|
@@ -5319,7 +5319,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5319
5319
|
emits: ["delete"],
|
|
5320
5320
|
setup(n, { emit: t }) {
|
|
5321
5321
|
const e = t;
|
|
5322
|
-
return (l, s) => (o(), V(
|
|
5322
|
+
return (l, s) => (o(), V(p(o1), {
|
|
5323
5323
|
inline: "",
|
|
5324
5324
|
class: T(["h-5 truncate text-xs rounded-sm text-tertiary bg-tertiary", {
|
|
5325
5325
|
"px-1": !l.deletable,
|
|
@@ -5327,9 +5327,9 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5327
5327
|
}])
|
|
5328
5328
|
}, {
|
|
5329
5329
|
default: Z(() => [
|
|
5330
|
-
w(
|
|
5330
|
+
w(p(o1), { class: "gap-1" }, {
|
|
5331
5331
|
default: Z(() => [
|
|
5332
|
-
l.icon ? (o(), V(
|
|
5332
|
+
l.icon ? (o(), V(p(t1), {
|
|
5333
5333
|
key: 0,
|
|
5334
5334
|
name: l.icon
|
|
5335
5335
|
}, null, 8, ["name"])) : k("", !0),
|
|
@@ -5337,7 +5337,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5337
5337
|
]),
|
|
5338
5338
|
_: 1
|
|
5339
5339
|
}),
|
|
5340
|
-
l.deletable ? (o(), V(
|
|
5340
|
+
l.deletable ? (o(), V(p(j), {
|
|
5341
5341
|
key: 0,
|
|
5342
5342
|
small: "",
|
|
5343
5343
|
variant: "textSubtle",
|
|
@@ -5366,7 +5366,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5366
5366
|
const e = n, l = y();
|
|
5367
5367
|
return t({ hide: () => {
|
|
5368
5368
|
l.value && l.value.close();
|
|
5369
|
-
} }), (s, r) => (o(), V(
|
|
5369
|
+
} }), (s, r) => (o(), V(p(E1), {
|
|
5370
5370
|
ref_key: "popperRef",
|
|
5371
5371
|
ref: l,
|
|
5372
5372
|
"disable-click-outside": "",
|
|
@@ -5400,16 +5400,16 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5400
5400
|
emits: ["delete"],
|
|
5401
5401
|
setup(n, { emit: t }) {
|
|
5402
5402
|
const e = t, l = () => e("delete", n.entry.id);
|
|
5403
|
-
return (s, r) => (o(), V(
|
|
5403
|
+
return (s, r) => (o(), V(p(te), {
|
|
5404
5404
|
text: s.entry.error
|
|
5405
5405
|
}, {
|
|
5406
5406
|
default: Z(() => [
|
|
5407
|
-
w(
|
|
5407
|
+
w(p(o1), {
|
|
5408
5408
|
id: s.entry.id,
|
|
5409
5409
|
tabindex: "1",
|
|
5410
5410
|
class: T(["gap-0.5 h-6 pl-1 pr-0.5 rounded-md border cursor-default", {
|
|
5411
|
-
"border-strong text-primary": !
|
|
5412
|
-
"border-red-400 text-red-400 focus:bg-red-400 focus:text-white":
|
|
5411
|
+
"border-strong text-primary": !p(de)(s.entry.error),
|
|
5412
|
+
"border-red-400 text-red-400 focus:bg-red-400 focus:text-white": p(de)(s.entry.error)
|
|
5413
5413
|
}]),
|
|
5414
5414
|
onKeyup: _(l, ["delete"])
|
|
5415
5415
|
}, {
|
|
@@ -5419,7 +5419,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5419
5419
|
class: "group cursor-pointer w-4 h-4 rounded hover:bg-secondary active:bg-tertiary",
|
|
5420
5420
|
onClick: l
|
|
5421
5421
|
}, [
|
|
5422
|
-
w(
|
|
5422
|
+
w(p(t1), {
|
|
5423
5423
|
name: "close",
|
|
5424
5424
|
class: "text-tertiary dark:text-muted group-hover:text-primary"
|
|
5425
5425
|
})
|
|
@@ -5439,7 +5439,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5439
5439
|
},
|
|
5440
5440
|
emits: ["update:entries", "raw-input-parsed", "enter-key-up"],
|
|
5441
5441
|
setup(n, { expose: t, emit: e }) {
|
|
5442
|
-
const l = e, s = y(), r = y(""), a = y([]),
|
|
5442
|
+
const l = e, s = y(), r = y(""), a = y([]), c = (b) => {
|
|
5443
5443
|
a.value = [...a.value, ...C(b)], l("update:entries", a.value);
|
|
5444
5444
|
}, h = (b) => {
|
|
5445
5445
|
a.value = [...C(b)], l("update:entries", a.value);
|
|
@@ -5462,9 +5462,9 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5462
5462
|
};
|
|
5463
5463
|
return t({ clear: () => {
|
|
5464
5464
|
a.value = [], r.value = "", l("update:entries", a.value);
|
|
5465
|
-
}, importEntries:
|
|
5465
|
+
}, importEntries: c, inputElement: s, replaceEntries: h }), (b, v) => (o(), V(p(o1), { class: "flex-1 flex-wrap gap-1 px-2 py-1" }, {
|
|
5466
5466
|
default: Z(() => [
|
|
5467
|
-
(o(!0), i(M, null, m1(a.value, (L) => (o(), V(
|
|
5467
|
+
(o(!0), i(M, null, m1(a.value, (L) => (o(), V(p(x0), {
|
|
5468
5468
|
key: L.id,
|
|
5469
5469
|
entry: L,
|
|
5470
5470
|
onDelete: g
|
|
@@ -5507,12 +5507,12 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5507
5507
|
emits: ["click"],
|
|
5508
5508
|
setup(n, { emit: t }) {
|
|
5509
5509
|
const e = t;
|
|
5510
|
-
return (l, s) => (o(), V(
|
|
5510
|
+
return (l, s) => (o(), V(p(te), {
|
|
5511
5511
|
text: l.tooltip,
|
|
5512
5512
|
delay: 200
|
|
5513
5513
|
}, {
|
|
5514
5514
|
default: Z(() => [
|
|
5515
|
-
w(
|
|
5515
|
+
w(p(o1), {
|
|
5516
5516
|
tag: "button",
|
|
5517
5517
|
inline: "",
|
|
5518
5518
|
justify: "center",
|
|
@@ -5528,7 +5528,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5528
5528
|
onClick: s[0] || (s[0] = (r) => !l.disabled && e("click"))
|
|
5529
5529
|
}, {
|
|
5530
5530
|
default: Z(() => [
|
|
5531
|
-
l.icon ? (o(), V(
|
|
5531
|
+
l.icon ? (o(), V(p(t1), {
|
|
5532
5532
|
key: 0,
|
|
5533
5533
|
name: l.icon
|
|
5534
5534
|
}, null, 8, ["name"])) : k("", !0),
|
|
@@ -5598,10 +5598,10 @@ const _s = /* @__PURE__ */ Z1(N0, [["render", W0]]), ze = Fe.create({
|
|
|
5598
5598
|
let a = r - 1;
|
|
5599
5599
|
for (; a >= 0 && /\w/.test(s[a]); )
|
|
5600
5600
|
a--;
|
|
5601
|
-
let
|
|
5602
|
-
for (;
|
|
5603
|
-
|
|
5604
|
-
return s.slice(a + 1,
|
|
5601
|
+
let c = r;
|
|
5602
|
+
for (; c < s.length && /\w/.test(s[c]); )
|
|
5603
|
+
c++;
|
|
5604
|
+
return s.slice(a + 1, c) || null;
|
|
5605
5605
|
}, j0 = Fe.create({
|
|
5606
5606
|
name: "pasteImage",
|
|
5607
5607
|
addProseMirrorPlugins() {
|
|
@@ -5611,13 +5611,13 @@ const _s = /* @__PURE__ */ Z1(N0, [["render", W0]]), ze = Fe.create({
|
|
|
5611
5611
|
props: {
|
|
5612
5612
|
handlePaste: (n, t) => {
|
|
5613
5613
|
var a;
|
|
5614
|
-
const l = Array.from(((a = t.clipboardData) == null ? void 0 : a.items) || []).find((
|
|
5614
|
+
const l = Array.from(((a = t.clipboardData) == null ? void 0 : a.items) || []).find((c) => c.type.startsWith("image/"));
|
|
5615
5615
|
if (!l) return !1;
|
|
5616
5616
|
const s = l.getAsFile();
|
|
5617
5617
|
if (!s) return !1;
|
|
5618
5618
|
const r = new FileReader();
|
|
5619
5619
|
return r.onload = () => {
|
|
5620
|
-
const
|
|
5620
|
+
const c = r.result, { tr: h } = n.state, m = n.state.schema.nodes.image.create({ src: c });
|
|
5621
5621
|
n.dispatch(h.replaceSelectionWith(m));
|
|
5622
5622
|
}, r.readAsDataURL(s), !0;
|
|
5623
5623
|
}
|
|
@@ -5631,19 +5631,19 @@ const _s = /* @__PURE__ */ Z1(N0, [["render", W0]]), ze = Fe.create({
|
|
|
5631
5631
|
const r = e.doc.textBetween(0, e.doc.content.size, `
|
|
5632
5632
|
`, `
|
|
5633
5633
|
`), a = l;
|
|
5634
|
-
let
|
|
5635
|
-
for (;
|
|
5636
|
-
|
|
5634
|
+
let c = a - 1;
|
|
5635
|
+
for (; c >= 0 && /\w/.test(r[c]); )
|
|
5636
|
+
c--;
|
|
5637
5637
|
let h = a;
|
|
5638
5638
|
for (; h < r.length && /\w/.test(r[h]); )
|
|
5639
5639
|
h++;
|
|
5640
|
-
const m =
|
|
5640
|
+
const m = c + 1, C = h;
|
|
5641
5641
|
n.chain().focus().command(({ tr: u }) => (u.insertText(t, m, C), !0)).run();
|
|
5642
5642
|
};
|
|
5643
5643
|
function Q0(n, t, e) {
|
|
5644
5644
|
const l = y(null), s = () => {
|
|
5645
|
-
var a,
|
|
5646
|
-
const r = ((h = (
|
|
5645
|
+
var a, c, h;
|
|
5646
|
+
const r = ((h = (c = (a = n.value) == null ? void 0 : a.storage) == null ? void 0 : c[t]) == null ? void 0 : h[e]) ?? null;
|
|
5647
5647
|
l.value !== r && (l.value = r);
|
|
5648
5648
|
};
|
|
5649
5649
|
return a1(() => {
|
|
@@ -5661,12 +5661,12 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5661
5661
|
},
|
|
5662
5662
|
emits: ["cancel", "inserted", "updateTargets"],
|
|
5663
5663
|
setup(n, { emit: t }) {
|
|
5664
|
-
const e = n, l = t, s = y(), r = y(), a = y(""),
|
|
5664
|
+
const e = n, l = t, s = y(), r = y(), a = y(""), c = (H) => a.value = H, h = () => {
|
|
5665
5665
|
var H;
|
|
5666
|
-
|
|
5666
|
+
f.value ? A() : (H = C.value) == null || H.focus();
|
|
5667
5667
|
}, m = y(""), C = y(), u = (H) => m.value = H, g = () => {
|
|
5668
|
-
|
|
5669
|
-
},
|
|
5668
|
+
f.value && A();
|
|
5669
|
+
}, f = O(() => {
|
|
5670
5670
|
var H, B;
|
|
5671
5671
|
return !m.value || !a.value ? !1 : ((H = m.value) == null ? void 0 : H.trim().length) > 0 && ((B = a.value) == null ? void 0 : B.trim().length) > 0;
|
|
5672
5672
|
}), b = y(!1), v = ([H, B]) => {
|
|
@@ -5696,7 +5696,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5696
5696
|
}
|
|
5697
5697
|
(H = s.value) == null || H.close(), D();
|
|
5698
5698
|
};
|
|
5699
|
-
return (H, B) => (o(), V(
|
|
5699
|
+
return (H, B) => (o(), V(p(E1), {
|
|
5700
5700
|
ref_key: "popperRef",
|
|
5701
5701
|
ref: s,
|
|
5702
5702
|
placement: "top",
|
|
@@ -5711,7 +5711,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5711
5711
|
}, null, 8, ["active"])
|
|
5712
5712
|
]),
|
|
5713
5713
|
content: Z(({ close: I }) => [
|
|
5714
|
-
w(
|
|
5714
|
+
w(p(O1), { class: "p-4 flex flex-col gap-4" }, {
|
|
5715
5715
|
default: Z(() => [
|
|
5716
5716
|
B[2] || (B[2] = d("p", { class: "text-sm" }, " Insert link ", -1)),
|
|
5717
5717
|
d("section", q0, [
|
|
@@ -5719,12 +5719,12 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5719
5719
|
style: { "font-size": "11px" },
|
|
5720
5720
|
class: "text-secondary font-medium"
|
|
5721
5721
|
}, " Text to display ", -1)),
|
|
5722
|
-
w(
|
|
5722
|
+
w(p(z1), {
|
|
5723
5723
|
ref_key: "displayNameRef",
|
|
5724
5724
|
ref: r,
|
|
5725
5725
|
placeholder: "Text to display",
|
|
5726
5726
|
value: a.value,
|
|
5727
|
-
onChange:
|
|
5727
|
+
onChange: c,
|
|
5728
5728
|
onEnter: h
|
|
5729
5729
|
}, null, 8, ["value"])
|
|
5730
5730
|
]),
|
|
@@ -5733,7 +5733,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5733
5733
|
style: { "font-size": "11px" },
|
|
5734
5734
|
class: "text-secondary font-medium"
|
|
5735
5735
|
}, " Address ", -1)),
|
|
5736
|
-
w(
|
|
5736
|
+
w(p(z1), {
|
|
5737
5737
|
ref_key: "linkAddressRef",
|
|
5738
5738
|
ref: C,
|
|
5739
5739
|
placeholder: "Link to a web page",
|
|
@@ -5742,11 +5742,11 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5742
5742
|
onEnter: g
|
|
5743
5743
|
}, null, 8, ["value"])
|
|
5744
5744
|
]),
|
|
5745
|
-
w(
|
|
5745
|
+
w(p(Y1), {
|
|
5746
5746
|
"fill-container": "",
|
|
5747
5747
|
order: "confirm-last",
|
|
5748
5748
|
"confirm-label": "Insert",
|
|
5749
|
-
"confirm-disabled": !
|
|
5749
|
+
"confirm-disabled": !f.value,
|
|
5750
5750
|
onConfirm: A,
|
|
5751
5751
|
onCancel: (P) => {
|
|
5752
5752
|
D(), I();
|
|
@@ -5766,8 +5766,8 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5766
5766
|
},
|
|
5767
5767
|
setup(n) {
|
|
5768
5768
|
const t = y(), e = (s) => {
|
|
5769
|
-
var
|
|
5770
|
-
const r = (
|
|
5769
|
+
var c;
|
|
5770
|
+
const r = (c = s.target.files) == null ? void 0 : c[0];
|
|
5771
5771
|
if (!r) return;
|
|
5772
5772
|
const a = new FileReader();
|
|
5773
5773
|
a.onload = () => {
|
|
@@ -5796,7 +5796,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5796
5796
|
__name: "Dialog",
|
|
5797
5797
|
setup(n) {
|
|
5798
5798
|
return (t, e) => (o(), V(U1, { to: "#modals" }, [
|
|
5799
|
-
w(
|
|
5799
|
+
w(p(O1), { class: "w-96" }, {
|
|
5800
5800
|
default: Z(() => [
|
|
5801
5801
|
d("div", G0, [
|
|
5802
5802
|
E(t.$slots, "default")
|
|
@@ -5813,23 +5813,23 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5813
5813
|
},
|
|
5814
5814
|
emits: ["cancel", "inserted"],
|
|
5815
5815
|
setup(n, { emit: t }) {
|
|
5816
|
-
const e = n, l = t, s = y(null), r = y(null), a = y(),
|
|
5816
|
+
const e = n, l = t, s = y(null), r = y(null), a = y(), c = () => {
|
|
5817
5817
|
s.value = e.editor.getAttributes("link").href;
|
|
5818
5818
|
const { view: u, state: g } = e.editor;
|
|
5819
5819
|
if (s.value) {
|
|
5820
|
-
const
|
|
5820
|
+
const f = u.state.selection.ranges[0].$from.parent.content.content.filter(
|
|
5821
5821
|
(b) => b.marks.length > 0 && b.marks[0].attrs.href === s.value
|
|
5822
5822
|
);
|
|
5823
|
-
r.value =
|
|
5823
|
+
r.value = f[0].text;
|
|
5824
5824
|
} else {
|
|
5825
|
-
const { from:
|
|
5826
|
-
r.value = g.doc.textBetween(
|
|
5825
|
+
const { from: f, to: b } = u.state.selection;
|
|
5826
|
+
r.value = g.doc.textBetween(f, b, "");
|
|
5827
5827
|
}
|
|
5828
5828
|
};
|
|
5829
|
-
A1(() =>
|
|
5829
|
+
A1(() => c()), a1(() => a.value.focus());
|
|
5830
5830
|
const h = (u) => s.value = u, m = (u) => r.value = u, C = () => {
|
|
5831
5831
|
if (s.value && !s.value.includes("http") && (s.value = `https://${s.value}`), s.value) {
|
|
5832
|
-
e.editor.chain().focus().extendMarkRange("link").setLink({ href: s.value }).run();
|
|
5832
|
+
e.editor.chain().focus().extendMarkRange("link").setLink({ href: s.value, target: "_blank" }).run();
|
|
5833
5833
|
const u = e.editor.state.tr.insertText(r.value);
|
|
5834
5834
|
e.editor.view.dispatch(u), l("inserted");
|
|
5835
5835
|
}
|
|
@@ -5839,7 +5839,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5839
5839
|
g[3] || (g[3] = d("header", null, "Insert link", -1)),
|
|
5840
5840
|
d("section", J0, [
|
|
5841
5841
|
g[1] || (g[1] = d("div", { class: "text-xs text-secondary" }, " Text to display ", -1)),
|
|
5842
|
-
w(
|
|
5842
|
+
w(p(z1), {
|
|
5843
5843
|
ref_key: "inputRef",
|
|
5844
5844
|
ref: a,
|
|
5845
5845
|
placeholder: "Text to display",
|
|
@@ -5849,16 +5849,16 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5849
5849
|
]),
|
|
5850
5850
|
d("section", _0, [
|
|
5851
5851
|
g[2] || (g[2] = d("div", { class: "text-xs text-secondary" }, " Address ", -1)),
|
|
5852
|
-
w(
|
|
5852
|
+
w(p(z1), {
|
|
5853
5853
|
placeholder: "Link to a web page",
|
|
5854
5854
|
value: s.value || "",
|
|
5855
5855
|
onChange: h
|
|
5856
5856
|
}, null, 8, ["value"])
|
|
5857
5857
|
]),
|
|
5858
|
-
w(
|
|
5858
|
+
w(p(Y1), {
|
|
5859
5859
|
"confirm-label": "Insert",
|
|
5860
5860
|
onConfirm: C,
|
|
5861
|
-
onCancel: g[0] || (g[0] = (
|
|
5861
|
+
onCancel: g[0] || (g[0] = (f) => l("cancel"))
|
|
5862
5862
|
})
|
|
5863
5863
|
]),
|
|
5864
5864
|
_: 1
|
|
@@ -5872,14 +5872,14 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5872
5872
|
a1(() => s.value.focus());
|
|
5873
5873
|
const r = () => {
|
|
5874
5874
|
e("cancel"), l.value = null;
|
|
5875
|
-
}, a = (h) => l.value = h,
|
|
5875
|
+
}, a = (h) => l.value = h, c = () => {
|
|
5876
5876
|
e("insert", l.value), l.value = null;
|
|
5877
5877
|
};
|
|
5878
5878
|
return (h, m) => (o(), V(it, null, {
|
|
5879
5879
|
default: Z(() => [
|
|
5880
5880
|
m[0] || (m[0] = d("header", null, "Insert text", -1)),
|
|
5881
5881
|
d("section", to, [
|
|
5882
|
-
w(
|
|
5882
|
+
w(p(z1), {
|
|
5883
5883
|
ref_key: "inputRef",
|
|
5884
5884
|
ref: s,
|
|
5885
5885
|
placeholder: "Text to be inserted",
|
|
@@ -5888,9 +5888,9 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5888
5888
|
}, null, 8, ["value"])
|
|
5889
5889
|
]),
|
|
5890
5890
|
d("div", lo, [
|
|
5891
|
-
w(
|
|
5891
|
+
w(p(Y1), {
|
|
5892
5892
|
"confirm-label": "Insert",
|
|
5893
|
-
onConfirm:
|
|
5893
|
+
onConfirm: c,
|
|
5894
5894
|
onCancel: r
|
|
5895
5895
|
})
|
|
5896
5896
|
])
|
|
@@ -5928,7 +5928,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5928
5928
|
},
|
|
5929
5929
|
emits: ["blur", "change", "focus"],
|
|
5930
5930
|
setup(n, { expose: t, emit: e }) {
|
|
5931
|
-
const l = n, s = e, r = y(!1), a = y(!1),
|
|
5931
|
+
const l = n, s = e, r = y(!1), a = y(!1), c = y(!1), h = y(!1), m = y(), { disableClickOutside: C, enableClickOutside: u } = ce(() => a.value = !1), g = Je({
|
|
5932
5932
|
content: l.content,
|
|
5933
5933
|
extensions: [
|
|
5934
5934
|
Ne,
|
|
@@ -5960,7 +5960,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5960
5960
|
}
|
|
5961
5961
|
});
|
|
5962
5962
|
T1(() => C());
|
|
5963
|
-
const
|
|
5963
|
+
const f = O(() => l.showMenu !== void 0 ? l.showMenu : a.value || !l.autoHideMenu), b = O(() => a.value ? "bg-1 border-b border-default opacity-100" : "bg-2 border-b border-subtle opacity-50"), v = O(() => a.value ? "bg-2 border-t border-default opacity-100" : "bg-2 border-t border-subtle opacity-50"), L = ["start", "end", "all"], D = (S) => {
|
|
5964
5964
|
var G;
|
|
5965
5965
|
const R = L.includes(S) ? S : "end";
|
|
5966
5966
|
(G = g.value) == null || G.commands.focus(R);
|
|
@@ -5971,18 +5971,18 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5971
5971
|
var R;
|
|
5972
5972
|
return (R = g.value) == null ? void 0 : R.commands.insertContent(S);
|
|
5973
5973
|
}, e1 = (S) => {
|
|
5974
|
-
P(S),
|
|
5975
|
-
}, u1 = () => h.value = !0, Q = () =>
|
|
5976
|
-
return t({ blur: A, closeInsert: () =>
|
|
5974
|
+
P(S), c.value = !1;
|
|
5975
|
+
}, u1 = () => h.value = !0, Q = () => c.value = !0;
|
|
5976
|
+
return t({ blur: A, closeInsert: () => c.value = !1, focus: D, setContent: (S) => {
|
|
5977
5977
|
var R;
|
|
5978
5978
|
return (R = g.value) == null ? void 0 : R.commands.setContent(S);
|
|
5979
|
-
} }), (S, R) =>
|
|
5979
|
+
} }), (S, R) => p(g) ? (o(), i("section", {
|
|
5980
5980
|
key: 0,
|
|
5981
5981
|
ref_key: "editorRef",
|
|
5982
5982
|
ref: m,
|
|
5983
5983
|
class: "relative w-full"
|
|
5984
5984
|
}, [
|
|
5985
|
-
w(
|
|
5985
|
+
w(p(o1), {
|
|
5986
5986
|
col: "",
|
|
5987
5987
|
align: "stretch",
|
|
5988
5988
|
class: T(["relative rounded-lg font-normal focus-within:border-default", {
|
|
@@ -5994,13 +5994,13 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5994
5994
|
}])
|
|
5995
5995
|
}, {
|
|
5996
5996
|
default: Z(() => [
|
|
5997
|
-
S.headerLabel || S.headerIcon ? (o(), V(
|
|
5997
|
+
S.headerLabel || S.headerIcon ? (o(), V(p(o1), {
|
|
5998
5998
|
key: 0,
|
|
5999
5999
|
tag: "header",
|
|
6000
6000
|
class: T(["flex-0 h-10 px-3 gap-2 text-sm text-primary rounded-t-lg overflow-hidden", b.value])
|
|
6001
6001
|
}, {
|
|
6002
6002
|
default: Z(() => [
|
|
6003
|
-
S.headerIcon ? (o(), V(
|
|
6003
|
+
S.headerIcon ? (o(), V(p(t1), {
|
|
6004
6004
|
key: 0,
|
|
6005
6005
|
name: S.headerIcon
|
|
6006
6006
|
}, null, 8, ["name"])) : k("", !0),
|
|
@@ -6008,43 +6008,43 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6008
6008
|
]),
|
|
6009
6009
|
_: 1
|
|
6010
6010
|
}, 8, ["class"])) : k("", !0),
|
|
6011
|
-
w(
|
|
6011
|
+
w(p(o1), {
|
|
6012
6012
|
tag: "main",
|
|
6013
6013
|
align: "start",
|
|
6014
6014
|
fullwidth: ""
|
|
6015
6015
|
}, {
|
|
6016
6016
|
default: Z(() => [
|
|
6017
|
-
w(
|
|
6017
|
+
w(p(_e), {
|
|
6018
6018
|
class: T(["flex-1 overflow-y-auto rounded-t-lg focus:outline-hidden", {
|
|
6019
6019
|
[S.editorContentClasses]: !a.value,
|
|
6020
6020
|
[S.editorContentFocusClasses]: a.value
|
|
6021
6021
|
}]),
|
|
6022
|
-
editor:
|
|
6022
|
+
editor: p(g)
|
|
6023
6023
|
}, null, 8, ["class", "editor"])
|
|
6024
6024
|
]),
|
|
6025
6025
|
_: 1
|
|
6026
6026
|
}),
|
|
6027
|
-
|
|
6027
|
+
f.value ? (o(), i("nav", {
|
|
6028
6028
|
key: 1,
|
|
6029
6029
|
class: T(["flex-0 min-h-0 p-1 rounded-b-lg overflow-hidden", v.value])
|
|
6030
6030
|
}, [
|
|
6031
|
-
w(
|
|
6031
|
+
w(p(o1), { justify: "between" }, {
|
|
6032
6032
|
default: Z(() => [
|
|
6033
|
-
w(
|
|
6033
|
+
w(p(o1), { class: "gap-0.5" }, {
|
|
6034
6034
|
default: Z(() => [
|
|
6035
|
-
|
|
6035
|
+
p(re) ? (o(), i(M, { key: 0 }, [
|
|
6036
6036
|
w(c1, {
|
|
6037
6037
|
icon: "undo",
|
|
6038
6038
|
tooltip: "Undo",
|
|
6039
6039
|
onClick: R[0] || (R[0] = (G) => {
|
|
6040
|
-
|
|
6040
|
+
p(g).chain().focus().undo().run(), B();
|
|
6041
6041
|
})
|
|
6042
6042
|
}),
|
|
6043
6043
|
w(c1, {
|
|
6044
6044
|
icon: "redo",
|
|
6045
6045
|
tooltip: "Redo",
|
|
6046
6046
|
onClick: R[1] || (R[1] = (G) => {
|
|
6047
|
-
|
|
6047
|
+
p(g).chain().focus().redo().run(), B();
|
|
6048
6048
|
})
|
|
6049
6049
|
})
|
|
6050
6050
|
], 64)) : k("", !0),
|
|
@@ -6052,51 +6052,51 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6052
6052
|
w(c1, {
|
|
6053
6053
|
icon: "bold",
|
|
6054
6054
|
tooltip: "Bold",
|
|
6055
|
-
active:
|
|
6055
|
+
active: p(g).isActive("bold"),
|
|
6056
6056
|
onClick: R[2] || (R[2] = (G) => {
|
|
6057
|
-
|
|
6057
|
+
p(g).chain().focus().toggleBold().run(), B();
|
|
6058
6058
|
})
|
|
6059
6059
|
}, null, 8, ["active"]),
|
|
6060
6060
|
w(c1, {
|
|
6061
6061
|
icon: "italics",
|
|
6062
6062
|
tooltip: "Italic",
|
|
6063
|
-
active:
|
|
6063
|
+
active: p(g).isActive("italic"),
|
|
6064
6064
|
onClick: R[3] || (R[3] = (G) => {
|
|
6065
|
-
|
|
6065
|
+
p(g).chain().focus().toggleItalic().run(), B();
|
|
6066
6066
|
})
|
|
6067
6067
|
}, null, 8, ["active"]),
|
|
6068
6068
|
w(c1, {
|
|
6069
6069
|
icon: "underline",
|
|
6070
6070
|
tooltip: "Underline",
|
|
6071
|
-
active:
|
|
6071
|
+
active: p(g).isActive("underline"),
|
|
6072
6072
|
onClick: R[4] || (R[4] = (G) => {
|
|
6073
|
-
|
|
6073
|
+
p(g).chain().focus().toggleUnderline().run(), B();
|
|
6074
6074
|
})
|
|
6075
6075
|
}, null, 8, ["active"])
|
|
6076
6076
|
], 64)) : k("", !0),
|
|
6077
|
-
|
|
6077
|
+
p(ae) ? (o(), V(c1, {
|
|
6078
6078
|
key: 2,
|
|
6079
6079
|
icon: "square-solid",
|
|
6080
6080
|
tooltip: "Yellow highlight",
|
|
6081
|
-
active:
|
|
6081
|
+
active: p(g).isActive("highlight"),
|
|
6082
6082
|
onClick: R[5] || (R[5] = (G) => {
|
|
6083
|
-
|
|
6083
|
+
p(g).chain().focus().toggleHighlight().run(), B();
|
|
6084
6084
|
})
|
|
6085
6085
|
}, null, 8, ["active"])) : k("", !0),
|
|
6086
|
-
|
|
6086
|
+
p(se) ? (o(), V(c1, {
|
|
6087
6087
|
key: 3,
|
|
6088
6088
|
icon: "heading",
|
|
6089
6089
|
tooltip: "Heading",
|
|
6090
|
-
active:
|
|
6090
|
+
active: p(g).isActive("heading", { level: 1 }),
|
|
6091
6091
|
onClick: R[6] || (R[6] = (G) => {
|
|
6092
|
-
|
|
6092
|
+
p(g).chain().focus().toggleHeading({ level: 1 }).run(), B();
|
|
6093
6093
|
})
|
|
6094
6094
|
}, null, 8, ["active"])) : k("", !0),
|
|
6095
|
-
|
|
6095
|
+
p(ie) ? (o(), V(c1, {
|
|
6096
6096
|
key: 4,
|
|
6097
6097
|
icon: "link",
|
|
6098
6098
|
tooltip: "Add link",
|
|
6099
|
-
active:
|
|
6099
|
+
active: p(g).isActive("link"),
|
|
6100
6100
|
onClick: R[7] || (R[7] = (G) => {
|
|
6101
6101
|
u1(), B();
|
|
6102
6102
|
})
|
|
@@ -6105,33 +6105,33 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6105
6105
|
w(c1, {
|
|
6106
6106
|
icon: "bullet-list",
|
|
6107
6107
|
tooltip: "Bullet list",
|
|
6108
|
-
active:
|
|
6108
|
+
active: p(g).isActive("bulletList"),
|
|
6109
6109
|
onClick: R[8] || (R[8] = (G) => {
|
|
6110
|
-
|
|
6110
|
+
p(g).chain().focus().toggleBulletList().run(), B();
|
|
6111
6111
|
})
|
|
6112
6112
|
}, null, 8, ["active"]),
|
|
6113
6113
|
w(c1, {
|
|
6114
6114
|
icon: "numbered-list",
|
|
6115
6115
|
tooltip: "Numbered list",
|
|
6116
|
-
active:
|
|
6116
|
+
active: p(g).isActive("orderedList"),
|
|
6117
6117
|
onClick: R[9] || (R[9] = (G) => {
|
|
6118
|
-
|
|
6118
|
+
p(g).chain().focus().toggleOrderedList().run(), B();
|
|
6119
6119
|
})
|
|
6120
6120
|
}, null, 8, ["active"]),
|
|
6121
6121
|
w(c1, {
|
|
6122
6122
|
icon: "indent-right",
|
|
6123
6123
|
tooltip: "Indent right",
|
|
6124
|
-
disabled: !
|
|
6124
|
+
disabled: !p(g).can().sinkListItem("listItem"),
|
|
6125
6125
|
onClick: R[10] || (R[10] = (G) => {
|
|
6126
|
-
|
|
6126
|
+
p(g).chain().focus().sinkListItem("listItem").run(), B();
|
|
6127
6127
|
})
|
|
6128
6128
|
}, null, 8, ["disabled"]),
|
|
6129
6129
|
w(c1, {
|
|
6130
6130
|
icon: "indent-left",
|
|
6131
6131
|
tooltip: "Indent left",
|
|
6132
|
-
disabled: !
|
|
6132
|
+
disabled: !p(g).can().liftListItem("listItem"),
|
|
6133
6133
|
onClick: R[11] || (R[11] = (G) => {
|
|
6134
|
-
|
|
6134
|
+
p(g).chain().focus().liftListItem("listItem").run(), B();
|
|
6135
6135
|
})
|
|
6136
6136
|
}, null, 8, ["disabled"])
|
|
6137
6137
|
], 64)) : k("", !0),
|
|
@@ -6140,7 +6140,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6140
6140
|
highlight: "",
|
|
6141
6141
|
icon: S.insertIcon,
|
|
6142
6142
|
tooltip: S.insertTooltip,
|
|
6143
|
-
active:
|
|
6143
|
+
active: p(g).isActive("insert"),
|
|
6144
6144
|
onClick: R[12] || (R[12] = (G) => {
|
|
6145
6145
|
Q(), B();
|
|
6146
6146
|
})
|
|
@@ -6157,15 +6157,15 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6157
6157
|
], 2)) : k("", !0),
|
|
6158
6158
|
h.value ? (o(), V(eo, {
|
|
6159
6159
|
key: 2,
|
|
6160
|
-
editor:
|
|
6160
|
+
editor: p(g),
|
|
6161
6161
|
onInserted: I,
|
|
6162
6162
|
onCancel: H
|
|
6163
6163
|
}, null, 8, ["editor"])) : k("", !0),
|
|
6164
|
-
|
|
6164
|
+
c.value ? (o(), i(M, { key: 3 }, [
|
|
6165
6165
|
S.$slots.insert ? E(S.$slots, "insert", { key: 0 }) : (o(), V(no, {
|
|
6166
6166
|
key: 1,
|
|
6167
6167
|
onInsert: e1,
|
|
6168
|
-
onCancel: R[13] || (R[13] = (G) =>
|
|
6168
|
+
onCancel: R[13] || (R[13] = (G) => c.value = !1)
|
|
6169
6169
|
}))
|
|
6170
6170
|
], 64)) : k("", !0)
|
|
6171
6171
|
]),
|
|
@@ -6209,15 +6209,15 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6209
6209
|
}), s = (r, a) => {
|
|
6210
6210
|
if (!r || !a) return [];
|
|
6211
6211
|
if (typeof r != "string" || typeof a != "string") return [];
|
|
6212
|
-
const
|
|
6212
|
+
const c = r.toLowerCase(), h = a.toLowerCase(), m = [];
|
|
6213
6213
|
let C = -1;
|
|
6214
6214
|
do
|
|
6215
|
-
C =
|
|
6215
|
+
C = c.indexOf(h, C + 1), C !== -1 && m.push(C, C + h.length);
|
|
6216
6216
|
while (C > -1);
|
|
6217
6217
|
const u = [];
|
|
6218
6218
|
let g = 0;
|
|
6219
|
-
for (const
|
|
6220
|
-
u.push(r.substring(g,
|
|
6219
|
+
for (const f of m)
|
|
6220
|
+
u.push(r.substring(g, f)), g = f;
|
|
6221
6221
|
return u.push(r.substring(m[m.length - 1], r.length)), u;
|
|
6222
6222
|
};
|
|
6223
6223
|
return A1(() => {
|
|
@@ -6230,10 +6230,10 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6230
6230
|
), (r, a) => (o(), i("span", ao, [
|
|
6231
6231
|
e.value.length === 0 ? (o(), i(M, { key: 0 }, [
|
|
6232
6232
|
Oe(K(r.value), 1)
|
|
6233
|
-
], 64)) : (o(!0), i(M, { key: 1 }, m1(e.value, (
|
|
6234
|
-
key: `${
|
|
6233
|
+
], 64)) : (o(!0), i(M, { key: 1 }, m1(e.value, (c, h) => (o(), i(M, {
|
|
6234
|
+
key: `${c}_${h}`
|
|
6235
6235
|
}, [
|
|
6236
|
-
r.highlight &&
|
|
6236
|
+
r.highlight && c.toLowerCase() === r.highlight.toLowerCase() ? (o(), i("span", {
|
|
6237
6237
|
key: 0,
|
|
6238
6238
|
class: T(["relative z-0 rounded", [
|
|
6239
6239
|
{
|
|
@@ -6243,17 +6243,17 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6243
6243
|
l.value,
|
|
6244
6244
|
r.textColorClass
|
|
6245
6245
|
]])
|
|
6246
|
-
}, K(
|
|
6246
|
+
}, K(c), 3)) : (o(), i("span", ro, K(c), 1))
|
|
6247
6247
|
], 64))), 128))
|
|
6248
6248
|
]));
|
|
6249
6249
|
}
|
|
6250
6250
|
}), io = {}, uo = { class: "ProseMirror" };
|
|
6251
|
-
function
|
|
6251
|
+
function po(n, t) {
|
|
6252
6252
|
return o(), i("section", uo, [
|
|
6253
6253
|
E(n.$slots, "default")
|
|
6254
6254
|
]);
|
|
6255
6255
|
}
|
|
6256
|
-
const n4 = /* @__PURE__ */ Z1(io, [["render",
|
|
6256
|
+
const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
6257
6257
|
__name: "TiptapEditor",
|
|
6258
6258
|
props: {
|
|
6259
6259
|
content: {},
|
|
@@ -6312,13 +6312,14 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6312
6312
|
}), r1(
|
|
6313
6313
|
() => n.placeholder,
|
|
6314
6314
|
(C) => {
|
|
6315
|
-
var
|
|
6316
|
-
|
|
6315
|
+
var g, f;
|
|
6316
|
+
const u = (g = r.value) == null ? void 0 : g.extensionManager.extensions.find((b) => b.name === "placeholder");
|
|
6317
|
+
u && (u.options.placeholder = C, (f = r.value) == null || f.view.dispatch(r.value.state.tr));
|
|
6317
6318
|
}
|
|
6318
6319
|
);
|
|
6319
|
-
const
|
|
6320
|
+
const c = ["start", "end", "all"], h = (C) => {
|
|
6320
6321
|
var g;
|
|
6321
|
-
const u =
|
|
6322
|
+
const u = c.includes(C) ? C : "end";
|
|
6322
6323
|
(g = r.value) == null || g.commands.focus(u);
|
|
6323
6324
|
};
|
|
6324
6325
|
return t({
|
|
@@ -6348,13 +6349,13 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6348
6349
|
toggleOrderedList: () => r.value.chain().focus().toggleOrderedList().run(),
|
|
6349
6350
|
toggleUnderline: () => r.value.chain().focus().toggleUnderline().run(),
|
|
6350
6351
|
undo: () => r.value.chain().focus().undo().run()
|
|
6351
|
-
}), (C, u) =>
|
|
6352
|
+
}), (C, u) => p(r) ? (o(), V(p(_e), {
|
|
6352
6353
|
key: 0,
|
|
6353
6354
|
class: "flex-1 focus:outline-hidden",
|
|
6354
|
-
editor:
|
|
6355
|
+
editor: p(r)
|
|
6355
6356
|
}, null, 8, ["editor"])) : k("", !0);
|
|
6356
6357
|
}
|
|
6357
|
-
}),
|
|
6358
|
+
}), fo = ["disabled"], co = { key: 1 }, s4 = /* @__PURE__ */ $({
|
|
6358
6359
|
__name: "ToggleButton",
|
|
6359
6360
|
props: {
|
|
6360
6361
|
active: { type: Boolean },
|
|
@@ -6388,10 +6389,10 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6388
6389
|
"dark:text-slate-200 dark:hover:text-slate-100 dark:focus-visible:text-slate-100 dark:active:text-white"
|
|
6389
6390
|
]
|
|
6390
6391
|
), C.filter((u) => u).join(" ");
|
|
6391
|
-
}),
|
|
6392
|
+
}), c = O(() => l.disabled ? { background: "hsl(0 0% 90%)" } : {}), h = (C) => {
|
|
6392
6393
|
l.stopPropagation && C.stopPropagation(), l.disabled || s("click");
|
|
6393
6394
|
};
|
|
6394
|
-
return t({ focus: () => r.value.focus() }), (C, u) => C.tooltip ? (o(), V(
|
|
6395
|
+
return t({ focus: () => r.value.focus() }), (C, u) => C.tooltip ? (o(), V(p(te), {
|
|
6395
6396
|
key: 0,
|
|
6396
6397
|
hover: "",
|
|
6397
6398
|
text: C.tooltip,
|
|
@@ -6404,16 +6405,16 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6404
6405
|
ref: r,
|
|
6405
6406
|
class: T(["z-0 relative inline-flex items-center justify-center gap-1 h-6 leading-none text-sm border focus:z-10 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-black dark:focus-visible:outline-white", a.value]),
|
|
6406
6407
|
disabled: C.disabled,
|
|
6407
|
-
style: n1(
|
|
6408
|
+
style: n1(c.value),
|
|
6408
6409
|
onClick: h,
|
|
6409
6410
|
onBlur: u[0] || (u[0] = (g) => s("blur"))
|
|
6410
6411
|
}, [
|
|
6411
|
-
C.icon ? (o(), V(
|
|
6412
|
+
C.icon ? (o(), V(p(t1), {
|
|
6412
6413
|
key: 0,
|
|
6413
6414
|
name: C.icon
|
|
6414
6415
|
}, null, 8, ["name"])) : k("", !0),
|
|
6415
6416
|
C.label ? (o(), i("div", co, K(C.label), 1)) : k("", !0)
|
|
6416
|
-
], 46,
|
|
6417
|
+
], 46, fo)
|
|
6417
6418
|
]),
|
|
6418
6419
|
_: 1
|
|
6419
6420
|
}, 8, ["text", "delay", "placement"])) : k("", !0);
|
|
@@ -6470,9 +6471,9 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6470
6471
|
treeIsOpen: s,
|
|
6471
6472
|
actions: r
|
|
6472
6473
|
}) => {
|
|
6473
|
-
const a = /* @__PURE__ */ new Map(),
|
|
6474
|
-
if (!
|
|
6475
|
-
const h = n.filter((u) => u[t] !==
|
|
6474
|
+
const a = /* @__PURE__ */ new Map(), c = n.find((u) => u[e] === null);
|
|
6475
|
+
if (!c) throw new Error("Cannot construct tree, since no root item exists");
|
|
6476
|
+
const h = n.filter((u) => u[t] !== c[t]);
|
|
6476
6477
|
for (const u of h)
|
|
6477
6478
|
a.set(u[t], {
|
|
6478
6479
|
id: u[t],
|
|
@@ -6483,10 +6484,10 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6483
6484
|
children: []
|
|
6484
6485
|
});
|
|
6485
6486
|
const m = {
|
|
6486
|
-
id:
|
|
6487
|
-
label:
|
|
6487
|
+
id: c[t],
|
|
6488
|
+
label: c[l],
|
|
6488
6489
|
open: s,
|
|
6489
|
-
data:
|
|
6490
|
+
data: c,
|
|
6490
6491
|
actions: r,
|
|
6491
6492
|
children: []
|
|
6492
6493
|
}, C = [m];
|
|
@@ -6494,10 +6495,10 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6494
6495
|
const u = C.shift();
|
|
6495
6496
|
if (!u) break;
|
|
6496
6497
|
let g = !1;
|
|
6497
|
-
for (let
|
|
6498
|
-
if (h[
|
|
6499
|
-
const b = a.get(h[
|
|
6500
|
-
b && ((u.children ?? (u.children = [])).push(b), C.push(b)), h.splice(
|
|
6498
|
+
for (let f = h.length - 1; f >= 0; f--)
|
|
6499
|
+
if (h[f][e] === u.id) {
|
|
6500
|
+
const b = a.get(h[f][t]);
|
|
6501
|
+
b && ((u.children ?? (u.children = [])).push(b), C.push(b)), h.splice(f, 1), g = !0;
|
|
6501
6502
|
}
|
|
6502
6503
|
if (C.length === 0 && !g && h.length > 0)
|
|
6503
6504
|
throw new Error(
|
|
@@ -6519,14 +6520,14 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6519
6520
|
var C;
|
|
6520
6521
|
a([s.value.$el]), (C = l.value) == null || C.focus();
|
|
6521
6522
|
}), T1(() => r());
|
|
6522
|
-
const
|
|
6523
|
+
const c = (C) => {
|
|
6523
6524
|
C.target && e("change", C.target.value);
|
|
6524
6525
|
}, h = (C) => {
|
|
6525
6526
|
C.stopPropagation(), C.preventDefault(), e("save");
|
|
6526
6527
|
}, m = (C) => {
|
|
6527
6528
|
C.stopImmediatePropagation(), C.stopPropagation(), C.preventDefault(), e("cancel");
|
|
6528
6529
|
};
|
|
6529
|
-
return (C, u) => (o(), V(
|
|
6530
|
+
return (C, u) => (o(), V(p(o1), {
|
|
6530
6531
|
ref_key: "container",
|
|
6531
6532
|
ref: s,
|
|
6532
6533
|
class: "h-8 gap-1 pr-1",
|
|
@@ -6550,18 +6551,18 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6550
6551
|
],
|
|
6551
6552
|
onKeyup: u[1] || (u[1] = _(F(() => {
|
|
6552
6553
|
}, ["stop", "prevent"]), ["enter"])),
|
|
6553
|
-
onInput: F(
|
|
6554
|
+
onInput: F(c, ["stop", "prevent"])
|
|
6554
6555
|
}, null, 40, mo)
|
|
6555
6556
|
]),
|
|
6556
6557
|
d("aside", go, [
|
|
6557
|
-
w(
|
|
6558
|
+
w(p(j), {
|
|
6558
6559
|
small: "",
|
|
6559
6560
|
icon: "check",
|
|
6560
6561
|
variant: "outlineSubtle",
|
|
6561
6562
|
loading: C.saving,
|
|
6562
6563
|
onClick: u[2] || (u[2] = (g) => e("save"))
|
|
6563
6564
|
}, null, 8, ["loading"]),
|
|
6564
|
-
w(
|
|
6565
|
+
w(p(j), {
|
|
6565
6566
|
small: "",
|
|
6566
6567
|
icon: "close",
|
|
6567
6568
|
variant: "outlineSubtle",
|
|
@@ -6578,7 +6579,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6578
6579
|
}, yo = { class: "text-xs truncate" }, Ho = {
|
|
6579
6580
|
key: 0,
|
|
6580
6581
|
class: "relative"
|
|
6581
|
-
},
|
|
6582
|
+
}, p4 = /* @__PURE__ */ $({
|
|
6582
6583
|
__name: "TreeList",
|
|
6583
6584
|
props: {
|
|
6584
6585
|
indentationAmount: { default: 20 },
|
|
@@ -6593,7 +6594,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6593
6594
|
r1(() => s.value, (v, L) => {
|
|
6594
6595
|
!v && L && a.value && (a.value = !1), r.value = "";
|
|
6595
6596
|
});
|
|
6596
|
-
const r = y(""), a = y(!1),
|
|
6597
|
+
const r = y(""), a = y(!1), c = () => {
|
|
6597
6598
|
e("save", r.value), a.value = !0;
|
|
6598
6599
|
}, h = () => {
|
|
6599
6600
|
e("cancel-new-child"), r.value = "";
|
|
@@ -6603,7 +6604,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6603
6604
|
}, g = (v) => {
|
|
6604
6605
|
const L = [n.node, ...v];
|
|
6605
6606
|
e("key", { path: L, targetNode: L[L.length - 1] });
|
|
6606
|
-
},
|
|
6607
|
+
}, f = (v) => {
|
|
6607
6608
|
e("select", { path: [n.node, ...v], targetNode: [n.node, ...v][[n.node, ...v].length - 1] });
|
|
6608
6609
|
}, b = (v) => {
|
|
6609
6610
|
e("toggle", { path: [n.node, ...v], targetNode: [n.node, ...v][[n.node, ...v].length - 1] });
|
|
@@ -6612,7 +6613,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6612
6613
|
var A;
|
|
6613
6614
|
const D = Mt("TreeList", !0);
|
|
6614
6615
|
return o(), i(M, null, [
|
|
6615
|
-
w(
|
|
6616
|
+
w(p(o1), {
|
|
6616
6617
|
tag: "button",
|
|
6617
6618
|
justify: "between",
|
|
6618
6619
|
class: T(["w-full h-8 pr-1 gap-0 border-b border-default cursor-pointer", {
|
|
@@ -6639,7 +6640,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6639
6640
|
]
|
|
6640
6641
|
}, {
|
|
6641
6642
|
default: Z(() => [
|
|
6642
|
-
w(
|
|
6643
|
+
w(p(o1), { class: "flex-1 min-w-0 pl-1 gap-1" }, {
|
|
6643
6644
|
default: Z(() => {
|
|
6644
6645
|
var H;
|
|
6645
6646
|
return [
|
|
@@ -6648,7 +6649,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6648
6649
|
class: "w-4 h-4 flex items-center justify-center rounded cursor-pointer",
|
|
6649
6650
|
onClick: L[0] || (L[0] = F((B) => e("toggle", { path: [v.node], targetNode: v.node }), ["stop", "prevent"]))
|
|
6650
6651
|
}, [
|
|
6651
|
-
w(
|
|
6652
|
+
w(p(t1), {
|
|
6652
6653
|
name: v.node.open ? "chevron-down-small" : "chevron-right-small"
|
|
6653
6654
|
}, null, 8, ["name"])
|
|
6654
6655
|
])) : (o(), i("div", Lo)),
|
|
@@ -6657,18 +6658,18 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6657
6658
|
}),
|
|
6658
6659
|
_: 1
|
|
6659
6660
|
}),
|
|
6660
|
-
v.node.actions.length > 0 ? (o(), V(
|
|
6661
|
+
v.node.actions.length > 0 ? (o(), V(p(o1), {
|
|
6661
6662
|
key: 0,
|
|
6662
6663
|
class: "flex-none"
|
|
6663
6664
|
}, {
|
|
6664
6665
|
default: Z(() => [
|
|
6665
|
-
w(
|
|
6666
|
+
w(p(rt), {
|
|
6666
6667
|
options: v.node.actions,
|
|
6667
6668
|
placement: "bottom-end",
|
|
6668
6669
|
onSelect: C
|
|
6669
6670
|
}, {
|
|
6670
6671
|
trigger: Z(() => [
|
|
6671
|
-
w(
|
|
6672
|
+
w(p(j), {
|
|
6672
6673
|
icon: "options",
|
|
6673
6674
|
small: "",
|
|
6674
6675
|
variant: "textSubtle"
|
|
@@ -6689,7 +6690,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6689
6690
|
indentation: (v.level + 1) * v.indentationAmount,
|
|
6690
6691
|
saving: a.value,
|
|
6691
6692
|
onChange: L[10] || (L[10] = (H) => r.value = H),
|
|
6692
|
-
onSave:
|
|
6693
|
+
onSave: c,
|
|
6693
6694
|
onCancel: h
|
|
6694
6695
|
}, null, 8, ["value", "indentation", "saving"])) : k("", !0),
|
|
6695
6696
|
(o(!0), i(M, null, m1(v.node.children, (H) => (o(), V(D, {
|
|
@@ -6703,14 +6704,14 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6703
6704
|
onCancelNewChild: L[11] || (L[11] = (B) => e("cancel-new-child")),
|
|
6704
6705
|
onSave: L[12] || (L[12] = (B) => e("save", B)),
|
|
6705
6706
|
onKey: L[13] || (L[13] = (B) => g(B.path)),
|
|
6706
|
-
onSelect: L[14] || (L[14] = (B) =>
|
|
6707
|
+
onSelect: L[14] || (L[14] = (B) => f(B.path)),
|
|
6707
6708
|
onToggle: L[15] || (L[15] = (B) => b(B.path))
|
|
6708
6709
|
}, null, 8, ["indentation-amount", "level", "node", "create-new-path", "selection"]))), 128))
|
|
6709
6710
|
])) : k("", !0)
|
|
6710
6711
|
], 64);
|
|
6711
6712
|
};
|
|
6712
6713
|
}
|
|
6713
|
-
}),
|
|
6714
|
+
}), f4 = ["fill", "outline", "outlineSubtle", "text", "textSubtle", "destructive", "outlineDestructive"], c4 = ["default", "primary", "error"], C4 = ["default", "circle"], v4 = ["horizontal", "vertical"], Vo = ["start", "center", "end", "stretch"], h4 = [...Vo, "between", "around", "evenly"], m4 = ["default", "blurred"], g4 = ["click", "hover", "focus", "manual"], b4 = ["Ok", "Not Ok", "Not Applicable"], L4 = [
|
|
6714
6715
|
"admin",
|
|
6715
6716
|
"agent",
|
|
6716
6717
|
"agent-flow",
|
|
@@ -6898,15 +6899,15 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6898
6899
|
if (t.heightClass === "h-auto") {
|
|
6899
6900
|
if (e.value) {
|
|
6900
6901
|
a = 0;
|
|
6901
|
-
for (const
|
|
6902
|
-
a +=
|
|
6902
|
+
for (const c of e.value.children)
|
|
6903
|
+
a += c.offsetHeight;
|
|
6903
6904
|
a = `${a}px`;
|
|
6904
6905
|
}
|
|
6905
6906
|
return { height: a };
|
|
6906
6907
|
}
|
|
6907
6908
|
return {};
|
|
6908
6909
|
});
|
|
6909
|
-
return (a,
|
|
6910
|
+
return (a, c) => (o(), V(D1(a.type), {
|
|
6910
6911
|
ref_key: "containerRef",
|
|
6911
6912
|
ref: e,
|
|
6912
6913
|
class: T(["relative flex-none w-full overflow-hidden transition-height duration-500 ease-in-out", s.value]),
|
|
@@ -6929,7 +6930,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6929
6930
|
},
|
|
6930
6931
|
setup(n) {
|
|
6931
6932
|
const t = n, e = [t.widthClass, t.windowFrame ? "px-8 py-6 bg-light shadow-sm-xl rounded-lg" : ""];
|
|
6932
|
-
return (l, s) => (o(), V(
|
|
6933
|
+
return (l, s) => (o(), V(p(o1), {
|
|
6933
6934
|
col: "",
|
|
6934
6935
|
align: "stretch",
|
|
6935
6936
|
justify: "start",
|
|
@@ -6947,7 +6948,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6947
6948
|
]),
|
|
6948
6949
|
_: 3
|
|
6949
6950
|
}, 8, ["border", "height-class"])) : k("", !0),
|
|
6950
|
-
w(
|
|
6951
|
+
w(p(X1), {
|
|
6951
6952
|
"window-resize": "",
|
|
6952
6953
|
"wrap-class": "h-full"
|
|
6953
6954
|
}, {
|
|
@@ -6986,14 +6987,14 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
6986
6987
|
E(s.$slots, "default")
|
|
6987
6988
|
], 512));
|
|
6988
6989
|
}
|
|
6989
|
-
}), q1 = "+", ut = "[",
|
|
6990
|
+
}), q1 = "+", ut = "[", pt = "]", y1 = ":", ko = ["asc", "desc"], H4 = ["=", "!=", "<", "<=", ">", ">="], V4 = ["eq", "ne", "lt", "le", "gt", "ge"], wo = {
|
|
6990
6991
|
eq: "=",
|
|
6991
6992
|
ne: "!=",
|
|
6992
6993
|
lt: "<",
|
|
6993
6994
|
le: "<=",
|
|
6994
6995
|
gt: ">",
|
|
6995
6996
|
ge: ">="
|
|
6996
|
-
},
|
|
6997
|
+
}, ft = {
|
|
6997
6998
|
"=": "eq",
|
|
6998
6999
|
"!=": "ne",
|
|
6999
7000
|
"<": "lt",
|
|
@@ -7025,7 +7026,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
7025
7026
|
content: ye(e, t),
|
|
7026
7027
|
value: n[e]
|
|
7027
7028
|
} : null;
|
|
7028
|
-
}, ye = (n, t) => n.replace(t + be, "").replace(Le, ""), Mo = (n, t) => Object.keys(n).reduce((e, l) => (le(l, t) || (e[l] = n[l]), e), {}), Ct = (n, t, e) => Object.keys(n).reduce((l, s) => (le(s, t) ? e !== ye(s, t) && (l[s] = n[s]) : l[s] = n[s], l), {}), vt = "sort", ht = (n, t) => `${n}${y1}${t}`, Zo = (n, t) => `${n}${y1}${t}`, mt = (n, t, e) => `${n}${ut}${ht(t, e)}${
|
|
7029
|
+
}, ye = (n, t) => n.replace(t + be, "").replace(Le, ""), Mo = (n, t) => Object.keys(n).reduce((e, l) => (le(l, t) || (e[l] = n[l]), e), {}), Ct = (n, t, e) => Object.keys(n).reduce((l, s) => (le(s, t) ? e !== ye(s, t) && (l[s] = n[s]) : l[s] = n[s], l), {}), vt = "sort", ht = (n, t) => `${n}${y1}${t}`, Zo = (n, t) => `${n}${y1}${t}`, mt = (n, t, e) => `${n}${ut}${ht(t, e)}${pt}`, $o = (n, t) => `${n}${ut}${Zo("sort", t)}${pt}`, Do = (n) => {
|
|
7029
7030
|
if (!n.includes(y1))
|
|
7030
7031
|
throw new Error(`Error in filter syntax: Filter must contain a filter separator "${y1}"`);
|
|
7031
7032
|
if (!n.indexOf(y1) || n.indexOf(y1) === n.length - 1)
|
|
@@ -7037,39 +7038,39 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
7037
7038
|
return t === vt && ko.includes(e);
|
|
7038
7039
|
}, bt = (n, t) => {
|
|
7039
7040
|
const e = ct(n, t), [l] = e.filter((r) => gt(r)).map((r) => {
|
|
7040
|
-
const [a,
|
|
7041
|
+
const [a, c] = r.content.split(y1);
|
|
7041
7042
|
return {
|
|
7042
|
-
direction:
|
|
7043
|
+
direction: c,
|
|
7043
7044
|
field: r.value
|
|
7044
7045
|
};
|
|
7045
7046
|
});
|
|
7046
7047
|
return e.map((r) => {
|
|
7047
|
-
const { id: a, operator:
|
|
7048
|
+
const { id: a, operator: c } = Do(r.content);
|
|
7048
7049
|
return {
|
|
7049
7050
|
id: a,
|
|
7050
|
-
operator: wo[
|
|
7051
|
-
value: n[mt(t, a,
|
|
7051
|
+
operator: wo[c],
|
|
7052
|
+
value: n[mt(t, a, c)]
|
|
7052
7053
|
};
|
|
7053
7054
|
}).reduce((r, a) => (a.id === vt && a.operator === void 0 ? r.sorting = l : r.filters.push(a), r), { sorting: void 0, filters: [] });
|
|
7054
7055
|
}, To = (n, t, e) => bt(n, t).filters.find((l) => l.id === e), Bo = (n, t) => Mo(n, t), So = (n, t, e) => {
|
|
7055
7056
|
const l = To(n, t, e);
|
|
7056
7057
|
if (!l) return n;
|
|
7057
|
-
const s = ht(l.id,
|
|
7058
|
+
const s = ht(l.id, ft[l.operator]);
|
|
7058
7059
|
return Ct(n, t, s);
|
|
7059
7060
|
}, zo = (n, t) => {
|
|
7060
7061
|
const e = ct(n, t).find((l) => gt(l));
|
|
7061
7062
|
return e ? Ct(n, t, e.content) : n;
|
|
7062
7063
|
}, Ao = (n, t, e, l, s) => {
|
|
7063
7064
|
const r = { ...n };
|
|
7064
|
-
return r[mt(t, e,
|
|
7065
|
+
return r[mt(t, e, ft[l])] = s, r;
|
|
7065
7066
|
}, Ro = (n, t, e, l) => {
|
|
7066
7067
|
const s = { ...n };
|
|
7067
7068
|
return s[$o(t, e)] = l, s;
|
|
7068
7069
|
}, $4 = (n, t) => {
|
|
7069
|
-
const e = J1(), l =
|
|
7070
|
+
const e = J1(), l = pe();
|
|
7070
7071
|
if (!Ie())
|
|
7071
7072
|
throw new Error("useEmit must be called within a setup function.");
|
|
7072
|
-
const r = () => m(null), a = O(() => !!t.value && !!t.value.split(q1).length),
|
|
7073
|
+
const r = () => m(null), a = O(() => !!t.value && !!t.value.split(q1).length), c = O(() => t.value ? t.value.split(q1) : []), h = (C) => {
|
|
7073
7074
|
if (C.length === 0) {
|
|
7074
7075
|
r();
|
|
7075
7076
|
return;
|
|
@@ -7080,29 +7081,29 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
7080
7081
|
let u = So(e.query, n, t.id);
|
|
7081
7082
|
C && (u = Ao(u, n, t.id, t.operator, C)), await l.push({ query: u });
|
|
7082
7083
|
};
|
|
7083
|
-
return { clearFilter: r, isActive: a, updateFilter: h, values:
|
|
7084
|
+
return { clearFilter: r, isActive: a, updateFilter: h, values: c };
|
|
7084
7085
|
}, D4 = ({ groupId: n, filters: t, sorting: e, items: l, remoteFilterMethod: s }) => {
|
|
7085
|
-
const r = J1(), a =
|
|
7086
|
+
const r = J1(), a = pe();
|
|
7086
7087
|
a1(() => v(r.query)), xe((A) => v(A.query));
|
|
7087
|
-
const
|
|
7088
|
+
const c = y(!1), h = y([]), m = y(t), C = O(() => m.value.filter((A) => !!A.value)), u = O(() => !!C.value.length), g = y(e.default), f = async () => {
|
|
7088
7089
|
if (s && l)
|
|
7089
7090
|
throw new Error("You should only pass either 'items' (frontend filtering) or 'remoteFilterMethod' (backend filtering). You passed both.");
|
|
7090
7091
|
if (!s && !l)
|
|
7091
7092
|
throw new Error("Filters have to have either items or remoteFilterMethod to work. None was provided.");
|
|
7092
7093
|
if (s)
|
|
7093
7094
|
try {
|
|
7094
|
-
|
|
7095
|
+
c.value = !0;
|
|
7095
7096
|
const A = await s(g.value, C.value);
|
|
7096
|
-
h.value = A,
|
|
7097
|
+
h.value = A, c.value = !1;
|
|
7097
7098
|
} catch {
|
|
7098
|
-
|
|
7099
|
+
c.value = !1;
|
|
7099
7100
|
}
|
|
7100
7101
|
else l && (h.value = e.sortingMethod ? e.sortingMethod(
|
|
7101
7102
|
g.value,
|
|
7102
7103
|
l.value.filter((A) => C.value.every((H) => H.execute(H.value, H.operator, A)))
|
|
7103
7104
|
) : l.value.filter((A) => C.value.every((H) => H.execute(H.value, H.operator, A))));
|
|
7104
7105
|
};
|
|
7105
|
-
r1(l ? [g, C, l] : [g, C], () =>
|
|
7106
|
+
r1(l ? [g, C, l] : [g, C], () => f(), { immediate: !0, deep: !0 });
|
|
7106
7107
|
const v = (A) => {
|
|
7107
7108
|
const { filters: H, sorting: B } = bt(A, n);
|
|
7108
7109
|
g.value = B ? D(B) : e.default, m.value.forEach((I) => {
|
|
@@ -7122,15 +7123,15 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", fo]]), o4 = /* @__PURE__ */ $({
|
|
|
7122
7123
|
availableFilters: m,
|
|
7123
7124
|
filteringActive: u,
|
|
7124
7125
|
filteredItems: h,
|
|
7125
|
-
loadingItems:
|
|
7126
|
-
applyFilters:
|
|
7126
|
+
loadingItems: c,
|
|
7127
|
+
applyFilters: f,
|
|
7127
7128
|
clearFilters: L
|
|
7128
7129
|
};
|
|
7129
7130
|
}, T4 = (n) => {
|
|
7130
7131
|
const t = J1();
|
|
7131
7132
|
a1(() => n(t.query)), xe((e) => n(e.query));
|
|
7132
7133
|
}, B4 = (n) => {
|
|
7133
|
-
const t = J1(), e =
|
|
7134
|
+
const t = J1(), e = pe();
|
|
7134
7135
|
if (!Ie())
|
|
7135
7136
|
throw new Error("useEmit must be called within a setup function.");
|
|
7136
7137
|
return { updateSorting: async (r) => {
|
|
@@ -7154,8 +7155,8 @@ function z4(n, t) {
|
|
|
7154
7155
|
const u = new Date(r).getTime(), g = new Date(a).getTime();
|
|
7155
7156
|
if (!Number.isNaN(u) && !Number.isNaN(g))
|
|
7156
7157
|
return u - g;
|
|
7157
|
-
const
|
|
7158
|
-
return
|
|
7158
|
+
const f = String(r).toLowerCase(), b = String(a).toLowerCase();
|
|
7159
|
+
return f.localeCompare(b);
|
|
7159
7160
|
});
|
|
7160
7161
|
return n.direction === "desc" ? e.reverse() : e;
|
|
7161
7162
|
}
|
|
@@ -7223,7 +7224,7 @@ export {
|
|
|
7223
7224
|
o4 as BTiptapEditor,
|
|
7224
7225
|
s4 as BToggleButton,
|
|
7225
7226
|
te as BTooltip,
|
|
7226
|
-
|
|
7227
|
+
p4 as BTreeList,
|
|
7227
7228
|
me as BVerticalLayout,
|
|
7228
7229
|
ge as BWindowFrame,
|
|
7229
7230
|
c4 as ButtonType,
|
|
@@ -7237,20 +7238,20 @@ export {
|
|
|
7237
7238
|
Ro as addSortingToQuery,
|
|
7238
7239
|
k4 as applyOperator,
|
|
7239
7240
|
u4 as buildTree,
|
|
7240
|
-
|
|
7241
|
+
f4 as buttonVariants,
|
|
7241
7242
|
C4 as checkboxTypes,
|
|
7242
7243
|
P1 as clamp,
|
|
7243
|
-
|
|
7244
|
+
ps as dateDelta,
|
|
7244
7245
|
gs as dateFormat,
|
|
7245
7246
|
V5 as dateIsAfter,
|
|
7246
7247
|
k5 as dateIsBefore,
|
|
7247
|
-
|
|
7248
|
+
fs as dateIsBetween,
|
|
7248
7249
|
S1 as datesAreEqual,
|
|
7249
7250
|
x5 as dbDate,
|
|
7250
7251
|
P5 as dbDateTime,
|
|
7251
7252
|
qn as debounce,
|
|
7252
7253
|
Is as egdes,
|
|
7253
|
-
|
|
7254
|
+
pt as filterEndingBracket,
|
|
7254
7255
|
y1 as filterSeparator,
|
|
7255
7256
|
ut as filterStartingBracket,
|
|
7256
7257
|
q1 as filterValueSeparator,
|
|
@@ -7275,7 +7276,7 @@ export {
|
|
|
7275
7276
|
x1 as moveDate,
|
|
7276
7277
|
a4 as openPath,
|
|
7277
7278
|
V4 as operatorLetters,
|
|
7278
|
-
|
|
7279
|
+
ft as operatorToLetters,
|
|
7279
7280
|
H4 as operators,
|
|
7280
7281
|
C1 as parseDate,
|
|
7281
7282
|
Cs as printDate,
|