@firstnoodle-ui/bui 0.0.38 → 0.0.40
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/confirm-cancel/ConfirmCancel.vue.d.ts +1 -14
- package/dist/components/confirm-cancel/index.d.ts +1 -0
- package/dist/components/confirm-cancel/types.d.ts +0 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/inline-form-wrapper/InlineFormWrapper.vue.d.ts +28 -0
- package/dist/components/inline-form-wrapper/index.d.ts +1 -0
- package/dist/components/tag-input/TagInput.vue.d.ts +2 -1
- package/dist/index.mjs +815 -755
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var rp = Object.defineProperty;
|
|
2
2
|
var ip = (n, e, t) => e in n ? rp(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Br = (n, e, t) => ip(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { createElementBlock as v, openBlock as g, renderSlot as J, createElementVNode as w, defineComponent as
|
|
4
|
+
import { createElementBlock as v, openBlock as g, renderSlot as J, createElementVNode as w, defineComponent as Z, toDisplayString as ge, normalizeStyle as Ee, createVNode as R, unref as k, ref as V, computed as ne, createBlock as O, withCtx as P, resolveDynamicComponent as Kn, normalizeClass as U, createCommentVNode as A, provide as op, onMounted as He, withModifiers as re, Fragment as E, renderList as Pt, onBeforeMount as Er, watch as Qe, toRef as sp, onBeforeUnmount as Ft, onUnmounted as ds, nextTick as bn, createStaticVNode as G, Teleport as Mi, withDirectives as Vr, vShow as xi, Transition as Gl, useSlots as Si, withKeys as ve, createSlots as ld, vModelText as lp, reactive as ad, createTextVNode as ud, shallowRef as ap, h as Hi, getCurrentInstance as up, watchEffect as dp, markRaw as cp, customRef as fp, resolveComponent as pp } from "vue";
|
|
5
5
|
const Mn = (n, e) => {
|
|
6
6
|
const t = n.__vccOpts || n;
|
|
7
7
|
for (const [r, i] of e)
|
|
@@ -25,7 +25,7 @@ function gp(n, e) {
|
|
|
25
25
|
}, null, -1))
|
|
26
26
|
]);
|
|
27
27
|
}
|
|
28
|
-
const ay = /* @__PURE__ */ Mn(hp, [["render", gp]]), yp = { class: "w-full space-y-4" }, vp = { class: "w-full h-12 flex items-center" }, Cp = { class: "flex-none pr-2 text-xs leading-none font-medium text-secondary" }, uy = /* @__PURE__ */
|
|
28
|
+
const ay = /* @__PURE__ */ Mn(hp, [["render", gp]]), yp = { class: "w-full space-y-4" }, vp = { class: "w-full h-12 flex items-center" }, Cp = { class: "flex-none pr-2 text-xs leading-none font-medium text-secondary" }, uy = /* @__PURE__ */ Z({
|
|
29
29
|
__name: "AsideSectionLabel",
|
|
30
30
|
props: {
|
|
31
31
|
label: {}
|
|
@@ -43,7 +43,7 @@ const ay = /* @__PURE__ */ Mn(hp, [["render", gp]]), yp = { class: "w-full space
|
|
|
43
43
|
])
|
|
44
44
|
]));
|
|
45
45
|
}
|
|
46
|
-
}), bp = { class: "py-1 min-w-0 leading-none truncate" }, t1 = /* @__PURE__ */
|
|
46
|
+
}), bp = { class: "py-1 min-w-0 leading-none truncate" }, t1 = /* @__PURE__ */ Z({
|
|
47
47
|
__name: "ButtonLabel",
|
|
48
48
|
props: {
|
|
49
49
|
label: {}
|
|
@@ -57,7 +57,7 @@ function Lp(n, e) {
|
|
|
57
57
|
J(n.$slots, "default")
|
|
58
58
|
]);
|
|
59
59
|
}
|
|
60
|
-
const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-orange-500 rounded-full border border-white dark:border-[var(--color-bg-primary)]" }, dd = /* @__PURE__ */
|
|
60
|
+
const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-orange-500 rounded-full border border-white dark:border-[var(--color-bg-primary)]" }, dd = /* @__PURE__ */ Z({
|
|
61
61
|
__name: "NotificationBadge",
|
|
62
62
|
props: {
|
|
63
63
|
inside: { type: Boolean }
|
|
@@ -65,7 +65,7 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
65
65
|
setup(n) {
|
|
66
66
|
return (e, t) => (g(), v("div", Mp));
|
|
67
67
|
}
|
|
68
|
-
}), r1 = /* @__PURE__ */
|
|
68
|
+
}), r1 = /* @__PURE__ */ Z({
|
|
69
69
|
__name: "NotificationBadge",
|
|
70
70
|
props: {
|
|
71
71
|
inside: { type: Boolean }
|
|
@@ -81,7 +81,7 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
81
81
|
R(k(dd))
|
|
82
82
|
], 4));
|
|
83
83
|
}
|
|
84
|
-
}), de = /* @__PURE__ */
|
|
84
|
+
}), de = /* @__PURE__ */ Z({
|
|
85
85
|
__name: "Button",
|
|
86
86
|
props: {
|
|
87
87
|
variant: { default: "fill" },
|
|
@@ -185,7 +185,7 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
185
185
|
}), u = ne(() => r.disabled ? r.variant === "fill" || r.variant === "destructive" ? { filter: "grayscale(50%)" } : { opacity: "0.5" } : {}), d = (f) => {
|
|
186
186
|
r.stopPropagation && f.stopPropagation(), !r.disabled && !r.loading && (r.href && window.open(r.href, "_blank"), r.mailto && window.open(`mailto:${r.mailto}`), i("click"));
|
|
187
187
|
};
|
|
188
|
-
return e({ focus: () => s.value.focus() }), (f, p) => f.tooltip ? (g(), O(k(
|
|
188
|
+
return e({ focus: () => s.value.focus() }), (f, p) => f.tooltip ? (g(), O(k(vs), {
|
|
189
189
|
key: 0,
|
|
190
190
|
hover: "",
|
|
191
191
|
text: f.tooltip,
|
|
@@ -193,7 +193,7 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
193
193
|
placement: f.tooltipPlacement,
|
|
194
194
|
"trigger-full-width": f.fullwidth
|
|
195
195
|
}, {
|
|
196
|
-
default:
|
|
196
|
+
default: P(() => [
|
|
197
197
|
(g(), O(Kn(o.value), {
|
|
198
198
|
ref_key: "buttonRef",
|
|
199
199
|
ref: s,
|
|
@@ -204,13 +204,13 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
204
204
|
onClick: d,
|
|
205
205
|
onBlur: p[0] || (p[0] = (h) => i("blur"))
|
|
206
206
|
}, {
|
|
207
|
-
default:
|
|
207
|
+
default: P(() => [
|
|
208
208
|
R(k(n1), null, {
|
|
209
|
-
default:
|
|
209
|
+
default: P(() => [
|
|
210
210
|
f.loading ? (g(), O(k(li), {
|
|
211
211
|
key: 0,
|
|
212
212
|
class: U(l.value)
|
|
213
|
-
}, null, 8, ["class"])) : f.icon ? (g(), O(k(
|
|
213
|
+
}, null, 8, ["class"])) : f.icon ? (g(), O(k(xe), {
|
|
214
214
|
key: 1,
|
|
215
215
|
name: f.icon
|
|
216
216
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -221,7 +221,7 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
221
221
|
]),
|
|
222
222
|
_: 1
|
|
223
223
|
}),
|
|
224
|
-
f.iconAfter ? (g(), O(k(
|
|
224
|
+
f.iconAfter ? (g(), O(k(xe), {
|
|
225
225
|
key: 0,
|
|
226
226
|
name: f.iconAfter,
|
|
227
227
|
class: "opacity-75"
|
|
@@ -247,13 +247,13 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
247
247
|
onClick: d,
|
|
248
248
|
onBlur: p[1] || (p[1] = (h) => i("blur"))
|
|
249
249
|
}, {
|
|
250
|
-
default:
|
|
250
|
+
default: P(() => [
|
|
251
251
|
R(k(n1), null, {
|
|
252
|
-
default:
|
|
252
|
+
default: P(() => [
|
|
253
253
|
f.loading ? (g(), O(k(li), {
|
|
254
254
|
key: 0,
|
|
255
255
|
class: U(l.value)
|
|
256
|
-
}, null, 8, ["class"])) : f.icon ? (g(), O(k(
|
|
256
|
+
}, null, 8, ["class"])) : f.icon ? (g(), O(k(xe), {
|
|
257
257
|
key: 1,
|
|
258
258
|
name: f.icon
|
|
259
259
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -264,7 +264,7 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
264
264
|
]),
|
|
265
265
|
_: 1
|
|
266
266
|
}),
|
|
267
|
-
f.iconAfter ? (g(), O(k(
|
|
267
|
+
f.iconAfter ? (g(), O(k(xe), {
|
|
268
268
|
key: 0,
|
|
269
269
|
name: f.iconAfter
|
|
270
270
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -276,7 +276,7 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
276
276
|
_: 1
|
|
277
277
|
}, 40, ["to", "target", "class", "disabled", "style"]));
|
|
278
278
|
}
|
|
279
|
-
}), dy = /* @__PURE__ */
|
|
279
|
+
}), dy = /* @__PURE__ */ Z({
|
|
280
280
|
__name: "ButtonGroup",
|
|
281
281
|
props: {
|
|
282
282
|
direction: { default: "horizontal" },
|
|
@@ -292,7 +292,7 @@ const n1 = /* @__PURE__ */ Mn(kp, [["render", Lp]]), Mp = { class: "w-3 h-3 bg-o
|
|
|
292
292
|
e.direction === "vertical" ? (s.classList.add("-mt-px"), s.classList.add("first:mt-0"), l === 0 ? s.nodeName === "BUTTON" ? s.classList.add("rounded-t-md") : (a = s.querySelector("button")) == null || a.classList.add("rounded-t-md") : l === r.value.children.length - 1 && (s.nodeName === "BUTTON" ? s.classList.add("rounded-b-md") : (u = s.querySelector("button")) == null || u.classList.add("rounded-b-md"))) : (s.classList.add("-ml-px"), s.classList.add("first:ml-0"), l === 0 ? s.nodeName === "BUTTON" ? s.classList.add("rounded-l-md") : (d = s.querySelector("button")) == null || d.classList.add("rounded-l-md") : l === r.value.children.length - 1 && (s.nodeName === "BUTTON" ? s.classList.add("rounded-r-md") : (c = s.querySelector("button")) == null || c.classList.add("rounded-r-md")));
|
|
293
293
|
});
|
|
294
294
|
};
|
|
295
|
-
return
|
|
295
|
+
return He(i), (o, s) => (g(), v("div", {
|
|
296
296
|
ref_key: "buttonGroupRef",
|
|
297
297
|
ref: r,
|
|
298
298
|
class: U(t.value),
|
|
@@ -317,7 +317,7 @@ const i1 = {
|
|
|
317
317
|
Y: "YEAR",
|
|
318
318
|
DC: "DECADE"
|
|
319
319
|
/* DECADE */
|
|
320
|
-
},
|
|
320
|
+
}, Xl = {
|
|
321
321
|
MILLISECOND: 1,
|
|
322
322
|
SECOND: 1e3,
|
|
323
323
|
MINUTE: 6e4,
|
|
@@ -332,7 +332,7 @@ const i1 = {
|
|
|
332
332
|
if (Object.keys(fe).includes(n))
|
|
333
333
|
return n;
|
|
334
334
|
throw new Error(`Invalid time unit [${n}}]`);
|
|
335
|
-
}, Sp = { class: "w-56 grid grid-cols-7" }, Hp = { class: "col-span-5 flex items-center justify-center text-sm" }, Tp = { class: "w-56 grid grid-cols-2 py-8" }, Ep = /* @__PURE__ */
|
|
335
|
+
}, Sp = { class: "w-56 grid grid-cols-7" }, Hp = { class: "col-span-5 flex items-center justify-center text-sm" }, Tp = { class: "w-56 grid grid-cols-2 py-8" }, Ep = /* @__PURE__ */ Z({
|
|
336
336
|
__name: "DecadeView",
|
|
337
337
|
props: {
|
|
338
338
|
viewData: {}
|
|
@@ -375,7 +375,7 @@ const i1 = {
|
|
|
375
375
|
function fd(n) {
|
|
376
376
|
return n && n.charAt(0).toUpperCase() + n.slice(1);
|
|
377
377
|
}
|
|
378
|
-
const Vp = /* @__PURE__ */
|
|
378
|
+
const Vp = /* @__PURE__ */ Z({
|
|
379
379
|
__name: "DateButton",
|
|
380
380
|
props: {
|
|
381
381
|
date: {}
|
|
@@ -395,7 +395,7 @@ const Vp = /* @__PURE__ */ F({
|
|
|
395
395
|
onClick: i[0] || (i[0] = re((o) => t("click", r.date), ["stop"]))
|
|
396
396
|
}, ge(r.date.label), 3));
|
|
397
397
|
}
|
|
398
|
-
}), Op = { class: "w-56 grid grid-cols-7" }, Ap = { class: "col-span-3 h-8 flex items-center justify-center" }, Dp = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, Np = { class: "w-56 grid grid-cols-7" }, Rp = /* @__PURE__ */
|
|
398
|
+
}), Op = { class: "w-56 grid grid-cols-7" }, Ap = { class: "col-span-3 h-8 flex items-center justify-center" }, Dp = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, Np = { class: "w-56 grid grid-cols-7" }, Rp = /* @__PURE__ */ Z({
|
|
399
399
|
__name: "MonthView",
|
|
400
400
|
props: {
|
|
401
401
|
viewData: {},
|
|
@@ -456,7 +456,7 @@ const Vp = /* @__PURE__ */ F({
|
|
|
456
456
|
])
|
|
457
457
|
]));
|
|
458
458
|
}
|
|
459
|
-
}), Pp = { class: "w-56 grid grid-cols-7" }, $p = { class: "col-span-5 text-sm flex justify-center items-center" }, Ip = { class: "w-56 grid grid-cols-2 py-4" }, Bp = /* @__PURE__ */
|
|
459
|
+
}), Pp = { class: "w-56 grid grid-cols-7" }, $p = { class: "col-span-5 text-sm flex justify-center items-center" }, Ip = { class: "w-56 grid grid-cols-2 py-4" }, Bp = /* @__PURE__ */ Z({
|
|
460
460
|
__name: "YearView",
|
|
461
461
|
props: {
|
|
462
462
|
viewData: {},
|
|
@@ -512,17 +512,17 @@ const Ue = (n) => {
|
|
|
512
512
|
return null;
|
|
513
513
|
if (r === fe.MONTH || r === fe.YEAR)
|
|
514
514
|
throw new Error("Cannot calculate delta in months or years");
|
|
515
|
-
return (n.getTime() - e.getTime()) /
|
|
515
|
+
return (n.getTime() - e.getTime()) / Xl[r];
|
|
516
516
|
}, dr = (n, e) => (n = Ue(n), e = Ue(e), !n || !e ? !1 : n.getUTCFullYear() === e.getUTCFullYear() && n.getUTCMonth() === e.getUTCMonth() && n.getUTCDate() === e.getUTCDate()), Zp = (n, e, t = !1) => (n = Ue(n), e = Ue(e), n.getTime() > e.getTime() || t && dr(n, e)), Fp = (n, e, t = !1) => (n = Ue(n), e = Ue(e), n.getTime() < e.getTime() || t && dr(n, e)), fy = (n, e, t, r = !1) => Zp(n, e, r) && Fp(n, t, r), zp = (n) => (n = Ue(n), Math.floor(n.getUTCFullYear() / 10) * 10), py = (n) => {
|
|
517
517
|
const e = Ue(n);
|
|
518
518
|
e.setUTCDate(e.getUTCDate() + 4 - (e.getUTCDay() || 7));
|
|
519
519
|
const t = new Date(Date.UTC(e.getUTCFullYear(), 0, 1));
|
|
520
|
-
return e && t ? Math.ceil(((e.getTime() - t.getTime()) /
|
|
520
|
+
return e && t ? Math.ceil(((e.getTime() - t.getTime()) / Xl.DAY + 1) / 7) : 0;
|
|
521
521
|
}, Zr = (n, e, t) => {
|
|
522
522
|
const r = Ue(n), i = cd(t);
|
|
523
523
|
if (i === fe.MONTH) throw new Error("Cannot move date by month");
|
|
524
524
|
let o = r.getTime();
|
|
525
|
-
return o += e *
|
|
525
|
+
return o += e * Xl[i], r.setTime(o), r;
|
|
526
526
|
}, hy = (n) => {
|
|
527
527
|
console.log(
|
|
528
528
|
n.toISOString().substr(0, 16).replace("T", " ")
|
|
@@ -780,7 +780,7 @@ const qp = (n = null, e) => {
|
|
|
780
780
|
}, yy = ["dbDate", "dbDateTime", "readableDate", "readableDateWithDay", "readableDateTime", "readableDateTimeWithDay"], th = { class: "flex flex-col" }, nh = { class: "p-4" }, rh = {
|
|
781
781
|
key: 0,
|
|
782
782
|
class: "flex items-center justify-end p-4 border-t border-default"
|
|
783
|
-
}, ih = /* @__PURE__ */
|
|
783
|
+
}, ih = /* @__PURE__ */ Z({
|
|
784
784
|
__name: "CalendarView",
|
|
785
785
|
props: {
|
|
786
786
|
value: { default: null },
|
|
@@ -852,7 +852,7 @@ const qp = (n = null, e) => {
|
|
|
852
852
|
])) : A("", !0)
|
|
853
853
|
]));
|
|
854
854
|
}
|
|
855
|
-
}), oh = /* @__PURE__ */
|
|
855
|
+
}), oh = /* @__PURE__ */ Z({
|
|
856
856
|
__name: "CircleIndicator",
|
|
857
857
|
props: {
|
|
858
858
|
value: { type: Boolean },
|
|
@@ -869,7 +869,7 @@ const qp = (n = null, e) => {
|
|
|
869
869
|
"border-default bg-secondary hover:bg-secondary": t.disabled && !t.value
|
|
870
870
|
}])
|
|
871
871
|
}, [
|
|
872
|
-
e.value ? (g(), O(k(
|
|
872
|
+
e.value ? (g(), O(k(xe), {
|
|
873
873
|
key: 0,
|
|
874
874
|
name: e.value,
|
|
875
875
|
class: "text-white"
|
|
@@ -887,7 +887,7 @@ const qp = (n = null, e) => {
|
|
|
887
887
|
viewBox: "0 0 10 8",
|
|
888
888
|
fill: "none",
|
|
889
889
|
xmlns: "http://www.w3.org/2000/svg"
|
|
890
|
-
}, ah = /* @__PURE__ */
|
|
890
|
+
}, ah = /* @__PURE__ */ Z({
|
|
891
891
|
__name: "DefaultIndicator",
|
|
892
892
|
props: {
|
|
893
893
|
value: { type: Boolean },
|
|
@@ -910,7 +910,7 @@ const qp = (n = null, e) => {
|
|
|
910
910
|
]))) : A("", !0)
|
|
911
911
|
], 2));
|
|
912
912
|
}
|
|
913
|
-
}), hd = /* @__PURE__ */
|
|
913
|
+
}), hd = /* @__PURE__ */ Z({
|
|
914
914
|
__name: "Checkbox",
|
|
915
915
|
props: {
|
|
916
916
|
label: {},
|
|
@@ -960,7 +960,7 @@ const qp = (n = null, e) => {
|
|
|
960
960
|
}, hh = {
|
|
961
961
|
key: 0,
|
|
962
962
|
class: "relative"
|
|
963
|
-
}, vy = /* @__PURE__ */
|
|
963
|
+
}, vy = /* @__PURE__ */ Z({
|
|
964
964
|
__name: "Collapse",
|
|
965
965
|
props: {
|
|
966
966
|
alignment: { default: "right" },
|
|
@@ -986,7 +986,7 @@ const qp = (n = null, e) => {
|
|
|
986
986
|
d && i.value.blur();
|
|
987
987
|
});
|
|
988
988
|
const u = V(null);
|
|
989
|
-
return
|
|
989
|
+
return He(() => {
|
|
990
990
|
t.sticky && (u.value = new IntersectionObserver(
|
|
991
991
|
([d]) => {
|
|
992
992
|
t.open && (s.value = d.intersectionRatio < 1);
|
|
@@ -1034,11 +1034,10 @@ const qp = (n = null, e) => {
|
|
|
1034
1034
|
])) : A("", !0)
|
|
1035
1035
|
]));
|
|
1036
1036
|
}
|
|
1037
|
-
}),
|
|
1037
|
+
}), fs = /* @__PURE__ */ Z({
|
|
1038
1038
|
__name: "ConfirmCancel",
|
|
1039
1039
|
props: {
|
|
1040
1040
|
order: { default: "confirm-first" },
|
|
1041
|
-
cancelButtonIsText: { type: Boolean, default: !1 },
|
|
1042
1041
|
cancelDisabled: { type: Boolean, default: !1 },
|
|
1043
1042
|
cancelIcon: {},
|
|
1044
1043
|
cancelLabel: { default: "Cancel" },
|
|
@@ -1054,45 +1053,45 @@ const qp = (n = null, e) => {
|
|
|
1054
1053
|
},
|
|
1055
1054
|
emits: ["confirm", "cancel"],
|
|
1056
1055
|
setup(n, { emit: e }) {
|
|
1057
|
-
const t =
|
|
1058
|
-
return (
|
|
1059
|
-
col:
|
|
1056
|
+
const t = e, r = ne(() => n.order === "confirm-first");
|
|
1057
|
+
return (i, o) => (g(), O(k(Le), {
|
|
1058
|
+
col: i.vertical,
|
|
1060
1059
|
class: "gap-2"
|
|
1061
1060
|
}, {
|
|
1062
|
-
default:
|
|
1063
|
-
|
|
1061
|
+
default: P(() => [
|
|
1062
|
+
r.value ? (g(), O(k(de), {
|
|
1064
1063
|
key: 0,
|
|
1065
|
-
small:
|
|
1064
|
+
small: i.small,
|
|
1066
1065
|
"stop-propagation": "",
|
|
1067
|
-
icon:
|
|
1068
|
-
label:
|
|
1069
|
-
variant:
|
|
1070
|
-
disabled:
|
|
1071
|
-
loading:
|
|
1072
|
-
class: U({ "flex-1":
|
|
1073
|
-
onClick:
|
|
1066
|
+
icon: i.confirmIcon,
|
|
1067
|
+
label: i.confirmLabel,
|
|
1068
|
+
variant: i.confirmVariant,
|
|
1069
|
+
disabled: i.confirmDisabled,
|
|
1070
|
+
loading: i.loading,
|
|
1071
|
+
class: U({ "flex-1": i.fillContainer }),
|
|
1072
|
+
onClick: o[0] || (o[0] = (s) => t("confirm"))
|
|
1074
1073
|
}, null, 8, ["small", "icon", "label", "variant", "disabled", "loading", "class"])) : A("", !0),
|
|
1075
1074
|
R(k(de), {
|
|
1076
|
-
variant:
|
|
1075
|
+
variant: i.cancelVariant,
|
|
1077
1076
|
"stop-propagation": "",
|
|
1078
|
-
disabled:
|
|
1079
|
-
small:
|
|
1080
|
-
icon:
|
|
1081
|
-
label:
|
|
1082
|
-
class: U({ "flex-1":
|
|
1083
|
-
onClick:
|
|
1077
|
+
disabled: i.cancelDisabled,
|
|
1078
|
+
small: i.small,
|
|
1079
|
+
icon: i.cancelIcon,
|
|
1080
|
+
label: i.cancelLabel,
|
|
1081
|
+
class: U({ "flex-1": i.fillContainer }),
|
|
1082
|
+
onClick: o[1] || (o[1] = (s) => t("cancel"))
|
|
1084
1083
|
}, null, 8, ["variant", "disabled", "small", "icon", "label", "class"]),
|
|
1085
|
-
|
|
1084
|
+
r.value ? A("", !0) : (g(), O(k(de), {
|
|
1086
1085
|
key: 1,
|
|
1087
|
-
small:
|
|
1086
|
+
small: i.small,
|
|
1088
1087
|
"stop-propagation": "",
|
|
1089
|
-
icon:
|
|
1090
|
-
label:
|
|
1091
|
-
variant:
|
|
1092
|
-
disabled:
|
|
1093
|
-
loading:
|
|
1094
|
-
class: U({ "flex-1":
|
|
1095
|
-
onClick:
|
|
1088
|
+
icon: i.confirmIcon,
|
|
1089
|
+
label: i.confirmLabel,
|
|
1090
|
+
variant: i.confirmVariant,
|
|
1091
|
+
disabled: i.confirmDisabled,
|
|
1092
|
+
loading: i.loading,
|
|
1093
|
+
class: U({ "flex-1": i.fillContainer }),
|
|
1094
|
+
onClick: o[2] || (o[2] = (s) => t("confirm"))
|
|
1096
1095
|
}, null, 8, ["small", "icon", "label", "variant", "disabled", "loading", "class"]))
|
|
1097
1096
|
]),
|
|
1098
1097
|
_: 1
|
|
@@ -1122,11 +1121,11 @@ function Ql(n) {
|
|
|
1122
1121
|
const e = (t) => {
|
|
1123
1122
|
t.key === "Escape" && n();
|
|
1124
1123
|
};
|
|
1125
|
-
|
|
1124
|
+
He(() => window.addEventListener("keydown", e)), ds(() => window.removeEventListener("keydown", e));
|
|
1126
1125
|
}
|
|
1127
1126
|
const mh = () => {
|
|
1128
1127
|
const n = V(!1);
|
|
1129
|
-
return
|
|
1128
|
+
return He(() => n.value = !0), { mounted: n };
|
|
1130
1129
|
}, ea = () => ({
|
|
1131
1130
|
nextFrame: (n) => {
|
|
1132
1131
|
requestAnimationFrame(() => {
|
|
@@ -1154,7 +1153,7 @@ const mh = () => {
|
|
|
1154
1153
|
key: 1,
|
|
1155
1154
|
class: "absolute w-16 right-0 z-10 h-full flex items-center justify-end pl-2",
|
|
1156
1155
|
style: { background: "linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%, rgba(255,255,255,1) 100%)" }
|
|
1157
|
-
}, o1 = 120, Cy = /* @__PURE__ */
|
|
1156
|
+
}, o1 = 120, Cy = /* @__PURE__ */ Z({
|
|
1158
1157
|
__name: "ContentSlider",
|
|
1159
1158
|
setup(n, { expose: e }) {
|
|
1160
1159
|
const t = V(0), r = V(null), i = V(null), o = V(r.value ? r.value.clientWidth : 0), s = V(i.value ? i.value.scrollWidth : 0), l = () => t.value = Math.max(0, t.value - o1), a = () => {
|
|
@@ -1166,7 +1165,7 @@ const mh = () => {
|
|
|
1166
1165
|
});
|
|
1167
1166
|
});
|
|
1168
1167
|
};
|
|
1169
|
-
return
|
|
1168
|
+
return He(f), e({ update: f }), (p, h) => (g(), v("div", {
|
|
1170
1169
|
ref_key: "listContainer",
|
|
1171
1170
|
ref: r,
|
|
1172
1171
|
class: "relative flex-1 flex items-center py-1 overflow-hidden whitespace-nowrap"
|
|
@@ -1434,7 +1433,7 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1434
1433
|
}, E0 = {
|
|
1435
1434
|
key: 149,
|
|
1436
1435
|
d: "M1.67045 7.12399C1.87812 6.94198 2.19402 6.96278 2.37603 7.17045C3.48422 8.43486 5.56103 9.3323 8.00001 9.3323C10.439 9.3323 12.5158 8.43486 13.624 7.17045C13.806 6.96278 14.1219 6.94198 14.3296 7.12399C14.5372 7.306 14.5581 7.6219 14.376 7.82957C14.1691 8.06569 13.9374 8.28852 13.6838 8.49653L14.8536 9.66625C15.0488 9.86151 15.0488 10.1781 14.8536 10.3734C14.6583 10.5686 14.3417 10.5686 14.1464 10.3734L12.8524 9.07929C12.1896 9.47611 11.4305 9.79042 10.607 10.005L10.9903 11.9217C11.0445 12.1925 10.8689 12.4559 10.5981 12.5101C10.3273 12.5642 10.0639 12.3886 10.0097 12.1179L9.62769 10.2077C9.10187 10.2895 8.55696 10.3323 8.00001 10.3323C7.44307 10.3323 6.89815 10.2895 6.37233 10.2077L5.9903 12.1179C5.93614 12.3886 5.67273 12.5642 5.40195 12.5101C5.13117 12.4559 4.95556 12.1925 5.00971 11.9217L5.39307 10.005C4.56953 9.79041 3.81042 9.47611 3.14764 9.07928L1.85355 10.3734C1.65829 10.5686 1.34171 10.5686 1.14645 10.3734C0.951183 10.1781 0.951183 9.86151 1.14645 9.66625L2.31618 8.49652C2.0626 8.28851 1.83093 8.06568 1.62399 7.82957C1.44198 7.6219 1.46278 7.306 1.67045 7.12399Z"
|
|
1437
|
-
},
|
|
1436
|
+
}, xe = /* @__PURE__ */ Z({
|
|
1438
1437
|
__name: "Icon",
|
|
1439
1438
|
props: {
|
|
1440
1439
|
name: {}
|
|
@@ -1831,7 +1830,7 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1831
1830
|
], 64)) : A("", !0)
|
|
1832
1831
|
]));
|
|
1833
1832
|
}
|
|
1834
|
-
}), V0 = /* @__PURE__ */
|
|
1833
|
+
}), V0 = /* @__PURE__ */ Z({
|
|
1835
1834
|
__name: "DeleteButton",
|
|
1836
1835
|
emits: ["click"],
|
|
1837
1836
|
setup(n) {
|
|
@@ -1839,10 +1838,10 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1839
1838
|
class: "flex items-center justify-center w-4 h-4 rounded-full hover:bg-black/15 focus-visible:bg-black/15 active:bg-black/25 dark:hover:bg-white/15 dark:focus-visible:bg-white/15 dark:active:bg-white/25 text-primary cursor-pointer",
|
|
1840
1839
|
onClick: t[0] || (t[0] = re((r) => e.$emit("click"), ["stop", "prevent"]))
|
|
1841
1840
|
}, [
|
|
1842
|
-
R(k(
|
|
1841
|
+
R(k(xe), { name: "close" })
|
|
1843
1842
|
]));
|
|
1844
1843
|
}
|
|
1845
|
-
}), O0 = { class: "flex items-center justify-between w-full h-12" }, A0 = { key: 0 }, D0 = { key: 1 }, N0 = { class: "flex items-center h-12" }, ky = /* @__PURE__ */
|
|
1844
|
+
}), O0 = { class: "flex items-center justify-between w-full h-12" }, A0 = { key: 0 }, D0 = { key: 1 }, N0 = { class: "flex items-center h-12" }, ky = /* @__PURE__ */ Z({
|
|
1846
1845
|
__name: "Dialog",
|
|
1847
1846
|
props: {
|
|
1848
1847
|
closeable: { type: Boolean, default: !0 },
|
|
@@ -1853,7 +1852,7 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1853
1852
|
emits: ["close", "open"],
|
|
1854
1853
|
setup(n, { expose: e, emit: t }) {
|
|
1855
1854
|
const r = t, i = V(!1), o = V();
|
|
1856
|
-
|
|
1855
|
+
He(() => i.value = !0);
|
|
1857
1856
|
const s = () => i.value = !1, l = () => n.closeable && s();
|
|
1858
1857
|
return n.closeable && Ql(l), e({ close: s }), (a, u) => (g(), O(Mi, { to: a.target }, [
|
|
1859
1858
|
R(k(la), {
|
|
@@ -1863,19 +1862,19 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1863
1862
|
onClick: l,
|
|
1864
1863
|
onClose: u[1] || (u[1] = (d) => r("close"))
|
|
1865
1864
|
}, {
|
|
1866
|
-
default:
|
|
1865
|
+
default: P(() => [
|
|
1867
1866
|
R(k(md), {
|
|
1868
1867
|
onTransitionAfterEnter: u[0] || (u[0] = (d) => r("open"))
|
|
1869
1868
|
}, {
|
|
1870
|
-
default:
|
|
1869
|
+
default: P(() => [
|
|
1871
1870
|
Vr(R(k(aa), {
|
|
1872
1871
|
ref_key: "windowRef",
|
|
1873
1872
|
ref: o,
|
|
1874
1873
|
class: "h-64 max-w-2xl md:w-1/2 md:max-w-lg p-4 md:px-8"
|
|
1875
1874
|
}, {
|
|
1876
|
-
default:
|
|
1875
|
+
default: P(() => [
|
|
1877
1876
|
R(k(Qa), null, {
|
|
1878
|
-
header:
|
|
1877
|
+
header: P(() => [
|
|
1879
1878
|
w("header", O0, [
|
|
1880
1879
|
a.title ? (g(), v("h4", A0, ge(a.title), 1)) : (g(), v("h4", D0, [
|
|
1881
1880
|
J(a.$slots, "title")
|
|
@@ -1889,10 +1888,10 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1889
1888
|
})) : A("", !0)
|
|
1890
1889
|
])
|
|
1891
1890
|
]),
|
|
1892
|
-
main:
|
|
1891
|
+
main: P(() => [
|
|
1893
1892
|
J(a.$slots, "main")
|
|
1894
1893
|
]),
|
|
1895
|
-
footer:
|
|
1894
|
+
footer: P(() => [
|
|
1896
1895
|
w("footer", N0, [
|
|
1897
1896
|
J(a.$slots, "footer")
|
|
1898
1897
|
])
|
|
@@ -1912,12 +1911,12 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1912
1911
|
}, 8, ["show", "type"])
|
|
1913
1912
|
], 8, ["to"]));
|
|
1914
1913
|
}
|
|
1915
|
-
}), md = /* @__PURE__ */
|
|
1914
|
+
}), md = /* @__PURE__ */ Z({
|
|
1916
1915
|
__name: "FadeInUp",
|
|
1917
1916
|
emits: ["transition-after-enter"],
|
|
1918
1917
|
setup(n, { emit: e }) {
|
|
1919
1918
|
const t = e;
|
|
1920
|
-
return (r, i) => (g(), O(
|
|
1919
|
+
return (r, i) => (g(), O(Gl, {
|
|
1921
1920
|
"enter-active-class": "transform transition ease-in-out duration-300 delay-100",
|
|
1922
1921
|
"enter-from-class": "translate-y-2 opacity-0",
|
|
1923
1922
|
"enter-to-class": "",
|
|
@@ -1926,7 +1925,7 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1926
1925
|
"leave-to-class": "translate-y-2 opacity-0",
|
|
1927
1926
|
onAfterEnter: i[0] || (i[0] = (o) => t("transition-after-enter"))
|
|
1928
1927
|
}, {
|
|
1929
|
-
default:
|
|
1928
|
+
default: P(() => [
|
|
1930
1929
|
J(r.$slots, "default")
|
|
1931
1930
|
]),
|
|
1932
1931
|
_: 3
|
|
@@ -1935,7 +1934,7 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1935
1934
|
}), R0 = { class: "text-sm" }, P0 = {
|
|
1936
1935
|
key: 0,
|
|
1937
1936
|
class: "h-4 px-1 min-w-4 flex items-center justify-center rounded-full text-xs font-medium bg-black/15"
|
|
1938
|
-
}, $0 = /* @__PURE__ */
|
|
1937
|
+
}, $0 = /* @__PURE__ */ Z({
|
|
1939
1938
|
__name: "FilterChip",
|
|
1940
1939
|
props: {
|
|
1941
1940
|
label: {},
|
|
@@ -1963,14 +1962,14 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1963
1962
|
})) : A("", !0)
|
|
1964
1963
|
], 2));
|
|
1965
1964
|
}
|
|
1966
|
-
}), I0 = { class: "opacity-0" }, B0 = { key: 1 }, wy = /* @__PURE__ */
|
|
1965
|
+
}), I0 = { class: "opacity-0" }, B0 = { key: 1 }, wy = /* @__PURE__ */ Z({
|
|
1967
1966
|
__name: "FirstPaint",
|
|
1968
1967
|
props: {
|
|
1969
1968
|
delayIndex: {}
|
|
1970
1969
|
},
|
|
1971
1970
|
setup(n) {
|
|
1972
1971
|
const e = n;
|
|
1973
|
-
return
|
|
1972
|
+
return He(() => {
|
|
1974
1973
|
if (e.delayIndex < 1 || e.delayIndex > 20)
|
|
1975
1974
|
throw new Error("delayIndex has to be between 1 and 20");
|
|
1976
1975
|
}), (t, r) => (g(), v("div", {
|
|
@@ -1981,7 +1980,7 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
1981
1980
|
])
|
|
1982
1981
|
], 2));
|
|
1983
1982
|
}
|
|
1984
|
-
}),
|
|
1983
|
+
}), Le = /* @__PURE__ */ Z({
|
|
1985
1984
|
__name: "Flexbox",
|
|
1986
1985
|
props: {
|
|
1987
1986
|
align: { default: "center" },
|
|
@@ -2013,7 +2012,7 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
2013
2012
|
return (o, s) => (g(), O(Kn(o.tag), {
|
|
2014
2013
|
class: U(i.value)
|
|
2015
2014
|
}, {
|
|
2016
|
-
default:
|
|
2015
|
+
default: P(() => [
|
|
2017
2016
|
J(o.$slots, "default")
|
|
2018
2017
|
]),
|
|
2019
2018
|
_: 3
|
|
@@ -2025,11 +2024,11 @@ const by = /* @__PURE__ */ Mn(Ch, [["render", bh]]), kh = {
|
|
|
2025
2024
|
clearTimeout(t), t = setTimeout(() => n.apply(void 0, r), e);
|
|
2026
2025
|
};
|
|
2027
2026
|
};
|
|
2028
|
-
let
|
|
2027
|
+
let Ps;
|
|
2029
2028
|
const F0 = () => {
|
|
2030
2029
|
var i;
|
|
2031
2030
|
if (F0 !== void 0)
|
|
2032
|
-
return
|
|
2031
|
+
return Ps;
|
|
2033
2032
|
const n = document.createElement("div");
|
|
2034
2033
|
n.className = "el-scrollbar__wrap", n.style.visibility = "hidden", n.style.width = "100px", n.style.position = "absolute", n.style.top = "-9999px", document.body.appendChild(n);
|
|
2035
2034
|
const e = n.offsetWidth;
|
|
@@ -2037,7 +2036,7 @@ const F0 = () => {
|
|
|
2037
2036
|
const t = document.createElement("div");
|
|
2038
2037
|
t.style.width = "100%", n.appendChild(t);
|
|
2039
2038
|
const r = t.offsetWidth;
|
|
2040
|
-
return (i = n.parentNode) == null || i.removeChild(n),
|
|
2039
|
+
return (i = n.parentNode) == null || i.removeChild(n), Ps = e - r, Ps;
|
|
2041
2040
|
}, yd = (n, e) => {
|
|
2042
2041
|
if (!e) {
|
|
2043
2042
|
n.scrollTop = 0;
|
|
@@ -2049,7 +2048,7 @@ const F0 = () => {
|
|
|
2049
2048
|
t.push(r), r = r.offsetParent;
|
|
2050
2049
|
const i = e.offsetTop + t.reduce((a, u) => a + u.offsetTop, 0), o = i + e.offsetHeight, s = n.scrollTop, l = s + n.clientHeight;
|
|
2051
2050
|
i < s ? n.scrollTop = i : o > l && (n.scrollTop = o - n.clientHeight);
|
|
2052
|
-
}, s1 = /* @__PURE__ */
|
|
2051
|
+
}, s1 = /* @__PURE__ */ Z({
|
|
2053
2052
|
__name: "Aside",
|
|
2054
2053
|
props: {
|
|
2055
2054
|
width: { default: 256 },
|
|
@@ -2098,7 +2097,7 @@ const F0 = () => {
|
|
|
2098
2097
|
}, null, 34)) : A("", !0)
|
|
2099
2098
|
], 6));
|
|
2100
2099
|
}
|
|
2101
|
-
}), z0 = { class: "relative w-full h-full overflow-hidden bg-primary" }, Ly = /* @__PURE__ */
|
|
2100
|
+
}), z0 = { class: "relative w-full h-full overflow-hidden bg-primary" }, Ly = /* @__PURE__ */ Z({
|
|
2102
2101
|
__name: "HorizontalLayout",
|
|
2103
2102
|
props: {
|
|
2104
2103
|
asideLeftBgColorClass: { default: "" },
|
|
@@ -2132,7 +2131,7 @@ const F0 = () => {
|
|
|
2132
2131
|
(m) => s.value = a.value = m
|
|
2133
2132
|
);
|
|
2134
2133
|
const h = Si();
|
|
2135
|
-
return
|
|
2134
|
+
return He(() => {
|
|
2136
2135
|
l.value = t.asideLeftVisible && h["aside-left"] ? o.value : 0, a.value = t.asideRightVisible && h["aside-right"] ? s.value : 0;
|
|
2137
2136
|
}), (m, y) => (g(), v("div", z0, [
|
|
2138
2137
|
k(h)["aside-left"] && m.asideLeftVisible ? (g(), O(s1, {
|
|
@@ -2146,7 +2145,7 @@ const F0 = () => {
|
|
|
2146
2145
|
onResizeEnd: y[1] || (y[1] = (b) => i.value = !1),
|
|
2147
2146
|
onTransitioning: c
|
|
2148
2147
|
}, {
|
|
2149
|
-
default:
|
|
2148
|
+
default: P(() => [
|
|
2150
2149
|
J(m.$slots, "aside-left")
|
|
2151
2150
|
]),
|
|
2152
2151
|
_: 3
|
|
@@ -2168,17 +2167,78 @@ const F0 = () => {
|
|
|
2168
2167
|
onResizeEnd: y[3] || (y[3] = (b) => i.value = !1),
|
|
2169
2168
|
onTransitioning: p
|
|
2170
2169
|
}, {
|
|
2171
|
-
default:
|
|
2170
|
+
default: P(() => [
|
|
2172
2171
|
J(m.$slots, "aside-right")
|
|
2173
2172
|
]),
|
|
2174
2173
|
_: 3
|
|
2175
2174
|
}, 8, ["border", "draggable", "width"])) : A("", !0)
|
|
2176
2175
|
]));
|
|
2177
2176
|
}
|
|
2177
|
+
}), My = /* @__PURE__ */ Z({
|
|
2178
|
+
__name: "InlineFormWrapper",
|
|
2179
|
+
props: {
|
|
2180
|
+
order: {},
|
|
2181
|
+
cancelDisabled: { type: Boolean },
|
|
2182
|
+
cancelIcon: {},
|
|
2183
|
+
cancelLabel: { default: "Cancel" },
|
|
2184
|
+
cancelVariant: {},
|
|
2185
|
+
confirmDisabled: { type: Boolean },
|
|
2186
|
+
confirmIcon: {},
|
|
2187
|
+
confirmLabel: { default: "Save" },
|
|
2188
|
+
confirmVariant: {},
|
|
2189
|
+
fillContainer: { type: Boolean },
|
|
2190
|
+
loading: { type: Boolean, default: !1 },
|
|
2191
|
+
small: { type: Boolean },
|
|
2192
|
+
vertical: { type: Boolean }
|
|
2193
|
+
},
|
|
2194
|
+
emits: ["confirm", "cancel"],
|
|
2195
|
+
setup(n, { emit: e }) {
|
|
2196
|
+
const t = e;
|
|
2197
|
+
return (r, i) => (g(), O(k(Le), {
|
|
2198
|
+
col: "",
|
|
2199
|
+
tabindex: "0",
|
|
2200
|
+
class: "border border-default bg-primary rounded-lg focus:outline-none focus-within:shadow-sm focus-within:border-action"
|
|
2201
|
+
}, {
|
|
2202
|
+
default: P(() => [
|
|
2203
|
+
J(r.$slots, "default"),
|
|
2204
|
+
R(k(Le), {
|
|
2205
|
+
tag: "footer",
|
|
2206
|
+
justify: "between",
|
|
2207
|
+
class: "gap-2 px-2 py-2 border-t border-default"
|
|
2208
|
+
}, {
|
|
2209
|
+
default: P(() => [
|
|
2210
|
+
R(k(Le), null, {
|
|
2211
|
+
default: P(() => [
|
|
2212
|
+
J(r.$slots, "footer-left")
|
|
2213
|
+
]),
|
|
2214
|
+
_: 3
|
|
2215
|
+
}),
|
|
2216
|
+
R(k(Le), { class: "gap-2" }, {
|
|
2217
|
+
default: P(() => [
|
|
2218
|
+
R(k(fs), {
|
|
2219
|
+
small: "",
|
|
2220
|
+
order: "confirm-last",
|
|
2221
|
+
loading: r.loading,
|
|
2222
|
+
"confirm-label": r.confirmLabel,
|
|
2223
|
+
"confirm-disabled": r.confirmDisabled,
|
|
2224
|
+
"cancel-label": r.cancelLabel,
|
|
2225
|
+
onCancel: i[0] || (i[0] = (o) => t("cancel")),
|
|
2226
|
+
onConfirm: i[1] || (i[1] = (o) => t("confirm"))
|
|
2227
|
+
}, null, 8, ["loading", "confirm-label", "confirm-disabled", "cancel-label"])
|
|
2228
|
+
]),
|
|
2229
|
+
_: 1
|
|
2230
|
+
})
|
|
2231
|
+
]),
|
|
2232
|
+
_: 3
|
|
2233
|
+
})
|
|
2234
|
+
]),
|
|
2235
|
+
_: 3
|
|
2236
|
+
}));
|
|
2237
|
+
}
|
|
2178
2238
|
}), j0 = ["autofocus", "disabled", "value", "placeholder"], W0 = ["auto-focus", "disabled", "type", "value", "placeholder", "onKeydown"], U0 = {
|
|
2179
2239
|
key: 3,
|
|
2180
2240
|
class: "px-1"
|
|
2181
|
-
}, mo = /* @__PURE__ */
|
|
2241
|
+
}, mo = /* @__PURE__ */ Z({
|
|
2182
2242
|
__name: "Input",
|
|
2183
2243
|
props: {
|
|
2184
2244
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2194,7 +2254,7 @@ const F0 = () => {
|
|
|
2194
2254
|
emits: ["change", "clear", "enter"],
|
|
2195
2255
|
setup(n, { expose: e, emit: t }) {
|
|
2196
2256
|
const r = t, i = V(), o = V();
|
|
2197
|
-
|
|
2257
|
+
He(() => {
|
|
2198
2258
|
var d, c;
|
|
2199
2259
|
n.multiline ? (d = i.value) == null || d.focus() : (c = o.value) == null || c.focus();
|
|
2200
2260
|
});
|
|
@@ -2225,7 +2285,7 @@ const F0 = () => {
|
|
|
2225
2285
|
"items-center": !d.multiline
|
|
2226
2286
|
}])
|
|
2227
2287
|
}, [
|
|
2228
|
-
R(k(
|
|
2288
|
+
R(k(xe), {
|
|
2229
2289
|
name: d.icon,
|
|
2230
2290
|
class: "text-secondary"
|
|
2231
2291
|
}, null, 8, ["name"])
|
|
@@ -2271,7 +2331,7 @@ const F0 = () => {
|
|
|
2271
2331
|
})) : A("", !0)
|
|
2272
2332
|
], 2));
|
|
2273
2333
|
}
|
|
2274
|
-
}), l1 = /* @__PURE__ */
|
|
2334
|
+
}), l1 = /* @__PURE__ */ Z({
|
|
2275
2335
|
__name: "StepButton",
|
|
2276
2336
|
props: {
|
|
2277
2337
|
direction: {}
|
|
@@ -2287,7 +2347,7 @@ const F0 = () => {
|
|
|
2287
2347
|
}]),
|
|
2288
2348
|
onClick: s[0] || (s[0] = (l) => r("click"))
|
|
2289
2349
|
}, [
|
|
2290
|
-
R(k(
|
|
2350
|
+
R(k(xe), {
|
|
2291
2351
|
name: o.direction === "up" ? "chevron-up-small" : "chevron-down-small"
|
|
2292
2352
|
}, null, 8, ["name"])
|
|
2293
2353
|
], 2));
|
|
@@ -2295,7 +2355,7 @@ const F0 = () => {
|
|
|
2295
2355
|
}), K0 = {
|
|
2296
2356
|
key: 0,
|
|
2297
2357
|
class: "absolute top-0 left-0 pr-1 pl-2 h-full flex items-center rounded-lg bg-transparent cursor-pointer"
|
|
2298
|
-
}, q0 = ["min", "max", "auto-focus", "disabled", "value", "placeholder", "onKeydown"], Y0 = { class: "flex flex-col w-8 h-full -space-y-px -mt-px -mr-px" },
|
|
2358
|
+
}, q0 = ["min", "max", "auto-focus", "disabled", "value", "placeholder", "onKeydown"], Y0 = { class: "flex flex-col w-8 h-full -space-y-px -mt-px -mr-px" }, xy = /* @__PURE__ */ Z({
|
|
2299
2359
|
__name: "InputNumber",
|
|
2300
2360
|
props: {
|
|
2301
2361
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2332,7 +2392,7 @@ const F0 = () => {
|
|
|
2332
2392
|
}])
|
|
2333
2393
|
}, [
|
|
2334
2394
|
p.icon ? (g(), v("div", K0, [
|
|
2335
|
-
R(k(
|
|
2395
|
+
R(k(xe), {
|
|
2336
2396
|
name: p.icon,
|
|
2337
2397
|
class: "text-tertiary"
|
|
2338
2398
|
}, null, 8, ["name"])
|
|
@@ -2404,7 +2464,7 @@ function X0(n, e) {
|
|
|
2404
2464
|
const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
2405
2465
|
key: 0,
|
|
2406
2466
|
class: "flex items-center justify-between h-12 w-full mb-4"
|
|
2407
|
-
}, Q0 = { class: "flex items-center h-full" },
|
|
2467
|
+
}, Q0 = { class: "flex items-center h-full" }, Sy = /* @__PURE__ */ Z({
|
|
2408
2468
|
__name: "Modal",
|
|
2409
2469
|
props: {
|
|
2410
2470
|
closeable: { type: Boolean, default: !0 },
|
|
@@ -2417,7 +2477,7 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2417
2477
|
emits: ["close", "ready"],
|
|
2418
2478
|
setup(n, { expose: e, emit: t }) {
|
|
2419
2479
|
const r = n, i = t, o = Si(), s = V(), l = V(!1);
|
|
2420
|
-
|
|
2480
|
+
He(() => {
|
|
2421
2481
|
o.default && (r.title || o.header || o.main || o.footer) && console.warn(
|
|
2422
2482
|
"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."
|
|
2423
2483
|
), l.value = !0;
|
|
@@ -2435,9 +2495,9 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2435
2495
|
onClick: u,
|
|
2436
2496
|
onClose: f[0] || (f[0] = (p) => i("close"))
|
|
2437
2497
|
}, {
|
|
2438
|
-
default:
|
|
2498
|
+
default: P(() => [
|
|
2439
2499
|
R(k(md), { onTransitionAfterEnter: d }, {
|
|
2440
|
-
default:
|
|
2500
|
+
default: P(() => [
|
|
2441
2501
|
Vr(R(k(aa), {
|
|
2442
2502
|
ref_key: "windowRef",
|
|
2443
2503
|
ref: s,
|
|
@@ -2449,16 +2509,16 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2449
2509
|
}
|
|
2450
2510
|
]])
|
|
2451
2511
|
}, {
|
|
2452
|
-
default:
|
|
2512
|
+
default: P(() => [
|
|
2453
2513
|
c.$slots.default ? J(c.$slots, "default", { key: 0 }) : (g(), O(k(Qa), { key: 1 }, ld({
|
|
2454
|
-
main:
|
|
2514
|
+
main: P(() => [
|
|
2455
2515
|
J(c.$slots, "main", { close: a })
|
|
2456
2516
|
]),
|
|
2457
2517
|
_: 2
|
|
2458
2518
|
}, [
|
|
2459
2519
|
r.title || c.$slots.header ? {
|
|
2460
2520
|
name: "header",
|
|
2461
|
-
fn:
|
|
2521
|
+
fn: P(() => [
|
|
2462
2522
|
r.title ? (g(), v("header", _0, [
|
|
2463
2523
|
w("h4", null, ge(r.title), 1),
|
|
2464
2524
|
c.closeable ? (g(), O(k(de), {
|
|
@@ -2474,7 +2534,7 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2474
2534
|
} : void 0,
|
|
2475
2535
|
c.$slots.footer ? {
|
|
2476
2536
|
name: "footer",
|
|
2477
|
-
fn:
|
|
2537
|
+
fn: P(() => [
|
|
2478
2538
|
w("footer", Q0, [
|
|
2479
2539
|
J(c.$slots, "footer", { close: a })
|
|
2480
2540
|
])
|
|
@@ -2495,7 +2555,7 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2495
2555
|
}, 8, ["show", "type", "class"])
|
|
2496
2556
|
], 8, ["to"]));
|
|
2497
2557
|
}
|
|
2498
|
-
}), e5 = { class: "text-sm tracking-wide" }, t5 = { class: "text-sm tracking-wide" },
|
|
2558
|
+
}), e5 = { class: "text-sm tracking-wide" }, t5 = { class: "text-sm tracking-wide" }, Hy = /* @__PURE__ */ Z({
|
|
2499
2559
|
__name: "NavItem",
|
|
2500
2560
|
props: {
|
|
2501
2561
|
exact: { type: Boolean, default: !1 },
|
|
@@ -2520,7 +2580,7 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2520
2580
|
"bg-primary text-secondary opacity-50 hover:bg-secondary": !(r.isActive || r.isExactActive)
|
|
2521
2581
|
}])
|
|
2522
2582
|
}, [
|
|
2523
|
-
r.icon ? (g(), O(k(
|
|
2583
|
+
r.icon ? (g(), O(k(xe), {
|
|
2524
2584
|
key: 0,
|
|
2525
2585
|
name: r.icon
|
|
2526
2586
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -2539,7 +2599,7 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2539
2599
|
"bg-primary text-secondary opacity-50 hover:bg-secondary active:bg-tertiary": !(r.isActive || r.isExactActive)
|
|
2540
2600
|
}])
|
|
2541
2601
|
}, [
|
|
2542
|
-
r.icon ? (g(), O(k(
|
|
2602
|
+
r.icon ? (g(), O(k(xe), {
|
|
2543
2603
|
key: 0,
|
|
2544
2604
|
name: r.icon
|
|
2545
2605
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -2552,7 +2612,7 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2552
2612
|
}), n5 = {
|
|
2553
2613
|
"data-theme": "dark",
|
|
2554
2614
|
class: "inline-flex items-stretch h-10 px-1 rounded-xl bg-black shadow-xl pointer-events-auto justify-between"
|
|
2555
|
-
}, r5 = { class: "text-sm cursor-default truncate min-w-0" },
|
|
2615
|
+
}, r5 = { class: "text-sm cursor-default truncate min-w-0" }, Ty = /* @__PURE__ */ Z({
|
|
2556
2616
|
__name: "Notification",
|
|
2557
2617
|
props: {
|
|
2558
2618
|
showDetailsButton: { type: Boolean },
|
|
@@ -2563,7 +2623,7 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2563
2623
|
setup(n, { emit: e }) {
|
|
2564
2624
|
const t = e, r = ne(() => n.type === "default" ? "information" : n.type === "error" ? "error" : n.type === "warning" ? "warning" : "check-circled");
|
|
2565
2625
|
return (i, o) => (g(), v("div", n5, [
|
|
2566
|
-
R(k(
|
|
2626
|
+
R(k(Le), {
|
|
2567
2627
|
class: U(["gap-2 px-3 rounded-l-lg flex-1 overflow-hidden", {
|
|
2568
2628
|
"text-stone-300": i.type === "default",
|
|
2569
2629
|
"text-amber-300": i.type === "warning",
|
|
@@ -2571,16 +2631,16 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2571
2631
|
"text-emerald-300": i.type === "success"
|
|
2572
2632
|
}])
|
|
2573
2633
|
}, {
|
|
2574
|
-
default:
|
|
2575
|
-
R(k(
|
|
2634
|
+
default: P(() => [
|
|
2635
|
+
R(k(xe), { name: r.value }, null, 8, ["name"]),
|
|
2576
2636
|
w("span", r5, ge(i.text), 1)
|
|
2577
2637
|
]),
|
|
2578
2638
|
_: 1
|
|
2579
2639
|
}, 8, ["class"]),
|
|
2580
|
-
R(k(
|
|
2581
|
-
default:
|
|
2582
|
-
R(k(
|
|
2583
|
-
default:
|
|
2640
|
+
R(k(Le), null, {
|
|
2641
|
+
default: P(() => [
|
|
2642
|
+
R(k(Le), { class: "px-2" }, {
|
|
2643
|
+
default: P(() => [
|
|
2584
2644
|
i.showDetailsButton ? (g(), O(k(de), {
|
|
2585
2645
|
key: 0,
|
|
2586
2646
|
small: "",
|
|
@@ -2591,8 +2651,8 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2591
2651
|
]),
|
|
2592
2652
|
_: 1
|
|
2593
2653
|
}),
|
|
2594
|
-
R(k(
|
|
2595
|
-
default:
|
|
2654
|
+
R(k(Le), { class: "px-1" }, {
|
|
2655
|
+
default: P(() => [
|
|
2596
2656
|
R(k(de), {
|
|
2597
2657
|
small: "",
|
|
2598
2658
|
variant: "textSubtle",
|
|
@@ -2607,7 +2667,7 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2607
2667
|
})
|
|
2608
2668
|
]));
|
|
2609
2669
|
}
|
|
2610
|
-
}),
|
|
2670
|
+
}), Ey = /* @__PURE__ */ Z({
|
|
2611
2671
|
__name: "Pagination",
|
|
2612
2672
|
props: {
|
|
2613
2673
|
borders: { type: Boolean, default: !1 },
|
|
@@ -2642,7 +2702,7 @@ const li = /* @__PURE__ */ Mn(J0, [["render", X0]]), _0 = {
|
|
|
2642
2702
|
options: i.value,
|
|
2643
2703
|
onSelect: d
|
|
2644
2704
|
}, {
|
|
2645
|
-
trigger:
|
|
2705
|
+
trigger: P((p) => [
|
|
2646
2706
|
R(k(de), {
|
|
2647
2707
|
variant: a.value,
|
|
2648
2708
|
label: `${c.currentPage} / ${c.lastPage}`,
|
|
@@ -2706,9 +2766,9 @@ function s5(n, e, t) {
|
|
|
2706
2766
|
}
|
|
2707
2767
|
function l5(n) {
|
|
2708
2768
|
const e = yo(n);
|
|
2709
|
-
return [
|
|
2769
|
+
return [hl(n), e, hl(e)];
|
|
2710
2770
|
}
|
|
2711
|
-
function
|
|
2771
|
+
function hl(n) {
|
|
2712
2772
|
return n.replace(/start|end/g, (e) => o5[e]);
|
|
2713
2773
|
}
|
|
2714
2774
|
function a5(n, e, t) {
|
|
@@ -2727,7 +2787,7 @@ function a5(n, e, t) {
|
|
|
2727
2787
|
function u5(n, e, t, r) {
|
|
2728
2788
|
const i = Ei(n);
|
|
2729
2789
|
let o = a5(kn(n), t === "start", r);
|
|
2730
|
-
return i && (o = o.map((s) => s + "-" + i), e && (o = o.concat(o.map(
|
|
2790
|
+
return i && (o = o.map((s) => s + "-" + i), e && (o = o.concat(o.map(hl)))), o;
|
|
2731
2791
|
}
|
|
2732
2792
|
function yo(n) {
|
|
2733
2793
|
return n.replace(/left|right|bottom|top/g, (e) => i5[e]);
|
|
@@ -2947,17 +3007,17 @@ const p5 = function(n) {
|
|
|
2947
3007
|
return {};
|
|
2948
3008
|
const b = kn(i), L = qn(l), x = kn(l) === l, C = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), H = f || (x || !m ? [yo(l)] : l5(l)), M = h !== "none";
|
|
2949
3009
|
!f && M && H.push(...u5(l, m, h, C));
|
|
2950
|
-
const z = [l, ...H],
|
|
3010
|
+
const z = [l, ...H], $ = await ta(e, y), S = [];
|
|
2951
3011
|
let B = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
2952
|
-
if (d && S.push(
|
|
3012
|
+
if (d && S.push($[b]), c) {
|
|
2953
3013
|
const ee = s5(i, s, C);
|
|
2954
|
-
S.push(
|
|
3014
|
+
S.push($[ee[0]], $[ee[1]]);
|
|
2955
3015
|
}
|
|
2956
3016
|
if (B = [...B, {
|
|
2957
3017
|
placement: i,
|
|
2958
3018
|
overflows: S
|
|
2959
3019
|
}], !S.every((ee) => ee <= 0)) {
|
|
2960
|
-
var Q,
|
|
3020
|
+
var Q, F;
|
|
2961
3021
|
const ee = (((Q = o.flip) == null ? void 0 : Q.index) || 0) + 1, ke = z[ee];
|
|
2962
3022
|
if (ke)
|
|
2963
3023
|
return {
|
|
@@ -2969,20 +3029,20 @@ const p5 = function(n) {
|
|
|
2969
3029
|
placement: ke
|
|
2970
3030
|
}
|
|
2971
3031
|
};
|
|
2972
|
-
let le = (
|
|
3032
|
+
let le = (F = B.filter((pe) => pe.overflows[0] <= 0).sort((pe, he) => pe.overflows[1] - he.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
2973
3033
|
if (!le)
|
|
2974
3034
|
switch (p) {
|
|
2975
3035
|
case "bestFit": {
|
|
2976
3036
|
var j;
|
|
2977
3037
|
const pe = (j = B.filter((he) => {
|
|
2978
3038
|
if (M) {
|
|
2979
|
-
const
|
|
2980
|
-
return
|
|
3039
|
+
const Me = qn(he.placement);
|
|
3040
|
+
return Me === L || // Create a bias to the `y` side axis due to horizontal
|
|
2981
3041
|
// reading directions favoring greater width.
|
|
2982
|
-
|
|
3042
|
+
Me === "y";
|
|
2983
3043
|
}
|
|
2984
3044
|
return !0;
|
|
2985
|
-
}).map((he) => [he.placement, he.overflows.filter((
|
|
3045
|
+
}).map((he) => [he.placement, he.overflows.filter((Me) => Me > 0).reduce((Me, Be) => Me + Be, 0)]).sort((he, Me) => he[1] - Me[1])[0]) == null ? void 0 : j[0];
|
|
2986
3046
|
pe && (le = pe);
|
|
2987
3047
|
break;
|
|
2988
3048
|
}
|
|
@@ -3128,14 +3188,14 @@ const m5 = function(n) {
|
|
|
3128
3188
|
let y, b;
|
|
3129
3189
|
c === "top" || c === "bottom" ? (y = c, b = f === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (b = c, y = f === "end" ? "top" : "bottom");
|
|
3130
3190
|
const L = m - d.top - d.bottom, x = h - d.left - d.right, C = gr(m - d[y], L), H = gr(h - d[b], x), M = !e.middlewareData.shift;
|
|
3131
|
-
let z = C,
|
|
3132
|
-
if ((t = e.middlewareData.shift) != null && t.enabled.x && (
|
|
3133
|
-
const B = st(d.left, 0), Q = st(d.right, 0),
|
|
3134
|
-
p ?
|
|
3191
|
+
let z = C, $ = H;
|
|
3192
|
+
if ((t = e.middlewareData.shift) != null && t.enabled.x && ($ = x), (r = e.middlewareData.shift) != null && r.enabled.y && (z = L), M && !f) {
|
|
3193
|
+
const B = st(d.left, 0), Q = st(d.right, 0), F = st(d.top, 0), j = st(d.bottom, 0);
|
|
3194
|
+
p ? $ = h - 2 * (B !== 0 || Q !== 0 ? B + Q : st(d.left, d.right)) : z = m - 2 * (F !== 0 || j !== 0 ? F + j : st(d.top, d.bottom));
|
|
3135
3195
|
}
|
|
3136
3196
|
await a({
|
|
3137
3197
|
...e,
|
|
3138
|
-
availableWidth:
|
|
3198
|
+
availableWidth: $,
|
|
3139
3199
|
availableHeight: z
|
|
3140
3200
|
});
|
|
3141
3201
|
const S = await s.getDimensions(l.floating);
|
|
@@ -3147,7 +3207,7 @@ const m5 = function(n) {
|
|
|
3147
3207
|
}
|
|
3148
3208
|
};
|
|
3149
3209
|
};
|
|
3150
|
-
function
|
|
3210
|
+
function ps() {
|
|
3151
3211
|
return typeof window < "u";
|
|
3152
3212
|
}
|
|
3153
3213
|
function Or(n) {
|
|
@@ -3162,16 +3222,16 @@ function zt(n) {
|
|
|
3162
3222
|
return (e = (kd(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : e.documentElement;
|
|
3163
3223
|
}
|
|
3164
3224
|
function kd(n) {
|
|
3165
|
-
return
|
|
3225
|
+
return ps() ? n instanceof Node || n instanceof ut(n).Node : !1;
|
|
3166
3226
|
}
|
|
3167
3227
|
function xt(n) {
|
|
3168
|
-
return
|
|
3228
|
+
return ps() ? n instanceof Element || n instanceof ut(n).Element : !1;
|
|
3169
3229
|
}
|
|
3170
3230
|
function $t(n) {
|
|
3171
|
-
return
|
|
3231
|
+
return ps() ? n instanceof HTMLElement || n instanceof ut(n).HTMLElement : !1;
|
|
3172
3232
|
}
|
|
3173
3233
|
function d1(n) {
|
|
3174
|
-
return !
|
|
3234
|
+
return !ps() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof ut(n).ShadowRoot;
|
|
3175
3235
|
}
|
|
3176
3236
|
function Vi(n) {
|
|
3177
3237
|
const {
|
|
@@ -3185,7 +3245,7 @@ function Vi(n) {
|
|
|
3185
3245
|
function v5(n) {
|
|
3186
3246
|
return ["table", "td", "th"].includes(Or(n));
|
|
3187
3247
|
}
|
|
3188
|
-
function
|
|
3248
|
+
function hs(n) {
|
|
3189
3249
|
return [":popover-open", ":modal"].some((e) => {
|
|
3190
3250
|
try {
|
|
3191
3251
|
return n.matches(e);
|
|
@@ -3203,7 +3263,7 @@ function C5(n) {
|
|
|
3203
3263
|
for (; $t(e) && !yr(e); ) {
|
|
3204
3264
|
if (na(e))
|
|
3205
3265
|
return e;
|
|
3206
|
-
if (
|
|
3266
|
+
if (hs(e))
|
|
3207
3267
|
return null;
|
|
3208
3268
|
e = wn(e);
|
|
3209
3269
|
}
|
|
@@ -3218,7 +3278,7 @@ function yr(n) {
|
|
|
3218
3278
|
function St(n) {
|
|
3219
3279
|
return ut(n).getComputedStyle(n);
|
|
3220
3280
|
}
|
|
3221
|
-
function
|
|
3281
|
+
function ms(n) {
|
|
3222
3282
|
return xt(n) ? {
|
|
3223
3283
|
scrollLeft: n.scrollLeft,
|
|
3224
3284
|
scrollTop: n.scrollTop
|
|
@@ -3248,12 +3308,12 @@ function ai(n, e, t) {
|
|
|
3248
3308
|
e === void 0 && (e = []), t === void 0 && (t = !0);
|
|
3249
3309
|
const i = wd(n), o = i === ((r = n.ownerDocument) == null ? void 0 : r.body), s = ut(i);
|
|
3250
3310
|
if (o) {
|
|
3251
|
-
const l =
|
|
3311
|
+
const l = ml(s);
|
|
3252
3312
|
return e.concat(s, s.visualViewport || [], Vi(i) ? i : [], l && t ? ai(l) : []);
|
|
3253
3313
|
}
|
|
3254
3314
|
return e.concat(i, ai(i, [], t));
|
|
3255
3315
|
}
|
|
3256
|
-
function
|
|
3316
|
+
function ml(n) {
|
|
3257
3317
|
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
3258
3318
|
}
|
|
3259
3319
|
function Ld(n) {
|
|
@@ -3304,10 +3364,10 @@ function Yn(n, e, t, r) {
|
|
|
3304
3364
|
let a = (i.left + l.x) / s.x, u = (i.top + l.y) / s.y, d = i.width / s.x, c = i.height / s.y;
|
|
3305
3365
|
if (o) {
|
|
3306
3366
|
const f = ut(o), p = r && xt(r) ? ut(r) : r;
|
|
3307
|
-
let h = f, m =
|
|
3367
|
+
let h = f, m = ml(h);
|
|
3308
3368
|
for (; m && r && p !== h; ) {
|
|
3309
3369
|
const y = pr(m), b = m.getBoundingClientRect(), L = St(m), x = b.left + (m.clientLeft + parseFloat(L.paddingLeft)) * y.x, C = b.top + (m.clientTop + parseFloat(L.paddingTop)) * y.y;
|
|
3310
|
-
a *= y.x, u *= y.y, d *= y.x, c *= y.y, a += x, u += C, h = ut(m), m =
|
|
3370
|
+
a *= y.x, u *= y.y, d *= y.x, c *= y.y, a += x, u += C, h = ut(m), m = ml(h);
|
|
3311
3371
|
}
|
|
3312
3372
|
}
|
|
3313
3373
|
return vo({
|
|
@@ -3318,7 +3378,7 @@ function Yn(n, e, t, r) {
|
|
|
3318
3378
|
});
|
|
3319
3379
|
}
|
|
3320
3380
|
function oa(n, e) {
|
|
3321
|
-
const t =
|
|
3381
|
+
const t = ms(n).scrollLeft;
|
|
3322
3382
|
return e ? e.left + t : Yn(zt(n)).left + t;
|
|
3323
3383
|
}
|
|
3324
3384
|
function xd(n, e, t) {
|
|
@@ -3339,7 +3399,7 @@ function w5(n) {
|
|
|
3339
3399
|
offsetParent: r,
|
|
3340
3400
|
strategy: i
|
|
3341
3401
|
} = n;
|
|
3342
|
-
const o = i === "fixed", s = zt(r), l = e ?
|
|
3402
|
+
const o = i === "fixed", s = zt(r), l = e ? hs(e.floating) : !1;
|
|
3343
3403
|
if (r === s || l && o)
|
|
3344
3404
|
return t;
|
|
3345
3405
|
let a = {
|
|
@@ -3347,7 +3407,7 @@ function w5(n) {
|
|
|
3347
3407
|
scrollTop: 0
|
|
3348
3408
|
}, u = Nt(1);
|
|
3349
3409
|
const d = Nt(0), c = $t(r);
|
|
3350
|
-
if ((c || !c && !o) && ((Or(r) !== "body" || Vi(s)) && (a =
|
|
3410
|
+
if ((c || !c && !o) && ((Or(r) !== "body" || Vi(s)) && (a = ms(r)), $t(r))) {
|
|
3351
3411
|
const p = Yn(r);
|
|
3352
3412
|
u = pr(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
|
|
3353
3413
|
}
|
|
@@ -3363,7 +3423,7 @@ function L5(n) {
|
|
|
3363
3423
|
return Array.from(n.getClientRects());
|
|
3364
3424
|
}
|
|
3365
3425
|
function M5(n) {
|
|
3366
|
-
const e = zt(n), t =
|
|
3426
|
+
const e = zt(n), t = ms(n), r = n.ownerDocument.body, i = st(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), o = st(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
3367
3427
|
let s = -t.scrollLeft + oa(n);
|
|
3368
3428
|
const l = -t.scrollTop;
|
|
3369
3429
|
return St(r).direction === "rtl" && (s += st(e.clientWidth, r.clientWidth) - i), {
|
|
@@ -3440,7 +3500,7 @@ function T5(n) {
|
|
|
3440
3500
|
rootBoundary: r,
|
|
3441
3501
|
strategy: i
|
|
3442
3502
|
} = n;
|
|
3443
|
-
const s = [...t === "clippingAncestors" ?
|
|
3503
|
+
const s = [...t === "clippingAncestors" ? hs(e) ? [] : H5(e, this._c) : [].concat(t), r], l = s[0], a = s.reduce((u, d) => {
|
|
3444
3504
|
const c = c1(e, d, i);
|
|
3445
3505
|
return u.top = st(c.top, u.top), u.right = gr(c.right, u.right), u.bottom = gr(c.bottom, u.bottom), u.left = st(c.left, u.left), u;
|
|
3446
3506
|
}, c1(e, l, i));
|
|
@@ -3469,7 +3529,7 @@ function V5(n, e, t) {
|
|
|
3469
3529
|
};
|
|
3470
3530
|
const a = Nt(0);
|
|
3471
3531
|
if (r || !r && !o)
|
|
3472
|
-
if ((Or(e) !== "body" || Vi(i)) && (l =
|
|
3532
|
+
if ((Or(e) !== "body" || Vi(i)) && (l = ms(e)), r) {
|
|
3473
3533
|
const f = Yn(e, !0, o, e);
|
|
3474
3534
|
a.x = f.x + e.clientLeft, a.y = f.y + e.clientTop;
|
|
3475
3535
|
} else i && (a.x = oa(i));
|
|
@@ -3481,7 +3541,7 @@ function V5(n, e, t) {
|
|
|
3481
3541
|
height: s.height
|
|
3482
3542
|
};
|
|
3483
3543
|
}
|
|
3484
|
-
function
|
|
3544
|
+
function $s(n) {
|
|
3485
3545
|
return St(n).position === "static";
|
|
3486
3546
|
}
|
|
3487
3547
|
function f1(n, e) {
|
|
@@ -3494,21 +3554,21 @@ function f1(n, e) {
|
|
|
3494
3554
|
}
|
|
3495
3555
|
function Hd(n, e) {
|
|
3496
3556
|
const t = ut(n);
|
|
3497
|
-
if (
|
|
3557
|
+
if (hs(n))
|
|
3498
3558
|
return t;
|
|
3499
3559
|
if (!$t(n)) {
|
|
3500
3560
|
let i = wn(n);
|
|
3501
3561
|
for (; i && !yr(i); ) {
|
|
3502
|
-
if (xt(i) &&
|
|
3562
|
+
if (xt(i) && !$s(i))
|
|
3503
3563
|
return i;
|
|
3504
3564
|
i = wn(i);
|
|
3505
3565
|
}
|
|
3506
3566
|
return t;
|
|
3507
3567
|
}
|
|
3508
3568
|
let r = f1(n, e);
|
|
3509
|
-
for (; r && v5(r) &&
|
|
3569
|
+
for (; r && v5(r) && $s(r); )
|
|
3510
3570
|
r = f1(r, e);
|
|
3511
|
-
return r && yr(r) &&
|
|
3571
|
+
return r && yr(r) && $s(r) && !na(r) ? t : r || C5(n) || t;
|
|
3512
3572
|
}
|
|
3513
3573
|
const O5 = async function(n) {
|
|
3514
3574
|
const e = this.getOffsetParent || Hd, t = this.getDimensions, r = await t(n.floating);
|
|
@@ -3679,7 +3739,7 @@ function F5() {
|
|
|
3679
3739
|
return qi.exports.debounce = n, qi.exports = n, qi.exports;
|
|
3680
3740
|
}
|
|
3681
3741
|
var z5 = /* @__PURE__ */ F5();
|
|
3682
|
-
const
|
|
3742
|
+
const gl = /* @__PURE__ */ Z5(z5), j5 = Ed({
|
|
3683
3743
|
apply({ rects: n, elements: e }) {
|
|
3684
3744
|
Object.assign(e.floating.style, {
|
|
3685
3745
|
width: `${n.reference.width}px`
|
|
@@ -3691,7 +3751,7 @@ const ml = /* @__PURE__ */ Z5(z5), j5 = Ed({
|
|
|
3691
3751
|
width: `${n.offsetWidth}px`
|
|
3692
3752
|
});
|
|
3693
3753
|
}
|
|
3694
|
-
}),
|
|
3754
|
+
}), gs = /* @__PURE__ */ Z({
|
|
3695
3755
|
__name: "Popper",
|
|
3696
3756
|
props: {
|
|
3697
3757
|
closeDelay: { default: 20 },
|
|
@@ -3731,7 +3791,7 @@ const ml = /* @__PURE__ */ Z5(z5), j5 = Ed({
|
|
|
3731
3791
|
a.value.style.left = `${B.x}px`, a.value.style.top = `${B.y}px`;
|
|
3732
3792
|
}
|
|
3733
3793
|
};
|
|
3734
|
-
|
|
3794
|
+
He(() => {
|
|
3735
3795
|
const S = o.default && o.default({ visible: d.value });
|
|
3736
3796
|
if (S && S.length > 1)
|
|
3737
3797
|
return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${S.length} child nodes.`);
|
|
@@ -3743,15 +3803,15 @@ const ml = /* @__PURE__ */ Z5(z5), j5 = Ed({
|
|
|
3743
3803
|
L.clear(), d.value && (d.value = !1, i("close"), !r.useOverlay && f(), s && (s(), s = null));
|
|
3744
3804
|
}, b = async () => {
|
|
3745
3805
|
d.value || (d.value = !0, await bn(), i("open", [u.value, a.value]), s = R5(u.value, a.value, m), !r.useOverlay && a.value && u.value && p([a.value, u.value]));
|
|
3746
|
-
}, L =
|
|
3806
|
+
}, L = gl(b, r.openDelay), x = gl(y, r.closeDelay), C = async () => {
|
|
3747
3807
|
r.disabled || (x.clear(), L());
|
|
3748
3808
|
}, H = async () => {
|
|
3749
3809
|
L.clear(), x();
|
|
3750
3810
|
}, M = (S) => {
|
|
3751
|
-
r.trigger === "click" && (S.preventDefault(), S.stopPropagation(),
|
|
3811
|
+
r.trigger === "click" && (S.preventDefault(), S.stopPropagation(), $());
|
|
3752
3812
|
}, z = (S) => {
|
|
3753
3813
|
a.value && u.value && h([a.value, u.value, ...S]);
|
|
3754
|
-
},
|
|
3814
|
+
}, $ = () => d.value ? H() : C();
|
|
3755
3815
|
return Qe(
|
|
3756
3816
|
() => r.disabled,
|
|
3757
3817
|
(S) => d.value && S && y()
|
|
@@ -3830,7 +3890,7 @@ function q5(n, e) {
|
|
|
3830
3890
|
const sa = /* @__PURE__ */ Mn(U5, [["render", q5]]), Y5 = {
|
|
3831
3891
|
key: 0,
|
|
3832
3892
|
class: "flex items-center justify-between px-4 pb-4"
|
|
3833
|
-
},
|
|
3893
|
+
}, Vy = /* @__PURE__ */ Z({
|
|
3834
3894
|
__name: "PopCalendar",
|
|
3835
3895
|
props: {
|
|
3836
3896
|
mode: { default: "immediate" },
|
|
@@ -3857,7 +3917,7 @@ const sa = /* @__PURE__ */ Mn(U5, [["render", q5]]), Y5 = {
|
|
|
3857
3917
|
}, a = (u) => {
|
|
3858
3918
|
n.mode === "confirmation" && (i.value = n.value), t("open", u);
|
|
3859
3919
|
};
|
|
3860
|
-
return (u, d) => (g(), O(k(
|
|
3920
|
+
return (u, d) => (g(), O(k(gs), {
|
|
3861
3921
|
ref_key: "popperRef",
|
|
3862
3922
|
ref: r,
|
|
3863
3923
|
trigger: "click",
|
|
@@ -3866,14 +3926,14 @@ const sa = /* @__PURE__ */ Mn(U5, [["render", q5]]), Y5 = {
|
|
|
3866
3926
|
onClose: d[0] || (d[0] = (c) => t("close")),
|
|
3867
3927
|
onOpen: a
|
|
3868
3928
|
}, {
|
|
3869
|
-
default:
|
|
3929
|
+
default: P((c) => [
|
|
3870
3930
|
J(u.$slots, "trigger", {
|
|
3871
3931
|
visible: c.visible
|
|
3872
3932
|
})
|
|
3873
3933
|
]),
|
|
3874
|
-
content:
|
|
3934
|
+
content: P(() => [
|
|
3875
3935
|
R(k(sa), null, {
|
|
3876
|
-
default:
|
|
3936
|
+
default: P(() => [
|
|
3877
3937
|
R(k(ih), {
|
|
3878
3938
|
value: u.mode === "confirmation" ? i.value : u.value,
|
|
3879
3939
|
format: u.format,
|
|
@@ -3906,11 +3966,10 @@ const sa = /* @__PURE__ */ Mn(U5, [["render", q5]]), Y5 = {
|
|
|
3906
3966
|
}), J5 = { class: "inline-flex" }, G5 = {
|
|
3907
3967
|
key: 0,
|
|
3908
3968
|
class: "flex flex-col gap-0"
|
|
3909
|
-
}, X5 = { class: "text-sm text-secondary" },
|
|
3969
|
+
}, X5 = { class: "text-sm text-secondary" }, Oy = /* @__PURE__ */ Z({
|
|
3910
3970
|
__name: "PopConfirm",
|
|
3911
3971
|
props: {
|
|
3912
3972
|
order: {},
|
|
3913
|
-
cancelButtonIsText: { type: Boolean },
|
|
3914
3973
|
cancelDisabled: { type: Boolean },
|
|
3915
3974
|
cancelIcon: {},
|
|
3916
3975
|
cancelLabel: {},
|
|
@@ -3937,7 +3996,7 @@ const sa = /* @__PURE__ */ Mn(U5, [["render", q5]]), Y5 = {
|
|
|
3937
3996
|
}, u = () => {
|
|
3938
3997
|
s(), t("confirm");
|
|
3939
3998
|
};
|
|
3940
|
-
return (d, c) => (g(), O(k(
|
|
3999
|
+
return (d, c) => (g(), O(k(gs), {
|
|
3941
4000
|
ref_key: "popperRef",
|
|
3942
4001
|
ref: r,
|
|
3943
4002
|
trigger: "click",
|
|
@@ -3945,16 +4004,16 @@ const sa = /* @__PURE__ */ Mn(U5, [["render", q5]]), Y5 = {
|
|
|
3945
4004
|
onOpen: l,
|
|
3946
4005
|
onClose: s
|
|
3947
4006
|
}, {
|
|
3948
|
-
default:
|
|
4007
|
+
default: P((f) => [
|
|
3949
4008
|
w("div", J5, [
|
|
3950
4009
|
J(d.$slots, "trigger", {
|
|
3951
4010
|
visible: f && f.visible
|
|
3952
4011
|
})
|
|
3953
4012
|
])
|
|
3954
4013
|
]),
|
|
3955
|
-
content:
|
|
4014
|
+
content: P(() => [
|
|
3956
4015
|
R(k(sa), null, {
|
|
3957
|
-
default:
|
|
4016
|
+
default: P(() => [
|
|
3958
4017
|
w("div", {
|
|
3959
4018
|
ref_key: "contentRef",
|
|
3960
4019
|
ref: i,
|
|
@@ -3967,7 +4026,7 @@ const sa = /* @__PURE__ */ Mn(U5, [["render", q5]]), Y5 = {
|
|
|
3967
4026
|
w("h5", null, ge(d.title), 1),
|
|
3968
4027
|
w("p", X5, ge(d.description), 1)
|
|
3969
4028
|
])) : A("", !0),
|
|
3970
|
-
R(k(
|
|
4029
|
+
R(k(fs), {
|
|
3971
4030
|
vertical: !(d.title || d.description),
|
|
3972
4031
|
small: d.small,
|
|
3973
4032
|
"cancel-variant": d.cancelVariant,
|
|
@@ -3996,9 +4055,9 @@ const sa = /* @__PURE__ */ Mn(U5, [["render", q5]]), Y5 = {
|
|
|
3996
4055
|
function Q5(n, e) {
|
|
3997
4056
|
return " To be implemented ";
|
|
3998
4057
|
}
|
|
3999
|
-
const
|
|
4058
|
+
const Ay = /* @__PURE__ */ Mn(_5, [["render", Q5]]);
|
|
4000
4059
|
var Tt = /* @__PURE__ */ ((n) => (n.ERROR = "error", n.IDLE = "idle", n.LOADING = "loading", n.MATCH = "match", n.NO_MATCH = "no match", n))(Tt || {});
|
|
4001
|
-
const e2 = ["onKeydown"], t2 = /* @__PURE__ */
|
|
4060
|
+
const e2 = ["onKeydown"], t2 = /* @__PURE__ */ Z({
|
|
4002
4061
|
__name: "option",
|
|
4003
4062
|
props: {
|
|
4004
4063
|
label: {},
|
|
@@ -4030,7 +4089,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4030
4089
|
J(l.$slots, "default")
|
|
4031
4090
|
], 42, e2));
|
|
4032
4091
|
}
|
|
4033
|
-
}), n2 = { class: "flex items-center px-2 pb-2 space-x-2" }, r2 = /* @__PURE__ */
|
|
4092
|
+
}), n2 = { class: "flex items-center px-2 pb-2 space-x-2" }, r2 = /* @__PURE__ */ Z({
|
|
4034
4093
|
__name: "ResultFilters",
|
|
4035
4094
|
props: {
|
|
4036
4095
|
selected: {},
|
|
@@ -4072,7 +4131,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4072
4131
|
}, C2 = {
|
|
4073
4132
|
key: 6,
|
|
4074
4133
|
class: "flex-none border-t border-default bg-primary"
|
|
4075
|
-
}, Vd = /* @__PURE__ */
|
|
4134
|
+
}, Vd = /* @__PURE__ */ Z({
|
|
4076
4135
|
__name: "PopSelect",
|
|
4077
4136
|
props: {
|
|
4078
4137
|
resetOnClose: { type: Boolean, default: !1 },
|
|
@@ -4119,14 +4178,14 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4119
4178
|
), Er(() => {
|
|
4120
4179
|
r.filterable && r.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), z(r.options);
|
|
4121
4180
|
});
|
|
4122
|
-
const
|
|
4181
|
+
const $ = () => p.value.close(), S = () => p.value.open(), B = async () => {
|
|
4123
4182
|
b(() => {
|
|
4124
4183
|
h.value && b(() => h.value.update()), c.value && b(() => c.value.focus());
|
|
4125
4184
|
});
|
|
4126
4185
|
}, Q = () => {
|
|
4127
4186
|
r.keepOpen || (s.value = null, r.resetOnClose && (a.value = "", r.remoteMethod ? r.remoteMethod("") : z([]), y.value = r.resultFilters ? r.resultFilters[0] : null), i("close"));
|
|
4128
|
-
},
|
|
4129
|
-
i("select", q), r.keepOpen ||
|
|
4187
|
+
}, F = (q) => {
|
|
4188
|
+
i("select", q), r.keepOpen || $();
|
|
4130
4189
|
}, j = (q) => l.value = r.options.filter((_) => _.label.toLowerCase().includes(q.toLowerCase())), ke = Z0(async (q) => {
|
|
4131
4190
|
const _ = q.target.value;
|
|
4132
4191
|
s.value = null, r.filterable ? j(_) : r.remoteMethod && await r.remoteMethod(_);
|
|
@@ -4146,12 +4205,12 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4146
4205
|
return ae.label === ((je = s.value) == null ? void 0 : je.label);
|
|
4147
4206
|
});
|
|
4148
4207
|
x.value || (q === "next" ? (_++, _ === l.value.length && (_ = 0)) : q === "prev" && (_--, _ < 0 && (_ = l.value.length - 1)), s.value = l.value[_], s.value.disabled === !0 && he(q), await bn(), s.value && pe(s.value));
|
|
4149
|
-
},
|
|
4150
|
-
s.value ?
|
|
4208
|
+
}, Me = () => {
|
|
4209
|
+
s.value ? F(s.value) : a.value.length && i("save-custom", a.value);
|
|
4151
4210
|
}, Be = (q) => {
|
|
4152
4211
|
y.value = q, z(r.options), c.value.focus();
|
|
4153
4212
|
};
|
|
4154
|
-
return e({ close:
|
|
4213
|
+
return e({ close: $, focus: S }), (q, _) => (g(), O(k(gs), {
|
|
4155
4214
|
ref_key: "popperRef",
|
|
4156
4215
|
ref: p,
|
|
4157
4216
|
trigger: "click",
|
|
@@ -4165,22 +4224,22 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4165
4224
|
onClose: Q,
|
|
4166
4225
|
onOpen: B
|
|
4167
4226
|
}, {
|
|
4168
|
-
default:
|
|
4227
|
+
default: P((ae) => [
|
|
4169
4228
|
J(q.$slots, "trigger", {
|
|
4170
4229
|
disabled: q.disabled,
|
|
4171
4230
|
visible: ae && ae.visible
|
|
4172
4231
|
})
|
|
4173
4232
|
]),
|
|
4174
|
-
content:
|
|
4233
|
+
content: P(() => [
|
|
4175
4234
|
R(k(sa), {
|
|
4176
4235
|
ref_key: "contentRef",
|
|
4177
4236
|
ref: u,
|
|
4178
4237
|
class: U(["flex flex-col", { "h-72": q.fixedHeight }])
|
|
4179
4238
|
}, {
|
|
4180
|
-
default:
|
|
4239
|
+
default: P(() => [
|
|
4181
4240
|
q.filterable || q.remoteMethod || q.resultFilters ? (g(), v("header", i2, [
|
|
4182
4241
|
q.filterable || q.remoteMethod ? (g(), v("header", o2, [
|
|
4183
|
-
R(k(
|
|
4242
|
+
R(k(xe), {
|
|
4184
4243
|
name: "magnifying-glass",
|
|
4185
4244
|
class: "text-light-blue"
|
|
4186
4245
|
}),
|
|
@@ -4198,7 +4257,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4198
4257
|
onKeydown: [
|
|
4199
4258
|
_[3] || (_[3] = ve(re((ae) => he("next"), ["prevent"]), ["down"])),
|
|
4200
4259
|
_[4] || (_[4] = ve(re((ae) => he("prev"), ["prevent"]), ["up"])),
|
|
4201
|
-
ve(re(
|
|
4260
|
+
ve(re(Me, ["prevent"]), ["enter"]),
|
|
4202
4261
|
ve(re(Q, ["stop", "prevent"]), ["esc"])
|
|
4203
4262
|
]
|
|
4204
4263
|
}, null, 40, s2), [
|
|
@@ -4232,7 +4291,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4232
4291
|
])
|
|
4233
4292
|
])) : M.value === k(Tt).IDLE ? (g(), v("div", p2, [
|
|
4234
4293
|
w("div", h2, [
|
|
4235
|
-
R(k(
|
|
4294
|
+
R(k(xe), { name: q.emptyStateIcon }, null, 8, ["name"]),
|
|
4236
4295
|
w("span", m2, ge(q.emptyStateText), 1)
|
|
4237
4296
|
]),
|
|
4238
4297
|
_[6] || (_[6] = w("div", { class: "h-8 w-full bg-primary" }, null, -1))
|
|
@@ -4241,7 +4300,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4241
4300
|
ref_key: "scrollbarRef",
|
|
4242
4301
|
ref: h
|
|
4243
4302
|
}, {
|
|
4244
|
-
default:
|
|
4303
|
+
default: P(() => [
|
|
4245
4304
|
w("div", g2, [
|
|
4246
4305
|
(g(!0), v(E, null, Pt(l.value, (ae) => (g(), O(t2, {
|
|
4247
4306
|
ref_for: !0,
|
|
@@ -4254,11 +4313,11 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4254
4313
|
selected: L.value.includes(ae),
|
|
4255
4314
|
onFocus: le,
|
|
4256
4315
|
onHover: le,
|
|
4257
|
-
onClick: (je) =>
|
|
4316
|
+
onClick: (je) => F(ae)
|
|
4258
4317
|
}, {
|
|
4259
|
-
default:
|
|
4318
|
+
default: P(() => [
|
|
4260
4319
|
w("div", y2, [
|
|
4261
|
-
ae.icon ? (g(), O(k(
|
|
4320
|
+
ae.icon ? (g(), O(k(xe), {
|
|
4262
4321
|
key: 0,
|
|
4263
4322
|
name: ae.icon
|
|
4264
4323
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -4286,7 +4345,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4286
4345
|
_: 3
|
|
4287
4346
|
}, 8, ["placement", "disabled", "popper-width-class", "same-width-as-element", "same-width-as-trigger", "root-class", "trigger-class"]));
|
|
4288
4347
|
}
|
|
4289
|
-
}), la = /* @__PURE__ */
|
|
4348
|
+
}), la = /* @__PURE__ */ Z({
|
|
4290
4349
|
__name: "ScreenOverlay",
|
|
4291
4350
|
props: {
|
|
4292
4351
|
show: { type: Boolean, default: !1 },
|
|
@@ -4297,7 +4356,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4297
4356
|
const t = n, r = e, i = V(""), o = ad({ backdropFilter: "" });
|
|
4298
4357
|
return Er(() => {
|
|
4299
4358
|
t.type === "default" ? (i.value = "bg-black/25 dark:bg-black/50", o.backdropFilter = "") : t.type === "blurred" && (i.value = "bg-black/25", o.backdropFilter = "blur(3px)");
|
|
4300
|
-
}), (s, l) => (g(), O(
|
|
4359
|
+
}), (s, l) => (g(), O(Gl, {
|
|
4301
4360
|
"enter-active-class": "transform transition ease-in-out duration-200",
|
|
4302
4361
|
"enter-from-class": "opacity-0",
|
|
4303
4362
|
"enter-to-class": "",
|
|
@@ -4306,7 +4365,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4306
4365
|
"leave-to-class": "opacity-0",
|
|
4307
4366
|
onAfterLeave: l[1] || (l[1] = (a) => r("close"))
|
|
4308
4367
|
}, {
|
|
4309
|
-
default:
|
|
4368
|
+
default: P(() => [
|
|
4310
4369
|
Vr(w("div", {
|
|
4311
4370
|
class: U(["z-40 fixed w-screen h-screen top-0 left-0 flex items-start justify-center pointer-events-auto", i.value]),
|
|
4312
4371
|
style: Ee(o),
|
|
@@ -4338,7 +4397,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4338
4397
|
axis: "Y",
|
|
4339
4398
|
client: "clientY",
|
|
4340
4399
|
direction: "top"
|
|
4341
|
-
}, h1 = /* @__PURE__ */
|
|
4400
|
+
}, h1 = /* @__PURE__ */ Z({
|
|
4342
4401
|
__name: "Bar",
|
|
4343
4402
|
props: {
|
|
4344
4403
|
vertical: Boolean,
|
|
@@ -4407,7 +4466,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4407
4466
|
}, null, 36)
|
|
4408
4467
|
], 34));
|
|
4409
4468
|
}
|
|
4410
|
-
}), Co = /* @__PURE__ */
|
|
4469
|
+
}), Co = /* @__PURE__ */ Z({
|
|
4411
4470
|
__name: "Scrollbar",
|
|
4412
4471
|
props: {
|
|
4413
4472
|
disableX: { type: Boolean, default: !1 },
|
|
@@ -4432,8 +4491,8 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4432
4491
|
!s.value && h.push("scrollbar__wrap--hidden-default"), r.wrapClass && h.push(r.wrapClass);
|
|
4433
4492
|
const m = V(), y = V(), b = () => {
|
|
4434
4493
|
a.value = m.value.scrollTop * 100 / m.value.clientHeight, l.value = m.value.scrollLeft * 100 / m.value.clientWidth, i("scroll", m.value.scrollTop);
|
|
4435
|
-
const
|
|
4436
|
-
if (u.value > 0 && m.value.scrollTop === 0 ? i("intersect", { edge: "top", hit: !0 }) : u.value === 0 && m.value.scrollTop > 0 ? i("intersect", { edge: "top", hit: !1 }) : u.value + m.value.clientHeight < S &&
|
|
4494
|
+
const $ = m.value.scrollTop + m.value.clientHeight, S = m.value.scrollHeight;
|
|
4495
|
+
if (u.value > 0 && m.value.scrollTop === 0 ? i("intersect", { edge: "top", hit: !0 }) : u.value === 0 && m.value.scrollTop > 0 ? i("intersect", { edge: "top", hit: !1 }) : u.value + m.value.clientHeight < S && $ === S ? i("intersect", { edge: "bottom", hit: !0 }) : u.value + m.value.clientHeight === S && $ < S && i("intersect", { edge: "bottom", hit: !1 }), r.triggers)
|
|
4437
4496
|
for (const B of r.triggers)
|
|
4438
4497
|
u.value < B.px && m.value.scrollTop >= B.px ? B.callback(B, "down") : u.value > B.px && m.value.scrollTop <= B.px && B.callback(B, "up");
|
|
4439
4498
|
u.value = m.value.scrollTop;
|
|
@@ -4443,10 +4502,10 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4443
4502
|
}), x = async () => {
|
|
4444
4503
|
if (!m.value) return;
|
|
4445
4504
|
await bn();
|
|
4446
|
-
const { heightPercentage:
|
|
4447
|
-
|
|
4505
|
+
const { heightPercentage: $, widthPercentage: S } = L();
|
|
4506
|
+
!$ && !S || (r.disableX || (p.width === 100 && S < 100 ? i("scrollXActive", !0) : S === 100 && p.width < 100 && i("scrollXActive", !1), S === 100 ? f.marginBottom = "0px" : s.value && (f.marginBottom = `-${s.value}px`), p.width = S, c.value = S < 100 ? `${S}%` : ""), r.disableY || (p.height === 100 && $ < 100 ? i("scrollYActive", !0) : $ === 100 && p.height < 100 && i("scrollYActive", !1), $ === 100 ? f.marginRight = "0px" : s.value && (f.marginRight = `-${s.value}px`), p.height = $, d.value = $ < 100 ? `${$}%` : ""), b());
|
|
4448
4507
|
};
|
|
4449
|
-
|
|
4508
|
+
He(async () => {
|
|
4450
4509
|
await bn(x), p.height === 100 && i("intersect", { edge: "top", hit: !0 }), r.windowResize && window.addEventListener("resize", x), r.noresize || (o = new MutationObserver(x), o.observe(y.value, {
|
|
4451
4510
|
childList: !0,
|
|
4452
4511
|
subtree: !0
|
|
@@ -4454,17 +4513,17 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4454
4513
|
}), Ft(() => {
|
|
4455
4514
|
!r.noresize && o.disconnect(), r.windowResize && window.removeEventListener("resize", x);
|
|
4456
4515
|
});
|
|
4457
|
-
const C = (
|
|
4458
|
-
m.value[
|
|
4516
|
+
const C = ($) => {
|
|
4517
|
+
m.value[$.scrollReference] = $.positionPercentage * m.value[$.scrollSize] / 100;
|
|
4459
4518
|
};
|
|
4460
4519
|
return e({ handleScroll: b, reset: () => {
|
|
4461
4520
|
m.value.scrollTop = 0, b();
|
|
4462
|
-
}, jumpToPercentage: (
|
|
4463
|
-
|
|
4464
|
-
}, scrollToPercentage: (
|
|
4465
|
-
|
|
4466
|
-
}, update: x }), (
|
|
4467
|
-
class: U(["scrollbar scroll-hidden", [
|
|
4521
|
+
}, jumpToPercentage: ($, S) => {
|
|
4522
|
+
$ === "x" ? m.value.scrollLeft = m.value.scrollWidth * S / 100 : m.value.scrollTop = m.value.scrollHeight * S / 100, b();
|
|
4523
|
+
}, scrollToPercentage: ($, S) => {
|
|
4524
|
+
$ === "x" ? m.value.scrollTo({ left: m.value.scrollWidth * S / 100, behavior: "smooth" }) : m.value.scrollTo({ top: m.value.scrollHeight * S / 100, behavior: "smooth" }), b();
|
|
4525
|
+
}, update: x }), ($, S) => (g(), v("main", {
|
|
4526
|
+
class: U(["scrollbar scroll-hidden", [$.viewHeightClass, { show: $.show }]])
|
|
4468
4527
|
}, [
|
|
4469
4528
|
w("div", {
|
|
4470
4529
|
id: "wrapRef",
|
|
@@ -4477,21 +4536,21 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4477
4536
|
(g(), O(Kn(r.tag), {
|
|
4478
4537
|
ref_key: "contentRef",
|
|
4479
4538
|
ref: y,
|
|
4480
|
-
class: U(["scrollbar__view relative", [
|
|
4539
|
+
class: U(["scrollbar__view relative", [$.viewClass]])
|
|
4481
4540
|
}, {
|
|
4482
|
-
default:
|
|
4483
|
-
J(
|
|
4541
|
+
default: P(() => [
|
|
4542
|
+
J($.$slots, "default")
|
|
4484
4543
|
]),
|
|
4485
4544
|
_: 3
|
|
4486
4545
|
}, 8, ["class"]))
|
|
4487
4546
|
], 38),
|
|
4488
|
-
|
|
4547
|
+
$.disableX ? A("", !0) : (g(), O(h1, {
|
|
4489
4548
|
key: 0,
|
|
4490
4549
|
move: l.value,
|
|
4491
4550
|
size: c.value,
|
|
4492
4551
|
onUpdate: C
|
|
4493
4552
|
}, null, 8, ["move", "size"])),
|
|
4494
|
-
|
|
4553
|
+
$.disableY ? A("", !0) : (g(), O(h1, {
|
|
4495
4554
|
key: 1,
|
|
4496
4555
|
move: a.value,
|
|
4497
4556
|
size: d.value,
|
|
@@ -4500,12 +4559,12 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4500
4559
|
}, null, 8, ["move", "size"]))
|
|
4501
4560
|
], 2));
|
|
4502
4561
|
}
|
|
4503
|
-
}),
|
|
4562
|
+
}), Dy = /* @__PURE__ */ Z({
|
|
4504
4563
|
__name: "ScrollBottomLoader",
|
|
4505
4564
|
emits: ["intersect"],
|
|
4506
4565
|
setup(n, { emit: e }) {
|
|
4507
4566
|
const t = e, r = V(), i = V(null);
|
|
4508
|
-
return
|
|
4567
|
+
return He(() => {
|
|
4509
4568
|
i.value = new IntersectionObserver(
|
|
4510
4569
|
([o]) => o.isIntersecting && t("intersect"),
|
|
4511
4570
|
{ threshold: 0.01 }
|
|
@@ -4521,7 +4580,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4521
4580
|
}))
|
|
4522
4581
|
], 512));
|
|
4523
4582
|
}
|
|
4524
|
-
}),
|
|
4583
|
+
}), Ny = ["top", "bottom", "left", "right"], Ry = ["up", "down", "left", "right"], Py = /* @__PURE__ */ Z({
|
|
4525
4584
|
__name: "OptionGroup",
|
|
4526
4585
|
props: {
|
|
4527
4586
|
label: {},
|
|
@@ -4539,7 +4598,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4539
4598
|
J(e.$slots, "default")
|
|
4540
4599
|
], 2));
|
|
4541
4600
|
}
|
|
4542
|
-
}), w2 = { class: "list-none flex items-center w-full overflow-hidden bg-primary" }, L2 = { class: "flex-1 w-full overflow-hidden flex items-center gap-2" },
|
|
4601
|
+
}), w2 = { class: "list-none flex items-center w-full overflow-hidden bg-primary" }, L2 = { class: "flex-1 w-full overflow-hidden flex items-center gap-2" }, $y = /* @__PURE__ */ Z({
|
|
4543
4602
|
__name: "SelectListOption",
|
|
4544
4603
|
props: {
|
|
4545
4604
|
hoveredOption: {},
|
|
@@ -4564,7 +4623,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4564
4623
|
onMouseover: l[1] || (l[1] = (a) => t("hover", s.option)),
|
|
4565
4624
|
onFocus: l[2] || (l[2] = (a) => t("focus", s.option))
|
|
4566
4625
|
}, {
|
|
4567
|
-
default:
|
|
4626
|
+
default: P(() => [
|
|
4568
4627
|
w("main", L2, [
|
|
4569
4628
|
s.variant === "checkbox" ? (g(), O(k(hd), {
|
|
4570
4629
|
key: 0,
|
|
@@ -4572,7 +4631,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4572
4631
|
class: "flex-0",
|
|
4573
4632
|
onClick: o
|
|
4574
4633
|
}, null, 8, ["checked"])) : A("", !0),
|
|
4575
|
-
s.option.icon ? (g(), O(k(
|
|
4634
|
+
s.option.icon ? (g(), O(k(xe), {
|
|
4576
4635
|
key: 1,
|
|
4577
4636
|
name: s.option.icon,
|
|
4578
4637
|
class: U(["w-4 h-4 flex-0", {
|
|
@@ -4606,7 +4665,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4606
4665
|
}, 40, ["class"]))
|
|
4607
4666
|
]));
|
|
4608
4667
|
}
|
|
4609
|
-
}), M2 = { class: "flex-1 h-full flex flex-col items-center justify-center gap-2" }, x2 = { class: "flex flex-col items-center justify-center" }, S2 = { class: "flex items-center justify-center w-12 h-12" },
|
|
4668
|
+
}), M2 = { class: "flex-1 h-full flex flex-col items-center justify-center gap-2" }, x2 = { class: "flex flex-col items-center justify-center" }, S2 = { class: "flex items-center justify-center w-12 h-12" }, ys = /* @__PURE__ */ Z({
|
|
4610
4669
|
__name: "StatusCard",
|
|
4611
4670
|
props: {
|
|
4612
4671
|
status: {},
|
|
@@ -4628,17 +4687,17 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4628
4687
|
}, ge(e.status), 3)
|
|
4629
4688
|
]));
|
|
4630
4689
|
}
|
|
4631
|
-
}), H2 = /* @__PURE__ */
|
|
4690
|
+
}), H2 = /* @__PURE__ */ Z({
|
|
4632
4691
|
__name: "ErrorCard",
|
|
4633
4692
|
props: {
|
|
4634
4693
|
message: {}
|
|
4635
4694
|
},
|
|
4636
4695
|
setup(n) {
|
|
4637
|
-
return (e, t) => (g(), O(k(
|
|
4696
|
+
return (e, t) => (g(), O(k(ys), {
|
|
4638
4697
|
status: e.message,
|
|
4639
4698
|
variant: "error"
|
|
4640
4699
|
}, {
|
|
4641
|
-
default:
|
|
4700
|
+
default: P(() => t[0] || (t[0] = [
|
|
4642
4701
|
w("svg", {
|
|
4643
4702
|
width: "37",
|
|
4644
4703
|
height: "50",
|
|
@@ -4686,14 +4745,14 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4686
4745
|
_: 1
|
|
4687
4746
|
}, 8, ["status"]));
|
|
4688
4747
|
}
|
|
4689
|
-
}), T2 = /* @__PURE__ */
|
|
4748
|
+
}), T2 = /* @__PURE__ */ Z({
|
|
4690
4749
|
__name: "IdleCard",
|
|
4691
4750
|
setup(n) {
|
|
4692
|
-
return (e, t) => (g(), O(k(
|
|
4751
|
+
return (e, t) => (g(), O(k(ys), {
|
|
4693
4752
|
status: "Type to search",
|
|
4694
4753
|
variant: "idle"
|
|
4695
4754
|
}, {
|
|
4696
|
-
default:
|
|
4755
|
+
default: P(() => t[0] || (t[0] = [
|
|
4697
4756
|
w("svg", {
|
|
4698
4757
|
width: "44",
|
|
4699
4758
|
height: "36",
|
|
@@ -4712,27 +4771,27 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4712
4771
|
_: 1
|
|
4713
4772
|
}));
|
|
4714
4773
|
}
|
|
4715
|
-
}), E2 = /* @__PURE__ */
|
|
4774
|
+
}), E2 = /* @__PURE__ */ Z({
|
|
4716
4775
|
__name: "LoadingCard",
|
|
4717
4776
|
setup(n) {
|
|
4718
|
-
return (e, t) => (g(), O(k(
|
|
4777
|
+
return (e, t) => (g(), O(k(ys), {
|
|
4719
4778
|
status: "Loading",
|
|
4720
4779
|
variant: "loading"
|
|
4721
4780
|
}, {
|
|
4722
|
-
default:
|
|
4781
|
+
default: P(() => [
|
|
4723
4782
|
R(k(li))
|
|
4724
4783
|
]),
|
|
4725
4784
|
_: 1
|
|
4726
4785
|
}));
|
|
4727
4786
|
}
|
|
4728
|
-
}), V2 = /* @__PURE__ */
|
|
4787
|
+
}), V2 = /* @__PURE__ */ Z({
|
|
4729
4788
|
__name: "NoMatchCard",
|
|
4730
4789
|
setup(n) {
|
|
4731
|
-
return (e, t) => (g(), O(k(
|
|
4790
|
+
return (e, t) => (g(), O(k(ys), {
|
|
4732
4791
|
status: "No matches",
|
|
4733
4792
|
variant: "no match"
|
|
4734
4793
|
}, {
|
|
4735
|
-
default:
|
|
4794
|
+
default: P(() => t[0] || (t[0] = [
|
|
4736
4795
|
w("svg", {
|
|
4737
4796
|
width: "26",
|
|
4738
4797
|
height: "44",
|
|
@@ -4795,7 +4854,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4795
4854
|
}, P2 = { class: "flex-none flex items-center justify-between gap-1 px-4 py-1" }, $2 = {
|
|
4796
4855
|
key: 0,
|
|
4797
4856
|
class: "px-4 h-8 flex items-center text-ui-label-14-regular text-disabled-font"
|
|
4798
|
-
}, I2 = { class: "flex-0 px-6 py-4" },
|
|
4857
|
+
}, I2 = { class: "flex-0 px-6 py-4" }, Iy = /* @__PURE__ */ Z({
|
|
4799
4858
|
__name: "SelectList",
|
|
4800
4859
|
props: {
|
|
4801
4860
|
identifier: { default: "label" },
|
|
@@ -4818,7 +4877,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4818
4877
|
const r = n, i = t, { nextFrame: o } = ea(), s = V(null), l = V([]), a = V(""), u = V(), d = V(), c = V(), f = V(), p = V(), h = V(r.filters ? r.filters[0] : null), m = V(!1), y = V(!1), b = V(""), L = (I) => {
|
|
4819
4878
|
if (!Array.isArray(I)) throw new Error("Item passed must be an Array");
|
|
4820
4879
|
return I.length === 0 ? !1 : "options" in I[0];
|
|
4821
|
-
}, x = ne(() => L(r.options)), C = ne(() => x.value ? r.options.flatMap((I) => I.options) : r.options), H = ne(() => r.loading ? "loading" : r.errorMessage ? "error" : a.value.length && !l.value.length ? "no match" : l.value.length ? "match" : "idle"), M = ne(() => r.selected && "length" in r.selected), z = ne(() => r.selected ? M.value ? r.selected.length : 1 : 0),
|
|
4880
|
+
}, x = ne(() => L(r.options)), C = ne(() => x.value ? r.options.flatMap((I) => I.options) : r.options), H = ne(() => r.loading ? "loading" : r.errorMessage ? "error" : a.value.length && !l.value.length ? "no match" : l.value.length ? "match" : "idle"), M = ne(() => r.selected && "length" in r.selected), z = ne(() => r.selected ? M.value ? r.selected.length : 1 : 0), $ = ne(() => r.selected ? h.value ? r.selected.length >= C.value.filter(h.value.execute).length : M.value ? r.selected.length === C.value.length : !1 : !1), S = ne(() => r.selected ? M.value ? !r.selected.length : !r.selected : !0);
|
|
4822
4881
|
Qe(() => r.selected, (I) => {
|
|
4823
4882
|
I && m.value && o(() => {
|
|
4824
4883
|
if (c.value.update(), M.value && z.value) {
|
|
@@ -4828,24 +4887,24 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4828
4887
|
});
|
|
4829
4888
|
}), Qe(() => r.options, (I) => {
|
|
4830
4889
|
le(I), s.value = null;
|
|
4831
|
-
}), Er(() => le(r.options)),
|
|
4890
|
+
}), Er(() => le(r.options)), He(() => {
|
|
4832
4891
|
!M.value && r.selectAll && console.warn("[SelectList] selectAll prop not allowed when SelectList is not isMultiselect. You need to pass an Array of selected options (or empty) if you want it to be isMultiselect."), o(() => {
|
|
4833
4892
|
c.value && c.value.update(), u.value.addEventListener("keydown", B);
|
|
4834
4893
|
});
|
|
4835
4894
|
}), Ft(() => u.value.removeEventListener("keydown", B));
|
|
4836
4895
|
const B = (I) => {
|
|
4837
|
-
I.key === "Enter" ?
|
|
4896
|
+
I.key === "Enter" ? F() : I.key === "Escape" ? i("escape") : I.key === "ArrowDown" ? q("next") : I.key === "ArrowUp" && q("prev");
|
|
4838
4897
|
}, Q = (I) => {
|
|
4839
4898
|
if (M.value) {
|
|
4840
4899
|
const se = r.selected.map((Ce) => Ce.label).includes(I.label) ? [...r.selected.filter((Ce) => Ce.label !== I.label)] : [...r.selected, I];
|
|
4841
4900
|
i("select", se);
|
|
4842
4901
|
} else
|
|
4843
4902
|
i("select", I);
|
|
4844
|
-
},
|
|
4903
|
+
}, F = () => {
|
|
4845
4904
|
s.value ? Q(s.value) : a.value.length && i("selectQuery", a.value);
|
|
4846
4905
|
}, j = (I) => r.selected ? M.value ? r.selected.some((se) => se[r.identifier] === I[r.identifier]) : I[r.identifier] === r.selected[r.identifier] : !1, ee = async (I) => {
|
|
4847
4906
|
a.value = I, s.value = null, r.searchFunction && await r.searchFunction(I);
|
|
4848
|
-
}, ke = r.searchDebounce ?
|
|
4907
|
+
}, ke = r.searchDebounce ? gl(ee, r.searchDebounce) : ee, le = (I) => {
|
|
4849
4908
|
var se;
|
|
4850
4909
|
if (x.value) {
|
|
4851
4910
|
const Ce = I;
|
|
@@ -4864,8 +4923,8 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4864
4923
|
h.value = I, le(r.options);
|
|
4865
4924
|
}, he = () => {
|
|
4866
4925
|
if (!M.value) throw new Error('[SelectList@onToggleAll] method should not be called when "isMultiselect=false"');
|
|
4867
|
-
z.value === 0 || z.value &&
|
|
4868
|
-
},
|
|
4926
|
+
z.value === 0 || z.value && !$.value ? i("select", h.value ? C.value.filter(h.value.execute) : C.value) : i("select", []);
|
|
4927
|
+
}, Me = (I) => s.value = C.value.find((se) => se[r.identifier] === I[r.identifier]) || null, Be = ne(() => {
|
|
4869
4928
|
const I = Array.isArray(l.value) && l.value.length > 0 && "options" in l.value[0] ? l.value.flatMap((se) => se.options) : l.value;
|
|
4870
4929
|
return I.length > 0 && I.every((se) => !!se.disabled);
|
|
4871
4930
|
}), q = async (I) => {
|
|
@@ -4931,8 +4990,8 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4931
4990
|
onClick: he
|
|
4932
4991
|
}, [
|
|
4933
4992
|
R(k(hd), {
|
|
4934
|
-
indeterminate: !!(z.value &&
|
|
4935
|
-
checked:
|
|
4993
|
+
indeterminate: !!(z.value && !$.value),
|
|
4994
|
+
checked: $.value,
|
|
4936
4995
|
onClick: he
|
|
4937
4996
|
}, null, 8, ["indeterminate", "checked"]),
|
|
4938
4997
|
se[1] || (se[1] = w("span", { class: "text-sm text-muted italic" }, "Select/deselect all", -1))
|
|
@@ -4949,7 +5008,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4949
5008
|
class: "flex-1",
|
|
4950
5009
|
show: ""
|
|
4951
5010
|
}, {
|
|
4952
|
-
default:
|
|
5011
|
+
default: P(() => [
|
|
4953
5012
|
w("ul", {
|
|
4954
5013
|
ref_key: "optionsRef",
|
|
4955
5014
|
ref: d,
|
|
@@ -4961,7 +5020,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4961
5020
|
}, [
|
|
4962
5021
|
J(I.$slots, "options", {
|
|
4963
5022
|
options: l.value,
|
|
4964
|
-
hover:
|
|
5023
|
+
hover: Me,
|
|
4965
5024
|
hoveredOption: s.value,
|
|
4966
5025
|
select: Q,
|
|
4967
5026
|
getIsSelected: j
|
|
@@ -4994,7 +5053,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
4994
5053
|
onScrollYActive: Lt,
|
|
4995
5054
|
onIntersect: rt
|
|
4996
5055
|
}, {
|
|
4997
|
-
default:
|
|
5056
|
+
default: P(() => [
|
|
4998
5057
|
m.value ? (g(), v(E, { key: 0 }, [
|
|
4999
5058
|
S.value ? (g(), v("span", $2, "Nothing selected")) : A("", !0),
|
|
5000
5059
|
se[2] || (se[2] = w("section", { class: "w-full px-4 flex flex-wrap items-center gap-2" }, null, -1))
|
|
@@ -5009,7 +5068,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5009
5068
|
])) : A("", !0)
|
|
5010
5069
|
], 4));
|
|
5011
5070
|
}
|
|
5012
|
-
}),
|
|
5071
|
+
}), By = ["error", "idle", "loading", "match", "no match"], Zy = ["checkbox", "deletable", "single"], aa = /* @__PURE__ */ Z({
|
|
5013
5072
|
__name: "WindowFrame",
|
|
5014
5073
|
setup(n, { expose: e }) {
|
|
5015
5074
|
var r;
|
|
@@ -5028,7 +5087,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5028
5087
|
}), B2 = {
|
|
5029
5088
|
key: 0,
|
|
5030
5089
|
class: "px-6 flex items-center justify-between w-full h-12"
|
|
5031
|
-
}, Z2 = { class: "px-6" }, F2 = { class: "px-6" },
|
|
5090
|
+
}, Z2 = { class: "px-6" }, F2 = { class: "px-6" }, Fy = /* @__PURE__ */ Z({
|
|
5032
5091
|
__name: "SideOver",
|
|
5033
5092
|
props: {
|
|
5034
5093
|
closeable: { type: Boolean, default: !0 },
|
|
@@ -5040,7 +5099,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5040
5099
|
emits: ["close", "open"],
|
|
5041
5100
|
setup(n, { expose: e, emit: t }) {
|
|
5042
5101
|
const r = t, i = Si(), o = V(!1), s = V();
|
|
5043
|
-
|
|
5102
|
+
He(() => o.value = !0);
|
|
5044
5103
|
const l = () => o.value = !1, a = () => n.closeable && l();
|
|
5045
5104
|
n.closeable && Ql(a);
|
|
5046
5105
|
const u = () => {
|
|
@@ -5054,8 +5113,8 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5054
5113
|
onClick: a,
|
|
5055
5114
|
onClose: c[0] || (c[0] = (f) => r("close"))
|
|
5056
5115
|
}, {
|
|
5057
|
-
default:
|
|
5058
|
-
R(
|
|
5116
|
+
default: P(() => [
|
|
5117
|
+
R(Gl, {
|
|
5059
5118
|
"enter-active-class": "transform transition ease-in-out duration-500",
|
|
5060
5119
|
"enter-from-class": d.placement === "right" ? "translate-x-full" : "-translate-x-full",
|
|
5061
5120
|
"enter-to-class": "",
|
|
@@ -5064,7 +5123,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5064
5123
|
"leave-to-class": d.placement === "right" ? "translate-x-full" : "-translate-x-full",
|
|
5065
5124
|
onAfterEnter: u
|
|
5066
5125
|
}, {
|
|
5067
|
-
default:
|
|
5126
|
+
default: P(() => [
|
|
5068
5127
|
Vr(R(aa, {
|
|
5069
5128
|
ref_key: "panelRef",
|
|
5070
5129
|
ref: s,
|
|
@@ -5075,14 +5134,14 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5075
5134
|
}]),
|
|
5076
5135
|
style: { "pointer-events": "auto" }
|
|
5077
5136
|
}, {
|
|
5078
|
-
default:
|
|
5137
|
+
default: P(() => [
|
|
5079
5138
|
d.$slots.default ? J(d.$slots, "default", { key: 0 }) : (g(), O(k(Qa), { key: 1 }, ld({
|
|
5080
|
-
main:
|
|
5139
|
+
main: P(() => [
|
|
5081
5140
|
w("main", Z2, [
|
|
5082
5141
|
J(d.$slots, "main")
|
|
5083
5142
|
])
|
|
5084
5143
|
]),
|
|
5085
|
-
footer:
|
|
5144
|
+
footer: P(() => [
|
|
5086
5145
|
w("footer", F2, [
|
|
5087
5146
|
J(d.$slots, "footer")
|
|
5088
5147
|
])
|
|
@@ -5091,7 +5150,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5091
5150
|
}, [
|
|
5092
5151
|
d.title || d.$slots.header ? {
|
|
5093
5152
|
name: "header",
|
|
5094
|
-
fn:
|
|
5153
|
+
fn: P(() => [
|
|
5095
5154
|
d.title ? (g(), v("header", B2, [
|
|
5096
5155
|
w("h4", null, ge(d.title), 1),
|
|
5097
5156
|
d.closeable ? (g(), O(k(de), {
|
|
@@ -5119,12 +5178,12 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5119
5178
|
}, 8, ["show", "type"])
|
|
5120
5179
|
], 8, ["to"]));
|
|
5121
5180
|
}
|
|
5122
|
-
}),
|
|
5181
|
+
}), zy = /* @__PURE__ */ Z({
|
|
5123
5182
|
__name: "StatusSelect",
|
|
5124
5183
|
setup(n) {
|
|
5125
5184
|
return (e, t) => " TODO ";
|
|
5126
5185
|
}
|
|
5127
|
-
}),
|
|
5186
|
+
}), jy = /* @__PURE__ */ Z({
|
|
5128
5187
|
__name: "Switch",
|
|
5129
5188
|
props: {
|
|
5130
5189
|
value: { type: Boolean, default: !1 },
|
|
@@ -5154,7 +5213,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5154
5213
|
ve(re(r, ["prevent"]), ["enter"])
|
|
5155
5214
|
]
|
|
5156
5215
|
}, {
|
|
5157
|
-
default:
|
|
5216
|
+
default: P(() => [
|
|
5158
5217
|
w("span", {
|
|
5159
5218
|
"aria-hidden": "true",
|
|
5160
5219
|
class: U([[
|
|
@@ -5170,7 +5229,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5170
5229
|
key: 0,
|
|
5171
5230
|
class: "absolute",
|
|
5172
5231
|
style: { top: "0em", right: "-0.6em" }
|
|
5173
|
-
},
|
|
5232
|
+
}, Wy = /* @__PURE__ */ Z({
|
|
5174
5233
|
__name: "Tab",
|
|
5175
5234
|
props: {
|
|
5176
5235
|
icon: {},
|
|
@@ -5207,7 +5266,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5207
5266
|
}]),
|
|
5208
5267
|
onClick: re(o, ["stop", "prevent"])
|
|
5209
5268
|
}, [
|
|
5210
|
-
s.icon && s.size === "default" ? (g(), O(k(
|
|
5269
|
+
s.icon && s.size === "default" ? (g(), O(k(xe), {
|
|
5211
5270
|
key: 0,
|
|
5212
5271
|
name: s.icon
|
|
5213
5272
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -5219,7 +5278,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5219
5278
|
])
|
|
5220
5279
|
], 10, z2));
|
|
5221
5280
|
}
|
|
5222
|
-
}), U2 = { class: "truncate" },
|
|
5281
|
+
}), U2 = { class: "truncate" }, Uy = /* @__PURE__ */ Z({
|
|
5223
5282
|
__name: "Tag",
|
|
5224
5283
|
props: {
|
|
5225
5284
|
label: {},
|
|
@@ -5229,17 +5288,17 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5229
5288
|
emits: ["delete"],
|
|
5230
5289
|
setup(n, { emit: e }) {
|
|
5231
5290
|
const t = e;
|
|
5232
|
-
return (r, i) => (g(), O(k(
|
|
5291
|
+
return (r, i) => (g(), O(k(Le), {
|
|
5233
5292
|
inline: "",
|
|
5234
5293
|
class: U(["h-5 truncate text-xs rounded-sm text-tertiary bg-tertiary", {
|
|
5235
5294
|
"px-1": !r.deletable,
|
|
5236
5295
|
"pl-1 pr-0.5": r.deletable
|
|
5237
5296
|
}])
|
|
5238
5297
|
}, {
|
|
5239
|
-
default:
|
|
5240
|
-
R(k(
|
|
5241
|
-
default:
|
|
5242
|
-
r.icon ? (g(), O(k(
|
|
5298
|
+
default: P(() => [
|
|
5299
|
+
R(k(Le), { class: "gap-1" }, {
|
|
5300
|
+
default: P(() => [
|
|
5301
|
+
r.icon ? (g(), O(k(xe), {
|
|
5243
5302
|
key: 0,
|
|
5244
5303
|
name: r.icon
|
|
5245
5304
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -5260,7 +5319,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5260
5319
|
_: 1
|
|
5261
5320
|
}, 8, ["class"]));
|
|
5262
5321
|
}
|
|
5263
|
-
}), m1 = (n) => n != null,
|
|
5322
|
+
}), m1 = (n) => n != null, vs = /* @__PURE__ */ Z({
|
|
5264
5323
|
__name: "Tooltip",
|
|
5265
5324
|
props: {
|
|
5266
5325
|
bgColorClass: { default: "bg-black" },
|
|
@@ -5274,7 +5333,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5274
5333
|
triggerFullWidth: { type: Boolean, default: !1 }
|
|
5275
5334
|
},
|
|
5276
5335
|
setup(n) {
|
|
5277
|
-
return (e, t) => (g(), O(k(
|
|
5336
|
+
return (e, t) => (g(), O(k(gs), {
|
|
5278
5337
|
trigger: e.trigger,
|
|
5279
5338
|
"open-delay": e.delay,
|
|
5280
5339
|
"disable-click-outside": "",
|
|
@@ -5284,7 +5343,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5284
5343
|
"trigger-class": e.triggerFullWidth ? "w-full flex" : "inline-flex",
|
|
5285
5344
|
placement: e.placement
|
|
5286
5345
|
}, {
|
|
5287
|
-
content:
|
|
5346
|
+
content: P(() => [
|
|
5288
5347
|
e.text ? (g(), v("div", {
|
|
5289
5348
|
key: 0,
|
|
5290
5349
|
class: U(["z-50 min-w-0 px-2 py-1 rounded-md text-sm shadow-sm-md", [e.bgColorClass, e.textColorClass]])
|
|
@@ -5293,13 +5352,13 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5293
5352
|
J(e.$slots, "content")
|
|
5294
5353
|
], 2)) : A("", !0)
|
|
5295
5354
|
]),
|
|
5296
|
-
default:
|
|
5355
|
+
default: P(() => [
|
|
5297
5356
|
J(e.$slots, "default")
|
|
5298
5357
|
]),
|
|
5299
5358
|
_: 3
|
|
5300
5359
|
}, 8, ["trigger", "open-delay", "offset-main", "offset-cross", "root-class", "trigger-class", "placement"]));
|
|
5301
5360
|
}
|
|
5302
|
-
}), K2 = { class: "text-xs" }, q2 = /* @__PURE__ */
|
|
5361
|
+
}), K2 = { class: "text-xs" }, q2 = /* @__PURE__ */ Z({
|
|
5303
5362
|
__name: "EntryTag",
|
|
5304
5363
|
props: {
|
|
5305
5364
|
entry: {}
|
|
@@ -5307,11 +5366,11 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5307
5366
|
emits: ["delete"],
|
|
5308
5367
|
setup(n, { emit: e }) {
|
|
5309
5368
|
const t = e, r = () => t("delete", n.entry.id);
|
|
5310
|
-
return (i, o) => (g(), O(k(
|
|
5369
|
+
return (i, o) => (g(), O(k(vs), {
|
|
5311
5370
|
text: i.entry.error
|
|
5312
5371
|
}, {
|
|
5313
|
-
default:
|
|
5314
|
-
R(k(
|
|
5372
|
+
default: P(() => [
|
|
5373
|
+
R(k(Le), {
|
|
5315
5374
|
id: i.entry.id,
|
|
5316
5375
|
tabindex: "1",
|
|
5317
5376
|
class: U(["gap-0.5 h-6 pl-1 pr-0.5 rounded-md border cursor-default", {
|
|
@@ -5320,13 +5379,13 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5320
5379
|
}]),
|
|
5321
5380
|
onKeyup: ve(r, ["delete"])
|
|
5322
5381
|
}, {
|
|
5323
|
-
default:
|
|
5382
|
+
default: P(() => [
|
|
5324
5383
|
w("div", K2, ge(i.entry.value), 1),
|
|
5325
5384
|
w("button", {
|
|
5326
5385
|
class: "group cursor-pointer w-4 h-4 rounded hover:bg-secondary active:bg-tertiary",
|
|
5327
5386
|
onClick: r
|
|
5328
5387
|
}, [
|
|
5329
|
-
R(k(
|
|
5388
|
+
R(k(xe), {
|
|
5330
5389
|
name: "close",
|
|
5331
5390
|
class: "text-tertiary dark:text-muted group-hover:text-primary"
|
|
5332
5391
|
})
|
|
@@ -5338,7 +5397,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5338
5397
|
_: 1
|
|
5339
5398
|
}, 8, ["text"]));
|
|
5340
5399
|
}
|
|
5341
|
-
}), Y2 = ["value", "placeholder"],
|
|
5400
|
+
}), Y2 = ["value", "placeholder"], Ky = /* @__PURE__ */ Z({
|
|
5342
5401
|
__name: "TagInput",
|
|
5343
5402
|
props: {
|
|
5344
5403
|
placeholder: { default: "Enter value, comma separated" },
|
|
@@ -5365,15 +5424,15 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5365
5424
|
var p;
|
|
5366
5425
|
s.value = s.value.filter((h) => h.id !== f), r("update:entries", s.value), (p = i.value) == null || p.focus();
|
|
5367
5426
|
};
|
|
5368
|
-
return e({ importEntries: l }), (f, p) => (g(), O(k(
|
|
5369
|
-
default:
|
|
5427
|
+
return e({ importEntries: l, inputElement: i }), (f, p) => (g(), O(k(Le), { class: "flex-1 flex-wrap gap-1 px-2 py-1" }, {
|
|
5428
|
+
default: P(() => [
|
|
5370
5429
|
(g(!0), v(E, null, Pt(s.value, (h) => (g(), O(k(q2), {
|
|
5371
5430
|
key: h.id,
|
|
5372
5431
|
entry: h,
|
|
5373
5432
|
onDelete: c
|
|
5374
5433
|
}, null, 8, ["entry"]))), 128)),
|
|
5375
5434
|
w("input", {
|
|
5376
|
-
ref_key: "
|
|
5435
|
+
ref_key: "inputElement",
|
|
5377
5436
|
ref: i,
|
|
5378
5437
|
type: "text",
|
|
5379
5438
|
value: o.value,
|
|
@@ -5388,7 +5447,7 @@ const e2 = ["onKeydown"], t2 = /* @__PURE__ */ F({
|
|
|
5388
5447
|
_: 1
|
|
5389
5448
|
}));
|
|
5390
5449
|
}
|
|
5391
|
-
}),
|
|
5450
|
+
}), qy = {
|
|
5392
5451
|
validate: (n) => /^[\w.%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i.test(n),
|
|
5393
5452
|
errorMessage: () => "Invalid format."
|
|
5394
5453
|
};
|
|
@@ -5794,9 +5853,9 @@ class D {
|
|
|
5794
5853
|
}
|
|
5795
5854
|
}
|
|
5796
5855
|
D.empty = new D([], 0);
|
|
5797
|
-
const
|
|
5856
|
+
const Is = { index: 0, offset: 0 };
|
|
5798
5857
|
function Yi(n, e) {
|
|
5799
|
-
return
|
|
5858
|
+
return Is.index = n, Is.offset = e, Is;
|
|
5800
5859
|
}
|
|
5801
5860
|
function bo(n, e) {
|
|
5802
5861
|
if (n === e)
|
|
@@ -5822,7 +5881,7 @@ function bo(n, e) {
|
|
|
5822
5881
|
}
|
|
5823
5882
|
return !0;
|
|
5824
5883
|
}
|
|
5825
|
-
let be = class
|
|
5884
|
+
let be = class yl {
|
|
5826
5885
|
/**
|
|
5827
5886
|
@internal
|
|
5828
5887
|
*/
|
|
@@ -5920,8 +5979,8 @@ let be = class gl {
|
|
|
5920
5979
|
*/
|
|
5921
5980
|
static setFrom(e) {
|
|
5922
5981
|
if (!e || Array.isArray(e) && e.length == 0)
|
|
5923
|
-
return
|
|
5924
|
-
if (e instanceof
|
|
5982
|
+
return yl.none;
|
|
5983
|
+
if (e instanceof yl)
|
|
5925
5984
|
return [e];
|
|
5926
5985
|
let t = e.slice();
|
|
5927
5986
|
return t.sort((r, i) => r.type.rank - i.type.rank), t;
|
|
@@ -6055,7 +6114,7 @@ function Pd(n, e) {
|
|
|
6055
6114
|
if (!e.type.compatibleContent(n.type))
|
|
6056
6115
|
throw new ko("Cannot join " + e.type.name + " onto " + n.type.name);
|
|
6057
6116
|
}
|
|
6058
|
-
function
|
|
6117
|
+
function vl(n, e, t) {
|
|
6059
6118
|
let r = n.node(t);
|
|
6060
6119
|
return Pd(r, e.node(t)), r;
|
|
6061
6120
|
}
|
|
@@ -6074,13 +6133,13 @@ function Fn(n, e) {
|
|
|
6074
6133
|
return n.type.checkContent(e), n.copy(e);
|
|
6075
6134
|
}
|
|
6076
6135
|
function $d(n, e, t, r, i) {
|
|
6077
|
-
let o = n.depth > i &&
|
|
6136
|
+
let o = n.depth > i && vl(n, e, i + 1), s = r.depth > i && vl(t, r, i + 1), l = [];
|
|
6078
6137
|
return Jr(null, n, i, l), o && s && e.index(i) == t.index(i) ? (Pd(o, s), Zn(Fn(o, $d(n, e, t, r, i + 1)), l)) : (o && Zn(Fn(o, wo(n, e, i + 1)), l), Jr(e, t, i, l), s && Zn(Fn(s, wo(t, r, i + 1)), l)), Jr(r, null, i, l), new D(l);
|
|
6079
6138
|
}
|
|
6080
6139
|
function wo(n, e, t) {
|
|
6081
6140
|
let r = [];
|
|
6082
6141
|
if (Jr(null, n, t, r), n.depth > t) {
|
|
6083
|
-
let i =
|
|
6142
|
+
let i = vl(n, e, t + 1);
|
|
6084
6143
|
Zn(Fn(i, wo(n, e, t + 1)), r);
|
|
6085
6144
|
}
|
|
6086
6145
|
return Jr(e, null, t, r), new D(r);
|
|
@@ -6388,7 +6447,7 @@ class Lo {
|
|
|
6388
6447
|
}
|
|
6389
6448
|
}
|
|
6390
6449
|
const Q2 = /* @__PURE__ */ Object.create(null);
|
|
6391
|
-
let mn = class
|
|
6450
|
+
let mn = class Cl {
|
|
6392
6451
|
/**
|
|
6393
6452
|
@internal
|
|
6394
6453
|
*/
|
|
@@ -6513,14 +6572,14 @@ let mn = class vl {
|
|
|
6513
6572
|
the given content (or empty, if no content is given).
|
|
6514
6573
|
*/
|
|
6515
6574
|
copy(e = null) {
|
|
6516
|
-
return e == this.content ? this : new
|
|
6575
|
+
return e == this.content ? this : new Cl(this.type, this.attrs, e, this.marks);
|
|
6517
6576
|
}
|
|
6518
6577
|
/**
|
|
6519
6578
|
Create a copy of this node, with the given set of marks instead
|
|
6520
6579
|
of the node's own marks.
|
|
6521
6580
|
*/
|
|
6522
6581
|
mark(e) {
|
|
6523
|
-
return e == this.marks ? this : new
|
|
6582
|
+
return e == this.marks ? this : new Cl(this.type, this.attrs, this.content, e);
|
|
6524
6583
|
}
|
|
6525
6584
|
/**
|
|
6526
6585
|
Create a copy of this node with only the content between the
|
|
@@ -7380,7 +7439,7 @@ class d4 {
|
|
|
7380
7439
|
return !this.hasDefault;
|
|
7381
7440
|
}
|
|
7382
7441
|
}
|
|
7383
|
-
class
|
|
7442
|
+
class Cs {
|
|
7384
7443
|
/**
|
|
7385
7444
|
@internal
|
|
7386
7445
|
*/
|
|
@@ -7402,7 +7461,7 @@ class vs {
|
|
|
7402
7461
|
*/
|
|
7403
7462
|
static compile(e, t) {
|
|
7404
7463
|
let r = /* @__PURE__ */ Object.create(null), i = 0;
|
|
7405
|
-
return e.forEach((o, s) => r[o] = new
|
|
7464
|
+
return e.forEach((o, s) => r[o] = new Cs(o, i++, t, s)), r;
|
|
7406
7465
|
}
|
|
7407
7466
|
/**
|
|
7408
7467
|
When there is a mark of this type in the given set, a new set
|
|
@@ -7444,7 +7503,7 @@ class Kd {
|
|
|
7444
7503
|
let t = this.spec = {};
|
|
7445
7504
|
for (let i in e)
|
|
7446
7505
|
t[i] = e[i];
|
|
7447
|
-
t.nodes = Re.from(e.nodes), t.marks = Re.from(e.marks || {}), this.nodes = C1.compile(this.spec.nodes, this), this.marks =
|
|
7506
|
+
t.nodes = Re.from(e.nodes), t.marks = Re.from(e.marks || {}), this.nodes = C1.compile(this.spec.nodes, this), this.marks = Cs.compile(this.spec.marks, this);
|
|
7448
7507
|
let r = /* @__PURE__ */ Object.create(null);
|
|
7449
7508
|
for (let i in this.nodes) {
|
|
7450
7509
|
if (i in this.marks)
|
|
@@ -7695,9 +7754,9 @@ const qd = {
|
|
|
7695
7754
|
script: !0,
|
|
7696
7755
|
style: !0,
|
|
7697
7756
|
title: !0
|
|
7698
|
-
}, Yd = { ol: !0, ul: !0 }, di = 1,
|
|
7757
|
+
}, Yd = { ol: !0, ul: !0 }, di = 1, bl = 2, lo = 4;
|
|
7699
7758
|
function k1(n, e, t) {
|
|
7700
|
-
return e != null ? (e ? di : 0) | (e === "full" ?
|
|
7759
|
+
return e != null ? (e ? di : 0) | (e === "full" ? bl : 0) : n && n.whitespace == "pre" ? di | bl : t & -5;
|
|
7701
7760
|
}
|
|
7702
7761
|
class Ji {
|
|
7703
7762
|
constructor(e, t, r, i, o, s) {
|
|
@@ -7748,7 +7807,7 @@ class w1 {
|
|
|
7748
7807
|
e.nodeType == 3 ? this.addTextNode(e, t) : e.nodeType == 1 && this.addElement(e, t);
|
|
7749
7808
|
}
|
|
7750
7809
|
addTextNode(e, t) {
|
|
7751
|
-
let r = e.nodeValue, i = this.top, o = i.options &
|
|
7810
|
+
let r = e.nodeValue, i = this.top, o = i.options & bl ? "full" : this.localPreserveWS || (i.options & di) > 0;
|
|
7752
7811
|
if (o === "full" || i.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) {
|
|
7753
7812
|
if (o)
|
|
7754
7813
|
o !== "full" ? r = r.replace(/\r?\n|\r/g, " ") : r = r.replace(/\r\n?/g, `
|
|
@@ -8054,7 +8113,7 @@ class Qn {
|
|
|
8054
8113
|
nodes.
|
|
8055
8114
|
*/
|
|
8056
8115
|
serializeFragment(e, t = {}, r) {
|
|
8057
|
-
r || (r =
|
|
8116
|
+
r || (r = Bs(t).createDocumentFragment());
|
|
8058
8117
|
let i = r, o = [];
|
|
8059
8118
|
return e.forEach((s) => {
|
|
8060
8119
|
if (o.length || s.marks.length) {
|
|
@@ -8083,7 +8142,7 @@ class Qn {
|
|
|
8083
8142
|
@internal
|
|
8084
8143
|
*/
|
|
8085
8144
|
serializeNodeInner(e, t) {
|
|
8086
|
-
let { dom: r, contentDOM: i } = ao(
|
|
8145
|
+
let { dom: r, contentDOM: i } = ao(Bs(t), this.nodes[e.type.name](e), null, e.attrs);
|
|
8087
8146
|
if (i) {
|
|
8088
8147
|
if (e.isLeaf)
|
|
8089
8148
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -8111,7 +8170,7 @@ class Qn {
|
|
|
8111
8170
|
*/
|
|
8112
8171
|
serializeMark(e, t, r = {}) {
|
|
8113
8172
|
let i = this.marks[e.type.name];
|
|
8114
|
-
return i && ao(
|
|
8173
|
+
return i && ao(Bs(r), i(e, t), null, e.attrs);
|
|
8115
8174
|
}
|
|
8116
8175
|
static renderSpec(e, t, r = null, i) {
|
|
8117
8176
|
return ao(e, t, r, i);
|
|
@@ -8146,7 +8205,7 @@ function x1(n) {
|
|
|
8146
8205
|
}
|
|
8147
8206
|
return e;
|
|
8148
8207
|
}
|
|
8149
|
-
function
|
|
8208
|
+
function Bs(n) {
|
|
8150
8209
|
return n.document || window.document;
|
|
8151
8210
|
}
|
|
8152
8211
|
const S1 = /* @__PURE__ */ new WeakMap();
|
|
@@ -8221,7 +8280,7 @@ function C4(n) {
|
|
|
8221
8280
|
return (n - (n & Jd)) / Gd;
|
|
8222
8281
|
}
|
|
8223
8282
|
const Xd = 1, _d = 2, uo = 4, Qd = 8;
|
|
8224
|
-
class
|
|
8283
|
+
class kl {
|
|
8225
8284
|
/**
|
|
8226
8285
|
@internal
|
|
8227
8286
|
*/
|
|
@@ -8298,11 +8357,11 @@ class lt {
|
|
|
8298
8357
|
if (r)
|
|
8299
8358
|
return p;
|
|
8300
8359
|
let h = e == (t < 0 ? a : c) ? null : v4(l / 3, e - a), m = e == a ? _d : e == c ? Xd : uo;
|
|
8301
|
-
return (t < 0 ? e != a : e != c) && (m |= Qd), new
|
|
8360
|
+
return (t < 0 ? e != a : e != c) && (m |= Qd), new kl(p, m, h);
|
|
8302
8361
|
}
|
|
8303
8362
|
i += d - u;
|
|
8304
8363
|
}
|
|
8305
|
-
return r ? e + i : new
|
|
8364
|
+
return r ? e + i : new kl(e + i, 0, null);
|
|
8306
8365
|
}
|
|
8307
8366
|
/**
|
|
8308
8367
|
@internal
|
|
@@ -8458,10 +8517,10 @@ class ci {
|
|
|
8458
8517
|
}
|
|
8459
8518
|
i |= l.delInfo, e = l.pos;
|
|
8460
8519
|
}
|
|
8461
|
-
return r ? e : new
|
|
8520
|
+
return r ? e : new kl(e, i, null);
|
|
8462
8521
|
}
|
|
8463
8522
|
}
|
|
8464
|
-
const
|
|
8523
|
+
const Zs = /* @__PURE__ */ Object.create(null);
|
|
8465
8524
|
class ze {
|
|
8466
8525
|
/**
|
|
8467
8526
|
Get the step map that represents the changes made by this step,
|
|
@@ -8486,7 +8545,7 @@ class ze {
|
|
|
8486
8545
|
static fromJSON(e, t) {
|
|
8487
8546
|
if (!t || !t.stepType)
|
|
8488
8547
|
throw new RangeError("Invalid input for Step.fromJSON");
|
|
8489
|
-
let r =
|
|
8548
|
+
let r = Zs[t.stepType];
|
|
8490
8549
|
if (!r)
|
|
8491
8550
|
throw new RangeError(`No step type ${t.stepType} defined`);
|
|
8492
8551
|
return r.fromJSON(e, t);
|
|
@@ -8498,9 +8557,9 @@ class ze {
|
|
|
8498
8557
|
that's unlikely to clash with steps from other modules.
|
|
8499
8558
|
*/
|
|
8500
8559
|
static jsonID(e, t) {
|
|
8501
|
-
if (e in
|
|
8560
|
+
if (e in Zs)
|
|
8502
8561
|
throw new RangeError("Duplicate use of step JSON ID " + e);
|
|
8503
|
-
return
|
|
8562
|
+
return Zs[e] = t, t.prototype.jsonID = e, t;
|
|
8504
8563
|
}
|
|
8505
8564
|
}
|
|
8506
8565
|
class Te {
|
|
@@ -8716,7 +8775,7 @@ class Oe extends ze {
|
|
|
8716
8775
|
super(), this.from = e, this.to = t, this.slice = r, this.structure = i;
|
|
8717
8776
|
}
|
|
8718
8777
|
apply(e) {
|
|
8719
|
-
return this.structure &&
|
|
8778
|
+
return this.structure && wl(e, this.from, this.to) ? Te.fail("Structure replace would overwrite content") : Te.fromReplace(e, this.from, this.to, this.slice);
|
|
8720
8779
|
}
|
|
8721
8780
|
getMap() {
|
|
8722
8781
|
return new lt([this.from, this.to - this.from, this.slice.size]);
|
|
@@ -8765,7 +8824,7 @@ class Ae extends ze {
|
|
|
8765
8824
|
super(), this.from = e, this.to = t, this.gapFrom = r, this.gapTo = i, this.slice = o, this.insert = s, this.structure = l;
|
|
8766
8825
|
}
|
|
8767
8826
|
apply(e) {
|
|
8768
|
-
if (this.structure && (
|
|
8827
|
+
if (this.structure && (wl(e, this.from, this.gapFrom) || wl(e, this.gapTo, this.to)))
|
|
8769
8828
|
return Te.fail("Structure gap-replace would overwrite content");
|
|
8770
8829
|
let t = e.slice(this.gapFrom, this.gapTo);
|
|
8771
8830
|
if (t.openStart || t.openEnd)
|
|
@@ -8812,7 +8871,7 @@ class Ae extends ze {
|
|
|
8812
8871
|
}
|
|
8813
8872
|
}
|
|
8814
8873
|
ze.jsonID("replaceAround", Ae);
|
|
8815
|
-
function
|
|
8874
|
+
function wl(n, e, t) {
|
|
8816
8875
|
let r = n.resolve(e), i = t - e, o = r.depth;
|
|
8817
8876
|
for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
|
|
8818
8877
|
o--, i--;
|
|
@@ -8847,7 +8906,7 @@ function k4(n, e, t, r) {
|
|
|
8847
8906
|
return;
|
|
8848
8907
|
o++;
|
|
8849
8908
|
let a = null;
|
|
8850
|
-
if (r instanceof
|
|
8909
|
+
if (r instanceof Cs) {
|
|
8851
8910
|
let u = s.marks, d;
|
|
8852
8911
|
for (; d = r.isInSet(u); )
|
|
8853
8912
|
(a || (a = [])).push(d), u = d.removeFromSet(u);
|
|
@@ -9046,7 +9105,7 @@ function O4(n, e) {
|
|
|
9046
9105
|
function nc(n, e) {
|
|
9047
9106
|
return !!(n && e && !n.isLeaf && O4(n, e));
|
|
9048
9107
|
}
|
|
9049
|
-
function
|
|
9108
|
+
function bs(n, e, t = -1) {
|
|
9050
9109
|
let r = n.resolve(e);
|
|
9051
9110
|
for (let i = r.depth; ; i--) {
|
|
9052
9111
|
let o, s, l = r.index(i);
|
|
@@ -9119,7 +9178,7 @@ function N4(n, e, t) {
|
|
|
9119
9178
|
}
|
|
9120
9179
|
return null;
|
|
9121
9180
|
}
|
|
9122
|
-
function
|
|
9181
|
+
function ks(n, e, t = e, r = W.empty) {
|
|
9123
9182
|
if (e == t && !r.size)
|
|
9124
9183
|
return null;
|
|
9125
9184
|
let i = n.resolve(e), o = n.resolve(t);
|
|
@@ -9174,7 +9233,7 @@ class R4 {
|
|
|
9174
9233
|
for (let t = 1; t <= 2; t++)
|
|
9175
9234
|
for (let r = t == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
|
|
9176
9235
|
let i, o = null;
|
|
9177
|
-
r ? (o =
|
|
9236
|
+
r ? (o = Fs(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
|
|
9178
9237
|
let s = i.firstChild;
|
|
9179
9238
|
for (let l = this.depth; l >= 0; l--) {
|
|
9180
9239
|
let { type: a, match: u } = this.frontier[l], d, c = null;
|
|
@@ -9188,11 +9247,11 @@ class R4 {
|
|
|
9188
9247
|
}
|
|
9189
9248
|
}
|
|
9190
9249
|
openMore() {
|
|
9191
|
-
let { content: e, openStart: t, openEnd: r } = this.unplaced, i =
|
|
9250
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, i = Fs(e, t);
|
|
9192
9251
|
return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new W(e, t + 1, Math.max(r, i.size + t >= e.size - r ? t + 1 : 0)), !0);
|
|
9193
9252
|
}
|
|
9194
9253
|
dropNode() {
|
|
9195
|
-
let { content: e, openStart: t, openEnd: r } = this.unplaced, i =
|
|
9254
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, i = Fs(e, t);
|
|
9196
9255
|
if (i.childCount <= 1 && t > 0) {
|
|
9197
9256
|
let o = e.size - t <= t + i.size;
|
|
9198
9257
|
this.unplaced = new W(Ur(e, t - 1, 1), t - 1, o ? t - 1 : r);
|
|
@@ -9233,7 +9292,7 @@ class R4 {
|
|
|
9233
9292
|
if (!this.$to.parent.isTextblock)
|
|
9234
9293
|
return -1;
|
|
9235
9294
|
let e = this.frontier[this.depth], t;
|
|
9236
|
-
if (!e.type.isTextblock || !
|
|
9295
|
+
if (!e.type.isTextblock || !zs(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
|
|
9237
9296
|
return -1;
|
|
9238
9297
|
let { depth: r } = this.$to, i = this.$to.after(r);
|
|
9239
9298
|
for (; r > 1 && i == this.$to.end(--r); )
|
|
@@ -9242,10 +9301,10 @@ class R4 {
|
|
|
9242
9301
|
}
|
|
9243
9302
|
findCloseLevel(e) {
|
|
9244
9303
|
e: for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
|
|
9245
|
-
let { match: r, type: i } = this.frontier[t], o = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), s =
|
|
9304
|
+
let { match: r, type: i } = this.frontier[t], o = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), s = zs(e, t, i, r, o);
|
|
9246
9305
|
if (s) {
|
|
9247
9306
|
for (let l = t - 1; l >= 0; l--) {
|
|
9248
|
-
let { match: a, type: u } = this.frontier[l], d =
|
|
9307
|
+
let { match: a, type: u } = this.frontier[l], d = zs(e, l, u, a, !0);
|
|
9249
9308
|
if (!d || d.childCount)
|
|
9250
9309
|
continue e;
|
|
9251
9310
|
}
|
|
@@ -9281,7 +9340,7 @@ function Ur(n, e, t) {
|
|
|
9281
9340
|
function Kr(n, e, t) {
|
|
9282
9341
|
return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(Kr(n.lastChild.content, e - 1, t)));
|
|
9283
9342
|
}
|
|
9284
|
-
function
|
|
9343
|
+
function Fs(n, e) {
|
|
9285
9344
|
for (let t = 0; t < e; t++)
|
|
9286
9345
|
n = n.firstChild.content;
|
|
9287
9346
|
return n;
|
|
@@ -9292,7 +9351,7 @@ function ic(n, e, t) {
|
|
|
9292
9351
|
let r = n.content;
|
|
9293
9352
|
return e > 1 && (r = r.replaceChild(0, ic(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(D.empty, !0)))), n.copy(r);
|
|
9294
9353
|
}
|
|
9295
|
-
function
|
|
9354
|
+
function zs(n, e, t, r, i) {
|
|
9296
9355
|
let o = n.node(e), s = i ? n.indexAfter(e) : n.index(e);
|
|
9297
9356
|
if (s == o.childCount && !t.compatibleContent(o.type))
|
|
9298
9357
|
return null;
|
|
@@ -9527,7 +9586,7 @@ class lc {
|
|
|
9527
9586
|
given `slice`.
|
|
9528
9587
|
*/
|
|
9529
9588
|
replace(e, t = e, r = W.empty) {
|
|
9530
|
-
let i =
|
|
9589
|
+
let i = ks(this.doc, e, t, r);
|
|
9531
9590
|
return i && this.step(i), this;
|
|
9532
9591
|
}
|
|
9533
9592
|
/**
|
|
@@ -9698,7 +9757,7 @@ class lc {
|
|
|
9698
9757
|
return da(this, e, t, r), this;
|
|
9699
9758
|
}
|
|
9700
9759
|
}
|
|
9701
|
-
const
|
|
9760
|
+
const js = /* @__PURE__ */ Object.create(null);
|
|
9702
9761
|
class ce {
|
|
9703
9762
|
/**
|
|
9704
9763
|
Initialize a selection with the head and anchor and ranges. If no
|
|
@@ -9834,7 +9893,7 @@ class ce {
|
|
|
9834
9893
|
static fromJSON(e, t) {
|
|
9835
9894
|
if (!t || !t.type)
|
|
9836
9895
|
throw new RangeError("Invalid input for Selection.fromJSON");
|
|
9837
|
-
let r =
|
|
9896
|
+
let r = js[t.type];
|
|
9838
9897
|
if (!r)
|
|
9839
9898
|
throw new RangeError(`No selection type ${t.type} defined`);
|
|
9840
9899
|
return r.fromJSON(e, t);
|
|
@@ -9846,9 +9905,9 @@ class ce {
|
|
|
9846
9905
|
clash with classes from other modules.
|
|
9847
9906
|
*/
|
|
9848
9907
|
static jsonID(e, t) {
|
|
9849
|
-
if (e in
|
|
9908
|
+
if (e in js)
|
|
9850
9909
|
throw new RangeError("Duplicate use of selection JSON ID " + e);
|
|
9851
|
-
return
|
|
9910
|
+
return js[e] = t, t.prototype.jsonID = e, t;
|
|
9852
9911
|
}
|
|
9853
9912
|
/**
|
|
9854
9913
|
Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
|
|
@@ -9907,7 +9966,7 @@ class oe extends ce {
|
|
|
9907
9966
|
return e instanceof oe && e.anchor == this.anchor && e.head == this.head;
|
|
9908
9967
|
}
|
|
9909
9968
|
getBookmark() {
|
|
9910
|
-
return new
|
|
9969
|
+
return new ws(this.anchor, this.head);
|
|
9911
9970
|
}
|
|
9912
9971
|
toJSON() {
|
|
9913
9972
|
return { type: "text", anchor: this.anchor, head: this.head };
|
|
@@ -9948,12 +10007,12 @@ class oe extends ce {
|
|
|
9948
10007
|
}
|
|
9949
10008
|
}
|
|
9950
10009
|
ce.jsonID("text", oe);
|
|
9951
|
-
class
|
|
10010
|
+
class ws {
|
|
9952
10011
|
constructor(e, t) {
|
|
9953
10012
|
this.anchor = e, this.head = t;
|
|
9954
10013
|
}
|
|
9955
10014
|
map(e) {
|
|
9956
|
-
return new
|
|
10015
|
+
return new ws(e.map(this.anchor), e.map(this.head));
|
|
9957
10016
|
}
|
|
9958
10017
|
resolve(e) {
|
|
9959
10018
|
return oe.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
@@ -10014,7 +10073,7 @@ class fa {
|
|
|
10014
10073
|
}
|
|
10015
10074
|
map(e) {
|
|
10016
10075
|
let { deleted: t, pos: r } = e.mapResult(this.anchor);
|
|
10017
|
-
return t ? new
|
|
10076
|
+
return t ? new ws(r, r) : new fa(r);
|
|
10018
10077
|
}
|
|
10019
10078
|
resolve(e) {
|
|
10020
10079
|
let t = e.resolve(this.anchor), r = t.nodeAfter;
|
|
@@ -10287,7 +10346,7 @@ const W4 = [
|
|
|
10287
10346
|
}
|
|
10288
10347
|
})
|
|
10289
10348
|
];
|
|
10290
|
-
class
|
|
10349
|
+
class Ws {
|
|
10291
10350
|
constructor(e, t) {
|
|
10292
10351
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = W4.slice(), t && t.forEach((r) => {
|
|
10293
10352
|
if (this.pluginsByKey[r.key])
|
|
@@ -10388,7 +10447,7 @@ class cr {
|
|
|
10388
10447
|
Create a new state.
|
|
10389
10448
|
*/
|
|
10390
10449
|
static create(e) {
|
|
10391
|
-
let t = new
|
|
10450
|
+
let t = new Ws(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new cr(t);
|
|
10392
10451
|
for (let i = 0; i < t.fields.length; i++)
|
|
10393
10452
|
r[t.fields[i].name] = t.fields[i].init(e, r);
|
|
10394
10453
|
return r;
|
|
@@ -10402,7 +10461,7 @@ class cr {
|
|
|
10402
10461
|
configuration object..
|
|
10403
10462
|
*/
|
|
10404
10463
|
reconfigure(e) {
|
|
10405
|
-
let t = new
|
|
10464
|
+
let t = new Ws(this.schema, e.plugins), r = t.fields, i = new cr(t);
|
|
10406
10465
|
for (let o = 0; o < r.length; o++) {
|
|
10407
10466
|
let s = r[o].name;
|
|
10408
10467
|
i[s] = this.hasOwnProperty(s) ? this[s] : r[o].init(e, i);
|
|
@@ -10439,7 +10498,7 @@ class cr {
|
|
|
10439
10498
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
10440
10499
|
if (!e.schema)
|
|
10441
10500
|
throw new RangeError("Required config field 'schema' missing");
|
|
10442
|
-
let i = new
|
|
10501
|
+
let i = new Ws(e.schema, e.plugins), o = new cr(i);
|
|
10443
10502
|
return i.fields.forEach((s) => {
|
|
10444
10503
|
if (s.name == "doc")
|
|
10445
10504
|
o.doc = mn.fromJSON(e.schema, t.doc);
|
|
@@ -10482,9 +10541,9 @@ class Ie {
|
|
|
10482
10541
|
return e[this.key];
|
|
10483
10542
|
}
|
|
10484
10543
|
}
|
|
10485
|
-
const
|
|
10544
|
+
const Us = /* @__PURE__ */ Object.create(null);
|
|
10486
10545
|
function uc(n) {
|
|
10487
|
-
return n in
|
|
10546
|
+
return n in Us ? n + "$" + ++Us[n] : (Us[n] = 0, n + "$");
|
|
10488
10547
|
}
|
|
10489
10548
|
class Ge {
|
|
10490
10549
|
/**
|
|
@@ -10515,12 +10574,12 @@ const Pe = function(n) {
|
|
|
10515
10574
|
let e = n.assignedSlot || n.parentNode;
|
|
10516
10575
|
return e && e.nodeType == 11 ? e.host : e;
|
|
10517
10576
|
};
|
|
10518
|
-
let
|
|
10577
|
+
let Ll = null;
|
|
10519
10578
|
const Yt = function(n, e, t) {
|
|
10520
|
-
let r =
|
|
10579
|
+
let r = Ll || (Ll = document.createRange());
|
|
10521
10580
|
return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
|
|
10522
10581
|
}, U4 = function() {
|
|
10523
|
-
|
|
10582
|
+
Ll = null;
|
|
10524
10583
|
}, Gn = function(n, e, t, r) {
|
|
10525
10584
|
return t && (P1(n, e, t, r, -1) || P1(n, e, t, r, 1));
|
|
10526
10585
|
}, K4 = /^(img|br|input|textarea|hr)$/i;
|
|
@@ -10588,7 +10647,7 @@ function Oi(n) {
|
|
|
10588
10647
|
;
|
|
10589
10648
|
return e && e.node && e.node.isBlock && (e.dom == n || e.contentDOM == n);
|
|
10590
10649
|
}
|
|
10591
|
-
const
|
|
10650
|
+
const Ls = function(n) {
|
|
10592
10651
|
return n.focusNode && Gn(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
|
|
10593
10652
|
};
|
|
10594
10653
|
function Rn(n, e) {
|
|
@@ -10615,9 +10674,9 @@ function X4(n, e, t) {
|
|
|
10615
10674
|
return { node: r.startContainer, offset: Math.min(yt(r.startContainer), r.startOffset) };
|
|
10616
10675
|
}
|
|
10617
10676
|
}
|
|
10618
|
-
const It = typeof navigator < "u" ? navigator : null, $1 = typeof document < "u" ? document : null, Sn = It && It.userAgent || "",
|
|
10677
|
+
const It = typeof navigator < "u" ? navigator : null, $1 = typeof document < "u" ? document : null, Sn = It && It.userAgent || "", Ml = /Edge\/(\d+)/.exec(Sn), dc = /MSIE \d/.exec(Sn), xl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Sn), et = !!(dc || xl || Ml), yn = dc ? document.documentMode : xl ? +xl[1] : Ml ? +Ml[1] : 0, Ht = !et && /gecko\/(\d+)/i.test(Sn);
|
|
10619
10678
|
Ht && +(/Firefox\/(\d+)/.exec(Sn) || [0, 0])[1];
|
|
10620
|
-
const
|
|
10679
|
+
const Sl = !et && /Chrome\/(\d+)/.exec(Sn), Fe = !!Sl, cc = Sl ? +Sl[1] : 0, Ke = !et && !!It && /Apple Computer/.test(It.vendor), kr = Ke && (/Mobile\/\w+/.test(Sn) || !!It && It.maxTouchPoints > 2), gt = kr || (It ? /Mac/.test(It.platform) : !1), _4 = It ? /Win/.test(It.platform) : !1, Gt = /Android \d/.test(Sn), Ai = !!$1 && "webkitFontSmoothing" in $1.documentElement.style, Q4 = Ai ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
10621
10680
|
function e3(n) {
|
|
10622
10681
|
let e = n.defaultView && n.defaultView.visualViewport;
|
|
10623
10682
|
return e ? {
|
|
@@ -10853,14 +10912,14 @@ function gc(n, e, t) {
|
|
|
10853
10912
|
if (o == null && i && (t < 0 || i == yt(r))) {
|
|
10854
10913
|
let a = r.childNodes[i - 1];
|
|
10855
10914
|
if (a.nodeType == 1)
|
|
10856
|
-
return
|
|
10915
|
+
return Ks(a.getBoundingClientRect(), !1);
|
|
10857
10916
|
}
|
|
10858
10917
|
if (o == null && i < yt(r)) {
|
|
10859
10918
|
let a = r.childNodes[i];
|
|
10860
10919
|
if (a.nodeType == 1)
|
|
10861
|
-
return
|
|
10920
|
+
return Ks(a.getBoundingClientRect(), !0);
|
|
10862
10921
|
}
|
|
10863
|
-
return
|
|
10922
|
+
return Ks(r.getBoundingClientRect(), t >= 0);
|
|
10864
10923
|
}
|
|
10865
10924
|
if (o == null && i && (t < 0 || i == yt(r))) {
|
|
10866
10925
|
let a = r.childNodes[i - 1], u = a.nodeType == 3 ? Yt(a, yt(a) - (s ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
|
|
@@ -10883,7 +10942,7 @@ function Fr(n, e) {
|
|
|
10883
10942
|
let t = e ? n.left : n.right;
|
|
10884
10943
|
return { top: n.top, bottom: n.bottom, left: t, right: t };
|
|
10885
10944
|
}
|
|
10886
|
-
function
|
|
10945
|
+
function Ks(n, e) {
|
|
10887
10946
|
if (n.height == 0)
|
|
10888
10947
|
return n;
|
|
10889
10948
|
let t = e ? n.top : n.bottom;
|
|
@@ -11374,7 +11433,7 @@ class Xn extends Di {
|
|
|
11374
11433
|
}
|
|
11375
11434
|
slice(e, t, r) {
|
|
11376
11435
|
let i = Xn.create(this.parent, this.mark, !0, r), o = this.children, s = this.size;
|
|
11377
|
-
t < s && (o =
|
|
11436
|
+
t < s && (o = Tl(o, t, s, r)), e > 0 && (o = Tl(o, 0, e, r));
|
|
11378
11437
|
for (let l = 0; l < o.length; l++)
|
|
11379
11438
|
o[l].parent = i;
|
|
11380
11439
|
return i.children = o, i;
|
|
@@ -11414,7 +11473,7 @@ class vn extends Di {
|
|
|
11414
11473
|
} else d || ({ dom: d, contentDOM: c } = Qn.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
|
|
11415
11474
|
!c && !t.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), t.type.spec.draggable && (d.draggable = !0));
|
|
11416
11475
|
let f = d;
|
|
11417
|
-
return d = wc(d, r, t), u ? a = new g3(e, t, r, i, d, c || null, f, u, o, s + 1) : t.isText ? new
|
|
11476
|
+
return d = wc(d, r, t), u ? a = new g3(e, t, r, i, d, c || null, f, u, o, s + 1) : t.isText ? new Ms(e, t, r, i, d, f, o) : new vn(e, t, r, i, d, c || null, f, o, s + 1);
|
|
11418
11477
|
}
|
|
11419
11478
|
parseRule() {
|
|
11420
11479
|
if (this.node.type.spec.reparseInView)
|
|
@@ -11484,7 +11543,7 @@ class vn extends Di {
|
|
|
11484
11543
|
o.pmViewDesc && (o.pmViewDesc = void 0);
|
|
11485
11544
|
}
|
|
11486
11545
|
let s = new m3(this, o, t, i);
|
|
11487
|
-
e.input.compositionNodes.push(s), this.children =
|
|
11546
|
+
e.input.compositionNodes.push(s), this.children = Tl(this.children, r, r + i.length, e, s);
|
|
11488
11547
|
}
|
|
11489
11548
|
// If this desc must be updated to match the given node decoration,
|
|
11490
11549
|
// do so and return true.
|
|
@@ -11498,7 +11557,7 @@ class vn extends Di {
|
|
|
11498
11557
|
if (xo(e, this.outerDeco))
|
|
11499
11558
|
return;
|
|
11500
11559
|
let t = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
11501
|
-
this.dom = kc(this.dom, this.nodeDOM,
|
|
11560
|
+
this.dom = kc(this.dom, this.nodeDOM, Hl(this.outerDeco, this.node, t), Hl(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
11502
11561
|
}
|
|
11503
11562
|
// Mark this node as being the selected node.
|
|
11504
11563
|
selectNode() {
|
|
@@ -11517,7 +11576,7 @@ function W1(n, e, t, r, i) {
|
|
|
11517
11576
|
let o = new vn(void 0, n, e, t, r, r, r, i, 0);
|
|
11518
11577
|
return o.contentDOM && o.updateChildren(i, 0), o;
|
|
11519
11578
|
}
|
|
11520
|
-
class
|
|
11579
|
+
class Ms extends vn {
|
|
11521
11580
|
constructor(e, t, r, i, o, s, l) {
|
|
11522
11581
|
super(e, t, r, i, o, null, s, l, 0);
|
|
11523
11582
|
}
|
|
@@ -11548,7 +11607,7 @@ class Ls extends vn {
|
|
|
11548
11607
|
}
|
|
11549
11608
|
slice(e, t, r) {
|
|
11550
11609
|
let i = this.node.cut(e, t), o = document.createTextNode(i.text);
|
|
11551
|
-
return new
|
|
11610
|
+
return new Ms(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
|
|
11552
11611
|
}
|
|
11553
11612
|
markDirty(e, t) {
|
|
11554
11613
|
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = Bt);
|
|
@@ -11632,7 +11691,7 @@ const Gr = function(n) {
|
|
|
11632
11691
|
};
|
|
11633
11692
|
Gr.prototype = /* @__PURE__ */ Object.create(null);
|
|
11634
11693
|
const In = [new Gr()];
|
|
11635
|
-
function
|
|
11694
|
+
function Hl(n, e, t) {
|
|
11636
11695
|
if (n.length == 0)
|
|
11637
11696
|
return In;
|
|
11638
11697
|
let r = t ? In[0] : new Gr(), i = [r];
|
|
@@ -11685,7 +11744,7 @@ function y3(n, e, t) {
|
|
|
11685
11744
|
}
|
|
11686
11745
|
}
|
|
11687
11746
|
function wc(n, e, t) {
|
|
11688
|
-
return kc(n, n, In,
|
|
11747
|
+
return kc(n, n, In, Hl(e, t, n.nodeType != 1));
|
|
11689
11748
|
}
|
|
11690
11749
|
function xo(n, e) {
|
|
11691
11750
|
if (n.length != e.length)
|
|
@@ -11833,7 +11892,7 @@ class v3 {
|
|
|
11833
11892
|
for (; e instanceof Xn; )
|
|
11834
11893
|
t = e, e = t.children[t.children.length - 1];
|
|
11835
11894
|
(!e || // Empty textblock
|
|
11836
|
-
!(e instanceof
|
|
11895
|
+
!(e instanceof Ms) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Ke || Fe) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
11837
11896
|
}
|
|
11838
11897
|
addHackNode(e, t) {
|
|
11839
11898
|
if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
|
|
@@ -11957,7 +12016,7 @@ function L3(n, e, t, r) {
|
|
|
11957
12016
|
}
|
|
11958
12017
|
return -1;
|
|
11959
12018
|
}
|
|
11960
|
-
function
|
|
12019
|
+
function Tl(n, e, t, r, i) {
|
|
11961
12020
|
let o = [];
|
|
11962
12021
|
for (let s = 0, l = 0; s < n.length; s++) {
|
|
11963
12022
|
let a = n[s], u = l, d = l += a.size;
|
|
@@ -11973,7 +12032,7 @@ function ha(n, e = null) {
|
|
|
11973
12032
|
if (s < 0)
|
|
11974
12033
|
return null;
|
|
11975
12034
|
let l = r.resolve(s), a, u;
|
|
11976
|
-
if (
|
|
12035
|
+
if (Ls(t)) {
|
|
11977
12036
|
for (a = s; i && !i.node; )
|
|
11978
12037
|
i = i.parent;
|
|
11979
12038
|
let c = i.node;
|
|
@@ -12029,15 +12088,15 @@ const K1 = Ke || Fe && cc < 63;
|
|
|
12029
12088
|
function q1(n, e) {
|
|
12030
12089
|
let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, o = r ? t.childNodes[r - 1] : null;
|
|
12031
12090
|
if (Ke && i && i.contentEditable == "false")
|
|
12032
|
-
return
|
|
12091
|
+
return qs(i);
|
|
12033
12092
|
if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
|
|
12034
12093
|
if (i)
|
|
12035
|
-
return
|
|
12094
|
+
return qs(i);
|
|
12036
12095
|
if (o)
|
|
12037
|
-
return
|
|
12096
|
+
return qs(o);
|
|
12038
12097
|
}
|
|
12039
12098
|
}
|
|
12040
|
-
function
|
|
12099
|
+
function qs(n) {
|
|
12041
12100
|
return n.contentEditable = "true", Ke && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
|
|
12042
12101
|
}
|
|
12043
12102
|
function Y1(n) {
|
|
@@ -12090,7 +12149,7 @@ function S3(n) {
|
|
|
12090
12149
|
let e = n.docView.domFromPos(n.state.selection.anchor, 0), t = n.domSelectionRange();
|
|
12091
12150
|
return Gn(e.node, e.offset, t.anchorNode, t.anchorOffset);
|
|
12092
12151
|
}
|
|
12093
|
-
function
|
|
12152
|
+
function El(n, e) {
|
|
12094
12153
|
let { $anchor: t, $head: r } = n.selection, i = e > 0 ? t.max(r) : t.min(r), o = i.parent.inlineContent ? i.depth ? n.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
|
|
12095
12154
|
return o && ce.findFrom(o, e);
|
|
12096
12155
|
}
|
|
@@ -12108,7 +12167,7 @@ function X1(n, e, t) {
|
|
|
12108
12167
|
return sn(n, new oe(r.$anchor, s));
|
|
12109
12168
|
} else if (r.empty) {
|
|
12110
12169
|
if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
12111
|
-
let i =
|
|
12170
|
+
let i = El(n.state, e);
|
|
12112
12171
|
return i && i instanceof X ? sn(n, i) : !1;
|
|
12113
12172
|
} else if (!(gt && t.indexOf("m") > -1)) {
|
|
12114
12173
|
let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
|
|
@@ -12122,7 +12181,7 @@ function X1(n, e, t) {
|
|
|
12122
12181
|
if (r instanceof X && r.node.isInline)
|
|
12123
12182
|
return sn(n, new oe(e > 0 ? r.$to : r.$from));
|
|
12124
12183
|
{
|
|
12125
|
-
let i =
|
|
12184
|
+
let i = El(n.state, e);
|
|
12126
12185
|
return i ? sn(n, i) : !1;
|
|
12127
12186
|
}
|
|
12128
12187
|
}
|
|
@@ -12171,7 +12230,7 @@ function H3(n) {
|
|
|
12171
12230
|
}
|
|
12172
12231
|
}
|
|
12173
12232
|
}
|
|
12174
|
-
s ?
|
|
12233
|
+
s ? Vl(n, t, r) : i && Vl(n, i, o);
|
|
12175
12234
|
}
|
|
12176
12235
|
function T3(n) {
|
|
12177
12236
|
let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
|
|
@@ -12203,7 +12262,7 @@ function T3(n) {
|
|
|
12203
12262
|
}
|
|
12204
12263
|
}
|
|
12205
12264
|
}
|
|
12206
|
-
o &&
|
|
12265
|
+
o && Vl(n, o, s);
|
|
12207
12266
|
}
|
|
12208
12267
|
function Sc(n) {
|
|
12209
12268
|
let e = n.pmViewDesc;
|
|
@@ -12233,7 +12292,7 @@ function V3(n, e) {
|
|
|
12233
12292
|
n = t, e = n.childNodes.length;
|
|
12234
12293
|
}
|
|
12235
12294
|
}
|
|
12236
|
-
function
|
|
12295
|
+
function Vl(n, e, t) {
|
|
12237
12296
|
if (e.nodeType != 3) {
|
|
12238
12297
|
let o, s;
|
|
12239
12298
|
(s = E3(e, t)) ? (e = s, t = 0) : (o = V3(e, t)) && (e = o, t = o.nodeValue.length);
|
|
@@ -12241,7 +12300,7 @@ function El(n, e, t) {
|
|
|
12241
12300
|
let r = n.domSelection();
|
|
12242
12301
|
if (!r)
|
|
12243
12302
|
return;
|
|
12244
|
-
if (
|
|
12303
|
+
if (Ls(r)) {
|
|
12245
12304
|
let o = document.createRange();
|
|
12246
12305
|
o.setEnd(e, t), o.setStart(e, t), r.removeAllRanges(), r.addRange(o);
|
|
12247
12306
|
} else r.extend && r.extend(e, t);
|
|
@@ -12274,7 +12333,7 @@ function Q1(n, e, t) {
|
|
|
12274
12333
|
return !1;
|
|
12275
12334
|
let { $from: i, $to: o } = r;
|
|
12276
12335
|
if (!i.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
12277
|
-
let s =
|
|
12336
|
+
let s = El(n.state, e);
|
|
12278
12337
|
if (s && s instanceof X)
|
|
12279
12338
|
return sn(n, s);
|
|
12280
12339
|
}
|
|
@@ -12469,12 +12528,12 @@ function Vc(n, e) {
|
|
|
12469
12528
|
let t = n.content.replaceChild(n.childCount - 1, Vc(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(D.empty, !0);
|
|
12470
12529
|
return n.copy(t.append(r));
|
|
12471
12530
|
}
|
|
12472
|
-
function
|
|
12531
|
+
function Ol(n, e, t, r, i, o) {
|
|
12473
12532
|
let s = e < 0 ? n.firstChild : n.lastChild, l = s.content;
|
|
12474
|
-
return n.childCount > 1 && (o = 0), i < r - 1 && (l =
|
|
12533
|
+
return n.childCount > 1 && (o = 0), i < r - 1 && (l = Ol(l, e, t, r, i + 1, o)), i >= t && (l = e < 0 ? s.contentMatchAt(0).fillBefore(l, o <= i).append(l) : l.append(s.contentMatchAt(s.childCount).fillBefore(D.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, s.copy(l));
|
|
12475
12534
|
}
|
|
12476
12535
|
function nu(n, e, t) {
|
|
12477
|
-
return e < n.openStart && (n = new W(
|
|
12536
|
+
return e < n.openStart && (n = new W(Ol(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new W(Ol(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
|
|
12478
12537
|
}
|
|
12479
12538
|
const Oc = {
|
|
12480
12539
|
thead: ["table"],
|
|
@@ -12491,10 +12550,10 @@ let ru = null;
|
|
|
12491
12550
|
function Ac() {
|
|
12492
12551
|
return ru || (ru = document.implementation.createHTMLDocument("title"));
|
|
12493
12552
|
}
|
|
12494
|
-
let
|
|
12553
|
+
let Ys = null;
|
|
12495
12554
|
function P3(n) {
|
|
12496
12555
|
let e = window.trustedTypes;
|
|
12497
|
-
return e ? (
|
|
12556
|
+
return e ? (Ys || (Ys = e.createPolicy("ProseMirrorClipboard", { createHTML: (t) => t })), Ys.createHTML(n)) : n;
|
|
12498
12557
|
}
|
|
12499
12558
|
function $3(n) {
|
|
12500
12559
|
let e = /^(\s*<meta [^>]*>)*/.exec(n);
|
|
@@ -12543,7 +12602,7 @@ function z3(n) {
|
|
|
12543
12602
|
W3(n, r) && !ya(n, r) && (n.editable || !(r.type in Ye)) && t(n, r);
|
|
12544
12603
|
}, Z3[e] ? { passive: !0 } : void 0);
|
|
12545
12604
|
}
|
|
12546
|
-
Ke && n.dom.addEventListener("input", () => null),
|
|
12605
|
+
Ke && n.dom.addEventListener("input", () => null), Al(n);
|
|
12547
12606
|
}
|
|
12548
12607
|
function hn(n, e) {
|
|
12549
12608
|
n.input.lastSelectionOrigin = e, n.input.lastSelectionTime = Date.now();
|
|
@@ -12554,7 +12613,7 @@ function j3(n) {
|
|
|
12554
12613
|
n.dom.removeEventListener(e, n.input.eventHandlers[e]);
|
|
12555
12614
|
clearTimeout(n.input.composingTimeout), clearTimeout(n.input.lastIOSEnterFallbackTimeout);
|
|
12556
12615
|
}
|
|
12557
|
-
function
|
|
12616
|
+
function Al(n) {
|
|
12558
12617
|
n.someProp("handleDOMEvents", (e) => {
|
|
12559
12618
|
for (let t in e)
|
|
12560
12619
|
n.input.eventHandlers[t] || n.dom.addEventListener(t, n.input.eventHandlers[t] = (r) => ya(n, r));
|
|
@@ -12606,7 +12665,7 @@ Ye.keypress = (n, e) => {
|
|
|
12606
12665
|
!/[\r\n]/.test(i) && !n.someProp("handleTextInput", (o) => o(n, r.$from.pos, r.$to.pos, i)) && n.dispatch(n.state.tr.insertText(i).scrollIntoView()), t.preventDefault();
|
|
12607
12666
|
}
|
|
12608
12667
|
};
|
|
12609
|
-
function
|
|
12668
|
+
function xs(n) {
|
|
12610
12669
|
return { left: n.clientX, top: n.clientY };
|
|
12611
12670
|
}
|
|
12612
12671
|
function K3(n, e) {
|
|
@@ -12685,7 +12744,7 @@ qe.mousedown = (n, e) => {
|
|
|
12685
12744
|
n.input.shiftKey = t.shiftKey;
|
|
12686
12745
|
let r = Ca(n), i = Date.now(), o = "singleClick";
|
|
12687
12746
|
i - n.input.lastClick.time < 500 && K3(t, n.input.lastClick) && !t[Dc] && (n.input.lastClick.type == "singleClick" ? o = "doubleClick" : n.input.lastClick.type == "doubleClick" && (o = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: o };
|
|
12688
|
-
let s = n.posAtCoords(
|
|
12747
|
+
let s = n.posAtCoords(xs(t));
|
|
12689
12748
|
s && (o == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new Q3(n, s, t, !!r)) : (o == "doubleClick" ? G3 : X3)(n, s.pos, s.inside, t) ? t.preventDefault() : hn(n, "pointer"));
|
|
12690
12749
|
};
|
|
12691
12750
|
class Q3 {
|
|
@@ -12717,7 +12776,7 @@ class Q3 {
|
|
|
12717
12776
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
12718
12777
|
return;
|
|
12719
12778
|
let t = this.pos;
|
|
12720
|
-
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(
|
|
12779
|
+
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(xs(e))), this.updateAllowDefault(e), this.allowDefault || !t ? hn(this.view, "pointer") : J3(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
12721
12780
|
Ke && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
12722
12781
|
// cursor, but still report that the node is selected
|
|
12723
12782
|
// when asked through getSelection. You'll then get a
|
|
@@ -12875,7 +12934,7 @@ qe.dragstart = (n, e) => {
|
|
|
12875
12934
|
let t = e, r = n.input.mouseDown;
|
|
12876
12935
|
if (r && r.done(), !t.dataTransfer)
|
|
12877
12936
|
return;
|
|
12878
|
-
let i = n.state.selection, o = i.empty ? null : n.posAtCoords(
|
|
12937
|
+
let i = n.state.selection, o = i.empty ? null : n.posAtCoords(xs(t)), s;
|
|
12879
12938
|
if (!(o && o.pos >= i.from && o.pos <= (i instanceof X ? i.to - 1 : i.to))) {
|
|
12880
12939
|
if (r && r.mightDrag)
|
|
12881
12940
|
s = X.create(n.state.doc, r.mightDrag.pos);
|
|
@@ -12898,7 +12957,7 @@ Ye.drop = (n, e) => {
|
|
|
12898
12957
|
let t = e, r = n.dragging;
|
|
12899
12958
|
if (n.dragging = null, !t.dataTransfer)
|
|
12900
12959
|
return;
|
|
12901
|
-
let i = n.posAtCoords(
|
|
12960
|
+
let i = n.posAtCoords(xs(t));
|
|
12902
12961
|
if (!i)
|
|
12903
12962
|
return;
|
|
12904
12963
|
let o = n.state.doc.resolve(i.pos), s = r && r.slice;
|
|
@@ -13456,7 +13515,7 @@ function iu(n, e, t) {
|
|
|
13456
13515
|
e++;
|
|
13457
13516
|
n.splice(e, 0, t);
|
|
13458
13517
|
}
|
|
13459
|
-
function
|
|
13518
|
+
function Js(n) {
|
|
13460
13519
|
let e = [];
|
|
13461
13520
|
return n.someProp("decorations", (t) => {
|
|
13462
13521
|
let r = t(n.state);
|
|
@@ -13592,7 +13651,7 @@ class c9 {
|
|
|
13592
13651
|
}
|
|
13593
13652
|
}
|
|
13594
13653
|
let u = null;
|
|
13595
|
-
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 &&
|
|
13654
|
+
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ls(r) && (u = ha(e)) && u.eq(ce.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Qt(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), f9(e)), this.handleDOMChange(o, s, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Qt(e), this.currentSelection.set(r));
|
|
13596
13655
|
}
|
|
13597
13656
|
registerMutation(e, t) {
|
|
13598
13657
|
if (t.indexOf(e.target) > -1)
|
|
@@ -13661,7 +13720,7 @@ function h9(n, e) {
|
|
|
13661
13720
|
}
|
|
13662
13721
|
function m9(n, e, t) {
|
|
13663
13722
|
let { node: r, fromOffset: i, toOffset: o, from: s, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), u, d = a.anchorNode;
|
|
13664
|
-
if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (u = [{ node: d, offset: a.anchorOffset }],
|
|
13723
|
+
if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (u = [{ node: d, offset: a.anchorOffset }], Ls(a) || u.push({ node: a.focusNode, offset: a.focusOffset })), Fe && n.input.lastKeyCode === 8)
|
|
13665
13724
|
for (let y = o; y > i; y--) {
|
|
13666
13725
|
let b = r.childNodes[y - 1], L = b.pmViewDesc;
|
|
13667
13726
|
if (b.nodeName == "BR" && !L) {
|
|
@@ -13708,7 +13767,7 @@ function v9(n, e, t, r, i) {
|
|
|
13708
13767
|
if (n.input.compositionPendingChanges = 0, e < 0) {
|
|
13709
13768
|
let S = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, B = ha(n, S);
|
|
13710
13769
|
if (B && !n.state.selection.eq(B)) {
|
|
13711
|
-
if (Fe && Gt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (
|
|
13770
|
+
if (Fe && Gt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (F) => F(n, Rn(13, "Enter"))))
|
|
13712
13771
|
return;
|
|
13713
13772
|
let Q = n.state.tr.setSelection(B);
|
|
13714
13773
|
S == "pointer" ? Q.setMeta("pointer", !0) : S == "key" && Q.scrollIntoView(), o && Q.setMeta("composition", o), n.dispatch(Q);
|
|
@@ -13752,15 +13811,15 @@ function v9(n, e, t, r, i) {
|
|
|
13752
13811
|
return S(n, Rn(13, "Enter"));
|
|
13753
13812
|
});
|
|
13754
13813
|
}, 20));
|
|
13755
|
-
let C = h.start, H = h.endA, M, z,
|
|
13814
|
+
let C = h.start, H = h.endA, M, z, $;
|
|
13756
13815
|
if (L) {
|
|
13757
13816
|
if (m.pos == y.pos)
|
|
13758
13817
|
et && yn <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Qt(n), 20)), M = n.state.tr.delete(C, H), z = d.resolve(h.start).marksAcross(d.resolve(h.endA));
|
|
13759
13818
|
else if (
|
|
13760
13819
|
// Adding or removing a mark
|
|
13761
|
-
h.endA == h.endB && (
|
|
13820
|
+
h.endA == h.endB && ($ = C9(m.parent.content.cut(m.parentOffset, y.parentOffset), b.parent.content.cut(b.parentOffset, h.endA - b.start())))
|
|
13762
13821
|
)
|
|
13763
|
-
M = n.state.tr,
|
|
13822
|
+
M = n.state.tr, $.type == "add" ? M.addMark(C, H, $.mark) : M.removeMark(C, H, $.mark);
|
|
13764
13823
|
else if (m.parent.child(m.index()).isText && m.index() == y.index() - (y.textOffset ? 0 : 1)) {
|
|
13765
13824
|
let S = m.parent.textBetween(m.parentOffset, y.parentOffset);
|
|
13766
13825
|
if (n.someProp("handleTextInput", (B) => B(n, C, H, S)))
|
|
@@ -13799,7 +13858,7 @@ function b9(n, e, t, r, i) {
|
|
|
13799
13858
|
if (
|
|
13800
13859
|
// The content must have shrunk
|
|
13801
13860
|
t - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
13802
|
-
|
|
13861
|
+
Gs(r, !0, !1) < i.pos
|
|
13803
13862
|
)
|
|
13804
13863
|
return !1;
|
|
13805
13864
|
let o = n.resolve(e);
|
|
@@ -13809,10 +13868,10 @@ function b9(n, e, t, r, i) {
|
|
|
13809
13868
|
}
|
|
13810
13869
|
if (o.parentOffset < o.parent.content.size || !o.parent.isTextblock)
|
|
13811
13870
|
return !1;
|
|
13812
|
-
let s = n.resolve(
|
|
13813
|
-
return !s.parent.isTextblock || s.pos > t ||
|
|
13871
|
+
let s = n.resolve(Gs(o, !0, !0));
|
|
13872
|
+
return !s.parent.isTextblock || s.pos > t || Gs(s, !0, !1) < t ? !1 : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
|
|
13814
13873
|
}
|
|
13815
|
-
function
|
|
13874
|
+
function Gs(n, e, t) {
|
|
13816
13875
|
let r = n.depth, i = e ? n.end() : n.pos;
|
|
13817
13876
|
for (; r > 0 && (e || n.indexAfter(r) == n.node(r).childCount); )
|
|
13818
13877
|
r--, i++, e = !1;
|
|
@@ -13856,7 +13915,7 @@ class w9 {
|
|
|
13856
13915
|
added to the document.
|
|
13857
13916
|
*/
|
|
13858
13917
|
constructor(e, t) {
|
|
13859
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new F3(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(hu), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = fu(this), cu(this), this.nodeViews = pu(this), this.docView = W1(this.state.doc, du(this),
|
|
13918
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new F3(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(hu), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = fu(this), cu(this), this.nodeViews = pu(this), this.docView = W1(this.state.doc, du(this), Js(this), this.dom, this), this.domObserver = new c9(this, (r, i, o, s) => v9(this, r, i, o, s)), this.domObserver.start(), z3(this), this.updatePluginViews();
|
|
13860
13919
|
}
|
|
13861
13920
|
/**
|
|
13862
13921
|
Holds `true` when a
|
|
@@ -13884,7 +13943,7 @@ class w9 {
|
|
|
13884
13943
|
the DOM.
|
|
13885
13944
|
*/
|
|
13886
13945
|
update(e) {
|
|
13887
|
-
e.handleDOMEvents != this._props.handleDOMEvents &&
|
|
13946
|
+
e.handleDOMEvents != this._props.handleDOMEvents && Al(this);
|
|
13888
13947
|
let t = this._props;
|
|
13889
13948
|
this._props = e, e.plugins && (e.plugins.forEach(hu), this.directPlugins = e.plugins), this.updateStateInner(e.state, t);
|
|
13890
13949
|
}
|
|
@@ -13918,8 +13977,8 @@ class w9 {
|
|
|
13918
13977
|
let p = pu(this);
|
|
13919
13978
|
M9(p, this.nodeViews) && (this.nodeViews = p, o = !0);
|
|
13920
13979
|
}
|
|
13921
|
-
(l || t.handleDOMEvents != this._props.handleDOMEvents) &&
|
|
13922
|
-
let a =
|
|
13980
|
+
(l || t.handleDOMEvents != this._props.handleDOMEvents) && Al(this), this.editable = fu(this), cu(this);
|
|
13981
|
+
let a = Js(this), u = du(this), d = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", c = o || !this.docView.matchesNode(e.doc, u, a);
|
|
13923
13982
|
(c || !e.selection.eq(i.selection)) && (s = !0);
|
|
13924
13983
|
let f = d == "preserve" && s && this.dom.style.overflowAnchor == null && n3(this);
|
|
13925
13984
|
if (s) {
|
|
@@ -14149,7 +14208,7 @@ class w9 {
|
|
|
14149
14208
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
14150
14209
|
*/
|
|
14151
14210
|
destroy() {
|
|
14152
|
-
this.docView && (j3(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [],
|
|
14211
|
+
this.docView && (j3(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Js(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, U4());
|
|
14153
14212
|
}
|
|
14154
14213
|
/**
|
|
14155
14214
|
This is true when the view has been
|
|
@@ -14320,7 +14379,7 @@ for (var $e = 0; $e < 10; $e++) Ln[48 + $e] = Ln[96 + $e] = String($e);
|
|
|
14320
14379
|
for (var $e = 1; $e <= 24; $e++) Ln[$e + 111] = "F" + $e;
|
|
14321
14380
|
for (var $e = 65; $e <= 90; $e++)
|
|
14322
14381
|
Ln[$e] = String.fromCharCode($e + 32), Vo[$e] = String.fromCharCode($e);
|
|
14323
|
-
for (var
|
|
14382
|
+
for (var Xs in Ln) Vo.hasOwnProperty(Xs) || (Vo[Xs] = Ln[Xs]);
|
|
14324
14383
|
function H9(n) {
|
|
14325
14384
|
var e = x9 && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || S9 && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Vo : Ln)[n.keyCode] || n.key || "Unidentified";
|
|
14326
14385
|
return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
|
|
@@ -14353,7 +14412,7 @@ function V9(n) {
|
|
|
14353
14412
|
e[E9(t)] = n[t];
|
|
14354
14413
|
return e;
|
|
14355
14414
|
}
|
|
14356
|
-
function
|
|
14415
|
+
function _s(n, e, t = !0) {
|
|
14357
14416
|
return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
|
|
14358
14417
|
}
|
|
14359
14418
|
function O9(n) {
|
|
@@ -14362,17 +14421,17 @@ function O9(n) {
|
|
|
14362
14421
|
function A9(n) {
|
|
14363
14422
|
let e = V9(n);
|
|
14364
14423
|
return function(t, r) {
|
|
14365
|
-
let i = H9(r), o, s = e[
|
|
14424
|
+
let i = H9(r), o, s = e[_s(i, r)];
|
|
14366
14425
|
if (s && s(t.state, t.dispatch, t))
|
|
14367
14426
|
return !0;
|
|
14368
14427
|
if (i.length == 1 && i != " ") {
|
|
14369
14428
|
if (r.shiftKey) {
|
|
14370
|
-
let l = e[
|
|
14429
|
+
let l = e[_s(i, r, !1)];
|
|
14371
14430
|
if (l && l(t.state, t.dispatch, t))
|
|
14372
14431
|
return !0;
|
|
14373
14432
|
}
|
|
14374
14433
|
if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Ln[r.keyCode]) && o != i) {
|
|
14375
|
-
let l = e[
|
|
14434
|
+
let l = e[_s(o, r)];
|
|
14376
14435
|
if (l && l(t.state, t.dispatch, t))
|
|
14377
14436
|
return !0;
|
|
14378
14437
|
}
|
|
@@ -14399,7 +14458,7 @@ const Wc = (n, e, t) => {
|
|
|
14399
14458
|
return !0;
|
|
14400
14459
|
if (r.parent.content.size == 0 && (wr(o, "end") || X.isSelectable(o)))
|
|
14401
14460
|
for (let s = r.depth; ; s--) {
|
|
14402
|
-
let l =
|
|
14461
|
+
let l = ks(n.doc, r.before(s), r.after(s), W.empty);
|
|
14403
14462
|
if (l && l.slice.size < l.to - l.from) {
|
|
14404
14463
|
if (e) {
|
|
14405
14464
|
let a = n.tr.step(l);
|
|
@@ -14443,7 +14502,7 @@ function Uc(n, e, t) {
|
|
|
14443
14502
|
return !1;
|
|
14444
14503
|
l = d;
|
|
14445
14504
|
}
|
|
14446
|
-
let u =
|
|
14505
|
+
let u = ks(n.doc, o, a, W.empty);
|
|
14447
14506
|
if (!u || u.from != o || u instanceof Oe && u.slice.size >= a - o)
|
|
14448
14507
|
return !1;
|
|
14449
14508
|
if (t) {
|
|
@@ -14498,7 +14557,7 @@ const Yc = (n, e, t) => {
|
|
|
14498
14557
|
if (Qc(n, i, e, 1))
|
|
14499
14558
|
return !0;
|
|
14500
14559
|
if (r.parent.content.size == 0 && (wr(o, "start") || X.isSelectable(o))) {
|
|
14501
|
-
let s =
|
|
14560
|
+
let s = ks(n.doc, r.before(), r.after(), W.empty);
|
|
14502
14561
|
if (s && s.slice.size < s.to - s.from) {
|
|
14503
14562
|
if (e) {
|
|
14504
14563
|
let l = n.tr.step(s);
|
|
@@ -14537,7 +14596,7 @@ const R9 = (n, e) => {
|
|
|
14537
14596
|
if (t.node.isTextblock || !xn(n.doc, t.from))
|
|
14538
14597
|
return !1;
|
|
14539
14598
|
i = t.from;
|
|
14540
|
-
} else if (i =
|
|
14599
|
+
} else if (i = bs(n.doc, t.from, -1), i == null)
|
|
14541
14600
|
return !1;
|
|
14542
14601
|
if (e) {
|
|
14543
14602
|
let o = n.tr.join(i);
|
|
@@ -14550,7 +14609,7 @@ const R9 = (n, e) => {
|
|
|
14550
14609
|
if (t.node.isTextblock || !xn(n.doc, t.to))
|
|
14551
14610
|
return !1;
|
|
14552
14611
|
r = t.to;
|
|
14553
|
-
} else if (r =
|
|
14612
|
+
} else if (r = bs(n.doc, t.to, 1), r == null)
|
|
14554
14613
|
return !1;
|
|
14555
14614
|
return e && e(n.tr.join(r).scrollIntoView()), !0;
|
|
14556
14615
|
}, $9 = (n, e) => {
|
|
@@ -14819,7 +14878,7 @@ function _9(n) {
|
|
|
14819
14878
|
return !0;
|
|
14820
14879
|
};
|
|
14821
14880
|
}
|
|
14822
|
-
function
|
|
14881
|
+
function Ss(n) {
|
|
14823
14882
|
const { state: e, transaction: t } = n;
|
|
14824
14883
|
let { selection: r } = t, { doc: i } = t, { storedMarks: o } = t;
|
|
14825
14884
|
return {
|
|
@@ -14844,7 +14903,7 @@ function xs(n) {
|
|
|
14844
14903
|
}
|
|
14845
14904
|
};
|
|
14846
14905
|
}
|
|
14847
|
-
class
|
|
14906
|
+
class Hs {
|
|
14848
14907
|
constructor(e) {
|
|
14849
14908
|
this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
|
|
14850
14909
|
}
|
|
@@ -14889,7 +14948,7 @@ class Ss {
|
|
|
14889
14948
|
tr: e,
|
|
14890
14949
|
editor: i,
|
|
14891
14950
|
view: s,
|
|
14892
|
-
state:
|
|
14951
|
+
state: Ss({
|
|
14893
14952
|
state: o,
|
|
14894
14953
|
transaction: e
|
|
14895
14954
|
}),
|
|
@@ -14935,7 +14994,7 @@ function K(n, e, t) {
|
|
|
14935
14994
|
parent: n.parent ? K(n.parent, e, t) : null
|
|
14936
14995
|
}) : n.config[e];
|
|
14937
14996
|
}
|
|
14938
|
-
function
|
|
14997
|
+
function Ts(n) {
|
|
14939
14998
|
const e = n.filter((i) => i.type === "extension"), t = n.filter((i) => i.type === "node"), r = n.filter((i) => i.type === "mark");
|
|
14940
14999
|
return {
|
|
14941
15000
|
baseExtensions: e,
|
|
@@ -14944,7 +15003,7 @@ function Hs(n) {
|
|
|
14944
15003
|
};
|
|
14945
15004
|
}
|
|
14946
15005
|
function tf(n) {
|
|
14947
|
-
const e = [], { nodeExtensions: t, markExtensions: r } =
|
|
15006
|
+
const e = [], { nodeExtensions: t, markExtensions: r } = Ts(n), i = [...t, ...r], o = {
|
|
14948
15007
|
default: null,
|
|
14949
15008
|
rendered: !0,
|
|
14950
15009
|
renderHTML: null,
|
|
@@ -15030,7 +15089,7 @@ function ct(...n) {
|
|
|
15030
15089
|
}), r;
|
|
15031
15090
|
}, {});
|
|
15032
15091
|
}
|
|
15033
|
-
function
|
|
15092
|
+
function Dl(n, e) {
|
|
15034
15093
|
return e.filter((t) => t.type === n.type.name).filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(n.attrs) || {} : {
|
|
15035
15094
|
[t.name]: n.attrs[t.name]
|
|
15036
15095
|
}).reduce((t, r) => ct(t, r), {});
|
|
@@ -15073,7 +15132,7 @@ function yu(n) {
|
|
|
15073
15132
|
}
|
|
15074
15133
|
function nm(n, e) {
|
|
15075
15134
|
var t;
|
|
15076
|
-
const r = tf(n), { nodeExtensions: i, markExtensions: o } =
|
|
15135
|
+
const r = tf(n), { nodeExtensions: i, markExtensions: o } = Ts(n), s = (t = i.find((u) => K(u, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((u) => {
|
|
15077
15136
|
const d = r.filter((b) => b.type === u.name), c = {
|
|
15078
15137
|
name: u.name,
|
|
15079
15138
|
options: u.options,
|
|
@@ -15108,7 +15167,7 @@ function nm(n, e) {
|
|
|
15108
15167
|
const m = K(u, "renderHTML", c);
|
|
15109
15168
|
m && (p.toDOM = (b) => m({
|
|
15110
15169
|
node: b,
|
|
15111
|
-
HTMLAttributes:
|
|
15170
|
+
HTMLAttributes: Dl(b, d)
|
|
15112
15171
|
}));
|
|
15113
15172
|
const y = K(u, "renderText", c);
|
|
15114
15173
|
return y && (p.toText = y), [u.name, p];
|
|
@@ -15140,7 +15199,7 @@ function nm(n, e) {
|
|
|
15140
15199
|
const m = K(u, "renderHTML", c);
|
|
15141
15200
|
return m && (p.toDOM = (y) => m({
|
|
15142
15201
|
mark: y,
|
|
15143
|
-
HTMLAttributes:
|
|
15202
|
+
HTMLAttributes: Dl(y, d)
|
|
15144
15203
|
})), [u.name, p];
|
|
15145
15204
|
}));
|
|
15146
15205
|
return new Kd({
|
|
@@ -15149,7 +15208,7 @@ function nm(n, e) {
|
|
|
15149
15208
|
marks: a
|
|
15150
15209
|
});
|
|
15151
15210
|
}
|
|
15152
|
-
function
|
|
15211
|
+
function Qs(n, e) {
|
|
15153
15212
|
return e.nodes[n] || e.marks[n] || null;
|
|
15154
15213
|
}
|
|
15155
15214
|
function vu(n, e) {
|
|
@@ -15209,13 +15268,13 @@ function Gi(n) {
|
|
|
15209
15268
|
const p = im(c, f.find);
|
|
15210
15269
|
if (!p)
|
|
15211
15270
|
return;
|
|
15212
|
-
const h = a.state.tr, m =
|
|
15271
|
+
const h = a.state.tr, m = Ss({
|
|
15213
15272
|
state: a.state,
|
|
15214
15273
|
transaction: h
|
|
15215
15274
|
}), y = {
|
|
15216
15275
|
from: r - (p[0].length - o.length),
|
|
15217
15276
|
to: i
|
|
15218
|
-
}, { commands: b, chain: L, can: x } = new
|
|
15277
|
+
}, { commands: b, chain: L, can: x } = new Hs({
|
|
15219
15278
|
editor: t,
|
|
15220
15279
|
state: m
|
|
15221
15280
|
});
|
|
@@ -15312,10 +15371,10 @@ function sm(n) {
|
|
|
15312
15371
|
function Xi(n) {
|
|
15313
15372
|
return sm(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
|
|
15314
15373
|
}
|
|
15315
|
-
function
|
|
15374
|
+
function Es(n, e) {
|
|
15316
15375
|
const t = { ...n };
|
|
15317
15376
|
return Xi(n) && Xi(e) && Object.keys(e).forEach((r) => {
|
|
15318
|
-
Xi(e[r]) && Xi(n[r]) ? t[r] =
|
|
15377
|
+
Xi(e[r]) && Xi(n[r]) ? t[r] = Es(n[r], e[r]) : t[r] = e[r];
|
|
15319
15378
|
}), t;
|
|
15320
15379
|
}
|
|
15321
15380
|
class en {
|
|
@@ -15339,7 +15398,7 @@ class en {
|
|
|
15339
15398
|
configure(e = {}) {
|
|
15340
15399
|
const t = this.extend({
|
|
15341
15400
|
...this.config,
|
|
15342
|
-
addOptions: () =>
|
|
15401
|
+
addOptions: () => Es(this.options, e)
|
|
15343
15402
|
});
|
|
15344
15403
|
return t.name = this.name, t.parent = this.parent, t;
|
|
15345
15404
|
}
|
|
@@ -15382,7 +15441,7 @@ const um = (n, e, t) => {
|
|
|
15382
15441
|
}) : [];
|
|
15383
15442
|
};
|
|
15384
15443
|
function dm(n) {
|
|
15385
|
-
const { editor: e, state: t, from: r, to: i, rule: o, pasteEvent: s, dropEvent: l } = n, { commands: a, chain: u, can: d } = new
|
|
15444
|
+
const { editor: e, state: t, from: r, to: i, rule: o, pasteEvent: s, dropEvent: l } = n, { commands: a, chain: u, can: d } = new Hs({
|
|
15386
15445
|
editor: e,
|
|
15387
15446
|
state: t
|
|
15388
15447
|
}), c = [];
|
|
@@ -15427,7 +15486,7 @@ function fm(n) {
|
|
|
15427
15486
|
l = null;
|
|
15428
15487
|
}
|
|
15429
15488
|
const a = ({ state: d, from: c, to: f, rule: p, pasteEvt: h }) => {
|
|
15430
|
-
const m = d.tr, y =
|
|
15489
|
+
const m = d.tr, y = Ss({
|
|
15431
15490
|
state: d,
|
|
15432
15491
|
transaction: m
|
|
15433
15492
|
});
|
|
@@ -15489,13 +15548,13 @@ function fm(n) {
|
|
|
15489
15548
|
if (L) {
|
|
15490
15549
|
let { text: H } = b;
|
|
15491
15550
|
typeof H == "string" ? H = H : H = Ha(D.from(H), p.schema);
|
|
15492
|
-
const { from: M } = b, z = M + H.length,
|
|
15551
|
+
const { from: M } = b, z = M + H.length, $ = cm(H);
|
|
15493
15552
|
return a({
|
|
15494
15553
|
rule: d,
|
|
15495
15554
|
state: p,
|
|
15496
15555
|
from: M,
|
|
15497
15556
|
to: { b: z },
|
|
15498
|
-
pasteEvt:
|
|
15557
|
+
pasteEvt: $
|
|
15499
15558
|
});
|
|
15500
15559
|
}
|
|
15501
15560
|
const x = f.doc.content.findDiffStart(p.doc.content), C = f.doc.content.findDiffEnd(p.doc.content);
|
|
@@ -15565,7 +15624,7 @@ class fr {
|
|
|
15565
15624
|
options: t.options,
|
|
15566
15625
|
storage: t.storage,
|
|
15567
15626
|
editor: this.editor,
|
|
15568
|
-
type:
|
|
15627
|
+
type: Qs(t.name, this.schema)
|
|
15569
15628
|
}, i = K(t, "addCommands", r);
|
|
15570
15629
|
return i ? {
|
|
15571
15630
|
...e,
|
|
@@ -15584,7 +15643,7 @@ class fr {
|
|
|
15584
15643
|
options: s.options,
|
|
15585
15644
|
storage: s.storage,
|
|
15586
15645
|
editor: e,
|
|
15587
|
-
type:
|
|
15646
|
+
type: Qs(s.name, this.schema)
|
|
15588
15647
|
}, a = [], u = K(s, "addKeyboardShortcuts", l);
|
|
15589
15648
|
let d = {};
|
|
15590
15649
|
if (s.type === "mark" && K(s, "exitable", l) && (d.ArrowRight = () => en.handleExit({ editor: e, mark: s })), u) {
|
|
@@ -15628,7 +15687,7 @@ class fr {
|
|
|
15628
15687
|
* @returns An object with all node views where the key is the node name and the value is the node view function
|
|
15629
15688
|
*/
|
|
15630
15689
|
get nodeViews() {
|
|
15631
|
-
const { editor: e } = this, { nodeExtensions: t } =
|
|
15690
|
+
const { editor: e } = this, { nodeExtensions: t } = Ts(this.extensions);
|
|
15632
15691
|
return Object.fromEntries(t.filter((r) => !!K(r, "addNodeView")).map((r) => {
|
|
15633
15692
|
const i = this.attributes.filter((a) => a.type === r.name), o = {
|
|
15634
15693
|
name: r.name,
|
|
@@ -15640,7 +15699,7 @@ class fr {
|
|
|
15640
15699
|
if (!s)
|
|
15641
15700
|
return [];
|
|
15642
15701
|
const l = (a, u, d, c, f) => {
|
|
15643
|
-
const p =
|
|
15702
|
+
const p = Dl(a, i);
|
|
15644
15703
|
return s()({
|
|
15645
15704
|
// pass-through
|
|
15646
15705
|
node: a,
|
|
@@ -15670,7 +15729,7 @@ class fr {
|
|
|
15670
15729
|
options: e.options,
|
|
15671
15730
|
storage: e.storage,
|
|
15672
15731
|
editor: this.editor,
|
|
15673
|
-
type:
|
|
15732
|
+
type: Qs(e.name, this.schema)
|
|
15674
15733
|
};
|
|
15675
15734
|
e.type === "mark" && (!((t = ue(K(e, "keepOnSplit", r))) !== null && t !== void 0) || t) && this.splittableMarks.push(e.name);
|
|
15676
15735
|
const i = K(e, "onBeforeCreate", r), o = K(e, "onCreate", r), s = K(e, "onUpdate", r), l = K(e, "onSelectionUpdate", r), a = K(e, "onTransaction", r), u = K(e, "onFocus", r), d = K(e, "onBlur", r), c = K(e, "onDestroy", r);
|
|
@@ -15699,7 +15758,7 @@ class Je {
|
|
|
15699
15758
|
configure(e = {}) {
|
|
15700
15759
|
const t = this.extend({
|
|
15701
15760
|
...this.config,
|
|
15702
|
-
addOptions: () =>
|
|
15761
|
+
addOptions: () => Es(this.options, e)
|
|
15703
15762
|
});
|
|
15704
15763
|
return t.name = this.name, t.parent = this.parent, t;
|
|
15705
15764
|
}
|
|
@@ -16042,14 +16101,14 @@ const Nm = (n) => !("type" in n), Rm = (n, e, t) => ({ tr: r, dispatch: i, edito
|
|
|
16042
16101
|
return !0;
|
|
16043
16102
|
}, Pm = () => ({ state: n, dispatch: e }) => R9(n, e), $m = () => ({ state: n, dispatch: e }) => P9(n, e), Im = () => ({ state: n, dispatch: e }) => Wc(n, e), Bm = () => ({ state: n, dispatch: e }) => Yc(n, e), Zm = () => ({ state: n, dispatch: e, tr: t }) => {
|
|
16044
16103
|
try {
|
|
16045
|
-
const r =
|
|
16104
|
+
const r = bs(n.doc, n.selection.$from.pos, -1);
|
|
16046
16105
|
return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
|
|
16047
16106
|
} catch {
|
|
16048
16107
|
return !1;
|
|
16049
16108
|
}
|
|
16050
16109
|
}, Fm = () => ({ state: n, dispatch: e, tr: t }) => {
|
|
16051
16110
|
try {
|
|
16052
|
-
const r =
|
|
16111
|
+
const r = bs(n.doc, n.selection.$from.pos, 1);
|
|
16053
16112
|
return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
|
|
16054
16113
|
} catch {
|
|
16055
16114
|
return !1;
|
|
@@ -16119,7 +16178,7 @@ const Km = (n, e = {}) => ({ state: t, dispatch: r }) => {
|
|
|
16119
16178
|
const r = Ne(n, e.schema);
|
|
16120
16179
|
return J9(r)(e, t);
|
|
16121
16180
|
}, Jm = () => ({ state: n, dispatch: e }) => Gc(n, e);
|
|
16122
|
-
function
|
|
16181
|
+
function Vs(n, e) {
|
|
16123
16182
|
return e.nodes[n] ? "node" : e.marks[n] ? "mark" : null;
|
|
16124
16183
|
}
|
|
16125
16184
|
function bu(n, e) {
|
|
@@ -16128,7 +16187,7 @@ function bu(n, e) {
|
|
|
16128
16187
|
}
|
|
16129
16188
|
const Gm = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
|
|
16130
16189
|
let o = null, s = null;
|
|
16131
|
-
const l =
|
|
16190
|
+
const l = Vs(typeof n == "string" ? n : n.name, r.schema);
|
|
16132
16191
|
return l ? (l === "node" && (o = Ne(n, r.schema)), l === "mark" && (s = Hn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
|
|
16133
16192
|
r.doc.nodesBetween(a.$from.pos, a.$to.pos, (u, d) => {
|
|
16134
16193
|
o && o === u.type && t.setNodeMarkup(d, void 0, bu(u.attrs, e)), s && u.marks.length && u.marks.forEach((c) => {
|
|
@@ -16143,7 +16202,7 @@ const Gm = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
16143
16202
|
}
|
|
16144
16203
|
return !0;
|
|
16145
16204
|
}, Qm = () => ({ state: n, dispatch: e }) => Kc(n, e), e6 = () => ({ state: n, dispatch: e }) => Jc(n, e), t6 = () => ({ state: n, dispatch: e }) => F9(n, e), n6 = () => ({ state: n, dispatch: e }) => W9(n, e), r6 = () => ({ state: n, dispatch: e }) => j9(n, e);
|
|
16146
|
-
function
|
|
16205
|
+
function Nl(n, e, t = {}, r = {}) {
|
|
16147
16206
|
return Ao(n, e, {
|
|
16148
16207
|
slice: !1,
|
|
16149
16208
|
parseOptions: t,
|
|
@@ -16154,7 +16213,7 @@ const i6 = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
|
|
|
16154
16213
|
var a, u;
|
|
16155
16214
|
const { doc: d } = o;
|
|
16156
16215
|
if (t.preserveWhitespace !== "full") {
|
|
16157
|
-
const c =
|
|
16216
|
+
const c = Nl(n, i.schema, t, {
|
|
16158
16217
|
errorOnInvalidContent: (a = r.errorOnInvalidContent) !== null && a !== void 0 ? a : i.options.enableContentCheck
|
|
16159
16218
|
});
|
|
16160
16219
|
return s && o.replaceWith(0, d.content.size, c).setMeta("preventUpdate", !e), !0;
|
|
@@ -16228,7 +16287,7 @@ function u6(n, e) {
|
|
|
16228
16287
|
return s ? { ...s.attrs } : {};
|
|
16229
16288
|
}
|
|
16230
16289
|
function cf(n, e) {
|
|
16231
|
-
const t =
|
|
16290
|
+
const t = Vs(typeof e == "string" ? e : e.name, n.schema);
|
|
16232
16291
|
return t === "node" ? u6(n, e) : t === "mark" ? uf(n, e) : {};
|
|
16233
16292
|
}
|
|
16234
16293
|
function d6(n, e = JSON.stringify) {
|
|
@@ -16293,7 +16352,7 @@ function co(n, e, t) {
|
|
|
16293
16352
|
return i ? i.attribute.keepOnSplit : !1;
|
|
16294
16353
|
}));
|
|
16295
16354
|
}
|
|
16296
|
-
function
|
|
16355
|
+
function Rl(n, e, t = {}) {
|
|
16297
16356
|
const { empty: r, ranges: i } = n.selection, o = e ? Hn(e, n.schema) : null;
|
|
16298
16357
|
if (r)
|
|
16299
16358
|
return !!(n.storedMarks || n.selection.$from.marks()).filter((c) => o ? o.name === c.type.name : !0).find((c) => Oo(c.attrs, t, { strict: !1 }));
|
|
@@ -16318,12 +16377,12 @@ function Nl(n, e, t = {}) {
|
|
|
16318
16377
|
}
|
|
16319
16378
|
function p6(n, e, t = {}) {
|
|
16320
16379
|
if (!e)
|
|
16321
|
-
return gi(n, null, t) ||
|
|
16322
|
-
const r =
|
|
16323
|
-
return r === "node" ? gi(n, e, t) : r === "mark" ?
|
|
16380
|
+
return gi(n, null, t) || Rl(n, null, t);
|
|
16381
|
+
const r = Vs(e, n.schema);
|
|
16382
|
+
return r === "node" ? gi(n, e, t) : r === "mark" ? Rl(n, e, t) : !1;
|
|
16324
16383
|
}
|
|
16325
16384
|
function ku(n, e) {
|
|
16326
|
-
const { nodeExtensions: t } =
|
|
16385
|
+
const { nodeExtensions: t } = Ts(e), r = t.find((s) => s.name === n);
|
|
16327
16386
|
if (!r)
|
|
16328
16387
|
return !1;
|
|
16329
16388
|
const i = {
|
|
@@ -16333,7 +16392,7 @@ function ku(n, e) {
|
|
|
16333
16392
|
}, o = ue(K(r, "group", i));
|
|
16334
16393
|
return typeof o != "string" ? !1 : o.split(" ").includes("list");
|
|
16335
16394
|
}
|
|
16336
|
-
function
|
|
16395
|
+
function Os(n, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
|
|
16337
16396
|
var r;
|
|
16338
16397
|
if (t) {
|
|
16339
16398
|
if (n.type.name === "hardBreak")
|
|
@@ -16350,7 +16409,7 @@ function Vs(n, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
|
|
|
16350
16409
|
if (e) {
|
|
16351
16410
|
let i = !0;
|
|
16352
16411
|
return n.content.forEach((o) => {
|
|
16353
|
-
i !== !1 && (
|
|
16412
|
+
i !== !1 && (Os(o, { ignoreWhitespace: t, checkChildren: e }) || (i = !1));
|
|
16354
16413
|
}), i;
|
|
16355
16414
|
}
|
|
16356
16415
|
return !1;
|
|
@@ -16487,8 +16546,8 @@ const w6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
16487
16546
|
if (i) {
|
|
16488
16547
|
let b = D.empty;
|
|
16489
16548
|
const L = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
|
|
16490
|
-
for (let
|
|
16491
|
-
b = D.from(a.node(
|
|
16549
|
+
for (let $ = a.depth - L; $ >= a.depth - 3; $ -= 1)
|
|
16550
|
+
b = D.from(a.node($).copy(b));
|
|
16492
16551
|
const x = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, C = {
|
|
16493
16552
|
...co(f, a.node().type.name, a.node().attrs),
|
|
16494
16553
|
...e
|
|
@@ -16497,10 +16556,10 @@ const w6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
16497
16556
|
const M = a.before(a.depth - (L - 1));
|
|
16498
16557
|
t.replace(M, a.after(-x), new W(b, 4 - L, 0));
|
|
16499
16558
|
let z = -1;
|
|
16500
|
-
t.doc.nodesBetween(M, t.doc.content.size, (
|
|
16559
|
+
t.doc.nodesBetween(M, t.doc.content.size, ($, S) => {
|
|
16501
16560
|
if (z > -1)
|
|
16502
16561
|
return !1;
|
|
16503
|
-
|
|
16562
|
+
$.isTextblock && $.content.size === 0 && (z = S + 1);
|
|
16504
16563
|
}), z > -1 && t.setSelection(oe.near(t.doc.resolve(z))), t.scrollIntoView();
|
|
16505
16564
|
}
|
|
16506
16565
|
return !0;
|
|
@@ -16527,7 +16586,7 @@ const w6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
16527
16586
|
t.ensureMarks(H);
|
|
16528
16587
|
}
|
|
16529
16588
|
return !0;
|
|
16530
|
-
},
|
|
16589
|
+
}, el = (n, e) => {
|
|
16531
16590
|
const t = Na((s) => s.type === e)(n.selection);
|
|
16532
16591
|
if (!t)
|
|
16533
16592
|
return !0;
|
|
@@ -16536,7 +16595,7 @@ const w6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
16536
16595
|
return !0;
|
|
16537
16596
|
const i = n.doc.nodeAt(r);
|
|
16538
16597
|
return t.node.type === (i == null ? void 0 : i.type) && xn(n.doc, t.pos) && n.join(t.pos), !0;
|
|
16539
|
-
},
|
|
16598
|
+
}, tl = (n, e) => {
|
|
16540
16599
|
const t = Na((s) => s.type === e)(n.selection);
|
|
16541
16600
|
if (!t)
|
|
16542
16601
|
return !0;
|
|
@@ -16554,15 +16613,15 @@ const w6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
16554
16613
|
if (H.node.type === p)
|
|
16555
16614
|
return u.liftListItem(h);
|
|
16556
16615
|
if (ku(H.node.type.name, c) && p.validContent(H.node.content) && l)
|
|
16557
|
-
return a().command(() => (o.setNodeMarkup(H.pos, p), !0)).command(() =>
|
|
16616
|
+
return a().command(() => (o.setNodeMarkup(H.pos, p), !0)).command(() => el(o, p)).command(() => tl(o, p)).run();
|
|
16558
16617
|
}
|
|
16559
|
-
return !t || !C || !l ? a().command(() => d().wrapInList(p, r) ? !0 : u.clearNodes()).wrapInList(p, r).command(() =>
|
|
16560
|
-
const M = d().wrapInList(p, r), z = C.filter((
|
|
16618
|
+
return !t || !C || !l ? a().command(() => d().wrapInList(p, r) ? !0 : u.clearNodes()).wrapInList(p, r).command(() => el(o, p)).command(() => tl(o, p)).run() : a().command(() => {
|
|
16619
|
+
const M = d().wrapInList(p, r), z = C.filter(($) => f.includes($.type.name));
|
|
16561
16620
|
return o.ensureMarks(z), M ? !0 : u.clearNodes();
|
|
16562
|
-
}).wrapInList(p, r).command(() =>
|
|
16621
|
+
}).wrapInList(p, r).command(() => el(o, p)).command(() => tl(o, p)).run();
|
|
16563
16622
|
}, x6 = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
|
|
16564
16623
|
const { extendEmptyMarkRange: o = !1 } = t, s = Hn(n, r.schema);
|
|
16565
|
-
return
|
|
16624
|
+
return Rl(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
|
|
16566
16625
|
}, S6 = (n, e, t = {}) => ({ state: r, commands: i }) => {
|
|
16567
16626
|
const o = Ne(n, r.schema), s = Ne(e, r.schema), l = gi(r, o, t);
|
|
16568
16627
|
let a;
|
|
@@ -16611,7 +16670,7 @@ const w6 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
16611
16670
|
return t.removeStoredMark(a), !0;
|
|
16612
16671
|
}, O6 = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
16613
16672
|
let o = null, s = null;
|
|
16614
|
-
const l =
|
|
16673
|
+
const l = Vs(typeof n == "string" ? n : n.name, r.schema);
|
|
16615
16674
|
return l ? (l === "node" && (o = Ne(n, r.schema)), l === "mark" && (s = Hn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
|
|
16616
16675
|
const u = a.$from.pos, d = a.$to.pos;
|
|
16617
16676
|
let c, f, p, h;
|
|
@@ -16833,12 +16892,12 @@ const R6 = Je.create({
|
|
|
16833
16892
|
if (!r || i)
|
|
16834
16893
|
return;
|
|
16835
16894
|
const { empty: o, from: s, to: l } = e.selection, a = ce.atStart(e.doc).from, u = ce.atEnd(e.doc).to;
|
|
16836
|
-
if (o || !(s === a && l === u) || !
|
|
16895
|
+
if (o || !(s === a && l === u) || !Os(t.doc))
|
|
16837
16896
|
return;
|
|
16838
|
-
const f = t.tr, p =
|
|
16897
|
+
const f = t.tr, p = Ss({
|
|
16839
16898
|
state: t,
|
|
16840
16899
|
transaction: f
|
|
16841
|
-
}), { commands: h } = new
|
|
16900
|
+
}), { commands: h } = new Hs({
|
|
16842
16901
|
editor: this.editor,
|
|
16843
16902
|
state: p
|
|
16844
16903
|
});
|
|
@@ -17232,7 +17291,7 @@ let U6 = class extends Q9 {
|
|
|
17232
17291
|
* Creates an command manager.
|
|
17233
17292
|
*/
|
|
17234
17293
|
createCommandManager() {
|
|
17235
|
-
this.commandManager = new
|
|
17294
|
+
this.commandManager = new Hs({
|
|
17236
17295
|
editor: this
|
|
17237
17296
|
});
|
|
17238
17297
|
}
|
|
@@ -17249,7 +17308,7 @@ let U6 = class extends Q9 {
|
|
|
17249
17308
|
var e;
|
|
17250
17309
|
let t;
|
|
17251
17310
|
try {
|
|
17252
|
-
t =
|
|
17311
|
+
t = Nl(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck });
|
|
17253
17312
|
} catch (s) {
|
|
17254
17313
|
if (!(s instanceof Error) || !["[tiptap error]: Invalid JSON content", "[tiptap error]: Invalid HTML content"].includes(s.message))
|
|
17255
17314
|
throw s;
|
|
@@ -17259,7 +17318,7 @@ let U6 = class extends Q9 {
|
|
|
17259
17318
|
disableCollaboration: () => {
|
|
17260
17319
|
this.storage.collaboration && (this.storage.collaboration.isDisabled = !0), this.options.extensions = this.options.extensions.filter((l) => l.name !== "collaboration"), this.createExtensionManager();
|
|
17261
17320
|
}
|
|
17262
|
-
}), t =
|
|
17321
|
+
}), t = Nl(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
|
|
17263
17322
|
}
|
|
17264
17323
|
const r = sf(t, this.options.autofocus);
|
|
17265
17324
|
this.view = new w9(this.options.element, {
|
|
@@ -17387,7 +17446,7 @@ let U6 = class extends Q9 {
|
|
|
17387
17446
|
* Check if there is no content.
|
|
17388
17447
|
*/
|
|
17389
17448
|
get isEmpty() {
|
|
17390
|
-
return
|
|
17449
|
+
return Os(this.state.doc);
|
|
17391
17450
|
}
|
|
17392
17451
|
/**
|
|
17393
17452
|
* Get the number of characters for the current document.
|
|
@@ -17483,7 +17542,7 @@ function Do(n) {
|
|
|
17483
17542
|
}
|
|
17484
17543
|
});
|
|
17485
17544
|
}
|
|
17486
|
-
let er = class
|
|
17545
|
+
let er = class Pl {
|
|
17487
17546
|
constructor(e = {}) {
|
|
17488
17547
|
this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
|
|
17489
17548
|
name: this.name,
|
|
@@ -17499,17 +17558,17 @@ let er = class Rl {
|
|
|
17499
17558
|
})) || {};
|
|
17500
17559
|
}
|
|
17501
17560
|
static create(e = {}) {
|
|
17502
|
-
return new
|
|
17561
|
+
return new Pl(e);
|
|
17503
17562
|
}
|
|
17504
17563
|
configure(e = {}) {
|
|
17505
17564
|
const t = this.extend({
|
|
17506
17565
|
...this.config,
|
|
17507
|
-
addOptions: () =>
|
|
17566
|
+
addOptions: () => Es(this.options, e)
|
|
17508
17567
|
});
|
|
17509
17568
|
return t.name = this.name, t.parent = this.parent, t;
|
|
17510
17569
|
}
|
|
17511
17570
|
extend(e = {}) {
|
|
17512
|
-
const t = new
|
|
17571
|
+
const t = new Pl(e);
|
|
17513
17572
|
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = ue(K(t, "addOptions", {
|
|
17514
17573
|
name: t.name
|
|
17515
17574
|
})), t.storage = ue(K(t, "addStorage", {
|
|
@@ -18009,9 +18068,9 @@ function l8(n, e, t, r) {
|
|
|
18009
18068
|
if (s && s.getMeta(Wn))
|
|
18010
18069
|
return s.getMeta(Wn).redo ? new ln(n.done.addTransform(t, void 0, r, fo(e)), n.undone, Hu(t.mapping.maps), n.prevTime, n.prevComposition) : new ln(n.done, n.undone.addTransform(t, void 0, r, fo(e)), null, n.prevTime, n.prevComposition);
|
|
18011
18070
|
if (t.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
18012
|
-
let l = t.getMeta("composition"), a = n.prevTime == 0 || !s && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !a8(t, n.prevRanges)), u = s ?
|
|
18071
|
+
let l = t.getMeta("composition"), a = n.prevTime == 0 || !s && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !a8(t, n.prevRanges)), u = s ? nl(n.prevRanges, t.mapping) : Hu(t.mapping.maps);
|
|
18013
18072
|
return new ln(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, fo(e)), Mt.empty, u, t.time, l ?? n.prevComposition);
|
|
18014
|
-
} else return (o = t.getMeta("rebased")) ? new ln(n.done.rebased(t, o), n.undone.rebased(t, o),
|
|
18073
|
+
} else return (o = t.getMeta("rebased")) ? new ln(n.done.rebased(t, o), n.undone.rebased(t, o), nl(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new ln(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), nl(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
|
|
18015
18074
|
}
|
|
18016
18075
|
function a8(n, e) {
|
|
18017
18076
|
if (!e)
|
|
@@ -18030,7 +18089,7 @@ function Hu(n) {
|
|
|
18030
18089
|
n[t].forEach((r, i, o, s) => e.push(o, s));
|
|
18031
18090
|
return e;
|
|
18032
18091
|
}
|
|
18033
|
-
function
|
|
18092
|
+
function nl(n, e) {
|
|
18034
18093
|
if (!n)
|
|
18035
18094
|
return null;
|
|
18036
18095
|
let t = [];
|
|
@@ -18047,18 +18106,18 @@ function u8(n, e, t) {
|
|
|
18047
18106
|
let s = o.selection.resolve(o.transform.doc), l = (t ? n.done : n.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), a = new ln(t ? l : o.remaining, t ? o.remaining : l, null, 0, -1);
|
|
18048
18107
|
return o.transform.setSelection(s).setMeta(Wn, { redo: t, historyState: a });
|
|
18049
18108
|
}
|
|
18050
|
-
let
|
|
18109
|
+
let rl = !1, Tu = null;
|
|
18051
18110
|
function fo(n) {
|
|
18052
18111
|
let e = n.plugins;
|
|
18053
18112
|
if (Tu != e) {
|
|
18054
|
-
|
|
18113
|
+
rl = !1, Tu = e;
|
|
18055
18114
|
for (let t = 0; t < e.length; t++)
|
|
18056
18115
|
if (e[t].spec.historyPreserveItems) {
|
|
18057
|
-
|
|
18116
|
+
rl = !0;
|
|
18058
18117
|
break;
|
|
18059
18118
|
}
|
|
18060
18119
|
}
|
|
18061
|
-
return
|
|
18120
|
+
return rl;
|
|
18062
18121
|
}
|
|
18063
18122
|
const Wn = new Ge("history"), d8 = new Ge("closeHistory");
|
|
18064
18123
|
function c8(n = {}) {
|
|
@@ -18196,12 +18255,12 @@ const mf = hf(!1, !0), gf = hf(!0, !0), Eu = Je.create({
|
|
|
18196
18255
|
for (const t in e)
|
|
18197
18256
|
n[t] = e[t];
|
|
18198
18257
|
return n;
|
|
18199
|
-
},
|
|
18258
|
+
}, $l = "numeric", Il = "ascii", Bl = "alpha", _r = "asciinumeric", Yr = "alphanumeric", Zl = "domain", yf = "emoji", C8 = "scheme", b8 = "slashscheme", il = "whitespace";
|
|
18200
18259
|
function k8(n, e) {
|
|
18201
18260
|
return n in e || (e[n] = []), e[n];
|
|
18202
18261
|
}
|
|
18203
18262
|
function Bn(n, e, t) {
|
|
18204
|
-
e[
|
|
18263
|
+
e[$l] && (e[_r] = !0, e[Yr] = !0), e[Il] && (e[_r] = !0, e[Bl] = !0), e[_r] && (e[Yr] = !0), e[Bl] && (e[Yr] = !0), e[Yr] && (e[Zl] = !0), e[yf] && (e[Zl] = !0);
|
|
18205
18264
|
for (const r in e) {
|
|
18206
18265
|
const i = k8(r, t);
|
|
18207
18266
|
i.indexOf(n) < 0 && i.push(n);
|
|
@@ -18337,20 +18396,20 @@ _e.prototype = {
|
|
|
18337
18396
|
return i.j[n] = s, s;
|
|
18338
18397
|
}
|
|
18339
18398
|
};
|
|
18340
|
-
const ie = (n, e, t, r, i) => n.ta(e, t, r, i),
|
|
18399
|
+
const ie = (n, e, t, r, i) => n.ta(e, t, r, i), Se = (n, e, t, r, i) => n.tr(e, t, r, i), Vu = (n, e, t, r, i) => n.ts(e, t, r, i), N = (n, e, t, r, i) => n.tt(e, t, r, i), qt = "WORD", Fl = "UWORD", vf = "ASCIINUMERICAL", Cf = "ALPHANUMERICAL", vi = "LOCALHOST", zl = "TLD", jl = "UTLD", po = "SCHEME", ar = "SLASH_SCHEME", Pa = "NUM", Wl = "WS", $a = "NL", Qr = "OPENBRACE", ei = "CLOSEBRACE", Ro = "OPENBRACKET", Po = "CLOSEBRACKET", $o = "OPENPAREN", Io = "CLOSEPAREN", Bo = "OPENANGLEBRACKET", Zo = "CLOSEANGLEBRACKET", Fo = "FULLWIDTHLEFTPAREN", zo = "FULLWIDTHRIGHTPAREN", jo = "LEFTCORNERBRACKET", Wo = "RIGHTCORNERBRACKET", Uo = "LEFTWHITECORNERBRACKET", Ko = "RIGHTWHITECORNERBRACKET", qo = "FULLWIDTHLESSTHAN", Yo = "FULLWIDTHGREATERTHAN", Jo = "AMPERSAND", Ia = "APOSTROPHE", Go = "ASTERISK", an = "AT", Xo = "BACKSLASH", _o = "BACKTICK", Qo = "CARET", dn = "COLON", Ba = "COMMA", es = "DOLLAR", Vt = "DOT", ts = "EQUALS", Za = "EXCLAMATION", mt = "HYPHEN", ti = "PERCENT", ns = "PIPE", rs = "PLUS", is = "POUND", ni = "QUERY", Fa = "QUOTE", bf = "FULLWIDTHMIDDLEDOT", za = "SEMI", Ot = "SLASH", ri = "TILDE", ss = "UNDERSCORE", kf = "EMOJI", ls = "SYM";
|
|
18341
18400
|
var wf = /* @__PURE__ */ Object.freeze({
|
|
18342
18401
|
__proto__: null,
|
|
18343
18402
|
WORD: qt,
|
|
18344
|
-
UWORD:
|
|
18403
|
+
UWORD: Fl,
|
|
18345
18404
|
ASCIINUMERICAL: vf,
|
|
18346
18405
|
ALPHANUMERICAL: Cf,
|
|
18347
18406
|
LOCALHOST: vi,
|
|
18348
|
-
TLD:
|
|
18349
|
-
UTLD:
|
|
18407
|
+
TLD: zl,
|
|
18408
|
+
UTLD: jl,
|
|
18350
18409
|
SCHEME: po,
|
|
18351
18410
|
SLASH_SCHEME: ar,
|
|
18352
18411
|
NUM: Pa,
|
|
18353
|
-
WS:
|
|
18412
|
+
WS: Wl,
|
|
18354
18413
|
NL: $a,
|
|
18355
18414
|
OPENBRACE: Qr,
|
|
18356
18415
|
CLOSEBRACE: ei,
|
|
@@ -18396,53 +18455,53 @@ var wf = /* @__PURE__ */ Object.freeze({
|
|
|
18396
18455
|
EMOJI: kf,
|
|
18397
18456
|
SYM: ls
|
|
18398
18457
|
});
|
|
18399
|
-
const Ut = /[a-z]/, zr = new RegExp("\\p{L}", "u"),
|
|
18400
|
-
`, L8 = "️", M8 = "",
|
|
18458
|
+
const Ut = /[a-z]/, zr = new RegExp("\\p{L}", "u"), ol = new RegExp("\\p{Emoji}", "u"), Kt = /\d/, sl = /\s/, Ou = "\r", ll = `
|
|
18459
|
+
`, L8 = "️", M8 = "", al = "";
|
|
18401
18460
|
let eo = null, to = null;
|
|
18402
18461
|
function x8(n = []) {
|
|
18403
18462
|
const e = {};
|
|
18404
18463
|
_e.groups = e;
|
|
18405
18464
|
const t = new _e();
|
|
18406
18465
|
eo == null && (eo = Au(y8)), to == null && (to = Au(v8)), N(t, "'", Ia), N(t, "{", Qr), N(t, "}", ei), N(t, "[", Ro), N(t, "]", Po), N(t, "(", $o), N(t, ")", Io), N(t, "<", Bo), N(t, ">", Zo), N(t, "(", Fo), N(t, ")", zo), N(t, "「", jo), N(t, "」", Wo), N(t, "『", Uo), N(t, "』", Ko), N(t, "<", qo), N(t, ">", Yo), N(t, "&", Jo), N(t, "*", Go), N(t, "@", an), N(t, "`", _o), N(t, "^", Qo), N(t, ":", dn), N(t, ",", Ba), N(t, "$", es), N(t, ".", Vt), N(t, "=", ts), N(t, "!", Za), N(t, "-", mt), N(t, "%", ti), N(t, "|", ns), N(t, "+", rs), N(t, "#", is), N(t, "?", ni), N(t, '"', Fa), N(t, "/", Ot), N(t, ";", za), N(t, "~", ri), N(t, "_", ss), N(t, "\\", Xo), N(t, "・", bf);
|
|
18407
|
-
const r =
|
|
18408
|
-
[
|
|
18466
|
+
const r = Se(t, Kt, Pa, {
|
|
18467
|
+
[$l]: !0
|
|
18409
18468
|
});
|
|
18410
|
-
|
|
18411
|
-
const i =
|
|
18469
|
+
Se(r, Kt, r);
|
|
18470
|
+
const i = Se(r, Ut, vf, {
|
|
18412
18471
|
[_r]: !0
|
|
18413
|
-
}), o =
|
|
18472
|
+
}), o = Se(r, zr, Cf, {
|
|
18414
18473
|
[Yr]: !0
|
|
18415
|
-
}), s =
|
|
18416
|
-
[$l]: !0
|
|
18417
|
-
});
|
|
18418
|
-
xe(s, Kt, i), xe(s, Ut, s), xe(i, Kt, i), xe(i, Ut, i);
|
|
18419
|
-
const l = xe(t, zr, Zl, {
|
|
18474
|
+
}), s = Se(t, Ut, qt, {
|
|
18420
18475
|
[Il]: !0
|
|
18421
18476
|
});
|
|
18422
|
-
|
|
18423
|
-
const
|
|
18424
|
-
[
|
|
18425
|
-
}), u = N(t, Ou, jl, {
|
|
18426
|
-
[rl]: !0
|
|
18427
|
-
}), d = xe(t, ol, jl, {
|
|
18428
|
-
[rl]: !0
|
|
18477
|
+
Se(s, Kt, i), Se(s, Ut, s), Se(i, Kt, i), Se(i, Ut, i);
|
|
18478
|
+
const l = Se(t, zr, Fl, {
|
|
18479
|
+
[Bl]: !0
|
|
18429
18480
|
});
|
|
18430
|
-
|
|
18431
|
-
const
|
|
18481
|
+
Se(l, Ut), Se(l, Kt, o), Se(l, zr, l), Se(o, Kt, o), Se(o, Ut), Se(o, zr, o);
|
|
18482
|
+
const a = N(t, ll, $a, {
|
|
18483
|
+
[il]: !0
|
|
18484
|
+
}), u = N(t, Ou, Wl, {
|
|
18485
|
+
[il]: !0
|
|
18486
|
+
}), d = Se(t, sl, Wl, {
|
|
18487
|
+
[il]: !0
|
|
18488
|
+
});
|
|
18489
|
+
N(t, al, d), N(u, ll, a), N(u, al, d), Se(u, sl, d), N(d, Ou), N(d, ll), Se(d, sl, d), N(d, al, d);
|
|
18490
|
+
const c = Se(t, ol, kf, {
|
|
18432
18491
|
[yf]: !0
|
|
18433
18492
|
});
|
|
18434
|
-
N(c, "#"),
|
|
18493
|
+
N(c, "#"), Se(c, ol, c), N(c, L8, c);
|
|
18435
18494
|
const f = N(c, M8);
|
|
18436
|
-
N(f, "#"),
|
|
18495
|
+
N(f, "#"), Se(f, ol, c);
|
|
18437
18496
|
const p = [[Ut, s], [Kt, i]], h = [[Ut, null], [zr, l], [Kt, o]];
|
|
18438
18497
|
for (let m = 0; m < eo.length; m++)
|
|
18439
|
-
rn(t, eo[m],
|
|
18498
|
+
rn(t, eo[m], zl, qt, p);
|
|
18440
18499
|
for (let m = 0; m < to.length; m++)
|
|
18441
|
-
rn(t, to[m],
|
|
18442
|
-
Bn(
|
|
18500
|
+
rn(t, to[m], jl, Fl, h);
|
|
18501
|
+
Bn(zl, {
|
|
18443
18502
|
tld: !0,
|
|
18444
18503
|
ascii: !0
|
|
18445
|
-
}, e), Bn(
|
|
18504
|
+
}, e), Bn(jl, {
|
|
18446
18505
|
utld: !0,
|
|
18447
18506
|
alpha: !0
|
|
18448
18507
|
}, e), rn(t, "file", po, qt, p), rn(t, "mailto", po, qt, p), rn(t, "http", ar, qt, p), rn(t, "https", ar, qt, p), rn(t, "ftp", ar, qt, p), rn(t, "ftps", ar, qt, p), Bn(po, {
|
|
@@ -18458,7 +18517,7 @@ function x8(n = []) {
|
|
|
18458
18517
|
} : {
|
|
18459
18518
|
[b8]: !0
|
|
18460
18519
|
};
|
|
18461
|
-
y.indexOf("-") >= 0 ? L[
|
|
18520
|
+
y.indexOf("-") >= 0 ? L[Zl] = !0 : Ut.test(y) ? Kt.test(y) ? L[_r] = !0 : L[Il] = !0 : L[$l] = !0, Vu(t, y, y, L);
|
|
18462
18521
|
}
|
|
18463
18522
|
return Vu(t, "localhost", vi, {
|
|
18464
18523
|
ascii: !0
|
|
@@ -18720,7 +18779,7 @@ Mf.prototype = {
|
|
|
18720
18779
|
};
|
|
18721
18780
|
}
|
|
18722
18781
|
};
|
|
18723
|
-
function
|
|
18782
|
+
function As(n, e) {
|
|
18724
18783
|
class t extends Mf {
|
|
18725
18784
|
constructor(i, o) {
|
|
18726
18785
|
super(i, o), this.t = n;
|
|
@@ -18730,12 +18789,12 @@ function Os(n, e) {
|
|
|
18730
18789
|
t.prototype[r] = e[r];
|
|
18731
18790
|
return t.t = n, t;
|
|
18732
18791
|
}
|
|
18733
|
-
const Nu =
|
|
18792
|
+
const Nu = As("email", {
|
|
18734
18793
|
isLink: !0,
|
|
18735
18794
|
toHref() {
|
|
18736
18795
|
return "mailto:" + this.toString();
|
|
18737
18796
|
}
|
|
18738
|
-
}), Ru =
|
|
18797
|
+
}), Ru = As("text"), H8 = As("nl"), no = As("url", {
|
|
18739
18798
|
isLink: !0,
|
|
18740
18799
|
/**
|
|
18741
18800
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
@@ -18785,7 +18844,7 @@ function T8({
|
|
|
18785
18844
|
ie(x, n.numeric, C);
|
|
18786
18845
|
const H = ht(no), M = ht();
|
|
18787
18846
|
ie(H, e, H), ie(H, t, M), ie(M, e, H), ie(M, t, M), N(L, Ot, H), N(C, Ot, H);
|
|
18788
|
-
const z = N(l, dn),
|
|
18847
|
+
const z = N(l, dn), $ = N(a, dn), S = N($, Ot), B = N(S, Ot);
|
|
18789
18848
|
ie(l, n.domain, s), N(l, Vt, b), N(l, mt, y), ie(a, n.domain, s), N(a, Vt, b), N(a, mt, y), ie(z, n.domain, H), N(z, Ot, H), N(z, ni, H), ie(B, n.domain, H), ie(B, e, H), N(B, Ot, H);
|
|
18790
18849
|
const Q = [
|
|
18791
18850
|
[Qr, ei],
|
|
@@ -18805,8 +18864,8 @@ function T8({
|
|
|
18805
18864
|
[qo, Yo]
|
|
18806
18865
|
// <>
|
|
18807
18866
|
];
|
|
18808
|
-
for (let
|
|
18809
|
-
const [j, ee] = Q[
|
|
18867
|
+
for (let F = 0; F < Q.length; F++) {
|
|
18868
|
+
const [j, ee] = Q[F], ke = N(H, j);
|
|
18810
18869
|
N(M, j, ke), N(ke, ee, H);
|
|
18811
18870
|
const le = ht(no);
|
|
18812
18871
|
ie(ke, e, le);
|
|
@@ -18829,14 +18888,14 @@ function E8(n, e, t) {
|
|
|
18829
18888
|
if (f < 0)
|
|
18830
18889
|
i -= d, i < r && (s.push(t[i]), i++);
|
|
18831
18890
|
else {
|
|
18832
|
-
s.length > 0 && (o.push(
|
|
18891
|
+
s.length > 0 && (o.push(ul(Ru, e, s)), s = []), i -= f, d -= f;
|
|
18833
18892
|
const p = c.t, h = t.slice(i - d, i);
|
|
18834
|
-
o.push(
|
|
18893
|
+
o.push(ul(p, e, h));
|
|
18835
18894
|
}
|
|
18836
18895
|
}
|
|
18837
|
-
return s.length > 0 && o.push(
|
|
18896
|
+
return s.length > 0 && o.push(ul(Ru, e, s)), o;
|
|
18838
18897
|
}
|
|
18839
|
-
function
|
|
18898
|
+
function ul(n, e, t) {
|
|
18840
18899
|
const r = t[0].s, i = t[t.length - 1].e, o = e.slice(r, i);
|
|
18841
18900
|
return new n(o, t);
|
|
18842
18901
|
}
|
|
@@ -19291,7 +19350,7 @@ const $u = en.create({
|
|
|
19291
19350
|
return null;
|
|
19292
19351
|
const o = this.editor.isEmpty;
|
|
19293
19352
|
return n.descendants((s, l) => {
|
|
19294
|
-
const a = r >= l && r <= l + s.nodeSize, u = !s.isLeaf &&
|
|
19353
|
+
const a = r >= l && r <= l + s.nodeSize, u = !s.isLeaf && Os(s);
|
|
19295
19354
|
if ((a || !this.options.showOnlyCurrent) && u) {
|
|
19296
19355
|
const d = [this.options.emptyNodeClass];
|
|
19297
19356
|
o && d.push(this.options.emptyEditorClass);
|
|
@@ -19429,14 +19488,14 @@ function Rt(n) {
|
|
|
19429
19488
|
return n.split("-")[0];
|
|
19430
19489
|
}
|
|
19431
19490
|
var Un = Math.max, as = Math.min, Sr = Math.round;
|
|
19432
|
-
function
|
|
19491
|
+
function Ul() {
|
|
19433
19492
|
var n = navigator.userAgentData;
|
|
19434
19493
|
return n != null && n.brands && Array.isArray(n.brands) ? n.brands.map(function(e) {
|
|
19435
19494
|
return e.brand + "/" + e.version;
|
|
19436
19495
|
}).join(" ") : navigator.userAgent;
|
|
19437
19496
|
}
|
|
19438
19497
|
function Ef() {
|
|
19439
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
19498
|
+
return !/^((?!chrome|android).)*safari/i.test(Ul());
|
|
19440
19499
|
}
|
|
19441
19500
|
function Hr(n, e, t) {
|
|
19442
19501
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
@@ -19489,7 +19548,7 @@ function Tn(n) {
|
|
|
19489
19548
|
n.document
|
|
19490
19549
|
)) || window.document).documentElement;
|
|
19491
19550
|
}
|
|
19492
|
-
function
|
|
19551
|
+
function Ds(n) {
|
|
19493
19552
|
return Zt(n) === "html" ? n : (
|
|
19494
19553
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
19495
19554
|
// $FlowFixMe[incompatible-return]
|
|
@@ -19506,13 +19565,13 @@ function Fu(n) {
|
|
|
19506
19565
|
tn(n).position === "fixed" ? null : n.offsetParent;
|
|
19507
19566
|
}
|
|
19508
19567
|
function l7(n) {
|
|
19509
|
-
var e = /firefox/i.test(
|
|
19568
|
+
var e = /firefox/i.test(Ul()), t = /Trident/i.test(Ul());
|
|
19510
19569
|
if (t && bt(n)) {
|
|
19511
19570
|
var r = tn(n);
|
|
19512
19571
|
if (r.position === "fixed")
|
|
19513
19572
|
return null;
|
|
19514
19573
|
}
|
|
19515
|
-
var i =
|
|
19574
|
+
var i = Ds(n);
|
|
19516
19575
|
for (Ka(i) && (i = i.host); bt(i) && ["html", "body"].indexOf(Zt(i)) < 0; ) {
|
|
19517
19576
|
var o = tn(i);
|
|
19518
19577
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
@@ -19560,8 +19619,8 @@ var u7 = function(e, t) {
|
|
|
19560
19619
|
function d7(n) {
|
|
19561
19620
|
var e, t = n.state, r = n.name, i = n.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, l = Rt(t.placement), a = Ya(l), u = [nt, wt].indexOf(l) >= 0, d = u ? "height" : "width";
|
|
19562
19621
|
if (!(!o || !s)) {
|
|
19563
|
-
var c = u7(i.padding, t), f = qa(o), p = a === "y" ? tt : nt, h = a === "y" ? kt : wt, m = t.rects.reference[d] + t.rects.reference[a] - s[a] - t.rects.popper[d], y = s[a] - t.rects.reference[a], b = Ri(o), L = b ? a === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, x = m / 2 - y / 2, C = c[p], H = L - f[d] - c[h], M = L / 2 - f[d] / 2 + x, z = ii(C, M, H),
|
|
19564
|
-
t.modifiersData[r] = (e = {}, e[
|
|
19622
|
+
var c = u7(i.padding, t), f = qa(o), p = a === "y" ? tt : nt, h = a === "y" ? kt : wt, m = t.rects.reference[d] + t.rects.reference[a] - s[a] - t.rects.popper[d], y = s[a] - t.rects.reference[a], b = Ri(o), L = b ? a === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, x = m / 2 - y / 2, C = c[p], H = L - f[d] - c[h], M = L / 2 - f[d] / 2 + x, z = ii(C, M, H), $ = a;
|
|
19623
|
+
t.modifiersData[r] = (e = {}, e[$] = z, e.centerOffset = z - M, e);
|
|
19565
19624
|
}
|
|
19566
19625
|
}
|
|
19567
19626
|
function c7(n) {
|
|
@@ -19604,8 +19663,8 @@ function zu(n) {
|
|
|
19604
19663
|
p = y.x, m = y.y;
|
|
19605
19664
|
var b = s.hasOwnProperty("x"), L = s.hasOwnProperty("y"), x = nt, C = tt, H = window;
|
|
19606
19665
|
if (u) {
|
|
19607
|
-
var M = Ri(t), z = "clientHeight",
|
|
19608
|
-
if (M === ft(t) && (M = Tn(t), tn(M).position !== "static" && l === "absolute" && (z = "scrollHeight",
|
|
19666
|
+
var M = Ri(t), z = "clientHeight", $ = "clientWidth";
|
|
19667
|
+
if (M === ft(t) && (M = Tn(t), tn(M).position !== "static" && l === "absolute" && (z = "scrollHeight", $ = "scrollWidth")), M = M, i === tt || (i === nt || i === wt) && o === bi) {
|
|
19609
19668
|
C = kt;
|
|
19610
19669
|
var S = c && M === H && H.visualViewport ? H.visualViewport.height : (
|
|
19611
19670
|
// $FlowFixMe[prop-missing]
|
|
@@ -19617,21 +19676,21 @@ function zu(n) {
|
|
|
19617
19676
|
x = wt;
|
|
19618
19677
|
var B = c && M === H && H.visualViewport ? H.visualViewport.width : (
|
|
19619
19678
|
// $FlowFixMe[prop-missing]
|
|
19620
|
-
M[
|
|
19679
|
+
M[$]
|
|
19621
19680
|
);
|
|
19622
19681
|
p -= B - r.width, p *= a ? 1 : -1;
|
|
19623
19682
|
}
|
|
19624
19683
|
}
|
|
19625
19684
|
var Q = Object.assign({
|
|
19626
19685
|
position: l
|
|
19627
|
-
}, u && p7),
|
|
19686
|
+
}, u && p7), F = d === !0 ? h7({
|
|
19628
19687
|
x: p,
|
|
19629
19688
|
y: m
|
|
19630
19689
|
}, ft(t)) : {
|
|
19631
19690
|
x: p,
|
|
19632
19691
|
y: m
|
|
19633
19692
|
};
|
|
19634
|
-
if (p =
|
|
19693
|
+
if (p = F.x, m = F.y, a) {
|
|
19635
19694
|
var j;
|
|
19636
19695
|
return Object.assign({}, Q, (j = {}, j[C] = L ? "0" : "", j[x] = b ? "0" : "", j.transform = (H.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", j));
|
|
19637
19696
|
}
|
|
@@ -19747,7 +19806,7 @@ function Xa(n) {
|
|
|
19747
19806
|
return /auto|scroll|overlay|hidden/.test(t + i + r);
|
|
19748
19807
|
}
|
|
19749
19808
|
function Nf(n) {
|
|
19750
|
-
return ["html", "body", "#document"].indexOf(Zt(n)) >= 0 ? n.ownerDocument.body : bt(n) && Xa(n) ? n : Nf(
|
|
19809
|
+
return ["html", "body", "#document"].indexOf(Zt(n)) >= 0 ? n.ownerDocument.body : bt(n) && Xa(n) ? n : Nf(Ds(n));
|
|
19751
19810
|
}
|
|
19752
19811
|
function oi(n, e) {
|
|
19753
19812
|
var t;
|
|
@@ -19755,10 +19814,10 @@ function oi(n, e) {
|
|
|
19755
19814
|
var r = Nf(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = ft(r), s = i ? [o].concat(o.visualViewport || [], Xa(r) ? r : []) : r, l = e.concat(s);
|
|
19756
19815
|
return i ? l : (
|
|
19757
19816
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
19758
|
-
l.concat(oi(
|
|
19817
|
+
l.concat(oi(Ds(s)))
|
|
19759
19818
|
);
|
|
19760
19819
|
}
|
|
19761
|
-
function
|
|
19820
|
+
function Kl(n) {
|
|
19762
19821
|
return Object.assign({}, n, {
|
|
19763
19822
|
left: n.x,
|
|
19764
19823
|
top: n.y,
|
|
@@ -19771,10 +19830,10 @@ function L7(n, e) {
|
|
|
19771
19830
|
return t.top = t.top + n.clientTop, t.left = t.left + n.clientLeft, t.bottom = t.top + n.clientHeight, t.right = t.left + n.clientWidth, t.width = n.clientWidth, t.height = n.clientHeight, t.x = t.left, t.y = t.top, t;
|
|
19772
19831
|
}
|
|
19773
19832
|
function Wu(n, e, t) {
|
|
19774
|
-
return e === Sf ?
|
|
19833
|
+
return e === Sf ? Kl(k7(n, t)) : _n(e) ? L7(e, t) : Kl(w7(Tn(n)));
|
|
19775
19834
|
}
|
|
19776
19835
|
function M7(n) {
|
|
19777
|
-
var e = oi(
|
|
19836
|
+
var e = oi(Ds(n)), t = ["absolute", "fixed"].indexOf(tn(n).position) >= 0, r = t && bt(n) ? Ri(n) : n;
|
|
19778
19837
|
return _n(r) ? e.filter(function(i) {
|
|
19779
19838
|
return _n(i) && Vf(i, r) && Zt(i) !== "body";
|
|
19780
19839
|
}) : [];
|
|
@@ -19839,17 +19898,17 @@ function ki(n, e) {
|
|
|
19839
19898
|
reference: M,
|
|
19840
19899
|
element: x,
|
|
19841
19900
|
placement: i
|
|
19842
|
-
}),
|
|
19901
|
+
}), $ = Kl(Object.assign({}, x, z)), S = f === jr ? $ : M, B = {
|
|
19843
19902
|
top: H.top - S.top + b.top,
|
|
19844
19903
|
bottom: S.bottom - H.bottom + b.bottom,
|
|
19845
19904
|
left: H.left - S.left + b.left,
|
|
19846
19905
|
right: S.right - H.right + b.right
|
|
19847
19906
|
}, Q = n.modifiersData.offset;
|
|
19848
19907
|
if (f === jr && Q) {
|
|
19849
|
-
var
|
|
19908
|
+
var F = Q[i];
|
|
19850
19909
|
Object.keys(B).forEach(function(j) {
|
|
19851
19910
|
var ee = [wt, kt].indexOf(j) >= 0 ? 1 : -1, ke = [tt, kt].indexOf(j) >= 0 ? "y" : "x";
|
|
19852
|
-
B[j] +=
|
|
19911
|
+
B[j] += F[ke] * ee;
|
|
19853
19912
|
});
|
|
19854
19913
|
}
|
|
19855
19914
|
return B;
|
|
@@ -19892,8 +19951,8 @@ function T7(n) {
|
|
|
19892
19951
|
flipVariations: h,
|
|
19893
19952
|
allowedAutoPlacements: m
|
|
19894
19953
|
}) : rt);
|
|
19895
|
-
}, []), H = e.rects.reference, M = e.rects.popper, z = /* @__PURE__ */ new Map(),
|
|
19896
|
-
var Q = C[B],
|
|
19954
|
+
}, []), H = e.rects.reference, M = e.rects.popper, z = /* @__PURE__ */ new Map(), $ = !0, S = C[0], B = 0; B < C.length; B++) {
|
|
19955
|
+
var Q = C[B], F = Rt(Q), j = Tr(Q) === xr, ee = [tt, kt].indexOf(F) >= 0, ke = ee ? "width" : "height", le = ki(e, {
|
|
19897
19956
|
placement: Q,
|
|
19898
19957
|
boundary: d,
|
|
19899
19958
|
rootBoundary: c,
|
|
@@ -19901,16 +19960,16 @@ function T7(n) {
|
|
|
19901
19960
|
padding: u
|
|
19902
19961
|
}), pe = ee ? j ? wt : nt : j ? kt : tt;
|
|
19903
19962
|
H[ke] > M[ke] && (pe = ho(pe));
|
|
19904
|
-
var he = ho(pe),
|
|
19905
|
-
if (o &&
|
|
19963
|
+
var he = ho(pe), Me = [];
|
|
19964
|
+
if (o && Me.push(le[F] <= 0), l && Me.push(le[pe] <= 0, le[he] <= 0), Me.every(function(je) {
|
|
19906
19965
|
return je;
|
|
19907
19966
|
})) {
|
|
19908
|
-
S = Q,
|
|
19967
|
+
S = Q, $ = !1;
|
|
19909
19968
|
break;
|
|
19910
19969
|
}
|
|
19911
|
-
z.set(Q,
|
|
19970
|
+
z.set(Q, Me);
|
|
19912
19971
|
}
|
|
19913
|
-
if (
|
|
19972
|
+
if ($)
|
|
19914
19973
|
for (var Be = h ? 3 : 1, q = function(rt) {
|
|
19915
19974
|
var Lt = C.find(function(En) {
|
|
19916
19975
|
var I = z.get(En);
|
|
@@ -20026,7 +20085,7 @@ function I7(n) {
|
|
|
20026
20085
|
rootBoundary: u,
|
|
20027
20086
|
padding: c,
|
|
20028
20087
|
altBoundary: d
|
|
20029
|
-
}), b = Rt(e.placement), L = Tr(e.placement), x = !L, C = Ya(b), H = $7(C), M = e.modifiersData.popperOffsets, z = e.rects.reference,
|
|
20088
|
+
}), b = Rt(e.placement), L = Tr(e.placement), x = !L, C = Ya(b), H = $7(C), M = e.modifiersData.popperOffsets, z = e.rects.reference, $ = e.rects.popper, S = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
20030
20089
|
placement: e.placement
|
|
20031
20090
|
})) : m, B = typeof S == "number" ? {
|
|
20032
20091
|
mainAxis: S,
|
|
@@ -20034,23 +20093,23 @@ function I7(n) {
|
|
|
20034
20093
|
} : Object.assign({
|
|
20035
20094
|
mainAxis: 0,
|
|
20036
20095
|
altAxis: 0
|
|
20037
|
-
}, S), Q = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null,
|
|
20096
|
+
}, S), Q = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, F = {
|
|
20038
20097
|
x: 0,
|
|
20039
20098
|
y: 0
|
|
20040
20099
|
};
|
|
20041
20100
|
if (M) {
|
|
20042
20101
|
if (o) {
|
|
20043
|
-
var j, ee = C === "y" ? tt : nt, ke = C === "y" ? kt : wt, le = C === "y" ? "height" : "width", pe = M[C], he = pe + y[ee],
|
|
20102
|
+
var j, ee = C === "y" ? tt : nt, ke = C === "y" ? kt : wt, le = C === "y" ? "height" : "width", pe = M[C], he = pe + y[ee], Me = pe - y[ke], Be = p ? -$[le] / 2 : 0, q = L === xr ? z[le] : $[le], _ = L === xr ? -$[le] : -z[le], ae = e.elements.arrow, je = p && ae ? qa(ae) : {
|
|
20044
20103
|
width: 0,
|
|
20045
20104
|
height: 0
|
|
20046
|
-
}, rt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Of(), Lt = rt[ee], En = rt[ke], I = ii(0, z[le], je[le]), se = x ? z[le] / 2 - Be - I - Lt - B.mainAxis : q - I - Lt - B.mainAxis, Ce = x ? -z[le] / 2 + Be + I + En + B.mainAxis : _ + I + En + B.mainAxis, Xe = e.elements.arrow && Ri(e.elements.arrow), Vn = Xe ? C === "y" ? Xe.clientTop || 0 : Xe.clientLeft || 0 : 0, Nr = (j = Q == null ? void 0 : Q[C]) != null ? j : 0, Pi = pe + se - Nr - Vn, $i = pe + Ce - Nr, Rr = ii(p ? as(he, Pi) : he, pe, p ? Un(
|
|
20047
|
-
M[C] = Rr,
|
|
20105
|
+
}, rt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Of(), Lt = rt[ee], En = rt[ke], I = ii(0, z[le], je[le]), se = x ? z[le] / 2 - Be - I - Lt - B.mainAxis : q - I - Lt - B.mainAxis, Ce = x ? -z[le] / 2 + Be + I + En + B.mainAxis : _ + I + En + B.mainAxis, Xe = e.elements.arrow && Ri(e.elements.arrow), Vn = Xe ? C === "y" ? Xe.clientTop || 0 : Xe.clientLeft || 0 : 0, Nr = (j = Q == null ? void 0 : Q[C]) != null ? j : 0, Pi = pe + se - Nr - Vn, $i = pe + Ce - Nr, Rr = ii(p ? as(he, Pi) : he, pe, p ? Un(Me, $i) : Me);
|
|
20106
|
+
M[C] = Rr, F[C] = Rr - pe;
|
|
20048
20107
|
}
|
|
20049
20108
|
if (l) {
|
|
20050
|
-
var Pr, Ii = C === "x" ? tt : nt, Bi = C === "x" ? kt : wt, jt = M[H], nn = H === "y" ? "height" : "width", $r = jt + y[Ii], On = jt - y[Bi], Ir = [tt, nt].indexOf(b) !== -1, Zi = (Pr = Q == null ? void 0 : Q[H]) != null ? Pr : 0, Fi = Ir ? $r : jt - z[nn] -
|
|
20051
|
-
M[H] = ji,
|
|
20109
|
+
var Pr, Ii = C === "x" ? tt : nt, Bi = C === "x" ? kt : wt, jt = M[H], nn = H === "y" ? "height" : "width", $r = jt + y[Ii], On = jt - y[Bi], Ir = [tt, nt].indexOf(b) !== -1, Zi = (Pr = Q == null ? void 0 : Q[H]) != null ? Pr : 0, Fi = Ir ? $r : jt - z[nn] - $[nn] - Zi + B.altAxis, zi = Ir ? jt + z[nn] + $[nn] - Zi - B.altAxis : On, ji = p && Ir ? a7(Fi, jt, zi) : ii(p ? Fi : $r, jt, p ? zi : On);
|
|
20110
|
+
M[H] = ji, F[H] = ji - jt;
|
|
20052
20111
|
}
|
|
20053
|
-
e.modifiersData[r] =
|
|
20112
|
+
e.modifiersData[r] = F;
|
|
20054
20113
|
}
|
|
20055
20114
|
}
|
|
20056
20115
|
const B7 = {
|
|
@@ -20200,10 +20259,10 @@ function Y7(n) {
|
|
|
20200
20259
|
d.reset = !1, C = -1;
|
|
20201
20260
|
continue;
|
|
20202
20261
|
}
|
|
20203
|
-
var H = d.orderedModifiers[C], M = H.fn, z = H.options,
|
|
20262
|
+
var H = d.orderedModifiers[C], M = H.fn, z = H.options, $ = z === void 0 ? {} : z, S = H.name;
|
|
20204
20263
|
typeof M == "function" && (d = M({
|
|
20205
20264
|
state: d,
|
|
20206
|
-
options:
|
|
20265
|
+
options: $,
|
|
20207
20266
|
name: S,
|
|
20208
20267
|
instance: p
|
|
20209
20268
|
}) || d);
|
|
@@ -20261,7 +20320,7 @@ var J7 = [v7, P7, g7, Tf, N7, E7, B7, f7, O7], G7 = /* @__PURE__ */ Y7({
|
|
|
20261
20320
|
function Q7(n, e) {
|
|
20262
20321
|
return {}.hasOwnProperty.call(n, e);
|
|
20263
20322
|
}
|
|
20264
|
-
function
|
|
20323
|
+
function dl(n, e, t) {
|
|
20265
20324
|
if (Array.isArray(n)) {
|
|
20266
20325
|
var r = n[e];
|
|
20267
20326
|
return r ?? (Array.isArray(t) ? t[e] : t);
|
|
@@ -20336,7 +20395,7 @@ function sg(n) {
|
|
|
20336
20395
|
function lg(n) {
|
|
20337
20396
|
return wi(n) ? [n] : ig(n) ? us(n) : Array.isArray(n) ? n : us(document.querySelectorAll(n));
|
|
20338
20397
|
}
|
|
20339
|
-
function
|
|
20398
|
+
function cl(n, e) {
|
|
20340
20399
|
n.forEach(function(t) {
|
|
20341
20400
|
t && (t.style.transitionDuration = e + "ms");
|
|
20342
20401
|
});
|
|
@@ -20360,7 +20419,7 @@ function ug(n, e) {
|
|
|
20360
20419
|
return m || y || b || L;
|
|
20361
20420
|
});
|
|
20362
20421
|
}
|
|
20363
|
-
function
|
|
20422
|
+
function fl(n, e, t) {
|
|
20364
20423
|
var r = e + "EventListener";
|
|
20365
20424
|
["transitionend", "webkitTransitionEnd"].forEach(function(i) {
|
|
20366
20425
|
n[r](i, t);
|
|
@@ -20438,7 +20497,7 @@ function Jt(n, e) {
|
|
|
20438
20497
|
Li.add(e), (t = console).warn.apply(t, zf(e));
|
|
20439
20498
|
}
|
|
20440
20499
|
}
|
|
20441
|
-
function
|
|
20500
|
+
function ql(n, e) {
|
|
20442
20501
|
if (n && !Li.has(e)) {
|
|
20443
20502
|
var t;
|
|
20444
20503
|
Li.add(e), (t = console).error.apply(t, zf(e));
|
|
@@ -20446,7 +20505,7 @@ function Kl(n, e) {
|
|
|
20446
20505
|
}
|
|
20447
20506
|
function yg(n) {
|
|
20448
20507
|
var e = !n, t = Object.prototype.toString.call(n) === "[object Object]" && !n.addEventListener;
|
|
20449
|
-
|
|
20508
|
+
ql(e, ["tippy() was passed", "`" + String(n) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), ql(t, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
20450
20509
|
}
|
|
20451
20510
|
var jf = {
|
|
20452
20511
|
animateFill: !1,
|
|
@@ -20573,17 +20632,17 @@ function Uf(n, e) {
|
|
|
20573
20632
|
var wg = function() {
|
|
20574
20633
|
return "innerHTML";
|
|
20575
20634
|
};
|
|
20576
|
-
function
|
|
20635
|
+
function Yl(n, e) {
|
|
20577
20636
|
n[wg()] = e;
|
|
20578
20637
|
}
|
|
20579
20638
|
function rd(n) {
|
|
20580
20639
|
var e = si();
|
|
20581
|
-
return n === !0 ? e.className = $f : (e.className = If, wi(n) ? e.appendChild(n) :
|
|
20640
|
+
return n === !0 ? e.className = $f : (e.className = If, wi(n) ? e.appendChild(n) : Yl(e, n)), e;
|
|
20582
20641
|
}
|
|
20583
20642
|
function id(n, e) {
|
|
20584
|
-
wi(e.content) ? (
|
|
20643
|
+
wi(e.content) ? (Yl(n, ""), n.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? Yl(n, e.content) : n.textContent = e.content);
|
|
20585
20644
|
}
|
|
20586
|
-
function
|
|
20645
|
+
function Jl(n) {
|
|
20587
20646
|
var e = n.firstElementChild, t = us(e.children);
|
|
20588
20647
|
return {
|
|
20589
20648
|
box: e,
|
|
@@ -20604,7 +20663,7 @@ function Kf(n) {
|
|
|
20604
20663
|
var r = si();
|
|
20605
20664
|
r.className = Pf, r.setAttribute("data-state", "hidden"), id(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
|
|
20606
20665
|
function i(o, s) {
|
|
20607
|
-
var l =
|
|
20666
|
+
var l = Jl(e), a = l.box, u = l.content, d = l.arrow;
|
|
20608
20667
|
s.theme ? a.setAttribute("data-theme", s.theme) : a.removeAttribute("data-theme"), typeof s.animation == "string" ? a.setAttribute("data-animation", s.animation) : a.removeAttribute("data-animation"), s.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? a.setAttribute("role", s.role) : a.removeAttribute("role"), (o.content !== s.content || o.allowHTML !== s.allowHTML) && id(u, n.props), s.arrow ? d ? o.arrow !== s.arrow && (a.removeChild(d), a.appendChild(rd(s.arrow))) : a.appendChild(rd(s.arrow)) : d && a.removeChild(d);
|
|
20609
20668
|
}
|
|
20610
20669
|
return {
|
|
@@ -20613,7 +20672,7 @@ function Kf(n) {
|
|
|
20613
20672
|
};
|
|
20614
20673
|
}
|
|
20615
20674
|
Kf.$$tippy = !0;
|
|
20616
|
-
var Lg = 1, io = [],
|
|
20675
|
+
var Lg = 1, io = [], pl = [];
|
|
20617
20676
|
function Mg(n, e) {
|
|
20618
20677
|
var t = nd(n, Object.assign({}, at, Wf(Xu(e)))), r, i, o, s = !1, l = !1, a = !1, u = !1, d, c, f, p = [], h = Ju(Pi, t.interactiveDebounce), m, y = Lg++, b = null, L = ng(t.plugins), x = {
|
|
20619
20678
|
// Is the instance currently enabled?
|
|
@@ -20648,10 +20707,10 @@ function Mg(n, e) {
|
|
|
20648
20707
|
destroy: tp
|
|
20649
20708
|
};
|
|
20650
20709
|
if (!t.render)
|
|
20651
|
-
return process.env.NODE_ENV !== "production" &&
|
|
20710
|
+
return process.env.NODE_ENV !== "production" && ql(!0, "render() function has not been supplied."), C;
|
|
20652
20711
|
var H = t.render(C), M = H.popper, z = H.onUpdate;
|
|
20653
20712
|
M.setAttribute("data-tippy-root", ""), M.id = "tippy-" + C.id, C.popper = M, n._tippy = C, M._tippy = C;
|
|
20654
|
-
var
|
|
20713
|
+
var $ = L.map(function(T) {
|
|
20655
20714
|
return T.fn(C);
|
|
20656
20715
|
}), S = n.hasAttribute("aria-expanded");
|
|
20657
20716
|
return Xe(), Be(), pe(), he("onCreate", [C]), t.showOnCreate && $r(), M.addEventListener("mouseenter", function() {
|
|
@@ -20666,7 +20725,7 @@ function Mg(n, e) {
|
|
|
20666
20725
|
function Q() {
|
|
20667
20726
|
return B()[0] === "hold";
|
|
20668
20727
|
}
|
|
20669
|
-
function
|
|
20728
|
+
function F() {
|
|
20670
20729
|
var T;
|
|
20671
20730
|
return !!((T = C.props.render) != null && T.$$tippy);
|
|
20672
20731
|
}
|
|
@@ -20678,23 +20737,23 @@ function Mg(n, e) {
|
|
|
20678
20737
|
return T ? ag(T) : document;
|
|
20679
20738
|
}
|
|
20680
20739
|
function ke() {
|
|
20681
|
-
return
|
|
20740
|
+
return Jl(M);
|
|
20682
20741
|
}
|
|
20683
20742
|
function le(T) {
|
|
20684
|
-
return C.state.isMounted && !C.state.isVisible || At.isTouch || d && d.type === "focus" ? 0 :
|
|
20743
|
+
return C.state.isMounted && !C.state.isVisible || At.isTouch || d && d.type === "focus" ? 0 : dl(C.props.delay, T ? 0 : 1, at.delay);
|
|
20685
20744
|
}
|
|
20686
20745
|
function pe(T) {
|
|
20687
20746
|
T === void 0 && (T = !1), M.style.pointerEvents = C.props.interactive && !T ? "" : "none", M.style.zIndex = "" + C.props.zIndex;
|
|
20688
20747
|
}
|
|
20689
20748
|
function he(T, Y, te) {
|
|
20690
|
-
if (te === void 0 && (te = !0),
|
|
20749
|
+
if (te === void 0 && (te = !0), $.forEach(function(me) {
|
|
20691
20750
|
me[T] && me[T].apply(me, Y);
|
|
20692
20751
|
}), te) {
|
|
20693
20752
|
var ye;
|
|
20694
20753
|
(ye = C.props)[T].apply(ye, Y);
|
|
20695
20754
|
}
|
|
20696
20755
|
}
|
|
20697
|
-
function
|
|
20756
|
+
function Me() {
|
|
20698
20757
|
var T = C.props.aria;
|
|
20699
20758
|
if (T.content) {
|
|
20700
20759
|
var Y = "aria-" + T.content, te = M.id, ye = ur(C.props.triggerTarget || n);
|
|
@@ -20764,11 +20823,11 @@ function Mg(n, e) {
|
|
|
20764
20823
|
function se(T, Y) {
|
|
20765
20824
|
var te = ke().box;
|
|
20766
20825
|
function ye(me) {
|
|
20767
|
-
me.target === te && (
|
|
20826
|
+
me.target === te && (fl(te, "remove", ye), Y());
|
|
20768
20827
|
}
|
|
20769
20828
|
if (T === 0)
|
|
20770
20829
|
return Y();
|
|
20771
|
-
|
|
20830
|
+
fl(te, "remove", c), fl(te, "add", ye), c = ye;
|
|
20772
20831
|
}
|
|
20773
20832
|
function Ce(T, Y, te) {
|
|
20774
20833
|
te === void 0 && (te = !1);
|
|
@@ -20849,7 +20908,7 @@ function Mg(n, e) {
|
|
|
20849
20908
|
}
|
|
20850
20909
|
function Ii() {
|
|
20851
20910
|
Bi();
|
|
20852
|
-
var T = C.props, Y = T.popperOptions, te = T.placement, ye = T.offset, me = T.getReferenceClientRect, We = T.moveTransition, pt =
|
|
20911
|
+
var T = C.props, Y = T.popperOptions, te = T.placement, ye = T.offset, me = T.getReferenceClientRect, We = T.moveTransition, pt = F() ? Jl(M).arrow : null, tr = me ? {
|
|
20853
20912
|
getBoundingClientRect: me,
|
|
20854
20913
|
contextElement: me.contextElement || j()
|
|
20855
20914
|
} : n, e1 = {
|
|
@@ -20859,10 +20918,10 @@ function Mg(n, e) {
|
|
|
20859
20918
|
requires: ["computeStyles"],
|
|
20860
20919
|
fn: function(Wi) {
|
|
20861
20920
|
var nr = Wi.state;
|
|
20862
|
-
if (
|
|
20863
|
-
var np = ke(),
|
|
20921
|
+
if (F()) {
|
|
20922
|
+
var np = ke(), Rs = np.box;
|
|
20864
20923
|
["placement", "reference-hidden", "escaped"].forEach(function(Ui) {
|
|
20865
|
-
Ui === "placement" ?
|
|
20924
|
+
Ui === "placement" ? Rs.setAttribute("data-placement", nr.placement) : nr.attributes.popper["data-popper-" + Ui] ? Rs.setAttribute("data-" + Ui, "") : Rs.removeAttribute("data-" + Ui);
|
|
20866
20925
|
}), nr.attributes.popper = {};
|
|
20867
20926
|
}
|
|
20868
20927
|
}
|
|
@@ -20892,7 +20951,7 @@ function Mg(n, e) {
|
|
|
20892
20951
|
adaptive: !We
|
|
20893
20952
|
}
|
|
20894
20953
|
}, e1];
|
|
20895
|
-
|
|
20954
|
+
F() && pt && An.push({
|
|
20896
20955
|
name: "arrow",
|
|
20897
20956
|
options: {
|
|
20898
20957
|
element: pt,
|
|
@@ -20970,20 +21029,20 @@ function Mg(n, e) {
|
|
|
20970
21029
|
}
|
|
20971
21030
|
function Xf() {
|
|
20972
21031
|
process.env.NODE_ENV !== "production" && Jt(C.state.isDestroyed, or("show"));
|
|
20973
|
-
var T = C.state.isVisible, Y = C.state.isDestroyed, te = !C.state.isEnabled, ye = At.isTouch && !C.props.touch, me =
|
|
21032
|
+
var T = C.state.isVisible, Y = C.state.isDestroyed, te = !C.state.isEnabled, ye = At.isTouch && !C.props.touch, me = dl(C.props.duration, 0, at.duration);
|
|
20974
21033
|
if (!(T || Y || te || ye) && !j().hasAttribute("disabled") && (he("onShow", [C], !1), C.props.onShow(C) !== !1)) {
|
|
20975
|
-
if (C.state.isVisible = !0,
|
|
21034
|
+
if (C.state.isVisible = !0, F() && (M.style.visibility = "visible"), pe(), rt(), C.state.isMounted || (M.style.transition = "none"), F()) {
|
|
20976
21035
|
var We = ke(), pt = We.box, tr = We.content;
|
|
20977
|
-
|
|
21036
|
+
cl([pt, tr], 0);
|
|
20978
21037
|
}
|
|
20979
21038
|
f = function() {
|
|
20980
21039
|
var An;
|
|
20981
21040
|
if (!(!C.state.isVisible || u)) {
|
|
20982
|
-
if (u = !0, M.offsetHeight, M.style.transition = C.props.moveTransition,
|
|
20983
|
-
var
|
|
20984
|
-
|
|
21041
|
+
if (u = !0, M.offsetHeight, M.style.transition = C.props.moveTransition, F() && C.props.animation) {
|
|
21042
|
+
var Ns = ke(), Wi = Ns.box, nr = Ns.content;
|
|
21043
|
+
cl([Wi, nr], me), _u([Wi, nr], "visible");
|
|
20985
21044
|
}
|
|
20986
|
-
|
|
21045
|
+
Me(), Be(), Gu(pl, C), (An = C.popperInstance) == null || An.forceUpdate(), he("onMount", [C]), C.props.animation && F() && I(me, function() {
|
|
20987
21046
|
C.state.isShown = !0, he("onShown", [C]);
|
|
20988
21047
|
});
|
|
20989
21048
|
}
|
|
@@ -20992,13 +21051,13 @@ function Mg(n, e) {
|
|
|
20992
21051
|
}
|
|
20993
21052
|
function _f() {
|
|
20994
21053
|
process.env.NODE_ENV !== "production" && Jt(C.state.isDestroyed, or("hide"));
|
|
20995
|
-
var T = !C.state.isVisible, Y = C.state.isDestroyed, te = !C.state.isEnabled, ye =
|
|
21054
|
+
var T = !C.state.isVisible, Y = C.state.isDestroyed, te = !C.state.isEnabled, ye = dl(C.props.duration, 1, at.duration);
|
|
20996
21055
|
if (!(T || Y || te) && (he("onHide", [C], !1), C.props.onHide(C) !== !1)) {
|
|
20997
|
-
if (C.state.isVisible = !1, C.state.isShown = !1, u = !1, s = !1,
|
|
21056
|
+
if (C.state.isVisible = !1, C.state.isShown = !1, u = !1, s = !1, F() && (M.style.visibility = "hidden"), q(), Lt(), pe(!0), F()) {
|
|
20998
21057
|
var me = ke(), We = me.box, pt = me.content;
|
|
20999
|
-
C.props.animation && (
|
|
21058
|
+
C.props.animation && (cl([We, pt], ye), _u([We, pt], "hidden"));
|
|
21000
21059
|
}
|
|
21001
|
-
|
|
21060
|
+
Me(), Be(), C.props.animation ? F() && En(ye, C.unmount) : C.unmount();
|
|
21002
21061
|
}
|
|
21003
21062
|
}
|
|
21004
21063
|
function Qf(T) {
|
|
@@ -21007,7 +21066,7 @@ function Mg(n, e) {
|
|
|
21007
21066
|
function ep() {
|
|
21008
21067
|
process.env.NODE_ENV !== "production" && Jt(C.state.isDestroyed, or("unmount")), C.state.isVisible && C.hide(), C.state.isMounted && (Bi(), nn().forEach(function(T) {
|
|
21009
21068
|
T._tippy.unmount();
|
|
21010
|
-
}), M.parentNode && M.parentNode.removeChild(M),
|
|
21069
|
+
}), M.parentNode && M.parentNode.removeChild(M), pl = pl.filter(function(T) {
|
|
21011
21070
|
return T !== C;
|
|
21012
21071
|
}), C.state.isMounted = !1, he("onHidden", [C]));
|
|
21013
21072
|
}
|
|
@@ -21275,7 +21334,7 @@ Je.create({
|
|
|
21275
21334
|
] : [];
|
|
21276
21335
|
}
|
|
21277
21336
|
});
|
|
21278
|
-
|
|
21337
|
+
Z({
|
|
21279
21338
|
name: "BubbleMenu",
|
|
21280
21339
|
props: {
|
|
21281
21340
|
pluginKey: {
|
|
@@ -21301,7 +21360,7 @@ F({
|
|
|
21301
21360
|
},
|
|
21302
21361
|
setup(n, { slots: e }) {
|
|
21303
21362
|
const t = V(null);
|
|
21304
|
-
return
|
|
21363
|
+
return He(() => {
|
|
21305
21364
|
const { updateDelay: r, editor: i, pluginKey: o, shouldShow: s, tippyOptions: l } = n;
|
|
21306
21365
|
i.registerPlugin(qf({
|
|
21307
21366
|
updateDelay: r,
|
|
@@ -21361,7 +21420,7 @@ class Hg extends U6 {
|
|
|
21361
21420
|
return this.reactiveState && t && (this.reactiveState.value = t), t;
|
|
21362
21421
|
}
|
|
21363
21422
|
}
|
|
21364
|
-
const Tg =
|
|
21423
|
+
const Tg = Z({
|
|
21365
21424
|
name: "EditorContent",
|
|
21366
21425
|
props: {
|
|
21367
21426
|
editor: {
|
|
@@ -21400,7 +21459,7 @@ const Tg = F({
|
|
|
21400
21459
|
});
|
|
21401
21460
|
}
|
|
21402
21461
|
});
|
|
21403
|
-
|
|
21462
|
+
Z({
|
|
21404
21463
|
name: "FloatingMenu",
|
|
21405
21464
|
props: {
|
|
21406
21465
|
pluginKey: {
|
|
@@ -21424,7 +21483,7 @@ F({
|
|
|
21424
21483
|
},
|
|
21425
21484
|
setup(n, { slots: e }) {
|
|
21426
21485
|
const t = V(null);
|
|
21427
|
-
return
|
|
21486
|
+
return He(() => {
|
|
21428
21487
|
const { pluginKey: r, editor: i, tippyOptions: o, shouldShow: s } = n;
|
|
21429
21488
|
i.registerPlugin(Yf({
|
|
21430
21489
|
pluginKey: r,
|
|
@@ -21442,7 +21501,7 @@ F({
|
|
|
21442
21501
|
};
|
|
21443
21502
|
}
|
|
21444
21503
|
});
|
|
21445
|
-
|
|
21504
|
+
Z({
|
|
21446
21505
|
name: "NodeViewContent",
|
|
21447
21506
|
props: {
|
|
21448
21507
|
as: {
|
|
@@ -21459,7 +21518,7 @@ F({
|
|
|
21459
21518
|
});
|
|
21460
21519
|
}
|
|
21461
21520
|
});
|
|
21462
|
-
|
|
21521
|
+
Z({
|
|
21463
21522
|
name: "NodeViewWrapper",
|
|
21464
21523
|
props: {
|
|
21465
21524
|
as: {
|
|
@@ -21484,7 +21543,7 @@ F({
|
|
|
21484
21543
|
});
|
|
21485
21544
|
const Eg = (n = {}) => {
|
|
21486
21545
|
const e = ap();
|
|
21487
|
-
return
|
|
21546
|
+
return He(() => {
|
|
21488
21547
|
e.value = new Hg(n);
|
|
21489
21548
|
}), Ft(() => {
|
|
21490
21549
|
var t, r, i;
|
|
@@ -21494,7 +21553,7 @@ const Eg = (n = {}) => {
|
|
|
21494
21553
|
}, Vg = {
|
|
21495
21554
|
key: 1,
|
|
21496
21555
|
class: "text-xs leading-none"
|
|
21497
|
-
}, it = /* @__PURE__ */
|
|
21556
|
+
}, it = /* @__PURE__ */ Z({
|
|
21498
21557
|
__name: "FormattingButton",
|
|
21499
21558
|
props: {
|
|
21500
21559
|
active: { type: Boolean, default: !1 },
|
|
@@ -21507,12 +21566,12 @@ const Eg = (n = {}) => {
|
|
|
21507
21566
|
emits: ["click"],
|
|
21508
21567
|
setup(n, { emit: e }) {
|
|
21509
21568
|
const t = e;
|
|
21510
|
-
return (r, i) => (g(), O(k(
|
|
21569
|
+
return (r, i) => (g(), O(k(vs), {
|
|
21511
21570
|
text: r.tooltip,
|
|
21512
21571
|
delay: 200
|
|
21513
21572
|
}, {
|
|
21514
|
-
default:
|
|
21515
|
-
R(k(
|
|
21573
|
+
default: P(() => [
|
|
21574
|
+
R(k(Le), {
|
|
21516
21575
|
tag: "button",
|
|
21517
21576
|
inline: "",
|
|
21518
21577
|
justify: "center",
|
|
@@ -21527,8 +21586,8 @@ const Eg = (n = {}) => {
|
|
|
21527
21586
|
}]),
|
|
21528
21587
|
onClick: i[0] || (i[0] = re((o) => !r.disabled && t("click"), ["stop", "prevent"]))
|
|
21529
21588
|
}, {
|
|
21530
|
-
default:
|
|
21531
|
-
r.icon ? (g(), O(k(
|
|
21589
|
+
default: P(() => [
|
|
21590
|
+
r.icon ? (g(), O(k(xe), {
|
|
21532
21591
|
key: 0,
|
|
21533
21592
|
name: r.icon
|
|
21534
21593
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -21550,7 +21609,7 @@ function Ng(n, e) {
|
|
|
21550
21609
|
])
|
|
21551
21610
|
]);
|
|
21552
21611
|
}
|
|
21553
|
-
const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }, Pg = { class: "space-y-1" }, $g = /* @__PURE__ */
|
|
21612
|
+
const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }, Pg = { class: "space-y-1" }, $g = /* @__PURE__ */ Z({
|
|
21554
21613
|
__name: "InsertLinkDialog",
|
|
21555
21614
|
props: {
|
|
21556
21615
|
editor: {}
|
|
@@ -21570,7 +21629,7 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21570
21629
|
o.value = f.doc.textBetween(p, h, "");
|
|
21571
21630
|
}
|
|
21572
21631
|
};
|
|
21573
|
-
Er(() => l()),
|
|
21632
|
+
Er(() => l()), He(() => s.value.focus());
|
|
21574
21633
|
const a = (c) => i.value = c, u = (c) => o.value = c, d = () => {
|
|
21575
21634
|
if (i.value && !i.value.includes("http") && (i.value = `https://${i.value}`), i.value) {
|
|
21576
21635
|
t.editor.chain().focus().extendMarkRange("link").setLink({ href: i.value }).run();
|
|
@@ -21579,7 +21638,7 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21579
21638
|
}
|
|
21580
21639
|
};
|
|
21581
21640
|
return (c, f) => (g(), O(Jf, null, {
|
|
21582
|
-
default:
|
|
21641
|
+
default: P(() => [
|
|
21583
21642
|
f[3] || (f[3] = w("header", null, "Insert link", -1)),
|
|
21584
21643
|
w("section", Rg, [
|
|
21585
21644
|
f[1] || (f[1] = w("div", { class: "text-xs text-secondary" }, " Text to display ", -1)),
|
|
@@ -21599,7 +21658,7 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21599
21658
|
onChange: a
|
|
21600
21659
|
}, null, 8, ["value"])
|
|
21601
21660
|
]),
|
|
21602
|
-
R(k(
|
|
21661
|
+
R(k(fs), {
|
|
21603
21662
|
"confirm-label": "Insert",
|
|
21604
21663
|
onConfirm: d,
|
|
21605
21664
|
onCancel: f[0] || (f[0] = (p) => r("cancel"))
|
|
@@ -21608,19 +21667,19 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21608
21667
|
_: 1
|
|
21609
21668
|
}));
|
|
21610
21669
|
}
|
|
21611
|
-
}), Ig = { class: "space-y-1" }, Bg = { class: "flex flex-1 justify-end" }, Zg = /* @__PURE__ */
|
|
21670
|
+
}), Ig = { class: "space-y-1" }, Bg = { class: "flex flex-1 justify-end" }, Zg = /* @__PURE__ */ Z({
|
|
21612
21671
|
__name: "InsertTextDialog",
|
|
21613
21672
|
emits: ["cancel", "insert"],
|
|
21614
21673
|
setup(n, { emit: e }) {
|
|
21615
21674
|
const t = e, r = V(null), i = V();
|
|
21616
|
-
|
|
21675
|
+
He(() => i.value.focus());
|
|
21617
21676
|
const o = () => {
|
|
21618
21677
|
t("cancel"), r.value = null;
|
|
21619
21678
|
}, s = (a) => r.value = a, l = () => {
|
|
21620
21679
|
t("insert", r.value), r.value = null;
|
|
21621
21680
|
};
|
|
21622
21681
|
return (a, u) => (g(), O(Jf, null, {
|
|
21623
|
-
default:
|
|
21682
|
+
default: P(() => [
|
|
21624
21683
|
u[0] || (u[0] = w("header", null, "Insert text", -1)),
|
|
21625
21684
|
w("section", Ig, [
|
|
21626
21685
|
R(k(mo), {
|
|
@@ -21632,7 +21691,7 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21632
21691
|
}, null, 8, ["value"])
|
|
21633
21692
|
]),
|
|
21634
21693
|
w("div", Bg, [
|
|
21635
|
-
R(k(
|
|
21694
|
+
R(k(fs), {
|
|
21636
21695
|
"confirm-label": "Insert",
|
|
21637
21696
|
onConfirm: l,
|
|
21638
21697
|
onCancel: o
|
|
@@ -21645,7 +21704,7 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21645
21704
|
}), Fg = { key: 1 }, zg = {
|
|
21646
21705
|
key: 0,
|
|
21647
21706
|
class: "pr-1"
|
|
21648
|
-
},
|
|
21707
|
+
}, Jy = /* @__PURE__ */ Z({
|
|
21649
21708
|
__name: "TextEditor",
|
|
21650
21709
|
props: {
|
|
21651
21710
|
autoHideMenu: { type: Boolean, default: !1 },
|
|
@@ -21695,7 +21754,7 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21695
21754
|
onCreate: () => {
|
|
21696
21755
|
u.value && c([u.value]);
|
|
21697
21756
|
},
|
|
21698
|
-
onUpdate: ({ editor:
|
|
21757
|
+
onUpdate: ({ editor: F }) => i("change", F.getHTML()),
|
|
21699
21758
|
onFocus: () => {
|
|
21700
21759
|
o.value = s.value = !0, i("focus");
|
|
21701
21760
|
},
|
|
@@ -21704,64 +21763,64 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21704
21763
|
}
|
|
21705
21764
|
});
|
|
21706
21765
|
Ft(() => d());
|
|
21707
|
-
const p = ne(() => r.showMenu !== void 0 ? r.showMenu : s.value || !r.autoHideMenu), h = ne(() => s.value ? "bg-1 border-b border-default opacity-100" : "bg-2 border-b border-subtle opacity-50"), m = ne(() => s.value ? "bg-2 border-t border-default opacity-100" : "bg-2 border-t border-subtle opacity-50"), y = ["start", "end", "all"], b = (
|
|
21766
|
+
const p = ne(() => r.showMenu !== void 0 ? r.showMenu : s.value || !r.autoHideMenu), h = ne(() => s.value ? "bg-1 border-b border-default opacity-100" : "bg-2 border-b border-subtle opacity-50"), m = ne(() => s.value ? "bg-2 border-t border-default opacity-100" : "bg-2 border-t border-subtle opacity-50"), y = ["start", "end", "all"], b = (F) => {
|
|
21708
21767
|
var ee;
|
|
21709
|
-
const j = y.includes(
|
|
21768
|
+
const j = y.includes(F) ? F : "end";
|
|
21710
21769
|
(ee = f.value) == null || ee.commands.focus(j);
|
|
21711
21770
|
}, L = () => {
|
|
21712
|
-
var
|
|
21713
|
-
(
|
|
21714
|
-
}, x = () => a.value = !1, C = () => s.value = !0, H = () => a.value = !1, M = (
|
|
21771
|
+
var F;
|
|
21772
|
+
(F = f.value) == null || F.commands.blur(), s.value = !1;
|
|
21773
|
+
}, x = () => a.value = !1, C = () => s.value = !0, H = () => a.value = !1, M = (F) => {
|
|
21715
21774
|
var j;
|
|
21716
|
-
return (j = f.value) == null ? void 0 : j.commands.insertContent(
|
|
21717
|
-
}, z = (
|
|
21718
|
-
M(
|
|
21719
|
-
},
|
|
21720
|
-
return e({ blur: L, closeInsert: () => l.value = !1, focus: b, setContent: (
|
|
21775
|
+
return (j = f.value) == null ? void 0 : j.commands.insertContent(F);
|
|
21776
|
+
}, z = (F) => {
|
|
21777
|
+
M(F), l.value = !1;
|
|
21778
|
+
}, $ = () => a.value = !0, S = () => l.value = !0;
|
|
21779
|
+
return e({ blur: L, closeInsert: () => l.value = !1, focus: b, setContent: (F) => {
|
|
21721
21780
|
var j;
|
|
21722
|
-
return (j = f.value) == null ? void 0 : j.commands.setContent(
|
|
21723
|
-
} }), (
|
|
21781
|
+
return (j = f.value) == null ? void 0 : j.commands.setContent(F);
|
|
21782
|
+
} }), (F, j) => k(f) ? (g(), v("section", {
|
|
21724
21783
|
key: 0,
|
|
21725
21784
|
ref_key: "editorRef",
|
|
21726
21785
|
ref: u,
|
|
21727
21786
|
class: "relative w-full"
|
|
21728
21787
|
}, [
|
|
21729
|
-
R(k(
|
|
21788
|
+
R(k(Le), {
|
|
21730
21789
|
col: "",
|
|
21731
21790
|
align: "stretch",
|
|
21732
21791
|
class: U(["relative rounded-lg font-normal focus-within:border-default", {
|
|
21733
|
-
border: !
|
|
21734
|
-
"flex-1 min-h-0":
|
|
21792
|
+
border: !F.embedded,
|
|
21793
|
+
"flex-1 min-h-0": F.expandVertically,
|
|
21735
21794
|
"shadow-sm-outline border-action": s.value,
|
|
21736
|
-
"border-transparent": !s.value &&
|
|
21737
|
-
"border-subtle": !s.value && !
|
|
21795
|
+
"border-transparent": !s.value && F.embedded,
|
|
21796
|
+
"border-subtle": !s.value && !F.embedded
|
|
21738
21797
|
}])
|
|
21739
21798
|
}, {
|
|
21740
|
-
default:
|
|
21741
|
-
|
|
21799
|
+
default: P(() => [
|
|
21800
|
+
F.headerLabel || F.headerIcon ? (g(), O(k(Le), {
|
|
21742
21801
|
key: 0,
|
|
21743
21802
|
tag: "header",
|
|
21744
21803
|
class: U(["flex-0 h-10 px-3 gap-2 text-sm text-primary rounded-t-lg overflow-hidden", h.value])
|
|
21745
21804
|
}, {
|
|
21746
|
-
default:
|
|
21747
|
-
|
|
21805
|
+
default: P(() => [
|
|
21806
|
+
F.headerIcon ? (g(), O(k(xe), {
|
|
21748
21807
|
key: 0,
|
|
21749
|
-
name:
|
|
21808
|
+
name: F.headerIcon
|
|
21750
21809
|
}, null, 8, ["name"])) : A("", !0),
|
|
21751
|
-
|
|
21810
|
+
F.headerLabel ? (g(), v("span", Fg, ge(F.headerLabel), 1)) : A("", !0)
|
|
21752
21811
|
]),
|
|
21753
21812
|
_: 1
|
|
21754
21813
|
}, 8, ["class"])) : A("", !0),
|
|
21755
|
-
R(k(
|
|
21814
|
+
R(k(Le), {
|
|
21756
21815
|
tag: "main",
|
|
21757
21816
|
align: "start",
|
|
21758
21817
|
fullwidth: ""
|
|
21759
21818
|
}, {
|
|
21760
|
-
default:
|
|
21819
|
+
default: P(() => [
|
|
21761
21820
|
R(k(Tg), {
|
|
21762
21821
|
class: U(["flex-1 overflow-y-auto rounded-t-lg focus:outline-hidden", {
|
|
21763
|
-
[
|
|
21764
|
-
[
|
|
21822
|
+
[F.editorContentClasses]: !s.value,
|
|
21823
|
+
[F.editorContentFocusClasses]: s.value
|
|
21765
21824
|
}]),
|
|
21766
21825
|
editor: k(f)
|
|
21767
21826
|
}, null, 8, ["class", "editor"])
|
|
@@ -21772,10 +21831,10 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21772
21831
|
key: 1,
|
|
21773
21832
|
class: U(["flex-0 min-h-0 p-1 rounded-b-lg overflow-hidden", m.value])
|
|
21774
21833
|
}, [
|
|
21775
|
-
R(k(
|
|
21776
|
-
default:
|
|
21777
|
-
R(k(
|
|
21778
|
-
default:
|
|
21834
|
+
R(k(Le), { justify: "between" }, {
|
|
21835
|
+
default: P(() => [
|
|
21836
|
+
R(k(Le), { class: "gap-0.5" }, {
|
|
21837
|
+
default: P(() => [
|
|
21779
21838
|
k(Eu) ? (g(), v(E, { key: 0 }, [
|
|
21780
21839
|
R(it, {
|
|
21781
21840
|
icon: "undo",
|
|
@@ -21792,7 +21851,7 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21792
21851
|
})
|
|
21793
21852
|
})
|
|
21794
21853
|
], 64)) : A("", !0),
|
|
21795
|
-
|
|
21854
|
+
F.emphasis ? (g(), v(E, { key: 1 }, [
|
|
21796
21855
|
R(it, {
|
|
21797
21856
|
icon: "bold",
|
|
21798
21857
|
tooltip: "Bold",
|
|
@@ -21842,10 +21901,10 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21842
21901
|
tooltip: "Add link",
|
|
21843
21902
|
active: k(f).isActive("link"),
|
|
21844
21903
|
onClick: j[7] || (j[7] = (ee) => {
|
|
21845
|
-
|
|
21904
|
+
$(), C();
|
|
21846
21905
|
})
|
|
21847
21906
|
}, null, 8, ["active"])) : A("", !0),
|
|
21848
|
-
|
|
21907
|
+
F.listStyles ? (g(), v(E, { key: 5 }, [
|
|
21849
21908
|
R(it, {
|
|
21850
21909
|
icon: "bullet-list",
|
|
21851
21910
|
tooltip: "Bullet list",
|
|
@@ -21879,11 +21938,11 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21879
21938
|
})
|
|
21880
21939
|
}, null, 8, ["disabled"])
|
|
21881
21940
|
], 64)) : A("", !0),
|
|
21882
|
-
|
|
21941
|
+
F.insert ? (g(), O(it, {
|
|
21883
21942
|
key: 6,
|
|
21884
21943
|
highlight: "",
|
|
21885
|
-
icon:
|
|
21886
|
-
tooltip:
|
|
21944
|
+
icon: F.insertIcon,
|
|
21945
|
+
tooltip: F.insertTooltip,
|
|
21887
21946
|
active: k(f).isActive("insert"),
|
|
21888
21947
|
onClick: j[12] || (j[12] = (ee) => {
|
|
21889
21948
|
S(), C();
|
|
@@ -21892,8 +21951,8 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21892
21951
|
]),
|
|
21893
21952
|
_: 1
|
|
21894
21953
|
}),
|
|
21895
|
-
|
|
21896
|
-
J(
|
|
21954
|
+
F.$slots.menuRight ? (g(), v("div", zg, [
|
|
21955
|
+
J(F.$slots, "menuRight")
|
|
21897
21956
|
])) : A("", !0)
|
|
21898
21957
|
]),
|
|
21899
21958
|
_: 3
|
|
@@ -21906,7 +21965,7 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21906
21965
|
onCancel: x
|
|
21907
21966
|
}, null, 8, ["editor"])) : A("", !0),
|
|
21908
21967
|
l.value ? (g(), v(E, { key: 3 }, [
|
|
21909
|
-
|
|
21968
|
+
F.$slots.insert ? J(F.$slots, "insert", { key: 0 }) : (g(), O(Zg, {
|
|
21910
21969
|
key: 1,
|
|
21911
21970
|
onInsert: z,
|
|
21912
21971
|
onCancel: j[13] || (j[13] = (ee) => l.value = !1)
|
|
@@ -21920,7 +21979,7 @@ const Jf = /* @__PURE__ */ Mn(Og, [["render", Ng]]), Rg = { class: "space-y-1" }
|
|
|
21920
21979
|
}), jg = { class: "relative z-0" }, Wg = {
|
|
21921
21980
|
key: 1,
|
|
21922
21981
|
class: "relative z-10"
|
|
21923
|
-
}, Gf = /* @__PURE__ */
|
|
21982
|
+
}, Gf = /* @__PURE__ */ Z({
|
|
21924
21983
|
__name: "TextHighlight",
|
|
21925
21984
|
props: {
|
|
21926
21985
|
value: {},
|
|
@@ -21997,7 +22056,7 @@ function qg(n, e) {
|
|
|
21997
22056
|
J(n.$slots, "default")
|
|
21998
22057
|
]);
|
|
21999
22058
|
}
|
|
22000
|
-
const
|
|
22059
|
+
const Gy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { key: 1 }, Xy = /* @__PURE__ */ Z({
|
|
22001
22060
|
__name: "ToggleButton",
|
|
22002
22061
|
props: {
|
|
22003
22062
|
active: { type: Boolean },
|
|
@@ -22034,14 +22093,14 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22034
22093
|
}), l = ne(() => r.disabled ? { background: "hsl(0 0% 90%)" } : {}), a = (d) => {
|
|
22035
22094
|
r.stopPropagation && d.stopPropagation(), r.disabled || i("click");
|
|
22036
22095
|
};
|
|
22037
|
-
return e({ focus: () => o.value.focus() }), (d, c) => d.tooltip ? (g(), O(k(
|
|
22096
|
+
return e({ focus: () => o.value.focus() }), (d, c) => d.tooltip ? (g(), O(k(vs), {
|
|
22038
22097
|
key: 0,
|
|
22039
22098
|
hover: "",
|
|
22040
22099
|
text: d.tooltip,
|
|
22041
22100
|
delay: d.tooltipDelay,
|
|
22042
22101
|
placement: d.tooltipPlacement
|
|
22043
22102
|
}, {
|
|
22044
|
-
default:
|
|
22103
|
+
default: P(() => [
|
|
22045
22104
|
w("button", {
|
|
22046
22105
|
ref_key: "buttonRef",
|
|
22047
22106
|
ref: o,
|
|
@@ -22051,7 +22110,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22051
22110
|
onClick: a,
|
|
22052
22111
|
onBlur: c[0] || (c[0] = (f) => i("blur"))
|
|
22053
22112
|
}, [
|
|
22054
|
-
d.icon ? (g(), O(k(
|
|
22113
|
+
d.icon ? (g(), O(k(xe), {
|
|
22055
22114
|
key: 0,
|
|
22056
22115
|
name: d.icon
|
|
22057
22116
|
}, null, 8, ["name"])) : A("", !0),
|
|
@@ -22061,9 +22120,9 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22061
22120
|
_: 1
|
|
22062
22121
|
}, 8, ["text", "delay", "placement"])) : A("", !0);
|
|
22063
22122
|
}
|
|
22064
|
-
}),
|
|
22123
|
+
}), _y = (n) => {
|
|
22065
22124
|
n.forEach((e) => e.open = !0);
|
|
22066
|
-
},
|
|
22125
|
+
}, Qy = (n, e, t) => {
|
|
22067
22126
|
let r = n;
|
|
22068
22127
|
for (const i of e.map((o) => o.id)) {
|
|
22069
22128
|
if (!r || r.id !== i) {
|
|
@@ -22073,7 +22132,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22073
22132
|
if (!r) return;
|
|
22074
22133
|
}
|
|
22075
22134
|
return r[t];
|
|
22076
|
-
},
|
|
22135
|
+
}, ev = (n, e, t, r) => {
|
|
22077
22136
|
let i = n;
|
|
22078
22137
|
for (const o of e.map((s) => s.id)) {
|
|
22079
22138
|
if (!i || i.id !== o) {
|
|
@@ -22083,7 +22142,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22083
22142
|
if (!i) return !1;
|
|
22084
22143
|
}
|
|
22085
22144
|
return i[t] = r, !0;
|
|
22086
|
-
},
|
|
22145
|
+
}, tv = (n, e, t, r) => {
|
|
22087
22146
|
let i = n;
|
|
22088
22147
|
for (const o of e.map((s) => s.id)) {
|
|
22089
22148
|
if (!i || i.id !== o) {
|
|
@@ -22105,7 +22164,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22105
22164
|
for (const t of n.children)
|
|
22106
22165
|
e.push(...Xg(t));
|
|
22107
22166
|
return e;
|
|
22108
|
-
},
|
|
22167
|
+
}, nv = ({
|
|
22109
22168
|
items: n,
|
|
22110
22169
|
itemIdField: e,
|
|
22111
22170
|
parentIdField: t,
|
|
@@ -22148,7 +22207,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22148
22207
|
);
|
|
22149
22208
|
}
|
|
22150
22209
|
return u;
|
|
22151
|
-
}, _g = { class: "flex items-center w-full h-6 pl-2 px-1 border border-default rounded-sm" }, Qg = ["value", "onKeydown"], ey = { class: "flex items-center gap-1" }, ty = /* @__PURE__ */
|
|
22210
|
+
}, _g = { class: "flex items-center w-full h-6 pl-2 px-1 border border-default rounded-sm" }, Qg = ["value", "onKeydown"], ey = { class: "flex items-center gap-1" }, ty = /* @__PURE__ */ Z({
|
|
22152
22211
|
__name: "InputNode",
|
|
22153
22212
|
props: {
|
|
22154
22213
|
value: {},
|
|
@@ -22158,7 +22217,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22158
22217
|
emits: ["cancel", "change", "save"],
|
|
22159
22218
|
setup(n, { emit: e }) {
|
|
22160
22219
|
const t = e, r = V(), i = V(), { disableClickOutside: o, enableClickOutside: s } = _l(() => t("cancel"));
|
|
22161
|
-
|
|
22220
|
+
He(() => {
|
|
22162
22221
|
var d;
|
|
22163
22222
|
s([i.value.$el]), (d = r.value) == null || d.focus();
|
|
22164
22223
|
}), Ft(() => o());
|
|
@@ -22169,13 +22228,13 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22169
22228
|
}, u = (d) => {
|
|
22170
22229
|
d.stopImmediatePropagation(), d.stopPropagation(), d.preventDefault(), t("cancel");
|
|
22171
22230
|
};
|
|
22172
|
-
return (d, c) => (g(), O(k(
|
|
22231
|
+
return (d, c) => (g(), O(k(Le), {
|
|
22173
22232
|
ref_key: "container",
|
|
22174
22233
|
ref: i,
|
|
22175
22234
|
class: "h-8 gap-1 pr-1",
|
|
22176
22235
|
style: Ee({ paddingLeft: `${d.indentation}px` })
|
|
22177
22236
|
}, {
|
|
22178
|
-
default:
|
|
22237
|
+
default: P(() => [
|
|
22179
22238
|
c[4] || (c[4] = w("div", { class: "w-4 h-4" }, null, -1)),
|
|
22180
22239
|
w("section", _g, [
|
|
22181
22240
|
w("input", {
|
|
@@ -22221,7 +22280,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22221
22280
|
}, ry = { class: "text-xs truncate" }, iy = {
|
|
22222
22281
|
key: 0,
|
|
22223
22282
|
class: "relative"
|
|
22224
|
-
},
|
|
22283
|
+
}, rv = /* @__PURE__ */ Z({
|
|
22225
22284
|
__name: "TreeList",
|
|
22226
22285
|
props: {
|
|
22227
22286
|
indentationAmount: { default: 20 },
|
|
@@ -22255,7 +22314,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22255
22314
|
var L;
|
|
22256
22315
|
const b = pp("TreeList", !0);
|
|
22257
22316
|
return g(), v(E, null, [
|
|
22258
|
-
R(k(
|
|
22317
|
+
R(k(Le), {
|
|
22259
22318
|
tag: "button",
|
|
22260
22319
|
justify: "between",
|
|
22261
22320
|
class: U(["w-full h-8 pr-1 gap-0 border-b border-default cursor-pointer", {
|
|
@@ -22281,9 +22340,9 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22281
22340
|
y[9] || (y[9] = ve(re((x) => u("down"), ["stop", "prevent"]), ["down"]))
|
|
22282
22341
|
]
|
|
22283
22342
|
}, {
|
|
22284
|
-
default:
|
|
22285
|
-
R(k(
|
|
22286
|
-
default:
|
|
22343
|
+
default: P(() => [
|
|
22344
|
+
R(k(Le), { class: "flex-1 min-w-0 pl-1 gap-1" }, {
|
|
22345
|
+
default: P(() => {
|
|
22287
22346
|
var x;
|
|
22288
22347
|
return [
|
|
22289
22348
|
(x = m.node.children) != null && x.length || i.value ? (g(), v("button", {
|
|
@@ -22291,7 +22350,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22291
22350
|
class: "w-4 h-4 flex items-center justify-center rounded cursor-pointer",
|
|
22292
22351
|
onClick: y[0] || (y[0] = re((C) => t("toggle", { path: [m.node], targetNode: m.node }), ["stop", "prevent"]))
|
|
22293
22352
|
}, [
|
|
22294
|
-
R(k(
|
|
22353
|
+
R(k(xe), {
|
|
22295
22354
|
name: m.node.open ? "chevron-down-small" : "chevron-right-small"
|
|
22296
22355
|
}, null, 8, ["name"])
|
|
22297
22356
|
])) : (g(), v("div", ny)),
|
|
@@ -22300,17 +22359,17 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22300
22359
|
}),
|
|
22301
22360
|
_: 1
|
|
22302
22361
|
}),
|
|
22303
|
-
m.node.actions.length > 0 ? (g(), O(k(
|
|
22362
|
+
m.node.actions.length > 0 ? (g(), O(k(Le), {
|
|
22304
22363
|
key: 0,
|
|
22305
22364
|
class: "flex-none"
|
|
22306
22365
|
}, {
|
|
22307
|
-
default:
|
|
22366
|
+
default: P(() => [
|
|
22308
22367
|
R(k(Vd), {
|
|
22309
22368
|
options: m.node.actions,
|
|
22310
22369
|
placement: "bottom-end",
|
|
22311
22370
|
onSelect: d
|
|
22312
22371
|
}, {
|
|
22313
|
-
trigger:
|
|
22372
|
+
trigger: P(() => [
|
|
22314
22373
|
R(k(de), {
|
|
22315
22374
|
icon: "options",
|
|
22316
22375
|
small: "",
|
|
@@ -22353,7 +22412,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22353
22412
|
], 64);
|
|
22354
22413
|
};
|
|
22355
22414
|
}
|
|
22356
|
-
}),
|
|
22415
|
+
}), iv = ["fill", "outline", "outlineSubtle", "text", "textSubtle", "destructive"], ov = ["default", "primary", "error"], sv = ["default", "circle"], lv = ["horizontal", "vertical"], oy = ["start", "center", "end", "stretch"], av = [...oy, "between", "around", "evenly"], uv = ["default", "blurred"], dv = ["click", "hover", "focus", "manual"], cv = ["Ok", "Not Ok", "Not Applicable"], fv = [
|
|
22357
22416
|
"admin",
|
|
22358
22417
|
"arrow-deviate",
|
|
22359
22418
|
"arrow-down-plus",
|
|
@@ -22507,7 +22566,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22507
22566
|
"visibility-on",
|
|
22508
22567
|
"warning",
|
|
22509
22568
|
"zoom"
|
|
22510
|
-
], sd = /* @__PURE__ */
|
|
22569
|
+
], sd = /* @__PURE__ */ Z({
|
|
22511
22570
|
__name: "RunningSection",
|
|
22512
22571
|
props: {
|
|
22513
22572
|
border: { type: Boolean, default: !1 },
|
|
@@ -22534,13 +22593,13 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22534
22593
|
class: U(["relative flex-none w-full overflow-hidden transition-height duration-500 ease-in-out", i.value]),
|
|
22535
22594
|
style: Ee(o.value)
|
|
22536
22595
|
}, {
|
|
22537
|
-
default:
|
|
22596
|
+
default: P(() => [
|
|
22538
22597
|
J(s.$slots, "default")
|
|
22539
22598
|
]),
|
|
22540
22599
|
_: 3
|
|
22541
22600
|
}, 8, ["class", "style"]));
|
|
22542
22601
|
}
|
|
22543
|
-
}),
|
|
22602
|
+
}), pv = ["header", "footer"], Qa = /* @__PURE__ */ Z({
|
|
22544
22603
|
__name: "VerticalLayout",
|
|
22545
22604
|
props: {
|
|
22546
22605
|
borders: { type: Boolean, default: !1 },
|
|
@@ -22551,20 +22610,20 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22551
22610
|
},
|
|
22552
22611
|
setup(n) {
|
|
22553
22612
|
const e = n, t = [e.widthClass, e.windowFrame ? "px-8 py-6 bg-light shadow-sm-xl rounded-lg" : ""];
|
|
22554
|
-
return (r, i) => (g(), O(k(
|
|
22613
|
+
return (r, i) => (g(), O(k(Le), {
|
|
22555
22614
|
col: "",
|
|
22556
22615
|
align: "stretch",
|
|
22557
22616
|
justify: "start",
|
|
22558
22617
|
class: U(["relative h-full overflow-x-hidden", t])
|
|
22559
22618
|
}, {
|
|
22560
|
-
default:
|
|
22619
|
+
default: P(() => [
|
|
22561
22620
|
r.$slots.header ? (g(), O(sd, {
|
|
22562
22621
|
key: 0,
|
|
22563
22622
|
type: "header",
|
|
22564
22623
|
border: r.borders,
|
|
22565
22624
|
"height-class": r.headerHeightClass
|
|
22566
22625
|
}, {
|
|
22567
|
-
default:
|
|
22626
|
+
default: P(() => [
|
|
22568
22627
|
J(r.$slots, "header")
|
|
22569
22628
|
]),
|
|
22570
22629
|
_: 3
|
|
@@ -22573,7 +22632,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22573
22632
|
"window-resize": "",
|
|
22574
22633
|
"wrap-class": "h-full"
|
|
22575
22634
|
}, {
|
|
22576
|
-
default:
|
|
22635
|
+
default: P(() => [
|
|
22577
22636
|
J(r.$slots, "main")
|
|
22578
22637
|
]),
|
|
22579
22638
|
_: 3
|
|
@@ -22584,7 +22643,7 @@ const Jy = /* @__PURE__ */ Mn(Ug, [["render", qg]]), Yg = ["disabled"], Jg = { k
|
|
|
22584
22643
|
border: r.borders,
|
|
22585
22644
|
"height-class": r.footerHeightClass
|
|
22586
22645
|
}, {
|
|
22587
|
-
default:
|
|
22646
|
+
default: P(() => [
|
|
22588
22647
|
J(r.$slots, "footer")
|
|
22589
22648
|
]),
|
|
22590
22649
|
_: 3
|
|
@@ -22604,7 +22663,7 @@ export {
|
|
|
22604
22663
|
ih as BCalendarView,
|
|
22605
22664
|
hd as BCheckbox,
|
|
22606
22665
|
vy as BCollapse,
|
|
22607
|
-
|
|
22666
|
+
fs as BConfirmCancel,
|
|
22608
22667
|
Cy as BContentSlider,
|
|
22609
22668
|
by as BDataPoint,
|
|
22610
22669
|
V0 as BDeleteButton,
|
|
@@ -22612,53 +22671,54 @@ export {
|
|
|
22612
22671
|
md as BFadeInUp,
|
|
22613
22672
|
$0 as BFilterChip,
|
|
22614
22673
|
wy as BFirstPaint,
|
|
22615
|
-
|
|
22674
|
+
Le as BFlexbox,
|
|
22616
22675
|
Ly as BHorizontalLayout,
|
|
22617
|
-
|
|
22676
|
+
xe as BIcon,
|
|
22677
|
+
My as BInlineFormWrapper,
|
|
22618
22678
|
mo as BInput,
|
|
22619
|
-
|
|
22679
|
+
xy as BInputNumber,
|
|
22620
22680
|
li as BLoadSpinner,
|
|
22621
|
-
|
|
22622
|
-
|
|
22623
|
-
|
|
22681
|
+
Sy as BModal,
|
|
22682
|
+
Hy as BNavItem,
|
|
22683
|
+
Ty as BNotification,
|
|
22624
22684
|
dd as BNotificationBadge,
|
|
22625
|
-
|
|
22626
|
-
|
|
22627
|
-
|
|
22685
|
+
Ey as BPagination,
|
|
22686
|
+
Vy as BPopCalendar,
|
|
22687
|
+
Oy as BPopConfirm,
|
|
22628
22688
|
Vd as BPopSelect,
|
|
22629
|
-
|
|
22630
|
-
|
|
22689
|
+
Ay as BPopSelectFooterButton,
|
|
22690
|
+
gs as BPopper,
|
|
22631
22691
|
sa as BPopperContent,
|
|
22632
22692
|
sd as BRunningSection,
|
|
22633
22693
|
la as BScreenOverlay,
|
|
22634
|
-
|
|
22694
|
+
Dy as BScrollBottomLoader,
|
|
22635
22695
|
Co as BScrollbar,
|
|
22636
|
-
|
|
22637
|
-
|
|
22638
|
-
|
|
22639
|
-
|
|
22640
|
-
|
|
22641
|
-
|
|
22642
|
-
|
|
22643
|
-
|
|
22644
|
-
|
|
22645
|
-
|
|
22696
|
+
Iy as BSelectList,
|
|
22697
|
+
$y as BSelectListOption,
|
|
22698
|
+
Py as BSelectListOptionGroup,
|
|
22699
|
+
Fy as BSideOver,
|
|
22700
|
+
zy as BStatusSelect,
|
|
22701
|
+
jy as BSwitch,
|
|
22702
|
+
Wy as BTab,
|
|
22703
|
+
Uy as BTag,
|
|
22704
|
+
Ky as BTagInput,
|
|
22705
|
+
Jy as BTextEditor,
|
|
22646
22706
|
Gf as BTextHighlight,
|
|
22647
|
-
|
|
22648
|
-
|
|
22649
|
-
|
|
22650
|
-
|
|
22707
|
+
Gy as BTextViewer,
|
|
22708
|
+
Xy as BToggleButton,
|
|
22709
|
+
vs as BTooltip,
|
|
22710
|
+
rv as BTreeList,
|
|
22651
22711
|
Qa as BVerticalLayout,
|
|
22652
22712
|
aa as BWindowFrame,
|
|
22653
|
-
|
|
22654
|
-
|
|
22655
|
-
|
|
22656
|
-
|
|
22657
|
-
|
|
22658
|
-
|
|
22659
|
-
|
|
22660
|
-
|
|
22661
|
-
|
|
22713
|
+
ov as ButtonType,
|
|
22714
|
+
av as Justifications,
|
|
22715
|
+
lv as Orientation,
|
|
22716
|
+
uv as OverlayType,
|
|
22717
|
+
dv as PopperTrigger,
|
|
22718
|
+
pv as SectionTypes,
|
|
22719
|
+
nv as buildTree,
|
|
22720
|
+
iv as buttonVariants,
|
|
22721
|
+
sv as checkboxTypes,
|
|
22662
22722
|
gd as clamp,
|
|
22663
22723
|
cy as dateDelta,
|
|
22664
22724
|
yy as dateFormat,
|
|
@@ -22669,17 +22729,17 @@ export {
|
|
|
22669
22729
|
_p as dbDate,
|
|
22670
22730
|
Qp as dbDateTime,
|
|
22671
22731
|
Z0 as debounce,
|
|
22672
|
-
|
|
22732
|
+
Ny as egdes,
|
|
22673
22733
|
Gg as flattenTree,
|
|
22674
22734
|
Xg as flattenTreeNodes,
|
|
22675
22735
|
eh as formatDate,
|
|
22676
22736
|
zp as getDecade,
|
|
22677
|
-
|
|
22737
|
+
Qy as getNodeValueByPath,
|
|
22678
22738
|
py as getWeekNumber,
|
|
22679
|
-
|
|
22739
|
+
fv as icons,
|
|
22680
22740
|
oo as loopRange,
|
|
22681
22741
|
Zr as moveDate,
|
|
22682
|
-
|
|
22742
|
+
_y as openPath,
|
|
22683
22743
|
Ue as parseDate,
|
|
22684
22744
|
hy as printDate,
|
|
22685
22745
|
xp as range,
|
|
@@ -22687,17 +22747,17 @@ export {
|
|
|
22687
22747
|
Gp as readableDateTime,
|
|
22688
22748
|
Xp as readableDateTimeWithDay,
|
|
22689
22749
|
Jp as readableDateWithDay,
|
|
22690
|
-
|
|
22750
|
+
Ry as scrollDirections,
|
|
22691
22751
|
yd as scrollIntoView,
|
|
22692
22752
|
F0 as scrollbarWidth,
|
|
22693
|
-
|
|
22694
|
-
|
|
22695
|
-
|
|
22696
|
-
|
|
22697
|
-
|
|
22753
|
+
Zy as selectOptionVariants,
|
|
22754
|
+
tv as setNodeObjectValueByPath,
|
|
22755
|
+
ev as setNodeValueByPath,
|
|
22756
|
+
By as states,
|
|
22757
|
+
cv as statuses,
|
|
22698
22758
|
my as stringifyDate,
|
|
22699
22759
|
gy as stringifyDatetime,
|
|
22700
|
-
|
|
22760
|
+
qy as tagInputEmailValidator,
|
|
22701
22761
|
_l as useClickOutside,
|
|
22702
22762
|
Ql as useEscapeKey,
|
|
22703
22763
|
mh as useMounted,
|