@omg-dev/app 0.5.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{ChangelogPage-BzsTWlhq.js → ChangelogPage-CirRyMnC.js} +54 -1
- package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
- package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
- package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
- package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
- package/dist-lib/{SessionFilesPanel-K4lGGdJ4.js → SessionFilesPanel-W4QKB0HL.js} +64 -64
- package/dist-lib/{TermView-CWr-zJmM.js → TermView-CoD-VkHs.js} +495 -520
- package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
- package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
- package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
- package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
- package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
- package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
- package/dist-lib/{chat-engine-P0yDhFOX.js → chat-engine-CRzDKNTH.js} +1173 -1218
- package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
- package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
- package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
- package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
- package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
- package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
- package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
- package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
- package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
- package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
- package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
- package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
- package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
- package/dist-lib/{coding-agents-page-DCafIpWL.js → coding-agents-page-OER8HHRF.js} +152 -131
- package/dist-lib/computer-page-D9cSNLa9.js +8990 -0
- package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
- package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
- package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
- package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
- package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
- package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
- package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
- package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
- package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
- package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
- package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
- package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
- package/dist-lib/{embedded-CLYU5z7h.js → embedded-DqTPdMCh.js} +10561 -10581
- package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
- package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
- package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
- package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
- package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
- package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
- package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
- package/dist-lib/index-B0neMIbR.js +16520 -0
- package/dist-lib/index-BBC0E3Qg.js +4994 -0
- package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
- package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
- package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
- package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
- package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
- package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
- package/dist-lib/keyboard-Yfa1ETse.js +21 -0
- package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
- package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
- package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
- package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
- package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
- package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
- package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
- package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
- package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
- package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
- package/dist-lib/{resume-session-sheet-CHwpwguS.js → resume-session-sheet-bjDJmwq6.js} +2 -3
- package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
- package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
- package/dist-lib/{session-token-usage-BUz6b-IB.js → session-token-usage-D2zDt9P7.js} +82 -83
- package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
- package/dist-lib/{shipped-page-CXy85bsL.js → shipped-page-Cr7dCCc2.js} +232 -235
- package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
- package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
- package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
- package/dist-lib/{streamdown-response-CUB9sK6V.js → streamdown-response-Qq9_RgFv.js} +290 -297
- package/dist-lib/styles.css +1 -1
- package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
- package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
- package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
- package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
- package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
- package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
- package/package.json +4 -3
- package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
- package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
- package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
- package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
- package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
- package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
- package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
- package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
- package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
- package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
- package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
- package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
- package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
- package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
- package/dist-lib/index-DcwavxA1.js +0 -5062
- package/dist-lib/index-JkCQXUYs.js +0 -16566
- package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
- package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
- package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
- package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
- package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
- package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
- package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
- package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
- package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
- package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { s as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { c as
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
for (
|
|
8
|
-
return
|
|
9
|
-
}, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52],
|
|
10
|
-
trace: /* @__PURE__ */
|
|
1
|
+
import { g as Mt } from "./chunk-XXDRQBXY-DRKeYnrF.js";
|
|
2
|
+
import { s as Bt } from "./chunk-VR4S4FIN-BDq3jZ0m.js";
|
|
3
|
+
import { _ as l, b as Ft, a as Yt, s as Pt, g as zt, o as Gt, p as Kt, c as it, l as V, q as Ut, r as Zt, t as jt, u as Wt, v as qt, x as Qt, d as Xt, y as Ht } from "./index-B0neMIbR.js";
|
|
4
|
+
import { c as Jt } from "./channel-D6YHMmF7.js";
|
|
5
|
+
var _t = (function() {
|
|
6
|
+
var e = /* @__PURE__ */ l(function(I, n, c, o) {
|
|
7
|
+
for (c = c || {}, o = I.length; o--; c[I[o]] = n) ;
|
|
8
|
+
return c;
|
|
9
|
+
}, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], h = [1, 10], a = [1, 11], u = [1, 12], d = [1, 13], y = [1, 23], f = [1, 24], m = [1, 25], j = [1, 26], W = [1, 27], S = [1, 19], q = [1, 28], M = [1, 29], D = [1, 20], R = [1, 18], T = [1, 21], C = [1, 22], nt = [1, 36], at = [1, 37], ct = [1, 38], ot = [1, 39], lt = [1, 40], B = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 66, 67, 68, 69, 70], O = [1, 45], N = [1, 46], F = [1, 55], Y = [40, 48, 50, 51, 52, 71, 72], P = [1, 66], z = [1, 64], A = [1, 61], G = [1, 65], K = [1, 67], Q = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 66, 67, 68, 69, 70], gt = [66, 67, 68, 69, 70], bt = [1, 85], kt = [1, 84], mt = [1, 82], Et = [1, 83], St = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], X = [1, 93], H = [1, 92], J = [1, 91], U = [19, 58], Tt = [1, 102], Ot = [1, 101], ht = [19, 58, 61, 63], ut = {
|
|
10
|
+
trace: /* @__PURE__ */ l(function() {
|
|
11
11
|
}, "trace"),
|
|
12
12
|
yy: {},
|
|
13
13
|
symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, DECIMAL_NUM: 51, ENTITY_ONE: 52, attribute: 53, attributeType: 54, attributeName: 55, attributeKeyTypeList: 56, attributeComment: 57, ATTRIBUTE_WORD: 58, "?": 59, attributeKeyType: 60, ",": 61, ATTRIBUTE_KEY: 62, COMMENT: 63, cardinality: 64, relType: 65, ZERO_OR_ONE: 66, ZERO_OR_MORE: 67, ONE_OR_MORE: 68, ONLY_ONE: 69, MD_PARENT: 70, NON_IDENTIFYING: 71, IDENTIFYING: 72, WORD: 73, $accept: 0, $end: 1 },
|
|
14
14
|
terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 51: "DECIMAL_NUM", 52: "ENTITY_ONE", 58: "ATTRIBUTE_WORD", 59: "?", 61: ",", 62: "ATTRIBUTE_KEY", 63: "COMMENT", 66: "ZERO_OR_ONE", 67: "ZERO_OR_MORE", 68: "ONE_OR_MORE", 69: "ONLY_ONE", 70: "MD_PARENT", 71: "NON_IDENTIFYING", 72: "IDENTIFYING", 73: "WORD" },
|
|
15
15
|
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [18, 1], [18, 2], [53, 2], [53, 3], [53, 3], [53, 4], [54, 1], [54, 2], [55, 1], [56, 1], [56, 3], [60, 1], [57, 1], [12, 3], [64, 1], [64, 1], [64, 1], [64, 1], [64, 1], [65, 1], [65, 1], [14, 1], [14, 1], [14, 1]],
|
|
16
|
-
performAction: /* @__PURE__ */
|
|
17
|
-
var
|
|
18
|
-
switch (
|
|
16
|
+
performAction: /* @__PURE__ */ l(function(n, c, o, r, p, t, Z) {
|
|
17
|
+
var s = t.length - 1;
|
|
18
|
+
switch (p) {
|
|
19
19
|
case 1:
|
|
20
20
|
break;
|
|
21
21
|
case 2:
|
|
22
22
|
this.$ = [];
|
|
23
23
|
break;
|
|
24
24
|
case 3:
|
|
25
|
-
t[
|
|
25
|
+
t[s - 1].push(t[s]), this.$ = t[s - 1];
|
|
26
26
|
break;
|
|
27
27
|
case 4:
|
|
28
28
|
case 5:
|
|
29
|
-
this.$ = t[
|
|
29
|
+
this.$ = t[s];
|
|
30
30
|
break;
|
|
31
31
|
case 6:
|
|
32
32
|
case 7:
|
|
33
33
|
this.$ = [];
|
|
34
34
|
break;
|
|
35
35
|
case 8:
|
|
36
|
-
r.addEntity(t[
|
|
36
|
+
r.addEntity(t[s - 4]), r.addEntity(t[s - 2]), r.addRelationship(t[s - 4], t[s], t[s - 2], t[s - 3]);
|
|
37
37
|
break;
|
|
38
38
|
case 9:
|
|
39
|
-
r.addEntity(t[
|
|
39
|
+
r.addEntity(t[s - 8]), r.addEntity(t[s - 4]), r.addRelationship(t[s - 8], t[s], t[s - 4], t[s - 5]), r.setClass([t[s - 8]], t[s - 6]), r.setClass([t[s - 4]], t[s - 2]);
|
|
40
40
|
break;
|
|
41
41
|
case 10:
|
|
42
|
-
r.addEntity(t[
|
|
42
|
+
r.addEntity(t[s - 6]), r.addEntity(t[s - 2]), r.addRelationship(t[s - 6], t[s], t[s - 2], t[s - 3]), r.setClass([t[s - 6]], t[s - 4]);
|
|
43
43
|
break;
|
|
44
44
|
case 11:
|
|
45
|
-
r.addEntity(t[
|
|
45
|
+
r.addEntity(t[s - 6]), r.addEntity(t[s - 4]), r.addRelationship(t[s - 6], t[s], t[s - 4], t[s - 5]), r.setClass([t[s - 4]], t[s - 2]);
|
|
46
46
|
break;
|
|
47
47
|
case 12:
|
|
48
|
-
r.addEntity(t[
|
|
48
|
+
r.addEntity(t[s - 3]), r.addAttributes(t[s - 3], t[s - 1]);
|
|
49
49
|
break;
|
|
50
50
|
case 13:
|
|
51
|
-
r.addEntity(t[
|
|
51
|
+
r.addEntity(t[s - 5]), r.addAttributes(t[s - 5], t[s - 1]), r.setClass([t[s - 5]], t[s - 3]);
|
|
52
52
|
break;
|
|
53
53
|
case 14:
|
|
54
|
-
r.addEntity(t[
|
|
54
|
+
r.addEntity(t[s - 2]);
|
|
55
55
|
break;
|
|
56
56
|
case 15:
|
|
57
|
-
r.addEntity(t[
|
|
57
|
+
r.addEntity(t[s - 4]), r.setClass([t[s - 4]], t[s - 2]);
|
|
58
58
|
break;
|
|
59
59
|
case 16:
|
|
60
|
-
r.addEntity(t[
|
|
60
|
+
r.addEntity(t[s]);
|
|
61
61
|
break;
|
|
62
62
|
case 17:
|
|
63
|
-
r.addEntity(t[
|
|
63
|
+
r.addEntity(t[s - 2]), r.setClass([t[s - 2]], t[s]);
|
|
64
64
|
break;
|
|
65
65
|
case 18:
|
|
66
|
-
r.addEntity(t[
|
|
66
|
+
r.addEntity(t[s - 6], t[s - 4]), r.addAttributes(t[s - 6], t[s - 1]);
|
|
67
67
|
break;
|
|
68
68
|
case 19:
|
|
69
|
-
r.addEntity(t[
|
|
69
|
+
r.addEntity(t[s - 8], t[s - 6]), r.addAttributes(t[s - 8], t[s - 1]), r.setClass([t[s - 8]], t[s - 3]);
|
|
70
70
|
break;
|
|
71
71
|
case 20:
|
|
72
|
-
r.addEntity(t[
|
|
72
|
+
r.addEntity(t[s - 5], t[s - 3]);
|
|
73
73
|
break;
|
|
74
74
|
case 21:
|
|
75
|
-
r.addEntity(t[
|
|
75
|
+
r.addEntity(t[s - 7], t[s - 5]), r.setClass([t[s - 7]], t[s - 2]);
|
|
76
76
|
break;
|
|
77
77
|
case 22:
|
|
78
|
-
r.addEntity(t[
|
|
78
|
+
r.addEntity(t[s - 3], t[s - 1]);
|
|
79
79
|
break;
|
|
80
80
|
case 23:
|
|
81
|
-
r.addEntity(t[
|
|
81
|
+
r.addEntity(t[s - 5], t[s - 3]), r.setClass([t[s - 5]], t[s]);
|
|
82
82
|
break;
|
|
83
83
|
case 24:
|
|
84
84
|
case 25:
|
|
85
|
-
this.$ = t[
|
|
85
|
+
this.$ = t[s].trim(), r.setAccTitle(this.$);
|
|
86
86
|
break;
|
|
87
87
|
case 26:
|
|
88
88
|
case 27:
|
|
89
|
-
this.$ = t[
|
|
89
|
+
this.$ = t[s].trim(), r.setAccDescription(this.$);
|
|
90
90
|
break;
|
|
91
91
|
case 32:
|
|
92
92
|
r.setDirection("TB");
|
|
@@ -101,76 +101,76 @@ var gt = (function() {
|
|
|
101
101
|
r.setDirection("LR");
|
|
102
102
|
break;
|
|
103
103
|
case 36:
|
|
104
|
-
this.$ = t[
|
|
104
|
+
this.$ = t[s - 3], r.addClass(t[s - 2], t[s - 1]);
|
|
105
105
|
break;
|
|
106
106
|
case 37:
|
|
107
107
|
case 38:
|
|
108
108
|
case 59:
|
|
109
109
|
case 68:
|
|
110
|
-
this.$ = [t[
|
|
110
|
+
this.$ = [t[s]];
|
|
111
111
|
break;
|
|
112
112
|
case 39:
|
|
113
113
|
case 40:
|
|
114
|
-
this.$ = t[
|
|
114
|
+
this.$ = t[s - 2].concat([t[s]]);
|
|
115
115
|
break;
|
|
116
116
|
case 41:
|
|
117
|
-
this.$ = t[
|
|
117
|
+
this.$ = t[s - 2], r.setClass(t[s - 1], t[s]);
|
|
118
118
|
break;
|
|
119
119
|
case 42:
|
|
120
|
-
this.$ = t[
|
|
120
|
+
this.$ = t[s - 3], r.addCssStyles(t[s - 2], t[s - 1]);
|
|
121
121
|
break;
|
|
122
122
|
case 43:
|
|
123
|
-
this.$ = [t[
|
|
123
|
+
this.$ = [t[s]];
|
|
124
124
|
break;
|
|
125
125
|
case 44:
|
|
126
|
-
t[
|
|
126
|
+
t[s - 2].push(t[s]), this.$ = t[s - 2];
|
|
127
127
|
break;
|
|
128
128
|
case 46:
|
|
129
|
-
this.$ = t[
|
|
129
|
+
this.$ = t[s - 1] + t[s];
|
|
130
130
|
break;
|
|
131
131
|
case 54:
|
|
132
132
|
case 80:
|
|
133
133
|
case 81:
|
|
134
|
-
this.$ = t[
|
|
134
|
+
this.$ = t[s].replace(/"/g, "");
|
|
135
135
|
break;
|
|
136
136
|
case 55:
|
|
137
137
|
case 56:
|
|
138
138
|
case 57:
|
|
139
139
|
case 58:
|
|
140
140
|
case 82:
|
|
141
|
-
this.$ = t[
|
|
141
|
+
this.$ = t[s];
|
|
142
142
|
break;
|
|
143
143
|
case 60:
|
|
144
|
-
t[
|
|
144
|
+
t[s].push(t[s - 1]), this.$ = t[s];
|
|
145
145
|
break;
|
|
146
146
|
case 61:
|
|
147
|
-
this.$ = { type: t[
|
|
147
|
+
this.$ = { type: t[s - 1], name: t[s] };
|
|
148
148
|
break;
|
|
149
149
|
case 62:
|
|
150
|
-
this.$ = { type: t[
|
|
150
|
+
this.$ = { type: t[s - 2], name: t[s - 1], keys: t[s] };
|
|
151
151
|
break;
|
|
152
152
|
case 63:
|
|
153
|
-
this.$ = { type: t[
|
|
153
|
+
this.$ = { type: t[s - 2], name: t[s - 1], comment: t[s] };
|
|
154
154
|
break;
|
|
155
155
|
case 64:
|
|
156
|
-
this.$ = { type: t[
|
|
156
|
+
this.$ = { type: t[s - 3], name: t[s - 2], keys: t[s - 1], comment: t[s] };
|
|
157
157
|
break;
|
|
158
158
|
case 65:
|
|
159
159
|
case 67:
|
|
160
160
|
case 70:
|
|
161
|
-
this.$ = t[
|
|
161
|
+
this.$ = t[s];
|
|
162
162
|
break;
|
|
163
163
|
case 66:
|
|
164
|
-
this.$ = t[
|
|
164
|
+
this.$ = t[s - 1] + t[s];
|
|
165
165
|
break;
|
|
166
166
|
case 69:
|
|
167
|
-
t[
|
|
167
|
+
t[s - 2].push(t[s]), this.$ = t[s - 2];
|
|
168
168
|
break;
|
|
169
169
|
case 71:
|
|
170
|
-
this.$ = t[
|
|
170
|
+
this.$ = t[s].replace(/"/g, "");
|
|
171
171
|
break;
|
|
172
172
|
case 72:
|
|
173
|
-
this.$ = { cardA: t[
|
|
173
|
+
this.$ = { cardA: t[s], relType: t[s - 1], cardB: t[s - 2] };
|
|
174
174
|
break;
|
|
175
175
|
case 73:
|
|
176
176
|
this.$ = r.Cardinality.ZERO_OR_ONE;
|
|
@@ -195,76 +195,76 @@ var gt = (function() {
|
|
|
195
195
|
break;
|
|
196
196
|
}
|
|
197
197
|
}, "anonymous"),
|
|
198
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] },
|
|
198
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, e(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: a, 26: u, 28: d, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: f, 35: m, 36: j, 37: W, 40: S, 43: q, 44: M, 48: D, 50: R, 51: T, 52: C }, e(i, [2, 7], { 1: [2, 1] }), e(i, [2, 3]), { 9: 30, 11: 9, 22: h, 24: a, 26: u, 28: d, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: f, 35: m, 36: j, 37: W, 40: S, 43: q, 44: M, 48: D, 50: R, 51: T, 52: C }, e(i, [2, 5]), e(i, [2, 6]), e(i, [2, 16], { 12: 31, 64: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 66: nt, 67: at, 68: ct, 69: ot, 70: lt }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, e(i, [2, 27]), e(i, [2, 28]), e(i, [2, 29]), e(i, [2, 30]), e(i, [2, 31]), e(B, [2, 54]), e(B, [2, 55]), e(B, [2, 56]), e(B, [2, 57]), e(B, [2, 58]), e(i, [2, 32]), e(i, [2, 33]), e(i, [2, 34]), e(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, e(i, [2, 4]), { 11: 49, 40: S, 48: D, 50: R, 51: T, 52: C }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: F }, { 11: 56, 40: S, 48: D, 50: R, 51: T, 52: C }, { 65: 57, 71: [1, 58], 72: [1, 59] }, e(Y, [2, 73]), e(Y, [2, 74]), e(Y, [2, 75]), e(Y, [2, 76]), e(Y, [2, 77]), e(i, [2, 24]), e(i, [2, 25]), e(i, [2, 26]), { 13: P, 38: 60, 41: z, 42: A, 45: 62, 46: 63, 48: G, 49: K }, e(Q, [2, 37]), e(Q, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: P, 38: 69, 41: z, 42: A, 45: 62, 46: 63, 48: G, 49: K }, { 13: [1, 70], 15: [1, 71] }, e(i, [2, 17], { 64: 35, 12: 72, 17: [1, 73], 42: A, 66: nt, 67: at, 68: ct, 69: ot, 70: lt }), { 19: [1, 74] }, e(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: F }, { 55: 76, 58: [1, 77] }, { 58: [2, 65], 59: [1, 78] }, { 21: [1, 79] }, { 64: 80, 66: nt, 67: at, 68: ct, 69: ot, 70: lt }, e(gt, [2, 78]), e(gt, [2, 79]), { 6: bt, 10: kt, 39: 81, 42: mt, 47: Et }, { 40: [1, 86], 41: [1, 87] }, e(St, [2, 43], { 46: 88, 13: P, 41: z, 48: G, 49: K }), e(L, [2, 45]), e(L, [2, 50]), e(L, [2, 51]), e(L, [2, 52]), e(L, [2, 53]), e(i, [2, 41], { 42: A }), { 6: bt, 10: kt, 39: 89, 42: mt, 47: Et }, { 14: 90, 40: X, 50: H, 73: J }, { 16: 94, 40: O, 41: N }, { 11: 95, 40: S, 48: D, 50: R, 51: T, 52: C }, { 18: 96, 19: [1, 97], 53: 53, 54: 54, 58: F }, e(i, [2, 12]), { 19: [2, 60] }, e(U, [2, 61], { 56: 98, 57: 99, 60: 100, 62: Tt, 63: Ot }), e([19, 58, 62, 63], [2, 67]), { 58: [2, 66] }, e(i, [2, 22], { 15: [1, 104], 17: [1, 103] }), e([40, 48, 50, 51, 52], [2, 72]), e(i, [2, 36]), { 13: P, 41: z, 45: 105, 46: 63, 48: G, 49: K }, e(i, [2, 47]), e(i, [2, 48]), e(i, [2, 49]), e(Q, [2, 39]), e(Q, [2, 40]), e(L, [2, 46]), e(i, [2, 42]), e(i, [2, 8]), e(i, [2, 80]), e(i, [2, 81]), e(i, [2, 82]), { 13: [1, 106], 42: A }, { 13: [1, 108], 15: [1, 107] }, { 19: [1, 109] }, e(i, [2, 15]), e(U, [2, 62], { 57: 110, 61: [1, 111], 63: Ot }), e(U, [2, 63]), e(ht, [2, 68]), e(U, [2, 71]), e(ht, [2, 70]), { 18: 112, 19: [1, 113], 53: 53, 54: 54, 58: F }, { 16: 114, 40: O, 41: N }, e(St, [2, 44], { 46: 88, 13: P, 41: z, 48: G, 49: K }), { 14: 115, 40: X, 50: H, 73: J }, { 16: 116, 40: O, 41: N }, { 14: 117, 40: X, 50: H, 73: J }, e(i, [2, 13]), e(U, [2, 64]), { 60: 118, 62: Tt }, { 19: [1, 119] }, e(i, [2, 20]), e(i, [2, 23], { 17: [1, 120], 42: A }), e(i, [2, 11]), { 13: [1, 121], 42: A }, e(i, [2, 10]), e(ht, [2, 69]), e(i, [2, 18]), { 18: 122, 19: [1, 123], 53: 53, 54: 54, 58: F }, { 14: 124, 40: X, 50: H, 73: J }, { 19: [1, 125] }, e(i, [2, 21]), e(i, [2, 9]), e(i, [2, 19])],
|
|
199
199
|
defaultActions: { 75: [2, 60], 78: [2, 66] },
|
|
200
|
-
parseError: /* @__PURE__ */
|
|
201
|
-
if (
|
|
200
|
+
parseError: /* @__PURE__ */ l(function(n, c) {
|
|
201
|
+
if (c.recoverable)
|
|
202
202
|
this.trace(n);
|
|
203
203
|
else {
|
|
204
|
-
var
|
|
205
|
-
throw
|
|
204
|
+
var o = new Error(n);
|
|
205
|
+
throw o.hash = c, o;
|
|
206
206
|
}
|
|
207
207
|
}, "parseError"),
|
|
208
|
-
parse: /* @__PURE__ */
|
|
209
|
-
var
|
|
210
|
-
for (var
|
|
211
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
212
|
-
_.setInput(n,
|
|
213
|
-
var
|
|
214
|
-
t.push(
|
|
215
|
-
var
|
|
216
|
-
typeof
|
|
217
|
-
function
|
|
218
|
-
|
|
208
|
+
parse: /* @__PURE__ */ l(function(n) {
|
|
209
|
+
var c = this, o = [0], r = [], p = [null], t = [], Z = this.table, s = "", tt = 0, Nt = 0, Dt = 2, At = 1, Lt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), x = { yy: {} };
|
|
210
|
+
for (var dt in this.yy)
|
|
211
|
+
Object.prototype.hasOwnProperty.call(this.yy, dt) && (x.yy[dt] = this.yy[dt]);
|
|
212
|
+
_.setInput(n, x.yy), x.yy.lexer = _, x.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
213
|
+
var pt = _.yylloc;
|
|
214
|
+
t.push(pt);
|
|
215
|
+
var wt = _.options && _.options.ranges;
|
|
216
|
+
typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
217
|
+
function Vt(b) {
|
|
218
|
+
o.length = o.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
|
|
219
219
|
}
|
|
220
|
-
|
|
221
|
-
function
|
|
220
|
+
l(Vt, "popStack");
|
|
221
|
+
function It() {
|
|
222
222
|
var b;
|
|
223
|
-
return b = r.pop() || _.lex() ||
|
|
223
|
+
return b = r.pop() || _.lex() || At, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = c.symbols_[b] || b), b;
|
|
224
224
|
}
|
|
225
|
-
|
|
226
|
-
for (var g, v, k, ft, w = {},
|
|
227
|
-
if (v =
|
|
228
|
-
var
|
|
229
|
-
|
|
230
|
-
for (
|
|
231
|
-
this.terminals_[
|
|
232
|
-
_.showPosition ?
|
|
225
|
+
l(It, "lex");
|
|
226
|
+
for (var g, v, k, ft, w = {}, et, E, Rt, st; ; ) {
|
|
227
|
+
if (v = o[o.length - 1], this.defaultActions[v] ? k = this.defaultActions[v] : ((g === null || typeof g > "u") && (g = It()), k = Z[v] && Z[v][g]), typeof k > "u" || !k.length || !k[0]) {
|
|
228
|
+
var yt = "";
|
|
229
|
+
st = [];
|
|
230
|
+
for (et in Z[v])
|
|
231
|
+
this.terminals_[et] && et > Dt && st.push("'" + this.terminals_[et] + "'");
|
|
232
|
+
_.showPosition ? yt = "Parse error on line " + (tt + 1) + `:
|
|
233
233
|
` + _.showPosition() + `
|
|
234
|
-
Expecting ` +
|
|
234
|
+
Expecting ` + st.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : yt = "Parse error on line " + (tt + 1) + ": Unexpected " + (g == At ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(yt, {
|
|
235
235
|
text: _.match,
|
|
236
236
|
token: this.terminals_[g] || g,
|
|
237
237
|
line: _.yylineno,
|
|
238
|
-
loc:
|
|
239
|
-
expected:
|
|
238
|
+
loc: pt,
|
|
239
|
+
expected: st
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
if (k[0] instanceof Array && k.length > 1)
|
|
243
243
|
throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + g);
|
|
244
244
|
switch (k[0]) {
|
|
245
245
|
case 1:
|
|
246
|
-
|
|
246
|
+
o.push(g), p.push(_.yytext), t.push(_.yylloc), o.push(k[1]), g = null, Nt = _.yyleng, s = _.yytext, tt = _.yylineno, pt = _.yylloc;
|
|
247
247
|
break;
|
|
248
248
|
case 2:
|
|
249
|
-
if (E = this.productions_[k[1]][1], w.$ =
|
|
249
|
+
if (E = this.productions_[k[1]][1], w.$ = p[p.length - E], w._$ = {
|
|
250
250
|
first_line: t[t.length - (E || 1)].first_line,
|
|
251
251
|
last_line: t[t.length - 1].last_line,
|
|
252
252
|
first_column: t[t.length - (E || 1)].first_column,
|
|
253
253
|
last_column: t[t.length - 1].last_column
|
|
254
|
-
},
|
|
254
|
+
}, wt && (w._$.range = [
|
|
255
255
|
t[t.length - (E || 1)].range[0],
|
|
256
256
|
t[t.length - 1].range[1]
|
|
257
257
|
]), ft = this.performAction.apply(w, [
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
s,
|
|
259
|
+
Nt,
|
|
260
|
+
tt,
|
|
261
|
+
x.yy,
|
|
262
262
|
k[1],
|
|
263
|
-
|
|
263
|
+
p,
|
|
264
264
|
t
|
|
265
|
-
].concat(
|
|
265
|
+
].concat(Lt)), typeof ft < "u")
|
|
266
266
|
return ft;
|
|
267
|
-
E && (
|
|
267
|
+
E && (o = o.slice(0, -1 * E * 2), p = p.slice(0, -1 * E), t = t.slice(0, -1 * E)), o.push(this.productions_[k[1]][0]), p.push(w.$), t.push(w._$), Rt = Z[o[o.length - 2]][o[o.length - 1]], o.push(Rt);
|
|
268
268
|
break;
|
|
269
269
|
case 3:
|
|
270
270
|
return !0;
|
|
@@ -272,18 +272,18 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
272
272
|
}
|
|
273
273
|
return !0;
|
|
274
274
|
}, "parse")
|
|
275
|
-
},
|
|
275
|
+
}, vt = /* @__PURE__ */ (function() {
|
|
276
276
|
var I = {
|
|
277
277
|
EOF: 1,
|
|
278
|
-
parseError: /* @__PURE__ */
|
|
278
|
+
parseError: /* @__PURE__ */ l(function(c, o) {
|
|
279
279
|
if (this.yy.parser)
|
|
280
|
-
this.yy.parser.parseError(
|
|
280
|
+
this.yy.parser.parseError(c, o);
|
|
281
281
|
else
|
|
282
|
-
throw new Error(
|
|
282
|
+
throw new Error(c);
|
|
283
283
|
}, "parseError"),
|
|
284
284
|
// resets the lexer, sets new input
|
|
285
|
-
setInput: /* @__PURE__ */
|
|
286
|
-
return this.yy =
|
|
285
|
+
setInput: /* @__PURE__ */ l(function(n, c) {
|
|
286
|
+
return this.yy = c || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
287
287
|
first_line: 1,
|
|
288
288
|
first_column: 0,
|
|
289
289
|
last_line: 1,
|
|
@@ -291,32 +291,32 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
291
291
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
292
292
|
}, "setInput"),
|
|
293
293
|
// consumes and returns one char from the input
|
|
294
|
-
input: /* @__PURE__ */
|
|
294
|
+
input: /* @__PURE__ */ l(function() {
|
|
295
295
|
var n = this._input[0];
|
|
296
296
|
this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
|
|
297
|
-
var
|
|
298
|
-
return
|
|
297
|
+
var c = n.match(/(?:\r\n?|\n).*/g);
|
|
298
|
+
return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
|
|
299
299
|
}, "input"),
|
|
300
300
|
// unshifts one char (or a string) into the input
|
|
301
|
-
unput: /* @__PURE__ */
|
|
302
|
-
var
|
|
303
|
-
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
301
|
+
unput: /* @__PURE__ */ l(function(n) {
|
|
302
|
+
var c = n.length, o = n.split(/(?:\r\n?|\n)/g);
|
|
303
|
+
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
|
|
304
304
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
305
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
306
|
-
var
|
|
305
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
306
|
+
var p = this.yylloc.range;
|
|
307
307
|
return this.yylloc = {
|
|
308
308
|
first_line: this.yylloc.first_line,
|
|
309
309
|
last_line: this.yylineno + 1,
|
|
310
310
|
first_column: this.yylloc.first_column,
|
|
311
|
-
last_column:
|
|
312
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
311
|
+
last_column: o ? (o.length === r.length ? this.yylloc.first_column : 0) + r[r.length - o.length].length - o[0].length : this.yylloc.first_column - c
|
|
312
|
+
}, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
|
|
313
313
|
}, "unput"),
|
|
314
314
|
// When called from action, caches matched text and appends it on next action
|
|
315
|
-
more: /* @__PURE__ */
|
|
315
|
+
more: /* @__PURE__ */ l(function() {
|
|
316
316
|
return this._more = !0, this;
|
|
317
317
|
}, "more"),
|
|
318
318
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
319
|
-
reject: /* @__PURE__ */
|
|
319
|
+
reject: /* @__PURE__ */ l(function() {
|
|
320
320
|
if (this.options.backtrack_lexer)
|
|
321
321
|
this._backtrack = !0;
|
|
322
322
|
else
|
|
@@ -329,29 +329,29 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
329
329
|
return this;
|
|
330
330
|
}, "reject"),
|
|
331
331
|
// retain first n characters of the match
|
|
332
|
-
less: /* @__PURE__ */
|
|
332
|
+
less: /* @__PURE__ */ l(function(n) {
|
|
333
333
|
this.unput(this.match.slice(n));
|
|
334
334
|
}, "less"),
|
|
335
335
|
// displays already matched input, i.e. for error messages
|
|
336
|
-
pastInput: /* @__PURE__ */
|
|
336
|
+
pastInput: /* @__PURE__ */ l(function() {
|
|
337
337
|
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
338
338
|
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
339
339
|
}, "pastInput"),
|
|
340
340
|
// displays upcoming input, i.e. for error messages
|
|
341
|
-
upcomingInput: /* @__PURE__ */
|
|
341
|
+
upcomingInput: /* @__PURE__ */ l(function() {
|
|
342
342
|
var n = this.match;
|
|
343
343
|
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
344
344
|
}, "upcomingInput"),
|
|
345
345
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
346
|
-
showPosition: /* @__PURE__ */
|
|
347
|
-
var n = this.pastInput(),
|
|
346
|
+
showPosition: /* @__PURE__ */ l(function() {
|
|
347
|
+
var n = this.pastInput(), c = new Array(n.length + 1).join("-");
|
|
348
348
|
return n + this.upcomingInput() + `
|
|
349
|
-
` +
|
|
349
|
+
` + c + "^";
|
|
350
350
|
}, "showPosition"),
|
|
351
351
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
352
|
-
test_match: /* @__PURE__ */
|
|
353
|
-
var
|
|
354
|
-
if (this.options.backtrack_lexer && (
|
|
352
|
+
test_match: /* @__PURE__ */ l(function(n, c) {
|
|
353
|
+
var o, r, p;
|
|
354
|
+
if (this.options.backtrack_lexer && (p = {
|
|
355
355
|
yylineno: this.yylineno,
|
|
356
356
|
yylloc: {
|
|
357
357
|
first_line: this.yylloc.first_line,
|
|
@@ -370,41 +370,41 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
370
370
|
yy: this.yy,
|
|
371
371
|
conditionStack: this.conditionStack.slice(0),
|
|
372
372
|
done: this.done
|
|
373
|
-
}, this.options.ranges && (
|
|
373
|
+
}, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
374
374
|
first_line: this.yylloc.last_line,
|
|
375
375
|
last_line: this.yylineno + 1,
|
|
376
376
|
first_column: this.yylloc.last_column,
|
|
377
377
|
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
378
|
-
}, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0],
|
|
379
|
-
return
|
|
378
|
+
}, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
379
|
+
return o;
|
|
380
380
|
if (this._backtrack) {
|
|
381
|
-
for (var t in
|
|
382
|
-
this[t] =
|
|
381
|
+
for (var t in p)
|
|
382
|
+
this[t] = p[t];
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return !1;
|
|
386
386
|
}, "test_match"),
|
|
387
387
|
// return next match in input
|
|
388
|
-
next: /* @__PURE__ */
|
|
388
|
+
next: /* @__PURE__ */ l(function() {
|
|
389
389
|
if (this.done)
|
|
390
390
|
return this.EOF;
|
|
391
391
|
this._input || (this.done = !0);
|
|
392
|
-
var n,
|
|
392
|
+
var n, c, o, r;
|
|
393
393
|
this._more || (this.yytext = "", this.match = "");
|
|
394
|
-
for (var
|
|
395
|
-
if (
|
|
396
|
-
if (
|
|
397
|
-
if (n = this.test_match(
|
|
394
|
+
for (var p = this._currentRules(), t = 0; t < p.length; t++)
|
|
395
|
+
if (o = this._input.match(this.rules[p[t]]), o && (!c || o[0].length > c[0].length)) {
|
|
396
|
+
if (c = o, r = t, this.options.backtrack_lexer) {
|
|
397
|
+
if (n = this.test_match(o, p[t]), n !== !1)
|
|
398
398
|
return n;
|
|
399
399
|
if (this._backtrack) {
|
|
400
|
-
|
|
400
|
+
c = !1;
|
|
401
401
|
continue;
|
|
402
402
|
} else
|
|
403
403
|
return !1;
|
|
404
404
|
} else if (!this.options.flex)
|
|
405
405
|
break;
|
|
406
406
|
}
|
|
407
|
-
return
|
|
407
|
+
return c ? (n = this.test_match(c, p[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
408
408
|
` + this.showPosition(), {
|
|
409
409
|
text: "",
|
|
410
410
|
token: null,
|
|
@@ -412,37 +412,37 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
412
412
|
});
|
|
413
413
|
}, "next"),
|
|
414
414
|
// return next match that has a token
|
|
415
|
-
lex: /* @__PURE__ */
|
|
416
|
-
var
|
|
417
|
-
return
|
|
415
|
+
lex: /* @__PURE__ */ l(function() {
|
|
416
|
+
var c = this.next();
|
|
417
|
+
return c || this.lex();
|
|
418
418
|
}, "lex"),
|
|
419
419
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
420
|
-
begin: /* @__PURE__ */
|
|
421
|
-
this.conditionStack.push(
|
|
420
|
+
begin: /* @__PURE__ */ l(function(c) {
|
|
421
|
+
this.conditionStack.push(c);
|
|
422
422
|
}, "begin"),
|
|
423
423
|
// pop the previously active lexer condition state off the condition stack
|
|
424
|
-
popState: /* @__PURE__ */
|
|
425
|
-
var
|
|
426
|
-
return
|
|
424
|
+
popState: /* @__PURE__ */ l(function() {
|
|
425
|
+
var c = this.conditionStack.length - 1;
|
|
426
|
+
return c > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
427
427
|
}, "popState"),
|
|
428
428
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
429
|
-
_currentRules: /* @__PURE__ */
|
|
429
|
+
_currentRules: /* @__PURE__ */ l(function() {
|
|
430
430
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
431
431
|
}, "_currentRules"),
|
|
432
432
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
433
|
-
topState: /* @__PURE__ */
|
|
434
|
-
return
|
|
433
|
+
topState: /* @__PURE__ */ l(function(c) {
|
|
434
|
+
return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
|
|
435
435
|
}, "topState"),
|
|
436
436
|
// alias for begin(condition)
|
|
437
|
-
pushState: /* @__PURE__ */
|
|
438
|
-
this.begin(
|
|
437
|
+
pushState: /* @__PURE__ */ l(function(c) {
|
|
438
|
+
this.begin(c);
|
|
439
439
|
}, "pushState"),
|
|
440
440
|
// return the number of states currently on the stack
|
|
441
|
-
stateStackSize: /* @__PURE__ */
|
|
441
|
+
stateStackSize: /* @__PURE__ */ l(function() {
|
|
442
442
|
return this.conditionStack.length;
|
|
443
443
|
}, "stateStackSize"),
|
|
444
444
|
options: { "case-insensitive": !0 },
|
|
445
|
-
performAction: /* @__PURE__ */
|
|
445
|
+
performAction: /* @__PURE__ */ l(function(c, o, r, p) {
|
|
446
446
|
switch (r) {
|
|
447
447
|
case 0:
|
|
448
448
|
return this.begin("acc_title"), 24;
|
|
@@ -515,7 +515,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
515
515
|
case 32:
|
|
516
516
|
return this.popState(), 19;
|
|
517
517
|
case 33:
|
|
518
|
-
return
|
|
518
|
+
return o.yytext[0];
|
|
519
519
|
case 34:
|
|
520
520
|
return 20;
|
|
521
521
|
case 35:
|
|
@@ -609,7 +609,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
609
609
|
case 79:
|
|
610
610
|
return 40;
|
|
611
611
|
case 80:
|
|
612
|
-
return
|
|
612
|
+
return o.yytext[0];
|
|
613
613
|
case 81:
|
|
614
614
|
return 6;
|
|
615
615
|
}
|
|
@@ -619,14 +619,14 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
|
|
|
619
619
|
};
|
|
620
620
|
return I;
|
|
621
621
|
})();
|
|
622
|
-
|
|
623
|
-
function
|
|
622
|
+
ut.lexer = vt;
|
|
623
|
+
function $() {
|
|
624
624
|
this.yy = {};
|
|
625
625
|
}
|
|
626
|
-
return
|
|
626
|
+
return l($, "Parser"), $.prototype = ut, ut.Parser = $, new $();
|
|
627
627
|
})();
|
|
628
|
-
|
|
629
|
-
var
|
|
628
|
+
_t.parser = _t;
|
|
629
|
+
var $t = _t, te = class {
|
|
630
630
|
constructor() {
|
|
631
631
|
this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
|
|
632
632
|
ZERO_OR_ONE: "ZERO_OR_ONE",
|
|
@@ -637,29 +637,31 @@ var te = gt, M, ee = (M = class {
|
|
|
637
637
|
}, this.Identification = {
|
|
638
638
|
NON_IDENTIFYING: "NON_IDENTIFYING",
|
|
639
639
|
IDENTIFYING: "IDENTIFYING"
|
|
640
|
-
}, this.setAccTitle =
|
|
640
|
+
}, this.setAccTitle = Ft, this.getAccTitle = Yt, this.setAccDescription = Pt, this.getAccDescription = zt, this.setDiagramTitle = Gt, this.getDiagramTitle = Kt, this.getConfig = /* @__PURE__ */ l(() => it().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
|
|
641
|
+
}
|
|
642
|
+
static {
|
|
643
|
+
l(this, "ErDB");
|
|
641
644
|
}
|
|
642
645
|
/**
|
|
643
646
|
* Add entity
|
|
644
647
|
* @param name - The name of the entity
|
|
645
648
|
* @param alias - The alias of the entity
|
|
646
649
|
*/
|
|
647
|
-
addEntity(
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
label: i,
|
|
650
|
+
addEntity(e, i = "") {
|
|
651
|
+
return this.entities.has(e) ? !this.entities.get(e)?.alias && i && (this.entities.get(e).alias = i, V.info(`Add alias '${i}' to entity '${e}'`)) : (this.entities.set(e, {
|
|
652
|
+
id: `entity-${e}-${this.entities.size}`,
|
|
653
|
+
label: e,
|
|
652
654
|
attributes: [],
|
|
653
|
-
alias:
|
|
655
|
+
alias: i,
|
|
654
656
|
shape: "erBox",
|
|
655
|
-
look:
|
|
657
|
+
look: it().look ?? "default",
|
|
656
658
|
cssClasses: "default",
|
|
657
659
|
cssStyles: [],
|
|
658
660
|
labelType: "markdown"
|
|
659
|
-
}), V.info("Added new entity :",
|
|
661
|
+
}), V.info("Added new entity :", e)), this.entities.get(e);
|
|
660
662
|
}
|
|
661
|
-
getEntity(
|
|
662
|
-
return this.entities.get(
|
|
663
|
+
getEntity(e) {
|
|
664
|
+
return this.entities.get(e);
|
|
663
665
|
}
|
|
664
666
|
getEntities() {
|
|
665
667
|
return this.entities;
|
|
@@ -667,11 +669,11 @@ var te = gt, M, ee = (M = class {
|
|
|
667
669
|
getClasses() {
|
|
668
670
|
return this.classes;
|
|
669
671
|
}
|
|
670
|
-
addAttributes(
|
|
671
|
-
const h = this.addEntity(
|
|
672
|
-
let
|
|
673
|
-
for (
|
|
674
|
-
|
|
672
|
+
addAttributes(e, i) {
|
|
673
|
+
const h = this.addEntity(e);
|
|
674
|
+
let a;
|
|
675
|
+
for (a = i.length - 1; a >= 0; a--)
|
|
676
|
+
i[a].keys || (i[a].keys = []), i[a].comment || (i[a].comment = ""), h.attributes.push(i[a]), V.debug("Added attribute ", i[a].name);
|
|
675
677
|
}
|
|
676
678
|
/**
|
|
677
679
|
* Add a relationship
|
|
@@ -681,17 +683,17 @@ var te = gt, M, ee = (M = class {
|
|
|
681
683
|
* @param entB - The second entity in the relationship
|
|
682
684
|
* @param rSpec - The details of the relationship between the two entities
|
|
683
685
|
*/
|
|
684
|
-
addRelationship(
|
|
685
|
-
const u = this.entities.get(
|
|
686
|
-
if (!u || !
|
|
686
|
+
addRelationship(e, i, h, a) {
|
|
687
|
+
const u = this.entities.get(e), d = this.entities.get(h);
|
|
688
|
+
if (!u || !d)
|
|
687
689
|
return;
|
|
688
|
-
const
|
|
690
|
+
const y = {
|
|
689
691
|
entityA: u.id,
|
|
690
|
-
roleA:
|
|
691
|
-
entityB:
|
|
692
|
-
relSpec:
|
|
692
|
+
roleA: i,
|
|
693
|
+
entityB: d.id,
|
|
694
|
+
relSpec: a
|
|
693
695
|
};
|
|
694
|
-
this.relationships.push(
|
|
696
|
+
this.relationships.push(y), V.debug("Added new relationship :", y);
|
|
695
697
|
}
|
|
696
698
|
getRelationships() {
|
|
697
699
|
return this.relationships;
|
|
@@ -699,174 +701,174 @@ var te = gt, M, ee = (M = class {
|
|
|
699
701
|
getDirection() {
|
|
700
702
|
return this.direction;
|
|
701
703
|
}
|
|
702
|
-
setDirection(
|
|
703
|
-
this.direction =
|
|
704
|
+
setDirection(e) {
|
|
705
|
+
this.direction = e;
|
|
704
706
|
}
|
|
705
|
-
getCompiledStyles(
|
|
706
|
-
let
|
|
707
|
-
for (const h of
|
|
708
|
-
const
|
|
709
|
-
|
|
707
|
+
getCompiledStyles(e) {
|
|
708
|
+
let i = [];
|
|
709
|
+
for (const h of e) {
|
|
710
|
+
const a = this.classes.get(h);
|
|
711
|
+
a?.styles && (i = [...i, ...a.styles ?? []].map((u) => u.trim())), a?.textStyles && (i = [...i, ...a.textStyles ?? []].map((u) => u.trim()));
|
|
710
712
|
}
|
|
711
|
-
return
|
|
713
|
+
return i;
|
|
712
714
|
}
|
|
713
|
-
addCssStyles(
|
|
714
|
-
for (const h of
|
|
715
|
-
const
|
|
716
|
-
if (!
|
|
715
|
+
addCssStyles(e, i) {
|
|
716
|
+
for (const h of e) {
|
|
717
|
+
const a = this.entities.get(h);
|
|
718
|
+
if (!i || !a)
|
|
717
719
|
return;
|
|
718
|
-
for (const u of
|
|
719
|
-
|
|
720
|
+
for (const u of i)
|
|
721
|
+
a.cssStyles.push(u);
|
|
720
722
|
}
|
|
721
723
|
}
|
|
722
|
-
addClass(
|
|
723
|
-
|
|
724
|
-
let
|
|
725
|
-
|
|
724
|
+
addClass(e, i) {
|
|
725
|
+
e.forEach((h) => {
|
|
726
|
+
let a = this.classes.get(h);
|
|
727
|
+
a === void 0 && (a = { id: h, styles: [], textStyles: [] }, this.classes.set(h, a)), i && i.forEach(function(u) {
|
|
726
728
|
if (/color/.exec(u)) {
|
|
727
|
-
const
|
|
728
|
-
|
|
729
|
+
const d = u.replace("fill", "bgFill");
|
|
730
|
+
a.textStyles.push(d);
|
|
729
731
|
}
|
|
730
|
-
|
|
732
|
+
a.styles.push(u);
|
|
731
733
|
});
|
|
732
734
|
});
|
|
733
735
|
}
|
|
734
|
-
setClass(
|
|
735
|
-
for (const h of
|
|
736
|
-
const
|
|
737
|
-
if (
|
|
738
|
-
for (const u of
|
|
739
|
-
|
|
736
|
+
setClass(e, i) {
|
|
737
|
+
for (const h of e) {
|
|
738
|
+
const a = this.entities.get(h);
|
|
739
|
+
if (a)
|
|
740
|
+
for (const u of i)
|
|
741
|
+
a.cssClasses += " " + u;
|
|
740
742
|
}
|
|
741
743
|
}
|
|
742
744
|
clear() {
|
|
743
|
-
this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [],
|
|
745
|
+
this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Ut();
|
|
744
746
|
}
|
|
745
747
|
getData() {
|
|
746
|
-
const
|
|
747
|
-
let
|
|
748
|
-
for (const
|
|
749
|
-
const
|
|
750
|
-
|
|
748
|
+
const e = [], i = [], h = it();
|
|
749
|
+
let a = 0;
|
|
750
|
+
for (const d of this.entities.keys()) {
|
|
751
|
+
const y = this.entities.get(d);
|
|
752
|
+
y && (y.cssCompiledStyles = this.getCompiledStyles(y.cssClasses.split(" ")), y.colorIndex = a++, e.push(y));
|
|
751
753
|
}
|
|
752
754
|
let u = 0;
|
|
753
|
-
for (const
|
|
754
|
-
const
|
|
755
|
-
id:
|
|
755
|
+
for (const d of this.relationships) {
|
|
756
|
+
const y = {
|
|
757
|
+
id: Zt(d.entityA, d.entityB, {
|
|
756
758
|
prefix: "id",
|
|
757
759
|
counter: u++
|
|
758
760
|
}),
|
|
759
761
|
type: "normal",
|
|
760
762
|
curve: "basis",
|
|
761
|
-
start:
|
|
762
|
-
end:
|
|
763
|
-
label:
|
|
763
|
+
start: d.entityA,
|
|
764
|
+
end: d.entityB,
|
|
765
|
+
label: d.roleA,
|
|
764
766
|
labelpos: "c",
|
|
765
767
|
thickness: "normal",
|
|
766
768
|
classes: "relationshipLine",
|
|
767
|
-
arrowTypeStart:
|
|
768
|
-
arrowTypeEnd:
|
|
769
|
-
pattern:
|
|
769
|
+
arrowTypeStart: d.relSpec.cardB.toLowerCase(),
|
|
770
|
+
arrowTypeEnd: d.relSpec.cardA.toLowerCase(),
|
|
771
|
+
pattern: d.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
|
|
770
772
|
look: h.look,
|
|
771
773
|
labelType: "markdown"
|
|
772
774
|
};
|
|
773
|
-
|
|
775
|
+
i.push(y);
|
|
774
776
|
}
|
|
775
|
-
return { nodes:
|
|
777
|
+
return { nodes: e, edges: i, other: {}, config: h, direction: "TB" };
|
|
776
778
|
}
|
|
777
|
-
},
|
|
778
|
-
|
|
779
|
-
draw: () =>
|
|
779
|
+
}, xt = {};
|
|
780
|
+
Wt(xt, {
|
|
781
|
+
draw: () => ee
|
|
780
782
|
});
|
|
781
|
-
var
|
|
783
|
+
var ee = /* @__PURE__ */ l(async function(e, i, h, a) {
|
|
782
784
|
V.info("REF0:"), V.info("Drawing er diagram (unified)", i);
|
|
783
|
-
const { securityLevel:
|
|
784
|
-
|
|
785
|
-
const { config:
|
|
786
|
-
|
|
785
|
+
const { securityLevel: u, er: d, layout: y } = it(), f = a.db.getData(), m = Mt(i, u);
|
|
786
|
+
f.type = a.type, f.layoutAlgorithm = qt(y), f.config.flowchart.nodeSpacing = d?.nodeSpacing || 140, f.config.flowchart.rankSpacing = d?.rankSpacing || 80, f.direction = a.db.getDirection();
|
|
787
|
+
const { config: j } = f, { look: W } = j;
|
|
788
|
+
W === "neo" ? f.markers = [
|
|
787
789
|
"only_one_neo",
|
|
788
790
|
"zero_or_one_neo",
|
|
789
791
|
"one_or_more_neo",
|
|
790
792
|
"zero_or_more_neo"
|
|
791
|
-
] :
|
|
793
|
+
] : f.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], f.diagramId = i, await Qt(f, m), f.layoutAlgorithm === "elk" && m.select(".edges").lower();
|
|
792
794
|
const S = m.selectAll('[id*="-background"]');
|
|
793
795
|
Array.from(S).length > 0 && S.each(function() {
|
|
794
|
-
const
|
|
796
|
+
const M = Xt(this), R = M.attr("id").replace("-background", ""), T = m.select(`#${CSS.escape(R)}`);
|
|
795
797
|
if (!T.empty()) {
|
|
796
|
-
const
|
|
797
|
-
|
|
798
|
+
const C = T.attr("transform");
|
|
799
|
+
M.attr("transform", C);
|
|
798
800
|
}
|
|
799
801
|
});
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
+
const q = 8;
|
|
803
|
+
Ht.insertTitle(
|
|
802
804
|
m,
|
|
803
805
|
"erDiagramTitleText",
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
),
|
|
807
|
-
}, "draw"), Ct = /* @__PURE__ */
|
|
808
|
-
const
|
|
809
|
-
return
|
|
810
|
-
}, "fade"),
|
|
811
|
-
const { theme: i, look:
|
|
812
|
-
if (!
|
|
806
|
+
d?.titleTopMargin ?? 25,
|
|
807
|
+
a.db.getDiagramTitle()
|
|
808
|
+
), Bt(m, q, "erDiagram", d?.useMaxWidth ?? !0);
|
|
809
|
+
}, "draw"), Ct = /* @__PURE__ */ l((e, i) => {
|
|
810
|
+
const h = Jt, a = h(e, "r"), u = h(e, "g"), d = h(e, "b");
|
|
811
|
+
return jt(a, u, d, i);
|
|
812
|
+
}, "fade"), rt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), se = /* @__PURE__ */ l((e) => {
|
|
813
|
+
const { theme: i, look: h, bkgColorArray: a, borderColorArray: u } = e;
|
|
814
|
+
if (!rt.has(i))
|
|
813
815
|
return "";
|
|
814
|
-
const
|
|
815
|
-
let
|
|
816
|
-
for (let
|
|
817
|
-
|
|
816
|
+
const d = a?.length > 0;
|
|
817
|
+
let y = "";
|
|
818
|
+
for (let f = 0; f < e.THEME_COLOR_LIMIT; f++)
|
|
819
|
+
y += `
|
|
818
820
|
|
|
819
|
-
[data-look="${
|
|
820
|
-
stroke: ${
|
|
821
|
-
${
|
|
821
|
+
[data-look="${h}"][data-color-id="color-${f}"].node path {
|
|
822
|
+
stroke: ${u[f]};
|
|
823
|
+
${d ? `fill: ${a[f]};` : ""}
|
|
822
824
|
}
|
|
823
825
|
|
|
824
|
-
[data-look="${
|
|
825
|
-
stroke: ${
|
|
826
|
-
${
|
|
826
|
+
[data-look="${h}"][data-color-id="color-${f}"].node rect {
|
|
827
|
+
stroke: ${u[f]};
|
|
828
|
+
${d ? `fill: ${a[f]};` : ""}
|
|
827
829
|
}
|
|
828
830
|
`;
|
|
829
|
-
return
|
|
830
|
-
}, "genColor"),
|
|
831
|
-
const { look: i, theme:
|
|
831
|
+
return y;
|
|
832
|
+
}, "genColor"), ie = /* @__PURE__ */ l((e) => {
|
|
833
|
+
const { look: i, theme: h, erEdgeLabelBackground: a, strokeWidth: u } = e;
|
|
832
834
|
return `
|
|
833
|
-
${
|
|
835
|
+
${se(e)}
|
|
834
836
|
.entityBox {
|
|
835
|
-
fill: ${
|
|
836
|
-
stroke: ${
|
|
837
|
+
fill: ${e.mainBkg};
|
|
838
|
+
stroke: ${e.nodeBorder};
|
|
837
839
|
}
|
|
838
840
|
|
|
839
841
|
.relationshipLabelBox {
|
|
840
|
-
fill: ${
|
|
842
|
+
fill: ${e.tertiaryColor};
|
|
841
843
|
opacity: 0.7;
|
|
842
|
-
background-color: ${
|
|
844
|
+
background-color: ${e.tertiaryColor};
|
|
843
845
|
rect {
|
|
844
846
|
opacity: 0.5;
|
|
845
847
|
}
|
|
846
848
|
}
|
|
847
849
|
|
|
848
850
|
.labelBkg {
|
|
849
|
-
background-color: ${
|
|
851
|
+
background-color: ${rt.has(h) && a ? a : Ct(e.tertiaryColor, 0.5)};
|
|
850
852
|
}
|
|
851
853
|
|
|
852
854
|
.edgeLabel {
|
|
853
|
-
background-color: ${
|
|
855
|
+
background-color: ${rt.has(h) && a ? a : e.edgeLabelBackground};
|
|
854
856
|
}
|
|
855
857
|
.edgeLabel .label rect {
|
|
856
|
-
fill: ${
|
|
858
|
+
fill: ${rt.has(h) && a ? a : e.edgeLabelBackground};
|
|
857
859
|
}
|
|
858
860
|
.edgeLabel .label text {
|
|
859
|
-
fill: ${
|
|
861
|
+
fill: ${e.textColor};
|
|
860
862
|
}
|
|
861
863
|
|
|
862
864
|
.edgeLabel .label {
|
|
863
|
-
fill: ${
|
|
865
|
+
fill: ${e.nodeBorder};
|
|
864
866
|
font-size: 14px;
|
|
865
867
|
}
|
|
866
868
|
|
|
867
869
|
.label {
|
|
868
|
-
font-family: ${
|
|
869
|
-
color: ${
|
|
870
|
+
font-family: ${e.fontFamily};
|
|
871
|
+
color: ${e.nodeTextColor || e.textColor};
|
|
870
872
|
}
|
|
871
873
|
|
|
872
874
|
.edge-pattern-dashed {
|
|
@@ -878,34 +880,34 @@ var se = /* @__PURE__ */ p(async function(s, i, o, h) {
|
|
|
878
880
|
.node ellipse,
|
|
879
881
|
.node polygon
|
|
880
882
|
{
|
|
881
|
-
fill: ${
|
|
882
|
-
stroke: ${
|
|
883
|
-
stroke-width: ${i === "neo" ?
|
|
883
|
+
fill: ${e.mainBkg};
|
|
884
|
+
stroke: ${e.nodeBorder};
|
|
885
|
+
stroke-width: ${i === "neo" ? u : "1px"};
|
|
884
886
|
}
|
|
885
887
|
|
|
886
888
|
.relationshipLine {
|
|
887
|
-
stroke: ${
|
|
888
|
-
stroke-width: ${i === "neo" ?
|
|
889
|
+
stroke: ${e.lineColor};
|
|
890
|
+
stroke-width: ${i === "neo" ? u : "1px"};
|
|
889
891
|
fill: none;
|
|
890
892
|
}
|
|
891
893
|
|
|
892
894
|
.marker {
|
|
893
895
|
fill: none !important;
|
|
894
|
-
stroke: ${
|
|
896
|
+
stroke: ${e.lineColor} !important;
|
|
895
897
|
stroke-width: 1;
|
|
896
898
|
}
|
|
897
899
|
[data-look=neo].labelBkg {
|
|
898
|
-
background-color: ${Ct(
|
|
900
|
+
background-color: ${Ct(e.tertiaryColor, 0.5)};
|
|
899
901
|
}
|
|
900
902
|
`;
|
|
901
|
-
}, "getStyles"),
|
|
902
|
-
parser:
|
|
903
|
+
}, "getStyles"), re = ie, le = {
|
|
904
|
+
parser: $t,
|
|
903
905
|
get db() {
|
|
904
|
-
return new
|
|
906
|
+
return new te();
|
|
905
907
|
},
|
|
906
|
-
renderer:
|
|
907
|
-
styles:
|
|
908
|
+
renderer: xt,
|
|
909
|
+
styles: re
|
|
908
910
|
};
|
|
909
911
|
export {
|
|
910
|
-
|
|
912
|
+
le as diagram
|
|
911
913
|
};
|