@antdv-next/x 1.0.2-beta.2 → 1.0.2-beta.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/actions/Actions.js +1 -1
- package/dist/attachments/index.js +1 -1
- package/dist/conversations/index.js +1 -1
- package/dist/file-card/FileCard.js +1 -1
- package/dist/file-card/List.js +1 -1
- package/dist/index.umd.js +25 -25
- package/dist/locale/useLocale.js +1 -1
- package/dist/mermaid/Mermaid.js +1 -1
- package/dist/package.js +1 -1
- package/dist/prompts/Prompts.js +1 -1
- package/dist/sender/Sender.js +1 -1
- package/dist/sender/SenderHeader.js +1 -1
- package/dist/sender/SenderSwitch.js +1 -1
- package/dist/sources/Sources.js +1 -1
- package/dist/suggestion/Suggestion.js +1 -1
- package/dist/theme/genStyleUtils.js +1 -1
- package/dist/think/Think.js +1 -1
- package/dist/thought-chain/Item.js +1 -1
- package/dist/thought-chain/Node.js +1 -1
- package/dist/thought-chain/ThoughtChain.js +1 -1
- package/dist/welcome/index.js +1 -1
- package/dist/x-provider/hooks/use-x-provider-context.js +1 -1
- package/es/{Serializer-y_SfSPKv.js → Serializer-D1JYN1kI.js} +4 -4
- package/es/{_basePickBy-DPqob0cQ.js → _basePickBy-DFHEGO2M.js} +23 -23
- package/es/{_baseUniq-AMhRdOMz.js → _baseUniq-BlS7rXTs.js} +83 -83
- package/es/antdv-next-x.esm.js +44833 -7290
- package/es/{arc-caEkbRYF.js → arc-BuXEd18J.js} +3 -3
- package/es/architecture-PBZL5I3N-D7tS55xM.js +3 -0
- package/es/{architectureDiagram-2XIMDMQ5-ZOgJV9Kg.js → architectureDiagram-2XIMDMQ5-CmfsCwJk.js} +85 -85
- package/es/{blockDiagram-WCTKOSBZ-8iZwAKBK.js → blockDiagram-WCTKOSBZ-lJAan65A.js} +530 -530
- package/es/{c4Diagram-IC4MRINW-DrH9eRMR.js → c4Diagram-IC4MRINW-B1c2x_1Q.js} +170 -170
- package/es/channel-DFgF_2F7.js +5 -0
- package/es/{chunk-4BX2VUAB-DUVpjbJi.js → chunk-4BX2VUAB-J2N81Fpp.js} +2 -2
- package/es/{chunk-55IACEB6-RlJ-J3tE.js → chunk-55IACEB6-DGtfGRgi.js} +2 -2
- package/es/{chunk-7E7YKBS2-ChLFamzc.js → chunk-7E7YKBS2-CL2d4WAf.js} +2 -2
- package/es/{chunk-7R4GIKGN-B9vamSzt.js → chunk-7R4GIKGN-QT6IorJ_.js} +3 -3
- package/es/{chunk-C72U2L5F-BV-rXau1.js → chunk-C72U2L5F-OHTVpS-m.js} +2 -2
- package/es/{chunk-EGIJ26TM-GvsuORRL.js → chunk-EGIJ26TM-DyMPGYrB.js} +2 -2
- package/es/{chunk-FMBD7UC4-D6ZlqqMC.js → chunk-FMBD7UC4-DCcRjunY.js} +2 -2
- package/es/{chunk-GEFDOKGD-DM6dsEsk.js → chunk-GEFDOKGD-BWpC-zoH.js} +278 -278
- package/es/chunk-GLR3WWYH-DiXcKb5Y.js +41 -0
- package/es/{chunk-HHEYEP7N-FVfYw94p.js → chunk-HHEYEP7N-Cxc7E4dX.js} +3 -3
- package/es/{chunk-JSJVCQXG-Wr9uPcCh.js → chunk-JSJVCQXG-D8_heHOp.js} +4 -4
- package/es/{chunk-KX2RTZJC-BGffjoxB.js → chunk-KX2RTZJC-D5cc4rj6.js} +3 -3
- package/es/{chunk-KYZI473N-Bit5smNE.js → chunk-KYZI473N-BHJ3T5Zv.js} +573 -573
- package/es/{chunk-L3YUKLVL-DBuHDpQ2.js → chunk-L3YUKLVL-7oGaUOdc.js} +2 -2
- package/es/{chunk-MX3YWQON-Cbj2WwUZ.js → chunk-MX3YWQON-BxE-Aq9c.js} +2 -2
- package/es/{chunk-NQ4KR5QH-FPQ-IHJN.js → chunk-NQ4KR5QH-EYQBXkqP.js} +120 -120
- package/es/{chunk-O4XLMI2P-BCDk0ZIW.js → chunk-O4XLMI2P-qjOoGpnx.js} +238 -238
- package/es/{chunk-OZEHJAEY-BZ24IOgQ.js → chunk-OZEHJAEY-D82nx27s.js} +2 -2
- package/es/{chunk-PQ6SQG4A-DpwBx6Hx.js → chunk-PQ6SQG4A-D3jtNCWN.js} +3 -3
- package/es/{chunk-PU5JKC2W-BNpJuXxn.js → chunk-PU5JKC2W-DdP8BS-S.js} +76 -76
- package/es/{chunk-QZHKN3VN-NEMwPryC.js → chunk-QZHKN3VN-CW3cFN-h.js} +2 -2
- package/es/{chunk-R5LLSJPH-g44vgerl.js → chunk-R5LLSJPH-CreI2kO9.js} +2 -2
- package/es/{chunk-WL4C6EOR-B6l-Yy2t.js → chunk-WL4C6EOR-BDbxJyGk.js} +120 -120
- package/es/{chunk-XIRO2GV7-CaFInIOW.js → chunk-XIRO2GV7-S5KkbVnN.js} +2 -2
- package/es/{chunk-XPW4576I-Cp1j6iTN.js → chunk-XPW4576I-B0KVSHwE.js} +2 -2
- package/es/{chunk-XZSTWKYB-CGk7ipHd.js → chunk-XZSTWKYB-CucN1XvM.js} +93 -93
- package/es/{chunk-YBOYWFTD-dOTBpTYs.js → chunk-YBOYWFTD-CvaddD9G.js} +8 -8
- package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +29 -0
- package/es/clone-r3YukIBB.js +8 -0
- package/es/{cose-bilkent-S5V4N54A-DlmXyn6m.js → cose-bilkent-S5V4N54A-B5OQuIhl.js} +3 -3
- package/es/{cytoscape.esm-BY3wHcbp.js → cytoscape.esm-i2CZcWd-.js} +1 -1
- package/es/{dagre-B1qTL793.js → dagre-5aGJFKmT.js} +57 -57
- package/es/dagre-KLK3FWXG-BI5QQMXo.js +294 -0
- package/es/{defaultLocale-BaPFSbai.js → defaultLocale-bckJcYh1.js} +12 -12
- package/es/{diagram-E7M64L7V-Dnd8N74o.js → diagram-E7M64L7V-Dz62Vz_a.js} +83 -83
- package/es/{diagram-IFDJBPK2-Dan7RsGr.js → diagram-IFDJBPK2-9fjvFkSc.js} +31 -31
- package/es/{diagram-P4PSJMXO-DwKJpttH.js → diagram-P4PSJMXO-BlX6jFjZ.js} +32 -32
- package/es/{dist-DltyvPj3.js → dist-BX_roQzC.js} +1 -1
- package/es/{erDiagram-INFDFZHY-CGO6k23w.js → erDiagram-INFDFZHY-BcRXu8Cp.js} +128 -128
- package/es/{flowDiagram-PKNHOUZH-DFN1GsRx.js → flowDiagram-PKNHOUZH-UeyfgU8z.js} +156 -156
- package/es/{ganttDiagram-A5KZAMGK-Cf5NxH1w.js → ganttDiagram-A5KZAMGK-txCzqgQ5.js} +625 -622
- package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +3 -0
- package/es/{gitGraphDiagram-K3NZZRJ6-BgE6aSZO.js → gitGraphDiagram-K3NZZRJ6-DghWYaFU.js} +176 -176
- package/es/{graphlib-DFxSohCv.js → graphlib-dRkI1OCL.js} +4 -4
- package/es/{html-C2-_98S6.js → html-B6UxjOv0.js} +1 -1
- package/es/html-Hb1oe8XT.js +2 -0
- package/es/info-3K5VOQVL-COqdvM99.js +3 -0
- package/es/{infoDiagram-LFFYTUFH-WcApcdl5.js → infoDiagram-LFFYTUFH-CA-vlAvP.js} +5 -5
- package/es/{init-PAs0hR-b.js → init-B75p2clj.js} +1 -1
- package/es/{isArrayLikeObject-BEG9p74d.js → isArrayLikeObject-jl2bjkAJ.js} +80 -80
- package/es/{isEmpty-B1YrVV8B.js → isEmpty-CmA-HYrg.js} +3 -3
- package/es/{ishikawaDiagram-PHBUUO56-DwK7J31a.js → ishikawaDiagram-PHBUUO56-DjdpS9Lb.js} +67 -67
- package/es/{journeyDiagram-4ABVD52K-CWuA57by.js → journeyDiagram-4ABVD52K-CIJfC1fp.js} +6 -6
- package/es/{kanban-definition-K7BYSVSG-DBt3gYRQ.js → kanban-definition-K7BYSVSG-CC2vwGck.js} +11 -11
- package/es/{katex-OR8z_f6I.js → katex-DCMiIo1z.js} +1 -1
- package/es/{line-zOBKZCP5.js → line-Cu9NTacD.js} +4 -4
- package/es/{linear-DttXWw4q.js → linear-C0rAYYmp.js} +23 -23
- package/es/{math-DPzKeDKn.js → math-CoDOuve-.js} +1 -1
- package/es/{mermaid-parser.core-CWNEdmZ_.js → mermaid-parser.core-7Wn2L29P.js} +16 -16
- package/es/{mermaid.core-DPBXXViR.js → mermaid.core-Bvy_Q6Hu.js} +208 -208
- package/es/{mindmap-definition-YRQLILUH-Bq2xqboX.js → mindmap-definition-YRQLILUH-BzTYDYmK.js} +16 -16
- package/es/{ordinal-D8PKtxfM.js → ordinal-F3U6aXtP.js} +3 -3
- package/es/packet-RMMSAZCW-2PTjWKLd.js +3 -0
- package/es/{path-DZ-6AyWK.js → path-Dm3C8WEs.js} +3 -3
- package/es/pie-UPGHQEXC-Du8-k-EA.js +3 -0
- package/es/{pieDiagram-SKSYHLDU-D4iMzwzH.js → pieDiagram-SKSYHLDU-COvqE_C6.js} +32 -32
- package/es/{quadrantDiagram-337W2JSQ-DSbXC0z6.js → quadrantDiagram-337W2JSQ-Dgv8ccjt.js} +4 -4
- package/es/radar-KQ55EAFF-jJOhyjxC.js +3 -0
- package/es/{requirementDiagram-Z7DCOOCP-D7eLn3fs.js → requirementDiagram-Z7DCOOCP-B2NyhxO-.js} +59 -59
- package/es/{rough.esm-C_hJ3ICT.js → rough.esm-BhGP2Udb.js} +1 -1
- package/es/{sankeyDiagram-WA2Y5GQK-DN5ZPgWU.js → sankeyDiagram-WA2Y5GQK-BfnH_gpl.js} +18 -18
- package/es/{sequenceDiagram-2WXFIKYE-CRFEBP8-.js → sequenceDiagram-2WXFIKYE-DXssVQOF.js} +390 -390
- package/es/{src-BH16DVv0.js → src-CUQ6oOYk.js} +86 -86
- package/es/{stateDiagram-RAJIS63D-CfO23QJX.js → stateDiagram-RAJIS63D-DvDLfupV.js} +68 -68
- package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +27 -0
- package/es/{timeline-definition-YZTLITO2-DmpPrD-3.js → timeline-definition-YZTLITO2-ErcRjbZf.js} +4 -4
- package/es/treemap-KZPCXAKY-CvZAIYVa.js +3 -0
- package/es/{vennDiagram-LZ73GAT5-B80Xr4jV.js → vennDiagram-LZ73GAT5-CDTZUtc8.js} +107 -107
- package/es/{vue-DTiWrQBM.js → vue-2aJw7p5p.js} +2 -2
- package/es/{vue-html-BG3Xflut.js → vue-html-DEjI8X9t.js} +1 -1
- package/es/{xychartDiagram-JWTSCODW-DvQyPDr4.js → xychartDiagram-JWTSCODW-Y21jBOTg.js} +103 -103
- package/package.json +1 -1
- package/es/architecture-PBZL5I3N-CBmkTWjb.js +0 -3
- package/es/channel-DIQFjdG3.js +0 -5
- package/es/chunk-GLR3WWYH-CqFdLic9.js +0 -41
- package/es/classDiagram-VBA2DB6C-B3yBiQy3.js +0 -29
- package/es/classDiagram-v2-RAHNMMFH-jbFYm_Xj.js +0 -29
- package/es/clone-DXVS0uSx.js +0 -8
- package/es/dagre-KLK3FWXG-CEhXRLVR.js +0 -294
- package/es/gitGraph-HDMCJU4V-CrEEHSZS.js +0 -3
- package/es/html-JbFqcNgP.js +0 -2
- package/es/info-3K5VOQVL-Dg3DCp4F.js +0 -3
- package/es/packet-RMMSAZCW-Dk7mKMJ4.js +0 -3
- package/es/pie-UPGHQEXC-CnM5YLNO.js +0 -3
- package/es/radar-KQ55EAFF-BwfADDx8.js +0 -3
- package/es/stateDiagram-v2-FVOUBMTO-BGWbXepL.js +0 -27
- package/es/treemap-KZPCXAKY-BWfn7JxQ.js +0 -3
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { D as s, b as c, c as l, s as u } from "./chunk-7R4GIKGN-
|
|
6
|
-
import { t as d } from "./line-
|
|
7
|
-
import "./chunk-PU5JKC2W-
|
|
8
|
-
import "./chunk-MX3YWQON-
|
|
9
|
-
import "./chunk-YBOYWFTD-
|
|
10
|
-
import "./chunk-55IACEB6-
|
|
11
|
-
import "./chunk-KX2RTZJC-
|
|
12
|
-
import "./chunk-PQ6SQG4A-
|
|
13
|
-
import "./chunk-KYZI473N-
|
|
14
|
-
import "./chunk-O4XLMI2P-
|
|
15
|
-
import "./chunk-GLR3WWYH-
|
|
16
|
-
import { i as f, n as p, t as m } from "./chunk-NQ4KR5QH-
|
|
17
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-RAJIS63D.mjs
|
|
18
|
-
var h = /* @__PURE__ */
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-CUQ6oOYk.js";
|
|
2
|
+
import { t as r } from "./dagre-5aGJFKmT.js";
|
|
3
|
+
import { T as i, h as a } from "./chunk-GEFDOKGD-BWpC-zoH.js";
|
|
4
|
+
import { t as o } from "./graphlib-dRkI1OCL.js";
|
|
5
|
+
import { D as s, b as c, c as l, s as u } from "./chunk-7R4GIKGN-QT6IorJ_.js";
|
|
6
|
+
import { t as d } from "./line-Cu9NTacD.js";
|
|
7
|
+
import "./chunk-PU5JKC2W-DdP8BS-S.js";
|
|
8
|
+
import "./chunk-MX3YWQON-BxE-Aq9c.js";
|
|
9
|
+
import "./chunk-YBOYWFTD-CvaddD9G.js";
|
|
10
|
+
import "./chunk-55IACEB6-DGtfGRgi.js";
|
|
11
|
+
import "./chunk-KX2RTZJC-D5cc4rj6.js";
|
|
12
|
+
import "./chunk-PQ6SQG4A-D3jtNCWN.js";
|
|
13
|
+
import "./chunk-KYZI473N-BHJ3T5Zv.js";
|
|
14
|
+
import "./chunk-O4XLMI2P-qjOoGpnx.js";
|
|
15
|
+
import "./chunk-GLR3WWYH-DiXcKb5Y.js";
|
|
16
|
+
import { i as f, n as p, t as m } from "./chunk-NQ4KR5QH-EYQBXkqP.js";
|
|
17
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-RAJIS63D.mjs
|
|
18
|
+
var h = /* @__PURE__ */ t((e) => e.append("circle").attr("class", "start-state").attr("r", c().state.sizeUnit).attr("cx", c().state.padding + c().state.sizeUnit).attr("cy", c().state.padding + c().state.sizeUnit), "drawStartState"), g = /* @__PURE__ */ t((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", c().state.textHeight).attr("class", "divider").attr("x2", c().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), _ = /* @__PURE__ */ t((e, t) => {
|
|
19
19
|
let n = e.append("text").attr("x", 2 * c().state.padding).attr("y", c().state.textHeight + 2 * c().state.padding).attr("font-size", c().state.fontSize).attr("class", "state-title").text(t.id), r = n.node().getBBox();
|
|
20
20
|
return e.insert("rect", ":first-child").attr("x", c().state.padding).attr("y", c().state.padding).attr("width", r.width + 2 * c().state.padding).attr("height", r.height + 2 * c().state.padding).attr("rx", c().state.radius), n;
|
|
21
|
-
}, "drawSimpleState"), v = /* @__PURE__ */
|
|
22
|
-
let
|
|
21
|
+
}, "drawSimpleState"), v = /* @__PURE__ */ t((e, n) => {
|
|
22
|
+
let r = /* @__PURE__ */ t(function(e, t, n) {
|
|
23
23
|
let r = e.append("tspan").attr("x", 2 * c().state.padding).text(t);
|
|
24
24
|
n || r.attr("dy", c().state.textHeight);
|
|
25
|
-
}, "addTspan"),
|
|
26
|
-
|
|
27
|
-
s || (
|
|
25
|
+
}, "addTspan"), i = e.append("text").attr("x", 2 * c().state.padding).attr("y", c().state.textHeight + 1.3 * c().state.padding).attr("font-size", c().state.fontSize).attr("class", "state-title").text(n.descriptions[0]).node().getBBox(), a = i.height, o = e.append("text").attr("x", c().state.padding).attr("y", a + c().state.padding * .4 + c().state.dividerMargin + c().state.textHeight).attr("class", "state-description"), s = !0, l = !0;
|
|
26
|
+
n.descriptions.forEach(function(e) {
|
|
27
|
+
s || (r(o, e, l), l = !1), s = !1;
|
|
28
28
|
});
|
|
29
|
-
let u = e.append("line").attr("x1", c().state.padding).attr("y1", c().state.padding +
|
|
30
|
-
return u.attr("x2", f + 3 * c().state.padding), e.insert("rect", ":first-child").attr("x", c().state.padding).attr("y", c().state.padding).attr("width", f + 2 * c().state.padding).attr("height", d.height +
|
|
31
|
-
}, "drawDescrState"), y = /* @__PURE__ */
|
|
29
|
+
let u = e.append("line").attr("x1", c().state.padding).attr("y1", c().state.padding + a + c().state.dividerMargin / 2).attr("y2", c().state.padding + a + c().state.dividerMargin / 2).attr("class", "descr-divider"), d = o.node().getBBox(), f = Math.max(d.width, i.width);
|
|
30
|
+
return u.attr("x2", f + 3 * c().state.padding), e.insert("rect", ":first-child").attr("x", c().state.padding).attr("y", c().state.padding).attr("width", f + 2 * c().state.padding).attr("height", d.height + a + 2 * c().state.padding).attr("rx", c().state.radius), e;
|
|
31
|
+
}, "drawDescrState"), y = /* @__PURE__ */ t((e, t, n) => {
|
|
32
32
|
let r = c().state.padding, i = 2 * c().state.padding, a = e.node().getBBox(), o = a.width, s = a.x, l = e.append("text").attr("x", 0).attr("y", c().state.titleShift).attr("font-size", c().state.fontSize).attr("class", "state-title").text(t.id), u = l.node().getBBox().width + i, d = Math.max(u, o);
|
|
33
33
|
d === o && (d += i);
|
|
34
34
|
let f, p = e.node().getBBox();
|
|
35
35
|
t.doc, f = s - r, u > o && (f = (o - d) / 2 + r), Math.abs(s - p.x) < r && u > o && (f = s - (u - o) / 2);
|
|
36
36
|
let m = 1 - c().state.textHeight;
|
|
37
37
|
return e.insert("rect", ":first-child").attr("x", f).attr("y", m).attr("class", n ? "alt-composit" : "composit").attr("width", d).attr("height", p.height + c().state.textHeight + c().state.titleShift + 1).attr("rx", "0"), l.attr("x", f + r), u <= o && l.attr("x", s + (d - i) / 2 - u / 2 + r), e.insert("rect", ":first-child").attr("x", f).attr("y", c().state.titleShift - c().state.textHeight - c().state.padding).attr("width", d).attr("height", c().state.textHeight * 3).attr("rx", c().state.radius), e.insert("rect", ":first-child").attr("x", f).attr("y", c().state.titleShift - c().state.textHeight - c().state.padding).attr("width", d).attr("height", p.height + 3 + 2 * c().state.textHeight).attr("rx", c().state.radius), e;
|
|
38
|
-
}, "addTitleAndBox"), b = /* @__PURE__ */
|
|
38
|
+
}, "addTitleAndBox"), b = /* @__PURE__ */ t((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", c().state.sizeUnit + c().state.miniPadding).attr("cx", c().state.padding + c().state.sizeUnit + c().state.miniPadding).attr("cy", c().state.padding + c().state.sizeUnit + c().state.miniPadding), e.append("circle").attr("class", "end-state-inner").attr("r", c().state.sizeUnit).attr("cx", c().state.padding + c().state.sizeUnit + 2).attr("cy", c().state.padding + c().state.sizeUnit + 2)), "drawEndState"), x = /* @__PURE__ */ t((e, t) => {
|
|
39
39
|
let n = c().state.forkWidth, r = c().state.forkHeight;
|
|
40
40
|
if (t.parentId) {
|
|
41
41
|
let e = n;
|
|
42
42
|
n = r, r = e;
|
|
43
43
|
}
|
|
44
44
|
return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", n).attr("height", r).attr("x", c().state.padding).attr("y", c().state.padding);
|
|
45
|
-
}, "drawForkJoinState"), S = /* @__PURE__ */
|
|
45
|
+
}, "drawForkJoinState"), S = /* @__PURE__ */ t((e, t, n, r) => {
|
|
46
46
|
let i = 0, a = r.append("text");
|
|
47
47
|
a.style("text-anchor", "start"), a.attr("class", "noteText");
|
|
48
48
|
let o = e.replace(/\r\n/g, "<br/>");
|
|
@@ -63,11 +63,11 @@ var h = /* @__PURE__ */ a((e) => e.append("circle").attr("class", "start-state")
|
|
|
63
63
|
textWidth: a.node().getBBox().width,
|
|
64
64
|
textHeight: i
|
|
65
65
|
};
|
|
66
|
-
}, "_drawLongText"), C = /* @__PURE__ */
|
|
66
|
+
}, "_drawLongText"), C = /* @__PURE__ */ t((e, t) => {
|
|
67
67
|
t.attr("class", "state-note");
|
|
68
68
|
let n = t.append("rect").attr("x", 0).attr("y", c().state.padding), { textWidth: r, textHeight: i } = S(e, 0, 0, t.append("g"));
|
|
69
69
|
return n.attr("height", i + 2 * c().state.noteMargin), n.attr("width", r + c().state.noteMargin * 2), n;
|
|
70
|
-
}, "drawNote"), w = /* @__PURE__ */
|
|
70
|
+
}, "drawNote"), w = /* @__PURE__ */ t(function(e, t) {
|
|
71
71
|
let n = t.id, r = {
|
|
72
72
|
id: n,
|
|
73
73
|
label: t.id,
|
|
@@ -77,8 +77,8 @@ var h = /* @__PURE__ */ a((e) => e.append("circle").attr("class", "start-state")
|
|
|
77
77
|
t.type === "start" && h(i), t.type === "end" && b(i), (t.type === "fork" || t.type === "join") && x(i, t), t.type === "note" && C(t.note.text, i), t.type === "divider" && g(i), t.type === "default" && t.descriptions.length === 0 && _(i, t), t.type === "default" && t.descriptions.length > 0 && v(i, t);
|
|
78
78
|
let a = i.node().getBBox();
|
|
79
79
|
return r.width = a.width + 2 * c().state.padding, r.height = a.height + 2 * c().state.padding, r;
|
|
80
|
-
}, "drawState"), T = 0, E = /* @__PURE__ */
|
|
81
|
-
let l = /* @__PURE__ */
|
|
80
|
+
}, "drawState"), T = 0, E = /* @__PURE__ */ t(function(n, r, o) {
|
|
81
|
+
let l = /* @__PURE__ */ t(function(e) {
|
|
82
82
|
switch (e) {
|
|
83
83
|
case m.relationType.AGGREGATION: return "aggregation";
|
|
84
84
|
case m.relationType.EXTENSION: return "extension";
|
|
@@ -91,12 +91,12 @@ var h = /* @__PURE__ */ a((e) => e.append("circle").attr("class", "start-state")
|
|
|
91
91
|
return e.x;
|
|
92
92
|
}).y(function(e) {
|
|
93
93
|
return e.y;
|
|
94
|
-
}).curve(
|
|
94
|
+
}).curve(i), h = n.append("path").attr("d", p(f)).attr("id", "edge" + T).attr("class", "transition"), g = "";
|
|
95
95
|
if (c().state.arrowMarkerAbsolute && (g = s(!0)), h.attr("marker-end", "url(" + g + "#" + l(m.relationType.DEPENDENCY) + "End)"), o.title !== void 0) {
|
|
96
|
-
let t =
|
|
97
|
-
for (let
|
|
98
|
-
let
|
|
99
|
-
p = Math.max(p,
|
|
96
|
+
let t = n.append("g").attr("class", "stateLabel"), { x: i, y: s } = a.calcLabelPosition(r.points), l = u.getRows(o.title), d = 0, f = [], p = 0, m = 0;
|
|
97
|
+
for (let n = 0; n <= l.length; n++) {
|
|
98
|
+
let r = t.append("text").attr("text-anchor", "middle").text(l[n]).attr("x", i).attr("y", s + d), a = r.node().getBBox();
|
|
99
|
+
p = Math.max(p, a.width), m = Math.min(m, a.x), e.info(a.x, i, s + d), d === 0 && (d = r.node().getBBox().height, e.info("Title height", d, s)), f.push(r);
|
|
100
100
|
}
|
|
101
101
|
let h = d * l.length;
|
|
102
102
|
if (l.length > 1) {
|
|
@@ -104,23 +104,23 @@ var h = /* @__PURE__ */ a((e) => e.append("circle").attr("class", "start-state")
|
|
|
104
104
|
f.forEach((t, n) => t.attr("y", s + n * d - e)), h = d * l.length;
|
|
105
105
|
}
|
|
106
106
|
let g = t.node().getBBox();
|
|
107
|
-
t.insert("rect", ":first-child").attr("class", "box").attr("x",
|
|
107
|
+
t.insert("rect", ":first-child").attr("class", "box").attr("x", i - p / 2 - c().state.padding / 2).attr("y", s - h / 2 - c().state.padding / 2 - 3.5).attr("width", p + c().state.padding).attr("height", h + c().state.padding), e.info(g);
|
|
108
108
|
}
|
|
109
109
|
T++;
|
|
110
|
-
}, "drawEdge"), D, O = {}, k = /* @__PURE__ */
|
|
110
|
+
}, "drawEdge"), D, O = {}, k = /* @__PURE__ */ t(function() {}, "setConf"), A = /* @__PURE__ */ t(function(e) {
|
|
111
111
|
e.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 19,7 L9,13 L14,7 L9,1 Z");
|
|
112
|
-
}, "insertMarkers"), j = /* @__PURE__ */
|
|
112
|
+
}, "insertMarkers"), j = /* @__PURE__ */ t(function(t, r, i, a) {
|
|
113
113
|
D = c().state;
|
|
114
|
-
let
|
|
115
|
-
|
|
116
|
-
let u = o
|
|
117
|
-
|
|
118
|
-
let f = u.select(`[id='${
|
|
119
|
-
A(f), N(
|
|
114
|
+
let o = c().securityLevel, s;
|
|
115
|
+
o === "sandbox" && (s = n("#i" + r));
|
|
116
|
+
let u = n(o === "sandbox" ? s.nodes()[0].contentDocument.body : "body"), d = o === "sandbox" ? s.nodes()[0].contentDocument : document;
|
|
117
|
+
e.debug("Rendering diagram " + t);
|
|
118
|
+
let f = u.select(`[id='${r}']`);
|
|
119
|
+
A(f), N(a.db.getRootDoc(), f, void 0, !1, u, d, a);
|
|
120
120
|
let p = D.padding, m = f.node().getBBox(), h = m.width + p * 2, g = m.height + p * 2;
|
|
121
121
|
l(f, g, h * 1.75, D.useMaxWidth), f.attr("viewBox", `${m.x - D.padding} ${m.y - D.padding} ` + h + " " + g);
|
|
122
|
-
}, "draw"), M = /* @__PURE__ */
|
|
123
|
-
let d = new
|
|
122
|
+
}, "draw"), M = /* @__PURE__ */ t((e) => e ? e.length * D.fontSizeFactor : 1, "getLabelWidth"), N = /* @__PURE__ */ t((t, n, i, a, s, c, l) => {
|
|
123
|
+
let d = new o({
|
|
124
124
|
compound: !0,
|
|
125
125
|
multigraph: !0
|
|
126
126
|
}), f, p = !0;
|
|
@@ -128,7 +128,7 @@ var h = /* @__PURE__ */ a((e) => e.append("circle").attr("class", "start-state")
|
|
|
128
128
|
p = !1;
|
|
129
129
|
break;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
i ? d.setGraph({
|
|
132
132
|
rankdir: "LR",
|
|
133
133
|
multigraph: !0,
|
|
134
134
|
compound: !0,
|
|
@@ -150,13 +150,13 @@ var h = /* @__PURE__ */ a((e) => e.append("circle").attr("class", "start-state")
|
|
|
150
150
|
let m = l.db.getStates(), h = l.db.getRelations(), g = Object.keys(m);
|
|
151
151
|
for (let e of g) {
|
|
152
152
|
let t = m[e];
|
|
153
|
-
|
|
153
|
+
i && (t.parentId = i);
|
|
154
154
|
let r;
|
|
155
155
|
if (t.doc) {
|
|
156
156
|
let e = n.append("g").attr("id", t.id).attr("class", "stateGroup");
|
|
157
|
-
r = N(t.doc, e, t.id, !
|
|
157
|
+
r = N(t.doc, e, t.id, !a, s, c, l);
|
|
158
158
|
{
|
|
159
|
-
e = y(e, t,
|
|
159
|
+
e = y(e, t, a);
|
|
160
160
|
let n = e.node().getBBox();
|
|
161
161
|
r.width = n.width, r.height = n.height + D.padding / 2, O[t.id] = { y: D.compositTitleSize };
|
|
162
162
|
}
|
|
@@ -171,34 +171,34 @@ var h = /* @__PURE__ */ a((e) => e.append("circle").attr("class", "start-state")
|
|
|
171
171
|
t.note.position === "left of" ? (d.setNode(r.id + "-note", e), d.setNode(r.id, r)) : (d.setNode(r.id, r), d.setNode(r.id + "-note", e)), d.setParent(r.id, r.id + "-group"), d.setParent(r.id + "-note", r.id + "-group");
|
|
172
172
|
} else d.setNode(r.id, r);
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
e.debug("Count=", d.nodeCount(), d);
|
|
175
175
|
let _ = 0;
|
|
176
|
-
h.forEach(function(
|
|
177
|
-
_++,
|
|
178
|
-
relation:
|
|
179
|
-
width: M(
|
|
180
|
-
height: D.labelHeight * u.getRows(
|
|
176
|
+
h.forEach(function(t) {
|
|
177
|
+
_++, e.debug("Setting edge", t), d.setEdge(t.id1, t.id2, {
|
|
178
|
+
relation: t,
|
|
179
|
+
width: M(t.title),
|
|
180
|
+
height: D.labelHeight * u.getRows(t.title).length,
|
|
181
181
|
labelpos: "c"
|
|
182
182
|
}, "id" + _);
|
|
183
|
-
}),
|
|
183
|
+
}), r(d), e.debug("Graph after layout", d.nodes());
|
|
184
184
|
let v = n.node();
|
|
185
|
-
d.nodes().forEach(function(
|
|
186
|
-
|
|
185
|
+
d.nodes().forEach(function(t) {
|
|
186
|
+
t !== void 0 && d.node(t) !== void 0 ? (e.warn("Node " + t + ": " + JSON.stringify(d.node(t))), s.select("#" + v.id + " #" + t).attr("transform", "translate(" + (d.node(t).x - d.node(t).width / 2) + "," + (d.node(t).y + (O[t] ? O[t].y : 0) - d.node(t).height / 2) + " )"), s.select("#" + v.id + " #" + t).attr("data-x-shift", d.node(t).x - d.node(t).width / 2), c.querySelectorAll("#" + v.id + " #" + t + " .divider").forEach((e) => {
|
|
187
187
|
let t = e.parentElement, n = 0, r = 0;
|
|
188
188
|
t && (t.parentElement && (n = t.parentElement.getBBox().width), r = parseInt(t.getAttribute("data-x-shift"), 10), Number.isNaN(r) && (r = 0)), e.setAttribute("x1", 0 - r + 8), e.setAttribute("x2", n - r - 8);
|
|
189
|
-
})) :
|
|
189
|
+
})) : e.debug("No Node " + t + ": " + JSON.stringify(d.node(t)));
|
|
190
190
|
});
|
|
191
191
|
let b = v.getBBox();
|
|
192
|
-
d.edges().forEach(function(
|
|
193
|
-
|
|
192
|
+
d.edges().forEach(function(t) {
|
|
193
|
+
t !== void 0 && d.edge(t) !== void 0 && (e.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(d.edge(t))), E(n, d.edge(t), d.edge(t).relation));
|
|
194
194
|
}), b = v.getBBox();
|
|
195
195
|
let x = {
|
|
196
|
-
id:
|
|
197
|
-
label:
|
|
196
|
+
id: i || "root",
|
|
197
|
+
label: i || "root",
|
|
198
198
|
width: 0,
|
|
199
199
|
height: 0
|
|
200
200
|
};
|
|
201
|
-
return x.width = b.width + 2 * D.padding, x.height = b.height + 2 * D.padding,
|
|
201
|
+
return x.width = b.width + 2 * D.padding, x.height = b.height + 2 * D.padding, e.debug("Doc rendered", x, d), x;
|
|
202
202
|
}, "renderDoc"), P = {
|
|
203
203
|
parser: p,
|
|
204
204
|
get db() {
|
|
@@ -209,7 +209,7 @@ var h = /* @__PURE__ */ a((e) => e.append("circle").attr("class", "start-state")
|
|
|
209
209
|
draw: j
|
|
210
210
|
},
|
|
211
211
|
styles: f,
|
|
212
|
-
init: /* @__PURE__ */
|
|
212
|
+
init: /* @__PURE__ */ t((e) => {
|
|
213
213
|
e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
214
214
|
}, "init")
|
|
215
215
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { h as e } from "./src-CUQ6oOYk.js";
|
|
2
|
+
import "./chunk-GEFDOKGD-BWpC-zoH.js";
|
|
3
|
+
import "./chunk-7R4GIKGN-QT6IorJ_.js";
|
|
4
|
+
import "./chunk-PU5JKC2W-DdP8BS-S.js";
|
|
5
|
+
import "./chunk-MX3YWQON-BxE-Aq9c.js";
|
|
6
|
+
import "./chunk-YBOYWFTD-CvaddD9G.js";
|
|
7
|
+
import "./chunk-55IACEB6-DGtfGRgi.js";
|
|
8
|
+
import "./chunk-KX2RTZJC-D5cc4rj6.js";
|
|
9
|
+
import "./chunk-PQ6SQG4A-D3jtNCWN.js";
|
|
10
|
+
import "./chunk-KYZI473N-BHJ3T5Zv.js";
|
|
11
|
+
import "./chunk-O4XLMI2P-qjOoGpnx.js";
|
|
12
|
+
import "./chunk-GLR3WWYH-DiXcKb5Y.js";
|
|
13
|
+
import { i as t, n, r, t as i } from "./chunk-NQ4KR5QH-EYQBXkqP.js";
|
|
14
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-FVOUBMTO.mjs
|
|
15
|
+
var a = {
|
|
16
|
+
parser: n,
|
|
17
|
+
get db() {
|
|
18
|
+
return new i(2);
|
|
19
|
+
},
|
|
20
|
+
renderer: r,
|
|
21
|
+
styles: t,
|
|
22
|
+
init: /* @__PURE__ */ e((e) => {
|
|
23
|
+
e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
24
|
+
}, "init")
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { a as diagram };
|
package/es/{timeline-definition-YZTLITO2-DmpPrD-3.js → timeline-definition-YZTLITO2-ErcRjbZf.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as e, h as t, m as n, p as r } from "./src-
|
|
2
|
-
import { $ as i, K as a, Q as o, a as s, b as c, o as l, tt as u } from "./chunk-7R4GIKGN-
|
|
3
|
-
import { t as d } from "./arc-
|
|
4
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-YZTLITO2.mjs
|
|
1
|
+
import { g as e, h as t, m as n, p as r } from "./src-CUQ6oOYk.js";
|
|
2
|
+
import { $ as i, K as a, Q as o, a as s, b as c, o as l, tt as u } from "./chunk-7R4GIKGN-QT6IorJ_.js";
|
|
3
|
+
import { t as d } from "./arc-BuXEd18J.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-YZTLITO2.mjs
|
|
5
5
|
var f = (function() {
|
|
6
6
|
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
7
7
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|