@databrainhq/plugin 0.17.9-beta.30 → 0.17.9-beta.31
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/{Accordion-D3DbH3Cx.mjs → Accordion-BhLebRAm.mjs} +32 -25
- package/dist/{Chart-7AGA9h2g.mjs → Chart-BLXiGOie.mjs} +361 -361
- package/dist/{CreateGlobalFilter-oHjA0P9O.mjs → CreateGlobalFilter-DJ75cI8r.mjs} +200 -200
- package/dist/{CreateMetricV2-BGDt9B3L.mjs → CreateMetricV2-DNSbMIqg.mjs} +20 -20
- package/dist/{DraggableItem-7fQUo0x4.mjs → DraggableItem-HJ4Wt8qx.mjs} +11 -11
- package/dist/{HorizontalStackTable-CH68bWy3.mjs → HorizontalStackTable-DadBH16u.mjs} +17 -17
- package/dist/{ManageMetricsV2-tyQYXoAT.mjs → ManageMetricsV2-DQ0F-Sxo.mjs} +3 -3
- package/dist/{MetricCardV2-C2n6LzkA.mjs → MetricCardV2-ndXX9kcc.mjs} +1251 -1170
- package/dist/{NoDataFound-N3gF0Pse.mjs → NoDataFound-C6lIIOZF.mjs} +1 -1
- package/dist/{NoDataState-C6hX-CHr.mjs → NoDataState-Dx5ksEt-.mjs} +2 -2
- package/dist/{Panel-BeWefwKs.mjs → Panel-oW--_1YF.mjs} +1 -1
- package/dist/{PivotTableV2-De4TXsMc.mjs → PivotTableV2-BufQEGso.mjs} +2 -2
- package/dist/{PivotTableV3-2nzDp4Nc.mjs → PivotTableV3-DwleqfW7.mjs} +4 -4
- package/dist/{Portal-C4N01WKg.mjs → Portal-CuJ3yA9x.mjs} +1222 -1200
- package/dist/{RadioButton-DvzkXfzO.mjs → RadioButton-BagXnWOk.mjs} +1 -1
- package/dist/{ScheduleEmail-PEzbadHC.mjs → ScheduleEmail-C_H0_DNM.mjs} +220 -220
- package/dist/{SearchMetricData-CxmDM20t.mjs → SearchMetricData-DPWkvX0c.mjs} +237 -237
- package/dist/{SortPanel-DQjM_vyk.mjs → SortPanel-DctP-Eyd.mjs} +110 -110
- package/dist/{Table-CvDTChaZ.mjs → Table-BSKvdU4q.mjs} +4 -4
- package/dist/{TagInputField-C9M_Ip9e.mjs → TagInputField-B09tGuSM.mjs} +6 -6
- package/dist/{TextAreaField-Q78INHKO.mjs → TextAreaField-CLmioFXe.mjs} +113 -113
- package/dist/{TimeSeriesSettings-C8lvzgja.mjs → TimeSeriesSettings-BS9LodDk.mjs} +2 -2
- package/dist/{cardQueryError-3MGl4pbM.mjs → cardQueryError-Jo2LkSBF.mjs} +810 -790
- package/dist/{chevron-down-Dxhk-Tao.mjs → chevron-down-CTH4bR6n.mjs} +107 -106
- package/dist/{conditionalFormatting-BuG_4wOq.mjs → conditionalFormatting-BU6BaaPb.mjs} +1 -1
- package/dist/{createGlobalFilter.module-DisUwLsO.mjs → createGlobalFilter.module-Cw_A7yeo.mjs} +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{echarts-BE7AhqVy.mjs → echarts-Dw5Z2Ho-.mjs} +2 -2
- package/dist/{metric.mutation-BRWn1UMi.mjs → metric.mutation-cOoqy5Bi.mjs} +1 -1
- package/dist/{permissions-B5UHxn_4.mjs → permissions-CxZW60Bd.mjs} +289 -261
- package/dist/{pluginV3Request-Dfy8fkbS.mjs → pluginV3Request-CQzo3G0-.mjs} +1 -1
- package/dist/{renderer-qB-6Euan.mjs → renderer-D1fTygev.mjs} +1 -1
- package/dist/{timeseries-Clp-TrGQ.mjs → timeseries-D_nzmvUF.mjs} +1347 -1304
- package/dist/{toTasteAppearance-cIHX7fPm.mjs → toTasteAppearance-C4jy9fG3.mjs} +1 -1
- package/dist/{useGuesTokenUsageLog-BtooXte_.mjs → useGuesTokenUsageLog-BgjAaf3E.mjs} +1 -1
- package/dist/{usePublishArchivedMetrics-CM4KQARj.mjs → usePublishArchivedMetrics-CM7fUNzL.mjs} +2 -2
- package/dist/{useQuery-D3fpbSfw.mjs → useQuery-DhtsBbBi.mjs} +1 -1
- package/dist/webcomponents.css +2 -2
- package/dist/webcomponents.es.js +483 -459
- package/dist/webcomponents.umd.js +153 -153
- package/package.json +1 -1
|
@@ -2,19 +2,19 @@ import "react";
|
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
4
|
import { o as e, r as t, t as n } from "./rolldown-runtime-C1JUX4Ur.mjs";
|
|
5
|
-
import { a as r } from "./pluginV3Request-
|
|
6
|
-
import { a as i, r as a } from "./metric.mutation-
|
|
7
|
-
import { $i as o, Aa as s, Di as l, Gr as u, H as d, Hi as f, Hr as p, Ia as m, Ir as ee, Ji as te, Jr as ne, L as re, Lr as ie, Ma as ae, Mi as oe, N as se, Oi as ce, P as le, Si as ue, T as de, U as fe, Ua as pe, Ui as me, Ur as he, V as ge, Vi as _e, Vt as ve, Xr as ye, Yi as be, Yr as xe, Zn as Se, a as Ce,
|
|
8
|
-
import {
|
|
9
|
-
import { _ as Ye, b as Xe, c as Ze, d as Qe, f as $e, g as et, h as tt, i as nt, l as rt, m as it, n as at, o as ot, p as st, r as ct, s as lt, t as ut, u as dt, w as ft } from "./TextAreaField-
|
|
10
|
-
import { S as pt, a as mt, b as ht, c as gt, i as _t, l as vt, m as yt, n as bt, o as xt, p as St, r as Ct, s as wt, t as Tt, u as Et, x as Dt, y as Ot } from "./DraggableItem-
|
|
11
|
-
import { t as kt } from "./Chart-
|
|
12
|
-
import { t as At } from "./RadioButton-
|
|
13
|
-
import { n as jt } from "./TimeSeriesSettings-
|
|
14
|
-
import { t as Mt } from "./Table-
|
|
15
|
-
import { n as Nt, t as Pt } from "./NoDataFound-
|
|
16
|
-
import { t as Ft } from "./Accordion-
|
|
17
|
-
import { t as It } from "./Panel-
|
|
5
|
+
import { a as r } from "./pluginV3Request-CQzo3G0-.mjs";
|
|
6
|
+
import { a as i, r as a } from "./metric.mutation-cOoqy5Bi.mjs";
|
|
7
|
+
import { $i as o, Aa as s, Di as l, Gr as u, H as d, Hi as f, Hr as p, Ia as m, Ir as ee, Ji as te, Jr as ne, L as re, Lr as ie, Ma as ae, Mi as oe, N as se, Oi as ce, P as le, Si as ue, T as de, U as fe, Ua as pe, Ui as me, Ur as he, V as ge, Vi as _e, Vt as ve, Xr as ye, Yi as be, Yr as xe, Zn as Se, a as Ce, ar as we, c as Te, ca as Ee, cr as De, d as Oe, di as Ae, f as je, h as Me, l as Ne, la as Pe, ma as Fe, nr as Ie, oa as Le, oi as Re, or as ze, p as Be, sa as Ve, si as He, sr as Ue, wa as We, wi as Ge } from "./Portal-CuJ3yA9x.mjs";
|
|
8
|
+
import { b as Ke, r as qe, y as Je } from "./timeseries-D_nzmvUF.mjs";
|
|
9
|
+
import { _ as Ye, b as Xe, c as Ze, d as Qe, f as $e, g as et, h as tt, i as nt, l as rt, m as it, n as at, o as ot, p as st, r as ct, s as lt, t as ut, u as dt, w as ft } from "./TextAreaField-CLmioFXe.mjs";
|
|
10
|
+
import { S as pt, a as mt, b as ht, c as gt, i as _t, l as vt, m as yt, n as bt, o as xt, p as St, r as Ct, s as wt, t as Tt, u as Et, x as Dt, y as Ot } from "./DraggableItem-HJ4Wt8qx.mjs";
|
|
11
|
+
import { t as kt } from "./Chart-BLXiGOie.mjs";
|
|
12
|
+
import { t as At } from "./RadioButton-BagXnWOk.mjs";
|
|
13
|
+
import { n as jt } from "./TimeSeriesSettings-BS9LodDk.mjs";
|
|
14
|
+
import { t as Mt } from "./Table-BSKvdU4q.mjs";
|
|
15
|
+
import { n as Nt, t as Pt } from "./NoDataFound-C6lIIOZF.mjs";
|
|
16
|
+
import { t as Ft } from "./Accordion-BhLebRAm.mjs";
|
|
17
|
+
import { t as It } from "./Panel-oW--_1YF.mjs";
|
|
18
18
|
import { t as Lt } from "./Switch-CqsadJBs.mjs";
|
|
19
19
|
import { lazy as Rt, memo as zt, startTransition as Bt, useCallback as Vt, useEffect as Ht, useMemo as Ut, useRef as Wt, useState as Gt } from "react";
|
|
20
20
|
import { Fragment as Kt, jsx as h, jsxs as qt } from "react/jsx-runtime";
|
|
@@ -32,11 +32,11 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
32
32
|
l.forEach((e) => e.synonyms.forEach(u.add, u));
|
|
33
33
|
break;
|
|
34
34
|
case "NUMBER":
|
|
35
|
-
|
|
35
|
+
He.forEach((e) => e.synonymns.forEach(u.add, u));
|
|
36
36
|
break;
|
|
37
37
|
case "STRING": Ge.forEach((e) => e.synonyms.forEach(u.add, u)), ue.forEach((e) => e.synonyms.forEach(u.add, u));
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
Re.forEach((e) => e.synonymns.forEach(u.add, u));
|
|
40
40
|
let d = a.flatMap((e) => xe?.[e.value] || []), f = t.synonyms && t.synonyms.length > 0 ? t.synonyms[0] : t.label ? t.label : t.alias || t.name, p = {
|
|
41
41
|
alias: `${e.tableName}.${f}`,
|
|
42
42
|
datatype: t.dataType,
|
|
@@ -160,13 +160,13 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
160
160
|
...e,
|
|
161
161
|
chartColors: n
|
|
162
162
|
}));
|
|
163
|
-
}, [ae, ue] = Gt(!1), [fe, he] = Gt(!1), [ge, ve] = Gt(""), [be, xe] = Gt(!1), [Se, Ce] = Gt(!1), [
|
|
163
|
+
}, [ae, ue] = Gt(!1), [fe, he] = Gt(!1), [ge, ve] = Gt(""), [be, xe] = Gt(!1), [Se, Ce] = Gt(!1), [we, De] = Gt(""), [Ae, Ne] = Gt(e?.customSettings?.displayText ?? ""), [Fe, Ie] = Gt(ot), [Re, ze] = Gt({
|
|
164
164
|
type: "range",
|
|
165
165
|
min: 0,
|
|
166
166
|
max: 0,
|
|
167
167
|
color: "#000000",
|
|
168
168
|
operator: "isEqualTo"
|
|
169
|
-
}), [
|
|
169
|
+
}), [He, Ge] = Gt({
|
|
170
170
|
startColor: "#FFFFFF",
|
|
171
171
|
endColor: "#000000",
|
|
172
172
|
offset1: .5,
|
|
@@ -231,12 +231,12 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
231
231
|
})) || [], [e?.arrayColumns, e?.yAxisList]), vt = Ut(() => e?.yAxisList?.filter((t) => !e?.tableSettings?.badgeColumns?.includes(t) && !e?.tableSettings?.formattedColumns?.includes(t)), [e?.tableSettings?.badgeColumns, e?.yAxisList]), yt = Ut(() => vt?.map((e) => ({
|
|
232
232
|
value: e,
|
|
233
233
|
label: e
|
|
234
|
-
})) || [], [vt]), bt = Ut(() =>
|
|
234
|
+
})) || [], [vt]), bt = Ut(() => Te?.map((e) => ({
|
|
235
235
|
value: e.label,
|
|
236
236
|
label: e.label,
|
|
237
237
|
subValue: e.type,
|
|
238
238
|
comparisonLabel: e.comparison
|
|
239
|
-
})), [
|
|
239
|
+
})), [Te]), xt = () => {
|
|
240
240
|
let n = e?.customSettings?.YaxislabelFormatters || [];
|
|
241
241
|
ut?.isEdit ? t((e) => ({
|
|
242
242
|
...e,
|
|
@@ -300,7 +300,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
}, [e?.yAxisList]);
|
|
303
|
-
let Et = (n =
|
|
303
|
+
let Et = (n = He) => {
|
|
304
304
|
if (n?.startColor && n?.endColor && n?.offset1 && n?.offset2 && n?.direction) {
|
|
305
305
|
let r = e?.customSettings?.gradients || [];
|
|
306
306
|
n?.isEdit ? t((t) => ({
|
|
@@ -340,7 +340,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
340
340
|
}
|
|
341
341
|
}, Dt = () => {
|
|
342
342
|
ve("");
|
|
343
|
-
let n = tt(
|
|
343
|
+
let n = tt(Fe, e?.tableSettings?.conditionalFormatting || []);
|
|
344
344
|
if (!n.success) {
|
|
345
345
|
ve(n.error);
|
|
346
346
|
return;
|
|
@@ -351,7 +351,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
351
351
|
...e?.tableSettings,
|
|
352
352
|
conditionalFormatting: n?.conditionalFormatting || e?.tableSettings?.conditionalFormatting
|
|
353
353
|
}
|
|
354
|
-
})),
|
|
354
|
+
})), Ie({
|
|
355
355
|
backgrounColor: "#FFFFFF",
|
|
356
356
|
color: "#000000",
|
|
357
357
|
columns: [],
|
|
@@ -363,7 +363,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
363
363
|
prefix: "",
|
|
364
364
|
suffix: ""
|
|
365
365
|
}), ue(!1);
|
|
366
|
-
}, [Ot, kt] = Gt(e?.customSettings?.barWidth || 20), Mt =
|
|
366
|
+
}, [Ot, kt] = Gt(e?.customSettings?.barWidth || 20), Mt = Oe(Ot, 800);
|
|
367
367
|
Ht(() => {
|
|
368
368
|
Mt !== void 0 && e?.chartType === We.horizontalStackTable && t((e) => ({
|
|
369
369
|
...e,
|
|
@@ -373,7 +373,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
373
373
|
}
|
|
374
374
|
}));
|
|
375
375
|
}, [Mt, e?.chartType]);
|
|
376
|
-
let [Nt, Pt] = Gt(e?.customSettings?.barRadius?.[1] || 0), [It, Lt] = Gt(e?.customSettings?.barRadius?.[3] || 0), Rt =
|
|
376
|
+
let [Nt, Pt] = Gt(e?.customSettings?.barRadius?.[1] || 0), [It, Lt] = Gt(e?.customSettings?.barRadius?.[3] || 0), Rt = Oe(Nt, 800), zt = Oe(It, 800), Wt = Ut(() => {
|
|
377
377
|
let t = [];
|
|
378
378
|
if (e?.chartType === We.horizontalStackTable) {
|
|
379
379
|
let n = e?.tableSettings?.hStackTrendOptions?.map((e) => e?.column);
|
|
@@ -388,14 +388,14 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
388
388
|
value: e,
|
|
389
389
|
label: e
|
|
390
390
|
})) || [];
|
|
391
|
-
let n = pt?.map((e) => e?.value) || [], r = n.includes(
|
|
392
|
-
return r ? t?.filter((e) => n.includes(e?.value)) : i ? t?.filter((t) => e?.dateColumns?.includes(t?.value)) :
|
|
391
|
+
let n = pt?.map((e) => e?.value) || [], r = n.includes(Fe.columns?.[0]), i = e?.dateColumns?.includes(Fe.columns?.[0]);
|
|
392
|
+
return r ? t?.filter((e) => n.includes(e?.value)) : i ? t?.filter((t) => e?.dateColumns?.includes(t?.value)) : Fe.columns?.[0] ? t?.filter((t) => !n.includes(t?.value) && !e?.dateColumns?.includes(t?.value)) : t;
|
|
393
393
|
}, [
|
|
394
394
|
e?.yAxisList,
|
|
395
395
|
e?.chartType,
|
|
396
396
|
e?.tableSettings?.hStackTrendOptions,
|
|
397
397
|
pt,
|
|
398
|
-
|
|
398
|
+
Fe?.columns,
|
|
399
399
|
e?.dateColumns
|
|
400
400
|
]), Jt = Ut(() => [...e?.yAxisList?.slice(4) || [], "Duration"].map((e) => ({
|
|
401
401
|
value: e,
|
|
@@ -413,27 +413,27 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
413
413
|
}));
|
|
414
414
|
}, [zt, e?.chartType]);
|
|
415
415
|
let Yt = () => {
|
|
416
|
-
if (ve(""), (!
|
|
416
|
+
if (ve(""), (!Re?.type || Re?.type === "range") && Re?.min?.toString() && Re?.max || Re?.type === "string" && (Re?.operator && ["isNull", "isNotNull"].includes(Re.operator) || Re?.text) && Re.color) {
|
|
417
417
|
let n = e?.customSettings?.singleValConditionalFormatter || [];
|
|
418
|
-
|
|
418
|
+
Re.isEdit ? t((e) => ({
|
|
419
419
|
...e,
|
|
420
420
|
customSettings: {
|
|
421
421
|
...e.customSettings,
|
|
422
|
-
singleValConditionalFormatter: n?.map((e, t) => t ===
|
|
423
|
-
max:
|
|
424
|
-
min:
|
|
425
|
-
color:
|
|
426
|
-
type:
|
|
427
|
-
text:
|
|
428
|
-
operator:
|
|
422
|
+
singleValConditionalFormatter: n?.map((e, t) => t === Re?.index ? {
|
|
423
|
+
max: Re?.max,
|
|
424
|
+
min: Re?.min,
|
|
425
|
+
color: Re?.color,
|
|
426
|
+
type: Re?.type || "range",
|
|
427
|
+
text: Re?.text,
|
|
428
|
+
operator: Re?.operator || "isEqualTo"
|
|
429
429
|
} : e)
|
|
430
430
|
}
|
|
431
431
|
})) : t((e) => {
|
|
432
|
-
let t = Object.keys(
|
|
433
|
-
if (
|
|
432
|
+
let t = Object.keys(Re)?.map((e) => {
|
|
433
|
+
if (Re[e]) return Re[e];
|
|
434
434
|
})?.join("_"), r = [...n?.filter((e) => Object.keys(e)?.map((t) => {
|
|
435
435
|
if (e[t]) return e[t];
|
|
436
|
-
})?.join("_") !== t) || [],
|
|
436
|
+
})?.join("_") !== t) || [], Re];
|
|
437
437
|
return {
|
|
438
438
|
...e,
|
|
439
439
|
customSettings: {
|
|
@@ -441,7 +441,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
441
441
|
singleValConditionalFormatter: r
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
|
-
}),
|
|
444
|
+
}), ze({
|
|
445
445
|
color: "#000000",
|
|
446
446
|
min: 0,
|
|
447
447
|
max: 0,
|
|
@@ -507,8 +507,8 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
507
507
|
e?.chartType
|
|
508
508
|
]);
|
|
509
509
|
let en = Ut(() => [We.linearGaugeV2, We.progressBarV2].includes(e?.chartType || "") && [We.progressBarV2].includes(e?.chartType || "") ? [
|
|
510
|
-
|
|
511
|
-
|
|
510
|
+
Ve[1],
|
|
511
|
+
Ve[2],
|
|
512
512
|
...Pe
|
|
513
513
|
] : Pe, [e?.chartType]), tn = Vt((n) => {
|
|
514
514
|
let r = yt?.map((e) => e.value) || [];
|
|
@@ -660,7 +660,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
660
660
|
...e,
|
|
661
661
|
customSettings: {
|
|
662
662
|
...e.customSettings,
|
|
663
|
-
displayText:
|
|
663
|
+
displayText: Ae
|
|
664
664
|
}
|
|
665
665
|
}));
|
|
666
666
|
}, dn = (e) => {
|
|
@@ -671,7 +671,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
671
671
|
un();
|
|
672
672
|
}, 1e3);
|
|
673
673
|
return () => clearTimeout(e);
|
|
674
|
-
}, [
|
|
674
|
+
}, [Ae]);
|
|
675
675
|
let fn = Ut(() => e?.chartType === We.table ? e?.yAxisList?.filter((t) => !e?.numberColumns?.includes(t)) : [], [
|
|
676
676
|
e?.chartType,
|
|
677
677
|
e?.yAxisList,
|
|
@@ -925,8 +925,8 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
925
925
|
label: "Sub-Header Display Text",
|
|
926
926
|
type: "text",
|
|
927
927
|
placeholder: "Enter the text here",
|
|
928
|
-
onChange: (e) =>
|
|
929
|
-
value:
|
|
928
|
+
onChange: (e) => Ne(e.target.value),
|
|
929
|
+
value: Ae,
|
|
930
930
|
onBlur: un,
|
|
931
931
|
onKeyDown: dn
|
|
932
932
|
}),
|
|
@@ -1032,16 +1032,16 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1032
1032
|
header: "Customizations",
|
|
1033
1033
|
headerButton: null,
|
|
1034
1034
|
id: "Customizations",
|
|
1035
|
-
isOpen:
|
|
1035
|
+
isOpen: we === "Customizations",
|
|
1036
1036
|
setIsOpen: () => {
|
|
1037
|
-
|
|
1037
|
+
De((e) => e === "Customizations" ? "" : "Customizations");
|
|
1038
1038
|
}
|
|
1039
1039
|
}),
|
|
1040
1040
|
r && p ? /* @__PURE__ */ h(Ft, {
|
|
1041
1041
|
id: "Comparison Value",
|
|
1042
|
-
isOpen:
|
|
1042
|
+
isOpen: we === "Comparison Value",
|
|
1043
1043
|
setIsOpen: () => {
|
|
1044
|
-
|
|
1044
|
+
De((e) => e === "Comparison Value" ? "" : "Comparison Value");
|
|
1045
1045
|
},
|
|
1046
1046
|
header: /* @__PURE__ */ h("div", {
|
|
1047
1047
|
className: st.accordionHeader,
|
|
@@ -1051,7 +1051,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1051
1051
|
name: "Comparison value",
|
|
1052
1052
|
enabled: e?.customSettings?.comparisonValueShow,
|
|
1053
1053
|
onChange: () => {
|
|
1054
|
-
e?.customSettings?.comparisonValueShow ? r?.onDisableComparisonSettings?.() :
|
|
1054
|
+
e?.customSettings?.comparisonValueShow ? r?.onDisableComparisonSettings?.() : De("Comparison Value"), t((e) => ({
|
|
1055
1055
|
...e,
|
|
1056
1056
|
customSettings: {
|
|
1057
1057
|
...e.customSettings,
|
|
@@ -1168,7 +1168,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1168
1168
|
})),
|
|
1169
1169
|
value: r.comparisonLagSettings.periodLag
|
|
1170
1170
|
}),
|
|
1171
|
-
/* @__PURE__ */ qt(
|
|
1171
|
+
/* @__PURE__ */ qt(Be, {
|
|
1172
1172
|
direction: "row",
|
|
1173
1173
|
className: "dbn:gap-4",
|
|
1174
1174
|
children: [/* @__PURE__ */ h(At, {
|
|
@@ -1181,7 +1181,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1181
1181
|
text: "Calculate percentage difference",
|
|
1182
1182
|
position: "top",
|
|
1183
1183
|
tooltipClass: "dbn:w-[200px]",
|
|
1184
|
-
children: /* @__PURE__ */ h(
|
|
1184
|
+
children: /* @__PURE__ */ h(Ue, { name: "info" })
|
|
1185
1185
|
}),
|
|
1186
1186
|
onClick: () => {
|
|
1187
1187
|
r.setComparisonLagSettings((e) => ({
|
|
@@ -1201,7 +1201,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1201
1201
|
text: "Calculate value difference.",
|
|
1202
1202
|
position: "top-right",
|
|
1203
1203
|
tooltipClass: "dbn:w-[200px]",
|
|
1204
|
-
children: /* @__PURE__ */ h(
|
|
1204
|
+
children: /* @__PURE__ */ h(Ue, { name: "info" })
|
|
1205
1205
|
}),
|
|
1206
1206
|
onClick: () => {
|
|
1207
1207
|
r.setComparisonLagSettings((e) => ({
|
|
@@ -1329,7 +1329,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1329
1329
|
})
|
|
1330
1330
|
})
|
|
1331
1331
|
]
|
|
1332
|
-
}) : /* @__PURE__ */ h(
|
|
1332
|
+
}) : /* @__PURE__ */ h(je, {
|
|
1333
1333
|
text: "Enable Comparison Value to see the option.",
|
|
1334
1334
|
variant: "info"
|
|
1335
1335
|
})
|
|
@@ -1344,7 +1344,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1344
1344
|
children: [
|
|
1345
1345
|
/* @__PURE__ */ h("div", {
|
|
1346
1346
|
className: "dbn:col-span-4 dbn:flex dbn:items-end",
|
|
1347
|
-
children: /* @__PURE__ */ qt(
|
|
1347
|
+
children: /* @__PURE__ */ qt(Be, {
|
|
1348
1348
|
direction: "row",
|
|
1349
1349
|
className: "dbn:gap-4",
|
|
1350
1350
|
children: [/* @__PURE__ */ h(At, {
|
|
@@ -1354,13 +1354,13 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1354
1354
|
label: "Range",
|
|
1355
1355
|
labelClass: "dbn:text-sm dbn:font-normal",
|
|
1356
1356
|
onClick: () => {
|
|
1357
|
-
|
|
1357
|
+
ze((e) => ({
|
|
1358
1358
|
...e,
|
|
1359
1359
|
type: "range"
|
|
1360
1360
|
}));
|
|
1361
1361
|
},
|
|
1362
|
-
defaultChecked:
|
|
1363
|
-
checked:
|
|
1362
|
+
defaultChecked: Re?.type === "range",
|
|
1363
|
+
checked: Re?.type === "range"
|
|
1364
1364
|
}), /* @__PURE__ */ h(At, {
|
|
1365
1365
|
"data-testid": "string-type",
|
|
1366
1366
|
id: "string-type",
|
|
@@ -1368,17 +1368,17 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1368
1368
|
label: "String",
|
|
1369
1369
|
labelClass: "dbn:text-sm dbn:font-normal",
|
|
1370
1370
|
onClick: () => {
|
|
1371
|
-
|
|
1371
|
+
ze((e) => ({
|
|
1372
1372
|
...e,
|
|
1373
1373
|
type: "string"
|
|
1374
1374
|
}));
|
|
1375
1375
|
},
|
|
1376
|
-
defaultChecked:
|
|
1377
|
-
checked:
|
|
1376
|
+
defaultChecked: Re?.type === "string",
|
|
1377
|
+
checked: Re?.type === "string"
|
|
1378
1378
|
})]
|
|
1379
1379
|
})
|
|
1380
1380
|
}),
|
|
1381
|
-
|
|
1381
|
+
Re?.type === "string" ? /* @__PURE__ */ qt(Kt, { children: [/* @__PURE__ */ h("div", {
|
|
1382
1382
|
className: "dbn:col-span-4",
|
|
1383
1383
|
children: /* @__PURE__ */ h(se, {
|
|
1384
1384
|
label: "Conditions",
|
|
@@ -1388,27 +1388,27 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1388
1388
|
"isLessThanOrEqualTo",
|
|
1389
1389
|
"isGreaterThanOrEqualTo"
|
|
1390
1390
|
].includes(e.value)),
|
|
1391
|
-
selectedOption: ne?.find((e) => e?.value ===
|
|
1391
|
+
selectedOption: ne?.find((e) => e?.value === Re?.operator) ?? {
|
|
1392
1392
|
value: "is equal to",
|
|
1393
1393
|
label: "isEqualTo"
|
|
1394
1394
|
},
|
|
1395
|
-
onChange: (e) =>
|
|
1395
|
+
onChange: (e) => ze((t) => ({
|
|
1396
1396
|
...t,
|
|
1397
1397
|
operator: e.value
|
|
1398
1398
|
})),
|
|
1399
1399
|
buttonWidth: "100%",
|
|
1400
1400
|
menuWidth: "100%"
|
|
1401
1401
|
})
|
|
1402
|
-
}), !(
|
|
1402
|
+
}), !(Re?.operator && ["isNull", "isNotNull"].includes(Re.operator)) && /* @__PURE__ */ h("div", {
|
|
1403
1403
|
className: "dbn:col-span-4 dbn:flex dbn:items-end",
|
|
1404
1404
|
children: /* @__PURE__ */ h(d, {
|
|
1405
1405
|
type: "text",
|
|
1406
1406
|
label: "Text",
|
|
1407
|
-
onChange: (e) =>
|
|
1407
|
+
onChange: (e) => ze((t) => ({
|
|
1408
1408
|
...t,
|
|
1409
1409
|
text: e.target.value
|
|
1410
1410
|
})),
|
|
1411
|
-
value:
|
|
1411
|
+
value: Re?.text || "",
|
|
1412
1412
|
placeholder: "Enter the text here"
|
|
1413
1413
|
})
|
|
1414
1414
|
})] }) : /* @__PURE__ */ qt(Kt, { children: [/* @__PURE__ */ h("div", {
|
|
@@ -1416,22 +1416,22 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1416
1416
|
children: /* @__PURE__ */ h(d, {
|
|
1417
1417
|
type: "number",
|
|
1418
1418
|
label: "Min Value",
|
|
1419
|
-
onChange: ({ target: { value: e } }) =>
|
|
1419
|
+
onChange: ({ target: { value: e } }) => ze((t) => ({
|
|
1420
1420
|
...t,
|
|
1421
1421
|
min: Number(e)
|
|
1422
1422
|
})),
|
|
1423
|
-
value:
|
|
1423
|
+
value: Re.min
|
|
1424
1424
|
})
|
|
1425
1425
|
}), /* @__PURE__ */ h("div", {
|
|
1426
1426
|
className: "dbn:col-span-2 dbn:flex dbn:items-end",
|
|
1427
1427
|
children: /* @__PURE__ */ h(d, {
|
|
1428
1428
|
type: "number",
|
|
1429
1429
|
label: "Max Value",
|
|
1430
|
-
onChange: ({ target: { value: e } }) =>
|
|
1430
|
+
onChange: ({ target: { value: e } }) => ze((t) => ({
|
|
1431
1431
|
...t,
|
|
1432
1432
|
max: Number(e)
|
|
1433
1433
|
})),
|
|
1434
|
-
value:
|
|
1434
|
+
value: Re.max
|
|
1435
1435
|
})
|
|
1436
1436
|
})] }),
|
|
1437
1437
|
/* @__PURE__ */ h("div", {
|
|
@@ -1440,15 +1440,15 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1440
1440
|
className: "dbn:w-full",
|
|
1441
1441
|
label: "Font Color",
|
|
1442
1442
|
name: "text color",
|
|
1443
|
-
onChange: (e) =>
|
|
1443
|
+
onChange: (e) => ze((t) => ({
|
|
1444
1444
|
...t,
|
|
1445
1445
|
color: e
|
|
1446
1446
|
})),
|
|
1447
1447
|
defaultValue: "#000000",
|
|
1448
|
-
value:
|
|
1448
|
+
value: Re.color || "#000000"
|
|
1449
1449
|
})
|
|
1450
1450
|
}),
|
|
1451
|
-
ge && /* @__PURE__ */ h(
|
|
1451
|
+
ge && /* @__PURE__ */ h(je, {
|
|
1452
1452
|
text: ge,
|
|
1453
1453
|
variant: "error",
|
|
1454
1454
|
className: "dbn:col-span-4"
|
|
@@ -1458,7 +1458,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1458
1458
|
children: [/* @__PURE__ */ h(m, {
|
|
1459
1459
|
variant: "secondary",
|
|
1460
1460
|
onClick: () => {
|
|
1461
|
-
|
|
1461
|
+
ze({
|
|
1462
1462
|
min: 0,
|
|
1463
1463
|
max: 0,
|
|
1464
1464
|
color: "#000000",
|
|
@@ -1471,7 +1471,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1471
1471
|
variant: "primary",
|
|
1472
1472
|
type: "button",
|
|
1473
1473
|
onClick: () => Yt(),
|
|
1474
|
-
children: [
|
|
1474
|
+
children: [Re?.isEdit ? "Update" : "Save", " Rule"]
|
|
1475
1475
|
})]
|
|
1476
1476
|
})
|
|
1477
1477
|
]
|
|
@@ -1492,12 +1492,12 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1492
1492
|
className: "dbn:flex dbn:gap-4 dbn:items-center",
|
|
1493
1493
|
children: [/* @__PURE__ */ h(m, {
|
|
1494
1494
|
variant: "popover",
|
|
1495
|
-
leftIcon: /* @__PURE__ */ h(
|
|
1495
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
1496
1496
|
name: "pencil-simple",
|
|
1497
1497
|
size: "sm"
|
|
1498
1498
|
}),
|
|
1499
1499
|
onClick: () => {
|
|
1500
|
-
|
|
1500
|
+
ze({
|
|
1501
1501
|
...e,
|
|
1502
1502
|
type: e?.type ?? "range",
|
|
1503
1503
|
isEdit: !0,
|
|
@@ -1507,7 +1507,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1507
1507
|
}), /* @__PURE__ */ h(m, {
|
|
1508
1508
|
variant: "popover",
|
|
1509
1509
|
onClick: () => an(e),
|
|
1510
|
-
leftIcon: /* @__PURE__ */ h(
|
|
1510
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
1511
1511
|
name: "cross",
|
|
1512
1512
|
size: "sm"
|
|
1513
1513
|
})
|
|
@@ -1515,15 +1515,15 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1515
1515
|
})]
|
|
1516
1516
|
})
|
|
1517
1517
|
})
|
|
1518
|
-
}, e.color)) : /* @__PURE__ */ h(
|
|
1518
|
+
}, e.color)) : /* @__PURE__ */ h(je, {
|
|
1519
1519
|
text: "No Rules Added",
|
|
1520
1520
|
variant: "info"
|
|
1521
1521
|
})]
|
|
1522
1522
|
}),
|
|
1523
1523
|
id: "Conditional Formatting",
|
|
1524
|
-
isOpen:
|
|
1524
|
+
isOpen: we === "Conditional Formatting",
|
|
1525
1525
|
setIsOpen: () => {
|
|
1526
|
-
|
|
1526
|
+
De((e) => e === "Conditional Formatting" ? "" : "Conditional Formatting");
|
|
1527
1527
|
},
|
|
1528
1528
|
header: /* @__PURE__ */ qt("div", {
|
|
1529
1529
|
className: st.accordionHeader,
|
|
@@ -1542,9 +1542,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1542
1542
|
variant: "tertiary",
|
|
1543
1543
|
size: "small",
|
|
1544
1544
|
onClick: (e) => {
|
|
1545
|
-
ue(!0),
|
|
1545
|
+
ue(!0), we === "Conditional Formatting" && e.stopPropagation();
|
|
1546
1546
|
},
|
|
1547
|
-
leftIcon: /* @__PURE__ */ h(
|
|
1547
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
1548
1548
|
name: "plus",
|
|
1549
1549
|
size: "sm"
|
|
1550
1550
|
}),
|
|
@@ -1571,15 +1571,15 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1571
1571
|
})),
|
|
1572
1572
|
defaultValue: "#ffffff",
|
|
1573
1573
|
value: e?.customSettings?.singleValueBgColor || "#ffffff"
|
|
1574
|
-
}) : /* @__PURE__ */ h(
|
|
1574
|
+
}) : /* @__PURE__ */ h(je, {
|
|
1575
1575
|
text: "Enable Card Color Option",
|
|
1576
1576
|
variant: "info"
|
|
1577
1577
|
})
|
|
1578
1578
|
}),
|
|
1579
1579
|
id: "Card Color",
|
|
1580
|
-
isOpen:
|
|
1580
|
+
isOpen: we === "Card Color",
|
|
1581
1581
|
setIsOpen: () => {
|
|
1582
|
-
|
|
1582
|
+
De((e) => e === "Card Color" ? "" : "Card Color");
|
|
1583
1583
|
},
|
|
1584
1584
|
header: /* @__PURE__ */ h("div", {
|
|
1585
1585
|
className: st.accordionHeader,
|
|
@@ -1589,7 +1589,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
1589
1589
|
name: "single value bg color",
|
|
1590
1590
|
enabled: e?.customSettings?.isEnableSingleValueBgColor,
|
|
1591
1591
|
onChange: () => {
|
|
1592
|
-
e?.customSettings?.isEnableSingleValueBgColor ||
|
|
1592
|
+
e?.customSettings?.isEnableSingleValueBgColor || De("Card Color"), t((t) => ({
|
|
1593
1593
|
...t,
|
|
1594
1594
|
customSettings: {
|
|
1595
1595
|
...t?.customSettings,
|
|
@@ -2528,9 +2528,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
2528
2528
|
header: "UI Styling",
|
|
2529
2529
|
headerButton: null,
|
|
2530
2530
|
id: "UI Styling",
|
|
2531
|
-
isOpen:
|
|
2531
|
+
isOpen: we === "UI Styling",
|
|
2532
2532
|
setIsOpen: () => {
|
|
2533
|
-
|
|
2533
|
+
De((e) => e === "UI Styling" ? "" : "UI Styling");
|
|
2534
2534
|
}
|
|
2535
2535
|
}),
|
|
2536
2536
|
[We.pivot, We.pivotV2].includes(e?.chartType) ? null : /* @__PURE__ */ h(Ft, {
|
|
@@ -2540,15 +2540,15 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
2540
2540
|
children: [/* @__PURE__ */ h(Qe, {
|
|
2541
2541
|
chartSettings: e,
|
|
2542
2542
|
conditionalFormatColumns: Wt,
|
|
2543
|
-
conditionalFormatting:
|
|
2544
|
-
setConditionalFormatting:
|
|
2543
|
+
conditionalFormatting: Fe,
|
|
2544
|
+
setConditionalFormatting: Ie,
|
|
2545
2545
|
tableFormatColumnOptions: pt,
|
|
2546
2546
|
isShowRuleFields: ae,
|
|
2547
2547
|
setShowRuleFields: ue,
|
|
2548
2548
|
conditionError: ge,
|
|
2549
2549
|
setConditionError: ve,
|
|
2550
2550
|
onSaveConditionRule: Dt,
|
|
2551
|
-
onClear: () =>
|
|
2551
|
+
onClear: () => Ie(nt())
|
|
2552
2552
|
}), e?.tableSettings?.conditionalFormatting?.length ? e?.tableSettings?.conditionalFormatting?.map((e, t) => /* @__PURE__ */ h("div", {
|
|
2553
2553
|
className: st.formattingContainer,
|
|
2554
2554
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -2584,13 +2584,13 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
2584
2584
|
className: "dbn:flex dbn:gap-2 dbn:items-center dbn:flex-shrink-0",
|
|
2585
2585
|
children: [/* @__PURE__ */ h(m, {
|
|
2586
2586
|
variant: "popover",
|
|
2587
|
-
leftIcon: /* @__PURE__ */ h(
|
|
2587
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
2588
2588
|
name: "pencil-simple",
|
|
2589
2589
|
size: "sm"
|
|
2590
2590
|
}),
|
|
2591
2591
|
onClick: () => {
|
|
2592
2592
|
let i = !!n?.styles?.isApplyBadgeColor || !(n?.styles?.isApplyBgColor || !n?.styles?.badgeColor);
|
|
2593
|
-
|
|
2593
|
+
Ie({
|
|
2594
2594
|
columns: [e?.columnName],
|
|
2595
2595
|
value: n?.value,
|
|
2596
2596
|
operator: n?.operator,
|
|
@@ -2605,12 +2605,12 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
2605
2605
|
compareWithFormatted: n?.compareWithFormatted,
|
|
2606
2606
|
prefix: n?.styles?.prefix,
|
|
2607
2607
|
suffix: n?.styles?.suffix
|
|
2608
|
-
}),
|
|
2608
|
+
}), Fe.isEdit = !0, ue(!0);
|
|
2609
2609
|
}
|
|
2610
2610
|
}), /* @__PURE__ */ h(m, {
|
|
2611
2611
|
variant: "popover",
|
|
2612
2612
|
onClick: () => rn(e.columnName, n),
|
|
2613
|
-
leftIcon: /* @__PURE__ */ h(
|
|
2613
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
2614
2614
|
name: "cross",
|
|
2615
2615
|
size: "sm"
|
|
2616
2616
|
})
|
|
@@ -2619,15 +2619,15 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
2619
2619
|
});
|
|
2620
2620
|
})
|
|
2621
2621
|
})
|
|
2622
|
-
}, e.columnName)) : /* @__PURE__ */ h(
|
|
2622
|
+
}, e.columnName)) : /* @__PURE__ */ h(je, {
|
|
2623
2623
|
text: "No Rules Added",
|
|
2624
2624
|
variant: "info"
|
|
2625
2625
|
})]
|
|
2626
2626
|
}),
|
|
2627
2627
|
id: "Conditional Formatting",
|
|
2628
|
-
isOpen:
|
|
2628
|
+
isOpen: we === "Conditional Formatting",
|
|
2629
2629
|
setIsOpen: () => {
|
|
2630
|
-
|
|
2630
|
+
De((e) => e === "Conditional Formatting" ? "" : "Conditional Formatting");
|
|
2631
2631
|
},
|
|
2632
2632
|
header: /* @__PURE__ */ qt("div", {
|
|
2633
2633
|
className: st.accordionHeader,
|
|
@@ -2646,9 +2646,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
2646
2646
|
variant: "tertiary",
|
|
2647
2647
|
size: "small",
|
|
2648
2648
|
onClick: (e) => {
|
|
2649
|
-
ue(!0),
|
|
2649
|
+
ue(!0), we === "Conditional Formatting" && e.stopPropagation();
|
|
2650
2650
|
},
|
|
2651
|
-
leftIcon: /* @__PURE__ */ h(
|
|
2651
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
2652
2652
|
name: "plus",
|
|
2653
2653
|
size: "sm"
|
|
2654
2654
|
}),
|
|
@@ -2697,22 +2697,22 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
2697
2697
|
})),
|
|
2698
2698
|
buttonWidth: "100%",
|
|
2699
2699
|
menuWidth: "100%"
|
|
2700
|
-
}) : null] }) : null] }) : /* @__PURE__ */ h(
|
|
2700
|
+
}) : null] }) : null] }) : /* @__PURE__ */ h(je, {
|
|
2701
2701
|
text: "Enable formatting to see formatting options",
|
|
2702
2702
|
variant: "info"
|
|
2703
2703
|
})
|
|
2704
2704
|
}),
|
|
2705
2705
|
id: "formatting",
|
|
2706
|
-
isOpen:
|
|
2706
|
+
isOpen: we === "formatting",
|
|
2707
2707
|
setIsOpen: () => {
|
|
2708
|
-
|
|
2708
|
+
De((e) => e === "formatting" ? "" : "formatting");
|
|
2709
2709
|
},
|
|
2710
2710
|
header: "Formatting",
|
|
2711
2711
|
headerButton: /* @__PURE__ */ h(Qt, {
|
|
2712
2712
|
name: "table number formatting",
|
|
2713
2713
|
enabled: e?.tableSettings?.isEnableNumberFormatting,
|
|
2714
2714
|
onChange: () => {
|
|
2715
|
-
e?.tableSettings?.isEnableNumberFormatting ||
|
|
2715
|
+
e?.tableSettings?.isEnableNumberFormatting || De("formatting"), t((e) => ({
|
|
2716
2716
|
...e,
|
|
2717
2717
|
tableSettings: {
|
|
2718
2718
|
...e.tableSettings,
|
|
@@ -2787,22 +2787,22 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
2787
2787
|
label: e
|
|
2788
2788
|
})) || [],
|
|
2789
2789
|
isDisabled: !e?.tableSettings?.aggregateRow?.function
|
|
2790
|
-
})] }) : /* @__PURE__ */ h(
|
|
2790
|
+
})] }) : /* @__PURE__ */ h(je, {
|
|
2791
2791
|
text: "Enable aggregate row to see options",
|
|
2792
2792
|
variant: "info"
|
|
2793
2793
|
})
|
|
2794
2794
|
}),
|
|
2795
2795
|
id: "aggregate-row",
|
|
2796
|
-
isOpen:
|
|
2796
|
+
isOpen: we === "aggregate-row",
|
|
2797
2797
|
setIsOpen: () => {
|
|
2798
|
-
|
|
2798
|
+
De((e) => e === "aggregate-row" ? "" : "aggregate-row");
|
|
2799
2799
|
},
|
|
2800
2800
|
header: "Aggregate Row",
|
|
2801
2801
|
headerButton: /* @__PURE__ */ h(Qt, {
|
|
2802
2802
|
name: "table aggregate row",
|
|
2803
2803
|
enabled: e?.tableSettings?.aggregateRow?.isEnable,
|
|
2804
2804
|
onChange: () => {
|
|
2805
|
-
e?.tableSettings?.aggregateRow?.isEnable ||
|
|
2805
|
+
e?.tableSettings?.aggregateRow?.isEnable || De("aggregate-row"), t((e) => ({
|
|
2806
2806
|
...e,
|
|
2807
2807
|
tableSettings: {
|
|
2808
2808
|
...e.tableSettings,
|
|
@@ -2843,9 +2843,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
2843
2843
|
})]
|
|
2844
2844
|
}),
|
|
2845
2845
|
id: "bar styling",
|
|
2846
|
-
isOpen:
|
|
2846
|
+
isOpen: we === "bar styling",
|
|
2847
2847
|
setIsOpen: () => {
|
|
2848
|
-
|
|
2848
|
+
De((e) => e === "bar styling" ? "" : "bar styling");
|
|
2849
2849
|
},
|
|
2850
2850
|
header: "Bar Styling",
|
|
2851
2851
|
headerButton: null
|
|
@@ -3130,9 +3130,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
3130
3130
|
]
|
|
3131
3131
|
}),
|
|
3132
3132
|
id: "features",
|
|
3133
|
-
isOpen:
|
|
3133
|
+
isOpen: we === "features",
|
|
3134
3134
|
setIsOpen: () => {
|
|
3135
|
-
|
|
3135
|
+
De((e) => e === "features" ? "" : "features");
|
|
3136
3136
|
},
|
|
3137
3137
|
header: "Features",
|
|
3138
3138
|
headerButton: null
|
|
@@ -3186,9 +3186,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
3186
3186
|
}) : null] }) : null] }) : null
|
|
3187
3187
|
}),
|
|
3188
3188
|
id: "custom settings",
|
|
3189
|
-
isOpen:
|
|
3189
|
+
isOpen: we === "custom settings",
|
|
3190
3190
|
setIsOpen: () => {
|
|
3191
|
-
|
|
3191
|
+
De((e) => e === "custom settings" ? "" : "custom settings");
|
|
3192
3192
|
},
|
|
3193
3193
|
header: "Custom Settings",
|
|
3194
3194
|
headerButton: null
|
|
@@ -3201,22 +3201,22 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
3201
3201
|
setChartSettings: t,
|
|
3202
3202
|
tableFormatColumnOptions: pt,
|
|
3203
3203
|
badgeColumnOptions: gt
|
|
3204
|
-
}) }) : /* @__PURE__ */ h(
|
|
3204
|
+
}) }) : /* @__PURE__ */ h(je, {
|
|
3205
3205
|
text: "Enable formatting to see formatting options",
|
|
3206
3206
|
variant: "info"
|
|
3207
3207
|
})
|
|
3208
3208
|
}),
|
|
3209
3209
|
id: "formatting",
|
|
3210
|
-
isOpen:
|
|
3210
|
+
isOpen: we === "formatting",
|
|
3211
3211
|
setIsOpen: () => {
|
|
3212
|
-
|
|
3212
|
+
De((e) => e === "formatting" ? "" : "formatting");
|
|
3213
3213
|
},
|
|
3214
3214
|
header: "Formatting",
|
|
3215
3215
|
headerButton: /* @__PURE__ */ h(Qt, {
|
|
3216
3216
|
name: "table number formatting",
|
|
3217
3217
|
enabled: e?.tableSettings?.isEnableNumberFormatting,
|
|
3218
3218
|
onChange: () => {
|
|
3219
|
-
e?.tableSettings?.isEnableNumberFormatting ||
|
|
3219
|
+
e?.tableSettings?.isEnableNumberFormatting || De("formatting"), t((e) => ({
|
|
3220
3220
|
...e,
|
|
3221
3221
|
tableSettings: {
|
|
3222
3222
|
...e.tableSettings,
|
|
@@ -3449,7 +3449,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
3449
3449
|
}
|
|
3450
3450
|
}))
|
|
3451
3451
|
})
|
|
3452
|
-
}), e?.customSettings?.isEnableLogScale ? /* @__PURE__ */ h(
|
|
3452
|
+
}), e?.customSettings?.isEnableLogScale ? /* @__PURE__ */ h(je, {
|
|
3453
3453
|
text: "Non-positive values will be nullified in log scale.",
|
|
3454
3454
|
variant: "info"
|
|
3455
3455
|
}) : null] }) : null,
|
|
@@ -3822,9 +3822,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
3822
3822
|
id: "Horizontal Axis",
|
|
3823
3823
|
header: "Horizontal Axis",
|
|
3824
3824
|
headerButton: null,
|
|
3825
|
-
isOpen:
|
|
3825
|
+
isOpen: we === "Horizontal Axis",
|
|
3826
3826
|
setIsOpen: () => {
|
|
3827
|
-
|
|
3827
|
+
De((e) => e === "Horizontal Axis" ? "" : "Horizontal Axis");
|
|
3828
3828
|
}
|
|
3829
3829
|
}),
|
|
3830
3830
|
ln ? null : /* @__PURE__ */ h(Ft, {
|
|
@@ -4061,7 +4061,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
4061
4061
|
}
|
|
4062
4062
|
}))
|
|
4063
4063
|
})
|
|
4064
|
-
}), e?.customSettings?.isEnableLogScale ? /* @__PURE__ */ h(
|
|
4064
|
+
}), e?.customSettings?.isEnableLogScale ? /* @__PURE__ */ h(je, {
|
|
4065
4065
|
text: "Non-positive values will be nullified in log scale.",
|
|
4066
4066
|
variant: "info"
|
|
4067
4067
|
}) : null] })
|
|
@@ -4409,9 +4409,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
4409
4409
|
]
|
|
4410
4410
|
}),
|
|
4411
4411
|
id: "vertical axis",
|
|
4412
|
-
isOpen:
|
|
4412
|
+
isOpen: we === "vertical axis",
|
|
4413
4413
|
setIsOpen: () => {
|
|
4414
|
-
|
|
4414
|
+
De((e) => e === "vertical axis" ? "" : "vertical axis");
|
|
4415
4415
|
},
|
|
4416
4416
|
header: "Vertical Axis",
|
|
4417
4417
|
headerButton: null
|
|
@@ -4521,11 +4521,11 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
4521
4521
|
}),
|
|
4522
4522
|
e?.customSettings?.markers?.markLine?.isEnabled ? /* @__PURE__ */ qt(Kt, { children: [/* @__PURE__ */ h(se, {
|
|
4523
4523
|
label: "Markline Type",
|
|
4524
|
-
selectedOption:
|
|
4524
|
+
selectedOption: Ee?.find((t) => t.value === e?.customSettings?.markers?.markLine?.markType) ?? {
|
|
4525
4525
|
value: "",
|
|
4526
4526
|
label: ""
|
|
4527
4527
|
},
|
|
4528
|
-
options:
|
|
4528
|
+
options: Ee,
|
|
4529
4529
|
onChange: (e) => t((t) => ({
|
|
4530
4530
|
...t,
|
|
4531
4531
|
customSettings: {
|
|
@@ -4647,9 +4647,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
4647
4647
|
]
|
|
4648
4648
|
}),
|
|
4649
4649
|
id: "chart markers",
|
|
4650
|
-
isOpen:
|
|
4650
|
+
isOpen: we === "chart markers",
|
|
4651
4651
|
setIsOpen: () => {
|
|
4652
|
-
|
|
4652
|
+
De((e) => e === "chart markers" ? "" : "chart markers");
|
|
4653
4653
|
},
|
|
4654
4654
|
header: "Chart Markers",
|
|
4655
4655
|
headerButton: null
|
|
@@ -4712,16 +4712,16 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
4712
4712
|
})]
|
|
4713
4713
|
}),
|
|
4714
4714
|
id: "bar styling",
|
|
4715
|
-
isOpen:
|
|
4715
|
+
isOpen: we === "bar styling",
|
|
4716
4716
|
setIsOpen: () => {
|
|
4717
|
-
|
|
4717
|
+
De((e) => e === "bar styling" ? "" : "bar styling");
|
|
4718
4718
|
},
|
|
4719
4719
|
header: "Bar Styling",
|
|
4720
4720
|
headerButton: null
|
|
4721
4721
|
}) : null,
|
|
4722
4722
|
![We.boxplot].includes(e?.chartType) && te?.["chart legend"] ? te["chart legend"]({
|
|
4723
|
-
isOpen:
|
|
4724
|
-
toggle: () =>
|
|
4723
|
+
isOpen: we === "chart legend",
|
|
4724
|
+
toggle: () => De((e) => e === "chart legend" ? "" : "chart legend")
|
|
4725
4725
|
}) : null,
|
|
4726
4726
|
![We.boxplot].includes(e?.chartType) && !te?.["chart legend"] ? /* @__PURE__ */ h(Ft, {
|
|
4727
4727
|
width: "100%",
|
|
@@ -4780,7 +4780,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
4780
4780
|
label: "Legend vertical position",
|
|
4781
4781
|
type: "number",
|
|
4782
4782
|
isDisabled: !e?.legendSettings?.customise,
|
|
4783
|
-
leftIcon: /* @__PURE__ */ h(
|
|
4783
|
+
leftIcon: /* @__PURE__ */ h(Ue, { name: "align-top" }),
|
|
4784
4784
|
value: e?.legendSettings?.top,
|
|
4785
4785
|
onChange: (e) => t((t) => ({
|
|
4786
4786
|
...t,
|
|
@@ -4793,7 +4793,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
4793
4793
|
"data-testid": "custom-horizontal-input",
|
|
4794
4794
|
label: "Legend horizontal position",
|
|
4795
4795
|
isDisabled: !e?.legendSettings?.customise,
|
|
4796
|
-
leftIcon: /* @__PURE__ */ h(
|
|
4796
|
+
leftIcon: /* @__PURE__ */ h(Ue, { name: "align-left" }),
|
|
4797
4797
|
type: "number",
|
|
4798
4798
|
value: e?.legendSettings?.left,
|
|
4799
4799
|
onChange: (e) => t((t) => ({
|
|
@@ -5018,15 +5018,15 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5018
5018
|
}));
|
|
5019
5019
|
}
|
|
5020
5020
|
})) }) : null] }) : null
|
|
5021
|
-
] }) : /* @__PURE__ */ h(
|
|
5021
|
+
] }) : /* @__PURE__ */ h(je, {
|
|
5022
5022
|
text: "Enable Chart Legend to see options",
|
|
5023
5023
|
variant: "info"
|
|
5024
5024
|
})
|
|
5025
5025
|
}),
|
|
5026
5026
|
id: "chart legend",
|
|
5027
|
-
isOpen:
|
|
5027
|
+
isOpen: we === "chart legend",
|
|
5028
5028
|
setIsOpen: () => {
|
|
5029
|
-
|
|
5029
|
+
De((e) => e === "chart legend" ? "" : "chart legend");
|
|
5030
5030
|
},
|
|
5031
5031
|
header: "Chart Legend",
|
|
5032
5032
|
headerButton: /* @__PURE__ */ h(Qt, {
|
|
@@ -5034,7 +5034,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5034
5034
|
defaultEnabled: !0,
|
|
5035
5035
|
enabled: e?.legendSettings?.show,
|
|
5036
5036
|
onChange: () => {
|
|
5037
|
-
e?.legendSettings?.show ||
|
|
5037
|
+
e?.legendSettings?.show || De("chart legend"), t((e) => ({
|
|
5038
5038
|
...e,
|
|
5039
5039
|
legendSettings: {
|
|
5040
5040
|
...e.legendSettings,
|
|
@@ -5135,9 +5135,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5135
5135
|
})
|
|
5136
5136
|
}),
|
|
5137
5137
|
id: "chart margin",
|
|
5138
|
-
isOpen:
|
|
5138
|
+
isOpen: we === "chart margin",
|
|
5139
5139
|
setIsOpen: () => {
|
|
5140
|
-
|
|
5140
|
+
De((e) => e === "chart margin" ? "" : "chart margin");
|
|
5141
5141
|
},
|
|
5142
5142
|
header: "Chart Margin",
|
|
5143
5143
|
headerButton: null
|
|
@@ -5249,9 +5249,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5249
5249
|
]
|
|
5250
5250
|
}),
|
|
5251
5251
|
id: "chart label",
|
|
5252
|
-
isOpen:
|
|
5252
|
+
isOpen: we === "chart label",
|
|
5253
5253
|
setIsOpen: () => {
|
|
5254
|
-
|
|
5254
|
+
De((e) => e === "chart label" ? "" : "chart label");
|
|
5255
5255
|
},
|
|
5256
5256
|
header: "Chart Label",
|
|
5257
5257
|
headerButton: null
|
|
@@ -5686,9 +5686,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5686
5686
|
]
|
|
5687
5687
|
}),
|
|
5688
5688
|
id: "chart tooltip",
|
|
5689
|
-
isOpen:
|
|
5689
|
+
isOpen: we === "chart tooltip",
|
|
5690
5690
|
setIsOpen: () => {
|
|
5691
|
-
|
|
5691
|
+
De((e) => e === "chart tooltip" ? "" : "chart tooltip");
|
|
5692
5692
|
},
|
|
5693
5693
|
header: "Chart Tooltip",
|
|
5694
5694
|
headerButton: null
|
|
@@ -5738,9 +5738,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5738
5738
|
})]
|
|
5739
5739
|
}),
|
|
5740
5740
|
id: "chart legend",
|
|
5741
|
-
isOpen:
|
|
5741
|
+
isOpen: we === "chart legend",
|
|
5742
5742
|
setIsOpen: () => {
|
|
5743
|
-
|
|
5743
|
+
De((e) => e === "chart legend" ? "" : "chart legend");
|
|
5744
5744
|
},
|
|
5745
5745
|
header: "Chart Legend",
|
|
5746
5746
|
headerButton: null
|
|
@@ -5822,8 +5822,8 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5822
5822
|
selectedOption: e?.customSettings?.linearGaugeV2?.size ? {
|
|
5823
5823
|
value: e?.customSettings?.linearGaugeV2?.size,
|
|
5824
5824
|
label: e?.customSettings?.linearGaugeV2?.size
|
|
5825
|
-
} :
|
|
5826
|
-
options:
|
|
5825
|
+
} : Le[1],
|
|
5826
|
+
options: Le,
|
|
5827
5827
|
onChange: (e) => t((t) => ({
|
|
5828
5828
|
...t,
|
|
5829
5829
|
customSettings: {
|
|
@@ -5840,9 +5840,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5840
5840
|
]
|
|
5841
5841
|
}),
|
|
5842
5842
|
id: "chart metrics",
|
|
5843
|
-
isOpen:
|
|
5843
|
+
isOpen: we === "chart metrics",
|
|
5844
5844
|
setIsOpen: () => {
|
|
5845
|
-
|
|
5845
|
+
De((e) => e === "chart metrics" ? "" : "chart metrics");
|
|
5846
5846
|
},
|
|
5847
5847
|
header: "Chart Markers",
|
|
5848
5848
|
headerButton: null
|
|
@@ -5916,15 +5916,15 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5916
5916
|
menuWidth: "100%"
|
|
5917
5917
|
})
|
|
5918
5918
|
})]
|
|
5919
|
-
})] }) : /* @__PURE__ */ h(
|
|
5919
|
+
})] }) : /* @__PURE__ */ h(je, {
|
|
5920
5920
|
text: "Enable Labels to see options",
|
|
5921
5921
|
variant: "info"
|
|
5922
5922
|
})
|
|
5923
5923
|
}),
|
|
5924
5924
|
id: "labels",
|
|
5925
|
-
isOpen:
|
|
5925
|
+
isOpen: we === "labels",
|
|
5926
5926
|
setIsOpen: () => {
|
|
5927
|
-
|
|
5927
|
+
De((e) => e === "labels" ? "" : "labels");
|
|
5928
5928
|
},
|
|
5929
5929
|
header: "Labels",
|
|
5930
5930
|
headerButton: /* @__PURE__ */ h(re, {
|
|
@@ -5936,7 +5936,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
5936
5936
|
enabled: (e?.chartType !== We.linearGaugeV2 || e?.customSettings?.isEnableLabelFormatting) && e?.customSettings?.linearGaugeV2?.isEnableLabels,
|
|
5937
5937
|
isDisabled: !e?.customSettings?.isEnableLabelFormatting && e?.chartType === We.linearGaugeV2,
|
|
5938
5938
|
onChange: () => {
|
|
5939
|
-
e?.customSettings?.linearGaugeV2?.isEnableLabels ||
|
|
5939
|
+
e?.customSettings?.linearGaugeV2?.isEnableLabels || De("labels"), t((e) => ({
|
|
5940
5940
|
...e,
|
|
5941
5941
|
customSettings: {
|
|
5942
5942
|
...e.customSettings,
|
|
@@ -6055,15 +6055,15 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6055
6055
|
})),
|
|
6056
6056
|
isDisableCenterPositioning: !0
|
|
6057
6057
|
})
|
|
6058
|
-
] }) : /* @__PURE__ */ h(
|
|
6058
|
+
] }) : /* @__PURE__ */ h(je, {
|
|
6059
6059
|
text: "Enable Legend to see options",
|
|
6060
6060
|
variant: "info"
|
|
6061
6061
|
})
|
|
6062
6062
|
}),
|
|
6063
6063
|
id: "legend",
|
|
6064
|
-
isOpen:
|
|
6064
|
+
isOpen: we === "legend",
|
|
6065
6065
|
setIsOpen: () => {
|
|
6066
|
-
|
|
6066
|
+
De((e) => e === "legend" ? "" : "legend");
|
|
6067
6067
|
},
|
|
6068
6068
|
header: "Legend",
|
|
6069
6069
|
headerButton: /* @__PURE__ */ h(re, {
|
|
@@ -6075,7 +6075,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6075
6075
|
enabled: e?.customSettings?.isEnableLabelFormatting && e?.customSettings?.linearGaugeV2?.isEnableLegend,
|
|
6076
6076
|
isDisabled: !e?.customSettings?.isEnableLabelFormatting,
|
|
6077
6077
|
onChange: () => {
|
|
6078
|
-
e?.customSettings?.linearGaugeV2?.isEnableLegend ||
|
|
6078
|
+
e?.customSettings?.linearGaugeV2?.isEnableLegend || De("legend"), t((e) => ({
|
|
6079
6079
|
...e,
|
|
6080
6080
|
customSettings: {
|
|
6081
6081
|
...e.customSettings,
|
|
@@ -6197,9 +6197,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6197
6197
|
]
|
|
6198
6198
|
}),
|
|
6199
6199
|
id: "marker",
|
|
6200
|
-
isOpen:
|
|
6200
|
+
isOpen: we === "marker",
|
|
6201
6201
|
setIsOpen: () => {
|
|
6202
|
-
|
|
6202
|
+
De((e) => e === "marker" ? "" : "marker");
|
|
6203
6203
|
},
|
|
6204
6204
|
header: "Marker",
|
|
6205
6205
|
headerButton: null
|
|
@@ -6291,9 +6291,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6291
6291
|
]
|
|
6292
6292
|
}),
|
|
6293
6293
|
id: "legend",
|
|
6294
|
-
isOpen:
|
|
6294
|
+
isOpen: we === "legend",
|
|
6295
6295
|
setIsOpen: () => {
|
|
6296
|
-
|
|
6296
|
+
De((e) => e === "legend" ? "" : "legend");
|
|
6297
6297
|
},
|
|
6298
6298
|
header: "Legend",
|
|
6299
6299
|
headerButton: null
|
|
@@ -6584,7 +6584,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6584
6584
|
text: "Reset",
|
|
6585
6585
|
children: /* @__PURE__ */ h(m, {
|
|
6586
6586
|
variant: "popover",
|
|
6587
|
-
leftIcon: /* @__PURE__ */ h(
|
|
6587
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
6588
6588
|
name: "undo",
|
|
6589
6589
|
size: "sm"
|
|
6590
6590
|
}),
|
|
@@ -6596,7 +6596,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6596
6596
|
text: "Shuffle",
|
|
6597
6597
|
children: /* @__PURE__ */ h(m, {
|
|
6598
6598
|
variant: "popover",
|
|
6599
|
-
leftIcon: /* @__PURE__ */ h(
|
|
6599
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
6600
6600
|
name: "shuffle",
|
|
6601
6601
|
size: "sm"
|
|
6602
6602
|
}),
|
|
@@ -6654,7 +6654,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6654
6654
|
text: "Reset",
|
|
6655
6655
|
children: /* @__PURE__ */ h(m, {
|
|
6656
6656
|
variant: "popover",
|
|
6657
|
-
leftIcon: /* @__PURE__ */ h(
|
|
6657
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
6658
6658
|
name: "undo",
|
|
6659
6659
|
size: "sm"
|
|
6660
6660
|
}),
|
|
@@ -6682,7 +6682,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6682
6682
|
}), /* @__PURE__ */ h(m, {
|
|
6683
6683
|
variant: "secondary",
|
|
6684
6684
|
onClick: () => he(!0),
|
|
6685
|
-
leftIcon: /* @__PURE__ */ h(
|
|
6685
|
+
leftIcon: /* @__PURE__ */ h(Ue, { name: "plus" }),
|
|
6686
6686
|
children: "Add New Gradient"
|
|
6687
6687
|
})]
|
|
6688
6688
|
}),
|
|
@@ -6699,7 +6699,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6699
6699
|
startColor: e
|
|
6700
6700
|
})),
|
|
6701
6701
|
defaultValue: "#FFFFFF",
|
|
6702
|
-
value:
|
|
6702
|
+
value: He.startColor
|
|
6703
6703
|
})
|
|
6704
6704
|
}),
|
|
6705
6705
|
/* @__PURE__ */ h("div", {
|
|
@@ -6712,7 +6712,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6712
6712
|
endColor: e
|
|
6713
6713
|
})),
|
|
6714
6714
|
defaultValue: "#000000",
|
|
6715
|
-
value:
|
|
6715
|
+
value: He.endColor
|
|
6716
6716
|
})
|
|
6717
6717
|
}),
|
|
6718
6718
|
/* @__PURE__ */ h("div", {
|
|
@@ -6729,7 +6729,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6729
6729
|
...t,
|
|
6730
6730
|
offset1: Number(e.target.value)
|
|
6731
6731
|
})),
|
|
6732
|
-
value:
|
|
6732
|
+
value: He.offset1
|
|
6733
6733
|
})
|
|
6734
6734
|
})
|
|
6735
6735
|
}),
|
|
@@ -6747,7 +6747,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6747
6747
|
...t,
|
|
6748
6748
|
offset2: Number(e)
|
|
6749
6749
|
})),
|
|
6750
|
-
value:
|
|
6750
|
+
value: He.offset2
|
|
6751
6751
|
})
|
|
6752
6752
|
})
|
|
6753
6753
|
}),
|
|
@@ -6757,8 +6757,8 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6757
6757
|
id: "gradientDirection",
|
|
6758
6758
|
label: "Direction",
|
|
6759
6759
|
selectedOption: {
|
|
6760
|
-
value:
|
|
6761
|
-
label:
|
|
6760
|
+
value: He.direction,
|
|
6761
|
+
label: He.direction
|
|
6762
6762
|
},
|
|
6763
6763
|
options: [
|
|
6764
6764
|
{
|
|
@@ -6792,7 +6792,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6792
6792
|
onClick: () => Et(),
|
|
6793
6793
|
fitContainer: !0,
|
|
6794
6794
|
children: [
|
|
6795
|
-
|
|
6795
|
+
He?.isEdit ? "Update" : "Save",
|
|
6796
6796
|
" ",
|
|
6797
6797
|
"Gradient"
|
|
6798
6798
|
]
|
|
@@ -6828,7 +6828,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6828
6828
|
index: t
|
|
6829
6829
|
}), he(!0);
|
|
6830
6830
|
},
|
|
6831
|
-
leftIcon: /* @__PURE__ */ h(
|
|
6831
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
6832
6832
|
name: "pencil-simple",
|
|
6833
6833
|
size: "xs"
|
|
6834
6834
|
}),
|
|
@@ -6836,7 +6836,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
6836
6836
|
}), /* @__PURE__ */ h(m, {
|
|
6837
6837
|
variant: "tertiary",
|
|
6838
6838
|
onClick: () => nn(e),
|
|
6839
|
-
leftIcon: /* @__PURE__ */ h(
|
|
6839
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
6840
6840
|
name: "cross",
|
|
6841
6841
|
size: "xs"
|
|
6842
6842
|
}),
|
|
@@ -7191,7 +7191,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7191
7191
|
}), /* @__PURE__ */ h(m, {
|
|
7192
7192
|
"data-testid": "bg-gradient-edit",
|
|
7193
7193
|
variant: "popover",
|
|
7194
|
-
leftIcon: /* @__PURE__ */ h(
|
|
7194
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
7195
7195
|
name: "pencil-simple",
|
|
7196
7196
|
size: "sm"
|
|
7197
7197
|
}),
|
|
@@ -7202,9 +7202,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7202
7202
|
]
|
|
7203
7203
|
}),
|
|
7204
7204
|
id: "chart colors",
|
|
7205
|
-
isOpen:
|
|
7205
|
+
isOpen: we === "chart colors",
|
|
7206
7206
|
setIsOpen: () => {
|
|
7207
|
-
|
|
7207
|
+
De((e) => e === "chart colors" ? "" : "chart colors");
|
|
7208
7208
|
},
|
|
7209
7209
|
header: [We.waterfall, We.waterfallV2].includes(e?.chartType) ? "Waterfall Settings" : "Chart Colors",
|
|
7210
7210
|
headerButton: null
|
|
@@ -7262,15 +7262,15 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7262
7262
|
}
|
|
7263
7263
|
}))
|
|
7264
7264
|
})
|
|
7265
|
-
] }) : /* @__PURE__ */ h(
|
|
7265
|
+
] }) : /* @__PURE__ */ h(je, {
|
|
7266
7266
|
text: "Enable Chart Title & Description to see options",
|
|
7267
7267
|
variant: "info"
|
|
7268
7268
|
})
|
|
7269
7269
|
}),
|
|
7270
7270
|
id: "chart title desc",
|
|
7271
|
-
isOpen:
|
|
7271
|
+
isOpen: we === "chart title desc",
|
|
7272
7272
|
setIsOpen: () => {
|
|
7273
|
-
|
|
7273
|
+
De((e) => e === "chart title desc" ? "" : "chart title desc");
|
|
7274
7274
|
},
|
|
7275
7275
|
header: "Chart Title & Description",
|
|
7276
7276
|
headerButton: /* @__PURE__ */ h(Qt, {
|
|
@@ -7278,7 +7278,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7278
7278
|
defaultEnabled: !0,
|
|
7279
7279
|
enabled: e?.customSettings?.enableTitleDesc,
|
|
7280
7280
|
onChange: () => {
|
|
7281
|
-
e?.customSettings?.enableTitleDesc ||
|
|
7281
|
+
e?.customSettings?.enableTitleDesc || De("chart title desc"), t((e) => ({
|
|
7282
7282
|
...e,
|
|
7283
7283
|
customSettings: {
|
|
7284
7284
|
...e.customSettings,
|
|
@@ -7475,9 +7475,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7475
7475
|
]
|
|
7476
7476
|
}),
|
|
7477
7477
|
id: "limits",
|
|
7478
|
-
isOpen:
|
|
7478
|
+
isOpen: we === "limits",
|
|
7479
7479
|
setIsOpen: () => {
|
|
7480
|
-
|
|
7480
|
+
De((e) => e === "limits" ? "" : "limits");
|
|
7481
7481
|
},
|
|
7482
7482
|
header: "Limits",
|
|
7483
7483
|
headerButton: null
|
|
@@ -7676,7 +7676,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7676
7676
|
variant: "tertiary",
|
|
7677
7677
|
onClick: () => xe(!0),
|
|
7678
7678
|
size: "small",
|
|
7679
|
-
leftIcon: /* @__PURE__ */ h(
|
|
7679
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
7680
7680
|
name: "plus",
|
|
7681
7681
|
size: "sm"
|
|
7682
7682
|
}),
|
|
@@ -7762,7 +7762,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7762
7762
|
children: [/* @__PURE__ */ qt("div", { children: [
|
|
7763
7763
|
/* @__PURE__ */ h(pe, {
|
|
7764
7764
|
variant: "body-text-2",
|
|
7765
|
-
children:
|
|
7765
|
+
children: qe(e?.label, 22)
|
|
7766
7766
|
}),
|
|
7767
7767
|
/* @__PURE__ */ h(pe, {
|
|
7768
7768
|
variant: "body-text-3",
|
|
@@ -7782,7 +7782,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7782
7782
|
className: "dbn:flex dbn:gap-4 dbn:mx-3",
|
|
7783
7783
|
children: [/* @__PURE__ */ h(m, {
|
|
7784
7784
|
variant: "popover",
|
|
7785
|
-
leftIcon: /* @__PURE__ */ h(
|
|
7785
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
7786
7786
|
name: "pencil-simple",
|
|
7787
7787
|
size: "sm"
|
|
7788
7788
|
}),
|
|
@@ -7795,7 +7795,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7795
7795
|
}
|
|
7796
7796
|
}), /* @__PURE__ */ h(m, {
|
|
7797
7797
|
variant: "popover",
|
|
7798
|
-
leftIcon: /* @__PURE__ */ h(
|
|
7798
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
7799
7799
|
name: "delete",
|
|
7800
7800
|
color: "alert"
|
|
7801
7801
|
}),
|
|
@@ -7828,9 +7828,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
7828
7828
|
]
|
|
7829
7829
|
}),
|
|
7830
7830
|
id: "formatting",
|
|
7831
|
-
isOpen:
|
|
7831
|
+
isOpen: we === "formatting",
|
|
7832
7832
|
setIsOpen: () => {
|
|
7833
|
-
|
|
7833
|
+
De((e) => e === "formatting" ? "" : "formatting");
|
|
7834
7834
|
},
|
|
7835
7835
|
header: "Formatting",
|
|
7836
7836
|
headerButton: null
|
|
@@ -8103,7 +8103,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8103
8103
|
isDisabled: e?.customSettings?.limitDatapoints?.isEnabled
|
|
8104
8104
|
})
|
|
8105
8105
|
}),
|
|
8106
|
-
|
|
8106
|
+
Je(e.chartType) && /* @__PURE__ */ qt(Kt, { children: [
|
|
8107
8107
|
/* @__PURE__ */ qt("div", {
|
|
8108
8108
|
className: st.featToggle,
|
|
8109
8109
|
children: [/* @__PURE__ */ h(Qt, {
|
|
@@ -8152,7 +8152,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8152
8152
|
...t.customSettings,
|
|
8153
8153
|
limitDatapoints: {
|
|
8154
8154
|
...t?.customSettings?.limitDatapoints,
|
|
8155
|
-
limit:
|
|
8155
|
+
limit: Ke(e.target.value)
|
|
8156
8156
|
}
|
|
8157
8157
|
}
|
|
8158
8158
|
}))
|
|
@@ -8488,9 +8488,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8488
8488
|
]
|
|
8489
8489
|
}),
|
|
8490
8490
|
id: "other features",
|
|
8491
|
-
isOpen:
|
|
8491
|
+
isOpen: we === "other features",
|
|
8492
8492
|
setIsOpen: () => {
|
|
8493
|
-
|
|
8493
|
+
De((e) => e === "other features" ? "" : "other features");
|
|
8494
8494
|
},
|
|
8495
8495
|
header: [
|
|
8496
8496
|
We.pie,
|
|
@@ -8509,9 +8509,9 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8509
8509
|
})
|
|
8510
8510
|
}),
|
|
8511
8511
|
id: "combo chart settings",
|
|
8512
|
-
isOpen:
|
|
8512
|
+
isOpen: we === "combo chart settings",
|
|
8513
8513
|
setIsOpen: () => {
|
|
8514
|
-
|
|
8514
|
+
De((e) => e === "combo chart settings" ? "" : "combo chart settings");
|
|
8515
8515
|
},
|
|
8516
8516
|
header: "Combo Chart Settings",
|
|
8517
8517
|
headerButton: null
|
|
@@ -8810,7 +8810,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8810
8810
|
if (t.includes("llama")) return "llama";
|
|
8811
8811
|
if (t.includes("palm")) return "palm";
|
|
8812
8812
|
}, gn = ({ options: e, isDisabled: t, placeholder: n, position: r = "bottom", onSubmitSearch: i, searchKeyword: a, setSearchKeyword: o, modelName: s, modelOptions: l, selectedModelId: u, onSelectModel: d, variant: f = "default", tokenUsage: p }) => {
|
|
8813
|
-
let ee = f === "aiCopilot", [te, ne] = Gt(!1), [re, ie] = Gt(!1), ae =
|
|
8813
|
+
let ee = f === "aiCopilot", [te, ne] = Gt(!1), [re, ie] = Gt(!1), ae = Oe(a, 200), [oe, ce] = Gt(pn), [le, ue] = Gt(), de = Wt(null), pe = Wt(null), me = Wt(null), he = Wt(null), ge = ee ? 200 : 120, _e = Ut(() => l?.find((e) => e.id === u) || l?.[0], [l, u]), ve = _e?.name || _e?.modelName || s, ye = hn(_e?.llmType) || mn(ve), be = Ut(() => {
|
|
8814
8814
|
if (!ee || !p) return !1;
|
|
8815
8815
|
let e = an(_e?.modelName || _e?.name || s, _e?.llmType);
|
|
8816
8816
|
return e > 0 && p.totalTokens >= e;
|
|
@@ -8851,7 +8851,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8851
8851
|
return { filteredOptions: e.filter((e) => pt("name", e, t)) };
|
|
8852
8852
|
}, [e, ae]), Te = Vt(() => {
|
|
8853
8853
|
ie(!0);
|
|
8854
|
-
}, []),
|
|
8854
|
+
}, []), Ee = Vt((e) => {
|
|
8855
8855
|
e && (o((t) => {
|
|
8856
8856
|
let n = t.split(" ");
|
|
8857
8857
|
return n.length > 0 ? (n[n.length - 1] = e.alias.trim(), `${n.join(" ")} `) : `${e.alias.trim()} `;
|
|
@@ -8902,7 +8902,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8902
8902
|
});
|
|
8903
8903
|
} else ue(void 0);
|
|
8904
8904
|
}
|
|
8905
|
-
e.key === "Enter" && (le?.column ? (e.preventDefault(),
|
|
8905
|
+
e.key === "Enter" && (le?.column ? (e.preventDefault(), Ee(le.column), ue(void 0), ie(!1)) : be || (e.preventDefault(), ie(!1), i()));
|
|
8906
8906
|
},
|
|
8907
8907
|
onClick: (e) => {
|
|
8908
8908
|
e.preventDefault(), Te();
|
|
@@ -8931,7 +8931,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8931
8931
|
})
|
|
8932
8932
|
}) : ve ? /* @__PURE__ */ qt("div", {
|
|
8933
8933
|
className: "dbn:flex dbn:items-center dbn:gap-1.5 dbn:mt-2 dbn:px-1",
|
|
8934
|
-
children: [ye && /* @__PURE__ */ h(
|
|
8934
|
+
children: [ye && /* @__PURE__ */ h(De, {
|
|
8935
8935
|
name: ye,
|
|
8936
8936
|
width: 14
|
|
8937
8937
|
}), /* @__PURE__ */ h(Ye, {
|
|
@@ -8945,13 +8945,13 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8945
8945
|
ref: pe,
|
|
8946
8946
|
children: [we?.slice(0, oe)?.map((e) => /* @__PURE__ */ qt("span", {
|
|
8947
8947
|
onClick: () => {
|
|
8948
|
-
|
|
8948
|
+
Ee(e);
|
|
8949
8949
|
},
|
|
8950
8950
|
id: "autoCompleteItem",
|
|
8951
8951
|
className: `${nn.autoCompleteItem} ${le?.column?.alias === e.alias ? "dbn:bg-gray" : ""} `,
|
|
8952
8952
|
children: [/* @__PURE__ */ h("span", {
|
|
8953
8953
|
className: "dbn:w-[10%]",
|
|
8954
|
-
children: e.type === "VALUE" ? /* @__PURE__ */ h(
|
|
8954
|
+
children: e.type === "VALUE" ? /* @__PURE__ */ h(Ue, { name: "funnel" }) : /* @__PURE__ */ h(bt, { datatype: e.datatype })
|
|
8955
8955
|
}), e.alias]
|
|
8956
8956
|
}, `${e.alias}_${e.name}`)), oe <= we.length && /* @__PURE__ */ h("div", {
|
|
8957
8957
|
className: "dbn:w-full dbn:justify-center dbn:p-2",
|
|
@@ -8962,7 +8962,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8962
8962
|
onClick: () => {
|
|
8963
8963
|
ie(!0), ce((e) => e + pn);
|
|
8964
8964
|
},
|
|
8965
|
-
rightIcon: /* @__PURE__ */ h(
|
|
8965
|
+
rightIcon: /* @__PURE__ */ h(Ue, { name: "chevron-down" }),
|
|
8966
8966
|
fitContainer: !0,
|
|
8967
8967
|
children: "Load More"
|
|
8968
8968
|
})
|
|
@@ -8993,7 +8993,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
8993
8993
|
variant: "popover",
|
|
8994
8994
|
type: "submit",
|
|
8995
8995
|
isDisabled: t || !a || be,
|
|
8996
|
-
leftIcon: /* @__PURE__ */ h(
|
|
8996
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
8997
8997
|
name: "arrow-right",
|
|
8998
8998
|
color: ee ? "white" : void 0,
|
|
8999
8999
|
size: ee ? "xs" : void 0
|
|
@@ -9011,7 +9011,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9011
9011
|
/* @__PURE__ */ h(m, {
|
|
9012
9012
|
type: "button",
|
|
9013
9013
|
variant: "popover",
|
|
9014
|
-
leftIcon: /* @__PURE__ */ h(
|
|
9014
|
+
leftIcon: /* @__PURE__ */ h(Ue, { name: "arrow-left" }),
|
|
9015
9015
|
className: Nt.headerIconBtn,
|
|
9016
9016
|
"aria-label": "Close data chat",
|
|
9017
9017
|
onClick: () => {
|
|
@@ -9026,7 +9026,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9026
9026
|
type: "button",
|
|
9027
9027
|
variant: "tab",
|
|
9028
9028
|
className: "dbn:ml-auto dbn:rounded-md",
|
|
9029
|
-
leftIcon: /* @__PURE__ */ h(
|
|
9029
|
+
leftIcon: /* @__PURE__ */ h(Ue, { name: "stop" }),
|
|
9030
9030
|
onClick: n,
|
|
9031
9031
|
children: "Stop"
|
|
9032
9032
|
}) : null
|
|
@@ -9124,7 +9124,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9124
9124
|
})]
|
|
9125
9125
|
}), /* @__PURE__ */ h(m, {
|
|
9126
9126
|
variant: "popover",
|
|
9127
|
-
leftIcon: /* @__PURE__ */ h(
|
|
9127
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
9128
9128
|
name: "cross",
|
|
9129
9129
|
size: "xs"
|
|
9130
9130
|
}),
|
|
@@ -9132,7 +9132,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9132
9132
|
})]
|
|
9133
9133
|
}), r ? /* @__PURE__ */ h(Ce, { variant: "list" }) : /* @__PURE__ */ h("div", {
|
|
9134
9134
|
className: "dbn:h-[90%] dbn:w-full",
|
|
9135
|
-
children: n?.split("\n").length ? /* @__PURE__ */ qt(
|
|
9135
|
+
children: n?.split("\n").length ? /* @__PURE__ */ qt(Be, {
|
|
9136
9136
|
direction: "col",
|
|
9137
9137
|
className: "dbn:gap-2",
|
|
9138
9138
|
children: [n?.split("\n")?.map((e) => /* @__PURE__ */ h(pe, { children: e })), /* @__PURE__ */ h(m, {
|
|
@@ -9142,7 +9142,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9142
9142
|
o(!1);
|
|
9143
9143
|
}, 3e3);
|
|
9144
9144
|
},
|
|
9145
|
-
leftIcon: /* @__PURE__ */ h(
|
|
9145
|
+
leftIcon: /* @__PURE__ */ h(Ue, { name: "copy" }),
|
|
9146
9146
|
children: a ? "Copied" : "Copy"
|
|
9147
9147
|
})]
|
|
9148
9148
|
}) : /* @__PURE__ */ h(pe, { children: "Not Found" })
|
|
@@ -9162,7 +9162,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9162
9162
|
className: "dbn:w-full dbn:flex dbn:justify-between dbn:items-center dbn:py-4",
|
|
9163
9163
|
children: [/* @__PURE__ */ qt("span", {
|
|
9164
9164
|
className: "dbn:flex dbn:gap-2 dbn:items-center",
|
|
9165
|
-
children: [/* @__PURE__ */ h(
|
|
9165
|
+
children: [/* @__PURE__ */ h(Ue, {
|
|
9166
9166
|
name: "file-sql",
|
|
9167
9167
|
size: "lg"
|
|
9168
9168
|
}), /* @__PURE__ */ h(pe, {
|
|
@@ -9171,7 +9171,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9171
9171
|
})]
|
|
9172
9172
|
}), /* @__PURE__ */ h(m, {
|
|
9173
9173
|
variant: "popover",
|
|
9174
|
-
leftIcon: /* @__PURE__ */ h(
|
|
9174
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
9175
9175
|
name: "cross",
|
|
9176
9176
|
size: "xs"
|
|
9177
9177
|
}),
|
|
@@ -9395,7 +9395,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9395
9395
|
}),
|
|
9396
9396
|
/* @__PURE__ */ qt("div", {
|
|
9397
9397
|
className: Nt.chatError,
|
|
9398
|
-
children: [/* @__PURE__ */ h(
|
|
9398
|
+
children: [/* @__PURE__ */ h(Ue, { name: "warning" }), /* @__PURE__ */ h(pe, {
|
|
9399
9399
|
variant: "body-text-1",
|
|
9400
9400
|
children: Pn(e?.error, e?.errorCode) ? te : Fn(e?.error, e?.errorCode) ? e?.error : te
|
|
9401
9401
|
})]
|
|
@@ -9489,10 +9489,10 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9489
9489
|
variant: "card",
|
|
9490
9490
|
className: "dbn:w-full dbn:h-full"
|
|
9491
9491
|
})
|
|
9492
|
-
}) : e.data.length ? /* @__PURE__ */ qt(
|
|
9492
|
+
}) : e.data.length ? /* @__PURE__ */ qt(Be, {
|
|
9493
9493
|
direction: "col",
|
|
9494
9494
|
className: "dbn:gap-2 dbn:h-full",
|
|
9495
|
-
children: [e.summary?.length ? /* @__PURE__ */ h(
|
|
9495
|
+
children: [e.summary?.length ? /* @__PURE__ */ h(Be, {
|
|
9496
9496
|
className: "dbn:gap-2 dbn:flex-wrap",
|
|
9497
9497
|
children: e.summary?.map((e, t) => /* @__PURE__ */ h("span", {
|
|
9498
9498
|
className: "dbn:rounded-2xl dbn:px-2 dbn:py-0.5 dbn:bg-warning dbn:text-warning-dark",
|
|
@@ -9524,7 +9524,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9524
9524
|
className: "dbn:flex dbn:items-center dbn:gap-2",
|
|
9525
9525
|
children: [/* @__PURE__ */ h(m, {
|
|
9526
9526
|
variant: "tab",
|
|
9527
|
-
leftIcon: /* @__PURE__ */ h(
|
|
9527
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
9528
9528
|
name: "save",
|
|
9529
9529
|
size: "xs"
|
|
9530
9530
|
}),
|
|
@@ -9542,7 +9542,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9542
9542
|
className: "dbn:flex dbn:gap-0",
|
|
9543
9543
|
children: [/* @__PURE__ */ h(m, {
|
|
9544
9544
|
variant: "tab",
|
|
9545
|
-
leftIcon: /* @__PURE__ */ h(
|
|
9545
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
9546
9546
|
name: "bar-chart",
|
|
9547
9547
|
size: "xs"
|
|
9548
9548
|
}),
|
|
@@ -9557,7 +9557,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9557
9557
|
children: "Charts"
|
|
9558
9558
|
}), /* @__PURE__ */ h(m, {
|
|
9559
9559
|
variant: "tab",
|
|
9560
|
-
leftIcon: /* @__PURE__ */ h(
|
|
9560
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
9561
9561
|
name: "color-palette",
|
|
9562
9562
|
size: "xs"
|
|
9563
9563
|
}),
|
|
@@ -9568,7 +9568,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9568
9568
|
children: "Appearances"
|
|
9569
9569
|
})]
|
|
9570
9570
|
})]
|
|
9571
|
-
}), /* @__PURE__ */ h(
|
|
9571
|
+
}), /* @__PURE__ */ h(Be, {
|
|
9572
9572
|
alignItems: "center",
|
|
9573
9573
|
className: "dbn:gap-6",
|
|
9574
9574
|
children: /* @__PURE__ */ h(Lt, {
|
|
@@ -9616,10 +9616,10 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9616
9616
|
onClick: () => o(e),
|
|
9617
9617
|
isDisabled: n?.isDisableButton,
|
|
9618
9618
|
className: "dbn:gap-2",
|
|
9619
|
-
children: /* @__PURE__ */ qt(
|
|
9619
|
+
children: /* @__PURE__ */ qt(Be, {
|
|
9620
9620
|
alignItems: "center",
|
|
9621
9621
|
className: "dbn:gap-1",
|
|
9622
|
-
children: [/* @__PURE__ */ h(
|
|
9622
|
+
children: [/* @__PURE__ */ h(Ue, {
|
|
9623
9623
|
name: "wand",
|
|
9624
9624
|
size: "small",
|
|
9625
9625
|
color: "pink"
|
|
@@ -9763,7 +9763,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9763
9763
|
}),
|
|
9764
9764
|
/* @__PURE__ */ qt("div", {
|
|
9765
9765
|
className: Nt.chatError,
|
|
9766
|
-
children: [/* @__PURE__ */ h(
|
|
9766
|
+
children: [/* @__PURE__ */ h(Ue, { name: "warning" }), /* @__PURE__ */ h(pe, {
|
|
9767
9767
|
variant: "body-text-1",
|
|
9768
9768
|
children: Pn(n?.error) ? te : Fn(n?.error) ? n?.error : te
|
|
9769
9769
|
})]
|
|
@@ -9814,7 +9814,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9814
9814
|
className: "dbn:w-[96%] dbn:flex dbn:gap-1 dbn:items-center",
|
|
9815
9815
|
children: [/* @__PURE__ */ h("span", {
|
|
9816
9816
|
className: "dbn:w-[3%]",
|
|
9817
|
-
children: /* @__PURE__ */ h(
|
|
9817
|
+
children: /* @__PURE__ */ h(Ue, {
|
|
9818
9818
|
name: "placeholder",
|
|
9819
9819
|
size: "xs"
|
|
9820
9820
|
})
|
|
@@ -9839,7 +9839,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9839
9839
|
})]
|
|
9840
9840
|
}), /* @__PURE__ */ h(m, {
|
|
9841
9841
|
variant: "popover",
|
|
9842
|
-
leftIcon: /* @__PURE__ */ h(
|
|
9842
|
+
leftIcon: /* @__PURE__ */ h(Ue, {
|
|
9843
9843
|
name: "cross",
|
|
9844
9844
|
size: "small"
|
|
9845
9845
|
}),
|
|
@@ -9887,7 +9887,7 @@ var Jt = (e, t, n) => ({ autoCompleteDropdownOptions: Ut(() => {
|
|
|
9887
9887
|
className: "dbn:w-[400px] dbn:flex dbn:flex-row dbn:items-start dbn:justify-start dbn:py-5 dbn:text-base dbn:text-primary-title",
|
|
9888
9888
|
children: [/* @__PURE__ */ h("span", {
|
|
9889
9889
|
className: "dbn:w-[10%]",
|
|
9890
|
-
children: /* @__PURE__ */ h(
|
|
9890
|
+
children: /* @__PURE__ */ h(Ue, {
|
|
9891
9891
|
name: "warning",
|
|
9892
9892
|
size: "lg"
|
|
9893
9893
|
})
|
|
@@ -86247,10 +86247,10 @@ var vs = {
|
|
|
86247
86247
|
isProgressiveDimension: e.isProgressiveDimension,
|
|
86248
86248
|
dimensions: e.dimensions,
|
|
86249
86249
|
measures: e.measures,
|
|
86250
|
-
semanticTypes:
|
|
86251
|
-
semanticTypeConfigs:
|
|
86250
|
+
semanticTypes: we(e.semanticColumns),
|
|
86251
|
+
semanticTypeConfigs: ze(e.semanticColumns)
|
|
86252
86252
|
}), Ms = (e) => {
|
|
86253
|
-
if (!
|
|
86253
|
+
if (!Ie() || !e.rows.length) return { chartType: mt({
|
|
86254
86254
|
dataLength: e.dataLength,
|
|
86255
86255
|
dimensionCount: e.dimensions?.length,
|
|
86256
86256
|
measureCount: e.measures?.length,
|
|
@@ -86312,7 +86312,7 @@ var vs = {
|
|
|
86312
86312
|
let e = new AbortController();
|
|
86313
86313
|
return de.current = e, e.signal;
|
|
86314
86314
|
}, pe = Vt(() => {
|
|
86315
|
-
de.current?.abort(), de.current = null,
|
|
86315
|
+
de.current?.abort(), de.current = null, De(!1), ge((e) => ({
|
|
86316
86316
|
...e,
|
|
86317
86317
|
isDisableButton: !1,
|
|
86318
86318
|
isLoading: !1,
|
|
@@ -86330,7 +86330,7 @@ var vs = {
|
|
|
86330
86330
|
error: "",
|
|
86331
86331
|
isLoading: !1,
|
|
86332
86332
|
currentValue: ""
|
|
86333
|
-
}), [be, xe] = Gt(!1), [Se, Ce] = Gt(), [we, Te] = Gt(""), [Ee,
|
|
86333
|
+
}), [be, xe] = Gt(!1), [Se, Ce] = Gt(), [we, Te] = Gt(""), [Ee, De] = Gt(!1), [Oe, je] = Gt([]), [Me, Ne] = Gt(!1), [Pe, Ie] = Gt({
|
|
86334
86334
|
isOpen: !1,
|
|
86335
86335
|
report: "",
|
|
86336
86336
|
isLoading: !1
|
|
@@ -86338,7 +86338,7 @@ var vs = {
|
|
|
86338
86338
|
isOpenAppearance: !1,
|
|
86339
86339
|
isOpenTypePanel: !1,
|
|
86340
86340
|
chartIndex: -1
|
|
86341
|
-
}), [ze, Be] = Gt([]), Ve = Ut(() => me?.chats?.find((e) => e.timestamp === Le?.chartIndex), [Le?.chartIndex, me?.chats]), He = Ut(() => [u,
|
|
86341
|
+
}), [ze, Be] = Gt([]), Ve = Ut(() => me?.chats?.find((e) => e.timestamp === Le?.chartIndex), [Le?.chartIndex, me?.chats]), He = Ut(() => [u, Ae].includes(Se?.name?.toLowerCase() || ""), [Se]), Ue = Ut(() => ve(Se?.name || ""), [Se]), { createExternalMetric: Ge, error: Ke, isLoading: qe, updateExternalMetric: Je, clientSubsetData: Ye } = Xe({
|
|
86342
86342
|
onServerEvent: oe,
|
|
86343
86343
|
onSuccess: async (e) => {
|
|
86344
86344
|
if (xe(!1), e) try {
|
|
@@ -86733,7 +86733,7 @@ var vs = {
|
|
|
86733
86733
|
previousQuestion: _t(me.followUp).reverse().join(" "),
|
|
86734
86734
|
previousSql: me.followUp.responseQuery
|
|
86735
86735
|
} } : void 0, i = we;
|
|
86736
|
-
|
|
86736
|
+
De(!0), ge((e) => ({
|
|
86737
86737
|
...e,
|
|
86738
86738
|
isDisableButton: !0,
|
|
86739
86739
|
error: "",
|
|
@@ -86767,7 +86767,7 @@ var vs = {
|
|
|
86767
86767
|
r?.reasoning, se?.map((e) => ({
|
|
86768
86768
|
table: e.tableName,
|
|
86769
86769
|
columns: e.columns
|
|
86770
|
-
})),
|
|
86770
|
+
})), De(!1), setTimeout(() => {
|
|
86771
86771
|
a || l ? (ge((n) => ({
|
|
86772
86772
|
...n,
|
|
86773
86773
|
error: "",
|
|
@@ -86859,7 +86859,7 @@ var vs = {
|
|
|
86859
86859
|
}, 2e3);
|
|
86860
86860
|
},
|
|
86861
86861
|
onError(e) {
|
|
86862
|
-
|
|
86862
|
+
De(!1), !r(e) && setTimeout(() => {
|
|
86863
86863
|
ge((e) => ({
|
|
86864
86864
|
...e,
|
|
86865
86865
|
error: Fe,
|
|
@@ -86876,7 +86876,7 @@ var vs = {
|
|
|
86876
86876
|
setSearchKeys: Be,
|
|
86877
86877
|
setSearchKeyword: Te,
|
|
86878
86878
|
searchKeyword: we,
|
|
86879
|
-
showChatResults:
|
|
86879
|
+
showChatResults: Oe,
|
|
86880
86880
|
setShowChatResults: je,
|
|
86881
86881
|
chartPanel: Le,
|
|
86882
86882
|
setChartPanel: Re,
|