@ucap-llm/ai-ui 1.1.6 → 1.1.7
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/_basePickBy-7d00d05e.mjs +153 -0
- package/_baseUniq-1876be04.mjs +440 -0
- package/ai-ui.es.js +11 -78207
- package/ai-ui.umd.js +2701 -143
- package/arc-bb1e7b28.mjs +85 -0
- package/architecture-4AB2E3PP-26f07d27.mjs +10 -0
- package/architectureDiagram-IEHRJDOE-535e4958.mjs +4640 -0
- package/blockDiagram-JOT3LUYC-e5536854.mjs +2251 -0
- package/c4Diagram-VJAJSXHY-311741c3.mjs +1583 -0
- package/channel-5d097975.mjs +5 -0
- package/chunk-4BMEZGHF-55420838.mjs +9 -0
- package/chunk-A2AXSNBT-5f9de039.mjs +1373 -0
- package/chunk-AEK57VVT-bd6e836f.mjs +1416 -0
- package/chunk-D6G4REZN-69cf348a.mjs +64 -0
- package/chunk-RZ5BOZE2-ebe3985e.mjs +24 -0
- package/chunk-XZIHB7SX-ed9a9d65.mjs +15 -0
- package/classDiagram-GIVACNV2-4d61f06d.mjs +18 -0
- package/classDiagram-v2-COTLJTTW-4d61f06d.mjs +18 -0
- package/clone-44064c55.mjs +8 -0
- package/cytoscape.esm-bb479f88.mjs +18232 -0
- package/dagre-OKDRZEBW-0574359b.mjs +448 -0
- package/diagram-SSKATNLV-f4dd04b2.mjs +225 -0
- package/diagram-VNBRO52H-f77f925a.mjs +130 -0
- package/erDiagram-Q7BY3M3F-8213684f.mjs +843 -0
- package/flowDiagram-4HSFHLVR-1decdff6.mjs +1624 -0
- package/ganttDiagram-APWFNJXF-461381a5.mjs +2521 -0
- package/gitGraph-O2Q2CXLX-d961db16.mjs +10 -0
- package/gitGraphDiagram-7IBYFJ6S-be6c39c3.mjs +716 -0
- package/graph-7ba79f74.mjs +249 -0
- package/index-f5aac161.mjs +93487 -0
- package/info-4N47QTOZ-615527c9.mjs +10 -0
- package/infoDiagram-PH2N3AL5-064df479.mjs +26 -0
- package/init-f9637058.mjs +16 -0
- package/journeyDiagram-U35MCT3I-94c54b39.mjs +811 -0
- package/kanban-definition-NDS4AKOZ-58a05db1.mjs +720 -0
- package/katex-2e45926a.mjs +11700 -0
- package/layout-c953b0e7.mjs +1344 -0
- package/linear-3c81794f.mjs +447 -0
- package/mermaid-parser.core-7afd2b2f.mjs +12845 -0
- package/mindmap-definition-ALO5MXBD-60e68e28.mjs +3222 -0
- package/ordinal-980380c7.mjs +65 -0
- package/package.json +1 -1
- package/packet-KVYON367-4b5a305e.mjs +10 -0
- package/pie-R6RNRRYF-0f27d16d.mjs +10 -0
- package/pieDiagram-IB7DONF6-66cebf11.mjs +167 -0
- package/quadrantDiagram-7GDLP6J5-f2cbfc79.mjs +1027 -0
- package/radar-MK3ICKWK-9e1913d7.mjs +10 -0
- package/requirementDiagram-KVF5MWMF-36d316c2.mjs +853 -0
- package/sankeyDiagram-QLVOVGJD-76245efb.mjs +826 -0
- package/sequenceDiagram-X6HHIX6F-a0ec0021.mjs +2283 -0
- package/stateDiagram-DGXRK772-e6387816.mjs +274 -0
- package/stateDiagram-v2-YXO3MK2T-f011ada4.mjs +18 -0
- package/style.css +1 -1
- package/timeline-definition-BDJGKUSR-a62514a7.mjs +806 -0
- package/xychartDiagram-VJFVF3MP-1b807048.mjs +1306 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { _ as n, T as c, m as l } from "./index-f5aac161.mjs";
|
|
2
|
+
var o = /* @__PURE__ */ n((a, t) => {
|
|
3
|
+
const e = a.append("rect");
|
|
4
|
+
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
5
|
+
for (const r in t.attrs)
|
|
6
|
+
e.attr(r, t.attrs[r]);
|
|
7
|
+
return t.class && e.attr("class", t.class), e;
|
|
8
|
+
}, "drawRect"), d = /* @__PURE__ */ n((a, t) => {
|
|
9
|
+
const e = {
|
|
10
|
+
x: t.startx,
|
|
11
|
+
y: t.starty,
|
|
12
|
+
width: t.stopx - t.startx,
|
|
13
|
+
height: t.stopy - t.starty,
|
|
14
|
+
fill: t.fill,
|
|
15
|
+
stroke: t.stroke,
|
|
16
|
+
class: "rect"
|
|
17
|
+
};
|
|
18
|
+
o(a, e).lower();
|
|
19
|
+
}, "drawBackgroundRect"), g = /* @__PURE__ */ n((a, t) => {
|
|
20
|
+
const e = t.text.replace(c, " "), r = a.append("text");
|
|
21
|
+
r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class && r.attr("class", t.class);
|
|
22
|
+
const s = r.append("tspan");
|
|
23
|
+
return s.attr("x", t.x + t.textMargin * 2), s.text(e), r;
|
|
24
|
+
}, "drawText"), m = /* @__PURE__ */ n((a, t, e, r) => {
|
|
25
|
+
const s = a.append("image");
|
|
26
|
+
s.attr("x", t), s.attr("y", e);
|
|
27
|
+
const i = l(r);
|
|
28
|
+
s.attr("xlink:href", i);
|
|
29
|
+
}, "drawImage"), h = /* @__PURE__ */ n((a, t, e, r) => {
|
|
30
|
+
const s = a.append("use");
|
|
31
|
+
s.attr("x", t), s.attr("y", e);
|
|
32
|
+
const i = l(r);
|
|
33
|
+
s.attr("xlink:href", `#${i}`);
|
|
34
|
+
}, "drawEmbeddedImage"), y = /* @__PURE__ */ n(() => ({
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0,
|
|
37
|
+
width: 100,
|
|
38
|
+
height: 100,
|
|
39
|
+
fill: "#EDF2AE",
|
|
40
|
+
stroke: "#666",
|
|
41
|
+
anchor: "start",
|
|
42
|
+
rx: 0,
|
|
43
|
+
ry: 0
|
|
44
|
+
}), "getNoteRect"), p = /* @__PURE__ */ n(() => ({
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0,
|
|
47
|
+
width: 100,
|
|
48
|
+
height: 100,
|
|
49
|
+
"text-anchor": "start",
|
|
50
|
+
style: "#666",
|
|
51
|
+
textMargin: 0,
|
|
52
|
+
rx: 0,
|
|
53
|
+
ry: 0,
|
|
54
|
+
tspan: !0
|
|
55
|
+
}), "getTextObj");
|
|
56
|
+
export {
|
|
57
|
+
p as a,
|
|
58
|
+
d as b,
|
|
59
|
+
h as c,
|
|
60
|
+
o as d,
|
|
61
|
+
m as e,
|
|
62
|
+
g as f,
|
|
63
|
+
y as g
|
|
64
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { _ as n, j as r, k as g, l as d } from "./index-f5aac161.mjs";
|
|
2
|
+
var u = /* @__PURE__ */ n((t, e) => {
|
|
3
|
+
let o;
|
|
4
|
+
return e === "sandbox" && (o = r("#i" + t)), (e === "sandbox" ? r(o.nodes()[0].contentDocument.body) : r("body")).select(`[id="${t}"]`);
|
|
5
|
+
}, "getDiagramElement"), b = /* @__PURE__ */ n((t, e, o, i) => {
|
|
6
|
+
t.attr("class", o);
|
|
7
|
+
const { width: a, height: s, x: h, y: x } = l(t, e);
|
|
8
|
+
g(t, s, a, i);
|
|
9
|
+
const c = w(h, x, a, s, e);
|
|
10
|
+
t.attr("viewBox", c), d.debug(`viewBox configured: ${c} with padding: ${e}`);
|
|
11
|
+
}, "setupViewPortForSVG"), l = /* @__PURE__ */ n((t, e) => {
|
|
12
|
+
var i;
|
|
13
|
+
const o = ((i = t.node()) == null ? void 0 : i.getBBox()) || { width: 0, height: 0, x: 0, y: 0 };
|
|
14
|
+
return {
|
|
15
|
+
width: o.width + e * 2,
|
|
16
|
+
height: o.height + e * 2,
|
|
17
|
+
x: o.x,
|
|
18
|
+
y: o.y
|
|
19
|
+
};
|
|
20
|
+
}, "calculateDimensionsWithPadding"), w = /* @__PURE__ */ n((t, e, o, i, a) => `${t - a} ${e - a} ${o} ${i}`, "createViewBox");
|
|
21
|
+
export {
|
|
22
|
+
u as g,
|
|
23
|
+
b as s
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { _ as s } from "./index-f5aac161.mjs";
|
|
2
|
+
var t, e = (t = class {
|
|
3
|
+
/**
|
|
4
|
+
* @param init - Function that creates the default state.
|
|
5
|
+
*/
|
|
6
|
+
constructor(i) {
|
|
7
|
+
this.init = i, this.records = this.init();
|
|
8
|
+
}
|
|
9
|
+
reset() {
|
|
10
|
+
this.records = this.init();
|
|
11
|
+
}
|
|
12
|
+
}, s(t, "ImperativeState"), t);
|
|
13
|
+
export {
|
|
14
|
+
e as I
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { c as a, C as s, a as e, s as t } from "./chunk-A2AXSNBT-5f9de039.mjs";
|
|
2
|
+
import { _ as i } from "./index-f5aac161.mjs";
|
|
3
|
+
import "./chunk-RZ5BOZE2-ebe3985e.mjs";
|
|
4
|
+
import "vue";
|
|
5
|
+
var _ = {
|
|
6
|
+
parser: a,
|
|
7
|
+
get db() {
|
|
8
|
+
return new s();
|
|
9
|
+
},
|
|
10
|
+
renderer: e,
|
|
11
|
+
styles: t,
|
|
12
|
+
init: /* @__PURE__ */ i((r) => {
|
|
13
|
+
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute;
|
|
14
|
+
}, "init")
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
_ as diagram
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { c as a, C as s, a as e, s as t } from "./chunk-A2AXSNBT-5f9de039.mjs";
|
|
2
|
+
import { _ as i } from "./index-f5aac161.mjs";
|
|
3
|
+
import "./chunk-RZ5BOZE2-ebe3985e.mjs";
|
|
4
|
+
import "vue";
|
|
5
|
+
var _ = {
|
|
6
|
+
parser: a,
|
|
7
|
+
get db() {
|
|
8
|
+
return new s();
|
|
9
|
+
},
|
|
10
|
+
renderer: e,
|
|
11
|
+
styles: t,
|
|
12
|
+
init: /* @__PURE__ */ i((r) => {
|
|
13
|
+
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute;
|
|
14
|
+
}, "init")
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
_ as diagram
|
|
18
|
+
};
|