@kong-ui-public/documentation 0.7.3 → 0.7.4
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-BOwQG9_0-DleiJ5MN.js +86 -0
- package/dist/{blockDiagram-9f4a6865-B8YUosP9-Ck5a_RF8.js → blockDiagram-6b2b5046-Nxmf6ECX-CjmiHCoc.js} +106 -106
- package/dist/{c4Diagram-ae766693-9gx0flBR-RbGS48yQ.js → c4Diagram-b947cdbb-Cqv3kxuJ-BXRu2bPz.js} +132 -133
- package/dist/{channel-bVjn1tQE-Wer9OwST.js → channel-b8lMD3zZ-Ds1AntZz.js} +1 -1
- package/dist/{classDiagram-fb54d2a0-BmWHv5ZR-D2x9wzS9.js → classDiagram-35230388-cNSawuF--DF1WKJvq.js} +7 -8
- package/dist/{classDiagram-v2-a2b738ad-QP0MZXwY-DUaknQeO.js → classDiagram-v2-412acd34-DL9yPzEL-1zjaSugS.js} +8 -8
- package/dist/{clone-DD2Lcv4t-DhvFmnqA.js → clone-DA9j_md9-DOEHuNxk.js} +1 -1
- package/dist/{createText-ca0c5216-CUBuCbSf-HdStpTZQ.js → createText-423428c9-Bi8tqKOA-BAeSkls4.js} +1 -2
- package/dist/documentation.es.js +2 -2
- package/dist/documentation.umd.js +724 -995
- package/dist/{edges-066a5561-C4osKU6x-XnDLYo80.js → edges-d417c7a0-CyiospL7-DxH-v6Cl.js} +27 -28
- package/dist/{erDiagram-09d1c15f-SHmUd_X2-BD2Zprb5.js → erDiagram-0ea73325-BWWWgAmd-aPslvlbz.js} +38 -38
- package/dist/{flowDb-c1833063-hXQxSOZp-BgZsffD-.js → flowDb-d35e309a-BQRCRAKf-Cf6biv5M.js} +4 -4
- package/dist/{flowDiagram-b222e15a-D6yXsQur-DAh1PqK2.js → flowDiagram-d949d7c1-D_OK65PK-DS0CyGIC.js} +329 -337
- package/dist/{flowDiagram-v2-13329dc7-DSmTE-fH-DK4Aaksl.js → flowDiagram-v2-49332944-CYs4MQAb-C9m-G3JY.js} +5 -5
- package/dist/{flowchart-elk-definition-ae0efee6-DeHL5Vyb-C3uoamlG.js → flowchart-elk-definition-27cc417a-OqMBrUum-CbH3NCkB.js} +12750 -12752
- package/dist/{ganttDiagram-b62c793e-MpaZ3zUz-n9eAGU5Z.js → ganttDiagram-5c869e3b-Cu9aCqHh-De0u-Oas.js} +477 -488
- package/dist/gitGraphDiagram-b9d81de9-DVB2N99Y-C2np-enA.js +1262 -0
- package/dist/go-BEtjQGEI-BEtjQGEI.js +7 -0
- package/dist/{graph-Ch046BUH-D6losRXJ.js → graph-Ctghcdhb-CqAdUKOZ.js} +3 -3
- package/dist/{index-01f381cb-CT_aViff-Bm97PJyb.js → index-8fae9850-CdUaE101-uMPVRleJ.js} +11 -11
- package/dist/{index-ylfMj1BB.js → index-BRYBB2aM.js} +6919 -6980
- package/dist/{infoDiagram-94cd232f-lx0YonOB-CCDIpRPp.js → infoDiagram-db7b18fc-MHPWI9K2-Cy6tzigE.js} +16 -16
- package/dist/{journeyDiagram-6625b456-Bddw5A6D-kEeZiQ4H.js → journeyDiagram-d5636530-O6dkdrZq-BghpQv6u.js} +42 -42
- package/dist/{latex-CoJDAuLL-lJGSmtOO.js → latex-BOFs-Cxs-XUibdaju.js} +1 -1
- package/dist/{layout-CHOXC5k_-DUAMQEfX.js → layout-Bf4siL6f-B27qrAUf.js} +110 -110
- package/dist/{line-DBfBDzAx-Dps8NSDg.js → line-Bs4J8z8n-kq8RtDQA.js} +1 -1
- package/dist/{linear-Cx2Fv9Zx-CU3jTW7x.js → linear-DG5qhwMV-BSSd8kt2.js} +21 -21
- package/dist/{mindmap-definition-307c710a-gxai40Hx-B5cybnhA.js → mindmap-definition-377f8f1f-BJZNhhv8-Cinm-UDt.js} +6496 -6729
- package/dist/{pieDiagram-bb1d19e5-DBUCFC_C-D0U7-L3H.js → pieDiagram-b0208e96-12B2qtCQ-Bl-9vJIA.js} +68 -68
- package/dist/{quadrantDiagram-c759a472-C-01TGYx-DbcxgXB1.js → quadrantDiagram-0332be45-B77W50pM-bQiH7XpR.js} +2 -2
- package/dist/{requirementDiagram-87253d64-B-l2a_BK-Dx5Ue_Dh.js → requirementDiagram-bf7890df-BfPNYjQ5-CGF46ifn.js} +30 -30
- package/dist/{sankeyDiagram-707fac0f-Bbge0MNO-Daiiy5Xs.js → sankeyDiagram-0acdec17-D5aZuYoJ-DIWEEtuf.js} +22 -22
- package/dist/{sequenceDiagram-6894f283-icQqpauU-BnsQfpZ8.js → sequenceDiagram-c18d009d-DE6VyN7w-6UaAYk4p.js} +808 -841
- package/dist/{stateDiagram-5dee940d-D5DlkHeT-vkteU5K0.js → stateDiagram-43596fc0-CfGH1LmM-km5kjci0.js} +54 -54
- package/dist/{stateDiagram-v2-1992cada-B0wOd1mU-uGp4HBId.js → stateDiagram-v2-2ead4f9c-CvDoRhMn-CkUl-Lcu.js} +12 -12
- package/dist/style.css +1 -1
- package/dist/{styles-b83b31c9-Cl9kVMiN-l7CL0Dl1.js → styles-6860f46c-CJplL-uW-BFTTeCMF.js} +19 -19
- package/dist/{styles-483fbfea-D5_DzLlB-CFEFMKxg.js → styles-7383a064-N1ljH9gq-D7Iipjtf.js} +137 -140
- package/dist/{styles-0784dbeb-BNHFs860-B4vu0CwB.js → styles-b2c874b6-CKJLyUE4-2C22cylE.js} +24 -24
- package/dist/{svgDrawCommon-5e1cfd1d-DOmX8dP4-DFu8Hp1b.js → svgDrawCommon-0ee1b4e9-Dc25Bs_w-QhIkJ1Xp.js} +4 -4
- package/dist/{timeline-definition-bf702344-W3hPiAt--ObBtNo01.js → timeline-definition-d977decf-8C3XuDC--DAD2knZY.js} +2 -2
- package/dist/{vue-Djs4WzmL-BDWKKO52.js → vue-DoU_Nr9K-Cj2gXb1y.js} +2 -2
- package/dist/{vue-html-CdlOxrsR-C0P0LsFn.js → vue-html-iC7i5f9n-Cfh5ktA3.js} +1 -1
- package/dist/{xychartDiagram-f11f50a6-DL5V2cSz-1oy5zYHs.js → xychartDiagram-e50adddc-BRQAut2i-DBHY1QQ6.js} +22 -22
- package/package.json +5 -5
- package/dist/arc-Fs4E7_gE-CkmDW6jG.js +0 -86
- package/dist/gitGraphDiagram-942e62fe-DZ9sNSmE-DfnVvdJs.js +0 -1264
- package/dist/go-DYNyFS5n-DYNyFS5n.js +0 -7
- package/dist/katex-BQC_klMa-CaeA20wX.js +0 -11636
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as R, c as w, d as F,
|
|
2
|
-
import { U as nt } from "./createText-
|
|
3
|
-
import { P as ot } from "./line-
|
|
1
|
+
import { p as R, c as w, d as F, am as G, h as _, l as f, y as N, an as lt } from "./index-BRYBB2aM.js";
|
|
2
|
+
import { U as nt } from "./createText-423428c9-Bi8tqKOA-BAeSkls4.js";
|
|
3
|
+
import { P as ot } from "./line-Bs4J8z8n-kq8RtDQA.js";
|
|
4
4
|
const dt = (e, t, a, s) => {
|
|
5
5
|
t.forEach((l) => {
|
|
6
6
|
bt[l](e, a, s);
|
|
@@ -49,9 +49,8 @@ const Lt = (e, t, a, s) => {
|
|
|
49
49
|
l = l.replace(/\\n|\n/g, "<br />"), f.debug("vertexText" + l);
|
|
50
50
|
const r = {
|
|
51
51
|
isNode: s,
|
|
52
|
-
label:
|
|
52
|
+
label: G(l).replace(
|
|
53
53
|
/fa[blrs]?:fa-[\w-]+/g,
|
|
54
|
-
// cspell: disable-line
|
|
55
54
|
(n) => `<i class='${n.replace(":", " ")}'></i>`
|
|
56
55
|
),
|
|
57
56
|
labelStyle: t.replace("fill:", "color:")
|
|
@@ -77,13 +76,13 @@ const Lt = (e, t, a, s) => {
|
|
|
77
76
|
t.labelText === void 0 ? o = "" : o = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
|
|
78
77
|
const h = i.node();
|
|
79
78
|
let d;
|
|
80
|
-
t.labelType === "markdown" ? d = nt(i, F(
|
|
79
|
+
t.labelType === "markdown" ? d = nt(i, F(G(o), w()), {
|
|
81
80
|
useHtmlLabels: r,
|
|
82
81
|
width: t.width || w().flowchart.wrappingWidth,
|
|
83
82
|
classes: "markdown-node-label"
|
|
84
83
|
}) : d = h.appendChild(
|
|
85
84
|
P(
|
|
86
|
-
F(
|
|
85
|
+
F(G(o), w()),
|
|
87
86
|
t.labelStyle,
|
|
88
87
|
!1,
|
|
89
88
|
s
|
|
@@ -503,7 +502,7 @@ const Bt = (e, t) => {
|
|
|
503
502
|
), r = a.insert("rect", ":first-child"), n = t.positioned ? t.width : s.width + t.padding, i = t.positioned ? t.height : s.height + t.padding, o = t.positioned ? -n / 2 : -s.width / 2 - l, h = t.positioned ? -i / 2 : -s.height / 2 - l;
|
|
504
503
|
if (r.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", o).attr("y", h).attr("width", n).attr("height", i), t.props) {
|
|
505
504
|
const d = new Set(Object.keys(t.props));
|
|
506
|
-
t.props.borders && (
|
|
505
|
+
t.props.borders && (q(r, t.props.borders, n, i), d.delete("borders")), d.forEach((c) => {
|
|
507
506
|
f.warn(`Unknown node property ${c}`);
|
|
508
507
|
});
|
|
509
508
|
}
|
|
@@ -519,20 +518,20 @@ const Bt = (e, t) => {
|
|
|
519
518
|
), r = a.insert("rect", ":first-child"), n = t.positioned ? t.width : s.width + t.padding, i = t.positioned ? t.height : s.height + t.padding, o = t.positioned ? -n / 2 : -s.width / 2 - l, h = t.positioned ? -i / 2 : -s.height / 2 - l;
|
|
520
519
|
if (r.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", o).attr("y", h).attr("width", n).attr("height", i), t.props) {
|
|
521
520
|
const d = new Set(Object.keys(t.props));
|
|
522
|
-
t.props.borders && (
|
|
521
|
+
t.props.borders && (q(r, t.props.borders, n, i), d.delete("borders")), d.forEach((c) => {
|
|
523
522
|
f.warn(`Unknown node property ${c}`);
|
|
524
523
|
});
|
|
525
524
|
}
|
|
526
525
|
return m(t, r), t.intersect = function(d) {
|
|
527
526
|
return b.rect(t, d);
|
|
528
527
|
}, a;
|
|
529
|
-
},
|
|
528
|
+
}, Zt = async (e, t) => {
|
|
530
529
|
const { shapeSvg: a } = await M(e, t, "label", !0);
|
|
531
530
|
f.trace("Classes = ", t.class);
|
|
532
531
|
const s = a.insert("rect", ":first-child"), l = 0, r = 0;
|
|
533
532
|
if (s.attr("width", l).attr("height", r), a.attr("class", "label edgeLabel"), t.props) {
|
|
534
533
|
const n = new Set(Object.keys(t.props));
|
|
535
|
-
t.props.borders && (
|
|
534
|
+
t.props.borders && (q(s, t.props.borders, l, r), n.delete("borders")), n.forEach((i) => {
|
|
536
535
|
f.warn(`Unknown node property ${i}`);
|
|
537
536
|
});
|
|
538
537
|
}
|
|
@@ -540,7 +539,7 @@ const Bt = (e, t) => {
|
|
|
540
539
|
return b.rect(t, n);
|
|
541
540
|
}, a;
|
|
542
541
|
};
|
|
543
|
-
function
|
|
542
|
+
function q(e, t, a, s) {
|
|
544
543
|
const l = [], r = (i) => {
|
|
545
544
|
l.push(i, 0);
|
|
546
545
|
}, n = (i) => {
|
|
@@ -548,7 +547,7 @@ function G(e, t, a, s) {
|
|
|
548
547
|
};
|
|
549
548
|
t.includes("t") ? (f.debug("add top border"), r(a)) : n(a), t.includes("r") ? (f.debug("add right border"), r(s)) : n(s), t.includes("b") ? (f.debug("add bottom border"), r(a)) : n(a), t.includes("l") ? (f.debug("add left border"), r(s)) : n(s), e.attr("stroke-dasharray", l.join(" "));
|
|
550
549
|
}
|
|
551
|
-
const
|
|
550
|
+
const zt = (e, t) => {
|
|
552
551
|
let a;
|
|
553
552
|
t.classes ? a = "node " + t.classes : a = "node default";
|
|
554
553
|
const s = e.insert("g").attr("class", a).attr("id", t.domId || t.id), l = s.insert("rect", ":first-child"), r = s.insert("line"), n = s.insert("g").attr("class", "label"), i = t.labelText.flat ? t.labelText.flat() : t.labelText;
|
|
@@ -585,7 +584,7 @@ const Zt = (e, t) => {
|
|
|
585
584
|
), l.attr("class", "outer title-state").attr("x", -d.width / 2 - x).attr("y", -d.height / 2 - x).attr("width", d.width + t.padding).attr("height", d.height + t.padding), r.attr("class", "divider").attr("x1", -d.width / 2 - x).attr("x2", d.width / 2 + x).attr("y1", -d.height / 2 - x + p.height + x).attr("y2", -d.height / 2 - x + p.height + x), m(t, l), t.intersect = function(k) {
|
|
586
585
|
return b.rect(t, k);
|
|
587
586
|
}, s;
|
|
588
|
-
},
|
|
587
|
+
}, Gt = async (e, t) => {
|
|
589
588
|
const { shapeSvg: a, bbox: s } = await M(
|
|
590
589
|
e,
|
|
591
590
|
t,
|
|
@@ -595,7 +594,7 @@ const Zt = (e, t) => {
|
|
|
595
594
|
return m(t, n), t.intersect = function(i) {
|
|
596
595
|
return b.rect(t, i);
|
|
597
596
|
}, a;
|
|
598
|
-
},
|
|
597
|
+
}, qt = async (e, t) => {
|
|
599
598
|
const { shapeSvg: a, bbox: s, halfPadding: l } = await M(
|
|
600
599
|
e,
|
|
601
600
|
t,
|
|
@@ -694,8 +693,8 @@ const Zt = (e, t) => {
|
|
|
694
693
|
);
|
|
695
694
|
let $ = X.getBBox();
|
|
696
695
|
if (R(w().flowchart.htmlLabels)) {
|
|
697
|
-
const
|
|
698
|
-
$ =
|
|
696
|
+
const z = X.children[0], H = _(X);
|
|
697
|
+
$ = z.getBoundingClientRect(), H.attr("width", $.width), H.attr("height", $.height);
|
|
699
698
|
}
|
|
700
699
|
$.width > d && (d = $.width), c += $.height + s, Y.push(X);
|
|
701
700
|
}), c += l;
|
|
@@ -714,8 +713,8 @@ const Zt = (e, t) => {
|
|
|
714
713
|
);
|
|
715
714
|
let $ = X.getBBox();
|
|
716
715
|
if (R(w().flowchart.htmlLabels)) {
|
|
717
|
-
const
|
|
718
|
-
$ =
|
|
716
|
+
const z = X.children[0], H = _(X);
|
|
717
|
+
$ = z.getBoundingClientRect(), H.attr("width", $.width), H.attr("height", $.height);
|
|
719
718
|
}
|
|
720
719
|
$.width > d && (d = $.width), c += $.height + s, V.push(X);
|
|
721
720
|
}), c += l, x) {
|
|
@@ -751,12 +750,12 @@ const Zt = (e, t) => {
|
|
|
751
750
|
composite: At,
|
|
752
751
|
question: K,
|
|
753
752
|
rect: jt,
|
|
754
|
-
labelRect:
|
|
755
|
-
rectWithTitle:
|
|
753
|
+
labelRect: Zt,
|
|
754
|
+
rectWithTitle: zt,
|
|
756
755
|
choice: Rt,
|
|
757
|
-
circle:
|
|
756
|
+
circle: qt,
|
|
758
757
|
doublecircle: Vt,
|
|
759
|
-
stadium:
|
|
758
|
+
stadium: Gt,
|
|
760
759
|
hexagon: Wt,
|
|
761
760
|
block_arrow: Xt,
|
|
762
761
|
rect_left_inv_arrow: Yt,
|
|
@@ -875,9 +874,9 @@ const A = (e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, rr = (e) => ({
|
|
|
875
874
|
const i = t === "start" ? "Start" : "End";
|
|
876
875
|
e.attr(`marker-${t}`, `url(${s}#${l}_${r}-${n}${i})`);
|
|
877
876
|
};
|
|
878
|
-
let
|
|
877
|
+
let Z = {}, T = {};
|
|
879
878
|
const gr = () => {
|
|
880
|
-
|
|
879
|
+
Z = {}, T = {};
|
|
881
880
|
}, xr = (e, t) => {
|
|
882
881
|
const a = R(w().flowchart.htmlLabels), s = t.labelType === "markdown" ? nt(e, t.label, {
|
|
883
882
|
style: t.labelStyle,
|
|
@@ -890,7 +889,7 @@ const gr = () => {
|
|
|
890
889
|
const o = s.children[0], h = _(s);
|
|
891
890
|
n = o.getBoundingClientRect(), h.attr("width", n.width), h.attr("height", n.height);
|
|
892
891
|
}
|
|
893
|
-
r.attr("transform", "translate(" + -n.width / 2 + ", " + -n.height / 2 + ")"),
|
|
892
|
+
r.attr("transform", "translate(" + -n.width / 2 + ", " + -n.height / 2 + ")"), Z[t.id] = l, t.width = n.width, t.height = n.height;
|
|
894
893
|
let i;
|
|
895
894
|
if (t.startLabelLeft) {
|
|
896
895
|
const o = P(t.startLabelLeft, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), d = h.insert("g").attr("class", "inner");
|
|
@@ -922,11 +921,11 @@ function j(e, t) {
|
|
|
922
921
|
w().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
923
922
|
}
|
|
924
923
|
const fr = (e, t) => {
|
|
925
|
-
f.debug("Moving label abc88 ", e.id, e.label,
|
|
924
|
+
f.debug("Moving label abc88 ", e.id, e.label, Z[e.id], t);
|
|
926
925
|
let a = t.updatedPath ? t.updatedPath : t.originalPath;
|
|
927
926
|
const s = w(), { subGraphTitleTotalMargin: l } = tr(s);
|
|
928
927
|
if (e.label) {
|
|
929
|
-
const r =
|
|
928
|
+
const r = Z[e.id];
|
|
930
929
|
let n = e.x, i = e.y;
|
|
931
930
|
if (a) {
|
|
932
931
|
const o = N.calcLabelPosition(a);
|
package/dist/{erDiagram-09d1c15f-SHmUd_X2-BD2Zprb5.js → erDiagram-0ea73325-BWWWgAmd-aPslvlbz.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as Y, s as _t, g as ft, b as mt, a as Et,
|
|
2
|
-
import { Y as At } from "./graph-
|
|
3
|
-
import { O as Mt } from "./layout-
|
|
4
|
-
import { P as Dt } from "./line-
|
|
1
|
+
import { c as Y, s as _t, g as ft, b as mt, a as Et, v as gt, x as bt, aq as kt, l as K, z as Ot, h as tt, y as Rt, i as Nt, an as xt, ar as Tt } from "./index-BRYBB2aM.js";
|
|
2
|
+
import { Y as At } from "./graph-Ctghcdhb-CqAdUKOZ.js";
|
|
3
|
+
import { O as Mt } from "./layout-Bf4siL6f-B27qrAUf.js";
|
|
4
|
+
import { P as Dt } from "./line-Bs4J8z8n-kq8RtDQA.js";
|
|
5
5
|
const It = /^(?:[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
6
|
function vt(t) {
|
|
7
7
|
return typeof t == "string" && It.test(t);
|
|
@@ -226,27 +226,27 @@ var rt = function() {
|
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
228
|
parse: function(T) {
|
|
229
|
-
var a = this, o = [0], n = [], y = [null], i = [], x = this.table, s = "",
|
|
229
|
+
var a = this, o = [0], n = [], y = [null], i = [], x = this.table, s = "", X = 0, at = 0, dt = 2, nt = 1, ut = i.slice.call(arguments, 1), R = Object.create(this.lexer), W = { yy: {} };
|
|
230
230
|
for (var j in this.yy)
|
|
231
|
-
Object.prototype.hasOwnProperty.call(this.yy, j) && (
|
|
232
|
-
R.setInput(T,
|
|
231
|
+
Object.prototype.hasOwnProperty.call(this.yy, j) && (W.yy[j] = this.yy[j]);
|
|
232
|
+
R.setInput(T, W.yy), W.yy.lexer = R, W.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
|
|
233
233
|
var J = R.yylloc;
|
|
234
234
|
i.push(J);
|
|
235
235
|
var yt = R.options && R.options.ranges;
|
|
236
|
-
typeof
|
|
236
|
+
typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
237
237
|
function pt() {
|
|
238
238
|
var P;
|
|
239
239
|
return P = n.pop() || R.lex() || nt, typeof P != "number" && (P instanceof Array && (n = P, P = n.pop()), P = a.symbols_[P] || P), P;
|
|
240
240
|
}
|
|
241
|
-
for (var M,
|
|
242
|
-
if (
|
|
241
|
+
for (var M, U, I, V, z = {}, G, B, st, Q; ; ) {
|
|
242
|
+
if (U = o[o.length - 1], this.defaultActions[U] ? I = this.defaultActions[U] : ((M === null || typeof M > "u") && (M = pt()), I = x[U] && x[U][M]), typeof I > "u" || !I.length || !I[0]) {
|
|
243
243
|
var q = "";
|
|
244
244
|
Q = [];
|
|
245
|
-
for (
|
|
246
|
-
this.terminals_[
|
|
247
|
-
R.showPosition ? q = "Parse error on line " + (
|
|
245
|
+
for (G in x[U])
|
|
246
|
+
this.terminals_[G] && G > dt && Q.push("'" + this.terminals_[G] + "'");
|
|
247
|
+
R.showPosition ? q = "Parse error on line " + (X + 1) + `:
|
|
248
248
|
` + R.showPosition() + `
|
|
249
|
-
Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "Parse error on line " + (
|
|
249
|
+
Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "Parse error on line " + (X + 1) + ": Unexpected " + (M == nt ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(q, {
|
|
250
250
|
text: R.match,
|
|
251
251
|
token: this.terminals_[M] || M,
|
|
252
252
|
line: R.yylineno,
|
|
@@ -255,31 +255,31 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : q = "
|
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
if (I[0] instanceof Array && I.length > 1)
|
|
258
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
258
|
+
throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + M);
|
|
259
259
|
switch (I[0]) {
|
|
260
260
|
case 1:
|
|
261
|
-
o.push(M), y.push(R.yytext), i.push(R.yylloc), o.push(I[1]), M = null, at = R.yyleng, s = R.yytext,
|
|
261
|
+
o.push(M), y.push(R.yytext), i.push(R.yylloc), o.push(I[1]), M = null, at = R.yyleng, s = R.yytext, X = R.yylineno, J = R.yylloc;
|
|
262
262
|
break;
|
|
263
263
|
case 2:
|
|
264
|
-
if (B = this.productions_[I[1]][1],
|
|
264
|
+
if (B = this.productions_[I[1]][1], z.$ = y[y.length - B], z._$ = {
|
|
265
265
|
first_line: i[i.length - (B || 1)].first_line,
|
|
266
266
|
last_line: i[i.length - 1].last_line,
|
|
267
267
|
first_column: i[i.length - (B || 1)].first_column,
|
|
268
268
|
last_column: i[i.length - 1].last_column
|
|
269
|
-
}, yt && (
|
|
269
|
+
}, yt && (z._$.range = [
|
|
270
270
|
i[i.length - (B || 1)].range[0],
|
|
271
271
|
i[i.length - 1].range[1]
|
|
272
|
-
]), V = this.performAction.apply(
|
|
272
|
+
]), V = this.performAction.apply(z, [
|
|
273
273
|
s,
|
|
274
274
|
at,
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
X,
|
|
276
|
+
W.yy,
|
|
277
277
|
I[1],
|
|
278
278
|
y,
|
|
279
279
|
i
|
|
280
280
|
].concat(ut)), typeof V < "u")
|
|
281
281
|
return V;
|
|
282
|
-
B && (o = o.slice(0, -1 * B * 2), y = y.slice(0, -1 * B), i = i.slice(0, -1 * B)), o.push(this.productions_[I[1]][0]), y.push(
|
|
282
|
+
B && (o = o.slice(0, -1 * B * 2), y = y.slice(0, -1 * B), i = i.slice(0, -1 * B)), o.push(this.productions_[I[1]][0]), y.push(z.$), i.push(z._$), st = x[o[o.length - 2]][o[o.length - 1]], o.push(st);
|
|
283
283
|
break;
|
|
284
284
|
case 3:
|
|
285
285
|
return !0;
|
|
@@ -595,12 +595,12 @@ const Ft = {
|
|
|
595
595
|
ONE_OR_MORE: "ONE_OR_MORE",
|
|
596
596
|
ONLY_ONE: "ONLY_ONE",
|
|
597
597
|
MD_PARENT: "MD_PARENT"
|
|
598
|
-
},
|
|
598
|
+
}, Wt = {
|
|
599
599
|
NON_IDENTIFYING: "NON_IDENTIFYING",
|
|
600
600
|
IDENTIFYING: "IDENTIFYING"
|
|
601
601
|
}, lt = function(t, r = void 0) {
|
|
602
602
|
return F[t] === void 0 ? (F[t] = { attributes: [], alias: r }, K.info("Added new entity :", t)) : F[t] && !F[t].alias && r && (F[t].alias = r, K.info(`Add alias '${r}' to entity '${t}'`)), F[t];
|
|
603
|
-
},
|
|
603
|
+
}, Ut = () => F, zt = function(t, r) {
|
|
604
604
|
let e = lt(t), u;
|
|
605
605
|
for (u = r.length - 1; u >= 0; u--)
|
|
606
606
|
e.attributes.push(r[u]), K.debug("Added attribute ", r[u].attributeName);
|
|
@@ -612,18 +612,18 @@ const Ft = {
|
|
|
612
612
|
relSpec: u
|
|
613
613
|
};
|
|
614
614
|
it.push(l), K.debug("Added new relationship :", l);
|
|
615
|
-
},
|
|
615
|
+
}, Ht = () => it, Xt = function() {
|
|
616
616
|
F = {}, it = [], Ot();
|
|
617
|
-
},
|
|
617
|
+
}, Gt = {
|
|
618
618
|
Cardinality: Ft,
|
|
619
|
-
Identification:
|
|
619
|
+
Identification: Wt,
|
|
620
620
|
getConfig: () => Y().er,
|
|
621
621
|
addEntity: lt,
|
|
622
|
-
addAttributes:
|
|
623
|
-
getEntities:
|
|
622
|
+
addAttributes: zt,
|
|
623
|
+
getEntities: Ut,
|
|
624
624
|
addRelationship: Kt,
|
|
625
|
-
getRelationships:
|
|
626
|
-
clear:
|
|
625
|
+
getRelationships: Ht,
|
|
626
|
+
clear: Xt,
|
|
627
627
|
setAccTitle: _t,
|
|
628
628
|
getAccTitle: ft,
|
|
629
629
|
setAccDescription: mt,
|
|
@@ -648,7 +648,7 @@ const Ft = {
|
|
|
648
648
|
ERMarkers: $,
|
|
649
649
|
insertMarkers: Qt
|
|
650
650
|
}, jt = /[^\dA-Za-z](\W)*/g;
|
|
651
|
-
let b = {},
|
|
651
|
+
let b = {}, H = /* @__PURE__ */ new Map();
|
|
652
652
|
const Jt = function(t) {
|
|
653
653
|
const r = Object.keys(t);
|
|
654
654
|
for (const e of r)
|
|
@@ -731,7 +731,7 @@ const Jt = function(t) {
|
|
|
731
731
|
let l;
|
|
732
732
|
return u.forEach(function(p) {
|
|
733
733
|
const h = ne(p, "entity");
|
|
734
|
-
|
|
734
|
+
H.set(p, h);
|
|
735
735
|
const c = t.append("g").attr("id", h);
|
|
736
736
|
l = l === void 0 ? h : l;
|
|
737
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", Y().fontFamily).style("font-size", b.fontSize + "px").text(r[p].alias ?? p), { width: m, height: E } = Vt(
|
|
@@ -758,8 +758,8 @@ const Jt = function(t) {
|
|
|
758
758
|
}, ee = function(t, r) {
|
|
759
759
|
return t.forEach(function(e) {
|
|
760
760
|
r.setEdge(
|
|
761
|
-
|
|
762
|
-
|
|
761
|
+
H.get(e.entityA),
|
|
762
|
+
H.get(e.entityB),
|
|
763
763
|
{ relationship: e },
|
|
764
764
|
ht(e)
|
|
765
765
|
);
|
|
@@ -769,8 +769,8 @@ let ot = 0;
|
|
|
769
769
|
const re = function(t, r, e, u, l) {
|
|
770
770
|
ot++;
|
|
771
771
|
const p = e.edge(
|
|
772
|
-
|
|
773
|
-
|
|
772
|
+
H.get(r.entityA),
|
|
773
|
+
H.get(r.entityB),
|
|
774
774
|
ht(r)
|
|
775
775
|
), h = Dt().x(function(_) {
|
|
776
776
|
return _.x;
|
|
@@ -915,7 +915,7 @@ const se = {
|
|
|
915
915
|
|
|
916
916
|
`, ce = oe, ye = {
|
|
917
917
|
parser: Ct,
|
|
918
|
-
db:
|
|
918
|
+
db: Gt,
|
|
919
919
|
renderer: se,
|
|
920
920
|
styles: ce
|
|
921
921
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ee,
|
|
1
|
+
import { c as ee, u as Bt, s as mt, g as xt, a as vt, b as Lt, v as $t, x as It, l as Z1, y as de, z as Rt, j as Nt, h as R1 } from "./index-BRYBB2aM.js";
|
|
2
2
|
var pe = function() {
|
|
3
3
|
var t = function(j, a, o, n) {
|
|
4
4
|
for (o = o || {}, n = j.length; n--; o[j[n]] = a)
|
|
@@ -8,7 +8,7 @@ var pe = function() {
|
|
|
8
8
|
trace: function() {
|
|
9
9
|
},
|
|
10
10
|
yy: {},
|
|
11
|
-
symbols_: { error: 2, start: 3, graphConfig: 4, document: 5, line: 6, statement: 7, SEMI: 8, NEWLINE: 9, SPACE: 10, EOF: 11, GRAPH: 12, NODIR: 13, DIR: 14,
|
|
11
|
+
symbols_: { error: 2, start: 3, graphConfig: 4, document: 5, line: 6, statement: 7, SEMI: 8, NEWLINE: 9, SPACE: 10, EOF: 11, GRAPH: 12, NODIR: 13, DIR: 14, FirstStmtSeperator: 15, ending: 16, endToken: 17, spaceList: 18, spaceListNewline: 19, verticeStatement: 20, separator: 21, styleStatement: 22, linkStyleStatement: 23, classDefStatement: 24, classStatement: 25, clickStatement: 26, subgraph: 27, textNoTags: 28, SQS: 29, text: 30, SQE: 31, end: 32, direction: 33, acc_title: 34, acc_title_value: 35, acc_descr: 36, acc_descr_value: 37, acc_descr_multiline_value: 38, link: 39, node: 40, styledVertex: 41, AMP: 42, vertex: 43, STYLE_SEPARATOR: 44, idString: 45, DOUBLECIRCLESTART: 46, DOUBLECIRCLEEND: 47, PS: 48, PE: 49, "(-": 50, "-)": 51, STADIUMSTART: 52, STADIUMEND: 53, SUBROUTINESTART: 54, SUBROUTINEEND: 55, VERTEX_WITH_PROPS_START: 56, "NODE_STRING[field]": 57, COLON: 58, "NODE_STRING[value]": 59, PIPE: 60, CYLINDERSTART: 61, CYLINDEREND: 62, DIAMOND_START: 63, DIAMOND_STOP: 64, TAGEND: 65, TRAPSTART: 66, TRAPEND: 67, INVTRAPSTART: 68, INVTRAPEND: 69, linkStatement: 70, arrowText: 71, TESTSTR: 72, START_LINK: 73, edgeText: 74, LINK: 75, edgeTextToken: 76, STR: 77, MD_STR: 78, textToken: 79, keywords: 80, STYLE: 81, LINKSTYLE: 82, CLASSDEF: 83, CLASS: 84, CLICK: 85, DOWN: 86, UP: 87, textNoTagsToken: 88, stylesOpt: 89, "idString[vertex]": 90, "idString[class]": 91, CALLBACKNAME: 92, CALLBACKARGS: 93, HREF: 94, LINK_TARGET: 95, "STR[link]": 96, "STR[tooltip]": 97, alphaNum: 98, DEFAULT: 99, numList: 100, INTERPOLATE: 101, NUM: 102, COMMA: 103, style: 104, styleComponent: 105, NODE_STRING: 106, UNIT: 107, BRKT: 108, PCT: 109, idStringToken: 110, MINUS: 111, MULT: 112, UNICODE_TEXT: 113, TEXT: 114, TAGSTART: 115, EDGE_TEXT: 116, alphaNumToken: 117, direction_tb: 118, direction_bt: 119, direction_rl: 120, direction_lr: 121, $accept: 0, $end: 1 },
|
|
12
12
|
terminals_: { 2: "error", 8: "SEMI", 9: "NEWLINE", 10: "SPACE", 11: "EOF", 12: "GRAPH", 13: "NODIR", 14: "DIR", 27: "subgraph", 29: "SQS", 31: "SQE", 32: "end", 34: "acc_title", 35: "acc_title_value", 36: "acc_descr", 37: "acc_descr_value", 38: "acc_descr_multiline_value", 42: "AMP", 44: "STYLE_SEPARATOR", 46: "DOUBLECIRCLESTART", 47: "DOUBLECIRCLEEND", 48: "PS", 49: "PE", 50: "(-", 51: "-)", 52: "STADIUMSTART", 53: "STADIUMEND", 54: "SUBROUTINESTART", 55: "SUBROUTINEEND", 56: "VERTEX_WITH_PROPS_START", 57: "NODE_STRING[field]", 58: "COLON", 59: "NODE_STRING[value]", 60: "PIPE", 61: "CYLINDERSTART", 62: "CYLINDEREND", 63: "DIAMOND_START", 64: "DIAMOND_STOP", 65: "TAGEND", 66: "TRAPSTART", 67: "TRAPEND", 68: "INVTRAPSTART", 69: "INVTRAPEND", 72: "TESTSTR", 73: "START_LINK", 75: "LINK", 77: "STR", 78: "MD_STR", 81: "STYLE", 82: "LINKSTYLE", 83: "CLASSDEF", 84: "CLASS", 85: "CLICK", 86: "DOWN", 87: "UP", 90: "idString[vertex]", 91: "idString[class]", 92: "CALLBACKNAME", 93: "CALLBACKARGS", 94: "HREF", 95: "LINK_TARGET", 96: "STR[link]", 97: "STR[tooltip]", 99: "DEFAULT", 101: "INTERPOLATE", 102: "NUM", 103: "COMMA", 106: "NODE_STRING", 107: "UNIT", 108: "BRKT", 109: "PCT", 111: "MINUS", 112: "MULT", 113: "UNICODE_TEXT", 114: "TEXT", 115: "TAGSTART", 116: "EDGE_TEXT", 118: "direction_tb", 119: "direction_bt", 120: "direction_rl", 121: "direction_lr" },
|
|
13
13
|
productions_: [0, [3, 2], [5, 0], [5, 2], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [4, 2], [4, 2], [4, 2], [4, 3], [16, 2], [16, 1], [17, 1], [17, 1], [17, 1], [15, 1], [15, 1], [15, 2], [19, 2], [19, 2], [19, 1], [19, 1], [18, 2], [18, 1], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 9], [7, 6], [7, 4], [7, 1], [7, 2], [7, 2], [7, 1], [21, 1], [21, 1], [21, 1], [20, 3], [20, 4], [20, 2], [20, 1], [40, 1], [40, 5], [41, 1], [41, 3], [43, 4], [43, 4], [43, 6], [43, 4], [43, 4], [43, 4], [43, 8], [43, 4], [43, 4], [43, 4], [43, 6], [43, 4], [43, 4], [43, 4], [43, 4], [43, 4], [43, 1], [39, 2], [39, 3], [39, 3], [39, 1], [39, 3], [74, 1], [74, 2], [74, 1], [74, 1], [70, 1], [71, 3], [30, 1], [30, 2], [30, 1], [30, 1], [80, 1], [80, 1], [80, 1], [80, 1], [80, 1], [80, 1], [80, 1], [80, 1], [80, 1], [80, 1], [80, 1], [28, 1], [28, 2], [28, 1], [28, 1], [24, 5], [25, 5], [26, 2], [26, 4], [26, 3], [26, 5], [26, 3], [26, 5], [26, 5], [26, 7], [26, 2], [26, 4], [26, 2], [26, 4], [26, 4], [26, 6], [22, 5], [23, 5], [23, 5], [23, 9], [23, 9], [23, 7], [23, 7], [100, 1], [100, 3], [89, 1], [89, 3], [104, 1], [104, 2], [105, 1], [105, 1], [105, 1], [105, 1], [105, 1], [105, 1], [105, 1], [105, 1], [110, 1], [110, 1], [110, 1], [110, 1], [110, 1], [110, 1], [110, 1], [110, 1], [110, 1], [110, 1], [110, 1], [79, 1], [79, 1], [79, 1], [79, 1], [88, 1], [88, 1], [88, 1], [88, 1], [88, 1], [88, 1], [88, 1], [88, 1], [88, 1], [88, 1], [88, 1], [76, 1], [76, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [45, 1], [45, 2], [98, 1], [98, 2], [33, 1], [33, 1], [33, 1], [33, 1]],
|
|
14
14
|
performAction: function(j, a, o, n, g, e, U) {
|
|
@@ -812,8 +812,8 @@ const ue = (t) => Nt.sanitizeText(t, L1), O1 = function(t) {
|
|
|
812
812
|
throw new Error(
|
|
813
813
|
`Edge limit exceeded. ${z.length} edges found, but the limit is ${L1.maxEdges}.
|
|
814
814
|
|
|
815
|
-
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
816
|
-
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
815
|
+
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
816
|
+
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
817
817
|
You have to call mermaid.initialize.`
|
|
818
818
|
);
|
|
819
819
|
}, We = function(t, r, i) {
|