@altimateai/ui-components 0.0.64-beta5 → 0.0.64-beta7
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/Carousel.js +1364 -1348
- package/dist/CoachForm.js +6956 -6919
- package/dist/Stack.js +12 -12
- package/dist/_basePickBy.js +25 -25
- package/dist/_baseUniq.js +62 -62
- package/dist/arc.js +14 -14
- package/dist/architectureDiagram-VXUJARFQ.js +125 -125
- 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 +15 -9
- package/dist/chatbotV2/index.js +54 -53
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-55IACEB6.js +1 -1
- package/dist/chunk-B4BG7PRW.js +7 -7
- package/dist/chunk-DI55MBZ5.js +1 -1
- package/dist/chunk-FMBD7UC4.js +1 -1
- package/dist/chunk-QN33PNHL.js +3 -3
- 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 +16 -16
- package/dist/diagram-PSM6KHXK.js +38 -38
- package/dist/diagram-QEK2KX5R.js +24 -24
- 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.js +5 -5
- package/dist/index2.js +20 -20
- package/dist/infoDiagram-F6ZHWCRC.js +3 -3
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/kanban-definition-3W4ZIXB7.js +11 -11
- package/dist/layout.js +15 -15
- package/dist/lineage/index.js +608 -615
- package/dist/main.js +2 -2
- package/dist/mermaid-parser.core.js +1 -1
- package/dist/mindmap-definition-VGOIOE7T.js +1 -1
- package/dist/pieDiagram-ADFJNKIX.js +22 -22
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/redux-toolkit.modern.js +483 -476
- package/dist/requirementDiagram-UZGBJVZJ.js +76 -76
- package/dist/sankeyDiagram-TZEHDZUN.js +1 -1
- package/dist/sequenceDiagram-WL72ISMW.js +1 -1
- package/dist/shadcn/index.d.ts +2 -0
- package/dist/shadcn/index.js +2 -2
- package/dist/stateDiagram-FKZM4ZOC.js +21 -21
- package/dist/stateDiagram-v2-4FDKWEC3.js +1 -1
- package/dist/timeline-definition-IT6M3QCI.js +1 -1
- package/dist/xychartDiagram-PRI3JC2R.js +11 -11
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as dt, C as Yn } from "./dayjs.min.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ce as un, cf as Wn, cg as Xn, ch as Kn, ci as Gn, cj as Zn, ck as rt, cl as Qn, cm as Jn } from "./CoachForm.js";
|
|
3
3
|
import { g as yt, k as ln, A as ve, l as er, I as Ie, u as cn, m as tr } from "./redux-toolkit.modern.js";
|
|
4
|
-
import { B as ye,
|
|
4
|
+
import { B as ye, a4 as $e, a5 as He, a6 as nr, X as oe, a7 as rr, T as or, a0 as ft, Y as ir } from "./Stack.js";
|
|
5
5
|
import { j as h, A as dn, e as sr, f as ar, a as ur, d as lr, D as cr, E as dr, c as fr, b as pr } from "./index2.js";
|
|
6
6
|
import * as te from "react";
|
|
7
7
|
import Z, { createContext as _e, useReducer as fn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as gr, useEffect as le, useRef as Se, useId as pn, useInsertionEffect as hr, Children as De, isValidElement as vr, useState as re, lazy as mr } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ac = Object.defineProperty;
|
|
2
2
|
var Ec = (n, e, t) => e in n ? Ac(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Ze = (n, e, t) => Ec(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import {
|
|
4
|
+
import { cw as $c, cx as kc, bF as Nl, b_ as xc, bJ as Sc, bG as ee, bq as Ic, br as Ea, bQ as Cc, bT as wl, bU as Ll, c3 as $a, bR as Nc, bt as vt, bu as D, bH as ka, bB as wc } from "./CoachForm.js";
|
|
5
5
|
import { k as qt, j as Hs, g as nn, S as Lc, w as _c, x as bc, c as _l, v as z, y as bl, l as Oc, z as Pc, A as Mc, B as Dc, C as Fc, a as Ol, d as C, i as Ye, r as le, f as ke, D as Y } from "./_baseUniq.js";
|
|
6
6
|
import { j as js, m as x, d as Gc, f as Ne, g as Yt, i as zs, h as N, l as Xt, e as Uc } from "./_basePickBy.js";
|
|
7
7
|
import { c as ne } from "./clone.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as le } from "./chunk-55IACEB6.js";
|
|
2
2
|
import { s as he } from "./chunk-QN33PNHL.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a1 as l, ad as C, a7 as X, au as j, ac as F, bx as de, aq as ge, ar as ue, aP as pe, aQ as fe, aR as ye } from "./CoachForm.js";
|
|
4
4
|
const E = [];
|
|
5
5
|
for (let t = 0; t < 256; ++t)
|
|
6
6
|
E.push((t + 256).toString(16).slice(1));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b1 as S, aV as z, bw as Z, au as q, ag as H, ah as J, a3 as K, a4 as Q, a6 as X, a5 as Y, a1 as g, ad as F, an as ee, a7 as te, av as ae, az as re, aG as ne, ae as ie } from "./CoachForm.js";
|
|
2
2
|
import { p as se } from "./chunk-4BX2VUAB.js";
|
|
3
3
|
import { p as le } from "./mermaid-parser.core.js";
|
|
4
4
|
import "./redux-toolkit.modern.js";
|
|
@@ -11,17 +11,17 @@ function ue(e) {
|
|
|
11
11
|
return e;
|
|
12
12
|
}
|
|
13
13
|
function pe() {
|
|
14
|
-
var e = ue, a = ce, f = null,
|
|
14
|
+
var e = ue, a = ce, f = null, x = S(0), s = S(z), o = S(0);
|
|
15
15
|
function l(t) {
|
|
16
|
-
var n, c = (t = Z(t)).length, u,
|
|
16
|
+
var n, c = (t = Z(t)).length, u, y, m = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(z, Math.max(-z, s.apply(this, arguments) - v)), h, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), d;
|
|
17
17
|
for (n = 0; n < c; ++n)
|
|
18
18
|
(d = i[p[n] = n] = +e(t[n], n, t)) > 0 && (m += d);
|
|
19
19
|
for (a != null ? p.sort(function(A, D) {
|
|
20
20
|
return a(i[A], i[D]);
|
|
21
21
|
}) : f != null && p.sort(function(A, D) {
|
|
22
22
|
return f(t[A], t[D]);
|
|
23
|
-
}), n = 0,
|
|
24
|
-
u = p[n], d = i[u], h = v + (d > 0 ? d *
|
|
23
|
+
}), n = 0, y = m ? (w - c * $) / m : 0; n < c; ++n, v = h)
|
|
24
|
+
u = p[n], d = i[u], h = v + (d > 0 ? d * y : 0) + $, i[u] = {
|
|
25
25
|
data: t[u],
|
|
26
26
|
index: n,
|
|
27
27
|
value: d,
|
|
@@ -38,7 +38,7 @@ function pe() {
|
|
|
38
38
|
}, l.sort = function(t) {
|
|
39
39
|
return arguments.length ? (f = t, a = null, l) : f;
|
|
40
40
|
}, l.startAngle = function(t) {
|
|
41
|
-
return arguments.length ? (
|
|
41
|
+
return arguments.length ? (x = typeof t == "function" ? t : S(+t), l) : x;
|
|
42
42
|
}, l.endAngle = function(t) {
|
|
43
43
|
return arguments.length ? (s = typeof t == "function" ? t : S(+t), l) : s;
|
|
44
44
|
}, l.padAngle = function(t) {
|
|
@@ -56,7 +56,7 @@ var L = q.pie, G = {
|
|
|
56
56
|
throw new Error(
|
|
57
57
|
`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
|
|
58
58
|
);
|
|
59
|
-
T.has(e) || (T.set(e, a),
|
|
59
|
+
T.has(e) || (T.set(e, a), F.debug(`added new section: ${e}, with value: ${a}`));
|
|
60
60
|
}, "addSection"), me = /* @__PURE__ */ g(() => T, "getSections"), ve = /* @__PURE__ */ g((e) => {
|
|
61
61
|
N = e;
|
|
62
62
|
}, "setShowData"), Se = /* @__PURE__ */ g(() => N, "getShowData"), _ = {
|
|
@@ -72,12 +72,12 @@ var L = q.pie, G = {
|
|
|
72
72
|
getSections: me,
|
|
73
73
|
setShowData: ve,
|
|
74
74
|
getShowData: Se
|
|
75
|
-
},
|
|
75
|
+
}, xe = /* @__PURE__ */ g((e, a) => {
|
|
76
76
|
se(e, a), a.setShowData(e.showData), e.sections.map(a.addSection);
|
|
77
|
-
}, "populateDb"),
|
|
77
|
+
}, "populateDb"), ye = {
|
|
78
78
|
parse: /* @__PURE__ */ g(async (e) => {
|
|
79
79
|
const a = await le("pie", e);
|
|
80
|
-
|
|
80
|
+
F.debug(a), xe(a, _);
|
|
81
81
|
}, "parse")
|
|
82
82
|
}, we = /* @__PURE__ */ g((e) => `
|
|
83
83
|
.pieCircle{
|
|
@@ -110,15 +110,15 @@ var L = q.pie, G = {
|
|
|
110
110
|
`, "getStyles"), Ae = we, De = /* @__PURE__ */ g((e) => {
|
|
111
111
|
const a = [...e.values()].reduce((s, o) => s + o, 0), f = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
|
|
112
112
|
return pe().value((s) => s.value)(f);
|
|
113
|
-
}, "createPieArcs"), Ce = /* @__PURE__ */ g((e, a, f,
|
|
114
|
-
|
|
113
|
+
}, "createPieArcs"), Ce = /* @__PURE__ */ g((e, a, f, x) => {
|
|
114
|
+
F.debug(`rendering pie chart
|
|
115
115
|
` + e);
|
|
116
|
-
const s =
|
|
117
|
-
p.attr("transform", "translate(" +
|
|
116
|
+
const s = x.db, o = te(), l = ae(s.getConfig(), o.pie), t = 40, n = 18, c = 4, u = 450, y = u, m = re(a), p = m.append("g");
|
|
117
|
+
p.attr("transform", "translate(" + y / 2 + "," + u / 2 + ")");
|
|
118
118
|
const { themeVariables: i } = o;
|
|
119
119
|
let [v] = ne(i.pieOuterStrokeWidth);
|
|
120
120
|
v ?? (v = 2);
|
|
121
|
-
const w = l.textPosition, h = Math.min(
|
|
121
|
+
const w = l.textPosition, h = Math.min(y, u) / 2 - t, C = I().innerRadius(0).outerRadius(h), $ = I().innerRadius(h * w).outerRadius(h * w);
|
|
122
122
|
p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", h + v / 2).attr("class", "pieOuterCircle");
|
|
123
123
|
const d = s.getSections(), A = De(d), D = [
|
|
124
124
|
i.pie1,
|
|
@@ -144,20 +144,20 @@ var L = q.pie, G = {
|
|
|
144
144
|
label: r,
|
|
145
145
|
value: M
|
|
146
146
|
})), k = p.selectAll(".legend").data(O).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
|
|
147
|
-
const R = n + c,
|
|
148
|
-
return "translate(" +
|
|
147
|
+
const R = n + c, B = R * O.length / 2, U = 12 * n, j = M * R - B;
|
|
148
|
+
return "translate(" + U + "," + j + ")";
|
|
149
149
|
});
|
|
150
150
|
k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => E(r.label)).style("stroke", (r) => E(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
|
|
151
|
-
const
|
|
151
|
+
const V = Math.max(
|
|
152
152
|
...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
|
|
153
|
-
), P =
|
|
153
|
+
), P = y + t + n + c + V;
|
|
154
154
|
m.attr("viewBox", `0 0 ${P} ${u}`), ie(m, u, P, l.useMaxWidth);
|
|
155
|
-
}, "draw"), $e = { draw: Ce },
|
|
156
|
-
parser:
|
|
155
|
+
}, "draw"), $e = { draw: Ce }, Fe = {
|
|
156
|
+
parser: ye,
|
|
157
157
|
db: _,
|
|
158
158
|
renderer: $e,
|
|
159
159
|
styles: Ae
|
|
160
160
|
};
|
|
161
161
|
export {
|
|
162
|
-
|
|
162
|
+
Fe as diagram
|
|
163
163
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as o, aB as _e, au as D, ad as At, a7 as wt, ac as Ae, ah as ie, a3 as ke, a4 as Fe, ag as Pe, a5 as ve, a6 as Ce, an as Le, ae as Ee } from "./CoachForm.js";
|
|
2
2
|
import { s as zt } from "./redux-toolkit.modern.js";
|
|
3
3
|
import { l as ee } from "./linear.js";
|
|
4
4
|
var Vt = function() {
|