@ucap-llm/ai-ui 1.1.20 → 1.1.22

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 (69) hide show
  1. package/_basePickBy-49aBLVXj.mjs +151 -0
  2. package/_baseUniq-Duw-LCxN.mjs +418 -0
  3. package/ai-ui.es.js +5 -5
  4. package/ai-ui.umd.js +441 -398
  5. package/{arc-e33cf4bd.mjs → arc-CxnBoKcf.mjs} +3 -5
  6. package/architecture-4AB2E3PP-DpATI33S.mjs +5 -0
  7. package/{architectureDiagram-IEHRJDOE-8c0644d3.mjs → architectureDiagram-IEHRJDOE-CaoKd3s2.mjs} +774 -781
  8. package/{blockDiagram-JOT3LUYC-2e03b1f8.mjs → blockDiagram-JOT3LUYC-Dno4VG8f.mjs} +17 -21
  9. package/{c4Diagram-VJAJSXHY-0d7e02b1.mjs → c4Diagram-VJAJSXHY-D5HK6aXG.mjs} +45 -47
  10. package/channel-CjgQSUhn.mjs +5 -0
  11. package/{chunk-4BMEZGHF-c55a79e8.mjs → chunk-4BMEZGHF-B5q96F5j.mjs} +1 -1
  12. package/{chunk-A2AXSNBT-72cb8e03.mjs → chunk-A2AXSNBT-CwIw1dro.mjs} +31 -32
  13. package/{chunk-AEK57VVT-103a8016.mjs → chunk-AEK57VVT-CgqpfRdv.mjs} +29 -30
  14. package/{chunk-D6G4REZN-eb0c0a03.mjs → chunk-D6G4REZN-BuQQgKKf.mjs} +24 -24
  15. package/chunk-RZ5BOZE2-nBulgjak.mjs +24 -0
  16. package/{chunk-XZIHB7SX-697eddab.mjs → chunk-XZIHB7SX-ChfFX5tX.mjs} +1 -1
  17. package/classDiagram-GIVACNV2-DW4s6Pgr.mjs +16 -0
  18. package/classDiagram-v2-COTLJTTW-DW4s6Pgr.mjs +16 -0
  19. package/{clone-e06e1908.mjs → clone-BWxZJOIB.mjs} +1 -1
  20. package/{cytoscape.esm-9ffb4bbe.mjs → cytoscape.esm-D1A2YP3J.mjs} +133 -240
  21. package/{dagre-OKDRZEBW-1380cf0d.mjs → dagre-OKDRZEBW-BF7VSsgY.mjs} +25 -26
  22. package/{diagram-SSKATNLV-1e22cab7.mjs → diagram-SSKATNLV-BHV-tmQz.mjs} +48 -52
  23. package/{diagram-VNBRO52H-63b9b854.mjs → diagram-VNBRO52H-DhnmXzVl.mjs} +31 -35
  24. package/{erDiagram-Q7BY3M3F-6f4f40c6.mjs → erDiagram-Q7BY3M3F-yoOr4S3e.mjs} +32 -34
  25. package/{flowDiagram-4HSFHLVR-217f422a.mjs → flowDiagram-4HSFHLVR-Dypn-7OY.mjs} +21 -23
  26. package/{ganttDiagram-APWFNJXF-b1c138fc.mjs → ganttDiagram-APWFNJXF-Bpg6PwzQ.mjs} +933 -961
  27. package/gitGraph-O2Q2CXLX-B57Ivesv.mjs +5 -0
  28. package/{gitGraphDiagram-7IBYFJ6S-a40cd00c.mjs → gitGraphDiagram-7IBYFJ6S-C2SKSevj.mjs} +27 -31
  29. package/{graph-c2e1b9d5.mjs → graph-BqoU6xY2.mjs} +7 -9
  30. package/{index-4283477e.mjs → index-LXAHF7dZ.mjs} +56792 -32545
  31. package/info-4N47QTOZ-rUYWBWKH.mjs +5 -0
  32. package/infoDiagram-PH2N3AL5-Dwh9BN3B.mjs +22 -0
  33. package/{journeyDiagram-U35MCT3I-ea34e89d.mjs → journeyDiagram-U35MCT3I-BuJo6oNZ.mjs} +26 -28
  34. package/{kanban-definition-NDS4AKOZ-3dc1bdfc.mjs → kanban-definition-NDS4AKOZ-3bBL0X_A.mjs} +22 -23
  35. package/{layout-b7402112.mjs → layout-UCl5QdSx.mjs} +288 -308
  36. package/{linear-6028b26a.mjs → linear-5kjmVbWx.mjs} +136 -160
  37. package/{mermaid-parser.core-89f41f6f.mjs → mermaid-parser.core-BTQeWTCL.mjs} +2510 -2520
  38. package/{mindmap-definition-ALO5MXBD-cf0036bd.mjs → mindmap-definition-ALO5MXBD-pyGAc115.mjs} +309 -311
  39. package/{ordinal-980380c7.mjs → ordinal-C0oynhte.mjs} +4 -8
  40. package/package.json +2 -2
  41. package/packet-KVYON367-B0aEJOd2.mjs +5 -0
  42. package/pie-R6RNRRYF-mat_xgAT.mjs +5 -0
  43. package/pieDiagram-IB7DONF6-Dfr5jCmu.mjs +161 -0
  44. package/{quadrantDiagram-7GDLP6J5-4e41575d.mjs → quadrantDiagram-7GDLP6J5-CUP0tYJI.mjs} +28 -31
  45. package/radar-MK3ICKWK-ae8hsHN1.mjs +5 -0
  46. package/{requirementDiagram-KVF5MWMF-edfb0543.mjs → requirementDiagram-KVF5MWMF-O1db62rc.mjs} +47 -49
  47. package/{sankeyDiagram-QLVOVGJD-c0853822.mjs → sankeyDiagram-QLVOVGJD-CCf-MSR0.mjs} +113 -131
  48. package/{sequenceDiagram-X6HHIX6F-96ff1e7c.mjs → sequenceDiagram-X6HHIX6F-CrB4QPFZ.mjs} +40 -42
  49. package/{stateDiagram-DGXRK772-7c6ceb1c.mjs → stateDiagram-DGXRK772-DWFrvHEL.mjs} +8 -12
  50. package/stateDiagram-v2-YXO3MK2T-BuEm2W4g.mjs +16 -0
  51. package/style.css +10 -1
  52. package/{timeline-definition-BDJGKUSR-23f3d39c.mjs → timeline-definition-BDJGKUSR-ThsfvZPa.mjs} +11 -13
  53. package/{xychartDiagram-VJFVF3MP-9b2268b5.mjs → xychartDiagram-VJFVF3MP-D7Ns77UK.mjs} +161 -163
  54. package/_basePickBy-576eaf6e.mjs +0 -153
  55. package/_baseUniq-83e8b0cb.mjs +0 -440
  56. package/architecture-4AB2E3PP-1faad353.mjs +0 -10
  57. package/channel-283b31f1.mjs +0 -5
  58. package/chunk-RZ5BOZE2-97e0c31b.mjs +0 -24
  59. package/classDiagram-GIVACNV2-306a98b6.mjs +0 -18
  60. package/classDiagram-v2-COTLJTTW-306a98b6.mjs +0 -18
  61. package/gitGraph-O2Q2CXLX-804a8ebe.mjs +0 -10
  62. package/info-4N47QTOZ-6f3c3677.mjs +0 -10
  63. package/infoDiagram-PH2N3AL5-4c0f80b6.mjs +0 -26
  64. package/packet-KVYON367-3ead67ef.mjs +0 -10
  65. package/pie-R6RNRRYF-41122910.mjs +0 -10
  66. package/pieDiagram-IB7DONF6-9b4a5b06.mjs +0 -167
  67. package/radar-MK3ICKWK-0d996d37.mjs +0 -10
  68. package/stateDiagram-v2-YXO3MK2T-012aec41.mjs +0 -18
  69. /package/{init-f9637058.mjs → init-DjUOC4st.mjs} +0 -0
@@ -1,26 +0,0 @@
1
- import { _ as e, l as s, H as n, k as i, I as p } from "./index-4283477e.mjs";
2
- import { p as g } from "./mermaid-parser.core-89f41f6f.mjs";
3
- import "vue";
4
- import "./_baseUniq-83e8b0cb.mjs";
5
- import "./_basePickBy-576eaf6e.mjs";
6
- import "./clone-e06e1908.mjs";
7
- var v = {
8
- parse: /* @__PURE__ */ e(async (r) => {
9
- const a = await g("info", r);
10
- s.debug(a);
11
- }, "parse")
12
- }, d = { version: p.version }, m = /* @__PURE__ */ e(() => d.version, "getVersion"), c = {
13
- getVersion: m
14
- }, l = /* @__PURE__ */ e((r, a, o) => {
15
- s.debug(`rendering info diagram
16
- ` + r);
17
- const t = n(a);
18
- i(t, 100, 400, !0), t.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${o}`);
19
- }, "draw"), f = { draw: l }, k = {
20
- parser: v,
21
- db: c,
22
- renderer: f
23
- };
24
- export {
25
- k as diagram
26
- };
@@ -1,10 +0,0 @@
1
- import { P as p, a as c } from "./mermaid-parser.core-89f41f6f.mjs";
2
- import "./index-4283477e.mjs";
3
- import "vue";
4
- import "./_baseUniq-83e8b0cb.mjs";
5
- import "./_basePickBy-576eaf6e.mjs";
6
- import "./clone-e06e1908.mjs";
7
- export {
8
- p as PacketModule,
9
- c as createPacketServices
10
- };
@@ -1,10 +0,0 @@
1
- import { b as a, d as s } from "./mermaid-parser.core-89f41f6f.mjs";
2
- import "./index-4283477e.mjs";
3
- import "vue";
4
- import "./_baseUniq-83e8b0cb.mjs";
5
- import "./_basePickBy-576eaf6e.mjs";
6
- import "./clone-e06e1908.mjs";
7
- export {
8
- a as PieModule,
9
- s as createPieServices
10
- };
@@ -1,167 +0,0 @@
1
- import { p as U } from "./chunk-4BMEZGHF-c55a79e8.mjs";
2
- import { aa as y, a2 as z, aG as j, C as H, n as Z, o as q, s as J, g as K, c as Q, b as X, _ as p, l as G, t as Y, d as tt, D as et, H as at, O as rt, k as nt } from "./index-4283477e.mjs";
3
- import { p as it } from "./mermaid-parser.core-89f41f6f.mjs";
4
- import { d as P } from "./arc-e33cf4bd.mjs";
5
- import { o as st } from "./ordinal-980380c7.mjs";
6
- import "vue";
7
- import "./_baseUniq-83e8b0cb.mjs";
8
- import "./_basePickBy-576eaf6e.mjs";
9
- import "./clone-e06e1908.mjs";
10
- import "./init-f9637058.mjs";
11
- function ot(t, a) {
12
- return a < t ? -1 : a > t ? 1 : a >= t ? 0 : NaN;
13
- }
14
- function lt(t) {
15
- return t;
16
- }
17
- function ct() {
18
- var t = lt, a = ot, m = null, o = y(0), g = y(z), x = y(0);
19
- function i(e) {
20
- var r, l = (e = j(e)).length, c, A, h = 0, u = new Array(l), n = new Array(l), v = +o.apply(this, arguments), w = Math.min(z, Math.max(-z, g.apply(this, arguments) - v)), f, T = Math.min(Math.abs(w) / l, x.apply(this, arguments)), $ = T * (w < 0 ? -1 : 1), d;
21
- for (r = 0; r < l; ++r)
22
- (d = n[u[r] = r] = +t(e[r], r, e)) > 0 && (h += d);
23
- for (a != null ? u.sort(function(S, C) {
24
- return a(n[S], n[C]);
25
- }) : m != null && u.sort(function(S, C) {
26
- return m(e[S], e[C]);
27
- }), r = 0, A = h ? (w - l * $) / h : 0; r < l; ++r, v = f)
28
- c = u[r], d = n[c], f = v + (d > 0 ? d * A : 0) + $, n[c] = {
29
- data: e[c],
30
- index: r,
31
- value: d,
32
- startAngle: v,
33
- endAngle: f,
34
- padAngle: T
35
- };
36
- return n;
37
- }
38
- return i.value = function(e) {
39
- return arguments.length ? (t = typeof e == "function" ? e : y(+e), i) : t;
40
- }, i.sortValues = function(e) {
41
- return arguments.length ? (a = e, m = null, i) : a;
42
- }, i.sort = function(e) {
43
- return arguments.length ? (m = e, a = null, i) : m;
44
- }, i.startAngle = function(e) {
45
- return arguments.length ? (o = typeof e == "function" ? e : y(+e), i) : o;
46
- }, i.endAngle = function(e) {
47
- return arguments.length ? (g = typeof e == "function" ? e : y(+e), i) : g;
48
- }, i.padAngle = function(e) {
49
- return arguments.length ? (x = typeof e == "function" ? e : y(+e), i) : x;
50
- }, i;
51
- }
52
- var R = H.pie, F = {
53
- sections: /* @__PURE__ */ new Map(),
54
- showData: !1,
55
- config: R
56
- }, b = F.sections, O = F.showData, ut = structuredClone(R), pt = /* @__PURE__ */ p(() => structuredClone(ut), "getConfig"), gt = /* @__PURE__ */ p(() => {
57
- b = /* @__PURE__ */ new Map(), O = F.showData, Y();
58
- }, "clear"), dt = /* @__PURE__ */ p(({ label: t, value: a }) => {
59
- b.has(t) || (b.set(t, a), G.debug(`added new section: ${t}, with value: ${a}`));
60
- }, "addSection"), ft = /* @__PURE__ */ p(() => b, "getSections"), mt = /* @__PURE__ */ p((t) => {
61
- O = t;
62
- }, "setShowData"), ht = /* @__PURE__ */ p(() => O, "getShowData"), I = {
63
- getConfig: pt,
64
- clear: gt,
65
- setDiagramTitle: Z,
66
- getDiagramTitle: q,
67
- setAccTitle: J,
68
- getAccTitle: K,
69
- setAccDescription: Q,
70
- getAccDescription: X,
71
- addSection: dt,
72
- getSections: ft,
73
- setShowData: mt,
74
- getShowData: ht
75
- }, vt = /* @__PURE__ */ p((t, a) => {
76
- U(t, a), a.setShowData(t.showData), t.sections.map(a.addSection);
77
- }, "populateDb"), St = {
78
- parse: /* @__PURE__ */ p(async (t) => {
79
- const a = await it("pie", t);
80
- G.debug(a), vt(a, I);
81
- }, "parse")
82
- }, yt = /* @__PURE__ */ p((t) => `
83
- .pieCircle{
84
- stroke: ${t.pieStrokeColor};
85
- stroke-width : ${t.pieStrokeWidth};
86
- opacity : ${t.pieOpacity};
87
- }
88
- .pieOuterCircle{
89
- stroke: ${t.pieOuterStrokeColor};
90
- stroke-width: ${t.pieOuterStrokeWidth};
91
- fill: none;
92
- }
93
- .pieTitleText {
94
- text-anchor: middle;
95
- font-size: ${t.pieTitleTextSize};
96
- fill: ${t.pieTitleTextColor};
97
- font-family: ${t.fontFamily};
98
- }
99
- .slice {
100
- font-family: ${t.fontFamily};
101
- fill: ${t.pieSectionTextColor};
102
- font-size:${t.pieSectionTextSize};
103
- // fill: white;
104
- }
105
- .legend text {
106
- fill: ${t.pieLegendTextColor};
107
- font-family: ${t.fontFamily};
108
- font-size: ${t.pieLegendTextSize};
109
- }
110
- `, "getStyles"), xt = yt, At = /* @__PURE__ */ p((t) => {
111
- const a = [...t.entries()].map((o) => ({
112
- label: o[0],
113
- value: o[1]
114
- })).sort((o, g) => g.value - o.value);
115
- return ct().value(
116
- (o) => o.value
117
- )(a);
118
- }, "createPieArcs"), wt = /* @__PURE__ */ p((t, a, m, o) => {
119
- G.debug(`rendering pie chart
120
- ` + t);
121
- const g = o.db, x = tt(), i = et(g.getConfig(), x.pie), e = 40, r = 18, l = 4, c = 450, A = c, h = at(a), u = h.append("g");
122
- u.attr("transform", "translate(" + A / 2 + "," + c / 2 + ")");
123
- const { themeVariables: n } = x;
124
- let [v] = rt(n.pieOuterStrokeWidth);
125
- v ?? (v = 2);
126
- const w = i.textPosition, f = Math.min(A, c) / 2 - e, T = P().innerRadius(0).outerRadius(f), $ = P().innerRadius(f * w).outerRadius(f * w);
127
- u.append("circle").attr("cx", 0).attr("cy", 0).attr("r", f + v / 2).attr("class", "pieOuterCircle");
128
- const d = g.getSections(), S = At(d), C = [
129
- n.pie1,
130
- n.pie2,
131
- n.pie3,
132
- n.pie4,
133
- n.pie5,
134
- n.pie6,
135
- n.pie7,
136
- n.pie8,
137
- n.pie9,
138
- n.pie10,
139
- n.pie11,
140
- n.pie12
141
- ], D = st(C);
142
- u.selectAll("mySlices").data(S).enter().append("path").attr("d", T).attr("fill", (s) => D(s.data.label)).attr("class", "pieCircle");
143
- let W = 0;
144
- d.forEach((s) => {
145
- W += s;
146
- }), u.selectAll("mySlices").data(S).enter().append("text").text((s) => (s.data.value / W * 100).toFixed(0) + "%").attr("transform", (s) => "translate(" + $.centroid(s) + ")").style("text-anchor", "middle").attr("class", "slice"), u.append("text").text(g.getDiagramTitle()).attr("x", 0).attr("y", -(c - 50) / 2).attr("class", "pieTitleText");
147
- const M = u.selectAll(".legend").data(D.domain()).enter().append("g").attr("class", "legend").attr("transform", (s, k) => {
148
- const E = r + l, _ = E * D.domain().length / 2, B = 12 * r, V = k * E - _;
149
- return "translate(" + B + "," + V + ")";
150
- });
151
- M.append("rect").attr("width", r).attr("height", r).style("fill", D).style("stroke", D), M.data(S).append("text").attr("x", r + l).attr("y", r - l).text((s) => {
152
- const { label: k, value: E } = s.data;
153
- return g.getShowData() ? `${k} [${E}]` : k;
154
- });
155
- const L = Math.max(
156
- ...M.selectAll("text").nodes().map((s) => (s == null ? void 0 : s.getBoundingClientRect().width) ?? 0)
157
- ), N = A + e + r + l + L;
158
- h.attr("viewBox", `0 0 ${N} ${c}`), nt(h, c, N, i.useMaxWidth);
159
- }, "draw"), Ct = { draw: wt }, Ot = {
160
- parser: St,
161
- db: I,
162
- renderer: Ct,
163
- styles: xt
164
- };
165
- export {
166
- Ot as diagram
167
- };
@@ -1,10 +0,0 @@
1
- import { R as p, g as d } from "./mermaid-parser.core-89f41f6f.mjs";
2
- import "./index-4283477e.mjs";
3
- import "vue";
4
- import "./_baseUniq-83e8b0cb.mjs";
5
- import "./_basePickBy-576eaf6e.mjs";
6
- import "./clone-e06e1908.mjs";
7
- export {
8
- p as RadarModule,
9
- d as createRadarServices
10
- };
@@ -1,18 +0,0 @@
1
- import { s as t, S as r, b as a, a as s } from "./chunk-AEK57VVT-103a8016.mjs";
2
- import { _ as i } from "./index-4283477e.mjs";
3
- import "./chunk-RZ5BOZE2-97e0c31b.mjs";
4
- import "vue";
5
- var l = {
6
- parser: t,
7
- get db() {
8
- return new r(2);
9
- },
10
- renderer: a,
11
- styles: s,
12
- init: /* @__PURE__ */ i((e) => {
13
- e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
14
- }, "init")
15
- };
16
- export {
17
- l as diagram
18
- };
File without changes