@kong-ui-public/documentation 0.4.12 → 0.4.14
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-DI9wV-Mn-_GgJI37p.js +86 -0
- package/dist/{astro-D4FIwVxr-CovDYZfT.js → astro-U6b0KI4d-Bfq8RcMV.js} +1 -1
- package/dist/{blockDiagram-6b2b5046-BabM1eIl-C85stHtj.js → blockDiagram-91b80b7a-D3OZBNEF-BXra-uP1.js} +24 -24
- package/dist/{c4Diagram-b947cdbb-BBGJ9ivn-Dwz3JGTI.js → c4Diagram-b2a90758-wyqGQ69Q-3S5U0W2q.js} +133 -132
- package/dist/channel-Brhzsu_o-C42tcZPD.js +5 -0
- package/dist/{classDiagram-35230388-CRYNduH8-BOSSyxwU.js → classDiagram-30eddba6-0OAjss5X-DDloSHap.js} +8 -7
- package/dist/{classDiagram-v2-412acd34-5HbyJrnL-ST64CPx5.js → classDiagram-v2-f2df5561-Dn89kA5N-W6p27IrP.js} +7 -7
- package/dist/{clone-BoeTe_OS-CjGEkx_F.js → clone-Bsggwgls-BzwAVRKa.js} +1 -1
- package/dist/{createText-423428c9-Q0HfccbL-DBcIXsnc.js → createText-6b48ae7d-c5hzPIcj-DS42dDY6.js} +2 -1
- package/dist/documentation.es.js +5 -5
- package/dist/documentation.umd.js +991 -720
- package/dist/{edges-d417c7a0-DEJA2PwU-c5o-9uno.js → edges-d32062c0-CGbRbizB-BNCq9bff.js} +28 -27
- package/dist/{erDiagram-0ea73325-C3DQ6B1e-DjAGdzcu.js → erDiagram-47591fe2-CyCEEu9x-BoCVITkJ.js} +38 -38
- package/dist/{flowDb-d35e309a-RvFFqjek-pyC_lUzm.js → flowDb-4b19a42f-wIq43fe7-D6eWU8wc.js} +45 -45
- package/dist/{flowDiagram-d949d7c1-Boa20b_n-BKdBxRnq.js → flowDiagram-5540d9b9-D8Ak_JQc-66jM_qDv.js} +317 -309
- package/dist/{flowDiagram-v2-49332944-BJtijxhz-BfL0l3kS.js → flowDiagram-v2-3b53844e-DxkVnD_T-DVByZPqp.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-BBD3LS9k-DhfRKjaQ.js → flowchart-elk-definition-5fe447d6-CUIdb-2U-rw1sP1Nb.js} +10626 -10624
- package/dist/{ganttDiagram-5c869e3b-CRDFjzTp-C3-yl36r.js → ganttDiagram-9a3bba1f-U28Z8glu-okJ1HHdc.js} +488 -477
- package/dist/{git-rebase-sR-yVH_J-D5M2oE9O.js → git-rebase-B7sc3yJp-BPxHM_r2.js} +1 -1
- package/dist/gitGraphDiagram-96e6b4ee-DTO3lH8N-1qRg2G2i.js +1264 -0
- package/dist/{graph-BIq67vWs-B7ta0ZdY.js → graph-Bc1n6qSP-D5FVfre_.js} +64 -64
- package/dist/{haml-BT5dFrjs-CmYUmNQ_.js → haml-DsuMo-J7-DWhF2QrW.js} +1 -1
- package/dist/{http-DSIFYUfg-BZm1KGvb.js → http-ClrjZLFz-gNFfL9hE.js} +1 -1
- package/dist/{index-_NcqxG2P.js → index-3vhKKQrV.js} +2771 -2689
- package/dist/{index-8fae9850-CaUboB89-KhmQqIkN.js → index-fc10efb0-B2L-sBu4-xOwI5vt1.js} +11 -11
- package/dist/{infoDiagram-db7b18fc-DKsewKnu-nKlnfk12.js → infoDiagram-bcd20f53-DTO3TTbR-DxLIdeSc.js} +12 -12
- package/dist/{journeyDiagram-d5636530-ClddNDmR-DXRHq-4M.js → journeyDiagram-4fe6b3dc-qVhc1UAl-_d--6Ls9.js} +42 -42
- package/dist/katex-BQC_klMa-CaeA20wX.js +11636 -0
- package/dist/{latex-QX-FNvxY-DfqkUAVR.js → latex-9g43iAzl-B3VseW3K.js} +1 -1
- package/dist/{layout-Cz0dAJah-BTgthZsZ.js → layout-DcWyZN_J-vui7Gviz.js} +132 -132
- package/dist/{line-BCVITS7s-Ckay3mGw.js → line-BeML9Stu-Dy9lL6FR.js} +1 -1
- package/dist/{linear-CLHAbj67-CRi7BpMp.js → linear-S-ccJMdE-6xfCU5AQ.js} +35 -35
- package/dist/{mindmap-definition-377f8f1f-BwEJ-DVg-DWk6Jo2n.js → mindmap-definition-f354de21-DH1Q4t1U-DzFbmWqo.js} +6647 -6414
- package/dist/{pieDiagram-b0208e96-Cyz2Kcfu-BKQLF9sW.js → pieDiagram-79897490-BNP6ubu_-6WJB20-7.js} +68 -68
- package/dist/{quadrantDiagram-0332be45-CDMkEQj0-B8KMwkcO.js → quadrantDiagram-62f64e94-BwUp7akV-DvMoXd98.js} +2 -2
- package/dist/{requirementDiagram-bf7890df-Jk3SQ-Q1-ub7Z0GPl.js → requirementDiagram-05bf5f74-N_qzJROT-CrkeOa_P.js} +30 -30
- package/dist/{rst-Bm1i8IkK-C9EaDq6g.js → rst-iTJmEY_6-AgWIzPqn.js} +2 -2
- package/dist/{ruby-CZZKXaz8-BxaDEkRP.js → ruby-3Bt2I2On--AixRnjJ.js} +1 -1
- package/dist/{sankeyDiagram-0acdec17-BJuIUJd_-BnkIVf8S.js → sankeyDiagram-97764748-bwaduY7g-VneUYt0y.js} +22 -22
- package/dist/{sequenceDiagram-c18d009d-B4IxGCEM-B3uFgxU_.js → sequenceDiagram-acc0e65c-Bk-fBLta-CsMH0Cqo.js} +917 -884
- package/dist/shellscript-DQ1J75ow-DQ1J75ow.js +7 -0
- package/dist/{shellsession-BIPXtZci-D6avbCwN.js → shellsession-btSM7PAE-lMmUmCMx.js} +1 -1
- package/dist/{stateDiagram-43596fc0-0xEMkbt_-BALY6uIB.js → stateDiagram-0ff1cf1a-Bi3BTd4c-qFbxEDNM.js} +5 -5
- package/dist/{stateDiagram-v2-2ead4f9c-DS4afpcC-B7o3rR3l.js → stateDiagram-v2-9a9d610d-IejNE6-r-bIvS4iK_.js} +12 -12
- package/dist/{styles-7383a064-C7WyH3qz-C_v2lpXJ.js → styles-3ed67cfa-BaFO0Ztt-yz8KrlaH.js} +140 -137
- package/dist/{styles-6860f46c-ZdhsT5S9-obFqRkzA.js → styles-991ebdfc-D4EpkGAf-B-Xwx8uG.js} +19 -19
- package/dist/{styles-b2c874b6-BFg-Nblp-DDESTBsS.js → styles-d20c7d72-DqCTX9VL-CceYqMjq.js} +24 -24
- package/dist/{svgDrawCommon-0ee1b4e9-CpOZq9bS-Cw8Tr_3J.js → svgDrawCommon-5ccd53ef-C-vBitUh-C3LZR4L9.js} +4 -4
- package/dist/{timeline-definition-d977decf-BqZwyTB6-C3j7tbKa.js → timeline-definition-fea2a41d-Bd7A9rUe-DzZgbnY-.js} +2 -2
- package/dist/{twig-B_Gr-ODl-Cl9Q0GWo.js → twig-Dcp9VbaI-FN48_KCA.js} +1 -1
- package/dist/{xychartDiagram-e50adddc-C1fuuOEQ-CF13knJk.js → xychartDiagram-ab372869-3O-Pt-l7-P2dDKl4d.js} +30 -30
- package/package.json +3 -3
- package/dist/arc-C2t0ExPw-CR_0vqRg.js +0 -86
- package/dist/channel-DXyvEer2-OyVZq8Xo.js +0 -5
- package/dist/gitGraphDiagram-b9d81de9-D1rNIGL0-BG2n_b9U.js +0 -1262
- package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +0 -7
|
@@ -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, ao as q, h as _, l as f, z as N, ap as lt } from "./index-3vhKKQrV.js";
|
|
2
|
+
import { U as nt } from "./createText-6b48ae7d-c5hzPIcj-DS42dDY6.js";
|
|
3
|
+
import { P as ot } from "./line-BeML9Stu-Dy9lL6FR.js";
|
|
4
4
|
const dt = (e, t, a, s) => {
|
|
5
5
|
t.forEach((l) => {
|
|
6
6
|
bt[l](e, a, s);
|
|
@@ -49,8 +49,9 @@ 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: q(l).replace(
|
|
53
53
|
/fa[blrs]?:fa-[\w-]+/g,
|
|
54
|
+
// cspell: disable-line
|
|
54
55
|
(n) => `<i class='${n.replace(":", " ")}'></i>`
|
|
55
56
|
),
|
|
56
57
|
labelStyle: t.replace("fill:", "color:")
|
|
@@ -76,13 +77,13 @@ const Lt = (e, t, a, s) => {
|
|
|
76
77
|
t.labelText === void 0 ? o = "" : o = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
|
|
77
78
|
const h = i.node();
|
|
78
79
|
let d;
|
|
79
|
-
t.labelType === "markdown" ? d = nt(i, F(
|
|
80
|
+
t.labelType === "markdown" ? d = nt(i, F(q(o), w()), {
|
|
80
81
|
useHtmlLabels: r,
|
|
81
82
|
width: t.width || w().flowchart.wrappingWidth,
|
|
82
83
|
classes: "markdown-node-label"
|
|
83
84
|
}) : d = h.appendChild(
|
|
84
85
|
P(
|
|
85
|
-
F(
|
|
86
|
+
F(q(o), w()),
|
|
86
87
|
t.labelStyle,
|
|
87
88
|
!1,
|
|
88
89
|
s
|
|
@@ -502,7 +503,7 @@ const Bt = (e, t) => {
|
|
|
502
503
|
), 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;
|
|
503
504
|
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) {
|
|
504
505
|
const d = new Set(Object.keys(t.props));
|
|
505
|
-
t.props.borders && (
|
|
506
|
+
t.props.borders && (G(r, t.props.borders, n, i), d.delete("borders")), d.forEach((c) => {
|
|
506
507
|
f.warn(`Unknown node property ${c}`);
|
|
507
508
|
});
|
|
508
509
|
}
|
|
@@ -518,20 +519,20 @@ const Bt = (e, t) => {
|
|
|
518
519
|
), 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;
|
|
519
520
|
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) {
|
|
520
521
|
const d = new Set(Object.keys(t.props));
|
|
521
|
-
t.props.borders && (
|
|
522
|
+
t.props.borders && (G(r, t.props.borders, n, i), d.delete("borders")), d.forEach((c) => {
|
|
522
523
|
f.warn(`Unknown node property ${c}`);
|
|
523
524
|
});
|
|
524
525
|
}
|
|
525
526
|
return m(t, r), t.intersect = function(d) {
|
|
526
527
|
return b.rect(t, d);
|
|
527
528
|
}, a;
|
|
528
|
-
},
|
|
529
|
+
}, zt = async (e, t) => {
|
|
529
530
|
const { shapeSvg: a } = await M(e, t, "label", !0);
|
|
530
531
|
f.trace("Classes = ", t.class);
|
|
531
532
|
const s = a.insert("rect", ":first-child"), l = 0, r = 0;
|
|
532
533
|
if (s.attr("width", l).attr("height", r), a.attr("class", "label edgeLabel"), t.props) {
|
|
533
534
|
const n = new Set(Object.keys(t.props));
|
|
534
|
-
t.props.borders && (
|
|
535
|
+
t.props.borders && (G(s, t.props.borders, l, r), n.delete("borders")), n.forEach((i) => {
|
|
535
536
|
f.warn(`Unknown node property ${i}`);
|
|
536
537
|
});
|
|
537
538
|
}
|
|
@@ -539,7 +540,7 @@ const Bt = (e, t) => {
|
|
|
539
540
|
return b.rect(t, n);
|
|
540
541
|
}, a;
|
|
541
542
|
};
|
|
542
|
-
function
|
|
543
|
+
function G(e, t, a, s) {
|
|
543
544
|
const l = [], r = (i) => {
|
|
544
545
|
l.push(i, 0);
|
|
545
546
|
}, n = (i) => {
|
|
@@ -547,7 +548,7 @@ function q(e, t, a, s) {
|
|
|
547
548
|
};
|
|
548
549
|
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(" "));
|
|
549
550
|
}
|
|
550
|
-
const
|
|
551
|
+
const Zt = (e, t) => {
|
|
551
552
|
let a;
|
|
552
553
|
t.classes ? a = "node " + t.classes : a = "node default";
|
|
553
554
|
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;
|
|
@@ -584,7 +585,7 @@ const zt = (e, t) => {
|
|
|
584
585
|
), 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) {
|
|
585
586
|
return b.rect(t, k);
|
|
586
587
|
}, s;
|
|
587
|
-
},
|
|
588
|
+
}, qt = async (e, t) => {
|
|
588
589
|
const { shapeSvg: a, bbox: s } = await M(
|
|
589
590
|
e,
|
|
590
591
|
t,
|
|
@@ -594,7 +595,7 @@ const zt = (e, t) => {
|
|
|
594
595
|
return m(t, n), t.intersect = function(i) {
|
|
595
596
|
return b.rect(t, i);
|
|
596
597
|
}, a;
|
|
597
|
-
},
|
|
598
|
+
}, Gt = async (e, t) => {
|
|
598
599
|
const { shapeSvg: a, bbox: s, halfPadding: l } = await M(
|
|
599
600
|
e,
|
|
600
601
|
t,
|
|
@@ -693,8 +694,8 @@ const zt = (e, t) => {
|
|
|
693
694
|
);
|
|
694
695
|
let $ = X.getBBox();
|
|
695
696
|
if (R(w().flowchart.htmlLabels)) {
|
|
696
|
-
const
|
|
697
|
-
$ =
|
|
697
|
+
const Z = X.children[0], H = _(X);
|
|
698
|
+
$ = Z.getBoundingClientRect(), H.attr("width", $.width), H.attr("height", $.height);
|
|
698
699
|
}
|
|
699
700
|
$.width > d && (d = $.width), c += $.height + s, Y.push(X);
|
|
700
701
|
}), c += l;
|
|
@@ -713,8 +714,8 @@ const zt = (e, t) => {
|
|
|
713
714
|
);
|
|
714
715
|
let $ = X.getBBox();
|
|
715
716
|
if (R(w().flowchart.htmlLabels)) {
|
|
716
|
-
const
|
|
717
|
-
$ =
|
|
717
|
+
const Z = X.children[0], H = _(X);
|
|
718
|
+
$ = Z.getBoundingClientRect(), H.attr("width", $.width), H.attr("height", $.height);
|
|
718
719
|
}
|
|
719
720
|
$.width > d && (d = $.width), c += $.height + s, V.push(X);
|
|
720
721
|
}), c += l, x) {
|
|
@@ -750,12 +751,12 @@ const zt = (e, t) => {
|
|
|
750
751
|
composite: At,
|
|
751
752
|
question: K,
|
|
752
753
|
rect: jt,
|
|
753
|
-
labelRect:
|
|
754
|
-
rectWithTitle:
|
|
754
|
+
labelRect: zt,
|
|
755
|
+
rectWithTitle: Zt,
|
|
755
756
|
choice: Rt,
|
|
756
|
-
circle:
|
|
757
|
+
circle: Gt,
|
|
757
758
|
doublecircle: Vt,
|
|
758
|
-
stadium:
|
|
759
|
+
stadium: qt,
|
|
759
760
|
hexagon: Wt,
|
|
760
761
|
block_arrow: Xt,
|
|
761
762
|
rect_left_inv_arrow: Yt,
|
|
@@ -874,9 +875,9 @@ const A = (e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, rr = (e) => ({
|
|
|
874
875
|
const i = t === "start" ? "Start" : "End";
|
|
875
876
|
e.attr(`marker-${t}`, `url(${s}#${l}_${r}-${n}${i})`);
|
|
876
877
|
};
|
|
877
|
-
let
|
|
878
|
+
let z = {}, T = {};
|
|
878
879
|
const gr = () => {
|
|
879
|
-
|
|
880
|
+
z = {}, T = {};
|
|
880
881
|
}, xr = (e, t) => {
|
|
881
882
|
const a = R(w().flowchart.htmlLabels), s = t.labelType === "markdown" ? nt(e, t.label, {
|
|
882
883
|
style: t.labelStyle,
|
|
@@ -889,7 +890,7 @@ const gr = () => {
|
|
|
889
890
|
const o = s.children[0], h = _(s);
|
|
890
891
|
n = o.getBoundingClientRect(), h.attr("width", n.width), h.attr("height", n.height);
|
|
891
892
|
}
|
|
892
|
-
r.attr("transform", "translate(" + -n.width / 2 + ", " + -n.height / 2 + ")"),
|
|
893
|
+
r.attr("transform", "translate(" + -n.width / 2 + ", " + -n.height / 2 + ")"), z[t.id] = l, t.width = n.width, t.height = n.height;
|
|
893
894
|
let i;
|
|
894
895
|
if (t.startLabelLeft) {
|
|
895
896
|
const o = P(t.startLabelLeft, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), d = h.insert("g").attr("class", "inner");
|
|
@@ -921,11 +922,11 @@ function j(e, t) {
|
|
|
921
922
|
w().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
922
923
|
}
|
|
923
924
|
const fr = (e, t) => {
|
|
924
|
-
f.debug("Moving label abc88 ", e.id, e.label,
|
|
925
|
+
f.debug("Moving label abc88 ", e.id, e.label, z[e.id], t);
|
|
925
926
|
let a = t.updatedPath ? t.updatedPath : t.originalPath;
|
|
926
927
|
const s = w(), { subGraphTitleTotalMargin: l } = tr(s);
|
|
927
928
|
if (e.label) {
|
|
928
|
-
const r =
|
|
929
|
+
const r = z[e.id];
|
|
929
930
|
let n = e.x, i = e.y;
|
|
930
931
|
if (a) {
|
|
931
932
|
const o = N.calcLabelPosition(a);
|
package/dist/{erDiagram-0ea73325-C3DQ6B1e-DjAGdzcu.js → erDiagram-47591fe2-CyCEEu9x-BoCVITkJ.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 { Z as At } from "./graph-
|
|
3
|
-
import { A 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, x as gt, y as bt, as as kt, l as K, A as Ot, h as tt, z as Rt, i as Nt, ap as xt, at as Tt } from "./index-3vhKKQrV.js";
|
|
2
|
+
import { Z as At } from "./graph-Bc1n6qSP-D5FVfre_.js";
|
|
3
|
+
import { A as Mt } from "./layout-DcWyZN_J-vui7Gviz.js";
|
|
4
|
+
import { P as Dt } from "./line-BeML9Stu-Dy9lL6FR.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 = "", G = 0, at = 0, dt = 2, nt = 1, ut = i.slice.call(arguments, 1), R = Object.create(this.lexer), z = { 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) && (z.yy[j] = this.yy[j]);
|
|
232
|
+
R.setInput(T, z.yy), z.yy.lexer = R, z.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 z.yy.parseError == "function" ? this.parseError = z.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, W, I, V, U = {}, H, B, st, Q; ; ) {
|
|
242
|
+
if (W = o[o.length - 1], this.defaultActions[W] ? I = this.defaultActions[W] : ((M === null || typeof M > "u") && (M = pt()), I = x[W] && x[W][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 (H in x[W])
|
|
246
|
+
this.terminals_[H] && H > dt && Q.push("'" + this.terminals_[H] + "'");
|
|
247
|
+
R.showPosition ? q = "Parse error on line " + (G + 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 " + (G + 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: " + W + ", 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, G = 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], U.$ = y[y.length - B], U._$ = {
|
|
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 && (U._$.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(U, [
|
|
273
273
|
s,
|
|
274
274
|
at,
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
G,
|
|
276
|
+
z.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(U.$), i.push(U._$), 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
|
+
}, zt = {
|
|
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
|
+
}, Wt = () => F, Ut = 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
|
+
}, Xt = () => it, Gt = function() {
|
|
616
616
|
F = {}, it = [], Ot();
|
|
617
|
-
},
|
|
617
|
+
}, Ht = {
|
|
618
618
|
Cardinality: Ft,
|
|
619
|
-
Identification:
|
|
619
|
+
Identification: zt,
|
|
620
620
|
getConfig: () => Y().er,
|
|
621
621
|
addEntity: lt,
|
|
622
|
-
addAttributes:
|
|
623
|
-
getEntities:
|
|
622
|
+
addAttributes: Ut,
|
|
623
|
+
getEntities: Wt,
|
|
624
624
|
addRelationship: Kt,
|
|
625
|
-
getRelationships:
|
|
626
|
-
clear:
|
|
625
|
+
getRelationships: Xt,
|
|
626
|
+
clear: Gt,
|
|
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 = {}, X = /* @__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
|
+
X.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
|
+
X.get(e.entityA),
|
|
762
|
+
X.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
|
+
X.get(r.entityA),
|
|
773
|
+
X.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: Ht,
|
|
919
919
|
renderer: se,
|
|
920
920
|
styles: ce
|
|
921
921
|
};
|