@nxgt/material-vue 0.15.3 → 0.19.0
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/README.md +5 -1
- package/dist/_baseIsEqual-Cj6hHjs0.js +226 -0
- package/dist/abnfDiagram-O67JEVCF-Cl_I9xuI.js +89 -0
- package/dist/arc-DNNg1pxp.js +80 -0
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
- package/dist/architectureDiagram-NJMV4G6O-CVS4UUCi.js +4146 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/blockDiagram-BEXU5L5S-B5Z0jbc8.js +1946 -0
- package/dist/c4Diagram-YGBWAQC7-B6jKsl3h.js +2990 -0
- package/dist/{camera-DmcoWLY_.js → camera-oxz1xItP.js} +4 -4
- package/dist/channel-BA1GJyZ7.js +5 -0
- package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
- package/dist/chunk-3FUC2YCW-CX-v_TQz.js +364 -0
- package/dist/chunk-5DYCD2WN-B9vjeX2u.js +37 -0
- package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
- package/dist/chunk-6AEJRKK7-D9IaQdwq.js +10 -0
- package/dist/chunk-742MDFTN-BIhVe9GR.js +275 -0
- package/dist/chunk-7INBJB4K-CwPgdc2G.js +4487 -0
- package/dist/chunk-7M6MHVWA-Deh_-m6x.js +4256 -0
- package/dist/chunk-7PRAP22T-CofnNOEr.js +67 -0
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
- package/dist/chunk-GNY47TPC-rS2K544k.js +75 -0
- package/dist/chunk-GTNCS2PH-BR0O70z_.js +490 -0
- package/dist/chunk-GWA4HPMP-DU9lUCZD.js +61 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-MBY4JIJT-HYVRUG_P.js +1847 -0
- package/dist/chunk-NETBCI7D-C8amwD_P.js +236 -0
- package/dist/chunk-O7XYJQB3-WMQqqzRb.js +3922 -0
- package/dist/chunk-UA2S7LBM-DtBatid7.js +363 -0
- package/dist/chunk-WEXAMYUT-Cc10h8ed.js +26 -0
- package/dist/chunk-XXDRQBXY-B2pGFcse.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/chunk-Z7XXMR3K-CJmsOGTV.js +676 -0
- package/dist/chunk-ZIGJFQKS-DBdWb0bj.js +1366 -0
- package/dist/classDiagram-v2-NBCMYWYE-Caqw5P6A.js +3397 -0
- package/dist/{components-CzlSXpgn.js → components-IbdMALGv.js} +43231 -18341
- package/dist/components.js +5 -5
- package/dist/{composables-CJfjxkud.js → composables-6zV0t-y7.js} +1 -1
- package/dist/composables.js +1 -1
- package/dist/cose-bilkent-JH36ORCC-DStMi-eo.js +2251 -0
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
- package/dist/cynefinDiagram-VND7K2PF-0Mq0e5NQ.js +349 -0
- package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
- package/dist/dagre-6A5THRUB-EHXNn6Wq.js +2192 -0
- package/dist/defaultLocale-DnzPsei5.js +201 -0
- package/dist/diagram-22UHCM2B-B3RAQlqQ.js +5084 -0
- package/dist/diagram-3UASUU5V-BznCZHss.js +525 -0
- package/dist/diagram-ATOU4E4O-DtIUxSAn.js +432 -0
- package/dist/diagram-CDSNMT55-DOjN3BR2.js +301 -0
- package/dist/diagram-MLGK6HIB-Dx2UboD6.js +134 -0
- package/dist/diagram-MPIPVDR6-DnPL3RV0.js +214 -0
- package/dist/dist-D9zvfe2i.js +59 -0
- package/dist/{dnd-CnXShic8.js → dnd-CaDeYjQx.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/ebnfDiagram-ZINNZB2B-BNbxCL0b.js +100 -0
- package/dist/elk-276RUBZZ-B9WeHolc.js +47597 -0
- package/dist/erDiagram-OPXOYQCR-DReZElBu.js +1970 -0
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
- package/dist/flowDiagram-KWPJA3E3-DYss4vEI.js +17 -0
- package/dist/ganttDiagram-FUAMR5RP-64EZDDmC.js +3083 -0
- package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
- package/dist/gitGraphDiagram-X574FWY7-DmMMrp5A.js +729 -0
- package/dist/graphlib-CrmIPC4m.js +372 -0
- package/dist/{i18n-weSTOoFJ.js → i18n-OBzfa-B7.js} +247 -926
- package/dist/i18n.js +2 -2
- package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
- package/dist/infoDiagram-VRGFBTTK-XlBUAu0t.js +20 -0
- package/dist/init-MwSGRDIl.js +15 -0
- package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
- package/dist/isEmpty-CMjyBU-a.js +136 -0
- package/dist/ishikawaDiagram-OU5B5YK6-C9cMWMPO.js +719 -0
- package/dist/journeyDiagram-ZHPQQLJL-DXdfP9BW.js +884 -0
- package/dist/kanban-definition-PNTS6WVX-DhOBy3A0.js +976 -0
- package/dist/katex-BMQ6LGsM.js +21962 -0
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/ui/chat/chat-composer-mentions.vue.d.ts +13 -0
- package/dist/lib/components/ui/chat/chat-composer.vue.d.ts +6 -2
- package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
- package/dist/lib/components/ui/emoji/emoji-list.vue.d.ts +11 -0
- package/dist/lib/components/ui/emoji/emoji-picker.vue.d.ts +12 -0
- package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
- package/dist/lib/components/ui/emoji/index.d.ts +4 -0
- package/dist/lib/components/ui/emoji/types.d.ts +6 -0
- package/dist/lib/components/ui/markdown/index.d.ts +2 -0
- package/dist/lib/components/ui/markdown/markdown.utils.d.ts +10 -0
- package/dist/lib/components/ui/markdown/markdown.vue.d.ts +10 -0
- package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
- package/dist/lib/components/ui/markdown/partials/mermaid-diagram.vue.d.ts +7 -0
- package/dist/lib/components/ui/mentions/index.d.ts +4 -0
- package/dist/lib/components/ui/mentions/mention-list.vue.d.ts +16 -0
- package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
- package/dist/lib/components/ui/mentions/types.d.ts +5 -0
- package/dist/lib/components/ui/terminal/index.d.ts +3 -0
- package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
- package/dist/lib/components/ui/terminal/terminal.vue.d.ts +17 -0
- package/dist/lib/i18n/resources/en/index.d.ts +13 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +14 -1
- package/dist/lib/i18n/resources/fr/index.d.ts +13 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +14 -1
- package/dist/lib/i18n/resources/index.d.ts +26 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/nuxt/component-names.d.ts +1 -1
- package/dist/lib-B9AHrvmh.js +389 -0
- package/dist/lib.js +1 -1
- package/dist/line-UP6dkL36.js +34 -0
- package/dist/linear-bD_QoED_.js +289 -0
- package/dist/main.js +9 -9
- package/dist/material-vue.css +1 -1
- package/dist/merge-B4IBXGaq.js +170 -0
- package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
- package/dist/mermaid.core-C_Rtflmc.js +1096 -0
- package/dist/mindmap-definition-NLK3R4M7-CO6s2Afv.js +1008 -0
- package/dist/ordinal-D_ZgubzR.js +65 -0
- package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
- package/dist/path-DGNPZRdx.js +85 -0
- package/dist/{pdf-outline-sidebar-iX41cMWg.js → pdf-outline-sidebar-D5VedBgk.js} +3 -2
- package/dist/{pdf-page-D_i3wZ_q.js → pdf-page-B1Ze518d.js} +1 -1
- package/dist/{pdf-page-list-bB0_8jk4.js → pdf-page-list-CBJziavm.js} +3 -2
- package/dist/{pdf-reader-CRipdUQO.js → pdf-reader-Cn1uxtJN.js} +13 -13
- package/dist/{pdf-sidebar-BLZLycW6.js → pdf-sidebar-PXfgGlmq.js} +4 -4
- package/dist/{pdf-thumbnail-sidebar-CStX_EPU.js → pdf-thumbnail-sidebar-7agqWsXT.js} +4 -3
- package/dist/{pdf-toolbar-Cp2i5Vhc.js → pdf-toolbar-Blm9CFvh.js} +22 -21
- package/dist/pegDiagram-GJSIUBJH-gvsGke9W.js +94 -0
- package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
- package/dist/pieDiagram-5QR66LMP-DLBcErnI.js +205 -0
- package/dist/quadrantDiagram-O4NWA36T-Bn3CmGxM.js +2001 -0
- package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
- package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
- package/dist/railroadDiagram-XR7U4H2S-DLeBxWbV.js +76 -0
- package/dist/requirementDiagram-PLB6GJNP-JpWB5sEv.js +2228 -0
- package/dist/rolldown-runtime-CWhphoD1.js +23 -0
- package/dist/rough.esm-rcMoXTJj.js +1352 -0
- package/dist/sankeyDiagram-IPEJSGJF-a4rFl5rR.js +970 -0
- package/dist/sequenceDiagram-PO4LG4MO-CjUigcL2.js +4200 -0
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/src-CNRY2AUH.js +2142 -0
- package/dist/stateDiagram-v2-GCMORJYK-DJkVDIb0.js +2143 -0
- package/dist/{stx-player-DNXToHKV.js → stx-player-rs3uH0iI.js} +17 -17
- package/dist/swimlanes-2SLR337P-D7Ff0hLr.js +4763 -0
- package/dist/swimlanesDiagram-TC7HE7FX-DZZ9d76C.js +28 -0
- package/dist/timeline-definition-EJHVYXUP-C0aHlt9K.js +1073 -0
- package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
- package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
- package/dist/usecaseDiagram-POWQR4AR-BrRAt7Wu.js +9932 -0
- package/dist/vennDiagram-UO4OBE2U-B22Jhju8.js +1880 -0
- package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
- package/dist/wardleyDiagram-VNRHLVJA-Dw4YgRiQ.js +645 -0
- package/dist/xychartDiagram-PMCCYNJV-DtuDs9I7.js +2214 -0
- package/lib/nuxt/component-names.ts +2 -0
- package/package.json +5 -1
- package/dist/lib-DfpwxO6u.js +0 -611
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ku as e, Yu as t, qu as n } from "./components-IbdMALGv.js";
|
|
2
2
|
import { t as r } from "./utils-Cy-ByIEo.js";
|
|
3
3
|
import { r as i, t as a } from "./icon-button-Ghucx7Ah.js";
|
|
4
|
-
import { n as o } from "./i18n-
|
|
4
|
+
import { n as o } from "./i18n-OBzfa-B7.js";
|
|
5
5
|
import { createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, ref as g, renderSlot as _, shallowRef as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
|
|
6
6
|
import { Pause as S, Play as C } from "lucide-vue-next";
|
|
7
7
|
//#region lib/components/ui/camera/camera-content.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -57,8 +57,8 @@ var w = { class: "grid gap-2" }, T = { class: "flex justify-end" }, E = ["src",
|
|
|
57
57
|
}), O = /* @__PURE__ */ p({
|
|
58
58
|
__name: "camera-provider",
|
|
59
59
|
setup(e) {
|
|
60
|
-
let r = g(null), i = g(null), a = v(null), o =
|
|
61
|
-
return
|
|
60
|
+
let r = g(null), i = g(null), a = v(null), o = t();
|
|
61
|
+
return n({
|
|
62
62
|
videoRef: r,
|
|
63
63
|
canvasRef: i,
|
|
64
64
|
streamRef: a,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-2Q5K7J3B.mjs
|
|
3
|
+
var t = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
this.init = e, this.records = this.init();
|
|
6
|
+
}
|
|
7
|
+
static {
|
|
8
|
+
e(this, "ImperativeState");
|
|
9
|
+
}
|
|
10
|
+
reset() {
|
|
11
|
+
this.records = this.init();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t };
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { t as e } from "./graphlib-CrmIPC4m.js";
|
|
2
|
+
import { n as t } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
3
|
+
import { m as n } from "./src-CNRY2AUH.js";
|
|
4
|
+
import { b as r, x as i } from "./chunk-O7XYJQB3-WMQqqzRb.js";
|
|
5
|
+
import { g as a } from "./chunk-ZIGJFQKS-DBdWb0bj.js";
|
|
6
|
+
import { o } from "./chunk-7INBJB4K-CwPgdc2G.js";
|
|
7
|
+
import { i as s, n as c, r as l, t as u } from "./chunk-5DYCD2WN-B9vjeX2u.js";
|
|
8
|
+
import { a as d, c as f, i as p, n as m, r as h, t as g, u as _ } from "./chunk-Z7XXMR3K-CJmsOGTV.js";
|
|
9
|
+
import { r as v, t as y } from "./chunk-UA2S7LBM-DtBatid7.js";
|
|
10
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-3FUC2YCW.mjs
|
|
11
|
+
function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
12
|
+
let n = e.insert("g").attr("class", "root");
|
|
13
|
+
return {
|
|
14
|
+
clusters: n.insert("g").attr("class", "clusters"),
|
|
15
|
+
edgePaths: n.insert("g").attr("class", t),
|
|
16
|
+
edgeLabels: n.insert("g").attr("class", "edgeLabels"),
|
|
17
|
+
nodes: n.insert("g").attr("class", "nodes"),
|
|
18
|
+
rootGroups: n
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
t(b, "createLayoutElementGroups");
|
|
22
|
+
async function x(e, t, n) {
|
|
23
|
+
if (t.label) {
|
|
24
|
+
let { shapeSvg: r, bbox: i } = await o(e, n === void 0 ? t : {
|
|
25
|
+
...t,
|
|
26
|
+
width: n
|
|
27
|
+
});
|
|
28
|
+
t.labelBBox = {
|
|
29
|
+
width: i.width,
|
|
30
|
+
height: i.height
|
|
31
|
+
}, r.remove();
|
|
32
|
+
} else t.labelBBox = {
|
|
33
|
+
width: 0,
|
|
34
|
+
height: 0
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
t(x, "measureGroupLabel");
|
|
38
|
+
async function S(e, t, n) {
|
|
39
|
+
let r = await l(e, t, n), i = r.node()?.getBBox() ?? {
|
|
40
|
+
width: 0,
|
|
41
|
+
height: 0
|
|
42
|
+
};
|
|
43
|
+
return t.width = i.width, t.height = i.height, r;
|
|
44
|
+
}
|
|
45
|
+
t(S, "insertMeasuredNode");
|
|
46
|
+
function C(e, t, n) {
|
|
47
|
+
let r = e, i = /* @__PURE__ */ new Set();
|
|
48
|
+
for (; r;) {
|
|
49
|
+
if (r.dir) return r.dir;
|
|
50
|
+
if (!r.parentId || i.has(r.parentId)) break;
|
|
51
|
+
i.add(r.parentId), r = t.get(r.parentId);
|
|
52
|
+
}
|
|
53
|
+
return n;
|
|
54
|
+
}
|
|
55
|
+
t(C, "resolveNodeDir");
|
|
56
|
+
async function w(t, n, r = {}) {
|
|
57
|
+
let a = new e({
|
|
58
|
+
multigraph: !0,
|
|
59
|
+
compound: !0
|
|
60
|
+
}), o = [...n.edges], s = i(), c = b(t), { edgeLabels: l, nodes: u } = c, f = /* @__PURE__ */ new Map(), p = new Map(n.nodes.map((e) => [e.id, e])), m = n.direction, g = t.node() != null;
|
|
61
|
+
await Promise.all(n.nodes.map(async (e) => {
|
|
62
|
+
if (e.isGroup) {
|
|
63
|
+
if (g) {
|
|
64
|
+
let t = r.unwrapGroupLabels && e.labelType !== "markdown";
|
|
65
|
+
await x(u, e, t ? Infinity : void 0);
|
|
66
|
+
}
|
|
67
|
+
a.setNode(e.id, { ...e });
|
|
68
|
+
} else {
|
|
69
|
+
if (g) {
|
|
70
|
+
let t = await S(u, e, {
|
|
71
|
+
config: s,
|
|
72
|
+
dir: C(e, p, m)
|
|
73
|
+
});
|
|
74
|
+
f.set(e.id, t);
|
|
75
|
+
}
|
|
76
|
+
a.setNode(e.id, { ...e });
|
|
77
|
+
}
|
|
78
|
+
}));
|
|
79
|
+
for (let e of o) g && h(e) && await d(l, e), a.setEdge(e.start, e.end, { ...e }, e.id), n.edges.some((t) => t.id === e.id) || n.edges.push(e);
|
|
80
|
+
if (globalThis.mermaidCaptureSizes) {
|
|
81
|
+
let { captureNodeSizes: e } = await import("./sizeCapture-INFHLROL-CHXIsPO_.js");
|
|
82
|
+
e(t, n);
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
graph: a,
|
|
86
|
+
groups: c,
|
|
87
|
+
nodeElements: f
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
t(w, "createGraphWithElements");
|
|
91
|
+
var T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ t(() => {
|
|
92
|
+
E.clear(), D.clear(), T.clear();
|
|
93
|
+
}, "clear"), k = /* @__PURE__ */ t((e, t) => {
|
|
94
|
+
let r = E.get(t) || [];
|
|
95
|
+
return n.trace("In isDescendant", t, " ", e, " = ", r.includes(e)), r.includes(e);
|
|
96
|
+
}, "isDescendant"), A = /* @__PURE__ */ t((e, t) => {
|
|
97
|
+
let r = E.get(t) || [];
|
|
98
|
+
return n.info("Descendants of ", t, " is ", r), n.info("Edge is ", e), e.v === t || e.w === t ? !1 : r ? r.includes(e.v) || k(e.v, t) || k(e.w, t) || r.includes(e.w) : (n.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
99
|
+
}, "edgeInCluster"), j = /* @__PURE__ */ t((e, t, r, i) => {
|
|
100
|
+
n.debug("Copying children of ", e, "root", i, "data", t.node(e), i);
|
|
101
|
+
let a = t.children(e) || [];
|
|
102
|
+
e !== i && a.push(e), n.debug("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
|
|
103
|
+
if (t.children(a).length > 0) j(a, t, r, i);
|
|
104
|
+
else {
|
|
105
|
+
let o = t.node(a);
|
|
106
|
+
n.info("cp ", a, " to ", i, " with parent ", e), r.setNode(a, o), i !== t.parent(a) && (n.debug("Setting parent", a, t.parent(a)), r.setParent(a, t.parent(a))), e !== i && a !== e ? (n.debug("Setting parent", a, e), r.setParent(a, e)) : (n.info("In copy ", e, "root", i, "data", t.node(e), i), n.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
|
|
107
|
+
let s = t.edges(a);
|
|
108
|
+
n.debug("Copying Edges", s), s.forEach((a) => {
|
|
109
|
+
n.info("Edge", a);
|
|
110
|
+
let o = t.edge(a.v, a.w, a.name);
|
|
111
|
+
n.info("Edge data", o, i);
|
|
112
|
+
try {
|
|
113
|
+
A(a, i) ? (n.info("Copying as ", a.v, a.w, o, a.name), r.setEdge(a.v, a.w, o, a.name), n.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : n.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
|
|
114
|
+
} catch (e) {
|
|
115
|
+
n.error(e);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
n.debug("Removing node", a), t.removeNode(a);
|
|
120
|
+
});
|
|
121
|
+
}, "copy"), M = /* @__PURE__ */ t((e, t) => {
|
|
122
|
+
let n = t.children(e), r = [...n];
|
|
123
|
+
for (let i of n) D.set(i, e), r = [...r, ...M(i, t)];
|
|
124
|
+
return r;
|
|
125
|
+
}, "extractDescendants"), N = /* @__PURE__ */ t((e, t, n) => {
|
|
126
|
+
let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
|
|
127
|
+
v: e.v === t ? n : e.v,
|
|
128
|
+
w: e.w === t ? t : e.w
|
|
129
|
+
})), o = i.map((e) => ({
|
|
130
|
+
v: e.v,
|
|
131
|
+
w: e.w
|
|
132
|
+
}));
|
|
133
|
+
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
134
|
+
}, "findCommonEdges"), P = /* @__PURE__ */ t((e, t, r) => {
|
|
135
|
+
let i = t.children(e);
|
|
136
|
+
if (n.trace("Searching children of id ", e, i), i.length < 1) return e;
|
|
137
|
+
let a;
|
|
138
|
+
for (let e of i) {
|
|
139
|
+
let n = P(e, t, r), i = N(t, r, n);
|
|
140
|
+
if (n) if (i.length > 0) a = n;
|
|
141
|
+
else return n;
|
|
142
|
+
}
|
|
143
|
+
return a;
|
|
144
|
+
}, "findNonClusterChild"), F = /* @__PURE__ */ t((e) => !T.has(e) || !T.get(e).externalConnections ? e : T.has(e) ? T.get(e).id : e, "getAnchorId"), I = /* @__PURE__ */ t((e, t) => {
|
|
145
|
+
if (!e || t > 10) {
|
|
146
|
+
n.debug("Opting out, no graph ");
|
|
147
|
+
return;
|
|
148
|
+
} else n.debug("Opting in, graph ");
|
|
149
|
+
e.nodes().forEach(function(t) {
|
|
150
|
+
e.children(t).length > 0 && (n.debug("Cluster identified", t, " Replacement id in edges: ", P(t, e, t)), E.set(t, M(t, e)), T.set(t, {
|
|
151
|
+
id: P(t, e, t),
|
|
152
|
+
clusterData: e.node(t)
|
|
153
|
+
}));
|
|
154
|
+
}), e.nodes().forEach(function(t) {
|
|
155
|
+
let r = e.children(t), i = e.edges();
|
|
156
|
+
r.length > 0 ? (n.debug("Cluster identified", t, E), i.forEach((e) => {
|
|
157
|
+
k(e.v, t) ^ k(e.w, t) && (n.debug("Edge: ", e, " leaves cluster ", t), n.debug("Descendants of XXX ", t, ": ", E.get(t)), T.get(t).externalConnections = !0);
|
|
158
|
+
})) : n.debug("Not a cluster ", t, E);
|
|
159
|
+
});
|
|
160
|
+
for (let t of T.keys()) {
|
|
161
|
+
let n = T.get(t).id, r = e.parent(n);
|
|
162
|
+
r !== t && T.has(r) && !T.get(r).externalConnections && (T.get(t).id = r);
|
|
163
|
+
let i = e.edges().some((e) => e.v === t);
|
|
164
|
+
if (n && T.get(t)?.externalConnections && i && B(e, n, t)) {
|
|
165
|
+
let r = V(e, t, e.parent(n));
|
|
166
|
+
r && (T.get(t).id = r);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
e.edges().forEach(function(t) {
|
|
170
|
+
let r = e.edge(t);
|
|
171
|
+
n.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), n.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
|
|
172
|
+
let i = t.v, a = t.w;
|
|
173
|
+
if (n.debug("Fix XXX", T, "ids:", t.v, t.w, "Translating: ", T.get(t.v), " --- ", T.get(t.w)), T.get(t.v) || T.get(t.w)) {
|
|
174
|
+
if (n.debug("Fixing and trying - removing XXX", t.v, t.w, t.name), i = F(t.v), a = F(t.w), e.removeEdge(t.v, t.w, t.name), i !== t.v) {
|
|
175
|
+
let n = e.parent(i);
|
|
176
|
+
T.get(n).externalConnections = !0, r.fromCluster = t.v;
|
|
177
|
+
}
|
|
178
|
+
if (a !== t.w) {
|
|
179
|
+
let n = e.parent(a);
|
|
180
|
+
T.get(n).externalConnections = !0, r.toCluster = t.w;
|
|
181
|
+
}
|
|
182
|
+
n.debug("Fix Replacing with XXX", i, a, t.name), e.setEdge(i, a, r, t.name);
|
|
183
|
+
}
|
|
184
|
+
}), L(e, 0), n.trace(T);
|
|
185
|
+
}, "adjustClustersAndEdges"), L = /* @__PURE__ */ t((t, r) => {
|
|
186
|
+
if (r > 10) {
|
|
187
|
+
n.error("Bailing out");
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
let i = t.nodes(), a = !1;
|
|
191
|
+
for (let e of i) {
|
|
192
|
+
let n = t.children(e);
|
|
193
|
+
a ||= n.length > 0;
|
|
194
|
+
}
|
|
195
|
+
if (!a) {
|
|
196
|
+
n.debug("Done, no node has children", t.nodes());
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
n.debug("Nodes = ", i, r);
|
|
200
|
+
for (let a of i) if (n.debug("Extracting node", a, T, T.has(a) && !T.get(a).externalConnections, !t.parent(a), t.node(a), t.children("D"), " Depth ", r), !T.has(a)) n.debug("Not a cluster", a, r);
|
|
201
|
+
else if (!T.get(a).externalConnections && t.children(a) && t.children(a).length > 0) {
|
|
202
|
+
n.debug("Cluster without external connections, without a parent and with children", a, r);
|
|
203
|
+
let i = t.graph().rankdir === "TB" ? "LR" : "TB";
|
|
204
|
+
T.get(a)?.clusterData?.dir && (i = T.get(a).clusterData.dir, n.debug("Fixing dir", T.get(a).clusterData.dir, i));
|
|
205
|
+
let o = new e({
|
|
206
|
+
multigraph: !0,
|
|
207
|
+
compound: !0
|
|
208
|
+
}).setGraph({
|
|
209
|
+
rankdir: i,
|
|
210
|
+
nodesep: 50,
|
|
211
|
+
ranksep: 50,
|
|
212
|
+
marginx: 8,
|
|
213
|
+
marginy: 8
|
|
214
|
+
}).setDefaultEdgeLabel(function() {
|
|
215
|
+
return {};
|
|
216
|
+
});
|
|
217
|
+
j(a, t, o, a), t.setNode(a, {
|
|
218
|
+
clusterNode: !0,
|
|
219
|
+
id: a,
|
|
220
|
+
clusterData: T.get(a).clusterData,
|
|
221
|
+
label: T.get(a).label,
|
|
222
|
+
graph: o
|
|
223
|
+
});
|
|
224
|
+
} else n.debug("Cluster ** ", a, " **not meeting the criteria !externalConnections:", !T.get(a).externalConnections, " no parent: ", !t.parent(a), " children ", t.children(a) && t.children(a).length > 0, t.children("D"), r), n.debug(T);
|
|
225
|
+
i = t.nodes(), n.debug("New list of nodes", i);
|
|
226
|
+
for (let e of i) {
|
|
227
|
+
let i = t.node(e);
|
|
228
|
+
n.debug(" Now next level", e, i), i?.clusterNode && L(i.graph, r + 1);
|
|
229
|
+
}
|
|
230
|
+
}, "extractor"), R = /* @__PURE__ */ t((e, t) => {
|
|
231
|
+
if (t.length === 0) return [];
|
|
232
|
+
let n = Object.assign([], t);
|
|
233
|
+
return t.forEach((t) => {
|
|
234
|
+
let r = R(e, e.children(t));
|
|
235
|
+
n = [...n, ...r];
|
|
236
|
+
}), n;
|
|
237
|
+
}, "sorter"), z = /* @__PURE__ */ t((e) => R(e, e.children()), "sortNodesByHierarchy"), B = /* @__PURE__ */ t((e, t, n) => {
|
|
238
|
+
let r = e.parent(t);
|
|
239
|
+
for (; r && r !== n;) {
|
|
240
|
+
let t = T.get(r);
|
|
241
|
+
if (t && !t.externalConnections) return !0;
|
|
242
|
+
r = e.parent(r);
|
|
243
|
+
}
|
|
244
|
+
return !1;
|
|
245
|
+
}, "isNodeInExtractableCluster"), V = /* @__PURE__ */ t((e, t, n) => {
|
|
246
|
+
let r = e.children(t) ?? [];
|
|
247
|
+
for (let i of r) {
|
|
248
|
+
if (i === n || k(i, n)) continue;
|
|
249
|
+
let r = P(i, e, t);
|
|
250
|
+
if (r && !B(e, r, t)) return r;
|
|
251
|
+
}
|
|
252
|
+
return null;
|
|
253
|
+
}, "findSafeAnchorNode");
|
|
254
|
+
function H({ prepareLayout: e, measureLayout: n, runLayoutCore: r, paintLayout: i, afterPaint: a, paintOptions: o }) {
|
|
255
|
+
let s = n ?? W;
|
|
256
|
+
return /* @__PURE__ */ t(async function(t, n, c, l) {
|
|
257
|
+
let u = n.select("g");
|
|
258
|
+
(c?.insertMarkers ?? f)(u, t.markers, t.type, t.diagramId), U();
|
|
259
|
+
let d = {
|
|
260
|
+
element: u,
|
|
261
|
+
helpers: c,
|
|
262
|
+
options: l
|
|
263
|
+
};
|
|
264
|
+
d.preparedLayout = await e?.(t, d);
|
|
265
|
+
let p = await s(t, d), m = await r(t, d), h = {
|
|
266
|
+
...d,
|
|
267
|
+
measure: p
|
|
268
|
+
};
|
|
269
|
+
i ? await i(t, h, m) : await G(t, h, o), await a?.(t, h, m);
|
|
270
|
+
}, "render");
|
|
271
|
+
}
|
|
272
|
+
t(H, "createCommonLayoutRenderer");
|
|
273
|
+
function U() {
|
|
274
|
+
u(), g(), y(), O();
|
|
275
|
+
}
|
|
276
|
+
t(U, "clearLayoutRenderState");
|
|
277
|
+
async function W(e, { element: t }, n) {
|
|
278
|
+
return await w(t, e, n);
|
|
279
|
+
}
|
|
280
|
+
t(W, "defaultMeasureLayout");
|
|
281
|
+
async function G(e, t, n = {}) {
|
|
282
|
+
let { measure: r } = t, { groups: i } = r;
|
|
283
|
+
for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await K(i, r, t, n);
|
|
284
|
+
let a = J(e.nodes);
|
|
285
|
+
for (let r of e.edges) Y(r, n) || await X(i, r, a, e, n, t);
|
|
286
|
+
}
|
|
287
|
+
t(G, "paintLayoutData");
|
|
288
|
+
async function K(e, t, n, r) {
|
|
289
|
+
t.clusterNode ? s(t) : q(t, n, r) ? await v(e.clusters, t) : s(t);
|
|
290
|
+
}
|
|
291
|
+
t(K, "paintLayoutNode");
|
|
292
|
+
function q(e, t, n) {
|
|
293
|
+
return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
|
|
294
|
+
}
|
|
295
|
+
t(q, "shouldPaintAsCluster");
|
|
296
|
+
function J(e) {
|
|
297
|
+
let t = /* @__PURE__ */ new Map();
|
|
298
|
+
for (let n of e) n?.id && t.set(n.id, n);
|
|
299
|
+
return t;
|
|
300
|
+
}
|
|
301
|
+
t(J, "buildNodeLookup");
|
|
302
|
+
function Y(e, t) {
|
|
303
|
+
return e.isLayoutOnly || !!t.skipEdge?.(e);
|
|
304
|
+
}
|
|
305
|
+
t(Y, "shouldSkipPaintEdge");
|
|
306
|
+
async function X(e, t, n, r, i, a) {
|
|
307
|
+
let o = p(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, Z(t.start, t, n, a, i), Z(t.end, t, n, a, i), r.diagramId, Q(t, i));
|
|
308
|
+
h(t) && (m.has(t.id) || await d(e.edgeLabels, t), $(t, o));
|
|
309
|
+
}
|
|
310
|
+
t(X, "paintLayoutEdge");
|
|
311
|
+
function Z(e, t, n, r, i) {
|
|
312
|
+
return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
|
|
313
|
+
}
|
|
314
|
+
t(Z, "getRenderedNode");
|
|
315
|
+
function Q(e, t) {
|
|
316
|
+
return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
|
|
317
|
+
}
|
|
318
|
+
t(Q, "shouldSkipIntersect");
|
|
319
|
+
function $(e, t) {
|
|
320
|
+
let i = t?.updatedPath ?? t?.originalPath, { subGraphTitleTotalMargin: o } = c({ flowchart: r().flowchart ?? {} });
|
|
321
|
+
if (e.label) {
|
|
322
|
+
let r = m.get(e.id), s = e.x, c = e.y;
|
|
323
|
+
if (i) {
|
|
324
|
+
let r = a.calcLabelPosition(i);
|
|
325
|
+
n.debug("Moving label " + e.label + " from (", s, ",", c, ") to (", r.x, ",", r.y, ") abc88"), t?.updatedPath && (s = r.x, c = r.y);
|
|
326
|
+
}
|
|
327
|
+
r.attr("transform", `translate(${s}, ${c + o / 2})`);
|
|
328
|
+
}
|
|
329
|
+
if (e?.startLabelLeft) {
|
|
330
|
+
let t = _.get(e.id).startLeft, n = e?.x, r = e?.y;
|
|
331
|
+
if (i) {
|
|
332
|
+
let t = a.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", i);
|
|
333
|
+
n = t.x, r = t.y;
|
|
334
|
+
}
|
|
335
|
+
t.attr("transform", `translate(${n}, ${r})`);
|
|
336
|
+
}
|
|
337
|
+
if (e.startLabelRight) {
|
|
338
|
+
let t = _.get(e.id).startRight, n = e.x, r = e.y;
|
|
339
|
+
if (i) {
|
|
340
|
+
let t = a.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", i);
|
|
341
|
+
n = t.x, r = t.y;
|
|
342
|
+
}
|
|
343
|
+
t.attr("transform", `translate(${n}, ${r})`);
|
|
344
|
+
}
|
|
345
|
+
if (e.endLabelLeft) {
|
|
346
|
+
let t = _.get(e.id).endLeft, n = e.x, r = e.y;
|
|
347
|
+
if (i) {
|
|
348
|
+
let t = a.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", i);
|
|
349
|
+
n = t.x, r = t.y;
|
|
350
|
+
}
|
|
351
|
+
t.attr("transform", `translate(${n}, ${r})`);
|
|
352
|
+
}
|
|
353
|
+
if (e.endLabelRight) {
|
|
354
|
+
let t = _.get(e.id).endRight, n = e.x, r = e.y;
|
|
355
|
+
if (i) {
|
|
356
|
+
let t = a.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", i);
|
|
357
|
+
n = t.x, r = t.y;
|
|
358
|
+
}
|
|
359
|
+
t.attr("transform", `translate(${n}, ${r})`);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
t($, "positionRenderedEdgeLabel");
|
|
363
|
+
//#endregion
|
|
364
|
+
export { W as a, z as c, b as i, T as n, P as o, H as r, S as s, I as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
|
+
import { m as t } from "./src-CNRY2AUH.js";
|
|
3
|
+
import { u as n } from "./chunk-ZIGJFQKS-DBdWb0bj.js";
|
|
4
|
+
import { s as r } from "./chunk-7INBJB4K-CwPgdc2G.js";
|
|
5
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-5DYCD2WN.mjs
|
|
6
|
+
var i = /* @__PURE__ */ e(({ flowchart: e }) => {
|
|
7
|
+
let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
|
|
8
|
+
return {
|
|
9
|
+
subGraphTitleTopMargin: t,
|
|
10
|
+
subGraphTitleBottomMargin: n,
|
|
11
|
+
subGraphTitleTotalMargin: t + n
|
|
12
|
+
};
|
|
13
|
+
}, "getSubGraphTitleMargins"), a = /* @__PURE__ */ new Map();
|
|
14
|
+
async function o(e, t, i) {
|
|
15
|
+
let o, s;
|
|
16
|
+
t.shape === "rect" && (t.rx && t.ry ? t.shape = "roundedRect" : t.shape = "squareRect");
|
|
17
|
+
let c = t.shape ? r[t.shape] : void 0;
|
|
18
|
+
if (!c) throw Error(`No such shape: ${t.shape}. Please check your syntax.`);
|
|
19
|
+
if (t.link) {
|
|
20
|
+
let n;
|
|
21
|
+
i.config.securityLevel === "sandbox" ? n = "_top" : t.linkTarget && (n = t.linkTarget || "_blank"), o = e.insert("svg:a").attr("xlink:href", t.link).attr("target", n ?? null), s = await c(o, t, i);
|
|
22
|
+
} else s = await c(e, t, i), o = s;
|
|
23
|
+
return o.attr("data-look", n(t.look)), t.tooltip && s.attr("title", t.tooltip), a.set(t.id, o), t.haveCallback && o.attr("class", o.attr("class") + " clickable"), o;
|
|
24
|
+
}
|
|
25
|
+
e(o, "insertNode");
|
|
26
|
+
var s = /* @__PURE__ */ e((e, t) => {
|
|
27
|
+
a.set(t.id, e);
|
|
28
|
+
}, "setNodeElem"), c = /* @__PURE__ */ e(() => {
|
|
29
|
+
a.clear();
|
|
30
|
+
}, "clear"), l = /* @__PURE__ */ e((e) => {
|
|
31
|
+
let n = a.get(e.id);
|
|
32
|
+
t.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
|
|
33
|
+
let r = e.diff || 0;
|
|
34
|
+
return e.clusterNode ? n.attr("transform", "translate(" + (e.x + r - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : n.attr("transform", "translate(" + e.x + ", " + e.y + ")"), r;
|
|
35
|
+
}, "positionNode");
|
|
36
|
+
//#endregion
|
|
37
|
+
export { s as a, l as i, i as n, o as r, c as t };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-5VM5RSS4.mjs
|
|
3
|
+
var t = /* @__PURE__ */ e(() => "\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n", "getIconStyles");
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
|
+
import { p as t } from "./src-CNRY2AUH.js";
|
|
3
|
+
import { x as n } from "./chunk-O7XYJQB3-WMQqqzRb.js";
|
|
4
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-6AEJRKK7.mjs
|
|
5
|
+
var r = /* @__PURE__ */ e((e) => {
|
|
6
|
+
let { securityLevel: r } = n(), i = t("body");
|
|
7
|
+
return r === "sandbox" && (i = t((t(`#i${e}`).node()?.contentDocument ?? document).body)), i.select(`#${e}`);
|
|
8
|
+
}, "selectSvgElement");
|
|
9
|
+
//#endregion
|
|
10
|
+
export { r as t };
|