@altimateai/ui-components 0.0.64-beta7 → 0.0.64
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 +9748 -9840
- package/dist/Stack.js +10 -10
- package/dist/TagsInput.js +6956 -0
- package/dist/_basePickBy.js +25 -25
- package/dist/_baseUniq.js +57 -57
- package/dist/arc.js +34 -34
- package/dist/architectureDiagram-VXUJARFQ.js +1 -1
- package/dist/assets/icons/index.js +1 -1
- package/dist/blockDiagram-VD42YOAC.js +1 -1
- package/dist/c4Diagram-YG6GDRKO.js +1 -1
- package/dist/channel.js +3 -3
- package/dist/chatbotV2/index.d.ts +13 -30
- package/dist/chatbotV2/index.js +45 -47
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-55IACEB6.js +2 -2
- package/dist/chunk-B4BG7PRW.js +13 -13
- package/dist/chunk-DI55MBZ5.js +1 -1
- package/dist/chunk-FMBD7UC4.js +1 -1
- package/dist/chunk-QN33PNHL.js +6 -6
- 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 +17 -17
- package/dist/diagram-PSM6KHXK.js +35 -35
- package/dist/diagram-QEK2KX5R.js +10 -10
- package/dist/diagram-S2PKOQOG.js +2 -2
- package/dist/erDiagram-Q2GNP2WA.js +15 -15
- package/dist/flowDiagram-NV44I4VS.js +1 -1
- package/dist/ganttDiagram-LVOFAZNH.js +1 -1
- package/dist/gitGraphDiagram-NY62KEGX.js +1 -1
- package/dist/graph.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index2.css +1 -0
- package/dist/index2.js +22 -22
- package/dist/infoDiagram-F6ZHWCRC.js +7 -7
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/kanban-definition-3W4ZIXB7.js +19 -19
- package/dist/layout.js +20 -20
- package/dist/lineage/index.js +615 -608
- package/dist/main.js +3 -3
- package/dist/mermaid-parser.core.js +1 -1
- package/dist/mindmap-definition-VGOIOE7T.js +17 -17
- package/dist/pieDiagram-ADFJNKIX.js +4 -4
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/redux-toolkit.modern.js +476 -483
- package/dist/requirementDiagram-UZGBJVZJ.js +76 -76
- package/dist/sankeyDiagram-TZEHDZUN.js +22 -22
- package/dist/sequenceDiagram-WL72ISMW.js +1 -1
- package/dist/shadcn/index.d.ts +3 -38
- package/dist/shadcn/index.js +2805 -3490
- package/dist/stateDiagram-FKZM4ZOC.js +28 -28
- package/dist/stateDiagram-v2-4FDKWEC3.js +4 -4
- package/dist/storybook/TagsInput.stories.tsx +1 -34
- package/dist/timeline-definition-IT6M3QCI.js +12 -12
- package/dist/{types-N2nctlGV.d.ts → types-B4_bdpWO.d.ts} +5 -18
- package/dist/xychartDiagram-PRI3JC2R.js +11 -11
- package/package.json +1 -1
- package/dist/Carousel.js +0 -8540
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { s as R, S as N, a as W } from "./chunk-DI55MBZ5.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as f, a5 as t, ab as S, ac as P, a7 as z, aH as C, aI as U, aC as _, ak as F } from "./CoachForm.js";
|
|
3
3
|
import { s as H } from "./redux-toolkit.modern.js";
|
|
4
|
-
import { G as
|
|
5
|
-
import { l as
|
|
6
|
-
var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"),
|
|
4
|
+
import { G as O } from "./graph.js";
|
|
5
|
+
import { l as J } from "./layout.js";
|
|
6
|
+
var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), I = /* @__PURE__ */ f((e, i) => {
|
|
7
7
|
const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox();
|
|
8
8
|
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
|
|
9
|
-
}, "drawSimpleState"),
|
|
9
|
+
}, "drawSimpleState"), Y = /* @__PURE__ */ f((e, i) => {
|
|
10
10
|
const d = /* @__PURE__ */ f(function(g, B, m) {
|
|
11
|
-
const
|
|
12
|
-
m ||
|
|
11
|
+
const E = g.append("tspan").attr("x", 2 * t().state.padding).text(B);
|
|
12
|
+
m || E.attr("dy", t().state.textHeight);
|
|
13
13
|
}, "addTspan"), n = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), l = n.height, x = e.append("text").attr("x", t().state.padding).attr(
|
|
14
14
|
"y",
|
|
15
15
|
l + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
|
|
@@ -44,14 +44,14 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
44
44
|
).attr(
|
|
45
45
|
"cy",
|
|
46
46
|
t().state.padding + t().state.sizeUnit + t().state.miniPadding
|
|
47
|
-
), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"),
|
|
47
|
+
), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), Z = /* @__PURE__ */ f((e, i) => {
|
|
48
48
|
let d = t().state.forkWidth, c = t().state.forkHeight;
|
|
49
49
|
if (i.parentId) {
|
|
50
50
|
let n = d;
|
|
51
51
|
d = c, c = n;
|
|
52
52
|
}
|
|
53
53
|
return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", d).attr("height", c).attr("x", t().state.padding).attr("y", t().state.padding);
|
|
54
|
-
}, "drawForkJoinState"),
|
|
54
|
+
}, "drawForkJoinState"), j = /* @__PURE__ */ f((e, i, d, c) => {
|
|
55
55
|
let n = 0;
|
|
56
56
|
const l = c.append("text");
|
|
57
57
|
l.style("text-anchor", "start"), l.attr("class", "noteText");
|
|
@@ -71,9 +71,9 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
return { textWidth: l.node().getBBox().width, textHeight: n };
|
|
74
|
-
}, "_drawLongText"),
|
|
74
|
+
}, "_drawLongText"), K = /* @__PURE__ */ f((e, i) => {
|
|
75
75
|
i.attr("class", "state-note");
|
|
76
|
-
const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } =
|
|
76
|
+
const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = j(e, 0, 0, c);
|
|
77
77
|
return d.attr("height", l + 2 * t().state.noteMargin), d.attr("width", n + t().state.noteMargin * 2), d;
|
|
78
78
|
}, "drawNote"), L = /* @__PURE__ */ f(function(e, i) {
|
|
79
79
|
const d = i.id, c = {
|
|
@@ -82,7 +82,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
82
82
|
width: 0,
|
|
83
83
|
height: 0
|
|
84
84
|
}, n = e.append("g").attr("id", d).attr("class", "stateGroup");
|
|
85
|
-
i.type === "start" && X(n), i.type === "end" && q(n), (i.type === "fork" || i.type === "join") &&
|
|
85
|
+
i.type === "start" && X(n), i.type === "end" && q(n), (i.type === "fork" || i.type === "join") && Z(n, i), i.type === "note" && K(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && I(n, i), i.type === "default" && i.descriptions.length > 0 && Y(n, i);
|
|
86
86
|
const l = n.node().getBBox();
|
|
87
87
|
return c.width = l.width + 2 * t().state.padding, c.height = l.height + 2 * t().state.padding, c;
|
|
88
88
|
}, "drawState"), A = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
|
|
@@ -99,23 +99,23 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
99
99
|
}
|
|
100
100
|
}, "getRelationType");
|
|
101
101
|
i.points = i.points.filter((s) => !Number.isNaN(s.y));
|
|
102
|
-
const n = i.points, l =
|
|
102
|
+
const n = i.points, l = C().x(function(s) {
|
|
103
103
|
return s.x;
|
|
104
104
|
}).y(function(s) {
|
|
105
105
|
return s.y;
|
|
106
|
-
}).curve(
|
|
106
|
+
}).curve(U), x = e.append("path").attr("d", l(n)).attr("id", "edge" + A).attr("class", "transition");
|
|
107
107
|
let a = "";
|
|
108
|
-
if (t().state.arrowMarkerAbsolute && (a =
|
|
108
|
+
if (t().state.arrowMarkerAbsolute && (a = _(!0)), x.attr(
|
|
109
109
|
"marker-end",
|
|
110
110
|
"url(" + a + "#" + c(N.relationType.DEPENDENCY) + "End)"
|
|
111
111
|
), d.title !== void 0) {
|
|
112
112
|
const s = e.append("g").attr("class", "stateLabel"), { x: w, y: p } = F.calcLabelPosition(i.points), o = z.getRows(d.title);
|
|
113
113
|
let g = 0;
|
|
114
114
|
const B = [];
|
|
115
|
-
let m = 0,
|
|
115
|
+
let m = 0, E = 0;
|
|
116
116
|
for (let u = 0; u <= o.length; u++) {
|
|
117
117
|
const h = s.append("text").attr("text-anchor", "middle").text(o[u]).attr("x", w).attr("y", p + g), y = h.node().getBBox();
|
|
118
|
-
m = Math.max(m, y.width),
|
|
118
|
+
m = Math.max(m, y.width), E = Math.min(E, y.x), S.info(y.x, w, p + g), g === 0 && (g = h.node().getBBox().height, S.info("Title height", g, p)), B.push(h);
|
|
119
119
|
}
|
|
120
120
|
let k = g * o.length;
|
|
121
121
|
if (o.length > 1) {
|
|
@@ -146,7 +146,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
146
146
|
`${o.x - b.padding} ${o.y - b.padding} ` + g + " " + B
|
|
147
147
|
);
|
|
148
148
|
}, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
|
|
149
|
-
const a = new
|
|
149
|
+
const a = new O({
|
|
150
150
|
compound: !0,
|
|
151
151
|
multigraph: !0
|
|
152
152
|
});
|
|
@@ -192,8 +192,8 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
192
192
|
h = G(u.doc, y, u.id, !c, n, l, x);
|
|
193
193
|
{
|
|
194
194
|
y = $(y, u, c);
|
|
195
|
-
let
|
|
196
|
-
h.width =
|
|
195
|
+
let v = y.node().getBBox();
|
|
196
|
+
h.width = v.width, h.height = v.height + b.padding / 2, T[u.id] = { y: b.compositTitleSize };
|
|
197
197
|
}
|
|
198
198
|
} else
|
|
199
199
|
h = L(i, u, a);
|
|
@@ -203,8 +203,8 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
203
203
|
id: u.id + "-note",
|
|
204
204
|
note: u.note,
|
|
205
205
|
type: "note"
|
|
206
|
-
},
|
|
207
|
-
u.note.position === "left of" ? (a.setNode(h.id + "-note",
|
|
206
|
+
}, v = L(i, y, a);
|
|
207
|
+
u.note.position === "left of" ? (a.setNode(h.id + "-note", v), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", v)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
|
|
208
208
|
} else
|
|
209
209
|
a.setNode(h.id, h);
|
|
210
210
|
}
|
|
@@ -222,7 +222,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
222
222
|
},
|
|
223
223
|
"id" + B
|
|
224
224
|
);
|
|
225
|
-
}),
|
|
225
|
+
}), J(a), S.debug("Graph after layout", a.nodes());
|
|
226
226
|
const m = i.node();
|
|
227
227
|
a.nodes().forEach(function(r) {
|
|
228
228
|
r !== void 0 && a.node(r) !== void 0 ? (S.warn("Node " + r + ": " + JSON.stringify(a.node(r))), n.select("#" + m.id + " #" + r).attr(
|
|
@@ -230,21 +230,21 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
230
230
|
"translate(" + (a.node(r).x - a.node(r).width / 2) + "," + (a.node(r).y + (T[r] ? T[r].y : 0) - a.node(r).height / 2) + " )"
|
|
231
231
|
), n.select("#" + m.id + " #" + r).attr("data-x-shift", a.node(r).x - a.node(r).width / 2), l.querySelectorAll("#" + m.id + " #" + r + " .divider").forEach((h) => {
|
|
232
232
|
const y = h.parentElement;
|
|
233
|
-
let
|
|
234
|
-
y && (y.parentElement && (
|
|
233
|
+
let v = 0, M = 0;
|
|
234
|
+
y && (y.parentElement && (v = y.parentElement.getBBox().width), M = parseInt(y.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", v - M - 8);
|
|
235
235
|
})) : S.debug("No Node " + r + ": " + JSON.stringify(a.node(r)));
|
|
236
236
|
});
|
|
237
|
-
let
|
|
237
|
+
let E = m.getBBox();
|
|
238
238
|
a.edges().forEach(function(r) {
|
|
239
239
|
r !== void 0 && a.edge(r) !== void 0 && (S.debug("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(a.edge(r))), Q(i, a.edge(r), a.edge(r).relation));
|
|
240
|
-
}),
|
|
240
|
+
}), E = m.getBBox();
|
|
241
241
|
const k = {
|
|
242
242
|
id: d || "root",
|
|
243
243
|
label: d || "root",
|
|
244
244
|
width: 0,
|
|
245
245
|
height: 0
|
|
246
246
|
};
|
|
247
|
-
return k.width =
|
|
247
|
+
return k.width = E.width + 2 * b.padding, k.height = E.height + 2 * b.padding, S.debug("Doc rendered", k, a), k;
|
|
248
248
|
}, "renderDoc"), it = {
|
|
249
249
|
setConf: V,
|
|
250
250
|
draw: et
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import {
|
|
1
|
+
import { s as t, S as a, b as r, a as s } from "./chunk-DI55MBZ5.js";
|
|
2
|
+
import { $ as i } from "./CoachForm.js";
|
|
3
3
|
import "./redux-toolkit.modern.js";
|
|
4
4
|
var l = {
|
|
5
|
-
parser:
|
|
5
|
+
parser: t,
|
|
6
6
|
get db() {
|
|
7
|
-
return new
|
|
7
|
+
return new a(2);
|
|
8
8
|
},
|
|
9
9
|
renderer: r,
|
|
10
10
|
styles: s,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import
|
|
2
|
+
import { useState } from "react";
|
|
3
3
|
import {
|
|
4
4
|
TagsInput,
|
|
5
5
|
TagsInputLabel,
|
|
@@ -226,36 +226,3 @@ export const Interactive: Story = {
|
|
|
226
226
|
);
|
|
227
227
|
},
|
|
228
228
|
};
|
|
229
|
-
|
|
230
|
-
export const WithSuggestions: Story = {
|
|
231
|
-
render: () => {
|
|
232
|
-
const [tags, setTags] = React.useState<string[]>([]);
|
|
233
|
-
return (
|
|
234
|
-
<div className="al-space-y-4 al-p-2">
|
|
235
|
-
<TagsInput
|
|
236
|
-
value={tags}
|
|
237
|
-
onValueChange={setTags}
|
|
238
|
-
suggestions={["React", "Vue", "Angular", "Svelte", "TypeScript", "JavaScript"]}
|
|
239
|
-
onSuggestionSelect={suggestion => {
|
|
240
|
-
setTags([...tags, suggestion]);
|
|
241
|
-
}}
|
|
242
|
-
>
|
|
243
|
-
<TagsInputLabel>With Suggestions Demo</TagsInputLabel>
|
|
244
|
-
<TagsInputList>
|
|
245
|
-
{tags.map(tag => (
|
|
246
|
-
<TagsInputItem key={tag} value={tag}>
|
|
247
|
-
{tag}
|
|
248
|
-
</TagsInputItem>
|
|
249
|
-
))}
|
|
250
|
-
<TagsInputInput placeholder="Type and press Enter..." />
|
|
251
|
-
<TagsInputClear />
|
|
252
|
-
</TagsInputList>
|
|
253
|
-
</TagsInput>
|
|
254
|
-
|
|
255
|
-
<div className="al-text-sm al-text-muted-foreground">
|
|
256
|
-
<strong>Current tags:</strong> {tags.length > 0 ? tags.join(", ") : "None"}
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
259
|
-
);
|
|
260
|
-
},
|
|
261
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as s, ar as xt, aL as kt, al as vt, a5 as _t, ab as E, aM as bt, aN as wt, aO as St, aP as Et } from "./CoachForm.js";
|
|
2
2
|
import { s as q } from "./redux-toolkit.modern.js";
|
|
3
3
|
import { d as nt } from "./arc.js";
|
|
4
4
|
var X = function() {
|
|
@@ -63,7 +63,7 @@ var X = function() {
|
|
|
63
63
|
}
|
|
64
64
|
}, "parseError"),
|
|
65
65
|
parse: /* @__PURE__ */ s(function(i) {
|
|
66
|
-
var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2,
|
|
66
|
+
var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
|
|
67
67
|
for (var L in this.yy)
|
|
68
68
|
Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
|
|
69
69
|
v.setInput(i, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
|
|
@@ -77,18 +77,18 @@ var X = function() {
|
|
|
77
77
|
s(R, "popStack");
|
|
78
78
|
function A() {
|
|
79
79
|
var T;
|
|
80
|
-
return T = u.pop() || v.lex() ||
|
|
80
|
+
return T = u.pop() || v.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
|
|
81
81
|
}
|
|
82
82
|
s(A, "lex");
|
|
83
|
-
for (var w, P, I,
|
|
83
|
+
for (var w, P, I, K, z = {}, j, H, et, G; ; ) {
|
|
84
84
|
if (P = h[h.length - 1], this.defaultActions[P] ? I = this.defaultActions[P] : ((w === null || typeof w > "u") && (w = A()), I = S[P] && S[P][w]), typeof I > "u" || !I.length || !I[0]) {
|
|
85
|
-
var
|
|
85
|
+
var Q = "";
|
|
86
86
|
G = [];
|
|
87
87
|
for (j in S[P])
|
|
88
88
|
this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
|
|
89
|
-
v.showPosition ?
|
|
89
|
+
v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
|
|
90
90
|
` + v.showPosition() + `
|
|
91
|
-
Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" :
|
|
91
|
+
Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
|
|
92
92
|
text: v.match,
|
|
93
93
|
token: this.terminals_[w] || w,
|
|
94
94
|
line: v.yylineno,
|
|
@@ -111,7 +111,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : K = "
|
|
|
111
111
|
}, $ && (z._$.range = [
|
|
112
112
|
o[o.length - (H || 1)].range[0],
|
|
113
113
|
o[o.length - 1].range[1]
|
|
114
|
-
]),
|
|
114
|
+
]), K = this.performAction.apply(z, [
|
|
115
115
|
k,
|
|
116
116
|
C,
|
|
117
117
|
M,
|
|
@@ -119,8 +119,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : K = "
|
|
|
119
119
|
I[1],
|
|
120
120
|
y,
|
|
121
121
|
o
|
|
122
|
-
].concat(O)), typeof
|
|
123
|
-
return
|
|
122
|
+
].concat(O)), typeof K < "u")
|
|
123
|
+
return K;
|
|
124
124
|
H && (h = h.slice(0, -1 * H * 2), y = y.slice(0, -1 * H), o = o.slice(0, -1 * H)), h.push(this.productions_[I[1]][0]), y.push(z.$), o.push(z._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
|
|
125
125
|
break;
|
|
126
126
|
case 3:
|
|
@@ -791,12 +791,12 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
791
791
|
.eventWrapper {
|
|
792
792
|
filter: brightness(120%);
|
|
793
793
|
}
|
|
794
|
-
`, "getStyles"), qt = Gt,
|
|
794
|
+
`, "getStyles"), qt = Gt, Kt = {
|
|
795
795
|
db: at,
|
|
796
796
|
renderer: Ot,
|
|
797
797
|
parser: Tt,
|
|
798
798
|
styles: qt
|
|
799
799
|
};
|
|
800
800
|
export {
|
|
801
|
-
|
|
801
|
+
Kt as diagram
|
|
802
802
|
};
|
|
@@ -23,22 +23,15 @@ interface Feedback {
|
|
|
23
23
|
rating?: "up" | "down";
|
|
24
24
|
comment?: string;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
interface ContextOption {
|
|
27
27
|
label: string;
|
|
28
28
|
key: string;
|
|
29
|
-
|
|
30
|
-
options: {
|
|
29
|
+
options?: {
|
|
31
30
|
id: string;
|
|
32
31
|
label: string;
|
|
33
32
|
}[];
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
label: string;
|
|
37
|
-
key: string;
|
|
38
|
-
type: "trigger";
|
|
39
|
-
handler?: () => void;
|
|
40
|
-
icon?: ReactNode;
|
|
41
|
-
};
|
|
33
|
+
type?: "submenu";
|
|
34
|
+
}
|
|
42
35
|
interface ChatSession {
|
|
43
36
|
id: string;
|
|
44
37
|
messages: ChatMessage[];
|
|
@@ -50,7 +43,6 @@ interface ChatSession {
|
|
|
50
43
|
mode?: string;
|
|
51
44
|
datamates?: string[];
|
|
52
45
|
status?: SessionStatusEnum;
|
|
53
|
-
userInput?: string;
|
|
54
46
|
}
|
|
55
47
|
interface FileUploadProps {
|
|
56
48
|
allowedFiles: string;
|
|
@@ -98,7 +90,7 @@ interface Mode {
|
|
|
98
90
|
icon?: ReactNode;
|
|
99
91
|
}
|
|
100
92
|
interface ChatbotProps {
|
|
101
|
-
helloMessage?: ReactNode;
|
|
93
|
+
helloMessage?: React.ReactNode;
|
|
102
94
|
assistantMeta?: AssistantMeta;
|
|
103
95
|
context?: Record<string, unknown>;
|
|
104
96
|
fileUploadProps?: FileUploadProps;
|
|
@@ -113,10 +105,6 @@ interface ChatbotProps {
|
|
|
113
105
|
initialMessage?: string;
|
|
114
106
|
questionFormLeftActions?: ReactNode[];
|
|
115
107
|
refetchSession?: () => Promise<unknown>;
|
|
116
|
-
chatboxStartPosition?: "middle" | "bottom";
|
|
117
|
-
helloMessageFooter?: ReactNode;
|
|
118
|
-
handleSavePrompt?: (message: ChatMessage) => void;
|
|
119
|
-
showSavePromptButton?: boolean;
|
|
120
108
|
}
|
|
121
109
|
interface ChatbotProviderProps extends ChatbotProps {
|
|
122
110
|
taskLabel?: keyof typeof TaskLabels;
|
|
@@ -139,7 +127,6 @@ interface ChatbotProviderProps extends ChatbotProps {
|
|
|
139
127
|
sessions?: Record<string, ChatSession>;
|
|
140
128
|
currentSessionId?: string;
|
|
141
129
|
selectedDatamateId?: string;
|
|
142
|
-
handleSavePrompt?: (message: ChatMessage) => void;
|
|
143
130
|
}
|
|
144
131
|
type InteractionType = "text" | "select" | "multiSelect" | "confirm";
|
|
145
132
|
interface InteractionChoice {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as a, bt as gi, ab as Xt, aH as Wt, az as xi, au as St, at as Nt, as as di, aa as fi, af as Yt, a1 as pi, a2 as mi, ae as yi, a3 as bi, a4 as Ai, al as wi, ax as Ci, ac as Si } from "./CoachForm.js";
|
|
2
2
|
import "./redux-toolkit.modern.js";
|
|
3
3
|
import { i as _i } from "./init.js";
|
|
4
4
|
import { o as ki } from "./ordinal.js";
|
|
@@ -809,7 +809,7 @@ var j, Ht = (j = class {
|
|
|
809
809
|
getScaleValue(t) {
|
|
810
810
|
return this.scale(t) ?? this.getRange()[0];
|
|
811
811
|
}
|
|
812
|
-
}, a(K, "BandAxis"), K),
|
|
812
|
+
}, a(K, "BandAxis"), K), Z, vi = (Z = class extends Ut {
|
|
813
813
|
constructor(t, i, s, n, o) {
|
|
814
814
|
super(t, n, o, i), this.domain = s, this.scale = zt().domain(this.domain).range(this.getRange());
|
|
815
815
|
}
|
|
@@ -823,7 +823,7 @@ var j, Ht = (j = class {
|
|
|
823
823
|
getScaleValue(t) {
|
|
824
824
|
return this.scale(t);
|
|
825
825
|
}
|
|
826
|
-
}, a(
|
|
826
|
+
}, a(Z, "LinearAxis"), Z);
|
|
827
827
|
function wt(e, t, i, s) {
|
|
828
828
|
const n = new Ht(s);
|
|
829
829
|
return _t(e) ? new Di(
|
|
@@ -841,7 +841,7 @@ function wt(e, t, i, s) {
|
|
|
841
841
|
);
|
|
842
842
|
}
|
|
843
843
|
a(wt, "getAxis");
|
|
844
|
-
var
|
|
844
|
+
var J, Pi = (J = class {
|
|
845
845
|
constructor(t, i, s, n) {
|
|
846
846
|
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = n, this.boundingRect = {
|
|
847
847
|
x: 0,
|
|
@@ -882,7 +882,7 @@ var Z, Pi = (Z = class {
|
|
|
882
882
|
]
|
|
883
883
|
}), t;
|
|
884
884
|
}
|
|
885
|
-
}, a(
|
|
885
|
+
}, a(J, "ChartTitle"), J);
|
|
886
886
|
function $t(e, t, i, s) {
|
|
887
887
|
const n = new Ht(s);
|
|
888
888
|
return new Pi(n, e, t, i);
|
|
@@ -1150,18 +1150,18 @@ function vt(e, t) {
|
|
|
1150
1150
|
A.xAxis = { type: "linear", title: A.xAxis.title, min: e, max: t }, gt = !0;
|
|
1151
1151
|
}
|
|
1152
1152
|
a(vt, "setXAxisRangeData");
|
|
1153
|
-
function
|
|
1153
|
+
function Zt(e) {
|
|
1154
1154
|
A.xAxis = {
|
|
1155
1155
|
type: "band",
|
|
1156
1156
|
title: A.xAxis.title,
|
|
1157
1157
|
categories: e.map((t) => xt(t.text))
|
|
1158
1158
|
}, gt = !0;
|
|
1159
1159
|
}
|
|
1160
|
-
a(
|
|
1161
|
-
function
|
|
1160
|
+
a(Zt, "setXAxisBand");
|
|
1161
|
+
function Jt(e) {
|
|
1162
1162
|
A.yAxis.title = xt(e.text);
|
|
1163
1163
|
}
|
|
1164
|
-
a(
|
|
1164
|
+
a(Jt, "setYAxisTitle");
|
|
1165
1165
|
function ti(e, t) {
|
|
1166
1166
|
A.yAxis = { type: "linear", title: A.yAxis.title, min: e, max: t }, kt = !0;
|
|
1167
1167
|
}
|
|
@@ -1248,8 +1248,8 @@ var Bi = /* @__PURE__ */ a(function() {
|
|
|
1248
1248
|
setOrientation: Qt,
|
|
1249
1249
|
setXAxisTitle: Kt,
|
|
1250
1250
|
setXAxisRangeData: vt,
|
|
1251
|
-
setXAxisBand:
|
|
1252
|
-
setYAxisTitle:
|
|
1251
|
+
setXAxisBand: Zt,
|
|
1252
|
+
setYAxisTitle: Jt,
|
|
1253
1253
|
setYAxisRangeData: ti,
|
|
1254
1254
|
setLineData: ei,
|
|
1255
1255
|
setBarData: si,
|