@zenuml/core 3.16.0 → 3.16.2

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 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.8902848e.js";
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.eca73dbe.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
@@ -1713,4 +1713,4 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Sn = ["onCl
1713
1713
  export {
1714
1714
  Rn as default
1715
1715
  };
1716
- //# sourceMappingURL=StylePanel.b117c9d6.js.map
1716
+ //# sourceMappingURL=StylePanel.6cc6af50.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.8902848e.js";
1
+ import { o as e, c as o, a as t } from "./core.eca73dbe.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.2362c64b.js.map
24
+ //# sourceMappingURL=close.286a862b.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.8902848e.js";
1
+ import { o as e, c as o, a as t } from "./core.eca73dbe.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -16,4 +16,4 @@ export {
16
16
  h as default,
17
17
  c as render
18
18
  };
19
- //# sourceMappingURL=collapse-expanded.0dbccec6.js.map
19
+ //# sourceMappingURL=collapse-expanded.3a7239a3.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.8902848e.js";
1
+ import { o, c as t, a as e } from "./core.eca73dbe.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "currentColor",
@@ -29,4 +29,4 @@ export {
29
29
  i as default,
30
30
  s as render
31
31
  };
32
- //# sourceMappingURL=collapse-unexpanded.fb722980.js.map
32
+ //# sourceMappingURL=collapse-unexpanded.bd1cf90c.js.map
@@ -25295,7 +25295,7 @@ const uh = () => (ch = Y9(), {
25295
25295
  }
25296
25296
  },
25297
25297
  setup(t) {
25298
- const e = t, n = cs(() => Lv(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close.2362c64b.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded.0dbccec6.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded.fb722980.js"), "./icons/debug.svg": () => import("./debug.5c231a4a.js"), "./icons/message-arrow.svg": () => import("./message-arrow.2d5c898c.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle.7cdb2879.js"), "./icons/numbering.svg": () => import("./numbering.e72ca4d4.js"), "./icons/privacy.svg": () => import("./privacy.0daffc35.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle.d83db122.js"), "./icons/theme.svg": () => import("./theme.8bd7f9e6.js"), "./icons/tip.svg": () => import("./tip.d309182d.js"), "./icons/zoom-in.svg": () => import("./zoom-in.b2695965.js"), "./icons/zoom-out.svg": () => import("./zoom-out.e81b5890.js") }), `./icons/${e.name}.svg`));
25298
+ const e = t, n = cs(() => Lv(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close.286a862b.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded.3a7239a3.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded.bd1cf90c.js"), "./icons/debug.svg": () => import("./debug.6d6e1cb6.js"), "./icons/message-arrow.svg": () => import("./message-arrow.8e347c2e.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle.b78af6c7.js"), "./icons/numbering.svg": () => import("./numbering.4924288e.js"), "./icons/privacy.svg": () => import("./privacy.19bd6b90.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle.d0eb0a1f.js"), "./icons/theme.svg": () => import("./theme.2c7d4efd.js"), "./icons/tip.svg": () => import("./tip.1447e37d.js"), "./icons/zoom-in.svg": () => import("./zoom-in.955b4413.js"), "./icons/zoom-out.svg": () => import("./zoom-out.a375d182.js") }), `./icons/${e.name}.svg`));
25299
25299
  return (r, s) => (R(), K("span", {
25300
25300
  class: be(["flex items-center justify-center", t.iconClass]),
25301
25301
  onClick: s[0] || (s[0] = (i) => r.$emit("icon-click"))
@@ -26754,14 +26754,16 @@ const js = b0.child({ name: "LifeLine" }), Lw = {
26754
26754
  this.top = 0;
26755
26755
  }
26756
26756
  }
26757
- }, _w = ["id"], yw = {
26757
+ }, _w = ["id", "entity-type"], yw = {
26758
26758
  key: 1,
26759
26759
  class: "line w0 mx-auto flex-grow w-px"
26760
26760
  };
26761
26761
  function Cw(t, e, n, r, s, i) {
26762
+ var l;
26762
26763
  const o = xe("participant");
26763
26764
  return R(), K("div", {
26764
26765
  id: n.entity.name,
26766
+ "entity-type": (l = n.entity.type) == null ? void 0 : l.toLowerCase(),
26765
26767
  class: "lifeline absolute flex flex-col mx-2 transform -translate-x-1/2 h-full",
26766
26768
  style: _e({ paddingTop: t.top + "px", left: i.left + "px" })
26767
26769
  }, [
@@ -26775,7 +26777,7 @@ function Cw(t, e, n, r, s, i) {
26775
26777
  }, null, 8, ["entity", "offsetTop"])) : (R(), K("div", yw))
26776
26778
  ], 12, _w);
26777
26779
  }
26778
- const _h = /* @__PURE__ */ Ge(Lw, [["render", Cw], ["__scopeId", "data-v-e1d6d524"]]), vw = {
26780
+ const _h = /* @__PURE__ */ Ge(Lw, [["render", Cw], ["__scopeId", "data-v-b9ee2fc6"]]), vw = {
26779
26781
  name: "lifeline-group",
26780
26782
  props: ["context", "renderParticipants"],
26781
26783
  computed: {
@@ -26840,7 +26842,7 @@ const Ew = /* @__PURE__ */ Ge(vw, [["render", ww]]), ru = b0.child({ name: "Life
26840
26842
  let i = n.value + r.value;
26841
26843
  n.value > Sw && (e == null ? void 0 : e.state.stickyOffset) && (i += e == null ? void 0 : e.state.stickyOffset);
26842
26844
  const o = ((a = e == null ? void 0 : e.state.diagramElement) == null ? void 0 : a.clientHeight) || 0, l = e != null && e.state.diagramElement ? xh(e == null ? void 0 : e.state.diagramElement) : 0;
26843
- return i < 0 + l ? 0 : Math.min(i - l, o - Tw) - 0;
26845
+ return i <= 0 + l ? 0 : Math.min(i - l, o - Tw) - 0;
26844
26846
  }) };
26845
26847
  },
26846
26848
  computed: {
@@ -26928,7 +26930,7 @@ const su = /* @__PURE__ */ Ge(Aw, [["render", kw]]), Ow = { class: "message-laye
26928
26930
  context: null
26929
26931
  },
26930
26932
  setup(t) {
26931
- const e = t, n = cs(() => import("./StylePanel.b117c9d6.js")), r = b0.child({ name: "MessageLayer" }), s = zr(), i = ne(() => s.getters.participants), o = ne(() => s.getters.centerOf), l = ne(() => {
26933
+ const e = t, n = cs(() => import("./StylePanel.6cc6af50.js")), r = b0.child({ name: "MessageLayer" }), s = zr(), i = ne(() => s.getters.participants), o = ne(() => s.getters.centerOf), l = ne(() => {
26932
26934
  var x, y;
26933
26935
  const c = (x = e.context) == null ? void 0 : x.stat()[0].message();
26934
26936
  if (!c)
@@ -34229,6 +34231,7 @@ class KO {
34229
34231
  Z(this, "app");
34230
34232
  Z(this, "_currentTimeout");
34231
34233
  Z(this, "_lastRenderingCostMilliseconds", 0);
34234
+ Z(this, "initialRender", !0);
34232
34235
  this.el = e, this.store = H5(uh()), this.app = P0(n ? hc : n6), this.app.component("Comment", q0), this.app.component("Block", VO), this.app.use(this.store), this.app.mount(this.el), this.addPortalRootElement();
34233
34236
  }
34234
34237
  addPortalRootElement() {
@@ -34236,18 +34239,19 @@ class KO {
34236
34239
  e.id = "headlessui-portal-root", e.className = "zenuml", e.append(document.createElement("div")), document.body.append(e);
34237
34240
  }
34238
34241
  async render(e, n) {
34239
- return this._currentTimeout && (console.debug("rendering clearTimeout"), clearTimeout(this._currentTimeout)), jO.debug("rendering", e, n), this._code = e || this._code, this._theme = (n == null ? void 0 : n.theme) || this._theme, this.store.state.stickyOffset = (n == null ? void 0 : n.stickyOffset) || 0, this.store.state.theme = this._theme || "default", this._currentTimeout = setTimeout(async () => {
34240
- console.debug("rendering start");
34241
- const r = y6();
34242
- ev(), this.store.commit(
34243
- "onContentChange",
34244
- (n == null ? void 0 : n.onContentChange) || (() => {
34245
- })
34246
- ), (n == null ? void 0 : n.enableMultiTheme) !== void 0 && (this.store.state.enableMultiTheme = n == null ? void 0 : n.enableMultiTheme), await this.store.dispatch("updateCode", { code: this._code }), this._lastRenderingCostMilliseconds = GO(
34247
- "rendering end",
34248
- r
34249
- );
34250
- }, this.calculateDebounceMilliseconds()), Promise.resolve(this);
34242
+ return this._currentTimeout && (console.debug("rendering clearTimeout"), clearTimeout(this._currentTimeout)), jO.debug("rendering", e, n), this._code = e || this._code, this._theme = (n == null ? void 0 : n.theme) || this._theme, this.store.state.stickyOffset = (n == null ? void 0 : n.stickyOffset) || 0, this.store.state.theme = this._theme || "default", this.initialRender ? (this.initialRender = !1, await this.doRender(n)) : this._currentTimeout = setTimeout(
34243
+ async () => await this.doRender(n),
34244
+ this.calculateDebounceMilliseconds()
34245
+ ), this;
34246
+ }
34247
+ async doRender(e) {
34248
+ console.debug("rendering start");
34249
+ const n = y6();
34250
+ ev(), this.store.commit("onContentChange", (e == null ? void 0 : e.onContentChange) || (() => {
34251
+ })), (e == null ? void 0 : e.enableMultiTheme) !== void 0 && (this.store.state.enableMultiTheme = e == null ? void 0 : e.enableMultiTheme), await this.store.dispatch("updateCode", { code: this._code }), this._lastRenderingCostMilliseconds = GO(
34252
+ "rendering end",
34253
+ n
34254
+ );
34251
34255
  }
34252
34256
  calculateDebounceMilliseconds() {
34253
34257
  let e = this._lastRenderingCostMilliseconds;
@@ -34311,4 +34315,4 @@ export {
34311
34315
  xh as y,
34312
34316
  ke as z
34313
34317
  };
34314
- //# sourceMappingURL=core.8902848e.js.map
34318
+ //# sourceMappingURL=core.eca73dbe.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.8902848e.js";
1
+ import { o, c as t, a as e } from "./core.eca73dbe.js";
2
2
  const c = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -30,4 +30,4 @@ export {
30
30
  u as default,
31
31
  i as render
32
32
  };
33
- //# sourceMappingURL=debug.5c231a4a.js.map
33
+ //# sourceMappingURL=debug.6d6e1cb6.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as s, a as e } from "./core.8902848e.js";
1
+ import { o as t, c as s, a as e } from "./core.eca73dbe.js";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "30",
@@ -22,4 +22,4 @@ export {
22
22
  i as default,
23
23
  c as render
24
24
  };
25
- //# sourceMappingURL=message-arrow.2d5c898c.js.map
25
+ //# sourceMappingURL=message-arrow.8e347c2e.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c, a as o } from "./core.8902848e.js";
1
+ import { o as e, c, a as o } from "./core.eca73dbe.js";
2
2
  const t = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -21,4 +21,4 @@ export {
21
21
  d as default,
22
22
  s as render
23
23
  };
24
- //# sourceMappingURL=non-selected-cycle.7cdb2879.js.map
24
+ //# sourceMappingURL=non-selected-cycle.b78af6c7.js.map
@@ -1,4 +1,4 @@
1
- import { o as Z, c, a as m } from "./core.8902848e.js";
1
+ import { o as Z, c, a as m } from "./core.eca73dbe.js";
2
2
  const l = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "24",
@@ -23,4 +23,4 @@ export {
23
23
  s as default,
24
24
  e as render
25
25
  };
26
- //# sourceMappingURL=numbering.e72ca4d4.js.map
26
+ //# sourceMappingURL=numbering.4924288e.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as t, a as e } from "./core.8902848e.js";
1
+ import { o as c, c as t, a as e } from "./core.eca73dbe.js";
2
2
  const a = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -15,4 +15,4 @@ export {
15
15
  p as default,
16
16
  r as render
17
17
  };
18
- //# sourceMappingURL=privacy.0daffc35.js.map
18
+ //# sourceMappingURL=privacy.19bd6b90.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as o, a as e } from "./core.8902848e.js";
1
+ import { o as t, c as o, a as e } from "./core.eca73dbe.js";
2
2
  const s = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -29,4 +29,4 @@ export {
29
29
  f as default,
30
30
  r as render
31
31
  };
32
- //# sourceMappingURL=selected-cycle.d83db122.js.map
32
+ //# sourceMappingURL=selected-cycle.d0eb0a1f.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as e, a as t } from "./core.8902848e.js";
1
+ import { o as c, c as e, a as t } from "./core.eca73dbe.js";
2
2
  const o = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  class: "grayscale h-4 w-4",
@@ -17,4 +17,4 @@ export {
17
17
  h as default,
18
18
  a as render
19
19
  };
20
- //# sourceMappingURL=theme.8bd7f9e6.js.map
20
+ //# sourceMappingURL=theme.2c7d4efd.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as t, a as o } from "./core.8902848e.js";
1
+ import { o as e, c as t, a as o } from "./core.eca73dbe.js";
2
2
  const s = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
@@ -16,4 +16,4 @@ export {
16
16
  i as default,
17
17
  c as render
18
18
  };
19
- //# sourceMappingURL=tip.d309182d.js.map
19
+ //# sourceMappingURL=tip.1447e37d.js.map