@kong-ui-public/documentation 0.7.83 → 0.7.84

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.
Files changed (66) hide show
  1. package/dist/_basePickBy-CMfPif8e-CmRJF0Pz.js +151 -0
  2. package/dist/_baseUniq-CXqhI00C-BfnSCqya.js +615 -0
  3. package/dist/arc-JIMrD458-iE0qPqUL.js +83 -0
  4. package/dist/architecture-I3QFYML2-Bgw7-fJd-BmHcSoDq.js +5 -0
  5. package/dist/{architectureDiagram-V6B76FHG-CMXFnETI-RxxML1uW.js → architectureDiagram-AYX4OTIS-XPsSAXrN-CriQXfFm.js} +4 -4
  6. package/dist/blockDiagram-XN6IQ5JY-IfzOVP1S-DoilgKcQ.js +2247 -0
  7. package/dist/{c4Diagram-THADGKDP-BoXI_MdM-85LhjWUD.js → c4Diagram-GPMAACGM-RttNBnvg-DemUG3qf.js} +2 -2
  8. package/dist/{channel-BlAyqTfO-DcF7shsf.js → channel-DEiqvYYf-DqQTZyIM.js} +1 -1
  9. package/dist/{chunk-OQCM5LHU-BXp7HdZf-DAxyAqhb.js → chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js} +1 -1
  10. package/dist/chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js +1301 -0
  11. package/dist/{chunk-DUMQOTYW-BvseU82P-Cv9cgfHg.js → chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js} +1 -1
  12. package/dist/{chunk-2JBRQKJ5-D-tjQIH--CX9PfGSj.js → chunk-JZAHL7AJ-B8L_7Xh_-C2ETRUtV.js} +21 -21
  13. package/dist/{chunk-2RYQ3QTB-CJAPCFIj-C6EEVa0L.js → chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js} +1 -1
  14. package/dist/{chunk-XVOYOM2C-DSF8EQmO-CJoKjxiE.js → chunk-VCFP4HPQ-qZEjUbIz-7kfkUrsj.js} +1 -1
  15. package/dist/classDiagram-FEGYTUDG-Bu9qKgav-DF2ZcQyp.js +14 -0
  16. package/dist/classDiagram-v2-R65JCUOM-Bu9qKgav-DF2ZcQyp.js +14 -0
  17. package/dist/{clone-BxgFQWIV-C8w0qOf5.js → clone-elND5I63-U8WRvSPu.js} +1 -1
  18. package/dist/dagre-SWNTG5WE-CcKMLYcK-tREOd3Fb.js +447 -0
  19. package/dist/{diagram-QS5GVLUX-Ck_HO8gZ-CFWjkYXj.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js} +6 -6
  20. package/dist/documentation.es.js +1 -1
  21. package/dist/documentation.umd.js +401 -273
  22. package/dist/{erDiagram-62CBQV5Y-CaO8CQzG-DYEXkRnA.js → erDiagram-WO52GFNT-N8TeMKSM-BojFH-Dn.js} +56 -56
  23. package/dist/flowDiagram-TSWR6T2D-DzECWIN--CnDMIIi-.js +1484 -0
  24. package/dist/{ganttDiagram-ASEIQ4P5-BiIuu6iJ-DXC89NBD.js → ganttDiagram-FAOCOTIY-DmxDGUpf-BGJLIQAo.js} +61 -61
  25. package/dist/gitGraph-YCYPL57B-BKlVjqGu-BRRTPERj.js +5 -0
  26. package/dist/{gitGraphDiagram-UL5UFKDR-C4dDL1m3-pGO-Nubf.js → gitGraphDiagram-5C7YHVU6-CfJ_hQ2h-C2aLT5AH.js} +21 -21
  27. package/dist/{graph-BDwITe7N-Dg4ZhErV.js → graph-C5siWsaJ-djbzUgq8.js} +52 -55
  28. package/dist/{index-D1jNpyAG.js → index-BXFfc1qh.js} +17314 -15496
  29. package/dist/info-46DW6VJ7-QBUrqpM0-D7DXfBfh.js +5 -0
  30. package/dist/{infoDiagram-7APDZ6AT-DQAU4aEA-ZuNKK8Q1.js → infoDiagram-P5D6MX3V-CthsN8fk-ju-grajk.js} +2 -2
  31. package/dist/{journeyDiagram-G5LC7W2K-BDjs8Ede-CBVXgKDg.js → journeyDiagram-UIGPPNLY-CB1xWSVF-CnOTIXjT.js} +3 -3
  32. package/dist/kanban-definition-KMT3NSR2-B76JZ_Kx-BuaYPyou.js +718 -0
  33. package/dist/layout-mwnMvyc4-B2PmGvWD.js +1321 -0
  34. package/dist/{linear-DJf2yjqH-Qa8JBmhC.js → linear-XztDb0hj-RsuwoFLQ.js} +46 -46
  35. package/dist/{mermaid-parser.core-DKcB0zTx-Cuc2e_U9.js → mermaid-parser.core-C4mt_cFi-BuaZi6gx.js} +9 -9
  36. package/dist/{mindmap-definition-FCEC46F3-Dfona71I-BMB5v8Sw.js → mindmap-definition-R7LC4OIY-Cg3Nsctr-BcCPx65V.js} +1 -1
  37. package/dist/packet-W2GHVCYJ-BJGXYVlB-DlnQVVmK.js +5 -0
  38. package/dist/pie-BEWT4RHE-XO1bTOj2-DEYSeXSg.js +5 -0
  39. package/dist/{pieDiagram-OZX6XH5M-CVVFrPaX-C40AWUnf.js → pieDiagram-BLWKPB35-Bs5Iyn_g-CnOiPji_.js} +27 -27
  40. package/dist/{quadrantDiagram-VG34DGKC-D_n6ouG0-B7tCVKZS.js → quadrantDiagram-QXWEEFXS-n8j7IqmF-CloVXY0U.js} +16 -16
  41. package/dist/{requirementDiagram-FPZB6IJI-DgzsPnSP-BdT6rZ42.js → requirementDiagram-XAUNFCZY-DI_Pyl2h-D8hqXle2.js} +20 -20
  42. package/dist/{sankeyDiagram-KMMQDL5K-slN_anzC-C8cSA1pn.js → sankeyDiagram-LVV36NHA-Bei7yBJl-DvbyWSci.js} +1 -1
  43. package/dist/{sequenceDiagram-PQT5PN7B-DmYxtSNe-kmiDoefU.js → sequenceDiagram-D25TJ2OB-NAPdhBbI-DQR1b0UZ.js} +21 -21
  44. package/dist/{stateDiagram-TQSDS2D4-DaGylNtS-DZvK22EK.js → stateDiagram-GNSP7T6Y-Dzq9j0YG-BgVCaCOx.js} +14 -15
  45. package/dist/{stateDiagram-v2-J5TZWJW5-CkpV3aOb-CRLcbMy9.js → stateDiagram-v2-HP6YRVRG-Jl4ubGlG-BeMvcZLQ.js} +2 -3
  46. package/dist/{timeline-definition-KYQAIZUX-BbQn7lRo-DdMJtCcZ.js → timeline-definition-27KQCCZ3-Dyj-cUhB-cBpLcB_z.js} +91 -91
  47. package/dist/{xychartDiagram-LESROZAQ-C5RGN8Yc-D1Q0T8zi.js → xychartDiagram-MYLB5AYS-Bc_nZcHL-YLCG5NJT.js} +2 -2
  48. package/package.json +2 -2
  49. package/dist/_basePickBy-C3_IHxiB-Bgb-nBpw.js +0 -143
  50. package/dist/_baseUniq-Cede_3wW-BVX848YU.js +0 -622
  51. package/dist/arc-CFIMKg_S-CJkN7pL8.js +0 -83
  52. package/dist/architecture-I3QFYML2-CsfpifL5-B7ba29Kf.js +0 -5
  53. package/dist/blockDiagram-EN3ZKWFM-CyddtNyi-BO48RJ5X.js +0 -1232
  54. package/dist/chunk-BAVOGKFW-DMR4mnUx-ZqKP-ubQ.js +0 -1092
  55. package/dist/chunk-UGV5ZQQN-DJ9JPuwX-CiNn-tmJ.js +0 -254
  56. package/dist/chunk-YWFND7JV-CJxpOF0s-CKv3TLz3.js +0 -786
  57. package/dist/classDiagram-4BHYIK4I-Bh2E4V_q-Bp1df6xf.js +0 -214
  58. package/dist/classDiagram-v2-FI7KE7WJ-zeS53lAE--zqW0wuN.js +0 -545
  59. package/dist/dagre-P3YPLUS5-DvPNKrZS-BqJ7-FR_.js +0 -421
  60. package/dist/flowDiagram-JSIZSE4D-C3p20RgK-76C6C_fU.js +0 -1380
  61. package/dist/gitGraph-YCYPL57B-BXHaWu1_-L6S_Q-ER.js +0 -5
  62. package/dist/info-46DW6VJ7-gLazUuGQ-CgME-TPe.js +0 -5
  63. package/dist/json-Dg9P6BhK-CcBa4IfV.js +0 -31
  64. package/dist/layout--tn8zpzB-CFuPSG6n.js +0 -1381
  65. package/dist/packet-W2GHVCYJ-Dn1-cCwP-_7hKzD3w.js +0 -5
  66. package/dist/pie-BEWT4RHE-DvPKCMtn-CWoQ7JX6.js +0 -5
@@ -1,214 +0,0 @@
1
- import { j as D, Q as S, X } from "./chunk-BAVOGKFW-DMR4mnUx-ZqKP-ubQ.js";
2
- import { _ as w, g as H, l as f, af as N, ag as $, az as G, aA as J, an as M, aB as W } from "./index-D1jNpyAG.js";
3
- import { D as Y } from "./graph-BDwITe7N-Dg4ZhErV.js";
4
- import { o as Z } from "./layout--tn8zpzB-CFuPSG6n.js";
5
- var O = 0, I = /* @__PURE__ */ w(function(n, a, t, s, l) {
6
- const g = /* @__PURE__ */ w(function(i) {
7
- switch (i) {
8
- case l.db.relationType.AGGREGATION:
9
- return "aggregation";
10
- case l.db.relationType.EXTENSION:
11
- return "extension";
12
- case l.db.relationType.COMPOSITION:
13
- return "composition";
14
- case l.db.relationType.DEPENDENCY:
15
- return "dependency";
16
- case l.db.relationType.LOLLIPOP:
17
- return "lollipop";
18
- }
19
- }, "getRelationType");
20
- a.points = a.points.filter((i) => !Number.isNaN(i.y));
21
- const o = a.points, c = G().x(function(i) {
22
- return i.x;
23
- }).y(function(i) {
24
- return i.y;
25
- }).curve(J), d = n.append("path").attr("d", c(o)).attr("id", "edge" + O).attr("class", "relation");
26
- let r = "";
27
- s.arrowMarkerAbsolute && (r = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, r = r.replace(/\(/g, "\\("), r = r.replace(/\)/g, "\\)")), t.relation.lineType == 1 && d.attr("class", "relation dashed-line"), t.relation.lineType == 10 && d.attr("class", "relation dotted-line"), t.relation.type1 !== "none" && d.attr(
28
- "marker-start",
29
- "url(" + r + "#" + g(t.relation.type1) + "Start)"
30
- ), t.relation.type2 !== "none" && d.attr(
31
- "marker-end",
32
- "url(" + r + "#" + g(t.relation.type2) + "End)"
33
- );
34
- let u, p;
35
- const x = a.points.length;
36
- let m = M.calcLabelPosition(a.points);
37
- u = m.x, p = m.y;
38
- let b, k, e, h;
39
- if (x % 2 !== 0 && x > 1) {
40
- let i = M.calcCardinalityPosition(
41
- t.relation.type1 !== "none",
42
- a.points,
43
- a.points[0]
44
- ), y = M.calcCardinalityPosition(
45
- t.relation.type2 !== "none",
46
- a.points,
47
- a.points[x - 1]
48
- );
49
- f.debug("cardinality_1_point " + JSON.stringify(i)), f.debug("cardinality_2_point " + JSON.stringify(y)), b = i.x, k = i.y, e = y.x, h = y.y;
50
- }
51
- if (t.title !== void 0) {
52
- const i = n.append("g").attr("class", "classLabel"), y = i.append("text").attr("class", "label").attr("x", u).attr("y", p).attr("fill", "red").attr("text-anchor", "middle").text(t.title);
53
- window.label = y;
54
- const L = y.node().getBBox();
55
- i.insert("rect", ":first-child").attr("class", "box").attr("x", L.x - s.padding / 2).attr("y", L.y - s.padding / 2).attr("width", L.width + s.padding).attr("height", L.height + s.padding);
56
- }
57
- f.info("Rendering relation " + JSON.stringify(t)), t.relationTitle1 !== void 0 && t.relationTitle1 !== "none" && n.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", b).attr("y", k).attr("fill", "black").attr("font-size", "6").text(t.relationTitle1), t.relationTitle2 !== void 0 && t.relationTitle2 !== "none" && n.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", e).attr("y", h).attr("fill", "black").attr("font-size", "6").text(t.relationTitle2), O++;
58
- }, "drawEdge"), _ = /* @__PURE__ */ w(function(n, a, t, s) {
59
- f.debug("Rendering class ", a, t);
60
- const l = a.id, g = {
61
- id: l,
62
- label: a.id,
63
- width: 0,
64
- height: 0
65
- }, o = n.append("g").attr("id", s.db.lookUpDomId(l)).attr("class", "classGroup");
66
- let c;
67
- a.link ? c = o.append("svg:a").attr("xlink:href", a.link).attr("target", a.linkTarget).append("text").attr("y", t.textHeight + t.padding).attr("x", 0) : c = o.append("text").attr("y", t.textHeight + t.padding).attr("x", 0);
68
- let d = !0;
69
- a.annotations.forEach(function(i) {
70
- const y = c.append("tspan").text("«" + i + "»");
71
- d || y.attr("dy", t.textHeight), d = !1;
72
- });
73
- let r = A(a);
74
- const u = c.append("tspan").text(r).attr("class", "title");
75
- d || u.attr("dy", t.textHeight);
76
- const p = c.node().getBBox().height;
77
- let x, m, b;
78
- if (a.members.length > 0) {
79
- x = o.append("line").attr("x1", 0).attr("y1", t.padding + p + t.dividerMargin / 2).attr("y2", t.padding + p + t.dividerMargin / 2);
80
- const i = o.append("text").attr("x", t.padding).attr("y", p + t.dividerMargin + t.textHeight).attr("fill", "white").attr("class", "classText");
81
- d = !0, a.members.forEach(function(y) {
82
- C(i, y, d, t), d = !1;
83
- }), m = i.node().getBBox();
84
- }
85
- if (a.methods.length > 0) {
86
- b = o.append("line").attr("x1", 0).attr("y1", t.padding + p + t.dividerMargin + m.height).attr("y2", t.padding + p + t.dividerMargin + m.height);
87
- const i = o.append("text").attr("x", t.padding).attr("y", p + 2 * t.dividerMargin + m.height + t.textHeight).attr("fill", "white").attr("class", "classText");
88
- d = !0, a.methods.forEach(function(y) {
89
- C(i, y, d, t), d = !1;
90
- });
91
- }
92
- const k = o.node().getBBox();
93
- var e = " ";
94
- a.cssClasses.length > 0 && (e = e + a.cssClasses.join(" "));
95
- const h = o.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", k.width + 2 * t.padding).attr("height", k.height + t.padding + 0.5 * t.dividerMargin).attr("class", e).node().getBBox().width;
96
- return c.node().childNodes.forEach(function(i) {
97
- i.setAttribute("x", (h - i.getBBox().width) / 2);
98
- }), a.tooltip && c.insert("title").text(a.tooltip), x && x.attr("x2", h), b && b.attr("x2", h), g.width = h, g.height = k.height + t.padding + 0.5 * t.dividerMargin, g;
99
- }, "drawClass"), A = /* @__PURE__ */ w(function(n) {
100
- let a = n.id;
101
- return n.type && (a += "<" + W(n.type) + ">"), a;
102
- }, "getClassTitleString"), P = /* @__PURE__ */ w(function(n, a, t, s) {
103
- f.debug("Rendering note ", a, t);
104
- const l = a.id, g = {
105
- id: l,
106
- text: a.text,
107
- width: 0,
108
- height: 0
109
- }, o = n.append("g").attr("id", l).attr("class", "classGroup");
110
- let c = o.append("text").attr("y", t.textHeight + t.padding).attr("x", 0);
111
- const d = JSON.parse(`"${a.text}"`).split(`
112
- `);
113
- d.forEach(function(p) {
114
- f.debug(`Adding line: ${p}`), c.append("tspan").text(p).attr("class", "title").attr("dy", t.textHeight);
115
- });
116
- const r = o.node().getBBox(), u = o.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", r.width + 2 * t.padding).attr(
117
- "height",
118
- r.height + d.length * t.textHeight + t.padding + 0.5 * t.dividerMargin
119
- ).node().getBBox().width;
120
- return c.node().childNodes.forEach(function(p) {
121
- p.setAttribute("x", (u - p.getBBox().width) / 2);
122
- }), g.width = u, g.height = r.height + d.length * t.textHeight + t.padding + 0.5 * t.dividerMargin, g;
123
- }, "drawNote"), C = /* @__PURE__ */ w(function(n, a, t, s) {
124
- const { displayText: l, cssStyle: g } = a.getDisplayDetails(), o = n.append("tspan").attr("x", s.padding).text(l);
125
- g !== "" && o.attr("style", a.cssStyle), t || o.attr("dy", s.textHeight);
126
- }, "addTspan"), B = {
127
- getClassTitleString: A,
128
- drawClass: _,
129
- drawEdge: I,
130
- drawNote: P
131
- }, T = {}, v = 20, E = /* @__PURE__ */ w(function(n) {
132
- const a = Object.entries(T).find((t) => t[1].label === n);
133
- if (a)
134
- return a[0];
135
- }, "getGraphId"), R = /* @__PURE__ */ w(function(n) {
136
- n.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), n.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), n.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").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"), n.append("defs").append("marker").attr("id", "compositionEnd").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"), n.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").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"), n.append("defs").append("marker").attr("id", "aggregationEnd").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"), n.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), n.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
137
- }, "insertMarkers"), j = /* @__PURE__ */ w(function(n, a, t, s) {
138
- const l = H().class;
139
- T = {}, f.info("Rendering diagram " + n);
140
- const g = H().securityLevel;
141
- let o;
142
- g === "sandbox" && (o = N("#i" + a));
143
- const c = g === "sandbox" ? N(o.nodes()[0].contentDocument.body) : N("body"), d = c.select(`[id='${a}']`);
144
- R(d);
145
- const r = new Y({
146
- multigraph: !0
147
- });
148
- r.setGraph({
149
- isMultiGraph: !0
150
- }), r.setDefaultEdgeLabel(function() {
151
- return {};
152
- });
153
- const u = s.db.getClasses(), p = [...u.keys()];
154
- for (const e of p) {
155
- const h = u.get(e), i = B.drawClass(d, h, l, s);
156
- T[i.id] = i, r.setNode(i.id, i), f.info("Org height: " + i.height);
157
- }
158
- s.db.getRelations().forEach(function(e) {
159
- f.info(
160
- // cspell:ignore tjoho
161
- "tjoho" + E(e.id1) + E(e.id2) + JSON.stringify(e)
162
- ), r.setEdge(
163
- E(e.id1),
164
- E(e.id2),
165
- {
166
- relation: e
167
- },
168
- e.title || "DEFAULT"
169
- );
170
- }), s.db.getNotes().forEach(function(e) {
171
- f.debug(`Adding note: ${JSON.stringify(e)}`);
172
- const h = B.drawNote(d, e, l, s);
173
- T[h.id] = h, r.setNode(h.id, h), e.class && u.has(e.class) && r.setEdge(
174
- e.id,
175
- E(e.class),
176
- {
177
- relation: {
178
- id1: e.id,
179
- id2: e.class,
180
- relation: {
181
- type1: "none",
182
- type2: "none",
183
- lineType: 10
184
- }
185
- }
186
- },
187
- "DEFAULT"
188
- );
189
- }), Z(r), r.nodes().forEach(function(e) {
190
- e !== void 0 && r.node(e) !== void 0 && (f.debug("Node " + e + ": " + JSON.stringify(r.node(e))), c.select("#" + (s.db.lookUpDomId(e) || e)).attr(
191
- "transform",
192
- "translate(" + (r.node(e).x - r.node(e).width / 2) + "," + (r.node(e).y - r.node(e).height / 2) + " )"
193
- ));
194
- }), r.edges().forEach(function(e) {
195
- e !== void 0 && r.edge(e) !== void 0 && (f.debug("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(r.edge(e))), B.drawEdge(d, r.edge(e), r.edge(e).relation, l, s));
196
- });
197
- const x = d.node().getBBox(), m = x.width + v * 2, b = x.height + v * 2;
198
- $(d, b, m, l.useMaxWidth);
199
- const k = `${x.x - v} ${x.y - v} ${m} ${b}`;
200
- f.debug(`viewBox ${k}`), d.attr("viewBox", k);
201
- }, "draw"), z = {
202
- draw: j
203
- }, q = {
204
- parser: D,
205
- db: S,
206
- renderer: z,
207
- styles: X,
208
- init: /* @__PURE__ */ w((n) => {
209
- n.class || (n.class = {}), n.class.arrowMarkerAbsolute = n.arrowMarkerAbsolute, S.clear();
210
- }, "init")
211
- };
212
- export {
213
- q as diagram
214
- };