@altimateai/ui-components 0.0.62 → 0.0.63
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 +6532 -6501
- package/dist/_basePickBy.js +19 -19
- package/dist/_baseUniq.js +57 -57
- package/dist/arc.js +34 -34
- package/dist/architectureDiagram-VXUJARFQ.js +125 -125
- 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 +5 -5
- package/dist/chatbotV2/index.js +24 -23
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-55IACEB6.js +1 -1
- 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 +4 -4
- package/dist/diagram-PSM6KHXK.js +46 -46
- package/dist/diagram-QEK2KX5R.js +12 -12
- package/dist/diagram-S2PKOQOG.js +1 -1
- package/dist/erDiagram-Q2GNP2WA.js +1 -1
- package/dist/flowDiagram-NV44I4VS.js +11 -11
- package/dist/ganttDiagram-LVOFAZNH.js +1 -1
- package/dist/gitGraphDiagram-NY62KEGX.js +10 -10
- package/dist/graph.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -11
- package/dist/infoDiagram-F6ZHWCRC.js +1 -1
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/kanban-definition-3W4ZIXB7.js +23 -23
- package/dist/layout.js +18 -18
- package/dist/main.js +1 -1
- package/dist/mermaid-parser.core.js +1 -1
- package/dist/mindmap-definition-VGOIOE7T.js +7 -7
- package/dist/pieDiagram-ADFJNKIX.js +14 -14
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/requirementDiagram-UZGBJVZJ.js +38 -38
- package/dist/sankeyDiagram-TZEHDZUN.js +22 -22
- package/dist/sequenceDiagram-WL72ISMW.js +1 -1
- package/dist/stateDiagram-FKZM4ZOC.js +16 -16
- package/dist/stateDiagram-v2-4FDKWEC3.js +3 -3
- package/dist/timeline-definition-IT6M3QCI.js +24 -24
- package/dist/{types-Bm5uFaKK.d.ts → types-B4_bdpWO.d.ts} +11 -7
- package/dist/xychartDiagram-PRI3JC2R.js +17 -17
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as de } from "./chunk-FMBD7UC4.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as d, a5 as z, ab as m, aa as yt, b6 as ge, au as st, b7 as Z, b8 as Ht, b9 as ue, ak as et, ba as pe, aH as fe, aC as xe, ac as ye, al as be, aq as we, aI as me, bb as Le, bc as bt, a7 as Se } from "./CoachForm.js";
|
|
3
3
|
import { c as ve } from "./clone.js";
|
|
4
4
|
import { s as R } from "./redux-toolkit.modern.js";
|
|
5
5
|
import { G as Ee } from "./graph.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as Se, g as De } from "./chunk-TZMSLE5B.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as g, a0 as Pe, a1 as Be, a2 as Ie, a3 as Me, a4 as Le, a5 as Bt, a6 as Ne, a7 as $t, a8 as de, a9 as Tt, aa as ge, ab as fe, ac as Ye, ad as je } from "./CoachForm.js";
|
|
3
3
|
import { s as jt } from "./redux-toolkit.modern.js";
|
|
4
4
|
var Ft = function() {
|
|
5
5
|
var e = /* @__PURE__ */ g(function(_t, x, m, v) {
|
package/dist/channel.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { FC } from 'react';
|
|
2
|
-
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, D as DetectedEntity, E as EntityType, u as AgentStreamResponse } from '../types-
|
|
3
|
-
export { v as AssistantMeta, x as ChatbotUrls, y as Datamate, z as EntityDetectionRequest, B as EntityDetectionResponse, w as FileUploadProps,
|
|
2
|
+
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, D as DetectedEntity, E as EntityType, u as AgentStreamResponse, S as SessionStatusEnum } from '../types-B4_bdpWO.js';
|
|
3
|
+
export { v as AssistantMeta, x as ChatbotUrls, y as Datamate, z as EntityDetectionRequest, B as EntityDetectionResponse, w as FileUploadProps, R as FinalResponseData, J as InteractionChoice, H as InteractionType, G as Mode, Q as ProgressUpdate, O as ToolUsageData, U as UploadedFile, V as agentStreamResponseSchema, K as sessionStatusSchema, N as todoItemSchema } from '../types-B4_bdpWO.js';
|
|
4
4
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
5
5
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -176,7 +176,7 @@ declare const clearActions: _reduxjs_toolkit.ActionCreatorWithoutPayload<"chat/c
|
|
|
176
176
|
declare const setTodos: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
177
177
|
id: string;
|
|
178
178
|
content: string;
|
|
179
|
-
status: "
|
|
179
|
+
status: "completed" | "pending" | "in_progress";
|
|
180
180
|
priority: "high" | "low" | "medium";
|
|
181
181
|
}[], "chat/setTodos">;
|
|
182
182
|
declare const clearTodos: _reduxjs_toolkit.ActionCreatorWithoutPayload<"chat/clearTodos">;
|
|
@@ -257,7 +257,7 @@ declare function processPlaygroundSessionTurns(turns: Array<{
|
|
|
257
257
|
}>, sessionId: string, modes: {
|
|
258
258
|
label: string;
|
|
259
259
|
value: string;
|
|
260
|
-
}[], datamates: string[], context
|
|
260
|
+
}[], datamates: string[], context: Record<string, unknown> | undefined, status: SessionStatusEnum): Record<string, {
|
|
261
261
|
id: string;
|
|
262
262
|
messages: Array<{
|
|
263
263
|
id: string;
|
|
@@ -288,4 +288,4 @@ declare const Citations: ({ citations, frontEndUrl, }: {
|
|
|
288
288
|
frontEndUrl: string;
|
|
289
289
|
}) => JSX.Element | null;
|
|
290
290
|
|
|
291
|
-
export { AgentAction, AgentStreamResponse, Artifact, Artifacts, CancelGenerationButton, ChatMessage, ChatProvider, ChatResponse, ChatSession, ChatState, ChatTriggerLink, ChatbotProps, ChatbotProviderProps, Chatbot as ChatbotV2, Citations, CoachAI, ContextOption, ContextPanel, DetectedEntity, EntityType, Feedback, FeedbackButtons, InteractionPrompt, InteractionRequest, LoadingIndicator, LoadingState, MessageAttachment, MessageItem, MessageList, MessageMenu, QuestionForm, RegenerateButton, StatusUpdates, TodoItem, addAction, addMessage, clearActions, clearContext, clearHistory, clearTodos, createSession, deleteMessage, initialState, processAgentMessageContent, processAgentStream, processExistingConversation, processPlaygroundSessionTurns, resetSession, sendMessageAndProcessStream, setAbortController, setCurrentSession, setError, setLoadingState, setSelectedModel, setSessions, setTodos, streamResponseToAgentMessages, updateContext, updateDatamateInSession, updateEntities, updateEntityType, updateMessageFeedback, updateMode, useAgentChat, useChatContext };
|
|
291
|
+
export { AgentAction, AgentStreamResponse, Artifact, Artifacts, CancelGenerationButton, ChatMessage, ChatProvider, ChatResponse, ChatSession, ChatState, ChatTriggerLink, ChatbotProps, ChatbotProviderProps, Chatbot as ChatbotV2, Citations, CoachAI, ContextOption, ContextPanel, DetectedEntity, EntityType, Feedback, FeedbackButtons, InteractionPrompt, InteractionRequest, LoadingIndicator, LoadingState, MessageAttachment, MessageItem, MessageList, MessageMenu, QuestionForm, RegenerateButton, SessionStatusEnum, StatusUpdates, TodoItem, addAction, addMessage, clearActions, clearContext, clearHistory, clearTodos, createSession, deleteMessage, initialState, processAgentMessageContent, processAgentStream, processExistingConversation, processPlaygroundSessionTurns, resetSession, sendMessageAndProcessStream, setAbortController, setCurrentSession, setError, setLoadingState, setSelectedModel, setSessions, setTodos, streamResponseToAgentMessages, updateContext, updateDatamateInSession, updateEntities, updateEntityType, updateMessageFeedback, updateMode, useAgentChat, useChatContext };
|
package/dist/chatbotV2/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as e, b as t, a as o, g as n, C as r, m as i, c as d, d as c, E as g, F as u, I as S, L as p, n as C, M as l, e as m, f as M, Q as A, R as h, S as T, K as x, y, q as I, N as E, U as L, B as P, P as b, v as k, D as B, r as F, k as R, p as f, j as v, l as D, _ as G, s as H, o as Q, J as U, x as V, H as j, G as q, w, Z as z, O as J, i as K, t as N, T as O, W, X, Y, z as Z, V as _, h as $, u as ss } from "../CoachForm.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
e as Artifacts,
|
|
4
4
|
t as CancelGenerationButton,
|
|
5
5
|
o as ChatProvider,
|
|
6
6
|
n as ChatTriggerLink,
|
|
@@ -9,10 +9,10 @@ export {
|
|
|
9
9
|
d as CoachAI,
|
|
10
10
|
c as ContextPanel,
|
|
11
11
|
g as EntityType,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
u as FeedbackButtons,
|
|
13
|
+
S as InteractionPrompt,
|
|
14
|
+
p as LoadingIndicator,
|
|
15
|
+
C as LoadingState,
|
|
16
16
|
l as MessageItem,
|
|
17
17
|
m as MessageList,
|
|
18
18
|
M as MessageMenu,
|
|
@@ -35,21 +35,22 @@ export {
|
|
|
35
35
|
D as processPlaygroundSessionTurns,
|
|
36
36
|
G as resetSession,
|
|
37
37
|
H as sendMessageAndProcessStream,
|
|
38
|
-
Q as
|
|
39
|
-
U as
|
|
40
|
-
V as
|
|
41
|
-
j as
|
|
42
|
-
q as
|
|
43
|
-
w as
|
|
44
|
-
z as
|
|
45
|
-
J as
|
|
46
|
-
K as
|
|
47
|
-
N as
|
|
48
|
-
O as
|
|
49
|
-
W as
|
|
50
|
-
X as
|
|
51
|
-
Y as
|
|
52
|
-
Z as
|
|
53
|
-
_ as
|
|
54
|
-
$ as
|
|
38
|
+
Q as sessionStatusSchema,
|
|
39
|
+
U as setAbortController,
|
|
40
|
+
V as setCurrentSession,
|
|
41
|
+
j as setError,
|
|
42
|
+
q as setLoadingState,
|
|
43
|
+
w as setSelectedModel,
|
|
44
|
+
z as setSessions,
|
|
45
|
+
J as setTodos,
|
|
46
|
+
K as streamResponseToAgentMessages,
|
|
47
|
+
N as todoItemSchema,
|
|
48
|
+
O as updateContext,
|
|
49
|
+
W as updateDatamateInSession,
|
|
50
|
+
X as updateEntities,
|
|
51
|
+
Y as updateEntityType,
|
|
52
|
+
Z as updateMessageFeedback,
|
|
53
|
+
_ as updateMode,
|
|
54
|
+
$ as useAgentChat,
|
|
55
|
+
ss as useChatContext
|
|
55
56
|
};
|
package/dist/chunk-4BX2VUAB.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as l } from "./CoachForm.js";
|
|
2
2
|
function m(e, c) {
|
|
3
3
|
var i, t, o;
|
|
4
4
|
e.accDescr && ((i = c.setAccDescription) == null || i.call(c, e.accDescr)), e.accTitle && ((t = c.setAccTitle) == null || t.call(c, e.accTitle)), e.title && ((o = c.setDiagramTitle) == null || o.call(c, e.title));
|
package/dist/chunk-55IACEB6.js
CHANGED
package/dist/chunk-B4BG7PRW.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as et } from "./chunk-FMBD7UC4.js";
|
|
2
2
|
import { g as tt } from "./chunk-55IACEB6.js";
|
|
3
3
|
import { s as st } from "./chunk-QN33PNHL.js";
|
|
4
|
-
import {
|
|
4
|
+
import { $ as f, aa as it, a5 as F, aG as R, a1 as at, a2 as nt, a4 as rt, a3 as ut, ae as lt, af as ot, a7 as v, al as ct, ab as Oe, ak as we, aj as ht, ao as dt, ap as pt } from "./CoachForm.js";
|
|
5
5
|
import { s as ee } from "./redux-toolkit.modern.js";
|
|
6
6
|
var Ve = function() {
|
|
7
7
|
var s = /* @__PURE__ */ f(function(I, o, h, p) {
|
package/dist/chunk-DI55MBZ5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as te } from "./chunk-55IACEB6.js";
|
|
2
2
|
import { s as ee } from "./chunk-QN33PNHL.js";
|
|
3
|
-
import {
|
|
3
|
+
import { $ as f, a2 as se, a1 as ie, a3 as re, a4 as ae, ae as ne, af as oe, a5 as F, ab as D, aJ as le, a7 as W, al as ce, ap as he, ak as ue } from "./CoachForm.js";
|
|
4
4
|
var vt = function() {
|
|
5
5
|
var e = /* @__PURE__ */ f(function(V, o, h, n) {
|
|
6
6
|
for (h = h || {}, n = V.length; n--; h[V[n]] = o) ;
|
package/dist/chunk-FMBD7UC4.js
CHANGED
package/dist/chunk-QN33PNHL.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var
|
|
1
|
+
import { $ as a, ac as w, ab as x } from "./CoachForm.js";
|
|
2
|
+
var d = /* @__PURE__ */ a((e, t, i, o) => {
|
|
3
3
|
e.attr("class", i);
|
|
4
|
-
const { width: r, height: h, x:
|
|
4
|
+
const { width: r, height: h, x: c, y: n } = u(e, t);
|
|
5
5
|
w(e, h, r, o);
|
|
6
|
-
const s = B(
|
|
6
|
+
const s = B(c, n, r, h, t);
|
|
7
7
|
e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
|
|
8
8
|
}, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
|
|
9
9
|
var o;
|
|
@@ -16,5 +16,5 @@ var g = /* @__PURE__ */ a((e, t, i, o) => {
|
|
|
16
16
|
};
|
|
17
17
|
}, "calculateDimensionsWithPadding"), B = /* @__PURE__ */ a((e, t, i, o, r) => `${e - r} ${t - r} ${i} ${o}`, "createViewBox");
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
d as s
|
|
20
20
|
};
|
package/dist/chunk-QZHKN3VN.js
CHANGED
package/dist/chunk-TZMSLE5B.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as n, aK as c, ad as l } from "./CoachForm.js";
|
|
2
2
|
var o = /* @__PURE__ */ n((a, t) => {
|
|
3
3
|
const e = a.append("rect");
|
|
4
4
|
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as V, ab as k } from "./CoachForm.js";
|
|
2
2
|
import { c as J } from "./cytoscape.esm.js";
|
|
3
3
|
import { c as $, g as lt, s as gt } from "./redux-toolkit.modern.js";
|
|
4
4
|
var tt = { exports: {} }, Z = { exports: {} }, Q = { exports: {} }, q;
|
package/dist/dagre-6UL2VRFP.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as b, bf as F, bg as Y, bh as H, bi as _, ab as i, a5 as V, bj as $, bk as U, b4 as q, b9 as z, b5 as P, b3 as K, bl as Q, bm as W, bn as Z } from "./CoachForm.js";
|
|
2
2
|
import { G as B } from "./graph.js";
|
|
3
3
|
import { l as I } from "./layout.js";
|
|
4
4
|
import { i as x } from "./_baseUniq.js";
|
|
@@ -278,7 +278,7 @@ Parent cluster`,
|
|
|
278
278
|
t.node(d),
|
|
279
279
|
a
|
|
280
280
|
), S = p.elem;
|
|
281
|
-
|
|
281
|
+
$(s, S), s.diff = p.diff || 0, i.info(
|
|
282
282
|
"New compound node after recursive render XAX",
|
|
283
283
|
d,
|
|
284
284
|
"width",
|
|
@@ -288,7 +288,7 @@ Parent cluster`,
|
|
|
288
288
|
s.height
|
|
289
289
|
// node.x,
|
|
290
290
|
// node.y
|
|
291
|
-
),
|
|
291
|
+
), U(S, s);
|
|
292
292
|
} else
|
|
293
293
|
t.children(d).length > 0 ? (i.trace(
|
|
294
294
|
"Cluster - the non recursive path XBX",
|
|
@@ -397,7 +397,7 @@ Parent cluster`,
|
|
|
397
397
|
}).setDefaultEdgeLabel(function() {
|
|
398
398
|
return {};
|
|
399
399
|
}), o = t.select("g");
|
|
400
|
-
F(o, e.markers, e.type, e.diagramId), Y(),
|
|
400
|
+
F(o, e.markers, e.type, e.diagramId), Y(), H(), _(), te(), e.nodes.forEach((g) => {
|
|
401
401
|
n.setNode(g.id, { ...g }), g.parentId && n.setParent(g.id, g.parentId);
|
|
402
402
|
}), i.debug("Edges:", e.edges), e.edges.forEach((g) => {
|
|
403
403
|
if (g.start === g.end) {
|
package/dist/diagram-PSM6KHXK.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a1 as he, a2 as ue, ae as pe, af as fe, a3 as ge, a4 as me, $ as w, au as te, at as ae, bI as ye, al as Se, as as ve, ab as K, ax as xe, ac as be, bJ as P } from "./CoachForm.js";
|
|
2
2
|
import { s as we } from "./chunk-QN33PNHL.js";
|
|
3
3
|
import { p as Ce } from "./chunk-4BX2VUAB.js";
|
|
4
4
|
import { p as Te } from "./mermaid-parser.core.js";
|
|
5
5
|
import { s as Y } from "./redux-toolkit.modern.js";
|
|
6
6
|
import { b as O } from "./defaultLocale.js";
|
|
7
|
-
import { o as
|
|
7
|
+
import { o as Z } from "./ordinal.js";
|
|
8
8
|
function Le(t) {
|
|
9
9
|
var a = 0, l = t.children, n = l && l.length;
|
|
10
10
|
if (!n) a = 1;
|
|
@@ -20,14 +20,14 @@ function Ae(t, a) {
|
|
|
20
20
|
t.call(a, n, ++l, this);
|
|
21
21
|
return this;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Fe(t, a) {
|
|
24
24
|
for (var l = this, n = [l], o, s, d = -1; l = n.pop(); )
|
|
25
25
|
if (t.call(a, l, ++d, this), o = l.children)
|
|
26
26
|
for (s = o.length - 1; s >= 0; --s)
|
|
27
27
|
n.push(o[s]);
|
|
28
28
|
return this;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function ke(t, a) {
|
|
31
31
|
for (var l = this, n = [l], o = [], s, d, h, g = -1; l = n.pop(); )
|
|
32
32
|
if (o.push(l), s = l.children)
|
|
33
33
|
for (d = 0, h = s.length; d < h; ++d)
|
|
@@ -97,20 +97,20 @@ function* Ee() {
|
|
|
97
97
|
while (l.length);
|
|
98
98
|
}
|
|
99
99
|
function Q(t, a) {
|
|
100
|
-
t instanceof Map ? (t = [void 0, t], a === void 0 && (a =
|
|
101
|
-
for (var l = new
|
|
100
|
+
t instanceof Map ? (t = [void 0, t], a === void 0 && (a = He)) : a === void 0 && (a = Ie);
|
|
101
|
+
for (var l = new J(t), n, o = [l], s, d, h, g; n = o.pop(); )
|
|
102
102
|
if ((d = a(n.data)) && (g = (d = Array.from(d)).length))
|
|
103
103
|
for (n.children = d, h = g - 1; h >= 0; --h)
|
|
104
|
-
o.push(s = d[h] = new
|
|
104
|
+
o.push(s = d[h] = new J(d[h])), s.parent = n, s.depth = n.depth + 1;
|
|
105
105
|
return l.eachBefore(Ge);
|
|
106
106
|
}
|
|
107
107
|
function We() {
|
|
108
108
|
return Q(this).eachBefore(Oe);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Ie(t) {
|
|
111
111
|
return t.children;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function He(t) {
|
|
114
114
|
return Array.isArray(t) ? t[1] : null;
|
|
115
115
|
}
|
|
116
116
|
function Oe(t) {
|
|
@@ -122,15 +122,15 @@ function Ge(t) {
|
|
|
122
122
|
t.height = a;
|
|
123
123
|
while ((t = t.parent) && t.height < ++a);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function J(t) {
|
|
126
126
|
this.data = t, this.depth = this.height = 0, this.parent = null;
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
constructor:
|
|
128
|
+
J.prototype = Q.prototype = {
|
|
129
|
+
constructor: J,
|
|
130
130
|
count: $e,
|
|
131
131
|
each: Ae,
|
|
132
|
-
eachAfter:
|
|
133
|
-
eachBefore:
|
|
132
|
+
eachAfter: ke,
|
|
133
|
+
eachBefore: Fe,
|
|
134
134
|
find: Ne,
|
|
135
135
|
sum: Me,
|
|
136
136
|
sort: _e,
|
|
@@ -165,34 +165,34 @@ function Ye(t, a, l, n, o) {
|
|
|
165
165
|
for (var s = t.children, d, h = -1, g = s.length, c = t.value && (o - l) / t.value; ++h < g; )
|
|
166
166
|
d = s[h], d.x0 = a, d.x1 = n, d.y0 = l, d.y1 = l += d.value * c;
|
|
167
167
|
}
|
|
168
|
-
var
|
|
169
|
-
function
|
|
170
|
-
for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N,
|
|
168
|
+
var Je = (1 + Math.sqrt(5)) / 2;
|
|
169
|
+
function Ue(t, a, l, n, o, s) {
|
|
170
|
+
for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N, k, V, E, M; u < r; ) {
|
|
171
171
|
x = o - l, S = s - n;
|
|
172
172
|
do
|
|
173
173
|
p = h[b++].value;
|
|
174
174
|
while (!p && b < r);
|
|
175
175
|
for (m = N = p, E = Math.max(S / x, x / S) / (v * t), M = p * p * E, V = Math.max(N / M, M / m); b < r; ++b) {
|
|
176
|
-
if (p += c = h[b].value, c < m && (m = c), c > N && (N = c), M = p * p * E,
|
|
176
|
+
if (p += c = h[b].value, c < m && (m = c), c > N && (N = c), M = p * p * E, k = Math.max(N / M, M / m), k > V) {
|
|
177
177
|
p -= c;
|
|
178
178
|
break;
|
|
179
179
|
}
|
|
180
|
-
V =
|
|
180
|
+
V = k;
|
|
181
181
|
}
|
|
182
182
|
d.push(g = { value: p, dice: x < S, children: h.slice(u, b) }), g.dice ? je(g, l, n, o, v ? n += S * p / v : s) : Ye(g, l, n, v ? l += x * p / v : o, s), v -= p, u = b;
|
|
183
183
|
}
|
|
184
184
|
return d;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const Ze = function t(a) {
|
|
187
187
|
function l(n, o, s, d, h) {
|
|
188
|
-
|
|
188
|
+
Ue(a, n, o, s, d, h);
|
|
189
189
|
}
|
|
190
190
|
return l.ratio = function(n) {
|
|
191
191
|
return t((n = +n) > 1 ? n : 1);
|
|
192
192
|
}, l;
|
|
193
|
-
}(
|
|
193
|
+
}(Je);
|
|
194
194
|
function Ke() {
|
|
195
|
-
var t =
|
|
195
|
+
var t = Ze, a = !1, l = 1, n = 1, o = [0], s = G, d = G, h = G, g = G, c = G;
|
|
196
196
|
function u(r) {
|
|
197
197
|
return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), o = [0], a && r.eachBefore(Xe), r;
|
|
198
198
|
}
|
|
@@ -344,7 +344,7 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
344
344
|
} catch (e) {
|
|
345
345
|
K.error("Error creating format function:", e), p = O(",");
|
|
346
346
|
}
|
|
347
|
-
const m =
|
|
347
|
+
const m = Z().range([
|
|
348
348
|
"transparent",
|
|
349
349
|
c.cScale0,
|
|
350
350
|
c.cScale1,
|
|
@@ -358,7 +358,7 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
358
358
|
c.cScale9,
|
|
359
359
|
c.cScale10,
|
|
360
360
|
c.cScale11
|
|
361
|
-
]), N =
|
|
361
|
+
]), N = Z().range([
|
|
362
362
|
"transparent",
|
|
363
363
|
c.cScalePeer0,
|
|
364
364
|
c.cScalePeer1,
|
|
@@ -372,7 +372,7 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
372
372
|
c.cScalePeer9,
|
|
373
373
|
c.cScalePeer10,
|
|
374
374
|
c.cScalePeer11
|
|
375
|
-
]),
|
|
375
|
+
]), k = Z().range([
|
|
376
376
|
c.cScaleLabel0,
|
|
377
377
|
c.cScaleLabel1,
|
|
378
378
|
c.cScaleLabel2,
|
|
@@ -398,7 +398,7 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
398
398
|
}), W.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", X / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => {
|
|
399
399
|
if (e.depth === 0)
|
|
400
400
|
return "display: none;";
|
|
401
|
-
const i = "dominant-baseline: middle; font-size: 12px; fill:" +
|
|
401
|
+
const i = "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
402
402
|
return i + f.labelStyles.replace("color:", "fill:");
|
|
403
403
|
}).each(function(e) {
|
|
404
404
|
if (e.depth === 0)
|
|
@@ -408,53 +408,53 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
408
408
|
const C = e.x1 - e.x0, $ = 6;
|
|
409
409
|
let A;
|
|
410
410
|
s.showValues !== !1 && e.value ? A = C - 10 - 30 - 10 - $ : A = C - $ - 6;
|
|
411
|
-
const
|
|
412
|
-
if (y.getComputedTextLength() >
|
|
411
|
+
const F = Math.max(15, A), y = i.node();
|
|
412
|
+
if (y.getComputedTextLength() > F) {
|
|
413
413
|
const T = "...";
|
|
414
414
|
let L = f;
|
|
415
415
|
for (; L.length > 0; ) {
|
|
416
416
|
if (L = f.substring(0, L.length - 1), L.length === 0) {
|
|
417
|
-
i.text(T), y.getComputedTextLength() >
|
|
417
|
+
i.text(T), y.getComputedTextLength() > F && i.text("");
|
|
418
418
|
break;
|
|
419
419
|
}
|
|
420
|
-
if (i.text(L + T), y.getComputedTextLength() <=
|
|
420
|
+
if (i.text(L + T), y.getComputedTextLength() <= F)
|
|
421
421
|
break;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
}), s.showValues !== !1 && W.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", X / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? p(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
|
|
425
425
|
if (e.depth === 0)
|
|
426
426
|
return "display: none;";
|
|
427
|
-
const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" +
|
|
427
|
+
const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
428
428
|
return i + f.labelStyles.replace("color:", "fill:");
|
|
429
429
|
});
|
|
430
430
|
const ie = ee.leaves(), j = V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class", (e, i) => `treemapNode treemapLeafGroup leaf${i}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
431
431
|
j.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("style", (e) => P({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("stroke-width", 3), j.append("clipPath").attr("id", (e, i) => `clip-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), j.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
|
|
432
|
-
const i = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" +
|
|
432
|
+
const i = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
433
433
|
return i + f.labelStyles.replace("color:", "fill:");
|
|
434
434
|
}).attr("clip-path", (e, i) => `url(#clip-${a}-${i})`).text((e) => e.data.name).each(function(e) {
|
|
435
|
-
const i = Y(this), f = e.x1 - e.x0, C = e.y1 - e.y0, $ = i.node(), A = 4, D = f - 2 * A,
|
|
436
|
-
if (D < 10 ||
|
|
435
|
+
const i = Y(this), f = e.x1 - e.x0, C = e.y1 - e.y0, $ = i.node(), A = 4, D = f - 2 * A, F = C - 2 * A;
|
|
436
|
+
if (D < 10 || F < 10) {
|
|
437
437
|
i.style("display", "none");
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
440
|
let y = parseInt(i.style("font-size"), 10);
|
|
441
|
-
const _ = 8, T = 28, L = 0.6, z = 6,
|
|
441
|
+
const _ = 8, T = 28, L = 0.6, z = 6, I = 2;
|
|
442
442
|
for (; $.getComputedTextLength() > D && y > _; )
|
|
443
443
|
y--, i.style("font-size", `${y}px`);
|
|
444
|
-
let
|
|
444
|
+
let H = Math.max(
|
|
445
445
|
z,
|
|
446
446
|
Math.min(T, Math.round(y * L))
|
|
447
|
-
),
|
|
448
|
-
for (;
|
|
447
|
+
), U = y + I + H;
|
|
448
|
+
for (; U > F && y > _ && (y--, H = Math.max(
|
|
449
449
|
z,
|
|
450
450
|
Math.min(T, Math.round(y * L))
|
|
451
|
-
), !(
|
|
452
|
-
i.style("font-size", `${y}px`),
|
|
453
|
-
i.style("font-size", `${y}px`), ($.getComputedTextLength() > D || y < _ ||
|
|
451
|
+
), !(H < z && y === _)); )
|
|
452
|
+
i.style("font-size", `${y}px`), U = y + I + H;
|
|
453
|
+
i.style("font-size", `${y}px`), ($.getComputedTextLength() > D || y < _ || F < y) && i.style("display", "none");
|
|
454
454
|
}), s.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
|
|
455
455
|
return (i.y1 - i.y0) / 2;
|
|
456
456
|
}).attr("style", (i) => {
|
|
457
|
-
const f = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" +
|
|
457
|
+
const f = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(i.data.name) + ";", C = P({ cssCompiledStyles: i.data.cssCompiledStyles });
|
|
458
458
|
return f + C.labelStyles.replace("color:", "fill:");
|
|
459
459
|
}).attr("clip-path", (i, f) => `url(#clip-${a}-${f})`).text((i) => i.value ? p(i.value) : "").each(function(i) {
|
|
460
460
|
const f = Y(this), C = this.parentNode;
|
|
@@ -467,14 +467,14 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
467
467
|
f.style("display", "none");
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const A = parseFloat($.style("font-size")), D = 28,
|
|
470
|
+
const A = parseFloat($.style("font-size")), D = 28, F = 0.6, y = 6, _ = 2, T = Math.max(
|
|
471
471
|
y,
|
|
472
|
-
Math.min(D, Math.round(A *
|
|
472
|
+
Math.min(D, Math.round(A * F))
|
|
473
473
|
);
|
|
474
474
|
f.style("font-size", `${T}px`);
|
|
475
475
|
const z = (i.y1 - i.y0) / 2 + A / 2 + _;
|
|
476
476
|
f.attr("y", z);
|
|
477
|
-
const
|
|
477
|
+
const I = i.x1 - i.x0, ce = i.y1 - i.y0 - 4, de = I - 2 * 4;
|
|
478
478
|
f.node().getComputedTextLength() > de || z + T > ce || T < y ? f.style("display", "none") : f.style("display", null);
|
|
479
479
|
});
|
|
480
480
|
const oe = s.diagramPadding ?? 8;
|
package/dist/diagram-QEK2KX5R.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { as as k, $ as l, a1 as R, a2 as I, ae as E, af as F, a3 as _, a4 as D, ab as z, at as y, au as C, al as G, ax as P, az as V } from "./CoachForm.js";
|
|
2
2
|
import { p as W } from "./chunk-4BX2VUAB.js";
|
|
3
3
|
import { p as B } from "./mermaid-parser.core.js";
|
|
4
4
|
var x = {
|
|
@@ -7,13 +7,13 @@ var x = {
|
|
|
7
7
|
max: null,
|
|
8
8
|
min: 0,
|
|
9
9
|
graticule: "circle"
|
|
10
|
-
},
|
|
10
|
+
}, w = {
|
|
11
11
|
axes: [],
|
|
12
12
|
curves: [],
|
|
13
13
|
options: x
|
|
14
|
-
}, h = structuredClone(
|
|
14
|
+
}, h = structuredClone(w), H = k.radar, j = /* @__PURE__ */ l(() => y({
|
|
15
15
|
...H,
|
|
16
|
-
...
|
|
16
|
+
...C().radar
|
|
17
17
|
}), "getConfig"), b = /* @__PURE__ */ l(() => h.axes, "getAxes"), N = /* @__PURE__ */ l(() => h.curves, "getCurves"), U = /* @__PURE__ */ l(() => h.options, "getOptions"), X = /* @__PURE__ */ l((a) => {
|
|
18
18
|
h.axes = a.map((t) => ({
|
|
19
19
|
name: t.name,
|
|
@@ -54,7 +54,7 @@ var x = {
|
|
|
54
54
|
graticule: ((i = t.graticule) == null ? void 0 : i.value) ?? x.graticule
|
|
55
55
|
};
|
|
56
56
|
}, "setOptions"), J = /* @__PURE__ */ l(() => {
|
|
57
|
-
|
|
57
|
+
G(), h = structuredClone(w);
|
|
58
58
|
}, "clear"), $ = {
|
|
59
59
|
getAxes: b,
|
|
60
60
|
getCurves: N,
|
|
@@ -66,9 +66,9 @@ var x = {
|
|
|
66
66
|
clear: J,
|
|
67
67
|
setAccTitle: R,
|
|
68
68
|
getAccTitle: I,
|
|
69
|
-
setDiagramTitle:
|
|
70
|
-
getDiagramTitle:
|
|
71
|
-
getAccDescription:
|
|
69
|
+
setDiagramTitle: E,
|
|
70
|
+
getDiagramTitle: F,
|
|
71
|
+
getAccDescription: _,
|
|
72
72
|
setAccDescription: D
|
|
73
73
|
}, K = /* @__PURE__ */ l((a) => {
|
|
74
74
|
W(a, $);
|
|
@@ -77,10 +77,10 @@ var x = {
|
|
|
77
77
|
}, "populate"), Q = {
|
|
78
78
|
parse: /* @__PURE__ */ l(async (a) => {
|
|
79
79
|
const t = await B("radar", a);
|
|
80
|
-
|
|
80
|
+
z.debug(t), K(t);
|
|
81
81
|
}, "parse")
|
|
82
82
|
}, tt = /* @__PURE__ */ l((a, t, e, r) => {
|
|
83
|
-
const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p =
|
|
83
|
+
const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p = P(t), u = et(p, c), g = n.max ?? Math.max(...i.map((f) => Math.max(...f.entries))), m = n.min, v = Math.min(c.width, c.height) / 2;
|
|
84
84
|
at(u, o, v, n.ticks, n.graticule), rt(u, o, v, c), M(u, o, i, m, g, n.graticule, c), T(u, i, n.showLegend, c), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
|
|
85
85
|
}, "draw"), et = /* @__PURE__ */ l((a, t) => {
|
|
86
86
|
const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, s = {
|
|
@@ -117,7 +117,7 @@ function M(a, t, e, r, s, o, i) {
|
|
|
117
117
|
if (d.entries.length !== n)
|
|
118
118
|
return;
|
|
119
119
|
const u = d.entries.map((g, m) => {
|
|
120
|
-
const v = 2 * Math.PI * m / n - Math.PI / 2,
|
|
120
|
+
const v = 2 * Math.PI * m / n - Math.PI / 2, f = A(g, r, s, c), O = f * Math.cos(v), S = f * Math.sin(v);
|
|
121
121
|
return { x: O, y: S };
|
|
122
122
|
});
|
|
123
123
|
o === "circle" ? a.append("path").attr("d", L(u, i.curveTension)).attr("class", `radarCurve-${p}`) : o === "polygon" && a.append("polygon").attr("points", u.map((g) => `${g.x},${g.y}`).join(" ")).attr("class", `radarCurve-${p}`);
|
|
@@ -176,7 +176,7 @@ var st = { draw: tt }, nt = /* @__PURE__ */ l((a, t) => {
|
|
|
176
176
|
}
|
|
177
177
|
return e;
|
|
178
178
|
}, "genIndexStyles"), ot = /* @__PURE__ */ l((a) => {
|
|
179
|
-
const t = V(), e =
|
|
179
|
+
const t = V(), e = C(), r = y(t, e.themeVariables), s = y(r.radar, a);
|
|
180
180
|
return { themeVariables: r, radarOptions: s };
|
|
181
181
|
}, "buildRadarStyleOptions"), it = /* @__PURE__ */ l(({ radar: a } = {}) => {
|
|
182
182
|
const { themeVariables: t, radarOptions: e } = ot(a);
|
package/dist/diagram-S2PKOQOG.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { as as B, a1 as C, a2 as S, ae as D, af as T, a3 as P, a4 as z, $ as b, at as m, au as E, al as F, ab as w, ax as A, ac as W } from "./CoachForm.js";
|
|
2
2
|
import { p as _ } from "./chunk-4BX2VUAB.js";
|
|
3
3
|
import { p as N } from "./mermaid-parser.core.js";
|
|
4
4
|
var L = B.packet, u, v = (u = class {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as Dt } from "./chunk-55IACEB6.js";
|
|
2
2
|
import { s as wt } from "./chunk-QN33PNHL.js";
|
|
3
|
-
import {
|
|
3
|
+
import { $ as u, a1 as Vt, a2 as Lt, a4 as Mt, a3 as Bt, ae as Ft, af as Yt, a5 as tt, ab as D, al as Pt, aj as zt, ar as Gt, ao as Kt, ap as Zt, ak as Ut, aq as jt } from "./CoachForm.js";
|
|
4
4
|
import { s as Wt } from "./redux-toolkit.modern.js";
|
|
5
5
|
import { c as Qt } from "./channel.js";
|
|
6
6
|
var dt = function() {
|