@altimateai/ui-components 0.0.72-beta4 → 0.0.72
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/CoachForm.js +3406 -3431
- package/dist/Stack.js +3 -3
- package/dist/_basePickBy.js +76 -76
- package/dist/_baseUniq.js +197 -197
- package/dist/arc.js +36 -36
- package/dist/architectureDiagram-VXUJARFQ.js +1 -1
- package/dist/blockDiagram-VD42YOAC.js +1 -1
- package/dist/c4Diagram-YG6GDRKO.js +22 -22
- package/dist/channel.js +2 -2
- package/dist/chatbotV2/index.js +48 -48
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-55IACEB6.js +2 -2
- package/dist/chunk-B4BG7PRW.js +1 -1
- package/dist/chunk-DI55MBZ5.js +1 -1
- package/dist/chunk-FMBD7UC4.js +1 -1
- package/dist/chunk-QN33PNHL.js +5 -5
- package/dist/chunk-QZHKN3VN.js +1 -1
- package/dist/chunk-TZMSLE5B.js +1 -1
- package/dist/classDiagram-2ON5EDUG.js +1 -1
- package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
- package/dist/cose-bilkent-S5V4N54A.js +1 -1
- package/dist/dagre-6UL2VRFP.js +58 -58
- package/dist/diagram-PSM6KHXK.js +69 -69
- package/dist/diagram-QEK2KX5R.js +26 -26
- package/dist/diagram-S2PKOQOG.js +9 -9
- package/dist/erDiagram-Q2GNP2WA.js +12 -12
- package/dist/flowDiagram-NV44I4VS.js +6 -6
- package/dist/ganttDiagram-LVOFAZNH.js +322 -322
- package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
- package/dist/graph.js +5 -5
- package/dist/index.js +30 -30
- package/dist/infoDiagram-F6ZHWCRC.js +14 -14
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/kanban-definition-3W4ZIXB7.js +54 -54
- package/dist/layout.js +68 -68
- package/dist/lineage/index.js +1 -1
- package/dist/main.js +2 -2
- package/dist/mermaid-parser.core.js +155 -155
- package/dist/mindmap-definition-VGOIOE7T.js +16 -16
- package/dist/pieDiagram-ADFJNKIX.js +25 -25
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/redux-toolkit.modern.js +11287 -2184
- package/dist/requirementDiagram-UZGBJVZJ.js +1 -1
- package/dist/sankeyDiagram-TZEHDZUN.js +16 -16
- package/dist/sequenceDiagram-WL72ISMW.js +28 -28
- package/dist/shadcn/index.js +2 -2
- package/dist/stateDiagram-FKZM4ZOC.js +34 -34
- package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
- package/dist/timeline-definition-IT6M3QCI.js +54 -54
- package/dist/xychartDiagram-PRI3JC2R.js +32 -32
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as Z } from "./chunk-4BX2VUAB.js";
|
|
2
2
|
import { I as F } from "./chunk-QZHKN3VN.js";
|
|
3
|
-
import {
|
|
3
|
+
import { au as U, a1 as h, a7 as rr, av as er, aw as tr, ax as ar, ad as m, a3 as nr, a4 as sr, a5 as or, a6 as cr, ag as ir, ah as dr, a9 as B, an as hr, am as lr, ay as $r } from "./CoachForm.js";
|
|
4
4
|
import { p as fr } from "./mermaid-parser.core.js";
|
|
5
5
|
import { s as gr } from "./redux-toolkit.modern.js";
|
|
6
6
|
var u = {
|
|
@@ -239,12 +239,12 @@ var xr = /* @__PURE__ */ h(function(t) {
|
|
|
239
239
|
}, r;
|
|
240
240
|
}
|
|
241
241
|
}, "checkout");
|
|
242
|
-
function
|
|
242
|
+
function A(t, r, a) {
|
|
243
243
|
const s = t.indexOf(r);
|
|
244
244
|
s === -1 ? t.push(a) : t.splice(s, 1, a);
|
|
245
245
|
}
|
|
246
|
-
h(
|
|
247
|
-
function
|
|
246
|
+
h(A, "upsert");
|
|
247
|
+
function D(t) {
|
|
248
248
|
const r = t.reduce((e, n) => e.seq > n.seq ? e : n, t[0]);
|
|
249
249
|
let a = "";
|
|
250
250
|
t.forEach(function(e) {
|
|
@@ -255,22 +255,22 @@ function A(t) {
|
|
|
255
255
|
i.records.branches.get(e) === r.id && s.push(e);
|
|
256
256
|
if (m.debug(s.join(" ")), r.parents && r.parents.length == 2 && r.parents[0] && r.parents[1]) {
|
|
257
257
|
const e = i.records.commits.get(r.parents[0]);
|
|
258
|
-
|
|
258
|
+
A(t, r, e), r.parents[1] && t.push(i.records.commits.get(r.parents[1]));
|
|
259
259
|
} else {
|
|
260
260
|
if (r.parents.length == 0)
|
|
261
261
|
return;
|
|
262
262
|
if (r.parents[0]) {
|
|
263
263
|
const e = i.records.commits.get(r.parents[0]);
|
|
264
|
-
|
|
264
|
+
A(t, r, e);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
t = N(t, (e) => e.id),
|
|
267
|
+
t = N(t, (e) => e.id), D(t);
|
|
268
268
|
}
|
|
269
|
-
h(
|
|
269
|
+
h(D, "prettyPrintCommitHistory");
|
|
270
270
|
var Cr = /* @__PURE__ */ h(function() {
|
|
271
271
|
m.debug(i.records.commits);
|
|
272
272
|
const t = V()[0];
|
|
273
|
-
|
|
273
|
+
D([t]);
|
|
274
274
|
}, "prettyPrint"), Er = /* @__PURE__ */ h(function() {
|
|
275
275
|
i.reset(), hr();
|
|
276
276
|
}, "clear"), Br = /* @__PURE__ */ h(function() {
|
|
@@ -380,7 +380,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
380
380
|
const e = E.get(s).y;
|
|
381
381
|
e <= a && (r = s, a = e);
|
|
382
382
|
}), r || void 0;
|
|
383
|
-
}, "findClosestParentBT"),
|
|
383
|
+
}, "findClosestParentBT"), Ar = /* @__PURE__ */ h((t, r, a) => {
|
|
384
384
|
let s = a, e = a;
|
|
385
385
|
const n = [];
|
|
386
386
|
t.forEach((c) => {
|
|
@@ -399,7 +399,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
399
399
|
E.set(o.id, { x: l, y: f });
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
|
-
}, "setParallelBTPos"),
|
|
402
|
+
}, "setParallelBTPos"), Dr = /* @__PURE__ */ h((t) => {
|
|
403
403
|
var s;
|
|
404
404
|
const r = Q(t.parents.filter((e) => e !== null));
|
|
405
405
|
if (!r)
|
|
@@ -408,7 +408,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
408
408
|
if (a === void 0)
|
|
409
409
|
throw new Error(`Closest parent position not found for commit ${t.id}`);
|
|
410
410
|
return a;
|
|
411
|
-
}, "findClosestParentPos"), Yr = /* @__PURE__ */ h((t) =>
|
|
411
|
+
}, "findClosestParentPos"), Yr = /* @__PURE__ */ h((t) => Dr(t) + I, "calculateCommitPosition"), Kr = /* @__PURE__ */ h((t, r) => {
|
|
412
412
|
const a = C.get(t.branch);
|
|
413
413
|
if (!a)
|
|
414
414
|
throw new Error(`Branch not found for commit ${t.id}`);
|
|
@@ -551,7 +551,7 @@ var Cr = /* @__PURE__ */ h(function() {
|
|
|
551
551
|
return d !== void 0 && y !== void 0 ? d - y : 0;
|
|
552
552
|
}, "sortKeys");
|
|
553
553
|
let l = c.sort($);
|
|
554
|
-
x === "BT" && (o &&
|
|
554
|
+
x === "BT" && (o && Ar(l, r, n), l = l.reverse()), l.forEach((f) => {
|
|
555
555
|
var y;
|
|
556
556
|
const g = r.get(f);
|
|
557
557
|
if (!g)
|
package/dist/graph.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bq as N, br as j, bs as f, bt as b, bu as E } from "./CoachForm.js";
|
|
2
2
|
import { a as v, c as P, k as _, f as g, d, i as l, v as p, r as D } from "./_baseUniq.js";
|
|
3
3
|
var w = N(function(o) {
|
|
4
4
|
return v(P(o, 1, j, !0));
|
|
@@ -176,7 +176,7 @@ class L {
|
|
|
176
176
|
throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
177
177
|
this.setNode(e), this.setNode(t), this._edgeLabels[h] = r ? i : this._defaultEdgeLabelFn(e, t, s);
|
|
178
178
|
var u = M(this._isDirected, e, t, s);
|
|
179
|
-
return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[h] = u,
|
|
179
|
+
return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[h] = u, y(this._preds[t], e), y(this._sucs[e], t), this._in[t][h] = u, this._out[e][h] = u, this._edgeCount++, this;
|
|
180
180
|
}
|
|
181
181
|
edge(e, t, s) {
|
|
182
182
|
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s);
|
|
@@ -188,7 +188,7 @@ class L {
|
|
|
188
188
|
}
|
|
189
189
|
removeEdge(e, t, s) {
|
|
190
190
|
var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s), r = this._edgeObjs[i];
|
|
191
|
-
return r && (e = r.v, t = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i],
|
|
191
|
+
return r && (e = r.v, t = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i], C(this._preds[t], e), C(this._sucs[e], t), delete this._in[t][i], delete this._out[e][i], this._edgeCount--), this;
|
|
192
192
|
}
|
|
193
193
|
inEdges(e, t) {
|
|
194
194
|
var s = this._in[e];
|
|
@@ -216,10 +216,10 @@ class L {
|
|
|
216
216
|
}
|
|
217
217
|
L.prototype._nodeCount = 0;
|
|
218
218
|
L.prototype._edgeCount = 0;
|
|
219
|
-
function
|
|
219
|
+
function y(o, e) {
|
|
220
220
|
o[e] ? o[e]++ : o[e] = 1;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function C(o, e) {
|
|
223
223
|
--o[e] || delete o[e];
|
|
224
224
|
}
|
|
225
225
|
function c(o, e, t, s) {
|
package/dist/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { j as e, i as s, h as r, C as t, D as
|
|
2
|
-
import { C, T } from "./dayjs.min.js";
|
|
3
|
-
import {
|
|
4
|
-
import { A as
|
|
5
|
-
import { X as
|
|
1
|
+
import { j as e, i as s, h as r, C as t, D as c, L as n, T as i, m, l, k as p } from "./main.js";
|
|
2
|
+
import { C as T, T as v } from "./dayjs.min.js";
|
|
3
|
+
import { cr as h, cg as k, ce as u, cq as M, cp as P, ch as d, co as g, cf as x, cu as A, cv as S, ct as j, cn as y, cs as b, ck as B, cl as D, cm as F, cj as G } from "./CoachForm.js";
|
|
4
|
+
import { A as I, l as w, I as q } from "./redux-toolkit.modern.js";
|
|
5
|
+
import { X as H } from "./Stack.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
I as ApiHelper,
|
|
8
|
+
h as CoachForm,
|
|
9
9
|
e as CoachFormButton,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
w as CodeBlock,
|
|
11
|
+
T as Collapse,
|
|
12
|
+
k as ContentCategory,
|
|
13
13
|
s as ConversationGroupProvider,
|
|
14
14
|
r as ConversationInputForm,
|
|
15
15
|
t as ConversationSources,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
c as DbtDocs,
|
|
17
|
+
q as IconButton,
|
|
18
|
+
n as Learnings,
|
|
19
|
+
u as LoadingButton,
|
|
20
|
+
M as Markdown,
|
|
21
|
+
P as MermaidDiagram,
|
|
22
|
+
d as PersonalizationScope,
|
|
23
|
+
g as Plotly,
|
|
24
24
|
x as Popconfirm,
|
|
25
25
|
A as ProjectGovernorAllowedFiles,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
S as ProjectGovernorCheckSchema,
|
|
27
|
+
j as ProjectGovernorCheckTypes,
|
|
28
|
+
y as Spinner,
|
|
29
|
+
H as Stack,
|
|
30
|
+
v as Table,
|
|
31
|
+
b as TaskLabels,
|
|
32
|
+
B as TeamMateActionType,
|
|
33
|
+
D as TeamMateAvailability,
|
|
34
|
+
i as TeamMateProvider,
|
|
35
|
+
m as TeamMates,
|
|
36
36
|
F as TeamMatesConfig,
|
|
37
|
-
|
|
37
|
+
l as TeammateActions,
|
|
38
38
|
G as learningSchema,
|
|
39
|
-
|
|
39
|
+
p as useTeamMateContext
|
|
40
40
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p } from "./mermaid-parser.core.js";
|
|
3
|
-
var
|
|
4
|
-
parse: /* @__PURE__ */ e(async (
|
|
5
|
-
const
|
|
6
|
-
s.debug(
|
|
1
|
+
import { a1 as e, ad as s, az as o, ae as i, aA as g } from "./CoachForm.js";
|
|
2
|
+
import { p as d } from "./mermaid-parser.core.js";
|
|
3
|
+
var p = {
|
|
4
|
+
parse: /* @__PURE__ */ e(async (a) => {
|
|
5
|
+
const r = await d("info", a);
|
|
6
|
+
s.debug(r);
|
|
7
7
|
}, "parse")
|
|
8
|
-
},
|
|
8
|
+
}, v = {
|
|
9
9
|
version: g.version + ""
|
|
10
|
-
}, c = /* @__PURE__ */ e(() =>
|
|
10
|
+
}, c = /* @__PURE__ */ e(() => v.version, "getVersion"), m = {
|
|
11
11
|
getVersion: c
|
|
12
|
-
},
|
|
12
|
+
}, f = /* @__PURE__ */ e((a, r, n) => {
|
|
13
13
|
s.debug(`rendering info diagram
|
|
14
|
-
` +
|
|
15
|
-
const t = o(
|
|
14
|
+
` + a);
|
|
15
|
+
const t = o(r);
|
|
16
16
|
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${n}`);
|
|
17
|
-
}, "draw"),
|
|
18
|
-
parser:
|
|
17
|
+
}, "draw"), l = { draw: f }, b = {
|
|
18
|
+
parser: p,
|
|
19
19
|
db: m,
|
|
20
|
-
renderer:
|
|
20
|
+
renderer: l
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
23
|
b as diagram
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as gt, f as mt, g as lt, b as xt } from "./chunk-TZMSLE5B.js";
|
|
2
2
|
import { g as kt } from "./chunk-FMBD7UC4.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a1 as n, a7 as R, ag as _t, ah as vt, a3 as bt, a4 as wt, a6 as Tt, a5 as St, an as $t, ae as Mt } from "./CoachForm.js";
|
|
4
4
|
import { s as G } from "./redux-toolkit.modern.js";
|
|
5
5
|
import { d as et } from "./arc.js";
|
|
6
6
|
var U = function() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as c, ad as te, a7 as W, az as fe, b5 as ye, b6 as be, b7 as me, aO as Ee, au as Y, ac as G, ai as _e, aj as ke, aP as Se, aQ as le, aR as ce } from "./CoachForm.js";
|
|
2
2
|
import { g as Ne } from "./chunk-FMBD7UC4.js";
|
|
3
3
|
var $ = function() {
|
|
4
|
-
var t = /* @__PURE__ */ c(function(
|
|
5
|
-
for (n = n || {}, a =
|
|
4
|
+
var t = /* @__PURE__ */ c(function(E, s, n, a) {
|
|
5
|
+
for (n = n || {}, a = E.length; a--; n[E[a]] = s) ;
|
|
6
6
|
return n;
|
|
7
|
-
}, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15],
|
|
7
|
+
}, "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 = {
|
|
8
8
|
trace: /* @__PURE__ */ c(function() {
|
|
9
9
|
}, "trace"),
|
|
10
10
|
yy: {},
|
|
@@ -71,7 +71,7 @@ var $ = function() {
|
|
|
71
71
|
break;
|
|
72
72
|
}
|
|
73
73
|
}, "anonymous"),
|
|
74
|
-
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:
|
|
74
|
+
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])],
|
|
75
75
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
76
76
|
parseError: /* @__PURE__ */ c(function(s, n) {
|
|
77
77
|
if (n.recoverable)
|
|
@@ -86,8 +86,8 @@ var $ = function() {
|
|
|
86
86
|
for (var J in this.yy)
|
|
87
87
|
Object.prototype.hasOwnProperty.call(this.yy, J) && (T.yy[J] = this.yy[J]);
|
|
88
88
|
b.setInput(s, T.yy), T.yy.lexer = b, T.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
|
|
89
|
-
var
|
|
90
|
-
e.push(
|
|
89
|
+
var Q = b.yylloc;
|
|
90
|
+
e.push(Q);
|
|
91
91
|
var de = b.options && b.options.ranges;
|
|
92
92
|
typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
93
93
|
function pe(S) {
|
|
@@ -99,38 +99,38 @@ var $ = function() {
|
|
|
99
99
|
return S = o.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (o = S, S = o.pop()), S = n.symbols_[S] || S), S;
|
|
100
100
|
}
|
|
101
101
|
c(ae, "lex");
|
|
102
|
-
for (var k, R, v,
|
|
102
|
+
for (var k, R, v, q, F = {}, X, I, oe, K; ; ) {
|
|
103
103
|
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]) {
|
|
104
104
|
var Z = "";
|
|
105
|
-
|
|
105
|
+
K = [];
|
|
106
106
|
for (X in B[R])
|
|
107
|
-
this.terminals_[X] && X > ue &&
|
|
107
|
+
this.terminals_[X] && X > ue && K.push("'" + this.terminals_[X] + "'");
|
|
108
108
|
b.showPosition ? Z = "Parse error on line " + (z + 1) + `:
|
|
109
109
|
` + b.showPosition() + `
|
|
110
|
-
Expecting ` +
|
|
110
|
+
Expecting ` + K.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, {
|
|
111
111
|
text: b.match,
|
|
112
112
|
token: this.terminals_[k] || k,
|
|
113
113
|
line: b.yylineno,
|
|
114
|
-
loc:
|
|
115
|
-
expected:
|
|
114
|
+
loc: Q,
|
|
115
|
+
expected: K
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
if (v[0] instanceof Array && v.length > 1)
|
|
119
119
|
throw new Error("Parse Error: multiple actions possible at state: " + R + ", token: " + k);
|
|
120
120
|
switch (v[0]) {
|
|
121
121
|
case 1:
|
|
122
|
-
a.push(k), u.push(b.yytext), e.push(b.yylloc), a.push(v[1]), k = null, ie = b.yyleng, l = b.yytext, z = b.yylineno,
|
|
122
|
+
a.push(k), u.push(b.yytext), e.push(b.yylloc), a.push(v[1]), k = null, ie = b.yyleng, l = b.yytext, z = b.yylineno, Q = b.yylloc;
|
|
123
123
|
break;
|
|
124
124
|
case 2:
|
|
125
|
-
if (I = this.productions_[v[1]][1],
|
|
125
|
+
if (I = this.productions_[v[1]][1], F.$ = u[u.length - I], F._$ = {
|
|
126
126
|
first_line: e[e.length - (I || 1)].first_line,
|
|
127
127
|
last_line: e[e.length - 1].last_line,
|
|
128
128
|
first_column: e[e.length - (I || 1)].first_column,
|
|
129
129
|
last_column: e[e.length - 1].last_column
|
|
130
|
-
}, de && (
|
|
130
|
+
}, de && (F._$.range = [
|
|
131
131
|
e[e.length - (I || 1)].range[0],
|
|
132
132
|
e[e.length - 1].range[1]
|
|
133
|
-
]),
|
|
133
|
+
]), q = this.performAction.apply(F, [
|
|
134
134
|
l,
|
|
135
135
|
ie,
|
|
136
136
|
z,
|
|
@@ -138,9 +138,9 @@ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
138
138
|
v[1],
|
|
139
139
|
u,
|
|
140
140
|
e
|
|
141
|
-
].concat(ge)), typeof
|
|
142
|
-
return
|
|
143
|
-
I && (a = a.slice(0, -1 * I * 2), u = u.slice(0, -1 * I), e = e.slice(0, -1 * I)), a.push(this.productions_[v[1]][0]), u.push(
|
|
141
|
+
].concat(ge)), typeof q < "u")
|
|
142
|
+
return q;
|
|
143
|
+
I && (a = a.slice(0, -1 * I * 2), u = u.slice(0, -1 * I), e = e.slice(0, -1 * I)), a.push(this.productions_[v[1]][0]), u.push(F.$), e.push(F._$), oe = B[a[a.length - 2]][a[a.length - 1]], a.push(oe);
|
|
144
144
|
break;
|
|
145
145
|
case 3:
|
|
146
146
|
return !0;
|
|
@@ -149,7 +149,7 @@ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
149
149
|
return !0;
|
|
150
150
|
}, "parse")
|
|
151
151
|
}, m = /* @__PURE__ */ function() {
|
|
152
|
-
var
|
|
152
|
+
var E = {
|
|
153
153
|
EOF: 1,
|
|
154
154
|
parseError: /* @__PURE__ */ c(function(n, a) {
|
|
155
155
|
if (this.yy.parser)
|
|
@@ -421,7 +421,7 @@ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
421
421
|
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],
|
|
422
422
|
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 } }
|
|
423
423
|
};
|
|
424
|
-
return
|
|
424
|
+
return E;
|
|
425
425
|
}();
|
|
426
426
|
V.lexer = m;
|
|
427
427
|
function O() {
|
|
@@ -446,22 +446,22 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
446
446
|
}, "getSections"), Le = /* @__PURE__ */ c(function() {
|
|
447
447
|
const t = [], g = [], d = he(), r = W();
|
|
448
448
|
for (const p of d) {
|
|
449
|
-
const
|
|
449
|
+
const _ = {
|
|
450
450
|
id: p.id,
|
|
451
|
-
label:
|
|
451
|
+
label: G(p.label ?? "", r),
|
|
452
452
|
isGroup: !0,
|
|
453
453
|
ticket: p.ticket,
|
|
454
454
|
shape: "kanbanSection",
|
|
455
455
|
level: p.level,
|
|
456
456
|
look: r.look
|
|
457
457
|
};
|
|
458
|
-
g.push(
|
|
458
|
+
g.push(_);
|
|
459
459
|
const f = D.filter((h) => h.parentId === p.id);
|
|
460
460
|
for (const h of f) {
|
|
461
461
|
const L = {
|
|
462
462
|
id: h.id,
|
|
463
463
|
parentId: p.id,
|
|
464
|
-
label:
|
|
464
|
+
label: G(h.label ?? "", r),
|
|
465
465
|
isGroup: !1,
|
|
466
466
|
ticket: h == null ? void 0 : h.ticket,
|
|
467
467
|
priority: h == null ? void 0 : h.priority,
|
|
@@ -479,8 +479,8 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
479
479
|
return { nodes: g, edges: t, other: {}, config: W() };
|
|
480
480
|
}, "getData"), Oe = /* @__PURE__ */ c((t, g, d, r, p) => {
|
|
481
481
|
var C, w;
|
|
482
|
-
const
|
|
483
|
-
let f = ((C =
|
|
482
|
+
const _ = W();
|
|
483
|
+
let f = ((C = _.mindmap) == null ? void 0 : C.padding) ?? Y.mindmap.padding;
|
|
484
484
|
switch (r) {
|
|
485
485
|
case y.ROUNDED_RECT:
|
|
486
486
|
case y.RECT:
|
|
@@ -488,10 +488,10 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
488
488
|
f *= 2;
|
|
489
489
|
}
|
|
490
490
|
const h = {
|
|
491
|
-
id:
|
|
491
|
+
id: G(g, _) || "kbn" + ee++,
|
|
492
492
|
level: t,
|
|
493
|
-
label:
|
|
494
|
-
width: ((w =
|
|
493
|
+
label: G(d, _),
|
|
494
|
+
width: ((w = _.mindmap) == null ? void 0 : w.maxNodeWidth) ?? Y.mindmap.maxNodeWidth,
|
|
495
495
|
padding: f,
|
|
496
496
|
isGroup: !1
|
|
497
497
|
};
|
|
@@ -502,7 +502,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
502
502
|
` : N = `{
|
|
503
503
|
` + p + `
|
|
504
504
|
}`;
|
|
505
|
-
const i =
|
|
505
|
+
const i = _e(N, { schema: ke });
|
|
506
506
|
if (i.shape && (i.shape !== i.shape.toLowerCase() || i.shape.includes("_")))
|
|
507
507
|
throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);
|
|
508
508
|
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);
|
|
@@ -541,7 +541,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
541
541
|
if (!t)
|
|
542
542
|
return;
|
|
543
543
|
const g = W(), d = D[D.length - 1];
|
|
544
|
-
t.icon && (d.icon =
|
|
544
|
+
t.icon && (d.icon = G(t.icon, g)), t.class && (d.cssClasses = G(t.class, g));
|
|
545
545
|
}, "decorateNode"), Ae = /* @__PURE__ */ c((t) => {
|
|
546
546
|
switch (t) {
|
|
547
547
|
case y.DEFAULT:
|
|
@@ -574,54 +574,54 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
574
574
|
getLogger: Te,
|
|
575
575
|
getElementById: Re
|
|
576
576
|
}, Ve = Pe, Be = /* @__PURE__ */ c(async (t, g, d, r) => {
|
|
577
|
-
var
|
|
577
|
+
var M, U, A, H, V;
|
|
578
578
|
te.debug(`Rendering kanban diagram
|
|
579
579
|
` + t);
|
|
580
|
-
const
|
|
580
|
+
const _ = r.db.getData(), f = W();
|
|
581
581
|
f.htmlLabels = !1;
|
|
582
582
|
const h = fe(g), L = h.append("g");
|
|
583
583
|
L.attr("class", "sections");
|
|
584
584
|
const C = h.append("g");
|
|
585
585
|
C.attr("class", "items");
|
|
586
|
-
const w =
|
|
586
|
+
const w = _.nodes.filter(
|
|
587
587
|
// TODO: TypeScript 5.5 will infer this predicate automatically
|
|
588
588
|
(m) => m.isGroup
|
|
589
589
|
);
|
|
590
590
|
let N = 0;
|
|
591
|
-
const i = 10,
|
|
591
|
+
const i = 10, j = [];
|
|
592
592
|
let x = 25;
|
|
593
593
|
for (const m of w) {
|
|
594
|
-
const O = ((
|
|
594
|
+
const O = ((M = f == null ? void 0 : f.kanban) == null ? void 0 : M.sectionWidth) || 200;
|
|
595
595
|
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;
|
|
596
|
-
const
|
|
597
|
-
x = Math.max(x, (
|
|
596
|
+
const E = await ye(L, m);
|
|
597
|
+
x = Math.max(x, (U = E == null ? void 0 : E.labelBBox) == null ? void 0 : U.height), j.push(E);
|
|
598
598
|
}
|
|
599
599
|
let P = 0;
|
|
600
600
|
for (const m of w) {
|
|
601
|
-
const O =
|
|
601
|
+
const O = j[P];
|
|
602
602
|
P = P + 1;
|
|
603
|
-
const
|
|
603
|
+
const E = ((A = f == null ? void 0 : f.kanban) == null ? void 0 : A.sectionWidth) || 200, s = -E * 3 / 2 + x;
|
|
604
604
|
let n = s;
|
|
605
|
-
const a =
|
|
605
|
+
const a = _.nodes.filter((e) => e.parentId === m.id);
|
|
606
606
|
for (const e of a) {
|
|
607
607
|
if (e.isGroup)
|
|
608
608
|
throw new Error("Groups within groups are not allowed in Kanban diagrams");
|
|
609
|
-
e.x = m.x, e.width =
|
|
609
|
+
e.x = m.x, e.width = E - 1.5 * i;
|
|
610
610
|
const l = (await be(C, e, { config: f })).node().getBBox();
|
|
611
611
|
e.y = n + l.height / 2, await me(e), n = e.y + l.height / 2 + i / 2;
|
|
612
612
|
}
|
|
613
613
|
const o = O.cluster.select("rect"), u = Math.max(n - s + 3 * i, 50) + (x - 25);
|
|
614
614
|
o.attr("height", u);
|
|
615
615
|
}
|
|
616
|
-
|
|
616
|
+
Ee(
|
|
617
617
|
void 0,
|
|
618
618
|
h,
|
|
619
|
-
((H = f.mindmap) == null ? void 0 : H.padding) ??
|
|
620
|
-
((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ??
|
|
619
|
+
((H = f.mindmap) == null ? void 0 : H.padding) ?? Y.kanban.padding,
|
|
620
|
+
((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ?? Y.kanban.useMaxWidth
|
|
621
621
|
);
|
|
622
|
-
}, "draw"),
|
|
622
|
+
}, "draw"), Fe = {
|
|
623
623
|
draw: Be
|
|
624
|
-
},
|
|
624
|
+
}, Ge = /* @__PURE__ */ c((t) => {
|
|
625
625
|
let g = "";
|
|
626
626
|
for (let r = 0; r < t.THEME_COLOR_LIMIT; r++)
|
|
627
627
|
t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], Se(t["lineColor" + r]) ? t["lineColor" + r] = le(t["lineColor" + r], 20) : t["lineColor" + r] = ce(t["lineColor" + r], 20);
|
|
@@ -677,11 +677,11 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
677
677
|
`;
|
|
678
678
|
}
|
|
679
679
|
return g;
|
|
680
|
-
}, "genSections"),
|
|
680
|
+
}, "genSections"), je = /* @__PURE__ */ c((t) => `
|
|
681
681
|
.edge {
|
|
682
682
|
stroke-width: 3;
|
|
683
683
|
}
|
|
684
|
-
${
|
|
684
|
+
${Ge(t)}
|
|
685
685
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
686
686
|
fill: ${t.git0};
|
|
687
687
|
}
|
|
@@ -709,11 +709,11 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
709
709
|
text-align: center;
|
|
710
710
|
}
|
|
711
711
|
${Ne()}
|
|
712
|
-
`, "getStyles"),
|
|
712
|
+
`, "getStyles"), Me = je, We = {
|
|
713
713
|
db: Ve,
|
|
714
|
-
renderer:
|
|
714
|
+
renderer: Fe,
|
|
715
715
|
parser: xe,
|
|
716
|
-
styles:
|
|
716
|
+
styles: Me
|
|
717
717
|
};
|
|
718
718
|
export {
|
|
719
719
|
We as diagram
|