@antdv-next/x 1.0.2-beta.1 → 1.0.2-beta.3
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/actions/Actions.js +1 -1
- package/dist/attachments/index.js +1 -1
- package/dist/code-highlighter/CodeHighlighter.js +24 -7
- package/dist/conversations/index.js +1 -1
- package/dist/file-card/FileCard.js +1 -1
- package/dist/file-card/List.js +1 -1
- package/dist/index.umd.js +73 -32
- package/dist/locale/useLocale.js +1 -1
- package/dist/mermaid/Mermaid.js +1 -1
- package/dist/package.js +1 -1
- package/dist/prompts/Prompts.js +1 -1
- package/dist/sender/Sender.js +1 -1
- package/dist/sender/SenderHeader.js +1 -1
- package/dist/sender/SenderSwitch.js +1 -1
- package/dist/sources/Sources.js +1 -1
- package/dist/suggestion/Suggestion.js +1 -1
- package/dist/theme/genStyleUtils.js +1 -1
- package/dist/think/Think.js +1 -1
- package/dist/thought-chain/Item.js +1 -1
- package/dist/thought-chain/Node.js +1 -1
- package/dist/thought-chain/ThoughtChain.js +1 -1
- package/dist/welcome/index.js +1 -1
- package/dist/x-provider/context.d.ts +5 -1
- package/dist/x-provider/hooks/use-x-provider-context.js +1 -1
- package/dist/x-provider/index.d.ts +47 -0
- package/dist/x-provider/index.js +25 -0
- package/{dist-browser/Serializer-y_SfSPKv.js → es/Serializer-D1JYN1kI.js} +4 -4
- package/{dist-browser/_basePickBy-Cy7KVmkk.js → es/_basePickBy-DZiMKfOQ.js} +23 -23
- package/{dist-browser/_baseUniq-Ch3HuHeT.js → es/_baseUniq-DY3uHjSO.js} +83 -83
- package/es/antdv-next-x.esm.js +21009 -0
- package/{dist-browser/arc-caEkbRYF.js → es/arc-BuXEd18J.js} +3 -3
- package/es/architecture-PBZL5I3N-BdQzc3t9.js +3 -0
- package/{dist-browser/architectureDiagram-2XIMDMQ5-D3IYLROv.js → es/architectureDiagram-2XIMDMQ5-C8x7stcr.js} +85 -85
- package/{dist-browser/blockDiagram-WCTKOSBZ-nXanZ0sc.js → es/blockDiagram-WCTKOSBZ-DA-s3zoq.js} +530 -530
- package/{dist-browser/c4Diagram-IC4MRINW-C-gVp6th.js → es/c4Diagram-IC4MRINW-DD81dyS8.js} +170 -170
- package/es/channel-DZcPzDuw.js +5 -0
- package/{dist-browser/chunk-4BX2VUAB-fLFD6XW0.js → es/chunk-4BX2VUAB-B3zzxglQ.js} +2 -2
- package/{dist-browser/chunk-55IACEB6-OtyKJzCH.js → es/chunk-55IACEB6-CA9CRLkM.js} +2 -2
- package/{dist-browser/chunk-7E7YKBS2-C1dd36rm.js → es/chunk-7E7YKBS2-C_F-WOLQ.js} +2 -2
- package/{dist-browser/chunk-7R4GIKGN-DuTRhdsf.js → es/chunk-7R4GIKGN-CaI-1szl.js} +3 -3
- package/{dist-browser/chunk-C72U2L5F-ClmZGhFC.js → es/chunk-C72U2L5F-l6RZhGri.js} +2 -2
- package/{dist-browser/chunk-EGIJ26TM-Bar_u1MN.js → es/chunk-EGIJ26TM-Be42NeHw.js} +2 -2
- package/{dist-browser/chunk-FMBD7UC4-C_uJ_JJA.js → es/chunk-FMBD7UC4-DJh0L322.js} +2 -2
- package/{dist-browser/chunk-GEFDOKGD-P7WhyrTU.js → es/chunk-GEFDOKGD-BWt_f4io.js} +278 -278
- package/es/chunk-GLR3WWYH-B30PgFZZ.js +41 -0
- package/{dist-browser/chunk-HHEYEP7N-rv5s5WD4.js → es/chunk-HHEYEP7N-DkMnkoQX.js} +3 -3
- package/{dist-browser/chunk-JSJVCQXG-89HUGe9V.js → es/chunk-JSJVCQXG-ddNKdfu8.js} +4 -4
- package/{dist-browser/chunk-KX2RTZJC-pMHnNRQg.js → es/chunk-KX2RTZJC-BbnGQVgL.js} +3 -3
- package/{dist-browser/chunk-KYZI473N-DJmSs1gK.js → es/chunk-KYZI473N-B2rmiORt.js} +573 -573
- package/{dist-browser/chunk-L3YUKLVL-Ck54qytQ.js → es/chunk-L3YUKLVL-CmAZrf2E.js} +2 -2
- package/{dist-browser/chunk-MX3YWQON-MkpK3uBD.js → es/chunk-MX3YWQON-B3_AxMM1.js} +2 -2
- package/{dist-browser/chunk-NQ4KR5QH-DGshodQv.js → es/chunk-NQ4KR5QH-CmCG9ow3.js} +120 -120
- package/{dist-browser/chunk-O4XLMI2P-e-ZzDQwg.js → es/chunk-O4XLMI2P-CTLwv925.js} +238 -238
- package/{dist-browser/chunk-OZEHJAEY-DULNd43V.js → es/chunk-OZEHJAEY-CtONdvqY.js} +2 -2
- package/{dist-browser/chunk-PQ6SQG4A-CQ9Csv7s.js → es/chunk-PQ6SQG4A-Dx7no2mb.js} +3 -3
- package/{dist-browser/chunk-PU5JKC2W-DkEFvrjH.js → es/chunk-PU5JKC2W-O9_8B7zU.js} +76 -76
- package/{dist-browser/chunk-QZHKN3VN-qww1plfw.js → es/chunk-QZHKN3VN-BbuqVxkO.js} +2 -2
- package/{dist-browser/chunk-R5LLSJPH-BERXSDGJ.js → es/chunk-R5LLSJPH-CpwKqyBY.js} +2 -2
- package/{dist-browser/chunk-WL4C6EOR-C-d8WPS7.js → es/chunk-WL4C6EOR-BXrjoxmr.js} +120 -120
- package/{dist-browser/chunk-XIRO2GV7-CFHofxVB.js → es/chunk-XIRO2GV7-4kMze38t.js} +2 -2
- package/{dist-browser/chunk-XPW4576I-DgvoNZkW.js → es/chunk-XPW4576I-DG6JendS.js} +2 -2
- package/{dist-browser/chunk-XZSTWKYB-k8_EXrSa.js → es/chunk-XZSTWKYB-DjOnj3KP.js} +93 -93
- package/{dist-browser/chunk-YBOYWFTD-BUW4AzEX.js → es/chunk-YBOYWFTD-DVAsFYJ-.js} +8 -8
- package/es/classDiagram-VBA2DB6C-wt_pcvEN.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-B8Bw4b3n.js +29 -0
- package/es/clone-CtpnpaZq.js +8 -0
- package/{dist-browser/cose-bilkent-S5V4N54A-CnrS2OC1.js → es/cose-bilkent-S5V4N54A-IRlkXPnk.js} +3 -3
- package/{dist-browser/css-Dh17kjFY.js → es/css-DyS1hwc1.js} +1 -1
- package/es/css-HrHT_VUz.js +2 -0
- package/{dist-browser/cytoscape.esm-BY3wHcbp.js → es/cytoscape.esm-i2CZcWd-.js} +1 -1
- package/{dist-browser/dagre-BJOzGlhW.js → es/dagre-Dm2PNtRY.js} +57 -57
- package/es/dagre-KLK3FWXG-DLgOeqbz.js +294 -0
- package/{dist-browser/defaultLocale-BaPFSbai.js → es/defaultLocale-bckJcYh1.js} +12 -12
- package/{dist-browser/diagram-E7M64L7V-DxuJj8ZG.js → es/diagram-E7M64L7V-Cdek_47s.js} +83 -83
- package/{dist-browser/diagram-IFDJBPK2-BOpPZ6pu.js → es/diagram-IFDJBPK2-DzCaWPW3.js} +31 -31
- package/{dist-browser/diagram-P4PSJMXO--ChDmcya.js → es/diagram-P4PSJMXO-B7pPaer-.js} +32 -32
- package/{dist-browser/dist-DltyvPj3.js → es/dist-BX_roQzC.js} +1 -1
- package/{dist-browser/erDiagram-INFDFZHY-BA3m-v87.js → es/erDiagram-INFDFZHY-BZHMCNB3.js} +128 -128
- package/{dist-browser/flowDiagram-PKNHOUZH-BCq6k3kr.js → es/flowDiagram-PKNHOUZH-BBJx8-jP.js} +156 -156
- package/{dist-browser/ganttDiagram-A5KZAMGK-DdMePS21.js → es/ganttDiagram-A5KZAMGK-4TJAHJUF.js} +622 -625
- package/es/gitGraph-HDMCJU4V-CGPcRI5K.js +3 -0
- package/{dist-browser/gitGraphDiagram-K3NZZRJ6-CLbRwChG.js → es/gitGraphDiagram-K3NZZRJ6-CSATib_y.js} +176 -176
- package/{dist-browser/graphlib-C7ysKz4u.js → es/graphlib-WtNUGuyd.js} +4 -4
- package/{dist-browser/html-BmZO1Eoo.js → es/html-B6UxjOv0.js} +2 -2
- package/es/html-Hb1oe8XT.js +2 -0
- package/es/info-3K5VOQVL-D6bOjfim.js +3 -0
- package/{dist-browser/infoDiagram-LFFYTUFH-DQAZ-vFk.js → es/infoDiagram-LFFYTUFH-ahqynRAA.js} +5 -5
- package/{dist-browser/init-PAs0hR-b.js → es/init-B75p2clj.js} +1 -1
- package/{dist-browser/isArrayLikeObject-y3HlYDaX.js → es/isArrayLikeObject-D4gDJaEW.js} +80 -80
- package/{dist-browser/isEmpty-2JxdWtc-.js → es/isEmpty-BgdRybYg.js} +3 -3
- package/{dist-browser/ishikawaDiagram-PHBUUO56-B0r2IgGz.js → es/ishikawaDiagram-PHBUUO56-B9NWp429.js} +67 -67
- package/{dist-browser/journeyDiagram-4ABVD52K-DnMUhOvg.js → es/journeyDiagram-4ABVD52K-CXmYa8OF.js} +6 -6
- package/{dist-browser/kanban-definition-K7BYSVSG-Da5Y-nJy.js → es/kanban-definition-K7BYSVSG-g9tToeab.js} +11 -11
- package/{dist-browser/katex-b-xdokOf.js → es/katex-Bvh2oRWI.js} +1 -1
- package/{dist-browser/line-h2iCTGsE.js → es/line-DETnb8Mr.js} +4 -4
- package/{dist-browser/linear-Bv7XrZCH.js → es/linear-DGQDIL28.js} +23 -23
- package/{dist-browser/math-DPzKeDKn.js → es/math-CoDOuve-.js} +1 -1
- package/{dist-browser/mermaid-parser.core-kTgpNO7M.js → es/mermaid-parser.core-DXn-0ev4.js} +16 -16
- package/{dist-browser/mermaid.core-DRuUNxpC.js → es/mermaid.core-W4vXivv8.js} +208 -208
- package/{dist-browser/mindmap-definition-YRQLILUH-CYeqnCde.js → es/mindmap-definition-YRQLILUH-x9QfilEP.js} +16 -16
- package/{dist-browser/ordinal-D8PKtxfM.js → es/ordinal-F3U6aXtP.js} +3 -3
- package/es/packet-RMMSAZCW-CW6reTze.js +3 -0
- package/{dist-browser/path-DZ-6AyWK.js → es/path-Dm3C8WEs.js} +3 -3
- package/es/pie-UPGHQEXC-ByJXXnsc.js +3 -0
- package/{dist-browser/pieDiagram-SKSYHLDU-DAsfTGvY.js → es/pieDiagram-SKSYHLDU-CG2GOW6Z.js} +32 -32
- package/{dist-browser/quadrantDiagram-337W2JSQ-CZLbmQS4.js → es/quadrantDiagram-337W2JSQ-C81pfz0c.js} +4 -4
- package/es/radar-KQ55EAFF-DLq-eYVH.js +3 -0
- package/{dist-browser/requirementDiagram-Z7DCOOCP-Cb_Ygnfe.js → es/requirementDiagram-Z7DCOOCP-J-tc0fnw.js} +59 -59
- package/{dist-browser/rough.esm-C_hJ3ICT.js → es/rough.esm-BhGP2Udb.js} +1 -1
- package/{dist-browser/sankeyDiagram-WA2Y5GQK-DBe5YfW4.js → es/sankeyDiagram-WA2Y5GQK-BfGyH2f1.js} +18 -18
- package/{dist-browser/sequenceDiagram-2WXFIKYE-C_KUoojT.js → es/sequenceDiagram-2WXFIKYE-m6aSnjku.js} +390 -390
- package/{dist-browser/src-BukXhifV.js → es/src-CFVe5TPD.js} +86 -86
- package/{dist-browser/stateDiagram-RAJIS63D-boG6DyfW.js → es/stateDiagram-RAJIS63D-CPJuOh-s.js} +68 -68
- package/es/stateDiagram-v2-FVOUBMTO-uxSkj8dH.js +27 -0
- package/{dist-browser/timeline-definition-YZTLITO2-pFt6rZ6S.js → es/timeline-definition-YZTLITO2-C7Vz32PK.js} +4 -4
- package/es/treemap-KZPCXAKY-BhLuAwPA.js +3 -0
- package/{dist-browser/vennDiagram-LZ73GAT5-VaCO6k4H.js → es/vennDiagram-LZ73GAT5-BWloH3fI.js} +107 -107
- package/{dist-browser/vue-BJ0ov2CZ.js → es/vue-2aJw7p5p.js} +3 -3
- package/{dist-browser/vue-html-D0gyDbfn.js → es/vue-html-DEjI8X9t.js} +1 -1
- package/{dist-browser/xychartDiagram-JWTSCODW-xS5ybemA.js → es/xychartDiagram-JWTSCODW-l-SVBlqB.js} +103 -103
- package/package.json +13 -11
- package/dist/index.esm.js +0 -11377
- package/dist-browser/architecture-PBZL5I3N-DHfBr78A.js +0 -3
- package/dist-browser/channel-DoEe9DF9.js +0 -5
- package/dist-browser/chunk-GLR3WWYH-BvazRgdo.js +0 -41
- package/dist-browser/classDiagram-VBA2DB6C-DWTAs0Zm.js +0 -29
- package/dist-browser/classDiagram-v2-RAHNMMFH-CoxCdmrt.js +0 -29
- package/dist-browser/clone-BXDbKCDu.js +0 -8
- package/dist-browser/css-D9vrnIUE.js +0 -2
- package/dist-browser/dagre-KLK3FWXG-CFC0naVr.js +0 -294
- package/dist-browser/gitGraph-HDMCJU4V-DbzpICZW.js +0 -3
- package/dist-browser/html-DnTYsv5k.js +0 -2
- package/dist-browser/index.es.js +0 -56150
- package/dist-browser/index.umd.js +0 -3281
- package/dist-browser/info-3K5VOQVL-CpUiQuel.js +0 -3
- package/dist-browser/packet-RMMSAZCW-UTFQ0FQx.js +0 -3
- package/dist-browser/pie-UPGHQEXC-CarAcBSi.js +0 -3
- package/dist-browser/radar-KQ55EAFF-NXK5PC9R.js +0 -3
- package/dist-browser/stateDiagram-v2-FVOUBMTO-DHCajhrN.js +0 -27
- package/dist-browser/treemap-KZPCXAKY-Cj9QakFB.js +0 -3
- /package/{dist-browser → es}/array-CWNufkl9.js +0 -0
- /package/{dist-browser → es}/bash-CXEwhtGQ.js +0 -0
- /package/{dist-browser → es}/chunk-WQLz0Won.js +0 -0
- /package/{dist-browser → es}/diff-BSu5dsa2.js +0 -0
- /package/{dist-browser → es}/javascript-BXHK_bZ2.js +0 -0
- /package/{dist-browser → es}/javascript-NV_FQBab.js +0 -0
- /package/{dist-browser → es}/json-C8Y9C4Ne.js +0 -0
- /package/{dist-browser → es}/json-DZ_9-j3Q.js +0 -0
- /package/{dist-browser → es}/jsx-CxlNNvOI.js +0 -0
- /package/{dist-browser → es}/markdown-BKwT7HWz.js +0 -0
- /package/{dist-browser → es}/mermaid-C1RUu_Iw.js +0 -0
- /package/{dist-browser → es}/python-BQM8giqx.js +0 -0
- /package/{dist-browser → es}/tsx-DIYEV_g7.js +0 -0
- /package/{dist-browser → es}/typescript-B6MWEsBH.js +0 -0
- /package/{dist-browser → es}/typescript-CR48gG1F.js +0 -0
- /package/{dist-browser → es}/yaml-Y0CqUPTQ.js +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h as r,
|
|
3
|
-
import { B as a, C as o, L as s, V as c, W as l, Z as u, _ as d, a as f, b as p, j as m, s as h, v as g } from "./chunk-7R4GIKGN-
|
|
4
|
-
import { t as _ } from "./chunk-FMBD7UC4-
|
|
5
|
-
import { t as v } from "./chunk-JSJVCQXG-
|
|
6
|
-
import { t as y } from "./chunk-55IACEB6-
|
|
7
|
-
import { t as b } from "./chunk-KX2RTZJC-
|
|
8
|
-
import { r as x, t as S } from "./chunk-GLR3WWYH-
|
|
9
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-WL4C6EOR.mjs
|
|
1
|
+
import { h as e, s as t } from "./chunk-GEFDOKGD-BWt_f4io.js";
|
|
2
|
+
import { g as n, h as r, p as i } from "./src-CFVe5TPD.js";
|
|
3
|
+
import { B as a, C as o, L as s, V as c, W as l, Z as u, _ as d, a as f, b as p, j as m, s as h, v as g } from "./chunk-7R4GIKGN-CaI-1szl.js";
|
|
4
|
+
import { t as _ } from "./chunk-FMBD7UC4-DJh0L322.js";
|
|
5
|
+
import { t as v } from "./chunk-JSJVCQXG-ddNKdfu8.js";
|
|
6
|
+
import { t as y } from "./chunk-55IACEB6-CA9CRLkM.js";
|
|
7
|
+
import { t as b } from "./chunk-KX2RTZJC-BbnGQVgL.js";
|
|
8
|
+
import { r as x, t as S } from "./chunk-GLR3WWYH-B30PgFZZ.js";
|
|
9
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WL4C6EOR.mjs
|
|
10
10
|
var C = (function() {
|
|
11
|
-
var e = /* @__PURE__ */
|
|
11
|
+
var e = /* @__PURE__ */ r(function(e, t, n, r) {
|
|
12
12
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
13
13
|
return n;
|
|
14
|
-
}, "o"),
|
|
14
|
+
}, "o"), t = [1, 18], n = [1, 19], i = [1, 20], a = [1, 41], o = [1, 42], s = [1, 26], c = [1, 24], l = [1, 25], u = [1, 32], d = [1, 33], f = [1, 34], p = [1, 45], m = [1, 35], h = [1, 36], g = [1, 37], _ = [1, 38], v = [1, 27], y = [1, 28], b = [1, 29], x = [1, 30], S = [1, 31], C = [1, 44], w = [1, 46], T = [1, 43], E = [1, 47], D = [1, 9], O = [
|
|
15
15
|
1,
|
|
16
16
|
8,
|
|
17
17
|
9
|
|
@@ -137,7 +137,7 @@ var C = (function() {
|
|
|
137
137
|
89,
|
|
138
138
|
90
|
|
139
139
|
], oe = {
|
|
140
|
-
trace: /* @__PURE__ */
|
|
140
|
+
trace: /* @__PURE__ */ r(function() {}, "trace"),
|
|
141
141
|
yy: {},
|
|
142
142
|
symbols_: {
|
|
143
143
|
error: 2,
|
|
@@ -446,7 +446,7 @@ var C = (function() {
|
|
|
446
446
|
[17, 1],
|
|
447
447
|
[55, 1]
|
|
448
448
|
],
|
|
449
|
-
performAction: /* @__PURE__ */
|
|
449
|
+
performAction: /* @__PURE__ */ r(function(e, t, n, r, i, a, o) {
|
|
450
450
|
var s = a.length - 1;
|
|
451
451
|
switch (i) {
|
|
452
452
|
case 8:
|
|
@@ -727,8 +727,8 @@ var C = (function() {
|
|
|
727
727
|
30: 15,
|
|
728
728
|
31: 16,
|
|
729
729
|
32: 17,
|
|
730
|
-
33:
|
|
731
|
-
35:
|
|
730
|
+
33: t,
|
|
731
|
+
35: n,
|
|
732
732
|
37: i,
|
|
733
733
|
38: 22,
|
|
734
734
|
42: a,
|
|
@@ -934,8 +934,8 @@ var C = (function() {
|
|
|
934
934
|
16: 39,
|
|
935
935
|
17: 40,
|
|
936
936
|
5: 87,
|
|
937
|
-
33:
|
|
938
|
-
35:
|
|
937
|
+
33: t,
|
|
938
|
+
35: n,
|
|
939
939
|
37: i,
|
|
940
940
|
42: a,
|
|
941
941
|
46: o,
|
|
@@ -977,8 +977,8 @@ var C = (function() {
|
|
|
977
977
|
30: 15,
|
|
978
978
|
31: 16,
|
|
979
979
|
32: 17,
|
|
980
|
-
33:
|
|
981
|
-
35:
|
|
980
|
+
33: t,
|
|
981
|
+
35: n,
|
|
982
982
|
37: i,
|
|
983
983
|
38: 22,
|
|
984
984
|
42: a,
|
|
@@ -1376,15 +1376,15 @@ var C = (function() {
|
|
|
1376
1376
|
154: [2, 39],
|
|
1377
1377
|
155: [2, 42]
|
|
1378
1378
|
},
|
|
1379
|
-
parseError: /* @__PURE__ */
|
|
1379
|
+
parseError: /* @__PURE__ */ r(function(e, t) {
|
|
1380
1380
|
if (t.recoverable) this.trace(e);
|
|
1381
1381
|
else {
|
|
1382
1382
|
var n = Error(e);
|
|
1383
1383
|
throw n.hash = t, n;
|
|
1384
1384
|
}
|
|
1385
1385
|
}, "parseError"),
|
|
1386
|
-
parse: /* @__PURE__ */
|
|
1387
|
-
var
|
|
1386
|
+
parse: /* @__PURE__ */ r(function(e) {
|
|
1387
|
+
var t = this, n = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
1388
1388
|
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
1389
1389
|
h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
1390
1390
|
var v = h.yylloc;
|
|
@@ -1392,16 +1392,16 @@ var C = (function() {
|
|
|
1392
1392
|
var y = h.options && h.options.ranges;
|
|
1393
1393
|
typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1394
1394
|
function b(e) {
|
|
1395
|
-
|
|
1395
|
+
n.length -= 2 * e, a.length -= e, o.length -= e;
|
|
1396
1396
|
}
|
|
1397
|
-
|
|
1397
|
+
r(b, "popStack");
|
|
1398
1398
|
function x() {
|
|
1399
1399
|
var e = i.pop() || h.lex() || p;
|
|
1400
|
-
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e =
|
|
1400
|
+
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
|
|
1401
1401
|
}
|
|
1402
|
-
|
|
1402
|
+
r(x, "lex");
|
|
1403
1403
|
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
1404
|
-
if (w =
|
|
1404
|
+
if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
1405
1405
|
var M = "";
|
|
1406
1406
|
for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
|
|
1407
1407
|
M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
|
|
@@ -1415,7 +1415,7 @@ var C = (function() {
|
|
|
1415
1415
|
if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
|
|
1416
1416
|
switch (T[0]) {
|
|
1417
1417
|
case 1:
|
|
1418
|
-
|
|
1418
|
+
n.push(S), a.push(h.yytext), o.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
1419
1419
|
break;
|
|
1420
1420
|
case 2:
|
|
1421
1421
|
if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
|
|
@@ -1432,7 +1432,7 @@ var C = (function() {
|
|
|
1432
1432
|
a,
|
|
1433
1433
|
o
|
|
1434
1434
|
].concat(m)), E !== void 0) return E;
|
|
1435
|
-
k && (
|
|
1435
|
+
k && (n = n.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[n[n.length - 2]][n[n.length - 1]], n.push(A);
|
|
1436
1436
|
break;
|
|
1437
1437
|
case 3: return !0;
|
|
1438
1438
|
}
|
|
@@ -1443,11 +1443,11 @@ var C = (function() {
|
|
|
1443
1443
|
oe.lexer = /* @__PURE__ */ (function() {
|
|
1444
1444
|
return {
|
|
1445
1445
|
EOF: 1,
|
|
1446
|
-
parseError: /* @__PURE__ */
|
|
1446
|
+
parseError: /* @__PURE__ */ r(function(e, t) {
|
|
1447
1447
|
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
1448
1448
|
else throw Error(e);
|
|
1449
1449
|
}, "parseError"),
|
|
1450
|
-
setInput: /* @__PURE__ */
|
|
1450
|
+
setInput: /* @__PURE__ */ r(function(e, t) {
|
|
1451
1451
|
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
1452
1452
|
first_line: 1,
|
|
1453
1453
|
first_column: 0,
|
|
@@ -1455,11 +1455,11 @@ var C = (function() {
|
|
|
1455
1455
|
last_column: 0
|
|
1456
1456
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
1457
1457
|
}, "setInput"),
|
|
1458
|
-
input: /* @__PURE__ */
|
|
1458
|
+
input: /* @__PURE__ */ r(function() {
|
|
1459
1459
|
var e = this._input[0];
|
|
1460
1460
|
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
1461
1461
|
}, "input"),
|
|
1462
|
-
unput: /* @__PURE__ */
|
|
1462
|
+
unput: /* @__PURE__ */ r(function(e) {
|
|
1463
1463
|
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
1464
1464
|
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
1465
1465
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -1472,10 +1472,10 @@ var C = (function() {
|
|
|
1472
1472
|
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
1473
1473
|
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
1474
1474
|
}, "unput"),
|
|
1475
|
-
more: /* @__PURE__ */
|
|
1475
|
+
more: /* @__PURE__ */ r(function() {
|
|
1476
1476
|
return this._more = !0, this;
|
|
1477
1477
|
}, "more"),
|
|
1478
|
-
reject: /* @__PURE__ */
|
|
1478
|
+
reject: /* @__PURE__ */ r(function() {
|
|
1479
1479
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
1480
1480
|
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
1481
1481
|
text: "",
|
|
@@ -1484,22 +1484,22 @@ var C = (function() {
|
|
|
1484
1484
|
});
|
|
1485
1485
|
return this;
|
|
1486
1486
|
}, "reject"),
|
|
1487
|
-
less: /* @__PURE__ */
|
|
1487
|
+
less: /* @__PURE__ */ r(function(e) {
|
|
1488
1488
|
this.unput(this.match.slice(e));
|
|
1489
1489
|
}, "less"),
|
|
1490
|
-
pastInput: /* @__PURE__ */
|
|
1490
|
+
pastInput: /* @__PURE__ */ r(function() {
|
|
1491
1491
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1492
1492
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
1493
1493
|
}, "pastInput"),
|
|
1494
|
-
upcomingInput: /* @__PURE__ */
|
|
1494
|
+
upcomingInput: /* @__PURE__ */ r(function() {
|
|
1495
1495
|
var e = this.match;
|
|
1496
1496
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1497
1497
|
}, "upcomingInput"),
|
|
1498
|
-
showPosition: /* @__PURE__ */
|
|
1498
|
+
showPosition: /* @__PURE__ */ r(function() {
|
|
1499
1499
|
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
1500
1500
|
return e + this.upcomingInput() + "\n" + t + "^";
|
|
1501
1501
|
}, "showPosition"),
|
|
1502
|
-
test_match: /* @__PURE__ */
|
|
1502
|
+
test_match: /* @__PURE__ */ r(function(e, t) {
|
|
1503
1503
|
var n, r, i;
|
|
1504
1504
|
if (this.options.backtrack_lexer && (i = {
|
|
1505
1505
|
yylineno: this.yylineno,
|
|
@@ -1532,7 +1532,7 @@ var C = (function() {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
return !1;
|
|
1534
1534
|
}, "test_match"),
|
|
1535
|
-
next: /* @__PURE__ */
|
|
1535
|
+
next: /* @__PURE__ */ r(function() {
|
|
1536
1536
|
if (this.done) return this.EOF;
|
|
1537
1537
|
this._input || (this.done = !0);
|
|
1538
1538
|
var e, t, n, r;
|
|
@@ -1552,29 +1552,29 @@ var C = (function() {
|
|
|
1552
1552
|
line: this.yylineno
|
|
1553
1553
|
});
|
|
1554
1554
|
}, "next"),
|
|
1555
|
-
lex: /* @__PURE__ */
|
|
1555
|
+
lex: /* @__PURE__ */ r(function() {
|
|
1556
1556
|
return this.next() || this.lex();
|
|
1557
1557
|
}, "lex"),
|
|
1558
|
-
begin: /* @__PURE__ */
|
|
1558
|
+
begin: /* @__PURE__ */ r(function(e) {
|
|
1559
1559
|
this.conditionStack.push(e);
|
|
1560
1560
|
}, "begin"),
|
|
1561
|
-
popState: /* @__PURE__ */
|
|
1561
|
+
popState: /* @__PURE__ */ r(function() {
|
|
1562
1562
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
1563
1563
|
}, "popState"),
|
|
1564
|
-
_currentRules: /* @__PURE__ */
|
|
1564
|
+
_currentRules: /* @__PURE__ */ r(function() {
|
|
1565
1565
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
1566
1566
|
}, "_currentRules"),
|
|
1567
|
-
topState: /* @__PURE__ */
|
|
1567
|
+
topState: /* @__PURE__ */ r(function(e) {
|
|
1568
1568
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
1569
1569
|
}, "topState"),
|
|
1570
|
-
pushState: /* @__PURE__ */
|
|
1570
|
+
pushState: /* @__PURE__ */ r(function(e) {
|
|
1571
1571
|
this.begin(e);
|
|
1572
1572
|
}, "pushState"),
|
|
1573
|
-
stateStackSize: /* @__PURE__ */
|
|
1573
|
+
stateStackSize: /* @__PURE__ */ r(function() {
|
|
1574
1574
|
return this.conditionStack.length;
|
|
1575
1575
|
}, "stateStackSize"),
|
|
1576
1576
|
options: {},
|
|
1577
|
-
performAction: /* @__PURE__ */
|
|
1577
|
+
performAction: /* @__PURE__ */ r(function(e, t, n, r) {
|
|
1578
1578
|
switch (n) {
|
|
1579
1579
|
case 0: return 62;
|
|
1580
1580
|
case 1: return 63;
|
|
@@ -2556,7 +2556,7 @@ var C = (function() {
|
|
|
2556
2556
|
function $() {
|
|
2557
2557
|
this.yy = {};
|
|
2558
2558
|
}
|
|
2559
|
-
return
|
|
2559
|
+
return r($, "Parser"), $.prototype = oe, oe.Parser = $, new $();
|
|
2560
2560
|
})();
|
|
2561
2561
|
C.parser = C;
|
|
2562
2562
|
var w = C, T = [
|
|
@@ -2567,7 +2567,7 @@ var w = C, T = [
|
|
|
2567
2567
|
""
|
|
2568
2568
|
], E = class {
|
|
2569
2569
|
static {
|
|
2570
|
-
|
|
2570
|
+
r(this, "ClassMember");
|
|
2571
2571
|
}
|
|
2572
2572
|
constructor(e, t) {
|
|
2573
2573
|
this.memberType = t, this.visibility = "", this.classifier = "", this.text = "";
|
|
@@ -2607,7 +2607,7 @@ var w = C, T = [
|
|
|
2607
2607
|
default: return "";
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
|
-
}, D = "classId-", O = 0, k = /* @__PURE__ */
|
|
2610
|
+
}, D = "classId-", O = 0, k = /* @__PURE__ */ r((e) => h.sanitizeText(e, p()), "sanitizeText"), A = class {
|
|
2611
2611
|
constructor() {
|
|
2612
2612
|
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.functions = [], this.lineType = {
|
|
2613
2613
|
LINE: 0,
|
|
@@ -2618,22 +2618,22 @@ var w = C, T = [
|
|
|
2618
2618
|
COMPOSITION: 2,
|
|
2619
2619
|
DEPENDENCY: 3,
|
|
2620
2620
|
LOLLIPOP: 4
|
|
2621
|
-
}, this.setupToolTips = /* @__PURE__ */
|
|
2621
|
+
}, this.setupToolTips = /* @__PURE__ */ r((e) => {
|
|
2622
2622
|
let t = v();
|
|
2623
|
-
|
|
2624
|
-
return
|
|
2623
|
+
i(e).select("svg").selectAll("g").filter(function() {
|
|
2624
|
+
return i(this).attr("title") !== null;
|
|
2625
2625
|
}).on("mouseover", (e) => {
|
|
2626
|
-
let
|
|
2627
|
-
if (!
|
|
2626
|
+
let n = i(e.currentTarget), r = n.attr("title");
|
|
2627
|
+
if (!r) return;
|
|
2628
2628
|
let a = e.currentTarget.getBoundingClientRect();
|
|
2629
|
-
t.transition().duration(200).style("opacity", ".9"), t.html(u.sanitize(
|
|
2629
|
+
t.transition().duration(200).style("opacity", ".9"), t.html(u.sanitize(r)).style("left", `${window.scrollX + a.left + a.width / 2}px`).style("top", `${window.scrollY + a.bottom + 4}px`), n.classed("hover", !0);
|
|
2630
2630
|
}).on("mouseout", (e) => {
|
|
2631
|
-
t.transition().duration(500).style("opacity", 0),
|
|
2631
|
+
t.transition().duration(500).style("opacity", 0), i(e.currentTarget).classed("hover", !1);
|
|
2632
2632
|
});
|
|
2633
|
-
}, "setupToolTips"), this.direction = "TB", this.setAccTitle = c, this.getAccTitle = g, this.setAccDescription = a, this.getAccDescription = d, this.setDiagramTitle = l, this.getDiagramTitle = o, this.getConfig = /* @__PURE__ */
|
|
2633
|
+
}, "setupToolTips"), this.direction = "TB", this.setAccTitle = c, this.getAccTitle = g, this.setAccDescription = a, this.getAccDescription = d, this.setDiagramTitle = l, this.getDiagramTitle = o, this.getConfig = /* @__PURE__ */ r(() => p().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
|
|
2634
2634
|
}
|
|
2635
2635
|
static {
|
|
2636
|
-
|
|
2636
|
+
r(this, "ClassDB");
|
|
2637
2637
|
}
|
|
2638
2638
|
splitClassNameAndType(e) {
|
|
2639
2639
|
let t = h.sanitizeText(e, p()), n = "", r = t;
|
|
@@ -2702,16 +2702,16 @@ var w = C, T = [
|
|
|
2702
2702
|
getNotes() {
|
|
2703
2703
|
return this.notes;
|
|
2704
2704
|
}
|
|
2705
|
-
addRelation(
|
|
2706
|
-
|
|
2707
|
-
let
|
|
2705
|
+
addRelation(e) {
|
|
2706
|
+
n.debug("Adding relation: " + JSON.stringify(e));
|
|
2707
|
+
let t = [
|
|
2708
2708
|
this.relationType.LOLLIPOP,
|
|
2709
2709
|
this.relationType.AGGREGATION,
|
|
2710
2710
|
this.relationType.COMPOSITION,
|
|
2711
2711
|
this.relationType.DEPENDENCY,
|
|
2712
2712
|
this.relationType.EXTENSION
|
|
2713
2713
|
];
|
|
2714
|
-
|
|
2714
|
+
e.relation.type1 === this.relationType.LOLLIPOP && !t.includes(e.relation.type2) ? (this.addClass(e.id2), this.addInterface(e.id1, e.id2), e.id1 = `interface${this.interfaces.length - 1}`) : e.relation.type2 === this.relationType.LOLLIPOP && !t.includes(e.relation.type1) ? (this.addClass(e.id1), this.addInterface(e.id2, e.id1), e.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(e.id1), this.addClass(e.id2)), e.id1 = this.splitClassNameAndType(e.id1).className, e.id2 = this.splitClassNameAndType(e.id2).className, e.relationTitle1 = h.sanitizeText(e.relationTitle1.trim(), p()), e.relationTitle2 = h.sanitizeText(e.relationTitle2.trim(), p()), this.relations.push(e);
|
|
2715
2715
|
}
|
|
2716
2716
|
addAnnotation(e, t) {
|
|
2717
2717
|
let n = this.splitClassNameAndType(e).className;
|
|
@@ -2774,37 +2774,37 @@ var w = C, T = [
|
|
|
2774
2774
|
getTooltip(e, t) {
|
|
2775
2775
|
return t && this.namespaces.has(t) ? this.namespaces.get(t).classes.get(e).tooltip : this.classes.get(e).tooltip;
|
|
2776
2776
|
}
|
|
2777
|
-
setLink(
|
|
2777
|
+
setLink(t, n, r) {
|
|
2778
2778
|
let i = p();
|
|
2779
|
-
|
|
2780
|
-
let a =
|
|
2781
|
-
/\d/.exec(
|
|
2779
|
+
t.split(",").forEach((t) => {
|
|
2780
|
+
let a = t;
|
|
2781
|
+
/\d/.exec(t[0]) && (a = D + a);
|
|
2782
2782
|
let o = this.classes.get(a);
|
|
2783
|
-
o && (o.link =
|
|
2784
|
-
}), this.setCssClass(
|
|
2783
|
+
o && (o.link = e.formatUrl(n, i), i.securityLevel === "sandbox" ? o.linkTarget = "_top" : typeof r == "string" ? o.linkTarget = k(r) : o.linkTarget = "_blank");
|
|
2784
|
+
}), this.setCssClass(t, "clickable");
|
|
2785
2785
|
}
|
|
2786
2786
|
setClickEvent(e, t, n) {
|
|
2787
2787
|
e.split(",").forEach((e) => {
|
|
2788
2788
|
this.setClickFunc(e, t, n), this.classes.get(e).haveCallback = !0;
|
|
2789
2789
|
}), this.setCssClass(e, "clickable");
|
|
2790
2790
|
}
|
|
2791
|
-
setClickFunc(
|
|
2792
|
-
let i = h.sanitizeText(
|
|
2793
|
-
if (p().securityLevel !== "loose" ||
|
|
2791
|
+
setClickFunc(t, n, r) {
|
|
2792
|
+
let i = h.sanitizeText(t, p());
|
|
2793
|
+
if (p().securityLevel !== "loose" || n === void 0) return;
|
|
2794
2794
|
let a = i;
|
|
2795
2795
|
if (this.classes.has(a)) {
|
|
2796
|
-
let
|
|
2797
|
-
if (typeof
|
|
2798
|
-
i =
|
|
2796
|
+
let t = this.lookUpDomId(a), i = [];
|
|
2797
|
+
if (typeof r == "string") {
|
|
2798
|
+
i = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
2799
2799
|
for (let e = 0; e < i.length; e++) {
|
|
2800
2800
|
let t = i[e].trim();
|
|
2801
2801
|
t.startsWith("\"") && t.endsWith("\"") && (t = t.substr(1, t.length - 2)), i[e] = t;
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
|
-
i.length === 0 && i.push(
|
|
2805
|
-
let
|
|
2806
|
-
|
|
2807
|
-
|
|
2804
|
+
i.length === 0 && i.push(t), this.functions.push(() => {
|
|
2805
|
+
let r = document.querySelector(`[id="${t}"]`);
|
|
2806
|
+
r !== null && r.addEventListener("click", () => {
|
|
2807
|
+
e.runFunc(n, ...i);
|
|
2808
2808
|
}, !1);
|
|
2809
2809
|
});
|
|
2810
2810
|
}
|
|
@@ -2877,52 +2877,52 @@ var w = C, T = [
|
|
|
2877
2877
|
return t;
|
|
2878
2878
|
}
|
|
2879
2879
|
getData() {
|
|
2880
|
-
let e = [],
|
|
2880
|
+
let e = [], n = [], r = p();
|
|
2881
2881
|
for (let t of this.namespaces.values()) {
|
|
2882
|
-
let
|
|
2882
|
+
let n = {
|
|
2883
2883
|
id: t.id,
|
|
2884
2884
|
label: t.id,
|
|
2885
2885
|
isGroup: !0,
|
|
2886
|
-
padding:
|
|
2886
|
+
padding: r.class.padding ?? 16,
|
|
2887
2887
|
shape: "rect",
|
|
2888
2888
|
cssStyles: [],
|
|
2889
|
-
look:
|
|
2889
|
+
look: r.look
|
|
2890
2890
|
};
|
|
2891
|
-
e.push(
|
|
2891
|
+
e.push(n);
|
|
2892
2892
|
}
|
|
2893
2893
|
for (let t of this.classes.values()) {
|
|
2894
|
-
let
|
|
2894
|
+
let n = {
|
|
2895
2895
|
...t,
|
|
2896
2896
|
type: void 0,
|
|
2897
2897
|
isGroup: !1,
|
|
2898
2898
|
parentId: t.parent,
|
|
2899
|
-
look:
|
|
2899
|
+
look: r.look
|
|
2900
2900
|
};
|
|
2901
|
-
e.push(
|
|
2901
|
+
e.push(n);
|
|
2902
2902
|
}
|
|
2903
|
-
for (let
|
|
2903
|
+
for (let t of this.notes.values()) {
|
|
2904
2904
|
let i = {
|
|
2905
|
-
id:
|
|
2906
|
-
label:
|
|
2905
|
+
id: t.id,
|
|
2906
|
+
label: t.text,
|
|
2907
2907
|
isGroup: !1,
|
|
2908
2908
|
shape: "note",
|
|
2909
|
-
padding:
|
|
2909
|
+
padding: r.class.padding ?? 6,
|
|
2910
2910
|
cssStyles: [
|
|
2911
2911
|
"text-align: left",
|
|
2912
2912
|
"white-space: nowrap",
|
|
2913
|
-
`fill: ${
|
|
2914
|
-
`stroke: ${
|
|
2913
|
+
`fill: ${r.themeVariables.noteBkgColor}`,
|
|
2914
|
+
`stroke: ${r.themeVariables.noteBorderColor}`
|
|
2915
2915
|
],
|
|
2916
|
-
look:
|
|
2917
|
-
parentId:
|
|
2916
|
+
look: r.look,
|
|
2917
|
+
parentId: t.parent,
|
|
2918
2918
|
labelType: "markdown"
|
|
2919
2919
|
};
|
|
2920
2920
|
e.push(i);
|
|
2921
|
-
let a = this.classes.get(
|
|
2921
|
+
let a = this.classes.get(t.class)?.id;
|
|
2922
2922
|
if (a) {
|
|
2923
2923
|
let e = {
|
|
2924
|
-
id: `edgeNote${
|
|
2925
|
-
start:
|
|
2924
|
+
id: `edgeNote${t.index}`,
|
|
2925
|
+
start: t.id,
|
|
2926
2926
|
end: a,
|
|
2927
2927
|
type: "normal",
|
|
2928
2928
|
thickness: "normal",
|
|
@@ -2933,29 +2933,29 @@ var w = C, T = [
|
|
|
2933
2933
|
labelStyle: [""],
|
|
2934
2934
|
style: ["fill: none"],
|
|
2935
2935
|
pattern: "dotted",
|
|
2936
|
-
look:
|
|
2936
|
+
look: r.look
|
|
2937
2937
|
};
|
|
2938
|
-
|
|
2938
|
+
n.push(e);
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
2941
2941
|
for (let t of this.interfaces) {
|
|
2942
|
-
let
|
|
2942
|
+
let n = {
|
|
2943
2943
|
id: t.id,
|
|
2944
2944
|
label: t.label,
|
|
2945
2945
|
isGroup: !1,
|
|
2946
2946
|
shape: "rect",
|
|
2947
2947
|
cssStyles: ["opacity: 0;"],
|
|
2948
|
-
look:
|
|
2948
|
+
look: r.look
|
|
2949
2949
|
};
|
|
2950
|
-
e.push(
|
|
2950
|
+
e.push(n);
|
|
2951
2951
|
}
|
|
2952
|
-
let
|
|
2952
|
+
let i = 0;
|
|
2953
2953
|
for (let e of this.relations) {
|
|
2954
|
-
|
|
2954
|
+
i++;
|
|
2955
2955
|
let a = {
|
|
2956
|
-
id:
|
|
2956
|
+
id: t(e.id1, e.id2, {
|
|
2957
2957
|
prefix: "id",
|
|
2958
|
-
counter:
|
|
2958
|
+
counter: i
|
|
2959
2959
|
}),
|
|
2960
2960
|
start: e.id1,
|
|
2961
2961
|
end: e.id2,
|
|
@@ -2972,20 +2972,20 @@ var w = C, T = [
|
|
|
2972
2972
|
labelStyle: ["display: inline-block"],
|
|
2973
2973
|
style: e.style || "",
|
|
2974
2974
|
pattern: e.relation.lineType == 1 ? "dashed" : "solid",
|
|
2975
|
-
look:
|
|
2975
|
+
look: r.look,
|
|
2976
2976
|
labelType: "markdown"
|
|
2977
2977
|
};
|
|
2978
|
-
|
|
2978
|
+
n.push(a);
|
|
2979
2979
|
}
|
|
2980
2980
|
return {
|
|
2981
2981
|
nodes: e,
|
|
2982
|
-
edges:
|
|
2982
|
+
edges: n,
|
|
2983
2983
|
other: {},
|
|
2984
|
-
config:
|
|
2984
|
+
config: r,
|
|
2985
2985
|
direction: this.getDirection()
|
|
2986
2986
|
};
|
|
2987
2987
|
}
|
|
2988
|
-
}, j = /* @__PURE__ */
|
|
2988
|
+
}, j = /* @__PURE__ */ r((e) => `g.classGroup text {
|
|
2989
2989
|
fill: ${e.nodeBorder || e.classText};
|
|
2990
2990
|
stroke: none;
|
|
2991
2991
|
font-family: ${e.fontFamily};
|
|
@@ -3169,21 +3169,21 @@ g.classGroup line {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
${_()}
|
|
3171
3171
|
`, "getStyles"), M = {
|
|
3172
|
-
getClasses: /* @__PURE__ */
|
|
3172
|
+
getClasses: /* @__PURE__ */ r(function(e, t) {
|
|
3173
3173
|
return t.db.getClasses();
|
|
3174
3174
|
}, "getClasses"),
|
|
3175
|
-
draw: /* @__PURE__ */
|
|
3176
|
-
|
|
3177
|
-
let { securityLevel: o, state: s, layout: c } = p(), l = a.db.getData(), u = y(
|
|
3175
|
+
draw: /* @__PURE__ */ r(async function(t, r, i, a) {
|
|
3176
|
+
n.info("REF0:"), n.info("Drawing class diagram (v3)", r);
|
|
3177
|
+
let { securityLevel: o, state: s, layout: c } = p(), l = a.db.getData(), u = y(r, o);
|
|
3178
3178
|
l.type = a.type, l.layoutAlgorithm = S(c), l.nodeSpacing = s?.nodeSpacing || 50, l.rankSpacing = s?.rankSpacing || 50, l.markers = [
|
|
3179
3179
|
"aggregation",
|
|
3180
3180
|
"extension",
|
|
3181
3181
|
"composition",
|
|
3182
3182
|
"dependency",
|
|
3183
3183
|
"lollipop"
|
|
3184
|
-
], l.diagramId =
|
|
3184
|
+
], l.diagramId = r, await x(l, u), e.insertTitle(u, "classDiagramTitleText", s?.titleTopMargin ?? 25, a.db.getDiagramTitle()), b(u, 8, "classDiagram", s?.useMaxWidth ?? !0);
|
|
3185
3185
|
}, "draw"),
|
|
3186
|
-
getDir: /* @__PURE__ */
|
|
3186
|
+
getDir: /* @__PURE__ */ r((e, t = "TB") => {
|
|
3187
3187
|
if (!e.doc) return t;
|
|
3188
3188
|
let n = t;
|
|
3189
3189
|
for (let t of e.doc) t.stmt === "dir" && (n = t.value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e, g as t, h as n, l as r, m as i, n as a, p as o, s, t as c } from "./chunk-XZSTWKYB-
|
|
2
|
-
//#region ../../node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XIRO2GV7.mjs
|
|
1
|
+
import { f as e, g as t, h as n, l as r, m as i, n as a, p as o, s, t as c } from "./chunk-XZSTWKYB-DjOnj3KP.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XIRO2GV7.mjs
|
|
3
3
|
var l = class extends c {
|
|
4
4
|
static {
|
|
5
5
|
e(this, "PieTokenBuilder");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as e } from "./src-
|
|
2
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.mjs
|
|
1
|
+
import { h as e } from "./src-CFVe5TPD.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.mjs
|
|
3
3
|
function t(e) {
|
|
4
4
|
return e == null;
|
|
5
5
|
}
|