@belonguniverseai/react-sdk 0.6.1 → 0.6.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/api/agent-grants.d.ts +6 -0
- package/dist/api/client.d.ts +88 -27
- package/dist/api/task-schedules.d.ts +138 -255
- package/dist/app/call-summary.d.ts +30 -0
- package/dist/component/abnfDiagram-N423BO3Z-C1O9dfJJ.js +90 -0
- package/dist/component/arc-Cpnt_LFj.js +86 -0
- package/dist/component/{architectureDiagram-3BPJPVTR-BVwa4QrX.js → architectureDiagram-T3A2C74G-iakL6yUj.js} +1872 -1785
- package/dist/component/{blockDiagram-GPEHLZMM-CKNImKL2.js → blockDiagram-VBNYF7ZC-D7t0jIvW.js} +895 -894
- package/dist/component/{c4Diagram-AAUBKEIU-BcbjcMPA.js → c4Diagram-5PPSVZJV-CRX1o0CJ.js} +3 -3
- package/dist/component/{channel-vtwXLQ1f.js → channel-DnM50Ep0.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-DfbE4oOG.js → chunk-2GRJ4B5K-ChTMjM-v.js} +5 -5
- package/dist/component/{chunk-QZHKN3VN-Y8mfHGtB.js → chunk-2Q5K7J3B-F2Rpvtwm.js} +2 -2
- package/dist/component/{chunk-AQP2D5EJ-DiS4043D.js → chunk-5RXB4S5H-B1WLx-ex.js} +399 -378
- package/dist/component/{chunk-FMBD7UC4-Bu05DXe4.js → chunk-5VM5RSS4-D35VMAuN.js} +2 -2
- package/dist/component/chunk-6Q2QTUOP-DGVp_gyk.js +673 -0
- package/dist/component/{chunk-727SXJPM-BTqmmKKN.js → chunk-GF5L2VYU-CZOQEv_q.js} +244 -239
- package/dist/component/{chunk-4BX2VUAB-DySNI9mv.js → chunk-JWPE2WC7-BbwyDj9g.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-C6wmoOIl.js → chunk-KBJHAD2P-B9qL0VLM.js} +2 -2
- package/dist/component/chunk-RYQCIY6F-5eaMbXXL.js +316 -0
- package/dist/component/{chunk-55IACEB6-C4M2cG_c.js → chunk-XXDRQBXY-XJadTIK5.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-ChO_m1Vd.js → classDiagram-JCYQIIEL-DVaEk7uT.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-ChO_m1Vd.js → classDiagram-v2-OCEON4UE-DVaEk7uT.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-B1DDE26M.js → cose-bilkent-JH36ORCC-DZA30AqI.js} +2 -2
- package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
- package/dist/component/cynefinDiagram-MW4NZA55-CutZScTQ.js +302 -0
- package/dist/component/dagre-VZM6K2ZE-CelPLP8N.js +343 -0
- package/dist/component/diagram-7IWD3JNH-Cr5piwKc.js +353 -0
- package/dist/component/{diagram-KO2AKTUF-DD3KqnFb.js → diagram-B4RE2ZJO-DgLNdZkh.js} +24 -24
- package/dist/component/{diagram-LMA3HP47-D6-oakzD.js → diagram-LBJQPF4R-DxeIMTjN.js} +23 -23
- package/dist/component/{diagram-OG6HWLK6-DfxY1IE7.js → diagram-Q27KOJAE-WACyk_gr.js} +197 -197
- package/dist/component/diagram-UB23O5K3-DbhVYU5T.js +222 -0
- package/dist/component/ebnfDiagram-BXEA7PRR-DoGrYW10.js +112 -0
- package/dist/component/{erDiagram-TEJ5UH35-BDV1C23R.js → erDiagram-JOGREHBK-BgewA6fH.js} +142 -131
- package/dist/component/{flowDiagram-I6XJVG4X-mEwMtE2U.js → flowDiagram-UKHOOZJN-1YmYJYcE.js} +268 -258
- package/dist/component/ganttDiagram-PKOTCBZU-BFAEPYkH.js +2714 -0
- package/dist/component/{gitGraphDiagram-PVQCEYII-CIKPPQiC.js → gitGraphDiagram-DS77QQ5N-CSiPuE-l.js} +33 -33
- package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
- package/dist/component/{highlighted-body-OFNGDK62-DpP1DD9S.js → highlighted-body-OFNGDK62-CSJNGt18.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-DKTrvjCm.js → infoDiagram-6WML65LV-CoMVfONe.js} +4 -4
- package/dist/component/{ishikawaDiagram-YF4QCWOH-BcuncMnU.js → ishikawaDiagram-WSZJBQD7-B2YEkQ4b.js} +27 -27
- package/dist/component/{journeyDiagram-JHISSGLW-BTTgY3Of.js → journeyDiagram-NVQOT4AX-B7b5ZwlF.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-D9K5810E.js → kanban-definition-27J2QSJJ-C9GPAsBR.js} +35 -35
- package/dist/component/layout-Br2UjHRU.js +1522 -0
- package/dist/component/{linear-DondfmT2.js → linear-Bi0C-9d1.js} +13 -13
- package/dist/component/map-CdwokNh2.js +227 -0
- package/dist/component/{mermaid-GHXKKRXX-j_0KsvYs.js → mermaid-GHXKKRXX-BaBCeViM.js} +34453 -35613
- package/dist/component/{mindmap-definition-RKZ34NQL-DMC3vCUq.js → mindmap-definition-FAOFIHXS-tHIAo7Ms.js} +26 -26
- package/dist/component/pegDiagram-VL7TDLO6-Db_7lLRV.js +98 -0
- package/dist/component/pieDiagram-7S7Q4E2Y-C4fs4XCK.js +210 -0
- package/dist/component/{quadrantDiagram-W4KKPZXB-DMos-d69.js → quadrantDiagram-CIZ2JOQS-Bw7vXO0q.js} +14 -15
- package/dist/component/railroadDiagram-AXF67PYL-kY0VoZEg.js +80 -0
- package/dist/component/{requirementDiagram-4Y6WPE33-BpgIfnhZ.js → requirementDiagram-LRYGKXZP-BkNtSZm5.js} +15 -15
- package/dist/component/{sankeyDiagram-5OEKKPKP-xbJGp8Ms.js → sankeyDiagram-W5VNT64P-BK_C1BYE.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-Bnlm4mVO.js → sequenceDiagram-SI44F4Z6-CEmgVZaE.js} +960 -963
- package/dist/component/sizeCapture-X5ZJPWSS-J5ZNXT4c.js +49 -0
- package/dist/component/{stateDiagram-AJRCARHV-BIooqMYf.js → stateDiagram-OKZ733FA-DrwrNuNs.js} +5 -5
- package/dist/component/{stateDiagram-v2-BHNVJYJU-C6WAOCCe.js → stateDiagram-v2-UEYNNEHI-DHD85VTD.js} +3 -3
- package/dist/component/swimlanes-SLNWSIFB-FOK5tys1.js +5335 -0
- package/dist/component/swimlanesDiagram-ULZ7WXOC-edTvZTge.js +16 -0
- package/dist/component/{timeline-definition-PNZ67QCA-lTe5jbcD.js → timeline-definition-Z64GVDOM-Cc4fTsjY.js} +15 -15
- package/dist/component/vennDiagram-T6HMQDX7-DYZl8srI.js +1581 -0
- package/dist/component/{wardleyDiagram-YWT4CUSO-BSz_UDND.js → wardleyDiagram-T6FBY63Y-BEvv3PjS.js} +15 -15
- package/dist/component/{xychartDiagram-2RQKCTM6-BmzhiB0a.js → xychartDiagram-ELKLHX3M-79AgTtk-.js} +464 -418
- package/dist/components/embed/BetaBadge.d.ts +12 -0
- package/dist/components/embed/DisclaimerGate.d.ts +16 -0
- package/dist/components/embed/LegalShortDisclaimer.d.ts +11 -0
- package/dist/components/embed/LocalePills.d.ts +18 -0
- package/dist/components/embed/WelcomeIntro.d.ts +3 -1
- package/dist/embed/brand-marks.d.ts +5 -5
- package/dist/embed/copy.d.ts +13 -0
- package/dist/embed/legal-disclaimer.d.ts +23 -0
- package/dist/embed/presets.d.ts +5 -1
- package/dist/embed/task-schedule-store.d.ts +3 -13
- package/dist/embed/voice/call-active-marker.d.ts +1 -20
- package/dist/embed/voice/line-slots.d.ts +37 -2
- package/dist/embed/voice/voice-token.d.ts +2 -12
- package/dist/embed/voice-call.d.ts +12 -0
- package/dist/i18n/messages/en.d.ts +1 -2
- package/dist/lib/web-storage.d.ts +8 -0
- package/dist/stream/belong-chat-transport.d.ts +101 -587
- package/dist/stream/message-metadata.d.ts +6 -36
- package/dist/stream/stream-state-store.d.ts +14 -25
- package/dist/types/public.d.ts +3 -0
- package/package.json +1 -1
- package/dist/component/arc-BziuP1aB.js +0 -86
- package/dist/component/dagre-BM42HDAG-BmujNepD.js +0 -448
- package/dist/component/diagram-2AECGRRQ-Cbck9DRQ.js +0 -220
- package/dist/component/diagram-5GNKFQAL-csRK5clZ.js +0 -126
- package/dist/component/ganttDiagram-6RSMTGT7-C_dcTMQX.js +0 -2709
- package/dist/component/layout-Bu6nRdWm.js +0 -1731
- package/dist/component/pieDiagram-4H26LBE5-DmYi_D3l.js +0 -166
- package/dist/component/vennDiagram-CIIHVFJN-5RYbksB1.js +0 -1560
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { g as tt } from "./chunk-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { g as tt } from "./chunk-5VM5RSS4-D35VMAuN.js";
|
|
2
|
+
import { g as st } from "./chunk-XXDRQBXY-XJadTIK5.js";
|
|
3
|
+
import { s as it } from "./chunk-KBJHAD2P-B9qL0VLM.js";
|
|
4
|
+
import { _ as f, l as Ie, c as F, v as at, x as nt, y as Oe, d as de, a8 as rt, b as ut, a as lt, s as ct, g as ot, o as ht, p as dt, k as I, q as pt, r as At, i as ft, a9 as G } from "./mermaid-GHXKKRXX-BaBCeViM.js";
|
|
5
|
+
import { f as gt } from "./chunk-2GRJ4B5K-ChTMjM-v.js";
|
|
6
6
|
globalThis.process = globalThis.process || { env: {} };
|
|
7
7
|
globalThis.global = globalThis.global || globalThis;
|
|
8
8
|
var we = (function() {
|
|
9
9
|
var t = /* @__PURE__ */ f(function(O, o, h, p) {
|
|
10
10
|
for (h = h || {}, p = O.length; p--; h[O[p]] = o) ;
|
|
11
11
|
return h;
|
|
12
|
-
}, "o"), i = [1, 18], a = [1, 19],
|
|
12
|
+
}, "o"), i = [1, 18], a = [1, 19], n = [1, 20], r = [1, 41], c = [1, 26], u = [1, 42], d = [1, 24], m = [1, 25], g = [1, 32], N = [1, 33], Ae = [1, 34], b = [1, 45], fe = [1, 35], ge = [1, 36], me = [1, 37], Ce = [1, 38], be = [1, 27], ke = [1, 28], Ee = [1, 29], Te = [1, 30], ye = [1, 31], k = [1, 44], E = [1, 46], T = [1, 43], y = [1, 47], De = [1, 9], A = [1, 8, 9], Z = [1, 58], $ = [1, 59], ee = [1, 60], te = [1, 61], se = [1, 62], Fe = [1, 63], Be = [1, 64], _ = [1, 8, 9, 41], Pe = [1, 77], M = [1, 8, 9, 12, 13, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], ie = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 46, 47, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], ae = [13, 60, 86, 100, 102, 103], U = [13, 60, 73, 74, 86, 100, 102, 103], Me = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], ne = [1, 103], z = [1, 121], Y = [1, 117], K = [1, 113], W = [1, 119], Q = [1, 114], j = [1, 115], X = [1, 116], q = [1, 118], H = [1, 120], Re = [22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Ge = [1, 128], re = [12, 39], _e = [1, 8, 9, 39, 41, 44, 46], ue = [1, 8, 9, 22], Ue = [1, 153], ze = [1, 8, 9, 61], x = [1, 8, 9, 22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Se = {
|
|
13
13
|
trace: /* @__PURE__ */ f(function() {
|
|
14
14
|
}, "trace"),
|
|
15
15
|
yy: {},
|
|
16
16
|
symbols_: { error: 2, start: 3, mermaidDoc: 4, statements: 5, graphConfig: 6, CLASS_DIAGRAM: 7, NEWLINE: 8, EOF: 9, statement: 10, classLabel: 11, SQS: 12, STR: 13, SQE: 14, namespaceName: 15, alphaNumToken: 16, classLiteralName: 17, DOT: 18, className: 19, GENERICTYPE: 20, relationStatement: 21, LABEL: 22, namespaceStatement: 23, classStatement: 24, memberStatement: 25, annotationStatement: 26, clickStatement: 27, styleStatement: 28, cssClassStatement: 29, noteStatement: 30, classDefStatement: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, namespaceIdentifier: 38, STRUCT_START: 39, classStatements: 40, STRUCT_STOP: 41, NAMESPACE: 42, classIdentifier: 43, STYLE_SEPARATOR: 44, members: 45, ANNOTATION_START: 46, ANNOTATION_END: 47, CLASS: 48, emptyBody: 49, SPACE: 50, MEMBER: 51, SEPARATOR: 52, relation: 53, NOTE_FOR: 54, noteText: 55, NOTE: 56, CLASSDEF: 57, classList: 58, stylesOpt: 59, ALPHA: 60, COMMA: 61, direction_tb: 62, direction_bt: 63, direction_rl: 64, direction_lr: 65, relationType: 66, lineType: 67, AGGREGATION: 68, EXTENSION: 69, COMPOSITION: 70, DEPENDENCY: 71, LOLLIPOP: 72, LINE: 73, DOTTED_LINE: 74, CALLBACK: 75, LINK: 76, LINK_TARGET: 77, CLICK: 78, CALLBACK_NAME: 79, CALLBACK_ARGS: 80, HREF: 81, STYLE: 82, CSSCLASS: 83, style: 84, styleComponent: 85, NUM: 86, COLON: 87, UNIT: 88, BRKT: 89, PCT: 90, commentToken: 91, textToken: 92, graphCodeTokens: 93, textNoTagsToken: 94, TAGSTART: 95, TAGEND: 96, "==": 97, "--": 98, DEFAULT: 99, MINUS: 100, keywords: 101, UNICODE_TEXT: 102, BQUOTE_STR: 103, $accept: 0, $end: 1 },
|
|
17
17
|
terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 18: "DOT", 20: "GENERICTYPE", 22: "LABEL", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 39: "STRUCT_START", 41: "STRUCT_STOP", 42: "NAMESPACE", 44: "STYLE_SEPARATOR", 46: "ANNOTATION_START", 47: "ANNOTATION_END", 48: "CLASS", 50: "SPACE", 51: "MEMBER", 52: "SEPARATOR", 54: "NOTE_FOR", 56: "NOTE", 57: "CLASSDEF", 60: "ALPHA", 61: "COMMA", 62: "direction_tb", 63: "direction_bt", 64: "direction_rl", 65: "direction_lr", 68: "AGGREGATION", 69: "EXTENSION", 70: "COMPOSITION", 71: "DEPENDENCY", 72: "LOLLIPOP", 73: "LINE", 74: "DOTTED_LINE", 75: "CALLBACK", 76: "LINK", 77: "LINK_TARGET", 78: "CLICK", 79: "CALLBACK_NAME", 80: "CALLBACK_ARGS", 81: "HREF", 82: "STYLE", 83: "CSSCLASS", 86: "NUM", 87: "COLON", 88: "UNIT", 89: "BRKT", 90: "PCT", 93: "graphCodeTokens", 95: "TAGSTART", 96: "TAGEND", 97: "==", 98: "--", 99: "DEFAULT", 100: "MINUS", 101: "keywords", 102: "UNICODE_TEXT", 103: "BQUOTE_STR" },
|
|
18
18
|
productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 1], [15, 3], [15, 2], [19, 1], [19, 3], [19, 1], [19, 2], [19, 2], [19, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [23, 4], [23, 5], [38, 2], [38, 3], [40, 1], [40, 2], [40, 3], [40, 1], [40, 2], [40, 3], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 3], [24, 6], [24, 4], [24, 7], [24, 6], [43, 2], [43, 3], [49, 0], [49, 2], [49, 2], [26, 4], [45, 1], [45, 2], [25, 1], [25, 2], [25, 1], [25, 1], [21, 3], [21, 4], [21, 4], [21, 5], [30, 3], [30, 2], [31, 3], [58, 1], [58, 3], [32, 1], [32, 1], [32, 1], [32, 1], [53, 3], [53, 2], [53, 2], [53, 1], [66, 1], [66, 1], [66, 1], [66, 1], [66, 1], [67, 1], [67, 1], [27, 3], [27, 4], [27, 3], [27, 4], [27, 4], [27, 5], [27, 3], [27, 4], [27, 4], [27, 5], [27, 4], [27, 5], [27, 5], [27, 6], [28, 3], [29, 3], [59, 1], [59, 3], [84, 1], [84, 2], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [91, 1], [91, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [94, 1], [94, 1], [94, 1], [94, 1], [16, 1], [16, 1], [16, 1], [16, 1], [17, 1], [55, 1]],
|
|
19
|
-
performAction: /* @__PURE__ */ f(function(o, h, p,
|
|
19
|
+
performAction: /* @__PURE__ */ f(function(o, h, p, l, C, e, J) {
|
|
20
20
|
var s = e.length - 1;
|
|
21
|
-
switch (
|
|
21
|
+
switch (C) {
|
|
22
22
|
case 8:
|
|
23
23
|
this.$ = e[s - 1];
|
|
24
24
|
break;
|
|
@@ -41,29 +41,29 @@ var we = (function() {
|
|
|
41
41
|
this.$ = e[s - 1] + "~" + e[s] + "~";
|
|
42
42
|
break;
|
|
43
43
|
case 19:
|
|
44
|
-
|
|
44
|
+
l.addRelation(e[s]);
|
|
45
45
|
break;
|
|
46
46
|
case 20:
|
|
47
|
-
e[s - 1].title =
|
|
47
|
+
e[s - 1].title = l.cleanupLabel(e[s]), l.addRelation(e[s - 1]);
|
|
48
48
|
break;
|
|
49
49
|
case 31:
|
|
50
|
-
this.$ = e[s].trim(),
|
|
50
|
+
this.$ = e[s].trim(), l.setAccTitle(this.$);
|
|
51
51
|
break;
|
|
52
52
|
case 32:
|
|
53
53
|
case 33:
|
|
54
|
-
this.$ = e[s].trim(),
|
|
54
|
+
this.$ = e[s].trim(), l.setAccDescription(this.$);
|
|
55
55
|
break;
|
|
56
56
|
case 34:
|
|
57
|
-
|
|
57
|
+
l.addClassesToNamespace(e[s - 3], e[s - 1][0], e[s - 1][1]), l.popNamespace();
|
|
58
58
|
break;
|
|
59
59
|
case 35:
|
|
60
|
-
|
|
60
|
+
l.addClassesToNamespace(e[s - 4], e[s - 1][0], e[s - 1][1]), l.popNamespace();
|
|
61
61
|
break;
|
|
62
62
|
case 36:
|
|
63
|
-
this.$ =
|
|
63
|
+
this.$ = l.addNamespace(e[s]);
|
|
64
64
|
break;
|
|
65
65
|
case 37:
|
|
66
|
-
this.$ =
|
|
66
|
+
this.$ = l.addNamespace(e[s - 1], e[s]);
|
|
67
67
|
break;
|
|
68
68
|
case 38:
|
|
69
69
|
this.$ = [[e[s]], []];
|
|
@@ -91,31 +91,31 @@ var we = (function() {
|
|
|
91
91
|
this.$ = e[s];
|
|
92
92
|
break;
|
|
93
93
|
case 48:
|
|
94
|
-
|
|
94
|
+
l.setCssClass(e[s - 2], e[s]);
|
|
95
95
|
break;
|
|
96
96
|
case 49:
|
|
97
|
-
|
|
97
|
+
l.addMembers(e[s - 3], e[s - 1]);
|
|
98
98
|
break;
|
|
99
99
|
case 51:
|
|
100
|
-
|
|
100
|
+
l.setCssClass(e[s - 5], e[s - 3]), l.addMembers(e[s - 5], e[s - 1]);
|
|
101
101
|
break;
|
|
102
102
|
case 52:
|
|
103
|
-
|
|
103
|
+
l.addAnnotation(e[s - 3], e[s - 1]);
|
|
104
104
|
break;
|
|
105
105
|
case 53:
|
|
106
|
-
|
|
106
|
+
l.addAnnotation(e[s - 6], e[s - 4]), l.addMembers(e[s - 6], e[s - 1]);
|
|
107
107
|
break;
|
|
108
108
|
case 54:
|
|
109
|
-
|
|
109
|
+
l.addAnnotation(e[s - 5], e[s - 3]);
|
|
110
110
|
break;
|
|
111
111
|
case 55:
|
|
112
|
-
this.$ = e[s],
|
|
112
|
+
this.$ = e[s], l.addClass(e[s]);
|
|
113
113
|
break;
|
|
114
114
|
case 56:
|
|
115
|
-
this.$ = e[s - 1],
|
|
115
|
+
this.$ = e[s - 1], l.addClass(e[s - 1]), l.setClassLabel(e[s - 1], e[s]);
|
|
116
116
|
break;
|
|
117
117
|
case 60:
|
|
118
|
-
|
|
118
|
+
l.addAnnotation(e[s], e[s - 2]);
|
|
119
119
|
break;
|
|
120
120
|
case 61:
|
|
121
121
|
case 74:
|
|
@@ -127,7 +127,7 @@ var we = (function() {
|
|
|
127
127
|
case 63:
|
|
128
128
|
break;
|
|
129
129
|
case 64:
|
|
130
|
-
|
|
130
|
+
l.addMember(e[s - 1], l.cleanupLabel(e[s]));
|
|
131
131
|
break;
|
|
132
132
|
case 65:
|
|
133
133
|
break;
|
|
@@ -146,28 +146,28 @@ var we = (function() {
|
|
|
146
146
|
this.$ = { id1: e[s - 4], id2: e[s], relation: e[s - 2], relationTitle1: e[s - 3], relationTitle2: e[s - 1] };
|
|
147
147
|
break;
|
|
148
148
|
case 71:
|
|
149
|
-
this.$ =
|
|
149
|
+
this.$ = l.addNote(e[s], e[s - 1]);
|
|
150
150
|
break;
|
|
151
151
|
case 72:
|
|
152
|
-
this.$ =
|
|
152
|
+
this.$ = l.addNote(e[s]);
|
|
153
153
|
break;
|
|
154
154
|
case 73:
|
|
155
|
-
this.$ = e[s - 2],
|
|
155
|
+
this.$ = e[s - 2], l.defineClass(e[s - 1], e[s]);
|
|
156
156
|
break;
|
|
157
157
|
case 75:
|
|
158
158
|
this.$ = e[s - 2].concat([e[s]]);
|
|
159
159
|
break;
|
|
160
160
|
case 76:
|
|
161
|
-
|
|
161
|
+
l.setDirection("TB");
|
|
162
162
|
break;
|
|
163
163
|
case 77:
|
|
164
|
-
|
|
164
|
+
l.setDirection("BT");
|
|
165
165
|
break;
|
|
166
166
|
case 78:
|
|
167
|
-
|
|
167
|
+
l.setDirection("RL");
|
|
168
168
|
break;
|
|
169
169
|
case 79:
|
|
170
|
-
|
|
170
|
+
l.setDirection("LR");
|
|
171
171
|
break;
|
|
172
172
|
case 80:
|
|
173
173
|
this.$ = { type1: e[s - 2], type2: e[s], lineType: e[s - 1] };
|
|
@@ -182,69 +182,69 @@ var we = (function() {
|
|
|
182
182
|
this.$ = { type1: "none", type2: "none", lineType: e[s] };
|
|
183
183
|
break;
|
|
184
184
|
case 84:
|
|
185
|
-
this.$ =
|
|
185
|
+
this.$ = l.relationType.AGGREGATION;
|
|
186
186
|
break;
|
|
187
187
|
case 85:
|
|
188
|
-
this.$ =
|
|
188
|
+
this.$ = l.relationType.EXTENSION;
|
|
189
189
|
break;
|
|
190
190
|
case 86:
|
|
191
|
-
this.$ =
|
|
191
|
+
this.$ = l.relationType.COMPOSITION;
|
|
192
192
|
break;
|
|
193
193
|
case 87:
|
|
194
|
-
this.$ =
|
|
194
|
+
this.$ = l.relationType.DEPENDENCY;
|
|
195
195
|
break;
|
|
196
196
|
case 88:
|
|
197
|
-
this.$ =
|
|
197
|
+
this.$ = l.relationType.LOLLIPOP;
|
|
198
198
|
break;
|
|
199
199
|
case 89:
|
|
200
|
-
this.$ =
|
|
200
|
+
this.$ = l.lineType.LINE;
|
|
201
201
|
break;
|
|
202
202
|
case 90:
|
|
203
|
-
this.$ =
|
|
203
|
+
this.$ = l.lineType.DOTTED_LINE;
|
|
204
204
|
break;
|
|
205
205
|
case 91:
|
|
206
206
|
case 97:
|
|
207
|
-
this.$ = e[s - 2],
|
|
207
|
+
this.$ = e[s - 2], l.setClickEvent(e[s - 1], e[s]);
|
|
208
208
|
break;
|
|
209
209
|
case 92:
|
|
210
210
|
case 98:
|
|
211
|
-
this.$ = e[s - 3],
|
|
211
|
+
this.$ = e[s - 3], l.setClickEvent(e[s - 2], e[s - 1]), l.setTooltip(e[s - 2], e[s]);
|
|
212
212
|
break;
|
|
213
213
|
case 93:
|
|
214
|
-
this.$ = e[s - 2],
|
|
214
|
+
this.$ = e[s - 2], l.setLink(e[s - 1], e[s]);
|
|
215
215
|
break;
|
|
216
216
|
case 94:
|
|
217
|
-
this.$ = e[s - 3],
|
|
217
|
+
this.$ = e[s - 3], l.setLink(e[s - 2], e[s - 1], e[s]);
|
|
218
218
|
break;
|
|
219
219
|
case 95:
|
|
220
|
-
this.$ = e[s - 3],
|
|
220
|
+
this.$ = e[s - 3], l.setLink(e[s - 2], e[s - 1]), l.setTooltip(e[s - 2], e[s]);
|
|
221
221
|
break;
|
|
222
222
|
case 96:
|
|
223
|
-
this.$ = e[s - 4],
|
|
223
|
+
this.$ = e[s - 4], l.setLink(e[s - 3], e[s - 2], e[s]), l.setTooltip(e[s - 3], e[s - 1]);
|
|
224
224
|
break;
|
|
225
225
|
case 99:
|
|
226
|
-
this.$ = e[s - 3],
|
|
226
|
+
this.$ = e[s - 3], l.setClickEvent(e[s - 2], e[s - 1], e[s]);
|
|
227
227
|
break;
|
|
228
228
|
case 100:
|
|
229
|
-
this.$ = e[s - 4],
|
|
229
|
+
this.$ = e[s - 4], l.setClickEvent(e[s - 3], e[s - 2], e[s - 1]), l.setTooltip(e[s - 3], e[s]);
|
|
230
230
|
break;
|
|
231
231
|
case 101:
|
|
232
|
-
this.$ = e[s - 3],
|
|
232
|
+
this.$ = e[s - 3], l.setLink(e[s - 2], e[s]);
|
|
233
233
|
break;
|
|
234
234
|
case 102:
|
|
235
|
-
this.$ = e[s - 4],
|
|
235
|
+
this.$ = e[s - 4], l.setLink(e[s - 3], e[s - 1], e[s]);
|
|
236
236
|
break;
|
|
237
237
|
case 103:
|
|
238
|
-
this.$ = e[s - 4],
|
|
238
|
+
this.$ = e[s - 4], l.setLink(e[s - 3], e[s - 1]), l.setTooltip(e[s - 3], e[s]);
|
|
239
239
|
break;
|
|
240
240
|
case 104:
|
|
241
|
-
this.$ = e[s - 5],
|
|
241
|
+
this.$ = e[s - 5], l.setLink(e[s - 4], e[s - 2], e[s]), l.setTooltip(e[s - 4], e[s - 1]);
|
|
242
242
|
break;
|
|
243
243
|
case 105:
|
|
244
|
-
this.$ = e[s - 2],
|
|
244
|
+
this.$ = e[s - 2], l.setCssStyle(e[s - 1], e[s]);
|
|
245
245
|
break;
|
|
246
246
|
case 106:
|
|
247
|
-
|
|
247
|
+
l.setCssClass(e[s - 1], e[s]);
|
|
248
248
|
break;
|
|
249
249
|
case 107:
|
|
250
250
|
this.$ = [e[s]];
|
|
@@ -257,7 +257,7 @@ var we = (function() {
|
|
|
257
257
|
break;
|
|
258
258
|
}
|
|
259
259
|
}, "anonymous"),
|
|
260
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37:
|
|
260
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: n, 38: 22, 42: r, 43: 23, 46: c, 48: u, 51: d, 52: m, 54: g, 56: N, 57: Ae, 60: b, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: ke, 78: Ee, 82: Te, 83: ye, 86: k, 100: E, 102: T, 103: y }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, t(De, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, t(A, [2, 19], { 22: [1, 50] }), t(A, [2, 21]), t(A, [2, 22]), t(A, [2, 23]), t(A, [2, 24]), t(A, [2, 25]), t(A, [2, 26]), t(A, [2, 27]), t(A, [2, 28]), t(A, [2, 29]), t(A, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, t(A, [2, 33]), t(A, [2, 63], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: Z, 69: $, 70: ee, 71: te, 72: se, 73: Fe, 74: Be }), { 39: [1, 65] }, t(_, [2, 47], { 39: [1, 67], 44: [1, 66], 46: [1, 68] }), t(A, [2, 65]), t(A, [2, 66]), { 16: 69, 60: b, 86: k, 100: E, 102: T }, { 16: 39, 17: 40, 19: 70, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 71, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 72, 60: b, 86: k, 100: E, 102: T, 103: y }, { 60: [1, 73] }, { 13: [1, 74] }, { 16: 39, 17: 40, 19: 75, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: Pe, 55: 76 }, { 58: 78, 60: [1, 79] }, t(A, [2, 76]), t(A, [2, 77]), t(A, [2, 78]), t(A, [2, 79]), t(M, [2, 13], { 16: 39, 17: 40, 19: 81, 18: [1, 80], 20: [1, 82], 60: b, 86: k, 100: E, 102: T, 103: y }), t(M, [2, 15], { 20: [1, 83] }), { 15: 84, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 87, 60: b, 86: k, 100: E, 102: T, 103: y }, t(ie, [2, 133]), t(ie, [2, 134]), t(ie, [2, 135]), t(ie, [2, 136]), t([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 137]), t(De, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 88, 33: i, 35: a, 37: n, 42: r, 46: c, 48: u, 51: d, 52: m, 54: g, 56: N, 57: Ae, 60: b, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: ke, 78: Ee, 82: Te, 83: ye, 86: k, 100: E, 102: T, 103: y }), { 5: 89, 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: n, 38: 22, 42: r, 43: 23, 46: c, 48: u, 51: d, 52: m, 54: g, 56: N, 57: Ae, 60: b, 62: fe, 63: ge, 64: me, 65: Ce, 75: be, 76: ke, 78: Ee, 82: Te, 83: ye, 86: k, 100: E, 102: T, 103: y }, t(A, [2, 20]), t(A, [2, 31]), t(A, [2, 32]), { 13: [1, 91], 16: 39, 17: 40, 19: 90, 60: b, 86: k, 100: E, 102: T, 103: y }, { 53: 92, 66: 56, 67: 57, 68: Z, 69: $, 70: ee, 71: te, 72: se, 73: Fe, 74: Be }, t(A, [2, 64]), { 67: 93, 73: Fe, 74: Be }, t(ae, [2, 83], { 66: 94, 68: Z, 69: $, 70: ee, 71: te, 72: se }), t(U, [2, 84]), t(U, [2, 85]), t(U, [2, 86]), t(U, [2, 87]), t(U, [2, 88]), t(Me, [2, 89]), t(Me, [2, 90]), { 8: [1, 96], 23: 99, 24: 97, 30: 98, 38: 22, 40: 95, 42: r, 43: 23, 48: u, 54: g, 56: N }, { 16: 100, 60: b, 86: k, 100: E, 102: T }, { 41: [1, 102], 45: 101, 51: ne }, { 16: 104, 60: b, 86: k, 100: E, 102: T }, { 47: [1, 105] }, { 13: [1, 106] }, { 13: [1, 107] }, { 79: [1, 108], 81: [1, 109] }, { 22: z, 50: Y, 59: 110, 60: K, 82: W, 84: 111, 85: 112, 86: Q, 87: j, 88: X, 89: q, 90: H }, { 60: [1, 122] }, { 13: Pe, 55: 123 }, t(_, [2, 72]), t(_, [2, 138]), { 22: z, 50: Y, 59: 124, 60: K, 61: [1, 125], 82: W, 84: 111, 85: 112, 86: Q, 87: j, 88: X, 89: q, 90: H }, t(Re, [2, 74]), { 16: 39, 17: 40, 19: 126, 60: b, 86: k, 100: E, 102: T, 103: y }, t(M, [2, 16]), t(M, [2, 17]), t(M, [2, 18]), { 11: 127, 12: Ge, 39: [2, 36] }, t(re, [2, 9], { 16: 85, 17: 86, 15: 130, 18: [1, 129], 60: b, 86: k, 100: E, 102: T, 103: y }), t(re, [2, 10]), t(_e, [2, 55], { 11: 131, 12: Ge }), t(De, [2, 7]), { 9: [1, 132] }, t(ue, [2, 67]), { 16: 39, 17: 40, 19: 133, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: [1, 135], 16: 39, 17: 40, 19: 134, 60: b, 86: k, 100: E, 102: T, 103: y }, t(ae, [2, 82], { 66: 136, 68: Z, 69: $, 70: ee, 71: te, 72: se }), t(ae, [2, 81]), { 41: [1, 137] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 138, 42: r, 43: 23, 48: u, 54: g, 56: N }, { 8: [1, 139], 41: [2, 38] }, { 8: [1, 140], 41: [2, 41] }, { 8: [1, 141], 41: [2, 44] }, t(_, [2, 48], { 39: [1, 142] }), { 41: [1, 143] }, t(_, [2, 50]), { 41: [2, 61], 45: 144, 51: ne }, { 47: [1, 145] }, { 16: 39, 17: 40, 19: 146, 60: b, 86: k, 100: E, 102: T, 103: y }, t(A, [2, 91], { 13: [1, 147] }), t(A, [2, 93], { 13: [1, 149], 77: [1, 148] }), t(A, [2, 97], { 13: [1, 150], 80: [1, 151] }), { 13: [1, 152] }, t(A, [2, 105], { 61: Ue }), t(ze, [2, 107], { 85: 154, 22: z, 50: Y, 60: K, 82: W, 86: Q, 87: j, 88: X, 89: q, 90: H }), t(x, [2, 109]), t(x, [2, 111]), t(x, [2, 112]), t(x, [2, 113]), t(x, [2, 114]), t(x, [2, 115]), t(x, [2, 116]), t(x, [2, 117]), t(x, [2, 118]), t(x, [2, 119]), t(A, [2, 106]), t(_, [2, 71]), t(A, [2, 73], { 61: Ue }), { 60: [1, 155] }, t(M, [2, 14]), { 39: [2, 37] }, { 13: [1, 156] }, { 15: 157, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, t(re, [2, 12]), t(_e, [2, 56]), { 1: [2, 4] }, t(ue, [2, 69]), t(ue, [2, 68]), { 16: 39, 17: 40, 19: 158, 60: b, 86: k, 100: E, 102: T, 103: y }, t(ae, [2, 80]), t(_, [2, 34]), { 41: [1, 159] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 160, 41: [2, 39], 42: r, 43: 23, 48: u, 54: g, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 161, 41: [2, 42], 42: r, 43: 23, 48: u, 54: g, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 162, 41: [2, 45], 42: r, 43: 23, 48: u, 54: g, 56: N }, { 45: 163, 51: ne }, t(_, [2, 49]), { 41: [2, 62] }, t(_, [2, 52], { 39: [1, 164] }), t(A, [2, 60]), t(A, [2, 92]), t(A, [2, 94]), t(A, [2, 95], { 77: [1, 165] }), t(A, [2, 98]), t(A, [2, 99], { 13: [1, 166] }), t(A, [2, 101], { 13: [1, 168], 77: [1, 167] }), { 22: z, 50: Y, 60: K, 82: W, 84: 169, 85: 112, 86: Q, 87: j, 88: X, 89: q, 90: H }, t(x, [2, 110]), t(Re, [2, 75]), { 14: [1, 170] }, t(re, [2, 11]), t(ue, [2, 70]), t(_, [2, 35]), { 41: [2, 40] }, { 41: [2, 43] }, { 41: [2, 46] }, { 41: [1, 171] }, { 41: [1, 173], 45: 172, 51: ne }, t(A, [2, 96]), t(A, [2, 100]), t(A, [2, 102]), t(A, [2, 103], { 77: [1, 174] }), t(ze, [2, 108], { 85: 154, 22: z, 50: Y, 60: K, 82: W, 86: Q, 87: j, 88: X, 89: q, 90: H }), t(_e, [2, 8]), t(_, [2, 51]), { 41: [1, 175] }, t(_, [2, 54]), t(A, [2, 104]), t(_, [2, 53])],
|
|
261
261
|
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 127: [2, 37], 132: [2, 4], 144: [2, 62], 160: [2, 40], 161: [2, 43], 162: [2, 46] },
|
|
262
262
|
parseError: /* @__PURE__ */ f(function(o, h) {
|
|
263
263
|
if (h.recoverable)
|
|
@@ -268,7 +268,7 @@ var we = (function() {
|
|
|
268
268
|
}
|
|
269
269
|
}, "parseError"),
|
|
270
270
|
parse: /* @__PURE__ */ f(function(o) {
|
|
271
|
-
var h = this, p = [0],
|
|
271
|
+
var h = this, p = [0], l = [], C = [null], e = [], J = this.table, s = "", ce = 0, Ye = 0, Je = 2, Ke = 1, Ze = e.slice.call(arguments, 1), D = Object.create(this.lexer), w = { yy: {} };
|
|
272
272
|
for (var Ne in this.yy)
|
|
273
273
|
Object.prototype.hasOwnProperty.call(this.yy, Ne) && (w.yy[Ne] = this.yy[Ne]);
|
|
274
274
|
D.setInput(o, w.yy), w.yy.lexer = D, w.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
|
|
@@ -277,12 +277,12 @@ var we = (function() {
|
|
|
277
277
|
var $e = D.options && D.options.ranges;
|
|
278
278
|
typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
279
279
|
function et(S) {
|
|
280
|
-
p.length = p.length - 2 * S,
|
|
280
|
+
p.length = p.length - 2 * S, C.length = C.length - S, e.length = e.length - S;
|
|
281
281
|
}
|
|
282
282
|
f(et, "popStack");
|
|
283
283
|
function We() {
|
|
284
284
|
var S;
|
|
285
|
-
return S =
|
|
285
|
+
return S = l.pop() || D.lex() || Ke, typeof S != "number" && (S instanceof Array && (l = S, S = l.pop()), S = h.symbols_[S] || S), S;
|
|
286
286
|
}
|
|
287
287
|
f(We, "lex");
|
|
288
288
|
for (var B, V, L, xe, R = {}, oe, v, Qe, he; ; ) {
|
|
@@ -305,10 +305,10 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ve =
|
|
|
305
305
|
throw new Error("Parse Error: multiple actions possible at state: " + V + ", token: " + B);
|
|
306
306
|
switch (L[0]) {
|
|
307
307
|
case 1:
|
|
308
|
-
p.push(B),
|
|
308
|
+
p.push(B), C.push(D.yytext), e.push(D.yylloc), p.push(L[1]), B = null, Ye = D.yyleng, s = D.yytext, ce = D.yylineno, Le = D.yylloc;
|
|
309
309
|
break;
|
|
310
310
|
case 2:
|
|
311
|
-
if (v = this.productions_[L[1]][1], R.$ =
|
|
311
|
+
if (v = this.productions_[L[1]][1], R.$ = C[C.length - v], R._$ = {
|
|
312
312
|
first_line: e[e.length - (v || 1)].first_line,
|
|
313
313
|
last_line: e[e.length - 1].last_line,
|
|
314
314
|
first_column: e[e.length - (v || 1)].first_column,
|
|
@@ -322,11 +322,11 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ve =
|
|
|
322
322
|
ce,
|
|
323
323
|
w.yy,
|
|
324
324
|
L[1],
|
|
325
|
-
|
|
325
|
+
C,
|
|
326
326
|
e
|
|
327
327
|
].concat(Ze)), typeof xe < "u")
|
|
328
328
|
return xe;
|
|
329
|
-
v && (p = p.slice(0, -1 * v * 2),
|
|
329
|
+
v && (p = p.slice(0, -1 * v * 2), C = C.slice(0, -1 * v), e = e.slice(0, -1 * v)), p.push(this.productions_[L[1]][0]), C.push(R.$), e.push(R._$), Qe = J[p[p.length - 2]][p[p.length - 1]], p.push(Qe);
|
|
330
330
|
break;
|
|
331
331
|
case 3:
|
|
332
332
|
return !0;
|
|
@@ -363,15 +363,15 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ve =
|
|
|
363
363
|
unput: /* @__PURE__ */ f(function(o) {
|
|
364
364
|
var h = o.length, p = o.split(/(?:\r\n?|\n)/g);
|
|
365
365
|
this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
|
|
366
|
-
var
|
|
366
|
+
var l = this.match.split(/(?:\r\n?|\n)/g);
|
|
367
367
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
|
|
368
|
-
var
|
|
368
|
+
var C = this.yylloc.range;
|
|
369
369
|
return this.yylloc = {
|
|
370
370
|
first_line: this.yylloc.first_line,
|
|
371
371
|
last_line: this.yylineno + 1,
|
|
372
372
|
first_column: this.yylloc.first_column,
|
|
373
|
-
last_column: p ? (p.length ===
|
|
374
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
373
|
+
last_column: p ? (p.length === l.length ? this.yylloc.first_column : 0) + l[l.length - p.length].length - p[0].length : this.yylloc.first_column - h
|
|
374
|
+
}, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
|
|
375
375
|
}, "unput"),
|
|
376
376
|
// When called from action, caches matched text and appends it on next action
|
|
377
377
|
more: /* @__PURE__ */ f(function() {
|
|
@@ -412,8 +412,8 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ve =
|
|
|
412
412
|
}, "showPosition"),
|
|
413
413
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
414
414
|
test_match: /* @__PURE__ */ f(function(o, h) {
|
|
415
|
-
var p,
|
|
416
|
-
if (this.options.backtrack_lexer && (
|
|
415
|
+
var p, l, C;
|
|
416
|
+
if (this.options.backtrack_lexer && (C = {
|
|
417
417
|
yylineno: this.yylineno,
|
|
418
418
|
yylloc: {
|
|
419
419
|
first_line: this.yylloc.first_line,
|
|
@@ -432,16 +432,16 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ve =
|
|
|
432
432
|
yy: this.yy,
|
|
433
433
|
conditionStack: this.conditionStack.slice(0),
|
|
434
434
|
done: this.done
|
|
435
|
-
}, this.options.ranges && (
|
|
435
|
+
}, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), l = o[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
|
|
436
436
|
first_line: this.yylloc.last_line,
|
|
437
437
|
last_line: this.yylineno + 1,
|
|
438
438
|
first_column: this.yylloc.last_column,
|
|
439
|
-
last_column:
|
|
439
|
+
last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
|
|
440
440
|
}, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(o[0].length), this.matched += o[0], p = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
|
|
441
441
|
return p;
|
|
442
442
|
if (this._backtrack) {
|
|
443
|
-
for (var e in
|
|
444
|
-
this[e] =
|
|
443
|
+
for (var e in C)
|
|
444
|
+
this[e] = C[e];
|
|
445
445
|
return !1;
|
|
446
446
|
}
|
|
447
447
|
return !1;
|
|
@@ -451,12 +451,12 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ve =
|
|
|
451
451
|
if (this.done)
|
|
452
452
|
return this.EOF;
|
|
453
453
|
this._input || (this.done = !0);
|
|
454
|
-
var o, h, p,
|
|
454
|
+
var o, h, p, l;
|
|
455
455
|
this._more || (this.yytext = "", this.match = "");
|
|
456
|
-
for (var
|
|
457
|
-
if (p = this._input.match(this.rules[
|
|
458
|
-
if (h = p,
|
|
459
|
-
if (o = this.test_match(p,
|
|
456
|
+
for (var C = this._currentRules(), e = 0; e < C.length; e++)
|
|
457
|
+
if (p = this._input.match(this.rules[C[e]]), p && (!h || p[0].length > h[0].length)) {
|
|
458
|
+
if (h = p, l = e, this.options.backtrack_lexer) {
|
|
459
|
+
if (o = this.test_match(p, C[e]), o !== !1)
|
|
460
460
|
return o;
|
|
461
461
|
if (this._backtrack) {
|
|
462
462
|
h = !1;
|
|
@@ -466,7 +466,7 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ve =
|
|
|
466
466
|
} else if (!this.options.flex)
|
|
467
467
|
break;
|
|
468
468
|
}
|
|
469
|
-
return h ? (o = this.test_match(h,
|
|
469
|
+
return h ? (o = this.test_match(h, C[l]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
470
470
|
` + this.showPosition(), {
|
|
471
471
|
text: "",
|
|
472
472
|
token: null,
|
|
@@ -504,8 +504,8 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : ve =
|
|
|
504
504
|
return this.conditionStack.length;
|
|
505
505
|
}, "stateStackSize"),
|
|
506
506
|
options: {},
|
|
507
|
-
performAction: /* @__PURE__ */ f(function(h, p,
|
|
508
|
-
switch (
|
|
507
|
+
performAction: /* @__PURE__ */ f(function(h, p, l, C) {
|
|
508
|
+
switch (l) {
|
|
509
509
|
case 0:
|
|
510
510
|
return 62;
|
|
511
511
|
case 1:
|
|
@@ -737,7 +737,7 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
737
737
|
}
|
|
738
738
|
constructor(t, i) {
|
|
739
739
|
this.memberType = i, this.visibility = "", this.classifier = "", this.text = "";
|
|
740
|
-
const a =
|
|
740
|
+
const a = ft(t, F());
|
|
741
741
|
this.parseMember(a);
|
|
742
742
|
}
|
|
743
743
|
getDisplayDetails() {
|
|
@@ -752,19 +752,19 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
752
752
|
parseMember(t) {
|
|
753
753
|
let i = "";
|
|
754
754
|
if (this.memberType === "method") {
|
|
755
|
-
const
|
|
756
|
-
if (
|
|
757
|
-
const c =
|
|
758
|
-
if (je.includes(c) && (this.visibility = c), this.id =
|
|
759
|
-
const
|
|
760
|
-
/[$*]/.exec(
|
|
755
|
+
const r = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);
|
|
756
|
+
if (r) {
|
|
757
|
+
const c = r[1] ? r[1].trim() : "";
|
|
758
|
+
if (je.includes(c) && (this.visibility = c), this.id = r[2], this.parameters = r[3] ? r[3].trim() : "", i = r[4] ? r[4].trim() : "", this.returnType = r[5] ? r[5].trim() : "", i === "") {
|
|
759
|
+
const u = this.returnType.substring(this.returnType.length - 1);
|
|
760
|
+
/[$*]/.exec(u) && (i = u, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
} else {
|
|
764
|
-
const
|
|
765
|
-
je.includes(
|
|
764
|
+
const n = t.length, r = t.substring(0, 1), c = t.substring(n - 1);
|
|
765
|
+
je.includes(r) && (this.visibility = r), /[$*]/.exec(c) && (i = c), this.id = t.substring(
|
|
766
766
|
this.visibility === "" ? 0 : 1,
|
|
767
|
-
i === "" ?
|
|
767
|
+
i === "" ? n : n - 1
|
|
768
768
|
);
|
|
769
769
|
}
|
|
770
770
|
this.classifier = i, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
|
|
@@ -793,37 +793,37 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
793
793
|
DEPENDENCY: 3,
|
|
794
794
|
LOLLIPOP: 4
|
|
795
795
|
}, this.setupToolTips = /* @__PURE__ */ f((i) => {
|
|
796
|
-
const a =
|
|
796
|
+
const a = gt();
|
|
797
797
|
de(i).select("svg").selectAll("g").filter(function() {
|
|
798
798
|
return de(this).attr("title") !== null;
|
|
799
799
|
}).on("mouseover", (c) => {
|
|
800
|
-
const
|
|
800
|
+
const u = de(c.currentTarget), d = u.attr("title");
|
|
801
801
|
if (!d)
|
|
802
802
|
return;
|
|
803
803
|
const m = c.currentTarget.getBoundingClientRect();
|
|
804
|
-
a.transition().duration(200).style("opacity", ".9"), a.html(
|
|
804
|
+
a.transition().duration(200).style("opacity", ".9"), a.html(rt.sanitize(d)).style("left", `${window.scrollX + m.left + m.width / 2}px`).style("top", `${window.scrollY + m.bottom + 4}px`), u.classed("hover", !0);
|
|
805
805
|
}).on("mouseout", (c) => {
|
|
806
806
|
a.transition().duration(500).style("opacity", 0), de(c.currentTarget).classed("hover", !1);
|
|
807
807
|
});
|
|
808
|
-
}, "setupToolTips"), this.direction = "TB", this.setAccTitle =
|
|
808
|
+
}, "setupToolTips"), this.direction = "TB", this.setAccTitle = ut, this.getAccTitle = lt, this.setAccDescription = ct, this.getAccDescription = ot, this.setDiagramTitle = ht, this.getDiagramTitle = dt, this.getConfig = /* @__PURE__ */ f(() => F().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.popNamespace = this.popNamespace.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);
|
|
809
809
|
}
|
|
810
810
|
static {
|
|
811
811
|
f(this, "ClassDB");
|
|
812
812
|
}
|
|
813
813
|
splitClassNameAndType(i) {
|
|
814
814
|
const a = I.sanitizeText(i, F());
|
|
815
|
-
let
|
|
815
|
+
let n = "", r = a;
|
|
816
816
|
if (a.indexOf("~") > 0) {
|
|
817
817
|
const c = a.split("~");
|
|
818
|
-
|
|
818
|
+
r = P(c[0]), n = P(c[1]);
|
|
819
819
|
}
|
|
820
|
-
return { className:
|
|
820
|
+
return { className: r, type: n };
|
|
821
821
|
}
|
|
822
822
|
setClassLabel(i, a) {
|
|
823
|
-
const
|
|
823
|
+
const n = I.sanitizeText(i, F());
|
|
824
824
|
a && (a = P(a));
|
|
825
|
-
const { className:
|
|
826
|
-
this.classes.get(
|
|
825
|
+
const { className: r } = this.splitClassNameAndType(n);
|
|
826
|
+
this.classes.get(r).label = a, this.classes.get(r).text = `${a}${this.classes.get(r).type ? `<${this.classes.get(r).type}>` : ""}`;
|
|
827
827
|
}
|
|
828
828
|
/**
|
|
829
829
|
* Function called by parser when a node definition has been found.
|
|
@@ -832,15 +832,15 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
832
832
|
* @public
|
|
833
833
|
*/
|
|
834
834
|
addClass(i) {
|
|
835
|
-
const a = I.sanitizeText(i, F()), { className:
|
|
836
|
-
if (this.classes.has(
|
|
835
|
+
const a = I.sanitizeText(i, F()), { className: n, type: r } = this.splitClassNameAndType(a);
|
|
836
|
+
if (this.classes.has(n))
|
|
837
837
|
return;
|
|
838
|
-
const c = I.sanitizeText(
|
|
838
|
+
const c = I.sanitizeText(n, F());
|
|
839
839
|
this.classes.set(c, {
|
|
840
840
|
id: c,
|
|
841
|
-
type:
|
|
841
|
+
type: r,
|
|
842
842
|
label: c,
|
|
843
|
-
text: `${c}${
|
|
843
|
+
text: `${c}${r ? `<${r}>` : ""}`,
|
|
844
844
|
shape: "classBox",
|
|
845
845
|
cssClasses: "default",
|
|
846
846
|
methods: [],
|
|
@@ -851,12 +851,12 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
851
851
|
}), qe++;
|
|
852
852
|
}
|
|
853
853
|
addInterface(i, a) {
|
|
854
|
-
const
|
|
854
|
+
const n = {
|
|
855
855
|
id: `interface${this.interfaces.length}`,
|
|
856
856
|
label: i,
|
|
857
857
|
classId: a
|
|
858
858
|
};
|
|
859
|
-
this.interfaces.push(
|
|
859
|
+
this.interfaces.push(n);
|
|
860
860
|
}
|
|
861
861
|
/**
|
|
862
862
|
* Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
|
|
@@ -875,13 +875,13 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
875
875
|
lookUpDomId(i) {
|
|
876
876
|
const a = I.sanitizeText(i, F());
|
|
877
877
|
if (this.classes.has(a)) {
|
|
878
|
-
const
|
|
879
|
-
return this.diagramId ? `${this.diagramId}-${
|
|
878
|
+
const n = this.classes.get(a).domId;
|
|
879
|
+
return this.diagramId ? `${this.diagramId}-${n}` : n;
|
|
880
880
|
}
|
|
881
881
|
throw new Error("Class not found: " + a);
|
|
882
882
|
}
|
|
883
883
|
clear() {
|
|
884
|
-
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.direction = "TB",
|
|
884
|
+
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.direction = "TB", pt();
|
|
885
885
|
}
|
|
886
886
|
getClass(i) {
|
|
887
887
|
return this.classes.get(i);
|
|
@@ -925,8 +925,8 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
925
925
|
* @public
|
|
926
926
|
*/
|
|
927
927
|
addAnnotation(i, a) {
|
|
928
|
-
const
|
|
929
|
-
this.classes.get(
|
|
928
|
+
const n = this.splitClassNameAndType(i).className;
|
|
929
|
+
this.classes.get(n).annotations.push(a);
|
|
930
930
|
}
|
|
931
931
|
/**
|
|
932
932
|
* Adds a member to the specified class
|
|
@@ -939,23 +939,23 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
939
939
|
*/
|
|
940
940
|
addMember(i, a) {
|
|
941
941
|
this.addClass(i);
|
|
942
|
-
const
|
|
942
|
+
const n = this.splitClassNameAndType(i).className, r = this.classes.get(n);
|
|
943
943
|
if (typeof a == "string") {
|
|
944
944
|
const c = a.trim();
|
|
945
|
-
c.startsWith("<<") && c.endsWith(">>") ?
|
|
945
|
+
c.startsWith("<<") && c.endsWith(">>") ? r.annotations.push(P(c.substring(2, c.length - 2))) : c.indexOf(")") > 0 ? r.methods.push(new Xe(c, "method")) : c && r.members.push(new Xe(c, "attribute"));
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
addMembers(i, a) {
|
|
949
|
-
Array.isArray(a) && (a.reverse(), a.forEach((
|
|
949
|
+
Array.isArray(a) && (a.reverse(), a.forEach((n) => this.addMember(i, n)));
|
|
950
950
|
}
|
|
951
951
|
addNote(i, a) {
|
|
952
|
-
const
|
|
953
|
-
id: `note${
|
|
952
|
+
const n = this.notes.size, r = {
|
|
953
|
+
id: `note${n}`,
|
|
954
954
|
class: a,
|
|
955
955
|
text: i,
|
|
956
|
-
index:
|
|
956
|
+
index: n
|
|
957
957
|
};
|
|
958
|
-
return this.notes.set(
|
|
958
|
+
return this.notes.set(r.id, r), r.id;
|
|
959
959
|
}
|
|
960
960
|
cleanupLabel(i) {
|
|
961
961
|
return i.startsWith(":") && (i = i.substring(1)), P(i.trim());
|
|
@@ -967,24 +967,24 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
967
967
|
* @param className - Class to add
|
|
968
968
|
*/
|
|
969
969
|
setCssClass(i, a) {
|
|
970
|
-
i.split(",").forEach((
|
|
971
|
-
let
|
|
972
|
-
/\d/.exec(
|
|
973
|
-
const c = this.classes.get(
|
|
970
|
+
i.split(",").forEach((n) => {
|
|
971
|
+
let r = n;
|
|
972
|
+
/\d/.exec(n[0]) && (r = pe + r), r = this.splitClassNameAndType(r).className;
|
|
973
|
+
const c = this.classes.get(r);
|
|
974
974
|
c && (c.cssClasses += " " + a);
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
977
|
defineClass(i, a) {
|
|
978
|
-
for (const
|
|
979
|
-
let
|
|
980
|
-
|
|
978
|
+
for (const n of i) {
|
|
979
|
+
let r = this.styleClasses.get(n);
|
|
980
|
+
r === void 0 && (r = { id: n, styles: [], textStyles: [] }, this.styleClasses.set(n, r)), a && a.forEach((c) => {
|
|
981
981
|
if (/color/.exec(c)) {
|
|
982
|
-
const
|
|
983
|
-
|
|
982
|
+
const u = c.replace("fill", "bgFill");
|
|
983
|
+
r.textStyles.push(u);
|
|
984
984
|
}
|
|
985
|
-
|
|
985
|
+
r.styles.push(c);
|
|
986
986
|
}), this.classes.forEach((c) => {
|
|
987
|
-
c.cssClasses.includes(
|
|
987
|
+
c.cssClasses.includes(n) && c.styles.push(...a.flatMap((u) => u.split(",")));
|
|
988
988
|
});
|
|
989
989
|
}
|
|
990
990
|
}
|
|
@@ -995,8 +995,11 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
995
995
|
* @param tooltip - Tooltip to add
|
|
996
996
|
*/
|
|
997
997
|
setTooltip(i, a) {
|
|
998
|
-
i.split(",").forEach((
|
|
999
|
-
a !== void 0
|
|
998
|
+
i.split(",").forEach((n) => {
|
|
999
|
+
if (a !== void 0) {
|
|
1000
|
+
const r = this.splitClassNameAndType(n).className, c = this.classes.get(r);
|
|
1001
|
+
c && (c.tooltip = P(a));
|
|
1002
|
+
}
|
|
1000
1003
|
});
|
|
1001
1004
|
}
|
|
1002
1005
|
getTooltip(i, a) {
|
|
@@ -1009,13 +1012,13 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
1009
1012
|
* @param linkStr - URL to create a link for
|
|
1010
1013
|
* @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
|
|
1011
1014
|
*/
|
|
1012
|
-
setLink(i, a,
|
|
1013
|
-
const
|
|
1015
|
+
setLink(i, a, n) {
|
|
1016
|
+
const r = F();
|
|
1014
1017
|
i.split(",").forEach((c) => {
|
|
1015
|
-
let
|
|
1016
|
-
/\d/.exec(c[0]) && (
|
|
1017
|
-
const d = this.classes.get(
|
|
1018
|
-
d && (d.link = Oe.formatUrl(a,
|
|
1018
|
+
let u = c;
|
|
1019
|
+
/\d/.exec(c[0]) && (u = pe + u), u = this.splitClassNameAndType(u).className;
|
|
1020
|
+
const d = this.classes.get(u);
|
|
1021
|
+
d && (d.link = Oe.formatUrl(a, r), r.securityLevel === "sandbox" ? d.linkTarget = "_top" : typeof n == "string" ? d.linkTarget = P(n) : d.linkTarget = "_blank");
|
|
1019
1022
|
}), this.setCssClass(i, "clickable");
|
|
1020
1023
|
}
|
|
1021
1024
|
/**
|
|
@@ -1025,27 +1028,29 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
1025
1028
|
* @param functionName - Function to be called on click
|
|
1026
1029
|
* @param functionArgs - Function args the function should be called with
|
|
1027
1030
|
*/
|
|
1028
|
-
setClickEvent(i, a,
|
|
1029
|
-
i.split(",").forEach((
|
|
1030
|
-
this.setClickFunc(
|
|
1031
|
+
setClickEvent(i, a, n) {
|
|
1032
|
+
i.split(",").forEach((r) => {
|
|
1033
|
+
this.setClickFunc(r, a, n);
|
|
1034
|
+
const c = this.splitClassNameAndType(r).className, u = this.classes.get(c);
|
|
1035
|
+
u && (u.haveCallback = !0);
|
|
1031
1036
|
}), this.setCssClass(i, "clickable");
|
|
1032
1037
|
}
|
|
1033
|
-
setClickFunc(i, a,
|
|
1034
|
-
const
|
|
1038
|
+
setClickFunc(i, a, n) {
|
|
1039
|
+
const r = I.sanitizeText(i, F());
|
|
1035
1040
|
if (F().securityLevel !== "loose" || a === void 0)
|
|
1036
1041
|
return;
|
|
1037
|
-
const
|
|
1038
|
-
if (this.classes.has(
|
|
1042
|
+
const u = this.splitClassNameAndType(r).className;
|
|
1043
|
+
if (this.classes.has(u)) {
|
|
1039
1044
|
let d = [];
|
|
1040
|
-
if (typeof
|
|
1041
|
-
d =
|
|
1045
|
+
if (typeof n == "string") {
|
|
1046
|
+
d = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
1042
1047
|
for (let m = 0; m < d.length; m++) {
|
|
1043
1048
|
let g = d[m].trim();
|
|
1044
1049
|
g.startsWith('"') && g.endsWith('"') && (g = g.substr(1, g.length - 2)), d[m] = g;
|
|
1045
1050
|
}
|
|
1046
1051
|
}
|
|
1047
|
-
d.length === 0 && d.push(
|
|
1048
|
-
const m = this.lookUpDomId(
|
|
1052
|
+
d.length === 0 && d.push(u), this.functions.push(() => {
|
|
1053
|
+
const m = this.lookUpDomId(u), g = document.querySelector(`[id="${m}"]`);
|
|
1049
1054
|
g !== null && g.addEventListener(
|
|
1050
1055
|
"click",
|
|
1051
1056
|
() => {
|
|
@@ -1072,17 +1077,17 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
1072
1077
|
this.direction = i;
|
|
1073
1078
|
}
|
|
1074
1079
|
static resolveQualifiedId(i, a) {
|
|
1075
|
-
const
|
|
1076
|
-
return
|
|
1080
|
+
const n = a.at(-1);
|
|
1081
|
+
return n ? `${n}.${i}` : i;
|
|
1077
1082
|
}
|
|
1078
1083
|
static getAncestorIds(i) {
|
|
1079
|
-
const a = i.split("."),
|
|
1080
|
-
|
|
1081
|
-
for (let
|
|
1082
|
-
r
|
|
1083
|
-
return
|
|
1084
|
+
const a = i.split("."), n = new Array(a.length);
|
|
1085
|
+
n[0] = a[0];
|
|
1086
|
+
for (let r = 1; r < a.length; r++)
|
|
1087
|
+
n[r] = `${n[r - 1]}.${a[r]}`;
|
|
1088
|
+
return n;
|
|
1084
1089
|
}
|
|
1085
|
-
createNamespaceNode(i, a,
|
|
1090
|
+
createNamespaceNode(i, a, n, r = !1) {
|
|
1086
1091
|
return {
|
|
1087
1092
|
id: i,
|
|
1088
1093
|
label: a,
|
|
@@ -1090,29 +1095,29 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
1090
1095
|
notes: /* @__PURE__ */ new Map(),
|
|
1091
1096
|
children: /* @__PURE__ */ new Map(),
|
|
1092
1097
|
domId: pe + i + "-" + this.namespaceCounter++,
|
|
1093
|
-
parent:
|
|
1094
|
-
explicit:
|
|
1098
|
+
parent: n,
|
|
1099
|
+
explicit: r
|
|
1095
1100
|
};
|
|
1096
1101
|
}
|
|
1097
1102
|
linkParentChild(i, a) {
|
|
1098
|
-
const
|
|
1099
|
-
!
|
|
1103
|
+
const n = this.namespaces.get(i), r = this.namespaces.get(a);
|
|
1104
|
+
!n || !r || (n.children.has(a) || n.children.set(a, r), r.parent ??= i);
|
|
1100
1105
|
}
|
|
1101
1106
|
addNamespace(i, a) {
|
|
1102
|
-
const
|
|
1103
|
-
if (this.namespaceStack.push(
|
|
1104
|
-
const
|
|
1105
|
-
return
|
|
1107
|
+
const n = Ve.resolveQualifiedId(i, this.namespaceStack);
|
|
1108
|
+
if (this.namespaceStack.push(n), this.namespaces.has(n)) {
|
|
1109
|
+
const u = this.namespaces.get(n);
|
|
1110
|
+
return u.explicit = !0, a && (u.label = a), n;
|
|
1106
1111
|
}
|
|
1107
|
-
const
|
|
1108
|
-
for (let
|
|
1109
|
-
const d = c[
|
|
1112
|
+
const r = n.split("."), c = Ve.getAncestorIds(n);
|
|
1113
|
+
for (let u = 0; u < c.length; u++) {
|
|
1114
|
+
const d = c[u], m = u > 0 ? c[u - 1] : void 0, g = u === c.length - 1, N = g && a ? a : r[u];
|
|
1110
1115
|
this.namespaces.has(d) ? g && (this.namespaces.get(d).explicit = !0) : this.namespaces.set(
|
|
1111
1116
|
d,
|
|
1112
1117
|
this.createNamespaceNode(d, N, m, g)
|
|
1113
1118
|
), m && this.linkParentChild(m, d);
|
|
1114
1119
|
}
|
|
1115
|
-
return
|
|
1120
|
+
return n;
|
|
1116
1121
|
}
|
|
1117
1122
|
popNamespace() {
|
|
1118
1123
|
this.namespaceStack.pop();
|
|
@@ -1131,23 +1136,23 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
1131
1136
|
* @param noteNames - IDs of the notes to add
|
|
1132
1137
|
* @public
|
|
1133
1138
|
*/
|
|
1134
|
-
addClassesToNamespace(i, a,
|
|
1139
|
+
addClassesToNamespace(i, a, n) {
|
|
1135
1140
|
if (this.namespaces.has(i)) {
|
|
1136
|
-
for (const
|
|
1137
|
-
const { className: c } = this.splitClassNameAndType(
|
|
1138
|
-
|
|
1141
|
+
for (const r of a) {
|
|
1142
|
+
const { className: c } = this.splitClassNameAndType(r), u = this.getClass(c);
|
|
1143
|
+
u.parent = i, this.namespaces.get(i).classes.set(c, u);
|
|
1139
1144
|
}
|
|
1140
|
-
for (const
|
|
1141
|
-
const c = this.getNote(
|
|
1142
|
-
c.parent = i, this.namespaces.get(i).notes.set(
|
|
1145
|
+
for (const r of n) {
|
|
1146
|
+
const c = this.getNote(r);
|
|
1147
|
+
c.parent = i, this.namespaces.get(i).notes.set(r, c);
|
|
1143
1148
|
}
|
|
1144
1149
|
}
|
|
1145
1150
|
}
|
|
1146
1151
|
setCssStyle(i, a) {
|
|
1147
|
-
const
|
|
1148
|
-
if (!(!a || !
|
|
1149
|
-
for (const
|
|
1150
|
-
|
|
1152
|
+
const n = this.classes.get(i);
|
|
1153
|
+
if (!(!a || !n))
|
|
1154
|
+
for (const r of a)
|
|
1155
|
+
r.includes(",") ? n.styles.push(...r.split(",")) : n.styles.push(r);
|
|
1151
1156
|
}
|
|
1152
1157
|
/**
|
|
1153
1158
|
* Gets the arrow marker for a type index
|
|
@@ -1186,65 +1191,65 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
1186
1191
|
resolveExplicitAncestor(i) {
|
|
1187
1192
|
let a = i;
|
|
1188
1193
|
for (; a; ) {
|
|
1189
|
-
const
|
|
1190
|
-
if (!
|
|
1194
|
+
const n = this.namespaces.get(a);
|
|
1195
|
+
if (!n)
|
|
1191
1196
|
return;
|
|
1192
|
-
if (
|
|
1197
|
+
if (n.explicit)
|
|
1193
1198
|
return a;
|
|
1194
|
-
a =
|
|
1199
|
+
a = n.parent;
|
|
1195
1200
|
}
|
|
1196
1201
|
}
|
|
1197
1202
|
getData() {
|
|
1198
|
-
const i = [], a = [],
|
|
1199
|
-
for (const
|
|
1200
|
-
if (!
|
|
1203
|
+
const i = [], a = [], n = F(), r = n.class?.hierarchicalNamespaces ?? !0;
|
|
1204
|
+
for (const u of this.namespaces.values()) {
|
|
1205
|
+
if (!r && !u.explicit)
|
|
1201
1206
|
continue;
|
|
1202
1207
|
const d = {
|
|
1203
|
-
id:
|
|
1204
|
-
label:
|
|
1208
|
+
id: u.id,
|
|
1209
|
+
label: r ? u.label : u.id,
|
|
1205
1210
|
isGroup: !0,
|
|
1206
|
-
padding:
|
|
1211
|
+
padding: n.class.padding ?? 16,
|
|
1207
1212
|
// parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
|
|
1208
1213
|
shape: "rect",
|
|
1209
1214
|
cssStyles: [],
|
|
1210
|
-
look:
|
|
1211
|
-
parentId:
|
|
1215
|
+
look: n.look,
|
|
1216
|
+
parentId: r ? u.parent : void 0
|
|
1212
1217
|
};
|
|
1213
1218
|
i.push(d);
|
|
1214
1219
|
}
|
|
1215
|
-
for (const
|
|
1216
|
-
const d =
|
|
1217
|
-
...
|
|
1220
|
+
for (const u of this.classes.values()) {
|
|
1221
|
+
const d = r ? u.parent : this.resolveExplicitAncestor(u.parent), m = {
|
|
1222
|
+
...u,
|
|
1218
1223
|
type: void 0,
|
|
1219
1224
|
isGroup: !1,
|
|
1220
1225
|
parentId: d,
|
|
1221
|
-
look:
|
|
1226
|
+
look: n.look
|
|
1222
1227
|
};
|
|
1223
1228
|
i.push(m);
|
|
1224
1229
|
}
|
|
1225
|
-
for (const
|
|
1226
|
-
const d =
|
|
1227
|
-
id:
|
|
1228
|
-
label:
|
|
1230
|
+
for (const u of this.notes.values()) {
|
|
1231
|
+
const d = r ? u.parent : this.resolveExplicitAncestor(u.parent), m = {
|
|
1232
|
+
id: u.id,
|
|
1233
|
+
label: u.text,
|
|
1229
1234
|
isGroup: !1,
|
|
1230
1235
|
shape: "note",
|
|
1231
|
-
padding:
|
|
1236
|
+
padding: n.class.padding ?? 6,
|
|
1232
1237
|
cssStyles: [
|
|
1233
1238
|
"text-align: left",
|
|
1234
1239
|
"white-space: nowrap",
|
|
1235
|
-
`fill: ${
|
|
1236
|
-
`stroke: ${
|
|
1240
|
+
`fill: ${n.themeVariables.noteBkgColor}`,
|
|
1241
|
+
`stroke: ${n.themeVariables.noteBorderColor}`
|
|
1237
1242
|
],
|
|
1238
|
-
look:
|
|
1243
|
+
look: n.look,
|
|
1239
1244
|
parentId: d,
|
|
1240
1245
|
labelType: "markdown"
|
|
1241
1246
|
};
|
|
1242
1247
|
i.push(m);
|
|
1243
|
-
const g = this.classes.get(
|
|
1248
|
+
const g = this.classes.get(u.class)?.id;
|
|
1244
1249
|
if (g) {
|
|
1245
1250
|
const N = {
|
|
1246
|
-
id: `edgeNote${
|
|
1247
|
-
start:
|
|
1251
|
+
id: `edgeNote${u.index}`,
|
|
1252
|
+
start: u.id,
|
|
1248
1253
|
end: g,
|
|
1249
1254
|
type: "normal",
|
|
1250
1255
|
thickness: "normal",
|
|
@@ -1255,51 +1260,51 @@ var Bt = we, je = ["#", "+", "~", "-", ""], Xe = class {
|
|
|
1255
1260
|
labelStyle: [""],
|
|
1256
1261
|
style: ["fill: none"],
|
|
1257
1262
|
pattern: "dotted",
|
|
1258
|
-
look:
|
|
1263
|
+
look: n.look
|
|
1259
1264
|
};
|
|
1260
1265
|
a.push(N);
|
|
1261
1266
|
}
|
|
1262
1267
|
}
|
|
1263
|
-
for (const
|
|
1268
|
+
for (const u of this.interfaces) {
|
|
1264
1269
|
const d = {
|
|
1265
|
-
id:
|
|
1266
|
-
label:
|
|
1270
|
+
id: u.id,
|
|
1271
|
+
label: u.label,
|
|
1267
1272
|
isGroup: !1,
|
|
1268
1273
|
shape: "rect",
|
|
1269
1274
|
cssStyles: ["opacity: 0;"],
|
|
1270
|
-
look:
|
|
1275
|
+
look: n.look
|
|
1271
1276
|
};
|
|
1272
1277
|
i.push(d);
|
|
1273
1278
|
}
|
|
1274
1279
|
let c = 0;
|
|
1275
|
-
for (const
|
|
1280
|
+
for (const u of this.relations) {
|
|
1276
1281
|
c++;
|
|
1277
1282
|
const d = {
|
|
1278
|
-
id:
|
|
1283
|
+
id: At(u.id1, u.id2, {
|
|
1279
1284
|
prefix: "id",
|
|
1280
1285
|
counter: c
|
|
1281
1286
|
}),
|
|
1282
|
-
start:
|
|
1283
|
-
end:
|
|
1287
|
+
start: u.id1,
|
|
1288
|
+
end: u.id2,
|
|
1284
1289
|
type: "normal",
|
|
1285
|
-
label:
|
|
1290
|
+
label: u.title,
|
|
1286
1291
|
labelpos: "c",
|
|
1287
1292
|
thickness: "normal",
|
|
1288
1293
|
classes: "relation",
|
|
1289
|
-
arrowTypeStart: this.getArrowMarker(
|
|
1290
|
-
arrowTypeEnd: this.getArrowMarker(
|
|
1291
|
-
startLabelRight:
|
|
1292
|
-
endLabelLeft:
|
|
1294
|
+
arrowTypeStart: this.getArrowMarker(u.relation.type1),
|
|
1295
|
+
arrowTypeEnd: this.getArrowMarker(u.relation.type2),
|
|
1296
|
+
startLabelRight: u.relationTitle1 === "none" ? "" : u.relationTitle1,
|
|
1297
|
+
endLabelLeft: u.relationTitle2 === "none" ? "" : u.relationTitle2,
|
|
1293
1298
|
arrowheadStyle: "",
|
|
1294
1299
|
labelStyle: ["display: inline-block"],
|
|
1295
|
-
style:
|
|
1296
|
-
pattern:
|
|
1297
|
-
look:
|
|
1300
|
+
style: u.style || "",
|
|
1301
|
+
pattern: u.relation.lineType == 1 ? "dashed" : "solid",
|
|
1302
|
+
look: n.look,
|
|
1298
1303
|
labelType: "markdown"
|
|
1299
1304
|
};
|
|
1300
1305
|
a.push(d);
|
|
1301
1306
|
}
|
|
1302
|
-
return { nodes: i, edges: a, other: {}, config:
|
|
1307
|
+
return { nodes: i, edges: a, other: {}, config: n, direction: this.getDirection() };
|
|
1303
1308
|
}
|
|
1304
1309
|
}, mt = /* @__PURE__ */ f((t) => `g.classGroup text {
|
|
1305
1310
|
fill: ${t.nodeBorder || t.classText};
|
|
@@ -1501,32 +1506,32 @@ g.classGroup line {
|
|
|
1501
1506
|
text-align: center;
|
|
1502
1507
|
}
|
|
1503
1508
|
${tt()}
|
|
1504
|
-
`, "getStyles"), St = mt,
|
|
1509
|
+
`, "getStyles"), St = mt, Ct = /* @__PURE__ */ f((t, i = "TB") => {
|
|
1505
1510
|
if (!t.doc)
|
|
1506
1511
|
return i;
|
|
1507
1512
|
let a = i;
|
|
1508
|
-
for (const
|
|
1509
|
-
|
|
1513
|
+
for (const n of t.doc)
|
|
1514
|
+
n.stmt === "dir" && (a = n.value);
|
|
1510
1515
|
return a;
|
|
1511
|
-
}, "getDir"),
|
|
1516
|
+
}, "getDir"), bt = /* @__PURE__ */ f(function(t, i) {
|
|
1512
1517
|
return i.db.getClasses();
|
|
1513
|
-
}, "getClasses"), kt = /* @__PURE__ */ f(async function(t, i, a,
|
|
1518
|
+
}, "getClasses"), kt = /* @__PURE__ */ f(async function(t, i, a, n) {
|
|
1514
1519
|
Ie.info("REF0:"), Ie.info("Drawing class diagram (v3)", i);
|
|
1515
|
-
const { securityLevel:
|
|
1516
|
-
|
|
1517
|
-
const d =
|
|
1518
|
-
d.type =
|
|
1520
|
+
const { securityLevel: r, state: c, layout: u } = F();
|
|
1521
|
+
n.db.setDiagramId(i);
|
|
1522
|
+
const d = n.db.getData(), m = st(i, r);
|
|
1523
|
+
d.type = n.type, d.layoutAlgorithm = at(u), d.nodeSpacing = c?.nodeSpacing || 50, d.rankSpacing = c?.rankSpacing || 50, d.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], d.diagramId = i, await nt(d, m);
|
|
1519
1524
|
const g = 8;
|
|
1520
1525
|
Oe.insertTitle(
|
|
1521
1526
|
m,
|
|
1522
1527
|
"classDiagramTitleText",
|
|
1523
1528
|
c?.titleTopMargin ?? 25,
|
|
1524
|
-
|
|
1525
|
-
),
|
|
1529
|
+
n.db.getDiagramTitle()
|
|
1530
|
+
), it(m, g, "classDiagram", c?.useMaxWidth ?? !0);
|
|
1526
1531
|
}, "draw"), Nt = {
|
|
1527
|
-
getClasses:
|
|
1532
|
+
getClasses: bt,
|
|
1528
1533
|
draw: kt,
|
|
1529
|
-
getDir:
|
|
1534
|
+
getDir: Ct
|
|
1530
1535
|
};
|
|
1531
1536
|
export {
|
|
1532
1537
|
_t as C,
|
|
@@ -1534,4 +1539,4 @@ export {
|
|
|
1534
1539
|
Nt as c,
|
|
1535
1540
|
St as s
|
|
1536
1541
|
};
|
|
1537
|
-
//# sourceMappingURL=chunk-
|
|
1542
|
+
//# sourceMappingURL=chunk-GF5L2VYU-CZOQEv_q.js.map
|