@kong-ui-public/documentation 0.7.11 → 0.7.13
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/{arc-DV7YacTO-BuVHIJg9.js → arc-CinmSIDH-xgjhF5JM.js} +30 -30
- package/dist/{blockDiagram-6b2b5046-BaoEJc6D-Cy9O-1ZT.js → blockDiagram-6b2b5046-lWu5MHZ2-BV0fChjb.js} +5 -5
- package/dist/{c4Diagram-b947cdbb-BJYyVIoS-BfLQE-Bs.js → c4Diagram-b947cdbb-_2ZSBCRj-DsVtFzGl.js} +2 -2
- package/dist/{channel-B0mMhQB--9z5Qz0yl.js → channel-DxVjAaZy-CRrui-5B.js} +1 -1
- package/dist/{classDiagram-35230388-Dc1FeiVu-9SLJZ_zF.js → classDiagram-35230388-C7cMop8F-DRMii3vX.js} +5 -5
- package/dist/{classDiagram-v2-412acd34-CCHNuq3s-ERBtEgJi.js → classDiagram-v2-412acd34-Sr_pGTUt-B5XidFft.js} +5 -5
- package/dist/{clone-DCouqj07-CtER8Ceo.js → clone-BaxuDe_X-BxD7U_1o.js} +1 -1
- package/dist/{createText-423428c9-wIPueJaZ-DrHAiBNP.js → createText-423428c9-DSXJlj3p-27R-kZcE.js} +1 -1
- package/dist/documentation.es.js +2 -2
- package/dist/documentation.umd.js +122 -122
- package/dist/{edges-d417c7a0-D3EPioug-BX9wZ1IY.js → edges-d417c7a0-D20zX-94-Dhrfy1WO.js} +14 -14
- package/dist/{erDiagram-0ea73325-DY9v3vqj-CV-N1VkL.js → erDiagram-0ea73325-p8FwyJvU-DVFt-LEM.js} +320 -314
- package/dist/{flowDb-d35e309a-DJwmSO92-DkHuU771.js → flowDb-d35e309a-Ca4FSAVM-DOsp0Vte.js} +1 -1
- package/dist/{flowDiagram-d949d7c1-BdlSpX05-C89vCCFN.js → flowDiagram-d949d7c1-OwxKQJQE-CNj1eG9t.js} +6 -6
- package/dist/{flowDiagram-v2-49332944-CMx7p7a1-CjIU-hoQ.js → flowDiagram-v2-49332944-CmJFqFX3-Dmvt7Fvy.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-CQgAF7oO-0yWVu_cu.js → flowchart-elk-definition-27cc417a-BK-QJI5S-C83-zjaL.js} +4 -4
- package/dist/{ganttDiagram-5c869e3b-CFdSz7-F-DLdDNczn.js → ganttDiagram-5c869e3b-DsJMAz4f-CiGlJW0L.js} +2 -2
- package/dist/{gitGraphDiagram-b9d81de9-DLrslp_g-_HNyyguC.js → gitGraphDiagram-b9d81de9-CgW7vwTs-B8681ggb.js} +31 -31
- package/dist/{graph-DDKwjgNV-CHoG5key.js → graph-_GyIwSxm-SJ7bw9Y3.js} +2 -2
- package/dist/{index-8fae9850-CXAONDQ5-Byt_-ZIo.js → index-8fae9850-CyqCz_ca-KiPjjzFu.js} +6 -6
- package/dist/{index-DdB0jRF1.js → index-BcjpWjSF.js} +1191 -1174
- package/dist/{infoDiagram-db7b18fc-uyeDrELi-8QA75iom.js → infoDiagram-db7b18fc-0P3OTShw-_GrSz1Bt.js} +7 -7
- package/dist/{journeyDiagram-d5636530-BQCHCJnM-C3OOwoQp.js → journeyDiagram-d5636530-DaBgA-aj-BpdCViqB.js} +3 -3
- package/dist/{layout-BgNLyoWW-CgBWmYzI.js → layout-Bk7AdqJz-BBmLLAeS.js} +2 -2
- package/dist/{line-m2yY3Y1V-BlkVWaqq.js → line-B7Dd0TiT-SkA5nzKI.js} +1 -1
- package/dist/{linear-BliVwsum-C61YI4UC.js → linear-bMW21eJn-nLz6oKS7.js} +39 -39
- package/dist/{mindmap-definition-377f8f1f-B0xusmpj-du7ZMm4a.js → mindmap-definition-377f8f1f-ufN3tUA6-CN-aI3_R.js} +291 -291
- package/dist/{pieDiagram-b0208e96-DkMh39v_-B_Jy5oaR.js → pieDiagram-b0208e96-DrO8Y6_Q-Bj7x7QvQ.js} +18 -18
- package/dist/{quadrantDiagram-0332be45-DLRQ0XFP-Dq_5O-GK.js → quadrantDiagram-0332be45-DIp67xs6-BFfVz4eq.js} +2 -2
- package/dist/{requirementDiagram-bf7890df-Dm79SiEu-rUdImlsN.js → requirementDiagram-bf7890df-BSzVPfZD-DviSmVdF.js} +30 -30
- package/dist/{sankeyDiagram-0acdec17-DdsU0AU3-BGeFh2Xv.js → sankeyDiagram-0acdec17-prPA1qqX-CEt_LwwN.js} +1 -1
- package/dist/{sequenceDiagram-c18d009d-CuFa0QMQ-DR9Xfluz.js → sequenceDiagram-c18d009d-BAWs2OYL-D76fPCF4.js} +152 -152
- package/dist/{stateDiagram-43596fc0-OHGmKLJG-Ceu1nG4Y.js → stateDiagram-43596fc0-DXEJ0R4o-uUCWdrcA.js} +5 -5
- package/dist/{stateDiagram-v2-2ead4f9c-tj0rBZDA-DPtpRcSa.js → stateDiagram-v2-2ead4f9c-DnzyCUgr-BdP2xqfq.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{styles-6860f46c-CRDU4Xm3-ssXGHdP6.js → styles-6860f46c-DzVPBoYT-DIdoKSW2.js} +11 -11
- package/dist/{styles-7383a064-367fcP_o-DhZV74oF.js → styles-7383a064-BL-LjhLx-DyayPgnv.js} +4 -4
- package/dist/{styles-b2c874b6-B9uj3N1G-Br32x_mb.js → styles-b2c874b6-BCYk3bdu-CuPAsrKI.js} +1 -1
- package/dist/{svgDrawCommon-0ee1b4e9-BMdgToFS-B5DyT5kn.js → svgDrawCommon-0ee1b4e9-CUz2naLo-DOD8u-To.js} +1 -1
- package/dist/{timeline-definition-d977decf-BsiOuCJk-ByOSOQEv.js → timeline-definition-d977decf-BSETSy08-dDvvimKr.js} +2 -2
- package/dist/types/external-links.d.ts.map +1 -1
- package/dist/{xychartDiagram-e50adddc-C3PuUh_C-Dy5TpJjQ.js → xychartDiagram-e50adddc-C82b8cby-Z76__7nm.js} +38 -38
- package/package.json +5 -5
package/dist/{erDiagram-0ea73325-DY9v3vqj-CV-N1VkL.js → erDiagram-0ea73325-p8FwyJvU-DVFt-LEM.js}
RENAMED
|
@@ -1,63 +1,69 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { Y as At } from "./graph-
|
|
3
|
-
import { O as Mt } from "./layout-
|
|
4
|
-
import { P as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
return typeof t == "string" &&
|
|
1
|
+
import { c as Z, s as ft, g as mt, b as Et, a as gt, v as bt, x as kt, l as Q, z as Ot, h as et, y as Rt, i as Nt, an as xt, aq as Tt } from "./index-BcjpWjSF.js";
|
|
2
|
+
import { Y as At } from "./graph-_GyIwSxm-SJ7bw9Y3.js";
|
|
3
|
+
import { O as Mt } from "./layout-Bk7AdqJz-BBmLLAeS.js";
|
|
4
|
+
import { P as It } from "./line-B7Dd0TiT-SkA5nzKI.js";
|
|
5
|
+
const vt = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
6
|
+
function St(t) {
|
|
7
|
+
return typeof t == "string" && vt.test(t);
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return e[0] = (r = parseInt(t.slice(0, 8), 16)) >>> 24, e[1] = r >>> 16 & 255, e[2] = r >>> 8 & 255, e[3] = r & 255, e[4] = (r = parseInt(t.slice(9, 13), 16)) >>> 8, e[5] = r & 255, e[6] = (r = parseInt(t.slice(14, 18), 16)) >>> 8, e[7] = r & 255, e[8] = (r = parseInt(t.slice(19, 23), 16)) >>> 8, e[9] = r & 255, e[10] = (r = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, e[11] = r / 4294967296 & 255, e[12] = r >>> 24 & 255, e[13] = r >>> 16 & 255, e[14] = r >>> 8 & 255, e[15] = r & 255, e;
|
|
9
|
+
const T = [];
|
|
10
|
+
for (let t = 0; t < 256; ++t)
|
|
11
|
+
T.push((t + 256).toString(16).slice(1));
|
|
12
|
+
function $t(t, e = 0) {
|
|
13
|
+
return T[t[e + 0]] + T[t[e + 1]] + T[t[e + 2]] + T[t[e + 3]] + "-" + T[t[e + 4]] + T[t[e + 5]] + "-" + T[t[e + 6]] + T[t[e + 7]] + "-" + T[t[e + 8]] + T[t[e + 9]] + "-" + T[t[e + 10]] + T[t[e + 11]] + T[t[e + 12]] + T[t[e + 13]] + T[t[e + 14]] + T[t[e + 15]];
|
|
15
14
|
}
|
|
16
15
|
function Lt(t) {
|
|
16
|
+
if (!St(t))
|
|
17
|
+
throw TypeError("Invalid UUID");
|
|
18
|
+
let e;
|
|
19
|
+
const r = new Uint8Array(16);
|
|
20
|
+
return r[0] = (e = parseInt(t.slice(0, 8), 16)) >>> 24, r[1] = e >>> 16 & 255, r[2] = e >>> 8 & 255, r[3] = e & 255, r[4] = (e = parseInt(t.slice(9, 13), 16)) >>> 8, r[5] = e & 255, r[6] = (e = parseInt(t.slice(14, 18), 16)) >>> 8, r[7] = e & 255, r[8] = (e = parseInt(t.slice(19, 23), 16)) >>> 8, r[9] = e & 255, r[10] = (e = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, r[11] = e / 4294967296 & 255, r[12] = e >>> 24 & 255, r[13] = e >>> 16 & 255, r[14] = e >>> 8 & 255, r[15] = e & 255, r;
|
|
21
|
+
}
|
|
22
|
+
function Dt(t) {
|
|
17
23
|
t = unescape(encodeURIComponent(t));
|
|
18
|
-
const
|
|
19
|
-
for (let
|
|
20
|
-
|
|
21
|
-
return
|
|
24
|
+
const e = [];
|
|
25
|
+
for (let r = 0; r < t.length; ++r)
|
|
26
|
+
e.push(t.charCodeAt(r));
|
|
27
|
+
return e;
|
|
22
28
|
}
|
|
23
|
-
const wt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
|
|
24
|
-
function
|
|
29
|
+
const wt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Bt = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
30
|
+
function Ct(t, e, r) {
|
|
25
31
|
function u(l, p, h, c) {
|
|
26
32
|
var d;
|
|
27
|
-
if (typeof l == "string" && (l =
|
|
33
|
+
if (typeof l == "string" && (l = Dt(l)), typeof p == "string" && (p = Lt(p)), ((d = p) === null || d === void 0 ? void 0 : d.length) !== 16)
|
|
28
34
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
29
35
|
let f = new Uint8Array(16 + l.length);
|
|
30
|
-
if (f.set(p), f.set(l, p.length), f =
|
|
36
|
+
if (f.set(p), f.set(l, p.length), f = r(f), f[6] = f[6] & 15 | e, f[8] = f[8] & 63 | 128, h) {
|
|
31
37
|
c = c || 0;
|
|
32
38
|
for (let m = 0; m < 16; ++m)
|
|
33
39
|
h[c + m] = f[m];
|
|
34
40
|
return h;
|
|
35
41
|
}
|
|
36
|
-
return
|
|
42
|
+
return $t(f);
|
|
37
43
|
}
|
|
38
44
|
try {
|
|
39
45
|
u.name = t;
|
|
40
46
|
} catch {
|
|
41
47
|
}
|
|
42
|
-
return u.DNS = wt, u.URL =
|
|
48
|
+
return u.DNS = wt, u.URL = Bt, u;
|
|
43
49
|
}
|
|
44
|
-
function
|
|
50
|
+
function Yt(t, e, r, u) {
|
|
45
51
|
switch (t) {
|
|
46
52
|
case 0:
|
|
47
|
-
return
|
|
53
|
+
return e & r ^ ~e & u;
|
|
48
54
|
case 1:
|
|
49
|
-
return
|
|
55
|
+
return e ^ r ^ u;
|
|
50
56
|
case 2:
|
|
51
|
-
return
|
|
57
|
+
return e & r ^ e & u ^ r & u;
|
|
52
58
|
case 3:
|
|
53
|
-
return
|
|
59
|
+
return e ^ r ^ u;
|
|
54
60
|
}
|
|
55
61
|
}
|
|
56
|
-
function
|
|
57
|
-
return t <<
|
|
62
|
+
function rt(t, e) {
|
|
63
|
+
return t << e | t >>> 32 - e;
|
|
58
64
|
}
|
|
59
|
-
function
|
|
60
|
-
const
|
|
65
|
+
function Zt(t) {
|
|
66
|
+
const e = [1518500249, 1859775393, 2400959708, 3395469782], r = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
|
61
67
|
if (typeof t == "string") {
|
|
62
68
|
const h = unescape(encodeURIComponent(t));
|
|
63
69
|
t = [];
|
|
@@ -79,31 +85,31 @@ function Yt(t) {
|
|
|
79
85
|
for (let _ = 0; _ < 16; ++_)
|
|
80
86
|
c[_] = p[h][_];
|
|
81
87
|
for (let _ = 16; _ < 80; ++_)
|
|
82
|
-
c[_] =
|
|
83
|
-
let d =
|
|
88
|
+
c[_] = rt(c[_ - 3] ^ c[_ - 8] ^ c[_ - 14] ^ c[_ - 16], 1);
|
|
89
|
+
let d = r[0], f = r[1], m = r[2], E = r[3], g = r[4];
|
|
84
90
|
for (let _ = 0; _ < 80; ++_) {
|
|
85
|
-
const
|
|
86
|
-
g = E, E = m, m =
|
|
91
|
+
const v = Math.floor(_ / 20), w = rt(d, 5) + Yt(v, f, m, E) + g + e[v] + c[_] >>> 0;
|
|
92
|
+
g = E, E = m, m = rt(f, 30) >>> 0, f = d, d = w;
|
|
87
93
|
}
|
|
88
|
-
|
|
94
|
+
r[0] = r[0] + d >>> 0, r[1] = r[1] + f >>> 0, r[2] = r[2] + m >>> 0, r[3] = r[3] + E >>> 0, r[4] = r[4] + g >>> 0;
|
|
89
95
|
}
|
|
90
|
-
return [
|
|
96
|
+
return [r[0] >> 24 & 255, r[0] >> 16 & 255, r[0] >> 8 & 255, r[0] & 255, r[1] >> 24 & 255, r[1] >> 16 & 255, r[1] >> 8 & 255, r[1] & 255, r[2] >> 24 & 255, r[2] >> 16 & 255, r[2] >> 8 & 255, r[2] & 255, r[3] >> 24 & 255, r[3] >> 16 & 255, r[3] >> 8 & 255, r[3] & 255, r[4] >> 24 & 255, r[4] >> 16 & 255, r[4] >> 8 & 255, r[4] & 255];
|
|
91
97
|
}
|
|
92
|
-
const
|
|
93
|
-
var
|
|
94
|
-
var t = function(
|
|
95
|
-
for (o = o || {}, n =
|
|
98
|
+
const Pt = Ct("v5", 80, Zt);
|
|
99
|
+
var at = function() {
|
|
100
|
+
var t = function(A, i, o, n) {
|
|
101
|
+
for (o = o || {}, n = A.length; n--; o[A[n]] = i)
|
|
96
102
|
;
|
|
97
103
|
return o;
|
|
98
|
-
},
|
|
104
|
+
}, e = [6, 8, 10, 20, 22, 24, 26, 27, 28], r = [1, 10], u = [1, 11], l = [1, 12], p = [1, 13], h = [1, 14], c = [1, 15], d = [1, 21], f = [1, 22], m = [1, 23], E = [1, 24], g = [1, 25], _ = [6, 8, 10, 13, 15, 18, 19, 20, 22, 24, 26, 27, 28, 41, 42, 43, 44, 45], v = [1, 34], w = [27, 28, 46, 47], P = [41, 42, 43, 44, 45], F = [17, 34], B = [1, 54], N = [1, 53], M = [17, 34, 36, 38], k = {
|
|
99
105
|
trace: function() {
|
|
100
106
|
},
|
|
101
107
|
yy: {},
|
|
102
108
|
symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, ":": 13, role: 14, BLOCK_START: 15, attributes: 16, BLOCK_STOP: 17, SQS: 18, SQE: 19, title: 20, title_value: 21, acc_title: 22, acc_title_value: 23, acc_descr: 24, acc_descr_value: 25, acc_descr_multiline_value: 26, ALPHANUM: 27, ENTITY_NAME: 28, attribute: 29, attributeType: 30, attributeName: 31, attributeKeyTypeList: 32, attributeComment: 33, ATTRIBUTE_WORD: 34, attributeKeyType: 35, COMMA: 36, ATTRIBUTE_KEY: 37, COMMENT: 38, cardinality: 39, relType: 40, ZERO_OR_ONE: 41, ZERO_OR_MORE: 42, ONE_OR_MORE: 43, ONLY_ONE: 44, MD_PARENT: 45, NON_IDENTIFYING: 46, IDENTIFYING: 47, WORD: 48, $accept: 0, $end: 1 },
|
|
103
109
|
terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: ":", 15: "BLOCK_START", 17: "BLOCK_STOP", 18: "SQS", 19: "SQE", 20: "title", 21: "title_value", 22: "acc_title", 23: "acc_title_value", 24: "acc_descr", 25: "acc_descr_value", 26: "acc_descr_multiline_value", 27: "ALPHANUM", 28: "ENTITY_NAME", 34: "ATTRIBUTE_WORD", 36: "COMMA", 37: "ATTRIBUTE_KEY", 38: "COMMENT", 41: "ZERO_OR_ONE", 42: "ZERO_OR_MORE", 43: "ONE_OR_MORE", 44: "ONLY_ONE", 45: "MD_PARENT", 46: "NON_IDENTIFYING", 47: "IDENTIFYING", 48: "WORD" },
|
|
104
110
|
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 4], [9, 3], [9, 1], [9, 7], [9, 6], [9, 4], [9, 2], [9, 2], [9, 2], [9, 1], [11, 1], [11, 1], [16, 1], [16, 2], [29, 2], [29, 3], [29, 3], [29, 4], [30, 1], [31, 1], [32, 1], [32, 3], [35, 1], [33, 1], [12, 3], [39, 1], [39, 1], [39, 1], [39, 1], [39, 1], [40, 1], [40, 1], [14, 1], [14, 1], [14, 1]],
|
|
105
|
-
performAction: function(
|
|
106
|
-
var s =
|
|
111
|
+
performAction: function(A, i, o, n, y, a, x) {
|
|
112
|
+
var s = a.length - 1;
|
|
107
113
|
switch (y) {
|
|
108
114
|
case 1:
|
|
109
115
|
break;
|
|
@@ -111,86 +117,86 @@ var rt = function() {
|
|
|
111
117
|
this.$ = [];
|
|
112
118
|
break;
|
|
113
119
|
case 3:
|
|
114
|
-
|
|
120
|
+
a[s - 1].push(a[s]), this.$ = a[s - 1];
|
|
115
121
|
break;
|
|
116
122
|
case 4:
|
|
117
123
|
case 5:
|
|
118
|
-
this.$ =
|
|
124
|
+
this.$ = a[s];
|
|
119
125
|
break;
|
|
120
126
|
case 6:
|
|
121
127
|
case 7:
|
|
122
128
|
this.$ = [];
|
|
123
129
|
break;
|
|
124
130
|
case 8:
|
|
125
|
-
n.addEntity(
|
|
131
|
+
n.addEntity(a[s - 4]), n.addEntity(a[s - 2]), n.addRelationship(a[s - 4], a[s], a[s - 2], a[s - 3]);
|
|
126
132
|
break;
|
|
127
133
|
case 9:
|
|
128
|
-
n.addEntity(
|
|
134
|
+
n.addEntity(a[s - 3]), n.addAttributes(a[s - 3], a[s - 1]);
|
|
129
135
|
break;
|
|
130
136
|
case 10:
|
|
131
|
-
n.addEntity(
|
|
137
|
+
n.addEntity(a[s - 2]);
|
|
132
138
|
break;
|
|
133
139
|
case 11:
|
|
134
|
-
n.addEntity(
|
|
140
|
+
n.addEntity(a[s]);
|
|
135
141
|
break;
|
|
136
142
|
case 12:
|
|
137
|
-
n.addEntity(
|
|
143
|
+
n.addEntity(a[s - 6], a[s - 4]), n.addAttributes(a[s - 6], a[s - 1]);
|
|
138
144
|
break;
|
|
139
145
|
case 13:
|
|
140
|
-
n.addEntity(
|
|
146
|
+
n.addEntity(a[s - 5], a[s - 3]);
|
|
141
147
|
break;
|
|
142
148
|
case 14:
|
|
143
|
-
n.addEntity(
|
|
149
|
+
n.addEntity(a[s - 3], a[s - 1]);
|
|
144
150
|
break;
|
|
145
151
|
case 15:
|
|
146
152
|
case 16:
|
|
147
|
-
this.$ =
|
|
153
|
+
this.$ = a[s].trim(), n.setAccTitle(this.$);
|
|
148
154
|
break;
|
|
149
155
|
case 17:
|
|
150
156
|
case 18:
|
|
151
|
-
this.$ =
|
|
157
|
+
this.$ = a[s].trim(), n.setAccDescription(this.$);
|
|
152
158
|
break;
|
|
153
159
|
case 19:
|
|
154
160
|
case 43:
|
|
155
|
-
this.$ =
|
|
161
|
+
this.$ = a[s];
|
|
156
162
|
break;
|
|
157
163
|
case 20:
|
|
158
164
|
case 41:
|
|
159
165
|
case 42:
|
|
160
|
-
this.$ =
|
|
166
|
+
this.$ = a[s].replace(/"/g, "");
|
|
161
167
|
break;
|
|
162
168
|
case 21:
|
|
163
169
|
case 29:
|
|
164
|
-
this.$ = [
|
|
170
|
+
this.$ = [a[s]];
|
|
165
171
|
break;
|
|
166
172
|
case 22:
|
|
167
|
-
|
|
173
|
+
a[s].push(a[s - 1]), this.$ = a[s];
|
|
168
174
|
break;
|
|
169
175
|
case 23:
|
|
170
|
-
this.$ = { attributeType:
|
|
176
|
+
this.$ = { attributeType: a[s - 1], attributeName: a[s] };
|
|
171
177
|
break;
|
|
172
178
|
case 24:
|
|
173
|
-
this.$ = { attributeType:
|
|
179
|
+
this.$ = { attributeType: a[s - 2], attributeName: a[s - 1], attributeKeyTypeList: a[s] };
|
|
174
180
|
break;
|
|
175
181
|
case 25:
|
|
176
|
-
this.$ = { attributeType:
|
|
182
|
+
this.$ = { attributeType: a[s - 2], attributeName: a[s - 1], attributeComment: a[s] };
|
|
177
183
|
break;
|
|
178
184
|
case 26:
|
|
179
|
-
this.$ = { attributeType:
|
|
185
|
+
this.$ = { attributeType: a[s - 3], attributeName: a[s - 2], attributeKeyTypeList: a[s - 1], attributeComment: a[s] };
|
|
180
186
|
break;
|
|
181
187
|
case 27:
|
|
182
188
|
case 28:
|
|
183
189
|
case 31:
|
|
184
|
-
this.$ =
|
|
190
|
+
this.$ = a[s];
|
|
185
191
|
break;
|
|
186
192
|
case 30:
|
|
187
|
-
|
|
193
|
+
a[s - 2].push(a[s]), this.$ = a[s - 2];
|
|
188
194
|
break;
|
|
189
195
|
case 32:
|
|
190
|
-
this.$ =
|
|
196
|
+
this.$ = a[s].replace(/"/g, "");
|
|
191
197
|
break;
|
|
192
198
|
case 33:
|
|
193
|
-
this.$ = { cardA:
|
|
199
|
+
this.$ = { cardA: a[s], relType: a[s - 1], cardB: a[s - 2] };
|
|
194
200
|
break;
|
|
195
201
|
case 34:
|
|
196
202
|
this.$ = n.Cardinality.ZERO_OR_ONE;
|
|
@@ -215,71 +221,71 @@ var rt = function() {
|
|
|
215
221
|
break;
|
|
216
222
|
}
|
|
217
223
|
},
|
|
218
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(
|
|
224
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 20: r, 22: u, 24: l, 26: p, 27: h, 28: c }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 16, 11: 9, 20: r, 22: u, 24: l, 26: p, 27: h, 28: c }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 11], { 12: 17, 39: 20, 15: [1, 18], 18: [1, 19], 41: d, 42: f, 43: m, 44: E, 45: g }), { 21: [1, 26] }, { 23: [1, 27] }, { 25: [1, 28] }, t(e, [2, 18]), t(_, [2, 19]), t(_, [2, 20]), t(e, [2, 4]), { 11: 29, 27: h, 28: c }, { 16: 30, 17: [1, 31], 29: 32, 30: 33, 34: v }, { 11: 35, 27: h, 28: c }, { 40: 36, 46: [1, 37], 47: [1, 38] }, t(w, [2, 34]), t(w, [2, 35]), t(w, [2, 36]), t(w, [2, 37]), t(w, [2, 38]), t(e, [2, 15]), t(e, [2, 16]), t(e, [2, 17]), { 13: [1, 39] }, { 17: [1, 40] }, t(e, [2, 10]), { 16: 41, 17: [2, 21], 29: 32, 30: 33, 34: v }, { 31: 42, 34: [1, 43] }, { 34: [2, 27] }, { 19: [1, 44] }, { 39: 45, 41: d, 42: f, 43: m, 44: E, 45: g }, t(P, [2, 39]), t(P, [2, 40]), { 14: 46, 27: [1, 49], 28: [1, 48], 48: [1, 47] }, t(e, [2, 9]), { 17: [2, 22] }, t(F, [2, 23], { 32: 50, 33: 51, 35: 52, 37: B, 38: N }), t([17, 34, 37, 38], [2, 28]), t(e, [2, 14], { 15: [1, 55] }), t([27, 28], [2, 33]), t(e, [2, 8]), t(e, [2, 41]), t(e, [2, 42]), t(e, [2, 43]), t(F, [2, 24], { 33: 56, 36: [1, 57], 38: N }), t(F, [2, 25]), t(M, [2, 29]), t(F, [2, 32]), t(M, [2, 31]), { 16: 58, 17: [1, 59], 29: 32, 30: 33, 34: v }, t(F, [2, 26]), { 35: 60, 37: B }, { 17: [1, 61] }, t(e, [2, 13]), t(M, [2, 30]), t(e, [2, 12])],
|
|
219
225
|
defaultActions: { 34: [2, 27], 41: [2, 22] },
|
|
220
|
-
parseError: function(
|
|
221
|
-
if (
|
|
222
|
-
this.trace(
|
|
226
|
+
parseError: function(A, i) {
|
|
227
|
+
if (i.recoverable)
|
|
228
|
+
this.trace(A);
|
|
223
229
|
else {
|
|
224
|
-
var o = new Error(
|
|
225
|
-
throw o.hash =
|
|
230
|
+
var o = new Error(A);
|
|
231
|
+
throw o.hash = i, o;
|
|
226
232
|
}
|
|
227
233
|
},
|
|
228
|
-
parse: function(
|
|
229
|
-
var
|
|
230
|
-
for (var
|
|
231
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
232
|
-
R.setInput(
|
|
233
|
-
var
|
|
234
|
-
|
|
235
|
-
var
|
|
234
|
+
parse: function(A) {
|
|
235
|
+
var i = this, o = [0], n = [], y = [null], a = [], x = this.table, s = "", G = 0, nt = 0, ut = 2, st = 1, yt = a.slice.call(arguments, 1), R = Object.create(this.lexer), W = { yy: {} };
|
|
236
|
+
for (var V in this.yy)
|
|
237
|
+
Object.prototype.hasOwnProperty.call(this.yy, V) && (W.yy[V] = this.yy[V]);
|
|
238
|
+
R.setInput(A, W.yy), W.yy.lexer = R, W.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
|
|
239
|
+
var q = R.yylloc;
|
|
240
|
+
a.push(q);
|
|
241
|
+
var pt = R.options && R.options.ranges;
|
|
236
242
|
typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
237
|
-
function
|
|
238
|
-
var
|
|
239
|
-
return
|
|
243
|
+
function _t() {
|
|
244
|
+
var Y;
|
|
245
|
+
return Y = n.pop() || R.lex() || st, typeof Y != "number" && (Y instanceof Array && (n = Y, Y = n.pop()), Y = i.symbols_[Y] || Y), Y;
|
|
240
246
|
}
|
|
241
|
-
for (var
|
|
242
|
-
if (
|
|
243
|
-
var
|
|
244
|
-
|
|
245
|
-
for (
|
|
246
|
-
this.terminals_[
|
|
247
|
-
R.showPosition ?
|
|
247
|
+
for (var I, K, S, J, U = {}, H, C, ot, j; ; ) {
|
|
248
|
+
if (K = o[o.length - 1], this.defaultActions[K] ? S = this.defaultActions[K] : ((I === null || typeof I > "u") && (I = _t()), S = x[K] && x[K][I]), typeof S > "u" || !S.length || !S[0]) {
|
|
249
|
+
var tt = "";
|
|
250
|
+
j = [];
|
|
251
|
+
for (H in x[K])
|
|
252
|
+
this.terminals_[H] && H > ut && j.push("'" + this.terminals_[H] + "'");
|
|
253
|
+
R.showPosition ? tt = "Parse error on line " + (G + 1) + `:
|
|
248
254
|
` + R.showPosition() + `
|
|
249
|
-
Expecting ` +
|
|
255
|
+
Expecting ` + j.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : tt = "Parse error on line " + (G + 1) + ": Unexpected " + (I == st ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(tt, {
|
|
250
256
|
text: R.match,
|
|
251
|
-
token: this.terminals_[
|
|
257
|
+
token: this.terminals_[I] || I,
|
|
252
258
|
line: R.yylineno,
|
|
253
|
-
loc:
|
|
254
|
-
expected:
|
|
259
|
+
loc: q,
|
|
260
|
+
expected: j
|
|
255
261
|
});
|
|
256
262
|
}
|
|
257
|
-
if (
|
|
258
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
259
|
-
switch (
|
|
263
|
+
if (S[0] instanceof Array && S.length > 1)
|
|
264
|
+
throw new Error("Parse Error: multiple actions possible at state: " + K + ", token: " + I);
|
|
265
|
+
switch (S[0]) {
|
|
260
266
|
case 1:
|
|
261
|
-
o.push(
|
|
267
|
+
o.push(I), y.push(R.yytext), a.push(R.yylloc), o.push(S[1]), I = null, nt = R.yyleng, s = R.yytext, G = R.yylineno, q = R.yylloc;
|
|
262
268
|
break;
|
|
263
269
|
case 2:
|
|
264
|
-
if (
|
|
265
|
-
first_line:
|
|
266
|
-
last_line:
|
|
267
|
-
first_column:
|
|
268
|
-
last_column:
|
|
269
|
-
},
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
]),
|
|
270
|
+
if (C = this.productions_[S[1]][1], U.$ = y[y.length - C], U._$ = {
|
|
271
|
+
first_line: a[a.length - (C || 1)].first_line,
|
|
272
|
+
last_line: a[a.length - 1].last_line,
|
|
273
|
+
first_column: a[a.length - (C || 1)].first_column,
|
|
274
|
+
last_column: a[a.length - 1].last_column
|
|
275
|
+
}, pt && (U._$.range = [
|
|
276
|
+
a[a.length - (C || 1)].range[0],
|
|
277
|
+
a[a.length - 1].range[1]
|
|
278
|
+
]), J = this.performAction.apply(U, [
|
|
273
279
|
s,
|
|
274
|
-
|
|
275
|
-
|
|
280
|
+
nt,
|
|
281
|
+
G,
|
|
276
282
|
W.yy,
|
|
277
|
-
|
|
283
|
+
S[1],
|
|
278
284
|
y,
|
|
279
|
-
|
|
280
|
-
].concat(
|
|
281
|
-
return
|
|
282
|
-
|
|
285
|
+
a
|
|
286
|
+
].concat(yt)), typeof J < "u")
|
|
287
|
+
return J;
|
|
288
|
+
C && (o = o.slice(0, -1 * C * 2), y = y.slice(0, -1 * C), a = a.slice(0, -1 * C)), o.push(this.productions_[S[1]][0]), y.push(U.$), a.push(U._$), ot = x[o[o.length - 2]][o[o.length - 1]], o.push(ot);
|
|
283
289
|
break;
|
|
284
290
|
case 3:
|
|
285
291
|
return !0;
|
|
@@ -288,17 +294,17 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
|
|
|
288
294
|
return !0;
|
|
289
295
|
}
|
|
290
296
|
}, O = /* @__PURE__ */ function() {
|
|
291
|
-
var
|
|
297
|
+
var A = {
|
|
292
298
|
EOF: 1,
|
|
293
|
-
parseError: function(
|
|
299
|
+
parseError: function(i, o) {
|
|
294
300
|
if (this.yy.parser)
|
|
295
|
-
this.yy.parser.parseError(
|
|
301
|
+
this.yy.parser.parseError(i, o);
|
|
296
302
|
else
|
|
297
|
-
throw new Error(
|
|
303
|
+
throw new Error(i);
|
|
298
304
|
},
|
|
299
305
|
// resets the lexer, sets new input
|
|
300
|
-
setInput: function(
|
|
301
|
-
return this.yy = o || this.yy || {}, this._input =
|
|
306
|
+
setInput: function(i, o) {
|
|
307
|
+
return this.yy = o || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
302
308
|
first_line: 1,
|
|
303
309
|
first_column: 0,
|
|
304
310
|
last_line: 1,
|
|
@@ -307,24 +313,24 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
|
|
|
307
313
|
},
|
|
308
314
|
// consumes and returns one char from the input
|
|
309
315
|
input: function() {
|
|
310
|
-
var
|
|
311
|
-
this.yytext +=
|
|
312
|
-
var o =
|
|
313
|
-
return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1),
|
|
316
|
+
var i = this._input[0];
|
|
317
|
+
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
318
|
+
var o = i.match(/(?:\r\n?|\n).*/g);
|
|
319
|
+
return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
314
320
|
},
|
|
315
321
|
// unshifts one char (or a string) into the input
|
|
316
|
-
unput: function(
|
|
317
|
-
var o =
|
|
318
|
-
this._input =
|
|
322
|
+
unput: function(i) {
|
|
323
|
+
var o = i.length, n = i.split(/(?:\r\n?|\n)/g);
|
|
324
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
|
|
319
325
|
var y = this.match.split(/(?:\r\n?|\n)/g);
|
|
320
326
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
321
|
-
var
|
|
327
|
+
var a = this.yylloc.range;
|
|
322
328
|
return this.yylloc = {
|
|
323
329
|
first_line: this.yylloc.first_line,
|
|
324
330
|
last_line: this.yylineno + 1,
|
|
325
331
|
first_column: this.yylloc.first_column,
|
|
326
332
|
last_column: n ? (n.length === y.length ? this.yylloc.first_column : 0) + y[y.length - n.length].length - n[0].length : this.yylloc.first_column - o
|
|
327
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
333
|
+
}, this.options.ranges && (this.yylloc.range = [a[0], a[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
|
|
328
334
|
},
|
|
329
335
|
// When called from action, caches matched text and appends it on next action
|
|
330
336
|
more: function() {
|
|
@@ -344,29 +350,29 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
|
|
|
344
350
|
return this;
|
|
345
351
|
},
|
|
346
352
|
// retain first n characters of the match
|
|
347
|
-
less: function(
|
|
348
|
-
this.unput(this.match.slice(
|
|
353
|
+
less: function(i) {
|
|
354
|
+
this.unput(this.match.slice(i));
|
|
349
355
|
},
|
|
350
356
|
// displays already matched input, i.e. for error messages
|
|
351
357
|
pastInput: function() {
|
|
352
|
-
var
|
|
353
|
-
return (
|
|
358
|
+
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
359
|
+
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
354
360
|
},
|
|
355
361
|
// displays upcoming input, i.e. for error messages
|
|
356
362
|
upcomingInput: function() {
|
|
357
|
-
var
|
|
358
|
-
return
|
|
363
|
+
var i = this.match;
|
|
364
|
+
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
359
365
|
},
|
|
360
366
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
361
367
|
showPosition: function() {
|
|
362
|
-
var
|
|
363
|
-
return
|
|
368
|
+
var i = this.pastInput(), o = new Array(i.length + 1).join("-");
|
|
369
|
+
return i + this.upcomingInput() + `
|
|
364
370
|
` + o + "^";
|
|
365
371
|
},
|
|
366
372
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
367
|
-
test_match: function(
|
|
368
|
-
var n, y,
|
|
369
|
-
if (this.options.backtrack_lexer && (
|
|
373
|
+
test_match: function(i, o) {
|
|
374
|
+
var n, y, a;
|
|
375
|
+
if (this.options.backtrack_lexer && (a = {
|
|
370
376
|
yylineno: this.yylineno,
|
|
371
377
|
yylloc: {
|
|
372
378
|
first_line: this.yylloc.first_line,
|
|
@@ -385,16 +391,16 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
|
|
|
385
391
|
yy: this.yy,
|
|
386
392
|
conditionStack: this.conditionStack.slice(0),
|
|
387
393
|
done: this.done
|
|
388
|
-
}, this.options.ranges && (
|
|
394
|
+
}, this.options.ranges && (a.yylloc.range = this.yylloc.range.slice(0))), y = i[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
|
|
389
395
|
first_line: this.yylloc.last_line,
|
|
390
396
|
last_line: this.yylineno + 1,
|
|
391
397
|
first_column: this.yylloc.last_column,
|
|
392
|
-
last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column +
|
|
393
|
-
}, this.yytext +=
|
|
398
|
+
last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
399
|
+
}, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], n = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
|
|
394
400
|
return n;
|
|
395
401
|
if (this._backtrack) {
|
|
396
|
-
for (var x in
|
|
397
|
-
this[x] =
|
|
402
|
+
for (var x in a)
|
|
403
|
+
this[x] = a[x];
|
|
398
404
|
return !1;
|
|
399
405
|
}
|
|
400
406
|
return !1;
|
|
@@ -404,13 +410,13 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
|
|
|
404
410
|
if (this.done)
|
|
405
411
|
return this.EOF;
|
|
406
412
|
this._input || (this.done = !0);
|
|
407
|
-
var
|
|
413
|
+
var i, o, n, y;
|
|
408
414
|
this._more || (this.yytext = "", this.match = "");
|
|
409
|
-
for (var
|
|
410
|
-
if (n = this._input.match(this.rules[
|
|
415
|
+
for (var a = this._currentRules(), x = 0; x < a.length; x++)
|
|
416
|
+
if (n = this._input.match(this.rules[a[x]]), n && (!o || n[0].length > o[0].length)) {
|
|
411
417
|
if (o = n, y = x, this.options.backtrack_lexer) {
|
|
412
|
-
if (
|
|
413
|
-
return
|
|
418
|
+
if (i = this.test_match(n, a[x]), i !== !1)
|
|
419
|
+
return i;
|
|
414
420
|
if (this._backtrack) {
|
|
415
421
|
o = !1;
|
|
416
422
|
continue;
|
|
@@ -419,7 +425,7 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
|
|
|
419
425
|
} else if (!this.options.flex)
|
|
420
426
|
break;
|
|
421
427
|
}
|
|
422
|
-
return o ? (
|
|
428
|
+
return o ? (i = this.test_match(o, a[y]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
423
429
|
` + this.showPosition(), {
|
|
424
430
|
text: "",
|
|
425
431
|
token: null,
|
|
@@ -428,36 +434,36 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
|
|
|
428
434
|
},
|
|
429
435
|
// return next match that has a token
|
|
430
436
|
lex: function() {
|
|
431
|
-
var
|
|
432
|
-
return
|
|
437
|
+
var i = this.next();
|
|
438
|
+
return i || this.lex();
|
|
433
439
|
},
|
|
434
440
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
435
|
-
begin: function(
|
|
436
|
-
this.conditionStack.push(
|
|
441
|
+
begin: function(i) {
|
|
442
|
+
this.conditionStack.push(i);
|
|
437
443
|
},
|
|
438
444
|
// pop the previously active lexer condition state off the condition stack
|
|
439
445
|
popState: function() {
|
|
440
|
-
var
|
|
441
|
-
return
|
|
446
|
+
var i = this.conditionStack.length - 1;
|
|
447
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
442
448
|
},
|
|
443
449
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
444
450
|
_currentRules: function() {
|
|
445
451
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
446
452
|
},
|
|
447
453
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
448
|
-
topState: function(
|
|
449
|
-
return
|
|
454
|
+
topState: function(i) {
|
|
455
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
450
456
|
},
|
|
451
457
|
// alias for begin(condition)
|
|
452
|
-
pushState: function(
|
|
453
|
-
this.begin(
|
|
458
|
+
pushState: function(i) {
|
|
459
|
+
this.begin(i);
|
|
454
460
|
},
|
|
455
461
|
// return the number of states currently on the stack
|
|
456
462
|
stateStackSize: function() {
|
|
457
463
|
return this.conditionStack.length;
|
|
458
464
|
},
|
|
459
465
|
options: { "case-insensitive": !0 },
|
|
460
|
-
performAction: function(
|
|
466
|
+
performAction: function(i, o, n, y) {
|
|
461
467
|
switch (n) {
|
|
462
468
|
case 0:
|
|
463
469
|
return this.begin("acc_title"), 22;
|
|
@@ -578,18 +584,18 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
|
|
|
578
584
|
rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:,)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:(.*?)[~](.*?)*[~])/i, /^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:1\b)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:\s*u\b)/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i, /^(?:.)/i, /^(?:$)/i],
|
|
579
585
|
conditions: { acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [14, 15, 16, 17, 18, 19, 20, 21, 22], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55], inclusive: !0 } }
|
|
580
586
|
};
|
|
581
|
-
return
|
|
587
|
+
return A;
|
|
582
588
|
}();
|
|
583
589
|
k.lexer = O;
|
|
584
|
-
function
|
|
590
|
+
function $() {
|
|
585
591
|
this.yy = {};
|
|
586
592
|
}
|
|
587
|
-
return
|
|
593
|
+
return $.prototype = k, k.Parser = $, new $();
|
|
588
594
|
}();
|
|
589
|
-
|
|
590
|
-
const
|
|
591
|
-
let
|
|
592
|
-
const
|
|
595
|
+
at.parser = at;
|
|
596
|
+
const Ft = at;
|
|
597
|
+
let z = {}, it = [];
|
|
598
|
+
const zt = {
|
|
593
599
|
ZERO_OR_ONE: "ZERO_OR_ONE",
|
|
594
600
|
ZERO_OR_MORE: "ZERO_OR_MORE",
|
|
595
601
|
ONE_OR_MORE: "ONE_OR_MORE",
|
|
@@ -598,39 +604,39 @@ const Ft = {
|
|
|
598
604
|
}, Wt = {
|
|
599
605
|
NON_IDENTIFYING: "NON_IDENTIFYING",
|
|
600
606
|
IDENTIFYING: "IDENTIFYING"
|
|
601
|
-
},
|
|
602
|
-
return
|
|
603
|
-
},
|
|
604
|
-
let
|
|
605
|
-
for (u =
|
|
606
|
-
|
|
607
|
-
},
|
|
607
|
+
}, ht = function(t, e = void 0) {
|
|
608
|
+
return z[t] === void 0 ? (z[t] = { attributes: [], alias: e }, Q.info("Added new entity :", t)) : z[t] && !z[t].alias && e && (z[t].alias = e, Q.info(`Add alias '${e}' to entity '${t}'`)), z[t];
|
|
609
|
+
}, Kt = () => z, Ut = function(t, e) {
|
|
610
|
+
let r = ht(t), u;
|
|
611
|
+
for (u = e.length - 1; u >= 0; u--)
|
|
612
|
+
r.attributes.push(e[u]), Q.debug("Added attribute ", e[u].attributeName);
|
|
613
|
+
}, Qt = function(t, e, r, u) {
|
|
608
614
|
let l = {
|
|
609
615
|
entityA: t,
|
|
610
|
-
roleA:
|
|
611
|
-
entityB:
|
|
616
|
+
roleA: e,
|
|
617
|
+
entityB: r,
|
|
612
618
|
relSpec: u
|
|
613
619
|
};
|
|
614
|
-
it.push(l),
|
|
615
|
-
},
|
|
616
|
-
|
|
617
|
-
},
|
|
618
|
-
Cardinality:
|
|
620
|
+
it.push(l), Q.debug("Added new relationship :", l);
|
|
621
|
+
}, Xt = () => it, Gt = function() {
|
|
622
|
+
z = {}, it = [], Ot();
|
|
623
|
+
}, Ht = {
|
|
624
|
+
Cardinality: zt,
|
|
619
625
|
Identification: Wt,
|
|
620
|
-
getConfig: () =>
|
|
621
|
-
addEntity:
|
|
622
|
-
addAttributes:
|
|
623
|
-
getEntities:
|
|
624
|
-
addRelationship:
|
|
625
|
-
getRelationships:
|
|
626
|
-
clear:
|
|
627
|
-
setAccTitle:
|
|
628
|
-
getAccTitle:
|
|
629
|
-
setAccDescription:
|
|
630
|
-
getAccDescription:
|
|
631
|
-
setDiagramTitle:
|
|
632
|
-
getDiagramTitle:
|
|
633
|
-
},
|
|
626
|
+
getConfig: () => Z().er,
|
|
627
|
+
addEntity: ht,
|
|
628
|
+
addAttributes: Ut,
|
|
629
|
+
getEntities: Kt,
|
|
630
|
+
addRelationship: Qt,
|
|
631
|
+
getRelationships: Xt,
|
|
632
|
+
clear: Gt,
|
|
633
|
+
setAccTitle: ft,
|
|
634
|
+
getAccTitle: mt,
|
|
635
|
+
setAccDescription: Et,
|
|
636
|
+
getAccDescription: gt,
|
|
637
|
+
setDiagramTitle: bt,
|
|
638
|
+
getDiagramTitle: kt
|
|
639
|
+
}, L = {
|
|
634
640
|
ONLY_ONE_START: "ONLY_ONE_START",
|
|
635
641
|
ONLY_ONE_END: "ONLY_ONE_END",
|
|
636
642
|
ZERO_OR_ONE_START: "ZERO_OR_ONE_START",
|
|
@@ -641,196 +647,196 @@ const Ft = {
|
|
|
641
647
|
ZERO_OR_MORE_END: "ZERO_OR_MORE_END",
|
|
642
648
|
MD_PARENT_END: "MD_PARENT_END",
|
|
643
649
|
MD_PARENT_START: "MD_PARENT_START"
|
|
644
|
-
},
|
|
645
|
-
let
|
|
646
|
-
t.append("defs").append("marker").attr("id",
|
|
647
|
-
},
|
|
648
|
-
ERMarkers:
|
|
649
|
-
insertMarkers:
|
|
650
|
-
},
|
|
651
|
-
let b = {},
|
|
652
|
-
const
|
|
653
|
-
const
|
|
654
|
-
for (const
|
|
655
|
-
b[
|
|
656
|
-
},
|
|
657
|
-
const u = b.entityPadding / 3, l = b.entityPadding / 3, p = b.fontSize * 0.85, h =
|
|
658
|
-
let d = !1, f = !1, m = 0, E = 0, g = 0, _ = 0,
|
|
659
|
-
|
|
650
|
+
}, jt = function(t, e) {
|
|
651
|
+
let r;
|
|
652
|
+
t.append("defs").append("marker").attr("id", L.MD_PARENT_START).attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", L.MD_PARENT_END).attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", L.ONLY_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18 M15,0 L15,18"), t.append("defs").append("marker").attr("id", L.ONLY_ONE_END).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,0 L3,18 M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", L.ZERO_OR_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", L.ZERO_OR_ONE_END).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,0 L21,18"), t.append("defs").append("marker").attr("id", L.ONE_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), t.append("defs").append("marker").attr("id", L.ONE_OR_MORE_END).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"), r = t.append("defs").append("marker").attr("id", L.ZERO_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"), r = t.append("defs").append("marker").attr("id", L.ZERO_OR_MORE_END).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
|
|
653
|
+
}, D = {
|
|
654
|
+
ERMarkers: L,
|
|
655
|
+
insertMarkers: jt
|
|
656
|
+
}, Vt = /[^\dA-Za-z](\W)*/g;
|
|
657
|
+
let b = {}, X = /* @__PURE__ */ new Map();
|
|
658
|
+
const qt = function(t) {
|
|
659
|
+
const e = Object.keys(t);
|
|
660
|
+
for (const r of e)
|
|
661
|
+
b[r] = t[r];
|
|
662
|
+
}, Jt = (t, e, r) => {
|
|
663
|
+
const u = b.entityPadding / 3, l = b.entityPadding / 3, p = b.fontSize * 0.85, h = e.node().getBBox(), c = [];
|
|
664
|
+
let d = !1, f = !1, m = 0, E = 0, g = 0, _ = 0, v = h.height + u * 2, w = 1;
|
|
665
|
+
r.forEach((N) => {
|
|
660
666
|
N.attributeKeyTypeList !== void 0 && N.attributeKeyTypeList.length > 0 && (d = !0), N.attributeComment !== void 0 && (f = !0);
|
|
661
|
-
}),
|
|
662
|
-
const
|
|
667
|
+
}), r.forEach((N) => {
|
|
668
|
+
const M = `${e.node().id}-attr-${w}`;
|
|
663
669
|
let k = 0;
|
|
664
|
-
const O = Tt(N.attributeType),
|
|
665
|
-
|
|
666
|
-
const o =
|
|
670
|
+
const O = Tt(N.attributeType), $ = t.append("text").classed("er entityLabel", !0).attr("id", `${M}-type`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Z().fontFamily).style("font-size", p + "px").text(O), A = t.append("text").classed("er entityLabel", !0).attr("id", `${M}-name`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Z().fontFamily).style("font-size", p + "px").text(N.attributeName), i = {};
|
|
671
|
+
i.tn = $, i.nn = A;
|
|
672
|
+
const o = $.node().getBBox(), n = A.node().getBBox();
|
|
667
673
|
if (m = Math.max(m, o.width), E = Math.max(E, n.width), k = Math.max(o.height, n.height), d) {
|
|
668
|
-
const y = N.attributeKeyTypeList !== void 0 ? N.attributeKeyTypeList.join(",") : "",
|
|
669
|
-
|
|
670
|
-
const x =
|
|
674
|
+
const y = N.attributeKeyTypeList !== void 0 ? N.attributeKeyTypeList.join(",") : "", a = t.append("text").classed("er entityLabel", !0).attr("id", `${M}-key`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Z().fontFamily).style("font-size", p + "px").text(y);
|
|
675
|
+
i.kn = a;
|
|
676
|
+
const x = a.node().getBBox();
|
|
671
677
|
g = Math.max(g, x.width), k = Math.max(k, x.height);
|
|
672
678
|
}
|
|
673
679
|
if (f) {
|
|
674
|
-
const y = t.append("text").classed("er entityLabel", !0).attr("id", `${
|
|
675
|
-
|
|
676
|
-
const
|
|
677
|
-
_ = Math.max(_,
|
|
680
|
+
const y = t.append("text").classed("er entityLabel", !0).attr("id", `${M}-comment`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", Z().fontFamily).style("font-size", p + "px").text(N.attributeComment || "");
|
|
681
|
+
i.cn = y;
|
|
682
|
+
const a = y.node().getBBox();
|
|
683
|
+
_ = Math.max(_, a.width), k = Math.max(k, a.height);
|
|
678
684
|
}
|
|
679
|
-
|
|
685
|
+
i.height = k, c.push(i), v += k + u * 2, w += 1;
|
|
680
686
|
});
|
|
681
|
-
let
|
|
682
|
-
d && (
|
|
683
|
-
const
|
|
687
|
+
let P = 4;
|
|
688
|
+
d && (P += 2), f && (P += 2);
|
|
689
|
+
const F = m + E + g + _, B = {
|
|
684
690
|
width: Math.max(
|
|
685
691
|
b.minEntityWidth,
|
|
686
692
|
Math.max(
|
|
687
693
|
h.width + b.entityPadding * 2,
|
|
688
|
-
|
|
694
|
+
F + l * P
|
|
689
695
|
)
|
|
690
696
|
),
|
|
691
|
-
height:
|
|
697
|
+
height: r.length > 0 ? v : Math.max(b.minEntityHeight, h.height + b.entityPadding * 2)
|
|
692
698
|
};
|
|
693
|
-
if (
|
|
699
|
+
if (r.length > 0) {
|
|
694
700
|
const N = Math.max(
|
|
695
701
|
0,
|
|
696
|
-
(
|
|
702
|
+
(B.width - F - l * P) / (P / 2)
|
|
697
703
|
);
|
|
698
|
-
|
|
704
|
+
e.attr(
|
|
699
705
|
"transform",
|
|
700
|
-
"translate(" +
|
|
706
|
+
"translate(" + B.width / 2 + "," + (u + h.height / 2) + ")"
|
|
701
707
|
);
|
|
702
|
-
let
|
|
708
|
+
let M = h.height + u * 2, k = "attributeBoxOdd";
|
|
703
709
|
c.forEach((O) => {
|
|
704
|
-
const
|
|
705
|
-
O.tn.attr("transform", "translate(" + l + "," +
|
|
706
|
-
const
|
|
710
|
+
const $ = M + u + O.height / 2;
|
|
711
|
+
O.tn.attr("transform", "translate(" + l + "," + $ + ")");
|
|
712
|
+
const A = t.insert("rect", "#" + O.tn.node().id).classed(`er ${k}`, !0).attr("x", 0).attr("y", M).attr("width", m + l * 2 + N).attr("height", O.height + u * 2), i = parseFloat(A.attr("x")) + parseFloat(A.attr("width"));
|
|
707
713
|
O.nn.attr(
|
|
708
714
|
"transform",
|
|
709
|
-
"translate(" + (
|
|
715
|
+
"translate(" + (i + l) + "," + $ + ")"
|
|
710
716
|
);
|
|
711
|
-
const o = t.insert("rect", "#" + O.nn.node().id).classed(`er ${k}`, !0).attr("x",
|
|
717
|
+
const o = t.insert("rect", "#" + O.nn.node().id).classed(`er ${k}`, !0).attr("x", i).attr("y", M).attr("width", E + l * 2 + N).attr("height", O.height + u * 2);
|
|
712
718
|
let n = parseFloat(o.attr("x")) + parseFloat(o.attr("width"));
|
|
713
719
|
if (d) {
|
|
714
720
|
O.kn.attr(
|
|
715
721
|
"transform",
|
|
716
|
-
"translate(" + (n + l) + "," +
|
|
722
|
+
"translate(" + (n + l) + "," + $ + ")"
|
|
717
723
|
);
|
|
718
|
-
const y = t.insert("rect", "#" + O.kn.node().id).classed(`er ${k}`, !0).attr("x", n).attr("y",
|
|
724
|
+
const y = t.insert("rect", "#" + O.kn.node().id).classed(`er ${k}`, !0).attr("x", n).attr("y", M).attr("width", g + l * 2 + N).attr("height", O.height + u * 2);
|
|
719
725
|
n = parseFloat(y.attr("x")) + parseFloat(y.attr("width"));
|
|
720
726
|
}
|
|
721
727
|
f && (O.cn.attr(
|
|
722
728
|
"transform",
|
|
723
|
-
"translate(" + (n + l) + "," +
|
|
724
|
-
), t.insert("rect", "#" + O.cn.node().id).classed(`er ${k}`, "true").attr("x", n).attr("y",
|
|
729
|
+
"translate(" + (n + l) + "," + $ + ")"
|
|
730
|
+
), t.insert("rect", "#" + O.cn.node().id).classed(`er ${k}`, "true").attr("x", n).attr("y", M).attr("width", _ + l * 2 + N).attr("height", O.height + u * 2)), M += O.height + u * 2, k = k === "attributeBoxOdd" ? "attributeBoxEven" : "attributeBoxOdd";
|
|
725
731
|
});
|
|
726
732
|
} else
|
|
727
|
-
|
|
728
|
-
return
|
|
729
|
-
},
|
|
730
|
-
const u = Object.keys(
|
|
733
|
+
B.height = Math.max(b.minEntityHeight, v), e.attr("transform", "translate(" + B.width / 2 + "," + B.height / 2 + ")");
|
|
734
|
+
return B;
|
|
735
|
+
}, te = function(t, e, r) {
|
|
736
|
+
const u = Object.keys(e);
|
|
731
737
|
let l;
|
|
732
738
|
return u.forEach(function(p) {
|
|
733
|
-
const h =
|
|
734
|
-
|
|
739
|
+
const h = se(p, "entity");
|
|
740
|
+
X.set(p, h);
|
|
735
741
|
const c = t.append("g").attr("id", h);
|
|
736
742
|
l = l === void 0 ? h : l;
|
|
737
|
-
const d = "text-" + h, f = c.append("text").classed("er entityLabel", !0).attr("id", d).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family",
|
|
743
|
+
const d = "text-" + h, f = c.append("text").classed("er entityLabel", !0).attr("id", d).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", Z().fontFamily).style("font-size", b.fontSize + "px").text(e[p].alias ?? p), { width: m, height: E } = Jt(
|
|
738
744
|
c,
|
|
739
745
|
f,
|
|
740
|
-
|
|
746
|
+
e[p].attributes
|
|
741
747
|
), g = c.insert("rect", "#" + d).classed("er entityBox", !0).attr("x", 0).attr("y", 0).attr("width", m).attr("height", E).node().getBBox();
|
|
742
|
-
|
|
748
|
+
r.setNode(h, {
|
|
743
749
|
width: g.width,
|
|
744
750
|
height: g.height,
|
|
745
751
|
shape: "rect",
|
|
746
752
|
id: h
|
|
747
753
|
});
|
|
748
754
|
}), l;
|
|
749
|
-
},
|
|
750
|
-
|
|
751
|
-
|
|
755
|
+
}, ee = function(t, e) {
|
|
756
|
+
e.nodes().forEach(function(r) {
|
|
757
|
+
r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr(
|
|
752
758
|
"transform",
|
|
753
|
-
"translate(" + (
|
|
759
|
+
"translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )"
|
|
754
760
|
);
|
|
755
761
|
});
|
|
756
|
-
},
|
|
762
|
+
}, dt = function(t) {
|
|
757
763
|
return (t.entityA + t.roleA + t.entityB).replace(/\s/g, "");
|
|
758
|
-
},
|
|
759
|
-
return t.forEach(function(
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
{ relationship:
|
|
764
|
-
|
|
764
|
+
}, re = function(t, e) {
|
|
765
|
+
return t.forEach(function(r) {
|
|
766
|
+
e.setEdge(
|
|
767
|
+
X.get(r.entityA),
|
|
768
|
+
X.get(r.entityB),
|
|
769
|
+
{ relationship: r },
|
|
770
|
+
dt(r)
|
|
765
771
|
);
|
|
766
772
|
}), t;
|
|
767
773
|
};
|
|
768
|
-
let
|
|
769
|
-
const
|
|
770
|
-
|
|
771
|
-
const p =
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
), h =
|
|
774
|
+
let ct = 0;
|
|
775
|
+
const ae = function(t, e, r, u, l) {
|
|
776
|
+
ct++;
|
|
777
|
+
const p = r.edge(
|
|
778
|
+
X.get(e.entityA),
|
|
779
|
+
X.get(e.entityB),
|
|
780
|
+
dt(e)
|
|
781
|
+
), h = It().x(function(_) {
|
|
776
782
|
return _.x;
|
|
777
783
|
}).y(function(_) {
|
|
778
784
|
return _.y;
|
|
779
785
|
}).curve(xt), c = t.insert("path", "#" + u).classed("er relationshipLine", !0).attr("d", h(p.points)).style("stroke", b.stroke).style("fill", "none");
|
|
780
|
-
|
|
786
|
+
e.relSpec.relType === l.db.Identification.NON_IDENTIFYING && c.attr("stroke-dasharray", "8,8");
|
|
781
787
|
let d = "";
|
|
782
|
-
switch (b.arrowMarkerAbsolute && (d = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, d = d.replace(/\(/g, "\\("), d = d.replace(/\)/g, "\\)")),
|
|
788
|
+
switch (b.arrowMarkerAbsolute && (d = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, d = d.replace(/\(/g, "\\("), d = d.replace(/\)/g, "\\)")), e.relSpec.cardA) {
|
|
783
789
|
case l.db.Cardinality.ZERO_OR_ONE:
|
|
784
|
-
c.attr("marker-end", "url(" + d + "#" +
|
|
790
|
+
c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.ZERO_OR_ONE_END + ")");
|
|
785
791
|
break;
|
|
786
792
|
case l.db.Cardinality.ZERO_OR_MORE:
|
|
787
|
-
c.attr("marker-end", "url(" + d + "#" +
|
|
793
|
+
c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.ZERO_OR_MORE_END + ")");
|
|
788
794
|
break;
|
|
789
795
|
case l.db.Cardinality.ONE_OR_MORE:
|
|
790
|
-
c.attr("marker-end", "url(" + d + "#" +
|
|
796
|
+
c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.ONE_OR_MORE_END + ")");
|
|
791
797
|
break;
|
|
792
798
|
case l.db.Cardinality.ONLY_ONE:
|
|
793
|
-
c.attr("marker-end", "url(" + d + "#" +
|
|
799
|
+
c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.ONLY_ONE_END + ")");
|
|
794
800
|
break;
|
|
795
801
|
case l.db.Cardinality.MD_PARENT:
|
|
796
|
-
c.attr("marker-end", "url(" + d + "#" +
|
|
802
|
+
c.attr("marker-end", "url(" + d + "#" + D.ERMarkers.MD_PARENT_END + ")");
|
|
797
803
|
break;
|
|
798
804
|
}
|
|
799
|
-
switch (
|
|
805
|
+
switch (e.relSpec.cardB) {
|
|
800
806
|
case l.db.Cardinality.ZERO_OR_ONE:
|
|
801
807
|
c.attr(
|
|
802
808
|
"marker-start",
|
|
803
|
-
"url(" + d + "#" +
|
|
809
|
+
"url(" + d + "#" + D.ERMarkers.ZERO_OR_ONE_START + ")"
|
|
804
810
|
);
|
|
805
811
|
break;
|
|
806
812
|
case l.db.Cardinality.ZERO_OR_MORE:
|
|
807
813
|
c.attr(
|
|
808
814
|
"marker-start",
|
|
809
|
-
"url(" + d + "#" +
|
|
815
|
+
"url(" + d + "#" + D.ERMarkers.ZERO_OR_MORE_START + ")"
|
|
810
816
|
);
|
|
811
817
|
break;
|
|
812
818
|
case l.db.Cardinality.ONE_OR_MORE:
|
|
813
819
|
c.attr(
|
|
814
820
|
"marker-start",
|
|
815
|
-
"url(" + d + "#" +
|
|
821
|
+
"url(" + d + "#" + D.ERMarkers.ONE_OR_MORE_START + ")"
|
|
816
822
|
);
|
|
817
823
|
break;
|
|
818
824
|
case l.db.Cardinality.ONLY_ONE:
|
|
819
|
-
c.attr("marker-start", "url(" + d + "#" +
|
|
825
|
+
c.attr("marker-start", "url(" + d + "#" + D.ERMarkers.ONLY_ONE_START + ")");
|
|
820
826
|
break;
|
|
821
827
|
case l.db.Cardinality.MD_PARENT:
|
|
822
|
-
c.attr("marker-start", "url(" + d + "#" +
|
|
828
|
+
c.attr("marker-start", "url(" + d + "#" + D.ERMarkers.MD_PARENT_START + ")");
|
|
823
829
|
break;
|
|
824
830
|
}
|
|
825
|
-
const f = c.node().getTotalLength(), m = c.node().getPointAtLength(f * 0.5), E = "rel" +
|
|
831
|
+
const f = c.node().getTotalLength(), m = c.node().getPointAtLength(f * 0.5), E = "rel" + ct, g = t.append("text").classed("er relationshipLabel", !0).attr("id", E).attr("x", m.x).attr("y", m.y).style("text-anchor", "middle").style("dominant-baseline", "middle").style("font-family", Z().fontFamily).style("font-size", b.fontSize + "px").text(e.roleA).node().getBBox();
|
|
826
832
|
t.insert("rect", "#" + E).classed("er relationshipLabelBox", !0).attr("x", m.x - g.width / 2).attr("y", m.y - g.height / 2).attr("width", g.width).attr("height", g.height);
|
|
827
|
-
}, ie = function(t,
|
|
828
|
-
b =
|
|
829
|
-
const l =
|
|
833
|
+
}, ie = function(t, e, r, u) {
|
|
834
|
+
b = Z().er, Q.info("Drawing ER diagram");
|
|
835
|
+
const l = Z().securityLevel;
|
|
830
836
|
let p;
|
|
831
|
-
l === "sandbox" && (p =
|
|
832
|
-
const h = (l === "sandbox" ?
|
|
833
|
-
|
|
837
|
+
l === "sandbox" && (p = et("#i" + e));
|
|
838
|
+
const h = (l === "sandbox" ? et(p.nodes()[0].contentDocument.body) : et("body")).select(`[id='${e}']`);
|
|
839
|
+
D.insertMarkers(h, b);
|
|
834
840
|
let c;
|
|
835
841
|
c = new At({
|
|
836
842
|
multigraph: !0,
|
|
@@ -846,29 +852,29 @@ const re = function(t, r, e, u, l) {
|
|
|
846
852
|
}).setDefaultEdgeLabel(function() {
|
|
847
853
|
return {};
|
|
848
854
|
});
|
|
849
|
-
const d =
|
|
850
|
-
Mt(c),
|
|
851
|
-
|
|
855
|
+
const d = te(h, u.db.getEntities(), c), f = re(u.db.getRelationships(), c);
|
|
856
|
+
Mt(c), ee(h, c), f.forEach(function(v) {
|
|
857
|
+
ae(h, v, c, d, u);
|
|
852
858
|
});
|
|
853
859
|
const m = b.diagramPadding;
|
|
854
860
|
Rt.insertTitle(h, "entityTitleText", b.titleTopMargin, u.db.getDiagramTitle());
|
|
855
861
|
const E = h.node().getBBox(), g = E.width + m * 2, _ = E.height + m * 2;
|
|
856
862
|
Nt(h, _, g, b.useMaxWidth), h.attr("viewBox", `${E.x - m} ${E.y - m} ${g} ${_}`);
|
|
857
|
-
},
|
|
858
|
-
function
|
|
859
|
-
const
|
|
860
|
-
return `${
|
|
863
|
+
}, ne = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c";
|
|
864
|
+
function se(t = "", e = "") {
|
|
865
|
+
const r = t.replace(Vt, "");
|
|
866
|
+
return `${lt(e)}${lt(r)}${Pt(
|
|
861
867
|
t,
|
|
862
|
-
|
|
868
|
+
ne
|
|
863
869
|
)}`;
|
|
864
870
|
}
|
|
865
|
-
function
|
|
871
|
+
function lt(t = "") {
|
|
866
872
|
return t.length > 0 ? `${t}-` : "";
|
|
867
873
|
}
|
|
868
|
-
const
|
|
869
|
-
setConf:
|
|
874
|
+
const oe = {
|
|
875
|
+
setConf: qt,
|
|
870
876
|
draw: ie
|
|
871
|
-
},
|
|
877
|
+
}, ce = (t) => `
|
|
872
878
|
.entityBox {
|
|
873
879
|
fill: ${t.mainBkg};
|
|
874
880
|
stroke: ${t.nodeBorder};
|
|
@@ -913,12 +919,12 @@ const se = {
|
|
|
913
919
|
stroke-width: 1;
|
|
914
920
|
}
|
|
915
921
|
|
|
916
|
-
`,
|
|
917
|
-
parser:
|
|
918
|
-
db:
|
|
919
|
-
renderer:
|
|
920
|
-
styles:
|
|
922
|
+
`, le = ce, pe = {
|
|
923
|
+
parser: Ft,
|
|
924
|
+
db: Ht,
|
|
925
|
+
renderer: oe,
|
|
926
|
+
styles: le
|
|
921
927
|
};
|
|
922
928
|
export {
|
|
923
|
-
|
|
929
|
+
pe as diagram
|
|
924
930
|
};
|