@zenuml/core 3.23.20 → 3.23.22

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.
@@ -1,4 +1,4 @@
1
- import { b as B, u as W, r as L, s as _e, w as M, g as it, d as rt, e as Q, F as Ie, m as he, t as Ee, f as He, n as st, p as lt, h as at, i as ct, j as ne, U as ft, k as Te, l as ut, T as dt, q as mt, v as pt, x as ht, y as gt, P as vt, o as Pe, z as wt, A as yt, a as ge, c as xt, B as bt, C as Ct, D as At, E as Ot, G as Rt, H as St } from "./core.5dde54f4.js";
1
+ import { b as B, u as U, r as L, s as _e, w as M, g as it, d as rt, e as Q, F as Ie, m as he, t as Ee, f as He, n as st, p as lt, h as at, i as ct, j as ne, U as ft, k as Te, l as ut, T as dt, q as mt, v as pt, x as ht, y as gt, P as vt, o as Pe, z as wt, A as yt, a as ge, c as xt, B as bt, C as Ct, D as At, E as Ot, G as Rt, H as St } from "./core.4ae602a3.js";
2
2
  const We = ["top", "right", "bottom", "left"], Le = ["start", "end"], Be = /* @__PURE__ */ We.reduce((e, t) => e.concat(t, t + "-" + Le[0], t + "-" + Le[1]), []), J = Math.min, q = Math.max, ae = Math.round, le = Math.floor, X = (e) => ({
3
3
  x: e,
4
4
  y: e
@@ -17,7 +17,7 @@ function ye(e, t, o) {
17
17
  function K(e, t) {
18
18
  return typeof e == "function" ? e(t) : e;
19
19
  }
20
- function V(e) {
20
+ function W(e) {
21
21
  return e.split("-")[0];
22
22
  }
23
23
  function j(e) {
@@ -30,7 +30,7 @@ function be(e) {
30
30
  return e === "y" ? "height" : "width";
31
31
  }
32
32
  function de(e) {
33
- return ["top", "bottom"].includes(V(e)) ? "y" : "x";
33
+ return ["top", "bottom"].includes(W(e)) ? "y" : "x";
34
34
  }
35
35
  function Ce(e) {
36
36
  return Ve(de(e));
@@ -63,7 +63,7 @@ function Lt(e, t, o) {
63
63
  }
64
64
  function Bt(e, t, o, i) {
65
65
  const n = j(e);
66
- let r = Lt(V(e), o === "start", i);
66
+ let r = Lt(W(e), o === "start", i);
67
67
  return n && (r = r.map((s) => s + "-" + n), t && (r = r.concat(r.map(ce)))), r;
68
68
  }
69
69
  function fe(e) {
@@ -109,7 +109,7 @@ function Fe(e, t, o) {
109
109
  reference: i,
110
110
  floating: n
111
111
  } = e;
112
- const r = de(t), s = Ce(t), l = be(s), c = V(t), a = r === "y", m = i.x + i.width / 2 - n.width / 2, u = i.y + i.height / 2 - n.height / 2, p = i[l] / 2 - n[l] / 2;
112
+ const r = de(t), s = Ce(t), l = be(s), c = W(t), a = r === "y", m = i.x + i.width / 2 - n.width / 2, u = i.y + i.height / 2 - n.height / 2, p = i[l] / 2 - n[l] / 2;
113
113
  let d;
114
114
  switch (c) {
115
115
  case "top":
@@ -297,7 +297,7 @@ const kt = (e) => ({
297
297
  }
298
298
  });
299
299
  function $t(e, t, o) {
300
- return (e ? [...o.filter((n) => j(n) === e), ...o.filter((n) => j(n) !== e)] : o.filter((n) => V(n) === n)).filter((n) => e ? j(n) === e || (t ? ce(n) !== n : !1) : !0);
300
+ return (e ? [...o.filter((n) => j(n) === e), ...o.filter((n) => j(n) !== e)] : o.filter((n) => W(n) === n)).filter((n) => e ? j(n) === e || (t ? ce(n) !== n : !1) : !0);
301
301
  }
302
302
  const Nt = function(e) {
303
303
  return e === void 0 && (e = {}), {
@@ -327,7 +327,7 @@ const Nt = function(e) {
327
327
  placement: g[0]
328
328
  }
329
329
  };
330
- const C = [v[V(x)], v[b[0]], v[b[1]]], y = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
330
+ const C = [v[W(x)], v[b[0]], v[b[1]]], y = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
331
331
  placement: x,
332
332
  overflows: C
333
333
  }], A = g[h + 1];
@@ -383,7 +383,7 @@ const Nt = function(e) {
383
383
  } = K(e, t);
384
384
  if ((o = r.arrow) != null && o.alignmentOffset)
385
385
  return {};
386
- const h = V(n), x = V(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), C = p || (x || !g ? [fe(l)] : Pt(l));
386
+ const h = W(n), x = W(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), C = p || (x || !g ? [fe(l)] : Pt(l));
387
387
  !p && f !== "none" && C.push(...Bt(l, g, f, b));
388
388
  const y = [l, ...C], A = await oe(t, v), O = [];
389
389
  let R = ((i = r.flip) == null ? void 0 : i.overflows) || [];
@@ -489,7 +489,7 @@ async function zt(e, t) {
489
489
  placement: o,
490
490
  platform: i,
491
491
  elements: n
492
- } = e, r = await (i.isRTL == null ? void 0 : i.isRTL(n.floating)), s = V(o), l = j(o), c = de(o) === "y", a = ["left", "top"].includes(s) ? -1 : 1, m = r && c ? -1 : 1, u = K(t, e);
492
+ } = e, r = await (i.isRTL == null ? void 0 : i.isRTL(n.floating)), s = W(o), l = j(o), c = de(o) === "y", a = ["left", "top"].includes(s) ? -1 : 1, m = r && c ? -1 : 1, u = K(t, e);
493
493
  let {
494
494
  mainAxis: p,
495
495
  crossAxis: d,
@@ -562,7 +562,7 @@ const _t = function(e) {
562
562
  } = K(e, t), a = {
563
563
  x: o,
564
564
  y: i
565
- }, m = await oe(t, c), u = de(V(n)), p = Ve(u);
565
+ }, m = await oe(t, c), u = de(W(n)), p = Ve(u);
566
566
  let d = a[p], f = a[u];
567
567
  if (r) {
568
568
  const v = p === "y" ? "top" : "left", h = p === "y" ? "bottom" : "right", x = d + m[v], b = d - m[h];
@@ -594,7 +594,7 @@ function D(e) {
594
594
  var t;
595
595
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
596
596
  }
597
- function U(e) {
597
+ function V(e) {
598
598
  var t;
599
599
  return (t = (Ye(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
600
600
  }
@@ -656,7 +656,7 @@ function me(e) {
656
656
  function Y(e) {
657
657
  if (te(e) === "html")
658
658
  return e;
659
- const t = e.assignedSlot || e.parentNode || $e(e) && e.host || U(e);
659
+ const t = e.assignedSlot || e.parentNode || $e(e) && e.host || V(e);
660
660
  return $e(t) ? t.host : t;
661
661
  }
662
662
  function qe(e) {
@@ -747,7 +747,7 @@ function Yt(e) {
747
747
  offsetParent: i,
748
748
  strategy: n
749
749
  } = e;
750
- const r = n === "fixed", s = U(i), l = t ? Se(t.floating) : !1;
750
+ const r = n === "fixed", s = V(i), l = t ? Se(t.floating) : !1;
751
751
  if (i === s || l && r)
752
752
  return o;
753
753
  let c = {
@@ -770,10 +770,10 @@ function qt(e) {
770
770
  return Array.from(e.getClientRects());
771
771
  }
772
772
  function Qe(e) {
773
- return G(U(e)).left + me(e).scrollLeft;
773
+ return G(V(e)).left + me(e).scrollLeft;
774
774
  }
775
775
  function Gt(e) {
776
- const t = U(e), o = me(e), i = e.ownerDocument.body, n = q(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), r = q(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
776
+ const t = V(e), o = me(e), i = e.ownerDocument.body, n = q(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), r = q(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
777
777
  let s = -o.scrollLeft + Qe(e);
778
778
  const l = -o.scrollTop;
779
779
  return k(i).direction === "rtl" && (s += q(t.clientWidth, i.clientWidth) - n), {
@@ -784,7 +784,7 @@ function Gt(e) {
784
784
  };
785
785
  }
786
786
  function Kt(e, t) {
787
- const o = D(e), i = U(e), n = o.visualViewport;
787
+ const o = D(e), i = V(e), n = o.visualViewport;
788
788
  let r = i.clientWidth, s = i.clientHeight, l = 0, c = 0;
789
789
  if (n) {
790
790
  r = n.width, s = n.height;
@@ -812,7 +812,7 @@ function Ne(e, t, o) {
812
812
  if (t === "viewport")
813
813
  i = Kt(e, o);
814
814
  else if (t === "document")
815
- i = Gt(U(e));
815
+ i = Gt(V(e));
816
816
  else if (z(t))
817
817
  i = Qt(t, o);
818
818
  else {
@@ -871,7 +871,7 @@ function en(e) {
871
871
  };
872
872
  }
873
873
  function tn(e, t, o) {
874
- const i = _(t), n = U(t), r = o === "fixed", s = G(e, !0, r, t);
874
+ const i = _(t), n = V(t), r = o === "fixed", s = G(e, !0, r, t);
875
875
  let l = {
876
876
  scrollLeft: 0,
877
877
  scrollTop: 0
@@ -932,7 +932,7 @@ function on(e) {
932
932
  }
933
933
  const rn = {
934
934
  convertOffsetParentRelativeRectToViewportRelativeRect: Yt,
935
- getDocumentElement: U,
935
+ getDocumentElement: V,
936
936
  getClippingRect: Jt,
937
937
  getOffsetParent: Je,
938
938
  getElementRects: nn,
@@ -944,7 +944,7 @@ const rn = {
944
944
  };
945
945
  function sn(e, t) {
946
946
  let o = null, i;
947
- const n = U(e);
947
+ const n = V(e);
948
948
  function r() {
949
949
  var l;
950
950
  clearTimeout(i), (l = o) == null || l.disconnect(), o = null;
@@ -1045,7 +1045,7 @@ function hn(e) {
1045
1045
  name: "arrow",
1046
1046
  options: e,
1047
1047
  fn(t) {
1048
- const o = xe(W(e.element));
1048
+ const o = xe(U(e.element));
1049
1049
  return o == null ? {} : mn({
1050
1050
  element: o,
1051
1051
  padding: e.padding
@@ -1057,13 +1057,13 @@ function gn(e, t, o) {
1057
1057
  o === void 0 && (o = {});
1058
1058
  const i = o.whileElementsMounted, n = B(() => {
1059
1059
  var y;
1060
- return (y = W(o.open)) != null ? y : !0;
1061
- }), r = B(() => W(o.middleware)), s = B(() => {
1060
+ return (y = U(o.open)) != null ? y : !0;
1061
+ }), r = B(() => U(o.middleware)), s = B(() => {
1062
1062
  var y;
1063
- return (y = W(o.placement)) != null ? y : "bottom";
1063
+ return (y = U(o.placement)) != null ? y : "bottom";
1064
1064
  }), l = B(() => {
1065
1065
  var y;
1066
- return (y = W(o.strategy)) != null ? y : "absolute";
1066
+ return (y = U(o.strategy)) != null ? y : "absolute";
1067
1067
  }), c = B(() => xe(e.value)), a = B(() => xe(t.value)), m = L(null), u = L(null), p = L(l.value), d = L(s.value), f = _e({}), g = L(!1);
1068
1068
  let v;
1069
1069
  function h() {
@@ -1139,7 +1139,7 @@ function bn(e) {
1139
1139
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
1140
1140
  }
1141
1141
  function je(e) {
1142
- return e = W(e), e && (e == null ? void 0 : e.nodeType) !== Node.COMMENT_NODE;
1142
+ return e = U(e), e && (e == null ? void 0 : e.nodeType) !== Node.COMMENT_NODE;
1143
1143
  }
1144
1144
  function Cn(e) {
1145
1145
  if (pe.isServer)
@@ -1722,19 +1722,19 @@ const kn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, $n = ["onCl
1722
1722
  class: "line-through"
1723
1723
  }
1724
1724
  ];
1725
- return (u, p) => (Pe(), wt(W(Dn), {
1725
+ return (u, p) => (Pe(), wt(U(Dn), {
1726
1726
  key: "tool",
1727
1727
  onInitial: a,
1728
1728
  placement: "top",
1729
1729
  offset: 5,
1730
- flip: { padding: W(n) },
1730
+ flip: { padding: n.value },
1731
1731
  shift: "",
1732
1732
  zIndex: "30"
1733
1733
  }, {
1734
1734
  default: yt(() => [
1735
1735
  ge("div", kn, [
1736
1736
  (Pe(), xt(Ie, null, bt(m, (d) => ge("div", {
1737
- onClick: () => W(c)(d.class),
1737
+ onClick: () => U(c)(d.class),
1738
1738
  key: d.name
1739
1739
  }, [
1740
1740
  ge("div", {
@@ -1753,4 +1753,4 @@ const kn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, $n = ["onCl
1753
1753
  export {
1754
1754
  Mn as default
1755
1755
  };
1756
- //# sourceMappingURL=StylePanel.a5adfc4c.js.map
1756
+ //# sourceMappingURL=StylePanel.5e5eee6a.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.5dde54f4.js";
1
+ import { o as e, c as o, a as t } from "./core.4ae602a3.js";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -14,11 +14,11 @@ const r = {
14
14
  n
15
15
  ];
16
16
  function c(a, l) {
17
- return e(), o("svg", r, s);
17
+ return e(), o("svg", r, [...s]);
18
18
  }
19
19
  const i = { render: c };
20
20
  export {
21
21
  i as default,
22
22
  c as render
23
23
  };
24
- //# sourceMappingURL=close.82712fae.js.map
24
+ //# sourceMappingURL=close.4c90d8c8.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.5dde54f4.js";
1
+ import { o as e, c as o, a as t } from "./core.4ae602a3.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -9,11 +9,11 @@ const n = {
9
9
  r
10
10
  ];
11
11
  function c(a, l) {
12
- return e(), o("svg", n, s);
12
+ return e(), o("svg", n, [...s]);
13
13
  }
14
14
  const h = { render: c };
15
15
  export {
16
16
  h as default,
17
17
  c as render
18
18
  };
19
- //# sourceMappingURL=collapse-expanded.b1f9d558.js.map
19
+ //# sourceMappingURL=collapse-expanded.ac5a1854.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.5dde54f4.js";
1
+ import { o, c as t, a as e } from "./core.4ae602a3.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "currentColor",
@@ -22,11 +22,11 @@ const n = {
22
22
  r
23
23
  ];
24
24
  function s(c, d) {
25
- return o(), t("svg", n, a);
25
+ return o(), t("svg", n, [...a]);
26
26
  }
27
27
  const i = { render: s };
28
28
  export {
29
29
  i as default,
30
30
  s as render
31
31
  };
32
- //# sourceMappingURL=collapse-unexpanded.5591a121.js.map
32
+ //# sourceMappingURL=collapse-unexpanded.cb9d156e.js.map