@zenuml/core 3.12.0 → 3.12.1
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/{StylePanel.4c9f8216.js → StylePanel.2a1322ad.js} +132 -132
- package/dist/{close.febc4f04.js → close.03e9ef9d.js} +2 -2
- package/dist/{collapse-expanded.5e6d2504.js → collapse-expanded.1c12cedf.js} +2 -2
- package/dist/{collapse-unexpanded.e68adbbd.js → collapse-unexpanded.d5cb6698.js} +2 -2
- package/dist/{core.4a17c405.js → core.12e2ded5.js} +3 -3
- package/dist/{debug.e378993d.js → debug.4a9b12d1.js} +2 -2
- package/dist/{message-arrow.f7e53605.js → message-arrow.615b55bb.js} +2 -2
- package/dist/{non-selected-cycle.97e39746.js → non-selected-cycle.e21141c2.js} +2 -2
- package/dist/{privacy.b9bd4125.js → privacy.1a6da1ef.js} +2 -2
- package/dist/{selected-cycle.95769c26.js → selected-cycle.43e03ef3.js} +2 -2
- package/dist/{theme.aa90b62f.js → theme.0bceccea.js} +2 -2
- package/dist/{tip.af809911.js → tip.4318da68.js} +2 -2
- package/dist/zenuml.esm.mjs +1 -1
- package/dist/zenuml.js +9 -9
- package/dist/{zoom-in.44ef5f77.js → zoom-in.3bec8109.js} +2 -2
- package/dist/{zoom-out.8f8da9e3.js → zoom-out.cef5a69f.js} +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as L, u as H, r as F, s as Me, w as j, g as nt, d as ot, e as Q, F as Ie, m as ge, t as Ae, f as _e, n as it, p as rt, h as st, i as lt, j as te, U as at, k as
|
|
1
|
+
import { b as L, u as H, r as F, s as Me, w as j, g as nt, d as ot, e as Q, F as Ie, m as ge, t as Ae, f as _e, n as it, p as rt, h as st, i as lt, j as te, U as at, k as Se, l as ct, T as ut, q as ft, v as dt, x as mt, y as pt, P as gt, o as Te, z as ht, A as vt, a as he, c as yt, B as wt, C as xt, D as bt, E as Ct, G as Ot, H as Et } from "./core.12e2ded5.js";
|
|
2
2
|
const ze = ["top", "right", "bottom", "left"], Re = ["start", "end"], Pe = /* @__PURE__ */ ze.reduce((e, t) => e.concat(t, t + "-" + Re[0], t + "-" + Re[1]), []), J = Math.min, Y = Math.max, le = Math.round, se = Math.floor, X = (e) => ({
|
|
3
3
|
x: e,
|
|
4
4
|
y: e
|
|
@@ -7,7 +7,7 @@ const ze = ["top", "right", "bottom", "left"], Re = ["start", "end"], Pe = /* @_
|
|
|
7
7
|
right: "left",
|
|
8
8
|
bottom: "top",
|
|
9
9
|
top: "bottom"
|
|
10
|
-
},
|
|
10
|
+
}, St = {
|
|
11
11
|
start: "end",
|
|
12
12
|
end: "start"
|
|
13
13
|
};
|
|
@@ -41,12 +41,12 @@ function Ve(e, t, n) {
|
|
|
41
41
|
let s = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
42
42
|
return t.reference[r] > t.floating[r] && (s = ce(s)), [s, ce(s)];
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Tt(e) {
|
|
45
45
|
const t = ce(e);
|
|
46
46
|
return [ae(e), t, ae(t)];
|
|
47
47
|
}
|
|
48
48
|
function ae(e) {
|
|
49
|
-
return e.replace(/start|end/g, (t) =>
|
|
49
|
+
return e.replace(/start|end/g, (t) => St[t]);
|
|
50
50
|
}
|
|
51
51
|
function Rt(e, t, n) {
|
|
52
52
|
const i = ["left", "right"], o = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
|
|
@@ -158,15 +158,15 @@ const Lt = async (e, t, n) => {
|
|
|
158
158
|
x: m,
|
|
159
159
|
y: d
|
|
160
160
|
} = Fe(u, i, c), p = i, f = {}, a = 0;
|
|
161
|
-
for (let
|
|
161
|
+
for (let h = 0; h < l.length; h++) {
|
|
162
162
|
const {
|
|
163
|
-
name:
|
|
163
|
+
name: v,
|
|
164
164
|
fn: g
|
|
165
|
-
} = l[
|
|
165
|
+
} = l[h], {
|
|
166
166
|
x,
|
|
167
167
|
y: b,
|
|
168
168
|
data: C,
|
|
169
|
-
reset:
|
|
169
|
+
reset: w
|
|
170
170
|
} = await g({
|
|
171
171
|
x: m,
|
|
172
172
|
y: d,
|
|
@@ -183,19 +183,19 @@ const Lt = async (e, t, n) => {
|
|
|
183
183
|
});
|
|
184
184
|
if (m = x != null ? x : m, d = b != null ? b : d, f = {
|
|
185
185
|
...f,
|
|
186
|
-
[
|
|
187
|
-
...f[
|
|
186
|
+
[v]: {
|
|
187
|
+
...f[v],
|
|
188
188
|
...C
|
|
189
189
|
}
|
|
190
|
-
},
|
|
191
|
-
a++, typeof
|
|
190
|
+
}, w && a <= 50) {
|
|
191
|
+
a++, typeof w == "object" && (w.placement && (p = w.placement), w.rects && (u = w.rects === !0 ? await s.getElementRects({
|
|
192
192
|
reference: e,
|
|
193
193
|
floating: t,
|
|
194
194
|
strategy: o
|
|
195
|
-
}) :
|
|
195
|
+
}) : w.rects), {
|
|
196
196
|
x: m,
|
|
197
197
|
y: d
|
|
198
|
-
} = Fe(u, p, c)),
|
|
198
|
+
} = Fe(u, p, c)), h = -1;
|
|
199
199
|
continue;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -223,8 +223,8 @@ async function ne(e, t) {
|
|
|
223
223
|
elementContext: d = "floating",
|
|
224
224
|
altBoundary: p = !1,
|
|
225
225
|
padding: f = 0
|
|
226
|
-
} = K(t, e), a = We(f),
|
|
227
|
-
element: (n = await (r.isElement == null ? void 0 : r.isElement(
|
|
226
|
+
} = K(t, e), a = We(f), v = l[p ? d === "floating" ? "reference" : "floating" : d], g = ue(await r.getClippingRect({
|
|
227
|
+
element: (n = await (r.isElement == null ? void 0 : r.isElement(v))) == null || n ? v : v.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
|
|
228
228
|
boundary: u,
|
|
229
229
|
rootBoundary: m,
|
|
230
230
|
strategy: c
|
|
@@ -238,16 +238,16 @@ async function ne(e, t) {
|
|
|
238
238
|
} : {
|
|
239
239
|
x: 1,
|
|
240
240
|
y: 1
|
|
241
|
-
},
|
|
241
|
+
}, w = ue(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
242
242
|
rect: x,
|
|
243
243
|
offsetParent: b,
|
|
244
244
|
strategy: c
|
|
245
245
|
}) : x);
|
|
246
246
|
return {
|
|
247
|
-
top: (g.top -
|
|
248
|
-
bottom: (
|
|
249
|
-
left: (g.left -
|
|
250
|
-
right: (
|
|
247
|
+
top: (g.top - w.top + a.top) / C.y,
|
|
248
|
+
bottom: (w.bottom - g.bottom + a.bottom) / C.y,
|
|
249
|
+
left: (g.left - w.left + a.left) / C.x,
|
|
250
|
+
right: (w.right - g.right + a.right) / C.x
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
const Bt = (e) => ({
|
|
@@ -271,10 +271,10 @@ const Bt = (e) => ({
|
|
|
271
271
|
const d = We(m), p = {
|
|
272
272
|
x: n,
|
|
273
273
|
y: i
|
|
274
|
-
}, f = be(o), a = xe(f),
|
|
274
|
+
}, f = be(o), a = xe(f), h = await s.getDimensions(u), v = f === "y", g = v ? "top" : "left", x = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", C = r.reference[a] + r.reference[f] - p[f] - r.floating[a], w = p[f] - r.reference[f], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
275
275
|
let E = O ? O[b] : 0;
|
|
276
276
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(O))) && (E = l.floating[b] || r.floating[a]);
|
|
277
|
-
const A = C / 2 -
|
|
277
|
+
const A = C / 2 - w / 2, R = E / 2 - h[a] / 2 - 1, T = J(d[g], R), S = J(d[x], R), P = T, _ = E - h[a] - S, B = E / 2 - h[a] / 2 + A, N = ye(P, B, _), $ = !c.arrow && M(o) != null && B != N && r.reference[a] / 2 - (B < P ? T : S) - h[a] / 2 < 0, z = $ ? B < P ? B - P : B - _ : 0;
|
|
278
278
|
return {
|
|
279
279
|
[f]: p[f] + z,
|
|
280
280
|
data: {
|
|
@@ -309,41 +309,41 @@ const Dt = function(e) {
|
|
|
309
309
|
allowedPlacements: p = Pe,
|
|
310
310
|
autoAlignment: f = !0,
|
|
311
311
|
...a
|
|
312
|
-
} = K(e, t),
|
|
312
|
+
} = K(e, t), h = d !== void 0 || p === Pe ? kt(d || null, f, p) : p, v = await ne(t, a), g = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, x = h[g];
|
|
313
313
|
if (x == null)
|
|
314
314
|
return {};
|
|
315
315
|
const b = Ve(x, r, await (c.isRTL == null ? void 0 : c.isRTL(u.floating)));
|
|
316
316
|
if (l !== x)
|
|
317
317
|
return {
|
|
318
318
|
reset: {
|
|
319
|
-
placement:
|
|
319
|
+
placement: h[0]
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
|
-
const C = [
|
|
322
|
+
const C = [v[V(x)], v[b[0]], v[b[1]]], w = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
323
323
|
placement: x,
|
|
324
324
|
overflows: C
|
|
325
|
-
}], O =
|
|
325
|
+
}], O = h[g + 1];
|
|
326
326
|
if (O)
|
|
327
327
|
return {
|
|
328
328
|
data: {
|
|
329
329
|
index: g + 1,
|
|
330
|
-
overflows:
|
|
330
|
+
overflows: w
|
|
331
331
|
},
|
|
332
332
|
reset: {
|
|
333
333
|
placement: O
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
|
-
const E =
|
|
337
|
-
const
|
|
338
|
-
return [
|
|
339
|
-
}).sort((
|
|
336
|
+
const E = w.map((T) => {
|
|
337
|
+
const S = M(T.placement);
|
|
338
|
+
return [T.placement, S && m ? T.overflows.slice(0, 2).reduce((P, _) => P + _, 0) : T.overflows[0], T.overflows];
|
|
339
|
+
}).sort((T, S) => T[1] - S[1]), R = ((o = E.filter((T) => T[2].slice(
|
|
340
340
|
0,
|
|
341
|
-
M(
|
|
342
|
-
).every((
|
|
341
|
+
M(T[0]) ? 2 : 3
|
|
342
|
+
).every((S) => S <= 0))[0]) == null ? void 0 : o[0]) || E[0][0];
|
|
343
343
|
return R !== l ? {
|
|
344
344
|
data: {
|
|
345
345
|
index: g + 1,
|
|
346
|
-
overflows:
|
|
346
|
+
overflows: w
|
|
347
347
|
},
|
|
348
348
|
reset: {
|
|
349
349
|
placement: R
|
|
@@ -370,14 +370,14 @@ const Dt = function(e) {
|
|
|
370
370
|
fallbackPlacements: p,
|
|
371
371
|
fallbackStrategy: f = "bestFit",
|
|
372
372
|
fallbackAxisSideDirection: a = "none",
|
|
373
|
-
flipAlignment:
|
|
374
|
-
...
|
|
373
|
+
flipAlignment: h = !0,
|
|
374
|
+
...v
|
|
375
375
|
} = K(e, t);
|
|
376
376
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
377
377
|
return {};
|
|
378
|
-
const g = V(o), x = V(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), C = p || (x || !
|
|
379
|
-
!p && a !== "none" && C.push(...Pt(l,
|
|
380
|
-
const
|
|
378
|
+
const g = V(o), x = V(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), C = p || (x || !h ? [ce(l)] : Tt(l));
|
|
379
|
+
!p && a !== "none" && C.push(...Pt(l, h, a, b));
|
|
380
|
+
const w = [l, ...C], O = await ne(t, v), E = [];
|
|
381
381
|
let A = ((i = r.flip) == null ? void 0 : i.overflows) || [];
|
|
382
382
|
if (m && E.push(O[g]), d) {
|
|
383
383
|
const P = Ve(o, s, b);
|
|
@@ -387,8 +387,8 @@ const Dt = function(e) {
|
|
|
387
387
|
placement: o,
|
|
388
388
|
overflows: E
|
|
389
389
|
}], !E.every((P) => P <= 0)) {
|
|
390
|
-
var R,
|
|
391
|
-
const P = (((R = r.flip) == null ? void 0 : R.index) || 0) + 1, _ =
|
|
390
|
+
var R, T;
|
|
391
|
+
const P = (((R = r.flip) == null ? void 0 : R.index) || 0) + 1, _ = w[P];
|
|
392
392
|
if (_)
|
|
393
393
|
return {
|
|
394
394
|
data: {
|
|
@@ -399,12 +399,12 @@ const Dt = function(e) {
|
|
|
399
399
|
placement: _
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
|
-
let B = (
|
|
402
|
+
let B = (T = A.filter((N) => N.overflows[0] <= 0).sort((N, $) => N.overflows[1] - $.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
403
403
|
if (!B)
|
|
404
404
|
switch (f) {
|
|
405
405
|
case "bestFit": {
|
|
406
|
-
var
|
|
407
|
-
const N = (
|
|
406
|
+
var S;
|
|
407
|
+
const N = (S = A.map(($) => [$.placement, $.overflows.filter((z) => z > 0).reduce((z, tt) => z + tt, 0)]).sort(($, z) => $[1] - z[1])[0]) == null ? void 0 : S[0];
|
|
408
408
|
N && (B = N);
|
|
409
409
|
break;
|
|
410
410
|
}
|
|
@@ -533,11 +533,11 @@ const Mt = function(e) {
|
|
|
533
533
|
mainAxis: r = !0,
|
|
534
534
|
crossAxis: s = !1,
|
|
535
535
|
limiter: l = {
|
|
536
|
-
fn: (
|
|
536
|
+
fn: (v) => {
|
|
537
537
|
let {
|
|
538
538
|
x: g,
|
|
539
539
|
y: x
|
|
540
|
-
} =
|
|
540
|
+
} = v;
|
|
541
541
|
return {
|
|
542
542
|
x: g,
|
|
543
543
|
y: x
|
|
@@ -551,23 +551,23 @@ const Mt = function(e) {
|
|
|
551
551
|
}, m = await ne(t, c), d = fe(V(o)), p = He(d);
|
|
552
552
|
let f = u[p], a = u[d];
|
|
553
553
|
if (r) {
|
|
554
|
-
const
|
|
554
|
+
const v = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = f + m[v], b = f - m[g];
|
|
555
555
|
f = ye(x, f, b);
|
|
556
556
|
}
|
|
557
557
|
if (s) {
|
|
558
|
-
const
|
|
558
|
+
const v = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", x = a + m[v], b = a - m[g];
|
|
559
559
|
a = ye(x, a, b);
|
|
560
560
|
}
|
|
561
|
-
const
|
|
561
|
+
const h = l.fn({
|
|
562
562
|
...t,
|
|
563
563
|
[p]: f,
|
|
564
564
|
[d]: a
|
|
565
565
|
});
|
|
566
566
|
return {
|
|
567
|
-
...
|
|
567
|
+
...h,
|
|
568
568
|
data: {
|
|
569
|
-
x:
|
|
570
|
-
y:
|
|
569
|
+
x: h.x - n,
|
|
570
|
+
y: h.y - i
|
|
571
571
|
}
|
|
572
572
|
};
|
|
573
573
|
}
|
|
@@ -705,8 +705,8 @@ function G(e, t, n, i) {
|
|
|
705
705
|
const p = k(r), f = i && W(i) ? k(i) : i;
|
|
706
706
|
let a = p.frameElement;
|
|
707
707
|
for (; a && i && f !== p; ) {
|
|
708
|
-
const
|
|
709
|
-
c *=
|
|
708
|
+
const h = Z(a), v = a.getBoundingClientRect(), g = D(a), x = v.left + (a.clientLeft + parseFloat(g.paddingLeft)) * h.x, b = v.top + (a.clientTop + parseFloat(g.paddingTop)) * h.y;
|
|
709
|
+
c *= h.x, u *= h.y, m *= h.x, d *= h.y, c += x, u += b, a = k(a).frameElement;
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
return ue({
|
|
@@ -917,13 +917,13 @@ function nn(e, t) {
|
|
|
917
917
|
} = e.getBoundingClientRect();
|
|
918
918
|
if (l || t(), !d || !p)
|
|
919
919
|
return;
|
|
920
|
-
const f = se(m), a = se(o.clientWidth - (u + d)),
|
|
921
|
-
rootMargin: -f + "px " + -a + "px " + -
|
|
920
|
+
const f = se(m), a = se(o.clientWidth - (u + d)), h = se(o.clientHeight - (m + p)), v = se(u), x = {
|
|
921
|
+
rootMargin: -f + "px " + -a + "px " + -h + "px " + -v + "px",
|
|
922
922
|
threshold: Y(0, J(1, c)) || 1
|
|
923
923
|
};
|
|
924
924
|
let b = !0;
|
|
925
|
-
function C(
|
|
926
|
-
const O =
|
|
925
|
+
function C(w) {
|
|
926
|
+
const O = w[0].intersectionRatio;
|
|
927
927
|
if (O !== c) {
|
|
928
928
|
if (!b)
|
|
929
929
|
return s();
|
|
@@ -967,11 +967,11 @@ function on(e, t, n, i) {
|
|
|
967
967
|
f && f.observe(t);
|
|
968
968
|
})), n();
|
|
969
969
|
}), u && !c && f.observe(u), f.observe(t));
|
|
970
|
-
let a,
|
|
971
|
-
c &&
|
|
972
|
-
function
|
|
970
|
+
let a, h = c ? G(e) : null;
|
|
971
|
+
c && v();
|
|
972
|
+
function v() {
|
|
973
973
|
const g = G(e);
|
|
974
|
-
|
|
974
|
+
h && (g.x !== h.x || g.y !== h.y || g.width !== h.width || g.height !== h.height) && n(), h = g, a = requestAnimationFrame(v);
|
|
975
975
|
}
|
|
976
976
|
return n(), () => {
|
|
977
977
|
m.forEach((g) => {
|
|
@@ -1012,27 +1012,27 @@ function sn(e) {
|
|
|
1012
1012
|
function ln(e, t, n) {
|
|
1013
1013
|
n === void 0 && (n = {});
|
|
1014
1014
|
const i = n.whileElementsMounted, o = L(() => {
|
|
1015
|
-
var
|
|
1016
|
-
return (
|
|
1015
|
+
var w;
|
|
1016
|
+
return (w = H(n.open)) != null ? w : !0;
|
|
1017
1017
|
}), r = L(() => H(n.middleware)), s = L(() => {
|
|
1018
|
-
var
|
|
1019
|
-
return (
|
|
1018
|
+
var w;
|
|
1019
|
+
return (w = H(n.placement)) != null ? w : "bottom";
|
|
1020
1020
|
}), l = L(() => {
|
|
1021
|
-
var
|
|
1022
|
-
return (
|
|
1023
|
-
}), c = L(() => we(e.value)), u = L(() => we(t.value)), m = F(null), d = F(null), p = F(l.value), f = F(s.value), a = Me({}),
|
|
1024
|
-
let
|
|
1021
|
+
var w;
|
|
1022
|
+
return (w = H(n.strategy)) != null ? w : "absolute";
|
|
1023
|
+
}), c = L(() => we(e.value)), u = L(() => we(t.value)), m = F(null), d = F(null), p = F(l.value), f = F(s.value), a = Me({}), h = F(!1);
|
|
1024
|
+
let v;
|
|
1025
1025
|
function g() {
|
|
1026
1026
|
c.value == null || u.value == null || rn(c.value, u.value, {
|
|
1027
1027
|
middleware: r.value,
|
|
1028
1028
|
placement: s.value,
|
|
1029
1029
|
strategy: l.value
|
|
1030
|
-
}).then((
|
|
1031
|
-
m.value =
|
|
1030
|
+
}).then((w) => {
|
|
1031
|
+
m.value = w.x, d.value = w.y, p.value = w.strategy, f.value = w.placement, a.value = w.middlewareData, h.value = !0;
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
1034
|
function x() {
|
|
1035
|
-
typeof
|
|
1035
|
+
typeof v == "function" && (v(), v = void 0);
|
|
1036
1036
|
}
|
|
1037
1037
|
function b() {
|
|
1038
1038
|
if (x(), i === void 0) {
|
|
@@ -1040,12 +1040,12 @@ function ln(e, t, n) {
|
|
|
1040
1040
|
return;
|
|
1041
1041
|
}
|
|
1042
1042
|
if (c.value != null && u.value != null) {
|
|
1043
|
-
|
|
1043
|
+
v = i(c.value, u.value, g);
|
|
1044
1044
|
return;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
function C() {
|
|
1048
|
-
o.value || (
|
|
1048
|
+
o.value || (h.value = !1);
|
|
1049
1049
|
}
|
|
1050
1050
|
return j([r, s, l], g, {
|
|
1051
1051
|
flush: "sync"
|
|
@@ -1059,7 +1059,7 @@ function ln(e, t, n) {
|
|
|
1059
1059
|
strategy: Q(p),
|
|
1060
1060
|
placement: Q(f),
|
|
1061
1061
|
middlewareData: Q(a),
|
|
1062
|
-
isPositioned: Q(
|
|
1062
|
+
isPositioned: Q(h),
|
|
1063
1063
|
update: g
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
@@ -1159,7 +1159,7 @@ function gn(e, t, n) {
|
|
|
1159
1159
|
i();
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
|
-
const
|
|
1162
|
+
const hn = (e) => {
|
|
1163
1163
|
switch (e) {
|
|
1164
1164
|
case "top":
|
|
1165
1165
|
return "origin-bottom";
|
|
@@ -1185,14 +1185,14 @@ const vn = (e) => {
|
|
|
1185
1185
|
return "";
|
|
1186
1186
|
}
|
|
1187
1187
|
};
|
|
1188
|
-
function
|
|
1188
|
+
function vn(e, t) {
|
|
1189
1189
|
const n = L(() => {
|
|
1190
1190
|
if (typeof e.originClass == "function")
|
|
1191
1191
|
return e.originClass(t.value);
|
|
1192
1192
|
if (typeof e.originClass == "string")
|
|
1193
1193
|
return e.originClass;
|
|
1194
1194
|
if (e.tailwindcssOriginClass)
|
|
1195
|
-
return
|
|
1195
|
+
return hn(t.value);
|
|
1196
1196
|
}), i = L(
|
|
1197
1197
|
() => e.enter || n.value ? `${e.enter || ""} ${n.value || ""}` : void 0
|
|
1198
1198
|
), o = L(
|
|
@@ -1243,7 +1243,7 @@ function yn(e, t = 0) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
});
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function ve(e, t, n) {
|
|
1247
1247
|
pe.isServer || lt((i) => {
|
|
1248
1248
|
document.addEventListener(e, t, n), i(() => document.removeEventListener(e, t, n));
|
|
1249
1249
|
});
|
|
@@ -1268,16 +1268,16 @@ function wn(e, t, n = L(() => !0)) {
|
|
|
1268
1268
|
return !yn(l, et.Loose) && l.tabIndex !== -1 && r.preventDefault(), t(r, l);
|
|
1269
1269
|
}
|
|
1270
1270
|
const o = F(null);
|
|
1271
|
-
|
|
1271
|
+
ve("mousedown", (r) => {
|
|
1272
1272
|
var s, l;
|
|
1273
1273
|
n.value && (o.value = ((l = (s = r.composedPath) == null ? void 0 : s.call(r)) == null ? void 0 : l[0]) || r.target);
|
|
1274
|
-
}, !0),
|
|
1274
|
+
}, !0), ve(
|
|
1275
1275
|
"click",
|
|
1276
1276
|
(r) => {
|
|
1277
1277
|
o.value && (i(r, () => o.value), o.value = null);
|
|
1278
1278
|
},
|
|
1279
1279
|
!0
|
|
1280
|
-
),
|
|
1280
|
+
), ve("blur", (r) => i(
|
|
1281
1281
|
r,
|
|
1282
1282
|
() => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null
|
|
1283
1283
|
), !0);
|
|
@@ -1374,11 +1374,11 @@ function bn(e, t, n, i) {
|
|
|
1374
1374
|
const { floatingRef: o, props: r, mounted: s, show: l, x: c, y: u, placement: m, strategy: d, referenceElWidth: p, updateFloating: f } = i, a = ge(
|
|
1375
1375
|
{ ...r, as: r.floatingAs },
|
|
1376
1376
|
t
|
|
1377
|
-
), { enterActiveClassRef:
|
|
1378
|
-
enterActiveClass:
|
|
1377
|
+
), { enterActiveClassRef: h, leaveActiveClassRef: v } = vn(a, m), g = {
|
|
1378
|
+
enterActiveClass: h.value,
|
|
1379
1379
|
enterFromClass: a.enterFrom,
|
|
1380
1380
|
enterToClass: a.enterTo,
|
|
1381
|
-
leaveActiveClass:
|
|
1381
|
+
leaveActiveClass: v.value,
|
|
1382
1382
|
leaveFromClass: a.leaveFrom,
|
|
1383
1383
|
leaveToClass: a.leaveTo
|
|
1384
1384
|
}, x = {
|
|
@@ -1393,10 +1393,10 @@ function bn(e, t, n, i) {
|
|
|
1393
1393
|
l.value = !1;
|
|
1394
1394
|
}
|
|
1395
1395
|
}, b = {
|
|
1396
|
-
enter:
|
|
1396
|
+
enter: h.value,
|
|
1397
1397
|
enterFrom: a.enterFrom,
|
|
1398
1398
|
enterTo: a.enterTo,
|
|
1399
|
-
leave:
|
|
1399
|
+
leave: v.value,
|
|
1400
1400
|
leaveFrom: a.leaveFrom,
|
|
1401
1401
|
leaveTo: a.leaveTo,
|
|
1402
1402
|
onBeforeEnter: x.onBeforeEnter,
|
|
@@ -1420,7 +1420,7 @@ function bn(e, t, n, i) {
|
|
|
1420
1420
|
width: a.adaptiveWidth && typeof p.value == "number" ? `${p.value}px` : void 0
|
|
1421
1421
|
}
|
|
1422
1422
|
};
|
|
1423
|
-
function
|
|
1423
|
+
function w(A) {
|
|
1424
1424
|
return a.portal ? te(at, () => A) : A;
|
|
1425
1425
|
}
|
|
1426
1426
|
function O(A) {
|
|
@@ -1434,14 +1434,14 @@ function bn(e, t, n, i) {
|
|
|
1434
1434
|
function E() {
|
|
1435
1435
|
function A() {
|
|
1436
1436
|
var R;
|
|
1437
|
-
const
|
|
1437
|
+
const T = a.as === "template" ? ge(
|
|
1438
1438
|
C,
|
|
1439
1439
|
n,
|
|
1440
1440
|
a.dialog ? {} : { ref: o }
|
|
1441
|
-
) : null,
|
|
1442
|
-
return ((R =
|
|
1441
|
+
) : null, S = ft(e, T);
|
|
1442
|
+
return ((R = S.props) == null ? void 0 : R.unmount) === !1 ? (f(), S) : typeof a.show != "boolean" || a.show ? S : Se();
|
|
1443
1443
|
}
|
|
1444
|
-
return pe.isServer ? s.value && a.show ? A() :
|
|
1444
|
+
return pe.isServer ? s.value && a.show ? A() : Se() : a.transitionChild ? te(ct, {
|
|
1445
1445
|
key: `placement-${m.value}`,
|
|
1446
1446
|
...a.dialog ? { ref: o } : {},
|
|
1447
1447
|
as: "template",
|
|
@@ -1451,7 +1451,7 @@ function bn(e, t, n, i) {
|
|
|
1451
1451
|
...x
|
|
1452
1452
|
}, A);
|
|
1453
1453
|
}
|
|
1454
|
-
return
|
|
1454
|
+
return w(
|
|
1455
1455
|
O(
|
|
1456
1456
|
E()
|
|
1457
1457
|
)
|
|
@@ -1460,17 +1460,17 @@ function bn(e, t, n, i) {
|
|
|
1460
1460
|
function Cn(e, t, n, i, o) {
|
|
1461
1461
|
const r = F(!1), s = Ae(i, "placement"), l = Ae(i, "strategy"), c = Me({}), u = F(null), m = F(void 0), d = F(void 0), p = L(() => ie(t)), f = L(() => ie(n)), a = L(
|
|
1462
1462
|
() => $e(p) && $e(f)
|
|
1463
|
-
), { x:
|
|
1463
|
+
), { x: h, y: v, placement: g, strategy: x, middlewareData: b, update: C } = ln(p, f, {
|
|
1464
1464
|
placement: s,
|
|
1465
1465
|
strategy: l,
|
|
1466
1466
|
middleware: c,
|
|
1467
1467
|
whileElementsMounted: () => {
|
|
1468
1468
|
}
|
|
1469
|
-
}),
|
|
1469
|
+
}), w = F(null);
|
|
1470
1470
|
_e(() => {
|
|
1471
1471
|
r.value = !0;
|
|
1472
|
-
}), j(e, (
|
|
1473
|
-
|
|
1472
|
+
}), j(e, (S, P) => {
|
|
1473
|
+
S && !P ? o("show") : !S && P && o("hide");
|
|
1474
1474
|
}, { immediate: !0 });
|
|
1475
1475
|
function O() {
|
|
1476
1476
|
a.value && (C(), o("update"));
|
|
@@ -1482,9 +1482,9 @@ function Cn(e, t, n, i, o) {
|
|
|
1482
1482
|
u,
|
|
1483
1483
|
i
|
|
1484
1484
|
), j(b, () => {
|
|
1485
|
-
const
|
|
1486
|
-
m.value =
|
|
1487
|
-
}), gn(i.adaptiveWidth, p,
|
|
1485
|
+
const S = b.value.arrow;
|
|
1486
|
+
m.value = S == null ? void 0 : S.x, d.value = S == null ? void 0 : S.y;
|
|
1487
|
+
}), gn(i.adaptiveWidth, p, w), j(e, async (S, P, _) => {
|
|
1488
1488
|
if (await it(), e.value && a.value && i.autoUpdate) {
|
|
1489
1489
|
const B = on(
|
|
1490
1490
|
p.value,
|
|
@@ -1509,19 +1509,19 @@ function Cn(e, t, n, i, o) {
|
|
|
1509
1509
|
props: i,
|
|
1510
1510
|
mounted: r,
|
|
1511
1511
|
show: e,
|
|
1512
|
-
x:
|
|
1513
|
-
y:
|
|
1512
|
+
x: h,
|
|
1513
|
+
y: v,
|
|
1514
1514
|
placement: g,
|
|
1515
1515
|
strategy: x,
|
|
1516
|
-
referenceElWidth:
|
|
1516
|
+
referenceElWidth: w,
|
|
1517
1517
|
updateFloating: O
|
|
1518
|
-
},
|
|
1518
|
+
}, T = {
|
|
1519
1519
|
ref: u,
|
|
1520
1520
|
placement: g,
|
|
1521
1521
|
x: m,
|
|
1522
1522
|
y: d
|
|
1523
1523
|
};
|
|
1524
|
-
return rt(xn,
|
|
1524
|
+
return rt(xn, T), { referenceApi: A, floatingApi: R, arrowApi: T, x: h, y: v, placement: g, strategy: x, referenceEl: p, floatingEl: f, middlewareData: b, update: O };
|
|
1525
1525
|
}
|
|
1526
1526
|
({
|
|
1527
1527
|
...y.as
|
|
@@ -1610,7 +1610,7 @@ const On = {
|
|
|
1610
1610
|
y.as, y.placement, y.strategy, y.offset, y.shift, {
|
|
1611
1611
|
...y.flip
|
|
1612
1612
|
}, y.arrow, y.autoPlacement, y.hide, y.autoUpdate, y.zIndex, y.transitionName, y.transitionType, y.enter, y.enterFrom, y.enterTo, y.leave, y.leaveFrom, y.leaveTo, y.originClass, y.tailwindcssOriginClass, y.transform, y.middleware;
|
|
1613
|
-
const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" },
|
|
1613
|
+
const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Sn = ["onClick"], Rn = /* @__PURE__ */ dt({
|
|
1614
1614
|
__name: "StylePanel",
|
|
1615
1615
|
setup(e) {
|
|
1616
1616
|
const t = F({ value: null }), n = mt(), i = L(
|
|
@@ -1623,15 +1623,15 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
|
|
|
1623
1623
|
}, l = F([]);
|
|
1624
1624
|
let c;
|
|
1625
1625
|
const u = ({ show: d, reference: p, floating: f }) => {
|
|
1626
|
-
let a,
|
|
1627
|
-
n.commit("onMessageClick", (C,
|
|
1626
|
+
let a, h, v, g, x, b;
|
|
1627
|
+
n.commit("onMessageClick", (C, w) => {
|
|
1628
1628
|
var O;
|
|
1629
|
-
if (a = C.value.start.start,
|
|
1630
|
-
const E =
|
|
1631
|
-
b = Boolean(A === 0 && R), b ? l.value = E.slice(A + 1, R).split(",").map((
|
|
1629
|
+
if (a = C.value.start.start, h = Ct(r.value, a), v = Ot(r.value, a), g = ((O = r.value.slice(h).match(/^\s*/)) == null ? void 0 : O[0]) || "", x = v.trim().startsWith("//"), x) {
|
|
1630
|
+
const E = v.trimStart().slice(2).trimStart(), A = E.indexOf("["), R = E.indexOf("]");
|
|
1631
|
+
b = Boolean(A === 0 && R), b ? l.value = E.slice(A + 1, R).split(",").map((T) => T.trim()) : l.value = [];
|
|
1632
1632
|
}
|
|
1633
1633
|
p.value = {
|
|
1634
|
-
getBoundingClientRect: () =>
|
|
1634
|
+
getBoundingClientRect: () => w.getBoundingClientRect()
|
|
1635
1635
|
}, t.value = C, d.value = !0;
|
|
1636
1636
|
}), wn(
|
|
1637
1637
|
f,
|
|
@@ -1640,24 +1640,24 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
|
|
|
1640
1640
|
},
|
|
1641
1641
|
L(() => d.value)
|
|
1642
1642
|
), c = (C) => {
|
|
1643
|
+
var w;
|
|
1643
1644
|
if (d.value = !1, !!t.value.value)
|
|
1644
1645
|
if (x) {
|
|
1645
|
-
let
|
|
1646
|
+
let O = "";
|
|
1646
1647
|
if (b) {
|
|
1647
|
-
let
|
|
1648
|
-
l.value.includes(C) ?
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
`) || (h += `
|
|
1648
|
+
let E;
|
|
1649
|
+
l.value.includes(C) ? E = l.value.filter((A) => A !== C) : E = [...l.value, C], O = `${g}// [${E.filter(Boolean).join(", ")}] ${v.slice(v.indexOf("]") + 1).trimStart()}`;
|
|
1650
|
+
} else
|
|
1651
|
+
O = `${g}// [${C}] ${v.slice((((w = v.match(/\/\/*/)) == null ? void 0 : w.index) || -2) + 2).trimStart()}`;
|
|
1652
|
+
O.endsWith(`
|
|
1653
|
+
`) || (O += `
|
|
1654
1654
|
`), s(
|
|
1655
|
-
r.value.slice(0, Et(r.value, a)) +
|
|
1655
|
+
r.value.slice(0, Et(r.value, a)) + O + r.value.slice(h)
|
|
1656
1656
|
);
|
|
1657
1657
|
} else
|
|
1658
1658
|
s(
|
|
1659
|
-
r.value.slice(0,
|
|
1660
|
-
` + r.value.slice(
|
|
1659
|
+
r.value.slice(0, h) + `${g}// [${C}]
|
|
1660
|
+
` + r.value.slice(h)
|
|
1661
1661
|
);
|
|
1662
1662
|
};
|
|
1663
1663
|
}, m = [
|
|
@@ -1682,7 +1682,7 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
|
|
|
1682
1682
|
class: "line-through"
|
|
1683
1683
|
}
|
|
1684
1684
|
];
|
|
1685
|
-
return (d, p) => (
|
|
1685
|
+
return (d, p) => (Te(), ht(H(En), {
|
|
1686
1686
|
key: "tool",
|
|
1687
1687
|
onInitial: u,
|
|
1688
1688
|
placement: "top",
|
|
@@ -1691,19 +1691,19 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
|
|
|
1691
1691
|
shift: "",
|
|
1692
1692
|
zIndex: "30"
|
|
1693
1693
|
}, {
|
|
1694
|
-
default:
|
|
1695
|
-
|
|
1696
|
-
(
|
|
1694
|
+
default: vt(() => [
|
|
1695
|
+
he("div", An, [
|
|
1696
|
+
(Te(), yt(Ie, null, wt(m, (f) => he("div", {
|
|
1697
1697
|
onClick: () => H(c)(f.class),
|
|
1698
1698
|
key: f.name
|
|
1699
1699
|
}, [
|
|
1700
|
-
|
|
1700
|
+
he("div", {
|
|
1701
1701
|
class: xt(["w-6 mx-1 py-1 rounded-md text-black text-center cursor-pointer hover:bg-gray-200", [
|
|
1702
1702
|
f.class,
|
|
1703
1703
|
{ "bg-gray-100": l.value.includes(f.class) }
|
|
1704
1704
|
]])
|
|
1705
1705
|
}, bt(f.content), 3)
|
|
1706
|
-
], 8,
|
|
1706
|
+
], 8, Sn)), 64))
|
|
1707
1707
|
])
|
|
1708
1708
|
], void 0, !0),
|
|
1709
1709
|
_: 1
|
|
@@ -1713,4 +1713,4 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
|
|
|
1713
1713
|
export {
|
|
1714
1714
|
Rn as default
|
|
1715
1715
|
};
|
|
1716
|
-
//# sourceMappingURL=StylePanel.
|
|
1716
|
+
//# sourceMappingURL=StylePanel.2a1322ad.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e, c as o, a as t } from "./core.
|
|
1
|
+
import { o as e, c as o, a as t } from "./core.12e2ded5.js";
|
|
2
2
|
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
fill: "none",
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
i as default,
|
|
22
22
|
c as render
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=close.
|
|
24
|
+
//# sourceMappingURL=close.03e9ef9d.js.map
|