@epam/statgpt-conversation-view 0.2.0-rc.1 → 0.2.0-rc.3
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/index.d.ts +2 -1
- package/index.js +8 -8
- package/index.mjs +83 -78
- package/package.json +6 -6
package/index.mjs
CHANGED
|
@@ -6,27 +6,27 @@ import { InputWithIcon as Un, IconButton as Pe, KeyboardKey as Ni, Dropdown as F
|
|
|
6
6
|
import { IconPlayerStopFilled as Ti, IconCheck as Si, IconCopy as jr, IconPlus as Yr, IconSearch as Oi, IconCircleFilled as Li, IconClock as _i, IconArrowUpRight as Ri, IconExternalLink as Ii, IconPointFilled as Vi } from "@tabler/icons-react";
|
|
7
7
|
import B from "classnames";
|
|
8
8
|
import { generateConversationId as Kr, InvitationType as Pi, getSharedConversationsRequest as Zr, ShareTarget as Xr, AttachmentType as Le, mergeMessages as Hi, streamChatResponse as Bi } from "@epam/statgpt-dial-toolkit";
|
|
9
|
-
import { cleanConversationNames as In, CalendarResolution as cn, getTimePeriod as hn, CUSTOM_PERIOD as on, Locale as $e, QueryFilterType as fn, formatNumberBySign as Gi, defaultFormatNumbers as Fi, getConversationNavPath as Wi } from "@epam/statgpt-shared-toolkit";
|
|
9
|
+
import { SHARE_CONVERSATION_ROUTE as qr, cleanConversationNames as In, CalendarResolution as cn, getTimePeriod as hn, CUSTOM_PERIOD as on, Locale as $e, QueryFilterType as fn, formatNumberBySign as Gi, defaultFormatNumbers as Fi, getConversationNavPath as Wi } from "@epam/statgpt-shared-toolkit";
|
|
10
10
|
import { transformSharedConversations as zi } from "@epam/statgpt-conversation-list";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { isQuarterly as
|
|
11
|
+
import Qr from "react-markdown";
|
|
12
|
+
import eo from "remark-gfm";
|
|
13
|
+
import { isQuarterly as no, isMonthly as to, findCodelistByDimension as Nn, getAvailableCodes as $i, getDimensionTitle as ro, DimensionType as Ji, getAnnotationPeriod as oo, getFilteredItemsWithParents as Ui, getAvailableCodesFromConstrains as io, SeriesFilterOperator as Vn, GET_v3_FILTER_AND as ji, getTimeRangeFromAttachment as Yi, getQueryTimePeriodFilters as lo, getTimeSeriesFilterKey as An, TIME_PERIOD as wn, getTimeSeriesCount as fr, getLocalizedName as pe, getDimensions as Fe, getStructureComponentsMap as jn, SdmxDataFormat as Tn, FileColumnsAttribute as Sn, DownloadType as gn, getTimeQueryFilter as Ki, getTimeDimension as Zi, generateShortUrn as mn, getConcept as ao, getLastUpdatedTime as Xi, getArtifactByUrnWithWildCard as qi, getAdditionalColumns as Qi, getTimePeriods as Yn, sortPeriods as Kn, FREQUENCY_DIMENSION_ID as el, Periods as On, isYearly as nl, getParsedResponse as tl, getFiltersDtoFromDataQuery as rl, getStructureDimensions as wr } from "@epam/statgpt-sdmx-toolkit";
|
|
14
14
|
import { FixedSizeList as ol } from "react-window";
|
|
15
15
|
import il from "react-virtualized-auto-sizer";
|
|
16
|
-
import { useFloating as
|
|
17
|
-
import
|
|
18
|
-
import { AgGridReact as
|
|
16
|
+
import { useFloating as co, autoUpdate as ll, offset as al, flip as cl, shift as sl, arrow as dl, useClick as ul, useInteractions as so, FloatingPortal as hl, useHover as fl, safePolygon as wl } from "@floating-ui/react";
|
|
17
|
+
import uo from "echarts-for-react";
|
|
18
|
+
import { AgGridReact as ho } from "ag-grid-react";
|
|
19
19
|
import { ModuleRegistry as gl, AllCommunityModule as ml } from "ag-grid-community";
|
|
20
20
|
import { cloneDeep as pl, isEqual as vl } from "lodash";
|
|
21
21
|
import { format as bl, isValid as Cl } from "date-fns";
|
|
22
|
-
const
|
|
22
|
+
const fo = Br(
|
|
23
23
|
void 0
|
|
24
24
|
), wu = ({
|
|
25
25
|
children: e
|
|
26
26
|
}) => {
|
|
27
27
|
const [n, t] = k(!1);
|
|
28
28
|
return /* @__PURE__ */ u(
|
|
29
|
-
|
|
29
|
+
fo.Provider,
|
|
30
30
|
{
|
|
31
31
|
value: {
|
|
32
32
|
isOpenedAdvancedView: n,
|
|
@@ -36,20 +36,20 @@ const ho = Br(
|
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
38
|
}, Je = () => {
|
|
39
|
-
const e = Gr(
|
|
39
|
+
const e = Gr(fo);
|
|
40
40
|
if (e === void 0)
|
|
41
41
|
throw new Error(
|
|
42
42
|
"useAdvancedView must be used within a AdvancedViewProvider"
|
|
43
43
|
);
|
|
44
44
|
return e;
|
|
45
|
-
},
|
|
45
|
+
}, wo = Br(
|
|
46
46
|
void 0
|
|
47
47
|
), gu = ({
|
|
48
48
|
children: e
|
|
49
49
|
}) => {
|
|
50
50
|
const [n, t] = k(""), [r, o] = k(""), [i, c] = k(), [f, l] = k();
|
|
51
51
|
return /* @__PURE__ */ u(
|
|
52
|
-
|
|
52
|
+
wo.Provider,
|
|
53
53
|
{
|
|
54
54
|
value: {
|
|
55
55
|
onboardingFileName: n,
|
|
@@ -65,13 +65,13 @@ const ho = Br(
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
}, Me = () => {
|
|
68
|
-
const e = Gr(
|
|
68
|
+
const e = Gr(wo);
|
|
69
69
|
if (e === void 0)
|
|
70
70
|
throw new Error("useOnboarding must be used within a OnboardingProvider");
|
|
71
71
|
return e;
|
|
72
72
|
};
|
|
73
73
|
var Pn = /* @__PURE__ */ ((e) => (e.CHOICE = "choice", e.COMPLETION = "completion", e))(Pn || {}), Zn = /* @__PURE__ */ ((e) => (e.COMPLETE = "complete", e))(Zn || {}), kl = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e))(kl || {}), Hn = /* @__PURE__ */ ((e) => (e.PREVIOUS = "previous", e.NEXT = "next", e))(Hn || {});
|
|
74
|
-
const
|
|
74
|
+
const go = ({
|
|
75
75
|
inProcess: e,
|
|
76
76
|
containerClasses: n,
|
|
77
77
|
inputClasses: t,
|
|
@@ -152,7 +152,7 @@ const wo = ({
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
|
-
}, Ml = (e) => /* @__PURE__ */ Q.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Q.createElement("path", { d: "M4.16667 17.5C3.70833 17.5 3.31597 17.3368 2.98958 17.0104C2.66319 16.684 2.5 16.2917 2.5 15.8333V4.16667C2.5 3.70833 2.66319 3.31597 2.98958 2.98958C3.31597 2.66319 3.70833 2.5 4.16667 2.5H10V4.16667H4.16667V15.8333H10V17.5H4.16667ZM13.3333 14.1667L12.1875 12.9583L14.3125 10.8333H7.5V9.16667H14.3125L12.1875 7.04167L13.3333 5.83333L17.5 10L13.3333 14.1667Z", fill: "currentColor" })),
|
|
155
|
+
}, Ml = (e) => /* @__PURE__ */ Q.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Q.createElement("path", { d: "M4.16667 17.5C3.70833 17.5 3.31597 17.3368 2.98958 17.0104C2.66319 16.684 2.5 16.2917 2.5 15.8333V4.16667C2.5 3.70833 2.66319 3.31597 2.98958 2.98958C3.31597 2.66319 3.70833 2.5 4.16667 2.5H10V4.16667H4.16667V15.8333H10V17.5H4.16667ZM13.3333 14.1667L12.1875 12.9583L14.3125 10.8333H7.5V9.16667H14.3125L12.1875 7.04167L13.3333 5.83333L17.5 10L13.3333 14.1667Z", fill: "currentColor" })), mo = ({ userInfo: e, signOutAction: n, title: t }) => {
|
|
156
156
|
const r = se(
|
|
157
157
|
() => (e == null ? void 0 : e.name.split(" ").map((c) => c[0].toUpperCase()).join("")) || "",
|
|
158
158
|
[e]
|
|
@@ -191,20 +191,20 @@ const wo = ({
|
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
193
|
};
|
|
194
|
-
var El = Object.defineProperty, pn = Object.getOwnPropertySymbols,
|
|
194
|
+
var El = Object.defineProperty, pn = Object.getOwnPropertySymbols, po = Object.prototype.hasOwnProperty, vo = Object.prototype.propertyIsEnumerable, mr = (e, n, t) => n in e ? El(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Bn = (e, n) => {
|
|
195
195
|
for (var t in n || (n = {}))
|
|
196
|
-
|
|
196
|
+
po.call(n, t) && mr(e, t, n[t]);
|
|
197
197
|
if (pn)
|
|
198
198
|
for (var t of pn(n))
|
|
199
|
-
|
|
199
|
+
vo.call(n, t) && mr(e, t, n[t]);
|
|
200
200
|
return e;
|
|
201
201
|
}, Gn = (e, n) => {
|
|
202
202
|
var t = {};
|
|
203
203
|
for (var r in e)
|
|
204
|
-
|
|
204
|
+
po.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
|
|
205
205
|
if (e != null && pn)
|
|
206
206
|
for (var r of pn(e))
|
|
207
|
-
n.indexOf(r) < 0 &&
|
|
207
|
+
n.indexOf(r) < 0 && vo.call(e, r) && (t[r] = e[r]);
|
|
208
208
|
return t;
|
|
209
209
|
};
|
|
210
210
|
/**
|
|
@@ -758,8 +758,8 @@ var Tl = {
|
|
|
758
758
|
M: je.QrCode.Ecc.MEDIUM,
|
|
759
759
|
Q: je.QrCode.Ecc.QUARTILE,
|
|
760
760
|
H: je.QrCode.Ecc.HIGH
|
|
761
|
-
},
|
|
762
|
-
function
|
|
761
|
+
}, bo = 128, Co = "L", ko = "#FFFFFF", No = "#000000", Ao = !1, Do = 1, Sl = 4, Ol = 0, Ll = 0.1;
|
|
762
|
+
function xo(e, n = 0) {
|
|
763
763
|
const t = [];
|
|
764
764
|
return e.forEach(function(r, o) {
|
|
765
765
|
let i = null;
|
|
@@ -782,7 +782,7 @@ function Do(e, n = 0) {
|
|
|
782
782
|
});
|
|
783
783
|
}), t.join("");
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function yo(e, n) {
|
|
786
786
|
return e.slice().map((t, r) => r < n.y || r >= n.y + n.h ? t : t.map((o, i) => i < n.x || i >= n.x + n.w ? o : !1));
|
|
787
787
|
}
|
|
788
788
|
function _l(e, n, t, r) {
|
|
@@ -800,7 +800,7 @@ function _l(e, n, t, r) {
|
|
|
800
800
|
function Rl(e, n) {
|
|
801
801
|
return n != null ? Math.max(Math.floor(n), 0) : e ? Sl : Ol;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Mo({
|
|
804
804
|
value: e,
|
|
805
805
|
level: n,
|
|
806
806
|
minVersion: t,
|
|
@@ -855,12 +855,12 @@ var Il = (function() {
|
|
|
855
855
|
function(n, t) {
|
|
856
856
|
const r = n, {
|
|
857
857
|
value: o,
|
|
858
|
-
size: i =
|
|
859
|
-
level: c =
|
|
860
|
-
bgColor: f =
|
|
861
|
-
fgColor: l =
|
|
862
|
-
includeMargin: s =
|
|
863
|
-
minVersion: a =
|
|
858
|
+
size: i = bo,
|
|
859
|
+
level: c = Co,
|
|
860
|
+
bgColor: f = ko,
|
|
861
|
+
fgColor: l = No,
|
|
862
|
+
includeMargin: s = Ao,
|
|
863
|
+
minVersion: a = Do,
|
|
864
864
|
boostLevel: d,
|
|
865
865
|
marginSize: h,
|
|
866
866
|
imageSettings: w
|
|
@@ -880,7 +880,7 @@ var Il = (function() {
|
|
|
880
880
|
p.current = Z, typeof t == "function" ? t(Z) : t && (t.current = Z);
|
|
881
881
|
},
|
|
882
882
|
[t]
|
|
883
|
-
), [y, R] = we.useState(!1), { margin: T, cells: E, numCells: A, calculatedImageSettings: M } =
|
|
883
|
+
), [y, R] = we.useState(!1), { margin: T, cells: E, numCells: A, calculatedImageSettings: M } = Mo({
|
|
884
884
|
value: o,
|
|
885
885
|
level: c,
|
|
886
886
|
minVersion: a,
|
|
@@ -897,14 +897,14 @@ var Il = (function() {
|
|
|
897
897
|
return;
|
|
898
898
|
let V = E;
|
|
899
899
|
const W = D.current, F = M != null && W !== null && W.complete && W.naturalHeight !== 0 && W.naturalWidth !== 0;
|
|
900
|
-
F && M.excavation != null && (V =
|
|
900
|
+
F && M.excavation != null && (V = yo(
|
|
901
901
|
E,
|
|
902
902
|
M.excavation
|
|
903
903
|
));
|
|
904
904
|
const $ = window.devicePixelRatio || 1;
|
|
905
905
|
Z.height = Z.width = i * $;
|
|
906
906
|
const X = i / A * $;
|
|
907
|
-
S.scale(X, X), S.fillStyle = f, S.fillRect(0, 0, A, A), S.fillStyle = l, Il ? S.fill(new Path2D(
|
|
907
|
+
S.scale(X, X), S.fillStyle = f, S.fillRect(0, 0, A, A), S.fillStyle = l, Il ? S.fill(new Path2D(xo(V, T))) : E.forEach(function(U, q) {
|
|
908
908
|
U.forEach(function(de, ce) {
|
|
909
909
|
de && S.fillRect(ce + T, q + T, 1, 1);
|
|
910
910
|
});
|
|
@@ -946,16 +946,16 @@ var Il = (function() {
|
|
|
946
946
|
}
|
|
947
947
|
);
|
|
948
948
|
Vl.displayName = "QRCodeCanvas";
|
|
949
|
-
var
|
|
949
|
+
var Eo = we.forwardRef(
|
|
950
950
|
function(n, t) {
|
|
951
951
|
const r = n, {
|
|
952
952
|
value: o,
|
|
953
|
-
size: i =
|
|
954
|
-
level: c =
|
|
955
|
-
bgColor: f =
|
|
956
|
-
fgColor: l =
|
|
957
|
-
includeMargin: s =
|
|
958
|
-
minVersion: a =
|
|
953
|
+
size: i = bo,
|
|
954
|
+
level: c = Co,
|
|
955
|
+
bgColor: f = ko,
|
|
956
|
+
fgColor: l = No,
|
|
957
|
+
includeMargin: s = Ao,
|
|
958
|
+
minVersion: a = Do,
|
|
959
959
|
boostLevel: d,
|
|
960
960
|
title: h,
|
|
961
961
|
marginSize: w,
|
|
@@ -972,7 +972,7 @@ var Mo = we.forwardRef(
|
|
|
972
972
|
"title",
|
|
973
973
|
"marginSize",
|
|
974
974
|
"imageSettings"
|
|
975
|
-
]), { margin: m, cells: x, numCells: N, calculatedImageSettings: p } =
|
|
975
|
+
]), { margin: m, cells: x, numCells: N, calculatedImageSettings: p } = Mo({
|
|
976
976
|
value: o,
|
|
977
977
|
level: c,
|
|
978
978
|
minVersion: a,
|
|
@@ -983,7 +983,7 @@ var Mo = we.forwardRef(
|
|
|
983
983
|
size: i
|
|
984
984
|
});
|
|
985
985
|
let D = x, v = null;
|
|
986
|
-
g != null && p != null && (p.excavation != null && (D =
|
|
986
|
+
g != null && p != null && (p.excavation != null && (D = yo(
|
|
987
987
|
x,
|
|
988
988
|
p.excavation
|
|
989
989
|
)), v = /* @__PURE__ */ we.createElement(
|
|
@@ -999,7 +999,7 @@ var Mo = we.forwardRef(
|
|
|
999
999
|
crossOrigin: p.crossOrigin
|
|
1000
1000
|
}
|
|
1001
1001
|
));
|
|
1002
|
-
const y =
|
|
1002
|
+
const y = xo(D, m);
|
|
1003
1003
|
return /* @__PURE__ */ we.createElement(
|
|
1004
1004
|
"svg",
|
|
1005
1005
|
Bn({
|
|
@@ -1023,8 +1023,8 @@ var Mo = we.forwardRef(
|
|
|
1023
1023
|
);
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
|
-
|
|
1027
|
-
const
|
|
1026
|
+
Eo.displayName = "QRCodeSVG";
|
|
1027
|
+
const Pl = (e, n) => ({
|
|
1028
1028
|
invitationType: Pi.LINK,
|
|
1029
1029
|
resources: [
|
|
1030
1030
|
{
|
|
@@ -1035,7 +1035,7 @@ const Eo = "share", Pl = (e, n) => ({
|
|
|
1035
1035
|
}), Hl = (e) => {
|
|
1036
1036
|
var t;
|
|
1037
1037
|
const n = ((t = e == null ? void 0 : e.invitationLink) == null ? void 0 : t.split("/").at(-1)) || "";
|
|
1038
|
-
return `/${
|
|
1038
|
+
return `/${qr}/${n}`;
|
|
1039
1039
|
}, Bl = (e, n) => n == null ? void 0 : n.find((t) => {
|
|
1040
1040
|
var i, c, f, l;
|
|
1041
1041
|
const r = (c = (i = e == null ? void 0 : e.id) == null ? void 0 : i.split("/")) == null ? void 0 : c.pop(), o = ((l = (f = t == null ? void 0 : t.url) == null ? void 0 : f.split("/")) == null ? void 0 : l.pop()) || "";
|
|
@@ -1082,7 +1082,7 @@ const Eo = "share", Pl = (e, n) => ({
|
|
|
1082
1082
|
var q;
|
|
1083
1083
|
const U = N || window.location.origin;
|
|
1084
1084
|
if (N && N !== window.location.origin && D && v) {
|
|
1085
|
-
const de = (q = y == null ? void 0 : y.split(`/${
|
|
1085
|
+
const de = (q = y == null ? void 0 : y.split(`/${qr}/`)) == null ? void 0 : q[1];
|
|
1086
1086
|
return `${U}/${D}?${v}=${de}`;
|
|
1087
1087
|
}
|
|
1088
1088
|
return `${U}/${n}${y}`;
|
|
@@ -1164,7 +1164,7 @@ const Eo = "share", Pl = (e, n) => ({
|
|
|
1164
1164
|
] })
|
|
1165
1165
|
] }),
|
|
1166
1166
|
/* @__PURE__ */ u(
|
|
1167
|
-
|
|
1167
|
+
Eo,
|
|
1168
1168
|
{
|
|
1169
1169
|
className: "self-center border border-neutrals-600 p-2 rounded min-h-[200px]",
|
|
1170
1170
|
value: V,
|
|
@@ -1259,7 +1259,7 @@ const Eo = "share", Pl = (e, n) => ({
|
|
|
1259
1259
|
}
|
|
1260
1260
|
) }),
|
|
1261
1261
|
o && /* @__PURE__ */ u(
|
|
1262
|
-
|
|
1262
|
+
mo,
|
|
1263
1263
|
{
|
|
1264
1264
|
userInfo: i || null,
|
|
1265
1265
|
signOutAction: l,
|
|
@@ -1280,9 +1280,9 @@ const Eo = "share", Pl = (e, n) => ({
|
|
|
1280
1280
|
n
|
|
1281
1281
|
),
|
|
1282
1282
|
children: /* @__PURE__ */ u(
|
|
1283
|
-
|
|
1283
|
+
Qr,
|
|
1284
1284
|
{
|
|
1285
|
-
remarkPlugins: [
|
|
1285
|
+
remarkPlugins: [eo],
|
|
1286
1286
|
components: {
|
|
1287
1287
|
strong: (r) => /* @__PURE__ */ u("strong", { className: n, ...r }),
|
|
1288
1288
|
a: ({ href: r, children: o, ...i }) => /* @__PURE__ */ u("a", { href: r, target: "_blank", ...i, children: o })
|
|
@@ -1352,7 +1352,10 @@ const Eo = "share", Pl = (e, n) => ({
|
|
|
1352
1352
|
)
|
|
1353
1353
|
] })
|
|
1354
1354
|
] })
|
|
1355
|
-
] }), zl = ({
|
|
1355
|
+
] }), zl = ({
|
|
1356
|
+
titles: e,
|
|
1357
|
+
openNewConversation: n
|
|
1358
|
+
}) => /* @__PURE__ */ C("div", { className: "text-center bg-accent-300 body-3 p-2", children: [
|
|
1356
1359
|
/* @__PURE__ */ u("span", { className: "mr-2 text-neutrals-900", children: e == null ? void 0 : e.onboardingFooter }),
|
|
1357
1360
|
/* @__PURE__ */ C(
|
|
1358
1361
|
"span",
|
|
@@ -1518,7 +1521,7 @@ const Eo = "share", Pl = (e, n) => ({
|
|
|
1518
1521
|
}
|
|
1519
1522
|
) : /* @__PURE__ */ C("div", { className: "flex flex-col h-full items-center justify-center sm:px-4", children: [
|
|
1520
1523
|
w && /* @__PURE__ */ u("div", { className: "absolute top-4 right-4", children: /* @__PURE__ */ u(
|
|
1521
|
-
|
|
1524
|
+
mo,
|
|
1522
1525
|
{
|
|
1523
1526
|
userInfo: w,
|
|
1524
1527
|
signOutAction: g,
|
|
@@ -1539,7 +1542,7 @@ const Eo = "share", Pl = (e, n) => ({
|
|
|
1539
1542
|
}
|
|
1540
1543
|
),
|
|
1541
1544
|
/* @__PURE__ */ u(
|
|
1542
|
-
|
|
1545
|
+
go,
|
|
1543
1546
|
{
|
|
1544
1547
|
containerClasses: B(
|
|
1545
1548
|
i.inputContainerClass,
|
|
@@ -5326,7 +5329,7 @@ const ea = /* @__PURE__ */ _o(Ql), br = (e, n, t, r, o = !1, i) => {
|
|
|
5326
5329
|
monthly: (e == null ? void 0 : e.monthly) || "M"
|
|
5327
5330
|
}), ia = (e, n) => {
|
|
5328
5331
|
const t = oa(n);
|
|
5329
|
-
return
|
|
5332
|
+
return no(e) && (t != null && t.quarterly) ? e == null ? void 0 : e.replace(/Q/g, t == null ? void 0 : t.quarterly) : to(e) && (t != null && t.monthly) ? e == null ? void 0 : e.replace(/M/g, t == null ? void 0 : t.monthly) : e;
|
|
5330
5333
|
};
|
|
5331
5334
|
var Ye = /* @__PURE__ */ ((e) => (e.FLAT_LIST = "FLAT_LIST", e.HIERARCHY = "HIERARCHY", e))(Ye || {});
|
|
5332
5335
|
const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
|
|
@@ -5343,7 +5346,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
|
|
|
5343
5346
|
), f = i == null ? void 0 : i.some((s) => s == null ? void 0 : s.parent);
|
|
5344
5347
|
return {
|
|
5345
5348
|
id: o == null ? void 0 : o.id,
|
|
5346
|
-
title:
|
|
5349
|
+
title: ro(n == null ? void 0 : n.conceptSchemes, o, r),
|
|
5347
5350
|
dimensionValues: c,
|
|
5348
5351
|
isTimeDimension: (o == null ? void 0 : o.type) === Ji.TIME_DIMENSION,
|
|
5349
5352
|
isHierarchical: f,
|
|
@@ -5391,7 +5394,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
|
|
|
5391
5394
|
if (r.isTimeDimension) {
|
|
5392
5395
|
const l = o.values.filter(
|
|
5393
5396
|
(w) => !!w
|
|
5394
|
-
), s =
|
|
5397
|
+
), s = oo(
|
|
5395
5398
|
(c = t == null ? void 0 : t[0]) == null ? void 0 : c.annotations
|
|
5396
5399
|
), a = l[0] ? hn(l[0]) : null, d = l[1] ? hn(l[1]) : null;
|
|
5397
5400
|
let h = s;
|
|
@@ -5497,7 +5500,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
|
|
|
5497
5500
|
defaultTimeOption: d
|
|
5498
5501
|
}) => {
|
|
5499
5502
|
var R, T, E, A;
|
|
5500
|
-
const h =
|
|
5503
|
+
const h = oo(
|
|
5501
5504
|
c == null ? void 0 : c[0].annotations
|
|
5502
5505
|
), [w, g] = k(
|
|
5503
5506
|
n
|
|
@@ -6154,7 +6157,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
|
|
|
6154
6157
|
t == null ? void 0 : t.codelists,
|
|
6155
6158
|
t == null ? void 0 : t.conceptSchemes,
|
|
6156
6159
|
c
|
|
6157
|
-
), l =
|
|
6160
|
+
), l = io(
|
|
6158
6161
|
f == null ? void 0 : f.codes,
|
|
6159
6162
|
c.id,
|
|
6160
6163
|
r,
|
|
@@ -6229,7 +6232,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
|
|
|
6229
6232
|
), Ta = (e, n) => {
|
|
6230
6233
|
var i;
|
|
6231
6234
|
const t = (i = n == null ? void 0 : n.timeDimensions) == null ? void 0 : i[0], r = Yi(e, t) || null;
|
|
6232
|
-
return r ?
|
|
6235
|
+
return r ? lo(r, t == null ? void 0 : t.id) : null;
|
|
6233
6236
|
}, Sa = (e, n) => {
|
|
6234
6237
|
const t = Io(e), r = t.find(
|
|
6235
6238
|
(o) => (o == null ? void 0 : o.isTimeDimension) && (o == null ? void 0 : o.timeRange)
|
|
@@ -6239,7 +6242,7 @@ const la = (e, n, t, r) => (e == null ? void 0 : e.map((o) => {
|
|
|
6239
6242
|
n || [],
|
|
6240
6243
|
Ea(t)
|
|
6241
6244
|
),
|
|
6242
|
-
timeFilter:
|
|
6245
|
+
timeFilter: lo(
|
|
6243
6246
|
r == null ? void 0 : r.timeRange,
|
|
6244
6247
|
r == null ? void 0 : r.id
|
|
6245
6248
|
)
|
|
@@ -6476,7 +6479,7 @@ const qn = [
|
|
|
6476
6479
|
supressReferenceClick: c
|
|
6477
6480
|
}) => {
|
|
6478
6481
|
var E;
|
|
6479
|
-
const [f, l] = k(!0), [s, a] = k(!1), d = he(null), { isShowOnboarding: h, onboardingFileSchema: w, setOnboardingFileSchema: g } = Me(), { refs: b, floatingStyles: m, context: x, placement: N } =
|
|
6482
|
+
const [f, l] = k(!0), [s, a] = k(!1), d = he(null), { isShowOnboarding: h, onboardingFileSchema: w, setOnboardingFileSchema: g } = Me(), { refs: b, floatingStyles: m, context: x, placement: N } = co({
|
|
6480
6483
|
open: f,
|
|
6481
6484
|
onOpenChange: l,
|
|
6482
6485
|
placement: "right-start",
|
|
@@ -6490,7 +6493,7 @@ const qn = [
|
|
|
6490
6493
|
dl({ element: d })
|
|
6491
6494
|
],
|
|
6492
6495
|
whileElementsMounted: ll
|
|
6493
|
-
}), p = ul(x), { getFloatingProps: D } =
|
|
6496
|
+
}), p = ul(x), { getFloatingProps: D } = so([p]), v = P(() => {
|
|
6494
6497
|
if (h) {
|
|
6495
6498
|
const A = Ia(
|
|
6496
6499
|
w,
|
|
@@ -6767,7 +6770,7 @@ const Wa = (e, n) => {
|
|
|
6767
6770
|
r == null ? void 0 : r.codelists,
|
|
6768
6771
|
r == null ? void 0 : r.conceptSchemes,
|
|
6769
6772
|
ne
|
|
6770
|
-
), I =
|
|
6773
|
+
), I = io(
|
|
6771
6774
|
_ == null ? void 0 : _.codes,
|
|
6772
6775
|
ne.id,
|
|
6773
6776
|
S.current,
|
|
@@ -7238,7 +7241,7 @@ const Qa = ({ attachment: e, className: n = "" }) => {
|
|
|
7238
7241
|
children: [
|
|
7239
7242
|
/* @__PURE__ */ C("div", { className: "single-chart-popup-content flex flex-row flex-1 gap-4 min-h-0 h-full", children: [
|
|
7240
7243
|
/* @__PURE__ */ u("div", { className: "flex flex-col flex-1 min-h-0", children: /* @__PURE__ */ u(
|
|
7241
|
-
|
|
7244
|
+
uo,
|
|
7242
7245
|
{
|
|
7243
7246
|
option: n.config,
|
|
7244
7247
|
className: "w-full h-full",
|
|
@@ -7414,7 +7417,7 @@ const $n = ["index", "value"], pc = (e) => ({
|
|
|
7414
7417
|
}, [c, r]);
|
|
7415
7418
|
const h = se(
|
|
7416
7419
|
() => /* @__PURE__ */ u(
|
|
7417
|
-
|
|
7420
|
+
ho,
|
|
7418
7421
|
{
|
|
7419
7422
|
headerHeight: Dn,
|
|
7420
7423
|
rowHeight: et,
|
|
@@ -7626,7 +7629,7 @@ const $n = ["index", "value"], pc = (e) => ({
|
|
|
7626
7629
|
], qo = (e, n, t) => {
|
|
7627
7630
|
var r, o;
|
|
7628
7631
|
return {
|
|
7629
|
-
title:
|
|
7632
|
+
title: ro(
|
|
7630
7633
|
e == null ? void 0 : e.conceptSchemes,
|
|
7631
7634
|
(o = (r = Fe(e)) == null ? void 0 : r.timeDimensions) == null ? void 0 : o[0],
|
|
7632
7635
|
n
|
|
@@ -8009,7 +8012,7 @@ const $n = ["index", "value"], pc = (e) => ({
|
|
|
8009
8012
|
]);
|
|
8010
8013
|
const T = se(
|
|
8011
8014
|
() => /* @__PURE__ */ u(
|
|
8012
|
-
|
|
8015
|
+
ho,
|
|
8013
8016
|
{
|
|
8014
8017
|
headerHeight: Dn,
|
|
8015
8018
|
rowHeight: et,
|
|
@@ -8143,7 +8146,7 @@ const $n = ["index", "value"], pc = (e) => ({
|
|
|
8143
8146
|
titles: n,
|
|
8144
8147
|
openAdvancedView: t
|
|
8145
8148
|
}) => {
|
|
8146
|
-
const [r, o] = k(!1), { refs: i, floatingStyles: c, context: f } =
|
|
8149
|
+
const [r, o] = k(!1), { refs: i, floatingStyles: c, context: f } = co({
|
|
8147
8150
|
open: r,
|
|
8148
8151
|
onOpenChange: o,
|
|
8149
8152
|
placement: "top-start"
|
|
@@ -8151,7 +8154,7 @@ const $n = ["index", "value"], pc = (e) => ({
|
|
|
8151
8154
|
handleClose: wl({
|
|
8152
8155
|
blockPointerEvents: !0
|
|
8153
8156
|
})
|
|
8154
|
-
}), { getReferenceProps: s, getFloatingProps: a } =
|
|
8157
|
+
}), { getReferenceProps: s, getFloatingProps: a } = so([l]);
|
|
8155
8158
|
return /* @__PURE__ */ C(ie, { children: [
|
|
8156
8159
|
/* @__PURE__ */ u(
|
|
8157
8160
|
"div",
|
|
@@ -8253,7 +8256,7 @@ const Jc = ({ option: e, style: n }) => {
|
|
|
8253
8256
|
window.removeEventListener("resize", c);
|
|
8254
8257
|
};
|
|
8255
8258
|
}, [e, i]), /* @__PURE__ */ u(
|
|
8256
|
-
|
|
8259
|
+
uo,
|
|
8257
8260
|
{
|
|
8258
8261
|
notMerge: !0,
|
|
8259
8262
|
lazyUpdate: !1,
|
|
@@ -8723,7 +8726,7 @@ const Jc = ({ option: e, style: n }) => {
|
|
|
8723
8726
|
var s, a, d;
|
|
8724
8727
|
const c = n.find(
|
|
8725
8728
|
(h) => (h == null ? void 0 : h.id) === (i == null ? void 0 : i.componentCode)
|
|
8726
|
-
), f =
|
|
8729
|
+
), f = ao(
|
|
8727
8730
|
(c == null ? void 0 : c.conceptIdentity) || "",
|
|
8728
8731
|
t
|
|
8729
8732
|
), l = Nn(
|
|
@@ -9919,7 +9922,7 @@ const Cs = (e, n, t) => {
|
|
|
9919
9922
|
};
|
|
9920
9923
|
function it(e, n, t) {
|
|
9921
9924
|
var i;
|
|
9922
|
-
const r =
|
|
9925
|
+
const r = ao(e.conceptIdentity, n), o = qi(
|
|
9923
9926
|
(i = r == null ? void 0 : r.coreRepresentation) == null ? void 0 : i.enumeration,
|
|
9924
9927
|
t
|
|
9925
9928
|
);
|
|
@@ -10296,9 +10299,9 @@ function Pr(e, n, t) {
|
|
|
10296
10299
|
if (t) {
|
|
10297
10300
|
const r = n == null ? void 0 : n[t];
|
|
10298
10301
|
if (r === On.MONTHLY)
|
|
10299
|
-
return e == null ? void 0 : e.filter((o) =>
|
|
10302
|
+
return e == null ? void 0 : e.filter((o) => to(o));
|
|
10300
10303
|
if (r === On.QUARTERLY)
|
|
10301
|
-
return e == null ? void 0 : e.filter((o) =>
|
|
10304
|
+
return e == null ? void 0 : e.filter((o) => no(o));
|
|
10302
10305
|
if (r === On.ANNUAL)
|
|
10303
10306
|
return e == null ? void 0 : e.filter((o) => nl(o));
|
|
10304
10307
|
}
|
|
@@ -10740,9 +10743,9 @@ const Ed = ({ stage: e, stageRef: n, isCurrentStage: t }) => /* @__PURE__ */ C(
|
|
|
10740
10743
|
}
|
|
10741
10744
|
),
|
|
10742
10745
|
/* @__PURE__ */ u("div", { className: "prose max-w-full break-words", children: /* @__PURE__ */ u(
|
|
10743
|
-
|
|
10746
|
+
Qr,
|
|
10744
10747
|
{
|
|
10745
|
-
remarkPlugins: [
|
|
10748
|
+
remarkPlugins: [eo],
|
|
10746
10749
|
components: {
|
|
10747
10750
|
strong: (r) => /* @__PURE__ */ u("strong", { className: "text-neutrals-1000", ...r }),
|
|
10748
10751
|
a: ({ href: r, children: o, ...i }) => /* @__PURE__ */ u("a", { href: r, target: "_blank", ...i, children: o }),
|
|
@@ -11745,7 +11748,7 @@ const $d = (e, n, t, r) => {
|
|
|
11745
11748
|
buttonClassName: B("text-button-secondary")
|
|
11746
11749
|
}
|
|
11747
11750
|
) }) : /* @__PURE__ */ u("div", { className: B(i.inputContainerClass), children: /* @__PURE__ */ u(
|
|
11748
|
-
|
|
11751
|
+
go,
|
|
11749
11752
|
{
|
|
11750
11753
|
onSendMessage: (_) => Se(_, n),
|
|
11751
11754
|
onStopStreaming: Be,
|
|
@@ -11775,6 +11778,8 @@ export {
|
|
|
11775
11778
|
wu as AdvancedViewProvider,
|
|
11776
11779
|
Zn as CUSTOM_CHOICE_ID,
|
|
11777
11780
|
Hn as ChartingIcon,
|
|
11781
|
+
$l as ChatFooter,
|
|
11782
|
+
zl as ChatOnboardingFooter,
|
|
11778
11783
|
Cu as ConversationView,
|
|
11779
11784
|
vu as ConversationWelcome,
|
|
11780
11785
|
Pn as CustomContentProperties,
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/statgpt-conversation-view",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"react": "^19.1.0",
|
|
7
7
|
"classnames": "^2.5.1",
|
|
8
8
|
"@epam/ai-dial-shared": "^0.34.0",
|
|
9
9
|
"@tabler/icons-react": "^3.34.1",
|
|
10
|
-
"@epam/statgpt-shared-toolkit": "0.2.0-rc.
|
|
11
|
-
"@epam/statgpt-ui-components": "0.2.0-rc.
|
|
12
|
-
"@epam/statgpt-sdmx-toolkit": "0.2.0-rc.
|
|
10
|
+
"@epam/statgpt-shared-toolkit": "0.2.0-rc.3",
|
|
11
|
+
"@epam/statgpt-ui-components": "0.2.0-rc.3",
|
|
12
|
+
"@epam/statgpt-sdmx-toolkit": "0.2.0-rc.3",
|
|
13
13
|
"react-window": "^1.8.11",
|
|
14
14
|
"react-virtualized-auto-sizer": "^1.0.26",
|
|
15
15
|
"ag-grid-community": "33.3.2",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"@floating-ui/react": "^0.27.14",
|
|
18
18
|
"echarts": "^5.6.0",
|
|
19
19
|
"echarts-for-react": "^3.0.2",
|
|
20
|
-
"@epam/statgpt-dial-toolkit": "0.2.0-rc.
|
|
20
|
+
"@epam/statgpt-dial-toolkit": "0.2.0-rc.3",
|
|
21
21
|
"react-markdown": "^10.1.0",
|
|
22
22
|
"remark-gfm": "^4.0.1",
|
|
23
|
-
"@epam/statgpt-conversation-list": "0.2.0-rc.
|
|
23
|
+
"@epam/statgpt-conversation-list": "0.2.0-rc.3",
|
|
24
24
|
"flatpickr": "4.6.13",
|
|
25
25
|
"react-flatpickr": "^4.0.11",
|
|
26
26
|
"date-fns": "^4.1.0",
|