@firstnoodle-ui/bui 0.0.77 → 0.0.79
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/components/button/Button.vue.d.ts +11 -1
- package/dist/components/pop-calendar/PopCalendar.vue.d.ts +22 -2
- package/dist/components/pop-confirm/PopConfirm.vue.d.ts +22 -2
- package/dist/components/popper/Popper.vue.d.ts +4 -0
- package/dist/components/text-editor/components/InserLink.vue.d.ts +11 -1
- package/dist/components/tooltip/Tooltip.vue.d.ts +22 -2
- package/dist/index.mjs +550 -541
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,10 +3,10 @@ var yt = (n, t, e) => t in n ? Lt(n, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var I1 = (n, t, e) => yt(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
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
5
|
import { useRoute as J1, useRouter as pe, onBeforeRouteUpdate as xe } from "vue-router";
|
|
6
|
-
import { size as Pe, autoUpdate as Zt, offset as $t, flip as Dt, shift as Ve, limitShift as Tt, computePosition as
|
|
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";
|
|
9
|
-
import { Plugin as
|
|
9
|
+
import { Plugin as St, PluginKey as zt } from "prosemirror-state";
|
|
10
10
|
import Ne from "@tiptap/extension-bold";
|
|
11
11
|
import Ue from "@tiptap/extension-bullet-list";
|
|
12
12
|
import We from "@tiptap/extension-document";
|
|
@@ -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) => {
|
|
@@ -107,7 +107,7 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
107
107
|
const s1 = Math.min(i1 / N.width, i1 / N.height);
|
|
108
108
|
v.value = Math.max(s1, W);
|
|
109
109
|
const v1 = N.width * v.value, x = N.height * v.value;
|
|
110
|
-
H.value = (i1 - v1) / 2,
|
|
110
|
+
H.value = (i1 - v1) / 2, B.value = (i1 - x) / 2;
|
|
111
111
|
}, N.src = m.value;
|
|
112
112
|
} else
|
|
113
113
|
P();
|
|
@@ -128,33 +128,33 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
128
128
|
const w1 = Math.min(i1 / d1.width, i1 / d1.height);
|
|
129
129
|
v.value = Math.max(w1, L1);
|
|
130
130
|
const z = d1.width * v.value, J = d1.height * v.value;
|
|
131
|
-
H.value = (i1 - z) / 2,
|
|
131
|
+
H.value = (i1 - z) / 2, B.value = (i1 - J) / 2, setTimeout(() => {
|
|
132
132
|
}, 10);
|
|
133
133
|
}, d1.src = q;
|
|
134
134
|
}, x.readAsDataURL(s1);
|
|
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
|
-
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,
|
|
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
|
}
|
|
145
145
|
}, l1 = () => {
|
|
146
146
|
g.value = !1, window.removeEventListener("mousemove", Y), window.removeEventListener("mouseup", l1);
|
|
147
|
-
},
|
|
147
|
+
}, S = (N) => {
|
|
148
148
|
const W = Math.max(L.value, Math.min(v.value + N, 3));
|
|
149
149
|
W !== v.value && (v.value = W);
|
|
150
|
-
}, R = () =>
|
|
150
|
+
}, R = () => S(0.1), G = () => S(-0.1), B1 = () => {
|
|
151
151
|
var z;
|
|
152
152
|
if (!h.value || !r.value) return;
|
|
153
153
|
const N = r.value, W = N.getContext("2d");
|
|
154
154
|
if (!W) return;
|
|
155
155
|
const s1 = 512;
|
|
156
156
|
N.width = s1, N.height = s1;
|
|
157
|
-
const v1 = i1 / 2, x = i1 / 2, U = v1 - u.value / 2, q = x - u.value / 2, d1 = (U - H.value) / v.value, k1 = (q -
|
|
157
|
+
const v1 = i1 / 2, x = i1 / 2, U = v1 - u.value / 2, q = x - u.value / 2, d1 = (U - H.value) / v.value, k1 = (q - B.value) / v.value, L1 = u.value / v.value;
|
|
158
158
|
W.fillStyle = "#ffffff", W.fillRect(0, 0, s1, s1), e.cropShape === "circle" && (W.save(), W.beginPath(), W.arc(s1 / 2, s1 / 2, s1 / 2, 0, Math.PI * 2), W.closePath(), W.clip()), W.drawImage(
|
|
159
159
|
h.value,
|
|
160
160
|
d1,
|
|
@@ -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", {
|
|
@@ -205,7 +205,7 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
205
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
|
|
@@ -224,7 +224,7 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
224
224
|
width: `${D.value * v.value}px`,
|
|
225
225
|
height: `${A.value * v.value}px`,
|
|
226
226
|
left: `${H.value}px`,
|
|
227
|
-
top: `${
|
|
227
|
+
top: `${B.value}px`
|
|
228
228
|
})
|
|
229
229
|
}, [
|
|
230
230
|
h.value ? (o(), i("img", {
|
|
@@ -331,7 +331,7 @@ const rs = /* @__PURE__ */ Z1(Ot, [["render", xt]]), Pt = { class: "w-full space
|
|
|
331
331
|
"confirm-label": "Save",
|
|
332
332
|
"cancel-variant": "text",
|
|
333
333
|
onCancel: g1,
|
|
334
|
-
onConfirm:
|
|
334
|
+
onConfirm: B1
|
|
335
335
|
})
|
|
336
336
|
])
|
|
337
337
|
]),
|
|
@@ -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,27 +495,27 @@ 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"))
|
|
@@ -523,28 +523,28 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
523
523
|
default: Z(() => [
|
|
524
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,10 +555,10 @@ 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"))
|
|
@@ -566,27 +566,27 @@ const we = /* @__PURE__ */ Z1(o5, [["render", a5]]), r5 = { class: "w-3 h-3 bg-o
|
|
|
566
566
|
default: Z(() => [
|
|
567
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", {
|
|
@@ -661,24 +661,24 @@ const Ze = {
|
|
|
661
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
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
673
|
d("main", p5, [
|
|
674
|
-
(o(!0), i(M, null, m1(r.viewData, (
|
|
675
|
-
key:
|
|
676
|
-
variant:
|
|
677
|
-
label:
|
|
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:
|
|
681
|
+
value: c.label,
|
|
682
682
|
unit: p(X).YEAR,
|
|
683
683
|
view: p(X).MONTH
|
|
684
684
|
}
|
|
@@ -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
|
])
|
|
@@ -803,7 +803,7 @@ const c5 = /* @__PURE__ */ $({
|
|
|
803
803
|
key: r.label,
|
|
804
804
|
variant: r.selected ? "fill" : r.current ? "text" : "textSubtle",
|
|
805
805
|
label: p(lt)(r.label.toString()),
|
|
806
|
-
onClick: (
|
|
806
|
+
onClick: (c) => e(
|
|
807
807
|
"select",
|
|
808
808
|
{
|
|
809
809
|
value: a,
|
|
@@ -832,7 +832,7 @@ const C1 = (n) => {
|
|
|
832
832
|
if (l === X.MONTH || l === X.YEAR)
|
|
833
833
|
throw new Error("Cannot calculate delta in months or years");
|
|
834
834
|
return (n.getTime() - t.getTime()) / fe[l];
|
|
835
|
-
},
|
|
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));
|
|
@@ -900,8 +900,8 @@ class D5 {
|
|
|
900
900
|
date: new Date(t),
|
|
901
901
|
disabled: this.options.disabledDates ? this.options.disabledDates.some((r) => r(t)) : !1,
|
|
902
902
|
inactive: t.getUTCMonth() !== this.dateCursor.getUTCMonth(),
|
|
903
|
-
selected: !!this.selectedDate &&
|
|
904
|
-
current:
|
|
903
|
+
selected: !!this.selectedDate && S1(t, this.selectedDate),
|
|
904
|
+
current: S1(t, this.today)
|
|
905
905
|
}), t.setUTCDate(t.getUTCDate() + 1);
|
|
906
906
|
return l;
|
|
907
907
|
}
|
|
@@ -925,8 +925,8 @@ class D5 {
|
|
|
925
925
|
date: new Date(t),
|
|
926
926
|
disabled: this.options.disabledDates ? this.options.disabledDates.some((r) => r(t)) : !1,
|
|
927
927
|
inactive: t.getUTCMonth() !== this.dateCursor.getUTCMonth(),
|
|
928
|
-
selected: !!this.selectedDate &&
|
|
929
|
-
current:
|
|
928
|
+
selected: !!this.selectedDate && S1(t, this.selectedDate),
|
|
929
|
+
current: S1(t, this.today)
|
|
930
930
|
}), t.setUTCDate(t.getUTCDate() + 1);
|
|
931
931
|
return l;
|
|
932
932
|
}
|
|
@@ -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,14 +1074,14 @@ 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,
|
|
1086
1086
|
class: "flex items-center justify-end p-4 border-t border-default"
|
|
1087
1087
|
}, A5 = /* @__PURE__ */ $({
|
|
@@ -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;
|
|
@@ -1135,16 +1135,16 @@ const T5 = (n = null, t) => {
|
|
|
1135
1135
|
document.addEventListener("keydown", v);
|
|
1136
1136
|
}), N1(() => {
|
|
1137
1137
|
document.removeEventListener("keydown", v);
|
|
1138
|
-
}), (L, D) => (o(), i("section",
|
|
1139
|
-
d("main",
|
|
1138
|
+
}), (L, D) => (o(), i("section", B5, [
|
|
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
1143
|
"current-year": p(a),
|
|
1144
1144
|
"view-data": p(l),
|
|
1145
|
-
weekdays:
|
|
1145
|
+
weekdays: f.value,
|
|
1146
1146
|
onMove: p(h),
|
|
1147
|
-
onChangeView: p(
|
|
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, {
|
|
@@ -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,
|
|
@@ -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)
|
|
@@ -1438,9 +1438,9 @@ function ce(n) {
|
|
|
1438
1438
|
const t = "pointerdown";
|
|
1439
1439
|
let e;
|
|
1440
1440
|
const l = (a) => {
|
|
1441
|
-
e = (
|
|
1441
|
+
e = (c) => {
|
|
1442
1442
|
let h = p(a);
|
|
1443
|
-
!h || ("length" in h || (h = [h]), h.some((C) => C ===
|
|
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,7 +1509,7 @@ 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"
|
|
@@ -1520,7 +1520,7 @@ const G5 = () => {
|
|
|
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,7 +1529,7 @@ 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
1535
|
C.value ? (o(), V(p(j), {
|
|
@@ -1640,10 +1640,10 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
1640
1640
|
}, Tl = {
|
|
1641
1641
|
key: 45,
|
|
1642
1642
|
d: "M5 2V14H1V2H5ZM10 2V14H6V2H10ZM15 2V14H11V2H15ZM4 3H2V13H4V3ZM9 3H7V13H9V3ZM14 3H12V13H14V3Z"
|
|
1643
|
-
},
|
|
1643
|
+
}, Bl = {
|
|
1644
1644
|
key: 49,
|
|
1645
1645
|
d: "M8.5 0L8.50033 1.51897C11.6916 1.7619 14.2387 4.30926 14.4811 7.50067L16 7.5V8.5L14.481 8.50033C14.2381 11.6913 11.6913 14.2381 8.50033 14.481L8.5 16H7.5L7.50067 14.4811C4.30926 14.2387 1.7619 11.6916 1.51897 8.50033L0 8.5V7.5L1.51889 7.50067C1.76136 4.30893 4.30893 1.76136 7.50067 1.51889L7.5 0H8.5ZM8.50061 2.52239L8.5 4H7.5L7.50039 2.52239C4.86151 2.76 2.76 4.86151 2.52239 7.50039L4 7.5V8.5L2.52239 8.50061C2.76053 11.139 4.86184 13.24 7.50039 13.4776L7.5 12H8.5L8.50061 13.4776C11.1387 13.2395 13.2395 11.1387 13.4776 8.50061L12 8.5V7.5L13.4776 7.50039C13.247 4.93945 11.261 2.8846 8.73199 2.54828L8.50061 2.52239Z"
|
|
1646
|
-
},
|
|
1646
|
+
}, Sl = {
|
|
1647
1647
|
key: 50,
|
|
1648
1648
|
d: "M13 7.5V8.5H3V7.5H13Z"
|
|
1649
1649
|
}, zl = {
|
|
@@ -1815,10 +1815,10 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
1815
1815
|
}, Tn = {
|
|
1816
1816
|
key: 158,
|
|
1817
1817
|
d: "M12 10C14.1614 10 15.8922 11.6993 15.9952 13.8494L16 14.0523V14.74C16 15.3912 15.5054 15.9288 14.8713 15.9935L14.7428 16H6.25723C5.60616 16 5.07086 15.5031 5.00649 14.8686L5 14.74V14.0523C5 11.8071 6.77109 10 9 10C9.27614 10 9.5 10.2239 9.5 10.5C9.5 10.7761 9.27614 11 9 11C7.38766 11 6.09529 12.2599 6.00504 13.8718L6 14.0523V14.74C6 14.8629 6.08528 14.9661 6.19853 14.9931L6.25723 15H14.7428C14.8638 15 14.9663 14.9143 14.9932 14.7995L15 14.74V14.0523C15 12.355 13.6721 11 12 11C11.7239 11 11.5 10.7761 11.5 10.5C11.5 10.2239 11.7239 10 12 10ZM4 6C4.27614 6 4.5 6.22386 4.5 6.5C4.5 6.77614 4.27614 7 4 7C2.32794 7 1 8.35497 1 10.0523C1 10.1752 1.08528 10.2784 1.19853 10.3054L1.25723 10.3123H5.06104C5.33718 10.3123 5.56104 10.5362 5.56104 10.8123C5.56104 11.0578 5.38416 11.2619 5.15091 11.3042L5.06104 11.3123H1.25723C0.562755 11.3123 0 10.7469 0 10.0523C0 7.80715 1.77109 6 4 6ZM10.5 4C12.1569 4 13.5 5.34315 13.5 7C13.5 8.65685 12.1569 10 10.5 10C8.84313 10 7.5 8.65685 7.5 7C7.5 5.34315 8.84313 4 10.5 4ZM10.5 5C9.39542 5 8.5 5.89543 8.5 7C8.5 8.10457 9.39542 9 10.5 9C11.6046 9 12.5 8.10457 12.5 7C12.5 5.89543 11.6046 5 10.5 5ZM6 6C6.29398 6 6.58346 6.03145 6.86497 6.09332C7.13468 6.1526 7.30526 6.41929 7.24598 6.689C7.1867 6.9587 6.92001 7.12929 6.65031 7.07001C6.43929 7.02363 6.22178 7 6 7C5.72386 7 5.5 6.77614 5.5 6.5C5.5 6.22386 5.72386 6 6 6ZM5 1C6.38072 1 7.5 2.11929 7.5 3.5C7.5 4.88071 6.38072 6 5 6C3.61928 6 2.5 4.88071 2.5 3.5C2.5 2.11929 3.61928 1 5 1ZM5 2C4.17157 2 3.5 2.67157 3.5 3.5C3.5 4.32843 4.17157 5 5 5C5.82843 5 6.5 4.32843 6.5 3.5C6.5 2.67157 5.82843 2 5 2Z"
|
|
1818
|
-
},
|
|
1818
|
+
}, Bn = {
|
|
1819
1819
|
key: 159,
|
|
1820
1820
|
d: "M13.8545 0.115723L15.9067 5.75388L9.41795 8.11525C9.47132 8.29552 9.49997 8.48641 9.49997 8.68399C9.49997 9.42163 9.10064 10.066 8.50637 10.4127L10.6548 15.5167L9.73318 15.9048L7.53406 10.6827L7.46567 10.6837L5.26676 15.9048L4.34512 15.5167L6.49387 10.4129C5.89944 10.0662 5.49997 9.42175 5.49997 8.68399C5.49997 8.58006 5.5079 8.47799 5.52318 8.37834L1.45414 9.85898L0.0860596 6.10021L4.77006 4.39472L4.45758 3.53592L13.8545 0.115723ZM7.49997 7.68399C6.94768 7.68399 6.49997 8.13171 6.49997 8.68399C6.49997 9.23628 6.94768 9.68399 7.49997 9.68399C8.05225 9.68399 8.49997 9.23628 8.49997 8.68399C8.49997 8.13171 8.05225 7.68399 7.49997 7.68399ZM5.11206 5.33472L1.36723 6.69745L2.05127 8.57683L5.79606 7.21372L5.11206 5.33472ZM13.2564 1.39659L5.73884 4.13275L6.72397 6.84011C6.96258 6.73957 7.22479 6.68399 7.49997 6.68399C8.03847 6.68399 8.52727 6.89682 8.88683 7.24294L14.6245 5.15536L13.2564 1.39659Z"
|
|
1821
|
-
},
|
|
1821
|
+
}, Sn = {
|
|
1822
1822
|
key: 160,
|
|
1823
1823
|
d: "M11 1V2H9V14H11V15H6V14H8V2H6V1H11Z"
|
|
1824
1824
|
}, zn = {
|
|
@@ -1988,7 +1988,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
1988
1988
|
d: "M12 12V0H0V12H12ZM1 1H11V11H1V1Z"
|
|
1989
1989
|
}, null, -1)),
|
|
1990
1990
|
e[47] || (e[47] = d("path", { d: "M16 16V3H13V4H15V15H4V13H3V16H16Z" }, null, -1))
|
|
1991
|
-
], 64)) : t.name === "crosshair" ? (o(), i("path",
|
|
1991
|
+
], 64)) : t.name === "crosshair" ? (o(), i("path", Bl)) : t.name === "dash" ? (o(), i("path", Sl)) : t.name === "dashboard" ? (o(), i("path", zl)) : t.name === "delete" ? (o(), i(M, { key: 52 }, [
|
|
1992
1992
|
e[48] || (e[48] = d("path", { d: "M11.3536 6.35353L10.6465 5.64642L9.00042 7.29342L7.35353 5.64642L6.64642 6.35353L8.29342 8.00042L6.64642 9.64642L7.35353 10.3536L9.00042 8.70742L10.6465 10.3536L11.3536 9.64642L9.70742 8.00042L11.3536 6.35353Z" }, null, -1)),
|
|
1993
1993
|
e[49] || (e[49] = d("path", {
|
|
1994
1994
|
"fill-rule": "evenodd",
|
|
@@ -2276,7 +2276,7 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
2276
2276
|
"fill-rule": "evenodd",
|
|
2277
2277
|
d: "M8 0C10.2251 0 12 2.02847 12 4.5C12 6.97153 10.2251 9 8 9C5.77489 9 4 6.97153 4 4.5C4 2.02847 5.77489 0 8 0ZM8 1C6.35909 1 5 2.55326 5 4.5C5 6.44674 6.35909 8 8 8C9.64091 8 11 6.44674 11 4.5C11 2.55326 9.64091 1 8 1Z"
|
|
2278
2278
|
}, null, -1))
|
|
2279
|
-
], 64)) : t.name === "team" ? (o(), i("path", Tn)) : t.name === "telescope" ? (o(), i("path",
|
|
2279
|
+
], 64)) : t.name === "team" ? (o(), i("path", Tn)) : t.name === "telescope" ? (o(), i("path", Bn)) : t.name === "text-select" ? (o(), i("path", Sn)) : t.name === "trash" ? (o(), i(M, { key: 161 }, [
|
|
2280
2280
|
e[168] || (e[168] = d("path", { d: "M11 13V5H10V13H11Z" }, null, -1)),
|
|
2281
2281
|
e[169] || (e[169] = d("path", { d: "M6 5V13H5V5H6Z" }, null, -1)),
|
|
2282
2282
|
e[170] || (e[170] = d("path", { d: "M8.5 13V5H7.5V13H8.5Z" }, null, -1)),
|
|
@@ -2344,7 +2344,7 @@ 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;
|
|
@@ -2354,12 +2354,12 @@ const ys = /* @__PURE__ */ Z1(el, [["render", tl]]), ll = {
|
|
|
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
2360
|
w(p(st), {
|
|
2361
2361
|
onTransitionAfterEnter: g[0] || (g[0] = () => {
|
|
2362
|
-
p(
|
|
2362
|
+
p(c)(), l("open");
|
|
2363
2363
|
})
|
|
2364
2364
|
}, {
|
|
2365
2365
|
default: Z(() => [
|
|
@@ -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,21 +2646,21 @@ 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
|
-
|
|
2663
|
-
}), (H,
|
|
2662
|
+
c.value = e.asideLeftVisible && A["aside-left"] ? r.value : 0, h.value = e.asideRightVisible && A["aside-right"] ? a.value : 0;
|
|
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",
|
|
@@ -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")
|
|
@@ -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");
|
|
@@ -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,7 +2836,7 @@ 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")
|
|
@@ -2847,7 +2847,7 @@ const Xn = () => {
|
|
|
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,7 +2870,7 @@ 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
2875
|
w(p(t1), {
|
|
2876
2876
|
name: r.direction === "up" ? "chevron-up-small" : "chevron-down-small"
|
|
@@ -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
2931
|
w(p(t1), {
|
|
2932
|
-
name:
|
|
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,7 +3039,7 @@ 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 }, [
|
|
@@ -3050,7 +3050,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3050
3050
|
onClose: v[0] || (v[0] = (L) => s("close"))
|
|
3051
3051
|
}, {
|
|
3052
3052
|
default: Z(() => [
|
|
3053
|
-
w(p(st), { onTransitionAfterEnter:
|
|
3053
|
+
w(p(st), { onTransitionAfterEnter: f }, {
|
|
3054
3054
|
default: Z(() => [
|
|
3055
3055
|
W1(w(p(ge), {
|
|
3056
3056
|
ref_key: "windowRef",
|
|
@@ -3221,7 +3221,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3221
3221
|
})
|
|
3222
3222
|
]));
|
|
3223
3223
|
}
|
|
3224
|
-
}),
|
|
3224
|
+
}), Bs = /* @__PURE__ */ $({
|
|
3225
3225
|
__name: "Pagination",
|
|
3226
3226
|
props: {
|
|
3227
3227
|
borders: { type: Boolean, default: !1 },
|
|
@@ -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) => {
|
|
@@ -3247,7 +3247,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
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
3252
|
w(p(rt), {
|
|
3253
3253
|
"same-width-as-element": l.value,
|
|
@@ -3256,12 +3256,12 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3256
3256
|
options: s.value,
|
|
3257
3257
|
onSelect: C
|
|
3258
3258
|
}, {
|
|
3259
|
-
trigger: Z((
|
|
3259
|
+
trigger: Z((f) => [
|
|
3260
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
|
]),
|
|
@@ -3272,11 +3272,11 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
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
|
}
|
|
3279
|
-
}), c2 = ["aria-label"],
|
|
3279
|
+
}), c2 = ["aria-label"], Be = /* @__PURE__ */ $({
|
|
3280
3280
|
__name: "ResizablePanel",
|
|
3281
3281
|
props: {
|
|
3282
3282
|
size: { default: 256 },
|
|
@@ -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,
|
|
@@ -3344,7 +3344,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3344
3344
|
}, null, 42, c2)) : k("", !0)
|
|
3345
3345
|
], 6));
|
|
3346
3346
|
}
|
|
3347
|
-
}), C2 = { class: "relative w-full h-full overflow-hidden bg-primary" },
|
|
3347
|
+
}), C2 = { class: "relative w-full h-full overflow-hidden bg-primary" }, Ss = /* @__PURE__ */ $({
|
|
3348
3348
|
__name: "PanelLayout",
|
|
3349
3349
|
props: {
|
|
3350
3350
|
borders: { type: Boolean, default: !1 },
|
|
@@ -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
|
-
|
|
3395
|
-
}), (H,
|
|
3396
|
-
p(A)["start-panel"] && H.startPanelVisible ? (o(), V(
|
|
3394
|
+
c.value = e.startPanelVisible && A["start-panel"] ? r.value : 0, h.value = e.endPanelVisible && A["end-panel"] ? a.value : 0;
|
|
3395
|
+
}), (H, B) => (o(), i("div", C2, [
|
|
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
|
-
p(A)["end-panel"] && H.endPanelVisible ? (o(), V(
|
|
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,
|
|
@@ -3450,8 +3450,10 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3450
3450
|
props: {
|
|
3451
3451
|
closeDelay: { default: 20 },
|
|
3452
3452
|
closeOnClickOutside: { type: Boolean, default: !0 },
|
|
3453
|
+
closeOnEscapeKey: { type: Boolean, default: !1 },
|
|
3453
3454
|
disabled: { type: Boolean, default: !1 },
|
|
3454
3455
|
flipOptions: { default: () => ({}) },
|
|
3456
|
+
focusTriggerOnClose: { type: Boolean, default: !1 },
|
|
3455
3457
|
limitShiftOptions: {},
|
|
3456
3458
|
offsetOptions: { default: () => ({}) },
|
|
3457
3459
|
shiftOptions: { default: () => ({}) },
|
|
@@ -3470,62 +3472,62 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3470
3472
|
setup(n, { expose: t, emit: e }) {
|
|
3471
3473
|
const l = n, s = e, r = R1();
|
|
3472
3474
|
let a;
|
|
3473
|
-
const
|
|
3474
|
-
|
|
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
|
+
S.key === "Escape" && H();
|
|
3475
3477
|
}, A = async () => {
|
|
3476
3478
|
if (m.value && h.value) {
|
|
3477
|
-
const
|
|
3478
|
-
l.offsetOptions &&
|
|
3479
|
+
const S = [];
|
|
3480
|
+
l.offsetOptions && S.push($t(l.offsetOptions)), l.flipOptions && S.push(Dt(l.flipOptions)), l.limitShiftOptions ? S.push(
|
|
3479
3481
|
Ve({
|
|
3480
3482
|
...l.shiftOptions,
|
|
3481
3483
|
limiter: Tt(l.limitShiftOptions)
|
|
3482
3484
|
})
|
|
3483
|
-
) : l.shiftOptions &&
|
|
3484
|
-
const R = await
|
|
3485
|
+
) : l.shiftOptions && S.push(Ve(l.shiftOptions)), l.popperWidthClass || (l.sameWidthAsTrigger ? S.push(v2) : l.sameWidthAsElement && S.push(h2(l.sameWidthAsElement)));
|
|
3486
|
+
const R = await Bt(m.value, h.value, {
|
|
3485
3487
|
placement: l.placement,
|
|
3486
|
-
middleware:
|
|
3488
|
+
middleware: S
|
|
3487
3489
|
});
|
|
3488
3490
|
h.value.style.left = `${R.x}px`, h.value.style.top = `${R.y}px`;
|
|
3489
3491
|
}
|
|
3490
3492
|
};
|
|
3491
3493
|
a1(() => {
|
|
3492
|
-
const
|
|
3493
|
-
if (
|
|
3494
|
-
return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${
|
|
3494
|
+
const S = r.default && r.default({ visible: C.value });
|
|
3495
|
+
if (S && S.length > 1)
|
|
3496
|
+
return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${S.length} child nodes.`);
|
|
3495
3497
|
l.popperWidthClass ? (l.sameWidthAsElement || l.sameWidthAsTrigger) && console.warn("[Popper]: The props 'sameWidthAsElement' or 'sameWidthAsTrigger' will be ignored because the 'popperWidthClass' is set") : l.sameWidthAsElement && l.sameWidthAsTrigger && console.warn("[Popper]: The 'sameWidthAsElement' prop will be ignored because 'sameWidthAsTrigger' is set to true"), l.trigger === "manual" && l.show && I();
|
|
3496
3498
|
}), N1(() => {
|
|
3497
3499
|
I.clear(), a && (a(), a = null);
|
|
3498
3500
|
});
|
|
3499
3501
|
const H = () => {
|
|
3500
|
-
var
|
|
3501
|
-
I.clear(), C.value && (L(), window.removeEventListener("keydown", D), C.value = !1, l.trigger !== "hover" && ((R = ((
|
|
3502
|
-
},
|
|
3503
|
-
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 &&
|
|
3504
|
-
}, I = oe(
|
|
3502
|
+
var S, R;
|
|
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
|
+
}, 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 && f([h.value, m.value]), l.trigger !== "hover" && (V1(v), l.closeOnEscapeKey && window.addEventListener("keydown", D)));
|
|
3506
|
+
}, I = oe(B, l.openDelay), P = oe(H, l.closeDelay), e1 = async () => {
|
|
3505
3507
|
l.disabled || (P.clear(), I());
|
|
3506
3508
|
}, u1 = async () => {
|
|
3507
3509
|
I.clear(), P();
|
|
3508
|
-
}, Q = (
|
|
3509
|
-
l.trigger === "click" && (
|
|
3510
|
-
}, Y = (
|
|
3511
|
-
h.value && m.value && b([h.value, m.value, ...
|
|
3510
|
+
}, Q = (S) => {
|
|
3511
|
+
l.trigger === "click" && (S.preventDefault(), S.stopPropagation(), l1());
|
|
3512
|
+
}, Y = (S) => {
|
|
3513
|
+
h.value && m.value && b([h.value, m.value, ...S]);
|
|
3512
3514
|
}, l1 = () => C.value ? u1() : e1();
|
|
3513
3515
|
return r1(
|
|
3514
3516
|
() => l.disabled,
|
|
3515
|
-
(
|
|
3517
|
+
(S) => C.value && S && H()
|
|
3516
3518
|
), r1(
|
|
3517
3519
|
() => l.show,
|
|
3518
|
-
(
|
|
3519
|
-
l.trigger === "manual" ?
|
|
3520
|
+
(S) => {
|
|
3521
|
+
l.trigger === "manual" ? S ? I() : P() : console.warn("[Popper]: The 'show' prop is only available when the 'trigger' prop is set to 'manual'");
|
|
3520
3522
|
}
|
|
3521
3523
|
), t({
|
|
3522
3524
|
close: H,
|
|
3523
|
-
containerRef:
|
|
3524
|
-
open:
|
|
3525
|
+
containerRef: c,
|
|
3526
|
+
open: B,
|
|
3525
3527
|
updateClickOutsideTargets: Y
|
|
3526
|
-
}), (
|
|
3528
|
+
}), (S, R) => (o(), i("div", {
|
|
3527
3529
|
ref_key: "containerRef",
|
|
3528
|
-
ref:
|
|
3530
|
+
ref: c,
|
|
3529
3531
|
class: T(l.rootClass),
|
|
3530
3532
|
onMouseleave: R[5] || (R[5] = (G) => l.trigger === "hover" && u1())
|
|
3531
3533
|
}, [
|
|
@@ -3538,11 +3540,11 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3538
3540
|
onFocus: R[1] || (R[1] = (G) => l.trigger === "focus" && e1()),
|
|
3539
3541
|
onKeyup: R[2] || (R[2] = _((G) => u1(), ["esc"]))
|
|
3540
3542
|
}, [
|
|
3541
|
-
E(
|
|
3543
|
+
E(S.$slots, "default", { visible: C.value })
|
|
3542
3544
|
], 34),
|
|
3543
3545
|
p(u) ? (o(), V(U1, {
|
|
3544
3546
|
key: 0,
|
|
3545
|
-
to:
|
|
3547
|
+
to: S.teleportTarget
|
|
3546
3548
|
}, [
|
|
3547
3549
|
!l.disabled && C.value ? (o(), i("div", {
|
|
3548
3550
|
key: 0,
|
|
@@ -3552,7 +3554,7 @@ const F1 = /* @__PURE__ */ Z1(n2, [["render", s2]]), a2 = {
|
|
|
3552
3554
|
onMouseover: R[3] || (R[3] = (G) => l.trigger === "hover" && e1()),
|
|
3553
3555
|
onMouseleave: R[4] || (R[4] = (G) => l.trigger === "hover" && u1())
|
|
3554
3556
|
}, [
|
|
3555
|
-
E(
|
|
3557
|
+
E(S.$slots, "content", {
|
|
3556
3558
|
close: H,
|
|
3557
3559
|
isOpen: C.value
|
|
3558
3560
|
})
|
|
@@ -3590,7 +3592,7 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3590
3592
|
}, a = () => {
|
|
3591
3593
|
var m;
|
|
3592
3594
|
e("change", s.value), (m = l.value) == null || m.close();
|
|
3593
|
-
},
|
|
3595
|
+
}, c = () => {
|
|
3594
3596
|
var m;
|
|
3595
3597
|
n.mode === "immediate" ? (e("change", null), (m = l.value) == null || m.close()) : s.value = null;
|
|
3596
3598
|
}, h = (m) => {
|
|
@@ -3600,6 +3602,8 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3600
3602
|
ref_key: "popperRef",
|
|
3601
3603
|
ref: l,
|
|
3602
3604
|
trigger: "click",
|
|
3605
|
+
"focus-trigger-on-close": "",
|
|
3606
|
+
"close-on-escape-key": "",
|
|
3603
3607
|
placement: m.placement,
|
|
3604
3608
|
disabled: m.disabled,
|
|
3605
3609
|
onClose: C[0] || (C[0] = (u) => e("close")),
|
|
@@ -3625,7 +3629,7 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3625
3629
|
icon: "trash",
|
|
3626
3630
|
label: "Clear",
|
|
3627
3631
|
variant: "outlineSubtle",
|
|
3628
|
-
onClick:
|
|
3632
|
+
onClick: c
|
|
3629
3633
|
})) : k("", !0),
|
|
3630
3634
|
m.mode === "confirmation" ? (o(), V(p(j), {
|
|
3631
3635
|
key: 1,
|
|
@@ -3671,7 +3675,7 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3671
3675
|
setup(n, { emit: t }) {
|
|
3672
3676
|
const e = t, l = y(), s = y(), { trapFocus: r } = j1(s), a = () => {
|
|
3673
3677
|
e("close"), l.value && l.value.close();
|
|
3674
|
-
},
|
|
3678
|
+
}, c = () => V1(r), h = () => {
|
|
3675
3679
|
a(), e("cancel");
|
|
3676
3680
|
}, m = () => {
|
|
3677
3681
|
a(), e("confirm");
|
|
@@ -3680,9 +3684,11 @@ const O1 = /* @__PURE__ */ Z1(m2, [["render", b2]]), L2 = {
|
|
|
3680
3684
|
ref_key: "popperRef",
|
|
3681
3685
|
ref: l,
|
|
3682
3686
|
trigger: "click",
|
|
3687
|
+
"focus-trigger-on-close": "",
|
|
3688
|
+
"close-on-escape-key": "",
|
|
3683
3689
|
placement: C.placement,
|
|
3684
3690
|
"offset-options": C.offsetOptions || { mainAxis: 4 },
|
|
3685
|
-
onOpen:
|
|
3691
|
+
onOpen: c,
|
|
3686
3692
|
onClose: a
|
|
3687
3693
|
}, {
|
|
3688
3694
|
default: Z((g) => [
|
|
@@ -3750,23 +3756,23 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3750
3756
|
const e = n, l = t, s = y(), r = O(() => e.hoveredOption && e.hoveredOption.id === e.option.id), a = () => {
|
|
3751
3757
|
e.option.disabled || l("click");
|
|
3752
3758
|
};
|
|
3753
|
-
return (
|
|
3759
|
+
return (c, h) => (o(), i("div", {
|
|
3754
3760
|
ref_key: "root",
|
|
3755
3761
|
ref: s,
|
|
3756
3762
|
tabindex: "0",
|
|
3757
3763
|
class: T(["flex items-center justify-between w-full h-8 px-3 space-x-2 text-sm focus:outline-hidden", {
|
|
3758
|
-
"cursor-not-allowed text-muted ":
|
|
3759
|
-
"cursor-pointer text-primary hover:bg-secondary focus:bg-secondary active:bg-tertiary": !
|
|
3760
|
-
"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,
|
|
3761
3767
|
"bg-secondary": r.value,
|
|
3762
3768
|
"bg-primary": !r.value
|
|
3763
3769
|
}]),
|
|
3764
3770
|
onClick: a,
|
|
3765
3771
|
onKeydown: _(F(a, ["prevent"]), ["enter"]),
|
|
3766
|
-
onMouseover: h[0] || (h[0] = (m) => l("hover",
|
|
3767
|
-
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))
|
|
3768
3774
|
}, [
|
|
3769
|
-
E(
|
|
3775
|
+
E(c.$slots, "default")
|
|
3770
3776
|
], 42, M2));
|
|
3771
3777
|
}
|
|
3772
3778
|
}), $2 = { class: "flex items-center px-2 pb-2 space-x-2" }, D2 = /* @__PURE__ */ $({
|
|
@@ -3793,10 +3799,10 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3793
3799
|
}), T2 = {
|
|
3794
3800
|
key: 0,
|
|
3795
3801
|
class: "border-b border-default"
|
|
3796
|
-
},
|
|
3802
|
+
}, B2 = {
|
|
3797
3803
|
key: 0,
|
|
3798
3804
|
class: "flex items-center w-full px-3 space-x-2 bg-primary overflow-hidden"
|
|
3799
|
-
},
|
|
3805
|
+
}, S2 = ["placeholder", "onKeydown"], z2 = {
|
|
3800
3806
|
key: 2,
|
|
3801
3807
|
class: "flex-1"
|
|
3802
3808
|
}, A2 = { class: "flex items-center space-x-2 bg-primary text-tertiary py-3 px-3" }, R2 = { class: "italic leading-none text-sm" }, E2 = {
|
|
@@ -3839,14 +3845,14 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3839
3845
|
},
|
|
3840
3846
|
emits: ["close", "save-custom", "select"],
|
|
3841
3847
|
setup(n, { expose: t, emit: e }) {
|
|
3842
|
-
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(() => {
|
|
3843
3849
|
if (C.value) return b1.ERROR;
|
|
3844
3850
|
if (l.loading) return b1.LOADING;
|
|
3845
3851
|
if (I.value && !l.loading) return b1.NO_MATCH;
|
|
3846
|
-
if (
|
|
3847
|
-
if (
|
|
3852
|
+
if (B.value && !l.loading) return b1.IDLE;
|
|
3853
|
+
if (c.value.length && !l.loading) return b1.MATCH;
|
|
3848
3854
|
}), e1 = (x) => {
|
|
3849
|
-
|
|
3855
|
+
c.value = L.value ? x.filter(L.value.execute) : x, l.resultFilters && v.value.forEach((U) => {
|
|
3850
3856
|
U.count = x.filter(U.execute).length;
|
|
3851
3857
|
});
|
|
3852
3858
|
};
|
|
@@ -3858,42 +3864,44 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3858
3864
|
), A1(() => {
|
|
3859
3865
|
l.filterable && l.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), e1(l.options);
|
|
3860
3866
|
});
|
|
3861
|
-
const u1 = () =>
|
|
3867
|
+
const u1 = () => f.value.close(), Q = () => f.value.open(), Y = async () => {
|
|
3862
3868
|
D(() => {
|
|
3863
3869
|
b.value && D(() => b.value.update()), u.value && D(() => u.value.focus());
|
|
3864
3870
|
});
|
|
3865
3871
|
}, l1 = () => {
|
|
3866
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"));
|
|
3867
|
-
},
|
|
3873
|
+
}, S = (x) => {
|
|
3868
3874
|
s("select", x), l.keepOpen || u1();
|
|
3869
|
-
}, R = (x) =>
|
|
3875
|
+
}, R = (x) => c.value = l.options.filter((U) => U.label.toLowerCase().includes(x.toLowerCase())), B1 = qn(async (x) => {
|
|
3870
3876
|
const U = x.target.value;
|
|
3871
3877
|
a.value = null, l.filterable ? R(U) : l.remoteMethod && await l.remoteMethod(U);
|
|
3872
3878
|
}, l.debounceMs), g1 = (x) => {
|
|
3873
|
-
a.value =
|
|
3879
|
+
a.value = c.value.find((U) => U.id === x) || null;
|
|
3874
3880
|
}, N = (x) => {
|
|
3875
3881
|
if (!g.value.length) return;
|
|
3876
|
-
const U = g.value[
|
|
3882
|
+
const U = g.value[c.value.findIndex((q) => q.label === x.label)].$el;
|
|
3877
3883
|
if (b.value && U) {
|
|
3878
3884
|
const q = b.value.$el.querySelector(".scrollbar__wrap");
|
|
3879
3885
|
q && (at(q, U), b.value.handleScroll());
|
|
3880
3886
|
}
|
|
3881
3887
|
}, W = async (x) => {
|
|
3882
|
-
if (
|
|
3883
|
-
let U =
|
|
3888
|
+
if (c.value.length === 0) return;
|
|
3889
|
+
let U = c.value.findIndex((q) => {
|
|
3884
3890
|
var d1;
|
|
3885
3891
|
return q.label === ((d1 = a.value) == null ? void 0 : d1.label);
|
|
3886
3892
|
});
|
|
3887
|
-
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));
|
|
3888
3894
|
}, s1 = () => {
|
|
3889
|
-
a.value ?
|
|
3895
|
+
a.value ? S(a.value) : h.value.length && s("save-custom", h.value);
|
|
3890
3896
|
}, v1 = (x) => {
|
|
3891
3897
|
L.value = x, e1(l.options), u.value.focus();
|
|
3892
3898
|
};
|
|
3893
3899
|
return t({ close: u1, focus: Q }), (x, U) => (o(), V(p(E1), {
|
|
3894
3900
|
ref_key: "popperRef",
|
|
3895
|
-
ref:
|
|
3901
|
+
ref: f,
|
|
3896
3902
|
trigger: "click",
|
|
3903
|
+
"focus-trigger-on-close": "",
|
|
3904
|
+
"close-on-escape-key": "",
|
|
3897
3905
|
placement: x.placement,
|
|
3898
3906
|
disabled: x.disabled,
|
|
3899
3907
|
"popper-width-class": x.popperWidthClass,
|
|
@@ -3918,7 +3926,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3918
3926
|
}, {
|
|
3919
3927
|
default: Z(() => [
|
|
3920
3928
|
x.filterable || x.remoteMethod || x.resultFilters ? (o(), i("header", T2, [
|
|
3921
|
-
x.filterable || x.remoteMethod ? (o(), i("header",
|
|
3929
|
+
x.filterable || x.remoteMethod ? (o(), i("header", B2, [
|
|
3922
3930
|
w(p(t1), {
|
|
3923
3931
|
name: "magnifying-glass",
|
|
3924
3932
|
class: "text-light-blue"
|
|
@@ -3933,14 +3941,14 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3933
3941
|
onClick: U[1] || (U[1] = F(() => {
|
|
3934
3942
|
}, ["stop", "prevent"])),
|
|
3935
3943
|
onInput: U[2] || (U[2] = //@ts-ignore
|
|
3936
|
-
(...q) => p(
|
|
3944
|
+
(...q) => p(B1) && p(B1)(...q)),
|
|
3937
3945
|
onKeydown: [
|
|
3938
3946
|
U[3] || (U[3] = _(F((q) => W("next"), ["prevent"]), ["down"])),
|
|
3939
3947
|
U[4] || (U[4] = _(F((q) => W("prev"), ["prevent"]), ["up"])),
|
|
3940
3948
|
_(F(s1, ["prevent"]), ["enter"]),
|
|
3941
3949
|
_(F(l1, ["stop", "prevent"]), ["esc"])
|
|
3942
3950
|
]
|
|
3943
|
-
}, null, 40,
|
|
3951
|
+
}, null, 40, S2), [
|
|
3944
3952
|
[kt, h.value]
|
|
3945
3953
|
])
|
|
3946
3954
|
])) : k("", !0),
|
|
@@ -3982,7 +3990,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3982
3990
|
}, {
|
|
3983
3991
|
default: Z(() => [
|
|
3984
3992
|
d("div", N2, [
|
|
3985
|
-
(o(!0), i(M, null, m1(
|
|
3993
|
+
(o(!0), i(M, null, m1(c.value, (q) => (o(), V(Z2, {
|
|
3986
3994
|
ref_for: !0,
|
|
3987
3995
|
ref_key: "optionsRef",
|
|
3988
3996
|
ref: g,
|
|
@@ -3992,7 +4000,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
3992
4000
|
selected: A.value.includes(q),
|
|
3993
4001
|
onFocus: g1,
|
|
3994
4002
|
onHover: g1,
|
|
3995
|
-
onClick: (d1) =>
|
|
4003
|
+
onClick: (d1) => S(q)
|
|
3996
4004
|
}, {
|
|
3997
4005
|
default: Z(() => [
|
|
3998
4006
|
d("div", U2, [
|
|
@@ -4068,20 +4076,20 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4068
4076
|
const e = n, l = t, s = y(""), r = Ee({ backdropFilter: "" });
|
|
4069
4077
|
return A1(() => {
|
|
4070
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)");
|
|
4071
|
-
}), (a,
|
|
4079
|
+
}), (a, c) => (o(), V(ue, {
|
|
4072
4080
|
"enter-active-class": "transform transition ease-in-out duration-200",
|
|
4073
4081
|
"enter-from-class": "opacity-0",
|
|
4074
4082
|
"enter-to-class": "",
|
|
4075
4083
|
"leave-active-class": "transform transition ease-in-out duration-500",
|
|
4076
4084
|
"leave-class": "translate-y-0 opacity-100",
|
|
4077
4085
|
"leave-to-class": "opacity-0",
|
|
4078
|
-
onAfterLeave:
|
|
4086
|
+
onAfterLeave: c[1] || (c[1] = (h) => l("close"))
|
|
4079
4087
|
}, {
|
|
4080
4088
|
default: Z(() => [
|
|
4081
4089
|
W1(d("div", {
|
|
4082
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]),
|
|
4083
4091
|
style: n1(r),
|
|
4084
|
-
onMousedown:
|
|
4092
|
+
onMousedown: c[0] || (c[0] = F((h) => l("click"), ["self"]))
|
|
4085
4093
|
}, [
|
|
4086
4094
|
E(a.$slots, "default")
|
|
4087
4095
|
], 38), [
|
|
@@ -4109,7 +4117,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4109
4117
|
axis: "Y",
|
|
4110
4118
|
client: "clientY",
|
|
4111
4119
|
direction: "top"
|
|
4112
|
-
}, _2 = ["tabindex", "aria-label", "aria-valuenow"],
|
|
4120
|
+
}, _2 = ["tabindex", "aria-label", "aria-valuenow"], Se = /* @__PURE__ */ $({
|
|
4113
4121
|
__name: "Bar",
|
|
4114
4122
|
props: {
|
|
4115
4123
|
vertical: { type: Boolean },
|
|
@@ -4118,17 +4126,17 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4118
4126
|
},
|
|
4119
4127
|
emits: ["move", "update"],
|
|
4120
4128
|
setup(n, { emit: t }) {
|
|
4121
|
-
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) => {
|
|
4122
4130
|
if (!a.value) return;
|
|
4123
4131
|
const D = h.value;
|
|
4124
4132
|
if (!D) return;
|
|
4125
4133
|
const A = s.value.getBoundingClientRect();
|
|
4126
4134
|
if (A) {
|
|
4127
|
-
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;
|
|
4128
4136
|
l("update", {
|
|
4129
|
-
scrollReference:
|
|
4137
|
+
scrollReference: c.scroll,
|
|
4130
4138
|
positionPercentage: P,
|
|
4131
|
-
scrollSize:
|
|
4139
|
+
scrollSize: c.scrollSize
|
|
4132
4140
|
});
|
|
4133
4141
|
}
|
|
4134
4142
|
}, C = () => {
|
|
@@ -4137,23 +4145,23 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4137
4145
|
L.stopImmediatePropagation(), a.value = !0, document.addEventListener("mousemove", m), document.addEventListener("mouseup", C), document.onselectstart = () => !1;
|
|
4138
4146
|
}, g = (L) => {
|
|
4139
4147
|
if (!(L.ctrlKey || L.button === 2) && (u(L), L.currentTarget)) {
|
|
4140
|
-
const D = L.currentTarget[
|
|
4141
|
-
h.value = D - (A -
|
|
4148
|
+
const D = L.currentTarget[c.offset], A = L[c.client], B = L.currentTarget.getBoundingClientRect()[c.direction];
|
|
4149
|
+
h.value = D - (A - B);
|
|
4142
4150
|
}
|
|
4143
|
-
},
|
|
4151
|
+
}, f = (L) => {
|
|
4144
4152
|
const D = L.target.getBoundingClientRect();
|
|
4145
4153
|
if (D) {
|
|
4146
|
-
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;
|
|
4147
4155
|
l("update", {
|
|
4148
|
-
scrollReference:
|
|
4156
|
+
scrollReference: c.scroll,
|
|
4149
4157
|
positionPercentage: e1,
|
|
4150
|
-
scrollSize:
|
|
4158
|
+
scrollSize: c.scrollSize
|
|
4151
4159
|
});
|
|
4152
4160
|
}
|
|
4153
4161
|
}, b = () => {
|
|
4154
|
-
const L = `translate${
|
|
4162
|
+
const L = `translate${c.axis}(${e.move}%)`;
|
|
4155
4163
|
return {
|
|
4156
|
-
[
|
|
4164
|
+
[c.size]: e.size,
|
|
4157
4165
|
transform: L,
|
|
4158
4166
|
msTransform: L,
|
|
4159
4167
|
webkitTransform: L
|
|
@@ -4164,10 +4172,10 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4164
4172
|
return (L, D) => (o(), i("div", {
|
|
4165
4173
|
ref_key: "scrollbarRef",
|
|
4166
4174
|
ref: s,
|
|
4167
|
-
class: T(`scrollbar__bar is-${p(
|
|
4175
|
+
class: T(`scrollbar__bar is-${p(c).key}`),
|
|
4168
4176
|
onClick: D[1] || (D[1] = F(() => {
|
|
4169
4177
|
}, ["stop", "prevent"])),
|
|
4170
|
-
onMousedown: F(
|
|
4178
|
+
onMousedown: F(f, ["stop", "prevent"])
|
|
4171
4179
|
}, [
|
|
4172
4180
|
d("div", {
|
|
4173
4181
|
ref_key: "thumbRef",
|
|
@@ -4205,13 +4213,13 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4205
4213
|
setup(n, { expose: t, emit: e }) {
|
|
4206
4214
|
const l = n, s = e;
|
|
4207
4215
|
let r;
|
|
4208
|
-
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({
|
|
4209
4217
|
marginRight: "",
|
|
4210
4218
|
marginBottom: ""
|
|
4211
|
-
}),
|
|
4219
|
+
}), f = { height: 100, width: 100 }, b = ["scrollbar__wrap"];
|
|
4212
4220
|
!a.value && b.push("scrollbar__wrap--hidden-default"), l.wrapClass && b.push(l.wrapClass);
|
|
4213
4221
|
const v = y(), L = y(), D = () => {
|
|
4214
|
-
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);
|
|
4215
4223
|
const Q = v.value.scrollTop + v.value.clientHeight, Y = v.value.scrollHeight;
|
|
4216
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)
|
|
4217
4225
|
for (const l1 of l.triggers)
|
|
@@ -4224,17 +4232,17 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4224
4232
|
if (!v.value) return;
|
|
4225
4233
|
await V1();
|
|
4226
4234
|
const { heightPercentage: Q, widthPercentage: Y } = A();
|
|
4227
|
-
!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());
|
|
4228
4236
|
};
|
|
4229
4237
|
a1(async () => {
|
|
4230
|
-
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, {
|
|
4231
4239
|
childList: !0,
|
|
4232
4240
|
subtree: !0
|
|
4233
4241
|
}));
|
|
4234
4242
|
}), T1(() => {
|
|
4235
4243
|
!l.noresize && r.disconnect(), l.windowResize && window.removeEventListener("resize", H);
|
|
4236
4244
|
});
|
|
4237
|
-
const
|
|
4245
|
+
const B = (Q) => {
|
|
4238
4246
|
v.value[Q.scrollReference] = Q.positionPercentage * v.value[Q.scrollSize] / 100;
|
|
4239
4247
|
}, I = (Q, Y) => {
|
|
4240
4248
|
Q === "x" ? v.value.scrollBy({ left: Y, behavior: "smooth" }) : v.value.scrollBy({ top: Y, behavior: "smooth" }), D();
|
|
@@ -4267,20 +4275,20 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4267
4275
|
_: 3
|
|
4268
4276
|
}, 8, ["class"]))
|
|
4269
4277
|
], 38),
|
|
4270
|
-
Q.disableX ? k("", !0) : (o(), V(
|
|
4278
|
+
Q.disableX ? k("", !0) : (o(), V(Se, {
|
|
4271
4279
|
key: 0,
|
|
4272
|
-
move:
|
|
4280
|
+
move: c.value,
|
|
4273
4281
|
size: u.value,
|
|
4274
4282
|
onMove: Y[0] || (Y[0] = (l1) => I("x", l1 * 40)),
|
|
4275
|
-
onUpdate:
|
|
4283
|
+
onUpdate: B
|
|
4276
4284
|
}, null, 8, ["move", "size"])),
|
|
4277
|
-
Q.disableY ? k("", !0) : (o(), V(
|
|
4285
|
+
Q.disableY ? k("", !0) : (o(), V(Se, {
|
|
4278
4286
|
key: 1,
|
|
4279
4287
|
vertical: "",
|
|
4280
4288
|
move: h.value,
|
|
4281
4289
|
size: C.value,
|
|
4282
4290
|
onMove: Y[1] || (Y[1] = (l1) => I("y", l1 * 40)),
|
|
4283
|
-
onUpdate:
|
|
4291
|
+
onUpdate: B
|
|
4284
4292
|
}, null, 8, ["move", "size"]))
|
|
4285
4293
|
], 2));
|
|
4286
4294
|
}
|
|
@@ -4352,7 +4360,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4352
4360
|
segment: a,
|
|
4353
4361
|
active: l(a),
|
|
4354
4362
|
size: s.size,
|
|
4355
|
-
onClick: (
|
|
4363
|
+
onClick: (c) => e("select", a)
|
|
4356
4364
|
}, null, 8, ["segment", "active", "size", "onClick"]))), 128))
|
|
4357
4365
|
]),
|
|
4358
4366
|
_: 1
|
|
@@ -4389,7 +4397,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4389
4397
|
emits: ["click", "delete", "focus", "hover"],
|
|
4390
4398
|
setup(n, { emit: t }) {
|
|
4391
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");
|
|
4392
|
-
return (a,
|
|
4400
|
+
return (a, c) => (o(), i("li", l0, [
|
|
4393
4401
|
(o(), V(D1(l.value ? "button" : "div"), {
|
|
4394
4402
|
disabled: a.option.disabled,
|
|
4395
4403
|
class: T(["w-full overflow-hidden rounded-lg flex items-center px-2 py-1 gap-2", {
|
|
@@ -4401,8 +4409,8 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4401
4409
|
"cursor-not-allowed": a.option.disabled
|
|
4402
4410
|
}]),
|
|
4403
4411
|
onClick: r,
|
|
4404
|
-
onMouseover:
|
|
4405
|
-
onFocus:
|
|
4412
|
+
onMouseover: c[1] || (c[1] = (h) => e("hover", a.option)),
|
|
4413
|
+
onFocus: c[2] || (c[2] = (h) => e("focus", a.option))
|
|
4406
4414
|
}, {
|
|
4407
4415
|
default: Z(() => [
|
|
4408
4416
|
d("main", n0, [
|
|
@@ -4449,7 +4457,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4449
4457
|
small: "",
|
|
4450
4458
|
icon: "close",
|
|
4451
4459
|
variant: "text",
|
|
4452
|
-
onClick:
|
|
4460
|
+
onClick: c[0] || (c[0] = (h) => e("delete"))
|
|
4453
4461
|
})) : k("", !0)
|
|
4454
4462
|
]),
|
|
4455
4463
|
_: 1
|
|
@@ -4667,15 +4675,15 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4667
4675
|
},
|
|
4668
4676
|
emits: ["escape", "selectQuery", "select"],
|
|
4669
4677
|
setup(n, { expose: t, emit: e }) {
|
|
4670
|
-
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) => {
|
|
4671
4679
|
if (!Array.isArray(z)) throw new Error("Item passed must be an Array");
|
|
4672
4680
|
return z.length === 0 ? !1 : "options" in z[0];
|
|
4673
|
-
}, H = O(() => A(l.options)),
|
|
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);
|
|
4674
4682
|
r1(() => l.selected, (z) => {
|
|
4675
4683
|
z && v.value && r(() => {
|
|
4676
4684
|
if (u.value.update(), P.value && e1.value) {
|
|
4677
|
-
const J = g.value[g.value.length - 1].$el, f1 =
|
|
4678
|
-
f1 && (at(f1, J),
|
|
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());
|
|
4679
4687
|
}
|
|
4680
4688
|
});
|
|
4681
4689
|
}), r1(() => l.options, (z) => {
|
|
@@ -4686,22 +4694,22 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4686
4694
|
});
|
|
4687
4695
|
}), T1(() => m.value.removeEventListener("keydown", Y));
|
|
4688
4696
|
const Y = (z) => {
|
|
4689
|
-
z.key === "Enter" ?
|
|
4697
|
+
z.key === "Enter" ? S() : z.key === "Escape" ? s("escape") : z.key === "ArrowDown" ? x("next") : z.key === "ArrowUp" && x("prev");
|
|
4690
4698
|
}, l1 = (z) => {
|
|
4691
4699
|
if (P.value) {
|
|
4692
4700
|
const J = l.selected.map((f1) => f1.label).includes(z.label) ? [...l.selected.filter((f1) => f1.label !== z.label)] : [...l.selected, z];
|
|
4693
4701
|
s("select", J);
|
|
4694
4702
|
} else
|
|
4695
4703
|
s("select", z);
|
|
4696
|
-
},
|
|
4704
|
+
}, S = () => {
|
|
4697
4705
|
a.value ? l1(a.value) : h.value.length && s("selectQuery", h.value);
|
|
4698
4706
|
}, R = (z) => l.selected ? P.value ? l.selected.some((J) => J[l.identifier] === z[l.identifier]) : z[l.identifier] === l.selected[l.identifier] : !1, G = async (z) => {
|
|
4699
4707
|
h.value = z, a.value = null, l.searchFunction && await l.searchFunction(z);
|
|
4700
|
-
},
|
|
4708
|
+
}, B1 = l.searchDebounce ? oe(G, l.searchDebounce) : G, g1 = (z) => {
|
|
4701
4709
|
var J;
|
|
4702
4710
|
if (H.value) {
|
|
4703
4711
|
const f1 = z;
|
|
4704
|
-
|
|
4712
|
+
c.value = f1.map(($1) => {
|
|
4705
4713
|
var He;
|
|
4706
4714
|
return {
|
|
4707
4715
|
...$1,
|
|
@@ -4710,29 +4718,29 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4710
4718
|
});
|
|
4711
4719
|
} else {
|
|
4712
4720
|
const f1 = z;
|
|
4713
|
-
|
|
4721
|
+
c.value = b.value ? f1.filter((J = b.value) == null ? void 0 : J.execute) : f1;
|
|
4714
4722
|
}
|
|
4715
4723
|
}, N = (z) => {
|
|
4716
4724
|
b.value = z, g1(l.options);
|
|
4717
4725
|
}, W = () => {
|
|
4718
4726
|
if (!P.value) throw new Error('[SelectList@onToggleAll] method should not be called when "isMultiselect=false"');
|
|
4719
|
-
e1.value === 0 || e1.value && !u1.value ? s("select", b.value ?
|
|
4720
|
-
}, s1 = (z) => a.value =
|
|
4721
|
-
const z = Array.isArray(
|
|
4727
|
+
e1.value === 0 || e1.value && !u1.value ? s("select", b.value ? B.value.filter(b.value.execute) : B.value) : s("select", []);
|
|
4728
|
+
}, s1 = (z) => a.value = B.value.find((J) => J[l.identifier] === z[l.identifier]) || null, v1 = O(() => {
|
|
4729
|
+
const z = Array.isArray(c.value) && c.value.length > 0 && "options" in c.value[0] ? c.value.flatMap((J) => J.options) : c.value;
|
|
4722
4730
|
return z.length > 0 && z.every((J) => !!J.disabled);
|
|
4723
4731
|
}), x = async (z) => {
|
|
4724
|
-
if (
|
|
4725
|
-
let J =
|
|
4732
|
+
if (c.value.length === 0) return;
|
|
4733
|
+
let J = B.value.findIndex((f1) => {
|
|
4726
4734
|
var $1;
|
|
4727
4735
|
return f1.label === (($1 = a.value) == null ? void 0 : $1.label);
|
|
4728
4736
|
});
|
|
4729
|
-
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));
|
|
4730
4738
|
}, U = (z) => {
|
|
4731
4739
|
if (!C.value.children.length) return;
|
|
4732
4740
|
const J = null;
|
|
4733
4741
|
u.value;
|
|
4734
4742
|
}, q = () => {
|
|
4735
|
-
v.value = !v.value,
|
|
4743
|
+
v.value = !v.value, f.value.update();
|
|
4736
4744
|
}, d1 = O(() => v.value && L.value ? D.value : "border-transparent"), k1 = (z) => {
|
|
4737
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";
|
|
4738
4746
|
}, L1 = (z) => {
|
|
@@ -4763,7 +4771,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4763
4771
|
clearable: "",
|
|
4764
4772
|
value: h.value,
|
|
4765
4773
|
placeholder: z.placeholder,
|
|
4766
|
-
onChange: p(
|
|
4774
|
+
onChange: p(B1),
|
|
4767
4775
|
onClear: J[0] || (J[0] = (f1) => G(""))
|
|
4768
4776
|
}, null, 8, ["value", "placeholder", "onChange"])
|
|
4769
4777
|
])) : k("", !0),
|
|
@@ -4811,7 +4819,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4811
4819
|
}])
|
|
4812
4820
|
}, [
|
|
4813
4821
|
E(z.$slots, "options", {
|
|
4814
|
-
options:
|
|
4822
|
+
options: c.value,
|
|
4815
4823
|
hover: s1,
|
|
4816
4824
|
hoveredOption: a.value,
|
|
4817
4825
|
select: l1,
|
|
@@ -4837,7 +4845,7 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4837
4845
|
]),
|
|
4838
4846
|
w(p(X1), {
|
|
4839
4847
|
ref_key: "selectionScrollbarRef",
|
|
4840
|
-
ref:
|
|
4848
|
+
ref: f,
|
|
4841
4849
|
show: "",
|
|
4842
4850
|
tag: "ul",
|
|
4843
4851
|
class: T(["border-y", d1.value]),
|
|
@@ -4876,10 +4884,10 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4876
4884
|
},
|
|
4877
4885
|
emits: ["close", "open"],
|
|
4878
4886
|
setup(n, { expose: t, emit: e }) {
|
|
4879
|
-
const l = e, s = R1(), r = y(!1), a = y(),
|
|
4880
|
-
var
|
|
4881
|
-
return (
|
|
4882
|
-
}), { 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);
|
|
4883
4891
|
a1(() => r.value = !0);
|
|
4884
4892
|
const C = () => {
|
|
4885
4893
|
m(), r.value = !1;
|
|
@@ -4890,10 +4898,10 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4890
4898
|
const g = () => {
|
|
4891
4899
|
h(), l("open");
|
|
4892
4900
|
};
|
|
4893
|
-
return t({ close: C }), (
|
|
4901
|
+
return t({ close: C }), (f, b) => (o(), V(U1, { to: f.target }, [
|
|
4894
4902
|
w(p(he), {
|
|
4895
4903
|
show: r.value,
|
|
4896
|
-
type:
|
|
4904
|
+
type: f.overlayType,
|
|
4897
4905
|
class: "p-4",
|
|
4898
4906
|
onClick: u,
|
|
4899
4907
|
onClose: b[0] || (b[0] = (v) => l("close"))
|
|
@@ -4901,51 +4909,51 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
4901
4909
|
default: Z(() => [
|
|
4902
4910
|
w(ue, {
|
|
4903
4911
|
"enter-active-class": "transform transition ease-in-out duration-500",
|
|
4904
|
-
"enter-from-class":
|
|
4912
|
+
"enter-from-class": f.placement === "right" ? "translate-x-full" : "-translate-x-full",
|
|
4905
4913
|
"enter-to-class": "",
|
|
4906
4914
|
"leave-active-class": "transform transition ease-in-out duration-300",
|
|
4907
4915
|
"leave-class": "translate-x-0",
|
|
4908
|
-
"leave-to-class":
|
|
4916
|
+
"leave-to-class": f.placement === "right" ? "translate-x-full" : "-translate-x-full",
|
|
4909
4917
|
onAfterEnter: g
|
|
4910
4918
|
}, {
|
|
4911
4919
|
default: Z(() => [
|
|
4912
4920
|
W1(w(p(ge), {
|
|
4913
4921
|
ref_key: "windowRef",
|
|
4914
4922
|
ref: a,
|
|
4915
|
-
class: T(["flex flex-col overflow-hidden w-full h-full focus:outline-hidden", [
|
|
4923
|
+
class: T(["flex flex-col overflow-hidden w-full h-full focus:outline-hidden", [f.widthClass, {
|
|
4916
4924
|
"py-4": !p(s).default,
|
|
4917
|
-
"ml-auto":
|
|
4918
|
-
"mr-auto":
|
|
4925
|
+
"ml-auto": f.placement === "right",
|
|
4926
|
+
"mr-auto": f.placement === "left"
|
|
4919
4927
|
}]]),
|
|
4920
4928
|
style: { "pointer-events": "auto" }
|
|
4921
4929
|
}, {
|
|
4922
4930
|
default: Z(() => [
|
|
4923
|
-
|
|
4931
|
+
f.$slots.default ? E(f.$slots, "default", { key: 0 }) : (o(), V(p(me), { key: 1 }, Re({
|
|
4924
4932
|
main: Z(() => [
|
|
4925
4933
|
d("main", H0, [
|
|
4926
|
-
E(
|
|
4934
|
+
E(f.$slots, "main", { close: C })
|
|
4927
4935
|
])
|
|
4928
4936
|
]),
|
|
4929
4937
|
footer: Z(() => [
|
|
4930
4938
|
d("footer", V0, [
|
|
4931
|
-
E(
|
|
4939
|
+
E(f.$slots, "footer", { close: C })
|
|
4932
4940
|
])
|
|
4933
4941
|
]),
|
|
4934
4942
|
_: 2
|
|
4935
4943
|
}, [
|
|
4936
|
-
|
|
4944
|
+
f.title || f.$slots.header ? {
|
|
4937
4945
|
name: "header",
|
|
4938
4946
|
fn: Z(() => [
|
|
4939
|
-
|
|
4940
|
-
d("h4", null, K(
|
|
4941
|
-
|
|
4947
|
+
f.title ? (o(), i("header", y0, [
|
|
4948
|
+
d("h4", null, K(f.title), 1),
|
|
4949
|
+
f.closeable ? (o(), V(p(j), {
|
|
4942
4950
|
key: 0,
|
|
4943
4951
|
small: "",
|
|
4944
4952
|
icon: "close",
|
|
4945
4953
|
variant: "textSubtle",
|
|
4946
4954
|
onClick: u
|
|
4947
4955
|
})) : k("", !0)
|
|
4948
|
-
])) : E(
|
|
4956
|
+
])) : E(f.$slots, "header", {
|
|
4949
4957
|
key: 1,
|
|
4950
4958
|
close: C
|
|
4951
4959
|
})
|
|
@@ -5015,68 +5023,68 @@ const M2 = ["onKeydown"], Z2 = /* @__PURE__ */ $({
|
|
|
5015
5023
|
}
|
|
5016
5024
|
});
|
|
5017
5025
|
function k0(n, t) {
|
|
5018
|
-
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);
|
|
5019
5027
|
function m() {
|
|
5020
5028
|
if (!e.value) return;
|
|
5021
5029
|
const g = n();
|
|
5022
5030
|
l.value.forEach((I, P) => {
|
|
5023
|
-
I && r.value[P] &&
|
|
5031
|
+
I && r.value[P] && c.value.set(r.value[P], I.offsetWidth);
|
|
5024
5032
|
}), r.value.length === 0 && l.value.forEach((I, P) => {
|
|
5025
|
-
I && g[P] &&
|
|
5033
|
+
I && g[P] && c.value.set(g[P].id, I.offsetWidth);
|
|
5026
5034
|
}), s.value && (h.value = s.value.offsetWidth);
|
|
5027
|
-
const
|
|
5035
|
+
const f = e.value.clientWidth, b = g.map((I) => c.value.get(I.id) ?? 0), v = h.value;
|
|
5028
5036
|
let L = 0, D = n().length;
|
|
5029
5037
|
for (let I = 0; I < b.length; I++) {
|
|
5030
5038
|
const e1 = b.length - I - 1 > 0;
|
|
5031
|
-
if (L + b[I] + (e1 ? v : 0) >
|
|
5039
|
+
if (L + b[I] + (e1 ? v : 0) > f) {
|
|
5032
5040
|
D = I;
|
|
5033
5041
|
break;
|
|
5034
5042
|
}
|
|
5035
5043
|
L += b[I];
|
|
5036
5044
|
}
|
|
5037
|
-
const A = n().slice(0, D).map((I) => I.id), H = n().slice(D).map((I) => I.id),
|
|
5038
|
-
if (H.includes(
|
|
5039
|
-
const I = H.indexOf(
|
|
5045
|
+
const A = n().slice(0, D).map((I) => I.id), H = n().slice(D).map((I) => I.id), B = t();
|
|
5046
|
+
if (H.includes(B)) {
|
|
5047
|
+
const I = H.indexOf(B);
|
|
5040
5048
|
H.splice(I, 1);
|
|
5041
5049
|
const P = A.pop();
|
|
5042
|
-
P && H.unshift(P), A.push(
|
|
5050
|
+
P && H.unshift(P), A.push(B);
|
|
5043
5051
|
}
|
|
5044
5052
|
r.value = A, a.value = H;
|
|
5045
5053
|
}
|
|
5046
5054
|
r1(t, (g) => {
|
|
5047
5055
|
if (!a.value.includes(g)) return;
|
|
5048
|
-
const
|
|
5056
|
+
const f = [...r.value], b = [...a.value];
|
|
5049
5057
|
b.splice(b.indexOf(g), 1);
|
|
5050
|
-
const v =
|
|
5051
|
-
v && b.unshift(v),
|
|
5058
|
+
const v = f.pop();
|
|
5059
|
+
v && b.unshift(v), f.push(g), r.value = f, a.value = b;
|
|
5052
5060
|
}), a1(async () => {
|
|
5053
5061
|
await V1(), m(), new ResizeObserver(m).observe(e.value);
|
|
5054
5062
|
});
|
|
5055
5063
|
function C(g) {
|
|
5056
|
-
const
|
|
5064
|
+
const f = n().findIndex((v) => v.id === g), b = l.value[f];
|
|
5057
5065
|
b == null || b.focus();
|
|
5058
5066
|
}
|
|
5059
5067
|
function u(g) {
|
|
5060
|
-
const
|
|
5068
|
+
const f = n().map((D) => D.id), b = f.indexOf(t());
|
|
5061
5069
|
let v = b;
|
|
5062
5070
|
switch (g.key) {
|
|
5063
5071
|
case "ArrowRight":
|
|
5064
|
-
v = (b + 1) %
|
|
5072
|
+
v = (b + 1) % f.length;
|
|
5065
5073
|
break;
|
|
5066
5074
|
case "ArrowLeft":
|
|
5067
|
-
v = (b - 1 +
|
|
5075
|
+
v = (b - 1 + f.length) % f.length;
|
|
5068
5076
|
break;
|
|
5069
5077
|
case "Home":
|
|
5070
5078
|
v = 0;
|
|
5071
5079
|
break;
|
|
5072
5080
|
case "End":
|
|
5073
|
-
v =
|
|
5081
|
+
v = f.length - 1;
|
|
5074
5082
|
break;
|
|
5075
5083
|
default:
|
|
5076
5084
|
return;
|
|
5077
5085
|
}
|
|
5078
5086
|
g.preventDefault();
|
|
5079
|
-
const L =
|
|
5087
|
+
const L = f[v];
|
|
5080
5088
|
C(L);
|
|
5081
5089
|
}
|
|
5082
5090
|
return {
|
|
@@ -5097,28 +5105,28 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5097
5105
|
},
|
|
5098
5106
|
emits: ["select"],
|
|
5099
5107
|
setup(n, { emit: t }) {
|
|
5100
|
-
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(
|
|
5101
5109
|
() => e.tabs,
|
|
5102
5110
|
() => e.selectedTabId
|
|
5103
|
-
), C = (
|
|
5104
|
-
b && (r.value[
|
|
5105
|
-
}, u = O(() => e.tabs.filter((
|
|
5106
|
-
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", {
|
|
5107
5115
|
ref_key: "containerRef",
|
|
5108
5116
|
ref: s,
|
|
5109
5117
|
class: "flex w-full overflow-hidden",
|
|
5110
5118
|
role: "tablist",
|
|
5111
5119
|
"aria-orientation": "horizontal"
|
|
5112
5120
|
}, [
|
|
5113
|
-
(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", {
|
|
5114
5122
|
key: v.id,
|
|
5115
5123
|
tab: v,
|
|
5116
|
-
selected: v.id ===
|
|
5124
|
+
selected: v.id === f.selectedTabId,
|
|
5117
5125
|
attrs: {
|
|
5118
5126
|
id: `tab-${v.id}`,
|
|
5119
5127
|
role: "tab",
|
|
5120
|
-
tabindex: v.id ===
|
|
5121
|
-
"aria-selected": v.id ===
|
|
5128
|
+
tabindex: v.id === f.selectedTabId ? 0 : -1,
|
|
5129
|
+
"aria-selected": v.id === f.selectedTabId,
|
|
5122
5130
|
"aria-controls": `panel-${v.id}`,
|
|
5123
5131
|
onKeydown: p(m),
|
|
5124
5132
|
ref: (D) => C(L, D)
|
|
@@ -5131,7 +5139,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5131
5139
|
ref: a,
|
|
5132
5140
|
class: "inline-flex"
|
|
5133
5141
|
}, [
|
|
5134
|
-
E(
|
|
5142
|
+
E(f.$slots, "overflow-trigger", {
|
|
5135
5143
|
count: g.value.length,
|
|
5136
5144
|
tabs: g.value,
|
|
5137
5145
|
select: (v) => l("select", v)
|
|
@@ -5139,7 +5147,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5139
5147
|
], 512)) : k("", !0)
|
|
5140
5148
|
], 512));
|
|
5141
5149
|
}
|
|
5142
|
-
}), M0 = { class: "border-b border-default gap-0" }, Z0 = { class: "-mx-2 -mb-px" }, $0 = { class: "group flex flex-col justify-center gap-1" }, D0 = ["onClick"], T0 = { class: "relative text-xs font-medium truncate" },
|
|
5150
|
+
}), M0 = { class: "border-b border-default gap-0" }, Z0 = { class: "-mx-2 -mb-px" }, $0 = { class: "group flex flex-col justify-center gap-1" }, D0 = ["onClick"], T0 = { class: "relative text-xs font-medium truncate" }, B0 = { class: "flex w-full h-px px-2" }, S0 = { class: "group -mb-px flex flex-col justify-center gap-1" }, z0 = { class: "relative text-xs font-medium truncate" }, Qs = /* @__PURE__ */ $({
|
|
5143
5151
|
__name: "Example",
|
|
5144
5152
|
setup(n) {
|
|
5145
5153
|
const t = [
|
|
@@ -5176,9 +5184,9 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5176
5184
|
tabs: t,
|
|
5177
5185
|
onSelect: s[0] || (s[0] = (r) => e.value = r)
|
|
5178
5186
|
}, {
|
|
5179
|
-
tab: Z(({ tab: r, selected: a, attrs:
|
|
5187
|
+
tab: Z(({ tab: r, selected: a, attrs: c, select: h }) => [
|
|
5180
5188
|
d("div", $0, [
|
|
5181
|
-
d("button", wt(
|
|
5189
|
+
d("button", wt(c, {
|
|
5182
5190
|
class: ["flex items-center gap-1 h-6 px-2 rounded-lg cursor-pointer", {
|
|
5183
5191
|
"text-action border-action": a,
|
|
5184
5192
|
"text-tertiary border-default hover:bg-tertiary": !a
|
|
@@ -5190,7 +5198,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5190
5198
|
}, null, 8, ["name"]),
|
|
5191
5199
|
d("span", T0, K(r.label), 1)
|
|
5192
5200
|
], 16, D0),
|
|
5193
|
-
d("div",
|
|
5201
|
+
d("div", B0, [
|
|
5194
5202
|
d("div", {
|
|
5195
5203
|
class: T(["flex w-full h-full border-b", {
|
|
5196
5204
|
"border-action": a,
|
|
@@ -5200,13 +5208,13 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5200
5208
|
])
|
|
5201
5209
|
])
|
|
5202
5210
|
]),
|
|
5203
|
-
"overflow-trigger": Z(({ count: r, tabs: a, select:
|
|
5211
|
+
"overflow-trigger": Z(({ count: r, tabs: a, select: c }) => [
|
|
5204
5212
|
w(p(E1), {
|
|
5205
5213
|
trigger: "click",
|
|
5206
5214
|
placement: "bottom-end"
|
|
5207
5215
|
}, {
|
|
5208
5216
|
default: Z(({ visible: h }) => [
|
|
5209
|
-
d("div",
|
|
5217
|
+
d("div", S0, [
|
|
5210
5218
|
d("button", {
|
|
5211
5219
|
class: T(["flex items-center gap-1 h-6 px-2 rounded-lg cursor-pointer", {
|
|
5212
5220
|
"text-action border-action bg-tertiary": h,
|
|
@@ -5233,7 +5241,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5233
5241
|
variant: "single",
|
|
5234
5242
|
selected: !1,
|
|
5235
5243
|
onClick: (C) => {
|
|
5236
|
-
|
|
5244
|
+
c(m.id), h();
|
|
5237
5245
|
}
|
|
5238
5246
|
}, null, 8, ["option", "onClick"]))), 128))
|
|
5239
5247
|
]),
|
|
@@ -5269,7 +5277,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5269
5277
|
const e = n, l = t, s = y(), r = () => {
|
|
5270
5278
|
s.value.blur(), l("select", e.name);
|
|
5271
5279
|
};
|
|
5272
|
-
return (a,
|
|
5280
|
+
return (a, c) => (o(), i("button", {
|
|
5273
5281
|
ref_key: "tabRef",
|
|
5274
5282
|
ref: s,
|
|
5275
5283
|
disabled: a.disabled,
|
|
@@ -5431,14 +5439,14 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5431
5439
|
},
|
|
5432
5440
|
emits: ["update:entries", "raw-input-parsed", "enter-key-up"],
|
|
5433
5441
|
setup(n, { expose: t, emit: e }) {
|
|
5434
|
-
const l = e, s = y(), r = y(""), a = y([]),
|
|
5442
|
+
const l = e, s = y(), r = y(""), a = y([]), c = (b) => {
|
|
5435
5443
|
a.value = [...a.value, ...C(b)], l("update:entries", a.value);
|
|
5436
5444
|
}, h = (b) => {
|
|
5437
5445
|
a.value = [...C(b)], l("update:entries", a.value);
|
|
5438
5446
|
}, m = (b) => {
|
|
5439
5447
|
b.target && (r.value = b.target.value, b.data === "," || r.value.includes(",") ? (a.value = [...a.value, ...C(r.value)], r.value = "", l("update:entries", a.value), l("raw-input-parsed", null)) : l("raw-input-parsed", C(r.value)[0]));
|
|
5440
5448
|
}, C = (b) => b.trim().split(",").filter((v) => v.length).map((v, L) => {
|
|
5441
|
-
const D = v.trim(), A = [...n.validators].reduce((H,
|
|
5449
|
+
const D = v.trim(), A = [...n.validators].reduce((H, B, I, P) => (B.validate(D) || (H = B.errorMessage(D), P.splice(1)), H), null);
|
|
5442
5450
|
return {
|
|
5443
5451
|
id: L + D + Date.now(),
|
|
5444
5452
|
value: D,
|
|
@@ -5454,7 +5462,7 @@ const w0 = /* @__PURE__ */ $({
|
|
|
5454
5462
|
};
|
|
5455
5463
|
return t({ clear: () => {
|
|
5456
5464
|
a.value = [], r.value = "", l("update:entries", a.value);
|
|
5457
|
-
}, 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" }, {
|
|
5458
5466
|
default: Z(() => [
|
|
5459
5467
|
(o(!0), i(M, null, m1(a.value, (L) => (o(), V(p(x0), {
|
|
5460
5468
|
key: L.id,
|
|
@@ -5590,26 +5598,26 @@ const _s = /* @__PURE__ */ Z1(N0, [["render", W0]]), ze = Fe.create({
|
|
|
5590
5598
|
let a = r - 1;
|
|
5591
5599
|
for (; a >= 0 && /\w/.test(s[a]); )
|
|
5592
5600
|
a--;
|
|
5593
|
-
let
|
|
5594
|
-
for (;
|
|
5595
|
-
|
|
5596
|
-
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;
|
|
5597
5605
|
}, j0 = Fe.create({
|
|
5598
5606
|
name: "pasteImage",
|
|
5599
5607
|
addProseMirrorPlugins() {
|
|
5600
5608
|
return [
|
|
5601
|
-
new
|
|
5609
|
+
new St({
|
|
5602
5610
|
key: new zt("pasteImage"),
|
|
5603
5611
|
props: {
|
|
5604
5612
|
handlePaste: (n, t) => {
|
|
5605
5613
|
var a;
|
|
5606
|
-
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/"));
|
|
5607
5615
|
if (!l) return !1;
|
|
5608
5616
|
const s = l.getAsFile();
|
|
5609
5617
|
if (!s) return !1;
|
|
5610
5618
|
const r = new FileReader();
|
|
5611
5619
|
return r.onload = () => {
|
|
5612
|
-
const
|
|
5620
|
+
const c = r.result, { tr: h } = n.state, m = n.state.schema.nodes.image.create({ src: c });
|
|
5613
5621
|
n.dispatch(h.replaceSelectionWith(m));
|
|
5614
5622
|
}, r.readAsDataURL(s), !0;
|
|
5615
5623
|
}
|
|
@@ -5623,19 +5631,19 @@ const _s = /* @__PURE__ */ Z1(N0, [["render", W0]]), ze = Fe.create({
|
|
|
5623
5631
|
const r = e.doc.textBetween(0, e.doc.content.size, `
|
|
5624
5632
|
`, `
|
|
5625
5633
|
`), a = l;
|
|
5626
|
-
let
|
|
5627
|
-
for (;
|
|
5628
|
-
|
|
5634
|
+
let c = a - 1;
|
|
5635
|
+
for (; c >= 0 && /\w/.test(r[c]); )
|
|
5636
|
+
c--;
|
|
5629
5637
|
let h = a;
|
|
5630
5638
|
for (; h < r.length && /\w/.test(r[h]); )
|
|
5631
5639
|
h++;
|
|
5632
|
-
const m =
|
|
5640
|
+
const m = c + 1, C = h;
|
|
5633
5641
|
n.chain().focus().command(({ tr: u }) => (u.insertText(t, m, C), !0)).run();
|
|
5634
5642
|
};
|
|
5635
5643
|
function Q0(n, t, e) {
|
|
5636
5644
|
const l = y(null), s = () => {
|
|
5637
|
-
var a,
|
|
5638
|
-
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;
|
|
5639
5647
|
l.value !== r && (l.value = r);
|
|
5640
5648
|
};
|
|
5641
5649
|
return a1(() => {
|
|
@@ -5653,16 +5661,16 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5653
5661
|
},
|
|
5654
5662
|
emits: ["cancel", "inserted", "updateTargets"],
|
|
5655
5663
|
setup(n, { emit: t }) {
|
|
5656
|
-
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 = () => {
|
|
5657
5665
|
var H;
|
|
5658
|
-
|
|
5666
|
+
f.value ? A() : (H = C.value) == null || H.focus();
|
|
5659
5667
|
}, m = y(""), C = y(), u = (H) => m.value = H, g = () => {
|
|
5660
|
-
|
|
5661
|
-
},
|
|
5662
|
-
var H,
|
|
5663
|
-
return !m.value || !a.value ? !1 : ((H = m.value) == null ? void 0 : H.trim().length) > 0 && ((
|
|
5664
|
-
}), b = y(!1), v = ([H,
|
|
5665
|
-
var l1,
|
|
5668
|
+
f.value && A();
|
|
5669
|
+
}, f = O(() => {
|
|
5670
|
+
var H, B;
|
|
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
|
+
}), b = y(!1), v = ([H, B]) => {
|
|
5673
|
+
var l1, S;
|
|
5666
5674
|
const { state: I, view: P } = e.editor, { empty: e1, from: u1 } = I.selection, Y = I.doc.resolve(u1).marks().find((R) => R.type.name === "link");
|
|
5667
5675
|
if (Y)
|
|
5668
5676
|
m.value = Y.attrs.href;
|
|
@@ -5672,7 +5680,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5672
5680
|
const { from: R, to: G } = P.state.selection;
|
|
5673
5681
|
a.value = I.doc.textBetween(R, G, "");
|
|
5674
5682
|
}
|
|
5675
|
-
a.value.trim().length ? (l1 = C.value) == null || l1.focus() : (
|
|
5683
|
+
a.value.trim().length ? (l1 = C.value) == null || l1.focus() : (S = r.value) == null || S.focus(), l("updateTargets", [B]);
|
|
5676
5684
|
}, L = () => l("updateTargets", []), D = () => {
|
|
5677
5685
|
m.value = "", a.value = "";
|
|
5678
5686
|
}, A = () => {
|
|
@@ -5681,14 +5689,14 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5681
5689
|
if (e.editor.chain().focus().extendMarkRange("link").setLink({ href: m.value }).run(), b.value)
|
|
5682
5690
|
K0(e.editor, a.value);
|
|
5683
5691
|
else {
|
|
5684
|
-
const
|
|
5685
|
-
e.editor.view.dispatch(
|
|
5692
|
+
const B = e.editor.state.tr.insertText(a.value);
|
|
5693
|
+
e.editor.view.dispatch(B);
|
|
5686
5694
|
}
|
|
5687
5695
|
l("inserted");
|
|
5688
5696
|
}
|
|
5689
5697
|
(H = s.value) == null || H.close(), D();
|
|
5690
5698
|
};
|
|
5691
|
-
return (H,
|
|
5699
|
+
return (H, B) => (o(), V(p(E1), {
|
|
5692
5700
|
ref_key: "popperRef",
|
|
5693
5701
|
ref: s,
|
|
5694
5702
|
placement: "top",
|
|
@@ -5705,9 +5713,9 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5705
5713
|
content: Z(({ close: I }) => [
|
|
5706
5714
|
w(p(O1), { class: "p-4 flex flex-col gap-4" }, {
|
|
5707
5715
|
default: Z(() => [
|
|
5708
|
-
|
|
5716
|
+
B[2] || (B[2] = d("p", { class: "text-sm" }, " Insert link ", -1)),
|
|
5709
5717
|
d("section", q0, [
|
|
5710
|
-
|
|
5718
|
+
B[0] || (B[0] = d("div", {
|
|
5711
5719
|
style: { "font-size": "11px" },
|
|
5712
5720
|
class: "text-secondary font-medium"
|
|
5713
5721
|
}, " Text to display ", -1)),
|
|
@@ -5716,12 +5724,12 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5716
5724
|
ref: r,
|
|
5717
5725
|
placeholder: "Text to display",
|
|
5718
5726
|
value: a.value,
|
|
5719
|
-
onChange:
|
|
5727
|
+
onChange: c,
|
|
5720
5728
|
onEnter: h
|
|
5721
5729
|
}, null, 8, ["value"])
|
|
5722
5730
|
]),
|
|
5723
5731
|
d("section", X0, [
|
|
5724
|
-
|
|
5732
|
+
B[1] || (B[1] = d("div", {
|
|
5725
5733
|
style: { "font-size": "11px" },
|
|
5726
5734
|
class: "text-secondary font-medium"
|
|
5727
5735
|
}, " Address ", -1)),
|
|
@@ -5738,7 +5746,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5738
5746
|
"fill-container": "",
|
|
5739
5747
|
order: "confirm-last",
|
|
5740
5748
|
"confirm-label": "Insert",
|
|
5741
|
-
"confirm-disabled": !
|
|
5749
|
+
"confirm-disabled": !f.value,
|
|
5742
5750
|
onConfirm: A,
|
|
5743
5751
|
onCancel: (P) => {
|
|
5744
5752
|
D(), I();
|
|
@@ -5758,8 +5766,8 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5758
5766
|
},
|
|
5759
5767
|
setup(n) {
|
|
5760
5768
|
const t = y(), e = (s) => {
|
|
5761
|
-
var
|
|
5762
|
-
const r = (
|
|
5769
|
+
var c;
|
|
5770
|
+
const r = (c = s.target.files) == null ? void 0 : c[0];
|
|
5763
5771
|
if (!r) return;
|
|
5764
5772
|
const a = new FileReader();
|
|
5765
5773
|
a.onload = () => {
|
|
@@ -5805,23 +5813,23 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5805
5813
|
},
|
|
5806
5814
|
emits: ["cancel", "inserted"],
|
|
5807
5815
|
setup(n, { emit: t }) {
|
|
5808
|
-
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 = () => {
|
|
5809
5817
|
s.value = e.editor.getAttributes("link").href;
|
|
5810
5818
|
const { view: u, state: g } = e.editor;
|
|
5811
5819
|
if (s.value) {
|
|
5812
|
-
const
|
|
5820
|
+
const f = u.state.selection.ranges[0].$from.parent.content.content.filter(
|
|
5813
5821
|
(b) => b.marks.length > 0 && b.marks[0].attrs.href === s.value
|
|
5814
5822
|
);
|
|
5815
|
-
r.value =
|
|
5823
|
+
r.value = f[0].text;
|
|
5816
5824
|
} else {
|
|
5817
|
-
const { from:
|
|
5818
|
-
r.value = g.doc.textBetween(
|
|
5825
|
+
const { from: f, to: b } = u.state.selection;
|
|
5826
|
+
r.value = g.doc.textBetween(f, b, "");
|
|
5819
5827
|
}
|
|
5820
5828
|
};
|
|
5821
|
-
A1(() =>
|
|
5829
|
+
A1(() => c()), a1(() => a.value.focus());
|
|
5822
5830
|
const h = (u) => s.value = u, m = (u) => r.value = u, C = () => {
|
|
5823
5831
|
if (s.value && !s.value.includes("http") && (s.value = `https://${s.value}`), s.value) {
|
|
5824
|
-
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();
|
|
5825
5833
|
const u = e.editor.state.tr.insertText(r.value);
|
|
5826
5834
|
e.editor.view.dispatch(u), l("inserted");
|
|
5827
5835
|
}
|
|
@@ -5850,7 +5858,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5850
5858
|
w(p(Y1), {
|
|
5851
5859
|
"confirm-label": "Insert",
|
|
5852
5860
|
onConfirm: C,
|
|
5853
|
-
onCancel: g[0] || (g[0] = (
|
|
5861
|
+
onCancel: g[0] || (g[0] = (f) => l("cancel"))
|
|
5854
5862
|
})
|
|
5855
5863
|
]),
|
|
5856
5864
|
_: 1
|
|
@@ -5864,7 +5872,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5864
5872
|
a1(() => s.value.focus());
|
|
5865
5873
|
const r = () => {
|
|
5866
5874
|
e("cancel"), l.value = null;
|
|
5867
|
-
}, a = (h) => l.value = h,
|
|
5875
|
+
}, a = (h) => l.value = h, c = () => {
|
|
5868
5876
|
e("insert", l.value), l.value = null;
|
|
5869
5877
|
};
|
|
5870
5878
|
return (h, m) => (o(), V(it, null, {
|
|
@@ -5882,7 +5890,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5882
5890
|
d("div", lo, [
|
|
5883
5891
|
w(p(Y1), {
|
|
5884
5892
|
"confirm-label": "Insert",
|
|
5885
|
-
onConfirm:
|
|
5893
|
+
onConfirm: c,
|
|
5886
5894
|
onCancel: r
|
|
5887
5895
|
})
|
|
5888
5896
|
])
|
|
@@ -5920,7 +5928,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5920
5928
|
},
|
|
5921
5929
|
emits: ["blur", "change", "focus"],
|
|
5922
5930
|
setup(n, { expose: t, emit: e }) {
|
|
5923
|
-
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({
|
|
5924
5932
|
content: l.content,
|
|
5925
5933
|
extensions: [
|
|
5926
5934
|
Ne,
|
|
@@ -5943,7 +5951,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5943
5951
|
onCreate: () => {
|
|
5944
5952
|
m.value && u([m.value]);
|
|
5945
5953
|
},
|
|
5946
|
-
onUpdate: ({ editor:
|
|
5954
|
+
onUpdate: ({ editor: S }) => s("change", S.getHTML()),
|
|
5947
5955
|
onFocus: () => {
|
|
5948
5956
|
r.value = a.value = !0, s("focus");
|
|
5949
5957
|
},
|
|
@@ -5952,23 +5960,23 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5952
5960
|
}
|
|
5953
5961
|
});
|
|
5954
5962
|
T1(() => C());
|
|
5955
|
-
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) => {
|
|
5956
5964
|
var G;
|
|
5957
|
-
const R = L.includes(
|
|
5965
|
+
const R = L.includes(S) ? S : "end";
|
|
5958
5966
|
(G = g.value) == null || G.commands.focus(R);
|
|
5959
5967
|
}, A = () => {
|
|
5960
|
-
var
|
|
5961
|
-
(
|
|
5962
|
-
}, H = () => h.value = !1,
|
|
5968
|
+
var S;
|
|
5969
|
+
(S = g.value) == null || S.commands.blur(), a.value = !1;
|
|
5970
|
+
}, H = () => h.value = !1, B = () => a.value = !0, I = () => h.value = !1, P = (S) => {
|
|
5963
5971
|
var R;
|
|
5964
|
-
return (R = g.value) == null ? void 0 : R.commands.insertContent(
|
|
5965
|
-
}, e1 = (
|
|
5966
|
-
P(
|
|
5967
|
-
}, u1 = () => h.value = !0, Q = () =>
|
|
5968
|
-
return t({ blur: A, closeInsert: () =>
|
|
5972
|
+
return (R = g.value) == null ? void 0 : R.commands.insertContent(S);
|
|
5973
|
+
}, e1 = (S) => {
|
|
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) => {
|
|
5969
5977
|
var R;
|
|
5970
|
-
return (R = g.value) == null ? void 0 : R.commands.setContent(
|
|
5971
|
-
} }), (
|
|
5978
|
+
return (R = g.value) == null ? void 0 : R.commands.setContent(S);
|
|
5979
|
+
} }), (S, R) => p(g) ? (o(), i("section", {
|
|
5972
5980
|
key: 0,
|
|
5973
5981
|
ref_key: "editorRef",
|
|
5974
5982
|
ref: m,
|
|
@@ -5978,25 +5986,25 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
5978
5986
|
col: "",
|
|
5979
5987
|
align: "stretch",
|
|
5980
5988
|
class: T(["relative rounded-lg font-normal focus-within:border-default", {
|
|
5981
|
-
border: !
|
|
5982
|
-
"flex-1 min-h-0":
|
|
5989
|
+
border: !S.embedded,
|
|
5990
|
+
"flex-1 min-h-0": S.expandVertically,
|
|
5983
5991
|
"shadow-sm-outline border-action": a.value,
|
|
5984
|
-
"border-transparent": !a.value &&
|
|
5985
|
-
"border-subtle": !a.value && !
|
|
5992
|
+
"border-transparent": !a.value && S.embedded,
|
|
5993
|
+
"border-subtle": !a.value && !S.embedded
|
|
5986
5994
|
}])
|
|
5987
5995
|
}, {
|
|
5988
5996
|
default: Z(() => [
|
|
5989
|
-
|
|
5997
|
+
S.headerLabel || S.headerIcon ? (o(), V(p(o1), {
|
|
5990
5998
|
key: 0,
|
|
5991
5999
|
tag: "header",
|
|
5992
6000
|
class: T(["flex-0 h-10 px-3 gap-2 text-sm text-primary rounded-t-lg overflow-hidden", b.value])
|
|
5993
6001
|
}, {
|
|
5994
6002
|
default: Z(() => [
|
|
5995
|
-
|
|
6003
|
+
S.headerIcon ? (o(), V(p(t1), {
|
|
5996
6004
|
key: 0,
|
|
5997
|
-
name:
|
|
6005
|
+
name: S.headerIcon
|
|
5998
6006
|
}, null, 8, ["name"])) : k("", !0),
|
|
5999
|
-
|
|
6007
|
+
S.headerLabel ? (o(), i("span", oo, K(S.headerLabel), 1)) : k("", !0)
|
|
6000
6008
|
]),
|
|
6001
6009
|
_: 1
|
|
6002
6010
|
}, 8, ["class"])) : k("", !0),
|
|
@@ -6008,15 +6016,15 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6008
6016
|
default: Z(() => [
|
|
6009
6017
|
w(p(_e), {
|
|
6010
6018
|
class: T(["flex-1 overflow-y-auto rounded-t-lg focus:outline-hidden", {
|
|
6011
|
-
[
|
|
6012
|
-
[
|
|
6019
|
+
[S.editorContentClasses]: !a.value,
|
|
6020
|
+
[S.editorContentFocusClasses]: a.value
|
|
6013
6021
|
}]),
|
|
6014
6022
|
editor: p(g)
|
|
6015
6023
|
}, null, 8, ["class", "editor"])
|
|
6016
6024
|
]),
|
|
6017
6025
|
_: 1
|
|
6018
6026
|
}),
|
|
6019
|
-
|
|
6027
|
+
f.value ? (o(), i("nav", {
|
|
6020
6028
|
key: 1,
|
|
6021
6029
|
class: T(["flex-0 min-h-0 p-1 rounded-b-lg overflow-hidden", v.value])
|
|
6022
6030
|
}, [
|
|
@@ -6029,24 +6037,24 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6029
6037
|
icon: "undo",
|
|
6030
6038
|
tooltip: "Undo",
|
|
6031
6039
|
onClick: R[0] || (R[0] = (G) => {
|
|
6032
|
-
p(g).chain().focus().undo().run(),
|
|
6040
|
+
p(g).chain().focus().undo().run(), B();
|
|
6033
6041
|
})
|
|
6034
6042
|
}),
|
|
6035
6043
|
w(c1, {
|
|
6036
6044
|
icon: "redo",
|
|
6037
6045
|
tooltip: "Redo",
|
|
6038
6046
|
onClick: R[1] || (R[1] = (G) => {
|
|
6039
|
-
p(g).chain().focus().redo().run(),
|
|
6047
|
+
p(g).chain().focus().redo().run(), B();
|
|
6040
6048
|
})
|
|
6041
6049
|
})
|
|
6042
6050
|
], 64)) : k("", !0),
|
|
6043
|
-
|
|
6051
|
+
S.emphasis ? (o(), i(M, { key: 1 }, [
|
|
6044
6052
|
w(c1, {
|
|
6045
6053
|
icon: "bold",
|
|
6046
6054
|
tooltip: "Bold",
|
|
6047
6055
|
active: p(g).isActive("bold"),
|
|
6048
6056
|
onClick: R[2] || (R[2] = (G) => {
|
|
6049
|
-
p(g).chain().focus().toggleBold().run(),
|
|
6057
|
+
p(g).chain().focus().toggleBold().run(), B();
|
|
6050
6058
|
})
|
|
6051
6059
|
}, null, 8, ["active"]),
|
|
6052
6060
|
w(c1, {
|
|
@@ -6054,7 +6062,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6054
6062
|
tooltip: "Italic",
|
|
6055
6063
|
active: p(g).isActive("italic"),
|
|
6056
6064
|
onClick: R[3] || (R[3] = (G) => {
|
|
6057
|
-
p(g).chain().focus().toggleItalic().run(),
|
|
6065
|
+
p(g).chain().focus().toggleItalic().run(), B();
|
|
6058
6066
|
})
|
|
6059
6067
|
}, null, 8, ["active"]),
|
|
6060
6068
|
w(c1, {
|
|
@@ -6062,7 +6070,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6062
6070
|
tooltip: "Underline",
|
|
6063
6071
|
active: p(g).isActive("underline"),
|
|
6064
6072
|
onClick: R[4] || (R[4] = (G) => {
|
|
6065
|
-
p(g).chain().focus().toggleUnderline().run(),
|
|
6073
|
+
p(g).chain().focus().toggleUnderline().run(), B();
|
|
6066
6074
|
})
|
|
6067
6075
|
}, null, 8, ["active"])
|
|
6068
6076
|
], 64)) : k("", !0),
|
|
@@ -6072,7 +6080,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6072
6080
|
tooltip: "Yellow highlight",
|
|
6073
6081
|
active: p(g).isActive("highlight"),
|
|
6074
6082
|
onClick: R[5] || (R[5] = (G) => {
|
|
6075
|
-
p(g).chain().focus().toggleHighlight().run(),
|
|
6083
|
+
p(g).chain().focus().toggleHighlight().run(), B();
|
|
6076
6084
|
})
|
|
6077
6085
|
}, null, 8, ["active"])) : k("", !0),
|
|
6078
6086
|
p(se) ? (o(), V(c1, {
|
|
@@ -6081,7 +6089,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6081
6089
|
tooltip: "Heading",
|
|
6082
6090
|
active: p(g).isActive("heading", { level: 1 }),
|
|
6083
6091
|
onClick: R[6] || (R[6] = (G) => {
|
|
6084
|
-
p(g).chain().focus().toggleHeading({ level: 1 }).run(),
|
|
6092
|
+
p(g).chain().focus().toggleHeading({ level: 1 }).run(), B();
|
|
6085
6093
|
})
|
|
6086
6094
|
}, null, 8, ["active"])) : k("", !0),
|
|
6087
6095
|
p(ie) ? (o(), V(c1, {
|
|
@@ -6090,16 +6098,16 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6090
6098
|
tooltip: "Add link",
|
|
6091
6099
|
active: p(g).isActive("link"),
|
|
6092
6100
|
onClick: R[7] || (R[7] = (G) => {
|
|
6093
|
-
u1(),
|
|
6101
|
+
u1(), B();
|
|
6094
6102
|
})
|
|
6095
6103
|
}, null, 8, ["active"])) : k("", !0),
|
|
6096
|
-
|
|
6104
|
+
S.listStyles ? (o(), i(M, { key: 5 }, [
|
|
6097
6105
|
w(c1, {
|
|
6098
6106
|
icon: "bullet-list",
|
|
6099
6107
|
tooltip: "Bullet list",
|
|
6100
6108
|
active: p(g).isActive("bulletList"),
|
|
6101
6109
|
onClick: R[8] || (R[8] = (G) => {
|
|
6102
|
-
p(g).chain().focus().toggleBulletList().run(),
|
|
6110
|
+
p(g).chain().focus().toggleBulletList().run(), B();
|
|
6103
6111
|
})
|
|
6104
6112
|
}, null, 8, ["active"]),
|
|
6105
6113
|
w(c1, {
|
|
@@ -6107,7 +6115,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6107
6115
|
tooltip: "Numbered list",
|
|
6108
6116
|
active: p(g).isActive("orderedList"),
|
|
6109
6117
|
onClick: R[9] || (R[9] = (G) => {
|
|
6110
|
-
p(g).chain().focus().toggleOrderedList().run(),
|
|
6118
|
+
p(g).chain().focus().toggleOrderedList().run(), B();
|
|
6111
6119
|
})
|
|
6112
6120
|
}, null, 8, ["active"]),
|
|
6113
6121
|
w(c1, {
|
|
@@ -6115,7 +6123,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6115
6123
|
tooltip: "Indent right",
|
|
6116
6124
|
disabled: !p(g).can().sinkListItem("listItem"),
|
|
6117
6125
|
onClick: R[10] || (R[10] = (G) => {
|
|
6118
|
-
p(g).chain().focus().sinkListItem("listItem").run(),
|
|
6126
|
+
p(g).chain().focus().sinkListItem("listItem").run(), B();
|
|
6119
6127
|
})
|
|
6120
6128
|
}, null, 8, ["disabled"]),
|
|
6121
6129
|
w(c1, {
|
|
@@ -6123,25 +6131,25 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6123
6131
|
tooltip: "Indent left",
|
|
6124
6132
|
disabled: !p(g).can().liftListItem("listItem"),
|
|
6125
6133
|
onClick: R[11] || (R[11] = (G) => {
|
|
6126
|
-
p(g).chain().focus().liftListItem("listItem").run(),
|
|
6134
|
+
p(g).chain().focus().liftListItem("listItem").run(), B();
|
|
6127
6135
|
})
|
|
6128
6136
|
}, null, 8, ["disabled"])
|
|
6129
6137
|
], 64)) : k("", !0),
|
|
6130
|
-
|
|
6138
|
+
S.insert ? (o(), V(c1, {
|
|
6131
6139
|
key: 6,
|
|
6132
6140
|
highlight: "",
|
|
6133
|
-
icon:
|
|
6134
|
-
tooltip:
|
|
6141
|
+
icon: S.insertIcon,
|
|
6142
|
+
tooltip: S.insertTooltip,
|
|
6135
6143
|
active: p(g).isActive("insert"),
|
|
6136
6144
|
onClick: R[12] || (R[12] = (G) => {
|
|
6137
|
-
Q(),
|
|
6145
|
+
Q(), B();
|
|
6138
6146
|
})
|
|
6139
6147
|
}, null, 8, ["icon", "tooltip", "active"])) : k("", !0)
|
|
6140
6148
|
]),
|
|
6141
6149
|
_: 1
|
|
6142
6150
|
}),
|
|
6143
|
-
|
|
6144
|
-
E(
|
|
6151
|
+
S.$slots.menuRight ? (o(), i("div", so, [
|
|
6152
|
+
E(S.$slots, "menuRight")
|
|
6145
6153
|
])) : k("", !0)
|
|
6146
6154
|
]),
|
|
6147
6155
|
_: 3
|
|
@@ -6153,11 +6161,11 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6153
6161
|
onInserted: I,
|
|
6154
6162
|
onCancel: H
|
|
6155
6163
|
}, null, 8, ["editor"])) : k("", !0),
|
|
6156
|
-
|
|
6157
|
-
|
|
6164
|
+
c.value ? (o(), i(M, { key: 3 }, [
|
|
6165
|
+
S.$slots.insert ? E(S.$slots, "insert", { key: 0 }) : (o(), V(no, {
|
|
6158
6166
|
key: 1,
|
|
6159
6167
|
onInsert: e1,
|
|
6160
|
-
onCancel: R[13] || (R[13] = (G) =>
|
|
6168
|
+
onCancel: R[13] || (R[13] = (G) => c.value = !1)
|
|
6161
6169
|
}))
|
|
6162
6170
|
], 64)) : k("", !0)
|
|
6163
6171
|
]),
|
|
@@ -6201,15 +6209,15 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6201
6209
|
}), s = (r, a) => {
|
|
6202
6210
|
if (!r || !a) return [];
|
|
6203
6211
|
if (typeof r != "string" || typeof a != "string") return [];
|
|
6204
|
-
const
|
|
6212
|
+
const c = r.toLowerCase(), h = a.toLowerCase(), m = [];
|
|
6205
6213
|
let C = -1;
|
|
6206
6214
|
do
|
|
6207
|
-
C =
|
|
6215
|
+
C = c.indexOf(h, C + 1), C !== -1 && m.push(C, C + h.length);
|
|
6208
6216
|
while (C > -1);
|
|
6209
6217
|
const u = [];
|
|
6210
6218
|
let g = 0;
|
|
6211
|
-
for (const
|
|
6212
|
-
u.push(r.substring(g,
|
|
6219
|
+
for (const f of m)
|
|
6220
|
+
u.push(r.substring(g, f)), g = f;
|
|
6213
6221
|
return u.push(r.substring(m[m.length - 1], r.length)), u;
|
|
6214
6222
|
};
|
|
6215
6223
|
return A1(() => {
|
|
@@ -6222,10 +6230,10 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6222
6230
|
), (r, a) => (o(), i("span", ao, [
|
|
6223
6231
|
e.value.length === 0 ? (o(), i(M, { key: 0 }, [
|
|
6224
6232
|
Oe(K(r.value), 1)
|
|
6225
|
-
], 64)) : (o(!0), i(M, { key: 1 }, m1(e.value, (
|
|
6226
|
-
key: `${
|
|
6233
|
+
], 64)) : (o(!0), i(M, { key: 1 }, m1(e.value, (c, h) => (o(), i(M, {
|
|
6234
|
+
key: `${c}_${h}`
|
|
6227
6235
|
}, [
|
|
6228
|
-
r.highlight &&
|
|
6236
|
+
r.highlight && c.toLowerCase() === r.highlight.toLowerCase() ? (o(), i("span", {
|
|
6229
6237
|
key: 0,
|
|
6230
6238
|
class: T(["relative z-0 rounded", [
|
|
6231
6239
|
{
|
|
@@ -6235,7 +6243,7 @@ const q0 = { class: "space-y-1" }, X0 = { class: "space-y-1" }, e4 = /* @__PURE_
|
|
|
6235
6243
|
l.value,
|
|
6236
6244
|
r.textColorClass
|
|
6237
6245
|
]])
|
|
6238
|
-
}, K(
|
|
6246
|
+
}, K(c), 3)) : (o(), i("span", ro, K(c), 1))
|
|
6239
6247
|
], 64))), 128))
|
|
6240
6248
|
]));
|
|
6241
6249
|
}
|
|
@@ -6304,13 +6312,14 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6304
6312
|
}), r1(
|
|
6305
6313
|
() => n.placeholder,
|
|
6306
6314
|
(C) => {
|
|
6307
|
-
var
|
|
6308
|
-
|
|
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));
|
|
6309
6318
|
}
|
|
6310
6319
|
);
|
|
6311
|
-
const
|
|
6320
|
+
const c = ["start", "end", "all"], h = (C) => {
|
|
6312
6321
|
var g;
|
|
6313
|
-
const u =
|
|
6322
|
+
const u = c.includes(C) ? C : "end";
|
|
6314
6323
|
(g = r.value) == null || g.commands.focus(u);
|
|
6315
6324
|
};
|
|
6316
6325
|
return t({
|
|
@@ -6380,7 +6389,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6380
6389
|
"dark:text-slate-200 dark:hover:text-slate-100 dark:focus-visible:text-slate-100 dark:active:text-white"
|
|
6381
6390
|
]
|
|
6382
6391
|
), C.filter((u) => u).join(" ");
|
|
6383
|
-
}),
|
|
6392
|
+
}), c = O(() => l.disabled ? { background: "hsl(0 0% 90%)" } : {}), h = (C) => {
|
|
6384
6393
|
l.stopPropagation && C.stopPropagation(), l.disabled || s("click");
|
|
6385
6394
|
};
|
|
6386
6395
|
return t({ focus: () => r.value.focus() }), (C, u) => C.tooltip ? (o(), V(p(te), {
|
|
@@ -6396,7 +6405,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6396
6405
|
ref: r,
|
|
6397
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]),
|
|
6398
6407
|
disabled: C.disabled,
|
|
6399
|
-
style: n1(
|
|
6408
|
+
style: n1(c.value),
|
|
6400
6409
|
onClick: h,
|
|
6401
6410
|
onBlur: u[0] || (u[0] = (g) => s("blur"))
|
|
6402
6411
|
}, [
|
|
@@ -6462,9 +6471,9 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6462
6471
|
treeIsOpen: s,
|
|
6463
6472
|
actions: r
|
|
6464
6473
|
}) => {
|
|
6465
|
-
const a = /* @__PURE__ */ new Map(),
|
|
6466
|
-
if (!
|
|
6467
|
-
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]);
|
|
6468
6477
|
for (const u of h)
|
|
6469
6478
|
a.set(u[t], {
|
|
6470
6479
|
id: u[t],
|
|
@@ -6475,10 +6484,10 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6475
6484
|
children: []
|
|
6476
6485
|
});
|
|
6477
6486
|
const m = {
|
|
6478
|
-
id:
|
|
6479
|
-
label:
|
|
6487
|
+
id: c[t],
|
|
6488
|
+
label: c[l],
|
|
6480
6489
|
open: s,
|
|
6481
|
-
data:
|
|
6490
|
+
data: c,
|
|
6482
6491
|
actions: r,
|
|
6483
6492
|
children: []
|
|
6484
6493
|
}, C = [m];
|
|
@@ -6486,10 +6495,10 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6486
6495
|
const u = C.shift();
|
|
6487
6496
|
if (!u) break;
|
|
6488
6497
|
let g = !1;
|
|
6489
|
-
for (let
|
|
6490
|
-
if (h[
|
|
6491
|
-
const b = a.get(h[
|
|
6492
|
-
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;
|
|
6493
6502
|
}
|
|
6494
6503
|
if (C.length === 0 && !g && h.length > 0)
|
|
6495
6504
|
throw new Error(
|
|
@@ -6511,7 +6520,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6511
6520
|
var C;
|
|
6512
6521
|
a([s.value.$el]), (C = l.value) == null || C.focus();
|
|
6513
6522
|
}), T1(() => r());
|
|
6514
|
-
const
|
|
6523
|
+
const c = (C) => {
|
|
6515
6524
|
C.target && e("change", C.target.value);
|
|
6516
6525
|
}, h = (C) => {
|
|
6517
6526
|
C.stopPropagation(), C.preventDefault(), e("save");
|
|
@@ -6542,7 +6551,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6542
6551
|
],
|
|
6543
6552
|
onKeyup: u[1] || (u[1] = _(F(() => {
|
|
6544
6553
|
}, ["stop", "prevent"]), ["enter"])),
|
|
6545
|
-
onInput: F(
|
|
6554
|
+
onInput: F(c, ["stop", "prevent"])
|
|
6546
6555
|
}, null, 40, mo)
|
|
6547
6556
|
]),
|
|
6548
6557
|
d("aside", go, [
|
|
@@ -6585,7 +6594,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6585
6594
|
r1(() => s.value, (v, L) => {
|
|
6586
6595
|
!v && L && a.value && (a.value = !1), r.value = "";
|
|
6587
6596
|
});
|
|
6588
|
-
const r = y(""), a = y(!1),
|
|
6597
|
+
const r = y(""), a = y(!1), c = () => {
|
|
6589
6598
|
e("save", r.value), a.value = !0;
|
|
6590
6599
|
}, h = () => {
|
|
6591
6600
|
e("cancel-new-child"), r.value = "";
|
|
@@ -6595,7 +6604,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6595
6604
|
}, g = (v) => {
|
|
6596
6605
|
const L = [n.node, ...v];
|
|
6597
6606
|
e("key", { path: L, targetNode: L[L.length - 1] });
|
|
6598
|
-
},
|
|
6607
|
+
}, f = (v) => {
|
|
6599
6608
|
e("select", { path: [n.node, ...v], targetNode: [n.node, ...v][[n.node, ...v].length - 1] });
|
|
6600
6609
|
}, b = (v) => {
|
|
6601
6610
|
e("toggle", { path: [n.node, ...v], targetNode: [n.node, ...v][[n.node, ...v].length - 1] });
|
|
@@ -6638,7 +6647,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6638
6647
|
(H = v.node.children) != null && H.length || s.value ? (o(), i("button", {
|
|
6639
6648
|
key: 0,
|
|
6640
6649
|
class: "w-4 h-4 flex items-center justify-center rounded cursor-pointer",
|
|
6641
|
-
onClick: L[0] || (L[0] = F((
|
|
6650
|
+
onClick: L[0] || (L[0] = F((B) => e("toggle", { path: [v.node], targetNode: v.node }), ["stop", "prevent"]))
|
|
6642
6651
|
}, [
|
|
6643
6652
|
w(p(t1), {
|
|
6644
6653
|
name: v.node.open ? "chevron-down-small" : "chevron-right-small"
|
|
@@ -6681,7 +6690,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6681
6690
|
indentation: (v.level + 1) * v.indentationAmount,
|
|
6682
6691
|
saving: a.value,
|
|
6683
6692
|
onChange: L[10] || (L[10] = (H) => r.value = H),
|
|
6684
|
-
onSave:
|
|
6693
|
+
onSave: c,
|
|
6685
6694
|
onCancel: h
|
|
6686
6695
|
}, null, 8, ["value", "indentation", "saving"])) : k("", !0),
|
|
6687
6696
|
(o(!0), i(M, null, m1(v.node.children, (H) => (o(), V(D, {
|
|
@@ -6692,11 +6701,11 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6692
6701
|
"create-new-path": v.createNewPath,
|
|
6693
6702
|
selection: v.selection,
|
|
6694
6703
|
onAction: u,
|
|
6695
|
-
onCancelNewChild: L[11] || (L[11] = (
|
|
6696
|
-
onSave: L[12] || (L[12] = (
|
|
6697
|
-
onKey: L[13] || (L[13] = (
|
|
6698
|
-
onSelect: L[14] || (L[14] = (
|
|
6699
|
-
onToggle: L[15] || (L[15] = (
|
|
6704
|
+
onCancelNewChild: L[11] || (L[11] = (B) => e("cancel-new-child")),
|
|
6705
|
+
onSave: L[12] || (L[12] = (B) => e("save", B)),
|
|
6706
|
+
onKey: L[13] || (L[13] = (B) => g(B.path)),
|
|
6707
|
+
onSelect: L[14] || (L[14] = (B) => f(B.path)),
|
|
6708
|
+
onToggle: L[15] || (L[15] = (B) => b(B.path))
|
|
6700
6709
|
}, null, 8, ["indentation-amount", "level", "node", "create-new-path", "selection"]))), 128))
|
|
6701
6710
|
])) : k("", !0)
|
|
6702
6711
|
], 64);
|
|
@@ -6890,15 +6899,15 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
6890
6899
|
if (t.heightClass === "h-auto") {
|
|
6891
6900
|
if (e.value) {
|
|
6892
6901
|
a = 0;
|
|
6893
|
-
for (const
|
|
6894
|
-
a +=
|
|
6902
|
+
for (const c of e.value.children)
|
|
6903
|
+
a += c.offsetHeight;
|
|
6895
6904
|
a = `${a}px`;
|
|
6896
6905
|
}
|
|
6897
6906
|
return { height: a };
|
|
6898
6907
|
}
|
|
6899
6908
|
return {};
|
|
6900
6909
|
});
|
|
6901
|
-
return (a,
|
|
6910
|
+
return (a, c) => (o(), V(D1(a.type), {
|
|
6902
6911
|
ref_key: "containerRef",
|
|
6903
6912
|
ref: e,
|
|
6904
6913
|
class: T(["relative flex-none w-full overflow-hidden transition-height duration-500 ease-in-out", s.value]),
|
|
@@ -7029,21 +7038,21 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
7029
7038
|
return t === vt && ko.includes(e);
|
|
7030
7039
|
}, bt = (n, t) => {
|
|
7031
7040
|
const e = ct(n, t), [l] = e.filter((r) => gt(r)).map((r) => {
|
|
7032
|
-
const [a,
|
|
7041
|
+
const [a, c] = r.content.split(y1);
|
|
7033
7042
|
return {
|
|
7034
|
-
direction:
|
|
7043
|
+
direction: c,
|
|
7035
7044
|
field: r.value
|
|
7036
7045
|
};
|
|
7037
7046
|
});
|
|
7038
7047
|
return e.map((r) => {
|
|
7039
|
-
const { id: a, operator:
|
|
7048
|
+
const { id: a, operator: c } = Do(r.content);
|
|
7040
7049
|
return {
|
|
7041
7050
|
id: a,
|
|
7042
|
-
operator: wo[
|
|
7043
|
-
value: n[mt(t, a,
|
|
7051
|
+
operator: wo[c],
|
|
7052
|
+
value: n[mt(t, a, c)]
|
|
7044
7053
|
};
|
|
7045
7054
|
}).reduce((r, a) => (a.id === vt && a.operator === void 0 ? r.sorting = l : r.filters.push(a), r), { sorting: void 0, filters: [] });
|
|
7046
|
-
}, To = (n, t, e) => bt(n, t).filters.find((l) => l.id === e),
|
|
7055
|
+
}, To = (n, t, e) => bt(n, t).filters.find((l) => l.id === e), Bo = (n, t) => Mo(n, t), So = (n, t, e) => {
|
|
7047
7056
|
const l = To(n, t, e);
|
|
7048
7057
|
if (!l) return n;
|
|
7049
7058
|
const s = ht(l.id, ft[l.operator]);
|
|
@@ -7061,7 +7070,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
7061
7070
|
const e = J1(), l = pe();
|
|
7062
7071
|
if (!Ie())
|
|
7063
7072
|
throw new Error("useEmit must be called within a setup function.");
|
|
7064
|
-
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) => {
|
|
7065
7074
|
if (C.length === 0) {
|
|
7066
7075
|
r();
|
|
7067
7076
|
return;
|
|
@@ -7069,40 +7078,40 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
7069
7078
|
const u = C.join(q1);
|
|
7070
7079
|
m(u);
|
|
7071
7080
|
}, m = async (C) => {
|
|
7072
|
-
let u =
|
|
7081
|
+
let u = So(e.query, n, t.id);
|
|
7073
7082
|
C && (u = Ao(u, n, t.id, t.operator, C)), await l.push({ query: u });
|
|
7074
7083
|
};
|
|
7075
|
-
return { clearFilter: r, isActive: a, updateFilter: h, values:
|
|
7084
|
+
return { clearFilter: r, isActive: a, updateFilter: h, values: c };
|
|
7076
7085
|
}, D4 = ({ groupId: n, filters: t, sorting: e, items: l, remoteFilterMethod: s }) => {
|
|
7077
7086
|
const r = J1(), a = pe();
|
|
7078
7087
|
a1(() => v(r.query)), xe((A) => v(A.query));
|
|
7079
|
-
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 () => {
|
|
7080
7089
|
if (s && l)
|
|
7081
7090
|
throw new Error("You should only pass either 'items' (frontend filtering) or 'remoteFilterMethod' (backend filtering). You passed both.");
|
|
7082
7091
|
if (!s && !l)
|
|
7083
7092
|
throw new Error("Filters have to have either items or remoteFilterMethod to work. None was provided.");
|
|
7084
7093
|
if (s)
|
|
7085
7094
|
try {
|
|
7086
|
-
|
|
7095
|
+
c.value = !0;
|
|
7087
7096
|
const A = await s(g.value, C.value);
|
|
7088
|
-
h.value = A,
|
|
7097
|
+
h.value = A, c.value = !1;
|
|
7089
7098
|
} catch {
|
|
7090
|
-
|
|
7099
|
+
c.value = !1;
|
|
7091
7100
|
}
|
|
7092
7101
|
else l && (h.value = e.sortingMethod ? e.sortingMethod(
|
|
7093
7102
|
g.value,
|
|
7094
7103
|
l.value.filter((A) => C.value.every((H) => H.execute(H.value, H.operator, A)))
|
|
7095
7104
|
) : l.value.filter((A) => C.value.every((H) => H.execute(H.value, H.operator, A))));
|
|
7096
7105
|
};
|
|
7097
|
-
r1(l ? [g, C, l] : [g, C], () =>
|
|
7106
|
+
r1(l ? [g, C, l] : [g, C], () => f(), { immediate: !0, deep: !0 });
|
|
7098
7107
|
const v = (A) => {
|
|
7099
|
-
const { filters: H, sorting:
|
|
7100
|
-
g.value =
|
|
7108
|
+
const { filters: H, sorting: B } = bt(A, n);
|
|
7109
|
+
g.value = B ? D(B) : e.default, m.value.forEach((I) => {
|
|
7101
7110
|
const P = H.find((e1) => e1.id === I.id);
|
|
7102
7111
|
P ? (I.operator = P.operator, I.value = P.value) : (I.operator = "=", I.value = null);
|
|
7103
7112
|
});
|
|
7104
7113
|
}, L = async () => {
|
|
7105
|
-
const A =
|
|
7114
|
+
const A = Bo(r.query, n);
|
|
7106
7115
|
await a.push({ query: A });
|
|
7107
7116
|
}, D = (A) => ({
|
|
7108
7117
|
direction: A.direction,
|
|
@@ -7114,14 +7123,14 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
7114
7123
|
availableFilters: m,
|
|
7115
7124
|
filteringActive: u,
|
|
7116
7125
|
filteredItems: h,
|
|
7117
|
-
loadingItems:
|
|
7118
|
-
applyFilters:
|
|
7126
|
+
loadingItems: c,
|
|
7127
|
+
applyFilters: f,
|
|
7119
7128
|
clearFilters: L
|
|
7120
7129
|
};
|
|
7121
7130
|
}, T4 = (n) => {
|
|
7122
7131
|
const t = J1();
|
|
7123
7132
|
a1(() => n(t.query)), xe((e) => n(e.query));
|
|
7124
|
-
},
|
|
7133
|
+
}, B4 = (n) => {
|
|
7125
7134
|
const t = J1(), e = pe();
|
|
7126
7135
|
if (!Ie())
|
|
7127
7136
|
throw new Error("useEmit must be called within a setup function.");
|
|
@@ -7129,7 +7138,7 @@ const n4 = /* @__PURE__ */ Z1(io, [["render", po]]), o4 = /* @__PURE__ */ $({
|
|
|
7129
7138
|
let a = zo(t.query, n);
|
|
7130
7139
|
a = Ro(a, n, r.direction, r.field), await e.push({ query: a });
|
|
7131
7140
|
} };
|
|
7132
|
-
},
|
|
7141
|
+
}, S4 = (n) => n === "asc" ? "desc" : "asc";
|
|
7133
7142
|
function z4(n, t) {
|
|
7134
7143
|
if (!t || t.length === 0)
|
|
7135
7144
|
return t;
|
|
@@ -7146,8 +7155,8 @@ function z4(n, t) {
|
|
|
7146
7155
|
const u = new Date(r).getTime(), g = new Date(a).getTime();
|
|
7147
7156
|
if (!Number.isNaN(u) && !Number.isNaN(g))
|
|
7148
7157
|
return u - g;
|
|
7149
|
-
const
|
|
7150
|
-
return
|
|
7158
|
+
const f = String(r).toLowerCase(), b = String(a).toLowerCase();
|
|
7159
|
+
return f.localeCompare(b);
|
|
7151
7160
|
});
|
|
7152
7161
|
return n.direction === "desc" ? e.reverse() : e;
|
|
7153
7162
|
}
|
|
@@ -7185,8 +7194,8 @@ export {
|
|
|
7185
7194
|
Ds as BNavItem,
|
|
7186
7195
|
Ts as BNotification,
|
|
7187
7196
|
et as BNotificationBadge,
|
|
7188
|
-
|
|
7189
|
-
|
|
7197
|
+
Bs as BPagination,
|
|
7198
|
+
Ss as BPanelLayout,
|
|
7190
7199
|
zs as BPopCalendar,
|
|
7191
7200
|
As as BPopConfirm,
|
|
7192
7201
|
rt as BPopSelect,
|
|
@@ -7194,7 +7203,7 @@ export {
|
|
|
7194
7203
|
E1 as BPopper,
|
|
7195
7204
|
O1 as BPopperContent,
|
|
7196
7205
|
Es as BProgress,
|
|
7197
|
-
|
|
7206
|
+
Be as BResizablePanel,
|
|
7198
7207
|
Ae as BRunningSection,
|
|
7199
7208
|
he as BScreenOverlay,
|
|
7200
7209
|
Os as BScrollBottomLoader,
|
|
@@ -7237,7 +7246,7 @@ export {
|
|
|
7237
7246
|
V5 as dateIsAfter,
|
|
7238
7247
|
k5 as dateIsBefore,
|
|
7239
7248
|
fs as dateIsBetween,
|
|
7240
|
-
|
|
7249
|
+
S1 as datesAreEqual,
|
|
7241
7250
|
x5 as dbDate,
|
|
7242
7251
|
P5 as dbDateTime,
|
|
7243
7252
|
qn as debounce,
|
|
@@ -7261,7 +7270,7 @@ export {
|
|
|
7261
7270
|
de as hasValue,
|
|
7262
7271
|
ws as hasValueAndNotEmpty,
|
|
7263
7272
|
L4 as icons,
|
|
7264
|
-
|
|
7273
|
+
S4 as invertSortingDirection,
|
|
7265
7274
|
wo as lettersToOperator,
|
|
7266
7275
|
K1 as loopRange,
|
|
7267
7276
|
x1 as moveDate,
|
|
@@ -7276,8 +7285,8 @@ export {
|
|
|
7276
7285
|
O5 as readableDateTime,
|
|
7277
7286
|
I5 as readableDateTimeWithDay,
|
|
7278
7287
|
E5 as readableDateWithDay,
|
|
7279
|
-
|
|
7280
|
-
|
|
7288
|
+
So as removeFilterFromQuery,
|
|
7289
|
+
Bo as removeFiltersFromQuery,
|
|
7281
7290
|
Ct as removeQueryObjectFromQuery,
|
|
7282
7291
|
Mo as removeQueryObjectsFromQuery,
|
|
7283
7292
|
zo as removeSortingFromQuery,
|
|
@@ -7302,6 +7311,6 @@ export {
|
|
|
7302
7311
|
G5 as useMounted,
|
|
7303
7312
|
T4 as useMountedAndRouterUpdate,
|
|
7304
7313
|
ve as useNextFrame,
|
|
7305
|
-
|
|
7314
|
+
B4 as useSortingComponent,
|
|
7306
7315
|
j1 as useTrapFocus
|
|
7307
7316
|
};
|