@nxgt/material-vue 0.16.0 → 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.
Files changed (157) hide show
  1. package/README.md +4 -0
  2. package/dist/_baseIsEqual-Cj6hHjs0.js +226 -0
  3. package/dist/abnfDiagram-O67JEVCF-Cl_I9xuI.js +89 -0
  4. package/dist/arc-DNNg1pxp.js +80 -0
  5. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
  6. package/dist/architectureDiagram-NJMV4G6O-CVS4UUCi.js +4146 -0
  7. package/dist/array-CApNbSU9.js +6 -0
  8. package/dist/blockDiagram-BEXU5L5S-B5Z0jbc8.js +1946 -0
  9. package/dist/c4Diagram-YGBWAQC7-B6jKsl3h.js +2990 -0
  10. package/dist/{camera-Cbd1TWFd.js → camera-oxz1xItP.js} +4 -4
  11. package/dist/channel-BA1GJyZ7.js +5 -0
  12. package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
  13. package/dist/chunk-3FUC2YCW-CX-v_TQz.js +364 -0
  14. package/dist/chunk-5DYCD2WN-B9vjeX2u.js +37 -0
  15. package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
  16. package/dist/chunk-6AEJRKK7-D9IaQdwq.js +10 -0
  17. package/dist/chunk-742MDFTN-BIhVe9GR.js +275 -0
  18. package/dist/chunk-7INBJB4K-CwPgdc2G.js +4487 -0
  19. package/dist/chunk-7M6MHVWA-Deh_-m6x.js +4256 -0
  20. package/dist/chunk-7PRAP22T-CofnNOEr.js +67 -0
  21. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  22. package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
  23. package/dist/chunk-GNY47TPC-rS2K544k.js +75 -0
  24. package/dist/chunk-GTNCS2PH-BR0O70z_.js +490 -0
  25. package/dist/chunk-GWA4HPMP-DU9lUCZD.js +61 -0
  26. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  27. package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
  28. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  29. package/dist/chunk-MBY4JIJT-HYVRUG_P.js +1847 -0
  30. package/dist/chunk-NETBCI7D-C8amwD_P.js +236 -0
  31. package/dist/chunk-O7XYJQB3-WMQqqzRb.js +3922 -0
  32. package/dist/chunk-UA2S7LBM-DtBatid7.js +363 -0
  33. package/dist/chunk-WEXAMYUT-Cc10h8ed.js +26 -0
  34. package/dist/chunk-XXDRQBXY-B2pGFcse.js +9 -0
  35. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  36. package/dist/chunk-Z7XXMR3K-CJmsOGTV.js +676 -0
  37. package/dist/chunk-ZIGJFQKS-DBdWb0bj.js +1366 -0
  38. package/dist/classDiagram-v2-NBCMYWYE-Caqw5P6A.js +3397 -0
  39. package/dist/{components-DLtnz66n.js → components-IbdMALGv.js} +43465 -18610
  40. package/dist/components.js +5 -5
  41. package/dist/{composables-BJ2GgDD0.js → composables-6zV0t-y7.js} +1 -1
  42. package/dist/composables.js +1 -1
  43. package/dist/cose-bilkent-JH36ORCC-DStMi-eo.js +2251 -0
  44. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
  45. package/dist/cynefinDiagram-VND7K2PF-0Mq0e5NQ.js +349 -0
  46. package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
  47. package/dist/dagre-6A5THRUB-EHXNn6Wq.js +2192 -0
  48. package/dist/defaultLocale-DnzPsei5.js +201 -0
  49. package/dist/diagram-22UHCM2B-B3RAQlqQ.js +5084 -0
  50. package/dist/diagram-3UASUU5V-BznCZHss.js +525 -0
  51. package/dist/diagram-ATOU4E4O-DtIUxSAn.js +432 -0
  52. package/dist/diagram-CDSNMT55-DOjN3BR2.js +301 -0
  53. package/dist/diagram-MLGK6HIB-Dx2UboD6.js +134 -0
  54. package/dist/diagram-MPIPVDR6-DnPL3RV0.js +214 -0
  55. package/dist/dist-D9zvfe2i.js +59 -0
  56. package/dist/{dnd-Cmcrm28l.js → dnd-CaDeYjQx.js} +1 -1
  57. package/dist/dnd.js +1 -1
  58. package/dist/ebnfDiagram-ZINNZB2B-BNbxCL0b.js +100 -0
  59. package/dist/elk-276RUBZZ-B9WeHolc.js +47597 -0
  60. package/dist/erDiagram-OPXOYQCR-DReZElBu.js +1970 -0
  61. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
  62. package/dist/flowDiagram-KWPJA3E3-DYss4vEI.js +17 -0
  63. package/dist/ganttDiagram-FUAMR5RP-64EZDDmC.js +3083 -0
  64. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
  65. package/dist/gitGraphDiagram-X574FWY7-DmMMrp5A.js +729 -0
  66. package/dist/graphlib-CrmIPC4m.js +372 -0
  67. package/dist/{i18n-DmMS3ID3.js → i18n-OBzfa-B7.js} +233 -924
  68. package/dist/i18n.js +2 -2
  69. package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
  70. package/dist/infoDiagram-VRGFBTTK-XlBUAu0t.js +20 -0
  71. package/dist/init-MwSGRDIl.js +15 -0
  72. package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
  73. package/dist/isEmpty-CMjyBU-a.js +136 -0
  74. package/dist/ishikawaDiagram-OU5B5YK6-C9cMWMPO.js +719 -0
  75. package/dist/journeyDiagram-ZHPQQLJL-DXdfP9BW.js +884 -0
  76. package/dist/kanban-definition-PNTS6WVX-DhOBy3A0.js +976 -0
  77. package/dist/katex-BMQ6LGsM.js +21962 -0
  78. package/dist/lib/components/index.d.ts +4 -0
  79. package/dist/lib/components/ui/chat/chat-composer-mentions.vue.d.ts +13 -0
  80. package/dist/lib/components/ui/chat/chat-composer.vue.d.ts +6 -2
  81. package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
  82. package/dist/lib/components/ui/emoji/emoji-list.vue.d.ts +11 -0
  83. package/dist/lib/components/ui/emoji/emoji-picker.vue.d.ts +12 -0
  84. package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
  85. package/dist/lib/components/ui/emoji/index.d.ts +4 -0
  86. package/dist/lib/components/ui/emoji/types.d.ts +6 -0
  87. package/dist/lib/components/ui/markdown/index.d.ts +2 -0
  88. package/dist/lib/components/ui/markdown/markdown.utils.d.ts +10 -0
  89. package/dist/lib/components/ui/markdown/markdown.vue.d.ts +10 -0
  90. package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
  91. package/dist/lib/components/ui/markdown/partials/mermaid-diagram.vue.d.ts +7 -0
  92. package/dist/lib/components/ui/mentions/index.d.ts +4 -0
  93. package/dist/lib/components/ui/mentions/mention-list.vue.d.ts +16 -0
  94. package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
  95. package/dist/lib/components/ui/mentions/types.d.ts +5 -0
  96. package/dist/lib/components/ui/terminal/index.d.ts +3 -0
  97. package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
  98. package/dist/lib/components/ui/terminal/terminal.vue.d.ts +17 -0
  99. package/dist/lib/i18n/resources/en/index.d.ts +7 -0
  100. package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
  101. package/dist/lib/i18n/resources/fr/index.d.ts +7 -0
  102. package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
  103. package/dist/lib/i18n/resources/index.d.ts +14 -0
  104. package/dist/lib/i18n/translator.d.ts +1 -1
  105. package/dist/lib/nuxt/component-names.d.ts +1 -1
  106. package/dist/lib-B9AHrvmh.js +389 -0
  107. package/dist/lib.js +1 -1
  108. package/dist/line-UP6dkL36.js +34 -0
  109. package/dist/linear-bD_QoED_.js +289 -0
  110. package/dist/main.js +9 -9
  111. package/dist/material-vue.css +1 -1
  112. package/dist/merge-B4IBXGaq.js +170 -0
  113. package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
  114. package/dist/mermaid.core-C_Rtflmc.js +1096 -0
  115. package/dist/mindmap-definition-NLK3R4M7-CO6s2Afv.js +1008 -0
  116. package/dist/ordinal-D_ZgubzR.js +65 -0
  117. package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
  118. package/dist/path-DGNPZRdx.js +85 -0
  119. package/dist/{pdf-outline-sidebar-BBXJRwdt.js → pdf-outline-sidebar-D5VedBgk.js} +3 -2
  120. package/dist/{pdf-page-DZyTFukn.js → pdf-page-B1Ze518d.js} +1 -1
  121. package/dist/{pdf-page-list-C3GukJ3_.js → pdf-page-list-CBJziavm.js} +3 -2
  122. package/dist/{pdf-reader-Ci4v2Ff9.js → pdf-reader-Cn1uxtJN.js} +13 -13
  123. package/dist/{pdf-sidebar-Dl8fQStG.js → pdf-sidebar-PXfgGlmq.js} +4 -4
  124. package/dist/{pdf-thumbnail-sidebar-GS_V0PGc.js → pdf-thumbnail-sidebar-7agqWsXT.js} +4 -3
  125. package/dist/{pdf-toolbar-D37w-WIK.js → pdf-toolbar-Blm9CFvh.js} +22 -21
  126. package/dist/pegDiagram-GJSIUBJH-gvsGke9W.js +94 -0
  127. package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
  128. package/dist/pieDiagram-5QR66LMP-DLBcErnI.js +205 -0
  129. package/dist/quadrantDiagram-O4NWA36T-Bn3CmGxM.js +2001 -0
  130. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
  131. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
  132. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
  133. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
  134. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
  135. package/dist/railroadDiagram-XR7U4H2S-DLeBxWbV.js +76 -0
  136. package/dist/requirementDiagram-PLB6GJNP-JpWB5sEv.js +2228 -0
  137. package/dist/rolldown-runtime-CWhphoD1.js +23 -0
  138. package/dist/rough.esm-rcMoXTJj.js +1352 -0
  139. package/dist/sankeyDiagram-IPEJSGJF-a4rFl5rR.js +970 -0
  140. package/dist/sequenceDiagram-PO4LG4MO-CjUigcL2.js +4200 -0
  141. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  142. package/dist/src-CNRY2AUH.js +2142 -0
  143. package/dist/stateDiagram-v2-GCMORJYK-DJkVDIb0.js +2143 -0
  144. package/dist/{stx-player-C0FOaRjU.js → stx-player-rs3uH0iI.js} +17 -17
  145. package/dist/swimlanes-2SLR337P-D7Ff0hLr.js +4763 -0
  146. package/dist/swimlanesDiagram-TC7HE7FX-DZZ9d76C.js +28 -0
  147. package/dist/timeline-definition-EJHVYXUP-C0aHlt9K.js +1073 -0
  148. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
  149. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
  150. package/dist/usecaseDiagram-POWQR4AR-BrRAt7Wu.js +9932 -0
  151. package/dist/vennDiagram-UO4OBE2U-B22Jhju8.js +1880 -0
  152. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
  153. package/dist/wardleyDiagram-VNRHLVJA-Dw4YgRiQ.js +645 -0
  154. package/dist/xychartDiagram-PMCCYNJV-DtuDs9I7.js +2214 -0
  155. package/lib/nuxt/component-names.ts +2 -0
  156. package/package.json +5 -1
  157. package/dist/lib-CT0uRn8S.js +0 -611
@@ -0,0 +1,363 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
2
+ import { m as t, p as n } from "./src-CNRY2AUH.js";
3
+ import { T as r, g as i, x as a } from "./chunk-O7XYJQB3-WMQqqzRb.js";
4
+ import { n as o } from "./chunk-MBY4JIJT-HYVRUG_P.js";
5
+ import { a as s, i as c, t as l } from "./chunk-7PRAP22T-CofnNOEr.js";
6
+ import { s as u } from "./chunk-J5ZVWO5B-CYzz6Pq8.js";
7
+ import { t as d } from "./rough.esm-rcMoXTJj.js";
8
+ import { i as f, n as p, t as m } from "./chunk-7INBJB4K-CwPgdc2G.js";
9
+ import { n as h } from "./chunk-5DYCD2WN-B9vjeX2u.js";
10
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-UA2S7LBM.mjs
11
+ var g = /* @__PURE__ */ e(async (e, r) => {
12
+ let l = a(), { theme: p, themeVariables: m, handDrawnSeed: h } = l, { clusterBkg: g, clusterBorder: _, borderColorArray: v } = m, y = _, { labelStyles: b, nodeStyles: x, borderStyles: S, backgroundStyles: C } = c(r), w = e.insert("g").attr("class", "cluster swimlane " + (r.cssClasses || "")).attr("id", r.id).attr("data-id", r.id).attr("data-et", "cluster").attr("data-look", r.look);
13
+ u(w, r.colorIndex, p, v);
14
+ let T = i(l.flowchart.htmlLabels), E = r.direction === "LR", D = w.insert("g").attr("class", "cluster-label swimlane-label"), O = await o(D, r.label, {
15
+ style: r.labelStyle,
16
+ useHtmlLabels: T,
17
+ isNode: !0,
18
+ width: r.width
19
+ }), k = O.getBBox();
20
+ if (T) {
21
+ let e = O.children[0], t = n(O);
22
+ k = e.getBoundingClientRect(), t.attr("width", k.width), t.attr("height", k.height);
23
+ }
24
+ let A = r.padding ?? 0, j = r.width <= k.width + A ? k.width + A : r.width;
25
+ r.width <= k.width + A ? r.diff = (j - r.width) / 2 - A : r.diff = -A;
26
+ let M = r.height, N = r.y - M / 2, P = r.y + M / 2, F = r.x - j / 2, I = r.swimlaneContentTop === void 0 ? N + M / 3 : r.swimlaneContentTop, L = E ? 4 : 0, R = k.height + 2 * L, z, B;
27
+ if (E) {
28
+ let e = Math.max(R, k.height + 2 * L), t = F + e, n = Math.max(0, j - e);
29
+ if (r.look === "handDrawn") {
30
+ let i = d.svg(w), a = s(r, {
31
+ roughness: .7,
32
+ fill: g,
33
+ stroke: y,
34
+ seed: h
35
+ }), o = s(r, {
36
+ roughness: .7,
37
+ fill: "none",
38
+ stroke: y,
39
+ seed: h
40
+ }), c = i.rectangle(F, N, e, M, a);
41
+ z = w.insert(() => c, ":first-child").attr("class", "swimlane-title");
42
+ let l = i.rectangle(t, N, n, M, o);
43
+ B = w.insert(() => l, ":first-child").attr("class", "swimlane-body"), z.select("path:nth-child(2)").attr("style", S.join(";")), z.select("path").attr("style", C.join(";").replace("fill", "stroke"));
44
+ } else z = w.insert("rect", ":first-child"), B = w.insert("rect", ":first-child"), z.attr("class", "swimlane-title").attr("style", x).attr("x", F).attr("y", N).attr("width", e).attr("height", M).attr("fill", g).attr("stroke", y), B.attr("class", "swimlane-body").attr("style", x).attr("x", t).attr("y", N).attr("width", n).attr("height", M).attr("fill", "none").attr("stroke", y);
45
+ let i = F + e / 2, a = r.y;
46
+ D.attr("transform", `translate(${i}, ${a}) rotate(-90) translate(${-k.width / 2}, ${-k.height / 2})`);
47
+ } else {
48
+ let e = Math.max(0, I - N), t = Math.min(R, e), n = N + t, i = Math.max(0, P - n), a = r.x - j / 2;
49
+ if (r.look === "handDrawn") {
50
+ let e = d.svg(w), o = s(r, {
51
+ roughness: .7,
52
+ fill: g,
53
+ stroke: y,
54
+ fillWeight: 3,
55
+ seed: h
56
+ }), c = s(r, {
57
+ roughness: .7,
58
+ fill: "none",
59
+ stroke: y,
60
+ seed: h
61
+ }), l = e.rectangle(a, N, j, t, o);
62
+ z = w.insert(() => l, ":first-child").attr("class", "swimlane-title");
63
+ let u = e.rectangle(a, n, j, i, c);
64
+ B = w.insert(() => u, ":first-child").attr("class", "swimlane-body"), z.select("path:nth-child(2)").attr("style", S.join(";")), z.select("path").attr("style", C.join(";").replace("fill", "stroke"));
65
+ } else z = w.insert("rect", ":first-child"), B = w.insert("rect", ":first-child"), z.attr("class", "swimlane-title").attr("style", x).attr("x", a).attr("y", N).attr("width", j).attr("height", t).attr("fill", g).attr("stroke", y), B.attr("class", "swimlane-body").attr("style", x).attr("x", a).attr("y", n).attr("width", j).attr("height", i).attr("fill", "none").attr("stroke", y);
66
+ let o = r.x - k.width / 2, c = N + (t - k.height) / 2;
67
+ D.attr("transform", `translate(${o}, ${c})`);
68
+ }
69
+ if (t.trace("Swimlane data ", r, JSON.stringify(r)), b) {
70
+ let e = D.select("span");
71
+ e && e.attr("style", b);
72
+ }
73
+ return r.offsetX = 0, r.width = j, r.height = M, r.offsetY = k.height - A / 2, r.intersect = function(e) {
74
+ return f(r, e);
75
+ }, {
76
+ cluster: w,
77
+ labelBBox: k
78
+ };
79
+ }, "swimlane"), _ = /* @__PURE__ */ e(async (e, i) => {
80
+ t.info("Creating subgraph rect for ", i.id, i);
81
+ let l = a(), { theme: g, themeVariables: _, handDrawnSeed: v } = l, { clusterBkg: y, clusterBorder: b, borderColorArray: x } = _, { labelStyles: S, nodeStyles: C, borderStyles: w, backgroundStyles: T } = c(i), E = e.insert("g").attr("class", "cluster " + i.cssClasses).attr("id", i.domId).attr("data-look", i.look);
82
+ u(E, i.colorIndex, g, x);
83
+ let D = r(l), O = E.insert("g").attr("class", "cluster-label "), k;
84
+ k = i.labelType === "markdown" ? await o(O, i.label, {
85
+ style: i.labelStyle,
86
+ useHtmlLabels: D,
87
+ isNode: !0,
88
+ width: i.width
89
+ }) : await m(O, i.label, i.labelStyle || "", !1, !0);
90
+ let A = k.getBBox();
91
+ if (r(l)) {
92
+ let e = k.children[0], t = n(k);
93
+ A = e.getBoundingClientRect(), t.attr("width", A.width), t.attr("height", A.height);
94
+ }
95
+ let j = i.width <= A.width + i.padding ? A.width + i.padding : i.width;
96
+ i.width <= A.width + i.padding ? i.diff = (j - i.width) / 2 - i.padding : i.diff = -i.padding;
97
+ let M = i.height, N = i.x - j / 2, P = i.y - M / 2;
98
+ t.trace("Data ", i, JSON.stringify(i));
99
+ let F;
100
+ if (i.look === "handDrawn") {
101
+ let e = d.svg(E), n = s(i, {
102
+ roughness: .7,
103
+ fill: y,
104
+ stroke: b,
105
+ fillWeight: 3,
106
+ seed: v
107
+ }), r = e.path(p(N, P, j, M, 0), n);
108
+ F = E.insert(() => (t.debug("Rough node insert CXC", r), r), ":first-child"), F.select("path:nth-child(2)").attr("style", w.join(";")), F.select("path").attr("style", T.join(";").replace("fill", "stroke"));
109
+ } else F = E.insert("rect", ":first-child"), F.attr("style", C).attr("rx", i.rx).attr("ry", i.ry).attr("x", N).attr("y", P).attr("width", j).attr("height", M);
110
+ let { subGraphTitleTopMargin: I } = h(l);
111
+ if (O.attr("transform", `translate(${i.x - A.width / 2}, ${i.y - i.height / 2 + I})`), S) {
112
+ let e = O.select("span");
113
+ e && e.attr("style", S);
114
+ }
115
+ let L = F.node().getBBox();
116
+ return i.offsetX = 0, i.width = L.width, i.height = L.height, i.offsetY = A.height - i.padding / 2, i.intersect = function(e) {
117
+ return f(i, e);
118
+ }, {
119
+ cluster: E,
120
+ labelBBox: A
121
+ };
122
+ }, "rect"), v = /* @__PURE__ */ e((e, t) => {
123
+ let n = e.insert("g").attr("class", "note-cluster").attr("id", t.domId), r = n.insert("rect", ":first-child"), i = 0 * t.padding, a = i / 2;
124
+ r.attr("rx", t.rx).attr("ry", t.ry).attr("x", t.x - t.width / 2 - a).attr("y", t.y - t.height / 2 - a).attr("width", t.width + i).attr("height", t.height + i).attr("fill", "none");
125
+ let o = r.node().getBBox();
126
+ return t.width = o.width, t.height = o.height, t.intersect = function(e) {
127
+ return f(t, e);
128
+ }, {
129
+ cluster: n,
130
+ labelBBox: {
131
+ width: 0,
132
+ height: 0
133
+ }
134
+ };
135
+ }, "noteGroup"), y = /* @__PURE__ */ e(async (e, t) => {
136
+ let i = a(), { theme: o, themeVariables: s, handDrawnSeed: c } = i, { altBackground: l, borderColorArray: h, compositeBackground: g, compositeTitleBackground: _, nodeBorder: v } = s, y = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-id", t.id).attr("data-look", t.look);
137
+ u(y, t.colorIndex, o, h);
138
+ let b = y.insert("g", ":first-child"), x = y.insert("g").attr("class", "cluster-label"), S = y.append("rect"), C = await m(x, t.label, t.labelStyle, void 0, !0), w = C.getBBox();
139
+ if (r(i)) {
140
+ let e = C.children[0], t = n(C);
141
+ w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
142
+ }
143
+ let T = 0 * t.padding, E = T / 2, D = (t.width <= w.width + t.padding ? w.width + t.padding : t.width) + T;
144
+ t.width <= w.width + t.padding ? t.diff = (D - t.width) / 2 - t.padding : t.diff = -t.padding;
145
+ let O = t.height + T, k = t.height + T - w.height - 6, A = t.x - D / 2, j = t.y - O / 2;
146
+ t.width = D;
147
+ let M = t.y - t.height / 2 - E + w.height + 2, N;
148
+ if (t.look === "handDrawn") {
149
+ let e = t.cssClasses.includes("statediagram-cluster-alt"), n = d.svg(y), r = t.rx || t.ry ? n.path(p(A, j, D, O, 10), {
150
+ roughness: .7,
151
+ fill: _,
152
+ fillStyle: "solid",
153
+ stroke: v,
154
+ seed: c
155
+ }) : n.rectangle(A, j, D, O, { seed: c });
156
+ N = y.insert(() => r, ":first-child");
157
+ let i = n.rectangle(A, M, D, k, {
158
+ fill: e ? l : g,
159
+ fillStyle: e ? "hachure" : "solid",
160
+ stroke: v,
161
+ seed: c
162
+ });
163
+ N = y.insert(() => r, ":first-child"), S = y.insert(() => i), N.attr("class", "outer"), S.attr("class", "inner");
164
+ } else N = b.insert("rect", ":first-child"), N.attr("class", "outer").attr("x", A).attr("y", j).attr("width", D).attr("height", O).attr("data-look", t.look), S.attr("class", "inner").attr("x", A).attr("y", M).attr("width", D).attr("height", k);
165
+ return x.attr("transform", `translate(${t.x - w.width / 2}, ${j + 1 - (r(i) ? 0 : 3)})`), t.height = N.node().getBBox().height, t.offsetX = 0, t.offsetY = w.height - t.padding / 2, t.labelBBox = w, t.intersect = function(e) {
166
+ return f(t, e);
167
+ }, {
168
+ cluster: y,
169
+ labelBBox: w
170
+ };
171
+ }, "roundedWithTitle"), b = /* @__PURE__ */ e(async (e, i) => {
172
+ t.info("Creating subgraph rect for ", i.id, i);
173
+ let l = a(), { themeVariables: u, handDrawnSeed: m } = l, { clusterBkg: g, clusterBorder: _ } = u, { labelStyles: v, nodeStyles: y, borderStyles: b, backgroundStyles: x } = c(i), S = e.insert("g").attr("class", "cluster " + i.cssClasses).attr("id", i.domId).attr("data-look", i.look), C = r(l), w = S.insert("g").attr("class", "cluster-label "), T = await o(w, i.label, {
174
+ style: i.labelStyle,
175
+ useHtmlLabels: C,
176
+ isNode: !0,
177
+ width: i.width
178
+ }), E = T.getBBox();
179
+ if (r(l)) {
180
+ let e = T.children[0], t = n(T);
181
+ E = e.getBoundingClientRect(), t.attr("width", E.width), t.attr("height", E.height);
182
+ }
183
+ let D = i.width <= E.width + i.padding ? E.width + i.padding : i.width;
184
+ i.width <= E.width + i.padding ? i.diff = (D - i.width) / 2 - i.padding : i.diff = -i.padding;
185
+ let O = i.height, k = i.x - D / 2, A = i.y - O / 2;
186
+ t.trace("Data ", i, JSON.stringify(i));
187
+ let j;
188
+ if (i.look === "handDrawn") {
189
+ let e = d.svg(S), n = s(i, {
190
+ roughness: .7,
191
+ fill: g,
192
+ stroke: _,
193
+ fillWeight: 4,
194
+ seed: m
195
+ }), r = e.path(p(k, A, D, O, i.rx), n);
196
+ j = S.insert(() => (t.debug("Rough node insert CXC", r), r), ":first-child"), j.select("path:nth-child(2)").attr("style", b.join(";")), j.select("path").attr("style", x.join(";").replace("fill", "stroke"));
197
+ } else j = S.insert("rect", ":first-child"), j.attr("style", y).attr("rx", i.rx).attr("ry", i.ry).attr("x", k).attr("y", A).attr("width", D).attr("height", O);
198
+ let { subGraphTitleTopMargin: M } = h(l);
199
+ if (w.attr("transform", `translate(${i.x - E.width / 2}, ${i.y - i.height / 2 + M})`), v) {
200
+ let e = w.select("span");
201
+ e && e.attr("style", v);
202
+ }
203
+ let N = j.node().getBBox();
204
+ return i.offsetX = 0, i.width = N.width, i.height = N.height, i.offsetY = E.height - i.padding / 2, i.intersect = function(e) {
205
+ return f(i, e);
206
+ }, {
207
+ cluster: S,
208
+ labelBBox: E
209
+ };
210
+ }, "kanbanSection"), x = /* @__PURE__ */ e((e, t) => {
211
+ let { theme: n, themeVariables: r, handDrawnSeed: i } = a(), { altBackground: o, nodeBorder: s, borderColorArray: c } = r, l = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-look", t.look);
212
+ u(l, t.colorIndex, n, c);
213
+ let p = l.insert("g", ":first-child"), m = 0 * t.padding, h = t.width + m;
214
+ t.diff = -t.padding;
215
+ let g = t.height + m, _ = t.x - h / 2, v = t.y - g / 2;
216
+ t.width = h;
217
+ let y;
218
+ if (t.look === "handDrawn") {
219
+ let e = d.svg(l).rectangle(_, v, h, g, {
220
+ fill: o ?? "#efefef",
221
+ fillStyle: "solid",
222
+ roughness: .5,
223
+ strokeLineDash: [5],
224
+ stroke: s,
225
+ seed: i
226
+ });
227
+ y = l.insert(() => e, ":first-child").attr("class", "divider");
228
+ } else {
229
+ y = p.insert("rect", ":first-child");
230
+ let e = "outer";
231
+ e = (t.look, "divider"), y.attr("class", e).attr("x", _).attr("y", v).attr("width", h).attr("height", g).attr("data-look", t.look);
232
+ }
233
+ return t.height = y.node().getBBox().height, t.offsetX = 0, t.offsetY = 0, t.intersect = function(e) {
234
+ return f(t, e);
235
+ }, {
236
+ cluster: l,
237
+ labelBBox: {}
238
+ };
239
+ }, "divider"), S = /* @__PURE__ */ e(async (e, i, l) => {
240
+ t.info(`Creating ${l.cssClass} for `, i.id, i);
241
+ let g = a(), { theme: _, themeVariables: v, handDrawnSeed: y } = g, { borderColorArray: b } = v, { labelStyles: x, borderStyles: S } = c(i), C = e.insert("g").attr("class", "cluster " + l.cssClass + " " + i.cssClasses).attr("id", i.domId ?? i.id).attr("data-look", i.look);
242
+ u(C, i.colorIndex, _, b);
243
+ let w = r(g), T = C.insert("g").attr("class", "cluster-label"), E = {
244
+ width: 0,
245
+ height: 0
246
+ }, D = i.label?.trim();
247
+ if (D) {
248
+ let e;
249
+ if (e = i.labelType === "markdown" ? await o(T, i.label, {
250
+ style: i.labelStyle,
251
+ useHtmlLabels: w,
252
+ isNode: !0,
253
+ width: i.width
254
+ }) : await m(T, i.label, i.labelStyle || "", !1, !0), E = e.getBBox(), w) {
255
+ let t = e.children[0], r = n(e);
256
+ E = t.getBoundingClientRect(), r.attr("width", E.width), r.attr("height", E.height);
257
+ }
258
+ }
259
+ let O = i.width <= E.width + i.padding ? E.width + i.padding : i.width;
260
+ i.width <= E.width + i.padding ? i.diff = (O - i.width) / 2 - i.padding : i.diff = -i.padding;
261
+ let k = i.height, A = i.x - O / 2, j = i.y - k / 2, M;
262
+ if (i.look === "handDrawn") {
263
+ let e = d.svg(C), t = s(i, {
264
+ roughness: l.roughness,
265
+ fill: l.fill,
266
+ stroke: l.stroke,
267
+ strokeWidth: l.strokeWidth,
268
+ seed: y,
269
+ ...l.fill === "none" ? { fillWeight: 0 } : { fillStyle: "solid" },
270
+ ...l.strokeDash ? { strokeLineDash: l.strokeDash } : {}
271
+ }), n = e.path(p(A, j, O, k, l.rx), t);
272
+ M = C.insert(() => n, ":first-child"), M.select("path:nth-child(2)").attr("style", S.join(";"));
273
+ } else M = C.insert("rect", ":first-child"), M.attr("rx", l.rx).attr("ry", l.rx).attr("x", A).attr("y", j).attr("width", O).attr("height", k).attr("fill", l.fill).attr("stroke", l.stroke).attr("stroke-width", l.strokeWidth + "px"), l.strokeDash && M.attr("stroke-dasharray", l.strokeDash.join(", "));
274
+ if (D) {
275
+ let { subGraphTitleTopMargin: e } = h(g);
276
+ if (T.attr("transform", `translate(${i.x - E.width / 2}, ${i.y - i.height / 2 + e})`), x) {
277
+ let e = T.select("span");
278
+ e && e.attr("style", x);
279
+ }
280
+ }
281
+ let N = M.node().getBBox();
282
+ return i.offsetX = 0, i.width = N.width, i.height = N.height, i.offsetY = E.height - i.padding / 2, i.intersect = function(e) {
283
+ return f(i, e);
284
+ }, {
285
+ cluster: C,
286
+ labelBBox: E
287
+ };
288
+ }, "createContainerGroup"), C = /* @__PURE__ */ e(async (e, t) => {
289
+ let { themeVariables: n } = a();
290
+ return S(e, t, {
291
+ cssClass: "flow-cluster",
292
+ rx: 10,
293
+ fill: "none",
294
+ stroke: n.flowContainerStroke || n.secondaryBorderColor,
295
+ strokeWidth: .75,
296
+ roughness: .7
297
+ });
298
+ }, "flowGroup"), w = /* @__PURE__ */ e((e, t) => {
299
+ let n = e.boundaryType || "rect", r = n === "package" ? 20 : e.padding, i = n === "package" ? t.height + 10 : 0, a = Math.max(e.width, t.width + r), o = n === "package" ? Math.max(e.height, i + e.padding * 2) : e.height, s = e.x - a / 2, c = e.y - o / 2;
300
+ return {
301
+ boundaryType: n,
302
+ width: a,
303
+ height: o,
304
+ x: s,
305
+ y: c,
306
+ bodyY: c + i,
307
+ bodyHeight: o - i,
308
+ tabHeight: i,
309
+ tabWidth: n === "package" ? Math.min(a, Math.max(80, t.width + 20)) : 0
310
+ };
311
+ }, "getUsecaseSystemBoundaryGeometry"), T = {
312
+ rect: _,
313
+ squareRect: _,
314
+ roundedWithTitle: y,
315
+ noteGroup: v,
316
+ divider: x,
317
+ kanbanSection: b,
318
+ flowGroup: C,
319
+ usecaseSystemBoundary: /* @__PURE__ */ e(async (e, i) => {
320
+ t.info("Creating usecase system boundary for ", i.id, i);
321
+ let p = a(), { theme: m, themeVariables: g, handDrawnSeed: _ } = p, { clusterBkg: v, clusterBorder: y, borderColorArray: b } = g, { labelStyles: x, nodeStyles: S } = c(i), { stylesMap: C } = l(i), T = i.boundaryType || "rect", E = e.insert("g").attr("class", `cluster usecase-system-boundary usecase-system-boundary-${T} ${i.cssClasses}`).attr("id", typeof i.domId == "string" ? i.domId : i.id).attr("data-boundary-type", T).attr("data-look", i.look);
322
+ u(E, i.colorIndex, m, b);
323
+ let D = r(p), O = E.insert("g").attr("class", "cluster-label system-boundary-title"), k = await o(O, i.label, {
324
+ style: x,
325
+ useHtmlLabels: D,
326
+ isNode: !0
327
+ }), A = k.getBBox();
328
+ if (D) {
329
+ let e = k.children[0], t = n(k);
330
+ A = e.getBoundingClientRect(), t.attr("width", A.width), t.attr("height", A.height);
331
+ }
332
+ let { width: j, height: M, x: N, y: P, bodyY: F, bodyHeight: I, tabHeight: L, tabWidth: R } = w(i, A);
333
+ i.diff = i.width <= A.width + i.padding ? (j - i.width) / 2 - i.padding : -i.padding;
334
+ let z = s(i, {
335
+ fill: C.get("fill") || v,
336
+ stroke: C.get("stroke") || y,
337
+ strokeWidth: C.get("stroke-width")?.replace("px", "") || 1,
338
+ seed: _
339
+ });
340
+ if (i.look === "handDrawn") {
341
+ let e = d.svg(E), t = e.rectangle(N, F, j, I, z);
342
+ if (E.insert(() => t, ":first-child").attr("class", "boundary-body label-container"), T === "package") {
343
+ let t = e.rectangle(N, P, R, L, z);
344
+ E.insert(() => t, ":first-child").attr("class", "boundary-tab system-boundary-package-tab label-container");
345
+ }
346
+ } else E.insert("rect", ":first-child").attr("class", "boundary-body label-container").attr("style", S).attr("x", N).attr("y", F).attr("width", j).attr("height", I), T === "package" && E.insert("rect", ":first-child").attr("class", "boundary-tab system-boundary-package-tab label-container").attr("style", S).attr("x", N).attr("y", P).attr("width", R).attr("height", L);
347
+ let { subGraphTitleTopMargin: B } = h(p);
348
+ return T === "package" ? O.attr("transform", `translate(${N + (R - A.width) / 2}, ${P + (L - A.height) / 2})`) : O.attr("transform", `translate(${i.x - A.width / 2}, ${P + B})`), x && (O.attr("style", x), O.select("span").attr("style", x)), i.offsetX = 0, i.width = j, i.height = M, i.offsetY = A.height - i.padding / 2, i.labelBBox = A, i.intersect = function(e) {
349
+ return f(i, e);
350
+ }, {
351
+ cluster: E,
352
+ labelBBox: A
353
+ };
354
+ }, "usecaseSystemBoundary"),
355
+ swimlane: g
356
+ }, E = /* @__PURE__ */ new Set(["noteGroup", "divider"]), D = /* @__PURE__ */ e((e) => !E.has(e ?? "rect"), "clusterPaintsTitle"), O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ e(async (e, t) => {
357
+ let n = await T[t.shape || "rect"](e, t);
358
+ return O.set(t.id, n), n;
359
+ }, "insertCluster"), A = /* @__PURE__ */ e(() => {
360
+ O = /* @__PURE__ */ new Map();
361
+ }, "clear");
362
+ //#endregion
363
+ export { D as n, k as r, A as t };
@@ -0,0 +1,26 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
2
+ import { m as t } from "./src-CNRY2AUH.js";
3
+ import { c as n } from "./chunk-O7XYJQB3-WMQqqzRb.js";
4
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-WEXAMYUT.mjs
5
+ var r = /* @__PURE__ */ e((e, r, o, s) => {
6
+ e.attr("class", o);
7
+ let { width: c, height: l, x: u, y: d } = i(e, r);
8
+ n(e, l, c, s);
9
+ let f = a(u, d, c, l, r);
10
+ e.attr("viewBox", f), t.debug(`viewBox configured: ${f} with padding: ${r}`);
11
+ }, "setupViewPortForSVG"), i = /* @__PURE__ */ e((e, t) => {
12
+ let n = e.node()?.getBBox() || {
13
+ width: 0,
14
+ height: 0,
15
+ x: 0,
16
+ y: 0
17
+ };
18
+ return {
19
+ width: n.width + t * 2,
20
+ height: n.height + t * 2,
21
+ x: n.x,
22
+ y: n.y
23
+ };
24
+ }, "calculateDimensionsWithPadding"), a = /* @__PURE__ */ e((e, t, n, r, i) => `${e - i} ${t - i} ${n} ${r}`, "createViewBox");
25
+ //#endregion
26
+ export { r as t };
@@ -0,0 +1,9 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
2
+ import { p as t } from "./src-CNRY2AUH.js";
3
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-XXDRQBXY.mjs
4
+ var n = /* @__PURE__ */ e((e, n) => {
5
+ let r;
6
+ return n === "sandbox" && (r = t("#i" + e)), t(n === "sandbox" ? r.nodes()[0].contentDocument.body : "body").select(`[id="${e}"]`);
7
+ }, "getDiagramElement");
8
+ //#endregion
9
+ export { n as t };
@@ -0,0 +1,12 @@
1
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-Y2CYZVJY.mjs
2
+ var e = Object.defineProperty, t = (t, n) => e(t, "name", {
3
+ value: n,
4
+ configurable: !0
5
+ }), n = (t, n) => {
6
+ for (var r in n) e(t, r, {
7
+ get: n[r],
8
+ enumerable: !0
9
+ });
10
+ };
11
+ //#endregion
12
+ export { t as n, n as t };