@foris/ai-agent 0.3.0 → 0.4.0
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/ai-agent.es.js +3 -3
- package/dist/ai-agent.umd.js +619 -609
- package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +15 -0
- package/dist/ai-prompt-code-editor/index.d.ts +1 -0
- package/dist/ai-prompt-code-editor/promptCodeEditor.mock.d.ts +5 -0
- package/dist/arc-CYayZuAl.js +85 -0
- package/dist/{architectureDiagram-VXUJARFQ-CuFlEJrK.js → architectureDiagram-VXUJARFQ-CqFKxLlH.js} +3 -3
- package/dist/{blockDiagram-VD42YOAC-Ceho4Zhj.js → blockDiagram-VD42YOAC-DEi-xIcu.js} +46 -46
- package/dist/{c4Diagram-YG6GDRKO-zPB3iQJ7.js → c4Diagram-YG6GDRKO-mFZhX_-U.js} +3 -3
- package/dist/channel-CbDO3juL.js +5 -0
- package/dist/{chunk-4BX2VUAB-BZlHuf6l.js → chunk-4BX2VUAB-D5qkn5BA.js} +1 -1
- package/dist/{chunk-55IACEB6-Dr8rgvy_.js → chunk-55IACEB6-CR8xZK7z.js} +1 -1
- package/dist/{chunk-B4BG7PRW-Ccllo2e-.js → chunk-B4BG7PRW-Cm3F2ypm.js} +11 -11
- package/dist/{chunk-DI55MBZ5-DvAROTIr.js → chunk-DI55MBZ5-CxISwEU9.js} +44 -44
- package/dist/{chunk-FMBD7UC4-CVr83prI.js → chunk-FMBD7UC4-DZxSUJCY.js} +1 -1
- package/dist/{chunk-QN33PNHL-nSyFq8_s.js → chunk-QN33PNHL-5NUdQ31M.js} +1 -1
- package/dist/{chunk-QZHKN3VN-Dg8JYP6e.js → chunk-QZHKN3VN-CSeHgX9s.js} +1 -1
- package/dist/{chunk-TZMSLE5B-Bmj6LGNW.js → chunk-TZMSLE5B-DfqMo2XK.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-DAkxtl6o.js → classDiagram-2ON5EDUG-6wC7c07U.js} +6 -6
- package/dist/{classDiagram-v2-WZHVMYZB-DAkxtl6o.js → classDiagram-v2-WZHVMYZB-6wC7c07U.js} +6 -6
- package/dist/code-block-QI2IAROF-zqFu2qJj.js +2812 -0
- package/dist/{cose-bilkent-S5V4N54A-DwRYWoaW.js → cose-bilkent-S5V4N54A-BzL4MMWZ.js} +2 -2
- package/dist/{dagre-6UL2VRFP-imN1Fyg8.js → dagre-6UL2VRFP-CwTDE2RX.js} +3 -3
- package/dist/{diagram-PSM6KHXK-DAIDeBLn.js → diagram-PSM6KHXK-UeQhynP7.js} +47 -47
- package/dist/{diagram-QEK2KX5R-DQFy-qK9.js → diagram-QEK2KX5R-DZy1cp9G.js} +13 -13
- package/dist/{diagram-S2PKOQOG-Hlk0Nx_Y.js → diagram-S2PKOQOG-DyT7Ss8-.js} +16 -16
- package/dist/{erDiagram-Q2GNP2WA-C8PZPSaf.js → erDiagram-Q2GNP2WA-CpzaErVm.js} +5 -5
- package/dist/{flowDiagram-NV44I4VS-CgTiIFnt.js → flowDiagram-NV44I4VS-BHP6h-eN.js} +6 -6
- package/dist/{ganttDiagram-JELNMOA3-DzYZEAE_.js → ganttDiagram-JELNMOA3-0qqei9Bz.js} +3 -3
- package/dist/{gitGraphDiagram-NY62KEGX-CPwI-Uag.js → gitGraphDiagram-NY62KEGX-DGukWnfa.js} +16 -16
- package/dist/hooks/useCodeTransform.d.ts +13 -0
- package/dist/{index-C2DJ8qoy.js → index-Zd10d_CE.js} +18512 -11461
- package/dist/index.d.ts +2 -2
- package/dist/{infoDiagram-WHAUD3N6-CcN7ZNYI.js → infoDiagram-WHAUD3N6-CRWuQBon.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-BACao6jz.js → journeyDiagram-XKPGCS4Q-Bl-asDPd.js} +5 -5
- package/dist/{kanban-definition-3W4ZIXB7-Jb7Xwf92.js → kanban-definition-3W4ZIXB7-IdguZzXg.js} +39 -39
- package/dist/{linear-CxGB80S5.js → linear-CRqCHTKs.js} +1 -1
- package/dist/{mermaid-NA5CF7SZ-DekDSZe_.js → mermaid-NA5CF7SZ-CkTMfgBy.js} +1 -1
- package/dist/{mermaid.core-xMGW442o.js → mermaid.core-DyFxH-Px.js} +87 -87
- package/dist/{mindmap-definition-VGOIOE7T-UHZgRHb7.js → mindmap-definition-VGOIOE7T-C8jP5oWr.js} +69 -69
- package/dist/{pieDiagram-ADFJNKIX-CHrTFTbw.js → pieDiagram-ADFJNKIX-DuP0zFKX.js} +23 -23
- package/dist/{quadrantDiagram-AYHSOK5B-CDfhMB18.js → quadrantDiagram-AYHSOK5B-ACKBMWQA.js} +3 -3
- package/dist/{requirementDiagram-UZGBJVZJ-C0aeVQh6.js → requirementDiagram-UZGBJVZJ-DAH6cyPg.js} +4 -4
- package/dist/{sankeyDiagram-TZEHDZUN-kjxRgXd2.js → sankeyDiagram-TZEHDZUN-DpLK8yNI.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-Bs0jyVuH.js → sequenceDiagram-WL72ISMW-CslcsjON.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-CAWwlh9R.js → stateDiagram-FKZM4ZOC-oVuJ6JZY.js} +12 -12
- package/dist/{stateDiagram-v2-4FDKWEC3-9TYlTzc3.js → stateDiagram-v2-4FDKWEC3-Dw3L9jZX.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/tailwind.css +52 -0
- package/dist/{timeline-definition-IT6M3QCI-DrPozOxH.js → timeline-definition-IT6M3QCI-D_aGDXh0.js} +47 -47
- package/dist/{xychartDiagram-PRI3JC2R-BkO8dJff.js → xychartDiagram-PRI3JC2R-u3osfT09.js} +35 -35
- package/package.json +2 -1
- package/dist/ai-input-action/InputAction.d.ts +0 -8
- package/dist/ai-input-action/index.d.ts +0 -1
- package/dist/arc-DN1xn8kz.js +0 -85
- package/dist/channel-BC4mWQQF.js +0 -5
- package/dist/code-block-QI2IAROF-DN-BnDmt.js +0 -9263
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ChatPanel } from './ai-chat-panel';
|
|
2
|
-
import { InputAction } from './ai-input-action';
|
|
3
2
|
import { SummaryCard } from './ai-summary-card';
|
|
4
|
-
|
|
3
|
+
import { PromptCodeEditor } from './ai-prompt-code-editor';
|
|
4
|
+
export { ChatPanel, SummaryCard, PromptCodeEditor };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as e, l as s,
|
|
1
|
+
import { _ as e, l as s, K as n, k as i, L as p } from "./mermaid.core-DyFxH-Px.js";
|
|
2
2
|
import { p as g } from "./treemap-KMMF4GRG-D_L55G0b.js";
|
|
3
|
-
import "./index-
|
|
3
|
+
import "./index-Zd10d_CE.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
var v = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as gt, f as mt, g as lt, b as xt } from "./chunk-TZMSLE5B-
|
|
2
|
-
import { g as kt } from "./chunk-FMBD7UC4-
|
|
3
|
-
import { _ as n, d as R,
|
|
4
|
-
import { d as et } from "./arc-
|
|
5
|
-
import "./index-
|
|
1
|
+
import { d as gt, f as mt, g as lt, b as xt } from "./chunk-TZMSLE5B-DfqMo2XK.js";
|
|
2
|
+
import { g as kt } from "./chunk-FMBD7UC4-DZxSUJCY.js";
|
|
3
|
+
import { _ as n, d as R, o as _t, p as vt, s as bt, g as wt, c as Tt, b as St, v as $t, j as G, k as Mt } from "./mermaid.core-DyFxH-Px.js";
|
|
4
|
+
import { d as et } from "./arc-CYayZuAl.js";
|
|
5
|
+
import "./index-Zd10d_CE.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
var U = function() {
|
package/dist/{kanban-definition-3W4ZIXB7-Jb7Xwf92.js → kanban-definition-3W4ZIXB7-IdguZzXg.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _ as c, l as te, d as W,
|
|
2
|
-
import { g as Ne } from "./chunk-FMBD7UC4-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { _ as c, l as te, d as W, K as fe, ah as ye, ai as be, aj as me, ad as Ee, E as Y, i as G, q as _e, J as ke, ae as Se, af as le, ag as ce } from "./mermaid.core-DyFxH-Px.js";
|
|
2
|
+
import { g as Ne } from "./chunk-FMBD7UC4-DZxSUJCY.js";
|
|
3
|
+
import "./index-Zd10d_CE.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
var $ = function() {
|
|
7
|
-
var t = /* @__PURE__ */ c(function(
|
|
8
|
-
for (n = n || {}, a =
|
|
7
|
+
var t = /* @__PURE__ */ c(function(E, s, n, a) {
|
|
8
|
+
for (n = n || {}, a = E.length; a--; n[E[a]] = s)
|
|
9
9
|
;
|
|
10
10
|
return n;
|
|
11
|
-
}, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15],
|
|
11
|
+
}, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15], _ = [1, 16], f = [1, 20], h = [1, 19], L = [6, 7, 8], C = [1, 26], w = [1, 24], N = [1, 25], i = [6, 7, 11], j = [1, 31], x = [6, 7, 11, 24], P = [1, 6, 13, 16, 17, 20, 23], M = [1, 35], U = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], H = [1, 38], V = {
|
|
12
12
|
trace: /* @__PURE__ */ c(function() {
|
|
13
13
|
}, "trace"),
|
|
14
14
|
yy: {},
|
|
@@ -75,7 +75,7 @@ var $ = function() {
|
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
77
|
}, "anonymous"),
|
|
78
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17:
|
|
78
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, t(L, [2, 3]), { 1: [2, 2] }, t(L, [2, 4]), t(L, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, { 6: d, 9: 22, 12: 11, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, { 6: C, 7: w, 10: 23, 11: N }, t(i, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: f, 23: h }), t(i, [2, 19]), t(i, [2, 21], { 15: 30, 24: j }), t(i, [2, 22]), t(i, [2, 23]), t(x, [2, 25]), t(x, [2, 26]), t(x, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: C, 7: w, 10: 34, 11: N }, { 1: [2, 7], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: _, 18: 17, 19: 18, 20: f, 23: h }, t(P, [2, 14], { 7: M, 11: U }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(i, [2, 16], { 15: 37, 24: j }), t(i, [2, 17]), t(i, [2, 18]), t(i, [2, 20], { 24: H }), t(x, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, t(P, [2, 13], { 7: M, 11: U }), t(A, [2, 11]), t(A, [2, 12]), t(i, [2, 15], { 24: H }), t(x, [2, 30]), { 22: [1, 41] }, t(x, [2, 27]), t(x, [2, 29])],
|
|
79
79
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
80
80
|
parseError: /* @__PURE__ */ c(function(s, n) {
|
|
81
81
|
if (n.recoverable)
|
|
@@ -103,20 +103,20 @@ var $ = function() {
|
|
|
103
103
|
return S = o.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (o = S, S = o.pop()), S = n.symbols_[S] || S), S;
|
|
104
104
|
}
|
|
105
105
|
c(ae, "lex");
|
|
106
|
-
for (var k, R, v, Q, F = {},
|
|
106
|
+
for (var k, R, v, Q, F = {}, K, I, oe, X; ; ) {
|
|
107
107
|
if (R = a[a.length - 1], this.defaultActions[R] ? v = this.defaultActions[R] : ((k === null || typeof k > "u") && (k = ae()), v = B[R] && B[R][k]), typeof v > "u" || !v.length || !v[0]) {
|
|
108
108
|
var Z = "";
|
|
109
|
-
|
|
110
|
-
for (
|
|
111
|
-
this.terminals_[
|
|
109
|
+
X = [];
|
|
110
|
+
for (K in B[R])
|
|
111
|
+
this.terminals_[K] && K > ue && X.push("'" + this.terminals_[K] + "'");
|
|
112
112
|
b.showPosition ? Z = "Parse error on line " + (z + 1) + `:
|
|
113
113
|
` + b.showPosition() + `
|
|
114
|
-
Expecting ` +
|
|
114
|
+
Expecting ` + X.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (z + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
|
|
115
115
|
text: b.match,
|
|
116
116
|
token: this.terminals_[k] || k,
|
|
117
117
|
line: b.yylineno,
|
|
118
118
|
loc: q,
|
|
119
|
-
expected:
|
|
119
|
+
expected: X
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
if (v[0] instanceof Array && v.length > 1)
|
|
@@ -153,7 +153,7 @@ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
153
153
|
return !0;
|
|
154
154
|
}, "parse")
|
|
155
155
|
}, m = /* @__PURE__ */ function() {
|
|
156
|
-
var
|
|
156
|
+
var E = {
|
|
157
157
|
EOF: 1,
|
|
158
158
|
parseError: /* @__PURE__ */ c(function(n, a) {
|
|
159
159
|
if (this.yy.parser)
|
|
@@ -425,7 +425,7 @@ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
425
425
|
rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}@]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
|
|
426
426
|
conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
|
|
427
427
|
};
|
|
428
|
-
return
|
|
428
|
+
return E;
|
|
429
429
|
}();
|
|
430
430
|
V.lexer = m;
|
|
431
431
|
function O() {
|
|
@@ -450,7 +450,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
450
450
|
}, "getSections"), Le = /* @__PURE__ */ c(function() {
|
|
451
451
|
const t = [], g = [], d = he(), r = W();
|
|
452
452
|
for (const p of d) {
|
|
453
|
-
const
|
|
453
|
+
const _ = {
|
|
454
454
|
id: p.id,
|
|
455
455
|
label: G(p.label ?? "", r),
|
|
456
456
|
isGroup: !0,
|
|
@@ -459,7 +459,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
459
459
|
level: p.level,
|
|
460
460
|
look: r.look
|
|
461
461
|
};
|
|
462
|
-
g.push(
|
|
462
|
+
g.push(_);
|
|
463
463
|
const f = D.filter((h) => h.parentId === p.id);
|
|
464
464
|
for (const h of f) {
|
|
465
465
|
const L = {
|
|
@@ -483,8 +483,8 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
483
483
|
return { nodes: g, edges: t, other: {}, config: W() };
|
|
484
484
|
}, "getData"), Oe = /* @__PURE__ */ c((t, g, d, r, p) => {
|
|
485
485
|
var C, w;
|
|
486
|
-
const
|
|
487
|
-
let f = ((C =
|
|
486
|
+
const _ = W();
|
|
487
|
+
let f = ((C = _.mindmap) == null ? void 0 : C.padding) ?? Y.mindmap.padding;
|
|
488
488
|
switch (r) {
|
|
489
489
|
case y.ROUNDED_RECT:
|
|
490
490
|
case y.RECT:
|
|
@@ -492,10 +492,10 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
492
492
|
f *= 2;
|
|
493
493
|
}
|
|
494
494
|
const h = {
|
|
495
|
-
id: G(g,
|
|
495
|
+
id: G(g, _) || "kbn" + ee++,
|
|
496
496
|
level: t,
|
|
497
|
-
label: G(d,
|
|
498
|
-
width: ((w =
|
|
497
|
+
label: G(d, _),
|
|
498
|
+
width: ((w = _.mindmap) == null ? void 0 : w.maxNodeWidth) ?? Y.mindmap.maxNodeWidth,
|
|
499
499
|
padding: f,
|
|
500
500
|
isGroup: !1
|
|
501
501
|
};
|
|
@@ -506,7 +506,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
506
506
|
` : N = `{
|
|
507
507
|
` + p + `
|
|
508
508
|
}`;
|
|
509
|
-
const i =
|
|
509
|
+
const i = _e(N, { schema: ke });
|
|
510
510
|
if (i.shape && (i.shape !== i.shape.toLowerCase() || i.shape.includes("_")))
|
|
511
511
|
throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);
|
|
512
512
|
i != null && i.shape && i.shape === "kanbanItem" && (h.shape = i == null ? void 0 : i.shape), i != null && i.label && (h.label = i == null ? void 0 : i.label), i != null && i.icon && (h.icon = i == null ? void 0 : i.icon.toString()), i != null && i.assigned && (h.assigned = i == null ? void 0 : i.assigned.toString()), i != null && i.ticket && (h.ticket = i == null ? void 0 : i.ticket.toString()), i != null && i.priority && (h.priority = i == null ? void 0 : i.priority);
|
|
@@ -578,50 +578,50 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
578
578
|
getLogger: Te,
|
|
579
579
|
getElementById: Re
|
|
580
580
|
}, Ve = Pe, Be = /* @__PURE__ */ c(async (t, g, d, r) => {
|
|
581
|
-
var M, U, A,
|
|
581
|
+
var M, U, A, H, V;
|
|
582
582
|
te.debug(`Rendering kanban diagram
|
|
583
583
|
` + t);
|
|
584
|
-
const
|
|
584
|
+
const _ = r.db.getData(), f = W();
|
|
585
585
|
f.htmlLabels = !1;
|
|
586
586
|
const h = fe(g), L = h.append("g");
|
|
587
587
|
L.attr("class", "sections");
|
|
588
588
|
const C = h.append("g");
|
|
589
589
|
C.attr("class", "items");
|
|
590
|
-
const w =
|
|
590
|
+
const w = _.nodes.filter(
|
|
591
591
|
// TODO: TypeScript 5.5 will infer this predicate automatically
|
|
592
592
|
(m) => m.isGroup
|
|
593
593
|
);
|
|
594
594
|
let N = 0;
|
|
595
|
-
const i = 10,
|
|
595
|
+
const i = 10, j = [];
|
|
596
596
|
let x = 25;
|
|
597
597
|
for (const m of w) {
|
|
598
598
|
const O = ((M = f == null ? void 0 : f.kanban) == null ? void 0 : M.sectionWidth) || 200;
|
|
599
599
|
N = N + 1, m.x = O * N + (N - 1) * i / 2, m.width = O, m.y = 0, m.height = O * 3, m.rx = 5, m.ry = 5, m.cssClasses = m.cssClasses + " section-" + N;
|
|
600
|
-
const
|
|
601
|
-
x = Math.max(x, (U =
|
|
600
|
+
const E = await ye(L, m);
|
|
601
|
+
x = Math.max(x, (U = E == null ? void 0 : E.labelBBox) == null ? void 0 : U.height), j.push(E);
|
|
602
602
|
}
|
|
603
603
|
let P = 0;
|
|
604
604
|
for (const m of w) {
|
|
605
|
-
const O =
|
|
605
|
+
const O = j[P];
|
|
606
606
|
P = P + 1;
|
|
607
|
-
const
|
|
607
|
+
const E = ((A = f == null ? void 0 : f.kanban) == null ? void 0 : A.sectionWidth) || 200, s = -E * 3 / 2 + x;
|
|
608
608
|
let n = s;
|
|
609
|
-
const a =
|
|
609
|
+
const a = _.nodes.filter((e) => e.parentId === m.id);
|
|
610
610
|
for (const e of a) {
|
|
611
611
|
if (e.isGroup)
|
|
612
612
|
throw new Error("Groups within groups are not allowed in Kanban diagrams");
|
|
613
|
-
e.x = m.x, e.width =
|
|
613
|
+
e.x = m.x, e.width = E - 1.5 * i;
|
|
614
614
|
const l = (await be(C, e, { config: f })).node().getBBox();
|
|
615
615
|
e.y = n + l.height / 2, await me(e), n = e.y + l.height / 2 + i / 2;
|
|
616
616
|
}
|
|
617
617
|
const o = O.cluster.select("rect"), u = Math.max(n - s + 3 * i, 50) + (x - 25);
|
|
618
618
|
o.attr("height", u);
|
|
619
619
|
}
|
|
620
|
-
|
|
620
|
+
Ee(
|
|
621
621
|
void 0,
|
|
622
622
|
h,
|
|
623
|
-
((
|
|
624
|
-
((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ??
|
|
623
|
+
((H = f.mindmap) == null ? void 0 : H.padding) ?? Y.kanban.padding,
|
|
624
|
+
((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ?? Y.kanban.useMaxWidth
|
|
625
625
|
);
|
|
626
626
|
}, "draw"), Fe = {
|
|
627
627
|
draw: Be
|
|
@@ -681,7 +681,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
681
681
|
`;
|
|
682
682
|
}
|
|
683
683
|
return g;
|
|
684
|
-
}, "genSections"),
|
|
684
|
+
}, "genSections"), je = /* @__PURE__ */ c((t) => `
|
|
685
685
|
.edge {
|
|
686
686
|
stroke-width: 3;
|
|
687
687
|
}
|
|
@@ -713,12 +713,12 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
713
713
|
text-align: center;
|
|
714
714
|
}
|
|
715
715
|
${Ne()}
|
|
716
|
-
`, "getStyles"), Me =
|
|
716
|
+
`, "getStyles"), Me = je, Xe = {
|
|
717
717
|
db: Ve,
|
|
718
718
|
renderer: Fe,
|
|
719
719
|
parser: xe,
|
|
720
720
|
styles: Me
|
|
721
721
|
};
|
|
722
722
|
export {
|
|
723
|
-
|
|
723
|
+
Xe as diagram
|
|
724
724
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aB as j, aC as p, aD as w, aE as k, aF as D } from "./mermaid.core-
|
|
1
|
+
import { aB as j, aC as p, aD as w, aE as k, aF as D } from "./mermaid.core-DyFxH-Px.js";
|
|
2
2
|
import { i as F } from "./init-DjUOC4st.js";
|
|
3
3
|
import { e as g, f as q, a as B, b as z } from "./defaultLocale-DcQU6Vee.js";
|
|
4
4
|
function M(n, r) {
|